From a614e6c1aeaf2793521c14848b563aaa67790c3e Mon Sep 17 00:00:00 2001 From: eric Date: Tue, 22 Oct 2024 10:51:34 +0200 Subject: [PATCH 1/6] ignore acronym mse --- project/server/main/acronym_to_ignore.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/server/main/acronym_to_ignore.csv b/project/server/main/acronym_to_ignore.csv index 3c6d38a..dea290f 100644 --- a/project/server/main/acronym_to_ignore.csv +++ b/project/server/main/acronym_to_ignore.csv @@ -170,7 +170,6 @@ maestro mimosa opale smash -histoire sa mica vassal @@ -508,3 +507,4 @@ edge mind step early +mse From 1dbdfc9dfb2e75f2b090d029028c04200d748a14 Mon Sep 17 00:00:00 2001 From: victor barbier Date: Wed, 23 Oct 2024 17:07:40 +0200 Subject: [PATCH 2/6] feat(notebook): test paysage api --- notebooks/paysage_api_test.ipynb | 48 ++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 notebooks/paysage_api_test.ipynb diff --git a/notebooks/paysage_api_test.ipynb b/notebooks/paysage_api_test.ipynb new file mode 100644 index 0000000..429e887 --- /dev/null +++ b/notebooks/paysage_api_test.ipynb @@ -0,0 +1,48 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [], + "source": [ + "import requests\n", + "import pandas as pd" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": {}, + "outputs": [], + "source": [ + "url = \"https://paysage-api.staging.dataesr.ovh/relations?limit=10000&filters[relationTag]=structure-categorie&filters[relatedObjectId]=mCpLW&filters[relatedObjectId]=Eg7tX&filters[relatedObjectId]=93BR1&filters[relatedObjectId]=2ZdzP&filters[relatedObjectId]=MTFHZ&filters[relatedObjectId]=UfEnK&filters[relatedObjectId]=Sv5bb&filters[relatedObjectId]=mNJ1Z&filters[relatedObjectId]=WCat8&filters[relatedObjectId]=fQ6GL&filters[relatedObjectId]=WkSgR&filters[relatedObjectId]=YNqFb&filters[relatedObjectId]=iyn79&filters[relatedObjectId]=NsMkU\"\n", + "headers = {\"X-API-KEY\": \"xkeypsg-72b39GvylkDPoEe6AwUz\"}\n", + "\n", + "response = requests.get(url, headers=headers)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.11.5" + }, + "orig_nbformat": 4 + }, + "nbformat": 4, + "nbformat_minor": 2 +} From 3a22758e63507253dfaec7f1b89ee61558de81c6 Mon Sep 17 00:00:00 2001 From: victor barbier Date: Wed, 23 Oct 2024 17:07:40 +0200 Subject: [PATCH 3/6] feat(client): add paysage --- project/client/src/components/results/index.tsx | 5 ++++- project/client/src/config/matchers.ts | 1 + project/client/src/types/index.ts | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/project/client/src/components/results/index.tsx b/project/client/src/components/results/index.tsx index 902fc94..c4d3cdd 100644 --- a/project/client/src/components/results/index.tsx +++ b/project/client/src/components/results/index.tsx @@ -18,8 +18,10 @@ export default function Results() { useEffect(() => setTitle(currentQuery), [currentQuery]) + console.log("data", data) + if (currentQuery === null && currentMatcher === null) return null - if (currentQuery === "") return + if (!currentQuery) return if (!currentMatcher) return if (isFetching) return @@ -58,6 +60,7 @@ export default function Results() { })} + {/*
*/} ) } diff --git a/project/client/src/config/matchers.ts b/project/client/src/config/matchers.ts index 6f9bdaa..910a9ae 100644 --- a/project/client/src/config/matchers.ts +++ b/project/client/src/config/matchers.ts @@ -8,6 +8,7 @@ export const MATCHERS = [ { label: "ROR", key: "ror", year: false, placeholder: "Paris Dauphine University France" }, { label: "RNSR", key: "rnsr", year: true, placeholder: "IPAG Institut de Planétologie et d'Astrophysique de Grenoble" }, { label: "grid.ac", key: "grid", year: false, placeholder: "Paris Dauphine University France" }, + { label: "Paysage", key: "paysage", year: true, placeholder: "UTC Université de Technologie de Compiègne" }, ] export const matcher_get = (key: string) => MATCHERS.find((matcher) => matcher.key == key) diff --git a/project/client/src/types/index.ts b/project/client/src/types/index.ts index c61f2e0..d0f2f82 100644 --- a/project/client/src/types/index.ts +++ b/project/client/src/types/index.ts @@ -42,6 +42,7 @@ export type MatchResults = { enriched_results: MatchEnrichedResults highlights?: MatchHighlights debug?: MatchDebug + logs?: string } export type TextHighlight = Array From ffb252f79ce64723effc3f2133b4ccea0eb25afb Mon Sep 17 00:00:00 2001 From: victor barbier Date: Wed, 23 Oct 2024 17:07:40 +0200 Subject: [PATCH 4/6] feat(server): add paysage --- project/server/main/load_paysage.py | 38 +++++++++++++++++------------ project/server/main/matcher.py | 17 +++++++++++++ project/server/main/tasks.py | 5 ++-- 3 files changed, 42 insertions(+), 18 deletions(-) diff --git a/project/server/main/load_paysage.py b/project/server/main/load_paysage.py index 48fa211..85f94ff 100644 --- a/project/server/main/load_paysage.py +++ b/project/server/main/load_paysage.py @@ -47,7 +47,7 @@ "YNqFb": "Commerce et gestion - Etablissements d’enseignement supérieur techniques privés et consulaires autorisés à délivrer un diplôme visé par le ministre chargé de l’enseignement supérieur et/ou à conférer le grade universitaire", "iyn79": "Opérateur du programme 150 - Formations supérieures et recherche universitaire", "z367d": "Structure de recherche", - # "NsMkU": "Établissement d'enseignement supérieur étranger", + "NsMkU": "Établissement d'enseignement supérieur étranger", } @@ -127,11 +127,7 @@ def load_paysage(index_prefix: str = "matcher") -> dict: for criterion_value in criterion_values: if criterion_value not in es_data[criterion]: es_data[criterion][criterion_value] = [] - es_data[criterion][criterion_value].append( - { - "id": data_point["id"], - } - ) + es_data[criterion][criterion_value].append({"id": data_point["id"], "categories": data_point["categories"]}) # Bulk insert data into ES actions = [] @@ -181,19 +177,31 @@ def download_data() -> list: # Request data limit = 10000 - filters = "&".join([f"filters[relatedObjectId]={category}" for category in list(CATEGORIES.keys())]) - url = f"{PAYSAGE_API_URL}/relations?limit={limit}&filters[relationTag]=structure-categorie&{filters}" headers = {"X-API-KEY": PAYSAGE_API_KEY} - response = requests.get(url=url, headers=headers) + data = [] - if response.status_code != 200: - logger.error(f"Error {response.status_code} requesting {url}") - return None + for category in CATEGORIES: + url = f"{PAYSAGE_API_URL}/relations?limit={limit}&filters[relationTag]=structure-categorie&filters[relatedObjectId]={category}" + response = requests.get(url=url, headers=headers) + + if response.status_code != 200: + logger.error(f"Error {response.status_code} requesting {url}") + continue + + current_data = response.json().get("data") + # logger.debug(f"Found {len(current_data)} paysage records for category {CATEGORIES[category]}") + + current_data = pd.DataFrame(current_data).drop_duplicates(subset="resourceId").to_dict(orient="records") + logger.debug(f"Found {len(current_data)} paysage records for category {CATEGORIES[category]} without duplicates") - data = response.json().get("data") - logger.debug(f"Found {len(data)} paysage records for {len(CATEGORIES)} categories") + data += current_data - data = pd.DataFrame(data).drop_duplicates(subset="resourceId").to_dict(orient="records") + df = pd.DataFrame(data) + data = ( + df.groupby(by="resourceId") + .agg({k: list if k == "relatedObjectId" else "first" for k in df.columns}) + .to_dict(orient="records") + ) logger.debug(f"Keep {len(data)} paysage records without duplicates") return data diff --git a/project/server/main/matcher.py b/project/server/main/matcher.py index e7b74c4..074957c 100644 --- a/project/server/main/matcher.py +++ b/project/server/main/matcher.py @@ -1,3 +1,4 @@ +import requests import itertools from fuzzywuzzy import fuzz @@ -9,6 +10,7 @@ from project.server.main.my_elastic import MyElastic from project.server.main.utils import remove_stop, normalize_text from project.server.main.load_rnsr import get_siren +from project.server.main.load_paysage import PAYSAGE_API_URL, PAYSAGE_API_KEY, CATEGORIES logger = get_logger(__name__) @@ -183,6 +185,21 @@ def enrich_results(self, results, method): elt[f].append(list(hit["_source"]["query"].values())[0]["content"]["query"]) except: pass + + # enrich with paysage categories + if method == "paysage": + try: + headers = {"X-API-KEY": PAYSAGE_API_KEY} + url = f"{PAYSAGE_API_URL}/relations?limit=100&filters[relationTag]=structure-categorie&filters[resourceId]={r}" + response = requests.get(url=url, headers=headers) + data = response.json().get("data") + categories = [d.get("relatedObjectId") for d in data if d.get("relatedObjectId") in CATEGORIES] + elt["paysage_categories"] = [ + {"category": category, "label": CATEGORIES[category]} for category in categories + ] + except: + pass + enriched.append(elt) return enriched diff --git a/project/server/main/tasks.py b/project/server/main/tasks.py index cd0d775..2ea79f3 100644 --- a/project/server/main/tasks.py +++ b/project/server/main/tasks.py @@ -59,7 +59,7 @@ def create_task_load(args: dict = None) -> dict: result.update(load_grid(index_prefix=index_prefix_dated)) result.update(load_rnsr(index_prefix=index_prefix_dated)) result.update(load_ror(index_prefix=index_prefix_dated)) - # result.update(load_paysage(index_prefix=index_prefix_dated)) + result.update(load_paysage(index_prefix=index_prefix_dated)) elif matcher_type == 'country': result.update(load_country(index_prefix=index_prefix_dated)) elif matcher_type == 'grid': @@ -71,8 +71,7 @@ def create_task_load(args: dict = None) -> dict: elif matcher_type == 'wikidata': result.update(load_wikidata(index_prefix=index_prefix_dated)) elif matcher_type == "paysage": - result = {"Error": "Matcher Paysage is not developped yet!"} - # result.update(load_paysage(index_prefix=index_prefix_dated)) + result.update(load_paysage(index_prefix=index_prefix_dated)) else: result = {'Error': f'Matcher type {matcher_type} unknown'} # An alias is the put on the newly created indices From b97ce8b97559746fba114db3a42830bb19024cce Mon Sep 17 00:00:00 2001 From: victor barbier Date: Wed, 23 Oct 2024 17:07:40 +0200 Subject: [PATCH 5/6] feat(client): update build --- project/client/dist/index.html | 2 +- .../{index-a5242678.js => index-78f5f2fe.js} | 40 +++++++++---------- 2 files changed, 21 insertions(+), 21 deletions(-) rename project/client/dist/static/{index-a5242678.js => index-78f5f2fe.js} (79%) diff --git a/project/client/dist/index.html b/project/client/dist/index.html index 5e90c09..3ce0bb9 100644 --- a/project/client/dist/index.html +++ b/project/client/dist/index.html @@ -6,7 +6,7 @@ Affiliation Matcher - + diff --git a/project/client/dist/static/index-a5242678.js b/project/client/dist/static/index-78f5f2fe.js similarity index 79% rename from project/client/dist/static/index-a5242678.js rename to project/client/dist/static/index-78f5f2fe.js index 5eb0659..e396142 100644 --- a/project/client/dist/static/index-a5242678.js +++ b/project/client/dist/static/index-78f5f2fe.js @@ -1,4 +1,4 @@ -function O0(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function ju(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var jh={exports:{}},El={},Bh={exports:{}},z={};/** +function F0(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function ju(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bh={exports:{}},El={},Hh={exports:{}},z={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function O0(e,t){for(var n=0;n>>1,W=A[U];if(0>>1;Uo(St,M))Reo(K,St)?(A[U]=K,A[Re]=M,U=Re):(A[U]=St,A[Ue]=M,U=Ue);else if(Reo(K,M))A[U]=K,A[Re]=M,U=Re;else break e}}return B}function o(A,B){var M=A.sortIndex-B.sortIndex;return M!==0?M:A.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],c=1,f=null,d=3,h=!1,E=!1,b=!1,w=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(A){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=A)r(u),B.sortIndex=B.expirationTime,t(a,B);else break;B=n(u)}}function S(A){if(b=!1,x(A),!E)if(n(a)!==null)E=!0,J(T);else{var B=n(u);B!==null&&O(S,B.startTime-A)}}function T(A,B){E=!1,b&&(b=!1,y(v),v=-1),h=!0;var M=d;try{for(x(B),f=n(a);f!==null&&(!(f.expirationTime>B)||A&&!P());){var U=f.callback;if(typeof U=="function"){f.callback=null,d=f.priorityLevel;var W=U(f.expirationTime<=B);B=e.unstable_now(),typeof W=="function"?f.callback=W:f===n(a)&&r(a),x(B)}else r(a);f=n(a)}if(f!==null)var Xe=!0;else{var Ue=n(u);Ue!==null&&O(S,Ue.startTime-B),Xe=!1}return Xe}finally{f=null,d=M,h=!1}}var C=!1,_=null,v=-1,L=5,N=-1;function P(){return!(e.unstable_now()-NA||125U?(A.sortIndex=M,t(u,A),n(a)===null&&A===n(u)&&(b?(y(v),v=-1):b=!0,O(S,M-U))):(A.sortIndex=W,t(a,A),E||h||(E=!0,J(T))),A},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(A){var B=d;return function(){var M=d;d=B;try{return A.apply(this,arguments)}finally{d=M}}}})(Yh);Xh.exports=Yh;var i1=Xh.exports;/** + */(function(e){function t(A,B){var M=A.length;A.push(B);e:for(;0>>1,W=A[U];if(0>>1;Uo(St,M))Reo(K,St)?(A[U]=K,A[Re]=M,U=Re):(A[U]=St,A[Ue]=M,U=Ue);else if(Reo(K,M))A[U]=K,A[Re]=M,U=Re;else break e}}return B}function o(A,B){var M=A.sortIndex-B.sortIndex;return M!==0?M:A.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],c=1,f=null,d=3,h=!1,E=!1,b=!1,w=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(A){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=A)r(u),B.sortIndex=B.expirationTime,t(a,B);else break;B=n(u)}}function S(A){if(b=!1,x(A),!E)if(n(a)!==null)E=!0,J(T);else{var B=n(u);B!==null&&O(S,B.startTime-A)}}function T(A,B){E=!1,b&&(b=!1,y(v),v=-1),h=!0;var M=d;try{for(x(B),f=n(a);f!==null&&(!(f.expirationTime>B)||A&&!P());){var U=f.callback;if(typeof U=="function"){f.callback=null,d=f.priorityLevel;var W=U(f.expirationTime<=B);B=e.unstable_now(),typeof W=="function"?f.callback=W:f===n(a)&&r(a),x(B)}else r(a);f=n(a)}if(f!==null)var Xe=!0;else{var Ue=n(u);Ue!==null&&O(S,Ue.startTime-B),Xe=!1}return Xe}finally{f=null,d=M,h=!1}}var C=!1,_=null,v=-1,L=5,N=-1;function P(){return!(e.unstable_now()-NA||125U?(A.sortIndex=M,t(u,A),n(a)===null&&A===n(u)&&(b?(y(v),v=-1):b=!0,O(S,M-U))):(A.sortIndex=W,t(a,A),E||h||(E=!0,J(T))),A},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(A){var B=d;return function(){var M=d;d=B;try{return A.apply(this,arguments)}finally{d=M}}}})(Zh);Yh.exports=Zh;var l1=Yh.exports;/** * @license React * react-dom.production.min.js * @@ -30,18 +30,18 @@ function O0(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fa=Object.prototype.hasOwnProperty,l1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,df={},hf={};function s1(e){return fa.call(hf,e)?!0:fa.call(df,e)?!1:l1.test(e)?hf[e]=!0:(df[e]=!0,!1)}function a1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function u1(e,t,n,r){if(t===null||typeof t>"u"||a1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ke(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ke[e]=new Ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ke[t]=new Ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ke[e]=new Ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ke[e]=new Ke(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ke[e]=new Ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ke[e]=new Ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ke[e]=new Ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ke[e]=new Ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ke[e]=new Ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var zu=/[\-:]([a-z])/g;function Vu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(zu,Vu);ke[t]=new Ke(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(zu,Vu);ke[t]=new Ke(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(zu,Vu);ke[t]=new Ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ke[e]=new Ke(e,1,!1,e.toLowerCase(),null,!1,!1)});ke.xlinkHref=new Ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ke[e]=new Ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function Gu(e,t,n,r){var o=ke.hasOwnProperty(t)?ke[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fa=Object.prototype.hasOwnProperty,s1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,df={},hf={};function a1(e){return fa.call(hf,e)?!0:fa.call(df,e)?!1:s1.test(e)?hf[e]=!0:(df[e]=!0,!1)}function u1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function c1(e,t,n,r){if(t===null||typeof t>"u"||u1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ke(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ke[e]=new Ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ke[t]=new Ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ke[e]=new Ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ke[e]=new Ke(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ke[e]=new Ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ke[e]=new Ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ke[e]=new Ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ke[e]=new Ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ke[e]=new Ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var zu=/[\-:]([a-z])/g;function Vu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(zu,Vu);ke[t]=new Ke(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(zu,Vu);ke[t]=new Ke(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(zu,Vu);ke[t]=new Ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ke[e]=new Ke(e,1,!1,e.toLowerCase(),null,!1,!1)});ke.xlinkHref=new Ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ke[e]=new Ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function Gu(e,t,n,r){var o=ke.hasOwnProperty(t)?ke[t]:null;(o!==null?o.type!==0:r||!(2s||o[l]!==i[s]){var a=` -`+o[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{ms=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gr(e):""}function c1(e){switch(e.tag){case 5:return Gr(e.type);case 16:return Gr("Lazy");case 13:return Gr("Suspense");case 19:return Gr("SuspenseList");case 0:case 2:case 15:return e=gs(e.type,!1),e;case 11:return e=gs(e.type.render,!1),e;case 1:return e=gs(e.type,!0),e;default:return""}}function ma(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case er:return"Fragment";case Jn:return"Portal";case da:return"Profiler";case Wu:return"StrictMode";case ha:return"Suspense";case pa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case tp:return(e.displayName||"Context")+".Consumer";case ep:return(e._context.displayName||"Context")+".Provider";case Qu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qu:return t=e.displayName||null,t!==null?t:ma(e.type)||"Memo";case Xt:t=e._payload,e=e._init;try{return ma(e(t))}catch{}}return null}function f1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ma(t);case 8:return t===Wu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function hn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function d1(e){var t=rp(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wo(e){e._valueTracker||(e._valueTracker=d1(e))}function op(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=rp(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Mi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ga(e,t){var n=t.checked;return fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function mf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=hn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ip(e,t){t=t.checked,t!=null&&Gu(e,"checked",t,!1)}function va(e,t){ip(e,t);var n=hn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ya(e,t.type,n):t.hasOwnProperty("defaultValue")&&ya(e,t.type,hn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ya(e,t,n){(t!=="number"||Mi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wr=Array.isArray;function hr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Qo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function uo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},h1=["Webkit","ms","Moz","O"];Object.keys(Jr).forEach(function(e){h1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jr[t]=Jr[e]})});function up(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Jr.hasOwnProperty(e)&&Jr[e]?(""+t).trim():t+"px"}function cp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=up(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var p1=fe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ba(e,t){if(t){if(p1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error($(61))}if(t.style!=null&&typeof t.style!="object")throw Error($(62))}}function wa(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Sa=null;function Xu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ca=null,pr=null,mr=null;function xf(e){if(e=Ao(e)){if(typeof Ca!="function")throw Error($(280));var t=e.stateNode;t&&(t=Tl(t),Ca(e.stateNode,e.type,t))}}function fp(e){pr?mr?mr.push(e):mr=[e]:pr=e}function dp(){if(pr){var e=pr,t=mr;if(mr=pr=null,xf(e),t)for(e=0;e>>=0,e===0?32:31-(T1(e)/_1|0)|0}var qo=64,Xo=4194304;function Qr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Di(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=Qr(s):(i&=l,i!==0&&(r=Qr(i)))}else l=n&~o,l!==0?r=Qr(l):i!==0&&(r=Qr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Io(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xt(t),e[t]=n}function R1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=to),Nf=String.fromCharCode(32),kf=!1;function $p(e,t){switch(e){case"keyup":return ox.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ip(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tr=!1;function lx(e,t){switch(e){case"compositionend":return Ip(t);case"keypress":return t.which!==32?null:(kf=!0,Nf);case"textInput":return e=t.data,e===Nf&&kf?null:e;default:return null}}function sx(e,t){if(tr)return e==="compositionend"||!oc&&$p(e,t)?(e=Rp(),bi=tc=tn=null,tr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=If(n)}}function Fp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dp(){for(var e=window,t=Mi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mi(e.document)}return t}function ic(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function gx(e){var t=Dp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Fp(n.ownerDocument.documentElement,n)){if(r!==null&&ic(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Mf(n,i);var l=Mf(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,nr=null,Ra=null,ro=null,La=!1;function Af(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;La||nr==null||nr!==Mi(r)||(r=nr,"selectionStart"in r&&ic(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ro&&go(ro,r)||(ro=r,r=Hi(Ra,"onSelect"),0ir||(e.current=Fa[ir],Fa[ir]=null,ir--)}function ne(e,t){ir++,Fa[ir]=e.current,e.current=t}var pn={},Ae=yn(pn),We=yn(!1),Mn=pn;function br(e,t){var n=e.type.contextTypes;if(!n)return pn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Qe(e){return e=e.childContextTypes,e!=null}function Ui(){ie(We),ie(Ae)}function Kf(e,t,n){if(Ae.current!==pn)throw Error($(168));ne(Ae,t),ne(We,n)}function Wp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error($(108,f1(e)||"Unknown",o));return fe({},n,r)}function zi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pn,Mn=Ae.current,ne(Ae,e),ne(We,We.current),!0}function Uf(e,t,n){var r=e.stateNode;if(!r)throw Error($(169));n?(e=Wp(e,t,Mn),r.__reactInternalMemoizedMergedChildContext=e,ie(We),ie(Ae),ne(Ae,e)):ie(We),ne(We,n)}var Ot=null,_l=!1,Rs=!1;function Qp(e){Ot===null?Ot=[e]:Ot.push(e)}function Nx(e){_l=!0,Qp(e)}function xn(){if(!Rs&&Ot!==null){Rs=!0;var e=0,t=Y;try{var n=Ot;for(Y=1;e>=l,o-=l,Ft=1<<32-xt(t)+o|n<v?(L=_,_=null):L=_.sibling;var N=d(y,_,x[v],S);if(N===null){_===null&&(_=L);break}e&&_&&N.alternate===null&&t(y,_),m=i(N,m,v),C===null?T=N:C.sibling=N,C=N,_=L}if(v===x.length)return n(y,_),le&&Sn(y,v),T;if(_===null){for(;vv?(L=_,_=null):L=_.sibling;var P=d(y,_,N.value,S);if(P===null){_===null&&(_=L);break}e&&_&&P.alternate===null&&t(y,_),m=i(P,m,v),C===null?T=P:C.sibling=P,C=P,_=L}if(N.done)return n(y,_),le&&Sn(y,v),T;if(_===null){for(;!N.done;v++,N=x.next())N=f(y,N.value,S),N!==null&&(m=i(N,m,v),C===null?T=N:C.sibling=N,C=N);return le&&Sn(y,v),T}for(_=r(y,_);!N.done;v++,N=x.next())N=h(_,y,v,N.value,S),N!==null&&(e&&N.alternate!==null&&_.delete(N.key===null?v:N.key),m=i(N,m,v),C===null?T=N:C.sibling=N,C=N);return e&&_.forEach(function(D){return t(y,D)}),le&&Sn(y,v),T}function w(y,m,x,S){if(typeof x=="object"&&x!==null&&x.type===er&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Go:e:{for(var T=x.key,C=m;C!==null;){if(C.key===T){if(T=x.type,T===er){if(C.tag===7){n(y,C.sibling),m=o(C,x.props.children),m.return=y,y=m;break e}}else if(C.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Xt&&Xf(T)===C.type){n(y,C.sibling),m=o(C,x.props),m.ref=jr(y,C,x),m.return=y,y=m;break e}n(y,C);break}else t(y,C);C=C.sibling}x.type===er?(m=$n(x.props.children,y.mode,S,x.key),m.return=y,y=m):(S=ki(x.type,x.key,x.props,null,y.mode,S),S.ref=jr(y,m,x),S.return=y,y=S)}return l(y);case Jn:e:{for(C=x.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(y,m.sibling),m=o(m,x.children||[]),m.return=y,y=m;break e}else{n(y,m);break}else t(y,m);m=m.sibling}m=Ds(x,y.mode,S),m.return=y,y=m}return l(y);case Xt:return C=x._init,w(y,m,C(x._payload),S)}if(Wr(x))return E(y,m,x,S);if(Mr(x))return b(y,m,x,S);ri(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(n(y,m.sibling),m=o(m,x),m.return=y,y=m):(n(y,m),m=Fs(x,y.mode,S),m.return=y,y=m),l(y)):n(y,m)}return w}var Sr=nm(!0),rm=nm(!1),Oo={},Lt=yn(Oo),Eo=yn(Oo),bo=yn(Oo);function Nn(e){if(e===Oo)throw Error($(174));return e}function pc(e,t){switch(ne(bo,t),ne(Eo,e),ne(Lt,Oo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ea(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ea(t,e)}ie(Lt),ne(Lt,t)}function Cr(){ie(Lt),ie(Eo),ie(bo)}function om(e){Nn(bo.current);var t=Nn(Lt.current),n=Ea(t,e.type);t!==n&&(ne(Eo,e),ne(Lt,n))}function mc(e){Eo.current===e&&(ie(Lt),ie(Eo))}var ae=yn(0);function Xi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ls=[];function gc(){for(var e=0;en?n:4,e(!0);var r=$s.transition;$s.transition={};try{e(!1),t()}finally{Y=n,$s.transition=r}}function Em(){return dt().memoizedState}function $x(e,t,n){var r=fn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bm(e))wm(t,n);else if(n=Zp(e,t,n,r),n!==null){var o=Be();Et(n,e,r,o),Sm(n,t,r)}}function Ix(e,t,n){var r=fn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bm(e))wm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,bt(s,l)){var a=t.interleaved;a===null?(o.next=o,dc(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Zp(e,t,o,r),n!==null&&(o=Be(),Et(n,e,r,o),Sm(n,t,r))}}function bm(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function wm(e,t){oo=Yi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Sm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zu(e,n)}}var Zi={readContext:ft,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useInsertionEffect:Le,useLayoutEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useMutableSource:Le,useSyncExternalStore:Le,useId:Le,unstable_isNewReconciler:!1},Mx={readContext:ft,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:Zf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ti(4194308,4,mm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ti(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ti(4,2,e,t)},useMemo:function(e,t){var n=Tt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Tt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=$x.bind(null,ce,e),[r.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:Yf,useDebugValue:bc,useDeferredValue:function(e){return Tt().memoizedState=e},useTransition:function(){var e=Yf(!1),t=e[0];return e=Lx.bind(null,e[1]),Tt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ce,o=Tt();if(le){if(n===void 0)throw Error($(407));n=n()}else{if(n=t(),Ce===null)throw Error($(349));On&30||sm(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Zf(um.bind(null,r,i,e),[e]),r.flags|=2048,Co(9,am.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Tt(),t=Ce.identifierPrefix;if(le){var n=Dt,r=Ft;n=(r&~(1<<32-xt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=wo++,0")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{ms=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gr(e):""}function f1(e){switch(e.tag){case 5:return Gr(e.type);case 16:return Gr("Lazy");case 13:return Gr("Suspense");case 19:return Gr("SuspenseList");case 0:case 2:case 15:return e=gs(e.type,!1),e;case 11:return e=gs(e.type.render,!1),e;case 1:return e=gs(e.type,!0),e;default:return""}}function ma(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case er:return"Fragment";case Jn:return"Portal";case da:return"Profiler";case Wu:return"StrictMode";case ha:return"Suspense";case pa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case np:return(e.displayName||"Context")+".Consumer";case tp:return(e._context.displayName||"Context")+".Provider";case Qu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qu:return t=e.displayName||null,t!==null?t:ma(e.type)||"Memo";case Xt:t=e._payload,e=e._init;try{return ma(e(t))}catch{}}return null}function d1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ma(t);case 8:return t===Wu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function hn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function op(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function h1(e){var t=op(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wo(e){e._valueTracker||(e._valueTracker=h1(e))}function ip(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=op(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Mi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ga(e,t){var n=t.checked;return fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function mf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=hn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function lp(e,t){t=t.checked,t!=null&&Gu(e,"checked",t,!1)}function va(e,t){lp(e,t);var n=hn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ya(e,t.type,n):t.hasOwnProperty("defaultValue")&&ya(e,t.type,hn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ya(e,t,n){(t!=="number"||Mi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wr=Array.isArray;function hr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Qo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function uo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},p1=["Webkit","ms","Moz","O"];Object.keys(Jr).forEach(function(e){p1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jr[t]=Jr[e]})});function cp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Jr.hasOwnProperty(e)&&Jr[e]?(""+t).trim():t+"px"}function fp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=cp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var m1=fe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ba(e,t){if(t){if(m1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error($(61))}if(t.style!=null&&typeof t.style!="object")throw Error($(62))}}function wa(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Sa=null;function Xu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ca=null,pr=null,mr=null;function xf(e){if(e=Ao(e)){if(typeof Ca!="function")throw Error($(280));var t=e.stateNode;t&&(t=Tl(t),Ca(e.stateNode,e.type,t))}}function dp(e){pr?mr?mr.push(e):mr=[e]:pr=e}function hp(){if(pr){var e=pr,t=mr;if(mr=pr=null,xf(e),t)for(e=0;e>>=0,e===0?32:31-(_1(e)/P1|0)|0}var qo=64,Xo=4194304;function Qr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Di(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=Qr(s):(i&=l,i!==0&&(r=Qr(i)))}else l=n&~o,l!==0?r=Qr(l):i!==0&&(r=Qr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Io(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xt(t),e[t]=n}function L1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=to),Nf=String.fromCharCode(32),kf=!1;function Ip(e,t){switch(e){case"keyup":return ix.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tr=!1;function sx(e,t){switch(e){case"compositionend":return Mp(t);case"keypress":return t.which!==32?null:(kf=!0,Nf);case"textInput":return e=t.data,e===Nf&&kf?null:e;default:return null}}function ax(e,t){if(tr)return e==="compositionend"||!oc&&Ip(e,t)?(e=Lp(),bi=tc=tn=null,tr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=If(n)}}function Dp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jp(){for(var e=window,t=Mi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mi(e.document)}return t}function ic(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function vx(e){var t=jp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Dp(n.ownerDocument.documentElement,n)){if(r!==null&&ic(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Mf(n,i);var l=Mf(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,nr=null,Ra=null,ro=null,La=!1;function Af(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;La||nr==null||nr!==Mi(r)||(r=nr,"selectionStart"in r&&ic(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ro&&go(ro,r)||(ro=r,r=Hi(Ra,"onSelect"),0ir||(e.current=Fa[ir],Fa[ir]=null,ir--)}function ne(e,t){ir++,Fa[ir]=e.current,e.current=t}var pn={},Ae=yn(pn),We=yn(!1),Mn=pn;function br(e,t){var n=e.type.contextTypes;if(!n)return pn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Qe(e){return e=e.childContextTypes,e!=null}function Ui(){ie(We),ie(Ae)}function Kf(e,t,n){if(Ae.current!==pn)throw Error($(168));ne(Ae,t),ne(We,n)}function Qp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error($(108,d1(e)||"Unknown",o));return fe({},n,r)}function zi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pn,Mn=Ae.current,ne(Ae,e),ne(We,We.current),!0}function Uf(e,t,n){var r=e.stateNode;if(!r)throw Error($(169));n?(e=Qp(e,t,Mn),r.__reactInternalMemoizedMergedChildContext=e,ie(We),ie(Ae),ne(Ae,e)):ie(We),ne(We,n)}var Ot=null,_l=!1,Rs=!1;function qp(e){Ot===null?Ot=[e]:Ot.push(e)}function kx(e){_l=!0,qp(e)}function xn(){if(!Rs&&Ot!==null){Rs=!0;var e=0,t=Y;try{var n=Ot;for(Y=1;e>=l,o-=l,Ft=1<<32-xt(t)+o|n<v?(L=_,_=null):L=_.sibling;var N=d(y,_,x[v],S);if(N===null){_===null&&(_=L);break}e&&_&&N.alternate===null&&t(y,_),m=i(N,m,v),C===null?T=N:C.sibling=N,C=N,_=L}if(v===x.length)return n(y,_),le&&Sn(y,v),T;if(_===null){for(;vv?(L=_,_=null):L=_.sibling;var P=d(y,_,N.value,S);if(P===null){_===null&&(_=L);break}e&&_&&P.alternate===null&&t(y,_),m=i(P,m,v),C===null?T=P:C.sibling=P,C=P,_=L}if(N.done)return n(y,_),le&&Sn(y,v),T;if(_===null){for(;!N.done;v++,N=x.next())N=f(y,N.value,S),N!==null&&(m=i(N,m,v),C===null?T=N:C.sibling=N,C=N);return le&&Sn(y,v),T}for(_=r(y,_);!N.done;v++,N=x.next())N=h(_,y,v,N.value,S),N!==null&&(e&&N.alternate!==null&&_.delete(N.key===null?v:N.key),m=i(N,m,v),C===null?T=N:C.sibling=N,C=N);return e&&_.forEach(function(D){return t(y,D)}),le&&Sn(y,v),T}function w(y,m,x,S){if(typeof x=="object"&&x!==null&&x.type===er&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Go:e:{for(var T=x.key,C=m;C!==null;){if(C.key===T){if(T=x.type,T===er){if(C.tag===7){n(y,C.sibling),m=o(C,x.props.children),m.return=y,y=m;break e}}else if(C.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Xt&&Xf(T)===C.type){n(y,C.sibling),m=o(C,x.props),m.ref=jr(y,C,x),m.return=y,y=m;break e}n(y,C);break}else t(y,C);C=C.sibling}x.type===er?(m=$n(x.props.children,y.mode,S,x.key),m.return=y,y=m):(S=ki(x.type,x.key,x.props,null,y.mode,S),S.ref=jr(y,m,x),S.return=y,y=S)}return l(y);case Jn:e:{for(C=x.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(y,m.sibling),m=o(m,x.children||[]),m.return=y,y=m;break e}else{n(y,m);break}else t(y,m);m=m.sibling}m=Ds(x,y.mode,S),m.return=y,y=m}return l(y);case Xt:return C=x._init,w(y,m,C(x._payload),S)}if(Wr(x))return E(y,m,x,S);if(Mr(x))return b(y,m,x,S);ri(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(n(y,m.sibling),m=o(m,x),m.return=y,y=m):(n(y,m),m=Fs(x,y.mode,S),m.return=y,y=m),l(y)):n(y,m)}return w}var Sr=rm(!0),om=rm(!1),Oo={},Lt=yn(Oo),Eo=yn(Oo),bo=yn(Oo);function Nn(e){if(e===Oo)throw Error($(174));return e}function pc(e,t){switch(ne(bo,t),ne(Eo,e),ne(Lt,Oo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ea(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ea(t,e)}ie(Lt),ne(Lt,t)}function Cr(){ie(Lt),ie(Eo),ie(bo)}function im(e){Nn(bo.current);var t=Nn(Lt.current),n=Ea(t,e.type);t!==n&&(ne(Eo,e),ne(Lt,n))}function mc(e){Eo.current===e&&(ie(Lt),ie(Eo))}var ae=yn(0);function Xi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ls=[];function gc(){for(var e=0;en?n:4,e(!0);var r=$s.transition;$s.transition={};try{e(!1),t()}finally{Y=n,$s.transition=r}}function bm(){return dt().memoizedState}function Ix(e,t,n){var r=fn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},wm(e))Sm(t,n);else if(n=Jp(e,t,n,r),n!==null){var o=Be();Et(n,e,r,o),Cm(n,t,r)}}function Mx(e,t,n){var r=fn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wm(e))Sm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,bt(s,l)){var a=t.interleaved;a===null?(o.next=o,dc(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Jp(e,t,o,r),n!==null&&(o=Be(),Et(n,e,r,o),Cm(n,t,r))}}function wm(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function Sm(e,t){oo=Yi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Cm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zu(e,n)}}var Zi={readContext:ft,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useInsertionEffect:Le,useLayoutEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useMutableSource:Le,useSyncExternalStore:Le,useId:Le,unstable_isNewReconciler:!1},Ax={readContext:ft,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:Zf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ti(4194308,4,gm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ti(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ti(4,2,e,t)},useMemo:function(e,t){var n=Tt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Tt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ix.bind(null,ce,e),[r.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:Yf,useDebugValue:bc,useDeferredValue:function(e){return Tt().memoizedState=e},useTransition:function(){var e=Yf(!1),t=e[0];return e=$x.bind(null,e[1]),Tt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ce,o=Tt();if(le){if(n===void 0)throw Error($(407));n=n()}else{if(n=t(),Ce===null)throw Error($(349));On&30||am(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Zf(cm.bind(null,r,i,e),[e]),r.flags|=2048,Co(9,um.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Tt(),t=Ce.identifierPrefix;if(le){var n=Dt,r=Ft;n=(r&~(1<<32-xt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=wo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[kt]=t,e[xo]=r,$m(e,t,!1,!1),t.stateNode=e;e:{switch(l=wa(n,r),n){case"dialog":re("cancel",e),re("close",e),o=r;break;case"iframe":case"object":case"embed":re("load",e),o=r;break;case"video":case"audio":for(o=0;o_r&&(t.flags|=128,r=!0,Br(i,!1),t.lanes=4194304)}else{if(!r)if(e=Xi(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Br(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!le)return $e(t),null}else 2*he()-i.renderingStartTime>_r&&n!==1073741824&&(t.flags|=128,r=!0,Br(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=he(),t.sibling=null,n=ae.current,ne(ae,r?n&1|2:n&1),t):($e(t),null);case 22:case 23:return Pc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ye&1073741824&&($e(t),t.subtreeFlags&6&&(t.flags|=8192)):$e(t),null;case 24:return null;case 25:return null}throw Error($(156,t.tag))}function Kx(e,t){switch(sc(t),t.tag){case 1:return Qe(t.type)&&Ui(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cr(),ie(We),ie(Ae),gc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return mc(t),null;case 13:if(ie(ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($(340));wr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(ae),null;case 4:return Cr(),null;case 10:return fc(t.type._context),null;case 22:case 23:return Pc(),null;case 24:return null;default:return null}}var ii=!1,Ie=!1,Ux=typeof WeakSet=="function"?WeakSet:Set,F=null;function ur(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){de(e,t,r)}else n.current=null}function qa(e,t,n){try{n()}catch(r){de(e,t,r)}}var sd=!1;function zx(e,t){if($a=ji,e=Dp(),ic(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||o!==0&&f.nodeType!==3||(s=l+o),f!==i||r!==0&&f.nodeType!==3||(a=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===o&&(s=l),d===i&&++c===r&&(a=l),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ia={focusedElem:e,selectionRange:n},ji=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var E=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var b=E.memoizedProps,w=E.memoizedState,y=t.stateNode,m=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:mt(t.type,b),w);y.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(S){de(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return E=sd,sd=!1,E}function io(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&qa(t,n,i)}o=o.next}while(o!==r)}}function kl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Xa(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Am(e){var t=e.alternate;t!==null&&(e.alternate=null,Am(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[kt],delete t[xo],delete t[Oa],delete t[_x],delete t[Px])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Om(e){return e.tag===5||e.tag===3||e.tag===4}function ad(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Om(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ya(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ki));else if(r!==4&&(e=e.child,e!==null))for(Ya(e,t,n),e=e.sibling;e!==null;)Ya(e,t,n),e=e.sibling}function Za(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Za(e,t,n),e=e.sibling;e!==null;)Za(e,t,n),e=e.sibling}var Pe=null,gt=!1;function Qt(e,t,n){for(n=n.child;n!==null;)Fm(e,t,n),n=n.sibling}function Fm(e,t,n){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(bl,n)}catch{}switch(n.tag){case 5:Ie||ur(n,t);case 6:var r=Pe,o=gt;Pe=null,Qt(e,t,n),Pe=r,gt=o,Pe!==null&&(gt?(e=Pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pe.removeChild(n.stateNode));break;case 18:Pe!==null&&(gt?(e=Pe,n=n.stateNode,e.nodeType===8?ks(e.parentNode,n):e.nodeType===1&&ks(e,n),po(e)):ks(Pe,n.stateNode));break;case 4:r=Pe,o=gt,Pe=n.stateNode.containerInfo,gt=!0,Qt(e,t,n),Pe=r,gt=o;break;case 0:case 11:case 14:case 15:if(!Ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&qa(n,t,l),o=o.next}while(o!==r)}Qt(e,t,n);break;case 1:if(!Ie&&(ur(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){de(n,t,s)}Qt(e,t,n);break;case 21:Qt(e,t,n);break;case 22:n.mode&1?(Ie=(r=Ie)||n.memoizedState!==null,Qt(e,t,n),Ie=r):Qt(e,t,n);break;default:Qt(e,t,n)}}function ud(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ux),t.forEach(function(r){var o=Jx.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function pt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=he()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Gx(r/1960))-r,10e?16:e,nn===null)var r=!1;else{if(e=nn,nn=null,tl=0,Q&6)throw Error($(331));var o=Q;for(Q|=4,F=e.current;F!==null;){var i=F,l=i.child;if(F.flags&16){var s=i.deletions;if(s!==null){for(var a=0;ahe()-Tc?Ln(e,0):Cc|=n),qe(e,t)}function Vm(e,t){t===0&&(e.mode&1?(t=Xo,Xo<<=1,!(Xo&130023424)&&(Xo=4194304)):t=1);var n=Be();e=Vt(e,t),e!==null&&(Io(e,t,n),qe(e,n))}function Zx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Vm(e,n)}function Jx(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error($(314))}r!==null&&r.delete(t),Vm(e,n)}var Gm;Gm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||We.current)Ge=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ge=!1,Bx(e,t,n);Ge=!!(e.flags&131072)}else Ge=!1,le&&t.flags&1048576&&qp(t,Gi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;_i(e,t),e=t.pendingProps;var o=br(t,Ae.current);vr(t,n),o=yc(null,t,r,e,o,n);var i=xc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qe(r)?(i=!0,zi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,hc(t),o.updater=Pl,t.stateNode=o,o._reactInternals=t,Ka(t,r,e,n),t=Va(null,t,r,!0,i,n)):(t.tag=0,le&&i&&lc(t),De(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(_i(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=tE(r),e=mt(r,e),o){case 0:t=za(null,t,r,e,n);break e;case 1:t=od(null,t,r,e,n);break e;case 11:t=nd(null,t,r,e,n);break e;case 14:t=rd(null,t,r,mt(r.type,e),n);break e}throw Error($(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),za(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),od(e,t,r,o,n);case 3:e:{if(km(t),e===null)throw Error($(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Jp(e,t),qi(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Tr(Error($(423)),t),t=id(e,t,r,n,o);break e}else if(r!==o){o=Tr(Error($(424)),t),t=id(e,t,r,n,o);break e}else for(Je=an(t.stateNode.containerInfo.firstChild),et=t,le=!0,yt=null,n=rm(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wr(),r===o){t=Gt(e,t,n);break e}De(e,t,r,n)}t=t.child}return t;case 5:return om(t),e===null&&ja(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Ma(r,o)?l=null:i!==null&&Ma(r,i)&&(t.flags|=32),Nm(e,t),De(e,t,l,n),t.child;case 6:return e===null&&ja(t),null;case 13:return Rm(e,t,n);case 4:return pc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Sr(t,null,r,n):De(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),nd(e,t,r,o,n);case 7:return De(e,t,t.pendingProps,n),t.child;case 8:return De(e,t,t.pendingProps.children,n),t.child;case 12:return De(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,ne(Wi,r._currentValue),r._currentValue=l,i!==null)if(bt(i.value,l)){if(i.children===o.children&&!We.current){t=Gt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Kt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ba(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error($(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Ba(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}De(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,vr(t,n),o=ft(o),r=r(o),t.flags|=1,De(e,t,r,n),t.child;case 14:return r=t.type,o=mt(r,t.pendingProps),o=mt(r.type,o),rd(e,t,r,o,n);case 15:return _m(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),_i(e,t),t.tag=1,Qe(r)?(e=!0,zi(t)):e=!1,vr(t,n),tm(t,r,o),Ka(t,r,o,n),Va(null,t,r,!0,e,n);case 19:return Lm(e,t,n);case 22:return Pm(e,t,n)}throw Error($(156,t.tag))};function Wm(e,t){return xp(e,t)}function eE(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ut(e,t,n,r){return new eE(e,t,n,r)}function kc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function tE(e){if(typeof e=="function")return kc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Qu)return 11;if(e===qu)return 14}return 2}function dn(e,t){var n=e.alternate;return n===null?(n=ut(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ki(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")kc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case er:return $n(n.children,o,i,t);case Wu:l=8,o|=8;break;case da:return e=ut(12,n,t,o|2),e.elementType=da,e.lanes=i,e;case ha:return e=ut(13,n,t,o),e.elementType=ha,e.lanes=i,e;case pa:return e=ut(19,n,t,o),e.elementType=pa,e.lanes=i,e;case np:return Ll(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ep:l=10;break e;case tp:l=9;break e;case Qu:l=11;break e;case qu:l=14;break e;case Xt:l=16,r=null;break e}throw Error($(130,e==null?e:typeof e,""))}return t=ut(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function $n(e,t,n,r){return e=ut(7,e,r,t),e.lanes=n,e}function Ll(e,t,n,r){return e=ut(22,e,r,t),e.elementType=np,e.lanes=n,e.stateNode={isHidden:!1},e}function Fs(e,t,n){return e=ut(6,e,null,t),e.lanes=n,e}function Ds(e,t,n){return t=ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function nE(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ys(0),this.expirationTimes=ys(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ys(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Rc(e,t,n,r,o,i,l,s,a){return e=new nE(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ut(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},hc(i),e}function rE(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ym)}catch(e){console.error(e)}}Ym(),qh.exports=nt;var Mc=qh.exports;const aE=ju(Mc);var vd=Mc;ca.createRoot=vd.createRoot,ca.hydrateRoot=vd.hydrateRoot;const uE="modulepreload",cE=function(e){return"/"+e},yd={},Qn=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=cE(i),i in yd)return;yd[i]=!0;const l=i.endsWith(".css"),s=l?'[rel="stylesheet"]':"";if(!!r)for(let c=o.length-1;c>=0;c--){const f=o[c];if(f.href===i&&(!l||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=l?"stylesheet":uE,l||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),l)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i})};var Zm={exports:{}};/*! +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function As(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ua(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Dx=typeof WeakMap=="function"?WeakMap:Map;function Tm(e,t,n){n=Kt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){el||(el=!0,Ja=r),Ua(e,t)},n}function _m(e,t,n){n=Kt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ua(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ua(e,t),typeof r!="function"&&(cn===null?cn=new Set([this]):cn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Jf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Dx;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Zx.bind(null,e,t,n),t.then(e,e))}function ed(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function td(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Kt(-1,1),t.tag=2,un(n,t,1))),n.lanes|=1),e)}var jx=Wt.ReactCurrentOwner,Ge=!1;function De(e,t,n,r){t.child=e===null?om(t,null,n,r):Sr(t,e.child,n,r)}function nd(e,t,n,r,o){n=n.render;var i=t.ref;return vr(t,o),r=yc(e,t,n,r,i,o),n=xc(),e!==null&&!Ge?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gt(e,t,o)):(le&&n&&lc(t),t.flags|=1,De(e,t,r,o),t.child)}function rd(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!kc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Pm(e,t,i,r,o)):(e=ki(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:go,n(l,r)&&e.ref===t.ref)return Gt(e,t,o)}return t.flags|=1,e=dn(i,r),e.ref=t.ref,e.return=t,t.child=e}function Pm(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(go(i,r)&&e.ref===t.ref)if(Ge=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Ge=!0);else return t.lanes=e.lanes,Gt(e,t,o)}return za(e,t,n,r,o)}function Nm(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ne(cr,Ye),Ye|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ne(cr,Ye),Ye|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ne(cr,Ye),Ye|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ne(cr,Ye),Ye|=r;return De(e,t,o,n),t.child}function km(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function za(e,t,n,r,o){var i=Qe(n)?Mn:Ae.current;return i=br(t,i),vr(t,o),n=yc(e,t,n,r,i,o),r=xc(),e!==null&&!Ge?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gt(e,t,o)):(le&&r&&lc(t),t.flags|=1,De(e,t,n,o),t.child)}function od(e,t,n,r,o){if(Qe(n)){var i=!0;zi(t)}else i=!1;if(vr(t,o),t.stateNode===null)_i(e,t),nm(t,n,r),Ka(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var a=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=ft(u):(u=Qe(n)?Mn:Ae.current,u=br(t,u));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";f||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||a!==u)&&qf(t,l,r,u),Yt=!1;var d=t.memoizedState;l.state=d,qi(t,r,l,o),a=t.memoizedState,s!==r||d!==a||We.current||Yt?(typeof c=="function"&&(Ha(t,n,c,r),a=t.memoizedState),(s=Yt||Qf(t,n,s,r,d,a,u))?(f||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=u,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,em(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:mt(t.type,s),l.props=u,f=t.pendingProps,d=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=ft(a):(a=Qe(n)?Mn:Ae.current,a=br(t,a));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==f||d!==a)&&qf(t,l,r,a),Yt=!1,d=t.memoizedState,l.state=d,qi(t,r,l,o);var E=t.memoizedState;s!==f||d!==E||We.current||Yt?(typeof h=="function"&&(Ha(t,n,h,r),E=t.memoizedState),(u=Yt||Qf(t,n,u,r,d,E,a)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,E,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,E,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=E),l.props=r,l.state=E,l.context=a,r=u):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Va(e,t,n,r,i,o)}function Va(e,t,n,r,o,i){km(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&Uf(t,n,!1),Gt(e,t,i);r=t.stateNode,jx.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Sr(t,e.child,null,i),t.child=Sr(t,null,s,i)):De(e,t,s,i),t.memoizedState=r.state,o&&Uf(t,n,!0),t.child}function Rm(e){var t=e.stateNode;t.pendingContext?Kf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Kf(e,t.context,!1),pc(e,t.containerInfo)}function id(e,t,n,r,o){return wr(),ac(o),t.flags|=256,De(e,t,n,r),t.child}var Ga={dehydrated:null,treeContext:null,retryLane:0};function Wa(e){return{baseLanes:e,cachePool:null,transitions:null}}function Lm(e,t,n){var r=t.pendingProps,o=ae.current,i=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ne(ae,o&1),e===null)return ja(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=Ll(l,r,0,null),e=$n(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Wa(n),t.memoizedState=Ga,e):wc(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return Bx(e,t,l,r,s,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,s=o.sibling;var a={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=dn(o,a),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=dn(s,i):(i=$n(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?Wa(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Ga,r}return i=e.child,e=i.sibling,r=dn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function wc(e,t){return t=Ll({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function oi(e,t,n,r){return r!==null&&ac(r),Sr(t,e.child,null,n),e=wc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Bx(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=As(Error($(422))),oi(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Ll({mode:"visible",children:r.children},o,0,null),i=$n(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Sr(t,e.child,null,l),t.child.memoizedState=Wa(l),t.memoizedState=Ga,i);if(!(t.mode&1))return oi(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error($(419)),r=As(i,r,void 0),oi(e,t,l,r)}if(s=(l&e.childLanes)!==0,Ge||s){if(r=Ce,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Vt(e,o),Et(r,e,o,-1))}return Nc(),r=As(Error($(421))),oi(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Jx.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Je=an(o.nextSibling),et=t,le=!0,yt=null,e!==null&&(st[at++]=Ft,st[at++]=Dt,st[at++]=An,Ft=e.id,Dt=e.overflow,An=t),t=wc(t,r.children),t.flags|=4096,t)}function ld(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ba(e.return,t,n)}function Os(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function $m(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(De(e,t,r.children,n),r=ae.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ld(e,n,t);else if(e.tag===19)ld(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ne(ae,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Xi(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Os(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Xi(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Os(t,!0,n,null,i);break;case"together":Os(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function _i(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Fn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error($(153));if(t.child!==null){for(e=t.child,n=dn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=dn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Hx(e,t,n){switch(t.tag){case 3:Rm(t),wr();break;case 5:im(t);break;case 1:Qe(t.type)&&zi(t);break;case 4:pc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ne(Wi,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ne(ae,ae.current&1),t.flags|=128,null):n&t.child.childLanes?Lm(e,t,n):(ne(ae,ae.current&1),e=Gt(e,t,n),e!==null?e.sibling:null);ne(ae,ae.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return $m(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ne(ae,ae.current),r)break;return null;case 22:case 23:return t.lanes=0,Nm(e,t,n)}return Gt(e,t,n)}var Im,Qa,Mm,Am;Im=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Qa=function(){};Mm=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Nn(Lt.current);var i=null;switch(n){case"input":o=ga(e,o),r=ga(e,r),i=[];break;case"select":o=fe({},o,{value:void 0}),r=fe({},r,{value:void 0}),i=[];break;case"textarea":o=xa(e,o),r=xa(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ki)}ba(n,r);var l;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(ao.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(l in s)!s.hasOwnProperty(l)||a&&a.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in a)a.hasOwnProperty(l)&&s[l]!==a[l]&&(n||(n={}),n[l]=a[l])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(ao.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&re("scroll",e),i||s===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Am=function(e,t,n,r){n!==r&&(t.flags|=4)};function Br(e,t){if(!le)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $e(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Kx(e,t,n){var r=t.pendingProps;switch(sc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $e(t),null;case 1:return Qe(t.type)&&Ui(),$e(t),null;case 3:return r=t.stateNode,Cr(),ie(We),ie(Ae),gc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ni(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,yt!==null&&(nu(yt),yt=null))),Qa(e,t),$e(t),null;case 5:mc(t);var o=Nn(bo.current);if(n=t.type,e!==null&&t.stateNode!=null)Mm(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error($(166));return $e(t),null}if(e=Nn(Lt.current),ni(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[kt]=t,r[xo]=i,e=(t.mode&1)!==0,n){case"dialog":re("cancel",r),re("close",r);break;case"iframe":case"object":case"embed":re("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[kt]=t,e[xo]=r,Im(e,t,!1,!1),t.stateNode=e;e:{switch(l=wa(n,r),n){case"dialog":re("cancel",e),re("close",e),o=r;break;case"iframe":case"object":case"embed":re("load",e),o=r;break;case"video":case"audio":for(o=0;o_r&&(t.flags|=128,r=!0,Br(i,!1),t.lanes=4194304)}else{if(!r)if(e=Xi(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Br(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!le)return $e(t),null}else 2*he()-i.renderingStartTime>_r&&n!==1073741824&&(t.flags|=128,r=!0,Br(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=he(),t.sibling=null,n=ae.current,ne(ae,r?n&1|2:n&1),t):($e(t),null);case 22:case 23:return Pc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ye&1073741824&&($e(t),t.subtreeFlags&6&&(t.flags|=8192)):$e(t),null;case 24:return null;case 25:return null}throw Error($(156,t.tag))}function Ux(e,t){switch(sc(t),t.tag){case 1:return Qe(t.type)&&Ui(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cr(),ie(We),ie(Ae),gc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return mc(t),null;case 13:if(ie(ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($(340));wr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(ae),null;case 4:return Cr(),null;case 10:return fc(t.type._context),null;case 22:case 23:return Pc(),null;case 24:return null;default:return null}}var ii=!1,Ie=!1,zx=typeof WeakSet=="function"?WeakSet:Set,F=null;function ur(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){de(e,t,r)}else n.current=null}function qa(e,t,n){try{n()}catch(r){de(e,t,r)}}var sd=!1;function Vx(e,t){if($a=ji,e=jp(),ic(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||o!==0&&f.nodeType!==3||(s=l+o),f!==i||r!==0&&f.nodeType!==3||(a=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===o&&(s=l),d===i&&++c===r&&(a=l),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ia={focusedElem:e,selectionRange:n},ji=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var E=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var b=E.memoizedProps,w=E.memoizedState,y=t.stateNode,m=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:mt(t.type,b),w);y.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(S){de(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return E=sd,sd=!1,E}function io(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&qa(t,n,i)}o=o.next}while(o!==r)}}function kl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Xa(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Om(e){var t=e.alternate;t!==null&&(e.alternate=null,Om(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[kt],delete t[xo],delete t[Oa],delete t[Px],delete t[Nx])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Fm(e){return e.tag===5||e.tag===3||e.tag===4}function ad(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ya(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ki));else if(r!==4&&(e=e.child,e!==null))for(Ya(e,t,n),e=e.sibling;e!==null;)Ya(e,t,n),e=e.sibling}function Za(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Za(e,t,n),e=e.sibling;e!==null;)Za(e,t,n),e=e.sibling}var Pe=null,gt=!1;function Qt(e,t,n){for(n=n.child;n!==null;)Dm(e,t,n),n=n.sibling}function Dm(e,t,n){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(bl,n)}catch{}switch(n.tag){case 5:Ie||ur(n,t);case 6:var r=Pe,o=gt;Pe=null,Qt(e,t,n),Pe=r,gt=o,Pe!==null&&(gt?(e=Pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pe.removeChild(n.stateNode));break;case 18:Pe!==null&&(gt?(e=Pe,n=n.stateNode,e.nodeType===8?ks(e.parentNode,n):e.nodeType===1&&ks(e,n),po(e)):ks(Pe,n.stateNode));break;case 4:r=Pe,o=gt,Pe=n.stateNode.containerInfo,gt=!0,Qt(e,t,n),Pe=r,gt=o;break;case 0:case 11:case 14:case 15:if(!Ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&qa(n,t,l),o=o.next}while(o!==r)}Qt(e,t,n);break;case 1:if(!Ie&&(ur(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){de(n,t,s)}Qt(e,t,n);break;case 21:Qt(e,t,n);break;case 22:n.mode&1?(Ie=(r=Ie)||n.memoizedState!==null,Qt(e,t,n),Ie=r):Qt(e,t,n);break;default:Qt(e,t,n)}}function ud(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new zx),t.forEach(function(r){var o=eE.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function pt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=he()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Wx(r/1960))-r,10e?16:e,nn===null)var r=!1;else{if(e=nn,nn=null,tl=0,Q&6)throw Error($(331));var o=Q;for(Q|=4,F=e.current;F!==null;){var i=F,l=i.child;if(F.flags&16){var s=i.deletions;if(s!==null){for(var a=0;ahe()-Tc?Ln(e,0):Cc|=n),qe(e,t)}function Gm(e,t){t===0&&(e.mode&1?(t=Xo,Xo<<=1,!(Xo&130023424)&&(Xo=4194304)):t=1);var n=Be();e=Vt(e,t),e!==null&&(Io(e,t,n),qe(e,n))}function Jx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Gm(e,n)}function eE(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error($(314))}r!==null&&r.delete(t),Gm(e,n)}var Wm;Wm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||We.current)Ge=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ge=!1,Hx(e,t,n);Ge=!!(e.flags&131072)}else Ge=!1,le&&t.flags&1048576&&Xp(t,Gi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;_i(e,t),e=t.pendingProps;var o=br(t,Ae.current);vr(t,n),o=yc(null,t,r,e,o,n);var i=xc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qe(r)?(i=!0,zi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,hc(t),o.updater=Pl,t.stateNode=o,o._reactInternals=t,Ka(t,r,e,n),t=Va(null,t,r,!0,i,n)):(t.tag=0,le&&i&&lc(t),De(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(_i(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=nE(r),e=mt(r,e),o){case 0:t=za(null,t,r,e,n);break e;case 1:t=od(null,t,r,e,n);break e;case 11:t=nd(null,t,r,e,n);break e;case 14:t=rd(null,t,r,mt(r.type,e),n);break e}throw Error($(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),za(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),od(e,t,r,o,n);case 3:e:{if(Rm(t),e===null)throw Error($(387));r=t.pendingProps,i=t.memoizedState,o=i.element,em(e,t),qi(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Tr(Error($(423)),t),t=id(e,t,r,n,o);break e}else if(r!==o){o=Tr(Error($(424)),t),t=id(e,t,r,n,o);break e}else for(Je=an(t.stateNode.containerInfo.firstChild),et=t,le=!0,yt=null,n=om(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wr(),r===o){t=Gt(e,t,n);break e}De(e,t,r,n)}t=t.child}return t;case 5:return im(t),e===null&&ja(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Ma(r,o)?l=null:i!==null&&Ma(r,i)&&(t.flags|=32),km(e,t),De(e,t,l,n),t.child;case 6:return e===null&&ja(t),null;case 13:return Lm(e,t,n);case 4:return pc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Sr(t,null,r,n):De(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),nd(e,t,r,o,n);case 7:return De(e,t,t.pendingProps,n),t.child;case 8:return De(e,t,t.pendingProps.children,n),t.child;case 12:return De(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,ne(Wi,r._currentValue),r._currentValue=l,i!==null)if(bt(i.value,l)){if(i.children===o.children&&!We.current){t=Gt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Kt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ba(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error($(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Ba(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}De(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,vr(t,n),o=ft(o),r=r(o),t.flags|=1,De(e,t,r,n),t.child;case 14:return r=t.type,o=mt(r,t.pendingProps),o=mt(r.type,o),rd(e,t,r,o,n);case 15:return Pm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),_i(e,t),t.tag=1,Qe(r)?(e=!0,zi(t)):e=!1,vr(t,n),nm(t,r,o),Ka(t,r,o,n),Va(null,t,r,!0,e,n);case 19:return $m(e,t,n);case 22:return Nm(e,t,n)}throw Error($(156,t.tag))};function Qm(e,t){return Ep(e,t)}function tE(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ut(e,t,n,r){return new tE(e,t,n,r)}function kc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nE(e){if(typeof e=="function")return kc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Qu)return 11;if(e===qu)return 14}return 2}function dn(e,t){var n=e.alternate;return n===null?(n=ut(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ki(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")kc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case er:return $n(n.children,o,i,t);case Wu:l=8,o|=8;break;case da:return e=ut(12,n,t,o|2),e.elementType=da,e.lanes=i,e;case ha:return e=ut(13,n,t,o),e.elementType=ha,e.lanes=i,e;case pa:return e=ut(19,n,t,o),e.elementType=pa,e.lanes=i,e;case rp:return Ll(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case tp:l=10;break e;case np:l=9;break e;case Qu:l=11;break e;case qu:l=14;break e;case Xt:l=16,r=null;break e}throw Error($(130,e==null?e:typeof e,""))}return t=ut(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function $n(e,t,n,r){return e=ut(7,e,r,t),e.lanes=n,e}function Ll(e,t,n,r){return e=ut(22,e,r,t),e.elementType=rp,e.lanes=n,e.stateNode={isHidden:!1},e}function Fs(e,t,n){return e=ut(6,e,null,t),e.lanes=n,e}function Ds(e,t,n){return t=ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function rE(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ys(0),this.expirationTimes=ys(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ys(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Rc(e,t,n,r,o,i,l,s,a){return e=new rE(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ut(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},hc(i),e}function oE(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Zm)}catch(e){console.error(e)}}Zm(),Xh.exports=nt;var Mc=Xh.exports;const uE=ju(Mc);var vd=Mc;ca.createRoot=vd.createRoot,ca.hydrateRoot=vd.hydrateRoot;const cE="modulepreload",fE=function(e){return"/"+e},yd={},Qn=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=fE(i),i in yd)return;yd[i]=!0;const l=i.endsWith(".css"),s=l?'[rel="stylesheet"]':"";if(!!r)for(let c=o.length-1;c>=0;c--){const f=o[c];if(f.href===i&&(!l||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=l?"stylesheet":cE,l||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),l)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i})};var Jm={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o{const i=new MutationObserver(t);o(i)},[t,n,o]),p.useEffect(()=>{if(!r||!e)return;const{config:i}=n;return r.observe(e,i),()=>{r&&r.disconnect()}},[r,e,n])}function Fo(e,t){e&&t.forEach(n=>{typeof n=="function"?n(e):n&&(n.current=e)})}const pE=p.forwardRef(({title:e,titleAs:t="h3",children:n,className:r,css:o={},defaultExpanded:i=!1,...l},s)=>{const a=p.useId(),u=p.useRef(null),[c,f]=p.useState(!!i),d=p.useCallback(h=>{var E;if(h.find(b=>b.attributeName==="aria-expanded")&&(E=u==null?void 0:u.current)!=null&&E.attributes){const b=u.current.attributes.getNamedItem("aria-expanded");f(b?b.value==="true":!1)}},[u]);return hE(u==null?void 0:u.current,d),g.jsxs("section",{className:R("fr-accordion",r),children:[g.jsx(t,{className:R("fr-accordion__title",o.title),children:g.jsx("button",{...l,ref:h=>Fo(h,[s,u]),className:R("fr-accordion__btn",o.button),"aria-expanded":i,"aria-controls":a,children:p.isValidElement(e)||typeof e=="string"?e:typeof e=="function"?e(c):null})}),g.jsx("div",{className:"fr-collapse",id:a,children:n})]})});function Tn(e,t){return p.Children.toArray(e).filter(n=>p.isValidElement(n)&&n.type===t)}function Ac(e,t){return p.Children.toArray(e).filter(n=>p.isValidElement(n)&&t.includes(n.type))}function mE(e,t){return p.Children.toArray(e).filter(n=>p.isValidElement(n)&&!t.includes(n.type))}p.forwardRef(({className:e,closeMode:t="disallow",description:n,size:r,onClose:o,title:i,css:l={},titleAs:s="h3",variant:a="info",...u},c)=>{const f=p.useRef(null),d=h=>{var E;h.preventDefault(),(E=f.current)==null||E.remove(),o&&o(h)};return g.jsxs("div",{ref:h=>Fo(h,[c,f]),className:R(`fr-alert fr-alert--${a}`,{"fr-alert--sm":r==="sm"},e),...u,children:[i&&g.jsx(s,{className:R("fr-alert__title",l.title),children:i}),n&&g.jsx("p",{className:R(l.description),children:n}),t==="uncontrolled"&&g.jsx("button",{onClick:d,className:R("fr-btn--close fr-btn",l.button),children:"Masquer le message"}),t==="controlled"&&g.jsx("button",{onClick:o,className:R("fr-link--close fr-link",l.button),children:"Masquer le message"})]})});function gE(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function vE(e,t,n){gE(e,t),t.set(e,n)}function Do(e,t,n){let[r,o]=p.useState(e||t),i=p.useRef(e!==void 0),l=e!==void 0;p.useEffect(()=>{let u=i.current;u!==l&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),i.current=l},[l]);let s=l?e:r,a=p.useCallback((u,...c)=>{let f=(d,...h)=>{n&&(Object.is(s,d)||n(d,...h)),l||(s=d)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((d,...h)=>{let E=u(l?s:d,...h);return f(E,...c),l?d:E})):(l||o(u),f(u,...c))},[l,s,n]);return[s,a]}function ru(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const Jm={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},eg={...Jm,customError:!0,valid:!1},Kr={isInvalid:!1,validationDetails:Jm,validationErrors:[]},yE=p.createContext({}),ou="__formValidationState"+Date.now();function tg(e){if(e[ou]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}=e[ou];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}}return xE(e)}function xE(e){let{isInvalid:t,validationState:n,name:r,value:o,builtinValidation:i,validate:l,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let a=t?{isInvalid:!0,validationErrors:[],validationDetails:eg}:null,u=p.useMemo(()=>xd(EE(l,o)),[l,o]);i!=null&&i.validationDetails.valid&&(i=null);let c=p.useContext(yE),f=p.useMemo(()=>r?Array.isArray(r)?r.flatMap(v=>iu(c[v])):iu(c[r]):[],[c,r]),[d,h]=p.useState(c),[E,b]=p.useState(!1);c!==d&&(h(c),b(!1));let w=p.useMemo(()=>xd(E?[]:f),[E,f]),y=p.useRef(Kr),[m,x]=p.useState(Kr),S=p.useRef(Kr),T=()=>{if(!C)return;_(!1);let v=u||i||y.current;js(v,S.current)||(S.current=v,x(v))},[C,_]=p.useState(!1);return p.useEffect(T),{realtimeValidation:a||w||u||i||Kr,displayValidation:s==="native"?a||w||m:a||w||u||i||m,updateValidation(v){s==="aria"&&!js(m,v)?x(v):y.current=v},resetValidation(){let v=Kr;js(v,S.current)||(S.current=v,x(v)),s==="native"&&_(!1),b(!0)},commitValidation(){s==="native"&&_(!0),b(!0)}}}function iu(e){return e?Array.isArray(e)?e:[e]:[]}function EE(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return iu(n)}return[]}function xd(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:eg}:null}function js(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}class bE{build(t,n){return this.context=n,Ed(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let o of t.items)yield*this.getFullNode({value:o},{renderer:n})}else{let o=[];q.Children.forEach(n,l=>{o.push(l)});let i=0;for(let l of o){let s=this.getFullNode({element:l,index:i},{});for(let a of s)i++,yield a}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){var l;let s=(l=i.key)!==null&&l!==void 0?l:i.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){let i=t.element;if(!i&&t.value&&n&&n.renderer){let a=this.cache.get(t.value);if(a&&(!a.shouldInvalidate||!a.shouldInvalidate(this.context))){a.index=t.index,a.parentKey=o?o.key:null,yield a;return}i=n.renderer(t.value)}if(q.isValidElement(i)){let a=i.type;if(typeof a!="function"&&typeof a.getCollectionNode!="function"){let d=typeof i.type=="function"?i.type.name:i.type;throw new Error(`Unknown element <${d}> in collection.`)}let u=a.getCollectionNode(i.props,this.context),c=t.index,f=u.next();for(;!f.done&&f.value;){let d=f.value;t.index=c;let h=d.key;h||(h=d.element?null:this.getKey(i,t,n,r));let E=[...this.getFullNode({...d,key:h,index:c,wrapper:wE(t.wrapper,d.wrapper)},this.getChildState(n,d),r?`${r}${i.key}`:i.key,o)];for(let b of E){if(b.value=d.value||t.value,b.value&&this.cache.set(b.value,b),t.type&&b.type!==t.type)throw new Error(`Unsupported type <${Bs(b.type)}> in <${Bs(o.type)}>. Only <${Bs(t.type)}> is supported.`);c++,yield b}f=u.next(E)}return}if(t.key==null)return;let l=this,s={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:Ed(function*(){if(!t.hasChildNodes)return;let a=0;for(let u of t.childNodes()){u.key!=null&&(u.key=`${s.key}${u.key}`),u.index=a;let c=l.getFullNode(u,l.getChildState(n,u),s.key,s);for(let f of c)a++,yield f}})};yield s}constructor(){this.cache=new WeakMap}}function Ed(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function wE(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Bs(e){return e[0].toUpperCase()+e.slice(1)}function SE(e,t,n){let r=p.useMemo(()=>new bE,[]),{children:o,items:i,collection:l}=e;return p.useMemo(()=>{if(l)return l;let s=r.build({children:o,items:i},n);return t(s)},[r,o,i,l,n,t])}function Ol(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function CE(e){return TE(e,0)}function TE(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function Hs(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...bd(e,t),t],o=[...bd(e,n),n],i=r.slice(0,o.length).findIndex((l,s)=>l!==o[s]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(l=>l===n)>=0?1:(o.findIndex(l=>l===t)>=0,-1)}function bd(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const wd=new WeakMap;function ng(e){let t=wd.get(e);if(t!=null)return t;t=0;let n=r=>{for(let o of r)o.type==="section"?n(Ol(o,e)):t++};return n(e),wd.set(e,t),t}class vt extends Set{constructor(t,n,r){super(t),t instanceof vt?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function _E(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function PE(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,l=p.useRef(!1),[,s]=p.useState(!1),a=p.useRef(null),u=p.useRef(null),[,c]=p.useState(null),f=p.useMemo(()=>Sd(e.selectedKeys),[e.selectedKeys]),d=p.useMemo(()=>Sd(e.defaultSelectedKeys,new vt),[e.defaultSelectedKeys]),[h,E]=Do(f,d,e.onSelectionChange),b=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[w,y]=p.useState(o);o==="replace"&&w==="toggle"&&typeof h=="object"&&h.size===0&&y("replace");let m=p.useRef(o);return p.useEffect(()=>{o!==m.current&&(y(o),m.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:w,setSelectionBehavior:y,get isFocused(){return l.current},setFocused(x){l.current=x,s(x)},get focusedKey(){return a.current},get childFocusStrategy(){return u.current},setFocusedKey(x,S="first"){a.current=x,u.current=S,c(x)},selectedKeys:h,setSelectedKeys(x){(r||!_E(x,h))&&E(x)},disabledKeys:b,disabledBehavior:i}}function Sd(e,t){return e?e==="all"?"all":new vt(e):t}class NE{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Hs(this.collection,r,t)<0)&&(t=r)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Hs(this.collection,r,t)>0)&&(t=r)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let n;if(this.state.selectedKeys==="all")n=new vt([t],t,t);else{let r=this.state.selectedKeys,o=r.anchorKey||t;n=new vt(r,o,t);for(let i of this.getKeyRange(o,r.currentKey||t))n.delete(i);for(let i of this.getKeyRange(t,o))this.canSelectItem(i)&&n.add(i)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?Hs(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){let r=[],o=t;for(;o;){let i=this.collection.getItem(o);if((i&&i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&r.push(o),o===n)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let n=new vt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let n=this.canSelectItem(t)?new vt([t],t,t):new vt;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new vt;for(let r of t)if(r=this.getKey(r),r!=null&&(n.add(r),this.selectionMode==="single"))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r;){if(this.canSelectItem(r)){let o=this.collection.getItem(r);o.type==="item"&&t.push(r),o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n(CE(Ol(o,this.collection)).key)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new vt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}constructor(t,n,r){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null}}class lu{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let n=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let l of i.childNodes)n(l)};for(let i of t)n(i);let r,o=0;for(let[i,l]of this.keyMap)r?(r.nextKey=i,l.prevKey=r.key):(this.firstKey=i,l.prevKey=void 0),l.type==="item"&&(l.index=o++),r=l,r.nextKey=void 0;this.lastKey=r==null?void 0:r.key}}function kE(e){let{filter:t}=e,n=PE(e),r=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=p.useCallback(u=>t?new lu(t(u)):new lu(u),[t]),i=p.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=SE(e,o,i),s=p.useMemo(()=>new NE(l,n),[l,n]);const a=p.useRef(null);return p.useEffect(()=>{if(n.focusedKey!=null&&!l.getItem(n.focusedKey)){const u=a.current.getItem(n.focusedKey),c=[...a.current.getKeys()].map(b=>{const w=a.current.getItem(b);return w.type==="item"?w:null}).filter(b=>b!==null),f=[...l.getKeys()].map(b=>{const w=l.getItem(b);return w.type==="item"?w:null}).filter(b=>b!==null),d=c.length-f.length;let h=Math.min(d>1?Math.max(u.index-d+1,0):u.index,f.length-1),E;for(;h>=0;){if(!s.isDisabled(f[h].key)){E=f[h];break}hu.index&&(h=u.index),h--)}n.setFocusedKey(E?E.key:null)}a.current=l},[l,s,n,n.focusedKey]),{collection:l,disabledKeys:r,selectionManager:s}}function RE(e){var t;let[n,r]=Do(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=p.useMemo(()=>n!=null?[n]:[],[n]),{collection:i,disabledKeys:l,selectionManager:s}=kE({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:u=>{var c;let f=(c=u.values().next().value)!==null&&c!==void 0?c:null;f===n&&e.onSelectionChange&&e.onSelectionChange(f),r(f)}}),a=n!=null?i.getItem(n):null;return{collection:i,disabledKeys:l,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:a}}function LE(e){let[t,n]=Do(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=p.useCallback(()=>{n(!0)},[n]),o=p.useCallback(()=>{n(!1)},[n]),i=p.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}function $E(e){var t,n;let{defaultFilter:r,menuTrigger:o="input",allowsEmptyCollection:i=!1,allowsCustomValue:l,shouldCloseOnBlur:s=!0}=e,[a,u]=p.useState(!1),[c,f]=p.useState(!1),[d,h]=p.useState(null),E=X=>{e.onSelectionChange&&e.onSelectionChange(X),X===m&&(Xe(),M())};var b;let{collection:w,selectionManager:y,selectedKey:m,setSelectedKey:x,selectedItem:S,disabledKeys:T}=RE({...e,onSelectionChange:E,items:(b=e.items)!==null&&b!==void 0?b:e.defaultItems});var C,_;let[v,L]=Do(e.inputValue,(_=(C=e.defaultInputValue)!==null&&C!==void 0?C:(t=w.getItem(m))===null||t===void 0?void 0:t.textValue)!==null&&_!==void 0?_:"",e.onInputChange),N=w,P=p.useMemo(()=>e.items!=null||!r?w:IE(w,v,r),[w,v,r,e.items]),[D,k]=p.useState(P),I=p.useRef("focus"),H=LE({...e,onOpenChange:X=>{e.onOpenChange&&e.onOpenChange(X,X?I.current:void 0),y.setFocused(X),X||y.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),J=(X=null,se)=>{let _e=se==="manual"||se==="focus"&&o==="focus";(i||P.size>0||_e&&N.size>0||e.items)&&(_e&&!H.isOpen&&e.items===void 0&&u(!0),I.current=se,h(X),H.open())},O=(X=null,se)=>{let _e=se==="manual"||se==="focus"&&o==="focus";!(i||P.size>0||_e&&N.size>0||e.items)&&!H.isOpen||(_e&&!H.isOpen&&e.items===void 0&&u(!0),H.isOpen||(I.current=se),B(X))},A=p.useCallback(()=>{k(a?N:P)},[a,N,P]),B=p.useCallback((X=null)=>{H.isOpen&&A(),h(X),H.toggle()},[H,A]),M=p.useCallback(()=>{H.isOpen&&(A(),H.close())},[H,A]),[U,W]=p.useState(v),Xe=()=>{var X,se;let _e=(se=(X=w.getItem(m))===null||X===void 0?void 0:X.textValue)!==null&&se!==void 0?se:"";W(_e),L(_e)};var Ue,St;let Re=p.useRef((St=(Ue=e.selectedKey)!==null&&Ue!==void 0?Ue:e.defaultSelectedKey)!==null&&St!==void 0?St:null);var K;let ee=p.useRef((K=(n=w.getItem(m))===null||n===void 0?void 0:n.textValue)!==null&&K!==void 0?K:"");p.useEffect(()=>{var X;c&&(P.size>0||i)&&!H.isOpen&&v!==U&&o!=="manual"&&J(null,"input"),!a&&!i&&H.isOpen&&P.size===0&&M(),m!=null&&m!==Re.current&&M(),v!==U&&(y.setFocusedKey(null),u(!1),v===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&x(null)),m!==Re.current&&(e.inputValue===void 0||e.selectedKey===void 0)?Xe():U!==v&&W(v);var se;let _e=(se=(X=w.getItem(m))===null||X===void 0?void 0:X.textValue)!==null&&se!==void 0?se:"";!c&&m!=null&&e.inputValue===void 0&&m===Re.current&&ee.current!==_e&&(W(_e),L(_e)),Re.current=m,ee.current=_e});let bn=tg({...e,value:p.useMemo(()=>({inputValue:v,selectedKey:m}),[v,m])}),Ir=()=>{l&&m==null?Uo():zo()},Uo=()=>{Re.current=null,x(null),M()},zo=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var X;e.onSelectionChange(m);var se;let _e=(se=(X=w.getItem(m))===null||X===void 0?void 0:X.textValue)!==null&&se!==void 0?se:"";W(_e),M()}else Xe(),M()};const ds=()=>{if(l){var X,se;const _e=(se=(X=w.getItem(m))===null||X===void 0?void 0:X.textValue)!==null&&se!==void 0?se:"";v===_e?zo():Uo()}else zo()};let I0=()=>{H.isOpen&&y.focusedKey!=null?m===y.focusedKey?zo():x(y.focusedKey):ds()},af=p.useRef(v),M0=X=>{X?(af.current=v,o==="focus"&&J(null,"focus")):(s&&ds(),v!==af.current&&bn.commitValidation()),f(X)},A0=p.useMemo(()=>H.isOpen?a?N:P:D,[H.isOpen,N,P,a,D]);return{...bn,...H,focusStrategy:d,toggle:O,open:J,close:ds,selectionManager:y,selectedKey:m,setSelectedKey:x,disabledKeys:T,isFocused:c,setFocused:M0,selectedItem:S,collection:A0,inputValue:v,setInputValue:L,commit:I0,revert:Ir}}function IE(e,t,n){return new lu(rg(e,e,t,n))}function rg(e,t,n,r){let o=[];for(let i of t)if(i.type==="section"&&i.hasChildNodes){let l=rg(e,Ol(i,e),n,r);[...l].some(s=>s.type==="item")&&o.push({...i,childNodes:l})}else i.type==="item"&&r(i.textValue,n)?o.push({...i}):i.type!=="item"&&o.push({...i});return o}const ME=Symbol.for("react-aria.i18n.locale"),AE=Symbol.for("react-aria.i18n.strings");let Ur;class Fl{getStringForLocale(t,n){let r=this.getStringsForLocale(n)[t];if(!r)throw new Error(`Could not find intl message ${t} in ${n} locale`);return r}getStringsForLocale(t){let n=this.strings[t];return n||(n=OE(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[ME];if(Ur===void 0){let o=window[AE];if(!o)return null;Ur={};for(let i in o)Ur[i]=new Fl({[n]:o[i]},n)}let r=Ur==null?void 0:Ur[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings={...t},this.defaultLocale=n}}function OE(e,t,n="en-US"){if(t[e])return t[e];let r=FE(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function FE(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Cd=new Map,Td=new Map;class DE{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,l=Cd.get(i);l||(l=new Intl.PluralRules(this.locale,{type:r}),Cd.set(i,l));let s=l.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=Td.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Td.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const ol={prefix:String(Math.round(Math.random()*1e10)),current:0},og=q.createContext(ol),jE=q.createContext(!1);let BE=!!(typeof window<"u"&&window.document&&window.document.createElement),Ks=new WeakMap;function HE(e=!1){let t=p.useContext(og),n=p.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let l=Ks.get(i);l==null?Ks.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==l.state&&(t.current=l.id,Ks.delete(i))}n.current=++t.current}return n.current}function KE(e){let t=p.useContext(og);t===ol&&!BE&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=HE(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function UE(e){let t=q.useId(),[n]=p.useState(Oc()),r=n?"react-aria":`react-aria${ol.prefix}`;return e||`${r}-${t}`}const zE=typeof q.useId=="function"?UE:KE;function VE(){return!1}function GE(){return!0}function WE(e){return()=>{}}function Oc(){return typeof q.useSyncExternalStore=="function"?q.useSyncExternalStore(WE,VE,GE):p.useContext(jE)}function ig(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{};function je(e){const t=p.useRef(null);return ue(()=>{t.current=e},[e]),p.useCallback((...n)=>{const r=t.current;return r(...n)},[])}function qE(e){let[t,n]=p.useState(e),r=p.useRef(null),o=je(()=>{let l=r.current.next();if(l.done){r.current=null;return}t===l.value?o():n(l.value)});ue(()=>{r.current&&o()});let i=je(l=>{r.current=l(t),o()});return[t,i]}let XE=!!(typeof window<"u"&&window.document&&window.document.createElement),il=new Map;function mn(e){let[t,n]=p.useState(e),r=p.useRef(null),o=zE(t),i=p.useCallback(l=>{r.current=l},[]);return XE&&il.set(o,i),ue(()=>{let l=o;return()=>{il.delete(l)}},[o]),p.useEffect(()=>{let l=r.current;l&&(r.current=null,n(l))}),o}function YE(e,t){if(e===t)return e;let n=il.get(e);if(n)return n(t),t;let r=il.get(t);return r?(r(e),e):t}function ll(e=[]){let t=mn(),[n,r]=qE(t),o=p.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return ue(o,[t,o,...e]),n}function _o(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const pe=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Po=e=>e&&"window"in e&&e.window===e?e:pe(e).defaultView||window;function Oe(...e){let t={...e[0]};for(let n=1;n=65&&o.charCodeAt(2)<=90?t[o]=_o(i,l):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof l=="string"?t[o]=QE(i,l):o==="id"&&i&&l?t.id=YE(i,l):t[o]=l!==void 0?l:i}}return t}const ZE=new Set(["id"]),JE=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),eb=new Set(["href","target","rel","download","ping","referrerPolicy"]),tb=/^(data-.*)$/;function Fc(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(ZE.has(l)||n&&JE.has(l)||r&&eb.has(l)||o!=null&&o.has(l)||tb.test(l))&&(i[l]=e[l]);return i}function jt(e){if(nb())e.focus({preventScroll:!0});else{let t=rb(e);e.focus(),ob(t)}}let ai=null;function nb(){if(ai==null){ai=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return ai=!0,!0}})}catch{}}return ai}function rb(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Dc(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function gn(){return Dc(/^Mac/i)}function ib(){return Dc(/^iPhone/i)}function lg(){return Dc(/^iPad/i)||gn()&&navigator.maxTouchPoints>1}function jl(){return ib()||lg()}function Ri(){return gn()||jl()}function sg(){return Dl(/AppleWebKit/i)&&!lb()}function lb(){return Dl(/Chrome/i)}function ag(){return Dl(/Android/i)}function sb(){return Dl(/Firefox/i)}const ab=p.createContext({isNative:!0,open:cb});function jc(){return p.useContext(ab)}function jn(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:l,altKey:s,shiftKey:a}=t;sb()&&!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key")&&e.target==="_blank"&&(gn()?i=!0:l=!0);let u=sg()&&gn()&&!lg()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:l,altKey:s,shiftKey:a}):new MouseEvent("click",{metaKey:i,ctrlKey:l,altKey:s,shiftKey:a,bubbles:!0,cancelable:!0});jn.isOpening=n,jt(e),e.dispatchEvent(u),jn.isOpening=!1}jn.isOpening=!1;function ub(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function cb(e,t){ub(e,n=>jn(n,t))}let Yn=new Map,su=new Set;function _d(){if(typeof window>"u")return;let e=n=>{let r=Yn.get(n.target);r||(r=new Set,Yn.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{let r=Yn.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),Yn.delete(n.target)),Yn.size===0)){for(let o of su)o();su.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?_d():document.addEventListener("DOMContentLoaded",_d));function ug(e){requestAnimationFrame(()=>{Yn.size===0?e():su.add(e)})}function cg(){let e=p.useRef(new Map),t=p.useCallback((o,i,l,s)=>{let a=s!=null&&s.once?(...u)=>{e.current.delete(l),l(...u)}:l;e.current.set(l,{type:i,eventTarget:o,fn:a,options:s}),o.addEventListener(i,l,s)},[]),n=p.useCallback((o,i,l,s)=>{var a;let u=((a=e.current.get(l))===null||a===void 0?void 0:a.fn)||l;o.removeEventListener(i,u,s),e.current.delete(l)},[]),r=p.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return p.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function sl(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=mn(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function fb(){return typeof window.ResizeObserver<"u"}function db(e){const{ref:t,onResize:n}=e;p.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(fb()){const o=new window.ResizeObserver(i=>{i.length&&n()});return o.observe(r),()=>{r&&o.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function fg(e,t){ue(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}})}function al(e,t){for(ul(e,t)&&(e=e.parentElement);e&&!ul(e,t);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function ul(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}let hb=0;const Us=new Map;function pb(e){let[t,n]=p.useState(void 0);return ue(()=>{if(!e)return;let r=Us.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${hb++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},Us.set(e,r)}return r.refCount++,()=>{--r.refCount===0&&(r.element.remove(),Us.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function mb(e,t,n,r){let o=je(n),i=n==null;p.useEffect(()=>{if(i)return;let l=e.current;return l.addEventListener(t,o,r),()=>{l.removeEventListener(t,o,r)}},[e,t,r,i,o])}function dg(e,t){let n=Pd(e,t,"left"),r=Pd(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,l=e.scrollLeft,s=e.scrollTop,{borderTopWidth:a,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),f=e.scrollTop+parseInt(a,10),d=c+e.clientWidth,h=f+e.clientHeight;n<=l?l=n-parseInt(u,10):n+o>d&&(l+=n+o-d),r<=f?s=r-parseInt(a,10):r+i>h&&(s+=r+i-h),e.scrollLeft=l,e.scrollTop=s}function Pd(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function Nd(e,t){if(document.contains(e)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let s=al(e);for(;e&&s&&e!==l&&s!==l;)dg(s,e),e=s,s=al(e)}else{var n;let{left:s,top:a}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:u,top:c}=e.getBoundingClientRect();if(Math.abs(s-u)>1||Math.abs(a-c)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function au(e){return e.mozInputSource===0&&e.isTrusted?!0:ag()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function gb(e){return!ag()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function vb(e,t,n){let r=p.useRef(t),o=je(()=>{n&&n(r.current)});p.useEffect(()=>{var i;let l=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return l==null||l.addEventListener("reset",o),()=>{l==null||l.removeEventListener("reset",o)}},[e,o])}function yb(e,t){return t.get?t.get.call(e):t.value}function hg(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function xb(e,t){var n=hg(e,t,"get");return yb(e,n)}function Eb(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function kd(e,t,n){var r=hg(e,t,"set");return Eb(e,r,n),n}let fr="default",uu="",Li=new WeakMap;function Rd(e){if(jl()){if(fr==="default"){const t=pe(e);uu=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}fr="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Li.set(e,e.style.userSelect),e.style.userSelect="none")}function ui(e){if(jl()){if(fr!=="disabled")return;fr="restoring",setTimeout(()=>{ug(()=>{if(fr==="restoring"){const t=pe(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=uu||""),uu="",fr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Li.has(e)){let t=Li.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Li.delete(e)}}const Bc=q.createContext({register:()=>{}});Bc.displayName="PressResponderContext";function bb(e){let t=p.useContext(Bc);if(t){let{register:n,...r}=t;e=Oe(r,e),n()}return fg(t,e.ref),e}var ci=new WeakMap;class fi{continuePropagation(){kd(this,ci,!1)}get shouldStopPropagation(){return xb(this,ci)}constructor(t,n,r){vE(this,ci,{writable:!0,value:void 0}),kd(this,ci,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const Ld=Symbol("linkClicked");function pg(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:l,isPressed:s,preventFocusOnPress:a,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:f,...d}=bb(e),[h,E]=p.useState(!1),b=p.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:w,removeAllGlobalListeners:y}=cg(),m=je((v,L)=>{let N=b.current;if(l||N.didFirePressStart)return!1;let P=!0;if(N.isTriggeringEvent=!0,r){let D=new fi("pressstart",L,v);r(D),P=D.shouldStopPropagation}return n&&n(!0),N.isTriggeringEvent=!1,N.didFirePressStart=!0,E(!0),P}),x=je((v,L,N=!0)=>{let P=b.current;if(!P.didFirePressStart)return!1;P.ignoreClickAfterPress=!0,P.didFirePressStart=!1,P.isTriggeringEvent=!0;let D=!0;if(o){let k=new fi("pressend",L,v);o(k),D=k.shouldStopPropagation}if(n&&n(!1),E(!1),t&&N&&!l){let k=new fi("press",L,v);t(k),D&&(D=k.shouldStopPropagation)}return P.isTriggeringEvent=!1,D}),S=je((v,L)=>{let N=b.current;if(l)return!1;if(i){N.isTriggeringEvent=!0;let P=new fi("pressup",L,v);return i(P),N.isTriggeringEvent=!1,P.shouldStopPropagation}return!0}),T=je(v=>{let L=b.current;L.isPressed&&L.target&&(L.isOverTarget&&L.pointerType!=null&&x(It(L.target,v),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,y(),c||ui(L.target))}),C=je(v=>{u&&T(v)}),_=p.useMemo(()=>{let v=b.current,L={onKeyDown(P){if(zs(P.nativeEvent,P.currentTarget)&&P.currentTarget.contains(P.target)){var D;Id(P.target,P.key)&&P.preventDefault();let k=!0;!v.isPressed&&!P.repeat&&(v.target=P.currentTarget,v.isPressed=!0,k=m(P,"keyboard"),w(pe(P.currentTarget),"keyup",N,!1)),k&&P.stopPropagation(),P.metaKey&&gn()&&((D=v.metaKeyEvents)===null||D===void 0||D.set(P.key,P.nativeEvent))}else P.key==="Meta"&&(v.metaKeyEvents=new Map)},onKeyUp(P){zs(P.nativeEvent,P.currentTarget)&&!P.repeat&&P.currentTarget.contains(P.target)&&v.target&&S(It(v.target,P),"keyboard")},onClick(P){if(!(P&&!P.currentTarget.contains(P.target))&&P&&P.button===0&&!v.isTriggeringEvent&&!jn.isOpening){let D=!0;if(l&&P.preventDefault(),!v.ignoreClickAfterPress&&!v.ignoreEmulatedMouseEvents&&!v.isPressed&&(v.pointerType==="virtual"||au(P.nativeEvent))){!l&&!a&&jt(P.currentTarget);let k=m(P,"virtual"),I=S(P,"virtual"),H=x(P,"virtual");D=k&&I&&H}v.ignoreEmulatedMouseEvents=!1,v.ignoreClickAfterPress=!1,D&&P.stopPropagation()}}},N=P=>{var D;if(v.isPressed&&v.target&&zs(P,v.target)){var k;Id(P.target,P.key)&&P.preventDefault();let H=P.target,J=x(It(v.target,P),"keyboard",v.target.contains(H));y(),J&&P.stopPropagation(),P.key!=="Enter"&&Hc(v.target)&&v.target.contains(H)&&!P[Ld]&&(P[Ld]=!0,jn(v.target,P,!1)),v.isPressed=!1,(k=v.metaKeyEvents)===null||k===void 0||k.delete(P.key)}else if(P.key==="Meta"&&!((D=v.metaKeyEvents)===null||D===void 0)&&D.size){var I;let H=v.metaKeyEvents;v.metaKeyEvents=void 0;for(let J of H.values())(I=v.target)===null||I===void 0||I.dispatchEvent(new KeyboardEvent("keyup",J))}};if(typeof PointerEvent<"u"){L.onPointerDown=I=>{if(I.button!==0||!I.currentTarget.contains(I.target))return;if(gb(I.nativeEvent)){v.pointerType="virtual";return}Vs(I.currentTarget)&&I.preventDefault(),v.pointerType=I.pointerType;let H=!0;v.isPressed||(v.isPressed=!0,v.isOverTarget=!0,v.activePointerId=I.pointerId,v.target=I.currentTarget,!l&&!a&&jt(I.currentTarget),c||Rd(v.target),H=m(I,v.pointerType),w(pe(I.currentTarget),"pointermove",P,!1),w(pe(I.currentTarget),"pointerup",D,!1),w(pe(I.currentTarget),"pointercancel",k,!1)),H&&I.stopPropagation()},L.onMouseDown=I=>{I.currentTarget.contains(I.target)&&I.button===0&&(Vs(I.currentTarget)&&I.preventDefault(),I.stopPropagation())},L.onPointerUp=I=>{!I.currentTarget.contains(I.target)||v.pointerType==="virtual"||I.button===0&&qn(I,I.currentTarget)&&S(I,v.pointerType||I.pointerType)};let P=I=>{I.pointerId===v.activePointerId&&(v.target&&qn(I,v.target)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,m(It(v.target,I),v.pointerType)):v.target&&v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,x(It(v.target,I),v.pointerType,!1),C(I)))},D=I=>{I.pointerId===v.activePointerId&&v.isPressed&&I.button===0&&v.target&&(qn(I,v.target)&&v.pointerType!=null?x(It(v.target,I),v.pointerType):v.isOverTarget&&v.pointerType!=null&&x(It(v.target,I),v.pointerType,!1),v.isPressed=!1,v.isOverTarget=!1,v.activePointerId=null,v.pointerType=null,y(),c||ui(v.target))},k=I=>{T(I)};L.onDragStart=I=>{I.currentTarget.contains(I.target)&&T(I)}}else{L.onMouseDown=k=>{if(!(k.button!==0||!k.currentTarget.contains(k.target))){if(Vs(k.currentTarget)&&k.preventDefault(),v.ignoreEmulatedMouseEvents){k.stopPropagation();return}v.isPressed=!0,v.isOverTarget=!0,v.target=k.currentTarget,v.pointerType=au(k.nativeEvent)?"virtual":"mouse",!l&&!a&&jt(k.currentTarget),m(k,v.pointerType)&&k.stopPropagation(),w(pe(k.currentTarget),"mouseup",P,!1)}},L.onMouseEnter=k=>{if(!k.currentTarget.contains(k.target))return;let I=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!0,I=m(k,v.pointerType)),I&&k.stopPropagation()},L.onMouseLeave=k=>{if(!k.currentTarget.contains(k.target))return;let I=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!1,I=x(k,v.pointerType,!1),C(k)),I&&k.stopPropagation()},L.onMouseUp=k=>{k.currentTarget.contains(k.target)&&!v.ignoreEmulatedMouseEvents&&k.button===0&&S(k,v.pointerType||"mouse")};let P=k=>{if(k.button===0){if(v.isPressed=!1,y(),v.ignoreEmulatedMouseEvents){v.ignoreEmulatedMouseEvents=!1;return}v.target&&qn(k,v.target)&&v.pointerType!=null?x(It(v.target,k),v.pointerType):v.target&&v.isOverTarget&&v.pointerType!=null&&x(It(v.target,k),v.pointerType,!1),v.isOverTarget=!1}};L.onTouchStart=k=>{if(!k.currentTarget.contains(k.target))return;let I=wb(k.nativeEvent);I&&(v.activePointerId=I.identifier,v.ignoreEmulatedMouseEvents=!0,v.isOverTarget=!0,v.isPressed=!0,v.target=k.currentTarget,v.pointerType="touch",!l&&!a&&jt(k.currentTarget),c||Rd(v.target),m(k,v.pointerType)&&k.stopPropagation(),w(Po(k.currentTarget),"scroll",D,!0))},L.onTouchMove=k=>{if(!k.currentTarget.contains(k.target))return;if(!v.isPressed){k.stopPropagation();return}let I=$d(k.nativeEvent,v.activePointerId),H=!0;I&&qn(I,k.currentTarget)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,H=m(k,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,H=x(k,v.pointerType,!1),C(k)),H&&k.stopPropagation()},L.onTouchEnd=k=>{if(!k.currentTarget.contains(k.target))return;if(!v.isPressed){k.stopPropagation();return}let I=$d(k.nativeEvent,v.activePointerId),H=!0;I&&qn(I,k.currentTarget)&&v.pointerType!=null?(S(k,v.pointerType),H=x(k,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(H=x(k,v.pointerType,!1)),H&&k.stopPropagation(),v.isPressed=!1,v.activePointerId=null,v.isOverTarget=!1,v.ignoreEmulatedMouseEvents=!0,v.target&&!c&&ui(v.target),y()},L.onTouchCancel=k=>{k.currentTarget.contains(k.target)&&(k.stopPropagation(),v.isPressed&&T(k))};let D=k=>{v.isPressed&&k.target.contains(v.target)&&T({currentTarget:v.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=k=>{k.currentTarget.contains(k.target)&&T(k)}}return L},[w,l,a,y,c,T,C,x,m,S]);return p.useEffect(()=>()=>{var v;c||ui((v=b.current.target)!==null&&v!==void 0?v:void 0)},[c]),{isPressed:s||h,pressProps:Oe(d,_)}}function Hc(e){return e.tagName==="A"&&e.hasAttribute("href")}function zs(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof Po(o).HTMLInputElement&&!mg(o,n)||o instanceof Po(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&Hc(o))&&n!=="Enter")}function wb(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function $d(e,t){const n=e.changedTouches;for(let r=0;rt.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function qn(e,t){let n=t.getBoundingClientRect(),r=Sb(e);return Cb(n,r)}function Vs(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Id(e,t){return e instanceof HTMLInputElement?!mg(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Hc(e)}const Tb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function mg(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Tb.has(e.type)}function _b({children:e}){let t=p.useMemo(()=>({register:()=>{}}),[]);return q.createElement(Bc.Provider,{value:t},e)}class Pb{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function gg(e){let t=p.useRef({isFocused:!1,observer:null});ue(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=je(r=>{e==null||e(r)});return p.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=l=>{t.current.isFocused=!1,o.disabled&&n(new Pb("blur",l)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var l;(l=t.current.observer)===null||l===void 0||l.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function vg(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=p.useCallback(a=>{if(a.target===a.currentTarget)return r&&r(a),o&&o(!1),!0},[r,o]),l=gg(i),s=p.useCallback(a=>{a.target===a.currentTarget&&document.activeElement===a.target&&(n&&n(a),o&&o(!0),l(a))},[o,n,l]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?i:void 0}}}let zn=null,cu=new Set,Md=!1,Bn=!1,fu=!1;const Nb={Tab:!0,Escape:!0};function Bl(e,t){for(let n of cu)n(e,t)}function kb(e){return!(e.metaKey||!gn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ad(e){Bn=!0,kb(e)&&(zn="keyboard",Bl("keyboard",e))}function Xn(e){zn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Bn=!0,Bl("pointer",e))}function Rb(e){au(e)&&(Bn=!0,zn="virtual")}function Lb(e){e.target===window||e.target===document||(!Bn&&!fu&&(zn="virtual",Bl("virtual",e)),Bn=!1,fu=!1)}function $b(){Bn=!1,fu=!0}function du(){if(typeof window>"u"||Md)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Bn=!0,e.apply(this,arguments)},document.addEventListener("keydown",Ad,!0),document.addEventListener("keyup",Ad,!0),document.addEventListener("click",Rb,!0),window.addEventListener("focus",Lb,!0),window.addEventListener("blur",$b,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Xn,!0),document.addEventListener("pointermove",Xn,!0),document.addEventListener("pointerup",Xn,!0)):(document.addEventListener("mousedown",Xn,!0),document.addEventListener("mousemove",Xn,!0),document.addEventListener("mouseup",Xn,!0)),Md=!0}typeof document<"u"&&(document.readyState!=="loading"?du():document.addEventListener("DOMContentLoaded",du));function cl(){return zn!=="pointer"}function hu(){return zn}function Ib(e){zn=e,Bl(e,null)}const Mb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ab(e,t,n){var r;return e=e||(n==null?void 0:n.target)instanceof HTMLInputElement&&!Mb.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof HTMLTextAreaElement||(n==null?void 0:n.target)instanceof HTMLElement&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof KeyboardEvent&&!Nb[n.key])}function Ob(e,t,n){du(),p.useEffect(()=>{let r=(o,i)=>{Ab(!!(n!=null&&n.isTextInput),o,i)&&e(cl())};return cu.add(r),()=>{cu.delete(r)}},t)}function Hl(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=p.useRef({isFocusWithin:!1}),l=p.useCallback(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(u),o&&o(!1))},[n,o,i]),s=gg(l),a=p.useCallback(u=>{!i.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),o&&o(!0),i.current.isFocusWithin=!0,s(u))},[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:a,onBlur:l}}}let fl=!1,Gs=0;function pu(){fl=!0,setTimeout(()=>{fl=!1},50)}function Od(e){e.pointerType==="touch"&&pu()}function Fb(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Od):document.addEventListener("touchend",pu),Gs++,()=>{Gs--,!(Gs>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Od):document.removeEventListener("touchend",pu))}}function Db(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,l]=p.useState(!1),s=p.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;p.useEffect(Fb,[]);let{hoverProps:a,triggerHoverEnd:u}=p.useMemo(()=>{let c=(h,E)=>{if(s.pointerType=E,o||E==="touch"||s.isHovered||!h.currentTarget.contains(h.target))return;s.isHovered=!0;let b=h.currentTarget;s.target=b,t&&t({type:"hoverstart",target:b,pointerType:E}),n&&n(!0),l(!0)},f=(h,E)=>{if(s.pointerType="",s.target=null,E==="touch"||!s.isHovered)return;s.isHovered=!1;let b=h.currentTarget;r&&r({type:"hoverend",target:b,pointerType:E}),n&&n(!1),l(!1)},d={};return typeof PointerEvent<"u"?(d.onPointerEnter=h=>{fl&&h.pointerType==="mouse"||c(h,h.pointerType)},d.onPointerLeave=h=>{!o&&h.currentTarget.contains(h.target)&&f(h,h.pointerType)}):(d.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},d.onMouseEnter=h=>{!s.ignoreEmulatedMouseEvents&&!fl&&c(h,"mouse"),s.ignoreEmulatedMouseEvents=!1},d.onMouseLeave=h=>{!o&&h.currentTarget.contains(h.target)&&f(h,"mouse")}),{hoverProps:d,triggerHoverEnd:f}},[t,n,r,o,s]);return p.useEffect(()=>{o&&u({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:a,isHovered:i}}function jb(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=p.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=je(a=>{n&&di(a,t)&&(o&&o(a),i.current.isPointerDown=!0)}),s=je(a=>{n&&n(a)});p.useEffect(()=>{let a=i.current;if(r)return;const u=t.current,c=pe(u);if(typeof PointerEvent<"u"){let f=d=>{a.isPointerDown&&di(d,t)&&s(d),a.isPointerDown=!1};return c.addEventListener("pointerdown",l,!0),c.addEventListener("pointerup",f,!0),()=>{c.removeEventListener("pointerdown",l,!0),c.removeEventListener("pointerup",f,!0)}}else{let f=h=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&di(h,t)&&s(h),a.isPointerDown=!1},d=h=>{a.ignoreEmulatedMouseEvents=!0,a.isPointerDown&&di(h,t)&&s(h),a.isPointerDown=!1};return c.addEventListener("mousedown",l,!0),c.addEventListener("mouseup",f,!0),c.addEventListener("touchstart",l,!0),c.addEventListener("touchend",d,!0),()=>{c.removeEventListener("mousedown",l,!0),c.removeEventListener("mouseup",f,!0),c.removeEventListener("touchstart",l,!0),c.removeEventListener("touchend",d,!0)}}},[t,r,l,s])}function di(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function Fd(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function Bb(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Fd(e.onKeyDown),onKeyUp:Fd(e.onKeyUp)}}}const Hb=500;function yg(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=Hb,accessibilityDescription:l}=e;const s=p.useRef();let{addGlobalListener:a,removeGlobalListener:u}=cg(),{pressProps:c}=pg({isDisabled:t,onPressStart(d){if(d.continuePropagation(),(d.pointerType==="mouse"||d.pointerType==="touch")&&(n&&n({...d,type:"longpressstart"}),s.current=setTimeout(()=>{d.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...d,type:"longpress"}),s.current=void 0},i),d.pointerType==="touch")){let h=E=>{E.preventDefault()};a(d.target,"contextmenu",h,{once:!0}),a(window,"pointerup",()=>{setTimeout(()=>{u(d.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(d){s.current&&clearTimeout(s.current),r&&(d.pointerType==="mouse"||d.pointerType==="touch")&&r({...d,type:"longpressend"})}}),f=pb(o&&!t?l:void 0);return{longPressProps:Oe(c,f)}}function No(e){const t=pe(e);if(hu()==="virtual"){let n=t.activeElement;ug(()=>{t.activeElement===n&&e.isConnected&&jt(e)})}else jt(e)}function Kb(e){const t=Po(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:l,visibility:s}=i(e);o=l!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function Ub(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function xg(e,t){return e.nodeName!=="#comment"&&Kb(e)&&Ub(e,t)&&(!e.parentElement||xg(e.parentElement,e))}const Dd=q.createContext(null);let te=null;function zb(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=p.useRef(null),l=p.useRef(null),s=p.useRef([]),{parentNode:a}=p.useContext(Dd)||{},u=p.useMemo(()=>new mu({scopeRef:s}),[s]);ue(()=>{let d=a||me.root;if(me.getTreeNode(d.scopeRef)&&te&&!hl(te,d.scopeRef)){let h=me.getTreeNode(te);h&&(d=h)}d.addChild(u),me.addNode(u)},[u,a]),ue(()=>{let d=me.getTreeNode(s);d&&(d.contain=!!n)},[n]),ue(()=>{var d;let h=(d=i.current)===null||d===void 0?void 0:d.nextSibling,E=[];for(;h&&h!==l.current;)E.push(h),h=h.nextSibling;s.current=E},[t]),Yb(s,r,n),Qb(s,n),Jb(s,r,n),Xb(s,o),p.useEffect(()=>{const d=pe(s.current?s.current[0]:void 0).activeElement;let h=null;if(Me(d,s.current)){for(let E of me.traverse())E.scopeRef&&Me(d,E.scopeRef.current)&&(h=E);h===me.getTreeNode(s)&&(te=h.scopeRef)}},[s]),ue(()=>()=>{var d,h,E;let b=(E=(h=me.getTreeNode(s))===null||h===void 0||(d=h.parent)===null||d===void 0?void 0:d.scopeRef)!==null&&E!==void 0?E:null;(s===te||hl(s,te))&&(!b||me.getTreeNode(b))&&(te=b),me.removeTreeNode(s)},[s]);let c=p.useMemo(()=>Vb(s),[]),f=p.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return q.createElement(Dd.Provider,{value:f},q.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,q.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Vb(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:l}=t,s=r||pe(n[0]).activeElement,a=n[0].previousElementSibling,u=kn(n),c=Ht(u,{tabbable:o,accept:l},n);c.currentNode=Me(s,n)?s:a;let f=c.nextNode();return!f&&i&&(c.currentNode=a,f=c.nextNode()),f&&Bt(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:l}=t,s=r||pe(n[0]).activeElement,a=n[n.length-1].nextElementSibling,u=kn(n),c=Ht(u,{tabbable:o,accept:l},n);c.currentNode=Me(s,n)?s:a;let f=c.previousNode();return!f&&i&&(c.currentNode=a,f=c.previousNode()),f&&Bt(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=kn(n),l=Ht(i,{tabbable:r,accept:o},n);l.currentNode=n[0].previousElementSibling;let s=l.nextNode();return s&&Bt(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=kn(n),l=Ht(i,{tabbable:r,accept:o},n);l.currentNode=n[n.length-1].nextElementSibling;let s=l.previousNode();return s&&Bt(s,!0),s}}}const Kc=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],Gb=Kc.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Kc.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Wb=Kc.join(':not([hidden]):not([tabindex="-1"]),');function kn(e){return e[0].parentElement}function Xr(e){let t=me.getTreeNode(te);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Qb(e,t){let n=p.useRef(),r=p.useRef();ue(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const i=pe(o?o[0]:void 0);let l=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Xr(e))return;let c=i.activeElement,f=e.current;if(!f||!Me(c,f))return;let d=kn(f),h=Ht(d,{tabbable:!0},f);if(!c)return;h.currentNode=c;let E=u.shiftKey?h.previousNode():h.nextNode();E||(h.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,E=u.shiftKey?h.previousNode():h.nextNode()),u.preventDefault(),E&&Bt(E,!0)},s=u=>{(!te||hl(te,e))&&Me(u.target,e.current)?(te=e,n.current=u.target):Xr(e)&&!dl(u.target,e)?n.current?n.current.focus():te&&te.current&&pl(te.current):Xr(e)&&(n.current=u.target)},a=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(i.activeElement&&Xr(e)&&!dl(i.activeElement,e))if(te=e,i.body.contains(u.target)){var c;n.current=u.target,(c=n.current)===null||c===void 0||c.focus()}else te.current&&pl(te.current)})};return i.addEventListener("keydown",l,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(u=>u.addEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.addEventListener("focusout",a,!1)),()=>{i.removeEventListener("keydown",l,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(u=>u.removeEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.removeEventListener("focusout",a,!1))}},[e,t]),ue(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Eg(e){return dl(e)}function Me(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function dl(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of me.traverse(me.getTreeNode(t)))if(n&&Me(e,n.current))return!0;return!1}function qb(e){return dl(e,te)}function hl(e,t){var n;let r=(n=me.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Bt(e,t=!1){if(e!=null&&!t)try{No(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function pl(e,t=!0){let n=e[0].previousElementSibling,r=kn(e),o=Ht(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();t&&!i&&(r=kn(e),o=Ht(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),Bt(i)}function Xb(e,t){const n=q.useRef(t);p.useEffect(()=>{if(n.current){te=e;const r=pe(e.current?e.current[0]:void 0);!Me(r.activeElement,te.current)&&e.current&&pl(e.current)}n.current=!1},[e])}function Yb(e,t,n){ue(()=>{if(t||n)return;let r=e.current;const o=pe(r?r[0]:void 0);let i=l=>{let s=l.target;Me(s,e.current)?te=e:Eg(s)||(te=null)};return o.addEventListener("focusin",i,!1),r==null||r.forEach(l=>l.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),r==null||r.forEach(l=>l.removeEventListener("focusin",i,!1))}},[e,t,n])}function Zb(e){let t=me.getTreeNode(te);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function Jb(e,t,n){const r=p.useRef(typeof document<"u"?pe(e.current?e.current[0]:void 0).activeElement:null);ue(()=>{let o=e.current;const i=pe(o?o[0]:void 0);if(!t||n)return;let l=()=>{(!te||hl(te,e))&&Me(i.activeElement,e.current)&&(te=e)};return i.addEventListener("focusin",l,!1),o==null||o.forEach(s=>s.addEventListener("focusin",l,!1)),()=>{i.removeEventListener("focusin",l,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",l,!1))}},[e,n]),ue(()=>{const o=pe(e.current?e.current[0]:void 0);if(!t)return;let i=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Xr(e))return;let s=o.activeElement;if(!Me(s,e.current))return;let a=me.getTreeNode(e);if(!a)return;let u=a.nodeToRestore,c=Ht(o.body,{tabbable:!0});c.currentNode=s;let f=l.shiftKey?c.previousNode():c.nextNode();if((!u||!o.body.contains(u)||u===o.body)&&(u=void 0,a.nodeToRestore=void 0),(!f||!Me(f,e.current))&&u){c.currentNode=u;do f=l.shiftKey?c.previousNode():c.nextNode();while(Me(f,e.current));l.preventDefault(),l.stopPropagation(),f?Bt(f,!0):Eg(u)?Bt(u,!0):s.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),ue(()=>{const o=pe(e.current?e.current[0]:void 0);if(!t)return;let i=me.getTreeNode(e);if(i){var l;return i.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let s=me.getTreeNode(e);if(!s)return;let a=s.nodeToRestore;if(t&&a&&(Me(o.activeElement,e.current)||o.activeElement===o.body&&Zb(e))){let u=me.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let c=u.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){Bt(c.nodeToRestore);return}c=c.parent}for(c=u.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&me.getTreeNode(c.scopeRef)){pl(c.scopeRef.current,!0);return}c=c.parent}}})}}}},[e,t])}function Ht(e,t,n){let r=t!=null&&t.tabbable?Wb:Gb,o=pe(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&xg(i)&&(!n||Me(i,n))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}class Uc{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new mu({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Me(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Uc;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new mu({scopeRef:null}),this.fastMap.set(null,this.root)}}class mu{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let me=new Uc;function ew(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=p.useRef({isFocused:!1,isFocusVisible:t||cl()}),[i,l]=p.useState(!1),[s,a]=p.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=p.useCallback(()=>a(o.current.isFocused&&o.current.isFocusVisible),[]),c=p.useCallback(h=>{o.current.isFocused=h,l(h),u()},[u]);Ob(h=>{o.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:f}=vg({isDisabled:r,onFocusChange:c}),{focusWithinProps:d}=Hl({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:s,focusProps:r?d:f}}let tw=q.createContext(null);function nw(e){let t=p.useContext(tw)||{};fg(t,e);let{ref:n,...r}=t;return r}function rw(e,t){let{focusProps:n}=vg(e),{keyboardProps:r}=Bb(e),o=Oe(n,r),i=nw(t),l=e.isDisabled?{}:i,s=p.useRef(e.autoFocus);return p.useEffect(()=>{s.current&&t.current&&No(t.current),s.current=!1},[t]),{focusableProps:Oe({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},l)}}const ow=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),iw=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function lw(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return ow.has(n.script)}let t=e.split("-")[0];return iw.has(t)}const sw=Symbol.for("react-aria.i18n.locale");function bg(){let e=typeof window<"u"&&window[sw]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:lw(e)?"rtl":"ltr"}}let gu=bg(),Yr=new Set;function jd(){gu=bg();for(let e of Yr)e(gu)}function aw(){let e=Oc(),[t,n]=p.useState(gu);return p.useEffect(()=>(Yr.size===0&&window.addEventListener("languagechange",jd),Yr.add(n),()=>{Yr.delete(n),Yr.size===0&&window.removeEventListener("languagechange",jd)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const uw=q.createContext(null);function Kl(){let e=aw();return p.useContext(uw)||e}const Bd=new WeakMap;function cw(e){let t=Bd.get(e);return t||(t=new Fl(e),Bd.set(e,t)),t}function fw(e,t){return t&&Fl.getGlobalDictionaryForPackage(t)||cw(e)}function zc(e,t){let{locale:n}=Kl(),r=fw(e,t);return p.useMemo(()=>new DE(n,r),[n,r])}let Ws=new Map;function wg(e){let{locale:t}=Kl(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),t.compare(i.slice(0,l.length),l)===0),[t]),r=p.useCallback((i,l)=>l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),t.compare(i.slice(-l.length),l)===0),[t]),o=p.useCallback((i,l)=>{if(l.length===0)return!0;i=i.normalize("NFC"),l=l.normalize("NFC");let s=0,a=l.length;for(;s+a<=i.length;s++){let u=i.slice(s,s+a);if(t.compare(l,u)===0)return!0}return!1},[t]);return p.useMemo(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])}const Sg=7e3;let Qs=null;function qs(e,t="assertive",n=Sg){Qs||(Qs=new hw),Qs.announce(e,t,n)}class hw{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=Sg){if(!this.node)return;let o=document.createElement("div");o.textContent=t,n==="assertive"?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function pw(e,t,n){let{validationBehavior:r,focus:o}=e;ue(()=>{if(r==="native"&&n!=null&&n.current){let a=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(a),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(gw(n.current))}});let i=je(()=>{t.resetValidation()}),l=je(a=>{var u;t.displayValidation.isInvalid||t.commitValidation();let c=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!a.defaultPrevented&&n&&c&&vw(c)===n.current){var f;o?o():(f=n.current)===null||f===void 0||f.focus(),Ib("keyboard")}a.preventDefault()}),s=je(()=>{t.commitValidation()});p.useEffect(()=>{let a=n==null?void 0:n.current;if(!a)return;let u=a.form;return a.addEventListener("invalid",l),a.addEventListener("change",s),u==null||u.addEventListener("reset",i),()=>{a.removeEventListener("invalid",l),a.removeEventListener("change",s),u==null||u.removeEventListener("reset",i)}},[n,l,s,i,r])}function mw(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function gw(e){return{isInvalid:!e.validity.valid,validationDetails:mw(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function vw(e){for(let t=0;t`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var _g={};_g={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var Pg={};Pg={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var Ng={};Ng={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var kg={};kg={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var Rg={};Rg={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var Lg={};Lg={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var $g={};$g={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var Ig={};Ig={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var Mg={};Mg={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var Ag={};Ag={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} saisi, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var Og={};Og={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var Fg={};Fg={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var Dg={};Dg={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var jg={};jg={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var Bg={};Bg={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var Hg={};Hg={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var Kg={};Kg={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var Ug={};Ug={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var zg={};zg={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var Vg={};Vg={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var Gg={};Gg={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var Wg={};Wg={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var Qg={};Qg={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var qg={};qg={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var Xg={};Xg={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var Yg={};Yg={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var Zg={};Zg={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var Jg={};Jg={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var ev={};ev={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var tv={};tv={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var nv={};nv={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var rv={};rv={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var ov={};ov={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var iv={};iv={dismiss:"تجاهل"};var lv={};lv={dismiss:"Отхвърляне"};var sv={};sv={dismiss:"Odstranit"};var av={};av={dismiss:"Luk"};var uv={};uv={dismiss:"Schließen"};var cv={};cv={dismiss:"Απόρριψη"};var fv={};fv={dismiss:"Dismiss"};var dv={};dv={dismiss:"Descartar"};var hv={};hv={dismiss:"Lõpeta"};var pv={};pv={dismiss:"Hylkää"};var mv={};mv={dismiss:"Rejeter"};var gv={};gv={dismiss:"התעלם"};var vv={};vv={dismiss:"Odbaci"};var yv={};yv={dismiss:"Elutasítás"};var xv={};xv={dismiss:"Ignora"};var Ev={};Ev={dismiss:"閉じる"};var bv={};bv={dismiss:"무시"};var wv={};wv={dismiss:"Atmesti"};var Sv={};Sv={dismiss:"Nerādīt"};var Cv={};Cv={dismiss:"Lukk"};var Tv={};Tv={dismiss:"Negeren"};var _v={};_v={dismiss:"Zignoruj"};var Pv={};Pv={dismiss:"Descartar"};var Nv={};Nv={dismiss:"Dispensar"};var kv={};kv={dismiss:"Revocare"};var Rv={};Rv={dismiss:"Пропустить"};var Lv={};Lv={dismiss:"Zrušiť"};var $v={};$v={dismiss:"Opusti"};var Iv={};Iv={dismiss:"Odbaci"};var Mv={};Mv={dismiss:"Avvisa"};var Av={};Av={dismiss:"Kapat"};var Ov={};Ov={dismiss:"Скасувати"};var Fv={};Fv={dismiss:"取消"};var Dv={};Dv={dismiss:"關閉"};const Hd={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function xw(e={}){let{style:t,isFocusable:n}=e,[r,o]=p.useState(!1),{focusWithinProps:i}=Hl({isDisabled:!n,onFocusWithinChange:s=>o(s)}),l=p.useMemo(()=>r?t:t?{...Hd,...t}:Hd,[r]);return{visuallyHiddenProps:{...i,style:l}}}function Ew(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:l}=xw(e);return q.createElement(n,Oe(i,l),t)}function bw(e){return e&&e.__esModule?e.default:e}const Kd={top:"top",bottom:"top",left:"left",right:"left"},ml={top:"bottom",bottom:"top",left:"right",right:"left"},ww={top:"left",left:"top"},vu={top:"height",left:"width"},Sw={width:"totalWidth",height:"totalHeight"},hi={};let pi=typeof document<"u"&&window.visualViewport;function Ud(e){let t=0,n=0,r=0,o=0,i=0,l=0,s={};if(e.tagName==="BODY"){let c=document.documentElement;r=c.clientWidth,o=c.clientHeight;var a;t=(a=pi==null?void 0:pi.width)!==null&&a!==void 0?a:r;var u;n=(u=pi==null?void 0:pi.height)!==null&&u!==void 0?u:o,s.top=c.scrollTop||e.scrollTop,s.left=c.scrollLeft||e.scrollLeft}else({width:t,height:n,top:i,left:l}=xr(e)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,o=n;return{width:t,height:n,totalWidth:r,totalHeight:o,scroll:s,top:i,left:l}}function Cw(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function zd(e,t,n,r,o,i){let l=o.scroll[e],s=r[vu[e]],a=t-i-l,u=t+i-l+n;return a<0?-a:u>s?Math.max(s-u,-a):0}function Tw(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Vd(e){if(hi[e])return hi[e];let[t,n]=e.split(" "),r=Kd[t]||"right",o=ww[r];Kd[n]||(n="center");let i=vu[r],l=vu[o];return hi[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:l},hi[e]}function Xs(e,t,n,r,o,i,l,s,a,u){let{placement:c,crossPlacement:f,axis:d,crossAxis:h,size:E,crossSize:b}=r,w={};w[h]=e[h],f==="center"?w[h]+=(e[b]-n[b])/2:f!==h&&(w[h]+=e[b]-n[b]),w[h]+=i;const y=e[h]-n[b]+a+u,m=e[h]+e[b]-a-u;if(w[h]=ru(w[h],y,m),c===d){const x=s?l[E]:t[Sw[E]];w[ml[d]]=Math.floor(x-e[d]+o)}else w[d]=Math.floor(e[d]+e[E]+o);return w}function _w(e,t,n,r,o,i){return e.top!=null?Math.max(0,t.height+t.top+t.scroll.top-(n.top+e.top)-(o.top+o.bottom+i)):Math.max(0,r.top+n.top-(t.top+t.scroll.top)-(o.top+o.bottom+i))}function Gd(e,t,n,r,o,i){let{placement:l,axis:s,size:a}=i;return l===s?Math.max(0,n[s]-e[s]-e.scroll[s]+t[s]-r[s]-r[ml[s]]-o):Math.max(0,e[a]+e[s]+e.scroll[s]-t[s]-n[s]-n[a]-r[s]-r[ml[s]]-o)}function Pw(e,t,n,r,o,i,l,s,a,u,c,f,d,h,E,b){let w=Vd(e),{size:y,crossAxis:m,crossSize:x,placement:S,crossPlacement:T}=w,C=Xs(t,s,n,w,c,f,u,d,E,b),_=c,v=Gd(s,u,t,o,i+c,w);if(l&&r[y]>v){let A=Vd(`${ml[S]} ${T}`),B=Xs(t,s,n,A,c,f,u,d,E,b);Gd(s,u,t,o,i+c,A)>v&&(w=A,C=B,_=c)}let L=zd(m,C[m],n[x],s,a,i);C[m]+=L;let N=_w(C,s,u,t,o,i);h&&h{if(!n||r===null)return;let o=i=>{let l=i.target;if(!t.current||l instanceof Node&&!l.contains(t.current))return;let s=r||jv.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}let qt=typeof document<"u"&&window.visualViewport;function Lw(e){let{direction:t}=Kl(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:l="bottom",containerPadding:s=12,shouldFlip:a=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:c=0,crossOffset:f=0,shouldUpdatePosition:d=!0,isOpen:h=!0,onClose:E,maxHeight:b,arrowBoundaryOffset:w=0}=e,[y,m]=p.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),x=[d,l,o.current,r.current,i.current,s,a,u,c,f,h,t,b,w,n],S=p.useCallback(()=>{if(d===!1||!h||!o.current||!r.current||!i.current||!u)return;let _=Nw({placement:Iw(l,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current,padding:s,shouldFlip:a,boundaryElement:u,offset:c,crossOffset:f,maxHeight:b,arrowSize:n,arrowBoundaryOffset:w});Object.keys(_.position).forEach(v=>o.current.style[v]=_.position[v]+"px"),o.current.style.maxHeight=_.maxHeight!=null?_.maxHeight+"px":void 0,m(_)},x);ue(S,x),$w(S),db({ref:o,onResize:S});let T=p.useRef(!1);ue(()=>{let _,v=()=>{T.current=!0,clearTimeout(_),_=setTimeout(()=>{T.current=!1},500),S()};return qt==null||qt.addEventListener("resize",v),qt==null||qt.addEventListener("scroll",v),()=>{qt==null||qt.removeEventListener("resize",v),qt==null||qt.removeEventListener("scroll",v)}},[S]);let C=p.useCallback(()=>{T.current||E()},[E,T]);return Rw({triggerRef:r,isOpen:h,onClose:E&&C}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...y.position,maxHeight:y.maxHeight}},placement:y.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:y.arrowOffsetLeft,top:y.arrowOffsetTop}},updatePosition:S}}function $w(e){ue(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function Iw(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Mt=[];function Mw(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:s}=e;p.useEffect(()=>(o&&Mt.push(t),()=>{let E=Mt.indexOf(t);E>=0&&Mt.splice(E,1)}),[o,t]);let a=()=>{Mt[Mt.length-1]===t&&n&&n()},u=E=>{(!s||s(E.target))&&Mt[Mt.length-1]===t&&(E.stopPropagation(),E.preventDefault())},c=E=>{(!s||s(E.target))&&(Mt[Mt.length-1]===t&&(E.stopPropagation(),E.preventDefault()),a())},f=E=>{E.key==="Escape"&&!l&&(E.stopPropagation(),E.preventDefault(),a())};jb({ref:t,onInteractOutside:i&&o?c:null,onInteractOutsideStart:u});let{focusWithinProps:d}=Hl({isDisabled:!r,onBlurWithin:E=>{!E.relatedTarget||qb(E.relatedTarget)||(!s||s(E.relatedTarget))&&n()}}),h=E=>{E.target===E.currentTarget&&E.preventDefault()};return{overlayProps:{onKeyDown:f,...d},underlayProps:{onPointerDown:h}}}function Aw(e,t,n){let{type:r}=e,{isOpen:o}=t;p.useEffect(()=>{n&&n.current&&jv.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let l=mn();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?l:null,onPress:t.toggle},overlayProps:{id:l}}}const Ys=typeof document<"u"&&window.visualViewport,Ow=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let mi=0,Zs;function Fw(e={}){let{isDisabled:t}=e;ue(()=>{if(!t)return mi++,mi===1&&(jl()?Zs=jw():Zs=Dw()),()=>{mi--,mi===0&&Zs()}},[t])}function Dw(){return _o(dr(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),dr(document.documentElement,"overflow","hidden"))}function jw(){let e,t,n=u=>{e=al(u.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=dr(e,"overscrollBehavior","contain"))},r=u=>{if(!e||e===document.documentElement||e===document.body){u.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&u.preventDefault()},o=u=>{let c=u.target;Xd(c)&&c!==document.activeElement&&(u.preventDefault(),s(),c.style.transform="translateY(-2000px)",c.focus(),requestAnimationFrame(()=>{c.style.transform=""})),t&&t()},i=u=>{let c=u.target;Xd(c)&&(s(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",Ys&&(Ys.height{qd(c)}):Ys.addEventListener("resize",()=>qd(c),{once:!0}))}))},l=null,s=()=>{if(l)return;let u=()=>{window.scrollTo(0,0)},c=window.pageXOffset,f=window.pageYOffset;l=_o(zr(window,"scroll",u),dr(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),dr(document.documentElement,"overflow","hidden"),dr(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(c,f)}),window.scrollTo(0,0)},a=_o(zr(document,"touchstart",n,{passive:!1,capture:!0}),zr(document,"touchmove",r,{passive:!1,capture:!0}),zr(document,"touchend",o,{passive:!1,capture:!0}),zr(document,"focus",i,!0));return()=>{t==null||t(),l==null||l(),a()}}function dr(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function zr(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function qd(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=al(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top;o>r+e.clientHeight&&(n.scrollTop+=o-r)}e=n.parentElement}}function Xd(e){return e instanceof HTMLInputElement&&!Ow.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var Bv={};Bv={"ar-AE":iv,"bg-BG":lv,"cs-CZ":sv,"da-DK":av,"de-DE":uv,"el-GR":cv,"en-US":fv,"es-ES":dv,"et-EE":hv,"fi-FI":pv,"fr-FR":mv,"he-IL":gv,"hr-HR":vv,"hu-HU":yv,"it-IT":xv,"ja-JP":Ev,"ko-KR":bv,"lt-LT":wv,"lv-LV":Sv,"nb-NO":Cv,"nl-NL":Tv,"pl-PL":_v,"pt-BR":Pv,"pt-PT":Nv,"ro-RO":kv,"ru-RU":Rv,"sk-SK":Lv,"sl-SI":$v,"sr-SP":Iv,"sv-SE":Mv,"tr-TR":Av,"uk-UA":Ov,"zh-CN":Fv,"zh-TW":Dv};function Yd(e){let{onDismiss:t,...n}=e,r=zc(bw(Bv),"@react-aria/overlays"),o=sl(n,r.format("dismiss")),i=()=>{t&&t()};return q.createElement(Ew,null,q.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let Vr=new WeakMap,it=[];function Hv(e,t=document.body){let n=new Set(e),r=new Set,o=a=>{for(let d of a.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(d);let u=d=>{if(n.has(d)||r.has(d.parentElement)&&d.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of n)if(d.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),f=u(a);if(f===NodeFilter.FILTER_ACCEPT&&i(a),f!==NodeFilter.FILTER_REJECT){let d=c.nextNode();for(;d!=null;)i(d),d=c.nextNode()}},i=a=>{var u;let c=(u=Vr.get(a))!==null&&u!==void 0?u:0;a.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&a.setAttribute("aria-hidden","true"),r.add(a),Vr.set(a,c+1))};it.length&&it[it.length-1].disconnect(),o(t);let l=new MutationObserver(a=>{for(let u of a)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(u.target))){for(let c of u.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of u.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&o(c)}});l.observe(t,{childList:!0,subtree:!0});let s={observe(){l.observe(t,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return it.push(s),()=>{l.disconnect();for(let a of r){let u=Vr.get(a);u===1?(a.removeAttribute("aria-hidden"),Vr.delete(a)):Vr.set(a,u-1)}s===it[it.length-1]?(it.pop(),it.length&&it[it.length-1].observe()):it.splice(it.indexOf(s),1)}}function Bw(e,t){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l,...s}=e,{overlayProps:a,underlayProps:u}=Mw({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l},r),{overlayProps:c,arrowProps:f,placement:d}=Lw({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o?t.close:null});return Fw({isDisabled:o||!t.isOpen}),ue(()=>{if(t.isOpen&&!o&&r.current)return Hv([r.current])},[o,t.isOpen,r]),{popoverProps:Oe(a,c),arrowProps:f,underlayProps:u,placement:d}}const Hw=q.createContext(null);function Kw(e){let t=Oc(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,i]=p.useState(!1),l=p.useMemo(()=>({contain:o,setContain:i}),[o,i]);if(!n)return null;let s=e.children;return e.disableFocusManagement||(s=q.createElement(zb,{restoreFocus:!0,contain:o&&!r},s)),s=q.createElement(Hw.Provider,{value:l},q.createElement(_b,null,s)),aE.createPortal(s,n)}function yu(e){return Ri()?e.altKey:e.ctrlKey}function Zn(e){return gn()?e.metaKey:e.ctrlKey}const Uw=1e3;function zw(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=p.useRef({search:"",timeout:null}).current,i=l=>{let s=Vw(l.key);if(!s||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))return;s===" "&&o.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),o.search+=s;let a=t.getKeyForSearch(o.search,n.focusedKey);a==null&&(a=t.getKeyForSearch(o.search)),a!=null&&(n.setFocusedKey(a),r&&r(a)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},Uw)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:null}}}function Vw(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Kv(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:l=!1,disallowSelectAll:s=!1,selectOnFocus:a=t.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:c,allowsTabNavigation:f=!1,isVirtualized:d,scrollRef:h=r,linkBehavior:E="action"}=e,{direction:b}=Kl(),w=jc(),y=N=>{if(N.altKey&&N.key==="Tab"&&N.preventDefault(),!r.current.contains(N.target))return;const P=(M,U)=>{if(M!=null){if(t.isLink(M)&&E==="selection"&&a&&!yu(N)){Mc.flushSync(()=>{t.setFocusedKey(M,U)});let W=h.current.querySelector(`[data-key="${CSS.escape(M.toString())}"]`);w.open(W,N);return}if(t.setFocusedKey(M,U),t.isLink(M)&&E==="override")return;N.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(M):a&&!yu(N)&&t.replaceSelection(M)}};switch(N.key){case"ArrowDown":if(n.getKeyBelow){var D,k;N.preventDefault();let M=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(D=n.getFirstKey)===null||D===void 0?void 0:D.call(n);M==null&&i&&(M=(k=n.getFirstKey)===null||k===void 0?void 0:k.call(n,t.focusedKey)),P(M)}break;case"ArrowUp":if(n.getKeyAbove){var I,H;N.preventDefault();let M=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(I=n.getLastKey)===null||I===void 0?void 0:I.call(n);M==null&&i&&(M=(H=n.getLastKey)===null||H===void 0?void 0:H.call(n,t.focusedKey)),P(M)}break;case"ArrowLeft":if(n.getKeyLeftOf){var J,O;N.preventDefault();let M=n.getKeyLeftOf(t.focusedKey);M==null&&i&&(M=b==="rtl"?(J=n.getFirstKey)===null||J===void 0?void 0:J.call(n,t.focusedKey):(O=n.getLastKey)===null||O===void 0?void 0:O.call(n,t.focusedKey)),P(M,b==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var A,B;N.preventDefault();let M=n.getKeyRightOf(t.focusedKey);M==null&&i&&(M=b==="rtl"?(A=n.getLastKey)===null||A===void 0?void 0:A.call(n,t.focusedKey):(B=n.getFirstKey)===null||B===void 0?void 0:B.call(n,t.focusedKey)),P(M,b==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){N.preventDefault();let M=n.getFirstKey(t.focusedKey,Zn(N));t.setFocusedKey(M),Zn(N)&&N.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(M):a&&t.replaceSelection(M)}break;case"End":if(n.getLastKey){N.preventDefault();let M=n.getLastKey(t.focusedKey,Zn(N));t.setFocusedKey(M),Zn(N)&&N.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(M):a&&t.replaceSelection(M)}break;case"PageDown":if(n.getKeyPageBelow){N.preventDefault();let M=n.getKeyPageBelow(t.focusedKey);P(M)}break;case"PageUp":if(n.getKeyPageAbove){N.preventDefault();let M=n.getKeyPageAbove(t.focusedKey);P(M)}break;case"a":Zn(N)&&t.selectionMode==="multiple"&&s!==!0&&(N.preventDefault(),t.selectAll());break;case"Escape":N.preventDefault(),l||t.clearSelection();break;case"Tab":if(!f){if(N.shiftKey)r.current.focus();else{let M=Ht(r.current,{tabbable:!0}),U,W;do W=M.lastChild(),W&&(U=W);while(W);U&&!U.contains(document.activeElement)&&jt(U)}break}}},m=p.useRef({top:0,left:0});mb(h,"scroll",d?null:()=>{m.current={top:h.current.scrollTop,left:h.current.scrollLeft}});let x=N=>{if(t.isFocused){N.currentTarget.contains(N.target)||t.setFocused(!1);return}if(N.currentTarget.contains(N.target)){if(t.setFocused(!0),t.focusedKey==null){let k=H=>{H!=null&&(t.setFocusedKey(H),a&&t.replaceSelection(H))},I=N.relatedTarget;var P,D;I&&N.currentTarget.compareDocumentPosition(I)&Node.DOCUMENT_POSITION_FOLLOWING?k((P=t.lastSelectedKey)!==null&&P!==void 0?P:n.getLastKey()):k((D=t.firstSelectedKey)!==null&&D!==void 0?D:n.getFirstKey())}else d||(h.current.scrollTop=m.current.top,h.current.scrollLeft=m.current.left);if(!d&&t.focusedKey!=null){let k=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);k&&(k.contains(document.activeElement)||jt(k),hu()==="keyboard"&&Nd(k,{containingElement:r.current}))}}},S=N=>{N.currentTarget.contains(N.relatedTarget)||t.setFocused(!1)};const T=p.useRef(o);p.useEffect(()=>{if(T.current){let N=null;o==="first"&&(N=n.getFirstKey()),o==="last"&&(N=n.getLastKey());let P=t.selectedKeys;if(P.size){for(let D of P)if(t.canSelectItem(D)){N=D;break}}t.setFocused(!0),t.setFocusedKey(N),N==null&&!c&&No(r.current)}},[]);let C=p.useRef(t.focusedKey);p.useEffect(()=>{let N=hu();if(t.isFocused&&t.focusedKey!=null&&h!=null&&h.current){let P=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);P&&(N==="keyboard"||T.current)&&(d||dg(h.current,P),Nd(P,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&C.current!=null&&No(r.current),C.current=t.focusedKey,T.current=!1},[d,h,t.focusedKey,t.isFocused,r]);let _={onKeyDown:y,onFocus:x,onBlur:S,onMouseDown(N){h.current===N.target&&N.preventDefault()}},{typeSelectProps:v}=zw({keyboardDelegate:n,selectionManager:t});u||(_=Oe(v,_));let L;return c||(L=t.focusedKey==null?0:-1),{collectionProps:{..._,tabIndex:L}}}function Gw(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,shouldUseVirtualFocus:i,focus:l,isDisabled:s,onAction:a,allowsDifferentPressOrigin:u,linkBehavior:c="action"}=e,f=jc(),d=O=>{if(O.pointerType==="keyboard"&&yu(O))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(c==="selection"){f.open(r.current,O),t.setSelectedKeys(t.selectedKeys);return}else if(c==="override"||c==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):O&&O.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||O&&(Zn(O)||O.pointerType==="touch"||O.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};p.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!i&&(l?l():document.activeElement!==r.current&&No(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,i]),s=s||t.isDisabled(n);let h={};!i&&!s?h={tabIndex:n===t.focusedKey?0:-1,onFocus(O){O.target===r.current&&t.setFocusedKey(n)}}:s&&(h.onMouseDown=O=>{O.preventDefault()});let E=t.isLink(n)&&c==="override",b=t.isLink(n)&&c!=="selection"&&c!=="none",w=!s&&t.canSelectItem(n)&&!E,y=(a||b)&&!s,m=y&&(t.selectionBehavior==="replace"?!w:!w||t.isEmpty),x=y&&w&&t.selectionBehavior==="replace",S=m||x,T=p.useRef(null),C=S&&w,_=p.useRef(!1),v=p.useRef(!1),L=O=>{a&&a(),b&&f.open(r.current,O)},N={};o?(N.onPressStart=O=>{T.current=O.pointerType,_.current=C,O.pointerType==="keyboard"&&(!S||Jd())&&d(O)},u?(N.onPressUp=m?null:O=>{O.pointerType!=="keyboard"&&w&&d(O)},N.onPress=m?L:null):N.onPress=O=>{if(m||x&&O.pointerType!=="mouse"){if(O.pointerType==="keyboard"&&!Zd())return;L(O)}else O.pointerType!=="keyboard"&&w&&d(O)}):(N.onPressStart=O=>{T.current=O.pointerType,_.current=C,v.current=m,w&&(O.pointerType==="mouse"&&!m||O.pointerType==="keyboard"&&(!y||Jd()))&&d(O)},N.onPress=O=>{(O.pointerType==="touch"||O.pointerType==="pen"||O.pointerType==="virtual"||O.pointerType==="keyboard"&&S&&Zd()||O.pointerType==="mouse"&&v.current)&&(S?L(O):w&&d(O))}),h["data-key"]=n,N.preventFocusOnPress=i;let{pressProps:P,isPressed:D}=pg(N),k=x?O=>{T.current==="mouse"&&(O.stopPropagation(),O.preventDefault(),L(O))}:void 0,{longPressProps:I}=yg({isDisabled:!C,onLongPress(O){O.pointerType==="touch"&&(d(O),t.setSelectionBehavior("toggle"))}}),H=O=>{T.current==="touch"&&_.current&&O.preventDefault()},J=t.isLink(n)?O=>{jn.isOpening||O.preventDefault()}:void 0;return{itemProps:Oe(h,w||m?P:{},C?I:{},{onDoubleClick:k,onDragStartCapture:H,onClick:J}),isPressed:D,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:s,allowsSelection:w,hasAction:S}}function Zd(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Jd(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class Uv{getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,n,r){let o=this.getItem(t);if(!o)return null;let i=o.getBoundingClientRect();do t=n(t),o=this.getItem(t);while(o&&r(i,o.getBoundingClientRect()));return t}isSameRow(t,n){return t.top===n.top||t.left!==n.left}isSameColumn(t,n){return t.left===n.left||t.top!==n.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return this.ref.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`)}getKeyPageAbove(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!ul(n))return this.getFirstKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let l=o.x-n.scrollLeft,s=Math.max(0,i.x-l+i.width-o.width);for(;r&&i.x-l>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}else{let l=o.y-n.scrollTop,s=Math.max(0,i.y-l+i.height-o.height);for(;r&&i.y-l>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!ul(n))return this.getLastKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let l=o.x-n.scrollLeft,s=Math.min(n.scrollWidth,i.x-l-i.width+o.width);for(;r&&i.x-li||new Uv(n,s==="selection"?new Set:r,o,l),[i,n,r,o,l,s]),{collectionProps:u}=Kv({...e,ref:o,selectionManager:t,keyboardDelegate:a});return{listProps:u}}const Ul=new WeakMap;function Qw(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function zv(e,t){let n=Ul.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${Qw(t)}`}function qw(e,t,n){let r=Fc(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:l}=Ww({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:s}=Hl({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),a=mn(e.id);Ul.set(t,{id:a,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:u,fieldProps:c}=Cg({...e,id:a,labelElementType:"span"});return{labelProps:u,listBoxProps:Oe(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Oe(c,l)})}}function Xw(e,t,n){var r;let{key:o}=e,i=Ul.get(t);var l;let s=(l=e.isDisabled)!==null&&l!==void 0?l:t.disabledKeys.has(o);var a;let u=(a=e.isSelected)!==null&&a!==void 0?a:t.selectionManager.isSelected(o);var c;let f=(c=e.shouldSelectOnPressUp)!==null&&c!==void 0?c:i==null?void 0:i.shouldSelectOnPressUp;var d;let h=(d=e.shouldFocusOnHover)!==null&&d!==void 0?d:i==null?void 0:i.shouldFocusOnHover;var E;let b=(E=e.shouldUseVirtualFocus)!==null&&E!==void 0?E:i==null?void 0:i.shouldUseVirtualFocus;var w;let y=(w=e.isVirtualized)!==null&&w!==void 0?w:i==null?void 0:i.isVirtualized,m=ll(),x=ll(),S={role:"option","aria-disabled":s||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?u:void 0};gn()&&sg()||(S["aria-label"]=e["aria-label"],S["aria-labelledby"]=m,S["aria-describedby"]=x);let T=t.collection.getItem(o);if(y){let k=Number(T==null?void 0:T.index);S["aria-posinset"]=Number.isNaN(k)?void 0:k+1,S["aria-setsize"]=ng(t.collection)}let{itemProps:C,isPressed:_,isFocused:v,hasAction:L,allowsSelection:N}=Gw({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:f,allowsDifferentPressOrigin:f&&h,isVirtualized:y,shouldUseVirtualFocus:b,isDisabled:s,onAction:i!=null&&i.onAction?()=>{var k;return i==null||(k=i.onAction)===null||k===void 0?void 0:k.call(i,o)}:void 0,linkBehavior:i==null?void 0:i.linkBehavior}),{hoverProps:P}=Db({isDisabled:s||!h,onHoverStart(){cl()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),D=Fc(T==null?void 0:T.props,{isLink:!!(!(T==null||(r=T.props)===null||r===void 0)&&r.href)});return delete D.id,{optionProps:{...S,...Oe(D,C,P),id:zv(t,o)},labelProps:{id:m},descriptionProps:{id:x},isFocused:v,isFocusVisible:v&&cl(),isSelected:u,isDisabled:s,isPressed:_,allowsSelection:N,hasAction:L}}function Yw(e){let{heading:t,"aria-label":n}=e,r=mn();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var Vv={};Vv={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Gv={};Gv={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Wv={};Wv={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Qv={};Qv={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var qv={};qv={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Xv={};Xv={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Yv={};Yv={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Zv={};Zv={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Jv={};Jv={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var ey={};ey={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var ty={};ty={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var ny={};ny={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var ry={};ry={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var oy={};oy={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var iy={};iy={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var ly={};ly={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var sy={};sy={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var ay={};ay={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var uy={};uy={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var cy={};cy={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var fy={};fy={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var dy={};dy={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var hy={};hy={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var py={};py={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var my={};my={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var gy={};gy={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var vy={};vy={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var yy={};yy={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var xy={};xy={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var Ey={};Ey={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var by={};by={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var wy={};wy={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Sy={};Sy={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Cy={};Cy={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};function Zw(e){return e&&e.__esModule?e.default:e}var Ty={};Ty={"ar-AE":Vv,"bg-BG":Gv,"cs-CZ":Wv,"da-DK":Qv,"de-DE":qv,"el-GR":Xv,"en-US":Yv,"es-ES":Zv,"et-EE":Jv,"fi-FI":ey,"fr-FR":ty,"he-IL":ny,"hr-HR":ry,"hu-HU":oy,"it-IT":iy,"ja-JP":ly,"ko-KR":sy,"lt-LT":ay,"lv-LV":uy,"nb-NO":cy,"nl-NL":fy,"pl-PL":dy,"pt-BR":hy,"pt-PT":py,"ro-RO":my,"ru-RU":gy,"sk-SK":vy,"sl-SI":yy,"sr-SP":xy,"sv-SE":Ey,"tr-TR":by,"uk-UA":wy,"zh-CN":Sy,"zh-TW":Cy};function Jw(e,t,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=e,l=mn(),{triggerProps:s,overlayProps:a}=Aw({type:r},t,n),u=h=>{if(!o&&!(i==="longPress"&&!h.altKey)&&n&&n.current)switch(h.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},c=zc(Zw(Ty),"@react-aria/menu"),{longPressProps:f}=yg({isDisabled:o||i!=="longPress",accessibilityDescription:c.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),d={onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!o&&t.toggle(h.pointerType==="virtual"?"first":null)},onPress(h){h.pointerType==="touch"&&!o&&t.toggle()}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?d:f,id:l,onKeyDown:u},menuProps:{...a,"aria-labelledby":l,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function eS(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:i=!1,type:l="text",validationBehavior:s="aria"}=e,[a,u]=Do(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=rw(e,t),f=tg({...e,value:a}),{isInvalid:d,validationErrors:h,validationDetails:E}=f.displayValidation,{labelProps:b,fieldProps:w,descriptionProps:y,errorMessageProps:m}=yw({...e,isInvalid:d,errorMessage:e.errorMessage||h}),x=Fc(e,{labelable:!0});const S={type:l,pattern:e.pattern};return vb(t,a,u),pw(e,f,t),p.useEffect(()=>{if(t.current instanceof Po(t.current).HTMLTextAreaElement){let T=t.current;Object.defineProperty(T,"defaultValue",{get:()=>T.value,set:()=>{},configurable:!0})}},[t]),{labelProps:b,inputProps:Oe(x,n==="input"&&S,{disabled:r,readOnly:i,required:o&&s==="native","aria-required":o&&s==="aria"||void 0,"aria-invalid":d||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:a,onChange:T=>u(T.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...w}),descriptionProps:y,errorMessageProps:m,isInvalid:d,validationErrors:h,validationDetails:E}}function tS(e){return e&&e.__esModule?e.default:e}var _y={};_y={"ar-AE":Tg,"bg-BG":_g,"cs-CZ":Pg,"da-DK":Ng,"de-DE":kg,"el-GR":Rg,"en-US":Lg,"es-ES":$g,"et-EE":Ig,"fi-FI":Mg,"fr-FR":Ag,"he-IL":Og,"hr-HR":Fg,"hu-HU":Dg,"it-IT":jg,"ja-JP":Bg,"ko-KR":Hg,"lt-LT":Kg,"lv-LV":Ug,"nb-NO":zg,"nl-NL":Vg,"pl-PL":Gg,"pt-BR":Wg,"pt-PT":Qg,"ro-RO":qg,"ru-RU":Xg,"sk-SK":Yg,"sl-SI":Zg,"sr-SP":Jg,"sv-SE":ev,"tr-TR":tv,"uk-UA":nv,"zh-CN":rv,"zh-TW":ov};function nS(e,t){let{buttonRef:n,popoverRef:r,inputRef:o,listBoxRef:i,keyboardDelegate:l,shouldFocusWrap:s,isReadOnly:a,isDisabled:u}=e,c=zc(tS(_y),"@react-aria/combobox"),{menuTriggerProps:f,menuProps:d}=Jw({type:"listbox",isDisabled:u||a},t,n);Ul.set(t,{id:d.id});let h=p.useMemo(()=>l||new Uv(t.collection,t.disabledKeys,i),[l,t.collection,t.disabledKeys,i]),{collectionProps:E}=Kv({selectionManager:t.selectionManager,keyboardDelegate:h,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:s,ref:o,isVirtualized:!0}),b=jc(),w=K=>{switch(K.key){case"Enter":case"Tab":if(t.isOpen&&K.key==="Enter"&&K.preventDefault(),t.isOpen&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){if(K.key==="Enter"){let ee=i.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);ee instanceof HTMLAnchorElement&&b.open(ee,K)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&K.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},y=K=>{var ee;K.relatedTarget===(n==null?void 0:n.current)||!((ee=r.current)===null||ee===void 0)&&ee.contains(K.relatedTarget)||(e.onBlur&&e.onBlur(K),t.setFocused(!1))},m=K=>{t.isFocused||(e.onFocus&&e.onFocus(K),t.setFocused(!0))},{isInvalid:x,validationErrors:S,validationDetails:T}=t.displayValidation,{labelProps:C,inputProps:_,descriptionProps:v,errorMessageProps:L}=eS({...e,onChange:t.setInputValue,onKeyDown:a?e.onKeyDown:_o(t.isOpen&&E.onKeyDown,w,e.onKeyDown),onBlur:y,value:t.inputValue,onFocus:m,autoComplete:"off",validate:void 0,[ou]:t},o),N=K=>{K.pointerType==="touch"&&(o.current.focus(),t.toggle(null,"manual"))},P=K=>{K.pointerType!=="touch"&&(o.current.focus(),t.toggle(K.pointerType==="keyboard"||K.pointerType==="virtual"?"first":null,"manual"))},D=sl({id:f.id,"aria-label":c.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||C.id}),k=sl({id:d.id,"aria-label":c.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||C.id}),I=p.useRef(0),H=K=>{if(u||a)return;if(K.timeStamp-I.current<500){K.preventDefault(),o.current.focus();return}let ee=K.target.getBoundingClientRect(),bn=K.changedTouches[0],Ir=Math.ceil(ee.left+.5*ee.width),Uo=Math.ceil(ee.top+.5*ee.height);bn.clientX===Ir&&bn.clientY===Uo&&(K.preventDefault(),o.current.focus(),t.toggle(null,"manual"),I.current=K.timeStamp)},J=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var O;let A=(O=J==null?void 0:J.parentKey)!==null&&O!==void 0?O:null;var B;let M=(B=t.selectionManager.focusedKey)!==null&&B!==void 0?B:null,U=p.useRef(A),W=p.useRef(M);p.useEffect(()=>{if(Ri()&&J!=null&&M!==W.current){let K=t.selectionManager.isSelected(M),ee=A!=null?t.collection.getItem(A):null,bn=(ee==null?void 0:ee["aria-label"])||(typeof(ee==null?void 0:ee.rendered)=="string"?ee.rendered:"")||"",Ir=c.format("focusAnnouncement",{isGroupChange:ee&&A!==U.current,groupTitle:bn,groupCount:ee?[...Ol(ee,t.collection)].length:0,optionText:J["aria-label"]||J.textValue||"",isSelected:K});qs(Ir)}U.current=A,W.current=M});let Xe=ng(t.collection),Ue=p.useRef(Xe),St=p.useRef(t.isOpen);p.useEffect(()=>{let K=t.isOpen!==St.current&&(t.selectionManager.focusedKey==null||Ri());if(t.isOpen&&(K||Xe!==Ue.current)){let ee=c.format("countAnnouncement",{optionCount:Xe});qs(ee)}Ue.current=Xe,St.current=t.isOpen});let Re=p.useRef(t.selectedKey);return p.useEffect(()=>{if(Ri()&&t.isFocused&&t.selectedItem&&t.selectedKey!==Re.current){let K=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",ee=c.format("selectedAnnouncement",{optionText:K});qs(ee)}Re.current=t.selectedKey}),p.useEffect(()=>{if(t.isOpen)return Hv([o.current,r.current])},[t.isOpen,o,r]),{labelProps:C,buttonProps:{...f,...D,excludeFromTabOrder:!0,onPress:N,onPressStart:P,isDisabled:u||a},inputProps:Oe(_,{role:"combobox","aria-expanded":f["aria-expanded"],"aria-controls":t.isOpen?d.id:void 0,"aria-autocomplete":"list","aria-activedescendant":J?zv(t,J.key):void 0,onTouchEnd:H,autoCorrect:"off",spellCheck:"false"}),listBoxProps:Oe(d,k,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:v,errorMessageProps:L,isInvalid:x,validationErrors:S,validationDetails:T}}const rS="_focused_1af8e_1",oS="_listbox_1af8e_10",iS="_content_1af8e_89",lS="_description_1af8e_98",sS="_uppercase_1af8e_126",aS="_divider_1af8e_130",Ve={focused:rS,listbox:oS,"listbox-top":"_listbox-top_1af8e_35","listbox-bottom":"_listbox-bottom_1af8e_39","listbox-content":"_listbox-content_1af8e_43","listbox-section-list":"_listbox-section-list_1af8e_51","listbox-section":"_listbox-section_1af8e_51","listbox-item":"_listbox-item_1af8e_61",content:iS,description:lS,uppercase:sS,divider:aS,"listbox-item--green-tilleul-verveine":"_listbox-item--green-tilleul-verveine_1af8e_141","listbox--green-tilleul-verveine":"_listbox--green-tilleul-verveine_1af8e_149","listbox-item--green-bourgeon":"_listbox-item--green-bourgeon_1af8e_157","listbox--green-bourgeon":"_listbox--green-bourgeon_1af8e_165","listbox-item--green-emeraude":"_listbox-item--green-emeraude_1af8e_173","listbox--green-emeraude":"_listbox--green-emeraude_1af8e_181","listbox-item--green-menthe":"_listbox-item--green-menthe_1af8e_189","listbox--green-menthe":"_listbox--green-menthe_1af8e_197","listbox-item--green-archipel":"_listbox-item--green-archipel_1af8e_205","listbox--green-archipel":"_listbox--green-archipel_1af8e_213","listbox-item--blue-ecume":"_listbox-item--blue-ecume_1af8e_221","listbox--blue-ecume":"_listbox--blue-ecume_1af8e_229","listbox-item--blue-cumulus":"_listbox-item--blue-cumulus_1af8e_237","listbox--blue-cumulus":"_listbox--blue-cumulus_1af8e_245","listbox-item--purple-glycine":"_listbox-item--purple-glycine_1af8e_253","listbox--purple-glycine":"_listbox--purple-glycine_1af8e_261","listbox-item--pink-macaron":"_listbox-item--pink-macaron_1af8e_269","listbox--pink-macaron":"_listbox--pink-macaron_1af8e_277","listbox-item--pink-tuile":"_listbox-item--pink-tuile_1af8e_285","listbox--pink-tuile":"_listbox--pink-tuile_1af8e_293","listbox-item--yellow-tournesol":"_listbox-item--yellow-tournesol_1af8e_301","listbox--yellow-tournesol":"_listbox--yellow-tournesol_1af8e_309","listbox-item--yellow-moutarde":"_listbox-item--yellow-moutarde_1af8e_317","listbox--yellow-moutarde":"_listbox--yellow-moutarde_1af8e_325","listbox-item--orange-terre-battue":"_listbox-item--orange-terre-battue_1af8e_333","listbox--orange-terre-battue":"_listbox--orange-terre-battue_1af8e_341","listbox-item--brown-cafe-creme":"_listbox-item--brown-cafe-creme_1af8e_349","listbox--brown-cafe-creme":"_listbox--brown-cafe-creme_1af8e_357","listbox-item--brown-caramel":"_listbox-item--brown-caramel_1af8e_365","listbox--brown-caramel":"_listbox--brown-caramel_1af8e_373","listbox-item--brown-opera":"_listbox-item--brown-opera_1af8e_381","listbox--brown-opera":"_listbox--brown-opera_1af8e_389","listbox-item--beige-gris-galet":"_listbox-item--beige-gris-galet_1af8e_397","listbox--beige-gris-galet":"_listbox--beige-gris-galet_1af8e_405","listbox-item--success":"_listbox-item--success_1af8e_413","listbox--success":"_listbox--success_1af8e_421","listbox-item--warning":"_listbox-item--warning_1af8e_429","listbox--warning":"_listbox--warning_1af8e_437","listbox-item--info":"_listbox-item--info_1af8e_445","listbox--info":"_listbox--info_1af8e_453","listbox-item--error":"_listbox-item--error_1af8e_461","listbox--error":"_listbox--error_1af8e_469"},Py=p.createContext({}),uS=({children:e,routerComponent:t,extendRequiredFieldsLabelsWith:n=g.jsx("span",{style:{color:"var(--text-default-error)"},children:" *"}),extendOptionalFieldsLabelsWith:r=" (optionnel)",defaultLang:o="fr",verbose:i=!1})=>{const[l,s]=p.useState(window.localStorage.getItem("locale")||o),[a,u]=p.useState(!1);p.useEffect(()=>{const d=async()=>{var w,y,m;if(typeof window!==void 0||typeof window.dsfr<"u"){if((w=window==null?void 0:window.dsfr)!=null&&w.isStarted)return;window.dsfr={verbose:i,mode:"manual"},await Qn(()=>import("./dsfr.module.min-23ae5258-c178c6bb.js"),[]),await Qn(()=>import("./utility-251e9615-ae73a71d.js"),[]),await Qn(()=>import("./dsfr-4e49221c-2d2b34ee.js"),[]),(m=(y=window.dsfr).start)==null||m.call(y),u(!0)}else console.error("dsfr.start is not a function");window.dsfr={verbose:i,mode:"manual"},await Qn(()=>import("./dsfr.module.min-23ae5258-c178c6bb.js"),[]),await Qn(()=>import("./utility-251e9615-ae73a71d.js"),[]),await Qn(()=>import("./dsfr-4e49221c-2d2b34ee.js"),[]),window.dsfr.start(),u(!0)},h=window.matchMedia("(prefers-color-scheme: dark)"),E=h!=null&&h.matches?"dark":"light",b=window.localStorage.getItem("theme");document.documentElement.setAttribute("data-fr-scheme",b||E),d()},[]);const c=p.useCallback(d=>{window.localStorage.setItem("locale",d),document.documentElement.setAttribute("lang",d),s(d)},[]),f=p.useMemo(()=>({setLocale:c,routerComponent:t,locale:l,extendRequiredFieldsLabelsWith:n,extendOptionalFieldsLabelsWith:r}),[t,c,l,n,r]);return g.jsx(Py.Provider,{value:f,children:a?e:null})},jo=()=>p.useContext(Py),Se=p.forwardRef(({children:e,className:t,icon:n,current:r,iconPosition:o="left",isSimple:i=!1,size:l="md",...s},a)=>{const{routerComponent:u}=jo();return g.jsx(u||"a",{ref:a,"aria-current":r||void 0,className:R({"fr-link":i,[`fr-link-${l}`]:l!=="md",[`fr-icon-${n}`]:!!n,[`fr-link--icon-${o}`]:n&&o},t),...s,children:e})});function Ny({item:e,state:t}){const n=p.useRef(null),{optionProps:r,descriptionProps:o,labelProps:i,isFocused:l,isFocusVisible:s}=Xw({key:e.key},t,n),{description:a,startContent:u,endContent:c,color:f,showDivider:d,href:h,className:E}=e.props||{};return g.jsxs(h?Se:"li",{...r,ref:n,href:h,className:R(Ve["listbox-item"],E,{[Ve[`listbox-item--${f}`]]:f,[Ve.divider]:d,"fr-enlarge-link":h,[Ve.focused]:l&&s}),children:[u&&u,g.jsxs("span",{className:Ve.content,children:[g.jsx("span",{...i,children:e.rendered}),a&&g.jsx("span",{...o,className:Ve.description,children:a})]}),c&&c]})}function cS({section:e,state:t}){const{itemProps:n,headingProps:r,groupProps:o}=Yw({heading:e.rendered,"aria-label":e["aria-label"]}),{showDivider:i,className:l,css:s={}}=e.props||{},a=[...e.childNodes].find(u=>u.props.href)?"div":"ul";return g.jsxs("li",{...n,className:R(Ve["listbox-section"],l,s.base,{[Ve.divider]:i}),children:[e.rendered&&g.jsx("span",{...r,className:R("fr-text-mention--grey fr-text--sm fr-my-1w fr-px-1w",s.title),children:e.rendered}),g.jsx(a,{...o,className:R(Ve["listbox-section-list"],s.list),children:[...e.childNodes].map(u=>g.jsx(Ny,{item:u,state:t},u.key))})]})}function fS(e){var t,n;const r=p.useRef(null),{listBoxRef:o=r,state:i,className:l,css:s={},color:a,topContent:u,bottomContent:c,...f}=e,{listBoxProps:d}=qw(f,i,o),{isFocusVisible:h}=ew(),E=[...i.collection].find(w=>w.props.href)?"div":"ul",b=((n=(t=e==null?void 0:e.triggerRef)==null?void 0:t.current)==null?void 0:n.offsetWidth)||0;return g.jsxs("div",{className:R(Ve.listbox,l,s.base),style:{minWidth:b||"auto",maxWidth:b>150?b:"auto"},children:[g.jsx("span",{className:R(Ve["listbox-top"],s.top),children:u&&u}),g.jsx(E,{className:R(Ve["listbox-content"],s.list,{[Ve[`listbox--${a}`]]:a}),ref:o,"data-focus-visible":h,...d,children:[...i.collection].map(w=>w.type==="section"?p.createElement(cS,{...w.props,key:w.key,section:w,state:i}):p.createElement(Ny,{...w.props,key:w.key,item:w,state:i}))}),g.jsx("span",{className:R(Ve["listbox-bottom"],s.bottom),children:c&&c})]})}const dS="_popover_1g6m6_1",hS={popover:dS};function pS({children:e,state:t,...n}){const r=p.useRef(null),{isNonModal:o=!1,popoverRef:i=r}=n,{popoverProps:l,underlayProps:s}=Bw({...n,popoverRef:i},t);return g.jsxs(Kw,{children:[!o&&g.jsx("div",{...s,style:{position:"fixed",inset:0}}),g.jsxs("div",{...l,ref:i,className:hS.popover,children:[!o&&g.jsx(Yd,{onDismiss:t.close}),e,g.jsx(Yd,{onDismiss:t.close})]})]})}const mS="_spinner_1m2vp_5",gS="_internal_1m2vp_27",eh={spinner:mS,"internal-circle":"_internal-circle_1m2vp_27",internal:gS};function vS({size:e=24}){const t=p.useId();return p.useEffect(()=>{var n,r;(n=document==null?void 0:document.getElementById(t))==null||n.style.setProperty("width",`${e}px`),(r=document==null?void 0:document.getElementById(t))==null||r.style.setProperty("height",`${e}px`)},[e,t]),g.jsx("svg",{id:t,className:eh.spinner,viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg",children:g.jsx("circle",{className:eh["internal-circle"],cx:"60",cy:"60",r:"30"})})}function yS(e){const{contains:t}=dw({sensitivity:"base"}),n=$E({...e,defaultFilter:t,allowsCustomValue:!0}),r=p.useRef(null),o=p.useRef(null),i=p.useRef(null),l=p.useRef(null),{size:s="md",color:a,onSubmit:u,topContent:c,bottomContent:f,...d}=e,{inputProps:h,listBoxProps:E}=nS({...d,inputRef:r,listBoxRef:o,popoverRef:i,onKeyUp:b=>{var w;b.key==="Enter"&&(b.preventDefault(),(w=e.onSubmit)==null||w.call(e,n.inputValue))}},n);return g.jsxs("form",{onSubmit:()=>u==null?void 0:u((e==null?void 0:e.inputValue)||""),ref:l,className:R("fr-search-bar",{"fr-search-bar--lg":s==="lg"}),role:"search",children:[g.jsx("input",{...h,type:"search",ref:r,className:"fr-input"}),g.jsxs("button",{type:"submit",style:{position:"relative"},className:R("fr-btn",{"fr-btn--lg":s==="lg"}),children:[g.jsx("div",{style:{position:"absolute",left:"-40px"},children:e.loadingState==="loading"&&g.jsx(vS,{})}),"Rechercher"]}),n.isOpen&&g.jsx(pS,{popoverRef:i,triggerRef:r,state:n,isNonModal:!1,placement:"bottom start",children:g.jsx(fS,{...E,color:a,listBoxRef:o,triggerRef:l,state:n,topContent:c,bottomContent:f})})]})}const xS=p.forwardRef,Ze=xS(({as:e,className:t,noIcon:n,color:r="blue-france",size:o,icon:i,variant:l="primary",...s},a)=>{const u=e==="a"?Se:e||"p",c=R("fr-badge",{[`fr-badge--${l}`]:l,[`fr-badge--${r}`]:r,[`fr-icon-${i}`]:i,"fr-badge--icon-":i,"fr-badge--no-icon":n,"fr-badge--sm":o==="sm"},t);return g.jsx(u,{className:c,ref:a,...s})}),Vc=({children:e,className:t,...n})=>{const r=p.useId(),o=R("fr-badges-group",t);return g.jsx("ul",{className:o,...n,children:Tn(e,Ze).map((i,l)=>g.jsx("li",{children:i},`${r}-${l}`))})},ES=p.forwardRef,xu=ES(({as:e,className:t,color:n="blue-france",icon:r,iconPosition:o="left",size:i="md",variant:l="primary",children:s,...a},u)=>{const c=e==="a"?Se:e||"button",f=R("fr-btn",{[`fr-btn--${i}`]:i!=="md",[`dfr-btn--${n}`]:!!n&&n!=="blue-france","fr-btn--secondary":l==="secondary","fr-btn--tertiary":l==="tertiary","fr-btn--tertiary-no-outline":l==="text",[`fr-icon-${r}`]:!!r,[`fr-btn--icon-${o}`]:r&&s,"fr-btn--icon":r&&!s},t);return g.jsx(c,{className:f,ref:u,...a,children:s})});p.forwardRef(({className:e,css:t={},hint:n,id:r,label:o,size:i,...l},s)=>{const a=p.useId(),u=r||a;return g.jsxs("div",{className:R("fr-checkbox-group",{"fr-checkbox-group--sm":i==="sm"},e),children:[g.jsx("input",{ref:s,type:"checkbox",id:u,className:R(t.input),...l}),g.jsxs("label",{className:R("fr-label",t.label),htmlFor:u,children:[o,n&&g.jsx("span",{className:R("fr-hint-text",t.labelHint),children:n})]})]})});const th=["__TYPE"];function zl(e,t={}){const{include:n,exclude:r}=t;if(n)return Object.entries(e).reduce((i,[l,s])=>n.includes(l)?{...i,[l]:s}:i,{});const o=r?[...th,...r]:th;return Object.entries(e).reduce((i,[l,s])=>o.includes(l)?i:{...i,[l]:s},{})}p.forwardRef(({children:e,className:t,css:n={},hint:r,isInline:o=!1,legend:i,message:l,messageType:s,required:a,...u},c)=>{const f=p.useId(),{extendRequiredFieldsLabelsWith:d,extendOptionalFieldsLabelsWith:h}=jo();return g.jsxs("fieldset",{ref:c,className:R("fr-fieldset",{[`fr-fieldset--${s}`]:s},t),...zl(u),"aria-labelledby":l&&s?`${f}-message`:void 0,children:[i&&g.jsxs("legend",{className:R("fr-fieldset__legend fr-text--regular",n.legend),children:[i,a?d:h,r&&g.jsx("span",{className:R("fr-hint-text",n.legendHint),children:r})]}),p.Children.toArray(e).map((E,b)=>g.jsx("div",{className:R("fr-fieldset__element",{"fr-fieldset__element--inline":o},n.element),children:E},`${f}-${b}`)),l&&s&&g.jsx("div",{id:`${f}-message`,className:R("fr-messages-group",n.messageDiv),children:g.jsx("p",{className:R(`fr-message fr-message--${s}`,n.messageP),children:l})})]})});p.forwardRef(({id:e,className:t,css:n={},errorMessage:r,hint:o,label:i="Ajouter des fichiers",...l},s)=>{const a=p.useId(),u=e||a,{extendOptionalFieldsLabelsWith:c,extendRequiredFieldsLabelsWith:f}=jo();return g.jsxs("div",{className:R("fr-upload-group",{"fr-input-group--error":r,"fr-input-group--disabled":l.disabled},t),children:[g.jsxs("label",{className:R("fr-label",n.label),htmlFor:u,children:[i,l.required?f:c,o&&g.jsx("span",{className:"fr-hint-text",children:o})]}),g.jsx("input",{ref:s,id:u,className:R("fr-upload",n.input),type:"file","aria-describedby":r?`${u}-message`:void 0,...l}),r&&g.jsx("p",{id:`${u}-message`,className:R("fr-error-text",n.errorParagraph),children:r})]})});const bS=p.forwardRef,xe=bS(({as:e="div",className:t,fluid:n=!1,fluidFrom:r="xs",...o},i)=>{const l=R({"fr-container":!n,"fr-container-fluid":n||r==="xs",[`fr-container-${r}--fluid`]:!n&&r!=="xs"},t);return g.jsx(e,{className:l,ref:i,...o})}),ky=({gutters:e=!1,horizontalAlign:t,verticalAlign:n,className:r,...o})=>{const i=R("fr-grid-row",{"fr-grid-row--gutters":e,[`fr-grid-row--${t}`]:t,[`fr-grid-row--${n}`]:n},r);return g.jsx("div",{className:i,...o})},Js=({xs:e,sm:t,md:n,lg:r,xl:o,offsetXs:i,offsetSm:l,offsetMd:s,offsetLg:a,offsetXl:u,className:c,...f})=>{const d=R("fr-col",{[`fr-col-${e}`]:e,[`fr-col-sm-${t}`]:t,[`fr-col-md-${n}`]:n,[`fr-col-lg-${r}`]:r,[`fr-col-xl-${o}`]:o,[`fr-col-offset-${i}`]:i,[`fr-col-offset-sm-${l}`]:l,[`fr-col-offset-md-${s}`]:s,[`fr-col-offset-lg-${a}`]:a,[`fr-col-offset-xl-${u}`]:u},c);return g.jsx("div",{className:d,...f})},Ry=({href:e="/",name:t,tagline:n,className:r,css:o={},...i})=>g.jsxs("div",{className:R("fr-header__service",r),children:[g.jsx("p",{className:R("fr-header__service-title",o["fr-header__service-title"]),children:g.jsx(Se,{href:e,...i,children:t})}),n&&g.jsx("p",{className:R("fr-header__service-tagline",o["fr-header__service-tagline"]),children:n})]}),wS=({children:e,className:t,css:n={},...r})=>{const o=p.useId(),i=r.id||o;return g.jsxs("div",{className:R("fr-header__tools-links",t),...r,children:[g.jsx("ul",{className:R("fr-btns-group",n["fr-btns-group"]),children:Tn(e,xu).map((l,s)=>g.jsx("li",{children:l},`${i}-${s}`))}),mE(e,[xu])]})},SS=({className:e,css:t={},...n})=>g.jsx("div",{className:R("fr-header__operator",e),children:g.jsx("img",{className:R("fr-responsive-img",t["fr-responsive-img"]),...n})}),Ly=p.forwardRef(({className:e,css:t={},buttonLabel:n,isLarge:r,label:o,onSearch:i,placeholder:l,...s},a)=>{const u=p.useRef(null),c=p.useId(),f=s.id||c,d=h=>{var E;return h.key==="Enter"&&i((E=u.current)==null?void 0:E.value)};return g.jsxs("div",{role:"search",className:R("fr-search-bar",{"fr-search-bar--lg":r},e),children:[o&&g.jsx("label",{className:R("fr-label",t["fr-label"]),htmlFor:f,children:o}),g.jsx("input",{ref:h=>Fo(h,[a,u]),className:R("fr-input",t["fr-input"]),type:"search",id:f,onKeyDown:d,placeholder:l,...zl(s)}),g.jsx("button",{type:"button",onClick:()=>{var h;return i((h=u.current)==null?void 0:h.value)},className:R("fr-btn",{"fr-btn--lg":r},t["fr-btn"]),title:n,children:n})]})}),$y=({children:e,className:t,current:n=!1,css:r={},title:o,...i})=>{const l=p.useId(),s=Ac(e,[$y,Se]);return g.jsxs(g.Fragment,{children:[g.jsx("button",{className:R("fr-nav__btn",t),"aria-expanded":"false","aria-controls":l,"aria-current":n||void 0,...i,children:o}),g.jsx("div",{className:R("fr-collapse","fr-menu",r["fr-menu"]),id:l,children:g.jsx("ul",{className:R("fr-menu__list",r["fr-menu__list"]),children:s.map((a,u)=>g.jsx("li",{className:"fr-nav__item",children:p.isValidElement(a)&&a.type===Se?p.cloneElement(a,{className:R("fr-nav__link",a.props.className)}):a},`navitem-${l}-${u}`))})})]})},Iy=({children:e,className:t,css:n={},...r})=>{const o=p.useId(),i=r.id||o;return g.jsx("nav",{className:R("fr-nav",t),id:i,role:"navigation",...r,children:g.jsx("ul",{className:R("fr-nav__list",n["fr-nav__list"]),children:Ac(e,[$y,Se]).map((l,s)=>p.isValidElement(l)&&g.jsx("li",{className:R("fr-nav__item",n["fr-nav__item"]),children:l.type===Se?p.cloneElement(l,{className:R("fr-nav__link",l.props.className)}):l},`navitem-${i}-${s}`))})})},Vl=({text:e,splitCharacter:t="|"})=>{const n=e.split(t).reduce((r,o,i)=>i>0?[...r,g.jsx("br",{},`br-${i}`),g.jsx(p.Fragment,{children:o},i)]:[g.jsx(p.Fragment,{children:o},i)],[]);return g.jsx("div",{className:"fr-header__logo",children:g.jsx("p",{className:"fr-logo",children:n})})},CS=({children:e,className:t,css:n={},...r})=>{var o,i,l,s;const a=p.useId(),u=p.useId(),c=p.useId(),f=p.useId(),d=(o=Tn(e,Ry))==null?void 0:o[0],h=(i=Tn(e,wS))==null?void 0:i[0],E=(l=Ac(e,[Ly,yS]))==null?void 0:l[0],b=(s=Tn(e,Iy))==null?void 0:s[0],w=Tn(e,Vl),y=Tn(e,SS),m=p.isValidElement(E)?E.props.title:"Rechercher";return g.jsxs("header",{role:"banner",className:R("fr-header",t),...r,children:[g.jsx("div",{className:R("fr-header__body",n["fr-header__body"]),children:g.jsx("div",{className:"fr-container",children:g.jsxs("div",{className:R("fr-header__body-row",n["fr-header__body-row"]),children:[g.jsxs("div",{className:R("fr-header__brand fr-enlarge-link",n["fr-header__brand"]),children:[g.jsxs("div",{className:R("fr-header__brand-top",n["fr-header__brand-top"]),children:[w&&w,y&&y,(h||E)&&g.jsxs("div",{className:R("fr-header__navbar",n["fr-header__navbar"]),children:[E&&g.jsx("button",{className:R("fr-btn--search fr-btn",n["fr-btn--search"]),"data-fr-opened":"false","aria-controls":u,id:a,title:m,children:m}),h&&g.jsx("button",{className:R("fr-btn--menu fr-btn",n["fr-btn--menu"]),"data-fr-opened":"false","aria-controls":c,"aria-haspopup":"menu",id:f,title:"Menu",children:"Menu"})]})]}),d&&d]}),g.jsxs("div",{className:R("fr-header__tools",n["fr-header__tools"]),children:[h,E&&g.jsx("div",{className:R("fr-header__search fr-modal",n["fr-header__search"]),id:u,children:g.jsxs("div",{className:"fr-container fr-container-lg--fluid",children:[g.jsx("button",{className:"fr-btn--close fr-btn","aria-controls":u,title:"Fermer",children:"Fermer"}),E]})})]})]})})}),g.jsx("div",{className:R("fr-header__menu fr-modal",n["fr-header__menu"]),id:c,"aria-labelledby":f,children:g.jsxs("div",{className:"fr-container",children:[g.jsx("button",{className:"fr-btn--close fr-btn","aria-controls":c,title:"Fermer",children:"Fermer"}),g.jsx("div",{className:R("fr-header__menu-links",n["fr-header__menu-links"])}),b&&b]})})]})};p.forwardRef(({className:e,css:t={},disableAutoValidation:n=!1,hint:r,icon:o,id:i,label:l,message:s,messageType:a,onBlur:u,onChange:c,disabled:f,required:d,isOptional:h,...E},b)=>{const{extendRequiredFieldsLabelsWith:w,extendOptionalFieldsLabelsWith:y}=jo(),[m,x]=p.useState(""),S=i||p.useId(),T=p.useRef(null),C=s!==void 0||a!==void 0,_=R("fr-input",{"fr-input--error":C?a==="error":m==="error","fr-input--valid":C?a==="valid":m==="valid"},t["fr-input"]),v=R("fr-input-group",{"fr-input-group--error":C?a==="error":m==="error","fr-input-group--valid":C?a==="valid":m==="valid","fr-input-group--disabled":f},e),L=P=>{const D=T.current;!n&&!C&&D&&x(D.checkValidity()?"valid":"error"),u&&u(P)},N=P=>{const D=T.current;!n&&!C&&D&&m&&x(D.checkValidity()?"valid":"error"),c&&c(P)};return g.jsxs("div",{className:v,children:[g.jsxs("label",{className:R("fr-label",t["fr-label"]),htmlFor:S,children:[l,d&&!h&&w,h&&!d&&y,r&&g.jsx("span",{className:R("fr-hint-text",t["fr-hint-text"]),children:r})]}),g.jsx("div",{className:R("fr-input-wrap",{[`fr-icon-${o}`]:o},t["fr-input-wrap"]),children:g.jsx("input",{id:S,disabled:f,className:_,onBlur:L,onChange:N,ref:P=>Fo(P,[b,T]),"aria-describedby":a?`${S}-message`:void 0,...E})}),a&&g.jsx("p",{className:`fr-${a}-text`,id:`${S}-message`,children:s})]})});p.forwardRef(({className:e,css:t={},disableAutoValidation:n=!1,hint:r,icon:o,id:i,label:l,message:s,messageType:a,onBlur:u,onChange:c,disabled:f,required:d,isOptional:h,...E},b)=>{const{extendRequiredFieldsLabelsWith:w,extendOptionalFieldsLabelsWith:y}=jo(),[m,x]=p.useState(""),S=i||p.useId(),T=p.useRef(null),C=s!==void 0||a!==void 0,_=R("fr-input",{"fr-input--error":C?a==="error":m==="error","fr-input--valid":C?a==="valid":m==="valid"},t["fr-input"]),v=R("fr-input-group",{"fr-input-group--error":C?a==="error":m==="error","fr-input-group--valid":C?a==="valid":m==="valid","fr-input-group--disabled":f},e),L=P=>{const D=T.current;!n&&!C&&D&&x(D.checkValidity()?"valid":"error"),u&&u(P)},N=P=>{const D=T.current;!n&&!C&&D&&m&&x(D.checkValidity()?"valid":"error"),c&&c(P)};return g.jsxs("div",{className:v,children:[g.jsxs("label",{className:R("fr-label",t["fr-label"]),htmlFor:S,children:[l,d&&!h&&w,h&&!d&&y,r&&g.jsx("span",{className:R("fr-hint-text",t["fr-hint-text"]),children:r})]}),g.jsx("div",{className:R("fr-input-wrap",{[`fr-icon-${o}`]:o},t["fr-input-wrap"]),children:g.jsx("textarea",{id:S,className:_,disabled:f,onBlur:L,onChange:N,ref:P=>Fo(P,[b,T]),"aria-describedby":a?`${S}-message`:void 0,...E})}),a&&g.jsx("p",{className:`fr-${a}-text`,id:`${S}-message`,children:s})]})});p.forwardRef(({className:e,color:t="blue-france",icon:n,iconPosition:r="left",size:o="md",variant:i="primary",children:l,...s},a)=>{const u=R("fr-btn",{[`fr-btn--${o}`]:o!=="md",[`dfr-btn--${t}`]:!!t&&t!=="blue-france","fr-btn--secondary":i==="secondary","fr-btn--tertiary":i==="tertiary","fr-btn--tertiary-no-outline":i==="text",[`fr-icon-${n}`]:!!n,[`fr-btn--icon-${r}`]:n&&l,"fr-btn--icon":n&&!l},e);return g.jsx("button",{className:u,ref:a,...s,children:l})});p.forwardRef(({children:e,className:t,icon:n,id:r,...o},i)=>{const l=R("fr-modal__title",t);return g.jsxs("h1",{ref:i,className:l,id:`${r}-title`,...zl(o),children:[n&&g.jsx("span",{className:`fr-icon-${n} fr-icon--lg`}),e]})});p.forwardRef(({className:e,controls:t,children:n="Fermer",...r},o)=>g.jsx("button",{ref:o,id:`${t}-close`,"aria-controls":t||void 0,className:R("fr-btn--close fr-btn",e),type:"button",...r,children:n}));p.forwardRef(({...e},t)=>g.jsx("div",{ref:t,...e}));p.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:R("fr-modal__footer",e),...t}));const My=({children:e,closeMode:t="disallow",type:n="info",className:r,css:o={},onClose:i,...l})=>{const s=p.useRef(null),a=c=>{var f;c.preventDefault(),(f=s.current)==null||f.remove(),i&&i(c)},u=R("fr-notice",{"fr-notice--info":n==="info",[`dsfr-plus-notice--${n}`]:n!=="info"},r);return g.jsx("div",{ref:s,className:u,...l,children:g.jsx("div",{className:R("fr-container",o["fr-container"]),children:g.jsxs("div",{className:R("fr-notice__body",o["fr-notice__body"]),children:[g.jsx("p",{className:R("fr-notice__title",o["fr-notice__title"]),children:e}),t!=="disallow"&&g.jsx("button",{onClick:t==="uncontrolled"?a:i,className:R("fr-btn--close","fr-btn",o["fr-btn--close"]),children:"Masquer le message"})]})})})};p.forwardRef(({checked:e,className:t,css:n={},hint:r,id:o,imageComponent:i,label:l,name:s,...a},u)=>{const c=o||p.useId();return g.jsxs("div",{className:R("fr-radio-group",{"fr-radio-rich":i},t),children:[g.jsx("input",{checked:e,id:c,name:s,ref:u,type:"radio",...a}),g.jsxs("label",{className:R("fr-label"),htmlFor:c,children:[l,r&&g.jsx("p",{className:R("fr-hint-text"),children:r})]}),i&&g.jsx("div",{className:R("fr-radio-rich__img"),children:i})]})});function TS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ay={exports:{}},ea,nh;function _S(){if(nh)return ea;nh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ea=e,ea}var ta,rh;function PS(){if(rh)return ta;rh=1;var e=_S();function t(){}function n(){}return n.resetWarningCache=t,ta=function(){function r(l,s,a,u,c,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},ta}Ay.exports=PS()();var NS=Ay.exports;const kS=TS(NS),RS="_spinner_143d9_5",LS="_internal_143d9_40",$S="_external_143d9_41",na={spinner:RS,"internal-circle":"_internal-circle_143d9_40","external-circle":"_external-circle_143d9_41",internal:LS,external:$S,"spinner-overlay":"_spinner-overlay_143d9_57"};function Gc({size:e}){const t=p.useId();return p.useEffect(()=>{var n,r;(n=document==null?void 0:document.getElementById(t))==null||n.style.setProperty("width",`${e}px`),(r=document==null?void 0:document.getElementById(t))==null||r.style.setProperty("height",`${e}px`)},[e,t]),g.jsxs("svg",{id:t,className:na.spinner,viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg",children:[g.jsx("circle",{className:na["internal-circle"],cx:"60",cy:"60",r:"30"}),g.jsx("circle",{className:na["external-circle"],cx:"60",cy:"60",r:"50"})]})}Gc.propTypes={size:kS.number};Gc.defaultProps={size:48};const Wc=p.forwardRef,Qc=({className:e,color:t,icon:n,iconPosition:r,size:o})=>R("fr-tag",e,{"fr-tag--sm":o==="sm",[`fr-icon-${n}`]:n,[`fr-tag--icon-${r}`]:n&&r,[`fr-tag--${t}`]:t});Wc(({as:e,className:t,color:n,icon:r,iconPosition:o="right",size:i,...l},s)=>{const a=Qc({className:t,color:n,icon:r,iconPosition:o,size:i});return g.jsx(e==="a"?Se:e||"p",{className:a,ref:s,...l})});Wc(({as:e,className:t,color:n,icon:r,iconPosition:o="left",selected:i,size:l,...s},a)=>{const u=Qc({className:t,color:n,icon:r,iconPosition:o,size:l});return g.jsx(e==="a"?Se:e||"button",{"aria-pressed":i,className:u,"data-fr-js-disable":"true",ref:a,...s})});Wc(({as:e,className:t,color:n,icon:r,iconPosition:o="left",size:i,...l},s)=>{const a=R("custom-dismissible-tag",Qc({className:t,color:n,icon:r,iconPosition:o,size:i}));return g.jsx(e==="a"?Se:e||"button",{className:a,ref:s,...l})});const ra=({alt:e,as:t="p",bold:n,className:r,size:o,...i})=>{const l=R(r,{"fr-text--alt":o!=="lead"&&e,"fr-text--heavy":n,[`fr-text--${o}`]:o&&o!=="md"});return g.jsx(t,{className:l,...i})};p.createContext({});p.forwardRef(({className:e,css:t={},hasLabelLeft:n,hasSeparator:r,hint:o,label:i,...l},s)=>{const a=p.useId(),u=l.id||a,c=R("fr-toggle",{"fr-toggle--border-bottom":r,"fr-toggle--label-left":n},e);return g.jsxs("div",{className:c,children:[g.jsx("input",{ref:s,type:"checkbox",className:R("fr-toggle__input",t["fr-toggle__input"]),id:u,...zl(l,{exclude:["type"]})}),g.jsx("label",{className:R("fr-toggle__label",t["fr-toggle__label"]),htmlFor:u,"data-fr-checked-label":"Activé","data-fr-unchecked-label":"Désactivé",children:i}),o&&g.jsx("p",{className:R("fr-hint-text",t["fr-hint-text"]),children:o})]})});p.forwardRef(({className:e,icon:t,id:n,label:r,name:o,...i},l)=>g.jsxs("div",{className:R("fr-segmented__element"),style:{width:"100%"},children:[g.jsx("input",{id:n,name:o,ref:l,type:"radio",...i}),g.jsx("label",{className:R("fr-label",t),htmlFor:n,children:r})]}));/** +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o{const i=new MutationObserver(t);o(i)},[t,n,o]),p.useEffect(()=>{if(!r||!e)return;const{config:i}=n;return r.observe(e,i),()=>{r&&r.disconnect()}},[r,e,n])}function Fo(e,t){e&&t.forEach(n=>{typeof n=="function"?n(e):n&&(n.current=e)})}const mE=p.forwardRef(({title:e,titleAs:t="h3",children:n,className:r,css:o={},defaultExpanded:i=!1,...l},s)=>{const a=p.useId(),u=p.useRef(null),[c,f]=p.useState(!!i),d=p.useCallback(h=>{var E;if(h.find(b=>b.attributeName==="aria-expanded")&&(E=u==null?void 0:u.current)!=null&&E.attributes){const b=u.current.attributes.getNamedItem("aria-expanded");f(b?b.value==="true":!1)}},[u]);return pE(u==null?void 0:u.current,d),g.jsxs("section",{className:R("fr-accordion",r),children:[g.jsx(t,{className:R("fr-accordion__title",o.title),children:g.jsx("button",{...l,ref:h=>Fo(h,[s,u]),className:R("fr-accordion__btn",o.button),"aria-expanded":i,"aria-controls":a,children:p.isValidElement(e)||typeof e=="string"?e:typeof e=="function"?e(c):null})}),g.jsx("div",{className:"fr-collapse",id:a,children:n})]})});function Tn(e,t){return p.Children.toArray(e).filter(n=>p.isValidElement(n)&&n.type===t)}function Ac(e,t){return p.Children.toArray(e).filter(n=>p.isValidElement(n)&&t.includes(n.type))}function gE(e,t){return p.Children.toArray(e).filter(n=>p.isValidElement(n)&&!t.includes(n.type))}p.forwardRef(({className:e,closeMode:t="disallow",description:n,size:r,onClose:o,title:i,css:l={},titleAs:s="h3",variant:a="info",...u},c)=>{const f=p.useRef(null),d=h=>{var E;h.preventDefault(),(E=f.current)==null||E.remove(),o&&o(h)};return g.jsxs("div",{ref:h=>Fo(h,[c,f]),className:R(`fr-alert fr-alert--${a}`,{"fr-alert--sm":r==="sm"},e),...u,children:[i&&g.jsx(s,{className:R("fr-alert__title",l.title),children:i}),n&&g.jsx("p",{className:R(l.description),children:n}),t==="uncontrolled"&&g.jsx("button",{onClick:d,className:R("fr-btn--close fr-btn",l.button),children:"Masquer le message"}),t==="controlled"&&g.jsx("button",{onClick:o,className:R("fr-link--close fr-link",l.button),children:"Masquer le message"})]})});function vE(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function yE(e,t,n){vE(e,t),t.set(e,n)}function Do(e,t,n){let[r,o]=p.useState(e||t),i=p.useRef(e!==void 0),l=e!==void 0;p.useEffect(()=>{let u=i.current;u!==l&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),i.current=l},[l]);let s=l?e:r,a=p.useCallback((u,...c)=>{let f=(d,...h)=>{n&&(Object.is(s,d)||n(d,...h)),l||(s=d)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((d,...h)=>{let E=u(l?s:d,...h);return f(E,...c),l?d:E})):(l||o(u),f(u,...c))},[l,s,n]);return[s,a]}function ru(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const eg={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},tg={...eg,customError:!0,valid:!1},Kr={isInvalid:!1,validationDetails:eg,validationErrors:[]},xE=p.createContext({}),ou="__formValidationState"+Date.now();function ng(e){if(e[ou]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}=e[ou];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}}return EE(e)}function EE(e){let{isInvalid:t,validationState:n,name:r,value:o,builtinValidation:i,validate:l,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let a=t?{isInvalid:!0,validationErrors:[],validationDetails:tg}:null,u=p.useMemo(()=>xd(bE(l,o)),[l,o]);i!=null&&i.validationDetails.valid&&(i=null);let c=p.useContext(xE),f=p.useMemo(()=>r?Array.isArray(r)?r.flatMap(v=>iu(c[v])):iu(c[r]):[],[c,r]),[d,h]=p.useState(c),[E,b]=p.useState(!1);c!==d&&(h(c),b(!1));let w=p.useMemo(()=>xd(E?[]:f),[E,f]),y=p.useRef(Kr),[m,x]=p.useState(Kr),S=p.useRef(Kr),T=()=>{if(!C)return;_(!1);let v=u||i||y.current;js(v,S.current)||(S.current=v,x(v))},[C,_]=p.useState(!1);return p.useEffect(T),{realtimeValidation:a||w||u||i||Kr,displayValidation:s==="native"?a||w||m:a||w||u||i||m,updateValidation(v){s==="aria"&&!js(m,v)?x(v):y.current=v},resetValidation(){let v=Kr;js(v,S.current)||(S.current=v,x(v)),s==="native"&&_(!1),b(!0)},commitValidation(){s==="native"&&_(!0),b(!0)}}}function iu(e){return e?Array.isArray(e)?e:[e]:[]}function bE(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return iu(n)}return[]}function xd(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:tg}:null}function js(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}class wE{build(t,n){return this.context=n,Ed(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let o of t.items)yield*this.getFullNode({value:o},{renderer:n})}else{let o=[];q.Children.forEach(n,l=>{o.push(l)});let i=0;for(let l of o){let s=this.getFullNode({element:l,index:i},{});for(let a of s)i++,yield a}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){var l;let s=(l=i.key)!==null&&l!==void 0?l:i.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){let i=t.element;if(!i&&t.value&&n&&n.renderer){let a=this.cache.get(t.value);if(a&&(!a.shouldInvalidate||!a.shouldInvalidate(this.context))){a.index=t.index,a.parentKey=o?o.key:null,yield a;return}i=n.renderer(t.value)}if(q.isValidElement(i)){let a=i.type;if(typeof a!="function"&&typeof a.getCollectionNode!="function"){let d=typeof i.type=="function"?i.type.name:i.type;throw new Error(`Unknown element <${d}> in collection.`)}let u=a.getCollectionNode(i.props,this.context),c=t.index,f=u.next();for(;!f.done&&f.value;){let d=f.value;t.index=c;let h=d.key;h||(h=d.element?null:this.getKey(i,t,n,r));let E=[...this.getFullNode({...d,key:h,index:c,wrapper:SE(t.wrapper,d.wrapper)},this.getChildState(n,d),r?`${r}${i.key}`:i.key,o)];for(let b of E){if(b.value=d.value||t.value,b.value&&this.cache.set(b.value,b),t.type&&b.type!==t.type)throw new Error(`Unsupported type <${Bs(b.type)}> in <${Bs(o.type)}>. Only <${Bs(t.type)}> is supported.`);c++,yield b}f=u.next(E)}return}if(t.key==null)return;let l=this,s={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:Ed(function*(){if(!t.hasChildNodes)return;let a=0;for(let u of t.childNodes()){u.key!=null&&(u.key=`${s.key}${u.key}`),u.index=a;let c=l.getFullNode(u,l.getChildState(n,u),s.key,s);for(let f of c)a++,yield f}})};yield s}constructor(){this.cache=new WeakMap}}function Ed(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function SE(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Bs(e){return e[0].toUpperCase()+e.slice(1)}function CE(e,t,n){let r=p.useMemo(()=>new wE,[]),{children:o,items:i,collection:l}=e;return p.useMemo(()=>{if(l)return l;let s=r.build({children:o,items:i},n);return t(s)},[r,o,i,l,n,t])}function Ol(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function TE(e){return _E(e,0)}function _E(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function Hs(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...bd(e,t),t],o=[...bd(e,n),n],i=r.slice(0,o.length).findIndex((l,s)=>l!==o[s]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(l=>l===n)>=0?1:(o.findIndex(l=>l===t)>=0,-1)}function bd(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const wd=new WeakMap;function rg(e){let t=wd.get(e);if(t!=null)return t;t=0;let n=r=>{for(let o of r)o.type==="section"?n(Ol(o,e)):t++};return n(e),wd.set(e,t),t}class vt extends Set{constructor(t,n,r){super(t),t instanceof vt?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function PE(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function NE(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,l=p.useRef(!1),[,s]=p.useState(!1),a=p.useRef(null),u=p.useRef(null),[,c]=p.useState(null),f=p.useMemo(()=>Sd(e.selectedKeys),[e.selectedKeys]),d=p.useMemo(()=>Sd(e.defaultSelectedKeys,new vt),[e.defaultSelectedKeys]),[h,E]=Do(f,d,e.onSelectionChange),b=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[w,y]=p.useState(o);o==="replace"&&w==="toggle"&&typeof h=="object"&&h.size===0&&y("replace");let m=p.useRef(o);return p.useEffect(()=>{o!==m.current&&(y(o),m.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:w,setSelectionBehavior:y,get isFocused(){return l.current},setFocused(x){l.current=x,s(x)},get focusedKey(){return a.current},get childFocusStrategy(){return u.current},setFocusedKey(x,S="first"){a.current=x,u.current=S,c(x)},selectedKeys:h,setSelectedKeys(x){(r||!PE(x,h))&&E(x)},disabledKeys:b,disabledBehavior:i}}function Sd(e,t){return e?e==="all"?"all":new vt(e):t}class kE{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Hs(this.collection,r,t)<0)&&(t=r)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Hs(this.collection,r,t)>0)&&(t=r)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let n;if(this.state.selectedKeys==="all")n=new vt([t],t,t);else{let r=this.state.selectedKeys,o=r.anchorKey||t;n=new vt(r,o,t);for(let i of this.getKeyRange(o,r.currentKey||t))n.delete(i);for(let i of this.getKeyRange(t,o))this.canSelectItem(i)&&n.add(i)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?Hs(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){let r=[],o=t;for(;o;){let i=this.collection.getItem(o);if((i&&i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&r.push(o),o===n)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let n=new vt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let n=this.canSelectItem(t)?new vt([t],t,t):new vt;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new vt;for(let r of t)if(r=this.getKey(r),r!=null&&(n.add(r),this.selectionMode==="single"))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r;){if(this.canSelectItem(r)){let o=this.collection.getItem(r);o.type==="item"&&t.push(r),o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n(TE(Ol(o,this.collection)).key)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new vt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}constructor(t,n,r){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null}}class lu{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let n=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let l of i.childNodes)n(l)};for(let i of t)n(i);let r,o=0;for(let[i,l]of this.keyMap)r?(r.nextKey=i,l.prevKey=r.key):(this.firstKey=i,l.prevKey=void 0),l.type==="item"&&(l.index=o++),r=l,r.nextKey=void 0;this.lastKey=r==null?void 0:r.key}}function RE(e){let{filter:t}=e,n=NE(e),r=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=p.useCallback(u=>t?new lu(t(u)):new lu(u),[t]),i=p.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=CE(e,o,i),s=p.useMemo(()=>new kE(l,n),[l,n]);const a=p.useRef(null);return p.useEffect(()=>{if(n.focusedKey!=null&&!l.getItem(n.focusedKey)){const u=a.current.getItem(n.focusedKey),c=[...a.current.getKeys()].map(b=>{const w=a.current.getItem(b);return w.type==="item"?w:null}).filter(b=>b!==null),f=[...l.getKeys()].map(b=>{const w=l.getItem(b);return w.type==="item"?w:null}).filter(b=>b!==null),d=c.length-f.length;let h=Math.min(d>1?Math.max(u.index-d+1,0):u.index,f.length-1),E;for(;h>=0;){if(!s.isDisabled(f[h].key)){E=f[h];break}hu.index&&(h=u.index),h--)}n.setFocusedKey(E?E.key:null)}a.current=l},[l,s,n,n.focusedKey]),{collection:l,disabledKeys:r,selectionManager:s}}function LE(e){var t;let[n,r]=Do(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=p.useMemo(()=>n!=null?[n]:[],[n]),{collection:i,disabledKeys:l,selectionManager:s}=RE({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:u=>{var c;let f=(c=u.values().next().value)!==null&&c!==void 0?c:null;f===n&&e.onSelectionChange&&e.onSelectionChange(f),r(f)}}),a=n!=null?i.getItem(n):null;return{collection:i,disabledKeys:l,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:a}}function $E(e){let[t,n]=Do(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=p.useCallback(()=>{n(!0)},[n]),o=p.useCallback(()=>{n(!1)},[n]),i=p.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}function IE(e){var t,n;let{defaultFilter:r,menuTrigger:o="input",allowsEmptyCollection:i=!1,allowsCustomValue:l,shouldCloseOnBlur:s=!0}=e,[a,u]=p.useState(!1),[c,f]=p.useState(!1),[d,h]=p.useState(null),E=X=>{e.onSelectionChange&&e.onSelectionChange(X),X===m&&(Xe(),M())};var b;let{collection:w,selectionManager:y,selectedKey:m,setSelectedKey:x,selectedItem:S,disabledKeys:T}=LE({...e,onSelectionChange:E,items:(b=e.items)!==null&&b!==void 0?b:e.defaultItems});var C,_;let[v,L]=Do(e.inputValue,(_=(C=e.defaultInputValue)!==null&&C!==void 0?C:(t=w.getItem(m))===null||t===void 0?void 0:t.textValue)!==null&&_!==void 0?_:"",e.onInputChange),N=w,P=p.useMemo(()=>e.items!=null||!r?w:ME(w,v,r),[w,v,r,e.items]),[D,k]=p.useState(P),I=p.useRef("focus"),H=$E({...e,onOpenChange:X=>{e.onOpenChange&&e.onOpenChange(X,X?I.current:void 0),y.setFocused(X),X||y.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),J=(X=null,se)=>{let _e=se==="manual"||se==="focus"&&o==="focus";(i||P.size>0||_e&&N.size>0||e.items)&&(_e&&!H.isOpen&&e.items===void 0&&u(!0),I.current=se,h(X),H.open())},O=(X=null,se)=>{let _e=se==="manual"||se==="focus"&&o==="focus";!(i||P.size>0||_e&&N.size>0||e.items)&&!H.isOpen||(_e&&!H.isOpen&&e.items===void 0&&u(!0),H.isOpen||(I.current=se),B(X))},A=p.useCallback(()=>{k(a?N:P)},[a,N,P]),B=p.useCallback((X=null)=>{H.isOpen&&A(),h(X),H.toggle()},[H,A]),M=p.useCallback(()=>{H.isOpen&&(A(),H.close())},[H,A]),[U,W]=p.useState(v),Xe=()=>{var X,se;let _e=(se=(X=w.getItem(m))===null||X===void 0?void 0:X.textValue)!==null&&se!==void 0?se:"";W(_e),L(_e)};var Ue,St;let Re=p.useRef((St=(Ue=e.selectedKey)!==null&&Ue!==void 0?Ue:e.defaultSelectedKey)!==null&&St!==void 0?St:null);var K;let ee=p.useRef((K=(n=w.getItem(m))===null||n===void 0?void 0:n.textValue)!==null&&K!==void 0?K:"");p.useEffect(()=>{var X;c&&(P.size>0||i)&&!H.isOpen&&v!==U&&o!=="manual"&&J(null,"input"),!a&&!i&&H.isOpen&&P.size===0&&M(),m!=null&&m!==Re.current&&M(),v!==U&&(y.setFocusedKey(null),u(!1),v===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&x(null)),m!==Re.current&&(e.inputValue===void 0||e.selectedKey===void 0)?Xe():U!==v&&W(v);var se;let _e=(se=(X=w.getItem(m))===null||X===void 0?void 0:X.textValue)!==null&&se!==void 0?se:"";!c&&m!=null&&e.inputValue===void 0&&m===Re.current&&ee.current!==_e&&(W(_e),L(_e)),Re.current=m,ee.current=_e});let bn=ng({...e,value:p.useMemo(()=>({inputValue:v,selectedKey:m}),[v,m])}),Ir=()=>{l&&m==null?Uo():zo()},Uo=()=>{Re.current=null,x(null),M()},zo=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var X;e.onSelectionChange(m);var se;let _e=(se=(X=w.getItem(m))===null||X===void 0?void 0:X.textValue)!==null&&se!==void 0?se:"";W(_e),M()}else Xe(),M()};const ds=()=>{if(l){var X,se;const _e=(se=(X=w.getItem(m))===null||X===void 0?void 0:X.textValue)!==null&&se!==void 0?se:"";v===_e?zo():Uo()}else zo()};let M0=()=>{H.isOpen&&y.focusedKey!=null?m===y.focusedKey?zo():x(y.focusedKey):ds()},af=p.useRef(v),A0=X=>{X?(af.current=v,o==="focus"&&J(null,"focus")):(s&&ds(),v!==af.current&&bn.commitValidation()),f(X)},O0=p.useMemo(()=>H.isOpen?a?N:P:D,[H.isOpen,N,P,a,D]);return{...bn,...H,focusStrategy:d,toggle:O,open:J,close:ds,selectionManager:y,selectedKey:m,setSelectedKey:x,disabledKeys:T,isFocused:c,setFocused:A0,selectedItem:S,collection:O0,inputValue:v,setInputValue:L,commit:M0,revert:Ir}}function ME(e,t,n){return new lu(og(e,e,t,n))}function og(e,t,n,r){let o=[];for(let i of t)if(i.type==="section"&&i.hasChildNodes){let l=og(e,Ol(i,e),n,r);[...l].some(s=>s.type==="item")&&o.push({...i,childNodes:l})}else i.type==="item"&&r(i.textValue,n)?o.push({...i}):i.type!=="item"&&o.push({...i});return o}const AE=Symbol.for("react-aria.i18n.locale"),OE=Symbol.for("react-aria.i18n.strings");let Ur;class Fl{getStringForLocale(t,n){let r=this.getStringsForLocale(n)[t];if(!r)throw new Error(`Could not find intl message ${t} in ${n} locale`);return r}getStringsForLocale(t){let n=this.strings[t];return n||(n=FE(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[AE];if(Ur===void 0){let o=window[OE];if(!o)return null;Ur={};for(let i in o)Ur[i]=new Fl({[n]:o[i]},n)}let r=Ur==null?void 0:Ur[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings={...t},this.defaultLocale=n}}function FE(e,t,n="en-US"){if(t[e])return t[e];let r=DE(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function DE(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Cd=new Map,Td=new Map;class jE{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,l=Cd.get(i);l||(l=new Intl.PluralRules(this.locale,{type:r}),Cd.set(i,l));let s=l.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=Td.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Td.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const ol={prefix:String(Math.round(Math.random()*1e10)),current:0},ig=q.createContext(ol),BE=q.createContext(!1);let HE=!!(typeof window<"u"&&window.document&&window.document.createElement),Ks=new WeakMap;function KE(e=!1){let t=p.useContext(ig),n=p.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let l=Ks.get(i);l==null?Ks.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==l.state&&(t.current=l.id,Ks.delete(i))}n.current=++t.current}return n.current}function UE(e){let t=p.useContext(ig);t===ol&&!HE&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=KE(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function zE(e){let t=q.useId(),[n]=p.useState(Oc()),r=n?"react-aria":`react-aria${ol.prefix}`;return e||`${r}-${t}`}const VE=typeof q.useId=="function"?zE:UE;function GE(){return!1}function WE(){return!0}function QE(e){return()=>{}}function Oc(){return typeof q.useSyncExternalStore=="function"?q.useSyncExternalStore(QE,GE,WE):p.useContext(BE)}function lg(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{};function je(e){const t=p.useRef(null);return ue(()=>{t.current=e},[e]),p.useCallback((...n)=>{const r=t.current;return r(...n)},[])}function XE(e){let[t,n]=p.useState(e),r=p.useRef(null),o=je(()=>{let l=r.current.next();if(l.done){r.current=null;return}t===l.value?o():n(l.value)});ue(()=>{r.current&&o()});let i=je(l=>{r.current=l(t),o()});return[t,i]}let YE=!!(typeof window<"u"&&window.document&&window.document.createElement),il=new Map;function mn(e){let[t,n]=p.useState(e),r=p.useRef(null),o=VE(t),i=p.useCallback(l=>{r.current=l},[]);return YE&&il.set(o,i),ue(()=>{let l=o;return()=>{il.delete(l)}},[o]),p.useEffect(()=>{let l=r.current;l&&(r.current=null,n(l))}),o}function ZE(e,t){if(e===t)return e;let n=il.get(e);if(n)return n(t),t;let r=il.get(t);return r?(r(e),e):t}function ll(e=[]){let t=mn(),[n,r]=XE(t),o=p.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return ue(o,[t,o,...e]),n}function _o(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const pe=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Po=e=>e&&"window"in e&&e.window===e?e:pe(e).defaultView||window;function Oe(...e){let t={...e[0]};for(let n=1;n=65&&o.charCodeAt(2)<=90?t[o]=_o(i,l):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof l=="string"?t[o]=qE(i,l):o==="id"&&i&&l?t.id=ZE(i,l):t[o]=l!==void 0?l:i}}return t}const JE=new Set(["id"]),eb=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),tb=new Set(["href","target","rel","download","ping","referrerPolicy"]),nb=/^(data-.*)$/;function Fc(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(JE.has(l)||n&&eb.has(l)||r&&tb.has(l)||o!=null&&o.has(l)||nb.test(l))&&(i[l]=e[l]);return i}function jt(e){if(rb())e.focus({preventScroll:!0});else{let t=ob(e);e.focus(),ib(t)}}let ai=null;function rb(){if(ai==null){ai=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return ai=!0,!0}})}catch{}}return ai}function ob(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Dc(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function gn(){return Dc(/^Mac/i)}function lb(){return Dc(/^iPhone/i)}function sg(){return Dc(/^iPad/i)||gn()&&navigator.maxTouchPoints>1}function jl(){return lb()||sg()}function Ri(){return gn()||jl()}function ag(){return Dl(/AppleWebKit/i)&&!sb()}function sb(){return Dl(/Chrome/i)}function ug(){return Dl(/Android/i)}function ab(){return Dl(/Firefox/i)}const ub=p.createContext({isNative:!0,open:fb});function jc(){return p.useContext(ub)}function jn(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:l,altKey:s,shiftKey:a}=t;ab()&&!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key")&&e.target==="_blank"&&(gn()?i=!0:l=!0);let u=ag()&&gn()&&!sg()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:l,altKey:s,shiftKey:a}):new MouseEvent("click",{metaKey:i,ctrlKey:l,altKey:s,shiftKey:a,bubbles:!0,cancelable:!0});jn.isOpening=n,jt(e),e.dispatchEvent(u),jn.isOpening=!1}jn.isOpening=!1;function cb(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function fb(e,t){cb(e,n=>jn(n,t))}let Yn=new Map,su=new Set;function _d(){if(typeof window>"u")return;let e=n=>{let r=Yn.get(n.target);r||(r=new Set,Yn.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{let r=Yn.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),Yn.delete(n.target)),Yn.size===0)){for(let o of su)o();su.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?_d():document.addEventListener("DOMContentLoaded",_d));function cg(e){requestAnimationFrame(()=>{Yn.size===0?e():su.add(e)})}function fg(){let e=p.useRef(new Map),t=p.useCallback((o,i,l,s)=>{let a=s!=null&&s.once?(...u)=>{e.current.delete(l),l(...u)}:l;e.current.set(l,{type:i,eventTarget:o,fn:a,options:s}),o.addEventListener(i,l,s)},[]),n=p.useCallback((o,i,l,s)=>{var a;let u=((a=e.current.get(l))===null||a===void 0?void 0:a.fn)||l;o.removeEventListener(i,u,s),e.current.delete(l)},[]),r=p.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return p.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function sl(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=mn(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function db(){return typeof window.ResizeObserver<"u"}function hb(e){const{ref:t,onResize:n}=e;p.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(db()){const o=new window.ResizeObserver(i=>{i.length&&n()});return o.observe(r),()=>{r&&o.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function dg(e,t){ue(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}})}function al(e,t){for(ul(e,t)&&(e=e.parentElement);e&&!ul(e,t);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function ul(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}let pb=0;const Us=new Map;function mb(e){let[t,n]=p.useState(void 0);return ue(()=>{if(!e)return;let r=Us.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${pb++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},Us.set(e,r)}return r.refCount++,()=>{--r.refCount===0&&(r.element.remove(),Us.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function gb(e,t,n,r){let o=je(n),i=n==null;p.useEffect(()=>{if(i)return;let l=e.current;return l.addEventListener(t,o,r),()=>{l.removeEventListener(t,o,r)}},[e,t,r,i,o])}function hg(e,t){let n=Pd(e,t,"left"),r=Pd(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,l=e.scrollLeft,s=e.scrollTop,{borderTopWidth:a,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),f=e.scrollTop+parseInt(a,10),d=c+e.clientWidth,h=f+e.clientHeight;n<=l?l=n-parseInt(u,10):n+o>d&&(l+=n+o-d),r<=f?s=r-parseInt(a,10):r+i>h&&(s+=r+i-h),e.scrollLeft=l,e.scrollTop=s}function Pd(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function Nd(e,t){if(document.contains(e)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let s=al(e);for(;e&&s&&e!==l&&s!==l;)hg(s,e),e=s,s=al(e)}else{var n;let{left:s,top:a}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:u,top:c}=e.getBoundingClientRect();if(Math.abs(s-u)>1||Math.abs(a-c)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function au(e){return e.mozInputSource===0&&e.isTrusted?!0:ug()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function vb(e){return!ug()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function yb(e,t,n){let r=p.useRef(t),o=je(()=>{n&&n(r.current)});p.useEffect(()=>{var i;let l=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return l==null||l.addEventListener("reset",o),()=>{l==null||l.removeEventListener("reset",o)}},[e,o])}function xb(e,t){return t.get?t.get.call(e):t.value}function pg(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Eb(e,t){var n=pg(e,t,"get");return xb(e,n)}function bb(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function kd(e,t,n){var r=pg(e,t,"set");return bb(e,r,n),n}let fr="default",uu="",Li=new WeakMap;function Rd(e){if(jl()){if(fr==="default"){const t=pe(e);uu=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}fr="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Li.set(e,e.style.userSelect),e.style.userSelect="none")}function ui(e){if(jl()){if(fr!=="disabled")return;fr="restoring",setTimeout(()=>{cg(()=>{if(fr==="restoring"){const t=pe(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=uu||""),uu="",fr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Li.has(e)){let t=Li.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Li.delete(e)}}const Bc=q.createContext({register:()=>{}});Bc.displayName="PressResponderContext";function wb(e){let t=p.useContext(Bc);if(t){let{register:n,...r}=t;e=Oe(r,e),n()}return dg(t,e.ref),e}var ci=new WeakMap;class fi{continuePropagation(){kd(this,ci,!1)}get shouldStopPropagation(){return Eb(this,ci)}constructor(t,n,r){yE(this,ci,{writable:!0,value:void 0}),kd(this,ci,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const Ld=Symbol("linkClicked");function mg(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:l,isPressed:s,preventFocusOnPress:a,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:f,...d}=wb(e),[h,E]=p.useState(!1),b=p.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:w,removeAllGlobalListeners:y}=fg(),m=je((v,L)=>{let N=b.current;if(l||N.didFirePressStart)return!1;let P=!0;if(N.isTriggeringEvent=!0,r){let D=new fi("pressstart",L,v);r(D),P=D.shouldStopPropagation}return n&&n(!0),N.isTriggeringEvent=!1,N.didFirePressStart=!0,E(!0),P}),x=je((v,L,N=!0)=>{let P=b.current;if(!P.didFirePressStart)return!1;P.ignoreClickAfterPress=!0,P.didFirePressStart=!1,P.isTriggeringEvent=!0;let D=!0;if(o){let k=new fi("pressend",L,v);o(k),D=k.shouldStopPropagation}if(n&&n(!1),E(!1),t&&N&&!l){let k=new fi("press",L,v);t(k),D&&(D=k.shouldStopPropagation)}return P.isTriggeringEvent=!1,D}),S=je((v,L)=>{let N=b.current;if(l)return!1;if(i){N.isTriggeringEvent=!0;let P=new fi("pressup",L,v);return i(P),N.isTriggeringEvent=!1,P.shouldStopPropagation}return!0}),T=je(v=>{let L=b.current;L.isPressed&&L.target&&(L.isOverTarget&&L.pointerType!=null&&x(It(L.target,v),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,y(),c||ui(L.target))}),C=je(v=>{u&&T(v)}),_=p.useMemo(()=>{let v=b.current,L={onKeyDown(P){if(zs(P.nativeEvent,P.currentTarget)&&P.currentTarget.contains(P.target)){var D;Id(P.target,P.key)&&P.preventDefault();let k=!0;!v.isPressed&&!P.repeat&&(v.target=P.currentTarget,v.isPressed=!0,k=m(P,"keyboard"),w(pe(P.currentTarget),"keyup",N,!1)),k&&P.stopPropagation(),P.metaKey&&gn()&&((D=v.metaKeyEvents)===null||D===void 0||D.set(P.key,P.nativeEvent))}else P.key==="Meta"&&(v.metaKeyEvents=new Map)},onKeyUp(P){zs(P.nativeEvent,P.currentTarget)&&!P.repeat&&P.currentTarget.contains(P.target)&&v.target&&S(It(v.target,P),"keyboard")},onClick(P){if(!(P&&!P.currentTarget.contains(P.target))&&P&&P.button===0&&!v.isTriggeringEvent&&!jn.isOpening){let D=!0;if(l&&P.preventDefault(),!v.ignoreClickAfterPress&&!v.ignoreEmulatedMouseEvents&&!v.isPressed&&(v.pointerType==="virtual"||au(P.nativeEvent))){!l&&!a&&jt(P.currentTarget);let k=m(P,"virtual"),I=S(P,"virtual"),H=x(P,"virtual");D=k&&I&&H}v.ignoreEmulatedMouseEvents=!1,v.ignoreClickAfterPress=!1,D&&P.stopPropagation()}}},N=P=>{var D;if(v.isPressed&&v.target&&zs(P,v.target)){var k;Id(P.target,P.key)&&P.preventDefault();let H=P.target,J=x(It(v.target,P),"keyboard",v.target.contains(H));y(),J&&P.stopPropagation(),P.key!=="Enter"&&Hc(v.target)&&v.target.contains(H)&&!P[Ld]&&(P[Ld]=!0,jn(v.target,P,!1)),v.isPressed=!1,(k=v.metaKeyEvents)===null||k===void 0||k.delete(P.key)}else if(P.key==="Meta"&&!((D=v.metaKeyEvents)===null||D===void 0)&&D.size){var I;let H=v.metaKeyEvents;v.metaKeyEvents=void 0;for(let J of H.values())(I=v.target)===null||I===void 0||I.dispatchEvent(new KeyboardEvent("keyup",J))}};if(typeof PointerEvent<"u"){L.onPointerDown=I=>{if(I.button!==0||!I.currentTarget.contains(I.target))return;if(vb(I.nativeEvent)){v.pointerType="virtual";return}Vs(I.currentTarget)&&I.preventDefault(),v.pointerType=I.pointerType;let H=!0;v.isPressed||(v.isPressed=!0,v.isOverTarget=!0,v.activePointerId=I.pointerId,v.target=I.currentTarget,!l&&!a&&jt(I.currentTarget),c||Rd(v.target),H=m(I,v.pointerType),w(pe(I.currentTarget),"pointermove",P,!1),w(pe(I.currentTarget),"pointerup",D,!1),w(pe(I.currentTarget),"pointercancel",k,!1)),H&&I.stopPropagation()},L.onMouseDown=I=>{I.currentTarget.contains(I.target)&&I.button===0&&(Vs(I.currentTarget)&&I.preventDefault(),I.stopPropagation())},L.onPointerUp=I=>{!I.currentTarget.contains(I.target)||v.pointerType==="virtual"||I.button===0&&qn(I,I.currentTarget)&&S(I,v.pointerType||I.pointerType)};let P=I=>{I.pointerId===v.activePointerId&&(v.target&&qn(I,v.target)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,m(It(v.target,I),v.pointerType)):v.target&&v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,x(It(v.target,I),v.pointerType,!1),C(I)))},D=I=>{I.pointerId===v.activePointerId&&v.isPressed&&I.button===0&&v.target&&(qn(I,v.target)&&v.pointerType!=null?x(It(v.target,I),v.pointerType):v.isOverTarget&&v.pointerType!=null&&x(It(v.target,I),v.pointerType,!1),v.isPressed=!1,v.isOverTarget=!1,v.activePointerId=null,v.pointerType=null,y(),c||ui(v.target))},k=I=>{T(I)};L.onDragStart=I=>{I.currentTarget.contains(I.target)&&T(I)}}else{L.onMouseDown=k=>{if(!(k.button!==0||!k.currentTarget.contains(k.target))){if(Vs(k.currentTarget)&&k.preventDefault(),v.ignoreEmulatedMouseEvents){k.stopPropagation();return}v.isPressed=!0,v.isOverTarget=!0,v.target=k.currentTarget,v.pointerType=au(k.nativeEvent)?"virtual":"mouse",!l&&!a&&jt(k.currentTarget),m(k,v.pointerType)&&k.stopPropagation(),w(pe(k.currentTarget),"mouseup",P,!1)}},L.onMouseEnter=k=>{if(!k.currentTarget.contains(k.target))return;let I=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!0,I=m(k,v.pointerType)),I&&k.stopPropagation()},L.onMouseLeave=k=>{if(!k.currentTarget.contains(k.target))return;let I=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!1,I=x(k,v.pointerType,!1),C(k)),I&&k.stopPropagation()},L.onMouseUp=k=>{k.currentTarget.contains(k.target)&&!v.ignoreEmulatedMouseEvents&&k.button===0&&S(k,v.pointerType||"mouse")};let P=k=>{if(k.button===0){if(v.isPressed=!1,y(),v.ignoreEmulatedMouseEvents){v.ignoreEmulatedMouseEvents=!1;return}v.target&&qn(k,v.target)&&v.pointerType!=null?x(It(v.target,k),v.pointerType):v.target&&v.isOverTarget&&v.pointerType!=null&&x(It(v.target,k),v.pointerType,!1),v.isOverTarget=!1}};L.onTouchStart=k=>{if(!k.currentTarget.contains(k.target))return;let I=Sb(k.nativeEvent);I&&(v.activePointerId=I.identifier,v.ignoreEmulatedMouseEvents=!0,v.isOverTarget=!0,v.isPressed=!0,v.target=k.currentTarget,v.pointerType="touch",!l&&!a&&jt(k.currentTarget),c||Rd(v.target),m(k,v.pointerType)&&k.stopPropagation(),w(Po(k.currentTarget),"scroll",D,!0))},L.onTouchMove=k=>{if(!k.currentTarget.contains(k.target))return;if(!v.isPressed){k.stopPropagation();return}let I=$d(k.nativeEvent,v.activePointerId),H=!0;I&&qn(I,k.currentTarget)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,H=m(k,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,H=x(k,v.pointerType,!1),C(k)),H&&k.stopPropagation()},L.onTouchEnd=k=>{if(!k.currentTarget.contains(k.target))return;if(!v.isPressed){k.stopPropagation();return}let I=$d(k.nativeEvent,v.activePointerId),H=!0;I&&qn(I,k.currentTarget)&&v.pointerType!=null?(S(k,v.pointerType),H=x(k,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(H=x(k,v.pointerType,!1)),H&&k.stopPropagation(),v.isPressed=!1,v.activePointerId=null,v.isOverTarget=!1,v.ignoreEmulatedMouseEvents=!0,v.target&&!c&&ui(v.target),y()},L.onTouchCancel=k=>{k.currentTarget.contains(k.target)&&(k.stopPropagation(),v.isPressed&&T(k))};let D=k=>{v.isPressed&&k.target.contains(v.target)&&T({currentTarget:v.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=k=>{k.currentTarget.contains(k.target)&&T(k)}}return L},[w,l,a,y,c,T,C,x,m,S]);return p.useEffect(()=>()=>{var v;c||ui((v=b.current.target)!==null&&v!==void 0?v:void 0)},[c]),{isPressed:s||h,pressProps:Oe(d,_)}}function Hc(e){return e.tagName==="A"&&e.hasAttribute("href")}function zs(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof Po(o).HTMLInputElement&&!gg(o,n)||o instanceof Po(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&Hc(o))&&n!=="Enter")}function Sb(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function $d(e,t){const n=e.changedTouches;for(let r=0;rt.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function qn(e,t){let n=t.getBoundingClientRect(),r=Cb(e);return Tb(n,r)}function Vs(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Id(e,t){return e instanceof HTMLInputElement?!gg(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Hc(e)}const _b=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function gg(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":_b.has(e.type)}function Pb({children:e}){let t=p.useMemo(()=>({register:()=>{}}),[]);return q.createElement(Bc.Provider,{value:t},e)}class Nb{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function vg(e){let t=p.useRef({isFocused:!1,observer:null});ue(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=je(r=>{e==null||e(r)});return p.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=l=>{t.current.isFocused=!1,o.disabled&&n(new Nb("blur",l)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var l;(l=t.current.observer)===null||l===void 0||l.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function yg(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=p.useCallback(a=>{if(a.target===a.currentTarget)return r&&r(a),o&&o(!1),!0},[r,o]),l=vg(i),s=p.useCallback(a=>{a.target===a.currentTarget&&document.activeElement===a.target&&(n&&n(a),o&&o(!0),l(a))},[o,n,l]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?i:void 0}}}let zn=null,cu=new Set,Md=!1,Bn=!1,fu=!1;const kb={Tab:!0,Escape:!0};function Bl(e,t){for(let n of cu)n(e,t)}function Rb(e){return!(e.metaKey||!gn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ad(e){Bn=!0,Rb(e)&&(zn="keyboard",Bl("keyboard",e))}function Xn(e){zn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Bn=!0,Bl("pointer",e))}function Lb(e){au(e)&&(Bn=!0,zn="virtual")}function $b(e){e.target===window||e.target===document||(!Bn&&!fu&&(zn="virtual",Bl("virtual",e)),Bn=!1,fu=!1)}function Ib(){Bn=!1,fu=!0}function du(){if(typeof window>"u"||Md)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Bn=!0,e.apply(this,arguments)},document.addEventListener("keydown",Ad,!0),document.addEventListener("keyup",Ad,!0),document.addEventListener("click",Lb,!0),window.addEventListener("focus",$b,!0),window.addEventListener("blur",Ib,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Xn,!0),document.addEventListener("pointermove",Xn,!0),document.addEventListener("pointerup",Xn,!0)):(document.addEventListener("mousedown",Xn,!0),document.addEventListener("mousemove",Xn,!0),document.addEventListener("mouseup",Xn,!0)),Md=!0}typeof document<"u"&&(document.readyState!=="loading"?du():document.addEventListener("DOMContentLoaded",du));function cl(){return zn!=="pointer"}function hu(){return zn}function Mb(e){zn=e,Bl(e,null)}const Ab=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ob(e,t,n){var r;return e=e||(n==null?void 0:n.target)instanceof HTMLInputElement&&!Ab.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof HTMLTextAreaElement||(n==null?void 0:n.target)instanceof HTMLElement&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof KeyboardEvent&&!kb[n.key])}function Fb(e,t,n){du(),p.useEffect(()=>{let r=(o,i)=>{Ob(!!(n!=null&&n.isTextInput),o,i)&&e(cl())};return cu.add(r),()=>{cu.delete(r)}},t)}function Hl(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=p.useRef({isFocusWithin:!1}),l=p.useCallback(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(u),o&&o(!1))},[n,o,i]),s=vg(l),a=p.useCallback(u=>{!i.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),o&&o(!0),i.current.isFocusWithin=!0,s(u))},[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:a,onBlur:l}}}let fl=!1,Gs=0;function pu(){fl=!0,setTimeout(()=>{fl=!1},50)}function Od(e){e.pointerType==="touch"&&pu()}function Db(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Od):document.addEventListener("touchend",pu),Gs++,()=>{Gs--,!(Gs>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Od):document.removeEventListener("touchend",pu))}}function jb(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,l]=p.useState(!1),s=p.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;p.useEffect(Db,[]);let{hoverProps:a,triggerHoverEnd:u}=p.useMemo(()=>{let c=(h,E)=>{if(s.pointerType=E,o||E==="touch"||s.isHovered||!h.currentTarget.contains(h.target))return;s.isHovered=!0;let b=h.currentTarget;s.target=b,t&&t({type:"hoverstart",target:b,pointerType:E}),n&&n(!0),l(!0)},f=(h,E)=>{if(s.pointerType="",s.target=null,E==="touch"||!s.isHovered)return;s.isHovered=!1;let b=h.currentTarget;r&&r({type:"hoverend",target:b,pointerType:E}),n&&n(!1),l(!1)},d={};return typeof PointerEvent<"u"?(d.onPointerEnter=h=>{fl&&h.pointerType==="mouse"||c(h,h.pointerType)},d.onPointerLeave=h=>{!o&&h.currentTarget.contains(h.target)&&f(h,h.pointerType)}):(d.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},d.onMouseEnter=h=>{!s.ignoreEmulatedMouseEvents&&!fl&&c(h,"mouse"),s.ignoreEmulatedMouseEvents=!1},d.onMouseLeave=h=>{!o&&h.currentTarget.contains(h.target)&&f(h,"mouse")}),{hoverProps:d,triggerHoverEnd:f}},[t,n,r,o,s]);return p.useEffect(()=>{o&&u({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:a,isHovered:i}}function Bb(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=p.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=je(a=>{n&&di(a,t)&&(o&&o(a),i.current.isPointerDown=!0)}),s=je(a=>{n&&n(a)});p.useEffect(()=>{let a=i.current;if(r)return;const u=t.current,c=pe(u);if(typeof PointerEvent<"u"){let f=d=>{a.isPointerDown&&di(d,t)&&s(d),a.isPointerDown=!1};return c.addEventListener("pointerdown",l,!0),c.addEventListener("pointerup",f,!0),()=>{c.removeEventListener("pointerdown",l,!0),c.removeEventListener("pointerup",f,!0)}}else{let f=h=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&di(h,t)&&s(h),a.isPointerDown=!1},d=h=>{a.ignoreEmulatedMouseEvents=!0,a.isPointerDown&&di(h,t)&&s(h),a.isPointerDown=!1};return c.addEventListener("mousedown",l,!0),c.addEventListener("mouseup",f,!0),c.addEventListener("touchstart",l,!0),c.addEventListener("touchend",d,!0),()=>{c.removeEventListener("mousedown",l,!0),c.removeEventListener("mouseup",f,!0),c.removeEventListener("touchstart",l,!0),c.removeEventListener("touchend",d,!0)}}},[t,r,l,s])}function di(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function Fd(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function Hb(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Fd(e.onKeyDown),onKeyUp:Fd(e.onKeyUp)}}}const Kb=500;function xg(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=Kb,accessibilityDescription:l}=e;const s=p.useRef();let{addGlobalListener:a,removeGlobalListener:u}=fg(),{pressProps:c}=mg({isDisabled:t,onPressStart(d){if(d.continuePropagation(),(d.pointerType==="mouse"||d.pointerType==="touch")&&(n&&n({...d,type:"longpressstart"}),s.current=setTimeout(()=>{d.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...d,type:"longpress"}),s.current=void 0},i),d.pointerType==="touch")){let h=E=>{E.preventDefault()};a(d.target,"contextmenu",h,{once:!0}),a(window,"pointerup",()=>{setTimeout(()=>{u(d.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(d){s.current&&clearTimeout(s.current),r&&(d.pointerType==="mouse"||d.pointerType==="touch")&&r({...d,type:"longpressend"})}}),f=mb(o&&!t?l:void 0);return{longPressProps:Oe(c,f)}}function No(e){const t=pe(e);if(hu()==="virtual"){let n=t.activeElement;cg(()=>{t.activeElement===n&&e.isConnected&&jt(e)})}else jt(e)}function Ub(e){const t=Po(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:l,visibility:s}=i(e);o=l!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function zb(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Eg(e,t){return e.nodeName!=="#comment"&&Ub(e)&&zb(e,t)&&(!e.parentElement||Eg(e.parentElement,e))}const Dd=q.createContext(null);let te=null;function Vb(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=p.useRef(null),l=p.useRef(null),s=p.useRef([]),{parentNode:a}=p.useContext(Dd)||{},u=p.useMemo(()=>new mu({scopeRef:s}),[s]);ue(()=>{let d=a||me.root;if(me.getTreeNode(d.scopeRef)&&te&&!hl(te,d.scopeRef)){let h=me.getTreeNode(te);h&&(d=h)}d.addChild(u),me.addNode(u)},[u,a]),ue(()=>{let d=me.getTreeNode(s);d&&(d.contain=!!n)},[n]),ue(()=>{var d;let h=(d=i.current)===null||d===void 0?void 0:d.nextSibling,E=[];for(;h&&h!==l.current;)E.push(h),h=h.nextSibling;s.current=E},[t]),Zb(s,r,n),qb(s,n),ew(s,r,n),Yb(s,o),p.useEffect(()=>{const d=pe(s.current?s.current[0]:void 0).activeElement;let h=null;if(Me(d,s.current)){for(let E of me.traverse())E.scopeRef&&Me(d,E.scopeRef.current)&&(h=E);h===me.getTreeNode(s)&&(te=h.scopeRef)}},[s]),ue(()=>()=>{var d,h,E;let b=(E=(h=me.getTreeNode(s))===null||h===void 0||(d=h.parent)===null||d===void 0?void 0:d.scopeRef)!==null&&E!==void 0?E:null;(s===te||hl(s,te))&&(!b||me.getTreeNode(b))&&(te=b),me.removeTreeNode(s)},[s]);let c=p.useMemo(()=>Gb(s),[]),f=p.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return q.createElement(Dd.Provider,{value:f},q.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,q.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Gb(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:l}=t,s=r||pe(n[0]).activeElement,a=n[0].previousElementSibling,u=kn(n),c=Ht(u,{tabbable:o,accept:l},n);c.currentNode=Me(s,n)?s:a;let f=c.nextNode();return!f&&i&&(c.currentNode=a,f=c.nextNode()),f&&Bt(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:l}=t,s=r||pe(n[0]).activeElement,a=n[n.length-1].nextElementSibling,u=kn(n),c=Ht(u,{tabbable:o,accept:l},n);c.currentNode=Me(s,n)?s:a;let f=c.previousNode();return!f&&i&&(c.currentNode=a,f=c.previousNode()),f&&Bt(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=kn(n),l=Ht(i,{tabbable:r,accept:o},n);l.currentNode=n[0].previousElementSibling;let s=l.nextNode();return s&&Bt(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=kn(n),l=Ht(i,{tabbable:r,accept:o},n);l.currentNode=n[n.length-1].nextElementSibling;let s=l.previousNode();return s&&Bt(s,!0),s}}}const Kc=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],Wb=Kc.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Kc.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Qb=Kc.join(':not([hidden]):not([tabindex="-1"]),');function kn(e){return e[0].parentElement}function Xr(e){let t=me.getTreeNode(te);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function qb(e,t){let n=p.useRef(),r=p.useRef();ue(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const i=pe(o?o[0]:void 0);let l=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Xr(e))return;let c=i.activeElement,f=e.current;if(!f||!Me(c,f))return;let d=kn(f),h=Ht(d,{tabbable:!0},f);if(!c)return;h.currentNode=c;let E=u.shiftKey?h.previousNode():h.nextNode();E||(h.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,E=u.shiftKey?h.previousNode():h.nextNode()),u.preventDefault(),E&&Bt(E,!0)},s=u=>{(!te||hl(te,e))&&Me(u.target,e.current)?(te=e,n.current=u.target):Xr(e)&&!dl(u.target,e)?n.current?n.current.focus():te&&te.current&&pl(te.current):Xr(e)&&(n.current=u.target)},a=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(i.activeElement&&Xr(e)&&!dl(i.activeElement,e))if(te=e,i.body.contains(u.target)){var c;n.current=u.target,(c=n.current)===null||c===void 0||c.focus()}else te.current&&pl(te.current)})};return i.addEventListener("keydown",l,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(u=>u.addEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.addEventListener("focusout",a,!1)),()=>{i.removeEventListener("keydown",l,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(u=>u.removeEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.removeEventListener("focusout",a,!1))}},[e,t]),ue(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function bg(e){return dl(e)}function Me(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function dl(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of me.traverse(me.getTreeNode(t)))if(n&&Me(e,n.current))return!0;return!1}function Xb(e){return dl(e,te)}function hl(e,t){var n;let r=(n=me.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Bt(e,t=!1){if(e!=null&&!t)try{No(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function pl(e,t=!0){let n=e[0].previousElementSibling,r=kn(e),o=Ht(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();t&&!i&&(r=kn(e),o=Ht(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),Bt(i)}function Yb(e,t){const n=q.useRef(t);p.useEffect(()=>{if(n.current){te=e;const r=pe(e.current?e.current[0]:void 0);!Me(r.activeElement,te.current)&&e.current&&pl(e.current)}n.current=!1},[e])}function Zb(e,t,n){ue(()=>{if(t||n)return;let r=e.current;const o=pe(r?r[0]:void 0);let i=l=>{let s=l.target;Me(s,e.current)?te=e:bg(s)||(te=null)};return o.addEventListener("focusin",i,!1),r==null||r.forEach(l=>l.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),r==null||r.forEach(l=>l.removeEventListener("focusin",i,!1))}},[e,t,n])}function Jb(e){let t=me.getTreeNode(te);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function ew(e,t,n){const r=p.useRef(typeof document<"u"?pe(e.current?e.current[0]:void 0).activeElement:null);ue(()=>{let o=e.current;const i=pe(o?o[0]:void 0);if(!t||n)return;let l=()=>{(!te||hl(te,e))&&Me(i.activeElement,e.current)&&(te=e)};return i.addEventListener("focusin",l,!1),o==null||o.forEach(s=>s.addEventListener("focusin",l,!1)),()=>{i.removeEventListener("focusin",l,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",l,!1))}},[e,n]),ue(()=>{const o=pe(e.current?e.current[0]:void 0);if(!t)return;let i=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Xr(e))return;let s=o.activeElement;if(!Me(s,e.current))return;let a=me.getTreeNode(e);if(!a)return;let u=a.nodeToRestore,c=Ht(o.body,{tabbable:!0});c.currentNode=s;let f=l.shiftKey?c.previousNode():c.nextNode();if((!u||!o.body.contains(u)||u===o.body)&&(u=void 0,a.nodeToRestore=void 0),(!f||!Me(f,e.current))&&u){c.currentNode=u;do f=l.shiftKey?c.previousNode():c.nextNode();while(Me(f,e.current));l.preventDefault(),l.stopPropagation(),f?Bt(f,!0):bg(u)?Bt(u,!0):s.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),ue(()=>{const o=pe(e.current?e.current[0]:void 0);if(!t)return;let i=me.getTreeNode(e);if(i){var l;return i.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let s=me.getTreeNode(e);if(!s)return;let a=s.nodeToRestore;if(t&&a&&(Me(o.activeElement,e.current)||o.activeElement===o.body&&Jb(e))){let u=me.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let c=u.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){Bt(c.nodeToRestore);return}c=c.parent}for(c=u.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&me.getTreeNode(c.scopeRef)){pl(c.scopeRef.current,!0);return}c=c.parent}}})}}}},[e,t])}function Ht(e,t,n){let r=t!=null&&t.tabbable?Qb:Wb,o=pe(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&Eg(i)&&(!n||Me(i,n))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}class Uc{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new mu({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Me(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Uc;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new mu({scopeRef:null}),this.fastMap.set(null,this.root)}}class mu{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let me=new Uc;function tw(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=p.useRef({isFocused:!1,isFocusVisible:t||cl()}),[i,l]=p.useState(!1),[s,a]=p.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=p.useCallback(()=>a(o.current.isFocused&&o.current.isFocusVisible),[]),c=p.useCallback(h=>{o.current.isFocused=h,l(h),u()},[u]);Fb(h=>{o.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:f}=yg({isDisabled:r,onFocusChange:c}),{focusWithinProps:d}=Hl({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:s,focusProps:r?d:f}}let nw=q.createContext(null);function rw(e){let t=p.useContext(nw)||{};dg(t,e);let{ref:n,...r}=t;return r}function ow(e,t){let{focusProps:n}=yg(e),{keyboardProps:r}=Hb(e),o=Oe(n,r),i=rw(t),l=e.isDisabled?{}:i,s=p.useRef(e.autoFocus);return p.useEffect(()=>{s.current&&t.current&&No(t.current),s.current=!1},[t]),{focusableProps:Oe({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},l)}}const iw=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),lw=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function sw(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return iw.has(n.script)}let t=e.split("-")[0];return lw.has(t)}const aw=Symbol.for("react-aria.i18n.locale");function wg(){let e=typeof window<"u"&&window[aw]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:sw(e)?"rtl":"ltr"}}let gu=wg(),Yr=new Set;function jd(){gu=wg();for(let e of Yr)e(gu)}function uw(){let e=Oc(),[t,n]=p.useState(gu);return p.useEffect(()=>(Yr.size===0&&window.addEventListener("languagechange",jd),Yr.add(n),()=>{Yr.delete(n),Yr.size===0&&window.removeEventListener("languagechange",jd)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const cw=q.createContext(null);function Kl(){let e=uw();return p.useContext(cw)||e}const Bd=new WeakMap;function fw(e){let t=Bd.get(e);return t||(t=new Fl(e),Bd.set(e,t)),t}function dw(e,t){return t&&Fl.getGlobalDictionaryForPackage(t)||fw(e)}function zc(e,t){let{locale:n}=Kl(),r=dw(e,t);return p.useMemo(()=>new jE(n,r),[n,r])}let Ws=new Map;function Sg(e){let{locale:t}=Kl(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),t.compare(i.slice(0,l.length),l)===0),[t]),r=p.useCallback((i,l)=>l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),t.compare(i.slice(-l.length),l)===0),[t]),o=p.useCallback((i,l)=>{if(l.length===0)return!0;i=i.normalize("NFC"),l=l.normalize("NFC");let s=0,a=l.length;for(;s+a<=i.length;s++){let u=i.slice(s,s+a);if(t.compare(l,u)===0)return!0}return!1},[t]);return p.useMemo(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])}const Cg=7e3;let Qs=null;function qs(e,t="assertive",n=Cg){Qs||(Qs=new pw),Qs.announce(e,t,n)}class pw{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=Cg){if(!this.node)return;let o=document.createElement("div");o.textContent=t,n==="assertive"?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function mw(e,t,n){let{validationBehavior:r,focus:o}=e;ue(()=>{if(r==="native"&&n!=null&&n.current){let a=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(a),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(vw(n.current))}});let i=je(()=>{t.resetValidation()}),l=je(a=>{var u;t.displayValidation.isInvalid||t.commitValidation();let c=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!a.defaultPrevented&&n&&c&&yw(c)===n.current){var f;o?o():(f=n.current)===null||f===void 0||f.focus(),Mb("keyboard")}a.preventDefault()}),s=je(()=>{t.commitValidation()});p.useEffect(()=>{let a=n==null?void 0:n.current;if(!a)return;let u=a.form;return a.addEventListener("invalid",l),a.addEventListener("change",s),u==null||u.addEventListener("reset",i),()=>{a.removeEventListener("invalid",l),a.removeEventListener("change",s),u==null||u.removeEventListener("reset",i)}},[n,l,s,i,r])}function gw(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function vw(e){return{isInvalid:!e.validity.valid,validationDetails:gw(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function yw(e){for(let t=0;t`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var Pg={};Pg={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var Ng={};Ng={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var kg={};kg={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var Rg={};Rg={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var Lg={};Lg={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var $g={};$g={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var Ig={};Ig={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var Mg={};Mg={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var Ag={};Ag={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var Og={};Og={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} saisi, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var Fg={};Fg={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var Dg={};Dg={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var jg={};jg={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var Bg={};Bg={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var Hg={};Hg={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var Kg={};Kg={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var Ug={};Ug={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var zg={};zg={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var Vg={};Vg={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var Gg={};Gg={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var Wg={};Wg={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var Qg={};Qg={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var qg={};qg={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var Xg={};Xg={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var Yg={};Yg={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var Zg={};Zg={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var Jg={};Jg={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var ev={};ev={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var tv={};tv={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var nv={};nv={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var rv={};rv={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var ov={};ov={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var iv={};iv={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var lv={};lv={dismiss:"تجاهل"};var sv={};sv={dismiss:"Отхвърляне"};var av={};av={dismiss:"Odstranit"};var uv={};uv={dismiss:"Luk"};var cv={};cv={dismiss:"Schließen"};var fv={};fv={dismiss:"Απόρριψη"};var dv={};dv={dismiss:"Dismiss"};var hv={};hv={dismiss:"Descartar"};var pv={};pv={dismiss:"Lõpeta"};var mv={};mv={dismiss:"Hylkää"};var gv={};gv={dismiss:"Rejeter"};var vv={};vv={dismiss:"התעלם"};var yv={};yv={dismiss:"Odbaci"};var xv={};xv={dismiss:"Elutasítás"};var Ev={};Ev={dismiss:"Ignora"};var bv={};bv={dismiss:"閉じる"};var wv={};wv={dismiss:"무시"};var Sv={};Sv={dismiss:"Atmesti"};var Cv={};Cv={dismiss:"Nerādīt"};var Tv={};Tv={dismiss:"Lukk"};var _v={};_v={dismiss:"Negeren"};var Pv={};Pv={dismiss:"Zignoruj"};var Nv={};Nv={dismiss:"Descartar"};var kv={};kv={dismiss:"Dispensar"};var Rv={};Rv={dismiss:"Revocare"};var Lv={};Lv={dismiss:"Пропустить"};var $v={};$v={dismiss:"Zrušiť"};var Iv={};Iv={dismiss:"Opusti"};var Mv={};Mv={dismiss:"Odbaci"};var Av={};Av={dismiss:"Avvisa"};var Ov={};Ov={dismiss:"Kapat"};var Fv={};Fv={dismiss:"Скасувати"};var Dv={};Dv={dismiss:"取消"};var jv={};jv={dismiss:"關閉"};const Hd={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Ew(e={}){let{style:t,isFocusable:n}=e,[r,o]=p.useState(!1),{focusWithinProps:i}=Hl({isDisabled:!n,onFocusWithinChange:s=>o(s)}),l=p.useMemo(()=>r?t:t?{...Hd,...t}:Hd,[r]);return{visuallyHiddenProps:{...i,style:l}}}function bw(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:l}=Ew(e);return q.createElement(n,Oe(i,l),t)}function ww(e){return e&&e.__esModule?e.default:e}const Kd={top:"top",bottom:"top",left:"left",right:"left"},ml={top:"bottom",bottom:"top",left:"right",right:"left"},Sw={top:"left",left:"top"},vu={top:"height",left:"width"},Cw={width:"totalWidth",height:"totalHeight"},hi={};let pi=typeof document<"u"&&window.visualViewport;function Ud(e){let t=0,n=0,r=0,o=0,i=0,l=0,s={};if(e.tagName==="BODY"){let c=document.documentElement;r=c.clientWidth,o=c.clientHeight;var a;t=(a=pi==null?void 0:pi.width)!==null&&a!==void 0?a:r;var u;n=(u=pi==null?void 0:pi.height)!==null&&u!==void 0?u:o,s.top=c.scrollTop||e.scrollTop,s.left=c.scrollLeft||e.scrollLeft}else({width:t,height:n,top:i,left:l}=xr(e)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,o=n;return{width:t,height:n,totalWidth:r,totalHeight:o,scroll:s,top:i,left:l}}function Tw(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function zd(e,t,n,r,o,i){let l=o.scroll[e],s=r[vu[e]],a=t-i-l,u=t+i-l+n;return a<0?-a:u>s?Math.max(s-u,-a):0}function _w(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Vd(e){if(hi[e])return hi[e];let[t,n]=e.split(" "),r=Kd[t]||"right",o=Sw[r];Kd[n]||(n="center");let i=vu[r],l=vu[o];return hi[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:l},hi[e]}function Xs(e,t,n,r,o,i,l,s,a,u){let{placement:c,crossPlacement:f,axis:d,crossAxis:h,size:E,crossSize:b}=r,w={};w[h]=e[h],f==="center"?w[h]+=(e[b]-n[b])/2:f!==h&&(w[h]+=e[b]-n[b]),w[h]+=i;const y=e[h]-n[b]+a+u,m=e[h]+e[b]-a-u;if(w[h]=ru(w[h],y,m),c===d){const x=s?l[E]:t[Cw[E]];w[ml[d]]=Math.floor(x-e[d]+o)}else w[d]=Math.floor(e[d]+e[E]+o);return w}function Pw(e,t,n,r,o,i){return e.top!=null?Math.max(0,t.height+t.top+t.scroll.top-(n.top+e.top)-(o.top+o.bottom+i)):Math.max(0,r.top+n.top-(t.top+t.scroll.top)-(o.top+o.bottom+i))}function Gd(e,t,n,r,o,i){let{placement:l,axis:s,size:a}=i;return l===s?Math.max(0,n[s]-e[s]-e.scroll[s]+t[s]-r[s]-r[ml[s]]-o):Math.max(0,e[a]+e[s]+e.scroll[s]-t[s]-n[s]-n[a]-r[s]-r[ml[s]]-o)}function Nw(e,t,n,r,o,i,l,s,a,u,c,f,d,h,E,b){let w=Vd(e),{size:y,crossAxis:m,crossSize:x,placement:S,crossPlacement:T}=w,C=Xs(t,s,n,w,c,f,u,d,E,b),_=c,v=Gd(s,u,t,o,i+c,w);if(l&&r[y]>v){let A=Vd(`${ml[S]} ${T}`),B=Xs(t,s,n,A,c,f,u,d,E,b);Gd(s,u,t,o,i+c,A)>v&&(w=A,C=B,_=c)}let L=zd(m,C[m],n[x],s,a,i);C[m]+=L;let N=Pw(C,s,u,t,o,i);h&&h{if(!n||r===null)return;let o=i=>{let l=i.target;if(!t.current||l instanceof Node&&!l.contains(t.current))return;let s=r||Bv.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}let qt=typeof document<"u"&&window.visualViewport;function $w(e){let{direction:t}=Kl(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:l="bottom",containerPadding:s=12,shouldFlip:a=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:c=0,crossOffset:f=0,shouldUpdatePosition:d=!0,isOpen:h=!0,onClose:E,maxHeight:b,arrowBoundaryOffset:w=0}=e,[y,m]=p.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),x=[d,l,o.current,r.current,i.current,s,a,u,c,f,h,t,b,w,n],S=p.useCallback(()=>{if(d===!1||!h||!o.current||!r.current||!i.current||!u)return;let _=kw({placement:Mw(l,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current,padding:s,shouldFlip:a,boundaryElement:u,offset:c,crossOffset:f,maxHeight:b,arrowSize:n,arrowBoundaryOffset:w});Object.keys(_.position).forEach(v=>o.current.style[v]=_.position[v]+"px"),o.current.style.maxHeight=_.maxHeight!=null?_.maxHeight+"px":void 0,m(_)},x);ue(S,x),Iw(S),hb({ref:o,onResize:S});let T=p.useRef(!1);ue(()=>{let _,v=()=>{T.current=!0,clearTimeout(_),_=setTimeout(()=>{T.current=!1},500),S()};return qt==null||qt.addEventListener("resize",v),qt==null||qt.addEventListener("scroll",v),()=>{qt==null||qt.removeEventListener("resize",v),qt==null||qt.removeEventListener("scroll",v)}},[S]);let C=p.useCallback(()=>{T.current||E()},[E,T]);return Lw({triggerRef:r,isOpen:h,onClose:E&&C}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...y.position,maxHeight:y.maxHeight}},placement:y.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:y.arrowOffsetLeft,top:y.arrowOffsetTop}},updatePosition:S}}function Iw(e){ue(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function Mw(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Mt=[];function Aw(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:s}=e;p.useEffect(()=>(o&&Mt.push(t),()=>{let E=Mt.indexOf(t);E>=0&&Mt.splice(E,1)}),[o,t]);let a=()=>{Mt[Mt.length-1]===t&&n&&n()},u=E=>{(!s||s(E.target))&&Mt[Mt.length-1]===t&&(E.stopPropagation(),E.preventDefault())},c=E=>{(!s||s(E.target))&&(Mt[Mt.length-1]===t&&(E.stopPropagation(),E.preventDefault()),a())},f=E=>{E.key==="Escape"&&!l&&(E.stopPropagation(),E.preventDefault(),a())};Bb({ref:t,onInteractOutside:i&&o?c:null,onInteractOutsideStart:u});let{focusWithinProps:d}=Hl({isDisabled:!r,onBlurWithin:E=>{!E.relatedTarget||Xb(E.relatedTarget)||(!s||s(E.relatedTarget))&&n()}}),h=E=>{E.target===E.currentTarget&&E.preventDefault()};return{overlayProps:{onKeyDown:f,...d},underlayProps:{onPointerDown:h}}}function Ow(e,t,n){let{type:r}=e,{isOpen:o}=t;p.useEffect(()=>{n&&n.current&&Bv.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let l=mn();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?l:null,onPress:t.toggle},overlayProps:{id:l}}}const Ys=typeof document<"u"&&window.visualViewport,Fw=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let mi=0,Zs;function Dw(e={}){let{isDisabled:t}=e;ue(()=>{if(!t)return mi++,mi===1&&(jl()?Zs=Bw():Zs=jw()),()=>{mi--,mi===0&&Zs()}},[t])}function jw(){return _o(dr(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),dr(document.documentElement,"overflow","hidden"))}function Bw(){let e,t,n=u=>{e=al(u.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=dr(e,"overscrollBehavior","contain"))},r=u=>{if(!e||e===document.documentElement||e===document.body){u.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&u.preventDefault()},o=u=>{let c=u.target;Xd(c)&&c!==document.activeElement&&(u.preventDefault(),s(),c.style.transform="translateY(-2000px)",c.focus(),requestAnimationFrame(()=>{c.style.transform=""})),t&&t()},i=u=>{let c=u.target;Xd(c)&&(s(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",Ys&&(Ys.height{qd(c)}):Ys.addEventListener("resize",()=>qd(c),{once:!0}))}))},l=null,s=()=>{if(l)return;let u=()=>{window.scrollTo(0,0)},c=window.pageXOffset,f=window.pageYOffset;l=_o(zr(window,"scroll",u),dr(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),dr(document.documentElement,"overflow","hidden"),dr(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(c,f)}),window.scrollTo(0,0)},a=_o(zr(document,"touchstart",n,{passive:!1,capture:!0}),zr(document,"touchmove",r,{passive:!1,capture:!0}),zr(document,"touchend",o,{passive:!1,capture:!0}),zr(document,"focus",i,!0));return()=>{t==null||t(),l==null||l(),a()}}function dr(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function zr(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function qd(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=al(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top;o>r+e.clientHeight&&(n.scrollTop+=o-r)}e=n.parentElement}}function Xd(e){return e instanceof HTMLInputElement&&!Fw.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var Hv={};Hv={"ar-AE":lv,"bg-BG":sv,"cs-CZ":av,"da-DK":uv,"de-DE":cv,"el-GR":fv,"en-US":dv,"es-ES":hv,"et-EE":pv,"fi-FI":mv,"fr-FR":gv,"he-IL":vv,"hr-HR":yv,"hu-HU":xv,"it-IT":Ev,"ja-JP":bv,"ko-KR":wv,"lt-LT":Sv,"lv-LV":Cv,"nb-NO":Tv,"nl-NL":_v,"pl-PL":Pv,"pt-BR":Nv,"pt-PT":kv,"ro-RO":Rv,"ru-RU":Lv,"sk-SK":$v,"sl-SI":Iv,"sr-SP":Mv,"sv-SE":Av,"tr-TR":Ov,"uk-UA":Fv,"zh-CN":Dv,"zh-TW":jv};function Yd(e){let{onDismiss:t,...n}=e,r=zc(ww(Hv),"@react-aria/overlays"),o=sl(n,r.format("dismiss")),i=()=>{t&&t()};return q.createElement(bw,null,q.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let Vr=new WeakMap,it=[];function Kv(e,t=document.body){let n=new Set(e),r=new Set,o=a=>{for(let d of a.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(d);let u=d=>{if(n.has(d)||r.has(d.parentElement)&&d.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of n)if(d.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),f=u(a);if(f===NodeFilter.FILTER_ACCEPT&&i(a),f!==NodeFilter.FILTER_REJECT){let d=c.nextNode();for(;d!=null;)i(d),d=c.nextNode()}},i=a=>{var u;let c=(u=Vr.get(a))!==null&&u!==void 0?u:0;a.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&a.setAttribute("aria-hidden","true"),r.add(a),Vr.set(a,c+1))};it.length&&it[it.length-1].disconnect(),o(t);let l=new MutationObserver(a=>{for(let u of a)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(u.target))){for(let c of u.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of u.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&o(c)}});l.observe(t,{childList:!0,subtree:!0});let s={observe(){l.observe(t,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return it.push(s),()=>{l.disconnect();for(let a of r){let u=Vr.get(a);u===1?(a.removeAttribute("aria-hidden"),Vr.delete(a)):Vr.set(a,u-1)}s===it[it.length-1]?(it.pop(),it.length&&it[it.length-1].observe()):it.splice(it.indexOf(s),1)}}function Hw(e,t){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l,...s}=e,{overlayProps:a,underlayProps:u}=Aw({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l},r),{overlayProps:c,arrowProps:f,placement:d}=$w({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o?t.close:null});return Dw({isDisabled:o||!t.isOpen}),ue(()=>{if(t.isOpen&&!o&&r.current)return Kv([r.current])},[o,t.isOpen,r]),{popoverProps:Oe(a,c),arrowProps:f,underlayProps:u,placement:d}}const Kw=q.createContext(null);function Uw(e){let t=Oc(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,i]=p.useState(!1),l=p.useMemo(()=>({contain:o,setContain:i}),[o,i]);if(!n)return null;let s=e.children;return e.disableFocusManagement||(s=q.createElement(Vb,{restoreFocus:!0,contain:o&&!r},s)),s=q.createElement(Kw.Provider,{value:l},q.createElement(Pb,null,s)),uE.createPortal(s,n)}function yu(e){return Ri()?e.altKey:e.ctrlKey}function Zn(e){return gn()?e.metaKey:e.ctrlKey}const zw=1e3;function Vw(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=p.useRef({search:"",timeout:null}).current,i=l=>{let s=Gw(l.key);if(!s||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))return;s===" "&&o.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),o.search+=s;let a=t.getKeyForSearch(o.search,n.focusedKey);a==null&&(a=t.getKeyForSearch(o.search)),a!=null&&(n.setFocusedKey(a),r&&r(a)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},zw)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:null}}}function Gw(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Uv(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:l=!1,disallowSelectAll:s=!1,selectOnFocus:a=t.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:c,allowsTabNavigation:f=!1,isVirtualized:d,scrollRef:h=r,linkBehavior:E="action"}=e,{direction:b}=Kl(),w=jc(),y=N=>{if(N.altKey&&N.key==="Tab"&&N.preventDefault(),!r.current.contains(N.target))return;const P=(M,U)=>{if(M!=null){if(t.isLink(M)&&E==="selection"&&a&&!yu(N)){Mc.flushSync(()=>{t.setFocusedKey(M,U)});let W=h.current.querySelector(`[data-key="${CSS.escape(M.toString())}"]`);w.open(W,N);return}if(t.setFocusedKey(M,U),t.isLink(M)&&E==="override")return;N.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(M):a&&!yu(N)&&t.replaceSelection(M)}};switch(N.key){case"ArrowDown":if(n.getKeyBelow){var D,k;N.preventDefault();let M=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(D=n.getFirstKey)===null||D===void 0?void 0:D.call(n);M==null&&i&&(M=(k=n.getFirstKey)===null||k===void 0?void 0:k.call(n,t.focusedKey)),P(M)}break;case"ArrowUp":if(n.getKeyAbove){var I,H;N.preventDefault();let M=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(I=n.getLastKey)===null||I===void 0?void 0:I.call(n);M==null&&i&&(M=(H=n.getLastKey)===null||H===void 0?void 0:H.call(n,t.focusedKey)),P(M)}break;case"ArrowLeft":if(n.getKeyLeftOf){var J,O;N.preventDefault();let M=n.getKeyLeftOf(t.focusedKey);M==null&&i&&(M=b==="rtl"?(J=n.getFirstKey)===null||J===void 0?void 0:J.call(n,t.focusedKey):(O=n.getLastKey)===null||O===void 0?void 0:O.call(n,t.focusedKey)),P(M,b==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var A,B;N.preventDefault();let M=n.getKeyRightOf(t.focusedKey);M==null&&i&&(M=b==="rtl"?(A=n.getLastKey)===null||A===void 0?void 0:A.call(n,t.focusedKey):(B=n.getFirstKey)===null||B===void 0?void 0:B.call(n,t.focusedKey)),P(M,b==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){N.preventDefault();let M=n.getFirstKey(t.focusedKey,Zn(N));t.setFocusedKey(M),Zn(N)&&N.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(M):a&&t.replaceSelection(M)}break;case"End":if(n.getLastKey){N.preventDefault();let M=n.getLastKey(t.focusedKey,Zn(N));t.setFocusedKey(M),Zn(N)&&N.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(M):a&&t.replaceSelection(M)}break;case"PageDown":if(n.getKeyPageBelow){N.preventDefault();let M=n.getKeyPageBelow(t.focusedKey);P(M)}break;case"PageUp":if(n.getKeyPageAbove){N.preventDefault();let M=n.getKeyPageAbove(t.focusedKey);P(M)}break;case"a":Zn(N)&&t.selectionMode==="multiple"&&s!==!0&&(N.preventDefault(),t.selectAll());break;case"Escape":N.preventDefault(),l||t.clearSelection();break;case"Tab":if(!f){if(N.shiftKey)r.current.focus();else{let M=Ht(r.current,{tabbable:!0}),U,W;do W=M.lastChild(),W&&(U=W);while(W);U&&!U.contains(document.activeElement)&&jt(U)}break}}},m=p.useRef({top:0,left:0});gb(h,"scroll",d?null:()=>{m.current={top:h.current.scrollTop,left:h.current.scrollLeft}});let x=N=>{if(t.isFocused){N.currentTarget.contains(N.target)||t.setFocused(!1);return}if(N.currentTarget.contains(N.target)){if(t.setFocused(!0),t.focusedKey==null){let k=H=>{H!=null&&(t.setFocusedKey(H),a&&t.replaceSelection(H))},I=N.relatedTarget;var P,D;I&&N.currentTarget.compareDocumentPosition(I)&Node.DOCUMENT_POSITION_FOLLOWING?k((P=t.lastSelectedKey)!==null&&P!==void 0?P:n.getLastKey()):k((D=t.firstSelectedKey)!==null&&D!==void 0?D:n.getFirstKey())}else d||(h.current.scrollTop=m.current.top,h.current.scrollLeft=m.current.left);if(!d&&t.focusedKey!=null){let k=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);k&&(k.contains(document.activeElement)||jt(k),hu()==="keyboard"&&Nd(k,{containingElement:r.current}))}}},S=N=>{N.currentTarget.contains(N.relatedTarget)||t.setFocused(!1)};const T=p.useRef(o);p.useEffect(()=>{if(T.current){let N=null;o==="first"&&(N=n.getFirstKey()),o==="last"&&(N=n.getLastKey());let P=t.selectedKeys;if(P.size){for(let D of P)if(t.canSelectItem(D)){N=D;break}}t.setFocused(!0),t.setFocusedKey(N),N==null&&!c&&No(r.current)}},[]);let C=p.useRef(t.focusedKey);p.useEffect(()=>{let N=hu();if(t.isFocused&&t.focusedKey!=null&&h!=null&&h.current){let P=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);P&&(N==="keyboard"||T.current)&&(d||hg(h.current,P),Nd(P,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&C.current!=null&&No(r.current),C.current=t.focusedKey,T.current=!1},[d,h,t.focusedKey,t.isFocused,r]);let _={onKeyDown:y,onFocus:x,onBlur:S,onMouseDown(N){h.current===N.target&&N.preventDefault()}},{typeSelectProps:v}=Vw({keyboardDelegate:n,selectionManager:t});u||(_=Oe(v,_));let L;return c||(L=t.focusedKey==null?0:-1),{collectionProps:{..._,tabIndex:L}}}function Ww(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,shouldUseVirtualFocus:i,focus:l,isDisabled:s,onAction:a,allowsDifferentPressOrigin:u,linkBehavior:c="action"}=e,f=jc(),d=O=>{if(O.pointerType==="keyboard"&&yu(O))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(c==="selection"){f.open(r.current,O),t.setSelectedKeys(t.selectedKeys);return}else if(c==="override"||c==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):O&&O.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||O&&(Zn(O)||O.pointerType==="touch"||O.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};p.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!i&&(l?l():document.activeElement!==r.current&&No(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,i]),s=s||t.isDisabled(n);let h={};!i&&!s?h={tabIndex:n===t.focusedKey?0:-1,onFocus(O){O.target===r.current&&t.setFocusedKey(n)}}:s&&(h.onMouseDown=O=>{O.preventDefault()});let E=t.isLink(n)&&c==="override",b=t.isLink(n)&&c!=="selection"&&c!=="none",w=!s&&t.canSelectItem(n)&&!E,y=(a||b)&&!s,m=y&&(t.selectionBehavior==="replace"?!w:!w||t.isEmpty),x=y&&w&&t.selectionBehavior==="replace",S=m||x,T=p.useRef(null),C=S&&w,_=p.useRef(!1),v=p.useRef(!1),L=O=>{a&&a(),b&&f.open(r.current,O)},N={};o?(N.onPressStart=O=>{T.current=O.pointerType,_.current=C,O.pointerType==="keyboard"&&(!S||Jd())&&d(O)},u?(N.onPressUp=m?null:O=>{O.pointerType!=="keyboard"&&w&&d(O)},N.onPress=m?L:null):N.onPress=O=>{if(m||x&&O.pointerType!=="mouse"){if(O.pointerType==="keyboard"&&!Zd())return;L(O)}else O.pointerType!=="keyboard"&&w&&d(O)}):(N.onPressStart=O=>{T.current=O.pointerType,_.current=C,v.current=m,w&&(O.pointerType==="mouse"&&!m||O.pointerType==="keyboard"&&(!y||Jd()))&&d(O)},N.onPress=O=>{(O.pointerType==="touch"||O.pointerType==="pen"||O.pointerType==="virtual"||O.pointerType==="keyboard"&&S&&Zd()||O.pointerType==="mouse"&&v.current)&&(S?L(O):w&&d(O))}),h["data-key"]=n,N.preventFocusOnPress=i;let{pressProps:P,isPressed:D}=mg(N),k=x?O=>{T.current==="mouse"&&(O.stopPropagation(),O.preventDefault(),L(O))}:void 0,{longPressProps:I}=xg({isDisabled:!C,onLongPress(O){O.pointerType==="touch"&&(d(O),t.setSelectionBehavior("toggle"))}}),H=O=>{T.current==="touch"&&_.current&&O.preventDefault()},J=t.isLink(n)?O=>{jn.isOpening||O.preventDefault()}:void 0;return{itemProps:Oe(h,w||m?P:{},C?I:{},{onDoubleClick:k,onDragStartCapture:H,onClick:J}),isPressed:D,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:s,allowsSelection:w,hasAction:S}}function Zd(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Jd(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class zv{getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,n,r){let o=this.getItem(t);if(!o)return null;let i=o.getBoundingClientRect();do t=n(t),o=this.getItem(t);while(o&&r(i,o.getBoundingClientRect()));return t}isSameRow(t,n){return t.top===n.top||t.left!==n.left}isSameColumn(t,n){return t.left===n.left||t.top!==n.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return this.ref.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`)}getKeyPageAbove(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!ul(n))return this.getFirstKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let l=o.x-n.scrollLeft,s=Math.max(0,i.x-l+i.width-o.width);for(;r&&i.x-l>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}else{let l=o.y-n.scrollTop,s=Math.max(0,i.y-l+i.height-o.height);for(;r&&i.y-l>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!ul(n))return this.getLastKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let l=o.x-n.scrollLeft,s=Math.min(n.scrollWidth,i.x-l-i.width+o.width);for(;r&&i.x-li||new zv(n,s==="selection"?new Set:r,o,l),[i,n,r,o,l,s]),{collectionProps:u}=Uv({...e,ref:o,selectionManager:t,keyboardDelegate:a});return{listProps:u}}const Ul=new WeakMap;function qw(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Vv(e,t){let n=Ul.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${qw(t)}`}function Xw(e,t,n){let r=Fc(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:l}=Qw({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:s}=Hl({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),a=mn(e.id);Ul.set(t,{id:a,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:u,fieldProps:c}=Tg({...e,id:a,labelElementType:"span"});return{labelProps:u,listBoxProps:Oe(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Oe(c,l)})}}function Yw(e,t,n){var r;let{key:o}=e,i=Ul.get(t);var l;let s=(l=e.isDisabled)!==null&&l!==void 0?l:t.disabledKeys.has(o);var a;let u=(a=e.isSelected)!==null&&a!==void 0?a:t.selectionManager.isSelected(o);var c;let f=(c=e.shouldSelectOnPressUp)!==null&&c!==void 0?c:i==null?void 0:i.shouldSelectOnPressUp;var d;let h=(d=e.shouldFocusOnHover)!==null&&d!==void 0?d:i==null?void 0:i.shouldFocusOnHover;var E;let b=(E=e.shouldUseVirtualFocus)!==null&&E!==void 0?E:i==null?void 0:i.shouldUseVirtualFocus;var w;let y=(w=e.isVirtualized)!==null&&w!==void 0?w:i==null?void 0:i.isVirtualized,m=ll(),x=ll(),S={role:"option","aria-disabled":s||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?u:void 0};gn()&&ag()||(S["aria-label"]=e["aria-label"],S["aria-labelledby"]=m,S["aria-describedby"]=x);let T=t.collection.getItem(o);if(y){let k=Number(T==null?void 0:T.index);S["aria-posinset"]=Number.isNaN(k)?void 0:k+1,S["aria-setsize"]=rg(t.collection)}let{itemProps:C,isPressed:_,isFocused:v,hasAction:L,allowsSelection:N}=Ww({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:f,allowsDifferentPressOrigin:f&&h,isVirtualized:y,shouldUseVirtualFocus:b,isDisabled:s,onAction:i!=null&&i.onAction?()=>{var k;return i==null||(k=i.onAction)===null||k===void 0?void 0:k.call(i,o)}:void 0,linkBehavior:i==null?void 0:i.linkBehavior}),{hoverProps:P}=jb({isDisabled:s||!h,onHoverStart(){cl()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),D=Fc(T==null?void 0:T.props,{isLink:!!(!(T==null||(r=T.props)===null||r===void 0)&&r.href)});return delete D.id,{optionProps:{...S,...Oe(D,C,P),id:Vv(t,o)},labelProps:{id:m},descriptionProps:{id:x},isFocused:v,isFocusVisible:v&&cl(),isSelected:u,isDisabled:s,isPressed:_,allowsSelection:N,hasAction:L}}function Zw(e){let{heading:t,"aria-label":n}=e,r=mn();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var Gv={};Gv={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Wv={};Wv={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Qv={};Qv={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var qv={};qv={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Xv={};Xv={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Yv={};Yv={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Zv={};Zv={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Jv={};Jv={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var ey={};ey={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var ty={};ty={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var ny={};ny={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var ry={};ry={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var oy={};oy={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var iy={};iy={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var ly={};ly={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var sy={};sy={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var ay={};ay={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var uy={};uy={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var cy={};cy={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var fy={};fy={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var dy={};dy={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var hy={};hy={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var py={};py={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var my={};my={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var gy={};gy={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var vy={};vy={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var yy={};yy={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var xy={};xy={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Ey={};Ey={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var by={};by={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var wy={};wy={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Sy={};Sy={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Cy={};Cy={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Ty={};Ty={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};function Jw(e){return e&&e.__esModule?e.default:e}var _y={};_y={"ar-AE":Gv,"bg-BG":Wv,"cs-CZ":Qv,"da-DK":qv,"de-DE":Xv,"el-GR":Yv,"en-US":Zv,"es-ES":Jv,"et-EE":ey,"fi-FI":ty,"fr-FR":ny,"he-IL":ry,"hr-HR":oy,"hu-HU":iy,"it-IT":ly,"ja-JP":sy,"ko-KR":ay,"lt-LT":uy,"lv-LV":cy,"nb-NO":fy,"nl-NL":dy,"pl-PL":hy,"pt-BR":py,"pt-PT":my,"ro-RO":gy,"ru-RU":vy,"sk-SK":yy,"sl-SI":xy,"sr-SP":Ey,"sv-SE":by,"tr-TR":wy,"uk-UA":Sy,"zh-CN":Cy,"zh-TW":Ty};function eS(e,t,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=e,l=mn(),{triggerProps:s,overlayProps:a}=Ow({type:r},t,n),u=h=>{if(!o&&!(i==="longPress"&&!h.altKey)&&n&&n.current)switch(h.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},c=zc(Jw(_y),"@react-aria/menu"),{longPressProps:f}=xg({isDisabled:o||i!=="longPress",accessibilityDescription:c.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),d={onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!o&&t.toggle(h.pointerType==="virtual"?"first":null)},onPress(h){h.pointerType==="touch"&&!o&&t.toggle()}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?d:f,id:l,onKeyDown:u},menuProps:{...a,"aria-labelledby":l,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function tS(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:i=!1,type:l="text",validationBehavior:s="aria"}=e,[a,u]=Do(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=ow(e,t),f=ng({...e,value:a}),{isInvalid:d,validationErrors:h,validationDetails:E}=f.displayValidation,{labelProps:b,fieldProps:w,descriptionProps:y,errorMessageProps:m}=xw({...e,isInvalid:d,errorMessage:e.errorMessage||h}),x=Fc(e,{labelable:!0});const S={type:l,pattern:e.pattern};return yb(t,a,u),mw(e,f,t),p.useEffect(()=>{if(t.current instanceof Po(t.current).HTMLTextAreaElement){let T=t.current;Object.defineProperty(T,"defaultValue",{get:()=>T.value,set:()=>{},configurable:!0})}},[t]),{labelProps:b,inputProps:Oe(x,n==="input"&&S,{disabled:r,readOnly:i,required:o&&s==="native","aria-required":o&&s==="aria"||void 0,"aria-invalid":d||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:a,onChange:T=>u(T.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...w}),descriptionProps:y,errorMessageProps:m,isInvalid:d,validationErrors:h,validationDetails:E}}function nS(e){return e&&e.__esModule?e.default:e}var Py={};Py={"ar-AE":_g,"bg-BG":Pg,"cs-CZ":Ng,"da-DK":kg,"de-DE":Rg,"el-GR":Lg,"en-US":$g,"es-ES":Ig,"et-EE":Mg,"fi-FI":Ag,"fr-FR":Og,"he-IL":Fg,"hr-HR":Dg,"hu-HU":jg,"it-IT":Bg,"ja-JP":Hg,"ko-KR":Kg,"lt-LT":Ug,"lv-LV":zg,"nb-NO":Vg,"nl-NL":Gg,"pl-PL":Wg,"pt-BR":Qg,"pt-PT":qg,"ro-RO":Xg,"ru-RU":Yg,"sk-SK":Zg,"sl-SI":Jg,"sr-SP":ev,"sv-SE":tv,"tr-TR":nv,"uk-UA":rv,"zh-CN":ov,"zh-TW":iv};function rS(e,t){let{buttonRef:n,popoverRef:r,inputRef:o,listBoxRef:i,keyboardDelegate:l,shouldFocusWrap:s,isReadOnly:a,isDisabled:u}=e,c=zc(nS(Py),"@react-aria/combobox"),{menuTriggerProps:f,menuProps:d}=eS({type:"listbox",isDisabled:u||a},t,n);Ul.set(t,{id:d.id});let h=p.useMemo(()=>l||new zv(t.collection,t.disabledKeys,i),[l,t.collection,t.disabledKeys,i]),{collectionProps:E}=Uv({selectionManager:t.selectionManager,keyboardDelegate:h,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:s,ref:o,isVirtualized:!0}),b=jc(),w=K=>{switch(K.key){case"Enter":case"Tab":if(t.isOpen&&K.key==="Enter"&&K.preventDefault(),t.isOpen&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){if(K.key==="Enter"){let ee=i.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);ee instanceof HTMLAnchorElement&&b.open(ee,K)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&K.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},y=K=>{var ee;K.relatedTarget===(n==null?void 0:n.current)||!((ee=r.current)===null||ee===void 0)&&ee.contains(K.relatedTarget)||(e.onBlur&&e.onBlur(K),t.setFocused(!1))},m=K=>{t.isFocused||(e.onFocus&&e.onFocus(K),t.setFocused(!0))},{isInvalid:x,validationErrors:S,validationDetails:T}=t.displayValidation,{labelProps:C,inputProps:_,descriptionProps:v,errorMessageProps:L}=tS({...e,onChange:t.setInputValue,onKeyDown:a?e.onKeyDown:_o(t.isOpen&&E.onKeyDown,w,e.onKeyDown),onBlur:y,value:t.inputValue,onFocus:m,autoComplete:"off",validate:void 0,[ou]:t},o),N=K=>{K.pointerType==="touch"&&(o.current.focus(),t.toggle(null,"manual"))},P=K=>{K.pointerType!=="touch"&&(o.current.focus(),t.toggle(K.pointerType==="keyboard"||K.pointerType==="virtual"?"first":null,"manual"))},D=sl({id:f.id,"aria-label":c.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||C.id}),k=sl({id:d.id,"aria-label":c.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||C.id}),I=p.useRef(0),H=K=>{if(u||a)return;if(K.timeStamp-I.current<500){K.preventDefault(),o.current.focus();return}let ee=K.target.getBoundingClientRect(),bn=K.changedTouches[0],Ir=Math.ceil(ee.left+.5*ee.width),Uo=Math.ceil(ee.top+.5*ee.height);bn.clientX===Ir&&bn.clientY===Uo&&(K.preventDefault(),o.current.focus(),t.toggle(null,"manual"),I.current=K.timeStamp)},J=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var O;let A=(O=J==null?void 0:J.parentKey)!==null&&O!==void 0?O:null;var B;let M=(B=t.selectionManager.focusedKey)!==null&&B!==void 0?B:null,U=p.useRef(A),W=p.useRef(M);p.useEffect(()=>{if(Ri()&&J!=null&&M!==W.current){let K=t.selectionManager.isSelected(M),ee=A!=null?t.collection.getItem(A):null,bn=(ee==null?void 0:ee["aria-label"])||(typeof(ee==null?void 0:ee.rendered)=="string"?ee.rendered:"")||"",Ir=c.format("focusAnnouncement",{isGroupChange:ee&&A!==U.current,groupTitle:bn,groupCount:ee?[...Ol(ee,t.collection)].length:0,optionText:J["aria-label"]||J.textValue||"",isSelected:K});qs(Ir)}U.current=A,W.current=M});let Xe=rg(t.collection),Ue=p.useRef(Xe),St=p.useRef(t.isOpen);p.useEffect(()=>{let K=t.isOpen!==St.current&&(t.selectionManager.focusedKey==null||Ri());if(t.isOpen&&(K||Xe!==Ue.current)){let ee=c.format("countAnnouncement",{optionCount:Xe});qs(ee)}Ue.current=Xe,St.current=t.isOpen});let Re=p.useRef(t.selectedKey);return p.useEffect(()=>{if(Ri()&&t.isFocused&&t.selectedItem&&t.selectedKey!==Re.current){let K=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",ee=c.format("selectedAnnouncement",{optionText:K});qs(ee)}Re.current=t.selectedKey}),p.useEffect(()=>{if(t.isOpen)return Kv([o.current,r.current])},[t.isOpen,o,r]),{labelProps:C,buttonProps:{...f,...D,excludeFromTabOrder:!0,onPress:N,onPressStart:P,isDisabled:u||a},inputProps:Oe(_,{role:"combobox","aria-expanded":f["aria-expanded"],"aria-controls":t.isOpen?d.id:void 0,"aria-autocomplete":"list","aria-activedescendant":J?Vv(t,J.key):void 0,onTouchEnd:H,autoCorrect:"off",spellCheck:"false"}),listBoxProps:Oe(d,k,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:v,errorMessageProps:L,isInvalid:x,validationErrors:S,validationDetails:T}}const oS="_focused_1af8e_1",iS="_listbox_1af8e_10",lS="_content_1af8e_89",sS="_description_1af8e_98",aS="_uppercase_1af8e_126",uS="_divider_1af8e_130",Ve={focused:oS,listbox:iS,"listbox-top":"_listbox-top_1af8e_35","listbox-bottom":"_listbox-bottom_1af8e_39","listbox-content":"_listbox-content_1af8e_43","listbox-section-list":"_listbox-section-list_1af8e_51","listbox-section":"_listbox-section_1af8e_51","listbox-item":"_listbox-item_1af8e_61",content:lS,description:sS,uppercase:aS,divider:uS,"listbox-item--green-tilleul-verveine":"_listbox-item--green-tilleul-verveine_1af8e_141","listbox--green-tilleul-verveine":"_listbox--green-tilleul-verveine_1af8e_149","listbox-item--green-bourgeon":"_listbox-item--green-bourgeon_1af8e_157","listbox--green-bourgeon":"_listbox--green-bourgeon_1af8e_165","listbox-item--green-emeraude":"_listbox-item--green-emeraude_1af8e_173","listbox--green-emeraude":"_listbox--green-emeraude_1af8e_181","listbox-item--green-menthe":"_listbox-item--green-menthe_1af8e_189","listbox--green-menthe":"_listbox--green-menthe_1af8e_197","listbox-item--green-archipel":"_listbox-item--green-archipel_1af8e_205","listbox--green-archipel":"_listbox--green-archipel_1af8e_213","listbox-item--blue-ecume":"_listbox-item--blue-ecume_1af8e_221","listbox--blue-ecume":"_listbox--blue-ecume_1af8e_229","listbox-item--blue-cumulus":"_listbox-item--blue-cumulus_1af8e_237","listbox--blue-cumulus":"_listbox--blue-cumulus_1af8e_245","listbox-item--purple-glycine":"_listbox-item--purple-glycine_1af8e_253","listbox--purple-glycine":"_listbox--purple-glycine_1af8e_261","listbox-item--pink-macaron":"_listbox-item--pink-macaron_1af8e_269","listbox--pink-macaron":"_listbox--pink-macaron_1af8e_277","listbox-item--pink-tuile":"_listbox-item--pink-tuile_1af8e_285","listbox--pink-tuile":"_listbox--pink-tuile_1af8e_293","listbox-item--yellow-tournesol":"_listbox-item--yellow-tournesol_1af8e_301","listbox--yellow-tournesol":"_listbox--yellow-tournesol_1af8e_309","listbox-item--yellow-moutarde":"_listbox-item--yellow-moutarde_1af8e_317","listbox--yellow-moutarde":"_listbox--yellow-moutarde_1af8e_325","listbox-item--orange-terre-battue":"_listbox-item--orange-terre-battue_1af8e_333","listbox--orange-terre-battue":"_listbox--orange-terre-battue_1af8e_341","listbox-item--brown-cafe-creme":"_listbox-item--brown-cafe-creme_1af8e_349","listbox--brown-cafe-creme":"_listbox--brown-cafe-creme_1af8e_357","listbox-item--brown-caramel":"_listbox-item--brown-caramel_1af8e_365","listbox--brown-caramel":"_listbox--brown-caramel_1af8e_373","listbox-item--brown-opera":"_listbox-item--brown-opera_1af8e_381","listbox--brown-opera":"_listbox--brown-opera_1af8e_389","listbox-item--beige-gris-galet":"_listbox-item--beige-gris-galet_1af8e_397","listbox--beige-gris-galet":"_listbox--beige-gris-galet_1af8e_405","listbox-item--success":"_listbox-item--success_1af8e_413","listbox--success":"_listbox--success_1af8e_421","listbox-item--warning":"_listbox-item--warning_1af8e_429","listbox--warning":"_listbox--warning_1af8e_437","listbox-item--info":"_listbox-item--info_1af8e_445","listbox--info":"_listbox--info_1af8e_453","listbox-item--error":"_listbox-item--error_1af8e_461","listbox--error":"_listbox--error_1af8e_469"},Ny=p.createContext({}),cS=({children:e,routerComponent:t,extendRequiredFieldsLabelsWith:n=g.jsx("span",{style:{color:"var(--text-default-error)"},children:" *"}),extendOptionalFieldsLabelsWith:r=" (optionnel)",defaultLang:o="fr",verbose:i=!1})=>{const[l,s]=p.useState(window.localStorage.getItem("locale")||o),[a,u]=p.useState(!1);p.useEffect(()=>{const d=async()=>{var w,y,m;if(typeof window!==void 0||typeof window.dsfr<"u"){if((w=window==null?void 0:window.dsfr)!=null&&w.isStarted)return;window.dsfr={verbose:i,mode:"manual"},await Qn(()=>import("./dsfr.module.min-23ae5258-c178c6bb.js"),[]),await Qn(()=>import("./utility-251e9615-ae73a71d.js"),[]),await Qn(()=>import("./dsfr-4e49221c-2d2b34ee.js"),[]),(m=(y=window.dsfr).start)==null||m.call(y),u(!0)}else console.error("dsfr.start is not a function");window.dsfr={verbose:i,mode:"manual"},await Qn(()=>import("./dsfr.module.min-23ae5258-c178c6bb.js"),[]),await Qn(()=>import("./utility-251e9615-ae73a71d.js"),[]),await Qn(()=>import("./dsfr-4e49221c-2d2b34ee.js"),[]),window.dsfr.start(),u(!0)},h=window.matchMedia("(prefers-color-scheme: dark)"),E=h!=null&&h.matches?"dark":"light",b=window.localStorage.getItem("theme");document.documentElement.setAttribute("data-fr-scheme",b||E),d()},[]);const c=p.useCallback(d=>{window.localStorage.setItem("locale",d),document.documentElement.setAttribute("lang",d),s(d)},[]),f=p.useMemo(()=>({setLocale:c,routerComponent:t,locale:l,extendRequiredFieldsLabelsWith:n,extendOptionalFieldsLabelsWith:r}),[t,c,l,n,r]);return g.jsx(Ny.Provider,{value:f,children:a?e:null})},jo=()=>p.useContext(Ny),Se=p.forwardRef(({children:e,className:t,icon:n,current:r,iconPosition:o="left",isSimple:i=!1,size:l="md",...s},a)=>{const{routerComponent:u}=jo();return g.jsx(u||"a",{ref:a,"aria-current":r||void 0,className:R({"fr-link":i,[`fr-link-${l}`]:l!=="md",[`fr-icon-${n}`]:!!n,[`fr-link--icon-${o}`]:n&&o},t),...s,children:e})});function ky({item:e,state:t}){const n=p.useRef(null),{optionProps:r,descriptionProps:o,labelProps:i,isFocused:l,isFocusVisible:s}=Yw({key:e.key},t,n),{description:a,startContent:u,endContent:c,color:f,showDivider:d,href:h,className:E}=e.props||{};return g.jsxs(h?Se:"li",{...r,ref:n,href:h,className:R(Ve["listbox-item"],E,{[Ve[`listbox-item--${f}`]]:f,[Ve.divider]:d,"fr-enlarge-link":h,[Ve.focused]:l&&s}),children:[u&&u,g.jsxs("span",{className:Ve.content,children:[g.jsx("span",{...i,children:e.rendered}),a&&g.jsx("span",{...o,className:Ve.description,children:a})]}),c&&c]})}function fS({section:e,state:t}){const{itemProps:n,headingProps:r,groupProps:o}=Zw({heading:e.rendered,"aria-label":e["aria-label"]}),{showDivider:i,className:l,css:s={}}=e.props||{},a=[...e.childNodes].find(u=>u.props.href)?"div":"ul";return g.jsxs("li",{...n,className:R(Ve["listbox-section"],l,s.base,{[Ve.divider]:i}),children:[e.rendered&&g.jsx("span",{...r,className:R("fr-text-mention--grey fr-text--sm fr-my-1w fr-px-1w",s.title),children:e.rendered}),g.jsx(a,{...o,className:R(Ve["listbox-section-list"],s.list),children:[...e.childNodes].map(u=>g.jsx(ky,{item:u,state:t},u.key))})]})}function dS(e){var t,n;const r=p.useRef(null),{listBoxRef:o=r,state:i,className:l,css:s={},color:a,topContent:u,bottomContent:c,...f}=e,{listBoxProps:d}=Xw(f,i,o),{isFocusVisible:h}=tw(),E=[...i.collection].find(w=>w.props.href)?"div":"ul",b=((n=(t=e==null?void 0:e.triggerRef)==null?void 0:t.current)==null?void 0:n.offsetWidth)||0;return g.jsxs("div",{className:R(Ve.listbox,l,s.base),style:{minWidth:b||"auto",maxWidth:b>150?b:"auto"},children:[g.jsx("span",{className:R(Ve["listbox-top"],s.top),children:u&&u}),g.jsx(E,{className:R(Ve["listbox-content"],s.list,{[Ve[`listbox--${a}`]]:a}),ref:o,"data-focus-visible":h,...d,children:[...i.collection].map(w=>w.type==="section"?p.createElement(fS,{...w.props,key:w.key,section:w,state:i}):p.createElement(ky,{...w.props,key:w.key,item:w,state:i}))}),g.jsx("span",{className:R(Ve["listbox-bottom"],s.bottom),children:c&&c})]})}const hS="_popover_1g6m6_1",pS={popover:hS};function mS({children:e,state:t,...n}){const r=p.useRef(null),{isNonModal:o=!1,popoverRef:i=r}=n,{popoverProps:l,underlayProps:s}=Hw({...n,popoverRef:i},t);return g.jsxs(Uw,{children:[!o&&g.jsx("div",{...s,style:{position:"fixed",inset:0}}),g.jsxs("div",{...l,ref:i,className:pS.popover,children:[!o&&g.jsx(Yd,{onDismiss:t.close}),e,g.jsx(Yd,{onDismiss:t.close})]})]})}const gS="_spinner_1m2vp_5",vS="_internal_1m2vp_27",eh={spinner:gS,"internal-circle":"_internal-circle_1m2vp_27",internal:vS};function yS({size:e=24}){const t=p.useId();return p.useEffect(()=>{var n,r;(n=document==null?void 0:document.getElementById(t))==null||n.style.setProperty("width",`${e}px`),(r=document==null?void 0:document.getElementById(t))==null||r.style.setProperty("height",`${e}px`)},[e,t]),g.jsx("svg",{id:t,className:eh.spinner,viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg",children:g.jsx("circle",{className:eh["internal-circle"],cx:"60",cy:"60",r:"30"})})}function xS(e){const{contains:t}=hw({sensitivity:"base"}),n=IE({...e,defaultFilter:t,allowsCustomValue:!0}),r=p.useRef(null),o=p.useRef(null),i=p.useRef(null),l=p.useRef(null),{size:s="md",color:a,onSubmit:u,topContent:c,bottomContent:f,...d}=e,{inputProps:h,listBoxProps:E}=rS({...d,inputRef:r,listBoxRef:o,popoverRef:i,onKeyUp:b=>{var w;b.key==="Enter"&&(b.preventDefault(),(w=e.onSubmit)==null||w.call(e,n.inputValue))}},n);return g.jsxs("form",{onSubmit:()=>u==null?void 0:u((e==null?void 0:e.inputValue)||""),ref:l,className:R("fr-search-bar",{"fr-search-bar--lg":s==="lg"}),role:"search",children:[g.jsx("input",{...h,type:"search",ref:r,className:"fr-input"}),g.jsxs("button",{type:"submit",style:{position:"relative"},className:R("fr-btn",{"fr-btn--lg":s==="lg"}),children:[g.jsx("div",{style:{position:"absolute",left:"-40px"},children:e.loadingState==="loading"&&g.jsx(yS,{})}),"Rechercher"]}),n.isOpen&&g.jsx(mS,{popoverRef:i,triggerRef:r,state:n,isNonModal:!1,placement:"bottom start",children:g.jsx(dS,{...E,color:a,listBoxRef:o,triggerRef:l,state:n,topContent:c,bottomContent:f})})]})}const ES=p.forwardRef,Ze=ES(({as:e,className:t,noIcon:n,color:r="blue-france",size:o,icon:i,variant:l="primary",...s},a)=>{const u=e==="a"?Se:e||"p",c=R("fr-badge",{[`fr-badge--${l}`]:l,[`fr-badge--${r}`]:r,[`fr-icon-${i}`]:i,"fr-badge--icon-":i,"fr-badge--no-icon":n,"fr-badge--sm":o==="sm"},t);return g.jsx(u,{className:c,ref:a,...s})}),Vc=({children:e,className:t,...n})=>{const r=p.useId(),o=R("fr-badges-group",t);return g.jsx("ul",{className:o,...n,children:Tn(e,Ze).map((i,l)=>g.jsx("li",{children:i},`${r}-${l}`))})},bS=p.forwardRef,xu=bS(({as:e,className:t,color:n="blue-france",icon:r,iconPosition:o="left",size:i="md",variant:l="primary",children:s,...a},u)=>{const c=e==="a"?Se:e||"button",f=R("fr-btn",{[`fr-btn--${i}`]:i!=="md",[`dfr-btn--${n}`]:!!n&&n!=="blue-france","fr-btn--secondary":l==="secondary","fr-btn--tertiary":l==="tertiary","fr-btn--tertiary-no-outline":l==="text",[`fr-icon-${r}`]:!!r,[`fr-btn--icon-${o}`]:r&&s,"fr-btn--icon":r&&!s},t);return g.jsx(c,{className:f,ref:u,...a,children:s})});p.forwardRef(({className:e,css:t={},hint:n,id:r,label:o,size:i,...l},s)=>{const a=p.useId(),u=r||a;return g.jsxs("div",{className:R("fr-checkbox-group",{"fr-checkbox-group--sm":i==="sm"},e),children:[g.jsx("input",{ref:s,type:"checkbox",id:u,className:R(t.input),...l}),g.jsxs("label",{className:R("fr-label",t.label),htmlFor:u,children:[o,n&&g.jsx("span",{className:R("fr-hint-text",t.labelHint),children:n})]})]})});const th=["__TYPE"];function zl(e,t={}){const{include:n,exclude:r}=t;if(n)return Object.entries(e).reduce((i,[l,s])=>n.includes(l)?{...i,[l]:s}:i,{});const o=r?[...th,...r]:th;return Object.entries(e).reduce((i,[l,s])=>o.includes(l)?i:{...i,[l]:s},{})}p.forwardRef(({children:e,className:t,css:n={},hint:r,isInline:o=!1,legend:i,message:l,messageType:s,required:a,...u},c)=>{const f=p.useId(),{extendRequiredFieldsLabelsWith:d,extendOptionalFieldsLabelsWith:h}=jo();return g.jsxs("fieldset",{ref:c,className:R("fr-fieldset",{[`fr-fieldset--${s}`]:s},t),...zl(u),"aria-labelledby":l&&s?`${f}-message`:void 0,children:[i&&g.jsxs("legend",{className:R("fr-fieldset__legend fr-text--regular",n.legend),children:[i,a?d:h,r&&g.jsx("span",{className:R("fr-hint-text",n.legendHint),children:r})]}),p.Children.toArray(e).map((E,b)=>g.jsx("div",{className:R("fr-fieldset__element",{"fr-fieldset__element--inline":o},n.element),children:E},`${f}-${b}`)),l&&s&&g.jsx("div",{id:`${f}-message`,className:R("fr-messages-group",n.messageDiv),children:g.jsx("p",{className:R(`fr-message fr-message--${s}`,n.messageP),children:l})})]})});p.forwardRef(({id:e,className:t,css:n={},errorMessage:r,hint:o,label:i="Ajouter des fichiers",...l},s)=>{const a=p.useId(),u=e||a,{extendOptionalFieldsLabelsWith:c,extendRequiredFieldsLabelsWith:f}=jo();return g.jsxs("div",{className:R("fr-upload-group",{"fr-input-group--error":r,"fr-input-group--disabled":l.disabled},t),children:[g.jsxs("label",{className:R("fr-label",n.label),htmlFor:u,children:[i,l.required?f:c,o&&g.jsx("span",{className:"fr-hint-text",children:o})]}),g.jsx("input",{ref:s,id:u,className:R("fr-upload",n.input),type:"file","aria-describedby":r?`${u}-message`:void 0,...l}),r&&g.jsx("p",{id:`${u}-message`,className:R("fr-error-text",n.errorParagraph),children:r})]})});const wS=p.forwardRef,xe=wS(({as:e="div",className:t,fluid:n=!1,fluidFrom:r="xs",...o},i)=>{const l=R({"fr-container":!n,"fr-container-fluid":n||r==="xs",[`fr-container-${r}--fluid`]:!n&&r!=="xs"},t);return g.jsx(e,{className:l,ref:i,...o})}),Ry=({gutters:e=!1,horizontalAlign:t,verticalAlign:n,className:r,...o})=>{const i=R("fr-grid-row",{"fr-grid-row--gutters":e,[`fr-grid-row--${t}`]:t,[`fr-grid-row--${n}`]:n},r);return g.jsx("div",{className:i,...o})},Js=({xs:e,sm:t,md:n,lg:r,xl:o,offsetXs:i,offsetSm:l,offsetMd:s,offsetLg:a,offsetXl:u,className:c,...f})=>{const d=R("fr-col",{[`fr-col-${e}`]:e,[`fr-col-sm-${t}`]:t,[`fr-col-md-${n}`]:n,[`fr-col-lg-${r}`]:r,[`fr-col-xl-${o}`]:o,[`fr-col-offset-${i}`]:i,[`fr-col-offset-sm-${l}`]:l,[`fr-col-offset-md-${s}`]:s,[`fr-col-offset-lg-${a}`]:a,[`fr-col-offset-xl-${u}`]:u},c);return g.jsx("div",{className:d,...f})},Ly=({href:e="/",name:t,tagline:n,className:r,css:o={},...i})=>g.jsxs("div",{className:R("fr-header__service",r),children:[g.jsx("p",{className:R("fr-header__service-title",o["fr-header__service-title"]),children:g.jsx(Se,{href:e,...i,children:t})}),n&&g.jsx("p",{className:R("fr-header__service-tagline",o["fr-header__service-tagline"]),children:n})]}),SS=({children:e,className:t,css:n={},...r})=>{const o=p.useId(),i=r.id||o;return g.jsxs("div",{className:R("fr-header__tools-links",t),...r,children:[g.jsx("ul",{className:R("fr-btns-group",n["fr-btns-group"]),children:Tn(e,xu).map((l,s)=>g.jsx("li",{children:l},`${i}-${s}`))}),gE(e,[xu])]})},CS=({className:e,css:t={},...n})=>g.jsx("div",{className:R("fr-header__operator",e),children:g.jsx("img",{className:R("fr-responsive-img",t["fr-responsive-img"]),...n})}),$y=p.forwardRef(({className:e,css:t={},buttonLabel:n,isLarge:r,label:o,onSearch:i,placeholder:l,...s},a)=>{const u=p.useRef(null),c=p.useId(),f=s.id||c,d=h=>{var E;return h.key==="Enter"&&i((E=u.current)==null?void 0:E.value)};return g.jsxs("div",{role:"search",className:R("fr-search-bar",{"fr-search-bar--lg":r},e),children:[o&&g.jsx("label",{className:R("fr-label",t["fr-label"]),htmlFor:f,children:o}),g.jsx("input",{ref:h=>Fo(h,[a,u]),className:R("fr-input",t["fr-input"]),type:"search",id:f,onKeyDown:d,placeholder:l,...zl(s)}),g.jsx("button",{type:"button",onClick:()=>{var h;return i((h=u.current)==null?void 0:h.value)},className:R("fr-btn",{"fr-btn--lg":r},t["fr-btn"]),title:n,children:n})]})}),Iy=({children:e,className:t,current:n=!1,css:r={},title:o,...i})=>{const l=p.useId(),s=Ac(e,[Iy,Se]);return g.jsxs(g.Fragment,{children:[g.jsx("button",{className:R("fr-nav__btn",t),"aria-expanded":"false","aria-controls":l,"aria-current":n||void 0,...i,children:o}),g.jsx("div",{className:R("fr-collapse","fr-menu",r["fr-menu"]),id:l,children:g.jsx("ul",{className:R("fr-menu__list",r["fr-menu__list"]),children:s.map((a,u)=>g.jsx("li",{className:"fr-nav__item",children:p.isValidElement(a)&&a.type===Se?p.cloneElement(a,{className:R("fr-nav__link",a.props.className)}):a},`navitem-${l}-${u}`))})})]})},My=({children:e,className:t,css:n={},...r})=>{const o=p.useId(),i=r.id||o;return g.jsx("nav",{className:R("fr-nav",t),id:i,role:"navigation",...r,children:g.jsx("ul",{className:R("fr-nav__list",n["fr-nav__list"]),children:Ac(e,[Iy,Se]).map((l,s)=>p.isValidElement(l)&&g.jsx("li",{className:R("fr-nav__item",n["fr-nav__item"]),children:l.type===Se?p.cloneElement(l,{className:R("fr-nav__link",l.props.className)}):l},`navitem-${i}-${s}`))})})},Vl=({text:e,splitCharacter:t="|"})=>{const n=e.split(t).reduce((r,o,i)=>i>0?[...r,g.jsx("br",{},`br-${i}`),g.jsx(p.Fragment,{children:o},i)]:[g.jsx(p.Fragment,{children:o},i)],[]);return g.jsx("div",{className:"fr-header__logo",children:g.jsx("p",{className:"fr-logo",children:n})})},TS=({children:e,className:t,css:n={},...r})=>{var o,i,l,s;const a=p.useId(),u=p.useId(),c=p.useId(),f=p.useId(),d=(o=Tn(e,Ly))==null?void 0:o[0],h=(i=Tn(e,SS))==null?void 0:i[0],E=(l=Ac(e,[$y,xS]))==null?void 0:l[0],b=(s=Tn(e,My))==null?void 0:s[0],w=Tn(e,Vl),y=Tn(e,CS),m=p.isValidElement(E)?E.props.title:"Rechercher";return g.jsxs("header",{role:"banner",className:R("fr-header",t),...r,children:[g.jsx("div",{className:R("fr-header__body",n["fr-header__body"]),children:g.jsx("div",{className:"fr-container",children:g.jsxs("div",{className:R("fr-header__body-row",n["fr-header__body-row"]),children:[g.jsxs("div",{className:R("fr-header__brand fr-enlarge-link",n["fr-header__brand"]),children:[g.jsxs("div",{className:R("fr-header__brand-top",n["fr-header__brand-top"]),children:[w&&w,y&&y,(h||E)&&g.jsxs("div",{className:R("fr-header__navbar",n["fr-header__navbar"]),children:[E&&g.jsx("button",{className:R("fr-btn--search fr-btn",n["fr-btn--search"]),"data-fr-opened":"false","aria-controls":u,id:a,title:m,children:m}),h&&g.jsx("button",{className:R("fr-btn--menu fr-btn",n["fr-btn--menu"]),"data-fr-opened":"false","aria-controls":c,"aria-haspopup":"menu",id:f,title:"Menu",children:"Menu"})]})]}),d&&d]}),g.jsxs("div",{className:R("fr-header__tools",n["fr-header__tools"]),children:[h,E&&g.jsx("div",{className:R("fr-header__search fr-modal",n["fr-header__search"]),id:u,children:g.jsxs("div",{className:"fr-container fr-container-lg--fluid",children:[g.jsx("button",{className:"fr-btn--close fr-btn","aria-controls":u,title:"Fermer",children:"Fermer"}),E]})})]})]})})}),g.jsx("div",{className:R("fr-header__menu fr-modal",n["fr-header__menu"]),id:c,"aria-labelledby":f,children:g.jsxs("div",{className:"fr-container",children:[g.jsx("button",{className:"fr-btn--close fr-btn","aria-controls":c,title:"Fermer",children:"Fermer"}),g.jsx("div",{className:R("fr-header__menu-links",n["fr-header__menu-links"])}),b&&b]})})]})};p.forwardRef(({className:e,css:t={},disableAutoValidation:n=!1,hint:r,icon:o,id:i,label:l,message:s,messageType:a,onBlur:u,onChange:c,disabled:f,required:d,isOptional:h,...E},b)=>{const{extendRequiredFieldsLabelsWith:w,extendOptionalFieldsLabelsWith:y}=jo(),[m,x]=p.useState(""),S=i||p.useId(),T=p.useRef(null),C=s!==void 0||a!==void 0,_=R("fr-input",{"fr-input--error":C?a==="error":m==="error","fr-input--valid":C?a==="valid":m==="valid"},t["fr-input"]),v=R("fr-input-group",{"fr-input-group--error":C?a==="error":m==="error","fr-input-group--valid":C?a==="valid":m==="valid","fr-input-group--disabled":f},e),L=P=>{const D=T.current;!n&&!C&&D&&x(D.checkValidity()?"valid":"error"),u&&u(P)},N=P=>{const D=T.current;!n&&!C&&D&&m&&x(D.checkValidity()?"valid":"error"),c&&c(P)};return g.jsxs("div",{className:v,children:[g.jsxs("label",{className:R("fr-label",t["fr-label"]),htmlFor:S,children:[l,d&&!h&&w,h&&!d&&y,r&&g.jsx("span",{className:R("fr-hint-text",t["fr-hint-text"]),children:r})]}),g.jsx("div",{className:R("fr-input-wrap",{[`fr-icon-${o}`]:o},t["fr-input-wrap"]),children:g.jsx("input",{id:S,disabled:f,className:_,onBlur:L,onChange:N,ref:P=>Fo(P,[b,T]),"aria-describedby":a?`${S}-message`:void 0,...E})}),a&&g.jsx("p",{className:`fr-${a}-text`,id:`${S}-message`,children:s})]})});p.forwardRef(({className:e,css:t={},disableAutoValidation:n=!1,hint:r,icon:o,id:i,label:l,message:s,messageType:a,onBlur:u,onChange:c,disabled:f,required:d,isOptional:h,...E},b)=>{const{extendRequiredFieldsLabelsWith:w,extendOptionalFieldsLabelsWith:y}=jo(),[m,x]=p.useState(""),S=i||p.useId(),T=p.useRef(null),C=s!==void 0||a!==void 0,_=R("fr-input",{"fr-input--error":C?a==="error":m==="error","fr-input--valid":C?a==="valid":m==="valid"},t["fr-input"]),v=R("fr-input-group",{"fr-input-group--error":C?a==="error":m==="error","fr-input-group--valid":C?a==="valid":m==="valid","fr-input-group--disabled":f},e),L=P=>{const D=T.current;!n&&!C&&D&&x(D.checkValidity()?"valid":"error"),u&&u(P)},N=P=>{const D=T.current;!n&&!C&&D&&m&&x(D.checkValidity()?"valid":"error"),c&&c(P)};return g.jsxs("div",{className:v,children:[g.jsxs("label",{className:R("fr-label",t["fr-label"]),htmlFor:S,children:[l,d&&!h&&w,h&&!d&&y,r&&g.jsx("span",{className:R("fr-hint-text",t["fr-hint-text"]),children:r})]}),g.jsx("div",{className:R("fr-input-wrap",{[`fr-icon-${o}`]:o},t["fr-input-wrap"]),children:g.jsx("textarea",{id:S,className:_,disabled:f,onBlur:L,onChange:N,ref:P=>Fo(P,[b,T]),"aria-describedby":a?`${S}-message`:void 0,...E})}),a&&g.jsx("p",{className:`fr-${a}-text`,id:`${S}-message`,children:s})]})});p.forwardRef(({className:e,color:t="blue-france",icon:n,iconPosition:r="left",size:o="md",variant:i="primary",children:l,...s},a)=>{const u=R("fr-btn",{[`fr-btn--${o}`]:o!=="md",[`dfr-btn--${t}`]:!!t&&t!=="blue-france","fr-btn--secondary":i==="secondary","fr-btn--tertiary":i==="tertiary","fr-btn--tertiary-no-outline":i==="text",[`fr-icon-${n}`]:!!n,[`fr-btn--icon-${r}`]:n&&l,"fr-btn--icon":n&&!l},e);return g.jsx("button",{className:u,ref:a,...s,children:l})});p.forwardRef(({children:e,className:t,icon:n,id:r,...o},i)=>{const l=R("fr-modal__title",t);return g.jsxs("h1",{ref:i,className:l,id:`${r}-title`,...zl(o),children:[n&&g.jsx("span",{className:`fr-icon-${n} fr-icon--lg`}),e]})});p.forwardRef(({className:e,controls:t,children:n="Fermer",...r},o)=>g.jsx("button",{ref:o,id:`${t}-close`,"aria-controls":t||void 0,className:R("fr-btn--close fr-btn",e),type:"button",...r,children:n}));p.forwardRef(({...e},t)=>g.jsx("div",{ref:t,...e}));p.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:R("fr-modal__footer",e),...t}));const Ay=({children:e,closeMode:t="disallow",type:n="info",className:r,css:o={},onClose:i,...l})=>{const s=p.useRef(null),a=c=>{var f;c.preventDefault(),(f=s.current)==null||f.remove(),i&&i(c)},u=R("fr-notice",{"fr-notice--info":n==="info",[`dsfr-plus-notice--${n}`]:n!=="info"},r);return g.jsx("div",{ref:s,className:u,...l,children:g.jsx("div",{className:R("fr-container",o["fr-container"]),children:g.jsxs("div",{className:R("fr-notice__body",o["fr-notice__body"]),children:[g.jsx("p",{className:R("fr-notice__title",o["fr-notice__title"]),children:e}),t!=="disallow"&&g.jsx("button",{onClick:t==="uncontrolled"?a:i,className:R("fr-btn--close","fr-btn",o["fr-btn--close"]),children:"Masquer le message"})]})})})};p.forwardRef(({checked:e,className:t,css:n={},hint:r,id:o,imageComponent:i,label:l,name:s,...a},u)=>{const c=o||p.useId();return g.jsxs("div",{className:R("fr-radio-group",{"fr-radio-rich":i},t),children:[g.jsx("input",{checked:e,id:c,name:s,ref:u,type:"radio",...a}),g.jsxs("label",{className:R("fr-label"),htmlFor:c,children:[l,r&&g.jsx("p",{className:R("fr-hint-text"),children:r})]}),i&&g.jsx("div",{className:R("fr-radio-rich__img"),children:i})]})});function _S(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Oy={exports:{}},ea,nh;function PS(){if(nh)return ea;nh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ea=e,ea}var ta,rh;function NS(){if(rh)return ta;rh=1;var e=PS();function t(){}function n(){}return n.resetWarningCache=t,ta=function(){function r(l,s,a,u,c,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},ta}Oy.exports=NS()();var kS=Oy.exports;const RS=_S(kS),LS="_spinner_143d9_5",$S="_internal_143d9_40",IS="_external_143d9_41",na={spinner:LS,"internal-circle":"_internal-circle_143d9_40","external-circle":"_external-circle_143d9_41",internal:$S,external:IS,"spinner-overlay":"_spinner-overlay_143d9_57"};function Gc({size:e}){const t=p.useId();return p.useEffect(()=>{var n,r;(n=document==null?void 0:document.getElementById(t))==null||n.style.setProperty("width",`${e}px`),(r=document==null?void 0:document.getElementById(t))==null||r.style.setProperty("height",`${e}px`)},[e,t]),g.jsxs("svg",{id:t,className:na.spinner,viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg",children:[g.jsx("circle",{className:na["internal-circle"],cx:"60",cy:"60",r:"30"}),g.jsx("circle",{className:na["external-circle"],cx:"60",cy:"60",r:"50"})]})}Gc.propTypes={size:RS.number};Gc.defaultProps={size:48};const Wc=p.forwardRef,Qc=({className:e,color:t,icon:n,iconPosition:r,size:o})=>R("fr-tag",e,{"fr-tag--sm":o==="sm",[`fr-icon-${n}`]:n,[`fr-tag--icon-${r}`]:n&&r,[`fr-tag--${t}`]:t});Wc(({as:e,className:t,color:n,icon:r,iconPosition:o="right",size:i,...l},s)=>{const a=Qc({className:t,color:n,icon:r,iconPosition:o,size:i});return g.jsx(e==="a"?Se:e||"p",{className:a,ref:s,...l})});Wc(({as:e,className:t,color:n,icon:r,iconPosition:o="left",selected:i,size:l,...s},a)=>{const u=Qc({className:t,color:n,icon:r,iconPosition:o,size:l});return g.jsx(e==="a"?Se:e||"button",{"aria-pressed":i,className:u,"data-fr-js-disable":"true",ref:a,...s})});Wc(({as:e,className:t,color:n,icon:r,iconPosition:o="left",size:i,...l},s)=>{const a=R("custom-dismissible-tag",Qc({className:t,color:n,icon:r,iconPosition:o,size:i}));return g.jsx(e==="a"?Se:e||"button",{className:a,ref:s,...l})});const ra=({alt:e,as:t="p",bold:n,className:r,size:o,...i})=>{const l=R(r,{"fr-text--alt":o!=="lead"&&e,"fr-text--heavy":n,[`fr-text--${o}`]:o&&o!=="md"});return g.jsx(t,{className:l,...i})};p.createContext({});p.forwardRef(({className:e,css:t={},hasLabelLeft:n,hasSeparator:r,hint:o,label:i,...l},s)=>{const a=p.useId(),u=l.id||a,c=R("fr-toggle",{"fr-toggle--border-bottom":r,"fr-toggle--label-left":n},e);return g.jsxs("div",{className:c,children:[g.jsx("input",{ref:s,type:"checkbox",className:R("fr-toggle__input",t["fr-toggle__input"]),id:u,...zl(l,{exclude:["type"]})}),g.jsx("label",{className:R("fr-toggle__label",t["fr-toggle__label"]),htmlFor:u,"data-fr-checked-label":"Activé","data-fr-unchecked-label":"Désactivé",children:i}),o&&g.jsx("p",{className:R("fr-hint-text",t["fr-hint-text"]),children:o})]})});p.forwardRef(({className:e,icon:t,id:n,label:r,name:o,...i},l)=>g.jsxs("div",{className:R("fr-segmented__element"),style:{width:"100%"},children:[g.jsx("input",{id:n,name:o,ref:l,type:"radio",...i}),g.jsx("label",{className:R("fr-label",t),htmlFor:n,children:r})]}));/** * @remix-run/router v1.16.0 * * Copyright (c) Remix Software Inc. @@ -50,7 +50,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Oy(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function MS(){return Math.random().toString(36).substr(2,8)}function ih(e,t){return{usr:e.state,key:e.key,idx:t}}function Eu(e,t,n,r){return n===void 0&&(n=null),ko({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?$r(t):t,{state:n,key:t&&t.key||r||MS()})}function Fy(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function $r(e){let t={};if(e){let n=e.indexOf("#");n>=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 AS(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,s=rn.Pop,a=null,u=c();u==null&&(u=0,l.replaceState(ko({},l.state,{idx:u}),""));function c(){return(l.state||{idx:null}).idx}function f(){s=rn.Pop;let w=c(),y=w==null?null:w-u;u=w,a&&a({action:s,location:b.location,delta:y})}function d(w,y){s=rn.Push;let m=Eu(b.location,w,y);n&&n(m,w),u=c()+1;let x=ih(m,u),S=b.createHref(m);try{l.pushState(x,"",S)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign(S)}i&&a&&a({action:s,location:b.location,delta:1})}function h(w,y){s=rn.Replace;let m=Eu(b.location,w,y);n&&n(m,w),u=c();let x=ih(m,u),S=b.createHref(m);l.replaceState(x,"",S),i&&a&&a({action:s,location:b.location,delta:0})}function E(w){let y=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof w=="string"?w:Fy(w);return m=m.replace(/ $/,"%20"),be(y,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,y)}let b={get action(){return s},get location(){return e(o,l)},listen(w){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(oh,f),a=w,()=>{o.removeEventListener(oh,f),a=null}},createHref(w){return t(o,w)},createURL:E,encodeLocation(w){let y=E(w);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:d,replace:h,go(w){return l.go(w)}};return b}var lh;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lh||(lh={}));function OS(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?$r(t):t,o=By(r.pathname||"/",n);if(o==null)return null;let i=Dy(e);FS(i);let l=null;for(let s=0;l==null&&s{let a={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};a.relativePath.startsWith("/")&&(be(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 u=In([r,a.relativePath]),c=n.concat(a);i.children&&i.children.length>0&&(be(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Dy(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:zS(u,i.index),routesMeta:c})};return e.forEach((i,l)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,l);else for(let a of jy(i.path))o(i,l,a)}),t}function jy(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=jy(r.join("/")),s=[];return s.push(...l.map(a=>a===""?i:[i,a].join("/"))),o&&s.push(...l),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function FS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:VS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const DS=/^:[\w-]+$/,jS=3,BS=2,HS=1,KS=10,US=-2,sh=e=>e==="*";function zS(e,t){let n=e.split("/"),r=n.length;return n.some(sh)&&(r+=US),t&&(r+=BS),n.filter(o=>!sh(o)).reduce((o,i)=>o+(DS.test(i)?jS:i===""?HS:KS),r)}function VS(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function GS(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let l=0;l{let{paramName:d,isOptional:h}=c;if(d==="*"){let b=s[f]||"";l=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const E=s[f];return h&&!E?u[d]=void 0:u[d]=(E||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:l,pattern:e}}function QS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Oy(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,s,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function qS(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Oy(!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 By(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 XS(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?$r(e):e;return{pathname:n?n.startsWith("/")?n:YS(n,t):t,search:nC(r),hash:rC(o)}}function YS(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function oa(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 ZS(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function JS(e,t){let n=ZS(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function eC(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=$r(e):(o=ko({},e),be(!o.pathname||!o.pathname.includes("?"),oa("?","pathname","search",o)),be(!o.pathname||!o.pathname.includes("#"),oa("#","pathname","hash",o)),be(!o.search||!o.search.includes("#"),oa("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,s;if(l==null)s=n;else{let f=t.length-1;if(!r&&l.startsWith("..")){let d=l.split("/");for(;d[0]==="..";)d.shift(),f-=1;o.pathname=d.join("/")}s=f>=0?t[f]:"/"}let a=XS(o,s),u=l&&l!=="/"&&l.endsWith("/"),c=(i||l===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||c)&&(a.pathname+="/"),a}const In=e=>e.join("/").replace(/\/\/+/g,"/"),tC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),nC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,rC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function oC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Hy=["post","put","patch","delete"];new Set(Hy);const iC=["get",...Hy];new Set(iC);/** + */function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Fy(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function AS(){return Math.random().toString(36).substr(2,8)}function ih(e,t){return{usr:e.state,key:e.key,idx:t}}function Eu(e,t,n,r){return n===void 0&&(n=null),ko({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?$r(t):t,{state:n,key:t&&t.key||r||AS()})}function Dy(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function $r(e){let t={};if(e){let n=e.indexOf("#");n>=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 OS(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,s=rn.Pop,a=null,u=c();u==null&&(u=0,l.replaceState(ko({},l.state,{idx:u}),""));function c(){return(l.state||{idx:null}).idx}function f(){s=rn.Pop;let w=c(),y=w==null?null:w-u;u=w,a&&a({action:s,location:b.location,delta:y})}function d(w,y){s=rn.Push;let m=Eu(b.location,w,y);n&&n(m,w),u=c()+1;let x=ih(m,u),S=b.createHref(m);try{l.pushState(x,"",S)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign(S)}i&&a&&a({action:s,location:b.location,delta:1})}function h(w,y){s=rn.Replace;let m=Eu(b.location,w,y);n&&n(m,w),u=c();let x=ih(m,u),S=b.createHref(m);l.replaceState(x,"",S),i&&a&&a({action:s,location:b.location,delta:0})}function E(w){let y=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof w=="string"?w:Dy(w);return m=m.replace(/ $/,"%20"),be(y,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,y)}let b={get action(){return s},get location(){return e(o,l)},listen(w){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(oh,f),a=w,()=>{o.removeEventListener(oh,f),a=null}},createHref(w){return t(o,w)},createURL:E,encodeLocation(w){let y=E(w);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:d,replace:h,go(w){return l.go(w)}};return b}var lh;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lh||(lh={}));function FS(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?$r(t):t,o=Hy(r.pathname||"/",n);if(o==null)return null;let i=jy(e);DS(i);let l=null;for(let s=0;l==null&&s{let a={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};a.relativePath.startsWith("/")&&(be(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 u=In([r,a.relativePath]),c=n.concat(a);i.children&&i.children.length>0&&(be(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),jy(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:VS(u,i.index),routesMeta:c})};return e.forEach((i,l)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,l);else for(let a of By(i.path))o(i,l,a)}),t}function By(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=By(r.join("/")),s=[];return s.push(...l.map(a=>a===""?i:[i,a].join("/"))),o&&s.push(...l),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function DS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:GS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const jS=/^:[\w-]+$/,BS=3,HS=2,KS=1,US=10,zS=-2,sh=e=>e==="*";function VS(e,t){let n=e.split("/"),r=n.length;return n.some(sh)&&(r+=zS),t&&(r+=HS),n.filter(o=>!sh(o)).reduce((o,i)=>o+(jS.test(i)?BS:i===""?KS:US),r)}function GS(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function WS(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let l=0;l{let{paramName:d,isOptional:h}=c;if(d==="*"){let b=s[f]||"";l=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const E=s[f];return h&&!E?u[d]=void 0:u[d]=(E||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:l,pattern:e}}function qS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Fy(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,s,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function XS(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Fy(!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 Hy(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 YS(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?$r(e):e;return{pathname:n?n.startsWith("/")?n:ZS(n,t):t,search:rC(r),hash:oC(o)}}function ZS(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function oa(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 JS(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function eC(e,t){let n=JS(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function tC(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=$r(e):(o=ko({},e),be(!o.pathname||!o.pathname.includes("?"),oa("?","pathname","search",o)),be(!o.pathname||!o.pathname.includes("#"),oa("#","pathname","hash",o)),be(!o.search||!o.search.includes("#"),oa("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,s;if(l==null)s=n;else{let f=t.length-1;if(!r&&l.startsWith("..")){let d=l.split("/");for(;d[0]==="..";)d.shift(),f-=1;o.pathname=d.join("/")}s=f>=0?t[f]:"/"}let a=YS(o,s),u=l&&l!=="/"&&l.endsWith("/"),c=(i||l===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||c)&&(a.pathname+="/"),a}const In=e=>e.join("/").replace(/\/\/+/g,"/"),nC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),rC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,oC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function iC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ky=["post","put","patch","delete"];new Set(Ky);const lC=["get",...Ky];new Set(lC);/** * React Router v6.23.0 * * Copyright (c) Remix Software Inc. @@ -59,7 +59,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ro(){return Ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),p.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let f=eC(u,JSON.parse(l),i,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:In([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,l,i,e])}const uC=p.createContext(null);function cC(e){let t=p.useContext(Vn).outlet;return t&&p.createElement(uC.Provider,{value:e},t)}function fC(e,t){return dC(e,t)}function dC(e,t,n,r){Ql()||be(!1);let{navigator:o}=p.useContext(Gl),{matches:i}=p.useContext(Vn),l=i[i.length-1],s=l?l.params:{};l&&l.pathname;let a=l?l.pathnameBase:"/";l&&l.route;let u=ql(),c;if(t){var f;let w=typeof t=="string"?$r(t):t;a==="/"||(f=w.pathname)!=null&&f.startsWith(a)||be(!1),c=w}else c=u;let d=c.pathname||"/",h=d;if(a!=="/"){let w=a.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(w.length).join("/")}let E=OS(e,{pathname:h}),b=vC(E&&E.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:In([a,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:In([a,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&b?p.createElement(Wl.Provider,{value:{location:Ro({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:rn.Pop}},b):b}function hC(){let e=bC(),t=oC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,i)}const pC=p.createElement(hC,null);class mC extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(Vn.Provider,{value:this.props.routeContext},p.createElement(Ky.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function gC(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(qc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Vn.Provider,{value:t},r)}function vC(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let l=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let c=l.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);c>=0||be(!1),l=l.slice(0,Math.min(l.length,c+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?l=l.slice(0,u+1):l=[l[0]];break}}}return l.reduceRight((c,f,d)=>{let h,E=!1,b=null,w=null;n&&(h=s&&f.route.id?s[f.route.id]:void 0,b=f.route.errorElement||pC,a&&(u<0&&d===0?(SC("route-fallback",!1),E=!0,w=null):u===d&&(E=!0,w=f.route.hydrateFallbackElement||null)));let y=t.concat(l.slice(0,d+1)),m=()=>{let x;return h?x=b:E?x=w:f.route.Component?x=p.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=c,p.createElement(gC,{match:f,routeContext:{outlet:c,matches:y,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?p.createElement(mC,{location:n.location,revalidation:n.revalidation,component:b,error:h,children:m(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):m()},null)}var zy=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(zy||{}),gl=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}(gl||{});function yC(e){let t=p.useContext(qc);return t||be(!1),t}function xC(e){let t=p.useContext(lC);return t||be(!1),t}function EC(e){let t=p.useContext(Vn);return t||be(!1),t}function Vy(e){let t=EC(),n=t.matches[t.matches.length-1];return n.route.id||be(!1),n.route.id}function bC(){var e;let t=p.useContext(Ky),n=xC(gl.UseRouteError),r=Vy(gl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function wC(){let{router:e}=yC(zy.UseNavigateStable),t=Vy(gl.UseNavigateStable),n=p.useRef(!1);return Uy(()=>{n.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ro({fromRouteId:t},i)))},[e,t])}const ah={};function SC(e,t,n){!t&&!ah[e]&&(ah[e]=!0)}function CC(e){return cC(e.context)}function bu(e){be(!1)}function TC(e){let{basename:t="/",children:n=null,location:r,navigationType:o=rn.Pop,navigator:i,static:l=!1,future:s}=e;Ql()&&be(!1);let a=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:a,navigator:i,static:l,future:Ro({v7_relativeSplatPath:!1},s)}),[a,s,i,l]);typeof r=="string"&&(r=$r(r));let{pathname:c="/",search:f="",hash:d="",state:h=null,key:E="default"}=r,b=p.useMemo(()=>{let w=By(c,a);return w==null?null:{location:{pathname:w,search:f,hash:d,state:h,key:E},navigationType:o}},[a,c,f,d,h,E,o]);return b==null?null:p.createElement(Gl.Provider,{value:u},p.createElement(Wl.Provider,{children:n,value:b}))}function _C(e){let{children:t,location:n}=e;return fC(wu(t),n)}new Promise(()=>{});function wu(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,o)=>{if(!p.isValidElement(r))return;let i=[...t,o];if(r.type===p.Fragment){n.push.apply(n,wu(r.props.children,i));return}r.type!==bu&&be(!1),!r.props.index||!r.props.children||be(!1);let l={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=wu(r.props.children,i)),n.push(l)}),n}/** + */function Ro(){return Ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),p.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let f=tC(u,JSON.parse(l),i,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:In([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,l,i,e])}const cC=p.createContext(null);function fC(e){let t=p.useContext(Vn).outlet;return t&&p.createElement(cC.Provider,{value:e},t)}function dC(e,t){return hC(e,t)}function hC(e,t,n,r){Ql()||be(!1);let{navigator:o}=p.useContext(Gl),{matches:i}=p.useContext(Vn),l=i[i.length-1],s=l?l.params:{};l&&l.pathname;let a=l?l.pathnameBase:"/";l&&l.route;let u=ql(),c;if(t){var f;let w=typeof t=="string"?$r(t):t;a==="/"||(f=w.pathname)!=null&&f.startsWith(a)||be(!1),c=w}else c=u;let d=c.pathname||"/",h=d;if(a!=="/"){let w=a.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(w.length).join("/")}let E=FS(e,{pathname:h}),b=yC(E&&E.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:In([a,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:In([a,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&b?p.createElement(Wl.Provider,{value:{location:Ro({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:rn.Pop}},b):b}function pC(){let e=wC(),t=iC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,i)}const mC=p.createElement(pC,null);class gC extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(Vn.Provider,{value:this.props.routeContext},p.createElement(Uy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function vC(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(qc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Vn.Provider,{value:t},r)}function yC(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let l=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let c=l.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);c>=0||be(!1),l=l.slice(0,Math.min(l.length,c+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?l=l.slice(0,u+1):l=[l[0]];break}}}return l.reduceRight((c,f,d)=>{let h,E=!1,b=null,w=null;n&&(h=s&&f.route.id?s[f.route.id]:void 0,b=f.route.errorElement||mC,a&&(u<0&&d===0?(CC("route-fallback",!1),E=!0,w=null):u===d&&(E=!0,w=f.route.hydrateFallbackElement||null)));let y=t.concat(l.slice(0,d+1)),m=()=>{let x;return h?x=b:E?x=w:f.route.Component?x=p.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=c,p.createElement(vC,{match:f,routeContext:{outlet:c,matches:y,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?p.createElement(gC,{location:n.location,revalidation:n.revalidation,component:b,error:h,children:m(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):m()},null)}var Vy=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Vy||{}),gl=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}(gl||{});function xC(e){let t=p.useContext(qc);return t||be(!1),t}function EC(e){let t=p.useContext(sC);return t||be(!1),t}function bC(e){let t=p.useContext(Vn);return t||be(!1),t}function Gy(e){let t=bC(),n=t.matches[t.matches.length-1];return n.route.id||be(!1),n.route.id}function wC(){var e;let t=p.useContext(Uy),n=EC(gl.UseRouteError),r=Gy(gl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function SC(){let{router:e}=xC(Vy.UseNavigateStable),t=Gy(gl.UseNavigateStable),n=p.useRef(!1);return zy(()=>{n.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ro({fromRouteId:t},i)))},[e,t])}const ah={};function CC(e,t,n){!t&&!ah[e]&&(ah[e]=!0)}function TC(e){return fC(e.context)}function bu(e){be(!1)}function _C(e){let{basename:t="/",children:n=null,location:r,navigationType:o=rn.Pop,navigator:i,static:l=!1,future:s}=e;Ql()&&be(!1);let a=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:a,navigator:i,static:l,future:Ro({v7_relativeSplatPath:!1},s)}),[a,s,i,l]);typeof r=="string"&&(r=$r(r));let{pathname:c="/",search:f="",hash:d="",state:h=null,key:E="default"}=r,b=p.useMemo(()=>{let w=Hy(c,a);return w==null?null:{location:{pathname:w,search:f,hash:d,state:h,key:E},navigationType:o}},[a,c,f,d,h,E,o]);return b==null?null:p.createElement(Gl.Provider,{value:u},p.createElement(Wl.Provider,{children:n,value:b}))}function PC(e){let{children:t,location:n}=e;return dC(wu(t),n)}new Promise(()=>{});function wu(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,o)=>{if(!p.isValidElement(r))return;let i=[...t,o];if(r.type===p.Fragment){n.push.apply(n,wu(r.props.children,i));return}r.type!==bu&&be(!1),!r.props.index||!r.props.children||be(!1);let l={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=wu(r.props.children,i)),n.push(l)}),n}/** * React Router DOM v6.23.0 * * Copyright (c) Remix Software Inc. @@ -68,7 +68,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Su(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function PC(e,t){let n=Su(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}const NC="6";try{window.__reactRouterVersion=NC}catch{}const kC="startTransition",uh=Z0[kC];function RC(e){let{basename:t,children:n,future:r,window:o}=e,i=p.useRef();i.current==null&&(i.current=IS({window:o,v5Compat:!0}));let l=i.current,[s,a]=p.useState({action:l.action,location:l.location}),{v7_startTransition:u}=r||{},c=p.useCallback(f=>{u&&uh?uh(()=>a(f)):a(f)},[a,u]);return p.useLayoutEffect(()=>l.listen(c),[l,c]),p.createElement(TC,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:l,future:r})}var ch;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ch||(ch={}));var fh;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(fh||(fh={}));function LC(e){let t=p.useRef(Su(e)),n=p.useRef(!1),r=ql(),o=p.useMemo(()=>PC(r.search,n.current?null:t.current),[r.search]),i=sC(),l=p.useCallback((s,a)=>{const u=Su(typeof s=="function"?s(o):s);n.current=!0,i("?"+u,a)},[i,o]);return[o,l]}class Bo{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Lo=typeof window>"u"||"Deno"in window;function lt(){}function $C(e,t){return typeof e=="function"?e(t):e}function Cu(e){return typeof e=="number"&&e>=0&&e!==1/0}function Gy(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Zr(e,t,n){return Xl(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Zt(e,t,n){return Xl(e)?[{...t,queryKey:e},n]:[e||{},t]}function dh(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:l,stale:s}=e;if(Xl(l)){if(r){if(t.queryHash!==Xc(l,t.options))return!1}else if(!vl(t.queryKey,l))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function hh(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:i}=e;if(Xl(i)){if(!t.options.mutationKey)return!1;if(n){if(Rn(t.options.mutationKey)!==Rn(i))return!1}else if(!vl(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||o&&!o(t))}function Xc(e,t){return((t==null?void 0:t.queryKeyHashFn)||Rn)(e)}function Rn(e){return JSON.stringify(e,(t,n)=>_u(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function vl(e,t){return Wy(e,t)}function Wy(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Wy(e[n],t[n])):!1}function Qy(e,t){if(e===t)return e;const n=ph(e)&&ph(t);if(n||_u(e)&&_u(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,l=n?[]:{};let s=0;for(let a=0;a"u")return!0;const n=t.prototype;return!(!mh(n)||!n.hasOwnProperty("isPrototypeOf"))}function mh(e){return Object.prototype.toString.call(e)==="[object Object]"}function Xl(e){return Array.isArray(e)}function qy(e){return new Promise(t=>{setTimeout(t,e)})}function gh(e){qy(0).then(e)}function IC(){if(typeof AbortController=="function")return new AbortController}function Pu(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Qy(e,t):t}class MC extends Bo{constructor(){super(),this.setup=t=>{if(!Lo&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const yl=new MC,vh=["online","offline"];class AC extends Bo{constructor(){super(),this.setup=t=>{if(!Lo&&window.addEventListener){const n=()=>t();return vh.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{vh.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const xl=new AC;function OC(e){return Math.min(1e3*2**e,3e4)}function Yl(e){return(e??"online")==="online"?xl.isOnline():!0}class Xy{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function $i(e){return e instanceof Xy}function Yy(e){let t=!1,n=0,r=!1,o,i,l;const s=new Promise((w,y)=>{i=w,l=y}),a=w=>{r||(h(new Xy(w)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},f=()=>!yl.isFocused()||e.networkMode!=="always"&&!xl.isOnline(),d=w=>{r||(r=!0,e.onSuccess==null||e.onSuccess(w),o==null||o(),i(w))},h=w=>{r||(r=!0,e.onError==null||e.onError(w),o==null||o(),l(w))},E=()=>new Promise(w=>{o=y=>{const m=r||!f();return m&&w(y),m},e.onPause==null||e.onPause()}).then(()=>{o=void 0,r||e.onContinue==null||e.onContinue()}),b=()=>{if(r)return;let w;try{w=e.fn()}catch(y){w=Promise.reject(y)}Promise.resolve(w).then(d).catch(y=>{var m,x;if(r)return;const S=(m=e.retry)!=null?m:3,T=(x=e.retryDelay)!=null?x:OC,C=typeof T=="function"?T(n,y):T,_=S===!0||typeof S=="number"&&n{if(f())return E()}).then(()=>{t?h(y):b()})})};return Yl(e.networkMode)?b():E().then(b),{promise:s,cancel:a,continue:()=>(o==null?void 0:o())?s:Promise.resolve(),cancelRetry:u,continueRetry:c}}const Yc=console;function FC(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const o=c=>{let f;t++;try{f=c()}finally{t--,t||s()}return f},i=c=>{t?e.push(c):gh(()=>{n(c)})},l=c=>(...f)=>{i(()=>{c(...f)})},s=()=>{const c=e;e=[],c.length&&gh(()=>{r(()=>{c.forEach(f=>{n(f)})})})};return{batch:o,batchCalls:l,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const ge=FC();class Zy{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Cu(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Lo?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class DC extends Zy{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||Yc,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||jC(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=Pu(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(lt).catch(lt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Gy(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(E=>E.options.queryFn);h&&this.setOptions(h.options)}const l=IC(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},a=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>{if(l)return this.abortSignalConsumed=!0,l.signal}})};a(s);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(a(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=c.fetchOptions)==null?void 0:o.meta)){var f;this.dispatch({type:"fetch",meta:(f=c.fetchOptions)==null?void 0:f.meta})}const d=h=>{if($i(h)&&h.silent||this.dispatch({type:"error",error:h}),!$i(h)){var E,b,w,y;(E=(b=this.cache.config).onError)==null||E.call(b,h,this),(w=(y=this.cache.config).onSettled)==null||w.call(y,this.state.data,h,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Yy({fn:c.fetchFn,abort:l==null?void 0:l.abort.bind(l),onSuccess:h=>{var E,b,w,y;if(typeof h>"u"){d(new Error(this.queryHash+" data is undefined"));return}this.setData(h),(E=(b=this.cache.config).onSuccess)==null||E.call(b,h,this),(w=(y=this.cache.config).onSettled)==null||w.call(y,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:d,onFail:(h,E)=>{this.dispatch({type:"failed",failureCount:h,error:E})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var o,i;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:Yl(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const l=t.error;return $i(l)&&l.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ge.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function jC(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class BC extends Bo{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var o;const i=n.queryKey,l=(o=n.queryHash)!=null?o:Xc(i,n);let s=this.get(l);return s||(s=new DC({cache:this,logger:t.getLogger(),queryKey:i,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){ge.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=Zt(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(o=>dh(r,o))}findAll(t,n){const[r]=Zt(t,n);return Object.keys(r).length>0?this.queries.filter(o=>dh(r,o)):this.queries}notify(t){ge.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){ge.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ge.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class HC extends Zy{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||Yc,this.observers=[],this.state=t.state||KC(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var _;return this.retryer=Yy({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(v,L)=>{this.dispatch({type:"failed",failureCount:v,error:L})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(_=this.options.retry)!=null?_:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,o,i,l,s,a,u,c;if(!n){var f,d,h,E;this.dispatch({type:"loading",variables:this.options.variables}),await((f=(d=this.mutationCache.config).onMutate)==null?void 0:f.call(d,this.state.variables,this));const v=await((h=(E=this.options).onMutate)==null?void 0:h.call(E,this.state.variables));v!==this.state.context&&this.dispatch({type:"loading",context:v,variables:this.state.variables})}const _=await t();return await((r=(o=this.mutationCache.config).onSuccess)==null?void 0:r.call(o,_,this.state.variables,this.state.context,this)),await((i=(l=this.options).onSuccess)==null?void 0:i.call(l,_,this.state.variables,this.state.context)),await((s=(a=this.mutationCache.config).onSettled)==null?void 0:s.call(a,_,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,_,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:_}),_}catch(_){try{var b,w,y,m,x,S,T,C;throw await((b=(w=this.mutationCache.config).onError)==null?void 0:b.call(w,_,this.state.variables,this.state.context,this)),await((y=(m=this.options).onError)==null?void 0:y.call(m,_,this.state.variables,this.state.context)),await((x=(S=this.mutationCache.config).onSettled)==null?void 0:x.call(S,void 0,_,this.state.variables,this.state.context,this)),await((T=(C=this.options).onSettled)==null?void 0:T.call(C,void 0,_,this.state.variables,this.state.context)),_}finally{this.dispatch({type:"error",error:_})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Yl(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),ge.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function KC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class UC extends Bo{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const o=new HC({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){ge.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>hh(t,n))}findAll(t){return this.mutations.filter(n=>hh(t,n))}notify(t){ge.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return ge.batch(()=>n.reduce((r,o)=>r.then(()=>o.continue().catch(lt)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function zC(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,i,l;const s=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,a=(r=e.fetchOptions)==null||(o=r.meta)==null?void 0:o.fetchMore,u=a==null?void 0:a.pageParam,c=(a==null?void 0:a.direction)==="forward",f=(a==null?void 0:a.direction)==="backward",d=((i=e.state.data)==null?void 0:i.pages)||[],h=((l=e.state.data)==null?void 0:l.pageParams)||[];let E=h,b=!1;const w=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>{var _;if((_=e.signal)!=null&&_.aborted)b=!0;else{var v;(v=e.signal)==null||v.addEventListener("abort",()=>{b=!0})}return e.signal}})},y=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),m=(C,_,v,L)=>(E=L?[_,...E]:[...E,_],L?[v,...C]:[...C,v]),x=(C,_,v,L)=>{if(b)return Promise.reject("Cancelled");if(typeof v>"u"&&!_&&C.length)return Promise.resolve(C);const N={queryKey:e.queryKey,pageParam:v,meta:e.options.meta};w(N);const P=y(N);return Promise.resolve(P).then(k=>m(C,v,k,L))};let S;if(!d.length)S=x([]);else if(c){const C=typeof u<"u",_=C?u:yh(e.options,d);S=x(d,C,_)}else if(f){const C=typeof u<"u",_=C?u:VC(e.options,d);S=x(d,C,_,!0)}else{E=[];const C=typeof e.options.getNextPageParam>"u";S=(s&&d[0]?s(d[0],0,d):!0)?x([],C,h[0]):Promise.resolve(m([],h[0],d[0]));for(let v=1;v{if(s&&d[v]?s(d[v],v,d):!0){const P=C?h[v]:yh(e.options,L);return x(L,C,P)}return Promise.resolve(m(L,h[v],d[v]))})}return S.then(C=>({pages:C,pageParams:E}))}}}}function yh(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function VC(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class GC{constructor(t={}){this.queryCache=t.queryCache||new BC,this.mutationCache=t.mutationCache||new UC,this.logger=t.logger||Yc,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=yl.subscribe(()=>{yl.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=xl.subscribe(()=>{xl.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=Zt(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const o=Zr(t,n,r),i=this.getQueryData(o.queryKey);return i?Promise.resolve(i):this.fetchQuery(o)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const o=r.data;return[n,o]})}setQueryData(t,n,r){const o=this.queryCache.find(t),i=o==null?void 0:o.state.data,l=$C(n,i);if(typeof l>"u")return;const s=Zr(t),a=this.defaultQueryOptions(s);return this.queryCache.build(this,a).setData(l,{...r,manual:!0})}setQueriesData(t,n,r){return ge.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=Zt(t,n),o=this.queryCache;ge.batch(()=>{o.findAll(r).forEach(i=>{o.remove(i)})})}resetQueries(t,n,r){const[o,i]=Zt(t,n,r),l=this.queryCache,s={type:"active",...o};return ge.batch(()=>(l.findAll(o).forEach(a=>{a.reset()}),this.refetchQueries(s,i)))}cancelQueries(t,n,r){const[o,i={}]=Zt(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const l=ge.batch(()=>this.queryCache.findAll(o).map(s=>s.cancel(i)));return Promise.all(l).then(lt).catch(lt)}invalidateQueries(t,n,r){const[o,i]=Zt(t,n,r);return ge.batch(()=>{var l,s;if(this.queryCache.findAll(o).forEach(u=>{u.invalidate()}),o.refetchType==="none")return Promise.resolve();const a={...o,type:(l=(s=o.refetchType)!=null?s:o.type)!=null?l:"active"};return this.refetchQueries(a,i)})}refetchQueries(t,n,r){const[o,i]=Zt(t,n,r),l=ge.batch(()=>this.queryCache.findAll(o).filter(a=>!a.isDisabled()).map(a=>{var u;return a.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:o.refetchPage}})}));let s=Promise.all(l).then(lt);return i!=null&&i.throwOnError||(s=s.catch(lt)),s}fetchQuery(t,n,r){const o=Zr(t,n,r),i=this.defaultQueryOptions(o);typeof i.retry>"u"&&(i.retry=!1);const l=this.queryCache.build(this,i);return l.isStaleByTime(i.staleTime)?l.fetch(i):Promise.resolve(l.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(lt).catch(lt)}fetchInfiniteQuery(t,n,r){const o=Zr(t,n,r);return o.behavior=zC(),this.fetchQuery(o)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(lt).catch(lt)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(o=>Rn(t)===Rn(o.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>vl(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(o=>Rn(t)===Rn(o.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>vl(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=Xc(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class WC extends Bo{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),xh(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Nu(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Nu(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Tu(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const i=this.hasListeners();i&&Eh(this.currentQuery,o,this.options,r)&&this.executeFetch(),this.updateResult(n),i&&(this.currentQuery!==o||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const l=this.computeRefetchInterval();i&&(this.currentQuery!==o||this.options.enabled!==r.enabled||l!==this.currentRefetchInterval)&&this.updateRefetchInterval(l)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return qC(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(lt)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),Lo||this.currentResult.isStale||!Cu(this.options.staleTime))return;const n=Gy(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Lo||this.options.enabled===!1||!Cu(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||yl.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,o=this.options,i=this.currentResult,l=this.currentResultState,s=this.currentResultOptions,a=t!==r,u=a?t.state:this.currentQueryInitialState,c=a?this.currentResult:this.previousQueryResult,{state:f}=t;let{dataUpdatedAt:d,error:h,errorUpdatedAt:E,fetchStatus:b,status:w}=f,y=!1,m=!1,x;if(n._optimisticResults){const v=this.hasListeners(),L=!v&&xh(t,n),N=v&&Eh(t,r,n,o);(L||N)&&(b=Yl(t.options.networkMode)?"fetching":"paused",d||(w="loading")),n._optimisticResults==="isRestoring"&&(b="idle")}if(n.keepPreviousData&&!f.dataUpdatedAt&&c!=null&&c.isSuccess&&w!=="error")x=c.data,d=c.dataUpdatedAt,w=c.status,y=!0;else if(n.select&&typeof f.data<"u")if(i&&f.data===(l==null?void 0:l.data)&&n.select===this.selectFn)x=this.selectResult;else try{this.selectFn=n.select,x=n.select(f.data),x=Pu(i==null?void 0:i.data,x,n),this.selectResult=x,this.selectError=null}catch(v){this.selectError=v}else x=f.data;if(typeof n.placeholderData<"u"&&typeof x>"u"&&w==="loading"){let v;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))v=i.data;else if(v=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof v<"u")try{v=n.select(v),this.selectError=null}catch(L){this.selectError=L}typeof v<"u"&&(w="success",x=Pu(i==null?void 0:i.data,v,n),m=!0)}this.selectError&&(h=this.selectError,x=this.selectResult,E=Date.now(),w="error");const S=b==="fetching",T=w==="loading",C=w==="error";return{status:w,fetchStatus:b,isLoading:T,isSuccess:w==="success",isError:C,isInitialLoading:T&&S,data:x,dataUpdatedAt:d,error:h,errorUpdatedAt:E,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!T,isLoadingError:C&&f.dataUpdatedAt===0,isPaused:b==="paused",isPlaceholderData:m,isPreviousData:y,isRefetchError:C&&f.dataUpdatedAt!==0,isStale:Zc(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Tu(r,n))return;this.currentResult=r;const o={cache:!0},i=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,s=typeof l=="function"?l():l;if(s==="all"||!s&&!this.trackedProps.size)return!0;const a=new Set(s??this.trackedProps);return this.options.useErrorBoundary&&a.add("error"),Object.keys(this.currentResult).some(u=>{const c=u;return this.currentResult[c]!==n[c]&&a.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),this.notify({...o,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!$i(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){ge.batch(()=>{if(t.onSuccess){var n,r,o,i;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(o=(i=this.options).onSettled)==null||o.call(i,this.currentResult.data,null)}else if(t.onError){var l,s,a,u;(l=(s=this.options).onError)==null||l.call(s,this.currentResult.error),(a=(u=this.options).onSettled)==null||a.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function QC(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function xh(e,t){return QC(e,t)||e.state.dataUpdatedAt>0&&Nu(e,t,t.refetchOnMount)}function Nu(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Zc(e,t)}return!1}function Eh(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Zc(e,n)}function Zc(e,t){return e.isStaleByTime(t.staleTime)}function qC(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!Tu(e.getCurrentResult(),t)}var Jy={exports:{}},e0={};/** + */function Su(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function NC(e,t){let n=Su(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}const kC="6";try{window.__reactRouterVersion=kC}catch{}const RC="startTransition",uh=J0[RC];function LC(e){let{basename:t,children:n,future:r,window:o}=e,i=p.useRef();i.current==null&&(i.current=MS({window:o,v5Compat:!0}));let l=i.current,[s,a]=p.useState({action:l.action,location:l.location}),{v7_startTransition:u}=r||{},c=p.useCallback(f=>{u&&uh?uh(()=>a(f)):a(f)},[a,u]);return p.useLayoutEffect(()=>l.listen(c),[l,c]),p.createElement(_C,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:l,future:r})}var ch;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ch||(ch={}));var fh;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(fh||(fh={}));function $C(e){let t=p.useRef(Su(e)),n=p.useRef(!1),r=ql(),o=p.useMemo(()=>NC(r.search,n.current?null:t.current),[r.search]),i=aC(),l=p.useCallback((s,a)=>{const u=Su(typeof s=="function"?s(o):s);n.current=!0,i("?"+u,a)},[i,o]);return[o,l]}class Bo{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Lo=typeof window>"u"||"Deno"in window;function lt(){}function IC(e,t){return typeof e=="function"?e(t):e}function Cu(e){return typeof e=="number"&&e>=0&&e!==1/0}function Wy(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Zr(e,t,n){return Xl(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Zt(e,t,n){return Xl(e)?[{...t,queryKey:e},n]:[e||{},t]}function dh(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:l,stale:s}=e;if(Xl(l)){if(r){if(t.queryHash!==Xc(l,t.options))return!1}else if(!vl(t.queryKey,l))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function hh(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:i}=e;if(Xl(i)){if(!t.options.mutationKey)return!1;if(n){if(Rn(t.options.mutationKey)!==Rn(i))return!1}else if(!vl(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||o&&!o(t))}function Xc(e,t){return((t==null?void 0:t.queryKeyHashFn)||Rn)(e)}function Rn(e){return JSON.stringify(e,(t,n)=>_u(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function vl(e,t){return Qy(e,t)}function Qy(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Qy(e[n],t[n])):!1}function qy(e,t){if(e===t)return e;const n=ph(e)&&ph(t);if(n||_u(e)&&_u(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,l=n?[]:{};let s=0;for(let a=0;a"u")return!0;const n=t.prototype;return!(!mh(n)||!n.hasOwnProperty("isPrototypeOf"))}function mh(e){return Object.prototype.toString.call(e)==="[object Object]"}function Xl(e){return Array.isArray(e)}function Xy(e){return new Promise(t=>{setTimeout(t,e)})}function gh(e){Xy(0).then(e)}function MC(){if(typeof AbortController=="function")return new AbortController}function Pu(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?qy(e,t):t}class AC extends Bo{constructor(){super(),this.setup=t=>{if(!Lo&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const yl=new AC,vh=["online","offline"];class OC extends Bo{constructor(){super(),this.setup=t=>{if(!Lo&&window.addEventListener){const n=()=>t();return vh.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{vh.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const xl=new OC;function FC(e){return Math.min(1e3*2**e,3e4)}function Yl(e){return(e??"online")==="online"?xl.isOnline():!0}class Yy{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function $i(e){return e instanceof Yy}function Zy(e){let t=!1,n=0,r=!1,o,i,l;const s=new Promise((w,y)=>{i=w,l=y}),a=w=>{r||(h(new Yy(w)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},f=()=>!yl.isFocused()||e.networkMode!=="always"&&!xl.isOnline(),d=w=>{r||(r=!0,e.onSuccess==null||e.onSuccess(w),o==null||o(),i(w))},h=w=>{r||(r=!0,e.onError==null||e.onError(w),o==null||o(),l(w))},E=()=>new Promise(w=>{o=y=>{const m=r||!f();return m&&w(y),m},e.onPause==null||e.onPause()}).then(()=>{o=void 0,r||e.onContinue==null||e.onContinue()}),b=()=>{if(r)return;let w;try{w=e.fn()}catch(y){w=Promise.reject(y)}Promise.resolve(w).then(d).catch(y=>{var m,x;if(r)return;const S=(m=e.retry)!=null?m:3,T=(x=e.retryDelay)!=null?x:FC,C=typeof T=="function"?T(n,y):T,_=S===!0||typeof S=="number"&&n{if(f())return E()}).then(()=>{t?h(y):b()})})};return Yl(e.networkMode)?b():E().then(b),{promise:s,cancel:a,continue:()=>(o==null?void 0:o())?s:Promise.resolve(),cancelRetry:u,continueRetry:c}}const Yc=console;function DC(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const o=c=>{let f;t++;try{f=c()}finally{t--,t||s()}return f},i=c=>{t?e.push(c):gh(()=>{n(c)})},l=c=>(...f)=>{i(()=>{c(...f)})},s=()=>{const c=e;e=[],c.length&&gh(()=>{r(()=>{c.forEach(f=>{n(f)})})})};return{batch:o,batchCalls:l,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const ge=DC();class Jy{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Cu(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Lo?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class jC extends Jy{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||Yc,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||BC(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=Pu(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(lt).catch(lt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Wy(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(E=>E.options.queryFn);h&&this.setOptions(h.options)}const l=MC(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},a=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>{if(l)return this.abortSignalConsumed=!0,l.signal}})};a(s);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(a(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=c.fetchOptions)==null?void 0:o.meta)){var f;this.dispatch({type:"fetch",meta:(f=c.fetchOptions)==null?void 0:f.meta})}const d=h=>{if($i(h)&&h.silent||this.dispatch({type:"error",error:h}),!$i(h)){var E,b,w,y;(E=(b=this.cache.config).onError)==null||E.call(b,h,this),(w=(y=this.cache.config).onSettled)==null||w.call(y,this.state.data,h,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Zy({fn:c.fetchFn,abort:l==null?void 0:l.abort.bind(l),onSuccess:h=>{var E,b,w,y;if(typeof h>"u"){d(new Error(this.queryHash+" data is undefined"));return}this.setData(h),(E=(b=this.cache.config).onSuccess)==null||E.call(b,h,this),(w=(y=this.cache.config).onSettled)==null||w.call(y,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:d,onFail:(h,E)=>{this.dispatch({type:"failed",failureCount:h,error:E})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var o,i;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:Yl(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const l=t.error;return $i(l)&&l.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ge.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function BC(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class HC extends Bo{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var o;const i=n.queryKey,l=(o=n.queryHash)!=null?o:Xc(i,n);let s=this.get(l);return s||(s=new jC({cache:this,logger:t.getLogger(),queryKey:i,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){ge.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=Zt(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(o=>dh(r,o))}findAll(t,n){const[r]=Zt(t,n);return Object.keys(r).length>0?this.queries.filter(o=>dh(r,o)):this.queries}notify(t){ge.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){ge.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ge.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class KC extends Jy{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||Yc,this.observers=[],this.state=t.state||UC(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var _;return this.retryer=Zy({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(v,L)=>{this.dispatch({type:"failed",failureCount:v,error:L})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(_=this.options.retry)!=null?_:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,o,i,l,s,a,u,c;if(!n){var f,d,h,E;this.dispatch({type:"loading",variables:this.options.variables}),await((f=(d=this.mutationCache.config).onMutate)==null?void 0:f.call(d,this.state.variables,this));const v=await((h=(E=this.options).onMutate)==null?void 0:h.call(E,this.state.variables));v!==this.state.context&&this.dispatch({type:"loading",context:v,variables:this.state.variables})}const _=await t();return await((r=(o=this.mutationCache.config).onSuccess)==null?void 0:r.call(o,_,this.state.variables,this.state.context,this)),await((i=(l=this.options).onSuccess)==null?void 0:i.call(l,_,this.state.variables,this.state.context)),await((s=(a=this.mutationCache.config).onSettled)==null?void 0:s.call(a,_,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,_,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:_}),_}catch(_){try{var b,w,y,m,x,S,T,C;throw await((b=(w=this.mutationCache.config).onError)==null?void 0:b.call(w,_,this.state.variables,this.state.context,this)),await((y=(m=this.options).onError)==null?void 0:y.call(m,_,this.state.variables,this.state.context)),await((x=(S=this.mutationCache.config).onSettled)==null?void 0:x.call(S,void 0,_,this.state.variables,this.state.context,this)),await((T=(C=this.options).onSettled)==null?void 0:T.call(C,void 0,_,this.state.variables,this.state.context)),_}finally{this.dispatch({type:"error",error:_})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Yl(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),ge.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function UC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class zC extends Bo{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const o=new KC({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){ge.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>hh(t,n))}findAll(t){return this.mutations.filter(n=>hh(t,n))}notify(t){ge.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return ge.batch(()=>n.reduce((r,o)=>r.then(()=>o.continue().catch(lt)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function VC(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,i,l;const s=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,a=(r=e.fetchOptions)==null||(o=r.meta)==null?void 0:o.fetchMore,u=a==null?void 0:a.pageParam,c=(a==null?void 0:a.direction)==="forward",f=(a==null?void 0:a.direction)==="backward",d=((i=e.state.data)==null?void 0:i.pages)||[],h=((l=e.state.data)==null?void 0:l.pageParams)||[];let E=h,b=!1;const w=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>{var _;if((_=e.signal)!=null&&_.aborted)b=!0;else{var v;(v=e.signal)==null||v.addEventListener("abort",()=>{b=!0})}return e.signal}})},y=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),m=(C,_,v,L)=>(E=L?[_,...E]:[...E,_],L?[v,...C]:[...C,v]),x=(C,_,v,L)=>{if(b)return Promise.reject("Cancelled");if(typeof v>"u"&&!_&&C.length)return Promise.resolve(C);const N={queryKey:e.queryKey,pageParam:v,meta:e.options.meta};w(N);const P=y(N);return Promise.resolve(P).then(k=>m(C,v,k,L))};let S;if(!d.length)S=x([]);else if(c){const C=typeof u<"u",_=C?u:yh(e.options,d);S=x(d,C,_)}else if(f){const C=typeof u<"u",_=C?u:GC(e.options,d);S=x(d,C,_,!0)}else{E=[];const C=typeof e.options.getNextPageParam>"u";S=(s&&d[0]?s(d[0],0,d):!0)?x([],C,h[0]):Promise.resolve(m([],h[0],d[0]));for(let v=1;v{if(s&&d[v]?s(d[v],v,d):!0){const P=C?h[v]:yh(e.options,L);return x(L,C,P)}return Promise.resolve(m(L,h[v],d[v]))})}return S.then(C=>({pages:C,pageParams:E}))}}}}function yh(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function GC(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class WC{constructor(t={}){this.queryCache=t.queryCache||new HC,this.mutationCache=t.mutationCache||new zC,this.logger=t.logger||Yc,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=yl.subscribe(()=>{yl.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=xl.subscribe(()=>{xl.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=Zt(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const o=Zr(t,n,r),i=this.getQueryData(o.queryKey);return i?Promise.resolve(i):this.fetchQuery(o)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const o=r.data;return[n,o]})}setQueryData(t,n,r){const o=this.queryCache.find(t),i=o==null?void 0:o.state.data,l=IC(n,i);if(typeof l>"u")return;const s=Zr(t),a=this.defaultQueryOptions(s);return this.queryCache.build(this,a).setData(l,{...r,manual:!0})}setQueriesData(t,n,r){return ge.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=Zt(t,n),o=this.queryCache;ge.batch(()=>{o.findAll(r).forEach(i=>{o.remove(i)})})}resetQueries(t,n,r){const[o,i]=Zt(t,n,r),l=this.queryCache,s={type:"active",...o};return ge.batch(()=>(l.findAll(o).forEach(a=>{a.reset()}),this.refetchQueries(s,i)))}cancelQueries(t,n,r){const[o,i={}]=Zt(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const l=ge.batch(()=>this.queryCache.findAll(o).map(s=>s.cancel(i)));return Promise.all(l).then(lt).catch(lt)}invalidateQueries(t,n,r){const[o,i]=Zt(t,n,r);return ge.batch(()=>{var l,s;if(this.queryCache.findAll(o).forEach(u=>{u.invalidate()}),o.refetchType==="none")return Promise.resolve();const a={...o,type:(l=(s=o.refetchType)!=null?s:o.type)!=null?l:"active"};return this.refetchQueries(a,i)})}refetchQueries(t,n,r){const[o,i]=Zt(t,n,r),l=ge.batch(()=>this.queryCache.findAll(o).filter(a=>!a.isDisabled()).map(a=>{var u;return a.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:o.refetchPage}})}));let s=Promise.all(l).then(lt);return i!=null&&i.throwOnError||(s=s.catch(lt)),s}fetchQuery(t,n,r){const o=Zr(t,n,r),i=this.defaultQueryOptions(o);typeof i.retry>"u"&&(i.retry=!1);const l=this.queryCache.build(this,i);return l.isStaleByTime(i.staleTime)?l.fetch(i):Promise.resolve(l.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(lt).catch(lt)}fetchInfiniteQuery(t,n,r){const o=Zr(t,n,r);return o.behavior=VC(),this.fetchQuery(o)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(lt).catch(lt)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(o=>Rn(t)===Rn(o.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>vl(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(o=>Rn(t)===Rn(o.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>vl(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=Xc(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class QC extends Bo{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),xh(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Nu(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Nu(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Tu(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const i=this.hasListeners();i&&Eh(this.currentQuery,o,this.options,r)&&this.executeFetch(),this.updateResult(n),i&&(this.currentQuery!==o||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const l=this.computeRefetchInterval();i&&(this.currentQuery!==o||this.options.enabled!==r.enabled||l!==this.currentRefetchInterval)&&this.updateRefetchInterval(l)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return XC(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(lt)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),Lo||this.currentResult.isStale||!Cu(this.options.staleTime))return;const n=Wy(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Lo||this.options.enabled===!1||!Cu(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||yl.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,o=this.options,i=this.currentResult,l=this.currentResultState,s=this.currentResultOptions,a=t!==r,u=a?t.state:this.currentQueryInitialState,c=a?this.currentResult:this.previousQueryResult,{state:f}=t;let{dataUpdatedAt:d,error:h,errorUpdatedAt:E,fetchStatus:b,status:w}=f,y=!1,m=!1,x;if(n._optimisticResults){const v=this.hasListeners(),L=!v&&xh(t,n),N=v&&Eh(t,r,n,o);(L||N)&&(b=Yl(t.options.networkMode)?"fetching":"paused",d||(w="loading")),n._optimisticResults==="isRestoring"&&(b="idle")}if(n.keepPreviousData&&!f.dataUpdatedAt&&c!=null&&c.isSuccess&&w!=="error")x=c.data,d=c.dataUpdatedAt,w=c.status,y=!0;else if(n.select&&typeof f.data<"u")if(i&&f.data===(l==null?void 0:l.data)&&n.select===this.selectFn)x=this.selectResult;else try{this.selectFn=n.select,x=n.select(f.data),x=Pu(i==null?void 0:i.data,x,n),this.selectResult=x,this.selectError=null}catch(v){this.selectError=v}else x=f.data;if(typeof n.placeholderData<"u"&&typeof x>"u"&&w==="loading"){let v;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))v=i.data;else if(v=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof v<"u")try{v=n.select(v),this.selectError=null}catch(L){this.selectError=L}typeof v<"u"&&(w="success",x=Pu(i==null?void 0:i.data,v,n),m=!0)}this.selectError&&(h=this.selectError,x=this.selectResult,E=Date.now(),w="error");const S=b==="fetching",T=w==="loading",C=w==="error";return{status:w,fetchStatus:b,isLoading:T,isSuccess:w==="success",isError:C,isInitialLoading:T&&S,data:x,dataUpdatedAt:d,error:h,errorUpdatedAt:E,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!T,isLoadingError:C&&f.dataUpdatedAt===0,isPaused:b==="paused",isPlaceholderData:m,isPreviousData:y,isRefetchError:C&&f.dataUpdatedAt!==0,isStale:Zc(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Tu(r,n))return;this.currentResult=r;const o={cache:!0},i=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,s=typeof l=="function"?l():l;if(s==="all"||!s&&!this.trackedProps.size)return!0;const a=new Set(s??this.trackedProps);return this.options.useErrorBoundary&&a.add("error"),Object.keys(this.currentResult).some(u=>{const c=u;return this.currentResult[c]!==n[c]&&a.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),this.notify({...o,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!$i(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){ge.batch(()=>{if(t.onSuccess){var n,r,o,i;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(o=(i=this.options).onSettled)==null||o.call(i,this.currentResult.data,null)}else if(t.onError){var l,s,a,u;(l=(s=this.options).onError)==null||l.call(s,this.currentResult.error),(a=(u=this.options).onSettled)==null||a.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function qC(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function xh(e,t){return qC(e,t)||e.state.dataUpdatedAt>0&&Nu(e,t,t.refetchOnMount)}function Nu(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Zc(e,t)}return!1}function Eh(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Zc(e,n)}function Zc(e,t){return e.isStaleByTime(t.staleTime)}function XC(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!Tu(e.getCurrentResult(),t)}var e0={exports:{}},t0={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -76,32 +76,32 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Pr=p;function XC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var YC=typeof Object.is=="function"?Object.is:XC,ZC=Pr.useState,JC=Pr.useEffect,eT=Pr.useLayoutEffect,tT=Pr.useDebugValue;function nT(e,t){var n=t(),r=ZC({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return eT(function(){o.value=n,o.getSnapshot=t,ia(o)&&i({inst:o})},[e,n,t]),JC(function(){return ia(o)&&i({inst:o}),e(function(){ia(o)&&i({inst:o})})},[e]),tT(n),n}function ia(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!YC(e,n)}catch{return!0}}function rT(e,t){return t()}var oT=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?rT:nT;e0.useSyncExternalStore=Pr.useSyncExternalStore!==void 0?Pr.useSyncExternalStore:oT;Jy.exports=e0;var iT=Jy.exports;const lT=iT.useSyncExternalStore,bh=p.createContext(void 0),t0=p.createContext(!1);function n0(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=bh),window.ReactQueryClientContext):bh)}const sT=({context:e}={})=>{const t=p.useContext(n0(e,p.useContext(t0)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},aT=({client:e,children:t,context:n,contextSharing:r=!1})=>{p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=n0(n,r);return p.createElement(t0.Provider,{value:!n&&r},p.createElement(o.Provider,{value:e},t))},r0=p.createContext(!1),uT=()=>p.useContext(r0);r0.Provider;function cT(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const fT=p.createContext(cT()),dT=()=>p.useContext(fT);function hT(e,t){return typeof e=="function"?e(...t):!!e}const pT=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},mT=e=>{p.useEffect(()=>{e.clearReset()},[e])},gT=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&hT(n,[e.error,r]),vT=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},yT=(e,t)=>e.isLoading&&e.isFetching&&!t,xT=(e,t,n)=>(e==null?void 0:e.suspense)&&yT(t,n),ET=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function bT(e,t){const n=sT({context:e.context}),r=uT(),o=dT(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=ge.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=ge.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=ge.batchCalls(i.onSettled)),vT(i),pT(i,o),mT(o);const[l]=p.useState(()=>new t(n,i)),s=l.getOptimisticResult(i);if(lT(p.useCallback(a=>{const u=r?()=>{}:l.subscribe(ge.batchCalls(a));return l.updateResult(),u},[l,r]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),p.useEffect(()=>{l.setOptions(i,{listeners:!1})},[i,l]),xT(i,s,r))throw ET(i,l,o);if(gT({result:s,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:l.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:l.trackResult(s)}function wT(e,t,n){const r=Zr(e,t,n);return bT(r,WC)}const ST=function(){return null},{VITE_APP_NAME:CT,VITE_HEADER_TAG:TT,VITE_MINISTER_NAME:_T}={VITE_MINISTER_NAME:"Ministère|de l'enseignement|supérieur|et de la recherche",VITE_APP_NAME:"AFFILIATION MATCHER",VITE_HEADER_TAG:"",VITE_API_URL:"",VITE_VERSION:"1.0.0",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function PT(){const{pathname:e}=ql();return g.jsxs(CS,{children:[g.jsx(Vl,{splitCharacter:"|",text:_T}),g.jsx(Ry,{name:CT,tagline:TT}),g.jsx(Iy,{children:g.jsx(Se,{current:e==="/",href:"/",children:"Home"})})]})}function NT({children:e}){return g.jsx("div",{className:"fr-footer__top",children:e})}function kT({children:e,fluid:t=!1}){return g.jsx("footer",{className:"fr-footer fr-mt-3w",role:"contentinfo",id:"footer",children:g.jsx(xe,{fluid:t,children:e})})}function RT({children:e,copy:t}){const n=q.Children.toArray(e);return g.jsxs("div",{className:"fr-container fr-footer__bottom",children:[g.jsx("ul",{className:"fr-footer__bottom-list",children:n.map((r,o)=>g.jsx("li",{className:"fr-footer__bottom-item",children:r},o))}),t?g.jsx("div",{className:"fr-footer__bottom-copy",children:g.jsx("p",{children:t})}):null]})}function LT({children:e,description:t}){var o;const n=q.Children.toArray(e).filter(i=>q.isValidElement(i)&&i.type===Se),r=(o=q.Children.toArray(e).filter(i=>q.isValidElement(i)&&i.type===Vl))==null?void 0:o[0];return g.jsxs("div",{className:"fr-container fr-footer__body",children:[r?g.jsx("div",{className:"fr-footer__brand fr-enlarge-link",children:r}):null,g.jsxs("div",{className:"fr-footer__content",children:[t?g.jsx("p",{className:"fr-footer__content-desc",children:t}):null,n.length?g.jsx("ul",{className:"fr-footer__content-list",children:n.map((i,l)=>g.jsx("li",{className:"fr-footer__content-item",children:i},l))}):null]})]})}function $T(){return g.jsx(g.Fragment,{children:g.jsx("dialog",{id:"fr-theme-modal",className:"fr-modal",role:"dialog","aria-labelledby":"fr-theme-modal-title",children:g.jsx("div",{className:"fr-container fr-container--fluid fr-container-md",children:g.jsx("div",{className:"fr-grid-row fr-grid-row--center",children:g.jsx("div",{className:"fr-col-12 fr-col-md-6 fr-col-lg-4",children:g.jsxs("div",{className:"fr-modal__body",children:[g.jsx("div",{className:"fr-modal__header",children:g.jsx("button",{className:"fr-btn--close fr-btn","aria-controls":"fr-theme-modal",id:"button-5622",title:"Fermer",children:"Fermer"})}),g.jsxs("div",{className:"fr-modal__content",children:[g.jsx("h1",{id:"fr-theme-modal-title",className:"fr-modal__title",children:"Titre"}),g.jsx("div",{id:"fr-display",className:"fr-display",children:g.jsxs("fieldset",{className:"fr-fieldset",id:"display-fieldset",children:[g.jsx("legend",{className:"fr-fieldset__legend--regular fr-fieldset__legend",id:"display-fieldset-legend",children:"Legende"}),g.jsx("div",{className:"fr-fieldset__element",children:g.jsxs("div",{className:"fr-radio-group fr-radio-rich",children:[g.jsx("input",{value:"light",type:"radio",id:"fr-radios-theme-light",name:"fr-radios-theme"}),g.jsx("label",{className:"fr-label",htmlFor:"fr-radios-theme-light",children:"light"}),g.jsx("div",{className:"fr-radio-rich__img",children:g.jsxs("svg",{"aria-hidden":"true",className:"fr-artwork",viewBox:"0 0 80 80",width:"80px",height:"80px",children:[g.jsx("use",{className:"fr-artwork-decorative",href:"/artwork/pictograms/environment/sun.svg#artwork-decorative"}),g.jsx("use",{className:"fr-artwork-minor",href:"/artwork/pictograms/environment/sun.svg#artwork-minor"}),g.jsx("use",{className:"fr-artwork-major",href:"/artwork/pictograms/environment/sun.svg#artwork-major"})]})})]})}),g.jsx("div",{className:"fr-fieldset__element",children:g.jsxs("div",{className:"fr-radio-group fr-radio-rich",children:[g.jsx("input",{value:"dark",type:"radio",id:"fr-radios-theme-dark",name:"fr-radios-theme"}),g.jsx("label",{className:"fr-label",htmlFor:"fr-radios-theme-dark",children:"Dark"}),g.jsx("div",{className:"fr-radio-rich__img",children:g.jsxs("svg",{"aria-hidden":"true",className:"fr-artwork",viewBox:"0 0 80 80",width:"80px",height:"80px",children:[g.jsx("use",{className:"fr-artwork-decorative",href:"/artwork/pictograms/environment/moon.svg#artwork-decorative"}),g.jsx("use",{className:"fr-artwork-minor",href:"/artwork/pictograms/environment/moon.svg#artwork-minor"}),g.jsx("use",{className:"fr-artwork-major",href:"/artwork/pictograms/environment/moon.svg#artwork-major"})]})})]})}),g.jsx("div",{className:"fr-fieldset__element",children:g.jsxs("div",{className:"fr-radio-group fr-radio-rich",children:[g.jsx("input",{value:"system",type:"radio",id:"fr-radios-theme-system",name:"fr-radios-theme"}),g.jsxs("label",{className:"fr-label",htmlFor:"fr-radios-theme-system",children:["System",g.jsx("span",{className:"fr-hint-text",children:"Syten"})]}),g.jsx("div",{className:"fr-radio-rich__img",children:g.jsxs("svg",{"aria-hidden":"true",className:"fr-artwork",viewBox:"0 0 80 80",width:"80px",height:"80px",children:[g.jsx("use",{className:"fr-artwork-decorative",href:"/artwork/pictograms/system/system.svg#artwork-decorative"}),g.jsx("use",{className:"fr-artwork-minor",href:"/artwork/pictograms/system/system.svg#artwork-minor"}),g.jsx("use",{className:"fr-artwork-major",href:"/artwork/pictograms/system/system.svg#artwork-major"})]})})]})})]})})]})]})})})})})})}const{VITE_MINISTER_NAME:IT,VITE_APP_DESCRIPTION:MT,VITE_VERSION:AT}={VITE_MINISTER_NAME:"Ministère|de l'enseignement|supérieur|et de la recherche",VITE_APP_NAME:"AFFILIATION MATCHER",VITE_HEADER_TAG:"",VITE_API_URL:"",VITE_VERSION:"1.0.0",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function OT(){return g.jsxs(kT,{fluid:!0,children:[g.jsx(NT,{children:g.jsx(xe,{})}),g.jsxs(LT,{description:MT,children:[g.jsx(Vl,{splitCharacter:"|",text:IT}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://legifrance.gouv.fr",children:"legifrance.gouv.fr"}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://gouvernement.fr",children:"gouvernement.fr"}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://service-public.fr",children:"service-public.fr"}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://data.gouv.fr",children:"data.gouv.fr"})]}),g.jsx(RT,{children:g.jsx(Se,{target:"_blank",rel:"noreferer noopenner",className:"fr-footer__bottom-link",href:"https://github.com/dataesr/affiliation-matcher",children:`App version ${AT}`})}),g.jsx($T,{})]})}const FT={"scroll-top":"_scroll-top_8vydd_1"};function DT(){const[e,t]=p.useState(!1),n=()=>{window.scrollTo({top:0,behavior:"smooth"})};return p.useEffect(()=>{const r=()=>window.pageYOffset>600?t(!0):t(!1);return window.addEventListener("scroll",r),()=>window.removeEventListener("scroll",r)},[]),e?g.jsx(xu,{className:FT["scroll-top"],title:"Revenir en haut de la page",size:"lg",icon:"ri-arrow-up-line",onClick:n}):null}function jT(){return g.jsxs(g.Fragment,{children:[g.jsx(PT,{}),g.jsx(xe,{as:"main",role:"main",fluid:!0,children:g.jsx(CC,{})}),g.jsx(DT,{}),g.jsx(OT,{})]})}var ku=function(e,t){return ku=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},ku(e,t)};function wt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ku(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var j=function(){return j=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?oT:rT;t0.useSyncExternalStore=Pr.useSyncExternalStore!==void 0?Pr.useSyncExternalStore:iT;e0.exports=t0;var lT=e0.exports;const sT=lT.useSyncExternalStore,bh=p.createContext(void 0),n0=p.createContext(!1);function r0(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=bh),window.ReactQueryClientContext):bh)}const aT=({context:e}={})=>{const t=p.useContext(r0(e,p.useContext(n0)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},uT=({client:e,children:t,context:n,contextSharing:r=!1})=>{p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=r0(n,r);return p.createElement(n0.Provider,{value:!n&&r},p.createElement(o.Provider,{value:e},t))},o0=p.createContext(!1),cT=()=>p.useContext(o0);o0.Provider;function fT(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const dT=p.createContext(fT()),hT=()=>p.useContext(dT);function pT(e,t){return typeof e=="function"?e(...t):!!e}const mT=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},gT=e=>{p.useEffect(()=>{e.clearReset()},[e])},vT=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&pT(n,[e.error,r]),yT=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},xT=(e,t)=>e.isLoading&&e.isFetching&&!t,ET=(e,t,n)=>(e==null?void 0:e.suspense)&&xT(t,n),bT=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function wT(e,t){const n=aT({context:e.context}),r=cT(),o=hT(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=ge.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=ge.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=ge.batchCalls(i.onSettled)),yT(i),mT(i,o),gT(o);const[l]=p.useState(()=>new t(n,i)),s=l.getOptimisticResult(i);if(sT(p.useCallback(a=>{const u=r?()=>{}:l.subscribe(ge.batchCalls(a));return l.updateResult(),u},[l,r]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),p.useEffect(()=>{l.setOptions(i,{listeners:!1})},[i,l]),ET(i,s,r))throw bT(i,l,o);if(vT({result:s,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:l.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:l.trackResult(s)}function ST(e,t,n){const r=Zr(e,t,n);return wT(r,QC)}const CT=function(){return null},{VITE_APP_NAME:TT,VITE_HEADER_TAG:_T,VITE_MINISTER_NAME:PT}={VITE_MINISTER_NAME:"Ministère|de l'enseignement|supérieur|et de la recherche",VITE_APP_NAME:"AFFILIATION MATCHER",VITE_HEADER_TAG:"",VITE_API_URL:"",VITE_VERSION:"1.0.0",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function NT(){const{pathname:e}=ql();return g.jsxs(TS,{children:[g.jsx(Vl,{splitCharacter:"|",text:PT}),g.jsx(Ly,{name:TT,tagline:_T}),g.jsx(My,{children:g.jsx(Se,{current:e==="/",href:"/",children:"Home"})})]})}function kT({children:e}){return g.jsx("div",{className:"fr-footer__top",children:e})}function RT({children:e,fluid:t=!1}){return g.jsx("footer",{className:"fr-footer fr-mt-3w",role:"contentinfo",id:"footer",children:g.jsx(xe,{fluid:t,children:e})})}function LT({children:e,copy:t}){const n=q.Children.toArray(e);return g.jsxs("div",{className:"fr-container fr-footer__bottom",children:[g.jsx("ul",{className:"fr-footer__bottom-list",children:n.map((r,o)=>g.jsx("li",{className:"fr-footer__bottom-item",children:r},o))}),t?g.jsx("div",{className:"fr-footer__bottom-copy",children:g.jsx("p",{children:t})}):null]})}function $T({children:e,description:t}){var o;const n=q.Children.toArray(e).filter(i=>q.isValidElement(i)&&i.type===Se),r=(o=q.Children.toArray(e).filter(i=>q.isValidElement(i)&&i.type===Vl))==null?void 0:o[0];return g.jsxs("div",{className:"fr-container fr-footer__body",children:[r?g.jsx("div",{className:"fr-footer__brand fr-enlarge-link",children:r}):null,g.jsxs("div",{className:"fr-footer__content",children:[t?g.jsx("p",{className:"fr-footer__content-desc",children:t}):null,n.length?g.jsx("ul",{className:"fr-footer__content-list",children:n.map((i,l)=>g.jsx("li",{className:"fr-footer__content-item",children:i},l))}):null]})]})}function IT(){return g.jsx(g.Fragment,{children:g.jsx("dialog",{id:"fr-theme-modal",className:"fr-modal",role:"dialog","aria-labelledby":"fr-theme-modal-title",children:g.jsx("div",{className:"fr-container fr-container--fluid fr-container-md",children:g.jsx("div",{className:"fr-grid-row fr-grid-row--center",children:g.jsx("div",{className:"fr-col-12 fr-col-md-6 fr-col-lg-4",children:g.jsxs("div",{className:"fr-modal__body",children:[g.jsx("div",{className:"fr-modal__header",children:g.jsx("button",{className:"fr-btn--close fr-btn","aria-controls":"fr-theme-modal",id:"button-5622",title:"Fermer",children:"Fermer"})}),g.jsxs("div",{className:"fr-modal__content",children:[g.jsx("h1",{id:"fr-theme-modal-title",className:"fr-modal__title",children:"Titre"}),g.jsx("div",{id:"fr-display",className:"fr-display",children:g.jsxs("fieldset",{className:"fr-fieldset",id:"display-fieldset",children:[g.jsx("legend",{className:"fr-fieldset__legend--regular fr-fieldset__legend",id:"display-fieldset-legend",children:"Legende"}),g.jsx("div",{className:"fr-fieldset__element",children:g.jsxs("div",{className:"fr-radio-group fr-radio-rich",children:[g.jsx("input",{value:"light",type:"radio",id:"fr-radios-theme-light",name:"fr-radios-theme"}),g.jsx("label",{className:"fr-label",htmlFor:"fr-radios-theme-light",children:"light"}),g.jsx("div",{className:"fr-radio-rich__img",children:g.jsxs("svg",{"aria-hidden":"true",className:"fr-artwork",viewBox:"0 0 80 80",width:"80px",height:"80px",children:[g.jsx("use",{className:"fr-artwork-decorative",href:"/artwork/pictograms/environment/sun.svg#artwork-decorative"}),g.jsx("use",{className:"fr-artwork-minor",href:"/artwork/pictograms/environment/sun.svg#artwork-minor"}),g.jsx("use",{className:"fr-artwork-major",href:"/artwork/pictograms/environment/sun.svg#artwork-major"})]})})]})}),g.jsx("div",{className:"fr-fieldset__element",children:g.jsxs("div",{className:"fr-radio-group fr-radio-rich",children:[g.jsx("input",{value:"dark",type:"radio",id:"fr-radios-theme-dark",name:"fr-radios-theme"}),g.jsx("label",{className:"fr-label",htmlFor:"fr-radios-theme-dark",children:"Dark"}),g.jsx("div",{className:"fr-radio-rich__img",children:g.jsxs("svg",{"aria-hidden":"true",className:"fr-artwork",viewBox:"0 0 80 80",width:"80px",height:"80px",children:[g.jsx("use",{className:"fr-artwork-decorative",href:"/artwork/pictograms/environment/moon.svg#artwork-decorative"}),g.jsx("use",{className:"fr-artwork-minor",href:"/artwork/pictograms/environment/moon.svg#artwork-minor"}),g.jsx("use",{className:"fr-artwork-major",href:"/artwork/pictograms/environment/moon.svg#artwork-major"})]})})]})}),g.jsx("div",{className:"fr-fieldset__element",children:g.jsxs("div",{className:"fr-radio-group fr-radio-rich",children:[g.jsx("input",{value:"system",type:"radio",id:"fr-radios-theme-system",name:"fr-radios-theme"}),g.jsxs("label",{className:"fr-label",htmlFor:"fr-radios-theme-system",children:["System",g.jsx("span",{className:"fr-hint-text",children:"Syten"})]}),g.jsx("div",{className:"fr-radio-rich__img",children:g.jsxs("svg",{"aria-hidden":"true",className:"fr-artwork",viewBox:"0 0 80 80",width:"80px",height:"80px",children:[g.jsx("use",{className:"fr-artwork-decorative",href:"/artwork/pictograms/system/system.svg#artwork-decorative"}),g.jsx("use",{className:"fr-artwork-minor",href:"/artwork/pictograms/system/system.svg#artwork-minor"}),g.jsx("use",{className:"fr-artwork-major",href:"/artwork/pictograms/system/system.svg#artwork-major"})]})})]})})]})})]})]})})})})})})}const{VITE_MINISTER_NAME:MT,VITE_APP_DESCRIPTION:AT,VITE_VERSION:wh}={VITE_MINISTER_NAME:"Ministère|de l'enseignement|supérieur|et de la recherche",VITE_APP_NAME:"AFFILIATION MATCHER",VITE_HEADER_TAG:"",VITE_API_URL:"",VITE_VERSION:"1.0.0",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function OT(){return g.jsxs(RT,{fluid:!0,children:[g.jsx(kT,{children:g.jsx(xe,{})}),g.jsxs($T,{description:AT,children:[g.jsx(Vl,{splitCharacter:"|",text:MT}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://legifrance.gouv.fr",children:"legifrance.gouv.fr"}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://gouvernement.fr",children:"gouvernement.fr"}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://service-public.fr",children:"service-public.fr"}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://data.gouv.fr",children:"data.gouv.fr"})]}),g.jsx(LT,{children:g.jsx(Se,{target:"_blank",rel:"noreferer noopenner",className:"fr-footer__bottom-link",href:`https://github.com/dataesr/affiliation-matcher/releases/tag/${wh}`,children:`App version ${wh}`})}),g.jsx(IT,{})]})}const FT={"scroll-top":"_scroll-top_8vydd_1"};function DT(){const[e,t]=p.useState(!1),n=()=>{window.scrollTo({top:0,behavior:"smooth"})};return p.useEffect(()=>{const r=()=>window.pageYOffset>600?t(!0):t(!1);return window.addEventListener("scroll",r),()=>window.removeEventListener("scroll",r)},[]),e?g.jsx(xu,{className:FT["scroll-top"],title:"Revenir en haut de la page",size:"lg",icon:"ri-arrow-up-line",onClick:n}):null}function jT(){return g.jsxs(g.Fragment,{children:[g.jsx(NT,{}),g.jsx(xe,{as:"main",role:"main",fluid:!0,children:g.jsx(TC,{})}),g.jsx(DT,{}),g.jsx(OT,{})]})}var ku=function(e,t){return ku=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},ku(e,t)};function wt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ku(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var j=function(){return j=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0}),n=[],r=0,o=t;r1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(t_,function(a,u,c,f,d,h){if(u)t.minimumIntegerDigits=c.length;else{if(f&&d)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(y0.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(Sh.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Sh,function(a,u,c,f,d,h){return c==="*"?t.minimumFractionDigits=u.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:d&&h?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+h.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var i=o.options[0];i==="w"?t=j(j({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=j(j({},t),Ch(i)));continue}if(v0.test(o.stem)){t=j(j({},t),Ch(o.stem));continue}var l=x0(o.stem);l&&(t=j(j({},t),l));var s=n_(o.stem);s&&(t=j(j({},t),s))}return t}var gi={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function o_(e,t){for(var n="",r=0;r>1),a="a",u=i_(t);for((u=="H"||u=="k")&&(s=0);s-- >0;)n+=a;for(;l-- >0;)n=u+n}else o==="J"?n+="H":n+=o}return n}function i_(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var o=gi[r||""]||gi[n||""]||gi["".concat(n,"-001")]||gi["001"];return o[0]}var la,l_=new RegExp("^".concat(g0.source,"*")),s_=new RegExp("".concat(g0.source,"*$"));function G(e,t){return{start:e,end:t}}var a_=!!String.prototype.startsWith&&"_a".startsWith("a",1),u_=!!String.fromCodePoint,c_=!!Object.fromEntries,f_=!!String.prototype.codePointAt,d_=!!String.prototype.trimStart,h_=!!String.prototype.trimEnd,p_=!!Number.isSafeInteger,m_=p_?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Lu=!0;try{var g_=b0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Lu=((la=g_.exec("a"))===null||la===void 0?void 0:la[0])==="a"}catch{Lu=!1}var _h=a_?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},$u=u_?String.fromCodePoint:function(){for(var t=[],n=0;ni;){if(l=t[i++],l>1114111)throw RangeError(l+" is not a valid code point");r+=l<65536?String.fromCharCode(l):String.fromCharCode(((l-=65536)>>10)+55296,l%1024+56320)}return r},Ph=c_?Object.fromEntries:function(t){for(var n={},r=0,o=t;r=r)){var o=t.charCodeAt(n),i;return o<55296||o>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},v_=d_?function(t){return t.trimStart()}:function(t){return t.replace(l_,"")},y_=h_?function(t){return t.trimEnd()}:function(t){return t.replace(s_,"")};function b0(e,t){return new RegExp(e,t)}var Iu;if(Lu){var Nh=b0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Iu=function(t,n){var r;Nh.lastIndex=n;var o=Nh.exec(t);return(r=o[1])!==null&&r!==void 0?r:""}}else Iu=function(t,n){for(var r=[];;){var o=E0(t,n);if(o===void 0||w0(o)||w_(o))break;r.push(o),n+=o>=65536?2:1}return $u.apply(void 0,r)};var x_=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var l=this.parseArgument(t,r);if(l.err)return l;o.push(l.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),o.push({type:oe.pound,location:G(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(V.UNMATCHED_CLOSING_TAG,G(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Mu(this.peek()||0)){var l=this.parseTag(t,n);if(l.err)return l;o.push(l.val)}else{var l=this.parseLiteral(t,n);if(l.err)return l;o.push(l.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:oe.literal,value:"<".concat(o,"/>"),location:G(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var l=i.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:oe.tag,value:o,children:l,location:G(r,this.clonePosition())},err:null}:this.error(V.INVALID_TAG,G(s,this.clonePosition())))}else return this.error(V.UNCLOSED_TAG,G(r,this.clonePosition()))}else return this.error(V.INVALID_TAG,G(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&b_(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),o="";;){var i=this.tryParseQuote(n);if(i){o+=i;continue}var l=this.tryParseUnquoted(t,n);if(l){o+=l;continue}var s=this.tryParseLeftAngleBracket();if(s){o+=s;continue}break}var a=G(r,this.clonePosition());return{val:{type:oe.literal,value:o,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!E_(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return $u.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),$u(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(V.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(V.EMPTY_ARGUMENT,G(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(V.MALFORMED_ARGUMENT,G(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(V.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:oe.argument,value:o,location:G(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(V.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition())):this.parseArgumentOptions(t,n,o,r);default:return this.error(V.MALFORMED_ARGUMENT,G(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Iu(this.message,n),o=n+r.length;this.bumpTo(o);var i=this.clonePosition(),l=G(t,i);return{value:r,location:l}},e.prototype.parseArgumentOptions=function(t,n,r,o){var i,l=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(V.EXPECT_ARGUMENT_TYPE,G(l,a));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var d=y_(f.val);if(d.length===0)return this.error(V.EXPECT_ARGUMENT_STYLE,G(this.clonePosition(),this.clonePosition()));var h=G(c,this.clonePosition());u={style:d,styleLocation:h}}var E=this.tryParseArgumentClose(o);if(E.err)return E;var b=G(o,this.clonePosition());if(u&&_h(u==null?void 0:u.style,"::",0)){var w=v_(u.style.slice(2));if(s==="number"){var f=this.parseNumberSkeletonFromString(w,u.styleLocation);return f.err?f:{val:{type:oe.number,value:r,location:b,style:f.val},err:null}}else{if(w.length===0)return this.error(V.EXPECT_DATE_TIME_SKELETON,b);var y=w;this.locale&&(y=o_(w,this.locale));var d={type:Nr.dateTime,pattern:y,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?YT(y):{}},m=s==="date"?oe.date:oe.time;return{val:{type:m,value:r,location:b,style:d},err:null}}}return{val:{type:s==="number"?oe.number:s==="date"?oe.date:oe.time,value:r,location:b,style:(i=u==null?void 0:u.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var x=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(V.EXPECT_SELECT_ARGUMENT_OPTIONS,G(x,j({},x)));this.bumpSpace();var S=this.parseIdentifierIfPossible(),T=0;if(s!=="select"&&S.value==="offset"){if(!this.bumpIf(":"))return this.error(V.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,G(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(V.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,V.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),S=this.parseIdentifierIfPossible(),T=f.val}var C=this.tryParsePluralOrSelectOptions(t,s,n,S);if(C.err)return C;var E=this.tryParseArgumentClose(o);if(E.err)return E;var _=G(o,this.clonePosition());return s==="select"?{val:{type:oe.select,value:r,options:Ph(C.val),location:_},err:null}:{val:{type:oe.plural,value:r,options:Ph(C.val),offset:T,pluralType:s==="plural"?"cardinal":"ordinal",location:_},err:null}}default:return this.error(V.INVALID_ARGUMENT_TYPE,G(l,a))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(V.EXPECT_ARGUMENT_CLOSING_BRACE,G(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(V.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,G(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=JT(t)}catch{return this.error(V.INVALID_NUMBER_SKELETON,n)}return{val:{type:Nr.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?r_(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,o){for(var i,l=!1,s=[],a=new Set,u=o.value,c=o.location;;){if(u.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(V.EXPECT_PLURAL_ARGUMENT_SELECTOR,V.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=G(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}else break}if(a.has(u))return this.error(n==="select"?V.DUPLICATE_SELECT_ARGUMENT_SELECTOR:V.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(l=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?V.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:V.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,G(this.clonePosition(),this.clonePosition()));var E=this.parseMessage(t+1,n,r);if(E.err)return E;var b=this.tryParseArgumentClose(h);if(b.err)return b;s.push([u,{value:E.val,location:G(h,this.clonePosition())}]),a.add(u),this.bumpSpace(),i=this.parseIdentifierIfPossible(),u=i.value,c=i.location}return s.length===0?this.error(n==="select"?V.EXPECT_SELECT_ARGUMENT_SELECTOR:V.EXPECT_PLURAL_ARGUMENT_SELECTOR,G(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!l?this.error(V.MISSING_OTHER_CLAUSE,G(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,l=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,l=l*10+(s-48),this.bump();else break}var a=G(o,this.clonePosition());return i?(l*=r,m_(l)?{val:l,err:null}:this.error(n,a)):this.error(t,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=E0(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(_h(this.message,t,this.offset())){for(var n=0;n=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&w0(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function Mu(e){return e>=97&&e<=122||e>=65&&e<=90}function E_(e){return Mu(e)||e===47}function b_(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function w0(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function w_(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Au(e){e.forEach(function(t){if(delete t.location,d0(t)||h0(t))for(var n in t.options)delete t.options[n].location,Au(t.options[n].value);else u0(t)&&m0(t.style)||(c0(t)||f0(t))&&Ru(t.style)?delete t.style.location:p0(t)&&Au(t.children)})}function S_(e,t){t===void 0&&(t={}),t=j({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new x_(e,t).parse();if(n.err){var r=SyntaxError(V[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Au(n.val),n.val}function _t(e,t){var n=t&&t.cache?t.cache:k_,r=t&&t.serializer?t.serializer:N_,o=t&&t.strategy?t.strategy:T_;return o(e,{cache:n,serializer:r})}function C_(e){return e==null||typeof e=="number"||typeof e=="boolean"}function S0(e,t,n,r){var o=C_(r)?r:n(r),i=t.get(o);return typeof i>"u"&&(i=e.call(this,r),t.set(o,i)),i}function C0(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,r),t.set(o,i)),i}function nf(e,t,n,r,o){return n.bind(t,e,r,o)}function T_(e,t){var n=e.length===1?S0:C0;return nf(e,this,n,t.cache.create(),t.serializer)}function __(e,t){return nf(e,this,C0,t.cache.create(),t.serializer)}function P_(e,t){return nf(e,this,S0,t.cache.create(),t.serializer)}var N_=function(){return JSON.stringify(arguments)};function rf(){this.cache=Object.create(null)}rf.prototype.get=function(e){return this.cache[e]};rf.prototype.set=function(e,t){this.cache[e]=t};var k_={create:function(){return new rf}},Pt={variadic:__,monadic:P_},$t;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})($t||($t={}));var En=function(e){wt(t,e);function t(n,r,o){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),kh=function(e){wt(t,e);function t(n,r,o,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),$t.INVALID_VALUE,i)||this}return t}(En),R_=function(e){wt(t,e);function t(n,r,o){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),$t.INVALID_VALUE,o)||this}return t}(En),L_=function(e){wt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),$t.MISSING_VALUE,r)||this}return t}(En),Fe;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Fe||(Fe={}));function $_(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Fe.literal||n.type!==Fe.literal?t.push(n):r.value+=n.value,t},[])}function T0(e){return typeof e=="function"}function Ii(e,t,n,r,o,i,l){if(e.length===1&&wh(e[0]))return[{type:Fe.literal,value:e[0].value}];for(var s=[],a=0,u=e;a0}),n=[],r=0,o=t;r1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(t_,function(a,u,c,f,d,h){if(u)t.minimumIntegerDigits=c.length;else{if(f&&d)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(x0.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(Ch.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Ch,function(a,u,c,f,d,h){return c==="*"?t.minimumFractionDigits=u.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:d&&h?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+h.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var i=o.options[0];i==="w"?t=j(j({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=j(j({},t),Th(i)));continue}if(y0.test(o.stem)){t=j(j({},t),Th(o.stem));continue}var l=E0(o.stem);l&&(t=j(j({},t),l));var s=n_(o.stem);s&&(t=j(j({},t),s))}return t}var gi={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function o_(e,t){for(var n="",r=0;r>1),a="a",u=i_(t);for((u=="H"||u=="k")&&(s=0);s-- >0;)n+=a;for(;l-- >0;)n=u+n}else o==="J"?n+="H":n+=o}return n}function i_(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var o=gi[r||""]||gi[n||""]||gi["".concat(n,"-001")]||gi["001"];return o[0]}var la,l_=new RegExp("^".concat(v0.source,"*")),s_=new RegExp("".concat(v0.source,"*$"));function G(e,t){return{start:e,end:t}}var a_=!!String.prototype.startsWith&&"_a".startsWith("a",1),u_=!!String.fromCodePoint,c_=!!Object.fromEntries,f_=!!String.prototype.codePointAt,d_=!!String.prototype.trimStart,h_=!!String.prototype.trimEnd,p_=!!Number.isSafeInteger,m_=p_?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Lu=!0;try{var g_=w0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Lu=((la=g_.exec("a"))===null||la===void 0?void 0:la[0])==="a"}catch{Lu=!1}var Ph=a_?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},$u=u_?String.fromCodePoint:function(){for(var t=[],n=0;ni;){if(l=t[i++],l>1114111)throw RangeError(l+" is not a valid code point");r+=l<65536?String.fromCharCode(l):String.fromCharCode(((l-=65536)>>10)+55296,l%1024+56320)}return r},Nh=c_?Object.fromEntries:function(t){for(var n={},r=0,o=t;r=r)){var o=t.charCodeAt(n),i;return o<55296||o>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},v_=d_?function(t){return t.trimStart()}:function(t){return t.replace(l_,"")},y_=h_?function(t){return t.trimEnd()}:function(t){return t.replace(s_,"")};function w0(e,t){return new RegExp(e,t)}var Iu;if(Lu){var kh=w0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Iu=function(t,n){var r;kh.lastIndex=n;var o=kh.exec(t);return(r=o[1])!==null&&r!==void 0?r:""}}else Iu=function(t,n){for(var r=[];;){var o=b0(t,n);if(o===void 0||S0(o)||w_(o))break;r.push(o),n+=o>=65536?2:1}return $u.apply(void 0,r)};var x_=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var l=this.parseArgument(t,r);if(l.err)return l;o.push(l.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),o.push({type:oe.pound,location:G(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(V.UNMATCHED_CLOSING_TAG,G(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Mu(this.peek()||0)){var l=this.parseTag(t,n);if(l.err)return l;o.push(l.val)}else{var l=this.parseLiteral(t,n);if(l.err)return l;o.push(l.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:oe.literal,value:"<".concat(o,"/>"),location:G(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var l=i.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:oe.tag,value:o,children:l,location:G(r,this.clonePosition())},err:null}:this.error(V.INVALID_TAG,G(s,this.clonePosition())))}else return this.error(V.UNCLOSED_TAG,G(r,this.clonePosition()))}else return this.error(V.INVALID_TAG,G(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&b_(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),o="";;){var i=this.tryParseQuote(n);if(i){o+=i;continue}var l=this.tryParseUnquoted(t,n);if(l){o+=l;continue}var s=this.tryParseLeftAngleBracket();if(s){o+=s;continue}break}var a=G(r,this.clonePosition());return{val:{type:oe.literal,value:o,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!E_(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return $u.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),$u(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(V.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(V.EMPTY_ARGUMENT,G(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(V.MALFORMED_ARGUMENT,G(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(V.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:oe.argument,value:o,location:G(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(V.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition())):this.parseArgumentOptions(t,n,o,r);default:return this.error(V.MALFORMED_ARGUMENT,G(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Iu(this.message,n),o=n+r.length;this.bumpTo(o);var i=this.clonePosition(),l=G(t,i);return{value:r,location:l}},e.prototype.parseArgumentOptions=function(t,n,r,o){var i,l=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(V.EXPECT_ARGUMENT_TYPE,G(l,a));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var d=y_(f.val);if(d.length===0)return this.error(V.EXPECT_ARGUMENT_STYLE,G(this.clonePosition(),this.clonePosition()));var h=G(c,this.clonePosition());u={style:d,styleLocation:h}}var E=this.tryParseArgumentClose(o);if(E.err)return E;var b=G(o,this.clonePosition());if(u&&Ph(u==null?void 0:u.style,"::",0)){var w=v_(u.style.slice(2));if(s==="number"){var f=this.parseNumberSkeletonFromString(w,u.styleLocation);return f.err?f:{val:{type:oe.number,value:r,location:b,style:f.val},err:null}}else{if(w.length===0)return this.error(V.EXPECT_DATE_TIME_SKELETON,b);var y=w;this.locale&&(y=o_(w,this.locale));var d={type:Nr.dateTime,pattern:y,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?YT(y):{}},m=s==="date"?oe.date:oe.time;return{val:{type:m,value:r,location:b,style:d},err:null}}}return{val:{type:s==="number"?oe.number:s==="date"?oe.date:oe.time,value:r,location:b,style:(i=u==null?void 0:u.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var x=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(V.EXPECT_SELECT_ARGUMENT_OPTIONS,G(x,j({},x)));this.bumpSpace();var S=this.parseIdentifierIfPossible(),T=0;if(s!=="select"&&S.value==="offset"){if(!this.bumpIf(":"))return this.error(V.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,G(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(V.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,V.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),S=this.parseIdentifierIfPossible(),T=f.val}var C=this.tryParsePluralOrSelectOptions(t,s,n,S);if(C.err)return C;var E=this.tryParseArgumentClose(o);if(E.err)return E;var _=G(o,this.clonePosition());return s==="select"?{val:{type:oe.select,value:r,options:Nh(C.val),location:_},err:null}:{val:{type:oe.plural,value:r,options:Nh(C.val),offset:T,pluralType:s==="plural"?"cardinal":"ordinal",location:_},err:null}}default:return this.error(V.INVALID_ARGUMENT_TYPE,G(l,a))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(V.EXPECT_ARGUMENT_CLOSING_BRACE,G(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(V.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,G(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=JT(t)}catch{return this.error(V.INVALID_NUMBER_SKELETON,n)}return{val:{type:Nr.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?r_(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,o){for(var i,l=!1,s=[],a=new Set,u=o.value,c=o.location;;){if(u.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(V.EXPECT_PLURAL_ARGUMENT_SELECTOR,V.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=G(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}else break}if(a.has(u))return this.error(n==="select"?V.DUPLICATE_SELECT_ARGUMENT_SELECTOR:V.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(l=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?V.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:V.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,G(this.clonePosition(),this.clonePosition()));var E=this.parseMessage(t+1,n,r);if(E.err)return E;var b=this.tryParseArgumentClose(h);if(b.err)return b;s.push([u,{value:E.val,location:G(h,this.clonePosition())}]),a.add(u),this.bumpSpace(),i=this.parseIdentifierIfPossible(),u=i.value,c=i.location}return s.length===0?this.error(n==="select"?V.EXPECT_SELECT_ARGUMENT_SELECTOR:V.EXPECT_PLURAL_ARGUMENT_SELECTOR,G(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!l?this.error(V.MISSING_OTHER_CLAUSE,G(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,l=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,l=l*10+(s-48),this.bump();else break}var a=G(o,this.clonePosition());return i?(l*=r,m_(l)?{val:l,err:null}:this.error(n,a)):this.error(t,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=b0(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ph(this.message,t,this.offset())){for(var n=0;n=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&S0(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function Mu(e){return e>=97&&e<=122||e>=65&&e<=90}function E_(e){return Mu(e)||e===47}function b_(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function S0(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function w_(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Au(e){e.forEach(function(t){if(delete t.location,h0(t)||p0(t))for(var n in t.options)delete t.options[n].location,Au(t.options[n].value);else c0(t)&&g0(t.style)||(f0(t)||d0(t))&&Ru(t.style)?delete t.style.location:m0(t)&&Au(t.children)})}function S_(e,t){t===void 0&&(t={}),t=j({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new x_(e,t).parse();if(n.err){var r=SyntaxError(V[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Au(n.val),n.val}function _t(e,t){var n=t&&t.cache?t.cache:k_,r=t&&t.serializer?t.serializer:N_,o=t&&t.strategy?t.strategy:T_;return o(e,{cache:n,serializer:r})}function C_(e){return e==null||typeof e=="number"||typeof e=="boolean"}function C0(e,t,n,r){var o=C_(r)?r:n(r),i=t.get(o);return typeof i>"u"&&(i=e.call(this,r),t.set(o,i)),i}function T0(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,r),t.set(o,i)),i}function nf(e,t,n,r,o){return n.bind(t,e,r,o)}function T_(e,t){var n=e.length===1?C0:T0;return nf(e,this,n,t.cache.create(),t.serializer)}function __(e,t){return nf(e,this,T0,t.cache.create(),t.serializer)}function P_(e,t){return nf(e,this,C0,t.cache.create(),t.serializer)}var N_=function(){return JSON.stringify(arguments)};function rf(){this.cache=Object.create(null)}rf.prototype.get=function(e){return this.cache[e]};rf.prototype.set=function(e,t){this.cache[e]=t};var k_={create:function(){return new rf}},Pt={variadic:__,monadic:P_},$t;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})($t||($t={}));var En=function(e){wt(t,e);function t(n,r,o){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Rh=function(e){wt(t,e);function t(n,r,o,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),$t.INVALID_VALUE,i)||this}return t}(En),R_=function(e){wt(t,e);function t(n,r,o){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),$t.INVALID_VALUE,o)||this}return t}(En),L_=function(e){wt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),$t.MISSING_VALUE,r)||this}return t}(En),Fe;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Fe||(Fe={}));function $_(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Fe.literal||n.type!==Fe.literal?t.push(n):r.value+=n.value,t},[])}function _0(e){return typeof e=="function"}function Ii(e,t,n,r,o,i,l){if(e.length===1&&Sh(e[0]))return[{type:Fe.literal,value:e[0].value}];for(var s=[],a=0,u=e;a"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=S_,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Hn;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Hn||(Hn={}));var Ho=function(e){wt(t,e);function t(n,r,o){var i=this,l=o?o instanceof Error?o:new Error(String(o)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,` +`,$t.MISSING_INTL_API,l);var S=n.getPluralRules(t,{type:c.pluralType}).select(d-(c.offset||0));x=c.options[S]||c.options.other}if(!x)throw new Rh(c.value,d,Object.keys(c.options),l);s.push.apply(s,Ii(x.value,t,n,r,o,d-(c.offset||0)));continue}}return $_(s)}function I_(e,t){return t?j(j(j({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=j(j({},e[r]),t[r]||{}),n},{})):e}function M_(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=I_(e[r],t[r]),n},j({},e)):e}function sa(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function A_(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:_t(function(){for(var t,n=[],r=0;r"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=S_,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Hn;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Hn||(Hn={}));var Ho=function(e){wt(t,e);function t(n,r,o){var i=this,l=o?o instanceof Error?o:new Error(String(o)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,` `).concat(l?` `.concat(l.message,` -`).concat(l.stack):""))||this,i.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t}(Error),O_=function(e){wt(t,e);function t(n,r){return e.call(this,Hn.UNSUPPORTED_FORMATTER,n,r)||this}return t}(Ho),F_=function(e){wt(t,e);function t(n,r){return e.call(this,Hn.INVALID_CONFIG,n,r)||this}return t}(Ho),Rh=function(e){wt(t,e);function t(n,r){return e.call(this,Hn.MISSING_DATA,n,r)||this}return t}(Ho),ht=function(e){wt(t,e);function t(n,r,o){var i=e.call(this,Hn.FORMAT_ERROR,"".concat(n,` +`).concat(l.stack):""))||this,i.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t}(Error),O_=function(e){wt(t,e);function t(n,r){return e.call(this,Hn.UNSUPPORTED_FORMATTER,n,r)||this}return t}(Ho),F_=function(e){wt(t,e);function t(n,r){return e.call(this,Hn.INVALID_CONFIG,n,r)||this}return t}(Ho),Lh=function(e){wt(t,e);function t(n,r){return e.call(this,Hn.MISSING_DATA,n,r)||this}return t}(Ho),ht=function(e){wt(t,e);function t(n,r,o){var i=e.call(this,Hn.FORMAT_ERROR,"".concat(n,` Locale: `).concat(r,` `),o)||this;return i.locale=r,i}return t}(Ho),aa=function(e){wt(t,e);function t(n,r,o,i){var l=e.call(this,"".concat(n,` MessageID: `).concat(o==null?void 0:o.id,` Default Message: `).concat(o==null?void 0:o.defaultMessage,` Description: `).concat(o==null?void 0:o.description,` -`),r,i)||this;return l.descriptor=o,l.locale=r,l}return t}(ht),D_=function(e){wt(t,e);function t(n,r){var o=e.call(this,Hn.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(i){var l;return(l=i.value)!==null&&l!==void 0?l:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=n,o}return t}(Ho);function Gn(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,o){return o in e?r[o]=e[o]:o in n&&(r[o]=n[o]),r},{})}var j_=function(e){},B_=function(e){},_0={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:j_,onWarn:B_};function H_(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function wn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function K_(e){e===void 0&&(e=H_());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,o=_t(function(){for(var s,a=[],u=0;u needs to exist in the component ancestry.")}var fP=j(j({},_0),{textComponent:p.Fragment});function dP(e){return function(t){return e(p.Children.toArray(t))}}var sf=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=p.createContext(null)):p.createContext(null);sf.Consumer;var hP=sf.Provider,pP=hP,mP=sf;function cs(){var e=p.useContext(mP);return cP(e),e}var Fu;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Fu||(Fu={}));var Du;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Du||(Du={}));function R0(e){var t=function(n){var r=cs(),o=n.value,i=n.children,l=Zl(n,["value","children"]),s=typeof o=="string"?new Date(o||0):o,a=e==="formatDate"?r.formatDateToParts(s,l):r.formatTimeToParts(s,l);return i(a)};return t.displayName=Du[e],t}function Ko(e){var t=function(n){var r=cs(),o=n.value,i=n.children,l=Zl(n,["value","children"]),s=r[e](o,l);if(typeof i=="function")return i(s);var a=r.textComponent||p.Fragment;return p.createElement(a,null,s)};return t.displayName=Fu[e],t}function L0(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=T0(r)?dP(r):r,t},{})}var Mh=function(e,t,n,r){for(var o=[],i=4;i{var r;const n=(r=t.match(/\.\/locales\/(.+)\.json$/))==null?void 0:r[1];return n?{...e,[n]:Ah[t]}:e},{});function fs(){const[e,t]=LC(),n=e.get("q"),r=e.get("matcher"),o=e.get("year")||"",i=p.useCallback(u=>{e.set("q",u),t(e)},[e,t]),l=p.useCallback(u=>{e.set("matcher",u),e.delete("year"),t(e)},[e,t]),s=p.useCallback(u=>{e.set("year",u),t(e)},[e,t]);return p.useMemo(()=>({currentQuery:n,currentMatcher:r,currentYear:o,handleQueryChange:i,handleMatcherChange:l,handleYearChange:s}),[n,r,o,i,l,s])}const $0=[{label:"Country",key:"country",year:!1,placeholder:"Department of Medical Genetics, Hotel Dieu de France, Beirut, Lebanon"},{label:"ROR",key:"ror",year:!1,placeholder:"Paris Dauphine University France"},{label:"RNSR",key:"rnsr",year:!0,placeholder:"IPAG Institut de Planétologie et d'Astrophysique de Grenoble"},{label:"grid.ac",key:"grid",year:!1,placeholder:"Paris Dauphine University France"}],Oh=e=>$0.find(t=>t.key==e),xP=Array.from({length:(2011-2023)/-1+1},(e,t)=>2023+t*-1);function EP(){var a,u;const{currentQuery:e,currentMatcher:t,currentYear:n,handleQueryChange:r,handleMatcherChange:o,handleYearChange:i}=fs(),l=((a=Oh(t))==null?void 0:a.year)||!1,s=((u=Oh(t))==null?void 0:u.placeholder)||"Paris Dauphine University France";return g.jsx(xe,{className:"input",children:g.jsxs(ky,{gutters:!0,className:"fr-pb-4w fr-pt-4w fr-mb-2w",children:[g.jsx(Js,{xs:"12",sm:"8",lg:"8",children:g.jsx(Ly,{isLarge:!0,buttonLabel:"Match",defaultValue:e,placeholder:s,onSearch:c=>r(c.toLowerCase())},e)}),g.jsx(Js,{xs:"12",sm:"2",lg:"2",children:g.jsxs("select",{className:"fr-select",defaultValue:t||"DEFAULT",onChange:c=>o(c.target.value),children:[g.jsx("option",{value:"DEFAULT",disabled:!0,children:"Select a matcher"},"DEFAULT"),$0.map(c=>g.jsx("option",{value:c.key,children:c.label},c.key))]},t)}),g.jsx(Js,{xs:"12",sm:"2",lg:"2",children:g.jsxs("select",{className:"fr-select",defaultValue:n||"DEFAULT",disabled:!l,onChange:c=>i(c.target.value),children:[g.jsx("option",{value:"DEFAULT",disabled:!0,children:"Select a year"},"DEFAULT"),xP.map(c=>g.jsx("option",{value:c,children:c},c))]},n)})]})})}function ua({error:e}){return g.jsx(xe,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100px"},children:g.jsx(My,{type:"error",closeMode:"disallow",children:e})})}function bP(e,t){return t==="ror"?`https://ror.org/${e}`:t==="rnsr"?`https://appliweb.dgri.education.fr/rnsr/PresenteStruct.jsp?numNatStruct=${e}&PUBLIC=OK`:t==="paysage"?`https://paysage.staging.dataesr.ovh/structures/${e}`:null}function wP(e,t){let n=t;return e.forEach(r=>n=n.replace(r,`${r}`)),n=n.replace(/'/g,"''"),n}function SP({resultHighlights:e,setTitle:t}){const{currentQuery:n}=fs(),r=i=>t(new of(i).format({b:l=>g.jsx("strong",{children:l},JSON.stringify(l))})),o=()=>t(n);return g.jsx(xe,{fluid:!0,className:"fr-mt-2w",children:Object.entries(e.criterion).map(([i,l],s)=>g.jsxs(Vc,{children:[g.jsx(Ze,{size:"sm",color:"success",children:i}),l.map((a,u)=>g.jsx(Ze,{size:"sm",onMouseEnter:()=>r(wP(a,n)),onMouseLeave:()=>o(),children:a==null?void 0:a.join(" ")},u))]},s))})}function CP({resultData:e,resultId:t,setTitle:n}){var f,d,h,E;const{currentMatcher:r}=fs(),{results:o,enriched_results:i,highlights:l}=e,s=o.findIndex(b=>b===t),a=i[s],u=l==null?void 0:l[t],c=bP(t,r);return g.jsxs(xe,{className:"card fr-mt-2w",children:[g.jsx(ky,{children:g.jsxs(Vc,{className:"fr-mt-2w",children:[c?g.jsx(Ze,{as:"a",href:c,target:"_blank",color:"yellow-moutarde",children:`${r} : ${t}`}):g.jsx(Ze,{color:"yellow-moutarde",children:`${r} : ${t}`}),((f=a==null?void 0:a.acronym)==null?void 0:f.length)&&g.jsx(Ze,{color:"green-archipel",children:a.acronym[0]}),((d=a==null?void 0:a.name)==null?void 0:d.length)&&g.jsx(Ze,{color:"blue-ecume",children:a.name[0]}),((h=a==null?void 0:a.city)==null?void 0:h.length)&&g.jsx(Ze,{icon:"building-line",color:"purple-glycine",children:a.city[0]}),((E=a==null?void 0:a.country)==null?void 0:E.length)&&g.jsx(Ze,{icon:"earth-line",color:"pink-macaron",children:a.country[0]})]})}),g.jsx(SP,{resultHighlights:u,setTitle:n})]})}function TP(){return g.jsx(xe,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100px"},children:g.jsx(Gc,{})})}function Fh({resultsDebug:e}){const t=cs();if(!e)return null;const n=r=>{var o;return((o=e.criterion)==null?void 0:o[r])??0};return g.jsx(pE,{className:"fr-container fr-mt-3w",title:t.formatMessage({id:"debug.accordion.title"}),children:e.strategies.map((r,o)=>g.jsxs(xe,{className:"debug-item",children:[g.jsx(Ze,{size:"sm",className:"fr-mb-3w",color:r.possibilities?"success":"error",children:`Matching ${r.equivalent_strategies.length} strategies : ${t.formatMessage({id:"possibility.count"},{count:r.possibilities})}`}),r.equivalent_strategies.map(i=>g.jsx(xe,{fluid:!0,children:g.jsxs(Vc,{className:"fr-mb-2w",children:[i.criteria.map(l=>{const s=n(l);return g.jsx(Ze,{size:"sm",color:s?"yellow-moutarde":null,children:`${l}: ${t.formatMessage({id:"match.count"},{count:s})}`})}),i.matches>0&&g.jsx(Ze,{size:"sm",color:"success",children:t.formatMessage({id:"match.count"},{count:i.matches})})]})}))]},o))})}function Dh({info:e}){return g.jsx(xe,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100px"},children:g.jsx(My,{type:"info",closeMode:"disallow",children:e})})}const{VITE_API_URL:_P,VITE_ELASTIC_URL:AP}={VITE_MINISTER_NAME:"Ministère|de l'enseignement|supérieur|et de la recherche",VITE_APP_NAME:"AFFILIATION MATCHER",VITE_HEADER_TAG:"",VITE_API_URL:"",VITE_VERSION:"1.0.0",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},PP=`${_P}/match`,NP=async(e,t,n)=>{const r={type:t,query:e,verbose:!0};n&&(r.year=n);const o=await fetch(PP,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!o.ok)throw new Error(`API error: ${o.status}`);return await o.json()};function kP(e,t,n){const{data:r,error:o,isFetching:i}=wT({queryKey:["match",e,t,n],queryFn:()=>NP(e,t,n),enabled:!!(e&&t),staleTime:3e5});return p.useMemo(()=>({data:r,isFetching:i,error:o}),[r,i,o])}function RP(){const e=cs(),{currentQuery:t,currentMatcher:n,currentYear:r}=fs(),{data:o,isFetching:i,error:l}=kP(t,n,r),[s,a]=p.useState(t);if(p.useEffect(()=>a(t),[t]),t===null&&n===null)return null;if(t==="")return g.jsx(Dh,{info:e.formatMessage({id:"info.missing.query"})});if(!n)return g.jsx(Dh,{info:e.formatMessage({id:"info.missing.matcher"})});if(i)return g.jsx(TP,{});if(l)return g.jsx(ua,{error:l==null?void 0:l.message});if(!o)return g.jsx(ua,{error:"No data"});if(!(o!=null&&o.results))return g.jsx(ua,{error:o==null?void 0:o.Error});const u=o,c=u.results;return c.length?g.jsxs(xe,{fluid:!0,children:[g.jsx(xe,{className:"sticky card",children:g.jsx(ra,{size:"lead",children:s})}),g.jsx(xe,{className:"fr-mt-3w",children:g.jsx(ra,{size:"md",children:e.formatMessage({id:"match.count"},{count:c.length})})}),g.jsx(xe,{fluid:!0,className:"fr-mt-3w",children:c.map((f,d)=>g.jsx(CP,{resultData:u,resultId:f,setTitle:a},d))}),g.jsx(Fh,{resultsDebug:u==null?void 0:u.debug})]}):g.jsxs(xe,{fluid:!0,children:[g.jsx(xe,{className:"sticky card",children:g.jsx(ra,{size:"lead",children:s})}),g.jsx(xe,{className:"fr-mt-3w",children:g.jsx(Ze,{color:"error",children:`${n} : ${e.formatMessage({id:"match.count"},{count:0})}`})}),g.jsx(Fh,{resultsDebug:u==null?void 0:u.debug})]})}function LP(){return g.jsxs(xe,{fluid:!0,children:[g.jsx(EP,{}),g.jsx(RP,{})]})}function $P(){const e=gP({locale:"en",messages:yP.en});return g.jsx(pP,{value:e,children:g.jsx(LP,{})})}function IP(){return g.jsx(_C,{children:g.jsx(bu,{element:g.jsx(jT,{}),children:g.jsx(bu,{path:"/",element:g.jsx($P,{})})})})}const MP=new GC;ca.createRoot(document.getElementById("root")).render(g.jsx(q.StrictMode,{children:g.jsx(uS,{children:g.jsx(RC,{children:g.jsxs(aT,{client:MP,children:[g.jsx(ST,{}),g.jsx(IP,{})]})})})})); +For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function uP(e,t){var n=K_(t),r=j(j({},P0),e),o=r.locale,i=r.defaultLocale,l=r.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&l?l(new Lh('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&l&&l(new Lh('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(l&&l(new F_('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),aP(r),j(j({},r),{formatters:n,formatNumber:iP.bind(null,r,n.getNumberFormat),formatNumberToParts:lP.bind(null,r,n.getNumberFormat),formatRelativeTime:rP.bind(null,r,n.getRelativeTimeFormat),formatDate:U_.bind(null,r,n.getDateTimeFormat),formatDateToParts:G_.bind(null,r,n.getDateTimeFormat),formatTime:z_.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:V_.bind(null,r,n.getDateTimeFormat),formatTimeToParts:W_.bind(null,r,n.getDateTimeFormat),formatPlural:eP.bind(null,r,n.getPluralRules),formatMessage:Ou.bind(null,r,n),$t:Ou.bind(null,r,n),formatList:Z_.bind(null,r,n.getListFormat),formatListToParts:k0.bind(null,r,n.getListFormat),formatDisplayName:q_.bind(null,r,n.getDisplayNames)})}function cP(e){u0(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}var fP=j(j({},P0),{textComponent:p.Fragment});function dP(e){return function(t){return e(p.Children.toArray(t))}}var sf=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=p.createContext(null)):p.createContext(null);sf.Consumer;var hP=sf.Provider,pP=hP,mP=sf;function cs(){var e=p.useContext(mP);return cP(e),e}var Fu;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Fu||(Fu={}));var Du;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Du||(Du={}));function L0(e){var t=function(n){var r=cs(),o=n.value,i=n.children,l=Zl(n,["value","children"]),s=typeof o=="string"?new Date(o||0):o,a=e==="formatDate"?r.formatDateToParts(s,l):r.formatTimeToParts(s,l);return i(a)};return t.displayName=Du[e],t}function Ko(e){var t=function(n){var r=cs(),o=n.value,i=n.children,l=Zl(n,["value","children"]),s=r[e](o,l);if(typeof i=="function")return i(s);var a=r.textComponent||p.Fragment;return p.createElement(a,null,s)};return t.displayName=Fu[e],t}function $0(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=_0(r)?dP(r):r,t},{})}var Ah=function(e,t,n,r){for(var o=[],i=4;i{var r;const n=(r=t.match(/\.\/locales\/(.+)\.json$/))==null?void 0:r[1];return n?{...e,[n]:Oh[t]}:e},{});function fs(){const[e,t]=$C(),n=e.get("q"),r=e.get("matcher"),o=e.get("year")||"",i=p.useCallback(u=>{e.set("q",u),t(e)},[e,t]),l=p.useCallback(u=>{e.set("matcher",u),e.delete("year"),t(e)},[e,t]),s=p.useCallback(u=>{e.set("year",u),t(e)},[e,t]);return p.useMemo(()=>({currentQuery:n,currentMatcher:r,currentYear:o,handleQueryChange:i,handleMatcherChange:l,handleYearChange:s}),[n,r,o,i,l,s])}const I0=[{label:"Country",key:"country",year:!1,placeholder:"Department of Medical Genetics, Hotel Dieu de France, Beirut, Lebanon"},{label:"ROR",key:"ror",year:!1,placeholder:"Paris Dauphine University France"},{label:"RNSR",key:"rnsr",year:!0,placeholder:"IPAG Institut de Planétologie et d'Astrophysique de Grenoble"},{label:"grid.ac",key:"grid",year:!1,placeholder:"Paris Dauphine University France"},{label:"Paysage",key:"paysage",year:!0,placeholder:"UTC Université de Technologie de Compiègne"}],Fh=e=>I0.find(t=>t.key==e),xP=Array.from({length:(2011-2023)/-1+1},(e,t)=>2023+t*-1);function EP(){var a,u;const{currentQuery:e,currentMatcher:t,currentYear:n,handleQueryChange:r,handleMatcherChange:o,handleYearChange:i}=fs(),l=((a=Fh(t))==null?void 0:a.year)||!1,s=((u=Fh(t))==null?void 0:u.placeholder)||"Paris Dauphine University France";return g.jsx(xe,{className:"input",children:g.jsxs(Ry,{gutters:!0,className:"fr-pb-4w fr-pt-4w fr-mb-2w",children:[g.jsx(Js,{xs:"12",sm:"8",lg:"8",children:g.jsx($y,{isLarge:!0,buttonLabel:"Match",defaultValue:e,placeholder:s,onSearch:c=>r(c.toLowerCase())},e)}),g.jsx(Js,{xs:"12",sm:"2",lg:"2",children:g.jsxs("select",{className:"fr-select",defaultValue:t||"DEFAULT",onChange:c=>o(c.target.value),children:[g.jsx("option",{value:"DEFAULT",disabled:!0,children:"Select a matcher"},"DEFAULT"),I0.map(c=>g.jsx("option",{value:c.key,children:c.label},c.key))]},t)}),g.jsx(Js,{xs:"12",sm:"2",lg:"2",children:g.jsxs("select",{className:"fr-select",defaultValue:n||"DEFAULT",disabled:!l,onChange:c=>i(c.target.value),children:[g.jsx("option",{value:"DEFAULT",disabled:!0,children:"Select a year"},"DEFAULT"),xP.map(c=>g.jsx("option",{value:c,children:c},c))]},n)})]})})}function ua({error:e}){return g.jsx(xe,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100px"},children:g.jsx(Ay,{type:"error",closeMode:"disallow",children:e})})}function bP(e,t){return t==="ror"?`https://ror.org/${e}`:t==="rnsr"?`https://appliweb.dgri.education.fr/rnsr/PresenteStruct.jsp?numNatStruct=${e}&PUBLIC=OK`:t==="paysage"?`https://paysage.staging.dataesr.ovh/structures/${e}`:null}function wP(e,t){let n=t;return e.forEach(r=>n=n.replace(r,`${r}`)),n=n.replace(/'/g,"''"),n}function SP({resultHighlights:e,setTitle:t}){const{currentQuery:n}=fs(),r=i=>t(new of(i).format({b:l=>g.jsx("strong",{children:l},JSON.stringify(l))})),o=()=>t(n);return g.jsx(xe,{fluid:!0,className:"fr-mt-2w",children:Object.entries(e.criterion).map(([i,l],s)=>g.jsxs(Vc,{children:[g.jsx(Ze,{size:"sm",color:"success",children:i}),l.map((a,u)=>g.jsx(Ze,{size:"sm",onMouseEnter:()=>r(wP(a,n)),onMouseLeave:()=>o(),children:a==null?void 0:a.join(" ")},u))]},s))})}function CP({resultData:e,resultId:t,setTitle:n}){var f,d,h,E;const{currentMatcher:r}=fs(),{results:o,enriched_results:i,highlights:l}=e,s=o.findIndex(b=>b===t),a=i[s],u=l==null?void 0:l[t],c=bP(t,r);return g.jsxs(xe,{className:"card fr-mt-2w",children:[g.jsx(Ry,{children:g.jsxs(Vc,{className:"fr-mt-2w",children:[c?g.jsx(Ze,{as:"a",href:c,target:"_blank",color:"yellow-moutarde",children:`${r} : ${t}`}):g.jsx(Ze,{color:"yellow-moutarde",children:`${r} : ${t}`}),((f=a==null?void 0:a.acronym)==null?void 0:f.length)&&g.jsx(Ze,{color:"green-archipel",children:a.acronym[0]}),((d=a==null?void 0:a.name)==null?void 0:d.length)&&g.jsx(Ze,{color:"blue-ecume",children:a.name[0]}),((h=a==null?void 0:a.city)==null?void 0:h.length)&&g.jsx(Ze,{icon:"building-line",color:"purple-glycine",children:a.city[0]}),((E=a==null?void 0:a.country)==null?void 0:E.length)&&g.jsx(Ze,{icon:"earth-line",color:"pink-macaron",children:a.country[0]})]})}),g.jsx(SP,{resultHighlights:u,setTitle:n})]})}function TP(){return g.jsx(xe,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100px"},children:g.jsx(Gc,{})})}function Dh({resultsDebug:e}){const t=cs();if(!e)return null;const n=r=>{var o;return((o=e.criterion)==null?void 0:o[r])??0};return g.jsx(mE,{className:"fr-container fr-mt-3w",title:t.formatMessage({id:"debug.accordion.title"}),children:e.strategies.map((r,o)=>g.jsxs(xe,{className:"debug-item",children:[g.jsx(Ze,{size:"sm",className:"fr-mb-3w",color:r.possibilities?"success":"error",children:`Matching ${r.equivalent_strategies.length} strategies : ${t.formatMessage({id:"possibility.count"},{count:r.possibilities})}`}),r.equivalent_strategies.map(i=>g.jsx(xe,{fluid:!0,children:g.jsxs(Vc,{className:"fr-mb-2w",children:[i.criteria.map(l=>{const s=n(l);return g.jsx(Ze,{size:"sm",color:s?"yellow-moutarde":null,children:`${l}: ${t.formatMessage({id:"match.count"},{count:s})}`})}),i.matches>0&&g.jsx(Ze,{size:"sm",color:"success",children:t.formatMessage({id:"match.count"},{count:i.matches})})]})}))]},o))})}function jh({info:e}){return g.jsx(xe,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100px"},children:g.jsx(Ay,{type:"info",closeMode:"disallow",children:e})})}const{VITE_API_URL:_P,VITE_ELASTIC_URL:AP}={VITE_MINISTER_NAME:"Ministère|de l'enseignement|supérieur|et de la recherche",VITE_APP_NAME:"AFFILIATION MATCHER",VITE_HEADER_TAG:"",VITE_API_URL:"",VITE_VERSION:"1.0.0",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},PP=`${_P}/match`,NP=async(e,t,n)=>{const r={type:t,query:e,verbose:!0};n&&(r.year=n);const o=await fetch(PP,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!o.ok)throw new Error(`API error: ${o.status}`);return await o.json()};function kP(e,t,n){const{data:r,error:o,isFetching:i}=ST({queryKey:["match",e,t,n],queryFn:()=>NP(e,t,n),enabled:!!(e&&t),staleTime:3e5});return p.useMemo(()=>({data:r,isFetching:i,error:o}),[r,i,o])}function RP(){const e=cs(),{currentQuery:t,currentMatcher:n,currentYear:r}=fs(),{data:o,isFetching:i,error:l}=kP(t,n,r),[s,a]=p.useState(t);if(p.useEffect(()=>a(t),[t]),console.log("data",o),t===null&&n===null)return null;if(!t)return g.jsx(jh,{info:e.formatMessage({id:"info.missing.query"})});if(!n)return g.jsx(jh,{info:e.formatMessage({id:"info.missing.matcher"})});if(i)return g.jsx(TP,{});if(l)return g.jsx(ua,{error:l==null?void 0:l.message});if(!o)return g.jsx(ua,{error:"No data"});if(!(o!=null&&o.results))return g.jsx(ua,{error:o==null?void 0:o.Error});const u=o,c=u.results;return c.length?g.jsxs(xe,{fluid:!0,children:[g.jsx(xe,{className:"sticky card",children:g.jsx(ra,{size:"lead",children:s})}),g.jsx(xe,{className:"fr-mt-3w",children:g.jsx(ra,{size:"md",children:e.formatMessage({id:"match.count"},{count:c.length})})}),g.jsx(xe,{fluid:!0,className:"fr-mt-3w",children:c.map((f,d)=>g.jsx(CP,{resultData:u,resultId:f,setTitle:a},d))}),g.jsx(Dh,{resultsDebug:u==null?void 0:u.debug})]}):g.jsxs(xe,{fluid:!0,children:[g.jsx(xe,{className:"sticky card",children:g.jsx(ra,{size:"lead",children:s})}),g.jsx(xe,{className:"fr-mt-3w",children:g.jsx(Ze,{color:"error",children:`${n} : ${e.formatMessage({id:"match.count"},{count:0})}`})}),g.jsx(Dh,{resultsDebug:u==null?void 0:u.debug})]})}function LP(){return g.jsxs(xe,{fluid:!0,children:[g.jsx(EP,{}),g.jsx(RP,{})]})}function $P(){const e=gP({locale:"en",messages:yP.en});return g.jsx(pP,{value:e,children:g.jsx(LP,{})})}function IP(){return g.jsx(PC,{children:g.jsx(bu,{element:g.jsx(jT,{}),children:g.jsx(bu,{path:"/",element:g.jsx($P,{})})})})}const MP=new WC;ca.createRoot(document.getElementById("root")).render(g.jsx(q.StrictMode,{children:g.jsx(cS,{children:g.jsx(LC,{children:g.jsxs(uT,{client:MP,children:[g.jsx(CT,{}),g.jsx(IP,{})]})})})})); From e70d579a6f73011e955458f1cb6a7d690958a786 Mon Sep 17 00:00:00 2001 From: victor barbier Date: Wed, 23 Oct 2024 17:07:40 +0200 Subject: [PATCH 6/6] feat: paysage optimizations --- notebooks/paysage_api_test.ipynb | 90 ++++++++++++++++-- project/client/dist/index.html | 2 +- .../{index-78f5f2fe.js => index-09aab7a4.js} | 48 +++++----- .../src/components/results/debug/index.tsx | 6 +- .../client/src/components/results/index.tsx | 95 ++++++++++++++++--- project/client/src/locales/en.json | 2 +- project/client/src/types/index.ts | 1 + project/server/main/load_paysage.py | 2 +- project/server/main/matcher.py | 69 ++++++++------ 9 files changed, 239 insertions(+), 76 deletions(-) rename project/client/dist/static/{index-78f5f2fe.js => index-09aab7a4.js} (68%) diff --git a/notebooks/paysage_api_test.ipynb b/notebooks/paysage_api_test.ipynb index 429e887..7a60833 100644 --- a/notebooks/paysage_api_test.ipynb +++ b/notebooks/paysage_api_test.ipynb @@ -2,25 +2,103 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": 30, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": 30, + "metadata": {}, + "output_type": "execute_result" + } + ], "source": [ + "import os\n", "import requests\n", - "import pandas as pd" + "\n", + "import pandas as pd\n", + "from dotenv import load_dotenv\n", + "\n", + "load_dotenv()" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [], + "source": [ + "url = \"https://paysage-api.staging.dataesr.ovh/relations?limit=10000&filters[relationTag]=structure-categorie&filters[relatedObjectId]=mCpLW\"\n", + "headers = {\"X-API-KEY\": os.getenv(\"PAYSAGE_API_KEY\")}\n", + "\n", + "response = requests.get(url, headers=headers)" ] }, { "cell_type": "code", - "execution_count": 21, + "execution_count": 9, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "'mCpLW'" + ] + }, + "execution_count": 9, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "response.json().get(\"data\")[0].get(\"relatedObjectId\")" + ] + }, + { + "cell_type": "code", + "execution_count": 45, "metadata": {}, "outputs": [], "source": [ - "url = \"https://paysage-api.staging.dataesr.ovh/relations?limit=10000&filters[relationTag]=structure-categorie&filters[relatedObjectId]=mCpLW&filters[relatedObjectId]=Eg7tX&filters[relatedObjectId]=93BR1&filters[relatedObjectId]=2ZdzP&filters[relatedObjectId]=MTFHZ&filters[relatedObjectId]=UfEnK&filters[relatedObjectId]=Sv5bb&filters[relatedObjectId]=mNJ1Z&filters[relatedObjectId]=WCat8&filters[relatedObjectId]=fQ6GL&filters[relatedObjectId]=WkSgR&filters[relatedObjectId]=YNqFb&filters[relatedObjectId]=iyn79&filters[relatedObjectId]=NsMkU\"\n", - "headers = {\"X-API-KEY\": \"xkeypsg-72b39GvylkDPoEe6AwUz\"}\n", + "id = \"m7K6T\"\n", + "url = f\"https://paysage-api.staging.dataesr.ovh/structures/{id}\"\n", + "url = f\"https://paysage-api.staging.dataesr.ovh/relations?limit=100&filters[relationTag]=structure-categorie&filters[resourceId]={id}\"\n", + "headers = {\"X-API-KEY\": os.getenv(\"PAYSAGE_API_KEY\")}\n", "\n", "response = requests.get(url, headers=headers)" ] + }, + { + "cell_type": "code", + "execution_count": 62, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "{'usualNameFr': 'Université',\n", + " 'priority': 1,\n", + " 'id': 'mCpLW',\n", + " 'displayName': 'Université',\n", + " 'collection': 'categories',\n", + " 'href': '/categories/mCpLW',\n", + " 'usualNameEn': None,\n", + " 'descriptionFr': None,\n", + " 'descriptionEn': None}" + ] + }, + "execution_count": 62, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "response.json().get(\"data\")[16].get(\"relatedObject\")" + ] } ], "metadata": { diff --git a/project/client/dist/index.html b/project/client/dist/index.html index 3ce0bb9..79a8906 100644 --- a/project/client/dist/index.html +++ b/project/client/dist/index.html @@ -6,7 +6,7 @@ Affiliation Matcher - + diff --git a/project/client/dist/static/index-78f5f2fe.js b/project/client/dist/static/index-09aab7a4.js similarity index 68% rename from project/client/dist/static/index-78f5f2fe.js rename to project/client/dist/static/index-09aab7a4.js index e396142..2ab31f1 100644 --- a/project/client/dist/static/index-78f5f2fe.js +++ b/project/client/dist/static/index-09aab7a4.js @@ -1,4 +1,4 @@ -function F0(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function ju(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bh={exports:{}},El={},Hh={exports:{}},z={};/** +function j0(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function ju(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bh={exports:{}},wl={},Hh={exports:{}},z={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ function F0(e,t){for(var n=0;n>>1,W=A[U];if(0>>1;Uo(St,M))Reo(K,St)?(A[U]=K,A[Re]=M,U=Re):(A[U]=St,A[Ue]=M,U=Ue);else if(Reo(K,M))A[U]=K,A[Re]=M,U=Re;else break e}}return B}function o(A,B){var M=A.sortIndex-B.sortIndex;return M!==0?M:A.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],c=1,f=null,d=3,h=!1,E=!1,b=!1,w=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(A){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=A)r(u),B.sortIndex=B.expirationTime,t(a,B);else break;B=n(u)}}function S(A){if(b=!1,x(A),!E)if(n(a)!==null)E=!0,J(T);else{var B=n(u);B!==null&&O(S,B.startTime-A)}}function T(A,B){E=!1,b&&(b=!1,y(v),v=-1),h=!0;var M=d;try{for(x(B),f=n(a);f!==null&&(!(f.expirationTime>B)||A&&!P());){var U=f.callback;if(typeof U=="function"){f.callback=null,d=f.priorityLevel;var W=U(f.expirationTime<=B);B=e.unstable_now(),typeof W=="function"?f.callback=W:f===n(a)&&r(a),x(B)}else r(a);f=n(a)}if(f!==null)var Xe=!0;else{var Ue=n(u);Ue!==null&&O(S,Ue.startTime-B),Xe=!1}return Xe}finally{f=null,d=M,h=!1}}var C=!1,_=null,v=-1,L=5,N=-1;function P(){return!(e.unstable_now()-NA||125U?(A.sortIndex=M,t(u,A),n(a)===null&&A===n(u)&&(b?(y(v),v=-1):b=!0,O(S,M-U))):(A.sortIndex=W,t(a,A),E||h||(E=!0,J(T))),A},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(A){var B=d;return function(){var M=d;d=B;try{return A.apply(this,arguments)}finally{d=M}}}})(Zh);Yh.exports=Zh;var l1=Yh.exports;/** + */(function(e){function t(A,B){var M=A.length;A.push(B);e:for(;0>>1,W=A[U];if(0>>1;Uo(St,M))Reo(K,St)?(A[U]=K,A[Re]=M,U=Re):(A[U]=St,A[Ue]=M,U=Ue);else if(Reo(K,M))A[U]=K,A[Re]=M,U=Re;else break e}}return B}function o(A,B){var M=A.sortIndex-B.sortIndex;return M!==0?M:A.id-B.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],u=[],c=1,d=null,f=3,h=!1,E=!1,b=!1,w=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(A){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=A)r(u),B.sortIndex=B.expirationTime,t(a,B);else break;B=n(u)}}function S(A){if(b=!1,x(A),!E)if(n(a)!==null)E=!0,J(T);else{var B=n(u);B!==null&&O(S,B.startTime-A)}}function T(A,B){E=!1,b&&(b=!1,y(v),v=-1),h=!0;var M=f;try{for(x(B),d=n(a);d!==null&&(!(d.expirationTime>B)||A&&!P());){var U=d.callback;if(typeof U=="function"){d.callback=null,f=d.priorityLevel;var W=U(d.expirationTime<=B);B=e.unstable_now(),typeof W=="function"?d.callback=W:d===n(a)&&r(a),x(B)}else r(a);d=n(a)}if(d!==null)var Xe=!0;else{var Ue=n(u);Ue!==null&&O(S,Ue.startTime-B),Xe=!1}return Xe}finally{d=null,f=M,h=!1}}var C=!1,_=null,v=-1,L=5,N=-1;function P(){return!(e.unstable_now()-NA||125U?(A.sortIndex=M,t(u,A),n(a)===null&&A===n(u)&&(b?(y(v),v=-1):b=!0,O(S,M-U))):(A.sortIndex=W,t(a,A),E||h||(E=!0,J(T))),A},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(A){var B=f;return function(){var M=f;f=B;try{return A.apply(this,arguments)}finally{f=M}}}})(Zh);Yh.exports=Zh;var a1=Yh.exports;/** * @license React * react-dom.production.min.js * @@ -30,18 +30,18 @@ function F0(e,t){for(var n=0;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fa=Object.prototype.hasOwnProperty,s1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,df={},hf={};function a1(e){return fa.call(hf,e)?!0:fa.call(df,e)?!1:s1.test(e)?hf[e]=!0:(df[e]=!0,!1)}function u1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function c1(e,t,n,r){if(t===null||typeof t>"u"||u1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ke(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ke[e]=new Ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ke[t]=new Ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ke[e]=new Ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ke[e]=new Ke(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ke[e]=new Ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ke[e]=new Ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ke[e]=new Ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ke[e]=new Ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ke[e]=new Ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var zu=/[\-:]([a-z])/g;function Vu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(zu,Vu);ke[t]=new Ke(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(zu,Vu);ke[t]=new Ke(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(zu,Vu);ke[t]=new Ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ke[e]=new Ke(e,1,!1,e.toLowerCase(),null,!1,!1)});ke.xlinkHref=new Ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ke[e]=new Ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function Gu(e,t,n,r){var o=ke.hasOwnProperty(t)?ke[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fa=Object.prototype.hasOwnProperty,u1=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,df={},hf={};function c1(e){return fa.call(hf,e)?!0:fa.call(df,e)?!1:u1.test(e)?hf[e]=!0:(df[e]=!0,!1)}function f1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function d1(e,t,n,r){if(t===null||typeof t>"u"||f1(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ke(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var ke={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ke[e]=new Ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ke[t]=new Ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ke[e]=new Ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ke[e]=new Ke(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ke[e]=new Ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ke[e]=new Ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ke[e]=new Ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ke[e]=new Ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ke[e]=new Ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var zu=/[\-:]([a-z])/g;function Vu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(zu,Vu);ke[t]=new Ke(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(zu,Vu);ke[t]=new Ke(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(zu,Vu);ke[t]=new Ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ke[e]=new Ke(e,1,!1,e.toLowerCase(),null,!1,!1)});ke.xlinkHref=new Ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ke[e]=new Ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function Gu(e,t,n,r){var o=ke.hasOwnProperty(t)?ke[t]:null;(o!==null?o.type!==0:r||!(2s||o[l]!==i[s]){var a=` -`+o[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{ms=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Gr(e):""}function f1(e){switch(e.tag){case 5:return Gr(e.type);case 16:return Gr("Lazy");case 13:return Gr("Suspense");case 19:return Gr("SuspenseList");case 0:case 2:case 15:return e=gs(e.type,!1),e;case 11:return e=gs(e.type.render,!1),e;case 1:return e=gs(e.type,!0),e;default:return""}}function ma(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case er:return"Fragment";case Jn:return"Portal";case da:return"Profiler";case Wu:return"StrictMode";case ha:return"Suspense";case pa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case np:return(e.displayName||"Context")+".Consumer";case tp:return(e._context.displayName||"Context")+".Provider";case Qu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qu:return t=e.displayName||null,t!==null?t:ma(e.type)||"Memo";case Xt:t=e._payload,e=e._init;try{return ma(e(t))}catch{}}return null}function d1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ma(t);case 8:return t===Wu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function hn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function op(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function h1(e){var t=op(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Wo(e){e._valueTracker||(e._valueTracker=h1(e))}function ip(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=op(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Mi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ga(e,t){var n=t.checked;return fe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function mf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=hn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function lp(e,t){t=t.checked,t!=null&&Gu(e,"checked",t,!1)}function va(e,t){lp(e,t);var n=hn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ya(e,t.type,n):t.hasOwnProperty("defaultValue")&&ya(e,t.type,hn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ya(e,t,n){(t!=="number"||Mi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wr=Array.isArray;function hr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Qo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function uo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Jr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},p1=["Webkit","ms","Moz","O"];Object.keys(Jr).forEach(function(e){p1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Jr[t]=Jr[e]})});function cp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Jr.hasOwnProperty(e)&&Jr[e]?(""+t).trim():t+"px"}function fp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=cp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var m1=fe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ba(e,t){if(t){if(m1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error($(61))}if(t.style!=null&&typeof t.style!="object")throw Error($(62))}}function wa(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Sa=null;function Xu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ca=null,pr=null,mr=null;function xf(e){if(e=Ao(e)){if(typeof Ca!="function")throw Error($(280));var t=e.stateNode;t&&(t=Tl(t),Ca(e.stateNode,e.type,t))}}function dp(e){pr?mr?mr.push(e):mr=[e]:pr=e}function hp(){if(pr){var e=pr,t=mr;if(mr=pr=null,xf(e),t)for(e=0;e>>=0,e===0?32:31-(_1(e)/P1|0)|0}var qo=64,Xo=4194304;function Qr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Di(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=Qr(s):(i&=l,i!==0&&(r=Qr(i)))}else l=n&~o,l!==0?r=Qr(l):i!==0&&(r=Qr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Io(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xt(t),e[t]=n}function L1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=to),Nf=String.fromCharCode(32),kf=!1;function Ip(e,t){switch(e){case"keyup":return ix.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tr=!1;function sx(e,t){switch(e){case"compositionend":return Mp(t);case"keypress":return t.which!==32?null:(kf=!0,Nf);case"textInput":return e=t.data,e===Nf&&kf?null:e;default:return null}}function ax(e,t){if(tr)return e==="compositionend"||!oc&&Ip(e,t)?(e=Lp(),bi=tc=tn=null,tr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=If(n)}}function Dp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jp(){for(var e=window,t=Mi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mi(e.document)}return t}function ic(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function vx(e){var t=jp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Dp(n.ownerDocument.documentElement,n)){if(r!==null&&ic(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Mf(n,i);var l=Mf(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,nr=null,Ra=null,ro=null,La=!1;function Af(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;La||nr==null||nr!==Mi(r)||(r=nr,"selectionStart"in r&&ic(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ro&&go(ro,r)||(ro=r,r=Hi(Ra,"onSelect"),0ir||(e.current=Fa[ir],Fa[ir]=null,ir--)}function ne(e,t){ir++,Fa[ir]=e.current,e.current=t}var pn={},Ae=yn(pn),We=yn(!1),Mn=pn;function br(e,t){var n=e.type.contextTypes;if(!n)return pn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Qe(e){return e=e.childContextTypes,e!=null}function Ui(){ie(We),ie(Ae)}function Kf(e,t,n){if(Ae.current!==pn)throw Error($(168));ne(Ae,t),ne(We,n)}function Qp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error($(108,d1(e)||"Unknown",o));return fe({},n,r)}function zi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pn,Mn=Ae.current,ne(Ae,e),ne(We,We.current),!0}function Uf(e,t,n){var r=e.stateNode;if(!r)throw Error($(169));n?(e=Qp(e,t,Mn),r.__reactInternalMemoizedMergedChildContext=e,ie(We),ie(Ae),ne(Ae,e)):ie(We),ne(We,n)}var Ot=null,_l=!1,Rs=!1;function qp(e){Ot===null?Ot=[e]:Ot.push(e)}function kx(e){_l=!0,qp(e)}function xn(){if(!Rs&&Ot!==null){Rs=!0;var e=0,t=Y;try{var n=Ot;for(Y=1;e>=l,o-=l,Ft=1<<32-xt(t)+o|n<v?(L=_,_=null):L=_.sibling;var N=d(y,_,x[v],S);if(N===null){_===null&&(_=L);break}e&&_&&N.alternate===null&&t(y,_),m=i(N,m,v),C===null?T=N:C.sibling=N,C=N,_=L}if(v===x.length)return n(y,_),le&&Sn(y,v),T;if(_===null){for(;vv?(L=_,_=null):L=_.sibling;var P=d(y,_,N.value,S);if(P===null){_===null&&(_=L);break}e&&_&&P.alternate===null&&t(y,_),m=i(P,m,v),C===null?T=P:C.sibling=P,C=P,_=L}if(N.done)return n(y,_),le&&Sn(y,v),T;if(_===null){for(;!N.done;v++,N=x.next())N=f(y,N.value,S),N!==null&&(m=i(N,m,v),C===null?T=N:C.sibling=N,C=N);return le&&Sn(y,v),T}for(_=r(y,_);!N.done;v++,N=x.next())N=h(_,y,v,N.value,S),N!==null&&(e&&N.alternate!==null&&_.delete(N.key===null?v:N.key),m=i(N,m,v),C===null?T=N:C.sibling=N,C=N);return e&&_.forEach(function(D){return t(y,D)}),le&&Sn(y,v),T}function w(y,m,x,S){if(typeof x=="object"&&x!==null&&x.type===er&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Go:e:{for(var T=x.key,C=m;C!==null;){if(C.key===T){if(T=x.type,T===er){if(C.tag===7){n(y,C.sibling),m=o(C,x.props.children),m.return=y,y=m;break e}}else if(C.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Xt&&Xf(T)===C.type){n(y,C.sibling),m=o(C,x.props),m.ref=jr(y,C,x),m.return=y,y=m;break e}n(y,C);break}else t(y,C);C=C.sibling}x.type===er?(m=$n(x.props.children,y.mode,S,x.key),m.return=y,y=m):(S=ki(x.type,x.key,x.props,null,y.mode,S),S.ref=jr(y,m,x),S.return=y,y=S)}return l(y);case Jn:e:{for(C=x.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(y,m.sibling),m=o(m,x.children||[]),m.return=y,y=m;break e}else{n(y,m);break}else t(y,m);m=m.sibling}m=Ds(x,y.mode,S),m.return=y,y=m}return l(y);case Xt:return C=x._init,w(y,m,C(x._payload),S)}if(Wr(x))return E(y,m,x,S);if(Mr(x))return b(y,m,x,S);ri(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(n(y,m.sibling),m=o(m,x),m.return=y,y=m):(n(y,m),m=Fs(x,y.mode,S),m.return=y,y=m),l(y)):n(y,m)}return w}var Sr=rm(!0),om=rm(!1),Oo={},Lt=yn(Oo),Eo=yn(Oo),bo=yn(Oo);function Nn(e){if(e===Oo)throw Error($(174));return e}function pc(e,t){switch(ne(bo,t),ne(Eo,e),ne(Lt,Oo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ea(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ea(t,e)}ie(Lt),ne(Lt,t)}function Cr(){ie(Lt),ie(Eo),ie(bo)}function im(e){Nn(bo.current);var t=Nn(Lt.current),n=Ea(t,e.type);t!==n&&(ne(Eo,e),ne(Lt,n))}function mc(e){Eo.current===e&&(ie(Lt),ie(Eo))}var ae=yn(0);function Xi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ls=[];function gc(){for(var e=0;en?n:4,e(!0);var r=$s.transition;$s.transition={};try{e(!1),t()}finally{Y=n,$s.transition=r}}function bm(){return dt().memoizedState}function Ix(e,t,n){var r=fn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},wm(e))Sm(t,n);else if(n=Jp(e,t,n,r),n!==null){var o=Be();Et(n,e,r,o),Cm(n,t,r)}}function Mx(e,t,n){var r=fn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wm(e))Sm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,bt(s,l)){var a=t.interleaved;a===null?(o.next=o,dc(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Jp(e,t,o,r),n!==null&&(o=Be(),Et(n,e,r,o),Cm(n,t,r))}}function wm(e){var t=e.alternate;return e===ce||t!==null&&t===ce}function Sm(e,t){oo=Yi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Cm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zu(e,n)}}var Zi={readContext:ft,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useInsertionEffect:Le,useLayoutEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useMutableSource:Le,useSyncExternalStore:Le,useId:Le,unstable_isNewReconciler:!1},Ax={readContext:ft,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:Zf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ti(4194308,4,gm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ti(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ti(4,2,e,t)},useMemo:function(e,t){var n=Tt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Tt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ix.bind(null,ce,e),[r.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:Yf,useDebugValue:bc,useDeferredValue:function(e){return Tt().memoizedState=e},useTransition:function(){var e=Yf(!1),t=e[0];return e=$x.bind(null,e[1]),Tt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ce,o=Tt();if(le){if(n===void 0)throw Error($(407));n=n()}else{if(n=t(),Ce===null)throw Error($(349));On&30||am(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Zf(cm.bind(null,r,i,e),[e]),r.flags|=2048,Co(9,um.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Tt(),t=Ce.identifierPrefix;if(le){var n=Dt,r=Ft;n=(r&~(1<<32-xt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=wo++,0")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{gs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Wr(e):""}function h1(e){switch(e.tag){case 5:return Wr(e.type);case 16:return Wr("Lazy");case 13:return Wr("Suspense");case 19:return Wr("SuspenseList");case 0:case 2:case 15:return e=vs(e.type,!1),e;case 11:return e=vs(e.type.render,!1),e;case 1:return e=vs(e.type,!0),e;default:return""}}function ma(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case er:return"Fragment";case Jn:return"Portal";case da:return"Profiler";case Wu:return"StrictMode";case ha:return"Suspense";case pa:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case np:return(e.displayName||"Context")+".Consumer";case tp:return(e._context.displayName||"Context")+".Provider";case Qu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case qu:return t=e.displayName||null,t!==null?t:ma(e.type)||"Memo";case Xt:t=e._payload,e=e._init;try{return ma(e(t))}catch{}}return null}function p1(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ma(t);case 8:return t===Wu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function hn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function op(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function m1(e){var t=op(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qo(e){e._valueTracker||(e._valueTracker=m1(e))}function ip(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=op(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ai(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ga(e,t){var n=t.checked;return de({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function mf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=hn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function lp(e,t){t=t.checked,t!=null&&Gu(e,"checked",t,!1)}function va(e,t){lp(e,t);var n=hn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ya(e,t.type,n):t.hasOwnProperty("defaultValue")&&ya(e,t.type,hn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function gf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ya(e,t,n){(t!=="number"||Ai(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qr=Array.isArray;function hr(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=qo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function co(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var eo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},g1=["Webkit","ms","Moz","O"];Object.keys(eo).forEach(function(e){g1.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),eo[t]=eo[e]})});function cp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||eo.hasOwnProperty(e)&&eo[e]?(""+t).trim():t+"px"}function fp(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=cp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var v1=de({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ba(e,t){if(t){if(v1[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error($(61))}if(t.style!=null&&typeof t.style!="object")throw Error($(62))}}function wa(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Sa=null;function Xu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ca=null,pr=null,mr=null;function xf(e){if(e=Oo(e)){if(typeof Ca!="function")throw Error($(280));var t=e.stateNode;t&&(t=Pl(t),Ca(e.stateNode,e.type,t))}}function dp(e){pr?mr?mr.push(e):mr=[e]:pr=e}function hp(){if(pr){var e=pr,t=mr;if(mr=pr=null,xf(e),t)for(e=0;e>>=0,e===0?32:31-(N1(e)/k1|0)|0}var Xo=64,Yo=4194304;function qr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ji(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=qr(s):(i&=l,i!==0&&(r=qr(i)))}else l=n&~o,l!==0?r=qr(l):i!==0&&(r=qr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Mo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xt(t),e[t]=n}function I1(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=no),Nf=String.fromCharCode(32),kf=!1;function Ip(e,t){switch(e){case"keyup":return sx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var tr=!1;function ux(e,t){switch(e){case"compositionend":return Mp(t);case"keypress":return t.which!==32?null:(kf=!0,Nf);case"textInput":return e=t.data,e===Nf&&kf?null:e;default:return null}}function cx(e,t){if(tr)return e==="compositionend"||!oc&&Ip(e,t)?(e=Lp(),wi=tc=tn=null,tr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=If(n)}}function Dp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jp(){for(var e=window,t=Ai();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ai(e.document)}return t}function ic(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function xx(e){var t=jp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Dp(n.ownerDocument.documentElement,n)){if(r!==null&&ic(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Mf(n,i);var l=Mf(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,nr=null,Ra=null,oo=null,La=!1;function Af(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;La||nr==null||nr!==Ai(r)||(r=nr,"selectionStart"in r&&ic(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),oo&&vo(oo,r)||(oo=r,r=Ki(Ra,"onSelect"),0ir||(e.current=Fa[ir],Fa[ir]=null,ir--)}function ne(e,t){ir++,Fa[ir]=e.current,e.current=t}var pn={},Ae=yn(pn),We=yn(!1),Mn=pn;function br(e,t){var n=e.type.contextTypes;if(!n)return pn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Qe(e){return e=e.childContextTypes,e!=null}function zi(){le(We),le(Ae)}function Kf(e,t,n){if(Ae.current!==pn)throw Error($(168));ne(Ae,t),ne(We,n)}function Qp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error($(108,p1(e)||"Unknown",o));return de({},n,r)}function Vi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pn,Mn=Ae.current,ne(Ae,e),ne(We,We.current),!0}function Uf(e,t,n){var r=e.stateNode;if(!r)throw Error($(169));n?(e=Qp(e,t,Mn),r.__reactInternalMemoizedMergedChildContext=e,le(We),le(Ae),ne(Ae,e)):le(We),ne(We,n)}var Ot=null,Nl=!1,Ls=!1;function qp(e){Ot===null?Ot=[e]:Ot.push(e)}function Lx(e){Nl=!0,qp(e)}function xn(){if(!Ls&&Ot!==null){Ls=!0;var e=0,t=Y;try{var n=Ot;for(Y=1;e>=l,o-=l,Ft=1<<32-xt(t)+o|n<v?(L=_,_=null):L=_.sibling;var N=f(y,_,x[v],S);if(N===null){_===null&&(_=L);break}e&&_&&N.alternate===null&&t(y,_),m=i(N,m,v),C===null?T=N:C.sibling=N,C=N,_=L}if(v===x.length)return n(y,_),se&&Sn(y,v),T;if(_===null){for(;vv?(L=_,_=null):L=_.sibling;var P=f(y,_,N.value,S);if(P===null){_===null&&(_=L);break}e&&_&&P.alternate===null&&t(y,_),m=i(P,m,v),C===null?T=P:C.sibling=P,C=P,_=L}if(N.done)return n(y,_),se&&Sn(y,v),T;if(_===null){for(;!N.done;v++,N=x.next())N=d(y,N.value,S),N!==null&&(m=i(N,m,v),C===null?T=N:C.sibling=N,C=N);return se&&Sn(y,v),T}for(_=r(y,_);!N.done;v++,N=x.next())N=h(_,y,v,N.value,S),N!==null&&(e&&N.alternate!==null&&_.delete(N.key===null?v:N.key),m=i(N,m,v),C===null?T=N:C.sibling=N,C=N);return e&&_.forEach(function(D){return t(y,D)}),se&&Sn(y,v),T}function w(y,m,x,S){if(typeof x=="object"&&x!==null&&x.type===er&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Wo:e:{for(var T=x.key,C=m;C!==null;){if(C.key===T){if(T=x.type,T===er){if(C.tag===7){n(y,C.sibling),m=o(C,x.props.children),m.return=y,y=m;break e}}else if(C.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Xt&&Xf(T)===C.type){n(y,C.sibling),m=o(C,x.props),m.ref=Br(y,C,x),m.return=y,y=m;break e}n(y,C);break}else t(y,C);C=C.sibling}x.type===er?(m=$n(x.props.children,y.mode,S,x.key),m.return=y,y=m):(S=Ri(x.type,x.key,x.props,null,y.mode,S),S.ref=Br(y,m,x),S.return=y,y=S)}return l(y);case Jn:e:{for(C=x.key;m!==null;){if(m.key===C)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(y,m.sibling),m=o(m,x.children||[]),m.return=y,y=m;break e}else{n(y,m);break}else t(y,m);m=m.sibling}m=js(x,y.mode,S),m.return=y,y=m}return l(y);case Xt:return C=x._init,w(y,m,C(x._payload),S)}if(Qr(x))return E(y,m,x,S);if(Ar(x))return b(y,m,x,S);oi(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,m!==null&&m.tag===6?(n(y,m.sibling),m=o(m,x),m.return=y,y=m):(n(y,m),m=Ds(x,y.mode,S),m.return=y,y=m),l(y)):n(y,m)}return w}var Sr=rm(!0),om=rm(!1),Fo={},Lt=yn(Fo),bo=yn(Fo),wo=yn(Fo);function Nn(e){if(e===Fo)throw Error($(174));return e}function pc(e,t){switch(ne(wo,t),ne(bo,e),ne(Lt,Fo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ea(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ea(t,e)}le(Lt),ne(Lt,t)}function Cr(){le(Lt),le(bo),le(wo)}function im(e){Nn(wo.current);var t=Nn(Lt.current),n=Ea(t,e.type);t!==n&&(ne(bo,e),ne(Lt,n))}function mc(e){bo.current===e&&(le(Lt),le(bo))}var ue=yn(0);function Yi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var $s=[];function gc(){for(var e=0;e<$s.length;e++)$s[e]._workInProgressVersionPrimary=null;$s.length=0}var Ti=Wt.ReactCurrentDispatcher,Is=Wt.ReactCurrentBatchConfig,On=0,fe=null,xe=null,we=null,Zi=!1,io=!1,So=0,Ix=0;function Le(){throw Error($(321))}function vc(e,t){if(t===null)return!1;for(var n=0;nn?n:4,e(!0);var r=Is.transition;Is.transition={};try{e(!1),t()}finally{Y=n,Is.transition=r}}function bm(){return dt().memoizedState}function Ax(e,t,n){var r=fn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},wm(e))Sm(t,n);else if(n=Jp(e,t,n,r),n!==null){var o=Be();Et(n,e,r,o),Cm(n,t,r)}}function Ox(e,t,n){var r=fn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(wm(e))Sm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,bt(s,l)){var a=t.interleaved;a===null?(o.next=o,dc(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Jp(e,t,o,r),n!==null&&(o=Be(),Et(n,e,r,o),Cm(n,t,r))}}function wm(e){var t=e.alternate;return e===fe||t!==null&&t===fe}function Sm(e,t){io=Zi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Cm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Zu(e,n)}}var Ji={readContext:ft,useCallback:Le,useContext:Le,useEffect:Le,useImperativeHandle:Le,useInsertionEffect:Le,useLayoutEffect:Le,useMemo:Le,useReducer:Le,useRef:Le,useState:Le,useDebugValue:Le,useDeferredValue:Le,useTransition:Le,useMutableSource:Le,useSyncExternalStore:Le,useId:Le,unstable_isNewReconciler:!1},Fx={readContext:ft,useCallback:function(e,t){return Tt().memoizedState=[e,t===void 0?null:t],e},useContext:ft,useEffect:Zf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,_i(4194308,4,gm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _i(4194308,4,e,t)},useInsertionEffect:function(e,t){return _i(4,2,e,t)},useMemo:function(e,t){var n=Tt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Tt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ax.bind(null,fe,e),[r.memoizedState,e]},useRef:function(e){var t=Tt();return e={current:e},t.memoizedState=e},useState:Yf,useDebugValue:bc,useDeferredValue:function(e){return Tt().memoizedState=e},useTransition:function(){var e=Yf(!1),t=e[0];return e=Mx.bind(null,e[1]),Tt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=fe,o=Tt();if(se){if(n===void 0)throw Error($(407));n=n()}else{if(n=t(),Ce===null)throw Error($(349));On&30||am(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Zf(cm.bind(null,r,i,e),[e]),r.flags|=2048,To(9,um.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Tt(),t=Ce.identifierPrefix;if(se){var n=Dt,r=Ft;n=(r&~(1<<32-xt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=So++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[kt]=t,e[xo]=r,Im(e,t,!1,!1),t.stateNode=e;e:{switch(l=wa(n,r),n){case"dialog":re("cancel",e),re("close",e),o=r;break;case"iframe":case"object":case"embed":re("load",e),o=r;break;case"video":case"audio":for(o=0;o_r&&(t.flags|=128,r=!0,Br(i,!1),t.lanes=4194304)}else{if(!r)if(e=Xi(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Br(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!le)return $e(t),null}else 2*he()-i.renderingStartTime>_r&&n!==1073741824&&(t.flags|=128,r=!0,Br(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=he(),t.sibling=null,n=ae.current,ne(ae,r?n&1|2:n&1),t):($e(t),null);case 22:case 23:return Pc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ye&1073741824&&($e(t),t.subtreeFlags&6&&(t.flags|=8192)):$e(t),null;case 24:return null;case 25:return null}throw Error($(156,t.tag))}function Ux(e,t){switch(sc(t),t.tag){case 1:return Qe(t.type)&&Ui(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cr(),ie(We),ie(Ae),gc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return mc(t),null;case 13:if(ie(ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($(340));wr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(ae),null;case 4:return Cr(),null;case 10:return fc(t.type._context),null;case 22:case 23:return Pc(),null;case 24:return null;default:return null}}var ii=!1,Ie=!1,zx=typeof WeakSet=="function"?WeakSet:Set,F=null;function ur(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){de(e,t,r)}else n.current=null}function qa(e,t,n){try{n()}catch(r){de(e,t,r)}}var sd=!1;function Vx(e,t){if($a=ji,e=jp(),ic(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||o!==0&&f.nodeType!==3||(s=l+o),f!==i||r!==0&&f.nodeType!==3||(a=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===o&&(s=l),d===i&&++c===r&&(a=l),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ia={focusedElem:e,selectionRange:n},ji=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var E=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var b=E.memoizedProps,w=E.memoizedState,y=t.stateNode,m=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:mt(t.type,b),w);y.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(S){de(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return E=sd,sd=!1,E}function io(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&qa(t,n,i)}o=o.next}while(o!==r)}}function kl(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Xa(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Om(e){var t=e.alternate;t!==null&&(e.alternate=null,Om(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[kt],delete t[xo],delete t[Oa],delete t[Px],delete t[Nx])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Fm(e){return e.tag===5||e.tag===3||e.tag===4}function ad(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ya(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ki));else if(r!==4&&(e=e.child,e!==null))for(Ya(e,t,n),e=e.sibling;e!==null;)Ya(e,t,n),e=e.sibling}function Za(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Za(e,t,n),e=e.sibling;e!==null;)Za(e,t,n),e=e.sibling}var Pe=null,gt=!1;function Qt(e,t,n){for(n=n.child;n!==null;)Dm(e,t,n),n=n.sibling}function Dm(e,t,n){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(bl,n)}catch{}switch(n.tag){case 5:Ie||ur(n,t);case 6:var r=Pe,o=gt;Pe=null,Qt(e,t,n),Pe=r,gt=o,Pe!==null&&(gt?(e=Pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pe.removeChild(n.stateNode));break;case 18:Pe!==null&&(gt?(e=Pe,n=n.stateNode,e.nodeType===8?ks(e.parentNode,n):e.nodeType===1&&ks(e,n),po(e)):ks(Pe,n.stateNode));break;case 4:r=Pe,o=gt,Pe=n.stateNode.containerInfo,gt=!0,Qt(e,t,n),Pe=r,gt=o;break;case 0:case 11:case 14:case 15:if(!Ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&qa(n,t,l),o=o.next}while(o!==r)}Qt(e,t,n);break;case 1:if(!Ie&&(ur(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){de(n,t,s)}Qt(e,t,n);break;case 21:Qt(e,t,n);break;case 22:n.mode&1?(Ie=(r=Ie)||n.memoizedState!==null,Qt(e,t,n),Ie=r):Qt(e,t,n);break;default:Qt(e,t,n)}}function ud(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new zx),t.forEach(function(r){var o=eE.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function pt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=he()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Wx(r/1960))-r,10e?16:e,nn===null)var r=!1;else{if(e=nn,nn=null,tl=0,Q&6)throw Error($(331));var o=Q;for(Q|=4,F=e.current;F!==null;){var i=F,l=i.child;if(F.flags&16){var s=i.deletions;if(s!==null){for(var a=0;ahe()-Tc?Ln(e,0):Cc|=n),qe(e,t)}function Gm(e,t){t===0&&(e.mode&1?(t=Xo,Xo<<=1,!(Xo&130023424)&&(Xo=4194304)):t=1);var n=Be();e=Vt(e,t),e!==null&&(Io(e,t,n),qe(e,n))}function Jx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Gm(e,n)}function eE(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error($(314))}r!==null&&r.delete(t),Gm(e,n)}var Wm;Wm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||We.current)Ge=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ge=!1,Hx(e,t,n);Ge=!!(e.flags&131072)}else Ge=!1,le&&t.flags&1048576&&Xp(t,Gi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;_i(e,t),e=t.pendingProps;var o=br(t,Ae.current);vr(t,n),o=yc(null,t,r,e,o,n);var i=xc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qe(r)?(i=!0,zi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,hc(t),o.updater=Pl,t.stateNode=o,o._reactInternals=t,Ka(t,r,e,n),t=Va(null,t,r,!0,i,n)):(t.tag=0,le&&i&&lc(t),De(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(_i(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=nE(r),e=mt(r,e),o){case 0:t=za(null,t,r,e,n);break e;case 1:t=od(null,t,r,e,n);break e;case 11:t=nd(null,t,r,e,n);break e;case 14:t=rd(null,t,r,mt(r.type,e),n);break e}throw Error($(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),za(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),od(e,t,r,o,n);case 3:e:{if(Rm(t),e===null)throw Error($(387));r=t.pendingProps,i=t.memoizedState,o=i.element,em(e,t),qi(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Tr(Error($(423)),t),t=id(e,t,r,n,o);break e}else if(r!==o){o=Tr(Error($(424)),t),t=id(e,t,r,n,o);break e}else for(Je=an(t.stateNode.containerInfo.firstChild),et=t,le=!0,yt=null,n=om(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wr(),r===o){t=Gt(e,t,n);break e}De(e,t,r,n)}t=t.child}return t;case 5:return im(t),e===null&&ja(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Ma(r,o)?l=null:i!==null&&Ma(r,i)&&(t.flags|=32),km(e,t),De(e,t,l,n),t.child;case 6:return e===null&&ja(t),null;case 13:return Lm(e,t,n);case 4:return pc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Sr(t,null,r,n):De(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),nd(e,t,r,o,n);case 7:return De(e,t,t.pendingProps,n),t.child;case 8:return De(e,t,t.pendingProps.children,n),t.child;case 12:return De(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,ne(Wi,r._currentValue),r._currentValue=l,i!==null)if(bt(i.value,l)){if(i.children===o.children&&!We.current){t=Gt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Kt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ba(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error($(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Ba(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}De(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,vr(t,n),o=ft(o),r=r(o),t.flags|=1,De(e,t,r,n),t.child;case 14:return r=t.type,o=mt(r,t.pendingProps),o=mt(r.type,o),rd(e,t,r,o,n);case 15:return Pm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),_i(e,t),t.tag=1,Qe(r)?(e=!0,zi(t)):e=!1,vr(t,n),nm(t,r,o),Ka(t,r,o,n),Va(null,t,r,!0,e,n);case 19:return $m(e,t,n);case 22:return Nm(e,t,n)}throw Error($(156,t.tag))};function Qm(e,t){return Ep(e,t)}function tE(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ut(e,t,n,r){return new tE(e,t,n,r)}function kc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function nE(e){if(typeof e=="function")return kc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Qu)return 11;if(e===qu)return 14}return 2}function dn(e,t){var n=e.alternate;return n===null?(n=ut(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ki(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")kc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case er:return $n(n.children,o,i,t);case Wu:l=8,o|=8;break;case da:return e=ut(12,n,t,o|2),e.elementType=da,e.lanes=i,e;case ha:return e=ut(13,n,t,o),e.elementType=ha,e.lanes=i,e;case pa:return e=ut(19,n,t,o),e.elementType=pa,e.lanes=i,e;case rp:return Ll(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case tp:l=10;break e;case np:l=9;break e;case Qu:l=11;break e;case qu:l=14;break e;case Xt:l=16,r=null;break e}throw Error($(130,e==null?e:typeof e,""))}return t=ut(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function $n(e,t,n,r){return e=ut(7,e,r,t),e.lanes=n,e}function Ll(e,t,n,r){return e=ut(22,e,r,t),e.elementType=rp,e.lanes=n,e.stateNode={isHidden:!1},e}function Fs(e,t,n){return e=ut(6,e,null,t),e.lanes=n,e}function Ds(e,t,n){return t=ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function rE(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ys(0),this.expirationTimes=ys(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ys(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Rc(e,t,n,r,o,i,l,s,a){return e=new rE(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ut(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},hc(i),e}function oE(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Zm)}catch(e){console.error(e)}}Zm(),Xh.exports=nt;var Mc=Xh.exports;const uE=ju(Mc);var vd=Mc;ca.createRoot=vd.createRoot,ca.hydrateRoot=vd.hydrateRoot;const cE="modulepreload",fE=function(e){return"/"+e},yd={},Qn=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=fE(i),i in yd)return;yd[i]=!0;const l=i.endsWith(".css"),s=l?'[rel="stylesheet"]':"";if(!!r)for(let c=o.length-1;c>=0;c--){const f=o[c];if(f.href===i&&(!l||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=l?"stylesheet":cE,l||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),l)return new Promise((c,f)=>{u.addEventListener("load",c),u.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i})};var Jm={exports:{}};/*! +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Os(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ua(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Bx=typeof WeakMap=="function"?WeakMap:Map;function Tm(e,t,n){n=Kt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){tl||(tl=!0,Ja=r),Ua(e,t)},n}function _m(e,t,n){n=Kt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Ua(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Ua(e,t),typeof r!="function"&&(cn===null?cn=new Set([this]):cn.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Jf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Bx;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=eE.bind(null,e,t,n),t.then(e,e))}function ed(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function td(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Kt(-1,1),t.tag=2,un(n,t,1))),n.lanes|=1),e)}var Hx=Wt.ReactCurrentOwner,Ge=!1;function De(e,t,n,r){t.child=e===null?om(t,null,n,r):Sr(t,e.child,n,r)}function nd(e,t,n,r,o){n=n.render;var i=t.ref;return vr(t,o),r=yc(e,t,n,r,i,o),n=xc(),e!==null&&!Ge?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gt(e,t,o)):(se&&n&&lc(t),t.flags|=1,De(e,t,r,o),t.child)}function rd(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!kc(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Pm(e,t,i,r,o)):(e=Ri(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:vo,n(l,r)&&e.ref===t.ref)return Gt(e,t,o)}return t.flags|=1,e=dn(i,r),e.ref=t.ref,e.return=t,t.child=e}function Pm(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(vo(i,r)&&e.ref===t.ref)if(Ge=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Ge=!0);else return t.lanes=e.lanes,Gt(e,t,o)}return za(e,t,n,r,o)}function Nm(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ne(cr,Ye),Ye|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ne(cr,Ye),Ye|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,ne(cr,Ye),Ye|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ne(cr,Ye),Ye|=r;return De(e,t,o,n),t.child}function km(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function za(e,t,n,r,o){var i=Qe(n)?Mn:Ae.current;return i=br(t,i),vr(t,o),n=yc(e,t,n,r,i,o),r=xc(),e!==null&&!Ge?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Gt(e,t,o)):(se&&r&&lc(t),t.flags|=1,De(e,t,n,o),t.child)}function od(e,t,n,r,o){if(Qe(n)){var i=!0;Vi(t)}else i=!1;if(vr(t,o),t.stateNode===null)Pi(e,t),nm(t,n,r),Ka(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var a=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=ft(u):(u=Qe(n)?Mn:Ae.current,u=br(t,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";d||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||a!==u)&&qf(t,l,r,u),Yt=!1;var f=t.memoizedState;l.state=f,Xi(t,r,l,o),a=t.memoizedState,s!==r||f!==a||We.current||Yt?(typeof c=="function"&&(Ha(t,n,c,r),a=t.memoizedState),(s=Yt||Qf(t,n,s,r,f,a,u))?(d||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=u,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,em(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:mt(t.type,s),l.props=u,d=t.pendingProps,f=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=ft(a):(a=Qe(n)?Mn:Ae.current,a=br(t,a));var h=n.getDerivedStateFromProps;(c=typeof h=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==d||f!==a)&&qf(t,l,r,a),Yt=!1,f=t.memoizedState,l.state=f,Xi(t,r,l,o);var E=t.memoizedState;s!==d||f!==E||We.current||Yt?(typeof h=="function"&&(Ha(t,n,h,r),E=t.memoizedState),(u=Yt||Qf(t,n,u,r,f,E,a)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,E,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,E,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=E),l.props=r,l.state=E,l.context=a,r=u):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Va(e,t,n,r,i,o)}function Va(e,t,n,r,o,i){km(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&Uf(t,n,!1),Gt(e,t,i);r=t.stateNode,Hx.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Sr(t,e.child,null,i),t.child=Sr(t,null,s,i)):De(e,t,s,i),t.memoizedState=r.state,o&&Uf(t,n,!0),t.child}function Rm(e){var t=e.stateNode;t.pendingContext?Kf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Kf(e,t.context,!1),pc(e,t.containerInfo)}function id(e,t,n,r,o){return wr(),ac(o),t.flags|=256,De(e,t,n,r),t.child}var Ga={dehydrated:null,treeContext:null,retryLane:0};function Wa(e){return{baseLanes:e,cachePool:null,transitions:null}}function Lm(e,t,n){var r=t.pendingProps,o=ue.current,i=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),ne(ue,o&1),e===null)return ja(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=Il(l,r,0,null),e=$n(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Wa(n),t.memoizedState=Ga,e):wc(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return Kx(e,t,l,r,s,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,s=o.sibling;var a={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=dn(o,a),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=dn(s,i):(i=$n(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?Wa(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Ga,r}return i=e.child,e=i.sibling,r=dn(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function wc(e,t){return t=Il({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function ii(e,t,n,r){return r!==null&&ac(r),Sr(t,e.child,null,n),e=wc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Kx(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=Os(Error($(422))),ii(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Il({mode:"visible",children:r.children},o,0,null),i=$n(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Sr(t,e.child,null,l),t.child.memoizedState=Wa(l),t.memoizedState=Ga,i);if(!(t.mode&1))return ii(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error($(419)),r=Os(i,r,void 0),ii(e,t,l,r)}if(s=(l&e.childLanes)!==0,Ge||s){if(r=Ce,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Vt(e,o),Et(r,e,o,-1))}return Nc(),r=Os(Error($(421))),ii(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=tE.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Je=an(o.nextSibling),et=t,se=!0,yt=null,e!==null&&(st[at++]=Ft,st[at++]=Dt,st[at++]=An,Ft=e.id,Dt=e.overflow,An=t),t=wc(t,r.children),t.flags|=4096,t)}function ld(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ba(e.return,t,n)}function Fs(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function $m(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(De(e,t,r.children,n),r=ue.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ld(e,n,t);else if(e.tag===19)ld(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ne(ue,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Yi(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Fs(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Yi(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Fs(t,!0,n,null,i);break;case"together":Fs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Pi(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Fn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error($(153));if(t.child!==null){for(e=t.child,n=dn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=dn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ux(e,t,n){switch(t.tag){case 3:Rm(t),wr();break;case 5:im(t);break;case 1:Qe(t.type)&&Vi(t);break;case 4:pc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;ne(Qi,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(ne(ue,ue.current&1),t.flags|=128,null):n&t.child.childLanes?Lm(e,t,n):(ne(ue,ue.current&1),e=Gt(e,t,n),e!==null?e.sibling:null);ne(ue,ue.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return $m(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ne(ue,ue.current),r)break;return null;case 22:case 23:return t.lanes=0,Nm(e,t,n)}return Gt(e,t,n)}var Im,Qa,Mm,Am;Im=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Qa=function(){};Mm=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Nn(Lt.current);var i=null;switch(n){case"input":o=ga(e,o),r=ga(e,r),i=[];break;case"select":o=de({},o,{value:void 0}),r=de({},r,{value:void 0}),i=[];break;case"textarea":o=xa(e,o),r=xa(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Ui)}ba(n,r);var l;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(uo.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(l in s)!s.hasOwnProperty(l)||a&&a.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in a)a.hasOwnProperty(l)&&s[l]!==a[l]&&(n||(n={}),n[l]=a[l])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(uo.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&re("scroll",e),i||s===a||(i=[])):(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};Am=function(e,t,n,r){n!==r&&(t.flags|=4)};function Hr(e,t){if(!se)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function $e(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function zx(e,t,n){var r=t.pendingProps;switch(sc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $e(t),null;case 1:return Qe(t.type)&&zi(),$e(t),null;case 3:return r=t.stateNode,Cr(),le(We),le(Ae),gc(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ri(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,yt!==null&&(nu(yt),yt=null))),Qa(e,t),$e(t),null;case 5:mc(t);var o=Nn(wo.current);if(n=t.type,e!==null&&t.stateNode!=null)Mm(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error($(166));return $e(t),null}if(e=Nn(Lt.current),ri(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[kt]=t,r[Eo]=i,e=(t.mode&1)!==0,n){case"dialog":re("cancel",r),re("close",r);break;case"iframe":case"object":case"embed":re("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[kt]=t,e[Eo]=r,Im(e,t,!1,!1),t.stateNode=e;e:{switch(l=wa(n,r),n){case"dialog":re("cancel",e),re("close",e),o=r;break;case"iframe":case"object":case"embed":re("load",e),o=r;break;case"video":case"audio":for(o=0;o_r&&(t.flags|=128,r=!0,Hr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Yi(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Hr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!se)return $e(t),null}else 2*pe()-i.renderingStartTime>_r&&n!==1073741824&&(t.flags|=128,r=!0,Hr(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=ue.current,ne(ue,r?n&1|2:n&1),t):($e(t),null);case 22:case 23:return Pc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ye&1073741824&&($e(t),t.subtreeFlags&6&&(t.flags|=8192)):$e(t),null;case 24:return null;case 25:return null}throw Error($(156,t.tag))}function Vx(e,t){switch(sc(t),t.tag){case 1:return Qe(t.type)&&zi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Cr(),le(We),le(Ae),gc(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return mc(t),null;case 13:if(le(ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($(340));wr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return le(ue),null;case 4:return Cr(),null;case 10:return fc(t.type._context),null;case 22:case 23:return Pc(),null;case 24:return null;default:return null}}var li=!1,Ie=!1,Gx=typeof WeakSet=="function"?WeakSet:Set,F=null;function ur(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){he(e,t,r)}else n.current=null}function qa(e,t,n){try{n()}catch(r){he(e,t,r)}}var sd=!1;function Wx(e,t){if($a=Bi,e=jp(),ic(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,u=0,c=0,d=e,f=null;t:for(;;){for(var h;d!==n||o!==0&&d.nodeType!==3||(s=l+o),d!==i||r!==0&&d.nodeType!==3||(a=l+r),d.nodeType===3&&(l+=d.nodeValue.length),(h=d.firstChild)!==null;)f=d,d=h;for(;;){if(d===e)break t;if(f===n&&++u===o&&(s=l),f===i&&++c===r&&(a=l),(h=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=h}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ia={focusedElem:e,selectionRange:n},Bi=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var E=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var b=E.memoizedProps,w=E.memoizedState,y=t.stateNode,m=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:mt(t.type,b),w);y.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($(163))}}catch(S){he(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return E=sd,sd=!1,E}function lo(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&qa(t,n,i)}o=o.next}while(o!==r)}}function Ll(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Xa(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Om(e){var t=e.alternate;t!==null&&(e.alternate=null,Om(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[kt],delete t[Eo],delete t[Oa],delete t[kx],delete t[Rx])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Fm(e){return e.tag===5||e.tag===3||e.tag===4}function ad(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ya(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ui));else if(r!==4&&(e=e.child,e!==null))for(Ya(e,t,n),e=e.sibling;e!==null;)Ya(e,t,n),e=e.sibling}function Za(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Za(e,t,n),e=e.sibling;e!==null;)Za(e,t,n),e=e.sibling}var Pe=null,gt=!1;function Qt(e,t,n){for(n=n.child;n!==null;)Dm(e,t,n),n=n.sibling}function Dm(e,t,n){if(Rt&&typeof Rt.onCommitFiberUnmount=="function")try{Rt.onCommitFiberUnmount(Sl,n)}catch{}switch(n.tag){case 5:Ie||ur(n,t);case 6:var r=Pe,o=gt;Pe=null,Qt(e,t,n),Pe=r,gt=o,Pe!==null&&(gt?(e=Pe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Pe.removeChild(n.stateNode));break;case 18:Pe!==null&&(gt?(e=Pe,n=n.stateNode,e.nodeType===8?Rs(e.parentNode,n):e.nodeType===1&&Rs(e,n),mo(e)):Rs(Pe,n.stateNode));break;case 4:r=Pe,o=gt,Pe=n.stateNode.containerInfo,gt=!0,Qt(e,t,n),Pe=r,gt=o;break;case 0:case 11:case 14:case 15:if(!Ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&qa(n,t,l),o=o.next}while(o!==r)}Qt(e,t,n);break;case 1:if(!Ie&&(ur(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){he(n,t,s)}Qt(e,t,n);break;case 21:Qt(e,t,n);break;case 22:n.mode&1?(Ie=(r=Ie)||n.memoizedState!==null,Qt(e,t,n),Ie=r):Qt(e,t,n);break;default:Qt(e,t,n)}}function ud(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Gx),t.forEach(function(r){var o=nE.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function pt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*qx(r/1960))-r,10e?16:e,nn===null)var r=!1;else{if(e=nn,nn=null,nl=0,Q&6)throw Error($(331));var o=Q;for(Q|=4,F=e.current;F!==null;){var i=F,l=i.child;if(F.flags&16){var s=i.deletions;if(s!==null){for(var a=0;ape()-Tc?Ln(e,0):Cc|=n),qe(e,t)}function Gm(e,t){t===0&&(e.mode&1?(t=Yo,Yo<<=1,!(Yo&130023424)&&(Yo=4194304)):t=1);var n=Be();e=Vt(e,t),e!==null&&(Mo(e,t,n),qe(e,n))}function tE(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Gm(e,n)}function nE(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error($(314))}r!==null&&r.delete(t),Gm(e,n)}var Wm;Wm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||We.current)Ge=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ge=!1,Ux(e,t,n);Ge=!!(e.flags&131072)}else Ge=!1,se&&t.flags&1048576&&Xp(t,Wi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Pi(e,t),e=t.pendingProps;var o=br(t,Ae.current);vr(t,n),o=yc(null,t,r,e,o,n);var i=xc();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Qe(r)?(i=!0,Vi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,hc(t),o.updater=kl,t.stateNode=o,o._reactInternals=t,Ka(t,r,e,n),t=Va(null,t,r,!0,i,n)):(t.tag=0,se&&i&&lc(t),De(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Pi(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=oE(r),e=mt(r,e),o){case 0:t=za(null,t,r,e,n);break e;case 1:t=od(null,t,r,e,n);break e;case 11:t=nd(null,t,r,e,n);break e;case 14:t=rd(null,t,r,mt(r.type,e),n);break e}throw Error($(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),za(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),od(e,t,r,o,n);case 3:e:{if(Rm(t),e===null)throw Error($(387));r=t.pendingProps,i=t.memoizedState,o=i.element,em(e,t),Xi(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Tr(Error($(423)),t),t=id(e,t,r,n,o);break e}else if(r!==o){o=Tr(Error($(424)),t),t=id(e,t,r,n,o);break e}else for(Je=an(t.stateNode.containerInfo.firstChild),et=t,se=!0,yt=null,n=om(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(wr(),r===o){t=Gt(e,t,n);break e}De(e,t,r,n)}t=t.child}return t;case 5:return im(t),e===null&&ja(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,Ma(r,o)?l=null:i!==null&&Ma(r,i)&&(t.flags|=32),km(e,t),De(e,t,l,n),t.child;case 6:return e===null&&ja(t),null;case 13:return Lm(e,t,n);case 4:return pc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Sr(t,null,r,n):De(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),nd(e,t,r,o,n);case 7:return De(e,t,t.pendingProps,n),t.child;case 8:return De(e,t,t.pendingProps.children,n),t.child;case 12:return De(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,ne(Qi,r._currentValue),r._currentValue=l,i!==null)if(bt(i.value,l)){if(i.children===o.children&&!We.current){t=Gt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Kt(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ba(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error($(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),Ba(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}De(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,vr(t,n),o=ft(o),r=r(o),t.flags|=1,De(e,t,r,n),t.child;case 14:return r=t.type,o=mt(r,t.pendingProps),o=mt(r.type,o),rd(e,t,r,o,n);case 15:return Pm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:mt(r,o),Pi(e,t),t.tag=1,Qe(r)?(e=!0,Vi(t)):e=!1,vr(t,n),nm(t,r,o),Ka(t,r,o,n),Va(null,t,r,!0,e,n);case 19:return $m(e,t,n);case 22:return Nm(e,t,n)}throw Error($(156,t.tag))};function Qm(e,t){return Ep(e,t)}function rE(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ut(e,t,n,r){return new rE(e,t,n,r)}function kc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oE(e){if(typeof e=="function")return kc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Qu)return 11;if(e===qu)return 14}return 2}function dn(e,t){var n=e.alternate;return n===null?(n=ut(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ri(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")kc(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case er:return $n(n.children,o,i,t);case Wu:l=8,o|=8;break;case da:return e=ut(12,n,t,o|2),e.elementType=da,e.lanes=i,e;case ha:return e=ut(13,n,t,o),e.elementType=ha,e.lanes=i,e;case pa:return e=ut(19,n,t,o),e.elementType=pa,e.lanes=i,e;case rp:return Il(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case tp:l=10;break e;case np:l=9;break e;case Qu:l=11;break e;case qu:l=14;break e;case Xt:l=16,r=null;break e}throw Error($(130,e==null?e:typeof e,""))}return t=ut(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function $n(e,t,n,r){return e=ut(7,e,r,t),e.lanes=n,e}function Il(e,t,n,r){return e=ut(22,e,r,t),e.elementType=rp,e.lanes=n,e.stateNode={isHidden:!1},e}function Ds(e,t,n){return e=ut(6,e,null,t),e.lanes=n,e}function js(e,t,n){return t=ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function iE(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xs(0),this.expirationTimes=xs(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xs(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Rc(e,t,n,r,o,i,l,s,a){return e=new iE(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ut(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},hc(i),e}function lE(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Zm)}catch(e){console.error(e)}}Zm(),Xh.exports=nt;var Mc=Xh.exports;const fE=ju(Mc);var vd=Mc;ca.createRoot=vd.createRoot,ca.hydrateRoot=vd.hydrateRoot;const dE="modulepreload",hE=function(e){return"/"+e},yd={},Qn=function(t,n,r){if(!n||n.length===0)return t();const o=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=hE(i),i in yd)return;yd[i]=!0;const l=i.endsWith(".css"),s=l?'[rel="stylesheet"]':"";if(!!r)for(let c=o.length-1;c>=0;c--){const d=o[c];if(d.href===i&&(!l||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=l?"stylesheet":dE,l||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),l)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=i,window.dispatchEvent(l),!l.defaultPrevented)throw i})};var Jm={exports:{}};/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o{const i=new MutationObserver(t);o(i)},[t,n,o]),p.useEffect(()=>{if(!r||!e)return;const{config:i}=n;return r.observe(e,i),()=>{r&&r.disconnect()}},[r,e,n])}function Fo(e,t){e&&t.forEach(n=>{typeof n=="function"?n(e):n&&(n.current=e)})}const mE=p.forwardRef(({title:e,titleAs:t="h3",children:n,className:r,css:o={},defaultExpanded:i=!1,...l},s)=>{const a=p.useId(),u=p.useRef(null),[c,f]=p.useState(!!i),d=p.useCallback(h=>{var E;if(h.find(b=>b.attributeName==="aria-expanded")&&(E=u==null?void 0:u.current)!=null&&E.attributes){const b=u.current.attributes.getNamedItem("aria-expanded");f(b?b.value==="true":!1)}},[u]);return pE(u==null?void 0:u.current,d),g.jsxs("section",{className:R("fr-accordion",r),children:[g.jsx(t,{className:R("fr-accordion__title",o.title),children:g.jsx("button",{...l,ref:h=>Fo(h,[s,u]),className:R("fr-accordion__btn",o.button),"aria-expanded":i,"aria-controls":a,children:p.isValidElement(e)||typeof e=="string"?e:typeof e=="function"?e(c):null})}),g.jsx("div",{className:"fr-collapse",id:a,children:n})]})});function Tn(e,t){return p.Children.toArray(e).filter(n=>p.isValidElement(n)&&n.type===t)}function Ac(e,t){return p.Children.toArray(e).filter(n=>p.isValidElement(n)&&t.includes(n.type))}function gE(e,t){return p.Children.toArray(e).filter(n=>p.isValidElement(n)&&!t.includes(n.type))}p.forwardRef(({className:e,closeMode:t="disallow",description:n,size:r,onClose:o,title:i,css:l={},titleAs:s="h3",variant:a="info",...u},c)=>{const f=p.useRef(null),d=h=>{var E;h.preventDefault(),(E=f.current)==null||E.remove(),o&&o(h)};return g.jsxs("div",{ref:h=>Fo(h,[c,f]),className:R(`fr-alert fr-alert--${a}`,{"fr-alert--sm":r==="sm"},e),...u,children:[i&&g.jsx(s,{className:R("fr-alert__title",l.title),children:i}),n&&g.jsx("p",{className:R(l.description),children:n}),t==="uncontrolled"&&g.jsx("button",{onClick:d,className:R("fr-btn--close fr-btn",l.button),children:"Masquer le message"}),t==="controlled"&&g.jsx("button",{onClick:o,className:R("fr-link--close fr-link",l.button),children:"Masquer le message"})]})});function vE(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function yE(e,t,n){vE(e,t),t.set(e,n)}function Do(e,t,n){let[r,o]=p.useState(e||t),i=p.useRef(e!==void 0),l=e!==void 0;p.useEffect(()=>{let u=i.current;u!==l&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),i.current=l},[l]);let s=l?e:r,a=p.useCallback((u,...c)=>{let f=(d,...h)=>{n&&(Object.is(s,d)||n(d,...h)),l||(s=d)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((d,...h)=>{let E=u(l?s:d,...h);return f(E,...c),l?d:E})):(l||o(u),f(u,...c))},[l,s,n]);return[s,a]}function ru(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const eg={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},tg={...eg,customError:!0,valid:!1},Kr={isInvalid:!1,validationDetails:eg,validationErrors:[]},xE=p.createContext({}),ou="__formValidationState"+Date.now();function ng(e){if(e[ou]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}=e[ou];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}}return EE(e)}function EE(e){let{isInvalid:t,validationState:n,name:r,value:o,builtinValidation:i,validate:l,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let a=t?{isInvalid:!0,validationErrors:[],validationDetails:tg}:null,u=p.useMemo(()=>xd(bE(l,o)),[l,o]);i!=null&&i.validationDetails.valid&&(i=null);let c=p.useContext(xE),f=p.useMemo(()=>r?Array.isArray(r)?r.flatMap(v=>iu(c[v])):iu(c[r]):[],[c,r]),[d,h]=p.useState(c),[E,b]=p.useState(!1);c!==d&&(h(c),b(!1));let w=p.useMemo(()=>xd(E?[]:f),[E,f]),y=p.useRef(Kr),[m,x]=p.useState(Kr),S=p.useRef(Kr),T=()=>{if(!C)return;_(!1);let v=u||i||y.current;js(v,S.current)||(S.current=v,x(v))},[C,_]=p.useState(!1);return p.useEffect(T),{realtimeValidation:a||w||u||i||Kr,displayValidation:s==="native"?a||w||m:a||w||u||i||m,updateValidation(v){s==="aria"&&!js(m,v)?x(v):y.current=v},resetValidation(){let v=Kr;js(v,S.current)||(S.current=v,x(v)),s==="native"&&_(!1),b(!0)},commitValidation(){s==="native"&&_(!0),b(!0)}}}function iu(e){return e?Array.isArray(e)?e:[e]:[]}function bE(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return iu(n)}return[]}function xd(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:tg}:null}function js(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}class wE{build(t,n){return this.context=n,Ed(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let o of t.items)yield*this.getFullNode({value:o},{renderer:n})}else{let o=[];q.Children.forEach(n,l=>{o.push(l)});let i=0;for(let l of o){let s=this.getFullNode({element:l,index:i},{});for(let a of s)i++,yield a}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){var l;let s=(l=i.key)!==null&&l!==void 0?l:i.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){let i=t.element;if(!i&&t.value&&n&&n.renderer){let a=this.cache.get(t.value);if(a&&(!a.shouldInvalidate||!a.shouldInvalidate(this.context))){a.index=t.index,a.parentKey=o?o.key:null,yield a;return}i=n.renderer(t.value)}if(q.isValidElement(i)){let a=i.type;if(typeof a!="function"&&typeof a.getCollectionNode!="function"){let d=typeof i.type=="function"?i.type.name:i.type;throw new Error(`Unknown element <${d}> in collection.`)}let u=a.getCollectionNode(i.props,this.context),c=t.index,f=u.next();for(;!f.done&&f.value;){let d=f.value;t.index=c;let h=d.key;h||(h=d.element?null:this.getKey(i,t,n,r));let E=[...this.getFullNode({...d,key:h,index:c,wrapper:SE(t.wrapper,d.wrapper)},this.getChildState(n,d),r?`${r}${i.key}`:i.key,o)];for(let b of E){if(b.value=d.value||t.value,b.value&&this.cache.set(b.value,b),t.type&&b.type!==t.type)throw new Error(`Unsupported type <${Bs(b.type)}> in <${Bs(o.type)}>. Only <${Bs(t.type)}> is supported.`);c++,yield b}f=u.next(E)}return}if(t.key==null)return;let l=this,s={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:Ed(function*(){if(!t.hasChildNodes)return;let a=0;for(let u of t.childNodes()){u.key!=null&&(u.key=`${s.key}${u.key}`),u.index=a;let c=l.getFullNode(u,l.getChildState(n,u),s.key,s);for(let f of c)a++,yield f}})};yield s}constructor(){this.cache=new WeakMap}}function Ed(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function SE(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Bs(e){return e[0].toUpperCase()+e.slice(1)}function CE(e,t,n){let r=p.useMemo(()=>new wE,[]),{children:o,items:i,collection:l}=e;return p.useMemo(()=>{if(l)return l;let s=r.build({children:o,items:i},n);return t(s)},[r,o,i,l,n,t])}function Ol(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function TE(e){return _E(e,0)}function _E(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function Hs(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...bd(e,t),t],o=[...bd(e,n),n],i=r.slice(0,o.length).findIndex((l,s)=>l!==o[s]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(l=>l===n)>=0?1:(o.findIndex(l=>l===t)>=0,-1)}function bd(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const wd=new WeakMap;function rg(e){let t=wd.get(e);if(t!=null)return t;t=0;let n=r=>{for(let o of r)o.type==="section"?n(Ol(o,e)):t++};return n(e),wd.set(e,t),t}class vt extends Set{constructor(t,n,r){super(t),t instanceof vt?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function PE(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function NE(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,l=p.useRef(!1),[,s]=p.useState(!1),a=p.useRef(null),u=p.useRef(null),[,c]=p.useState(null),f=p.useMemo(()=>Sd(e.selectedKeys),[e.selectedKeys]),d=p.useMemo(()=>Sd(e.defaultSelectedKeys,new vt),[e.defaultSelectedKeys]),[h,E]=Do(f,d,e.onSelectionChange),b=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[w,y]=p.useState(o);o==="replace"&&w==="toggle"&&typeof h=="object"&&h.size===0&&y("replace");let m=p.useRef(o);return p.useEffect(()=>{o!==m.current&&(y(o),m.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:w,setSelectionBehavior:y,get isFocused(){return l.current},setFocused(x){l.current=x,s(x)},get focusedKey(){return a.current},get childFocusStrategy(){return u.current},setFocusedKey(x,S="first"){a.current=x,u.current=S,c(x)},selectedKeys:h,setSelectedKeys(x){(r||!PE(x,h))&&E(x)},disabledKeys:b,disabledBehavior:i}}function Sd(e,t){return e?e==="all"?"all":new vt(e):t}class kE{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Hs(this.collection,r,t)<0)&&(t=r)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Hs(this.collection,r,t)>0)&&(t=r)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let n;if(this.state.selectedKeys==="all")n=new vt([t],t,t);else{let r=this.state.selectedKeys,o=r.anchorKey||t;n=new vt(r,o,t);for(let i of this.getKeyRange(o,r.currentKey||t))n.delete(i);for(let i of this.getKeyRange(t,o))this.canSelectItem(i)&&n.add(i)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?Hs(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){let r=[],o=t;for(;o;){let i=this.collection.getItem(o);if((i&&i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&r.push(o),o===n)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let n=new vt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let n=this.canSelectItem(t)?new vt([t],t,t):new vt;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new vt;for(let r of t)if(r=this.getKey(r),r!=null&&(n.add(r),this.selectionMode==="single"))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r;){if(this.canSelectItem(r)){let o=this.collection.getItem(r);o.type==="item"&&t.push(r),o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n(TE(Ol(o,this.collection)).key)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new vt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}constructor(t,n,r){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null}}class lu{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let n=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let l of i.childNodes)n(l)};for(let i of t)n(i);let r,o=0;for(let[i,l]of this.keyMap)r?(r.nextKey=i,l.prevKey=r.key):(this.firstKey=i,l.prevKey=void 0),l.type==="item"&&(l.index=o++),r=l,r.nextKey=void 0;this.lastKey=r==null?void 0:r.key}}function RE(e){let{filter:t}=e,n=NE(e),r=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=p.useCallback(u=>t?new lu(t(u)):new lu(u),[t]),i=p.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=CE(e,o,i),s=p.useMemo(()=>new kE(l,n),[l,n]);const a=p.useRef(null);return p.useEffect(()=>{if(n.focusedKey!=null&&!l.getItem(n.focusedKey)){const u=a.current.getItem(n.focusedKey),c=[...a.current.getKeys()].map(b=>{const w=a.current.getItem(b);return w.type==="item"?w:null}).filter(b=>b!==null),f=[...l.getKeys()].map(b=>{const w=l.getItem(b);return w.type==="item"?w:null}).filter(b=>b!==null),d=c.length-f.length;let h=Math.min(d>1?Math.max(u.index-d+1,0):u.index,f.length-1),E;for(;h>=0;){if(!s.isDisabled(f[h].key)){E=f[h];break}hu.index&&(h=u.index),h--)}n.setFocusedKey(E?E.key:null)}a.current=l},[l,s,n,n.focusedKey]),{collection:l,disabledKeys:r,selectionManager:s}}function LE(e){var t;let[n,r]=Do(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=p.useMemo(()=>n!=null?[n]:[],[n]),{collection:i,disabledKeys:l,selectionManager:s}=RE({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:u=>{var c;let f=(c=u.values().next().value)!==null&&c!==void 0?c:null;f===n&&e.onSelectionChange&&e.onSelectionChange(f),r(f)}}),a=n!=null?i.getItem(n):null;return{collection:i,disabledKeys:l,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:a}}function $E(e){let[t,n]=Do(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=p.useCallback(()=>{n(!0)},[n]),o=p.useCallback(()=>{n(!1)},[n]),i=p.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}function IE(e){var t,n;let{defaultFilter:r,menuTrigger:o="input",allowsEmptyCollection:i=!1,allowsCustomValue:l,shouldCloseOnBlur:s=!0}=e,[a,u]=p.useState(!1),[c,f]=p.useState(!1),[d,h]=p.useState(null),E=X=>{e.onSelectionChange&&e.onSelectionChange(X),X===m&&(Xe(),M())};var b;let{collection:w,selectionManager:y,selectedKey:m,setSelectedKey:x,selectedItem:S,disabledKeys:T}=LE({...e,onSelectionChange:E,items:(b=e.items)!==null&&b!==void 0?b:e.defaultItems});var C,_;let[v,L]=Do(e.inputValue,(_=(C=e.defaultInputValue)!==null&&C!==void 0?C:(t=w.getItem(m))===null||t===void 0?void 0:t.textValue)!==null&&_!==void 0?_:"",e.onInputChange),N=w,P=p.useMemo(()=>e.items!=null||!r?w:ME(w,v,r),[w,v,r,e.items]),[D,k]=p.useState(P),I=p.useRef("focus"),H=$E({...e,onOpenChange:X=>{e.onOpenChange&&e.onOpenChange(X,X?I.current:void 0),y.setFocused(X),X||y.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),J=(X=null,se)=>{let _e=se==="manual"||se==="focus"&&o==="focus";(i||P.size>0||_e&&N.size>0||e.items)&&(_e&&!H.isOpen&&e.items===void 0&&u(!0),I.current=se,h(X),H.open())},O=(X=null,se)=>{let _e=se==="manual"||se==="focus"&&o==="focus";!(i||P.size>0||_e&&N.size>0||e.items)&&!H.isOpen||(_e&&!H.isOpen&&e.items===void 0&&u(!0),H.isOpen||(I.current=se),B(X))},A=p.useCallback(()=>{k(a?N:P)},[a,N,P]),B=p.useCallback((X=null)=>{H.isOpen&&A(),h(X),H.toggle()},[H,A]),M=p.useCallback(()=>{H.isOpen&&(A(),H.close())},[H,A]),[U,W]=p.useState(v),Xe=()=>{var X,se;let _e=(se=(X=w.getItem(m))===null||X===void 0?void 0:X.textValue)!==null&&se!==void 0?se:"";W(_e),L(_e)};var Ue,St;let Re=p.useRef((St=(Ue=e.selectedKey)!==null&&Ue!==void 0?Ue:e.defaultSelectedKey)!==null&&St!==void 0?St:null);var K;let ee=p.useRef((K=(n=w.getItem(m))===null||n===void 0?void 0:n.textValue)!==null&&K!==void 0?K:"");p.useEffect(()=>{var X;c&&(P.size>0||i)&&!H.isOpen&&v!==U&&o!=="manual"&&J(null,"input"),!a&&!i&&H.isOpen&&P.size===0&&M(),m!=null&&m!==Re.current&&M(),v!==U&&(y.setFocusedKey(null),u(!1),v===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&x(null)),m!==Re.current&&(e.inputValue===void 0||e.selectedKey===void 0)?Xe():U!==v&&W(v);var se;let _e=(se=(X=w.getItem(m))===null||X===void 0?void 0:X.textValue)!==null&&se!==void 0?se:"";!c&&m!=null&&e.inputValue===void 0&&m===Re.current&&ee.current!==_e&&(W(_e),L(_e)),Re.current=m,ee.current=_e});let bn=ng({...e,value:p.useMemo(()=>({inputValue:v,selectedKey:m}),[v,m])}),Ir=()=>{l&&m==null?Uo():zo()},Uo=()=>{Re.current=null,x(null),M()},zo=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var X;e.onSelectionChange(m);var se;let _e=(se=(X=w.getItem(m))===null||X===void 0?void 0:X.textValue)!==null&&se!==void 0?se:"";W(_e),M()}else Xe(),M()};const ds=()=>{if(l){var X,se;const _e=(se=(X=w.getItem(m))===null||X===void 0?void 0:X.textValue)!==null&&se!==void 0?se:"";v===_e?zo():Uo()}else zo()};let M0=()=>{H.isOpen&&y.focusedKey!=null?m===y.focusedKey?zo():x(y.focusedKey):ds()},af=p.useRef(v),A0=X=>{X?(af.current=v,o==="focus"&&J(null,"focus")):(s&&ds(),v!==af.current&&bn.commitValidation()),f(X)},O0=p.useMemo(()=>H.isOpen?a?N:P:D,[H.isOpen,N,P,a,D]);return{...bn,...H,focusStrategy:d,toggle:O,open:J,close:ds,selectionManager:y,selectedKey:m,setSelectedKey:x,disabledKeys:T,isFocused:c,setFocused:A0,selectedItem:S,collection:O0,inputValue:v,setInputValue:L,commit:M0,revert:Ir}}function ME(e,t,n){return new lu(og(e,e,t,n))}function og(e,t,n,r){let o=[];for(let i of t)if(i.type==="section"&&i.hasChildNodes){let l=og(e,Ol(i,e),n,r);[...l].some(s=>s.type==="item")&&o.push({...i,childNodes:l})}else i.type==="item"&&r(i.textValue,n)?o.push({...i}):i.type!=="item"&&o.push({...i});return o}const AE=Symbol.for("react-aria.i18n.locale"),OE=Symbol.for("react-aria.i18n.strings");let Ur;class Fl{getStringForLocale(t,n){let r=this.getStringsForLocale(n)[t];if(!r)throw new Error(`Could not find intl message ${t} in ${n} locale`);return r}getStringsForLocale(t){let n=this.strings[t];return n||(n=FE(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[AE];if(Ur===void 0){let o=window[OE];if(!o)return null;Ur={};for(let i in o)Ur[i]=new Fl({[n]:o[i]},n)}let r=Ur==null?void 0:Ur[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings={...t},this.defaultLocale=n}}function FE(e,t,n="en-US"){if(t[e])return t[e];let r=DE(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function DE(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Cd=new Map,Td=new Map;class jE{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,l=Cd.get(i);l||(l=new Intl.PluralRules(this.locale,{type:r}),Cd.set(i,l));let s=l.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=Td.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Td.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const ol={prefix:String(Math.round(Math.random()*1e10)),current:0},ig=q.createContext(ol),BE=q.createContext(!1);let HE=!!(typeof window<"u"&&window.document&&window.document.createElement),Ks=new WeakMap;function KE(e=!1){let t=p.useContext(ig),n=p.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let l=Ks.get(i);l==null?Ks.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==l.state&&(t.current=l.id,Ks.delete(i))}n.current=++t.current}return n.current}function UE(e){let t=p.useContext(ig);t===ol&&!HE&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=KE(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function zE(e){let t=q.useId(),[n]=p.useState(Oc()),r=n?"react-aria":`react-aria${ol.prefix}`;return e||`${r}-${t}`}const VE=typeof q.useId=="function"?zE:UE;function GE(){return!1}function WE(){return!0}function QE(e){return()=>{}}function Oc(){return typeof q.useSyncExternalStore=="function"?q.useSyncExternalStore(QE,GE,WE):p.useContext(BE)}function lg(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{};function je(e){const t=p.useRef(null);return ue(()=>{t.current=e},[e]),p.useCallback((...n)=>{const r=t.current;return r(...n)},[])}function XE(e){let[t,n]=p.useState(e),r=p.useRef(null),o=je(()=>{let l=r.current.next();if(l.done){r.current=null;return}t===l.value?o():n(l.value)});ue(()=>{r.current&&o()});let i=je(l=>{r.current=l(t),o()});return[t,i]}let YE=!!(typeof window<"u"&&window.document&&window.document.createElement),il=new Map;function mn(e){let[t,n]=p.useState(e),r=p.useRef(null),o=VE(t),i=p.useCallback(l=>{r.current=l},[]);return YE&&il.set(o,i),ue(()=>{let l=o;return()=>{il.delete(l)}},[o]),p.useEffect(()=>{let l=r.current;l&&(r.current=null,n(l))}),o}function ZE(e,t){if(e===t)return e;let n=il.get(e);if(n)return n(t),t;let r=il.get(t);return r?(r(e),e):t}function ll(e=[]){let t=mn(),[n,r]=XE(t),o=p.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return ue(o,[t,o,...e]),n}function _o(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const pe=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Po=e=>e&&"window"in e&&e.window===e?e:pe(e).defaultView||window;function Oe(...e){let t={...e[0]};for(let n=1;n=65&&o.charCodeAt(2)<=90?t[o]=_o(i,l):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof l=="string"?t[o]=qE(i,l):o==="id"&&i&&l?t.id=ZE(i,l):t[o]=l!==void 0?l:i}}return t}const JE=new Set(["id"]),eb=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),tb=new Set(["href","target","rel","download","ping","referrerPolicy"]),nb=/^(data-.*)$/;function Fc(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(JE.has(l)||n&&eb.has(l)||r&&tb.has(l)||o!=null&&o.has(l)||nb.test(l))&&(i[l]=e[l]);return i}function jt(e){if(rb())e.focus({preventScroll:!0});else{let t=ob(e);e.focus(),ib(t)}}let ai=null;function rb(){if(ai==null){ai=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return ai=!0,!0}})}catch{}}return ai}function ob(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Dc(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function gn(){return Dc(/^Mac/i)}function lb(){return Dc(/^iPhone/i)}function sg(){return Dc(/^iPad/i)||gn()&&navigator.maxTouchPoints>1}function jl(){return lb()||sg()}function Ri(){return gn()||jl()}function ag(){return Dl(/AppleWebKit/i)&&!sb()}function sb(){return Dl(/Chrome/i)}function ug(){return Dl(/Android/i)}function ab(){return Dl(/Firefox/i)}const ub=p.createContext({isNative:!0,open:fb});function jc(){return p.useContext(ub)}function jn(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:l,altKey:s,shiftKey:a}=t;ab()&&!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key")&&e.target==="_blank"&&(gn()?i=!0:l=!0);let u=ag()&&gn()&&!sg()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:l,altKey:s,shiftKey:a}):new MouseEvent("click",{metaKey:i,ctrlKey:l,altKey:s,shiftKey:a,bubbles:!0,cancelable:!0});jn.isOpening=n,jt(e),e.dispatchEvent(u),jn.isOpening=!1}jn.isOpening=!1;function cb(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function fb(e,t){cb(e,n=>jn(n,t))}let Yn=new Map,su=new Set;function _d(){if(typeof window>"u")return;let e=n=>{let r=Yn.get(n.target);r||(r=new Set,Yn.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{let r=Yn.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),Yn.delete(n.target)),Yn.size===0)){for(let o of su)o();su.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?_d():document.addEventListener("DOMContentLoaded",_d));function cg(e){requestAnimationFrame(()=>{Yn.size===0?e():su.add(e)})}function fg(){let e=p.useRef(new Map),t=p.useCallback((o,i,l,s)=>{let a=s!=null&&s.once?(...u)=>{e.current.delete(l),l(...u)}:l;e.current.set(l,{type:i,eventTarget:o,fn:a,options:s}),o.addEventListener(i,l,s)},[]),n=p.useCallback((o,i,l,s)=>{var a;let u=((a=e.current.get(l))===null||a===void 0?void 0:a.fn)||l;o.removeEventListener(i,u,s),e.current.delete(l)},[]),r=p.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return p.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function sl(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=mn(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function db(){return typeof window.ResizeObserver<"u"}function hb(e){const{ref:t,onResize:n}=e;p.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(db()){const o=new window.ResizeObserver(i=>{i.length&&n()});return o.observe(r),()=>{r&&o.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function dg(e,t){ue(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}})}function al(e,t){for(ul(e,t)&&(e=e.parentElement);e&&!ul(e,t);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function ul(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}let pb=0;const Us=new Map;function mb(e){let[t,n]=p.useState(void 0);return ue(()=>{if(!e)return;let r=Us.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${pb++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},Us.set(e,r)}return r.refCount++,()=>{--r.refCount===0&&(r.element.remove(),Us.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function gb(e,t,n,r){let o=je(n),i=n==null;p.useEffect(()=>{if(i)return;let l=e.current;return l.addEventListener(t,o,r),()=>{l.removeEventListener(t,o,r)}},[e,t,r,i,o])}function hg(e,t){let n=Pd(e,t,"left"),r=Pd(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,l=e.scrollLeft,s=e.scrollTop,{borderTopWidth:a,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),f=e.scrollTop+parseInt(a,10),d=c+e.clientWidth,h=f+e.clientHeight;n<=l?l=n-parseInt(u,10):n+o>d&&(l+=n+o-d),r<=f?s=r-parseInt(a,10):r+i>h&&(s+=r+i-h),e.scrollLeft=l,e.scrollTop=s}function Pd(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function Nd(e,t){if(document.contains(e)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let s=al(e);for(;e&&s&&e!==l&&s!==l;)hg(s,e),e=s,s=al(e)}else{var n;let{left:s,top:a}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:u,top:c}=e.getBoundingClientRect();if(Math.abs(s-u)>1||Math.abs(a-c)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function au(e){return e.mozInputSource===0&&e.isTrusted?!0:ug()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function vb(e){return!ug()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function yb(e,t,n){let r=p.useRef(t),o=je(()=>{n&&n(r.current)});p.useEffect(()=>{var i;let l=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return l==null||l.addEventListener("reset",o),()=>{l==null||l.removeEventListener("reset",o)}},[e,o])}function xb(e,t){return t.get?t.get.call(e):t.value}function pg(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function Eb(e,t){var n=pg(e,t,"get");return xb(e,n)}function bb(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function kd(e,t,n){var r=pg(e,t,"set");return bb(e,r,n),n}let fr="default",uu="",Li=new WeakMap;function Rd(e){if(jl()){if(fr==="default"){const t=pe(e);uu=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}fr="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(Li.set(e,e.style.userSelect),e.style.userSelect="none")}function ui(e){if(jl()){if(fr!=="disabled")return;fr="restoring",setTimeout(()=>{cg(()=>{if(fr==="restoring"){const t=pe(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=uu||""),uu="",fr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Li.has(e)){let t=Li.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Li.delete(e)}}const Bc=q.createContext({register:()=>{}});Bc.displayName="PressResponderContext";function wb(e){let t=p.useContext(Bc);if(t){let{register:n,...r}=t;e=Oe(r,e),n()}return dg(t,e.ref),e}var ci=new WeakMap;class fi{continuePropagation(){kd(this,ci,!1)}get shouldStopPropagation(){return Eb(this,ci)}constructor(t,n,r){yE(this,ci,{writable:!0,value:void 0}),kd(this,ci,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const Ld=Symbol("linkClicked");function mg(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:l,isPressed:s,preventFocusOnPress:a,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:f,...d}=wb(e),[h,E]=p.useState(!1),b=p.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:w,removeAllGlobalListeners:y}=fg(),m=je((v,L)=>{let N=b.current;if(l||N.didFirePressStart)return!1;let P=!0;if(N.isTriggeringEvent=!0,r){let D=new fi("pressstart",L,v);r(D),P=D.shouldStopPropagation}return n&&n(!0),N.isTriggeringEvent=!1,N.didFirePressStart=!0,E(!0),P}),x=je((v,L,N=!0)=>{let P=b.current;if(!P.didFirePressStart)return!1;P.ignoreClickAfterPress=!0,P.didFirePressStart=!1,P.isTriggeringEvent=!0;let D=!0;if(o){let k=new fi("pressend",L,v);o(k),D=k.shouldStopPropagation}if(n&&n(!1),E(!1),t&&N&&!l){let k=new fi("press",L,v);t(k),D&&(D=k.shouldStopPropagation)}return P.isTriggeringEvent=!1,D}),S=je((v,L)=>{let N=b.current;if(l)return!1;if(i){N.isTriggeringEvent=!0;let P=new fi("pressup",L,v);return i(P),N.isTriggeringEvent=!1,P.shouldStopPropagation}return!0}),T=je(v=>{let L=b.current;L.isPressed&&L.target&&(L.isOverTarget&&L.pointerType!=null&&x(It(L.target,v),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,y(),c||ui(L.target))}),C=je(v=>{u&&T(v)}),_=p.useMemo(()=>{let v=b.current,L={onKeyDown(P){if(zs(P.nativeEvent,P.currentTarget)&&P.currentTarget.contains(P.target)){var D;Id(P.target,P.key)&&P.preventDefault();let k=!0;!v.isPressed&&!P.repeat&&(v.target=P.currentTarget,v.isPressed=!0,k=m(P,"keyboard"),w(pe(P.currentTarget),"keyup",N,!1)),k&&P.stopPropagation(),P.metaKey&&gn()&&((D=v.metaKeyEvents)===null||D===void 0||D.set(P.key,P.nativeEvent))}else P.key==="Meta"&&(v.metaKeyEvents=new Map)},onKeyUp(P){zs(P.nativeEvent,P.currentTarget)&&!P.repeat&&P.currentTarget.contains(P.target)&&v.target&&S(It(v.target,P),"keyboard")},onClick(P){if(!(P&&!P.currentTarget.contains(P.target))&&P&&P.button===0&&!v.isTriggeringEvent&&!jn.isOpening){let D=!0;if(l&&P.preventDefault(),!v.ignoreClickAfterPress&&!v.ignoreEmulatedMouseEvents&&!v.isPressed&&(v.pointerType==="virtual"||au(P.nativeEvent))){!l&&!a&&jt(P.currentTarget);let k=m(P,"virtual"),I=S(P,"virtual"),H=x(P,"virtual");D=k&&I&&H}v.ignoreEmulatedMouseEvents=!1,v.ignoreClickAfterPress=!1,D&&P.stopPropagation()}}},N=P=>{var D;if(v.isPressed&&v.target&&zs(P,v.target)){var k;Id(P.target,P.key)&&P.preventDefault();let H=P.target,J=x(It(v.target,P),"keyboard",v.target.contains(H));y(),J&&P.stopPropagation(),P.key!=="Enter"&&Hc(v.target)&&v.target.contains(H)&&!P[Ld]&&(P[Ld]=!0,jn(v.target,P,!1)),v.isPressed=!1,(k=v.metaKeyEvents)===null||k===void 0||k.delete(P.key)}else if(P.key==="Meta"&&!((D=v.metaKeyEvents)===null||D===void 0)&&D.size){var I;let H=v.metaKeyEvents;v.metaKeyEvents=void 0;for(let J of H.values())(I=v.target)===null||I===void 0||I.dispatchEvent(new KeyboardEvent("keyup",J))}};if(typeof PointerEvent<"u"){L.onPointerDown=I=>{if(I.button!==0||!I.currentTarget.contains(I.target))return;if(vb(I.nativeEvent)){v.pointerType="virtual";return}Vs(I.currentTarget)&&I.preventDefault(),v.pointerType=I.pointerType;let H=!0;v.isPressed||(v.isPressed=!0,v.isOverTarget=!0,v.activePointerId=I.pointerId,v.target=I.currentTarget,!l&&!a&&jt(I.currentTarget),c||Rd(v.target),H=m(I,v.pointerType),w(pe(I.currentTarget),"pointermove",P,!1),w(pe(I.currentTarget),"pointerup",D,!1),w(pe(I.currentTarget),"pointercancel",k,!1)),H&&I.stopPropagation()},L.onMouseDown=I=>{I.currentTarget.contains(I.target)&&I.button===0&&(Vs(I.currentTarget)&&I.preventDefault(),I.stopPropagation())},L.onPointerUp=I=>{!I.currentTarget.contains(I.target)||v.pointerType==="virtual"||I.button===0&&qn(I,I.currentTarget)&&S(I,v.pointerType||I.pointerType)};let P=I=>{I.pointerId===v.activePointerId&&(v.target&&qn(I,v.target)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,m(It(v.target,I),v.pointerType)):v.target&&v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,x(It(v.target,I),v.pointerType,!1),C(I)))},D=I=>{I.pointerId===v.activePointerId&&v.isPressed&&I.button===0&&v.target&&(qn(I,v.target)&&v.pointerType!=null?x(It(v.target,I),v.pointerType):v.isOverTarget&&v.pointerType!=null&&x(It(v.target,I),v.pointerType,!1),v.isPressed=!1,v.isOverTarget=!1,v.activePointerId=null,v.pointerType=null,y(),c||ui(v.target))},k=I=>{T(I)};L.onDragStart=I=>{I.currentTarget.contains(I.target)&&T(I)}}else{L.onMouseDown=k=>{if(!(k.button!==0||!k.currentTarget.contains(k.target))){if(Vs(k.currentTarget)&&k.preventDefault(),v.ignoreEmulatedMouseEvents){k.stopPropagation();return}v.isPressed=!0,v.isOverTarget=!0,v.target=k.currentTarget,v.pointerType=au(k.nativeEvent)?"virtual":"mouse",!l&&!a&&jt(k.currentTarget),m(k,v.pointerType)&&k.stopPropagation(),w(pe(k.currentTarget),"mouseup",P,!1)}},L.onMouseEnter=k=>{if(!k.currentTarget.contains(k.target))return;let I=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!0,I=m(k,v.pointerType)),I&&k.stopPropagation()},L.onMouseLeave=k=>{if(!k.currentTarget.contains(k.target))return;let I=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!1,I=x(k,v.pointerType,!1),C(k)),I&&k.stopPropagation()},L.onMouseUp=k=>{k.currentTarget.contains(k.target)&&!v.ignoreEmulatedMouseEvents&&k.button===0&&S(k,v.pointerType||"mouse")};let P=k=>{if(k.button===0){if(v.isPressed=!1,y(),v.ignoreEmulatedMouseEvents){v.ignoreEmulatedMouseEvents=!1;return}v.target&&qn(k,v.target)&&v.pointerType!=null?x(It(v.target,k),v.pointerType):v.target&&v.isOverTarget&&v.pointerType!=null&&x(It(v.target,k),v.pointerType,!1),v.isOverTarget=!1}};L.onTouchStart=k=>{if(!k.currentTarget.contains(k.target))return;let I=Sb(k.nativeEvent);I&&(v.activePointerId=I.identifier,v.ignoreEmulatedMouseEvents=!0,v.isOverTarget=!0,v.isPressed=!0,v.target=k.currentTarget,v.pointerType="touch",!l&&!a&&jt(k.currentTarget),c||Rd(v.target),m(k,v.pointerType)&&k.stopPropagation(),w(Po(k.currentTarget),"scroll",D,!0))},L.onTouchMove=k=>{if(!k.currentTarget.contains(k.target))return;if(!v.isPressed){k.stopPropagation();return}let I=$d(k.nativeEvent,v.activePointerId),H=!0;I&&qn(I,k.currentTarget)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,H=m(k,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,H=x(k,v.pointerType,!1),C(k)),H&&k.stopPropagation()},L.onTouchEnd=k=>{if(!k.currentTarget.contains(k.target))return;if(!v.isPressed){k.stopPropagation();return}let I=$d(k.nativeEvent,v.activePointerId),H=!0;I&&qn(I,k.currentTarget)&&v.pointerType!=null?(S(k,v.pointerType),H=x(k,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(H=x(k,v.pointerType,!1)),H&&k.stopPropagation(),v.isPressed=!1,v.activePointerId=null,v.isOverTarget=!1,v.ignoreEmulatedMouseEvents=!0,v.target&&!c&&ui(v.target),y()},L.onTouchCancel=k=>{k.currentTarget.contains(k.target)&&(k.stopPropagation(),v.isPressed&&T(k))};let D=k=>{v.isPressed&&k.target.contains(v.target)&&T({currentTarget:v.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=k=>{k.currentTarget.contains(k.target)&&T(k)}}return L},[w,l,a,y,c,T,C,x,m,S]);return p.useEffect(()=>()=>{var v;c||ui((v=b.current.target)!==null&&v!==void 0?v:void 0)},[c]),{isPressed:s||h,pressProps:Oe(d,_)}}function Hc(e){return e.tagName==="A"&&e.hasAttribute("href")}function zs(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof Po(o).HTMLInputElement&&!gg(o,n)||o instanceof Po(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&Hc(o))&&n!=="Enter")}function Sb(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function $d(e,t){const n=e.changedTouches;for(let r=0;rt.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function qn(e,t){let n=t.getBoundingClientRect(),r=Cb(e);return Tb(n,r)}function Vs(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Id(e,t){return e instanceof HTMLInputElement?!gg(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Hc(e)}const _b=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function gg(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":_b.has(e.type)}function Pb({children:e}){let t=p.useMemo(()=>({register:()=>{}}),[]);return q.createElement(Bc.Provider,{value:t},e)}class Nb{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function vg(e){let t=p.useRef({isFocused:!1,observer:null});ue(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=je(r=>{e==null||e(r)});return p.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=l=>{t.current.isFocused=!1,o.disabled&&n(new Nb("blur",l)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var l;(l=t.current.observer)===null||l===void 0||l.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function yg(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=p.useCallback(a=>{if(a.target===a.currentTarget)return r&&r(a),o&&o(!1),!0},[r,o]),l=vg(i),s=p.useCallback(a=>{a.target===a.currentTarget&&document.activeElement===a.target&&(n&&n(a),o&&o(!0),l(a))},[o,n,l]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?i:void 0}}}let zn=null,cu=new Set,Md=!1,Bn=!1,fu=!1;const kb={Tab:!0,Escape:!0};function Bl(e,t){for(let n of cu)n(e,t)}function Rb(e){return!(e.metaKey||!gn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ad(e){Bn=!0,Rb(e)&&(zn="keyboard",Bl("keyboard",e))}function Xn(e){zn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Bn=!0,Bl("pointer",e))}function Lb(e){au(e)&&(Bn=!0,zn="virtual")}function $b(e){e.target===window||e.target===document||(!Bn&&!fu&&(zn="virtual",Bl("virtual",e)),Bn=!1,fu=!1)}function Ib(){Bn=!1,fu=!0}function du(){if(typeof window>"u"||Md)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Bn=!0,e.apply(this,arguments)},document.addEventListener("keydown",Ad,!0),document.addEventListener("keyup",Ad,!0),document.addEventListener("click",Lb,!0),window.addEventListener("focus",$b,!0),window.addEventListener("blur",Ib,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Xn,!0),document.addEventListener("pointermove",Xn,!0),document.addEventListener("pointerup",Xn,!0)):(document.addEventListener("mousedown",Xn,!0),document.addEventListener("mousemove",Xn,!0),document.addEventListener("mouseup",Xn,!0)),Md=!0}typeof document<"u"&&(document.readyState!=="loading"?du():document.addEventListener("DOMContentLoaded",du));function cl(){return zn!=="pointer"}function hu(){return zn}function Mb(e){zn=e,Bl(e,null)}const Ab=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ob(e,t,n){var r;return e=e||(n==null?void 0:n.target)instanceof HTMLInputElement&&!Ab.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof HTMLTextAreaElement||(n==null?void 0:n.target)instanceof HTMLElement&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof KeyboardEvent&&!kb[n.key])}function Fb(e,t,n){du(),p.useEffect(()=>{let r=(o,i)=>{Ob(!!(n!=null&&n.isTextInput),o,i)&&e(cl())};return cu.add(r),()=>{cu.delete(r)}},t)}function Hl(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=p.useRef({isFocusWithin:!1}),l=p.useCallback(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(u),o&&o(!1))},[n,o,i]),s=vg(l),a=p.useCallback(u=>{!i.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),o&&o(!0),i.current.isFocusWithin=!0,s(u))},[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:a,onBlur:l}}}let fl=!1,Gs=0;function pu(){fl=!0,setTimeout(()=>{fl=!1},50)}function Od(e){e.pointerType==="touch"&&pu()}function Db(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Od):document.addEventListener("touchend",pu),Gs++,()=>{Gs--,!(Gs>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Od):document.removeEventListener("touchend",pu))}}function jb(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,l]=p.useState(!1),s=p.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;p.useEffect(Db,[]);let{hoverProps:a,triggerHoverEnd:u}=p.useMemo(()=>{let c=(h,E)=>{if(s.pointerType=E,o||E==="touch"||s.isHovered||!h.currentTarget.contains(h.target))return;s.isHovered=!0;let b=h.currentTarget;s.target=b,t&&t({type:"hoverstart",target:b,pointerType:E}),n&&n(!0),l(!0)},f=(h,E)=>{if(s.pointerType="",s.target=null,E==="touch"||!s.isHovered)return;s.isHovered=!1;let b=h.currentTarget;r&&r({type:"hoverend",target:b,pointerType:E}),n&&n(!1),l(!1)},d={};return typeof PointerEvent<"u"?(d.onPointerEnter=h=>{fl&&h.pointerType==="mouse"||c(h,h.pointerType)},d.onPointerLeave=h=>{!o&&h.currentTarget.contains(h.target)&&f(h,h.pointerType)}):(d.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},d.onMouseEnter=h=>{!s.ignoreEmulatedMouseEvents&&!fl&&c(h,"mouse"),s.ignoreEmulatedMouseEvents=!1},d.onMouseLeave=h=>{!o&&h.currentTarget.contains(h.target)&&f(h,"mouse")}),{hoverProps:d,triggerHoverEnd:f}},[t,n,r,o,s]);return p.useEffect(()=>{o&&u({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:a,isHovered:i}}function Bb(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=p.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=je(a=>{n&&di(a,t)&&(o&&o(a),i.current.isPointerDown=!0)}),s=je(a=>{n&&n(a)});p.useEffect(()=>{let a=i.current;if(r)return;const u=t.current,c=pe(u);if(typeof PointerEvent<"u"){let f=d=>{a.isPointerDown&&di(d,t)&&s(d),a.isPointerDown=!1};return c.addEventListener("pointerdown",l,!0),c.addEventListener("pointerup",f,!0),()=>{c.removeEventListener("pointerdown",l,!0),c.removeEventListener("pointerup",f,!0)}}else{let f=h=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&di(h,t)&&s(h),a.isPointerDown=!1},d=h=>{a.ignoreEmulatedMouseEvents=!0,a.isPointerDown&&di(h,t)&&s(h),a.isPointerDown=!1};return c.addEventListener("mousedown",l,!0),c.addEventListener("mouseup",f,!0),c.addEventListener("touchstart",l,!0),c.addEventListener("touchend",d,!0),()=>{c.removeEventListener("mousedown",l,!0),c.removeEventListener("mouseup",f,!0),c.removeEventListener("touchstart",l,!0),c.removeEventListener("touchend",d,!0)}}},[t,r,l,s])}function di(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function Fd(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function Hb(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Fd(e.onKeyDown),onKeyUp:Fd(e.onKeyUp)}}}const Kb=500;function xg(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=Kb,accessibilityDescription:l}=e;const s=p.useRef();let{addGlobalListener:a,removeGlobalListener:u}=fg(),{pressProps:c}=mg({isDisabled:t,onPressStart(d){if(d.continuePropagation(),(d.pointerType==="mouse"||d.pointerType==="touch")&&(n&&n({...d,type:"longpressstart"}),s.current=setTimeout(()=>{d.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...d,type:"longpress"}),s.current=void 0},i),d.pointerType==="touch")){let h=E=>{E.preventDefault()};a(d.target,"contextmenu",h,{once:!0}),a(window,"pointerup",()=>{setTimeout(()=>{u(d.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(d){s.current&&clearTimeout(s.current),r&&(d.pointerType==="mouse"||d.pointerType==="touch")&&r({...d,type:"longpressend"})}}),f=mb(o&&!t?l:void 0);return{longPressProps:Oe(c,f)}}function No(e){const t=pe(e);if(hu()==="virtual"){let n=t.activeElement;cg(()=>{t.activeElement===n&&e.isConnected&&jt(e)})}else jt(e)}function Ub(e){const t=Po(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:l,visibility:s}=i(e);o=l!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function zb(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Eg(e,t){return e.nodeName!=="#comment"&&Ub(e)&&zb(e,t)&&(!e.parentElement||Eg(e.parentElement,e))}const Dd=q.createContext(null);let te=null;function Vb(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=p.useRef(null),l=p.useRef(null),s=p.useRef([]),{parentNode:a}=p.useContext(Dd)||{},u=p.useMemo(()=>new mu({scopeRef:s}),[s]);ue(()=>{let d=a||me.root;if(me.getTreeNode(d.scopeRef)&&te&&!hl(te,d.scopeRef)){let h=me.getTreeNode(te);h&&(d=h)}d.addChild(u),me.addNode(u)},[u,a]),ue(()=>{let d=me.getTreeNode(s);d&&(d.contain=!!n)},[n]),ue(()=>{var d;let h=(d=i.current)===null||d===void 0?void 0:d.nextSibling,E=[];for(;h&&h!==l.current;)E.push(h),h=h.nextSibling;s.current=E},[t]),Zb(s,r,n),qb(s,n),ew(s,r,n),Yb(s,o),p.useEffect(()=>{const d=pe(s.current?s.current[0]:void 0).activeElement;let h=null;if(Me(d,s.current)){for(let E of me.traverse())E.scopeRef&&Me(d,E.scopeRef.current)&&(h=E);h===me.getTreeNode(s)&&(te=h.scopeRef)}},[s]),ue(()=>()=>{var d,h,E;let b=(E=(h=me.getTreeNode(s))===null||h===void 0||(d=h.parent)===null||d===void 0?void 0:d.scopeRef)!==null&&E!==void 0?E:null;(s===te||hl(s,te))&&(!b||me.getTreeNode(b))&&(te=b),me.removeTreeNode(s)},[s]);let c=p.useMemo(()=>Gb(s),[]),f=p.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return q.createElement(Dd.Provider,{value:f},q.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,q.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Gb(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:l}=t,s=r||pe(n[0]).activeElement,a=n[0].previousElementSibling,u=kn(n),c=Ht(u,{tabbable:o,accept:l},n);c.currentNode=Me(s,n)?s:a;let f=c.nextNode();return!f&&i&&(c.currentNode=a,f=c.nextNode()),f&&Bt(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:l}=t,s=r||pe(n[0]).activeElement,a=n[n.length-1].nextElementSibling,u=kn(n),c=Ht(u,{tabbable:o,accept:l},n);c.currentNode=Me(s,n)?s:a;let f=c.previousNode();return!f&&i&&(c.currentNode=a,f=c.previousNode()),f&&Bt(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=kn(n),l=Ht(i,{tabbable:r,accept:o},n);l.currentNode=n[0].previousElementSibling;let s=l.nextNode();return s&&Bt(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=kn(n),l=Ht(i,{tabbable:r,accept:o},n);l.currentNode=n[n.length-1].nextElementSibling;let s=l.previousNode();return s&&Bt(s,!0),s}}}const Kc=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],Wb=Kc.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Kc.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Qb=Kc.join(':not([hidden]):not([tabindex="-1"]),');function kn(e){return e[0].parentElement}function Xr(e){let t=me.getTreeNode(te);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function qb(e,t){let n=p.useRef(),r=p.useRef();ue(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const i=pe(o?o[0]:void 0);let l=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Xr(e))return;let c=i.activeElement,f=e.current;if(!f||!Me(c,f))return;let d=kn(f),h=Ht(d,{tabbable:!0},f);if(!c)return;h.currentNode=c;let E=u.shiftKey?h.previousNode():h.nextNode();E||(h.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,E=u.shiftKey?h.previousNode():h.nextNode()),u.preventDefault(),E&&Bt(E,!0)},s=u=>{(!te||hl(te,e))&&Me(u.target,e.current)?(te=e,n.current=u.target):Xr(e)&&!dl(u.target,e)?n.current?n.current.focus():te&&te.current&&pl(te.current):Xr(e)&&(n.current=u.target)},a=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(i.activeElement&&Xr(e)&&!dl(i.activeElement,e))if(te=e,i.body.contains(u.target)){var c;n.current=u.target,(c=n.current)===null||c===void 0||c.focus()}else te.current&&pl(te.current)})};return i.addEventListener("keydown",l,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(u=>u.addEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.addEventListener("focusout",a,!1)),()=>{i.removeEventListener("keydown",l,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(u=>u.removeEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.removeEventListener("focusout",a,!1))}},[e,t]),ue(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function bg(e){return dl(e)}function Me(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function dl(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of me.traverse(me.getTreeNode(t)))if(n&&Me(e,n.current))return!0;return!1}function Xb(e){return dl(e,te)}function hl(e,t){var n;let r=(n=me.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Bt(e,t=!1){if(e!=null&&!t)try{No(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function pl(e,t=!0){let n=e[0].previousElementSibling,r=kn(e),o=Ht(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();t&&!i&&(r=kn(e),o=Ht(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),Bt(i)}function Yb(e,t){const n=q.useRef(t);p.useEffect(()=>{if(n.current){te=e;const r=pe(e.current?e.current[0]:void 0);!Me(r.activeElement,te.current)&&e.current&&pl(e.current)}n.current=!1},[e])}function Zb(e,t,n){ue(()=>{if(t||n)return;let r=e.current;const o=pe(r?r[0]:void 0);let i=l=>{let s=l.target;Me(s,e.current)?te=e:bg(s)||(te=null)};return o.addEventListener("focusin",i,!1),r==null||r.forEach(l=>l.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),r==null||r.forEach(l=>l.removeEventListener("focusin",i,!1))}},[e,t,n])}function Jb(e){let t=me.getTreeNode(te);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function ew(e,t,n){const r=p.useRef(typeof document<"u"?pe(e.current?e.current[0]:void 0).activeElement:null);ue(()=>{let o=e.current;const i=pe(o?o[0]:void 0);if(!t||n)return;let l=()=>{(!te||hl(te,e))&&Me(i.activeElement,e.current)&&(te=e)};return i.addEventListener("focusin",l,!1),o==null||o.forEach(s=>s.addEventListener("focusin",l,!1)),()=>{i.removeEventListener("focusin",l,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",l,!1))}},[e,n]),ue(()=>{const o=pe(e.current?e.current[0]:void 0);if(!t)return;let i=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Xr(e))return;let s=o.activeElement;if(!Me(s,e.current))return;let a=me.getTreeNode(e);if(!a)return;let u=a.nodeToRestore,c=Ht(o.body,{tabbable:!0});c.currentNode=s;let f=l.shiftKey?c.previousNode():c.nextNode();if((!u||!o.body.contains(u)||u===o.body)&&(u=void 0,a.nodeToRestore=void 0),(!f||!Me(f,e.current))&&u){c.currentNode=u;do f=l.shiftKey?c.previousNode():c.nextNode();while(Me(f,e.current));l.preventDefault(),l.stopPropagation(),f?Bt(f,!0):bg(u)?Bt(u,!0):s.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),ue(()=>{const o=pe(e.current?e.current[0]:void 0);if(!t)return;let i=me.getTreeNode(e);if(i){var l;return i.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let s=me.getTreeNode(e);if(!s)return;let a=s.nodeToRestore;if(t&&a&&(Me(o.activeElement,e.current)||o.activeElement===o.body&&Jb(e))){let u=me.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let c=u.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){Bt(c.nodeToRestore);return}c=c.parent}for(c=u.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&me.getTreeNode(c.scopeRef)){pl(c.scopeRef.current,!0);return}c=c.parent}}})}}}},[e,t])}function Ht(e,t,n){let r=t!=null&&t.tabbable?Qb:Wb,o=pe(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&Eg(i)&&(!n||Me(i,n))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}class Uc{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new mu({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Me(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Uc;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new mu({scopeRef:null}),this.fastMap.set(null,this.root)}}class mu{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let me=new Uc;function tw(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=p.useRef({isFocused:!1,isFocusVisible:t||cl()}),[i,l]=p.useState(!1),[s,a]=p.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=p.useCallback(()=>a(o.current.isFocused&&o.current.isFocusVisible),[]),c=p.useCallback(h=>{o.current.isFocused=h,l(h),u()},[u]);Fb(h=>{o.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:f}=yg({isDisabled:r,onFocusChange:c}),{focusWithinProps:d}=Hl({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:s,focusProps:r?d:f}}let nw=q.createContext(null);function rw(e){let t=p.useContext(nw)||{};dg(t,e);let{ref:n,...r}=t;return r}function ow(e,t){let{focusProps:n}=yg(e),{keyboardProps:r}=Hb(e),o=Oe(n,r),i=rw(t),l=e.isDisabled?{}:i,s=p.useRef(e.autoFocus);return p.useEffect(()=>{s.current&&t.current&&No(t.current),s.current=!1},[t]),{focusableProps:Oe({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},l)}}const iw=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),lw=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function sw(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return iw.has(n.script)}let t=e.split("-")[0];return lw.has(t)}const aw=Symbol.for("react-aria.i18n.locale");function wg(){let e=typeof window<"u"&&window[aw]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:sw(e)?"rtl":"ltr"}}let gu=wg(),Yr=new Set;function jd(){gu=wg();for(let e of Yr)e(gu)}function uw(){let e=Oc(),[t,n]=p.useState(gu);return p.useEffect(()=>(Yr.size===0&&window.addEventListener("languagechange",jd),Yr.add(n),()=>{Yr.delete(n),Yr.size===0&&window.removeEventListener("languagechange",jd)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const cw=q.createContext(null);function Kl(){let e=uw();return p.useContext(cw)||e}const Bd=new WeakMap;function fw(e){let t=Bd.get(e);return t||(t=new Fl(e),Bd.set(e,t)),t}function dw(e,t){return t&&Fl.getGlobalDictionaryForPackage(t)||fw(e)}function zc(e,t){let{locale:n}=Kl(),r=dw(e,t);return p.useMemo(()=>new jE(n,r),[n,r])}let Ws=new Map;function Sg(e){let{locale:t}=Kl(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),t.compare(i.slice(0,l.length),l)===0),[t]),r=p.useCallback((i,l)=>l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),t.compare(i.slice(-l.length),l)===0),[t]),o=p.useCallback((i,l)=>{if(l.length===0)return!0;i=i.normalize("NFC"),l=l.normalize("NFC");let s=0,a=l.length;for(;s+a<=i.length;s++){let u=i.slice(s,s+a);if(t.compare(l,u)===0)return!0}return!1},[t]);return p.useMemo(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])}const Cg=7e3;let Qs=null;function qs(e,t="assertive",n=Cg){Qs||(Qs=new pw),Qs.announce(e,t,n)}class pw{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=Cg){if(!this.node)return;let o=document.createElement("div");o.textContent=t,n==="assertive"?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function mw(e,t,n){let{validationBehavior:r,focus:o}=e;ue(()=>{if(r==="native"&&n!=null&&n.current){let a=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(a),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(vw(n.current))}});let i=je(()=>{t.resetValidation()}),l=je(a=>{var u;t.displayValidation.isInvalid||t.commitValidation();let c=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!a.defaultPrevented&&n&&c&&yw(c)===n.current){var f;o?o():(f=n.current)===null||f===void 0||f.focus(),Mb("keyboard")}a.preventDefault()}),s=je(()=>{t.commitValidation()});p.useEffect(()=>{let a=n==null?void 0:n.current;if(!a)return;let u=a.form;return a.addEventListener("invalid",l),a.addEventListener("change",s),u==null||u.addEventListener("reset",i),()=>{a.removeEventListener("invalid",l),a.removeEventListener("change",s),u==null||u.removeEventListener("reset",i)}},[n,l,s,i,r])}function gw(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function vw(e){return{isInvalid:!e.validity.valid,validationDetails:gw(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function yw(e){for(let t=0;t`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var Pg={};Pg={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var Ng={};Ng={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var kg={};kg={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var Rg={};Rg={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var Lg={};Lg={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var $g={};$g={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var Ig={};Ig={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var Mg={};Mg={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var Ag={};Ag={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var Og={};Og={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} saisi, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var Fg={};Fg={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var Dg={};Dg={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var jg={};jg={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var Bg={};Bg={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var Hg={};Hg={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var Kg={};Kg={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var Ug={};Ug={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var zg={};zg={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var Vg={};Vg={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var Gg={};Gg={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var Wg={};Wg={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var Qg={};Qg={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var qg={};qg={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var Xg={};Xg={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var Yg={};Yg={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var Zg={};Zg={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var Jg={};Jg={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var ev={};ev={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var tv={};tv={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var nv={};nv={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var rv={};rv={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var ov={};ov={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var iv={};iv={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var lv={};lv={dismiss:"تجاهل"};var sv={};sv={dismiss:"Отхвърляне"};var av={};av={dismiss:"Odstranit"};var uv={};uv={dismiss:"Luk"};var cv={};cv={dismiss:"Schließen"};var fv={};fv={dismiss:"Απόρριψη"};var dv={};dv={dismiss:"Dismiss"};var hv={};hv={dismiss:"Descartar"};var pv={};pv={dismiss:"Lõpeta"};var mv={};mv={dismiss:"Hylkää"};var gv={};gv={dismiss:"Rejeter"};var vv={};vv={dismiss:"התעלם"};var yv={};yv={dismiss:"Odbaci"};var xv={};xv={dismiss:"Elutasítás"};var Ev={};Ev={dismiss:"Ignora"};var bv={};bv={dismiss:"閉じる"};var wv={};wv={dismiss:"무시"};var Sv={};Sv={dismiss:"Atmesti"};var Cv={};Cv={dismiss:"Nerādīt"};var Tv={};Tv={dismiss:"Lukk"};var _v={};_v={dismiss:"Negeren"};var Pv={};Pv={dismiss:"Zignoruj"};var Nv={};Nv={dismiss:"Descartar"};var kv={};kv={dismiss:"Dispensar"};var Rv={};Rv={dismiss:"Revocare"};var Lv={};Lv={dismiss:"Пропустить"};var $v={};$v={dismiss:"Zrušiť"};var Iv={};Iv={dismiss:"Opusti"};var Mv={};Mv={dismiss:"Odbaci"};var Av={};Av={dismiss:"Avvisa"};var Ov={};Ov={dismiss:"Kapat"};var Fv={};Fv={dismiss:"Скасувати"};var Dv={};Dv={dismiss:"取消"};var jv={};jv={dismiss:"關閉"};const Hd={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Ew(e={}){let{style:t,isFocusable:n}=e,[r,o]=p.useState(!1),{focusWithinProps:i}=Hl({isDisabled:!n,onFocusWithinChange:s=>o(s)}),l=p.useMemo(()=>r?t:t?{...Hd,...t}:Hd,[r]);return{visuallyHiddenProps:{...i,style:l}}}function bw(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:l}=Ew(e);return q.createElement(n,Oe(i,l),t)}function ww(e){return e&&e.__esModule?e.default:e}const Kd={top:"top",bottom:"top",left:"left",right:"left"},ml={top:"bottom",bottom:"top",left:"right",right:"left"},Sw={top:"left",left:"top"},vu={top:"height",left:"width"},Cw={width:"totalWidth",height:"totalHeight"},hi={};let pi=typeof document<"u"&&window.visualViewport;function Ud(e){let t=0,n=0,r=0,o=0,i=0,l=0,s={};if(e.tagName==="BODY"){let c=document.documentElement;r=c.clientWidth,o=c.clientHeight;var a;t=(a=pi==null?void 0:pi.width)!==null&&a!==void 0?a:r;var u;n=(u=pi==null?void 0:pi.height)!==null&&u!==void 0?u:o,s.top=c.scrollTop||e.scrollTop,s.left=c.scrollLeft||e.scrollLeft}else({width:t,height:n,top:i,left:l}=xr(e)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,o=n;return{width:t,height:n,totalWidth:r,totalHeight:o,scroll:s,top:i,left:l}}function Tw(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function zd(e,t,n,r,o,i){let l=o.scroll[e],s=r[vu[e]],a=t-i-l,u=t+i-l+n;return a<0?-a:u>s?Math.max(s-u,-a):0}function _w(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Vd(e){if(hi[e])return hi[e];let[t,n]=e.split(" "),r=Kd[t]||"right",o=Sw[r];Kd[n]||(n="center");let i=vu[r],l=vu[o];return hi[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:l},hi[e]}function Xs(e,t,n,r,o,i,l,s,a,u){let{placement:c,crossPlacement:f,axis:d,crossAxis:h,size:E,crossSize:b}=r,w={};w[h]=e[h],f==="center"?w[h]+=(e[b]-n[b])/2:f!==h&&(w[h]+=e[b]-n[b]),w[h]+=i;const y=e[h]-n[b]+a+u,m=e[h]+e[b]-a-u;if(w[h]=ru(w[h],y,m),c===d){const x=s?l[E]:t[Cw[E]];w[ml[d]]=Math.floor(x-e[d]+o)}else w[d]=Math.floor(e[d]+e[E]+o);return w}function Pw(e,t,n,r,o,i){return e.top!=null?Math.max(0,t.height+t.top+t.scroll.top-(n.top+e.top)-(o.top+o.bottom+i)):Math.max(0,r.top+n.top-(t.top+t.scroll.top)-(o.top+o.bottom+i))}function Gd(e,t,n,r,o,i){let{placement:l,axis:s,size:a}=i;return l===s?Math.max(0,n[s]-e[s]-e.scroll[s]+t[s]-r[s]-r[ml[s]]-o):Math.max(0,e[a]+e[s]+e.scroll[s]-t[s]-n[s]-n[a]-r[s]-r[ml[s]]-o)}function Nw(e,t,n,r,o,i,l,s,a,u,c,f,d,h,E,b){let w=Vd(e),{size:y,crossAxis:m,crossSize:x,placement:S,crossPlacement:T}=w,C=Xs(t,s,n,w,c,f,u,d,E,b),_=c,v=Gd(s,u,t,o,i+c,w);if(l&&r[y]>v){let A=Vd(`${ml[S]} ${T}`),B=Xs(t,s,n,A,c,f,u,d,E,b);Gd(s,u,t,o,i+c,A)>v&&(w=A,C=B,_=c)}let L=zd(m,C[m],n[x],s,a,i);C[m]+=L;let N=Pw(C,s,u,t,o,i);h&&h{if(!n||r===null)return;let o=i=>{let l=i.target;if(!t.current||l instanceof Node&&!l.contains(t.current))return;let s=r||Bv.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}let qt=typeof document<"u"&&window.visualViewport;function $w(e){let{direction:t}=Kl(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:l="bottom",containerPadding:s=12,shouldFlip:a=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:c=0,crossOffset:f=0,shouldUpdatePosition:d=!0,isOpen:h=!0,onClose:E,maxHeight:b,arrowBoundaryOffset:w=0}=e,[y,m]=p.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),x=[d,l,o.current,r.current,i.current,s,a,u,c,f,h,t,b,w,n],S=p.useCallback(()=>{if(d===!1||!h||!o.current||!r.current||!i.current||!u)return;let _=kw({placement:Mw(l,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current,padding:s,shouldFlip:a,boundaryElement:u,offset:c,crossOffset:f,maxHeight:b,arrowSize:n,arrowBoundaryOffset:w});Object.keys(_.position).forEach(v=>o.current.style[v]=_.position[v]+"px"),o.current.style.maxHeight=_.maxHeight!=null?_.maxHeight+"px":void 0,m(_)},x);ue(S,x),Iw(S),hb({ref:o,onResize:S});let T=p.useRef(!1);ue(()=>{let _,v=()=>{T.current=!0,clearTimeout(_),_=setTimeout(()=>{T.current=!1},500),S()};return qt==null||qt.addEventListener("resize",v),qt==null||qt.addEventListener("scroll",v),()=>{qt==null||qt.removeEventListener("resize",v),qt==null||qt.removeEventListener("scroll",v)}},[S]);let C=p.useCallback(()=>{T.current||E()},[E,T]);return Lw({triggerRef:r,isOpen:h,onClose:E&&C}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...y.position,maxHeight:y.maxHeight}},placement:y.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:y.arrowOffsetLeft,top:y.arrowOffsetTop}},updatePosition:S}}function Iw(e){ue(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function Mw(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Mt=[];function Aw(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:s}=e;p.useEffect(()=>(o&&Mt.push(t),()=>{let E=Mt.indexOf(t);E>=0&&Mt.splice(E,1)}),[o,t]);let a=()=>{Mt[Mt.length-1]===t&&n&&n()},u=E=>{(!s||s(E.target))&&Mt[Mt.length-1]===t&&(E.stopPropagation(),E.preventDefault())},c=E=>{(!s||s(E.target))&&(Mt[Mt.length-1]===t&&(E.stopPropagation(),E.preventDefault()),a())},f=E=>{E.key==="Escape"&&!l&&(E.stopPropagation(),E.preventDefault(),a())};Bb({ref:t,onInteractOutside:i&&o?c:null,onInteractOutsideStart:u});let{focusWithinProps:d}=Hl({isDisabled:!r,onBlurWithin:E=>{!E.relatedTarget||Xb(E.relatedTarget)||(!s||s(E.relatedTarget))&&n()}}),h=E=>{E.target===E.currentTarget&&E.preventDefault()};return{overlayProps:{onKeyDown:f,...d},underlayProps:{onPointerDown:h}}}function Ow(e,t,n){let{type:r}=e,{isOpen:o}=t;p.useEffect(()=>{n&&n.current&&Bv.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let l=mn();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?l:null,onPress:t.toggle},overlayProps:{id:l}}}const Ys=typeof document<"u"&&window.visualViewport,Fw=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let mi=0,Zs;function Dw(e={}){let{isDisabled:t}=e;ue(()=>{if(!t)return mi++,mi===1&&(jl()?Zs=Bw():Zs=jw()),()=>{mi--,mi===0&&Zs()}},[t])}function jw(){return _o(dr(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),dr(document.documentElement,"overflow","hidden"))}function Bw(){let e,t,n=u=>{e=al(u.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=dr(e,"overscrollBehavior","contain"))},r=u=>{if(!e||e===document.documentElement||e===document.body){u.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&u.preventDefault()},o=u=>{let c=u.target;Xd(c)&&c!==document.activeElement&&(u.preventDefault(),s(),c.style.transform="translateY(-2000px)",c.focus(),requestAnimationFrame(()=>{c.style.transform=""})),t&&t()},i=u=>{let c=u.target;Xd(c)&&(s(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",Ys&&(Ys.height{qd(c)}):Ys.addEventListener("resize",()=>qd(c),{once:!0}))}))},l=null,s=()=>{if(l)return;let u=()=>{window.scrollTo(0,0)},c=window.pageXOffset,f=window.pageYOffset;l=_o(zr(window,"scroll",u),dr(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),dr(document.documentElement,"overflow","hidden"),dr(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(c,f)}),window.scrollTo(0,0)},a=_o(zr(document,"touchstart",n,{passive:!1,capture:!0}),zr(document,"touchmove",r,{passive:!1,capture:!0}),zr(document,"touchend",o,{passive:!1,capture:!0}),zr(document,"focus",i,!0));return()=>{t==null||t(),l==null||l(),a()}}function dr(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function zr(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function qd(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=al(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top;o>r+e.clientHeight&&(n.scrollTop+=o-r)}e=n.parentElement}}function Xd(e){return e instanceof HTMLInputElement&&!Fw.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var Hv={};Hv={"ar-AE":lv,"bg-BG":sv,"cs-CZ":av,"da-DK":uv,"de-DE":cv,"el-GR":fv,"en-US":dv,"es-ES":hv,"et-EE":pv,"fi-FI":mv,"fr-FR":gv,"he-IL":vv,"hr-HR":yv,"hu-HU":xv,"it-IT":Ev,"ja-JP":bv,"ko-KR":wv,"lt-LT":Sv,"lv-LV":Cv,"nb-NO":Tv,"nl-NL":_v,"pl-PL":Pv,"pt-BR":Nv,"pt-PT":kv,"ro-RO":Rv,"ru-RU":Lv,"sk-SK":$v,"sl-SI":Iv,"sr-SP":Mv,"sv-SE":Av,"tr-TR":Ov,"uk-UA":Fv,"zh-CN":Dv,"zh-TW":jv};function Yd(e){let{onDismiss:t,...n}=e,r=zc(ww(Hv),"@react-aria/overlays"),o=sl(n,r.format("dismiss")),i=()=>{t&&t()};return q.createElement(bw,null,q.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let Vr=new WeakMap,it=[];function Kv(e,t=document.body){let n=new Set(e),r=new Set,o=a=>{for(let d of a.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(d);let u=d=>{if(n.has(d)||r.has(d.parentElement)&&d.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of n)if(d.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),f=u(a);if(f===NodeFilter.FILTER_ACCEPT&&i(a),f!==NodeFilter.FILTER_REJECT){let d=c.nextNode();for(;d!=null;)i(d),d=c.nextNode()}},i=a=>{var u;let c=(u=Vr.get(a))!==null&&u!==void 0?u:0;a.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&a.setAttribute("aria-hidden","true"),r.add(a),Vr.set(a,c+1))};it.length&&it[it.length-1].disconnect(),o(t);let l=new MutationObserver(a=>{for(let u of a)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(u.target))){for(let c of u.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of u.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&o(c)}});l.observe(t,{childList:!0,subtree:!0});let s={observe(){l.observe(t,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return it.push(s),()=>{l.disconnect();for(let a of r){let u=Vr.get(a);u===1?(a.removeAttribute("aria-hidden"),Vr.delete(a)):Vr.set(a,u-1)}s===it[it.length-1]?(it.pop(),it.length&&it[it.length-1].observe()):it.splice(it.indexOf(s),1)}}function Hw(e,t){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l,...s}=e,{overlayProps:a,underlayProps:u}=Aw({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l},r),{overlayProps:c,arrowProps:f,placement:d}=$w({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o?t.close:null});return Dw({isDisabled:o||!t.isOpen}),ue(()=>{if(t.isOpen&&!o&&r.current)return Kv([r.current])},[o,t.isOpen,r]),{popoverProps:Oe(a,c),arrowProps:f,underlayProps:u,placement:d}}const Kw=q.createContext(null);function Uw(e){let t=Oc(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,i]=p.useState(!1),l=p.useMemo(()=>({contain:o,setContain:i}),[o,i]);if(!n)return null;let s=e.children;return e.disableFocusManagement||(s=q.createElement(Vb,{restoreFocus:!0,contain:o&&!r},s)),s=q.createElement(Kw.Provider,{value:l},q.createElement(Pb,null,s)),uE.createPortal(s,n)}function yu(e){return Ri()?e.altKey:e.ctrlKey}function Zn(e){return gn()?e.metaKey:e.ctrlKey}const zw=1e3;function Vw(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=p.useRef({search:"",timeout:null}).current,i=l=>{let s=Gw(l.key);if(!s||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))return;s===" "&&o.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),o.search+=s;let a=t.getKeyForSearch(o.search,n.focusedKey);a==null&&(a=t.getKeyForSearch(o.search)),a!=null&&(n.setFocusedKey(a),r&&r(a)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},zw)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:null}}}function Gw(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Uv(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:l=!1,disallowSelectAll:s=!1,selectOnFocus:a=t.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:c,allowsTabNavigation:f=!1,isVirtualized:d,scrollRef:h=r,linkBehavior:E="action"}=e,{direction:b}=Kl(),w=jc(),y=N=>{if(N.altKey&&N.key==="Tab"&&N.preventDefault(),!r.current.contains(N.target))return;const P=(M,U)=>{if(M!=null){if(t.isLink(M)&&E==="selection"&&a&&!yu(N)){Mc.flushSync(()=>{t.setFocusedKey(M,U)});let W=h.current.querySelector(`[data-key="${CSS.escape(M.toString())}"]`);w.open(W,N);return}if(t.setFocusedKey(M,U),t.isLink(M)&&E==="override")return;N.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(M):a&&!yu(N)&&t.replaceSelection(M)}};switch(N.key){case"ArrowDown":if(n.getKeyBelow){var D,k;N.preventDefault();let M=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(D=n.getFirstKey)===null||D===void 0?void 0:D.call(n);M==null&&i&&(M=(k=n.getFirstKey)===null||k===void 0?void 0:k.call(n,t.focusedKey)),P(M)}break;case"ArrowUp":if(n.getKeyAbove){var I,H;N.preventDefault();let M=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(I=n.getLastKey)===null||I===void 0?void 0:I.call(n);M==null&&i&&(M=(H=n.getLastKey)===null||H===void 0?void 0:H.call(n,t.focusedKey)),P(M)}break;case"ArrowLeft":if(n.getKeyLeftOf){var J,O;N.preventDefault();let M=n.getKeyLeftOf(t.focusedKey);M==null&&i&&(M=b==="rtl"?(J=n.getFirstKey)===null||J===void 0?void 0:J.call(n,t.focusedKey):(O=n.getLastKey)===null||O===void 0?void 0:O.call(n,t.focusedKey)),P(M,b==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var A,B;N.preventDefault();let M=n.getKeyRightOf(t.focusedKey);M==null&&i&&(M=b==="rtl"?(A=n.getLastKey)===null||A===void 0?void 0:A.call(n,t.focusedKey):(B=n.getFirstKey)===null||B===void 0?void 0:B.call(n,t.focusedKey)),P(M,b==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){N.preventDefault();let M=n.getFirstKey(t.focusedKey,Zn(N));t.setFocusedKey(M),Zn(N)&&N.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(M):a&&t.replaceSelection(M)}break;case"End":if(n.getLastKey){N.preventDefault();let M=n.getLastKey(t.focusedKey,Zn(N));t.setFocusedKey(M),Zn(N)&&N.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(M):a&&t.replaceSelection(M)}break;case"PageDown":if(n.getKeyPageBelow){N.preventDefault();let M=n.getKeyPageBelow(t.focusedKey);P(M)}break;case"PageUp":if(n.getKeyPageAbove){N.preventDefault();let M=n.getKeyPageAbove(t.focusedKey);P(M)}break;case"a":Zn(N)&&t.selectionMode==="multiple"&&s!==!0&&(N.preventDefault(),t.selectAll());break;case"Escape":N.preventDefault(),l||t.clearSelection();break;case"Tab":if(!f){if(N.shiftKey)r.current.focus();else{let M=Ht(r.current,{tabbable:!0}),U,W;do W=M.lastChild(),W&&(U=W);while(W);U&&!U.contains(document.activeElement)&&jt(U)}break}}},m=p.useRef({top:0,left:0});gb(h,"scroll",d?null:()=>{m.current={top:h.current.scrollTop,left:h.current.scrollLeft}});let x=N=>{if(t.isFocused){N.currentTarget.contains(N.target)||t.setFocused(!1);return}if(N.currentTarget.contains(N.target)){if(t.setFocused(!0),t.focusedKey==null){let k=H=>{H!=null&&(t.setFocusedKey(H),a&&t.replaceSelection(H))},I=N.relatedTarget;var P,D;I&&N.currentTarget.compareDocumentPosition(I)&Node.DOCUMENT_POSITION_FOLLOWING?k((P=t.lastSelectedKey)!==null&&P!==void 0?P:n.getLastKey()):k((D=t.firstSelectedKey)!==null&&D!==void 0?D:n.getFirstKey())}else d||(h.current.scrollTop=m.current.top,h.current.scrollLeft=m.current.left);if(!d&&t.focusedKey!=null){let k=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);k&&(k.contains(document.activeElement)||jt(k),hu()==="keyboard"&&Nd(k,{containingElement:r.current}))}}},S=N=>{N.currentTarget.contains(N.relatedTarget)||t.setFocused(!1)};const T=p.useRef(o);p.useEffect(()=>{if(T.current){let N=null;o==="first"&&(N=n.getFirstKey()),o==="last"&&(N=n.getLastKey());let P=t.selectedKeys;if(P.size){for(let D of P)if(t.canSelectItem(D)){N=D;break}}t.setFocused(!0),t.setFocusedKey(N),N==null&&!c&&No(r.current)}},[]);let C=p.useRef(t.focusedKey);p.useEffect(()=>{let N=hu();if(t.isFocused&&t.focusedKey!=null&&h!=null&&h.current){let P=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);P&&(N==="keyboard"||T.current)&&(d||hg(h.current,P),Nd(P,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&C.current!=null&&No(r.current),C.current=t.focusedKey,T.current=!1},[d,h,t.focusedKey,t.isFocused,r]);let _={onKeyDown:y,onFocus:x,onBlur:S,onMouseDown(N){h.current===N.target&&N.preventDefault()}},{typeSelectProps:v}=Vw({keyboardDelegate:n,selectionManager:t});u||(_=Oe(v,_));let L;return c||(L=t.focusedKey==null?0:-1),{collectionProps:{..._,tabIndex:L}}}function Ww(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,shouldUseVirtualFocus:i,focus:l,isDisabled:s,onAction:a,allowsDifferentPressOrigin:u,linkBehavior:c="action"}=e,f=jc(),d=O=>{if(O.pointerType==="keyboard"&&yu(O))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(c==="selection"){f.open(r.current,O),t.setSelectedKeys(t.selectedKeys);return}else if(c==="override"||c==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):O&&O.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||O&&(Zn(O)||O.pointerType==="touch"||O.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};p.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!i&&(l?l():document.activeElement!==r.current&&No(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,i]),s=s||t.isDisabled(n);let h={};!i&&!s?h={tabIndex:n===t.focusedKey?0:-1,onFocus(O){O.target===r.current&&t.setFocusedKey(n)}}:s&&(h.onMouseDown=O=>{O.preventDefault()});let E=t.isLink(n)&&c==="override",b=t.isLink(n)&&c!=="selection"&&c!=="none",w=!s&&t.canSelectItem(n)&&!E,y=(a||b)&&!s,m=y&&(t.selectionBehavior==="replace"?!w:!w||t.isEmpty),x=y&&w&&t.selectionBehavior==="replace",S=m||x,T=p.useRef(null),C=S&&w,_=p.useRef(!1),v=p.useRef(!1),L=O=>{a&&a(),b&&f.open(r.current,O)},N={};o?(N.onPressStart=O=>{T.current=O.pointerType,_.current=C,O.pointerType==="keyboard"&&(!S||Jd())&&d(O)},u?(N.onPressUp=m?null:O=>{O.pointerType!=="keyboard"&&w&&d(O)},N.onPress=m?L:null):N.onPress=O=>{if(m||x&&O.pointerType!=="mouse"){if(O.pointerType==="keyboard"&&!Zd())return;L(O)}else O.pointerType!=="keyboard"&&w&&d(O)}):(N.onPressStart=O=>{T.current=O.pointerType,_.current=C,v.current=m,w&&(O.pointerType==="mouse"&&!m||O.pointerType==="keyboard"&&(!y||Jd()))&&d(O)},N.onPress=O=>{(O.pointerType==="touch"||O.pointerType==="pen"||O.pointerType==="virtual"||O.pointerType==="keyboard"&&S&&Zd()||O.pointerType==="mouse"&&v.current)&&(S?L(O):w&&d(O))}),h["data-key"]=n,N.preventFocusOnPress=i;let{pressProps:P,isPressed:D}=mg(N),k=x?O=>{T.current==="mouse"&&(O.stopPropagation(),O.preventDefault(),L(O))}:void 0,{longPressProps:I}=xg({isDisabled:!C,onLongPress(O){O.pointerType==="touch"&&(d(O),t.setSelectionBehavior("toggle"))}}),H=O=>{T.current==="touch"&&_.current&&O.preventDefault()},J=t.isLink(n)?O=>{jn.isOpening||O.preventDefault()}:void 0;return{itemProps:Oe(h,w||m?P:{},C?I:{},{onDoubleClick:k,onDragStartCapture:H,onClick:J}),isPressed:D,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:s,allowsSelection:w,hasAction:S}}function Zd(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Jd(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class zv{getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,n,r){let o=this.getItem(t);if(!o)return null;let i=o.getBoundingClientRect();do t=n(t),o=this.getItem(t);while(o&&r(i,o.getBoundingClientRect()));return t}isSameRow(t,n){return t.top===n.top||t.left!==n.left}isSameColumn(t,n){return t.left===n.left||t.top!==n.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return this.ref.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`)}getKeyPageAbove(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!ul(n))return this.getFirstKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let l=o.x-n.scrollLeft,s=Math.max(0,i.x-l+i.width-o.width);for(;r&&i.x-l>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}else{let l=o.y-n.scrollTop,s=Math.max(0,i.y-l+i.height-o.height);for(;r&&i.y-l>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!ul(n))return this.getLastKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let l=o.x-n.scrollLeft,s=Math.min(n.scrollWidth,i.x-l-i.width+o.width);for(;r&&i.x-li||new zv(n,s==="selection"?new Set:r,o,l),[i,n,r,o,l,s]),{collectionProps:u}=Uv({...e,ref:o,selectionManager:t,keyboardDelegate:a});return{listProps:u}}const Ul=new WeakMap;function qw(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Vv(e,t){let n=Ul.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${qw(t)}`}function Xw(e,t,n){let r=Fc(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:l}=Qw({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:s}=Hl({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),a=mn(e.id);Ul.set(t,{id:a,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:u,fieldProps:c}=Tg({...e,id:a,labelElementType:"span"});return{labelProps:u,listBoxProps:Oe(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Oe(c,l)})}}function Yw(e,t,n){var r;let{key:o}=e,i=Ul.get(t);var l;let s=(l=e.isDisabled)!==null&&l!==void 0?l:t.disabledKeys.has(o);var a;let u=(a=e.isSelected)!==null&&a!==void 0?a:t.selectionManager.isSelected(o);var c;let f=(c=e.shouldSelectOnPressUp)!==null&&c!==void 0?c:i==null?void 0:i.shouldSelectOnPressUp;var d;let h=(d=e.shouldFocusOnHover)!==null&&d!==void 0?d:i==null?void 0:i.shouldFocusOnHover;var E;let b=(E=e.shouldUseVirtualFocus)!==null&&E!==void 0?E:i==null?void 0:i.shouldUseVirtualFocus;var w;let y=(w=e.isVirtualized)!==null&&w!==void 0?w:i==null?void 0:i.isVirtualized,m=ll(),x=ll(),S={role:"option","aria-disabled":s||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?u:void 0};gn()&&ag()||(S["aria-label"]=e["aria-label"],S["aria-labelledby"]=m,S["aria-describedby"]=x);let T=t.collection.getItem(o);if(y){let k=Number(T==null?void 0:T.index);S["aria-posinset"]=Number.isNaN(k)?void 0:k+1,S["aria-setsize"]=rg(t.collection)}let{itemProps:C,isPressed:_,isFocused:v,hasAction:L,allowsSelection:N}=Ww({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:f,allowsDifferentPressOrigin:f&&h,isVirtualized:y,shouldUseVirtualFocus:b,isDisabled:s,onAction:i!=null&&i.onAction?()=>{var k;return i==null||(k=i.onAction)===null||k===void 0?void 0:k.call(i,o)}:void 0,linkBehavior:i==null?void 0:i.linkBehavior}),{hoverProps:P}=jb({isDisabled:s||!h,onHoverStart(){cl()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),D=Fc(T==null?void 0:T.props,{isLink:!!(!(T==null||(r=T.props)===null||r===void 0)&&r.href)});return delete D.id,{optionProps:{...S,...Oe(D,C,P),id:Vv(t,o)},labelProps:{id:m},descriptionProps:{id:x},isFocused:v,isFocusVisible:v&&cl(),isSelected:u,isDisabled:s,isPressed:_,allowsSelection:N,hasAction:L}}function Zw(e){let{heading:t,"aria-label":n}=e,r=mn();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var Gv={};Gv={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Wv={};Wv={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Qv={};Qv={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var qv={};qv={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Xv={};Xv={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Yv={};Yv={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Zv={};Zv={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Jv={};Jv={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var ey={};ey={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var ty={};ty={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var ny={};ny={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var ry={};ry={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var oy={};oy={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var iy={};iy={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var ly={};ly={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var sy={};sy={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var ay={};ay={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var uy={};uy={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var cy={};cy={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var fy={};fy={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var dy={};dy={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var hy={};hy={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var py={};py={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var my={};my={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var gy={};gy={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var vy={};vy={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var yy={};yy={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var xy={};xy={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Ey={};Ey={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var by={};by={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var wy={};wy={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Sy={};Sy={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Cy={};Cy={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Ty={};Ty={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};function Jw(e){return e&&e.__esModule?e.default:e}var _y={};_y={"ar-AE":Gv,"bg-BG":Wv,"cs-CZ":Qv,"da-DK":qv,"de-DE":Xv,"el-GR":Yv,"en-US":Zv,"es-ES":Jv,"et-EE":ey,"fi-FI":ty,"fr-FR":ny,"he-IL":ry,"hr-HR":oy,"hu-HU":iy,"it-IT":ly,"ja-JP":sy,"ko-KR":ay,"lt-LT":uy,"lv-LV":cy,"nb-NO":fy,"nl-NL":dy,"pl-PL":hy,"pt-BR":py,"pt-PT":my,"ro-RO":gy,"ru-RU":vy,"sk-SK":yy,"sl-SI":xy,"sr-SP":Ey,"sv-SE":by,"tr-TR":wy,"uk-UA":Sy,"zh-CN":Cy,"zh-TW":Ty};function eS(e,t,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=e,l=mn(),{triggerProps:s,overlayProps:a}=Ow({type:r},t,n),u=h=>{if(!o&&!(i==="longPress"&&!h.altKey)&&n&&n.current)switch(h.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},c=zc(Jw(_y),"@react-aria/menu"),{longPressProps:f}=xg({isDisabled:o||i!=="longPress",accessibilityDescription:c.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),d={onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!o&&t.toggle(h.pointerType==="virtual"?"first":null)},onPress(h){h.pointerType==="touch"&&!o&&t.toggle()}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?d:f,id:l,onKeyDown:u},menuProps:{...a,"aria-labelledby":l,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function tS(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:i=!1,type:l="text",validationBehavior:s="aria"}=e,[a,u]=Do(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=ow(e,t),f=ng({...e,value:a}),{isInvalid:d,validationErrors:h,validationDetails:E}=f.displayValidation,{labelProps:b,fieldProps:w,descriptionProps:y,errorMessageProps:m}=xw({...e,isInvalid:d,errorMessage:e.errorMessage||h}),x=Fc(e,{labelable:!0});const S={type:l,pattern:e.pattern};return yb(t,a,u),mw(e,f,t),p.useEffect(()=>{if(t.current instanceof Po(t.current).HTMLTextAreaElement){let T=t.current;Object.defineProperty(T,"defaultValue",{get:()=>T.value,set:()=>{},configurable:!0})}},[t]),{labelProps:b,inputProps:Oe(x,n==="input"&&S,{disabled:r,readOnly:i,required:o&&s==="native","aria-required":o&&s==="aria"||void 0,"aria-invalid":d||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:a,onChange:T=>u(T.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...w}),descriptionProps:y,errorMessageProps:m,isInvalid:d,validationErrors:h,validationDetails:E}}function nS(e){return e&&e.__esModule?e.default:e}var Py={};Py={"ar-AE":_g,"bg-BG":Pg,"cs-CZ":Ng,"da-DK":kg,"de-DE":Rg,"el-GR":Lg,"en-US":$g,"es-ES":Ig,"et-EE":Mg,"fi-FI":Ag,"fr-FR":Og,"he-IL":Fg,"hr-HR":Dg,"hu-HU":jg,"it-IT":Bg,"ja-JP":Hg,"ko-KR":Kg,"lt-LT":Ug,"lv-LV":zg,"nb-NO":Vg,"nl-NL":Gg,"pl-PL":Wg,"pt-BR":Qg,"pt-PT":qg,"ro-RO":Xg,"ru-RU":Yg,"sk-SK":Zg,"sl-SI":Jg,"sr-SP":ev,"sv-SE":tv,"tr-TR":nv,"uk-UA":rv,"zh-CN":ov,"zh-TW":iv};function rS(e,t){let{buttonRef:n,popoverRef:r,inputRef:o,listBoxRef:i,keyboardDelegate:l,shouldFocusWrap:s,isReadOnly:a,isDisabled:u}=e,c=zc(nS(Py),"@react-aria/combobox"),{menuTriggerProps:f,menuProps:d}=eS({type:"listbox",isDisabled:u||a},t,n);Ul.set(t,{id:d.id});let h=p.useMemo(()=>l||new zv(t.collection,t.disabledKeys,i),[l,t.collection,t.disabledKeys,i]),{collectionProps:E}=Uv({selectionManager:t.selectionManager,keyboardDelegate:h,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:s,ref:o,isVirtualized:!0}),b=jc(),w=K=>{switch(K.key){case"Enter":case"Tab":if(t.isOpen&&K.key==="Enter"&&K.preventDefault(),t.isOpen&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){if(K.key==="Enter"){let ee=i.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);ee instanceof HTMLAnchorElement&&b.open(ee,K)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&K.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},y=K=>{var ee;K.relatedTarget===(n==null?void 0:n.current)||!((ee=r.current)===null||ee===void 0)&&ee.contains(K.relatedTarget)||(e.onBlur&&e.onBlur(K),t.setFocused(!1))},m=K=>{t.isFocused||(e.onFocus&&e.onFocus(K),t.setFocused(!0))},{isInvalid:x,validationErrors:S,validationDetails:T}=t.displayValidation,{labelProps:C,inputProps:_,descriptionProps:v,errorMessageProps:L}=tS({...e,onChange:t.setInputValue,onKeyDown:a?e.onKeyDown:_o(t.isOpen&&E.onKeyDown,w,e.onKeyDown),onBlur:y,value:t.inputValue,onFocus:m,autoComplete:"off",validate:void 0,[ou]:t},o),N=K=>{K.pointerType==="touch"&&(o.current.focus(),t.toggle(null,"manual"))},P=K=>{K.pointerType!=="touch"&&(o.current.focus(),t.toggle(K.pointerType==="keyboard"||K.pointerType==="virtual"?"first":null,"manual"))},D=sl({id:f.id,"aria-label":c.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||C.id}),k=sl({id:d.id,"aria-label":c.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||C.id}),I=p.useRef(0),H=K=>{if(u||a)return;if(K.timeStamp-I.current<500){K.preventDefault(),o.current.focus();return}let ee=K.target.getBoundingClientRect(),bn=K.changedTouches[0],Ir=Math.ceil(ee.left+.5*ee.width),Uo=Math.ceil(ee.top+.5*ee.height);bn.clientX===Ir&&bn.clientY===Uo&&(K.preventDefault(),o.current.focus(),t.toggle(null,"manual"),I.current=K.timeStamp)},J=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var O;let A=(O=J==null?void 0:J.parentKey)!==null&&O!==void 0?O:null;var B;let M=(B=t.selectionManager.focusedKey)!==null&&B!==void 0?B:null,U=p.useRef(A),W=p.useRef(M);p.useEffect(()=>{if(Ri()&&J!=null&&M!==W.current){let K=t.selectionManager.isSelected(M),ee=A!=null?t.collection.getItem(A):null,bn=(ee==null?void 0:ee["aria-label"])||(typeof(ee==null?void 0:ee.rendered)=="string"?ee.rendered:"")||"",Ir=c.format("focusAnnouncement",{isGroupChange:ee&&A!==U.current,groupTitle:bn,groupCount:ee?[...Ol(ee,t.collection)].length:0,optionText:J["aria-label"]||J.textValue||"",isSelected:K});qs(Ir)}U.current=A,W.current=M});let Xe=rg(t.collection),Ue=p.useRef(Xe),St=p.useRef(t.isOpen);p.useEffect(()=>{let K=t.isOpen!==St.current&&(t.selectionManager.focusedKey==null||Ri());if(t.isOpen&&(K||Xe!==Ue.current)){let ee=c.format("countAnnouncement",{optionCount:Xe});qs(ee)}Ue.current=Xe,St.current=t.isOpen});let Re=p.useRef(t.selectedKey);return p.useEffect(()=>{if(Ri()&&t.isFocused&&t.selectedItem&&t.selectedKey!==Re.current){let K=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",ee=c.format("selectedAnnouncement",{optionText:K});qs(ee)}Re.current=t.selectedKey}),p.useEffect(()=>{if(t.isOpen)return Kv([o.current,r.current])},[t.isOpen,o,r]),{labelProps:C,buttonProps:{...f,...D,excludeFromTabOrder:!0,onPress:N,onPressStart:P,isDisabled:u||a},inputProps:Oe(_,{role:"combobox","aria-expanded":f["aria-expanded"],"aria-controls":t.isOpen?d.id:void 0,"aria-autocomplete":"list","aria-activedescendant":J?Vv(t,J.key):void 0,onTouchEnd:H,autoCorrect:"off",spellCheck:"false"}),listBoxProps:Oe(d,k,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:v,errorMessageProps:L,isInvalid:x,validationErrors:S,validationDetails:T}}const oS="_focused_1af8e_1",iS="_listbox_1af8e_10",lS="_content_1af8e_89",sS="_description_1af8e_98",aS="_uppercase_1af8e_126",uS="_divider_1af8e_130",Ve={focused:oS,listbox:iS,"listbox-top":"_listbox-top_1af8e_35","listbox-bottom":"_listbox-bottom_1af8e_39","listbox-content":"_listbox-content_1af8e_43","listbox-section-list":"_listbox-section-list_1af8e_51","listbox-section":"_listbox-section_1af8e_51","listbox-item":"_listbox-item_1af8e_61",content:lS,description:sS,uppercase:aS,divider:uS,"listbox-item--green-tilleul-verveine":"_listbox-item--green-tilleul-verveine_1af8e_141","listbox--green-tilleul-verveine":"_listbox--green-tilleul-verveine_1af8e_149","listbox-item--green-bourgeon":"_listbox-item--green-bourgeon_1af8e_157","listbox--green-bourgeon":"_listbox--green-bourgeon_1af8e_165","listbox-item--green-emeraude":"_listbox-item--green-emeraude_1af8e_173","listbox--green-emeraude":"_listbox--green-emeraude_1af8e_181","listbox-item--green-menthe":"_listbox-item--green-menthe_1af8e_189","listbox--green-menthe":"_listbox--green-menthe_1af8e_197","listbox-item--green-archipel":"_listbox-item--green-archipel_1af8e_205","listbox--green-archipel":"_listbox--green-archipel_1af8e_213","listbox-item--blue-ecume":"_listbox-item--blue-ecume_1af8e_221","listbox--blue-ecume":"_listbox--blue-ecume_1af8e_229","listbox-item--blue-cumulus":"_listbox-item--blue-cumulus_1af8e_237","listbox--blue-cumulus":"_listbox--blue-cumulus_1af8e_245","listbox-item--purple-glycine":"_listbox-item--purple-glycine_1af8e_253","listbox--purple-glycine":"_listbox--purple-glycine_1af8e_261","listbox-item--pink-macaron":"_listbox-item--pink-macaron_1af8e_269","listbox--pink-macaron":"_listbox--pink-macaron_1af8e_277","listbox-item--pink-tuile":"_listbox-item--pink-tuile_1af8e_285","listbox--pink-tuile":"_listbox--pink-tuile_1af8e_293","listbox-item--yellow-tournesol":"_listbox-item--yellow-tournesol_1af8e_301","listbox--yellow-tournesol":"_listbox--yellow-tournesol_1af8e_309","listbox-item--yellow-moutarde":"_listbox-item--yellow-moutarde_1af8e_317","listbox--yellow-moutarde":"_listbox--yellow-moutarde_1af8e_325","listbox-item--orange-terre-battue":"_listbox-item--orange-terre-battue_1af8e_333","listbox--orange-terre-battue":"_listbox--orange-terre-battue_1af8e_341","listbox-item--brown-cafe-creme":"_listbox-item--brown-cafe-creme_1af8e_349","listbox--brown-cafe-creme":"_listbox--brown-cafe-creme_1af8e_357","listbox-item--brown-caramel":"_listbox-item--brown-caramel_1af8e_365","listbox--brown-caramel":"_listbox--brown-caramel_1af8e_373","listbox-item--brown-opera":"_listbox-item--brown-opera_1af8e_381","listbox--brown-opera":"_listbox--brown-opera_1af8e_389","listbox-item--beige-gris-galet":"_listbox-item--beige-gris-galet_1af8e_397","listbox--beige-gris-galet":"_listbox--beige-gris-galet_1af8e_405","listbox-item--success":"_listbox-item--success_1af8e_413","listbox--success":"_listbox--success_1af8e_421","listbox-item--warning":"_listbox-item--warning_1af8e_429","listbox--warning":"_listbox--warning_1af8e_437","listbox-item--info":"_listbox-item--info_1af8e_445","listbox--info":"_listbox--info_1af8e_453","listbox-item--error":"_listbox-item--error_1af8e_461","listbox--error":"_listbox--error_1af8e_469"},Ny=p.createContext({}),cS=({children:e,routerComponent:t,extendRequiredFieldsLabelsWith:n=g.jsx("span",{style:{color:"var(--text-default-error)"},children:" *"}),extendOptionalFieldsLabelsWith:r=" (optionnel)",defaultLang:o="fr",verbose:i=!1})=>{const[l,s]=p.useState(window.localStorage.getItem("locale")||o),[a,u]=p.useState(!1);p.useEffect(()=>{const d=async()=>{var w,y,m;if(typeof window!==void 0||typeof window.dsfr<"u"){if((w=window==null?void 0:window.dsfr)!=null&&w.isStarted)return;window.dsfr={verbose:i,mode:"manual"},await Qn(()=>import("./dsfr.module.min-23ae5258-c178c6bb.js"),[]),await Qn(()=>import("./utility-251e9615-ae73a71d.js"),[]),await Qn(()=>import("./dsfr-4e49221c-2d2b34ee.js"),[]),(m=(y=window.dsfr).start)==null||m.call(y),u(!0)}else console.error("dsfr.start is not a function");window.dsfr={verbose:i,mode:"manual"},await Qn(()=>import("./dsfr.module.min-23ae5258-c178c6bb.js"),[]),await Qn(()=>import("./utility-251e9615-ae73a71d.js"),[]),await Qn(()=>import("./dsfr-4e49221c-2d2b34ee.js"),[]),window.dsfr.start(),u(!0)},h=window.matchMedia("(prefers-color-scheme: dark)"),E=h!=null&&h.matches?"dark":"light",b=window.localStorage.getItem("theme");document.documentElement.setAttribute("data-fr-scheme",b||E),d()},[]);const c=p.useCallback(d=>{window.localStorage.setItem("locale",d),document.documentElement.setAttribute("lang",d),s(d)},[]),f=p.useMemo(()=>({setLocale:c,routerComponent:t,locale:l,extendRequiredFieldsLabelsWith:n,extendOptionalFieldsLabelsWith:r}),[t,c,l,n,r]);return g.jsx(Ny.Provider,{value:f,children:a?e:null})},jo=()=>p.useContext(Ny),Se=p.forwardRef(({children:e,className:t,icon:n,current:r,iconPosition:o="left",isSimple:i=!1,size:l="md",...s},a)=>{const{routerComponent:u}=jo();return g.jsx(u||"a",{ref:a,"aria-current":r||void 0,className:R({"fr-link":i,[`fr-link-${l}`]:l!=="md",[`fr-icon-${n}`]:!!n,[`fr-link--icon-${o}`]:n&&o},t),...s,children:e})});function ky({item:e,state:t}){const n=p.useRef(null),{optionProps:r,descriptionProps:o,labelProps:i,isFocused:l,isFocusVisible:s}=Yw({key:e.key},t,n),{description:a,startContent:u,endContent:c,color:f,showDivider:d,href:h,className:E}=e.props||{};return g.jsxs(h?Se:"li",{...r,ref:n,href:h,className:R(Ve["listbox-item"],E,{[Ve[`listbox-item--${f}`]]:f,[Ve.divider]:d,"fr-enlarge-link":h,[Ve.focused]:l&&s}),children:[u&&u,g.jsxs("span",{className:Ve.content,children:[g.jsx("span",{...i,children:e.rendered}),a&&g.jsx("span",{...o,className:Ve.description,children:a})]}),c&&c]})}function fS({section:e,state:t}){const{itemProps:n,headingProps:r,groupProps:o}=Zw({heading:e.rendered,"aria-label":e["aria-label"]}),{showDivider:i,className:l,css:s={}}=e.props||{},a=[...e.childNodes].find(u=>u.props.href)?"div":"ul";return g.jsxs("li",{...n,className:R(Ve["listbox-section"],l,s.base,{[Ve.divider]:i}),children:[e.rendered&&g.jsx("span",{...r,className:R("fr-text-mention--grey fr-text--sm fr-my-1w fr-px-1w",s.title),children:e.rendered}),g.jsx(a,{...o,className:R(Ve["listbox-section-list"],s.list),children:[...e.childNodes].map(u=>g.jsx(ky,{item:u,state:t},u.key))})]})}function dS(e){var t,n;const r=p.useRef(null),{listBoxRef:o=r,state:i,className:l,css:s={},color:a,topContent:u,bottomContent:c,...f}=e,{listBoxProps:d}=Xw(f,i,o),{isFocusVisible:h}=tw(),E=[...i.collection].find(w=>w.props.href)?"div":"ul",b=((n=(t=e==null?void 0:e.triggerRef)==null?void 0:t.current)==null?void 0:n.offsetWidth)||0;return g.jsxs("div",{className:R(Ve.listbox,l,s.base),style:{minWidth:b||"auto",maxWidth:b>150?b:"auto"},children:[g.jsx("span",{className:R(Ve["listbox-top"],s.top),children:u&&u}),g.jsx(E,{className:R(Ve["listbox-content"],s.list,{[Ve[`listbox--${a}`]]:a}),ref:o,"data-focus-visible":h,...d,children:[...i.collection].map(w=>w.type==="section"?p.createElement(fS,{...w.props,key:w.key,section:w,state:i}):p.createElement(ky,{...w.props,key:w.key,item:w,state:i}))}),g.jsx("span",{className:R(Ve["listbox-bottom"],s.bottom),children:c&&c})]})}const hS="_popover_1g6m6_1",pS={popover:hS};function mS({children:e,state:t,...n}){const r=p.useRef(null),{isNonModal:o=!1,popoverRef:i=r}=n,{popoverProps:l,underlayProps:s}=Hw({...n,popoverRef:i},t);return g.jsxs(Uw,{children:[!o&&g.jsx("div",{...s,style:{position:"fixed",inset:0}}),g.jsxs("div",{...l,ref:i,className:pS.popover,children:[!o&&g.jsx(Yd,{onDismiss:t.close}),e,g.jsx(Yd,{onDismiss:t.close})]})]})}const gS="_spinner_1m2vp_5",vS="_internal_1m2vp_27",eh={spinner:gS,"internal-circle":"_internal-circle_1m2vp_27",internal:vS};function yS({size:e=24}){const t=p.useId();return p.useEffect(()=>{var n,r;(n=document==null?void 0:document.getElementById(t))==null||n.style.setProperty("width",`${e}px`),(r=document==null?void 0:document.getElementById(t))==null||r.style.setProperty("height",`${e}px`)},[e,t]),g.jsx("svg",{id:t,className:eh.spinner,viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg",children:g.jsx("circle",{className:eh["internal-circle"],cx:"60",cy:"60",r:"30"})})}function xS(e){const{contains:t}=hw({sensitivity:"base"}),n=IE({...e,defaultFilter:t,allowsCustomValue:!0}),r=p.useRef(null),o=p.useRef(null),i=p.useRef(null),l=p.useRef(null),{size:s="md",color:a,onSubmit:u,topContent:c,bottomContent:f,...d}=e,{inputProps:h,listBoxProps:E}=rS({...d,inputRef:r,listBoxRef:o,popoverRef:i,onKeyUp:b=>{var w;b.key==="Enter"&&(b.preventDefault(),(w=e.onSubmit)==null||w.call(e,n.inputValue))}},n);return g.jsxs("form",{onSubmit:()=>u==null?void 0:u((e==null?void 0:e.inputValue)||""),ref:l,className:R("fr-search-bar",{"fr-search-bar--lg":s==="lg"}),role:"search",children:[g.jsx("input",{...h,type:"search",ref:r,className:"fr-input"}),g.jsxs("button",{type:"submit",style:{position:"relative"},className:R("fr-btn",{"fr-btn--lg":s==="lg"}),children:[g.jsx("div",{style:{position:"absolute",left:"-40px"},children:e.loadingState==="loading"&&g.jsx(yS,{})}),"Rechercher"]}),n.isOpen&&g.jsx(mS,{popoverRef:i,triggerRef:r,state:n,isNonModal:!1,placement:"bottom start",children:g.jsx(dS,{...E,color:a,listBoxRef:o,triggerRef:l,state:n,topContent:c,bottomContent:f})})]})}const ES=p.forwardRef,Ze=ES(({as:e,className:t,noIcon:n,color:r="blue-france",size:o,icon:i,variant:l="primary",...s},a)=>{const u=e==="a"?Se:e||"p",c=R("fr-badge",{[`fr-badge--${l}`]:l,[`fr-badge--${r}`]:r,[`fr-icon-${i}`]:i,"fr-badge--icon-":i,"fr-badge--no-icon":n,"fr-badge--sm":o==="sm"},t);return g.jsx(u,{className:c,ref:a,...s})}),Vc=({children:e,className:t,...n})=>{const r=p.useId(),o=R("fr-badges-group",t);return g.jsx("ul",{className:o,...n,children:Tn(e,Ze).map((i,l)=>g.jsx("li",{children:i},`${r}-${l}`))})},bS=p.forwardRef,xu=bS(({as:e,className:t,color:n="blue-france",icon:r,iconPosition:o="left",size:i="md",variant:l="primary",children:s,...a},u)=>{const c=e==="a"?Se:e||"button",f=R("fr-btn",{[`fr-btn--${i}`]:i!=="md",[`dfr-btn--${n}`]:!!n&&n!=="blue-france","fr-btn--secondary":l==="secondary","fr-btn--tertiary":l==="tertiary","fr-btn--tertiary-no-outline":l==="text",[`fr-icon-${r}`]:!!r,[`fr-btn--icon-${o}`]:r&&s,"fr-btn--icon":r&&!s},t);return g.jsx(c,{className:f,ref:u,...a,children:s})});p.forwardRef(({className:e,css:t={},hint:n,id:r,label:o,size:i,...l},s)=>{const a=p.useId(),u=r||a;return g.jsxs("div",{className:R("fr-checkbox-group",{"fr-checkbox-group--sm":i==="sm"},e),children:[g.jsx("input",{ref:s,type:"checkbox",id:u,className:R(t.input),...l}),g.jsxs("label",{className:R("fr-label",t.label),htmlFor:u,children:[o,n&&g.jsx("span",{className:R("fr-hint-text",t.labelHint),children:n})]})]})});const th=["__TYPE"];function zl(e,t={}){const{include:n,exclude:r}=t;if(n)return Object.entries(e).reduce((i,[l,s])=>n.includes(l)?{...i,[l]:s}:i,{});const o=r?[...th,...r]:th;return Object.entries(e).reduce((i,[l,s])=>o.includes(l)?i:{...i,[l]:s},{})}p.forwardRef(({children:e,className:t,css:n={},hint:r,isInline:o=!1,legend:i,message:l,messageType:s,required:a,...u},c)=>{const f=p.useId(),{extendRequiredFieldsLabelsWith:d,extendOptionalFieldsLabelsWith:h}=jo();return g.jsxs("fieldset",{ref:c,className:R("fr-fieldset",{[`fr-fieldset--${s}`]:s},t),...zl(u),"aria-labelledby":l&&s?`${f}-message`:void 0,children:[i&&g.jsxs("legend",{className:R("fr-fieldset__legend fr-text--regular",n.legend),children:[i,a?d:h,r&&g.jsx("span",{className:R("fr-hint-text",n.legendHint),children:r})]}),p.Children.toArray(e).map((E,b)=>g.jsx("div",{className:R("fr-fieldset__element",{"fr-fieldset__element--inline":o},n.element),children:E},`${f}-${b}`)),l&&s&&g.jsx("div",{id:`${f}-message`,className:R("fr-messages-group",n.messageDiv),children:g.jsx("p",{className:R(`fr-message fr-message--${s}`,n.messageP),children:l})})]})});p.forwardRef(({id:e,className:t,css:n={},errorMessage:r,hint:o,label:i="Ajouter des fichiers",...l},s)=>{const a=p.useId(),u=e||a,{extendOptionalFieldsLabelsWith:c,extendRequiredFieldsLabelsWith:f}=jo();return g.jsxs("div",{className:R("fr-upload-group",{"fr-input-group--error":r,"fr-input-group--disabled":l.disabled},t),children:[g.jsxs("label",{className:R("fr-label",n.label),htmlFor:u,children:[i,l.required?f:c,o&&g.jsx("span",{className:"fr-hint-text",children:o})]}),g.jsx("input",{ref:s,id:u,className:R("fr-upload",n.input),type:"file","aria-describedby":r?`${u}-message`:void 0,...l}),r&&g.jsx("p",{id:`${u}-message`,className:R("fr-error-text",n.errorParagraph),children:r})]})});const wS=p.forwardRef,xe=wS(({as:e="div",className:t,fluid:n=!1,fluidFrom:r="xs",...o},i)=>{const l=R({"fr-container":!n,"fr-container-fluid":n||r==="xs",[`fr-container-${r}--fluid`]:!n&&r!=="xs"},t);return g.jsx(e,{className:l,ref:i,...o})}),Ry=({gutters:e=!1,horizontalAlign:t,verticalAlign:n,className:r,...o})=>{const i=R("fr-grid-row",{"fr-grid-row--gutters":e,[`fr-grid-row--${t}`]:t,[`fr-grid-row--${n}`]:n},r);return g.jsx("div",{className:i,...o})},Js=({xs:e,sm:t,md:n,lg:r,xl:o,offsetXs:i,offsetSm:l,offsetMd:s,offsetLg:a,offsetXl:u,className:c,...f})=>{const d=R("fr-col",{[`fr-col-${e}`]:e,[`fr-col-sm-${t}`]:t,[`fr-col-md-${n}`]:n,[`fr-col-lg-${r}`]:r,[`fr-col-xl-${o}`]:o,[`fr-col-offset-${i}`]:i,[`fr-col-offset-sm-${l}`]:l,[`fr-col-offset-md-${s}`]:s,[`fr-col-offset-lg-${a}`]:a,[`fr-col-offset-xl-${u}`]:u},c);return g.jsx("div",{className:d,...f})},Ly=({href:e="/",name:t,tagline:n,className:r,css:o={},...i})=>g.jsxs("div",{className:R("fr-header__service",r),children:[g.jsx("p",{className:R("fr-header__service-title",o["fr-header__service-title"]),children:g.jsx(Se,{href:e,...i,children:t})}),n&&g.jsx("p",{className:R("fr-header__service-tagline",o["fr-header__service-tagline"]),children:n})]}),SS=({children:e,className:t,css:n={},...r})=>{const o=p.useId(),i=r.id||o;return g.jsxs("div",{className:R("fr-header__tools-links",t),...r,children:[g.jsx("ul",{className:R("fr-btns-group",n["fr-btns-group"]),children:Tn(e,xu).map((l,s)=>g.jsx("li",{children:l},`${i}-${s}`))}),gE(e,[xu])]})},CS=({className:e,css:t={},...n})=>g.jsx("div",{className:R("fr-header__operator",e),children:g.jsx("img",{className:R("fr-responsive-img",t["fr-responsive-img"]),...n})}),$y=p.forwardRef(({className:e,css:t={},buttonLabel:n,isLarge:r,label:o,onSearch:i,placeholder:l,...s},a)=>{const u=p.useRef(null),c=p.useId(),f=s.id||c,d=h=>{var E;return h.key==="Enter"&&i((E=u.current)==null?void 0:E.value)};return g.jsxs("div",{role:"search",className:R("fr-search-bar",{"fr-search-bar--lg":r},e),children:[o&&g.jsx("label",{className:R("fr-label",t["fr-label"]),htmlFor:f,children:o}),g.jsx("input",{ref:h=>Fo(h,[a,u]),className:R("fr-input",t["fr-input"]),type:"search",id:f,onKeyDown:d,placeholder:l,...zl(s)}),g.jsx("button",{type:"button",onClick:()=>{var h;return i((h=u.current)==null?void 0:h.value)},className:R("fr-btn",{"fr-btn--lg":r},t["fr-btn"]),title:n,children:n})]})}),Iy=({children:e,className:t,current:n=!1,css:r={},title:o,...i})=>{const l=p.useId(),s=Ac(e,[Iy,Se]);return g.jsxs(g.Fragment,{children:[g.jsx("button",{className:R("fr-nav__btn",t),"aria-expanded":"false","aria-controls":l,"aria-current":n||void 0,...i,children:o}),g.jsx("div",{className:R("fr-collapse","fr-menu",r["fr-menu"]),id:l,children:g.jsx("ul",{className:R("fr-menu__list",r["fr-menu__list"]),children:s.map((a,u)=>g.jsx("li",{className:"fr-nav__item",children:p.isValidElement(a)&&a.type===Se?p.cloneElement(a,{className:R("fr-nav__link",a.props.className)}):a},`navitem-${l}-${u}`))})})]})},My=({children:e,className:t,css:n={},...r})=>{const o=p.useId(),i=r.id||o;return g.jsx("nav",{className:R("fr-nav",t),id:i,role:"navigation",...r,children:g.jsx("ul",{className:R("fr-nav__list",n["fr-nav__list"]),children:Ac(e,[Iy,Se]).map((l,s)=>p.isValidElement(l)&&g.jsx("li",{className:R("fr-nav__item",n["fr-nav__item"]),children:l.type===Se?p.cloneElement(l,{className:R("fr-nav__link",l.props.className)}):l},`navitem-${i}-${s}`))})})},Vl=({text:e,splitCharacter:t="|"})=>{const n=e.split(t).reduce((r,o,i)=>i>0?[...r,g.jsx("br",{},`br-${i}`),g.jsx(p.Fragment,{children:o},i)]:[g.jsx(p.Fragment,{children:o},i)],[]);return g.jsx("div",{className:"fr-header__logo",children:g.jsx("p",{className:"fr-logo",children:n})})},TS=({children:e,className:t,css:n={},...r})=>{var o,i,l,s;const a=p.useId(),u=p.useId(),c=p.useId(),f=p.useId(),d=(o=Tn(e,Ly))==null?void 0:o[0],h=(i=Tn(e,SS))==null?void 0:i[0],E=(l=Ac(e,[$y,xS]))==null?void 0:l[0],b=(s=Tn(e,My))==null?void 0:s[0],w=Tn(e,Vl),y=Tn(e,CS),m=p.isValidElement(E)?E.props.title:"Rechercher";return g.jsxs("header",{role:"banner",className:R("fr-header",t),...r,children:[g.jsx("div",{className:R("fr-header__body",n["fr-header__body"]),children:g.jsx("div",{className:"fr-container",children:g.jsxs("div",{className:R("fr-header__body-row",n["fr-header__body-row"]),children:[g.jsxs("div",{className:R("fr-header__brand fr-enlarge-link",n["fr-header__brand"]),children:[g.jsxs("div",{className:R("fr-header__brand-top",n["fr-header__brand-top"]),children:[w&&w,y&&y,(h||E)&&g.jsxs("div",{className:R("fr-header__navbar",n["fr-header__navbar"]),children:[E&&g.jsx("button",{className:R("fr-btn--search fr-btn",n["fr-btn--search"]),"data-fr-opened":"false","aria-controls":u,id:a,title:m,children:m}),h&&g.jsx("button",{className:R("fr-btn--menu fr-btn",n["fr-btn--menu"]),"data-fr-opened":"false","aria-controls":c,"aria-haspopup":"menu",id:f,title:"Menu",children:"Menu"})]})]}),d&&d]}),g.jsxs("div",{className:R("fr-header__tools",n["fr-header__tools"]),children:[h,E&&g.jsx("div",{className:R("fr-header__search fr-modal",n["fr-header__search"]),id:u,children:g.jsxs("div",{className:"fr-container fr-container-lg--fluid",children:[g.jsx("button",{className:"fr-btn--close fr-btn","aria-controls":u,title:"Fermer",children:"Fermer"}),E]})})]})]})})}),g.jsx("div",{className:R("fr-header__menu fr-modal",n["fr-header__menu"]),id:c,"aria-labelledby":f,children:g.jsxs("div",{className:"fr-container",children:[g.jsx("button",{className:"fr-btn--close fr-btn","aria-controls":c,title:"Fermer",children:"Fermer"}),g.jsx("div",{className:R("fr-header__menu-links",n["fr-header__menu-links"])}),b&&b]})})]})};p.forwardRef(({className:e,css:t={},disableAutoValidation:n=!1,hint:r,icon:o,id:i,label:l,message:s,messageType:a,onBlur:u,onChange:c,disabled:f,required:d,isOptional:h,...E},b)=>{const{extendRequiredFieldsLabelsWith:w,extendOptionalFieldsLabelsWith:y}=jo(),[m,x]=p.useState(""),S=i||p.useId(),T=p.useRef(null),C=s!==void 0||a!==void 0,_=R("fr-input",{"fr-input--error":C?a==="error":m==="error","fr-input--valid":C?a==="valid":m==="valid"},t["fr-input"]),v=R("fr-input-group",{"fr-input-group--error":C?a==="error":m==="error","fr-input-group--valid":C?a==="valid":m==="valid","fr-input-group--disabled":f},e),L=P=>{const D=T.current;!n&&!C&&D&&x(D.checkValidity()?"valid":"error"),u&&u(P)},N=P=>{const D=T.current;!n&&!C&&D&&m&&x(D.checkValidity()?"valid":"error"),c&&c(P)};return g.jsxs("div",{className:v,children:[g.jsxs("label",{className:R("fr-label",t["fr-label"]),htmlFor:S,children:[l,d&&!h&&w,h&&!d&&y,r&&g.jsx("span",{className:R("fr-hint-text",t["fr-hint-text"]),children:r})]}),g.jsx("div",{className:R("fr-input-wrap",{[`fr-icon-${o}`]:o},t["fr-input-wrap"]),children:g.jsx("input",{id:S,disabled:f,className:_,onBlur:L,onChange:N,ref:P=>Fo(P,[b,T]),"aria-describedby":a?`${S}-message`:void 0,...E})}),a&&g.jsx("p",{className:`fr-${a}-text`,id:`${S}-message`,children:s})]})});p.forwardRef(({className:e,css:t={},disableAutoValidation:n=!1,hint:r,icon:o,id:i,label:l,message:s,messageType:a,onBlur:u,onChange:c,disabled:f,required:d,isOptional:h,...E},b)=>{const{extendRequiredFieldsLabelsWith:w,extendOptionalFieldsLabelsWith:y}=jo(),[m,x]=p.useState(""),S=i||p.useId(),T=p.useRef(null),C=s!==void 0||a!==void 0,_=R("fr-input",{"fr-input--error":C?a==="error":m==="error","fr-input--valid":C?a==="valid":m==="valid"},t["fr-input"]),v=R("fr-input-group",{"fr-input-group--error":C?a==="error":m==="error","fr-input-group--valid":C?a==="valid":m==="valid","fr-input-group--disabled":f},e),L=P=>{const D=T.current;!n&&!C&&D&&x(D.checkValidity()?"valid":"error"),u&&u(P)},N=P=>{const D=T.current;!n&&!C&&D&&m&&x(D.checkValidity()?"valid":"error"),c&&c(P)};return g.jsxs("div",{className:v,children:[g.jsxs("label",{className:R("fr-label",t["fr-label"]),htmlFor:S,children:[l,d&&!h&&w,h&&!d&&y,r&&g.jsx("span",{className:R("fr-hint-text",t["fr-hint-text"]),children:r})]}),g.jsx("div",{className:R("fr-input-wrap",{[`fr-icon-${o}`]:o},t["fr-input-wrap"]),children:g.jsx("textarea",{id:S,className:_,disabled:f,onBlur:L,onChange:N,ref:P=>Fo(P,[b,T]),"aria-describedby":a?`${S}-message`:void 0,...E})}),a&&g.jsx("p",{className:`fr-${a}-text`,id:`${S}-message`,children:s})]})});p.forwardRef(({className:e,color:t="blue-france",icon:n,iconPosition:r="left",size:o="md",variant:i="primary",children:l,...s},a)=>{const u=R("fr-btn",{[`fr-btn--${o}`]:o!=="md",[`dfr-btn--${t}`]:!!t&&t!=="blue-france","fr-btn--secondary":i==="secondary","fr-btn--tertiary":i==="tertiary","fr-btn--tertiary-no-outline":i==="text",[`fr-icon-${n}`]:!!n,[`fr-btn--icon-${r}`]:n&&l,"fr-btn--icon":n&&!l},e);return g.jsx("button",{className:u,ref:a,...s,children:l})});p.forwardRef(({children:e,className:t,icon:n,id:r,...o},i)=>{const l=R("fr-modal__title",t);return g.jsxs("h1",{ref:i,className:l,id:`${r}-title`,...zl(o),children:[n&&g.jsx("span",{className:`fr-icon-${n} fr-icon--lg`}),e]})});p.forwardRef(({className:e,controls:t,children:n="Fermer",...r},o)=>g.jsx("button",{ref:o,id:`${t}-close`,"aria-controls":t||void 0,className:R("fr-btn--close fr-btn",e),type:"button",...r,children:n}));p.forwardRef(({...e},t)=>g.jsx("div",{ref:t,...e}));p.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:R("fr-modal__footer",e),...t}));const Ay=({children:e,closeMode:t="disallow",type:n="info",className:r,css:o={},onClose:i,...l})=>{const s=p.useRef(null),a=c=>{var f;c.preventDefault(),(f=s.current)==null||f.remove(),i&&i(c)},u=R("fr-notice",{"fr-notice--info":n==="info",[`dsfr-plus-notice--${n}`]:n!=="info"},r);return g.jsx("div",{ref:s,className:u,...l,children:g.jsx("div",{className:R("fr-container",o["fr-container"]),children:g.jsxs("div",{className:R("fr-notice__body",o["fr-notice__body"]),children:[g.jsx("p",{className:R("fr-notice__title",o["fr-notice__title"]),children:e}),t!=="disallow"&&g.jsx("button",{onClick:t==="uncontrolled"?a:i,className:R("fr-btn--close","fr-btn",o["fr-btn--close"]),children:"Masquer le message"})]})})})};p.forwardRef(({checked:e,className:t,css:n={},hint:r,id:o,imageComponent:i,label:l,name:s,...a},u)=>{const c=o||p.useId();return g.jsxs("div",{className:R("fr-radio-group",{"fr-radio-rich":i},t),children:[g.jsx("input",{checked:e,id:c,name:s,ref:u,type:"radio",...a}),g.jsxs("label",{className:R("fr-label"),htmlFor:c,children:[l,r&&g.jsx("p",{className:R("fr-hint-text"),children:r})]}),i&&g.jsx("div",{className:R("fr-radio-rich__img"),children:i})]})});function _S(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Oy={exports:{}},ea,nh;function PS(){if(nh)return ea;nh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ea=e,ea}var ta,rh;function NS(){if(rh)return ta;rh=1;var e=PS();function t(){}function n(){}return n.resetWarningCache=t,ta=function(){function r(l,s,a,u,c,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},ta}Oy.exports=NS()();var kS=Oy.exports;const RS=_S(kS),LS="_spinner_143d9_5",$S="_internal_143d9_40",IS="_external_143d9_41",na={spinner:LS,"internal-circle":"_internal-circle_143d9_40","external-circle":"_external-circle_143d9_41",internal:$S,external:IS,"spinner-overlay":"_spinner-overlay_143d9_57"};function Gc({size:e}){const t=p.useId();return p.useEffect(()=>{var n,r;(n=document==null?void 0:document.getElementById(t))==null||n.style.setProperty("width",`${e}px`),(r=document==null?void 0:document.getElementById(t))==null||r.style.setProperty("height",`${e}px`)},[e,t]),g.jsxs("svg",{id:t,className:na.spinner,viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg",children:[g.jsx("circle",{className:na["internal-circle"],cx:"60",cy:"60",r:"30"}),g.jsx("circle",{className:na["external-circle"],cx:"60",cy:"60",r:"50"})]})}Gc.propTypes={size:RS.number};Gc.defaultProps={size:48};const Wc=p.forwardRef,Qc=({className:e,color:t,icon:n,iconPosition:r,size:o})=>R("fr-tag",e,{"fr-tag--sm":o==="sm",[`fr-icon-${n}`]:n,[`fr-tag--icon-${r}`]:n&&r,[`fr-tag--${t}`]:t});Wc(({as:e,className:t,color:n,icon:r,iconPosition:o="right",size:i,...l},s)=>{const a=Qc({className:t,color:n,icon:r,iconPosition:o,size:i});return g.jsx(e==="a"?Se:e||"p",{className:a,ref:s,...l})});Wc(({as:e,className:t,color:n,icon:r,iconPosition:o="left",selected:i,size:l,...s},a)=>{const u=Qc({className:t,color:n,icon:r,iconPosition:o,size:l});return g.jsx(e==="a"?Se:e||"button",{"aria-pressed":i,className:u,"data-fr-js-disable":"true",ref:a,...s})});Wc(({as:e,className:t,color:n,icon:r,iconPosition:o="left",size:i,...l},s)=>{const a=R("custom-dismissible-tag",Qc({className:t,color:n,icon:r,iconPosition:o,size:i}));return g.jsx(e==="a"?Se:e||"button",{className:a,ref:s,...l})});const ra=({alt:e,as:t="p",bold:n,className:r,size:o,...i})=>{const l=R(r,{"fr-text--alt":o!=="lead"&&e,"fr-text--heavy":n,[`fr-text--${o}`]:o&&o!=="md"});return g.jsx(t,{className:l,...i})};p.createContext({});p.forwardRef(({className:e,css:t={},hasLabelLeft:n,hasSeparator:r,hint:o,label:i,...l},s)=>{const a=p.useId(),u=l.id||a,c=R("fr-toggle",{"fr-toggle--border-bottom":r,"fr-toggle--label-left":n},e);return g.jsxs("div",{className:c,children:[g.jsx("input",{ref:s,type:"checkbox",className:R("fr-toggle__input",t["fr-toggle__input"]),id:u,...zl(l,{exclude:["type"]})}),g.jsx("label",{className:R("fr-toggle__label",t["fr-toggle__label"]),htmlFor:u,"data-fr-checked-label":"Activé","data-fr-unchecked-label":"Désactivé",children:i}),o&&g.jsx("p",{className:R("fr-hint-text",t["fr-hint-text"]),children:o})]})});p.forwardRef(({className:e,icon:t,id:n,label:r,name:o,...i},l)=>g.jsxs("div",{className:R("fr-segmented__element"),style:{width:"100%"},children:[g.jsx("input",{id:n,name:o,ref:l,type:"radio",...i}),g.jsx("label",{className:R("fr-label",t),htmlFor:n,children:r})]}));/** +*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o{const i=new MutationObserver(t);o(i)},[t,n,o]),p.useEffect(()=>{if(!r||!e)return;const{config:i}=n;return r.observe(e,i),()=>{r&&r.disconnect()}},[r,e,n])}function Do(e,t){e&&t.forEach(n=>{typeof n=="function"?n(e):n&&(n.current=e)})}const vE=p.forwardRef(({title:e,titleAs:t="h3",children:n,className:r,css:o={},defaultExpanded:i=!1,...l},s)=>{const a=p.useId(),u=p.useRef(null),[c,d]=p.useState(!!i),f=p.useCallback(h=>{var E;if(h.find(b=>b.attributeName==="aria-expanded")&&(E=u==null?void 0:u.current)!=null&&E.attributes){const b=u.current.attributes.getNamedItem("aria-expanded");d(b?b.value==="true":!1)}},[u]);return gE(u==null?void 0:u.current,f),g.jsxs("section",{className:R("fr-accordion",r),children:[g.jsx(t,{className:R("fr-accordion__title",o.title),children:g.jsx("button",{...l,ref:h=>Do(h,[s,u]),className:R("fr-accordion__btn",o.button),"aria-expanded":i,"aria-controls":a,children:p.isValidElement(e)||typeof e=="string"?e:typeof e=="function"?e(c):null})}),g.jsx("div",{className:"fr-collapse",id:a,children:n})]})});function Tn(e,t){return p.Children.toArray(e).filter(n=>p.isValidElement(n)&&n.type===t)}function Ac(e,t){return p.Children.toArray(e).filter(n=>p.isValidElement(n)&&t.includes(n.type))}function yE(e,t){return p.Children.toArray(e).filter(n=>p.isValidElement(n)&&!t.includes(n.type))}p.forwardRef(({className:e,closeMode:t="disallow",description:n,size:r,onClose:o,title:i,css:l={},titleAs:s="h3",variant:a="info",...u},c)=>{const d=p.useRef(null),f=h=>{var E;h.preventDefault(),(E=d.current)==null||E.remove(),o&&o(h)};return g.jsxs("div",{ref:h=>Do(h,[c,d]),className:R(`fr-alert fr-alert--${a}`,{"fr-alert--sm":r==="sm"},e),...u,children:[i&&g.jsx(s,{className:R("fr-alert__title",l.title),children:i}),n&&g.jsx("p",{className:R(l.description),children:n}),t==="uncontrolled"&&g.jsx("button",{onClick:f,className:R("fr-btn--close fr-btn",l.button),children:"Masquer le message"}),t==="controlled"&&g.jsx("button",{onClick:o,className:R("fr-link--close fr-link",l.button),children:"Masquer le message"})]})});function xE(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function EE(e,t,n){xE(e,t),t.set(e,n)}function jo(e,t,n){let[r,o]=p.useState(e||t),i=p.useRef(e!==void 0),l=e!==void 0;p.useEffect(()=>{let u=i.current;u!==l&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}.`),i.current=l},[l]);let s=l?e:r,a=p.useCallback((u,...c)=>{let d=(f,...h)=>{n&&(Object.is(s,f)||n(f,...h)),l||(s=f)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((f,...h)=>{let E=u(l?s:f,...h);return d(E,...c),l?f:E})):(l||o(u),d(u,...c))},[l,s,n]);return[s,a]}function ru(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}const eg={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},tg={...eg,customError:!0,valid:!1},Ur={isInvalid:!1,validationDetails:eg,validationErrors:[]},bE=p.createContext({}),ou="__formValidationState"+Date.now();function ng(e){if(e[ou]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}=e[ou];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:o,commitValidation:i}}return wE(e)}function wE(e){let{isInvalid:t,validationState:n,name:r,value:o,builtinValidation:i,validate:l,validationBehavior:s="aria"}=e;n&&(t||(t=n==="invalid"));let a=t?{isInvalid:!0,validationErrors:[],validationDetails:tg}:null,u=p.useMemo(()=>xd(SE(l,o)),[l,o]);i!=null&&i.validationDetails.valid&&(i=null);let c=p.useContext(bE),d=p.useMemo(()=>r?Array.isArray(r)?r.flatMap(v=>iu(c[v])):iu(c[r]):[],[c,r]),[f,h]=p.useState(c),[E,b]=p.useState(!1);c!==f&&(h(c),b(!1));let w=p.useMemo(()=>xd(E?[]:d),[E,d]),y=p.useRef(Ur),[m,x]=p.useState(Ur),S=p.useRef(Ur),T=()=>{if(!C)return;_(!1);let v=u||i||y.current;Bs(v,S.current)||(S.current=v,x(v))},[C,_]=p.useState(!1);return p.useEffect(T),{realtimeValidation:a||w||u||i||Ur,displayValidation:s==="native"?a||w||m:a||w||u||i||m,updateValidation(v){s==="aria"&&!Bs(m,v)?x(v):y.current=v},resetValidation(){let v=Ur;Bs(v,S.current)||(S.current=v,x(v)),s==="native"&&_(!1),b(!0)},commitValidation(){s==="native"&&_(!0),b(!0)}}}function iu(e){return e?Array.isArray(e)?e:[e]:[]}function SE(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return iu(n)}return[]}function xd(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:tg}:null}function Bs(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}class CE{build(t,n){return this.context=n,Ed(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let o of t.items)yield*this.getFullNode({value:o},{renderer:n})}else{let o=[];q.Children.forEach(n,l=>{o.push(l)});let i=0;for(let l of o){let s=this.getFullNode({element:l,index:i},{});for(let a of s)i++,yield a}}}getKey(t,n,r,o){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${o}${n.key}`;let i=n.value;if(i!=null){var l;let s=(l=i.key)!==null&&l!==void 0?l:i.id;if(s==null)throw new Error("No key found for item");return s}return o?`${o}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,o){let i=t.element;if(!i&&t.value&&n&&n.renderer){let a=this.cache.get(t.value);if(a&&(!a.shouldInvalidate||!a.shouldInvalidate(this.context))){a.index=t.index,a.parentKey=o?o.key:null,yield a;return}i=n.renderer(t.value)}if(q.isValidElement(i)){let a=i.type;if(typeof a!="function"&&typeof a.getCollectionNode!="function"){let f=typeof i.type=="function"?i.type.name:i.type;throw new Error(`Unknown element <${f}> in collection.`)}let u=a.getCollectionNode(i.props,this.context),c=t.index,d=u.next();for(;!d.done&&d.value;){let f=d.value;t.index=c;let h=f.key;h||(h=f.element?null:this.getKey(i,t,n,r));let E=[...this.getFullNode({...f,key:h,index:c,wrapper:TE(t.wrapper,f.wrapper)},this.getChildState(n,f),r?`${r}${i.key}`:i.key,o)];for(let b of E){if(b.value=f.value||t.value,b.value&&this.cache.set(b.value,b),t.type&&b.type!==t.type)throw new Error(`Unsupported type <${Hs(b.type)}> in <${Hs(o.type)}>. Only <${Hs(t.type)}> is supported.`);c++,yield b}d=u.next(E)}return}if(t.key==null)return;let l=this,s={type:t.type,props:t.props,key:t.key,parentKey:o?o.key:null,value:t.value,level:o?o.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:Ed(function*(){if(!t.hasChildNodes)return;let a=0;for(let u of t.childNodes()){u.key!=null&&(u.key=`${s.key}${u.key}`),u.index=a;let c=l.getFullNode(u,l.getChildState(n,u),s.key,s);for(let d of c)a++,yield d}})};yield s}constructor(){this.cache=new WeakMap}}function Ed(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function TE(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function Hs(e){return e[0].toUpperCase()+e.slice(1)}function _E(e,t,n){let r=p.useMemo(()=>new CE,[]),{children:o,items:i,collection:l}=e;return p.useMemo(()=>{if(l)return l;let s=r.build({children:o,items:i},n);return t(s)},[r,o,i,l,n,t])}function Dl(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function PE(e){return NE(e,0)}function NE(e,t){if(t<0)return;let n=0;for(let r of e){if(n===t)return r;n++}}function Ks(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...bd(e,t),t],o=[...bd(e,n),n],i=r.slice(0,o.length).findIndex((l,s)=>l!==o[s]);return i!==-1?(t=r[i],n=o[i],t.index-n.index):r.findIndex(l=>l===n)>=0?1:(o.findIndex(l=>l===t)>=0,-1)}function bd(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const wd=new WeakMap;function rg(e){let t=wd.get(e);if(t!=null)return t;t=0;let n=r=>{for(let o of r)o.type==="section"?n(Dl(o,e)):t++};return n(e),wd.set(e,t),t}class vt extends Set{constructor(t,n,r){super(t),t instanceof vt?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function kE(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function RE(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:o="toggle",disabledBehavior:i="all"}=e,l=p.useRef(!1),[,s]=p.useState(!1),a=p.useRef(null),u=p.useRef(null),[,c]=p.useState(null),d=p.useMemo(()=>Sd(e.selectedKeys),[e.selectedKeys]),f=p.useMemo(()=>Sd(e.defaultSelectedKeys,new vt),[e.defaultSelectedKeys]),[h,E]=jo(d,f,e.onSelectionChange),b=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[w,y]=p.useState(o);o==="replace"&&w==="toggle"&&typeof h=="object"&&h.size===0&&y("replace");let m=p.useRef(o);return p.useEffect(()=>{o!==m.current&&(y(o),m.current=o)},[o]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:w,setSelectionBehavior:y,get isFocused(){return l.current},setFocused(x){l.current=x,s(x)},get focusedKey(){return a.current},get childFocusStrategy(){return u.current},setFocusedKey(x,S="first"){a.current=x,u.current=S,c(x)},selectedKeys:h,setSelectedKeys(x){(r||!kE(x,h))&&E(x)},disabledKeys:b,disabledBehavior:i}}function Sd(e,t){return e?e==="all"?"all":new vt(e):t}class LE{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Ks(this.collection,r,t)<0)&&(t=r)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Ks(this.collection,r,t)>0)&&(t=r)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let n;if(this.state.selectedKeys==="all")n=new vt([t],t,t);else{let r=this.state.selectedKeys,o=r.anchorKey||t;n=new vt(r,o,t);for(let i of this.getKeyRange(o,r.currentKey||t))n.delete(i);for(let i of this.getKeyRange(t,o))this.canSelectItem(i)&&n.add(i)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let r=this.collection.getItem(t),o=this.collection.getItem(n);return r&&o?Ks(this.collection,r,o)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){let r=[],o=t;for(;o;){let i=this.collection.getItem(o);if((i&&i.type==="item"||i.type==="cell"&&this.allowsCellSelection)&&r.push(o),o===n)return r;o=this.collection.getKeyAfter(o)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let n=new vt(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let n=this.canSelectItem(t)?new vt([t],t,t):new vt;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new vt;for(let r of t)if(r=this.getKey(r),r!=null&&(n.add(r),this.selectionMode==="single"))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r;){if(this.canSelectItem(r)){let o=this.collection.getItem(r);o.type==="item"&&t.push(r),o.hasChildNodes&&(this.allowsCellSelection||o.type!=="item")&&n(PE(Dl(o,this.collection)).key)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new vt)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let n=this.collection.getItem(t);return!(!n||n.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){return this.state.disabledKeys.has(t)&&this.state.disabledBehavior==="all"}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}constructor(t,n,r){this.collection=t,this.state=n;var o;this.allowsCellSelection=(o=r==null?void 0:r.allowsCellSelection)!==null&&o!==void 0?o:!1,this._isSelectAll=null}}class lu{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let n=i=>{if(this.keyMap.set(i.key,i),i.childNodes&&i.type==="section")for(let l of i.childNodes)n(l)};for(let i of t)n(i);let r,o=0;for(let[i,l]of this.keyMap)r?(r.nextKey=i,l.prevKey=r.key):(this.firstKey=i,l.prevKey=void 0),l.type==="item"&&(l.index=o++),r=l,r.nextKey=void 0;this.lastKey=r==null?void 0:r.key}}function $E(e){let{filter:t}=e,n=RE(e),r=p.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=p.useCallback(u=>t?new lu(t(u)):new lu(u),[t]),i=p.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),l=_E(e,o,i),s=p.useMemo(()=>new LE(l,n),[l,n]);const a=p.useRef(null);return p.useEffect(()=>{if(n.focusedKey!=null&&!l.getItem(n.focusedKey)){const u=a.current.getItem(n.focusedKey),c=[...a.current.getKeys()].map(b=>{const w=a.current.getItem(b);return w.type==="item"?w:null}).filter(b=>b!==null),d=[...l.getKeys()].map(b=>{const w=l.getItem(b);return w.type==="item"?w:null}).filter(b=>b!==null),f=c.length-d.length;let h=Math.min(f>1?Math.max(u.index-f+1,0):u.index,d.length-1),E;for(;h>=0;){if(!s.isDisabled(d[h].key)){E=d[h];break}hu.index&&(h=u.index),h--)}n.setFocusedKey(E?E.key:null)}a.current=l},[l,s,n,n.focusedKey]),{collection:l,disabledKeys:r,selectionManager:s}}function IE(e){var t;let[n,r]=jo(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),o=p.useMemo(()=>n!=null?[n]:[],[n]),{collection:i,disabledKeys:l,selectionManager:s}=$E({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:o,onSelectionChange:u=>{var c;let d=(c=u.values().next().value)!==null&&c!==void 0?c:null;d===n&&e.onSelectionChange&&e.onSelectionChange(d),r(d)}}),a=n!=null?i.getItem(n):null;return{collection:i,disabledKeys:l,selectionManager:s,selectedKey:n,setSelectedKey:r,selectedItem:a}}function ME(e){let[t,n]=jo(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=p.useCallback(()=>{n(!0)},[n]),o=p.useCallback(()=>{n(!1)},[n]),i=p.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:o,toggle:i}}function AE(e){var t,n;let{defaultFilter:r,menuTrigger:o="input",allowsEmptyCollection:i=!1,allowsCustomValue:l,shouldCloseOnBlur:s=!0}=e,[a,u]=p.useState(!1),[c,d]=p.useState(!1),[f,h]=p.useState(null),E=X=>{e.onSelectionChange&&e.onSelectionChange(X),X===m&&(Xe(),M())};var b;let{collection:w,selectionManager:y,selectedKey:m,setSelectedKey:x,selectedItem:S,disabledKeys:T}=IE({...e,onSelectionChange:E,items:(b=e.items)!==null&&b!==void 0?b:e.defaultItems});var C,_;let[v,L]=jo(e.inputValue,(_=(C=e.defaultInputValue)!==null&&C!==void 0?C:(t=w.getItem(m))===null||t===void 0?void 0:t.textValue)!==null&&_!==void 0?_:"",e.onInputChange),N=w,P=p.useMemo(()=>e.items!=null||!r?w:OE(w,v,r),[w,v,r,e.items]),[D,k]=p.useState(P),I=p.useRef("focus"),H=ME({...e,onOpenChange:X=>{e.onOpenChange&&e.onOpenChange(X,X?I.current:void 0),y.setFocused(X),X||y.setFocusedKey(null)},isOpen:void 0,defaultOpen:void 0}),J=(X=null,ae)=>{let _e=ae==="manual"||ae==="focus"&&o==="focus";(i||P.size>0||_e&&N.size>0||e.items)&&(_e&&!H.isOpen&&e.items===void 0&&u(!0),I.current=ae,h(X),H.open())},O=(X=null,ae)=>{let _e=ae==="manual"||ae==="focus"&&o==="focus";!(i||P.size>0||_e&&N.size>0||e.items)&&!H.isOpen||(_e&&!H.isOpen&&e.items===void 0&&u(!0),H.isOpen||(I.current=ae),B(X))},A=p.useCallback(()=>{k(a?N:P)},[a,N,P]),B=p.useCallback((X=null)=>{H.isOpen&&A(),h(X),H.toggle()},[H,A]),M=p.useCallback(()=>{H.isOpen&&(A(),H.close())},[H,A]),[U,W]=p.useState(v),Xe=()=>{var X,ae;let _e=(ae=(X=w.getItem(m))===null||X===void 0?void 0:X.textValue)!==null&&ae!==void 0?ae:"";W(_e),L(_e)};var Ue,St;let Re=p.useRef((St=(Ue=e.selectedKey)!==null&&Ue!==void 0?Ue:e.defaultSelectedKey)!==null&&St!==void 0?St:null);var K;let ee=p.useRef((K=(n=w.getItem(m))===null||n===void 0?void 0:n.textValue)!==null&&K!==void 0?K:"");p.useEffect(()=>{var X;c&&(P.size>0||i)&&!H.isOpen&&v!==U&&o!=="manual"&&J(null,"input"),!a&&!i&&H.isOpen&&P.size===0&&M(),m!=null&&m!==Re.current&&M(),v!==U&&(y.setFocusedKey(null),u(!1),v===""&&(e.inputValue===void 0||e.selectedKey===void 0)&&x(null)),m!==Re.current&&(e.inputValue===void 0||e.selectedKey===void 0)?Xe():U!==v&&W(v);var ae;let _e=(ae=(X=w.getItem(m))===null||X===void 0?void 0:X.textValue)!==null&&ae!==void 0?ae:"";!c&&m!=null&&e.inputValue===void 0&&m===Re.current&&ee.current!==_e&&(W(_e),L(_e)),Re.current=m,ee.current=_e});let bn=ng({...e,value:p.useMemo(()=>({inputValue:v,selectedKey:m}),[v,m])}),Mr=()=>{l&&m==null?zo():Vo()},zo=()=>{Re.current=null,x(null),M()},Vo=()=>{if(e.selectedKey!==void 0&&e.inputValue!==void 0){var X;e.onSelectionChange(m);var ae;let _e=(ae=(X=w.getItem(m))===null||X===void 0?void 0:X.textValue)!==null&&ae!==void 0?ae:"";W(_e),M()}else Xe(),M()};const hs=()=>{if(l){var X,ae;const _e=(ae=(X=w.getItem(m))===null||X===void 0?void 0:X.textValue)!==null&&ae!==void 0?ae:"";v===_e?Vo():zo()}else Vo()};let O0=()=>{H.isOpen&&y.focusedKey!=null?m===y.focusedKey?Vo():x(y.focusedKey):hs()},af=p.useRef(v),F0=X=>{X?(af.current=v,o==="focus"&&J(null,"focus")):(s&&hs(),v!==af.current&&bn.commitValidation()),d(X)},D0=p.useMemo(()=>H.isOpen?a?N:P:D,[H.isOpen,N,P,a,D]);return{...bn,...H,focusStrategy:f,toggle:O,open:J,close:hs,selectionManager:y,selectedKey:m,setSelectedKey:x,disabledKeys:T,isFocused:c,setFocused:F0,selectedItem:S,collection:D0,inputValue:v,setInputValue:L,commit:O0,revert:Mr}}function OE(e,t,n){return new lu(og(e,e,t,n))}function og(e,t,n,r){let o=[];for(let i of t)if(i.type==="section"&&i.hasChildNodes){let l=og(e,Dl(i,e),n,r);[...l].some(s=>s.type==="item")&&o.push({...i,childNodes:l})}else i.type==="item"&&r(i.textValue,n)?o.push({...i}):i.type!=="item"&&o.push({...i});return o}const FE=Symbol.for("react-aria.i18n.locale"),DE=Symbol.for("react-aria.i18n.strings");let zr;class jl{getStringForLocale(t,n){let r=this.getStringsForLocale(n)[t];if(!r)throw new Error(`Could not find intl message ${t} in ${n} locale`);return r}getStringsForLocale(t){let n=this.strings[t];return n||(n=jE(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[FE];if(zr===void 0){let o=window[DE];if(!o)return null;zr={};for(let i in o)zr[i]=new jl({[n]:o[i]},n)}let r=zr==null?void 0:zr[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings={...t},this.defaultLocale=n}}function jE(e,t,n="en-US"){if(t[e])return t[e];let r=BE(e);if(t[r])return t[r];for(let o in t)if(o.startsWith(r+"-"))return t[o];return t[n]}function BE(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Cd=new Map,Td=new Map;class HE{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let o=n["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+r,l=Cd.get(i);l||(l=new Intl.PluralRules(this.locale,{type:r}),Cd.set(i,l));let s=l.select(t);return o=n[s]||n.other,typeof o=="function"?o():o}number(t){let n=Td.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),Td.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const il={prefix:String(Math.round(Math.random()*1e10)),current:0},ig=q.createContext(il),KE=q.createContext(!1);let UE=!!(typeof window<"u"&&window.document&&window.document.createElement),Us=new WeakMap;function zE(e=!1){let t=p.useContext(ig),n=p.useRef(null);if(n.current===null&&!e){var r,o;let i=(o=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||o===void 0||(r=o.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let l=Us.get(i);l==null?Us.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==l.state&&(t.current=l.id,Us.delete(i))}n.current=++t.current}return n.current}function VE(e){let t=p.useContext(ig);t===il&&!UE&&console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=zE(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function GE(e){let t=q.useId(),[n]=p.useState(Oc()),r=n?"react-aria":`react-aria${il.prefix}`;return e||`${r}-${t}`}const WE=typeof q.useId=="function"?GE:VE;function QE(){return!1}function qE(){return!0}function XE(e){return()=>{}}function Oc(){return typeof q.useSyncExternalStore=="function"?q.useSyncExternalStore(XE,QE,qE):p.useContext(KE)}function lg(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{};function je(e){const t=p.useRef(null);return ce(()=>{t.current=e},[e]),p.useCallback((...n)=>{const r=t.current;return r(...n)},[])}function ZE(e){let[t,n]=p.useState(e),r=p.useRef(null),o=je(()=>{let l=r.current.next();if(l.done){r.current=null;return}t===l.value?o():n(l.value)});ce(()=>{r.current&&o()});let i=je(l=>{r.current=l(t),o()});return[t,i]}let JE=!!(typeof window<"u"&&window.document&&window.document.createElement),ll=new Map;function mn(e){let[t,n]=p.useState(e),r=p.useRef(null),o=WE(t),i=p.useCallback(l=>{r.current=l},[]);return JE&&ll.set(o,i),ce(()=>{let l=o;return()=>{ll.delete(l)}},[o]),p.useEffect(()=>{let l=r.current;l&&(r.current=null,n(l))}),o}function eb(e,t){if(e===t)return e;let n=ll.get(e);if(n)return n(t),t;let r=ll.get(t);return r?(r(e),e):t}function sl(e=[]){let t=mn(),[n,r]=ZE(t),o=p.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return ce(o,[t,o,...e]),n}function Po(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const me=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},No=e=>e&&"window"in e&&e.window===e?e:me(e).defaultView||window;function Oe(...e){let t={...e[0]};for(let n=1;n=65&&o.charCodeAt(2)<=90?t[o]=Po(i,l):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof l=="string"?t[o]=YE(i,l):o==="id"&&i&&l?t.id=eb(i,l):t[o]=l!==void 0?l:i}}return t}const tb=new Set(["id"]),nb=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),rb=new Set(["href","target","rel","download","ping","referrerPolicy"]),ob=/^(data-.*)$/;function Fc(e,t={}){let{labelable:n,isLink:r,propNames:o}=t,i={};for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(tb.has(l)||n&&nb.has(l)||r&&rb.has(l)||o!=null&&o.has(l)||ob.test(l))&&(i[l]=e[l]);return i}function jt(e){if(ib())e.focus({preventScroll:!0});else{let t=lb(e);e.focus(),sb(t)}}let ui=null;function ib(){if(ui==null){ui=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return ui=!0,!0}})}catch{}}return ui}function lb(e){for(var t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==r;)(t.offsetHeight"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Dc(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function gn(){return Dc(/^Mac/i)}function ab(){return Dc(/^iPhone/i)}function sg(){return Dc(/^iPad/i)||gn()&&navigator.maxTouchPoints>1}function Hl(){return ab()||sg()}function Li(){return gn()||Hl()}function ag(){return Bl(/AppleWebKit/i)&&!ub()}function ub(){return Bl(/Chrome/i)}function ug(){return Bl(/Android/i)}function cb(){return Bl(/Firefox/i)}const fb=p.createContext({isNative:!0,open:hb});function jc(){return p.useContext(fb)}function jn(e,t,n=!0){var r,o;let{metaKey:i,ctrlKey:l,altKey:s,shiftKey:a}=t;cb()&&!((o=window.event)===null||o===void 0||(r=o.type)===null||r===void 0)&&r.startsWith("key")&&e.target==="_blank"&&(gn()?i=!0:l=!0);let u=ag()&&gn()&&!sg()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:i,ctrlKey:l,altKey:s,shiftKey:a}):new MouseEvent("click",{metaKey:i,ctrlKey:l,altKey:s,shiftKey:a,bubbles:!0,cancelable:!0});jn.isOpening=n,jt(e),e.dispatchEvent(u),jn.isOpening=!1}jn.isOpening=!1;function db(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function hb(e,t){db(e,n=>jn(n,t))}let Yn=new Map,su=new Set;function _d(){if(typeof window>"u")return;let e=n=>{let r=Yn.get(n.target);r||(r=new Set,Yn.set(n.target,r),n.target.addEventListener("transitioncancel",t)),r.add(n.propertyName)},t=n=>{let r=Yn.get(n.target);if(r&&(r.delete(n.propertyName),r.size===0&&(n.target.removeEventListener("transitioncancel",t),Yn.delete(n.target)),Yn.size===0)){for(let o of su)o();su.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?_d():document.addEventListener("DOMContentLoaded",_d));function cg(e){requestAnimationFrame(()=>{Yn.size===0?e():su.add(e)})}function fg(){let e=p.useRef(new Map),t=p.useCallback((o,i,l,s)=>{let a=s!=null&&s.once?(...u)=>{e.current.delete(l),l(...u)}:l;e.current.set(l,{type:i,eventTarget:o,fn:a,options:s}),o.addEventListener(i,l,s)},[]),n=p.useCallback((o,i,l,s)=>{var a;let u=((a=e.current.get(l))===null||a===void 0?void 0:a.fn)||l;o.removeEventListener(i,u,s),e.current.delete(l)},[]),r=p.useCallback(()=>{e.current.forEach((o,i)=>{n(o.eventTarget,o.type,i,o.options)})},[n]);return p.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function al(e,t){let{id:n,"aria-label":r,"aria-labelledby":o}=e;return n=mn(n),o&&r?o=[...new Set([n,...o.trim().split(/\s+/)])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!r&&!o&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":o}}function pb(){return typeof window.ResizeObserver<"u"}function mb(e){const{ref:t,onResize:n}=e;p.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if(pb()){const o=new window.ResizeObserver(i=>{i.length&&n()});return o.observe(r),()=>{r&&o.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function dg(e,t){ce(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}})}function ul(e,t){for(cl(e,t)&&(e=e.parentElement);e&&!cl(e,t);)e=e.parentElement;return e||document.scrollingElement||document.documentElement}function cl(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}let gb=0;const zs=new Map;function vb(e){let[t,n]=p.useState(void 0);return ce(()=>{if(!e)return;let r=zs.get(e);if(r)n(r.element.id);else{let o=`react-aria-description-${gb++}`;n(o);let i=document.createElement("div");i.id=o,i.style.display="none",i.textContent=e,document.body.appendChild(i),r={refCount:0,element:i},zs.set(e,r)}return r.refCount++,()=>{--r.refCount===0&&(r.element.remove(),zs.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function yb(e,t,n,r){let o=je(n),i=n==null;p.useEffect(()=>{if(i)return;let l=e.current;return l.addEventListener(t,o,r),()=>{l.removeEventListener(t,o,r)}},[e,t,r,i,o])}function hg(e,t){let n=Pd(e,t,"left"),r=Pd(e,t,"top"),o=t.offsetWidth,i=t.offsetHeight,l=e.scrollLeft,s=e.scrollTop,{borderTopWidth:a,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),d=e.scrollTop+parseInt(a,10),f=c+e.clientWidth,h=d+e.clientHeight;n<=l?l=n-parseInt(u,10):n+o>f&&(l+=n+o-f),r<=d?s=r-parseInt(a,10):r+i>h&&(s+=r+i-h),e.scrollLeft=l,e.scrollTop=s}function Pd(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let o=0;for(;t.offsetParent&&(o+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){o-=e[r];break}t=t.offsetParent}return o}function Nd(e,t){if(document.contains(e)){let l=document.scrollingElement||document.documentElement;if(window.getComputedStyle(l).overflow==="hidden"){let s=ul(e);for(;e&&s&&e!==l&&s!==l;)hg(s,e),e=s,s=ul(e)}else{var n;let{left:s,top:a}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:u,top:c}=e.getBoundingClientRect();if(Math.abs(s-u)>1||Math.abs(a-c)>1){var r,o,i;t==null||(o=t.containingElement)===null||o===void 0||(r=o.scrollIntoView)===null||r===void 0||r.call(o,{block:"center",inline:"center"}),(i=e.scrollIntoView)===null||i===void 0||i.call(e,{block:"nearest"})}}}}function au(e){return e.mozInputSource===0&&e.isTrusted?!0:ug()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function xb(e){return!ug()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Eb(e,t,n){let r=p.useRef(t),o=je(()=>{n&&n(r.current)});p.useEffect(()=>{var i;let l=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return l==null||l.addEventListener("reset",o),()=>{l==null||l.removeEventListener("reset",o)}},[e,o])}function bb(e,t){return t.get?t.get.call(e):t.value}function pg(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function wb(e,t){var n=pg(e,t,"get");return bb(e,n)}function Sb(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function kd(e,t,n){var r=pg(e,t,"set");return Sb(e,r,n),n}let fr="default",uu="",$i=new WeakMap;function Rd(e){if(Hl()){if(fr==="default"){const t=me(e);uu=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}fr="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&($i.set(e,e.style.userSelect),e.style.userSelect="none")}function ci(e){if(Hl()){if(fr!=="disabled")return;fr="restoring",setTimeout(()=>{cg(()=>{if(fr==="restoring"){const t=me(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=uu||""),uu="",fr="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&$i.has(e)){let t=$i.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),$i.delete(e)}}const Bc=q.createContext({register:()=>{}});Bc.displayName="PressResponderContext";function Cb(e){let t=p.useContext(Bc);if(t){let{register:n,...r}=t;e=Oe(r,e),n()}return dg(t,e.ref),e}var fi=new WeakMap;class di{continuePropagation(){kd(this,fi,!1)}get shouldStopPropagation(){return wb(this,fi)}constructor(t,n,r){EE(this,fi,{writable:!0,value:void 0}),kd(this,fi,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const Ld=Symbol("linkClicked");function mg(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:o,onPressUp:i,isDisabled:l,isPressed:s,preventFocusOnPress:a,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:d,...f}=Cb(e),[h,E]=p.useState(!1),b=p.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:w,removeAllGlobalListeners:y}=fg(),m=je((v,L)=>{let N=b.current;if(l||N.didFirePressStart)return!1;let P=!0;if(N.isTriggeringEvent=!0,r){let D=new di("pressstart",L,v);r(D),P=D.shouldStopPropagation}return n&&n(!0),N.isTriggeringEvent=!1,N.didFirePressStart=!0,E(!0),P}),x=je((v,L,N=!0)=>{let P=b.current;if(!P.didFirePressStart)return!1;P.ignoreClickAfterPress=!0,P.didFirePressStart=!1,P.isTriggeringEvent=!0;let D=!0;if(o){let k=new di("pressend",L,v);o(k),D=k.shouldStopPropagation}if(n&&n(!1),E(!1),t&&N&&!l){let k=new di("press",L,v);t(k),D&&(D=k.shouldStopPropagation)}return P.isTriggeringEvent=!1,D}),S=je((v,L)=>{let N=b.current;if(l)return!1;if(i){N.isTriggeringEvent=!0;let P=new di("pressup",L,v);return i(P),N.isTriggeringEvent=!1,P.shouldStopPropagation}return!0}),T=je(v=>{let L=b.current;L.isPressed&&L.target&&(L.isOverTarget&&L.pointerType!=null&&x(It(L.target,v),L.pointerType,!1),L.isPressed=!1,L.isOverTarget=!1,L.activePointerId=null,L.pointerType=null,y(),c||ci(L.target))}),C=je(v=>{u&&T(v)}),_=p.useMemo(()=>{let v=b.current,L={onKeyDown(P){if(Vs(P.nativeEvent,P.currentTarget)&&P.currentTarget.contains(P.target)){var D;Id(P.target,P.key)&&P.preventDefault();let k=!0;!v.isPressed&&!P.repeat&&(v.target=P.currentTarget,v.isPressed=!0,k=m(P,"keyboard"),w(me(P.currentTarget),"keyup",N,!1)),k&&P.stopPropagation(),P.metaKey&&gn()&&((D=v.metaKeyEvents)===null||D===void 0||D.set(P.key,P.nativeEvent))}else P.key==="Meta"&&(v.metaKeyEvents=new Map)},onKeyUp(P){Vs(P.nativeEvent,P.currentTarget)&&!P.repeat&&P.currentTarget.contains(P.target)&&v.target&&S(It(v.target,P),"keyboard")},onClick(P){if(!(P&&!P.currentTarget.contains(P.target))&&P&&P.button===0&&!v.isTriggeringEvent&&!jn.isOpening){let D=!0;if(l&&P.preventDefault(),!v.ignoreClickAfterPress&&!v.ignoreEmulatedMouseEvents&&!v.isPressed&&(v.pointerType==="virtual"||au(P.nativeEvent))){!l&&!a&&jt(P.currentTarget);let k=m(P,"virtual"),I=S(P,"virtual"),H=x(P,"virtual");D=k&&I&&H}v.ignoreEmulatedMouseEvents=!1,v.ignoreClickAfterPress=!1,D&&P.stopPropagation()}}},N=P=>{var D;if(v.isPressed&&v.target&&Vs(P,v.target)){var k;Id(P.target,P.key)&&P.preventDefault();let H=P.target,J=x(It(v.target,P),"keyboard",v.target.contains(H));y(),J&&P.stopPropagation(),P.key!=="Enter"&&Hc(v.target)&&v.target.contains(H)&&!P[Ld]&&(P[Ld]=!0,jn(v.target,P,!1)),v.isPressed=!1,(k=v.metaKeyEvents)===null||k===void 0||k.delete(P.key)}else if(P.key==="Meta"&&!((D=v.metaKeyEvents)===null||D===void 0)&&D.size){var I;let H=v.metaKeyEvents;v.metaKeyEvents=void 0;for(let J of H.values())(I=v.target)===null||I===void 0||I.dispatchEvent(new KeyboardEvent("keyup",J))}};if(typeof PointerEvent<"u"){L.onPointerDown=I=>{if(I.button!==0||!I.currentTarget.contains(I.target))return;if(xb(I.nativeEvent)){v.pointerType="virtual";return}Gs(I.currentTarget)&&I.preventDefault(),v.pointerType=I.pointerType;let H=!0;v.isPressed||(v.isPressed=!0,v.isOverTarget=!0,v.activePointerId=I.pointerId,v.target=I.currentTarget,!l&&!a&&jt(I.currentTarget),c||Rd(v.target),H=m(I,v.pointerType),w(me(I.currentTarget),"pointermove",P,!1),w(me(I.currentTarget),"pointerup",D,!1),w(me(I.currentTarget),"pointercancel",k,!1)),H&&I.stopPropagation()},L.onMouseDown=I=>{I.currentTarget.contains(I.target)&&I.button===0&&(Gs(I.currentTarget)&&I.preventDefault(),I.stopPropagation())},L.onPointerUp=I=>{!I.currentTarget.contains(I.target)||v.pointerType==="virtual"||I.button===0&&qn(I,I.currentTarget)&&S(I,v.pointerType||I.pointerType)};let P=I=>{I.pointerId===v.activePointerId&&(v.target&&qn(I,v.target)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,m(It(v.target,I),v.pointerType)):v.target&&v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,x(It(v.target,I),v.pointerType,!1),C(I)))},D=I=>{I.pointerId===v.activePointerId&&v.isPressed&&I.button===0&&v.target&&(qn(I,v.target)&&v.pointerType!=null?x(It(v.target,I),v.pointerType):v.isOverTarget&&v.pointerType!=null&&x(It(v.target,I),v.pointerType,!1),v.isPressed=!1,v.isOverTarget=!1,v.activePointerId=null,v.pointerType=null,y(),c||ci(v.target))},k=I=>{T(I)};L.onDragStart=I=>{I.currentTarget.contains(I.target)&&T(I)}}else{L.onMouseDown=k=>{if(!(k.button!==0||!k.currentTarget.contains(k.target))){if(Gs(k.currentTarget)&&k.preventDefault(),v.ignoreEmulatedMouseEvents){k.stopPropagation();return}v.isPressed=!0,v.isOverTarget=!0,v.target=k.currentTarget,v.pointerType=au(k.nativeEvent)?"virtual":"mouse",!l&&!a&&jt(k.currentTarget),m(k,v.pointerType)&&k.stopPropagation(),w(me(k.currentTarget),"mouseup",P,!1)}},L.onMouseEnter=k=>{if(!k.currentTarget.contains(k.target))return;let I=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!0,I=m(k,v.pointerType)),I&&k.stopPropagation()},L.onMouseLeave=k=>{if(!k.currentTarget.contains(k.target))return;let I=!0;v.isPressed&&!v.ignoreEmulatedMouseEvents&&v.pointerType!=null&&(v.isOverTarget=!1,I=x(k,v.pointerType,!1),C(k)),I&&k.stopPropagation()},L.onMouseUp=k=>{k.currentTarget.contains(k.target)&&!v.ignoreEmulatedMouseEvents&&k.button===0&&S(k,v.pointerType||"mouse")};let P=k=>{if(k.button===0){if(v.isPressed=!1,y(),v.ignoreEmulatedMouseEvents){v.ignoreEmulatedMouseEvents=!1;return}v.target&&qn(k,v.target)&&v.pointerType!=null?x(It(v.target,k),v.pointerType):v.target&&v.isOverTarget&&v.pointerType!=null&&x(It(v.target,k),v.pointerType,!1),v.isOverTarget=!1}};L.onTouchStart=k=>{if(!k.currentTarget.contains(k.target))return;let I=Tb(k.nativeEvent);I&&(v.activePointerId=I.identifier,v.ignoreEmulatedMouseEvents=!0,v.isOverTarget=!0,v.isPressed=!0,v.target=k.currentTarget,v.pointerType="touch",!l&&!a&&jt(k.currentTarget),c||Rd(v.target),m(k,v.pointerType)&&k.stopPropagation(),w(No(k.currentTarget),"scroll",D,!0))},L.onTouchMove=k=>{if(!k.currentTarget.contains(k.target))return;if(!v.isPressed){k.stopPropagation();return}let I=$d(k.nativeEvent,v.activePointerId),H=!0;I&&qn(I,k.currentTarget)?!v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!0,H=m(k,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(v.isOverTarget=!1,H=x(k,v.pointerType,!1),C(k)),H&&k.stopPropagation()},L.onTouchEnd=k=>{if(!k.currentTarget.contains(k.target))return;if(!v.isPressed){k.stopPropagation();return}let I=$d(k.nativeEvent,v.activePointerId),H=!0;I&&qn(I,k.currentTarget)&&v.pointerType!=null?(S(k,v.pointerType),H=x(k,v.pointerType)):v.isOverTarget&&v.pointerType!=null&&(H=x(k,v.pointerType,!1)),H&&k.stopPropagation(),v.isPressed=!1,v.activePointerId=null,v.isOverTarget=!1,v.ignoreEmulatedMouseEvents=!0,v.target&&!c&&ci(v.target),y()},L.onTouchCancel=k=>{k.currentTarget.contains(k.target)&&(k.stopPropagation(),v.isPressed&&T(k))};let D=k=>{v.isPressed&&k.target.contains(v.target)&&T({currentTarget:v.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};L.onDragStart=k=>{k.currentTarget.contains(k.target)&&T(k)}}return L},[w,l,a,y,c,T,C,x,m,S]);return p.useEffect(()=>()=>{var v;c||ci((v=b.current.target)!==null&&v!==void 0?v:void 0)},[c]),{isPressed:s||h,pressProps:Oe(f,_)}}function Hc(e){return e.tagName==="A"&&e.hasAttribute("href")}function Vs(e,t){const{key:n,code:r}=e,o=t,i=o.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(o instanceof No(o).HTMLInputElement&&!gg(o,n)||o instanceof No(o).HTMLTextAreaElement||o.isContentEditable)&&!((i==="link"||!i&&Hc(o))&&n!=="Enter")}function Tb(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function $d(e,t){const n=e.changedTouches;for(let r=0;rt.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function qn(e,t){let n=t.getBoundingClientRect(),r=_b(e);return Pb(n,r)}function Gs(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function Id(e,t){return e instanceof HTMLInputElement?!gg(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!Hc(e)}const Nb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function gg(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Nb.has(e.type)}function kb({children:e}){let t=p.useMemo(()=>({register:()=>{}}),[]);return q.createElement(Bc.Provider,{value:t},e)}class Rb{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function vg(e){let t=p.useRef({isFocused:!1,observer:null});ce(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=je(r=>{e==null||e(r)});return p.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=l=>{t.current.isFocused=!1,o.disabled&&n(new Rb("blur",l)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var l;(l=t.current.observer)===null||l===void 0||l.disconnect();let s=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:s})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:s}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function yg(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=p.useCallback(a=>{if(a.target===a.currentTarget)return r&&r(a),o&&o(!1),!0},[r,o]),l=vg(i),s=p.useCallback(a=>{a.target===a.currentTarget&&document.activeElement===a.target&&(n&&n(a),o&&o(!0),l(a))},[o,n,l]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:!t&&(r||o)?i:void 0}}}let zn=null,cu=new Set,Md=!1,Bn=!1,fu=!1;const Lb={Tab:!0,Escape:!0};function Kl(e,t){for(let n of cu)n(e,t)}function $b(e){return!(e.metaKey||!gn()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ad(e){Bn=!0,$b(e)&&(zn="keyboard",Kl("keyboard",e))}function Xn(e){zn="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Bn=!0,Kl("pointer",e))}function Ib(e){au(e)&&(Bn=!0,zn="virtual")}function Mb(e){e.target===window||e.target===document||(!Bn&&!fu&&(zn="virtual",Kl("virtual",e)),Bn=!1,fu=!1)}function Ab(){Bn=!1,fu=!0}function du(){if(typeof window>"u"||Md)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){Bn=!0,e.apply(this,arguments)},document.addEventListener("keydown",Ad,!0),document.addEventListener("keyup",Ad,!0),document.addEventListener("click",Ib,!0),window.addEventListener("focus",Mb,!0),window.addEventListener("blur",Ab,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Xn,!0),document.addEventListener("pointermove",Xn,!0),document.addEventListener("pointerup",Xn,!0)):(document.addEventListener("mousedown",Xn,!0),document.addEventListener("mousemove",Xn,!0),document.addEventListener("mouseup",Xn,!0)),Md=!0}typeof document<"u"&&(document.readyState!=="loading"?du():document.addEventListener("DOMContentLoaded",du));function fl(){return zn!=="pointer"}function hu(){return zn}function Ob(e){zn=e,Kl(e,null)}const Fb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Db(e,t,n){var r;return e=e||(n==null?void 0:n.target)instanceof HTMLInputElement&&!Fb.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof HTMLTextAreaElement||(n==null?void 0:n.target)instanceof HTMLElement&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof KeyboardEvent&&!Lb[n.key])}function jb(e,t,n){du(),p.useEffect(()=>{let r=(o,i)=>{Db(!!(n!=null&&n.isTextInput),o,i)&&e(fl())};return cu.add(r),()=>{cu.delete(r)}},t)}function Ul(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=p.useRef({isFocusWithin:!1}),l=p.useCallback(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(u),o&&o(!1))},[n,o,i]),s=vg(l),a=p.useCallback(u=>{!i.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),o&&o(!0),i.current.isFocusWithin=!0,s(u))},[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:a,onBlur:l}}}let dl=!1,Ws=0;function pu(){dl=!0,setTimeout(()=>{dl=!1},50)}function Od(e){e.pointerType==="touch"&&pu()}function Bb(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Od):document.addEventListener("touchend",pu),Ws++,()=>{Ws--,!(Ws>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Od):document.removeEventListener("touchend",pu))}}function Hb(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,l]=p.useState(!1),s=p.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;p.useEffect(Bb,[]);let{hoverProps:a,triggerHoverEnd:u}=p.useMemo(()=>{let c=(h,E)=>{if(s.pointerType=E,o||E==="touch"||s.isHovered||!h.currentTarget.contains(h.target))return;s.isHovered=!0;let b=h.currentTarget;s.target=b,t&&t({type:"hoverstart",target:b,pointerType:E}),n&&n(!0),l(!0)},d=(h,E)=>{if(s.pointerType="",s.target=null,E==="touch"||!s.isHovered)return;s.isHovered=!1;let b=h.currentTarget;r&&r({type:"hoverend",target:b,pointerType:E}),n&&n(!1),l(!1)},f={};return typeof PointerEvent<"u"?(f.onPointerEnter=h=>{dl&&h.pointerType==="mouse"||c(h,h.pointerType)},f.onPointerLeave=h=>{!o&&h.currentTarget.contains(h.target)&&d(h,h.pointerType)}):(f.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},f.onMouseEnter=h=>{!s.ignoreEmulatedMouseEvents&&!dl&&c(h,"mouse"),s.ignoreEmulatedMouseEvents=!1},f.onMouseLeave=h=>{!o&&h.currentTarget.contains(h.target)&&d(h,"mouse")}),{hoverProps:f,triggerHoverEnd:d}},[t,n,r,o,s]);return p.useEffect(()=>{o&&u({currentTarget:s.target},s.pointerType)},[o]),{hoverProps:a,isHovered:i}}function Kb(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:o}=e,i=p.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=je(a=>{n&&hi(a,t)&&(o&&o(a),i.current.isPointerDown=!0)}),s=je(a=>{n&&n(a)});p.useEffect(()=>{let a=i.current;if(r)return;const u=t.current,c=me(u);if(typeof PointerEvent<"u"){let d=f=>{a.isPointerDown&&hi(f,t)&&s(f),a.isPointerDown=!1};return c.addEventListener("pointerdown",l,!0),c.addEventListener("pointerup",d,!0),()=>{c.removeEventListener("pointerdown",l,!0),c.removeEventListener("pointerup",d,!0)}}else{let d=h=>{a.ignoreEmulatedMouseEvents?a.ignoreEmulatedMouseEvents=!1:a.isPointerDown&&hi(h,t)&&s(h),a.isPointerDown=!1},f=h=>{a.ignoreEmulatedMouseEvents=!0,a.isPointerDown&&hi(h,t)&&s(h),a.isPointerDown=!1};return c.addEventListener("mousedown",l,!0),c.addEventListener("mouseup",d,!0),c.addEventListener("touchstart",l,!0),c.addEventListener("touchend",f,!0),()=>{c.removeEventListener("mousedown",l,!0),c.removeEventListener("mouseup",d,!0),c.removeEventListener("touchstart",l,!0),c.removeEventListener("touchend",f,!0)}}},[t,r,l,s])}function hi(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function Fd(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function Ub(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Fd(e.onKeyDown),onKeyUp:Fd(e.onKeyUp)}}}const zb=500;function xg(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:o,threshold:i=zb,accessibilityDescription:l}=e;const s=p.useRef();let{addGlobalListener:a,removeGlobalListener:u}=fg(),{pressProps:c}=mg({isDisabled:t,onPressStart(f){if(f.continuePropagation(),(f.pointerType==="mouse"||f.pointerType==="touch")&&(n&&n({...f,type:"longpressstart"}),s.current=setTimeout(()=>{f.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),o&&o({...f,type:"longpress"}),s.current=void 0},i),f.pointerType==="touch")){let h=E=>{E.preventDefault()};a(f.target,"contextmenu",h,{once:!0}),a(window,"pointerup",()=>{setTimeout(()=>{u(f.target,"contextmenu",h)},30)},{once:!0})}},onPressEnd(f){s.current&&clearTimeout(s.current),r&&(f.pointerType==="mouse"||f.pointerType==="touch")&&r({...f,type:"longpressend"})}}),d=vb(o&&!t?l:void 0);return{longPressProps:Oe(c,d)}}function ko(e){const t=me(e);if(hu()==="virtual"){let n=t.activeElement;cg(()=>{t.activeElement===n&&e.isConnected&&jt(e)})}else jt(e)}function Vb(e){const t=No(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,o=n!=="none"&&r!=="hidden"&&r!=="collapse";if(o){const{getComputedStyle:i}=e.ownerDocument.defaultView;let{display:l,visibility:s}=i(e);o=l!=="none"&&s!=="hidden"&&s!=="collapse"}return o}function Gb(e,t){return!e.hasAttribute("hidden")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Eg(e,t){return e.nodeName!=="#comment"&&Vb(e)&&Gb(e,t)&&(!e.parentElement||Eg(e.parentElement,e))}const Dd=q.createContext(null);let te=null;function Wb(e){let{children:t,contain:n,restoreFocus:r,autoFocus:o}=e,i=p.useRef(null),l=p.useRef(null),s=p.useRef([]),{parentNode:a}=p.useContext(Dd)||{},u=p.useMemo(()=>new mu({scopeRef:s}),[s]);ce(()=>{let f=a||ge.root;if(ge.getTreeNode(f.scopeRef)&&te&&!pl(te,f.scopeRef)){let h=ge.getTreeNode(te);h&&(f=h)}f.addChild(u),ge.addNode(u)},[u,a]),ce(()=>{let f=ge.getTreeNode(s);f&&(f.contain=!!n)},[n]),ce(()=>{var f;let h=(f=i.current)===null||f===void 0?void 0:f.nextSibling,E=[];for(;h&&h!==l.current;)E.push(h),h=h.nextSibling;s.current=E},[t]),ew(s,r,n),Yb(s,n),nw(s,r,n),Jb(s,o),p.useEffect(()=>{const f=me(s.current?s.current[0]:void 0).activeElement;let h=null;if(Me(f,s.current)){for(let E of ge.traverse())E.scopeRef&&Me(f,E.scopeRef.current)&&(h=E);h===ge.getTreeNode(s)&&(te=h.scopeRef)}},[s]),ce(()=>()=>{var f,h,E;let b=(E=(h=ge.getTreeNode(s))===null||h===void 0||(f=h.parent)===null||f===void 0?void 0:f.scopeRef)!==null&&E!==void 0?E:null;(s===te||pl(s,te))&&(!b||ge.getTreeNode(b))&&(te=b),ge.removeTreeNode(s)},[s]);let c=p.useMemo(()=>Qb(s),[]),d=p.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return q.createElement(Dd.Provider,{value:d},q.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:i}),t,q.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:l}))}function Qb(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:l}=t,s=r||me(n[0]).activeElement,a=n[0].previousElementSibling,u=kn(n),c=Ht(u,{tabbable:o,accept:l},n);c.currentNode=Me(s,n)?s:a;let d=c.nextNode();return!d&&i&&(c.currentNode=a,d=c.nextNode()),d&&Bt(d,!0),d},focusPrevious(t={}){let n=e.current,{from:r,tabbable:o,wrap:i,accept:l}=t,s=r||me(n[0]).activeElement,a=n[n.length-1].nextElementSibling,u=kn(n),c=Ht(u,{tabbable:o,accept:l},n);c.currentNode=Me(s,n)?s:a;let d=c.previousNode();return!d&&i&&(c.currentNode=a,d=c.previousNode()),d&&Bt(d,!0),d},focusFirst(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=kn(n),l=Ht(i,{tabbable:r,accept:o},n);l.currentNode=n[0].previousElementSibling;let s=l.nextNode();return s&&Bt(s,!0),s},focusLast(t={}){let n=e.current,{tabbable:r,accept:o}=t,i=kn(n),l=Ht(i,{tabbable:r,accept:o},n);l.currentNode=n[n.length-1].nextElementSibling;let s=l.previousNode();return s&&Bt(s,!0),s}}}const Kc=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],qb=Kc.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Kc.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const Xb=Kc.join(':not([hidden]):not([tabindex="-1"]),');function kn(e){return e[0].parentElement}function Yr(e){let t=ge.getTreeNode(te);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function Yb(e,t){let n=p.useRef(),r=p.useRef();ce(()=>{let o=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const i=me(o?o[0]:void 0);let l=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!Yr(e))return;let c=i.activeElement,d=e.current;if(!d||!Me(c,d))return;let f=kn(d),h=Ht(f,{tabbable:!0},d);if(!c)return;h.currentNode=c;let E=u.shiftKey?h.previousNode():h.nextNode();E||(h.currentNode=u.shiftKey?d[d.length-1].nextElementSibling:d[0].previousElementSibling,E=u.shiftKey?h.previousNode():h.nextNode()),u.preventDefault(),E&&Bt(E,!0)},s=u=>{(!te||pl(te,e))&&Me(u.target,e.current)?(te=e,n.current=u.target):Yr(e)&&!hl(u.target,e)?n.current?n.current.focus():te&&te.current&&ml(te.current):Yr(e)&&(n.current=u.target)},a=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(i.activeElement&&Yr(e)&&!hl(i.activeElement,e))if(te=e,i.body.contains(u.target)){var c;n.current=u.target,(c=n.current)===null||c===void 0||c.focus()}else te.current&&ml(te.current)})};return i.addEventListener("keydown",l,!1),i.addEventListener("focusin",s,!1),o==null||o.forEach(u=>u.addEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.addEventListener("focusout",a,!1)),()=>{i.removeEventListener("keydown",l,!1),i.removeEventListener("focusin",s,!1),o==null||o.forEach(u=>u.removeEventListener("focusin",s,!1)),o==null||o.forEach(u=>u.removeEventListener("focusout",a,!1))}},[e,t]),ce(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function bg(e){return hl(e)}function Me(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function hl(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of ge.traverse(ge.getTreeNode(t)))if(n&&Me(e,n.current))return!0;return!1}function Zb(e){return hl(e,te)}function pl(e,t){var n;let r=(n=ge.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function Bt(e,t=!1){if(e!=null&&!t)try{ko(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function ml(e,t=!0){let n=e[0].previousElementSibling,r=kn(e),o=Ht(r,{tabbable:t},e);o.currentNode=n;let i=o.nextNode();t&&!i&&(r=kn(e),o=Ht(r,{tabbable:!1},e),o.currentNode=n,i=o.nextNode()),Bt(i)}function Jb(e,t){const n=q.useRef(t);p.useEffect(()=>{if(n.current){te=e;const r=me(e.current?e.current[0]:void 0);!Me(r.activeElement,te.current)&&e.current&&ml(e.current)}n.current=!1},[e])}function ew(e,t,n){ce(()=>{if(t||n)return;let r=e.current;const o=me(r?r[0]:void 0);let i=l=>{let s=l.target;Me(s,e.current)?te=e:bg(s)||(te=null)};return o.addEventListener("focusin",i,!1),r==null||r.forEach(l=>l.addEventListener("focusin",i,!1)),()=>{o.removeEventListener("focusin",i,!1),r==null||r.forEach(l=>l.removeEventListener("focusin",i,!1))}},[e,t,n])}function tw(e){let t=ge.getTreeNode(te);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function nw(e,t,n){const r=p.useRef(typeof document<"u"?me(e.current?e.current[0]:void 0).activeElement:null);ce(()=>{let o=e.current;const i=me(o?o[0]:void 0);if(!t||n)return;let l=()=>{(!te||pl(te,e))&&Me(i.activeElement,e.current)&&(te=e)};return i.addEventListener("focusin",l,!1),o==null||o.forEach(s=>s.addEventListener("focusin",l,!1)),()=>{i.removeEventListener("focusin",l,!1),o==null||o.forEach(s=>s.removeEventListener("focusin",l,!1))}},[e,n]),ce(()=>{const o=me(e.current?e.current[0]:void 0);if(!t)return;let i=l=>{if(l.key!=="Tab"||l.altKey||l.ctrlKey||l.metaKey||!Yr(e))return;let s=o.activeElement;if(!Me(s,e.current))return;let a=ge.getTreeNode(e);if(!a)return;let u=a.nodeToRestore,c=Ht(o.body,{tabbable:!0});c.currentNode=s;let d=l.shiftKey?c.previousNode():c.nextNode();if((!u||!o.body.contains(u)||u===o.body)&&(u=void 0,a.nodeToRestore=void 0),(!d||!Me(d,e.current))&&u){c.currentNode=u;do d=l.shiftKey?c.previousNode():c.nextNode();while(Me(d,e.current));l.preventDefault(),l.stopPropagation(),d?Bt(d,!0):bg(u)?Bt(u,!0):s.blur()}};return n||o.addEventListener("keydown",i,!0),()=>{n||o.removeEventListener("keydown",i,!0)}},[e,t,n]),ce(()=>{const o=me(e.current?e.current[0]:void 0);if(!t)return;let i=ge.getTreeNode(e);if(i){var l;return i.nodeToRestore=(l=r.current)!==null&&l!==void 0?l:void 0,()=>{let s=ge.getTreeNode(e);if(!s)return;let a=s.nodeToRestore;if(t&&a&&(Me(o.activeElement,e.current)||o.activeElement===o.body&&tw(e))){let u=ge.clone();requestAnimationFrame(()=>{if(o.activeElement===o.body){let c=u.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){Bt(c.nodeToRestore);return}c=c.parent}for(c=u.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&ge.getTreeNode(c.scopeRef)){ml(c.scopeRef.current,!0);return}c=c.parent}}})}}}},[e,t])}function Ht(e,t,n){let r=t!=null&&t.tabbable?Xb:qb,o=me(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(i){var l;return!(t==null||(l=t.from)===null||l===void 0)&&l.contains(i)?NodeFilter.FILTER_REJECT:i.matches(r)&&Eg(i)&&(!n||Me(i,n))&&(!(t!=null&&t.accept)||t.accept(i))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(o.currentNode=t.from),o}class Uc{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let o=this.fastMap.get(n??null);if(!o)return;let i=new mu({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Me(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let o=n.children;r&&(r.removeChild(n),o.size>0&&o.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Uc;var r;for(let o of this.traverse())n.addTreeNode(o.scopeRef,(r=(t=o.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,o.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new mu({scopeRef:null}),this.fastMap.set(null,this.root)}}class mu{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let ge=new Uc;function rw(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=p.useRef({isFocused:!1,isFocusVisible:t||fl()}),[i,l]=p.useState(!1),[s,a]=p.useState(()=>o.current.isFocused&&o.current.isFocusVisible),u=p.useCallback(()=>a(o.current.isFocused&&o.current.isFocusVisible),[]),c=p.useCallback(h=>{o.current.isFocused=h,l(h),u()},[u]);jb(h=>{o.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:d}=yg({isDisabled:r,onFocusChange:c}),{focusWithinProps:f}=Ul({isDisabled:!r,onFocusWithinChange:c});return{isFocused:i,isFocusVisible:s,focusProps:r?f:d}}let ow=q.createContext(null);function iw(e){let t=p.useContext(ow)||{};dg(t,e);let{ref:n,...r}=t;return r}function lw(e,t){let{focusProps:n}=yg(e),{keyboardProps:r}=Ub(e),o=Oe(n,r),i=iw(t),l=e.isDisabled?{}:i,s=p.useRef(e.autoFocus);return p.useEffect(()=>{s.current&&t.current&&ko(t.current),s.current=!1},[t]),{focusableProps:Oe({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},l)}}const sw=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),aw=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function uw(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return sw.has(n.script)}let t=e.split("-")[0];return aw.has(t)}const cw=Symbol.for("react-aria.i18n.locale");function wg(){let e=typeof window<"u"&&window[cw]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:uw(e)?"rtl":"ltr"}}let gu=wg(),Zr=new Set;function jd(){gu=wg();for(let e of Zr)e(gu)}function fw(){let e=Oc(),[t,n]=p.useState(gu);return p.useEffect(()=>(Zr.size===0&&window.addEventListener("languagechange",jd),Zr.add(n),()=>{Zr.delete(n),Zr.size===0&&window.removeEventListener("languagechange",jd)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const dw=q.createContext(null);function zl(){let e=fw();return p.useContext(dw)||e}const Bd=new WeakMap;function hw(e){let t=Bd.get(e);return t||(t=new jl(e),Bd.set(e,t)),t}function pw(e,t){return t&&jl.getGlobalDictionaryForPackage(t)||hw(e)}function zc(e,t){let{locale:n}=zl(),r=pw(e,t);return p.useMemo(()=>new HE(n,r),[n,r])}let Qs=new Map;function Sg(e){let{locale:t}=zl(),n=t+(e?Object.entries(e).sort((o,i)=>o[0]l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),t.compare(i.slice(0,l.length),l)===0),[t]),r=p.useCallback((i,l)=>l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),t.compare(i.slice(-l.length),l)===0),[t]),o=p.useCallback((i,l)=>{if(l.length===0)return!0;i=i.normalize("NFC"),l=l.normalize("NFC");let s=0,a=l.length;for(;s+a<=i.length;s++){let u=i.slice(s,s+a);if(t.compare(l,u)===0)return!0}return!1},[t]);return p.useMemo(()=>({startsWith:n,endsWith:r,contains:o}),[n,r,o])}const Cg=7e3;let qs=null;function Xs(e,t="assertive",n=Cg){qs||(qs=new gw),qs.announce(e,t,n)}class gw{createLog(t){let n=document.createElement("div");return n.setAttribute("role","log"),n.setAttribute("aria-live",t),n.setAttribute("aria-relevant","additions"),n}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,n="assertive",r=Cg){if(!this.node)return;let o=document.createElement("div");o.textContent=t,n==="assertive"?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},r)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function vw(e,t,n){let{validationBehavior:r,focus:o}=e;ce(()=>{if(r==="native"&&n!=null&&n.current){let a=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(a),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(xw(n.current))}});let i=je(()=>{t.resetValidation()}),l=je(a=>{var u;t.displayValidation.isInvalid||t.commitValidation();let c=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!a.defaultPrevented&&n&&c&&Ew(c)===n.current){var d;o?o():(d=n.current)===null||d===void 0||d.focus(),Ob("keyboard")}a.preventDefault()}),s=je(()=>{t.commitValidation()});p.useEffect(()=>{let a=n==null?void 0:n.current;if(!a)return;let u=a.form;return a.addEventListener("invalid",l),a.addEventListener("change",s),u==null||u.addEventListener("reset",i),()=>{a.removeEventListener("invalid",l),a.removeEventListener("change",s),u==null||u.removeEventListener("reset",i)}},[n,l,s,i,r])}function yw(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function xw(e){return{isInvalid:!e.validity.valid,validationDetails:yw(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function Ew(e){for(let t=0;t`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} خيار`,other:()=>`${t.number(e.optionCount)} خيارات`})} متاحة.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`المجموعة المدخلة ${e.groupTitle}, مع ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} خيار`,other:()=>`${t.number(e.groupCount)} خيارات`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", محدد",other:""},e.isSelected)}`,listboxLabel:"مقترحات",selectedAnnouncement:e=>`${e.optionText}، محدد`};var Pg={};Pg={buttonLabel:"Покажи предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} опция`,other:()=>`${t.number(e.optionCount)} опции`})} на разположение.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Въведена група ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} опция`,other:()=>`${t.number(e.groupCount)} опции`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", избрани",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, избрани`};var Ng={};Ng={buttonLabel:"Zobrazit doporučení",countAnnouncement:(e,t)=>`K dispozici ${t.plural(e.optionCount,{one:()=>`je ${t.number(e.optionCount)} možnost`,other:()=>`jsou/je ${t.number(e.optionCount)} možnosti/-í`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina „${e.groupTitle}“ ${t.plural(e.groupCount,{one:()=>`s ${t.number(e.groupCount)} možností`,other:()=>`se ${t.number(e.groupCount)} možnostmi`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:" (vybráno)",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybráno`};var kg={};kg={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} mulighed tilgængelig`,other:()=>`${t.number(e.optionCount)} muligheder tilgængelige`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angivet gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} mulighed`,other:()=>`${t.number(e.groupCount)} muligheder`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var Rg={};Rg={buttonLabel:"Empfehlungen anzeigen",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} Option`,other:()=>`${t.number(e.optionCount)} Optionen`})} verfügbar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Eingetretene Gruppe ${e.groupTitle}, mit ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} Option`,other:()=>`${t.number(e.groupCount)} Optionen`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", ausgewählt",other:""},e.isSelected)}`,listboxLabel:"Empfehlungen",selectedAnnouncement:e=>`${e.optionText}, ausgewählt`};var Lg={};Lg={buttonLabel:"Προβολή προτάσεων",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} επιλογή`,other:()=>`${t.number(e.optionCount)} επιλογές `})} διαθέσιμες.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Εισαγμένη ομάδα ${e.groupTitle}, με ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} επιλογή`,other:()=>`${t.number(e.groupCount)} επιλογές`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", επιλεγμένο",other:""},e.isSelected)}`,listboxLabel:"Προτάσεις",selectedAnnouncement:e=>`${e.optionText}, επιλέχθηκε`};var $g={};$g={focusAnnouncement:(e,t)=>`${t.select({true:()=>`Entered group ${e.groupTitle}, with ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selected",other:""},e.isSelected)}`,countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} available.`,selectedAnnouncement:e=>`${e.optionText}, selected`,buttonLabel:"Show suggestions",listboxLabel:"Suggestions"};var Ig={};Ig={buttonLabel:"Mostrar sugerencias",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opción`,other:()=>`${t.number(e.optionCount)} opciones`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Se ha unido al grupo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opción`,other:()=>`${t.number(e.groupCount)} opciones`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seleccionado",other:""},e.isSelected)}`,listboxLabel:"Sugerencias",selectedAnnouncement:e=>`${e.optionText}, seleccionado`};var Mg={};Mg={buttonLabel:"Kuva soovitused",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} valik`,other:()=>`${t.number(e.optionCount)} valikud`})} saadaval.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Sisestatud rühm ${e.groupTitle}, valikuga ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} valik`,other:()=>`${t.number(e.groupCount)} valikud`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valitud",other:""},e.isSelected)}`,listboxLabel:"Soovitused",selectedAnnouncement:e=>`${e.optionText}, valitud`};var Ag={};Ag={buttonLabel:"Näytä ehdotukset",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} vaihtoehto`,other:()=>`${t.number(e.optionCount)} vaihtoehdot`})} saatavilla.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Mentiin ryhmään ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} vaihtoehdon`,other:()=>`${t.number(e.groupCount)} vaihtoehdon`})} kanssa.`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valittu",other:""},e.isSelected)}`,listboxLabel:"Ehdotukset",selectedAnnouncement:e=>`${e.optionText}, valittu`};var Og={};Og={buttonLabel:"Afficher les suggestions",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} option`,other:()=>`${t.number(e.optionCount)} options`})} disponible(s).`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groupe ${e.groupTitle} saisi, avec ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} option`,other:()=>`${t.number(e.groupCount)} options`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", sélectionné(s)",other:""},e.isSelected)}`,listboxLabel:"Suggestions",selectedAnnouncement:e=>`${e.optionText}, sélectionné`};var Fg={};Fg={buttonLabel:"הצג הצעות",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`אפשרות ${t.number(e.optionCount)}`,other:()=>`${t.number(e.optionCount)} אפשרויות`})} במצב זמין.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`נכנס לקבוצה ${e.groupTitle}, עם ${t.plural(e.groupCount,{one:()=>`אפשרות ${t.number(e.groupCount)}`,other:()=>`${t.number(e.groupCount)} אפשרויות`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", נבחר",other:""},e.isSelected)}`,listboxLabel:"הצעות",selectedAnnouncement:e=>`${e.optionText}, נבחר`};var Dg={};Dg={buttonLabel:"Prikaži prijedloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} opcije/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", odabranih",other:""},e.isSelected)}`,listboxLabel:"Prijedlozi",selectedAnnouncement:e=>`${e.optionText}, odabrano`};var jg={};jg={buttonLabel:"Javaslatok megjelenítése",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} lehetőség`,other:()=>`${t.number(e.optionCount)} lehetőség`})} áll rendelkezésre.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Belépett a(z) ${e.groupTitle} csoportba, amely ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} lehetőséget`,other:()=>`${t.number(e.groupCount)} lehetőséget`})} tartalmaz. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", kijelölve",other:""},e.isSelected)}`,listboxLabel:"Javaslatok",selectedAnnouncement:e=>`${e.optionText}, kijelölve`};var Bg={};Bg={buttonLabel:"Mostra suggerimenti",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opzione disponibile`,other:()=>`${t.number(e.optionCount)} opzioni disponibili`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingresso nel gruppo ${e.groupTitle}, con ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opzione`,other:()=>`${t.number(e.groupCount)} opzioni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selezionato",other:""},e.isSelected)}`,listboxLabel:"Suggerimenti",selectedAnnouncement:e=>`${e.optionText}, selezionato`};var Hg={};Hg={buttonLabel:"候補を表示",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 個のオプション`,other:()=>`${t.number(e.optionCount)} 個のオプション`})}を利用できます。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`入力されたグループ ${e.groupTitle}、${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 個のオプション`,other:()=>`${t.number(e.groupCount)} 個のオプション`})}を含む。`,other:""},e.isGroupChange)}${e.optionText}${t.select({true:"、選択済み",other:""},e.isSelected)}`,listboxLabel:"候補",selectedAnnouncement:e=>`${e.optionText}、選択済み`};var Kg={};Kg={buttonLabel:"제안 사항 표시",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)}개 옵션`,other:()=>`${t.number(e.optionCount)}개 옵션`})}을 사용할 수 있습니다.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`입력한 그룹 ${e.groupTitle}, ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)}개 옵션`,other:()=>`${t.number(e.groupCount)}개 옵션`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 선택됨",other:""},e.isSelected)}`,listboxLabel:"제안",selectedAnnouncement:e=>`${e.optionText}, 선택됨`};var Ug={};Ug={buttonLabel:"Rodyti pasiūlymus",countAnnouncement:(e,t)=>`Yra ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} parinktis`,other:()=>`${t.number(e.optionCount)} parinktys (-ių)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Įvesta grupė ${e.groupTitle}, su ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} parinktimi`,other:()=>`${t.number(e.groupCount)} parinktimis (-ių)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", pasirinkta",other:""},e.isSelected)}`,listboxLabel:"Pasiūlymai",selectedAnnouncement:e=>`${e.optionText}, pasirinkta`};var zg={};zg={buttonLabel:"Rādīt ieteikumus",countAnnouncement:(e,t)=>`Pieejamo opciju skaits: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcijas`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ievadīta grupa ${e.groupTitle}, ar ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opciju`,other:()=>`${t.number(e.groupCount)} opcijām`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", atlasīta",other:""},e.isSelected)}`,listboxLabel:"Ieteikumi",selectedAnnouncement:e=>`${e.optionText}, atlasīta`};var Vg={};Vg={buttonLabel:"Vis forslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativer`})} finnes.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Angitt gruppe ${e.groupTitle}, med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativer`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valgt",other:""},e.isSelected)}`,listboxLabel:"Forslag",selectedAnnouncement:e=>`${e.optionText}, valgt`};var Gg={};Gg={buttonLabel:"Suggesties weergeven",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} optie`,other:()=>`${t.number(e.optionCount)} opties`})} beschikbaar.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Groep ${e.groupTitle} ingevoerd met ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} optie`,other:()=>`${t.number(e.groupCount)} opties`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", geselecteerd",other:""},e.isSelected)}`,listboxLabel:"Suggesties",selectedAnnouncement:e=>`${e.optionText}, geselecteerd`};var Wg={};Wg={buttonLabel:"Wyświetlaj sugestie",countAnnouncement:(e,t)=>`dostępna/dostępne(-nych) ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcja`,other:()=>`${t.number(e.optionCount)} opcje(-i)`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Dołączono do grupy ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcją`,other:()=>`${t.number(e.groupCount)} opcjami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", wybrano",other:""},e.isSelected)}`,listboxLabel:"Sugestie",selectedAnnouncement:e=>`${e.optionText}, wybrano`};var Qg={};Qg={buttonLabel:"Mostrar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo inserido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var qg={};qg={buttonLabel:"Apresentar sugestões",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opção`,other:()=>`${t.number(e.optionCount)} opções`})} disponível.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grupo introduzido ${e.groupTitle}, com ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opção`,other:()=>`${t.number(e.groupCount)} opções`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selecionado",other:""},e.isSelected)}`,listboxLabel:"Sugestões",selectedAnnouncement:e=>`${e.optionText}, selecionado`};var Xg={};Xg={buttonLabel:"Afișare sugestii",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opțiune`,other:()=>`${t.number(e.optionCount)} opțiuni`})} disponibile.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Grup ${e.groupTitle} introdus, cu ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opțiune`,other:()=>`${t.number(e.groupCount)} opțiuni`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", selectat",other:""},e.isSelected)}`,listboxLabel:"Sugestii",selectedAnnouncement:e=>`${e.optionText}, selectat`};var Yg={};Yg={buttonLabel:"Показать предложения",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметров`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введенная группа ${e.groupTitle}, с ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметром`,other:()=>`${t.number(e.groupCount)} параметрами`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", выбранными",other:""},e.isSelected)}`,listboxLabel:"Предложения",selectedAnnouncement:e=>`${e.optionText}, выбрано`};var Zg={};Zg={buttonLabel:"Zobraziť návrhy",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} možnosť`,other:()=>`${t.number(e.optionCount)} možnosti/-í`})} k dispozícii.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Zadaná skupina ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} možnosťou`,other:()=>`${t.number(e.groupCount)} možnosťami`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", vybraté",other:""},e.isSelected)}`,listboxLabel:"Návrhy",selectedAnnouncement:e=>`${e.optionText}, vybraté`};var Jg={};Jg={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Na voljo je ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Vnesena skupina ${e.groupTitle}, z ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcija`,other:()=>`${t.number(e.groupCount)} opcije`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izbrano",other:""},e.isSelected)}`,listboxLabel:"Predlogi",selectedAnnouncement:e=>`${e.optionText}, izbrano`};var ev={};ev={buttonLabel:"Prikaži predloge",countAnnouncement:(e,t)=>`Dostupno još: ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} opcija`,other:()=>`${t.number(e.optionCount)} opcije/a`})}.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Unesena grupa ${e.groupTitle}, s ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} opcijom`,other:()=>`${t.number(e.groupCount)} optione/a`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", izabranih",other:""},e.isSelected)}`,listboxLabel:"Predlozi",selectedAnnouncement:e=>`${e.optionText}, izabrano`};var tv={};tv={buttonLabel:"Visa förslag",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} alternativ`,other:()=>`${t.number(e.optionCount)} alternativ`})} tillgängliga.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Ingick i gruppen ${e.groupTitle} med ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} alternativ`,other:()=>`${t.number(e.groupCount)} alternativ`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", valda",other:""},e.isSelected)}`,listboxLabel:"Förslag",selectedAnnouncement:e=>`${e.optionText}, valda`};var nv={};nv={buttonLabel:"Önerileri göster",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} seçenek`,other:()=>`${t.number(e.optionCount)} seçenekler`})} kullanılabilir.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Girilen grup ${e.groupTitle}, ile ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} seçenek`,other:()=>`${t.number(e.groupCount)} seçenekler`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", seçildi",other:""},e.isSelected)}`,listboxLabel:"Öneriler",selectedAnnouncement:e=>`${e.optionText}, seçildi`};var rv={};rv={buttonLabel:"Показати пропозиції",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} параметр`,other:()=>`${t.number(e.optionCount)} параметри(-ів)`})} доступно.`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`Введена група ${e.groupTitle}, з ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} параметр`,other:()=>`${t.number(e.groupCount)} параметри(-ів)`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", вибрано",other:""},e.isSelected)}`,listboxLabel:"Пропозиції",selectedAnnouncement:e=>`${e.optionText}, вибрано`};var ov={};ov={buttonLabel:"显示建议",countAnnouncement:(e,t)=>`有 ${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 个选项`,other:()=>`${t.number(e.optionCount)} 个选项`})}可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`进入了 ${e.groupTitle} 组,其中有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 个选项`,other:()=>`${t.number(e.groupCount)} 个选项`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已选择",other:""},e.isSelected)}`,listboxLabel:"建议",selectedAnnouncement:e=>`${e.optionText}, 已选择`};var iv={};iv={buttonLabel:"顯示建議",countAnnouncement:(e,t)=>`${t.plural(e.optionCount,{one:()=>`${t.number(e.optionCount)} 選項`,other:()=>`${t.number(e.optionCount)} 選項`})} 可用。`,focusAnnouncement:(e,t)=>`${t.select({true:()=>`輸入的群組 ${e.groupTitle}, 有 ${t.plural(e.groupCount,{one:()=>`${t.number(e.groupCount)} 選項`,other:()=>`${t.number(e.groupCount)} 選項`})}. `,other:""},e.isGroupChange)}${e.optionText}${t.select({true:", 已選取",other:""},e.isSelected)}`,listboxLabel:"建議",selectedAnnouncement:e=>`${e.optionText}, 已選取`};var lv={};lv={dismiss:"تجاهل"};var sv={};sv={dismiss:"Отхвърляне"};var av={};av={dismiss:"Odstranit"};var uv={};uv={dismiss:"Luk"};var cv={};cv={dismiss:"Schließen"};var fv={};fv={dismiss:"Απόρριψη"};var dv={};dv={dismiss:"Dismiss"};var hv={};hv={dismiss:"Descartar"};var pv={};pv={dismiss:"Lõpeta"};var mv={};mv={dismiss:"Hylkää"};var gv={};gv={dismiss:"Rejeter"};var vv={};vv={dismiss:"התעלם"};var yv={};yv={dismiss:"Odbaci"};var xv={};xv={dismiss:"Elutasítás"};var Ev={};Ev={dismiss:"Ignora"};var bv={};bv={dismiss:"閉じる"};var wv={};wv={dismiss:"무시"};var Sv={};Sv={dismiss:"Atmesti"};var Cv={};Cv={dismiss:"Nerādīt"};var Tv={};Tv={dismiss:"Lukk"};var _v={};_v={dismiss:"Negeren"};var Pv={};Pv={dismiss:"Zignoruj"};var Nv={};Nv={dismiss:"Descartar"};var kv={};kv={dismiss:"Dispensar"};var Rv={};Rv={dismiss:"Revocare"};var Lv={};Lv={dismiss:"Пропустить"};var $v={};$v={dismiss:"Zrušiť"};var Iv={};Iv={dismiss:"Opusti"};var Mv={};Mv={dismiss:"Odbaci"};var Av={};Av={dismiss:"Avvisa"};var Ov={};Ov={dismiss:"Kapat"};var Fv={};Fv={dismiss:"Скасувати"};var Dv={};Dv={dismiss:"取消"};var jv={};jv={dismiss:"關閉"};const Hd={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function ww(e={}){let{style:t,isFocusable:n}=e,[r,o]=p.useState(!1),{focusWithinProps:i}=Ul({isDisabled:!n,onFocusWithinChange:s=>o(s)}),l=p.useMemo(()=>r?t:t?{...Hd,...t}:Hd,[r]);return{visuallyHiddenProps:{...i,style:l}}}function Sw(e){let{children:t,elementType:n="div",isFocusable:r,style:o,...i}=e,{visuallyHiddenProps:l}=ww(e);return q.createElement(n,Oe(i,l),t)}function Cw(e){return e&&e.__esModule?e.default:e}const Kd={top:"top",bottom:"top",left:"left",right:"left"},gl={top:"bottom",bottom:"top",left:"right",right:"left"},Tw={top:"left",left:"top"},vu={top:"height",left:"width"},_w={width:"totalWidth",height:"totalHeight"},pi={};let mi=typeof document<"u"&&window.visualViewport;function Ud(e){let t=0,n=0,r=0,o=0,i=0,l=0,s={};if(e.tagName==="BODY"){let c=document.documentElement;r=c.clientWidth,o=c.clientHeight;var a;t=(a=mi==null?void 0:mi.width)!==null&&a!==void 0?a:r;var u;n=(u=mi==null?void 0:mi.height)!==null&&u!==void 0?u:o,s.top=c.scrollTop||e.scrollTop,s.left=c.scrollLeft||e.scrollLeft}else({width:t,height:n,top:i,left:l}=xr(e)),s.top=e.scrollTop,s.left=e.scrollLeft,r=t,o=n;return{width:t,height:n,totalWidth:r,totalHeight:o,scroll:s,top:i,left:l}}function Pw(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function zd(e,t,n,r,o,i){let l=o.scroll[e],s=r[vu[e]],a=t-i-l,u=t+i-l+n;return a<0?-a:u>s?Math.max(s-u,-a):0}function Nw(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function Vd(e){if(pi[e])return pi[e];let[t,n]=e.split(" "),r=Kd[t]||"right",o=Tw[r];Kd[n]||(n="center");let i=vu[r],l=vu[o];return pi[e]={placement:t,crossPlacement:n,axis:r,crossAxis:o,size:i,crossSize:l},pi[e]}function Ys(e,t,n,r,o,i,l,s,a,u){let{placement:c,crossPlacement:d,axis:f,crossAxis:h,size:E,crossSize:b}=r,w={};w[h]=e[h],d==="center"?w[h]+=(e[b]-n[b])/2:d!==h&&(w[h]+=e[b]-n[b]),w[h]+=i;const y=e[h]-n[b]+a+u,m=e[h]+e[b]-a-u;if(w[h]=ru(w[h],y,m),c===f){const x=s?l[E]:t[_w[E]];w[gl[f]]=Math.floor(x-e[f]+o)}else w[f]=Math.floor(e[f]+e[E]+o);return w}function kw(e,t,n,r,o,i){return e.top!=null?Math.max(0,t.height+t.top+t.scroll.top-(n.top+e.top)-(o.top+o.bottom+i)):Math.max(0,r.top+n.top-(t.top+t.scroll.top)-(o.top+o.bottom+i))}function Gd(e,t,n,r,o,i){let{placement:l,axis:s,size:a}=i;return l===s?Math.max(0,n[s]-e[s]-e.scroll[s]+t[s]-r[s]-r[gl[s]]-o):Math.max(0,e[a]+e[s]+e.scroll[s]-t[s]-n[s]-n[a]-r[s]-r[gl[s]]-o)}function Rw(e,t,n,r,o,i,l,s,a,u,c,d,f,h,E,b){let w=Vd(e),{size:y,crossAxis:m,crossSize:x,placement:S,crossPlacement:T}=w,C=Ys(t,s,n,w,c,d,u,f,E,b),_=c,v=Gd(s,u,t,o,i+c,w);if(l&&r[y]>v){let A=Vd(`${gl[S]} ${T}`),B=Ys(t,s,n,A,c,d,u,f,E,b);Gd(s,u,t,o,i+c,A)>v&&(w=A,C=B,_=c)}let L=zd(m,C[m],n[x],s,a,i);C[m]+=L;let N=kw(C,s,u,t,o,i);h&&h{if(!n||r===null)return;let o=i=>{let l=i.target;if(!t.current||l instanceof Node&&!l.contains(t.current))return;let s=r||Bv.get(t.current);s&&s()};return window.addEventListener("scroll",o,!0),()=>{window.removeEventListener("scroll",o,!0)}},[n,r,t])}let qt=typeof document<"u"&&window.visualViewport;function Mw(e){let{direction:t}=zl(),{arrowSize:n=0,targetRef:r,overlayRef:o,scrollRef:i=o,placement:l="bottom",containerPadding:s=12,shouldFlip:a=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:c=0,crossOffset:d=0,shouldUpdatePosition:f=!0,isOpen:h=!0,onClose:E,maxHeight:b,arrowBoundaryOffset:w=0}=e,[y,m]=p.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),x=[f,l,o.current,r.current,i.current,s,a,u,c,d,h,t,b,w,n],S=p.useCallback(()=>{if(f===!1||!h||!o.current||!r.current||!i.current||!u)return;let _=Lw({placement:Ow(l,t),overlayNode:o.current,targetNode:r.current,scrollNode:i.current,padding:s,shouldFlip:a,boundaryElement:u,offset:c,crossOffset:d,maxHeight:b,arrowSize:n,arrowBoundaryOffset:w});Object.keys(_.position).forEach(v=>o.current.style[v]=_.position[v]+"px"),o.current.style.maxHeight=_.maxHeight!=null?_.maxHeight+"px":void 0,m(_)},x);ce(S,x),Aw(S),mb({ref:o,onResize:S});let T=p.useRef(!1);ce(()=>{let _,v=()=>{T.current=!0,clearTimeout(_),_=setTimeout(()=>{T.current=!1},500),S()};return qt==null||qt.addEventListener("resize",v),qt==null||qt.addEventListener("scroll",v),()=>{qt==null||qt.removeEventListener("resize",v),qt==null||qt.removeEventListener("scroll",v)}},[S]);let C=p.useCallback(()=>{T.current||E()},[E,T]);return Iw({triggerRef:r,isOpen:h,onClose:E&&C}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...y.position,maxHeight:y.maxHeight}},placement:y.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:y.arrowOffsetLeft,top:y.arrowOffsetTop}},updatePosition:S}}function Aw(e){ce(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function Ow(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}const Mt=[];function Fw(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:o,isDismissable:i=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:s}=e;p.useEffect(()=>(o&&Mt.push(t),()=>{let E=Mt.indexOf(t);E>=0&&Mt.splice(E,1)}),[o,t]);let a=()=>{Mt[Mt.length-1]===t&&n&&n()},u=E=>{(!s||s(E.target))&&Mt[Mt.length-1]===t&&(E.stopPropagation(),E.preventDefault())},c=E=>{(!s||s(E.target))&&(Mt[Mt.length-1]===t&&(E.stopPropagation(),E.preventDefault()),a())},d=E=>{E.key==="Escape"&&!l&&(E.stopPropagation(),E.preventDefault(),a())};Kb({ref:t,onInteractOutside:i&&o?c:null,onInteractOutsideStart:u});let{focusWithinProps:f}=Ul({isDisabled:!r,onBlurWithin:E=>{!E.relatedTarget||Zb(E.relatedTarget)||(!s||s(E.relatedTarget))&&n()}}),h=E=>{E.target===E.currentTarget&&E.preventDefault()};return{overlayProps:{onKeyDown:d,...f},underlayProps:{onPointerDown:h}}}function Dw(e,t,n){let{type:r}=e,{isOpen:o}=t;p.useEffect(()=>{n&&n.current&&Bv.set(n.current,t.close)});let i;r==="menu"?i=!0:r==="listbox"&&(i="listbox");let l=mn();return{triggerProps:{"aria-haspopup":i,"aria-expanded":o,"aria-controls":o?l:null,onPress:t.toggle},overlayProps:{id:l}}}const Zs=typeof document<"u"&&window.visualViewport,jw=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let gi=0,Js;function Bw(e={}){let{isDisabled:t}=e;ce(()=>{if(!t)return gi++,gi===1&&(Hl()?Js=Kw():Js=Hw()),()=>{gi--,gi===0&&Js()}},[t])}function Hw(){return Po(dr(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),dr(document.documentElement,"overflow","hidden"))}function Kw(){let e,t,n=u=>{e=ul(u.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=dr(e,"overscrollBehavior","contain"))},r=u=>{if(!e||e===document.documentElement||e===document.body){u.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&u.preventDefault()},o=u=>{let c=u.target;Xd(c)&&c!==document.activeElement&&(u.preventDefault(),s(),c.style.transform="translateY(-2000px)",c.focus(),requestAnimationFrame(()=>{c.style.transform=""})),t&&t()},i=u=>{let c=u.target;Xd(c)&&(s(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",Zs&&(Zs.height{qd(c)}):Zs.addEventListener("resize",()=>qd(c),{once:!0}))}))},l=null,s=()=>{if(l)return;let u=()=>{window.scrollTo(0,0)},c=window.pageXOffset,d=window.pageYOffset;l=Po(Vr(window,"scroll",u),dr(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),dr(document.documentElement,"overflow","hidden"),dr(document.body,"marginTop",`-${d}px`),()=>{window.scrollTo(c,d)}),window.scrollTo(0,0)},a=Po(Vr(document,"touchstart",n,{passive:!1,capture:!0}),Vr(document,"touchmove",r,{passive:!1,capture:!0}),Vr(document,"touchend",o,{passive:!1,capture:!0}),Vr(document,"focus",i,!0));return()=>{t==null||t(),l==null||l(),a()}}function dr(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Vr(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function qd(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=ul(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,o=e.getBoundingClientRect().top;o>r+e.clientHeight&&(n.scrollTop+=o-r)}e=n.parentElement}}function Xd(e){return e instanceof HTMLInputElement&&!jw.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}var Hv={};Hv={"ar-AE":lv,"bg-BG":sv,"cs-CZ":av,"da-DK":uv,"de-DE":cv,"el-GR":fv,"en-US":dv,"es-ES":hv,"et-EE":pv,"fi-FI":mv,"fr-FR":gv,"he-IL":vv,"hr-HR":yv,"hu-HU":xv,"it-IT":Ev,"ja-JP":bv,"ko-KR":wv,"lt-LT":Sv,"lv-LV":Cv,"nb-NO":Tv,"nl-NL":_v,"pl-PL":Pv,"pt-BR":Nv,"pt-PT":kv,"ro-RO":Rv,"ru-RU":Lv,"sk-SK":$v,"sl-SI":Iv,"sr-SP":Mv,"sv-SE":Av,"tr-TR":Ov,"uk-UA":Fv,"zh-CN":Dv,"zh-TW":jv};function Yd(e){let{onDismiss:t,...n}=e,r=zc(Cw(Hv),"@react-aria/overlays"),o=al(n,r.format("dismiss")),i=()=>{t&&t()};return q.createElement(Sw,null,q.createElement("button",{...o,tabIndex:-1,onClick:i,style:{width:1,height:1}}))}let Gr=new WeakMap,it=[];function Kv(e,t=document.body){let n=new Set(e),r=new Set,o=a=>{for(let f of a.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(f);let u=f=>{if(n.has(f)||r.has(f.parentElement)&&f.parentElement.getAttribute("role")!=="row")return NodeFilter.FILTER_REJECT;for(let h of n)if(f.contains(h))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},c=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:u}),d=u(a);if(d===NodeFilter.FILTER_ACCEPT&&i(a),d!==NodeFilter.FILTER_REJECT){let f=c.nextNode();for(;f!=null;)i(f),f=c.nextNode()}},i=a=>{var u;let c=(u=Gr.get(a))!==null&&u!==void 0?u:0;a.getAttribute("aria-hidden")==="true"&&c===0||(c===0&&a.setAttribute("aria-hidden","true"),r.add(a),Gr.set(a,c+1))};it.length&&it[it.length-1].disconnect(),o(t);let l=new MutationObserver(a=>{for(let u of a)if(!(u.type!=="childList"||u.addedNodes.length===0)&&![...n,...r].some(c=>c.contains(u.target))){for(let c of u.removedNodes)c instanceof Element&&(n.delete(c),r.delete(c));for(let c of u.addedNodes)(c instanceof HTMLElement||c instanceof SVGElement)&&(c.dataset.liveAnnouncer==="true"||c.dataset.reactAriaTopLayer==="true")?n.add(c):c instanceof Element&&o(c)}});l.observe(t,{childList:!0,subtree:!0});let s={observe(){l.observe(t,{childList:!0,subtree:!0})},disconnect(){l.disconnect()}};return it.push(s),()=>{l.disconnect();for(let a of r){let u=Gr.get(a);u===1?(a.removeAttribute("aria-hidden"),Gr.delete(a)):Gr.set(a,u-1)}s===it[it.length-1]?(it.pop(),it.length&&it[it.length-1].observe()):it.splice(it.indexOf(s),1)}}function Uw(e,t){let{triggerRef:n,popoverRef:r,isNonModal:o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l,...s}=e,{overlayProps:a,underlayProps:u}=Fw({isOpen:t.isOpen,onClose:t.close,shouldCloseOnBlur:!0,isDismissable:!o,isKeyboardDismissDisabled:i,shouldCloseOnInteractOutside:l},r),{overlayProps:c,arrowProps:d,placement:f}=Mw({...s,targetRef:n,overlayRef:r,isOpen:t.isOpen,onClose:o?t.close:null});return Bw({isDisabled:o||!t.isOpen}),ce(()=>{if(t.isOpen&&!o&&r.current)return Kv([r.current])},[o,t.isOpen,r]),{popoverProps:Oe(a,c),arrowProps:d,underlayProps:u,placement:f}}const zw=q.createContext(null);function Vw(e){let t=Oc(),{portalContainer:n=t?null:document.body,isExiting:r}=e,[o,i]=p.useState(!1),l=p.useMemo(()=>({contain:o,setContain:i}),[o,i]);if(!n)return null;let s=e.children;return e.disableFocusManagement||(s=q.createElement(Wb,{restoreFocus:!0,contain:o&&!r},s)),s=q.createElement(zw.Provider,{value:l},q.createElement(kb,null,s)),fE.createPortal(s,n)}function yu(e){return Li()?e.altKey:e.ctrlKey}function Zn(e){return gn()?e.metaKey:e.ctrlKey}const Gw=1e3;function Ww(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,o=p.useRef({search:"",timeout:null}).current,i=l=>{let s=Qw(l.key);if(!s||l.ctrlKey||l.metaKey||!l.currentTarget.contains(l.target))return;s===" "&&o.search.trim().length>0&&(l.preventDefault(),"continuePropagation"in l||l.stopPropagation()),o.search+=s;let a=t.getKeyForSearch(o.search,n.focusedKey);a==null&&(a=t.getKeyForSearch(o.search)),a!=null&&(n.setFocusedKey(a),r&&r(a)),clearTimeout(o.timeout),o.timeout=setTimeout(()=>{o.search=""},Gw)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?i:null}}}function Qw(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function Uv(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:o=!1,shouldFocusWrap:i=!1,disallowEmptySelection:l=!1,disallowSelectAll:s=!1,selectOnFocus:a=t.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:c,allowsTabNavigation:d=!1,isVirtualized:f,scrollRef:h=r,linkBehavior:E="action"}=e,{direction:b}=zl(),w=jc(),y=N=>{if(N.altKey&&N.key==="Tab"&&N.preventDefault(),!r.current.contains(N.target))return;const P=(M,U)=>{if(M!=null){if(t.isLink(M)&&E==="selection"&&a&&!yu(N)){Mc.flushSync(()=>{t.setFocusedKey(M,U)});let W=h.current.querySelector(`[data-key="${CSS.escape(M.toString())}"]`);w.open(W,N);return}if(t.setFocusedKey(M,U),t.isLink(M)&&E==="override")return;N.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(M):a&&!yu(N)&&t.replaceSelection(M)}};switch(N.key){case"ArrowDown":if(n.getKeyBelow){var D,k;N.preventDefault();let M=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(D=n.getFirstKey)===null||D===void 0?void 0:D.call(n);M==null&&i&&(M=(k=n.getFirstKey)===null||k===void 0?void 0:k.call(n,t.focusedKey)),P(M)}break;case"ArrowUp":if(n.getKeyAbove){var I,H;N.preventDefault();let M=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(I=n.getLastKey)===null||I===void 0?void 0:I.call(n);M==null&&i&&(M=(H=n.getLastKey)===null||H===void 0?void 0:H.call(n,t.focusedKey)),P(M)}break;case"ArrowLeft":if(n.getKeyLeftOf){var J,O;N.preventDefault();let M=n.getKeyLeftOf(t.focusedKey);M==null&&i&&(M=b==="rtl"?(J=n.getFirstKey)===null||J===void 0?void 0:J.call(n,t.focusedKey):(O=n.getLastKey)===null||O===void 0?void 0:O.call(n,t.focusedKey)),P(M,b==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var A,B;N.preventDefault();let M=n.getKeyRightOf(t.focusedKey);M==null&&i&&(M=b==="rtl"?(A=n.getLastKey)===null||A===void 0?void 0:A.call(n,t.focusedKey):(B=n.getFirstKey)===null||B===void 0?void 0:B.call(n,t.focusedKey)),P(M,b==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){N.preventDefault();let M=n.getFirstKey(t.focusedKey,Zn(N));t.setFocusedKey(M),Zn(N)&&N.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(M):a&&t.replaceSelection(M)}break;case"End":if(n.getLastKey){N.preventDefault();let M=n.getLastKey(t.focusedKey,Zn(N));t.setFocusedKey(M),Zn(N)&&N.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(M):a&&t.replaceSelection(M)}break;case"PageDown":if(n.getKeyPageBelow){N.preventDefault();let M=n.getKeyPageBelow(t.focusedKey);P(M)}break;case"PageUp":if(n.getKeyPageAbove){N.preventDefault();let M=n.getKeyPageAbove(t.focusedKey);P(M)}break;case"a":Zn(N)&&t.selectionMode==="multiple"&&s!==!0&&(N.preventDefault(),t.selectAll());break;case"Escape":N.preventDefault(),l||t.clearSelection();break;case"Tab":if(!d){if(N.shiftKey)r.current.focus();else{let M=Ht(r.current,{tabbable:!0}),U,W;do W=M.lastChild(),W&&(U=W);while(W);U&&!U.contains(document.activeElement)&&jt(U)}break}}},m=p.useRef({top:0,left:0});yb(h,"scroll",f?null:()=>{m.current={top:h.current.scrollTop,left:h.current.scrollLeft}});let x=N=>{if(t.isFocused){N.currentTarget.contains(N.target)||t.setFocused(!1);return}if(N.currentTarget.contains(N.target)){if(t.setFocused(!0),t.focusedKey==null){let k=H=>{H!=null&&(t.setFocusedKey(H),a&&t.replaceSelection(H))},I=N.relatedTarget;var P,D;I&&N.currentTarget.compareDocumentPosition(I)&Node.DOCUMENT_POSITION_FOLLOWING?k((P=t.lastSelectedKey)!==null&&P!==void 0?P:n.getLastKey()):k((D=t.firstSelectedKey)!==null&&D!==void 0?D:n.getFirstKey())}else f||(h.current.scrollTop=m.current.top,h.current.scrollLeft=m.current.left);if(!f&&t.focusedKey!=null){let k=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);k&&(k.contains(document.activeElement)||jt(k),hu()==="keyboard"&&Nd(k,{containingElement:r.current}))}}},S=N=>{N.currentTarget.contains(N.relatedTarget)||t.setFocused(!1)};const T=p.useRef(o);p.useEffect(()=>{if(T.current){let N=null;o==="first"&&(N=n.getFirstKey()),o==="last"&&(N=n.getLastKey());let P=t.selectedKeys;if(P.size){for(let D of P)if(t.canSelectItem(D)){N=D;break}}t.setFocused(!0),t.setFocusedKey(N),N==null&&!c&&ko(r.current)}},[]);let C=p.useRef(t.focusedKey);p.useEffect(()=>{let N=hu();if(t.isFocused&&t.focusedKey!=null&&h!=null&&h.current){let P=h.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);P&&(N==="keyboard"||T.current)&&(f||hg(h.current,P),Nd(P,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&C.current!=null&&ko(r.current),C.current=t.focusedKey,T.current=!1},[f,h,t.focusedKey,t.isFocused,r]);let _={onKeyDown:y,onFocus:x,onBlur:S,onMouseDown(N){h.current===N.target&&N.preventDefault()}},{typeSelectProps:v}=Ww({keyboardDelegate:n,selectionManager:t});u||(_=Oe(v,_));let L;return c||(L=t.focusedKey==null?0:-1),{collectionProps:{..._,tabIndex:L}}}function qw(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:o,shouldUseVirtualFocus:i,focus:l,isDisabled:s,onAction:a,allowsDifferentPressOrigin:u,linkBehavior:c="action"}=e,d=jc(),f=O=>{if(O.pointerType==="keyboard"&&yu(O))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(c==="selection"){d.open(r.current,O),t.setSelectedKeys(t.selectedKeys);return}else if(c==="override"||c==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):O&&O.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||O&&(Zn(O)||O.pointerType==="touch"||O.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};p.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!i&&(l?l():document.activeElement!==r.current&&ko(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,i]),s=s||t.isDisabled(n);let h={};!i&&!s?h={tabIndex:n===t.focusedKey?0:-1,onFocus(O){O.target===r.current&&t.setFocusedKey(n)}}:s&&(h.onMouseDown=O=>{O.preventDefault()});let E=t.isLink(n)&&c==="override",b=t.isLink(n)&&c!=="selection"&&c!=="none",w=!s&&t.canSelectItem(n)&&!E,y=(a||b)&&!s,m=y&&(t.selectionBehavior==="replace"?!w:!w||t.isEmpty),x=y&&w&&t.selectionBehavior==="replace",S=m||x,T=p.useRef(null),C=S&&w,_=p.useRef(!1),v=p.useRef(!1),L=O=>{a&&a(),b&&d.open(r.current,O)},N={};o?(N.onPressStart=O=>{T.current=O.pointerType,_.current=C,O.pointerType==="keyboard"&&(!S||Jd())&&f(O)},u?(N.onPressUp=m?null:O=>{O.pointerType!=="keyboard"&&w&&f(O)},N.onPress=m?L:null):N.onPress=O=>{if(m||x&&O.pointerType!=="mouse"){if(O.pointerType==="keyboard"&&!Zd())return;L(O)}else O.pointerType!=="keyboard"&&w&&f(O)}):(N.onPressStart=O=>{T.current=O.pointerType,_.current=C,v.current=m,w&&(O.pointerType==="mouse"&&!m||O.pointerType==="keyboard"&&(!y||Jd()))&&f(O)},N.onPress=O=>{(O.pointerType==="touch"||O.pointerType==="pen"||O.pointerType==="virtual"||O.pointerType==="keyboard"&&S&&Zd()||O.pointerType==="mouse"&&v.current)&&(S?L(O):w&&f(O))}),h["data-key"]=n,N.preventFocusOnPress=i;let{pressProps:P,isPressed:D}=mg(N),k=x?O=>{T.current==="mouse"&&(O.stopPropagation(),O.preventDefault(),L(O))}:void 0,{longPressProps:I}=xg({isDisabled:!C,onLongPress(O){O.pointerType==="touch"&&(f(O),t.setSelectionBehavior("toggle"))}}),H=O=>{T.current==="touch"&&_.current&&O.preventDefault()},J=t.isLink(n)?O=>{jn.isOpening||O.preventDefault()}:void 0;return{itemProps:Oe(h,w||m?P:{},C?I:{},{onDoubleClick:k,onDragStartCapture:H,onClick:J}),isPressed:D,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:s,allowsSelection:w,hasAction:S}}function Zd(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function Jd(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class zv{getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,n,r){let o=this.getItem(t);if(!o)return null;let i=o.getBoundingClientRect();do t=n(t),o=this.getItem(t);while(o&&r(i,o.getBoundingClientRect()));return t}isSameRow(t,n){return t.top===n.top||t.left!==n.left}isSameColumn(t,n){return t.left===n.left||t.top!==n.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){if(this.collection.getItem(t).type==="item"&&!this.disabledKeys.has(t))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return this.ref.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`)}getKeyPageAbove(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!cl(n))return this.getFirstKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let l=o.x-n.scrollLeft,s=Math.max(0,i.x-l+i.width-o.width);for(;r&&i.x-l>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}else{let l=o.y-n.scrollTop,s=Math.max(0,i.y-l+i.height-o.height);for(;r&&i.y-l>s;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),i=r==null?void 0:r.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!cl(n))return this.getLastKey();let o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(this.orientation==="horizontal"){let l=o.x-n.scrollLeft,s=Math.min(n.scrollWidth,i.x-l-i.width+o.width);for(;r&&i.x-li||new zv(n,s==="selection"?new Set:r,o,l),[i,n,r,o,l,s]),{collectionProps:u}=Uv({...e,ref:o,selectionManager:t,keyboardDelegate:a});return{listProps:u}}const Vl=new WeakMap;function Yw(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function Vv(e,t){let n=Vl.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${Yw(t)}`}function Zw(e,t,n){let r=Fc(e,{labelable:!0}),o=e.selectionBehavior||"toggle",i=e.linkBehavior||(o==="replace"?"action":"override");o==="toggle"&&i==="action"&&(i="override");let{listProps:l}=Xw({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:i}),{focusWithinProps:s}=Ul({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),a=mn(e.id);Vl.set(t,{id:a,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:i});let{labelProps:u,fieldProps:c}=Tg({...e,id:a,labelElementType:"span"});return{labelProps:u,listBoxProps:Oe(r,s,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...Oe(c,l)})}}function Jw(e,t,n){var r;let{key:o}=e,i=Vl.get(t);var l;let s=(l=e.isDisabled)!==null&&l!==void 0?l:t.disabledKeys.has(o);var a;let u=(a=e.isSelected)!==null&&a!==void 0?a:t.selectionManager.isSelected(o);var c;let d=(c=e.shouldSelectOnPressUp)!==null&&c!==void 0?c:i==null?void 0:i.shouldSelectOnPressUp;var f;let h=(f=e.shouldFocusOnHover)!==null&&f!==void 0?f:i==null?void 0:i.shouldFocusOnHover;var E;let b=(E=e.shouldUseVirtualFocus)!==null&&E!==void 0?E:i==null?void 0:i.shouldUseVirtualFocus;var w;let y=(w=e.isVirtualized)!==null&&w!==void 0?w:i==null?void 0:i.isVirtualized,m=sl(),x=sl(),S={role:"option","aria-disabled":s||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?u:void 0};gn()&&ag()||(S["aria-label"]=e["aria-label"],S["aria-labelledby"]=m,S["aria-describedby"]=x);let T=t.collection.getItem(o);if(y){let k=Number(T==null?void 0:T.index);S["aria-posinset"]=Number.isNaN(k)?void 0:k+1,S["aria-setsize"]=rg(t.collection)}let{itemProps:C,isPressed:_,isFocused:v,hasAction:L,allowsSelection:N}=qw({selectionManager:t.selectionManager,key:o,ref:n,shouldSelectOnPressUp:d,allowsDifferentPressOrigin:d&&h,isVirtualized:y,shouldUseVirtualFocus:b,isDisabled:s,onAction:i!=null&&i.onAction?()=>{var k;return i==null||(k=i.onAction)===null||k===void 0?void 0:k.call(i,o)}:void 0,linkBehavior:i==null?void 0:i.linkBehavior}),{hoverProps:P}=Hb({isDisabled:s||!h,onHoverStart(){fl()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(o))}}),D=Fc(T==null?void 0:T.props,{isLink:!!(!(T==null||(r=T.props)===null||r===void 0)&&r.href)});return delete D.id,{optionProps:{...S,...Oe(D,C,P),id:Vv(t,o)},labelProps:{id:m},descriptionProps:{id:x},isFocused:v,isFocusVisible:v&&fl(),isSelected:u,isDisabled:s,isPressed:_,allowsSelection:N,hasAction:L}}function eS(e){let{heading:t,"aria-label":n}=e,r=mn();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}var Gv={};Gv={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Wv={};Wv={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Qv={};Qv={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var qv={};qv={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Xv={};Xv={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Yv={};Yv={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Zv={};Zv={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Jv={};Jv={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var ey={};ey={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var ty={};ty={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var ny={};ny={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var ry={};ry={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var oy={};oy={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var iy={};iy={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var ly={};ly={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var sy={};sy={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var ay={};ay={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var uy={};uy={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var cy={};cy={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var fy={};fy={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var dy={};dy={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var hy={};hy={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var py={};py={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var my={};my={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var gy={};gy={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var vy={};vy={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var yy={};yy={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var xy={};xy={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var Ey={};Ey={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var by={};by={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var wy={};wy={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var Sy={};Sy={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var Cy={};Cy={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var Ty={};Ty={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};function tS(e){return e&&e.__esModule?e.default:e}var _y={};_y={"ar-AE":Gv,"bg-BG":Wv,"cs-CZ":Qv,"da-DK":qv,"de-DE":Xv,"el-GR":Yv,"en-US":Zv,"es-ES":Jv,"et-EE":ey,"fi-FI":ty,"fr-FR":ny,"he-IL":ry,"hr-HR":oy,"hu-HU":iy,"it-IT":ly,"ja-JP":sy,"ko-KR":ay,"lt-LT":uy,"lv-LV":cy,"nb-NO":fy,"nl-NL":dy,"pl-PL":hy,"pt-BR":py,"pt-PT":my,"ro-RO":gy,"ru-RU":vy,"sk-SK":yy,"sl-SI":xy,"sr-SP":Ey,"sv-SE":by,"tr-TR":wy,"uk-UA":Sy,"zh-CN":Cy,"zh-TW":Ty};function nS(e,t,n){let{type:r="menu",isDisabled:o,trigger:i="press"}=e,l=mn(),{triggerProps:s,overlayProps:a}=Dw({type:r},t,n),u=h=>{if(!o&&!(i==="longPress"&&!h.altKey)&&n&&n.current)switch(h.key){case"Enter":case" ":if(i==="longPress")return;case"ArrowDown":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in h||h.stopPropagation(),h.preventDefault(),t.toggle("last");break;default:"continuePropagation"in h&&h.continuePropagation()}},c=zc(tS(_y),"@react-aria/menu"),{longPressProps:d}=xg({isDisabled:o||i!=="longPress",accessibilityDescription:c.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),f={onPressStart(h){h.pointerType!=="touch"&&h.pointerType!=="keyboard"&&!o&&t.toggle(h.pointerType==="virtual"?"first":null)},onPress(h){h.pointerType==="touch"&&!o&&t.toggle()}};return delete s.onPress,{menuTriggerProps:{...s,...i==="press"?f:d,id:l,onKeyDown:u},menuProps:{...a,"aria-labelledby":l,autoFocus:t.focusStrategy||!0,onClose:t.close}}}function rS(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:o=!1,isReadOnly:i=!1,type:l="text",validationBehavior:s="aria"}=e,[a,u]=jo(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=lw(e,t),d=ng({...e,value:a}),{isInvalid:f,validationErrors:h,validationDetails:E}=d.displayValidation,{labelProps:b,fieldProps:w,descriptionProps:y,errorMessageProps:m}=bw({...e,isInvalid:f,errorMessage:e.errorMessage||h}),x=Fc(e,{labelable:!0});const S={type:l,pattern:e.pattern};return Eb(t,a,u),vw(e,d,t),p.useEffect(()=>{if(t.current instanceof No(t.current).HTMLTextAreaElement){let T=t.current;Object.defineProperty(T,"defaultValue",{get:()=>T.value,set:()=>{},configurable:!0})}},[t]),{labelProps:b,inputProps:Oe(x,n==="input"&&S,{disabled:r,readOnly:i,required:o&&s==="native","aria-required":o&&s==="aria"||void 0,"aria-invalid":f||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:a,onChange:T=>u(T.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,...w}),descriptionProps:y,errorMessageProps:m,isInvalid:f,validationErrors:h,validationDetails:E}}function oS(e){return e&&e.__esModule?e.default:e}var Py={};Py={"ar-AE":_g,"bg-BG":Pg,"cs-CZ":Ng,"da-DK":kg,"de-DE":Rg,"el-GR":Lg,"en-US":$g,"es-ES":Ig,"et-EE":Mg,"fi-FI":Ag,"fr-FR":Og,"he-IL":Fg,"hr-HR":Dg,"hu-HU":jg,"it-IT":Bg,"ja-JP":Hg,"ko-KR":Kg,"lt-LT":Ug,"lv-LV":zg,"nb-NO":Vg,"nl-NL":Gg,"pl-PL":Wg,"pt-BR":Qg,"pt-PT":qg,"ro-RO":Xg,"ru-RU":Yg,"sk-SK":Zg,"sl-SI":Jg,"sr-SP":ev,"sv-SE":tv,"tr-TR":nv,"uk-UA":rv,"zh-CN":ov,"zh-TW":iv};function iS(e,t){let{buttonRef:n,popoverRef:r,inputRef:o,listBoxRef:i,keyboardDelegate:l,shouldFocusWrap:s,isReadOnly:a,isDisabled:u}=e,c=zc(oS(Py),"@react-aria/combobox"),{menuTriggerProps:d,menuProps:f}=nS({type:"listbox",isDisabled:u||a},t,n);Vl.set(t,{id:f.id});let h=p.useMemo(()=>l||new zv(t.collection,t.disabledKeys,i),[l,t.collection,t.disabledKeys,i]),{collectionProps:E}=Uv({selectionManager:t.selectionManager,keyboardDelegate:h,disallowTypeAhead:!0,disallowEmptySelection:!0,shouldFocusWrap:s,ref:o,isVirtualized:!0}),b=jc(),w=K=>{switch(K.key){case"Enter":case"Tab":if(t.isOpen&&K.key==="Enter"&&K.preventDefault(),t.isOpen&&t.selectionManager.focusedKey!=null&&t.selectionManager.isLink(t.selectionManager.focusedKey)){if(K.key==="Enter"){let ee=i.current.querySelector(`[data-key="${CSS.escape(t.selectionManager.focusedKey.toString())}"]`);ee instanceof HTMLAnchorElement&&b.open(ee,K)}t.close()}else t.commit();break;case"Escape":(t.selectedKey!==null||t.inputValue===""||e.allowsCustomValue)&&K.continuePropagation(),t.revert();break;case"ArrowDown":t.open("first","manual");break;case"ArrowUp":t.open("last","manual");break;case"ArrowLeft":case"ArrowRight":t.selectionManager.setFocusedKey(null);break}},y=K=>{var ee;K.relatedTarget===(n==null?void 0:n.current)||!((ee=r.current)===null||ee===void 0)&&ee.contains(K.relatedTarget)||(e.onBlur&&e.onBlur(K),t.setFocused(!1))},m=K=>{t.isFocused||(e.onFocus&&e.onFocus(K),t.setFocused(!0))},{isInvalid:x,validationErrors:S,validationDetails:T}=t.displayValidation,{labelProps:C,inputProps:_,descriptionProps:v,errorMessageProps:L}=rS({...e,onChange:t.setInputValue,onKeyDown:a?e.onKeyDown:Po(t.isOpen&&E.onKeyDown,w,e.onKeyDown),onBlur:y,value:t.inputValue,onFocus:m,autoComplete:"off",validate:void 0,[ou]:t},o),N=K=>{K.pointerType==="touch"&&(o.current.focus(),t.toggle(null,"manual"))},P=K=>{K.pointerType!=="touch"&&(o.current.focus(),t.toggle(K.pointerType==="keyboard"||K.pointerType==="virtual"?"first":null,"manual"))},D=al({id:d.id,"aria-label":c.format("buttonLabel"),"aria-labelledby":e["aria-labelledby"]||C.id}),k=al({id:f.id,"aria-label":c.format("listboxLabel"),"aria-labelledby":e["aria-labelledby"]||C.id}),I=p.useRef(0),H=K=>{if(u||a)return;if(K.timeStamp-I.current<500){K.preventDefault(),o.current.focus();return}let ee=K.target.getBoundingClientRect(),bn=K.changedTouches[0],Mr=Math.ceil(ee.left+.5*ee.width),zo=Math.ceil(ee.top+.5*ee.height);bn.clientX===Mr&&bn.clientY===zo&&(K.preventDefault(),o.current.focus(),t.toggle(null,"manual"),I.current=K.timeStamp)},J=t.selectionManager.focusedKey!=null&&t.isOpen?t.collection.getItem(t.selectionManager.focusedKey):void 0;var O;let A=(O=J==null?void 0:J.parentKey)!==null&&O!==void 0?O:null;var B;let M=(B=t.selectionManager.focusedKey)!==null&&B!==void 0?B:null,U=p.useRef(A),W=p.useRef(M);p.useEffect(()=>{if(Li()&&J!=null&&M!==W.current){let K=t.selectionManager.isSelected(M),ee=A!=null?t.collection.getItem(A):null,bn=(ee==null?void 0:ee["aria-label"])||(typeof(ee==null?void 0:ee.rendered)=="string"?ee.rendered:"")||"",Mr=c.format("focusAnnouncement",{isGroupChange:ee&&A!==U.current,groupTitle:bn,groupCount:ee?[...Dl(ee,t.collection)].length:0,optionText:J["aria-label"]||J.textValue||"",isSelected:K});Xs(Mr)}U.current=A,W.current=M});let Xe=rg(t.collection),Ue=p.useRef(Xe),St=p.useRef(t.isOpen);p.useEffect(()=>{let K=t.isOpen!==St.current&&(t.selectionManager.focusedKey==null||Li());if(t.isOpen&&(K||Xe!==Ue.current)){let ee=c.format("countAnnouncement",{optionCount:Xe});Xs(ee)}Ue.current=Xe,St.current=t.isOpen});let Re=p.useRef(t.selectedKey);return p.useEffect(()=>{if(Li()&&t.isFocused&&t.selectedItem&&t.selectedKey!==Re.current){let K=t.selectedItem["aria-label"]||t.selectedItem.textValue||"",ee=c.format("selectedAnnouncement",{optionText:K});Xs(ee)}Re.current=t.selectedKey}),p.useEffect(()=>{if(t.isOpen)return Kv([o.current,r.current])},[t.isOpen,o,r]),{labelProps:C,buttonProps:{...d,...D,excludeFromTabOrder:!0,onPress:N,onPressStart:P,isDisabled:u||a},inputProps:Oe(_,{role:"combobox","aria-expanded":d["aria-expanded"],"aria-controls":t.isOpen?f.id:void 0,"aria-autocomplete":"list","aria-activedescendant":J?Vv(t,J.key):void 0,onTouchEnd:H,autoCorrect:"off",spellCheck:"false"}),listBoxProps:Oe(f,k,{autoFocus:t.focusStrategy,shouldUseVirtualFocus:!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,linkBehavior:"selection"}),descriptionProps:v,errorMessageProps:L,isInvalid:x,validationErrors:S,validationDetails:T}}const lS="_focused_1af8e_1",sS="_listbox_1af8e_10",aS="_content_1af8e_89",uS="_description_1af8e_98",cS="_uppercase_1af8e_126",fS="_divider_1af8e_130",Ve={focused:lS,listbox:sS,"listbox-top":"_listbox-top_1af8e_35","listbox-bottom":"_listbox-bottom_1af8e_39","listbox-content":"_listbox-content_1af8e_43","listbox-section-list":"_listbox-section-list_1af8e_51","listbox-section":"_listbox-section_1af8e_51","listbox-item":"_listbox-item_1af8e_61",content:aS,description:uS,uppercase:cS,divider:fS,"listbox-item--green-tilleul-verveine":"_listbox-item--green-tilleul-verveine_1af8e_141","listbox--green-tilleul-verveine":"_listbox--green-tilleul-verveine_1af8e_149","listbox-item--green-bourgeon":"_listbox-item--green-bourgeon_1af8e_157","listbox--green-bourgeon":"_listbox--green-bourgeon_1af8e_165","listbox-item--green-emeraude":"_listbox-item--green-emeraude_1af8e_173","listbox--green-emeraude":"_listbox--green-emeraude_1af8e_181","listbox-item--green-menthe":"_listbox-item--green-menthe_1af8e_189","listbox--green-menthe":"_listbox--green-menthe_1af8e_197","listbox-item--green-archipel":"_listbox-item--green-archipel_1af8e_205","listbox--green-archipel":"_listbox--green-archipel_1af8e_213","listbox-item--blue-ecume":"_listbox-item--blue-ecume_1af8e_221","listbox--blue-ecume":"_listbox--blue-ecume_1af8e_229","listbox-item--blue-cumulus":"_listbox-item--blue-cumulus_1af8e_237","listbox--blue-cumulus":"_listbox--blue-cumulus_1af8e_245","listbox-item--purple-glycine":"_listbox-item--purple-glycine_1af8e_253","listbox--purple-glycine":"_listbox--purple-glycine_1af8e_261","listbox-item--pink-macaron":"_listbox-item--pink-macaron_1af8e_269","listbox--pink-macaron":"_listbox--pink-macaron_1af8e_277","listbox-item--pink-tuile":"_listbox-item--pink-tuile_1af8e_285","listbox--pink-tuile":"_listbox--pink-tuile_1af8e_293","listbox-item--yellow-tournesol":"_listbox-item--yellow-tournesol_1af8e_301","listbox--yellow-tournesol":"_listbox--yellow-tournesol_1af8e_309","listbox-item--yellow-moutarde":"_listbox-item--yellow-moutarde_1af8e_317","listbox--yellow-moutarde":"_listbox--yellow-moutarde_1af8e_325","listbox-item--orange-terre-battue":"_listbox-item--orange-terre-battue_1af8e_333","listbox--orange-terre-battue":"_listbox--orange-terre-battue_1af8e_341","listbox-item--brown-cafe-creme":"_listbox-item--brown-cafe-creme_1af8e_349","listbox--brown-cafe-creme":"_listbox--brown-cafe-creme_1af8e_357","listbox-item--brown-caramel":"_listbox-item--brown-caramel_1af8e_365","listbox--brown-caramel":"_listbox--brown-caramel_1af8e_373","listbox-item--brown-opera":"_listbox-item--brown-opera_1af8e_381","listbox--brown-opera":"_listbox--brown-opera_1af8e_389","listbox-item--beige-gris-galet":"_listbox-item--beige-gris-galet_1af8e_397","listbox--beige-gris-galet":"_listbox--beige-gris-galet_1af8e_405","listbox-item--success":"_listbox-item--success_1af8e_413","listbox--success":"_listbox--success_1af8e_421","listbox-item--warning":"_listbox-item--warning_1af8e_429","listbox--warning":"_listbox--warning_1af8e_437","listbox-item--info":"_listbox-item--info_1af8e_445","listbox--info":"_listbox--info_1af8e_453","listbox-item--error":"_listbox-item--error_1af8e_461","listbox--error":"_listbox--error_1af8e_469"},Ny=p.createContext({}),dS=({children:e,routerComponent:t,extendRequiredFieldsLabelsWith:n=g.jsx("span",{style:{color:"var(--text-default-error)"},children:" *"}),extendOptionalFieldsLabelsWith:r=" (optionnel)",defaultLang:o="fr",verbose:i=!1})=>{const[l,s]=p.useState(window.localStorage.getItem("locale")||o),[a,u]=p.useState(!1);p.useEffect(()=>{const f=async()=>{var w,y,m;if(typeof window!==void 0||typeof window.dsfr<"u"){if((w=window==null?void 0:window.dsfr)!=null&&w.isStarted)return;window.dsfr={verbose:i,mode:"manual"},await Qn(()=>import("./dsfr.module.min-23ae5258-c178c6bb.js"),[]),await Qn(()=>import("./utility-251e9615-ae73a71d.js"),[]),await Qn(()=>import("./dsfr-4e49221c-2d2b34ee.js"),[]),(m=(y=window.dsfr).start)==null||m.call(y),u(!0)}else console.error("dsfr.start is not a function");window.dsfr={verbose:i,mode:"manual"},await Qn(()=>import("./dsfr.module.min-23ae5258-c178c6bb.js"),[]),await Qn(()=>import("./utility-251e9615-ae73a71d.js"),[]),await Qn(()=>import("./dsfr-4e49221c-2d2b34ee.js"),[]),window.dsfr.start(),u(!0)},h=window.matchMedia("(prefers-color-scheme: dark)"),E=h!=null&&h.matches?"dark":"light",b=window.localStorage.getItem("theme");document.documentElement.setAttribute("data-fr-scheme",b||E),f()},[]);const c=p.useCallback(f=>{window.localStorage.setItem("locale",f),document.documentElement.setAttribute("lang",f),s(f)},[]),d=p.useMemo(()=>({setLocale:c,routerComponent:t,locale:l,extendRequiredFieldsLabelsWith:n,extendOptionalFieldsLabelsWith:r}),[t,c,l,n,r]);return g.jsx(Ny.Provider,{value:d,children:a?e:null})},Bo=()=>p.useContext(Ny),Se=p.forwardRef(({children:e,className:t,icon:n,current:r,iconPosition:o="left",isSimple:i=!1,size:l="md",...s},a)=>{const{routerComponent:u}=Bo();return g.jsx(u||"a",{ref:a,"aria-current":r||void 0,className:R({"fr-link":i,[`fr-link-${l}`]:l!=="md",[`fr-icon-${n}`]:!!n,[`fr-link--icon-${o}`]:n&&o},t),...s,children:e})});function ky({item:e,state:t}){const n=p.useRef(null),{optionProps:r,descriptionProps:o,labelProps:i,isFocused:l,isFocusVisible:s}=Jw({key:e.key},t,n),{description:a,startContent:u,endContent:c,color:d,showDivider:f,href:h,className:E}=e.props||{};return g.jsxs(h?Se:"li",{...r,ref:n,href:h,className:R(Ve["listbox-item"],E,{[Ve[`listbox-item--${d}`]]:d,[Ve.divider]:f,"fr-enlarge-link":h,[Ve.focused]:l&&s}),children:[u&&u,g.jsxs("span",{className:Ve.content,children:[g.jsx("span",{...i,children:e.rendered}),a&&g.jsx("span",{...o,className:Ve.description,children:a})]}),c&&c]})}function hS({section:e,state:t}){const{itemProps:n,headingProps:r,groupProps:o}=eS({heading:e.rendered,"aria-label":e["aria-label"]}),{showDivider:i,className:l,css:s={}}=e.props||{},a=[...e.childNodes].find(u=>u.props.href)?"div":"ul";return g.jsxs("li",{...n,className:R(Ve["listbox-section"],l,s.base,{[Ve.divider]:i}),children:[e.rendered&&g.jsx("span",{...r,className:R("fr-text-mention--grey fr-text--sm fr-my-1w fr-px-1w",s.title),children:e.rendered}),g.jsx(a,{...o,className:R(Ve["listbox-section-list"],s.list),children:[...e.childNodes].map(u=>g.jsx(ky,{item:u,state:t},u.key))})]})}function pS(e){var t,n;const r=p.useRef(null),{listBoxRef:o=r,state:i,className:l,css:s={},color:a,topContent:u,bottomContent:c,...d}=e,{listBoxProps:f}=Zw(d,i,o),{isFocusVisible:h}=rw(),E=[...i.collection].find(w=>w.props.href)?"div":"ul",b=((n=(t=e==null?void 0:e.triggerRef)==null?void 0:t.current)==null?void 0:n.offsetWidth)||0;return g.jsxs("div",{className:R(Ve.listbox,l,s.base),style:{minWidth:b||"auto",maxWidth:b>150?b:"auto"},children:[g.jsx("span",{className:R(Ve["listbox-top"],s.top),children:u&&u}),g.jsx(E,{className:R(Ve["listbox-content"],s.list,{[Ve[`listbox--${a}`]]:a}),ref:o,"data-focus-visible":h,...f,children:[...i.collection].map(w=>w.type==="section"?p.createElement(hS,{...w.props,key:w.key,section:w,state:i}):p.createElement(ky,{...w.props,key:w.key,item:w,state:i}))}),g.jsx("span",{className:R(Ve["listbox-bottom"],s.bottom),children:c&&c})]})}const mS="_popover_1g6m6_1",gS={popover:mS};function vS({children:e,state:t,...n}){const r=p.useRef(null),{isNonModal:o=!1,popoverRef:i=r}=n,{popoverProps:l,underlayProps:s}=Uw({...n,popoverRef:i},t);return g.jsxs(Vw,{children:[!o&&g.jsx("div",{...s,style:{position:"fixed",inset:0}}),g.jsxs("div",{...l,ref:i,className:gS.popover,children:[!o&&g.jsx(Yd,{onDismiss:t.close}),e,g.jsx(Yd,{onDismiss:t.close})]})]})}const yS="_spinner_1m2vp_5",xS="_internal_1m2vp_27",eh={spinner:yS,"internal-circle":"_internal-circle_1m2vp_27",internal:xS};function ES({size:e=24}){const t=p.useId();return p.useEffect(()=>{var n,r;(n=document==null?void 0:document.getElementById(t))==null||n.style.setProperty("width",`${e}px`),(r=document==null?void 0:document.getElementById(t))==null||r.style.setProperty("height",`${e}px`)},[e,t]),g.jsx("svg",{id:t,className:eh.spinner,viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg",children:g.jsx("circle",{className:eh["internal-circle"],cx:"60",cy:"60",r:"30"})})}function bS(e){const{contains:t}=mw({sensitivity:"base"}),n=AE({...e,defaultFilter:t,allowsCustomValue:!0}),r=p.useRef(null),o=p.useRef(null),i=p.useRef(null),l=p.useRef(null),{size:s="md",color:a,onSubmit:u,topContent:c,bottomContent:d,...f}=e,{inputProps:h,listBoxProps:E}=iS({...f,inputRef:r,listBoxRef:o,popoverRef:i,onKeyUp:b=>{var w;b.key==="Enter"&&(b.preventDefault(),(w=e.onSubmit)==null||w.call(e,n.inputValue))}},n);return g.jsxs("form",{onSubmit:()=>u==null?void 0:u((e==null?void 0:e.inputValue)||""),ref:l,className:R("fr-search-bar",{"fr-search-bar--lg":s==="lg"}),role:"search",children:[g.jsx("input",{...h,type:"search",ref:r,className:"fr-input"}),g.jsxs("button",{type:"submit",style:{position:"relative"},className:R("fr-btn",{"fr-btn--lg":s==="lg"}),children:[g.jsx("div",{style:{position:"absolute",left:"-40px"},children:e.loadingState==="loading"&&g.jsx(ES,{})}),"Rechercher"]}),n.isOpen&&g.jsx(vS,{popoverRef:i,triggerRef:r,state:n,isNonModal:!1,placement:"bottom start",children:g.jsx(pS,{...E,color:a,listBoxRef:o,triggerRef:l,state:n,topContent:c,bottomContent:d})})]})}const wS=p.forwardRef,Ze=wS(({as:e,className:t,noIcon:n,color:r="blue-france",size:o,icon:i,variant:l="primary",...s},a)=>{const u=e==="a"?Se:e||"p",c=R("fr-badge",{[`fr-badge--${l}`]:l,[`fr-badge--${r}`]:r,[`fr-icon-${i}`]:i,"fr-badge--icon-":i,"fr-badge--no-icon":n,"fr-badge--sm":o==="sm"},t);return g.jsx(u,{className:c,ref:a,...s})}),Vc=({children:e,className:t,...n})=>{const r=p.useId(),o=R("fr-badges-group",t);return g.jsx("ul",{className:o,...n,children:Tn(e,Ze).map((i,l)=>g.jsx("li",{children:i},`${r}-${l}`))})},SS=p.forwardRef,xu=SS(({as:e,className:t,color:n="blue-france",icon:r,iconPosition:o="left",size:i="md",variant:l="primary",children:s,...a},u)=>{const c=e==="a"?Se:e||"button",d=R("fr-btn",{[`fr-btn--${i}`]:i!=="md",[`dfr-btn--${n}`]:!!n&&n!=="blue-france","fr-btn--secondary":l==="secondary","fr-btn--tertiary":l==="tertiary","fr-btn--tertiary-no-outline":l==="text",[`fr-icon-${r}`]:!!r,[`fr-btn--icon-${o}`]:r&&s,"fr-btn--icon":r&&!s},t);return g.jsx(c,{className:d,ref:u,...a,children:s})});p.forwardRef(({className:e,css:t={},hint:n,id:r,label:o,size:i,...l},s)=>{const a=p.useId(),u=r||a;return g.jsxs("div",{className:R("fr-checkbox-group",{"fr-checkbox-group--sm":i==="sm"},e),children:[g.jsx("input",{ref:s,type:"checkbox",id:u,className:R(t.input),...l}),g.jsxs("label",{className:R("fr-label",t.label),htmlFor:u,children:[o,n&&g.jsx("span",{className:R("fr-hint-text",t.labelHint),children:n})]})]})});const th=["__TYPE"];function Gl(e,t={}){const{include:n,exclude:r}=t;if(n)return Object.entries(e).reduce((i,[l,s])=>n.includes(l)?{...i,[l]:s}:i,{});const o=r?[...th,...r]:th;return Object.entries(e).reduce((i,[l,s])=>o.includes(l)?i:{...i,[l]:s},{})}p.forwardRef(({children:e,className:t,css:n={},hint:r,isInline:o=!1,legend:i,message:l,messageType:s,required:a,...u},c)=>{const d=p.useId(),{extendRequiredFieldsLabelsWith:f,extendOptionalFieldsLabelsWith:h}=Bo();return g.jsxs("fieldset",{ref:c,className:R("fr-fieldset",{[`fr-fieldset--${s}`]:s},t),...Gl(u),"aria-labelledby":l&&s?`${d}-message`:void 0,children:[i&&g.jsxs("legend",{className:R("fr-fieldset__legend fr-text--regular",n.legend),children:[i,a?f:h,r&&g.jsx("span",{className:R("fr-hint-text",n.legendHint),children:r})]}),p.Children.toArray(e).map((E,b)=>g.jsx("div",{className:R("fr-fieldset__element",{"fr-fieldset__element--inline":o},n.element),children:E},`${d}-${b}`)),l&&s&&g.jsx("div",{id:`${d}-message`,className:R("fr-messages-group",n.messageDiv),children:g.jsx("p",{className:R(`fr-message fr-message--${s}`,n.messageP),children:l})})]})});p.forwardRef(({id:e,className:t,css:n={},errorMessage:r,hint:o,label:i="Ajouter des fichiers",...l},s)=>{const a=p.useId(),u=e||a,{extendOptionalFieldsLabelsWith:c,extendRequiredFieldsLabelsWith:d}=Bo();return g.jsxs("div",{className:R("fr-upload-group",{"fr-input-group--error":r,"fr-input-group--disabled":l.disabled},t),children:[g.jsxs("label",{className:R("fr-label",n.label),htmlFor:u,children:[i,l.required?d:c,o&&g.jsx("span",{className:"fr-hint-text",children:o})]}),g.jsx("input",{ref:s,id:u,className:R("fr-upload",n.input),type:"file","aria-describedby":r?`${u}-message`:void 0,...l}),r&&g.jsx("p",{id:`${u}-message`,className:R("fr-error-text",n.errorParagraph),children:r})]})});const CS=p.forwardRef,ie=CS(({as:e="div",className:t,fluid:n=!1,fluidFrom:r="xs",...o},i)=>{const l=R({"fr-container":!n,"fr-container-fluid":n||r==="xs",[`fr-container-${r}--fluid`]:!n&&r!=="xs"},t);return g.jsx(e,{className:l,ref:i,...o})}),Ry=({gutters:e=!1,horizontalAlign:t,verticalAlign:n,className:r,...o})=>{const i=R("fr-grid-row",{"fr-grid-row--gutters":e,[`fr-grid-row--${t}`]:t,[`fr-grid-row--${n}`]:n},r);return g.jsx("div",{className:i,...o})},ea=({xs:e,sm:t,md:n,lg:r,xl:o,offsetXs:i,offsetSm:l,offsetMd:s,offsetLg:a,offsetXl:u,className:c,...d})=>{const f=R("fr-col",{[`fr-col-${e}`]:e,[`fr-col-sm-${t}`]:t,[`fr-col-md-${n}`]:n,[`fr-col-lg-${r}`]:r,[`fr-col-xl-${o}`]:o,[`fr-col-offset-${i}`]:i,[`fr-col-offset-sm-${l}`]:l,[`fr-col-offset-md-${s}`]:s,[`fr-col-offset-lg-${a}`]:a,[`fr-col-offset-xl-${u}`]:u},c);return g.jsx("div",{className:f,...d})},Ly=({href:e="/",name:t,tagline:n,className:r,css:o={},...i})=>g.jsxs("div",{className:R("fr-header__service",r),children:[g.jsx("p",{className:R("fr-header__service-title",o["fr-header__service-title"]),children:g.jsx(Se,{href:e,...i,children:t})}),n&&g.jsx("p",{className:R("fr-header__service-tagline",o["fr-header__service-tagline"]),children:n})]}),TS=({children:e,className:t,css:n={},...r})=>{const o=p.useId(),i=r.id||o;return g.jsxs("div",{className:R("fr-header__tools-links",t),...r,children:[g.jsx("ul",{className:R("fr-btns-group",n["fr-btns-group"]),children:Tn(e,xu).map((l,s)=>g.jsx("li",{children:l},`${i}-${s}`))}),yE(e,[xu])]})},_S=({className:e,css:t={},...n})=>g.jsx("div",{className:R("fr-header__operator",e),children:g.jsx("img",{className:R("fr-responsive-img",t["fr-responsive-img"]),...n})}),$y=p.forwardRef(({className:e,css:t={},buttonLabel:n,isLarge:r,label:o,onSearch:i,placeholder:l,...s},a)=>{const u=p.useRef(null),c=p.useId(),d=s.id||c,f=h=>{var E;return h.key==="Enter"&&i((E=u.current)==null?void 0:E.value)};return g.jsxs("div",{role:"search",className:R("fr-search-bar",{"fr-search-bar--lg":r},e),children:[o&&g.jsx("label",{className:R("fr-label",t["fr-label"]),htmlFor:d,children:o}),g.jsx("input",{ref:h=>Do(h,[a,u]),className:R("fr-input",t["fr-input"]),type:"search",id:d,onKeyDown:f,placeholder:l,...Gl(s)}),g.jsx("button",{type:"button",onClick:()=>{var h;return i((h=u.current)==null?void 0:h.value)},className:R("fr-btn",{"fr-btn--lg":r},t["fr-btn"]),title:n,children:n})]})}),Iy=({children:e,className:t,current:n=!1,css:r={},title:o,...i})=>{const l=p.useId(),s=Ac(e,[Iy,Se]);return g.jsxs(g.Fragment,{children:[g.jsx("button",{className:R("fr-nav__btn",t),"aria-expanded":"false","aria-controls":l,"aria-current":n||void 0,...i,children:o}),g.jsx("div",{className:R("fr-collapse","fr-menu",r["fr-menu"]),id:l,children:g.jsx("ul",{className:R("fr-menu__list",r["fr-menu__list"]),children:s.map((a,u)=>g.jsx("li",{className:"fr-nav__item",children:p.isValidElement(a)&&a.type===Se?p.cloneElement(a,{className:R("fr-nav__link",a.props.className)}):a},`navitem-${l}-${u}`))})})]})},My=({children:e,className:t,css:n={},...r})=>{const o=p.useId(),i=r.id||o;return g.jsx("nav",{className:R("fr-nav",t),id:i,role:"navigation",...r,children:g.jsx("ul",{className:R("fr-nav__list",n["fr-nav__list"]),children:Ac(e,[Iy,Se]).map((l,s)=>p.isValidElement(l)&&g.jsx("li",{className:R("fr-nav__item",n["fr-nav__item"]),children:l.type===Se?p.cloneElement(l,{className:R("fr-nav__link",l.props.className)}):l},`navitem-${i}-${s}`))})})},Wl=({text:e,splitCharacter:t="|"})=>{const n=e.split(t).reduce((r,o,i)=>i>0?[...r,g.jsx("br",{},`br-${i}`),g.jsx(p.Fragment,{children:o},i)]:[g.jsx(p.Fragment,{children:o},i)],[]);return g.jsx("div",{className:"fr-header__logo",children:g.jsx("p",{className:"fr-logo",children:n})})},PS=({children:e,className:t,css:n={},...r})=>{var o,i,l,s;const a=p.useId(),u=p.useId(),c=p.useId(),d=p.useId(),f=(o=Tn(e,Ly))==null?void 0:o[0],h=(i=Tn(e,TS))==null?void 0:i[0],E=(l=Ac(e,[$y,bS]))==null?void 0:l[0],b=(s=Tn(e,My))==null?void 0:s[0],w=Tn(e,Wl),y=Tn(e,_S),m=p.isValidElement(E)?E.props.title:"Rechercher";return g.jsxs("header",{role:"banner",className:R("fr-header",t),...r,children:[g.jsx("div",{className:R("fr-header__body",n["fr-header__body"]),children:g.jsx("div",{className:"fr-container",children:g.jsxs("div",{className:R("fr-header__body-row",n["fr-header__body-row"]),children:[g.jsxs("div",{className:R("fr-header__brand fr-enlarge-link",n["fr-header__brand"]),children:[g.jsxs("div",{className:R("fr-header__brand-top",n["fr-header__brand-top"]),children:[w&&w,y&&y,(h||E)&&g.jsxs("div",{className:R("fr-header__navbar",n["fr-header__navbar"]),children:[E&&g.jsx("button",{className:R("fr-btn--search fr-btn",n["fr-btn--search"]),"data-fr-opened":"false","aria-controls":u,id:a,title:m,children:m}),h&&g.jsx("button",{className:R("fr-btn--menu fr-btn",n["fr-btn--menu"]),"data-fr-opened":"false","aria-controls":c,"aria-haspopup":"menu",id:d,title:"Menu",children:"Menu"})]})]}),f&&f]}),g.jsxs("div",{className:R("fr-header__tools",n["fr-header__tools"]),children:[h,E&&g.jsx("div",{className:R("fr-header__search fr-modal",n["fr-header__search"]),id:u,children:g.jsxs("div",{className:"fr-container fr-container-lg--fluid",children:[g.jsx("button",{className:"fr-btn--close fr-btn","aria-controls":u,title:"Fermer",children:"Fermer"}),E]})})]})]})})}),g.jsx("div",{className:R("fr-header__menu fr-modal",n["fr-header__menu"]),id:c,"aria-labelledby":d,children:g.jsxs("div",{className:"fr-container",children:[g.jsx("button",{className:"fr-btn--close fr-btn","aria-controls":c,title:"Fermer",children:"Fermer"}),g.jsx("div",{className:R("fr-header__menu-links",n["fr-header__menu-links"])}),b&&b]})})]})};p.forwardRef(({className:e,css:t={},disableAutoValidation:n=!1,hint:r,icon:o,id:i,label:l,message:s,messageType:a,onBlur:u,onChange:c,disabled:d,required:f,isOptional:h,...E},b)=>{const{extendRequiredFieldsLabelsWith:w,extendOptionalFieldsLabelsWith:y}=Bo(),[m,x]=p.useState(""),S=i||p.useId(),T=p.useRef(null),C=s!==void 0||a!==void 0,_=R("fr-input",{"fr-input--error":C?a==="error":m==="error","fr-input--valid":C?a==="valid":m==="valid"},t["fr-input"]),v=R("fr-input-group",{"fr-input-group--error":C?a==="error":m==="error","fr-input-group--valid":C?a==="valid":m==="valid","fr-input-group--disabled":d},e),L=P=>{const D=T.current;!n&&!C&&D&&x(D.checkValidity()?"valid":"error"),u&&u(P)},N=P=>{const D=T.current;!n&&!C&&D&&m&&x(D.checkValidity()?"valid":"error"),c&&c(P)};return g.jsxs("div",{className:v,children:[g.jsxs("label",{className:R("fr-label",t["fr-label"]),htmlFor:S,children:[l,f&&!h&&w,h&&!f&&y,r&&g.jsx("span",{className:R("fr-hint-text",t["fr-hint-text"]),children:r})]}),g.jsx("div",{className:R("fr-input-wrap",{[`fr-icon-${o}`]:o},t["fr-input-wrap"]),children:g.jsx("input",{id:S,disabled:d,className:_,onBlur:L,onChange:N,ref:P=>Do(P,[b,T]),"aria-describedby":a?`${S}-message`:void 0,...E})}),a&&g.jsx("p",{className:`fr-${a}-text`,id:`${S}-message`,children:s})]})});p.forwardRef(({className:e,css:t={},disableAutoValidation:n=!1,hint:r,icon:o,id:i,label:l,message:s,messageType:a,onBlur:u,onChange:c,disabled:d,required:f,isOptional:h,...E},b)=>{const{extendRequiredFieldsLabelsWith:w,extendOptionalFieldsLabelsWith:y}=Bo(),[m,x]=p.useState(""),S=i||p.useId(),T=p.useRef(null),C=s!==void 0||a!==void 0,_=R("fr-input",{"fr-input--error":C?a==="error":m==="error","fr-input--valid":C?a==="valid":m==="valid"},t["fr-input"]),v=R("fr-input-group",{"fr-input-group--error":C?a==="error":m==="error","fr-input-group--valid":C?a==="valid":m==="valid","fr-input-group--disabled":d},e),L=P=>{const D=T.current;!n&&!C&&D&&x(D.checkValidity()?"valid":"error"),u&&u(P)},N=P=>{const D=T.current;!n&&!C&&D&&m&&x(D.checkValidity()?"valid":"error"),c&&c(P)};return g.jsxs("div",{className:v,children:[g.jsxs("label",{className:R("fr-label",t["fr-label"]),htmlFor:S,children:[l,f&&!h&&w,h&&!f&&y,r&&g.jsx("span",{className:R("fr-hint-text",t["fr-hint-text"]),children:r})]}),g.jsx("div",{className:R("fr-input-wrap",{[`fr-icon-${o}`]:o},t["fr-input-wrap"]),children:g.jsx("textarea",{id:S,className:_,disabled:d,onBlur:L,onChange:N,ref:P=>Do(P,[b,T]),"aria-describedby":a?`${S}-message`:void 0,...E})}),a&&g.jsx("p",{className:`fr-${a}-text`,id:`${S}-message`,children:s})]})});p.forwardRef(({className:e,color:t="blue-france",icon:n,iconPosition:r="left",size:o="md",variant:i="primary",children:l,...s},a)=>{const u=R("fr-btn",{[`fr-btn--${o}`]:o!=="md",[`dfr-btn--${t}`]:!!t&&t!=="blue-france","fr-btn--secondary":i==="secondary","fr-btn--tertiary":i==="tertiary","fr-btn--tertiary-no-outline":i==="text",[`fr-icon-${n}`]:!!n,[`fr-btn--icon-${r}`]:n&&l,"fr-btn--icon":n&&!l},e);return g.jsx("button",{className:u,ref:a,...s,children:l})});p.forwardRef(({children:e,className:t,icon:n,id:r,...o},i)=>{const l=R("fr-modal__title",t);return g.jsxs("h1",{ref:i,className:l,id:`${r}-title`,...Gl(o),children:[n&&g.jsx("span",{className:`fr-icon-${n} fr-icon--lg`}),e]})});p.forwardRef(({className:e,controls:t,children:n="Fermer",...r},o)=>g.jsx("button",{ref:o,id:`${t}-close`,"aria-controls":t||void 0,className:R("fr-btn--close fr-btn",e),type:"button",...r,children:n}));p.forwardRef(({...e},t)=>g.jsx("div",{ref:t,...e}));p.forwardRef(({className:e,...t},n)=>g.jsx("div",{ref:n,className:R("fr-modal__footer",e),...t}));const Ay=({children:e,closeMode:t="disallow",type:n="info",className:r,css:o={},onClose:i,...l})=>{const s=p.useRef(null),a=c=>{var d;c.preventDefault(),(d=s.current)==null||d.remove(),i&&i(c)},u=R("fr-notice",{"fr-notice--info":n==="info",[`dsfr-plus-notice--${n}`]:n!=="info"},r);return g.jsx("div",{ref:s,className:u,...l,children:g.jsx("div",{className:R("fr-container",o["fr-container"]),children:g.jsxs("div",{className:R("fr-notice__body",o["fr-notice__body"]),children:[g.jsx("p",{className:R("fr-notice__title",o["fr-notice__title"]),children:e}),t!=="disallow"&&g.jsx("button",{onClick:t==="uncontrolled"?a:i,className:R("fr-btn--close","fr-btn",o["fr-btn--close"]),children:"Masquer le message"})]})})})};p.forwardRef(({checked:e,className:t,css:n={},hint:r,id:o,imageComponent:i,label:l,name:s,...a},u)=>{const c=o||p.useId();return g.jsxs("div",{className:R("fr-radio-group",{"fr-radio-rich":i},t),children:[g.jsx("input",{checked:e,id:c,name:s,ref:u,type:"radio",...a}),g.jsxs("label",{className:R("fr-label"),htmlFor:c,children:[l,r&&g.jsx("p",{className:R("fr-hint-text"),children:r})]}),i&&g.jsx("div",{className:R("fr-radio-rich__img"),children:i})]})});function NS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Oy={exports:{}},ta,nh;function kS(){if(nh)return ta;nh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ta=e,ta}var na,rh;function RS(){if(rh)return na;rh=1;var e=kS();function t(){}function n(){}return n.resetWarningCache=t,na=function(){function r(l,s,a,u,c,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},na}Oy.exports=RS()();var LS=Oy.exports;const $S=NS(LS),IS="_spinner_143d9_5",MS="_internal_143d9_40",AS="_external_143d9_41",ra={spinner:IS,"internal-circle":"_internal-circle_143d9_40","external-circle":"_external-circle_143d9_41",internal:MS,external:AS,"spinner-overlay":"_spinner-overlay_143d9_57"};function Gc({size:e}){const t=p.useId();return p.useEffect(()=>{var n,r;(n=document==null?void 0:document.getElementById(t))==null||n.style.setProperty("width",`${e}px`),(r=document==null?void 0:document.getElementById(t))==null||r.style.setProperty("height",`${e}px`)},[e,t]),g.jsxs("svg",{id:t,className:ra.spinner,viewBox:"0 0 120 120",xmlns:"http://www.w3.org/2000/svg",children:[g.jsx("circle",{className:ra["internal-circle"],cx:"60",cy:"60",r:"30"}),g.jsx("circle",{className:ra["external-circle"],cx:"60",cy:"60",r:"50"})]})}Gc.propTypes={size:$S.number};Gc.defaultProps={size:48};const Wc=p.forwardRef,Qc=({className:e,color:t,icon:n,iconPosition:r,size:o})=>R("fr-tag",e,{"fr-tag--sm":o==="sm",[`fr-icon-${n}`]:n,[`fr-tag--icon-${r}`]:n&&r,[`fr-tag--${t}`]:t});Wc(({as:e,className:t,color:n,icon:r,iconPosition:o="right",size:i,...l},s)=>{const a=Qc({className:t,color:n,icon:r,iconPosition:o,size:i});return g.jsx(e==="a"?Se:e||"p",{className:a,ref:s,...l})});Wc(({as:e,className:t,color:n,icon:r,iconPosition:o="left",selected:i,size:l,...s},a)=>{const u=Qc({className:t,color:n,icon:r,iconPosition:o,size:l});return g.jsx(e==="a"?Se:e||"button",{"aria-pressed":i,className:u,"data-fr-js-disable":"true",ref:a,...s})});Wc(({as:e,className:t,color:n,icon:r,iconPosition:o="left",size:i,...l},s)=>{const a=R("custom-dismissible-tag",Qc({className:t,color:n,icon:r,iconPosition:o,size:i}));return g.jsx(e==="a"?Se:e||"button",{className:a,ref:s,...l})});const vl=({alt:e,as:t="p",bold:n,className:r,size:o,...i})=>{const l=R(r,{"fr-text--alt":o!=="lead"&&e,"fr-text--heavy":n,[`fr-text--${o}`]:o&&o!=="md"});return g.jsx(t,{className:l,...i})};p.createContext({});p.forwardRef(({className:e,css:t={},hasLabelLeft:n,hasSeparator:r,hint:o,label:i,...l},s)=>{const a=p.useId(),u=l.id||a,c=R("fr-toggle",{"fr-toggle--border-bottom":r,"fr-toggle--label-left":n},e);return g.jsxs("div",{className:c,children:[g.jsx("input",{ref:s,type:"checkbox",className:R("fr-toggle__input",t["fr-toggle__input"]),id:u,...Gl(l,{exclude:["type"]})}),g.jsx("label",{className:R("fr-toggle__label",t["fr-toggle__label"]),htmlFor:u,"data-fr-checked-label":"Activé","data-fr-unchecked-label":"Désactivé",children:i}),o&&g.jsx("p",{className:R("fr-hint-text",t["fr-hint-text"]),children:o})]})});p.forwardRef(({className:e,icon:t,id:n,label:r,name:o,...i},l)=>g.jsxs("div",{className:R("fr-segmented__element"),style:{width:"100%"},children:[g.jsx("input",{id:n,name:o,ref:l,type:"radio",...i}),g.jsx("label",{className:R("fr-label",t),htmlFor:n,children:r})]}));/** * @remix-run/router v1.16.0 * * Copyright (c) Remix Software Inc. @@ -50,7 +50,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function ko(){return ko=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Fy(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function AS(){return Math.random().toString(36).substr(2,8)}function ih(e,t){return{usr:e.state,key:e.key,idx:t}}function Eu(e,t,n,r){return n===void 0&&(n=null),ko({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?$r(t):t,{state:n,key:t&&t.key||r||AS()})}function Dy(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function $r(e){let t={};if(e){let n=e.indexOf("#");n>=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 OS(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,s=rn.Pop,a=null,u=c();u==null&&(u=0,l.replaceState(ko({},l.state,{idx:u}),""));function c(){return(l.state||{idx:null}).idx}function f(){s=rn.Pop;let w=c(),y=w==null?null:w-u;u=w,a&&a({action:s,location:b.location,delta:y})}function d(w,y){s=rn.Push;let m=Eu(b.location,w,y);n&&n(m,w),u=c()+1;let x=ih(m,u),S=b.createHref(m);try{l.pushState(x,"",S)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign(S)}i&&a&&a({action:s,location:b.location,delta:1})}function h(w,y){s=rn.Replace;let m=Eu(b.location,w,y);n&&n(m,w),u=c();let x=ih(m,u),S=b.createHref(m);l.replaceState(x,"",S),i&&a&&a({action:s,location:b.location,delta:0})}function E(w){let y=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof w=="string"?w:Dy(w);return m=m.replace(/ $/,"%20"),be(y,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,y)}let b={get action(){return s},get location(){return e(o,l)},listen(w){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(oh,f),a=w,()=>{o.removeEventListener(oh,f),a=null}},createHref(w){return t(o,w)},createURL:E,encodeLocation(w){let y=E(w);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:d,replace:h,go(w){return l.go(w)}};return b}var lh;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lh||(lh={}));function FS(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?$r(t):t,o=Hy(r.pathname||"/",n);if(o==null)return null;let i=jy(e);DS(i);let l=null;for(let s=0;l==null&&s{let a={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};a.relativePath.startsWith("/")&&(be(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 u=In([r,a.relativePath]),c=n.concat(a);i.children&&i.children.length>0&&(be(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),jy(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:VS(u,i.index),routesMeta:c})};return e.forEach((i,l)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,l);else for(let a of By(i.path))o(i,l,a)}),t}function By(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=By(r.join("/")),s=[];return s.push(...l.map(a=>a===""?i:[i,a].join("/"))),o&&s.push(...l),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function DS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:GS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const jS=/^:[\w-]+$/,BS=3,HS=2,KS=1,US=10,zS=-2,sh=e=>e==="*";function VS(e,t){let n=e.split("/"),r=n.length;return n.some(sh)&&(r+=zS),t&&(r+=HS),n.filter(o=>!sh(o)).reduce((o,i)=>o+(jS.test(i)?BS:i===""?KS:US),r)}function GS(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function WS(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let l=0;l{let{paramName:d,isOptional:h}=c;if(d==="*"){let b=s[f]||"";l=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const E=s[f];return h&&!E?u[d]=void 0:u[d]=(E||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:l,pattern:e}}function qS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Fy(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,s,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function XS(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Fy(!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 Hy(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 YS(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?$r(e):e;return{pathname:n?n.startsWith("/")?n:ZS(n,t):t,search:rC(r),hash:oC(o)}}function ZS(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function oa(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 JS(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function eC(e,t){let n=JS(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function tC(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=$r(e):(o=ko({},e),be(!o.pathname||!o.pathname.includes("?"),oa("?","pathname","search",o)),be(!o.pathname||!o.pathname.includes("#"),oa("#","pathname","hash",o)),be(!o.search||!o.search.includes("#"),oa("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,s;if(l==null)s=n;else{let f=t.length-1;if(!r&&l.startsWith("..")){let d=l.split("/");for(;d[0]==="..";)d.shift(),f-=1;o.pathname=d.join("/")}s=f>=0?t[f]:"/"}let a=YS(o,s),u=l&&l!=="/"&&l.endsWith("/"),c=(i||l===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||c)&&(a.pathname+="/"),a}const In=e=>e.join("/").replace(/\/\/+/g,"/"),nC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),rC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,oC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function iC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ky=["post","put","patch","delete"];new Set(Ky);const lC=["get",...Ky];new Set(lC);/** + */function Ro(){return Ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Fy(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function FS(){return Math.random().toString(36).substr(2,8)}function ih(e,t){return{usr:e.state,key:e.key,idx:t}}function Eu(e,t,n,r){return n===void 0&&(n=null),Ro({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?$r(t):t,{state:n,key:t&&t.key||r||FS()})}function Dy(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function $r(e){let t={};if(e){let n=e.indexOf("#");n>=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 DS(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,s=rn.Pop,a=null,u=c();u==null&&(u=0,l.replaceState(Ro({},l.state,{idx:u}),""));function c(){return(l.state||{idx:null}).idx}function d(){s=rn.Pop;let w=c(),y=w==null?null:w-u;u=w,a&&a({action:s,location:b.location,delta:y})}function f(w,y){s=rn.Push;let m=Eu(b.location,w,y);n&&n(m,w),u=c()+1;let x=ih(m,u),S=b.createHref(m);try{l.pushState(x,"",S)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign(S)}i&&a&&a({action:s,location:b.location,delta:1})}function h(w,y){s=rn.Replace;let m=Eu(b.location,w,y);n&&n(m,w),u=c();let x=ih(m,u),S=b.createHref(m);l.replaceState(x,"",S),i&&a&&a({action:s,location:b.location,delta:0})}function E(w){let y=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof w=="string"?w:Dy(w);return m=m.replace(/ $/,"%20"),be(y,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,y)}let b={get action(){return s},get location(){return e(o,l)},listen(w){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(oh,d),a=w,()=>{o.removeEventListener(oh,d),a=null}},createHref(w){return t(o,w)},createURL:E,encodeLocation(w){let y=E(w);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:f,replace:h,go(w){return l.go(w)}};return b}var lh;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(lh||(lh={}));function jS(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?$r(t):t,o=Hy(r.pathname||"/",n);if(o==null)return null;let i=jy(e);BS(i);let l=null;for(let s=0;l==null&&s{let a={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};a.relativePath.startsWith("/")&&(be(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 u=In([r,a.relativePath]),c=n.concat(a);i.children&&i.children.length>0&&(be(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),jy(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:WS(u,i.index),routesMeta:c})};return e.forEach((i,l)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,l);else for(let a of By(i.path))o(i,l,a)}),t}function By(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=By(r.join("/")),s=[];return s.push(...l.map(a=>a===""?i:[i,a].join("/"))),o&&s.push(...l),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function BS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:QS(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const HS=/^:[\w-]+$/,KS=3,US=2,zS=1,VS=10,GS=-2,sh=e=>e==="*";function WS(e,t){let n=e.split("/"),r=n.length;return n.some(sh)&&(r+=GS),t&&(r+=US),n.filter(o=>!sh(o)).reduce((o,i)=>o+(HS.test(i)?KS:i===""?zS:VS),r)}function QS(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function qS(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let l=0;l{let{paramName:f,isOptional:h}=c;if(f==="*"){let b=s[d]||"";l=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const E=s[d];return h&&!E?u[f]=void 0:u[f]=(E||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:l,pattern:e}}function YS(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Fy(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,s,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function ZS(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Fy(!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 Hy(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 JS(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?$r(e):e;return{pathname:n?n.startsWith("/")?n:eC(n,t):t,search:iC(r),hash:lC(o)}}function eC(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function oa(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 tC(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function nC(e,t){let n=tC(e);return t?n.map((r,o)=>o===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function rC(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=$r(e):(o=Ro({},e),be(!o.pathname||!o.pathname.includes("?"),oa("?","pathname","search",o)),be(!o.pathname||!o.pathname.includes("#"),oa("#","pathname","hash",o)),be(!o.search||!o.search.includes("#"),oa("#","search","hash",o)));let i=e===""||o.pathname==="",l=i?"/":o.pathname,s;if(l==null)s=n;else{let d=t.length-1;if(!r&&l.startsWith("..")){let f=l.split("/");for(;f[0]==="..";)f.shift(),d-=1;o.pathname=f.join("/")}s=d>=0?t[d]:"/"}let a=JS(o,s),u=l&&l!=="/"&&l.endsWith("/"),c=(i||l===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||c)&&(a.pathname+="/"),a}const In=e=>e.join("/").replace(/\/\/+/g,"/"),oC=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),iC=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,lC=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function sC(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ky=["post","put","patch","delete"];new Set(Ky);const aC=["get",...Ky];new Set(aC);/** * React Router v6.23.0 * * Copyright (c) Remix Software Inc. @@ -59,7 +59,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Ro(){return Ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),p.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let f=tC(u,JSON.parse(l),i,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:In([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,l,i,e])}const cC=p.createContext(null);function fC(e){let t=p.useContext(Vn).outlet;return t&&p.createElement(cC.Provider,{value:e},t)}function dC(e,t){return hC(e,t)}function hC(e,t,n,r){Ql()||be(!1);let{navigator:o}=p.useContext(Gl),{matches:i}=p.useContext(Vn),l=i[i.length-1],s=l?l.params:{};l&&l.pathname;let a=l?l.pathnameBase:"/";l&&l.route;let u=ql(),c;if(t){var f;let w=typeof t=="string"?$r(t):t;a==="/"||(f=w.pathname)!=null&&f.startsWith(a)||be(!1),c=w}else c=u;let d=c.pathname||"/",h=d;if(a!=="/"){let w=a.replace(/^\//,"").split("/");h="/"+d.replace(/^\//,"").split("/").slice(w.length).join("/")}let E=FS(e,{pathname:h}),b=yC(E&&E.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:In([a,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:In([a,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&b?p.createElement(Wl.Provider,{value:{location:Ro({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:rn.Pop}},b):b}function pC(){let e=wC(),t=iC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,i)}const mC=p.createElement(pC,null);class gC extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(Vn.Provider,{value:this.props.routeContext},p.createElement(Uy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function vC(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(qc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Vn.Provider,{value:t},r)}function yC(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let l=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let c=l.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);c>=0||be(!1),l=l.slice(0,Math.min(l.length,c+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?l=l.slice(0,u+1):l=[l[0]];break}}}return l.reduceRight((c,f,d)=>{let h,E=!1,b=null,w=null;n&&(h=s&&f.route.id?s[f.route.id]:void 0,b=f.route.errorElement||mC,a&&(u<0&&d===0?(CC("route-fallback",!1),E=!0,w=null):u===d&&(E=!0,w=f.route.hydrateFallbackElement||null)));let y=t.concat(l.slice(0,d+1)),m=()=>{let x;return h?x=b:E?x=w:f.route.Component?x=p.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=c,p.createElement(vC,{match:f,routeContext:{outlet:c,matches:y,isDataRoute:n!=null},children:x})};return n&&(f.route.ErrorBoundary||f.route.errorElement||d===0)?p.createElement(gC,{location:n.location,revalidation:n.revalidation,component:b,error:h,children:m(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):m()},null)}var Vy=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Vy||{}),gl=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}(gl||{});function xC(e){let t=p.useContext(qc);return t||be(!1),t}function EC(e){let t=p.useContext(sC);return t||be(!1),t}function bC(e){let t=p.useContext(Vn);return t||be(!1),t}function Gy(e){let t=bC(),n=t.matches[t.matches.length-1];return n.route.id||be(!1),n.route.id}function wC(){var e;let t=p.useContext(Uy),n=EC(gl.UseRouteError),r=Gy(gl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function SC(){let{router:e}=xC(Vy.UseNavigateStable),t=Gy(gl.UseNavigateStable),n=p.useRef(!1);return zy(()=>{n.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Ro({fromRouteId:t},i)))},[e,t])}const ah={};function CC(e,t,n){!t&&!ah[e]&&(ah[e]=!0)}function TC(e){return fC(e.context)}function bu(e){be(!1)}function _C(e){let{basename:t="/",children:n=null,location:r,navigationType:o=rn.Pop,navigator:i,static:l=!1,future:s}=e;Ql()&&be(!1);let a=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:a,navigator:i,static:l,future:Ro({v7_relativeSplatPath:!1},s)}),[a,s,i,l]);typeof r=="string"&&(r=$r(r));let{pathname:c="/",search:f="",hash:d="",state:h=null,key:E="default"}=r,b=p.useMemo(()=>{let w=Hy(c,a);return w==null?null:{location:{pathname:w,search:f,hash:d,state:h,key:E},navigationType:o}},[a,c,f,d,h,E,o]);return b==null?null:p.createElement(Gl.Provider,{value:u},p.createElement(Wl.Provider,{children:n,value:b}))}function PC(e){let{children:t,location:n}=e;return dC(wu(t),n)}new Promise(()=>{});function wu(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,o)=>{if(!p.isValidElement(r))return;let i=[...t,o];if(r.type===p.Fragment){n.push.apply(n,wu(r.props.children,i));return}r.type!==bu&&be(!1),!r.props.index||!r.props.children||be(!1);let l={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=wu(r.props.children,i)),n.push(l)}),n}/** + */function Lo(){return Lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),p.useCallback(function(u,c){if(c===void 0&&(c={}),!s.current)return;if(typeof u=="number"){r.go(u);return}let d=rC(u,JSON.parse(l),i,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:In([t,d.pathname])),(c.replace?r.replace:r.push)(d,c.state,c)},[t,r,l,i,e])}const dC=p.createContext(null);function hC(e){let t=p.useContext(Vn).outlet;return t&&p.createElement(dC.Provider,{value:e},t)}function pC(e,t){return mC(e,t)}function mC(e,t,n,r){Xl()||be(!1);let{navigator:o}=p.useContext(Ql),{matches:i}=p.useContext(Vn),l=i[i.length-1],s=l?l.params:{};l&&l.pathname;let a=l?l.pathnameBase:"/";l&&l.route;let u=Yl(),c;if(t){var d;let w=typeof t=="string"?$r(t):t;a==="/"||(d=w.pathname)!=null&&d.startsWith(a)||be(!1),c=w}else c=u;let f=c.pathname||"/",h=f;if(a!=="/"){let w=a.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(w.length).join("/")}let E=jS(e,{pathname:h}),b=EC(E&&E.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:In([a,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:In([a,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&b?p.createElement(ql.Provider,{value:{location:Lo({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:rn.Pop}},b):b}function gC(){let e=CC(),t=sC(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),n?p.createElement("pre",{style:o},n):null,i)}const vC=p.createElement(gC,null);class yC extends p.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?p.createElement(Vn.Provider,{value:this.props.routeContext},p.createElement(Uy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function xC(e){let{routeContext:t,match:n,children:r}=e,o=p.useContext(qc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),p.createElement(Vn.Provider,{value:t},r)}function EC(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let l=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let c=l.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);c>=0||be(!1),l=l.slice(0,Math.min(l.length,c+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?l=l.slice(0,u+1):l=[l[0]];break}}}return l.reduceRight((c,d,f)=>{let h,E=!1,b=null,w=null;n&&(h=s&&d.route.id?s[d.route.id]:void 0,b=d.route.errorElement||vC,a&&(u<0&&f===0?(_C("route-fallback",!1),E=!0,w=null):u===f&&(E=!0,w=d.route.hydrateFallbackElement||null)));let y=t.concat(l.slice(0,f+1)),m=()=>{let x;return h?x=b:E?x=w:d.route.Component?x=p.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=c,p.createElement(xC,{match:d,routeContext:{outlet:c,matches:y,isDataRoute:n!=null},children:x})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?p.createElement(yC,{location:n.location,revalidation:n.revalidation,component:b,error:h,children:m(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):m()},null)}var Vy=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Vy||{}),yl=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}(yl||{});function bC(e){let t=p.useContext(qc);return t||be(!1),t}function wC(e){let t=p.useContext(uC);return t||be(!1),t}function SC(e){let t=p.useContext(Vn);return t||be(!1),t}function Gy(e){let t=SC(),n=t.matches[t.matches.length-1];return n.route.id||be(!1),n.route.id}function CC(){var e;let t=p.useContext(Uy),n=wC(yl.UseRouteError),r=Gy(yl.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function TC(){let{router:e}=bC(Vy.UseNavigateStable),t=Gy(yl.UseNavigateStable),n=p.useRef(!1);return zy(()=>{n.current=!0}),p.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,Lo({fromRouteId:t},i)))},[e,t])}const ah={};function _C(e,t,n){!t&&!ah[e]&&(ah[e]=!0)}function PC(e){return hC(e.context)}function bu(e){be(!1)}function NC(e){let{basename:t="/",children:n=null,location:r,navigationType:o=rn.Pop,navigator:i,static:l=!1,future:s}=e;Xl()&&be(!1);let a=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:a,navigator:i,static:l,future:Lo({v7_relativeSplatPath:!1},s)}),[a,s,i,l]);typeof r=="string"&&(r=$r(r));let{pathname:c="/",search:d="",hash:f="",state:h=null,key:E="default"}=r,b=p.useMemo(()=>{let w=Hy(c,a);return w==null?null:{location:{pathname:w,search:d,hash:f,state:h,key:E},navigationType:o}},[a,c,d,f,h,E,o]);return b==null?null:p.createElement(Ql.Provider,{value:u},p.createElement(ql.Provider,{children:n,value:b}))}function kC(e){let{children:t,location:n}=e;return pC(wu(t),n)}new Promise(()=>{});function wu(e,t){t===void 0&&(t=[]);let n=[];return p.Children.forEach(e,(r,o)=>{if(!p.isValidElement(r))return;let i=[...t,o];if(r.type===p.Fragment){n.push.apply(n,wu(r.props.children,i));return}r.type!==bu&&be(!1),!r.props.index||!r.props.children||be(!1);let l={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=wu(r.props.children,i)),n.push(l)}),n}/** * React Router DOM v6.23.0 * * Copyright (c) Remix Software Inc. @@ -68,7 +68,7 @@ Error generating stack: `+i.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function Su(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function NC(e,t){let n=Su(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}const kC="6";try{window.__reactRouterVersion=kC}catch{}const RC="startTransition",uh=J0[RC];function LC(e){let{basename:t,children:n,future:r,window:o}=e,i=p.useRef();i.current==null&&(i.current=MS({window:o,v5Compat:!0}));let l=i.current,[s,a]=p.useState({action:l.action,location:l.location}),{v7_startTransition:u}=r||{},c=p.useCallback(f=>{u&&uh?uh(()=>a(f)):a(f)},[a,u]);return p.useLayoutEffect(()=>l.listen(c),[l,c]),p.createElement(_C,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:l,future:r})}var ch;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ch||(ch={}));var fh;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(fh||(fh={}));function $C(e){let t=p.useRef(Su(e)),n=p.useRef(!1),r=ql(),o=p.useMemo(()=>NC(r.search,n.current?null:t.current),[r.search]),i=aC(),l=p.useCallback((s,a)=>{const u=Su(typeof s=="function"?s(o):s);n.current=!0,i("?"+u,a)},[i,o]);return[o,l]}class Bo{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const Lo=typeof window>"u"||"Deno"in window;function lt(){}function IC(e,t){return typeof e=="function"?e(t):e}function Cu(e){return typeof e=="number"&&e>=0&&e!==1/0}function Wy(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Zr(e,t,n){return Xl(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Zt(e,t,n){return Xl(e)?[{...t,queryKey:e},n]:[e||{},t]}function dh(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:l,stale:s}=e;if(Xl(l)){if(r){if(t.queryHash!==Xc(l,t.options))return!1}else if(!vl(t.queryKey,l))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function hh(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:i}=e;if(Xl(i)){if(!t.options.mutationKey)return!1;if(n){if(Rn(t.options.mutationKey)!==Rn(i))return!1}else if(!vl(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||o&&!o(t))}function Xc(e,t){return((t==null?void 0:t.queryKeyHashFn)||Rn)(e)}function Rn(e){return JSON.stringify(e,(t,n)=>_u(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function vl(e,t){return Qy(e,t)}function Qy(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Qy(e[n],t[n])):!1}function qy(e,t){if(e===t)return e;const n=ph(e)&&ph(t);if(n||_u(e)&&_u(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,l=n?[]:{};let s=0;for(let a=0;a"u")return!0;const n=t.prototype;return!(!mh(n)||!n.hasOwnProperty("isPrototypeOf"))}function mh(e){return Object.prototype.toString.call(e)==="[object Object]"}function Xl(e){return Array.isArray(e)}function Xy(e){return new Promise(t=>{setTimeout(t,e)})}function gh(e){Xy(0).then(e)}function MC(){if(typeof AbortController=="function")return new AbortController}function Pu(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?qy(e,t):t}class AC extends Bo{constructor(){super(),this.setup=t=>{if(!Lo&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const yl=new AC,vh=["online","offline"];class OC extends Bo{constructor(){super(),this.setup=t=>{if(!Lo&&window.addEventListener){const n=()=>t();return vh.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{vh.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const xl=new OC;function FC(e){return Math.min(1e3*2**e,3e4)}function Yl(e){return(e??"online")==="online"?xl.isOnline():!0}class Yy{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function $i(e){return e instanceof Yy}function Zy(e){let t=!1,n=0,r=!1,o,i,l;const s=new Promise((w,y)=>{i=w,l=y}),a=w=>{r||(h(new Yy(w)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},f=()=>!yl.isFocused()||e.networkMode!=="always"&&!xl.isOnline(),d=w=>{r||(r=!0,e.onSuccess==null||e.onSuccess(w),o==null||o(),i(w))},h=w=>{r||(r=!0,e.onError==null||e.onError(w),o==null||o(),l(w))},E=()=>new Promise(w=>{o=y=>{const m=r||!f();return m&&w(y),m},e.onPause==null||e.onPause()}).then(()=>{o=void 0,r||e.onContinue==null||e.onContinue()}),b=()=>{if(r)return;let w;try{w=e.fn()}catch(y){w=Promise.reject(y)}Promise.resolve(w).then(d).catch(y=>{var m,x;if(r)return;const S=(m=e.retry)!=null?m:3,T=(x=e.retryDelay)!=null?x:FC,C=typeof T=="function"?T(n,y):T,_=S===!0||typeof S=="number"&&n{if(f())return E()}).then(()=>{t?h(y):b()})})};return Yl(e.networkMode)?b():E().then(b),{promise:s,cancel:a,continue:()=>(o==null?void 0:o())?s:Promise.resolve(),cancelRetry:u,continueRetry:c}}const Yc=console;function DC(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const o=c=>{let f;t++;try{f=c()}finally{t--,t||s()}return f},i=c=>{t?e.push(c):gh(()=>{n(c)})},l=c=>(...f)=>{i(()=>{c(...f)})},s=()=>{const c=e;e=[],c.length&&gh(()=>{r(()=>{c.forEach(f=>{n(f)})})})};return{batch:o,batchCalls:l,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const ge=DC();class Jy{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Cu(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(Lo?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class jC extends Jy{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||Yc,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||BC(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=Pu(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(lt).catch(lt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Wy(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(E=>E.options.queryFn);h&&this.setOptions(h.options)}const l=MC(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},a=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>{if(l)return this.abortSignalConsumed=!0,l.signal}})};a(s);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(a(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=c.fetchOptions)==null?void 0:o.meta)){var f;this.dispatch({type:"fetch",meta:(f=c.fetchOptions)==null?void 0:f.meta})}const d=h=>{if($i(h)&&h.silent||this.dispatch({type:"error",error:h}),!$i(h)){var E,b,w,y;(E=(b=this.cache.config).onError)==null||E.call(b,h,this),(w=(y=this.cache.config).onSettled)==null||w.call(y,this.state.data,h,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Zy({fn:c.fetchFn,abort:l==null?void 0:l.abort.bind(l),onSuccess:h=>{var E,b,w,y;if(typeof h>"u"){d(new Error(this.queryHash+" data is undefined"));return}this.setData(h),(E=(b=this.cache.config).onSuccess)==null||E.call(b,h,this),(w=(y=this.cache.config).onSettled)==null||w.call(y,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:d,onFail:(h,E)=>{this.dispatch({type:"failed",failureCount:h,error:E})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var o,i;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:Yl(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const l=t.error;return $i(l)&&l.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ge.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function BC(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class HC extends Bo{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var o;const i=n.queryKey,l=(o=n.queryHash)!=null?o:Xc(i,n);let s=this.get(l);return s||(s=new jC({cache:this,logger:t.getLogger(),queryKey:i,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){ge.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=Zt(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(o=>dh(r,o))}findAll(t,n){const[r]=Zt(t,n);return Object.keys(r).length>0?this.queries.filter(o=>dh(r,o)):this.queries}notify(t){ge.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){ge.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ge.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class KC extends Jy{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||Yc,this.observers=[],this.state=t.state||UC(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var _;return this.retryer=Zy({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(v,L)=>{this.dispatch({type:"failed",failureCount:v,error:L})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(_=this.options.retry)!=null?_:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,o,i,l,s,a,u,c;if(!n){var f,d,h,E;this.dispatch({type:"loading",variables:this.options.variables}),await((f=(d=this.mutationCache.config).onMutate)==null?void 0:f.call(d,this.state.variables,this));const v=await((h=(E=this.options).onMutate)==null?void 0:h.call(E,this.state.variables));v!==this.state.context&&this.dispatch({type:"loading",context:v,variables:this.state.variables})}const _=await t();return await((r=(o=this.mutationCache.config).onSuccess)==null?void 0:r.call(o,_,this.state.variables,this.state.context,this)),await((i=(l=this.options).onSuccess)==null?void 0:i.call(l,_,this.state.variables,this.state.context)),await((s=(a=this.mutationCache.config).onSettled)==null?void 0:s.call(a,_,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,_,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:_}),_}catch(_){try{var b,w,y,m,x,S,T,C;throw await((b=(w=this.mutationCache.config).onError)==null?void 0:b.call(w,_,this.state.variables,this.state.context,this)),await((y=(m=this.options).onError)==null?void 0:y.call(m,_,this.state.variables,this.state.context)),await((x=(S=this.mutationCache.config).onSettled)==null?void 0:x.call(S,void 0,_,this.state.variables,this.state.context,this)),await((T=(C=this.options).onSettled)==null?void 0:T.call(C,void 0,_,this.state.variables,this.state.context)),_}finally{this.dispatch({type:"error",error:_})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Yl(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),ge.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function UC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class zC extends Bo{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const o=new KC({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){ge.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>hh(t,n))}findAll(t){return this.mutations.filter(n=>hh(t,n))}notify(t){ge.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return ge.batch(()=>n.reduce((r,o)=>r.then(()=>o.continue().catch(lt)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function VC(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,i,l;const s=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,a=(r=e.fetchOptions)==null||(o=r.meta)==null?void 0:o.fetchMore,u=a==null?void 0:a.pageParam,c=(a==null?void 0:a.direction)==="forward",f=(a==null?void 0:a.direction)==="backward",d=((i=e.state.data)==null?void 0:i.pages)||[],h=((l=e.state.data)==null?void 0:l.pageParams)||[];let E=h,b=!1;const w=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>{var _;if((_=e.signal)!=null&&_.aborted)b=!0;else{var v;(v=e.signal)==null||v.addEventListener("abort",()=>{b=!0})}return e.signal}})},y=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),m=(C,_,v,L)=>(E=L?[_,...E]:[...E,_],L?[v,...C]:[...C,v]),x=(C,_,v,L)=>{if(b)return Promise.reject("Cancelled");if(typeof v>"u"&&!_&&C.length)return Promise.resolve(C);const N={queryKey:e.queryKey,pageParam:v,meta:e.options.meta};w(N);const P=y(N);return Promise.resolve(P).then(k=>m(C,v,k,L))};let S;if(!d.length)S=x([]);else if(c){const C=typeof u<"u",_=C?u:yh(e.options,d);S=x(d,C,_)}else if(f){const C=typeof u<"u",_=C?u:GC(e.options,d);S=x(d,C,_,!0)}else{E=[];const C=typeof e.options.getNextPageParam>"u";S=(s&&d[0]?s(d[0],0,d):!0)?x([],C,h[0]):Promise.resolve(m([],h[0],d[0]));for(let v=1;v{if(s&&d[v]?s(d[v],v,d):!0){const P=C?h[v]:yh(e.options,L);return x(L,C,P)}return Promise.resolve(m(L,h[v],d[v]))})}return S.then(C=>({pages:C,pageParams:E}))}}}}function yh(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function GC(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class WC{constructor(t={}){this.queryCache=t.queryCache||new HC,this.mutationCache=t.mutationCache||new zC,this.logger=t.logger||Yc,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=yl.subscribe(()=>{yl.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=xl.subscribe(()=>{xl.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=Zt(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const o=Zr(t,n,r),i=this.getQueryData(o.queryKey);return i?Promise.resolve(i):this.fetchQuery(o)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const o=r.data;return[n,o]})}setQueryData(t,n,r){const o=this.queryCache.find(t),i=o==null?void 0:o.state.data,l=IC(n,i);if(typeof l>"u")return;const s=Zr(t),a=this.defaultQueryOptions(s);return this.queryCache.build(this,a).setData(l,{...r,manual:!0})}setQueriesData(t,n,r){return ge.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=Zt(t,n),o=this.queryCache;ge.batch(()=>{o.findAll(r).forEach(i=>{o.remove(i)})})}resetQueries(t,n,r){const[o,i]=Zt(t,n,r),l=this.queryCache,s={type:"active",...o};return ge.batch(()=>(l.findAll(o).forEach(a=>{a.reset()}),this.refetchQueries(s,i)))}cancelQueries(t,n,r){const[o,i={}]=Zt(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const l=ge.batch(()=>this.queryCache.findAll(o).map(s=>s.cancel(i)));return Promise.all(l).then(lt).catch(lt)}invalidateQueries(t,n,r){const[o,i]=Zt(t,n,r);return ge.batch(()=>{var l,s;if(this.queryCache.findAll(o).forEach(u=>{u.invalidate()}),o.refetchType==="none")return Promise.resolve();const a={...o,type:(l=(s=o.refetchType)!=null?s:o.type)!=null?l:"active"};return this.refetchQueries(a,i)})}refetchQueries(t,n,r){const[o,i]=Zt(t,n,r),l=ge.batch(()=>this.queryCache.findAll(o).filter(a=>!a.isDisabled()).map(a=>{var u;return a.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:o.refetchPage}})}));let s=Promise.all(l).then(lt);return i!=null&&i.throwOnError||(s=s.catch(lt)),s}fetchQuery(t,n,r){const o=Zr(t,n,r),i=this.defaultQueryOptions(o);typeof i.retry>"u"&&(i.retry=!1);const l=this.queryCache.build(this,i);return l.isStaleByTime(i.staleTime)?l.fetch(i):Promise.resolve(l.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(lt).catch(lt)}fetchInfiniteQuery(t,n,r){const o=Zr(t,n,r);return o.behavior=VC(),this.fetchQuery(o)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(lt).catch(lt)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(o=>Rn(t)===Rn(o.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>vl(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(o=>Rn(t)===Rn(o.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>vl(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=Xc(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class QC extends Bo{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),xh(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Nu(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Nu(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Tu(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const i=this.hasListeners();i&&Eh(this.currentQuery,o,this.options,r)&&this.executeFetch(),this.updateResult(n),i&&(this.currentQuery!==o||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const l=this.computeRefetchInterval();i&&(this.currentQuery!==o||this.options.enabled!==r.enabled||l!==this.currentRefetchInterval)&&this.updateRefetchInterval(l)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return XC(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(lt)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),Lo||this.currentResult.isStale||!Cu(this.options.staleTime))return;const n=Wy(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(Lo||this.options.enabled===!1||!Cu(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||yl.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,o=this.options,i=this.currentResult,l=this.currentResultState,s=this.currentResultOptions,a=t!==r,u=a?t.state:this.currentQueryInitialState,c=a?this.currentResult:this.previousQueryResult,{state:f}=t;let{dataUpdatedAt:d,error:h,errorUpdatedAt:E,fetchStatus:b,status:w}=f,y=!1,m=!1,x;if(n._optimisticResults){const v=this.hasListeners(),L=!v&&xh(t,n),N=v&&Eh(t,r,n,o);(L||N)&&(b=Yl(t.options.networkMode)?"fetching":"paused",d||(w="loading")),n._optimisticResults==="isRestoring"&&(b="idle")}if(n.keepPreviousData&&!f.dataUpdatedAt&&c!=null&&c.isSuccess&&w!=="error")x=c.data,d=c.dataUpdatedAt,w=c.status,y=!0;else if(n.select&&typeof f.data<"u")if(i&&f.data===(l==null?void 0:l.data)&&n.select===this.selectFn)x=this.selectResult;else try{this.selectFn=n.select,x=n.select(f.data),x=Pu(i==null?void 0:i.data,x,n),this.selectResult=x,this.selectError=null}catch(v){this.selectError=v}else x=f.data;if(typeof n.placeholderData<"u"&&typeof x>"u"&&w==="loading"){let v;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))v=i.data;else if(v=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof v<"u")try{v=n.select(v),this.selectError=null}catch(L){this.selectError=L}typeof v<"u"&&(w="success",x=Pu(i==null?void 0:i.data,v,n),m=!0)}this.selectError&&(h=this.selectError,x=this.selectResult,E=Date.now(),w="error");const S=b==="fetching",T=w==="loading",C=w==="error";return{status:w,fetchStatus:b,isLoading:T,isSuccess:w==="success",isError:C,isInitialLoading:T&&S,data:x,dataUpdatedAt:d,error:h,errorUpdatedAt:E,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!T,isLoadingError:C&&f.dataUpdatedAt===0,isPaused:b==="paused",isPlaceholderData:m,isPreviousData:y,isRefetchError:C&&f.dataUpdatedAt!==0,isStale:Zc(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Tu(r,n))return;this.currentResult=r;const o={cache:!0},i=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,s=typeof l=="function"?l():l;if(s==="all"||!s&&!this.trackedProps.size)return!0;const a=new Set(s??this.trackedProps);return this.options.useErrorBoundary&&a.add("error"),Object.keys(this.currentResult).some(u=>{const c=u;return this.currentResult[c]!==n[c]&&a.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),this.notify({...o,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!$i(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){ge.batch(()=>{if(t.onSuccess){var n,r,o,i;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(o=(i=this.options).onSettled)==null||o.call(i,this.currentResult.data,null)}else if(t.onError){var l,s,a,u;(l=(s=this.options).onError)==null||l.call(s,this.currentResult.error),(a=(u=this.options).onSettled)==null||a.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function qC(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function xh(e,t){return qC(e,t)||e.state.dataUpdatedAt>0&&Nu(e,t,t.refetchOnMount)}function Nu(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Zc(e,t)}return!1}function Eh(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Zc(e,n)}function Zc(e,t){return e.isStaleByTime(t.staleTime)}function XC(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!Tu(e.getCurrentResult(),t)}var e0={exports:{}},t0={};/** + */function Su(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function RC(e,t){let n=Su(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}const LC="6";try{window.__reactRouterVersion=LC}catch{}const $C="startTransition",uh=t1[$C];function IC(e){let{basename:t,children:n,future:r,window:o}=e,i=p.useRef();i.current==null&&(i.current=OS({window:o,v5Compat:!0}));let l=i.current,[s,a]=p.useState({action:l.action,location:l.location}),{v7_startTransition:u}=r||{},c=p.useCallback(d=>{u&&uh?uh(()=>a(d)):a(d)},[a,u]);return p.useLayoutEffect(()=>l.listen(c),[l,c]),p.createElement(NC,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:l,future:r})}var ch;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(ch||(ch={}));var fh;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(fh||(fh={}));function MC(e){let t=p.useRef(Su(e)),n=p.useRef(!1),r=Yl(),o=p.useMemo(()=>RC(r.search,n.current?null:t.current),[r.search]),i=cC(),l=p.useCallback((s,a)=>{const u=Su(typeof s=="function"?s(o):s);n.current=!0,i("?"+u,a)},[i,o]);return[o,l]}class Ho{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const n={listener:t};return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const $o=typeof window>"u"||"Deno"in window;function lt(){}function AC(e,t){return typeof e=="function"?e(t):e}function Cu(e){return typeof e=="number"&&e>=0&&e!==1/0}function Wy(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Jr(e,t,n){return Zl(e)?typeof t=="function"?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Zt(e,t,n){return Zl(e)?[{...t,queryKey:e},n]:[e||{},t]}function dh(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:l,stale:s}=e;if(Zl(l)){if(r){if(t.queryHash!==Xc(l,t.options))return!1}else if(!xl(t.queryKey,l))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof o<"u"&&o!==t.state.fetchStatus||i&&!i(t))}function hh(e,t){const{exact:n,fetching:r,predicate:o,mutationKey:i}=e;if(Zl(i)){if(!t.options.mutationKey)return!1;if(n){if(Rn(t.options.mutationKey)!==Rn(i))return!1}else if(!xl(t.options.mutationKey,i))return!1}return!(typeof r=="boolean"&&t.state.status==="loading"!==r||o&&!o(t))}function Xc(e,t){return((t==null?void 0:t.queryKeyHashFn)||Rn)(e)}function Rn(e){return JSON.stringify(e,(t,n)=>_u(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function xl(e,t){return Qy(e,t)}function Qy(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Qy(e[n],t[n])):!1}function qy(e,t){if(e===t)return e;const n=ph(e)&&ph(t);if(n||_u(e)&&_u(t)){const r=n?e.length:Object.keys(e).length,o=n?t:Object.keys(t),i=o.length,l=n?[]:{};let s=0;for(let a=0;a"u")return!0;const n=t.prototype;return!(!mh(n)||!n.hasOwnProperty("isPrototypeOf"))}function mh(e){return Object.prototype.toString.call(e)==="[object Object]"}function Zl(e){return Array.isArray(e)}function Xy(e){return new Promise(t=>{setTimeout(t,e)})}function gh(e){Xy(0).then(e)}function OC(){if(typeof AbortController=="function")return new AbortController}function Pu(e,t,n){return n.isDataEqual!=null&&n.isDataEqual(e,t)?e:typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?qy(e,t):t}class FC extends Ho{constructor(){super(),this.setup=t=>{if(!$o&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),()=>{window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const El=new FC,vh=["online","offline"];class DC extends Ho{constructor(){super(),this.setup=t=>{if(!$o&&window.addEventListener){const n=()=>t();return vh.forEach(r=>{window.addEventListener(r,n,!1)}),()=>{vh.forEach(r=>{window.removeEventListener(r,n)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var n;this.setup=t,(n=this.cleanup)==null||n.call(this),this.cleanup=t(r=>{typeof r=="boolean"?this.setOnline(r):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const bl=new DC;function jC(e){return Math.min(1e3*2**e,3e4)}function Jl(e){return(e??"online")==="online"?bl.isOnline():!0}class Yy{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Ii(e){return e instanceof Yy}function Zy(e){let t=!1,n=0,r=!1,o,i,l;const s=new Promise((w,y)=>{i=w,l=y}),a=w=>{r||(h(new Yy(w)),e.abort==null||e.abort())},u=()=>{t=!0},c=()=>{t=!1},d=()=>!El.isFocused()||e.networkMode!=="always"&&!bl.isOnline(),f=w=>{r||(r=!0,e.onSuccess==null||e.onSuccess(w),o==null||o(),i(w))},h=w=>{r||(r=!0,e.onError==null||e.onError(w),o==null||o(),l(w))},E=()=>new Promise(w=>{o=y=>{const m=r||!d();return m&&w(y),m},e.onPause==null||e.onPause()}).then(()=>{o=void 0,r||e.onContinue==null||e.onContinue()}),b=()=>{if(r)return;let w;try{w=e.fn()}catch(y){w=Promise.reject(y)}Promise.resolve(w).then(f).catch(y=>{var m,x;if(r)return;const S=(m=e.retry)!=null?m:3,T=(x=e.retryDelay)!=null?x:jC,C=typeof T=="function"?T(n,y):T,_=S===!0||typeof S=="number"&&n{if(d())return E()}).then(()=>{t?h(y):b()})})};return Jl(e.networkMode)?b():E().then(b),{promise:s,cancel:a,continue:()=>(o==null?void 0:o())?s:Promise.resolve(),cancelRetry:u,continueRetry:c}}const Yc=console;function BC(){let e=[],t=0,n=c=>{c()},r=c=>{c()};const o=c=>{let d;t++;try{d=c()}finally{t--,t||s()}return d},i=c=>{t?e.push(c):gh(()=>{n(c)})},l=c=>(...d)=>{i(()=>{c(...d)})},s=()=>{const c=e;e=[],c.length&&gh(()=>{r(()=>{c.forEach(d=>{n(d)})})})};return{batch:o,batchCalls:l,schedule:i,setNotifyFunction:c=>{n=c},setBatchNotifyFunction:c=>{r=c}}}const ve=BC();class Jy{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Cu(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??($o?1/0:5*60*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class HC extends Jy{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||Yc,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||KC(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,n){const r=Pu(this.state.data,t,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){this.dispatch({type:"setState",state:t,setStateOptions:n})}cancel(t){var n;const r=this.promise;return(n=this.retryer)==null||n.cancel(t),r?r.then(lt).catch(lt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Wy(this.state.dataUpdatedAt,t)}onFocus(){var t;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n&&n.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,n){var r,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&n!=null&&n.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(E=>E.options.queryFn);h&&this.setOptions(h.options)}const l=OC(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},a=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>{if(l)return this.abortSignalConsumed=!0,l.signal}})};a(s);const u=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),c={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};if(a(c),(r=this.options.behavior)==null||r.onFetch(c),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=c.fetchOptions)==null?void 0:o.meta)){var d;this.dispatch({type:"fetch",meta:(d=c.fetchOptions)==null?void 0:d.meta})}const f=h=>{if(Ii(h)&&h.silent||this.dispatch({type:"error",error:h}),!Ii(h)){var E,b,w,y;(E=(b=this.cache.config).onError)==null||E.call(b,h,this),(w=(y=this.cache.config).onSettled)==null||w.call(y,this.state.data,h,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=Zy({fn:c.fetchFn,abort:l==null?void 0:l.abort.bind(l),onSuccess:h=>{var E,b,w,y;if(typeof h>"u"){f(new Error(this.queryHash+" data is undefined"));return}this.setData(h),(E=(b=this.cache.config).onSuccess)==null||E.call(b,h,this),(w=(y=this.cache.config).onSettled)==null||w.call(y,h,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:f,onFail:(h,E)=>{this.dispatch({type:"failed",failureCount:h,error:E})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const n=r=>{var o,i;switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:Jl(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const l=t.error;return Ii(l)&&l.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),ve.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function KC(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=typeof t<"u",r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}class UC extends Ho{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,n,r){var o;const i=n.queryKey,l=(o=n.queryHash)!=null?o:Xc(i,n);let s=this.get(l);return s||(s=new HC({cache:this,logger:t.getLogger(),queryKey:i,queryHash:l,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const n=this.queriesMap[t.queryHash];n&&(t.destroy(),this.queries=this.queries.filter(r=>r!==t),n===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){ve.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,n){const[r]=Zt(t,n);return typeof r.exact>"u"&&(r.exact=!0),this.queries.find(o=>dh(r,o))}findAll(t,n){const[r]=Zt(t,n);return Object.keys(r).length>0?this.queries.filter(o=>dh(r,o)):this.queries}notify(t){ve.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}onFocus(){ve.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){ve.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class zC extends Jy{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||Yc,this.observers=[],this.state=t.state||VC(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(n=>n!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,n;return(t=(n=this.retryer)==null?void 0:n.continue())!=null?t:this.execute()}async execute(){const t=()=>{var _;return this.retryer=Zy({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(v,L)=>{this.dispatch({type:"failed",failureCount:v,error:L})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(_=this.options.retry)!=null?_:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},n=this.state.status==="loading";try{var r,o,i,l,s,a,u,c;if(!n){var d,f,h,E;this.dispatch({type:"loading",variables:this.options.variables}),await((d=(f=this.mutationCache.config).onMutate)==null?void 0:d.call(f,this.state.variables,this));const v=await((h=(E=this.options).onMutate)==null?void 0:h.call(E,this.state.variables));v!==this.state.context&&this.dispatch({type:"loading",context:v,variables:this.state.variables})}const _=await t();return await((r=(o=this.mutationCache.config).onSuccess)==null?void 0:r.call(o,_,this.state.variables,this.state.context,this)),await((i=(l=this.options).onSuccess)==null?void 0:i.call(l,_,this.state.variables,this.state.context)),await((s=(a=this.mutationCache.config).onSettled)==null?void 0:s.call(a,_,null,this.state.variables,this.state.context,this)),await((u=(c=this.options).onSettled)==null?void 0:u.call(c,_,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:_}),_}catch(_){try{var b,w,y,m,x,S,T,C;throw await((b=(w=this.mutationCache.config).onError)==null?void 0:b.call(w,_,this.state.variables,this.state.context,this)),await((y=(m=this.options).onError)==null?void 0:y.call(m,_,this.state.variables,this.state.context)),await((x=(S=this.mutationCache.config).onSettled)==null?void 0:x.call(S,void 0,_,this.state.variables,this.state.context,this)),await((T=(C=this.options).onSettled)==null?void 0:T.call(C,void 0,_,this.state.variables,this.state.context)),_}finally{this.dispatch({type:"error",error:_})}}}dispatch(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"loading":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Jl(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...r,...t.state}}};this.state=n(this.state),ve.batch(()=>{this.observers.forEach(r=>{r.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function VC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class GC extends Ho{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,n,r){const o=new zC({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(n),state:r,defaultOptions:n.mutationKey?t.getMutationDefaults(n.mutationKey):void 0});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(n=>n!==t),this.notify({type:"removed",mutation:t})}clear(){ve.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(n=>hh(t,n))}findAll(t){return this.mutations.filter(n=>hh(t,n))}notify(t){ve.batch(()=>{this.listeners.forEach(({listener:n})=>{n(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const n=this.mutations.filter(r=>r.state.isPaused);return ve.batch(()=>n.reduce((r,o)=>r.then(()=>o.continue().catch(lt)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function WC(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,o,i,l;const s=(t=e.fetchOptions)==null||(n=t.meta)==null?void 0:n.refetchPage,a=(r=e.fetchOptions)==null||(o=r.meta)==null?void 0:o.fetchMore,u=a==null?void 0:a.pageParam,c=(a==null?void 0:a.direction)==="forward",d=(a==null?void 0:a.direction)==="backward",f=((i=e.state.data)==null?void 0:i.pages)||[],h=((l=e.state.data)==null?void 0:l.pageParams)||[];let E=h,b=!1;const w=C=>{Object.defineProperty(C,"signal",{enumerable:!0,get:()=>{var _;if((_=e.signal)!=null&&_.aborted)b=!0;else{var v;(v=e.signal)==null||v.addEventListener("abort",()=>{b=!0})}return e.signal}})},y=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),m=(C,_,v,L)=>(E=L?[_,...E]:[...E,_],L?[v,...C]:[...C,v]),x=(C,_,v,L)=>{if(b)return Promise.reject("Cancelled");if(typeof v>"u"&&!_&&C.length)return Promise.resolve(C);const N={queryKey:e.queryKey,pageParam:v,meta:e.options.meta};w(N);const P=y(N);return Promise.resolve(P).then(k=>m(C,v,k,L))};let S;if(!f.length)S=x([]);else if(c){const C=typeof u<"u",_=C?u:yh(e.options,f);S=x(f,C,_)}else if(d){const C=typeof u<"u",_=C?u:QC(e.options,f);S=x(f,C,_,!0)}else{E=[];const C=typeof e.options.getNextPageParam>"u";S=(s&&f[0]?s(f[0],0,f):!0)?x([],C,h[0]):Promise.resolve(m([],h[0],f[0]));for(let v=1;v{if(s&&f[v]?s(f[v],v,f):!0){const P=C?h[v]:yh(e.options,L);return x(L,C,P)}return Promise.resolve(m(L,h[v],f[v]))})}return S.then(C=>({pages:C,pageParams:E}))}}}}function yh(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function QC(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class qC{constructor(t={}){this.queryCache=t.queryCache||new UC,this.mutationCache=t.mutationCache||new GC,this.logger=t.logger||Yc,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=El.subscribe(()=>{El.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=bl.subscribe(()=>{bl.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,n;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(n=this.unsubscribeOnline)==null||n.call(this),this.unsubscribeOnline=void 0)}isFetching(t,n){const[r]=Zt(t,n);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state.data}ensureQueryData(t,n,r){const o=Jr(t,n,r),i=this.getQueryData(o.queryKey);return i?Promise.resolve(i):this.fetchQuery(o)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:n,state:r})=>{const o=r.data;return[n,o]})}setQueryData(t,n,r){const o=this.queryCache.find(t),i=o==null?void 0:o.state.data,l=AC(n,i);if(typeof l>"u")return;const s=Jr(t),a=this.defaultQueryOptions(s);return this.queryCache.build(this,a).setData(l,{...r,manual:!0})}setQueriesData(t,n,r){return ve.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,n,r)]))}getQueryState(t,n){var r;return(r=this.queryCache.find(t,n))==null?void 0:r.state}removeQueries(t,n){const[r]=Zt(t,n),o=this.queryCache;ve.batch(()=>{o.findAll(r).forEach(i=>{o.remove(i)})})}resetQueries(t,n,r){const[o,i]=Zt(t,n,r),l=this.queryCache,s={type:"active",...o};return ve.batch(()=>(l.findAll(o).forEach(a=>{a.reset()}),this.refetchQueries(s,i)))}cancelQueries(t,n,r){const[o,i={}]=Zt(t,n,r);typeof i.revert>"u"&&(i.revert=!0);const l=ve.batch(()=>this.queryCache.findAll(o).map(s=>s.cancel(i)));return Promise.all(l).then(lt).catch(lt)}invalidateQueries(t,n,r){const[o,i]=Zt(t,n,r);return ve.batch(()=>{var l,s;if(this.queryCache.findAll(o).forEach(u=>{u.invalidate()}),o.refetchType==="none")return Promise.resolve();const a={...o,type:(l=(s=o.refetchType)!=null?s:o.type)!=null?l:"active"};return this.refetchQueries(a,i)})}refetchQueries(t,n,r){const[o,i]=Zt(t,n,r),l=ve.batch(()=>this.queryCache.findAll(o).filter(a=>!a.isDisabled()).map(a=>{var u;return a.fetch(void 0,{...i,cancelRefetch:(u=i==null?void 0:i.cancelRefetch)!=null?u:!0,meta:{refetchPage:o.refetchPage}})}));let s=Promise.all(l).then(lt);return i!=null&&i.throwOnError||(s=s.catch(lt)),s}fetchQuery(t,n,r){const o=Jr(t,n,r),i=this.defaultQueryOptions(o);typeof i.retry>"u"&&(i.retry=!1);const l=this.queryCache.build(this,i);return l.isStaleByTime(i.staleTime)?l.fetch(i):Promise.resolve(l.state.data)}prefetchQuery(t,n,r){return this.fetchQuery(t,n,r).then(lt).catch(lt)}fetchInfiniteQuery(t,n,r){const o=Jr(t,n,r);return o.behavior=WC(),this.fetchQuery(o)}prefetchInfiniteQuery(t,n,r){return this.fetchInfiniteQuery(t,n,r).then(lt).catch(lt)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,n){const r=this.queryDefaults.find(o=>Rn(t)===Rn(o.queryKey));r?r.defaultOptions=n:this.queryDefaults.push({queryKey:t,defaultOptions:n})}getQueryDefaults(t){if(!t)return;const n=this.queryDefaults.find(r=>xl(t,r.queryKey));return n==null?void 0:n.defaultOptions}setMutationDefaults(t,n){const r=this.mutationDefaults.find(o=>Rn(t)===Rn(o.mutationKey));r?r.defaultOptions=n:this.mutationDefaults.push({mutationKey:t,defaultOptions:n})}getMutationDefaults(t){if(!t)return;const n=this.mutationDefaults.find(r=>xl(t,r.mutationKey));return n==null?void 0:n.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const n={...this.defaultOptions.queries,...this.getQueryDefaults(t==null?void 0:t.queryKey),...t,_defaulted:!0};return!n.queryHash&&n.queryKey&&(n.queryHash=Xc(n.queryKey,n)),typeof n.refetchOnReconnect>"u"&&(n.refetchOnReconnect=n.networkMode!=="always"),typeof n.useErrorBoundary>"u"&&(n.useErrorBoundary=!!n.suspense),n}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t==null?void 0:t.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class XC extends Ho{constructor(t,n){super(),this.client=t,this.options=n,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(n)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),xh(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Nu(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Nu(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,n){const r=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),Tu(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const i=this.hasListeners();i&&Eh(this.currentQuery,o,this.options,r)&&this.executeFetch(),this.updateResult(n),i&&(this.currentQuery!==o||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&this.updateStaleTimeout();const l=this.computeRefetchInterval();i&&(this.currentQuery!==o||this.options.enabled!==r.enabled||l!==this.currentRefetchInterval)&&this.updateRefetchInterval(l)}getOptimisticResult(t){const n=this.client.getQueryCache().build(this.client,t),r=this.createResult(n,t);return ZC(this,r,t)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),t[r])})}),n}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...n}={}){return this.fetch({...n,meta:{refetchPage:t}})}fetchOptimistic(t){const n=this.client.defaultQueryOptions(t),r=this.client.getQueryCache().build(this.client,n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){var n;return this.executeFetch({...t,cancelRefetch:(n=t.cancelRefetch)!=null?n:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let n=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(lt)),n}updateStaleTimeout(){if(this.clearStaleTimeout(),$o||this.currentResult.isStale||!Cu(this.options.staleTime))return;const n=Wy(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},n)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!($o||this.options.enabled===!1||!Cu(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||El.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,n){const r=this.currentQuery,o=this.options,i=this.currentResult,l=this.currentResultState,s=this.currentResultOptions,a=t!==r,u=a?t.state:this.currentQueryInitialState,c=a?this.currentResult:this.previousQueryResult,{state:d}=t;let{dataUpdatedAt:f,error:h,errorUpdatedAt:E,fetchStatus:b,status:w}=d,y=!1,m=!1,x;if(n._optimisticResults){const v=this.hasListeners(),L=!v&&xh(t,n),N=v&&Eh(t,r,n,o);(L||N)&&(b=Jl(t.options.networkMode)?"fetching":"paused",f||(w="loading")),n._optimisticResults==="isRestoring"&&(b="idle")}if(n.keepPreviousData&&!d.dataUpdatedAt&&c!=null&&c.isSuccess&&w!=="error")x=c.data,f=c.dataUpdatedAt,w=c.status,y=!0;else if(n.select&&typeof d.data<"u")if(i&&d.data===(l==null?void 0:l.data)&&n.select===this.selectFn)x=this.selectResult;else try{this.selectFn=n.select,x=n.select(d.data),x=Pu(i==null?void 0:i.data,x,n),this.selectResult=x,this.selectError=null}catch(v){this.selectError=v}else x=d.data;if(typeof n.placeholderData<"u"&&typeof x>"u"&&w==="loading"){let v;if(i!=null&&i.isPlaceholderData&&n.placeholderData===(s==null?void 0:s.placeholderData))v=i.data;else if(v=typeof n.placeholderData=="function"?n.placeholderData():n.placeholderData,n.select&&typeof v<"u")try{v=n.select(v),this.selectError=null}catch(L){this.selectError=L}typeof v<"u"&&(w="success",x=Pu(i==null?void 0:i.data,v,n),m=!0)}this.selectError&&(h=this.selectError,x=this.selectResult,E=Date.now(),w="error");const S=b==="fetching",T=w==="loading",C=w==="error";return{status:w,fetchStatus:b,isLoading:T,isSuccess:w==="success",isError:C,isInitialLoading:T&&S,data:x,dataUpdatedAt:f,error:h,errorUpdatedAt:E,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>u.dataUpdateCount||d.errorUpdateCount>u.errorUpdateCount,isFetching:S,isRefetching:S&&!T,isLoadingError:C&&d.dataUpdatedAt===0,isPaused:b==="paused",isPlaceholderData:m,isPreviousData:y,isRefetchError:C&&d.dataUpdatedAt!==0,isStale:Zc(t,n),refetch:this.refetch,remove:this.remove}}updateResult(t){const n=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,Tu(r,n))return;this.currentResult=r;const o={cache:!0},i=()=>{if(!n)return!0;const{notifyOnChangeProps:l}=this.options,s=typeof l=="function"?l():l;if(s==="all"||!s&&!this.trackedProps.size)return!0;const a=new Set(s??this.trackedProps);return this.options.useErrorBoundary&&a.add("error"),Object.keys(this.currentResult).some(u=>{const c=u;return this.currentResult[c]!==n[c]&&a.has(c)})};(t==null?void 0:t.listeners)!==!1&&i()&&(o.listeners=!0),this.notify({...o,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const n=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const n={};t.type==="success"?n.onSuccess=!t.manual:t.type==="error"&&!Ii(t.error)&&(n.onError=!0),this.updateResult(n),this.hasListeners()&&this.updateTimers()}notify(t){ve.batch(()=>{if(t.onSuccess){var n,r,o,i;(n=(r=this.options).onSuccess)==null||n.call(r,this.currentResult.data),(o=(i=this.options).onSettled)==null||o.call(i,this.currentResult.data,null)}else if(t.onError){var l,s,a,u;(l=(s=this.options).onError)==null||l.call(s,this.currentResult.error),(a=(u=this.options).onSettled)==null||a.call(u,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:c})=>{c(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function YC(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function xh(e,t){return YC(e,t)||e.state.dataUpdatedAt>0&&Nu(e,t,t.refetchOnMount)}function Nu(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Zc(e,t)}return!1}function Eh(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&Zc(e,n)}function Zc(e,t){return e.isStaleByTime(t.staleTime)}function ZC(e,t,n){return n.keepPreviousData?!1:n.placeholderData!==void 0?t.isPlaceholderData:!Tu(e.getCurrentResult(),t)}var e0={exports:{}},t0={};/** * @license React * use-sync-external-store-shim.production.min.js * @@ -76,32 +76,32 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Pr=p;function YC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ZC=typeof Object.is=="function"?Object.is:YC,JC=Pr.useState,eT=Pr.useEffect,tT=Pr.useLayoutEffect,nT=Pr.useDebugValue;function rT(e,t){var n=t(),r=JC({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return tT(function(){o.value=n,o.getSnapshot=t,ia(o)&&i({inst:o})},[e,n,t]),eT(function(){return ia(o)&&i({inst:o}),e(function(){ia(o)&&i({inst:o})})},[e]),nT(n),n}function ia(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ZC(e,n)}catch{return!0}}function oT(e,t){return t()}var iT=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?oT:rT;t0.useSyncExternalStore=Pr.useSyncExternalStore!==void 0?Pr.useSyncExternalStore:iT;e0.exports=t0;var lT=e0.exports;const sT=lT.useSyncExternalStore,bh=p.createContext(void 0),n0=p.createContext(!1);function r0(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=bh),window.ReactQueryClientContext):bh)}const aT=({context:e}={})=>{const t=p.useContext(r0(e,p.useContext(n0)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},uT=({client:e,children:t,context:n,contextSharing:r=!1})=>{p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=r0(n,r);return p.createElement(n0.Provider,{value:!n&&r},p.createElement(o.Provider,{value:e},t))},o0=p.createContext(!1),cT=()=>p.useContext(o0);o0.Provider;function fT(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const dT=p.createContext(fT()),hT=()=>p.useContext(dT);function pT(e,t){return typeof e=="function"?e(...t):!!e}const mT=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},gT=e=>{p.useEffect(()=>{e.clearReset()},[e])},vT=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&pT(n,[e.error,r]),yT=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},xT=(e,t)=>e.isLoading&&e.isFetching&&!t,ET=(e,t,n)=>(e==null?void 0:e.suspense)&&xT(t,n),bT=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function wT(e,t){const n=aT({context:e.context}),r=cT(),o=hT(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=ge.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=ge.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=ge.batchCalls(i.onSettled)),yT(i),mT(i,o),gT(o);const[l]=p.useState(()=>new t(n,i)),s=l.getOptimisticResult(i);if(sT(p.useCallback(a=>{const u=r?()=>{}:l.subscribe(ge.batchCalls(a));return l.updateResult(),u},[l,r]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),p.useEffect(()=>{l.setOptions(i,{listeners:!1})},[i,l]),ET(i,s,r))throw bT(i,l,o);if(vT({result:s,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:l.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:l.trackResult(s)}function ST(e,t,n){const r=Zr(e,t,n);return wT(r,QC)}const CT=function(){return null},{VITE_APP_NAME:TT,VITE_HEADER_TAG:_T,VITE_MINISTER_NAME:PT}={VITE_MINISTER_NAME:"Ministère|de l'enseignement|supérieur|et de la recherche",VITE_APP_NAME:"AFFILIATION MATCHER",VITE_HEADER_TAG:"",VITE_API_URL:"",VITE_VERSION:"1.0.0",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function NT(){const{pathname:e}=ql();return g.jsxs(TS,{children:[g.jsx(Vl,{splitCharacter:"|",text:PT}),g.jsx(Ly,{name:TT,tagline:_T}),g.jsx(My,{children:g.jsx(Se,{current:e==="/",href:"/",children:"Home"})})]})}function kT({children:e}){return g.jsx("div",{className:"fr-footer__top",children:e})}function RT({children:e,fluid:t=!1}){return g.jsx("footer",{className:"fr-footer fr-mt-3w",role:"contentinfo",id:"footer",children:g.jsx(xe,{fluid:t,children:e})})}function LT({children:e,copy:t}){const n=q.Children.toArray(e);return g.jsxs("div",{className:"fr-container fr-footer__bottom",children:[g.jsx("ul",{className:"fr-footer__bottom-list",children:n.map((r,o)=>g.jsx("li",{className:"fr-footer__bottom-item",children:r},o))}),t?g.jsx("div",{className:"fr-footer__bottom-copy",children:g.jsx("p",{children:t})}):null]})}function $T({children:e,description:t}){var o;const n=q.Children.toArray(e).filter(i=>q.isValidElement(i)&&i.type===Se),r=(o=q.Children.toArray(e).filter(i=>q.isValidElement(i)&&i.type===Vl))==null?void 0:o[0];return g.jsxs("div",{className:"fr-container fr-footer__body",children:[r?g.jsx("div",{className:"fr-footer__brand fr-enlarge-link",children:r}):null,g.jsxs("div",{className:"fr-footer__content",children:[t?g.jsx("p",{className:"fr-footer__content-desc",children:t}):null,n.length?g.jsx("ul",{className:"fr-footer__content-list",children:n.map((i,l)=>g.jsx("li",{className:"fr-footer__content-item",children:i},l))}):null]})]})}function IT(){return g.jsx(g.Fragment,{children:g.jsx("dialog",{id:"fr-theme-modal",className:"fr-modal",role:"dialog","aria-labelledby":"fr-theme-modal-title",children:g.jsx("div",{className:"fr-container fr-container--fluid fr-container-md",children:g.jsx("div",{className:"fr-grid-row fr-grid-row--center",children:g.jsx("div",{className:"fr-col-12 fr-col-md-6 fr-col-lg-4",children:g.jsxs("div",{className:"fr-modal__body",children:[g.jsx("div",{className:"fr-modal__header",children:g.jsx("button",{className:"fr-btn--close fr-btn","aria-controls":"fr-theme-modal",id:"button-5622",title:"Fermer",children:"Fermer"})}),g.jsxs("div",{className:"fr-modal__content",children:[g.jsx("h1",{id:"fr-theme-modal-title",className:"fr-modal__title",children:"Titre"}),g.jsx("div",{id:"fr-display",className:"fr-display",children:g.jsxs("fieldset",{className:"fr-fieldset",id:"display-fieldset",children:[g.jsx("legend",{className:"fr-fieldset__legend--regular fr-fieldset__legend",id:"display-fieldset-legend",children:"Legende"}),g.jsx("div",{className:"fr-fieldset__element",children:g.jsxs("div",{className:"fr-radio-group fr-radio-rich",children:[g.jsx("input",{value:"light",type:"radio",id:"fr-radios-theme-light",name:"fr-radios-theme"}),g.jsx("label",{className:"fr-label",htmlFor:"fr-radios-theme-light",children:"light"}),g.jsx("div",{className:"fr-radio-rich__img",children:g.jsxs("svg",{"aria-hidden":"true",className:"fr-artwork",viewBox:"0 0 80 80",width:"80px",height:"80px",children:[g.jsx("use",{className:"fr-artwork-decorative",href:"/artwork/pictograms/environment/sun.svg#artwork-decorative"}),g.jsx("use",{className:"fr-artwork-minor",href:"/artwork/pictograms/environment/sun.svg#artwork-minor"}),g.jsx("use",{className:"fr-artwork-major",href:"/artwork/pictograms/environment/sun.svg#artwork-major"})]})})]})}),g.jsx("div",{className:"fr-fieldset__element",children:g.jsxs("div",{className:"fr-radio-group fr-radio-rich",children:[g.jsx("input",{value:"dark",type:"radio",id:"fr-radios-theme-dark",name:"fr-radios-theme"}),g.jsx("label",{className:"fr-label",htmlFor:"fr-radios-theme-dark",children:"Dark"}),g.jsx("div",{className:"fr-radio-rich__img",children:g.jsxs("svg",{"aria-hidden":"true",className:"fr-artwork",viewBox:"0 0 80 80",width:"80px",height:"80px",children:[g.jsx("use",{className:"fr-artwork-decorative",href:"/artwork/pictograms/environment/moon.svg#artwork-decorative"}),g.jsx("use",{className:"fr-artwork-minor",href:"/artwork/pictograms/environment/moon.svg#artwork-minor"}),g.jsx("use",{className:"fr-artwork-major",href:"/artwork/pictograms/environment/moon.svg#artwork-major"})]})})]})}),g.jsx("div",{className:"fr-fieldset__element",children:g.jsxs("div",{className:"fr-radio-group fr-radio-rich",children:[g.jsx("input",{value:"system",type:"radio",id:"fr-radios-theme-system",name:"fr-radios-theme"}),g.jsxs("label",{className:"fr-label",htmlFor:"fr-radios-theme-system",children:["System",g.jsx("span",{className:"fr-hint-text",children:"Syten"})]}),g.jsx("div",{className:"fr-radio-rich__img",children:g.jsxs("svg",{"aria-hidden":"true",className:"fr-artwork",viewBox:"0 0 80 80",width:"80px",height:"80px",children:[g.jsx("use",{className:"fr-artwork-decorative",href:"/artwork/pictograms/system/system.svg#artwork-decorative"}),g.jsx("use",{className:"fr-artwork-minor",href:"/artwork/pictograms/system/system.svg#artwork-minor"}),g.jsx("use",{className:"fr-artwork-major",href:"/artwork/pictograms/system/system.svg#artwork-major"})]})})]})})]})})]})]})})})})})})}const{VITE_MINISTER_NAME:MT,VITE_APP_DESCRIPTION:AT,VITE_VERSION:wh}={VITE_MINISTER_NAME:"Ministère|de l'enseignement|supérieur|et de la recherche",VITE_APP_NAME:"AFFILIATION MATCHER",VITE_HEADER_TAG:"",VITE_API_URL:"",VITE_VERSION:"1.0.0",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function OT(){return g.jsxs(RT,{fluid:!0,children:[g.jsx(kT,{children:g.jsx(xe,{})}),g.jsxs($T,{description:AT,children:[g.jsx(Vl,{splitCharacter:"|",text:MT}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://legifrance.gouv.fr",children:"legifrance.gouv.fr"}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://gouvernement.fr",children:"gouvernement.fr"}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://service-public.fr",children:"service-public.fr"}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://data.gouv.fr",children:"data.gouv.fr"})]}),g.jsx(LT,{children:g.jsx(Se,{target:"_blank",rel:"noreferer noopenner",className:"fr-footer__bottom-link",href:`https://github.com/dataesr/affiliation-matcher/releases/tag/${wh}`,children:`App version ${wh}`})}),g.jsx(IT,{})]})}const FT={"scroll-top":"_scroll-top_8vydd_1"};function DT(){const[e,t]=p.useState(!1),n=()=>{window.scrollTo({top:0,behavior:"smooth"})};return p.useEffect(()=>{const r=()=>window.pageYOffset>600?t(!0):t(!1);return window.addEventListener("scroll",r),()=>window.removeEventListener("scroll",r)},[]),e?g.jsx(xu,{className:FT["scroll-top"],title:"Revenir en haut de la page",size:"lg",icon:"ri-arrow-up-line",onClick:n}):null}function jT(){return g.jsxs(g.Fragment,{children:[g.jsx(NT,{}),g.jsx(xe,{as:"main",role:"main",fluid:!0,children:g.jsx(TC,{})}),g.jsx(DT,{}),g.jsx(OT,{})]})}var ku=function(e,t){return ku=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},ku(e,t)};function wt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ku(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var j=function(){return j=Object.assign||function(t){for(var n,r=1,o=arguments.length;r"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?lT:iT;t0.useSyncExternalStore=Pr.useSyncExternalStore!==void 0?Pr.useSyncExternalStore:sT;e0.exports=t0;var aT=e0.exports;const uT=aT.useSyncExternalStore,bh=p.createContext(void 0),n0=p.createContext(!1);function r0(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=bh),window.ReactQueryClientContext):bh)}const cT=({context:e}={})=>{const t=p.useContext(r0(e,p.useContext(n0)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},fT=({client:e,children:t,context:n,contextSharing:r=!1})=>{p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const o=r0(n,r);return p.createElement(n0.Provider,{value:!n&&r},p.createElement(o.Provider,{value:e},t))},o0=p.createContext(!1),dT=()=>p.useContext(o0);o0.Provider;function hT(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const pT=p.createContext(hT()),mT=()=>p.useContext(pT);function gT(e,t){return typeof e=="function"?e(...t):!!e}const vT=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},yT=e=>{p.useEffect(()=>{e.clearReset()},[e])},xT=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&gT(n,[e.error,r]),ET=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},bT=(e,t)=>e.isLoading&&e.isFetching&&!t,wT=(e,t,n)=>(e==null?void 0:e.suspense)&&bT(t,n),ST=(e,t,n)=>t.fetchOptimistic(e).then(({data:r})=>{e.onSuccess==null||e.onSuccess(r),e.onSettled==null||e.onSettled(r,null)}).catch(r=>{n.clearReset(),e.onError==null||e.onError(r),e.onSettled==null||e.onSettled(void 0,r)});function CT(e,t){const n=cT({context:e.context}),r=dT(),o=mT(),i=n.defaultQueryOptions(e);i._optimisticResults=r?"isRestoring":"optimistic",i.onError&&(i.onError=ve.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=ve.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=ve.batchCalls(i.onSettled)),ET(i),vT(i,o),yT(o);const[l]=p.useState(()=>new t(n,i)),s=l.getOptimisticResult(i);if(uT(p.useCallback(a=>{const u=r?()=>{}:l.subscribe(ve.batchCalls(a));return l.updateResult(),u},[l,r]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),p.useEffect(()=>{l.setOptions(i,{listeners:!1})},[i,l]),wT(i,s,r))throw ST(i,l,o);if(xT({result:s,errorResetBoundary:o,useErrorBoundary:i.useErrorBoundary,query:l.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:l.trackResult(s)}function TT(e,t,n){const r=Jr(e,t,n);return CT(r,XC)}const _T=function(){return null},{VITE_APP_NAME:PT,VITE_HEADER_TAG:NT,VITE_MINISTER_NAME:kT}={VITE_MINISTER_NAME:"Ministère|de l'enseignement|supérieur|et de la recherche",VITE_APP_NAME:"AFFILIATION MATCHER",VITE_HEADER_TAG:"",VITE_API_URL:"",VITE_VERSION:"1.0.0",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function RT(){const{pathname:e}=Yl();return g.jsxs(PS,{children:[g.jsx(Wl,{splitCharacter:"|",text:kT}),g.jsx(Ly,{name:PT,tagline:NT}),g.jsx(My,{children:g.jsx(Se,{current:e==="/",href:"/",children:"Home"})})]})}function LT({children:e}){return g.jsx("div",{className:"fr-footer__top",children:e})}function $T({children:e,fluid:t=!1}){return g.jsx("footer",{className:"fr-footer fr-mt-3w",role:"contentinfo",id:"footer",children:g.jsx(ie,{fluid:t,children:e})})}function IT({children:e,copy:t}){const n=q.Children.toArray(e);return g.jsxs("div",{className:"fr-container fr-footer__bottom",children:[g.jsx("ul",{className:"fr-footer__bottom-list",children:n.map((r,o)=>g.jsx("li",{className:"fr-footer__bottom-item",children:r},o))}),t?g.jsx("div",{className:"fr-footer__bottom-copy",children:g.jsx("p",{children:t})}):null]})}function MT({children:e,description:t}){var o;const n=q.Children.toArray(e).filter(i=>q.isValidElement(i)&&i.type===Se),r=(o=q.Children.toArray(e).filter(i=>q.isValidElement(i)&&i.type===Wl))==null?void 0:o[0];return g.jsxs("div",{className:"fr-container fr-footer__body",children:[r?g.jsx("div",{className:"fr-footer__brand fr-enlarge-link",children:r}):null,g.jsxs("div",{className:"fr-footer__content",children:[t?g.jsx("p",{className:"fr-footer__content-desc",children:t}):null,n.length?g.jsx("ul",{className:"fr-footer__content-list",children:n.map((i,l)=>g.jsx("li",{className:"fr-footer__content-item",children:i},l))}):null]})]})}function AT(){return g.jsx(g.Fragment,{children:g.jsx("dialog",{id:"fr-theme-modal",className:"fr-modal",role:"dialog","aria-labelledby":"fr-theme-modal-title",children:g.jsx("div",{className:"fr-container fr-container--fluid fr-container-md",children:g.jsx("div",{className:"fr-grid-row fr-grid-row--center",children:g.jsx("div",{className:"fr-col-12 fr-col-md-6 fr-col-lg-4",children:g.jsxs("div",{className:"fr-modal__body",children:[g.jsx("div",{className:"fr-modal__header",children:g.jsx("button",{className:"fr-btn--close fr-btn","aria-controls":"fr-theme-modal",id:"button-5622",title:"Fermer",children:"Fermer"})}),g.jsxs("div",{className:"fr-modal__content",children:[g.jsx("h1",{id:"fr-theme-modal-title",className:"fr-modal__title",children:"Titre"}),g.jsx("div",{id:"fr-display",className:"fr-display",children:g.jsxs("fieldset",{className:"fr-fieldset",id:"display-fieldset",children:[g.jsx("legend",{className:"fr-fieldset__legend--regular fr-fieldset__legend",id:"display-fieldset-legend",children:"Legende"}),g.jsx("div",{className:"fr-fieldset__element",children:g.jsxs("div",{className:"fr-radio-group fr-radio-rich",children:[g.jsx("input",{value:"light",type:"radio",id:"fr-radios-theme-light",name:"fr-radios-theme"}),g.jsx("label",{className:"fr-label",htmlFor:"fr-radios-theme-light",children:"light"}),g.jsx("div",{className:"fr-radio-rich__img",children:g.jsxs("svg",{"aria-hidden":"true",className:"fr-artwork",viewBox:"0 0 80 80",width:"80px",height:"80px",children:[g.jsx("use",{className:"fr-artwork-decorative",href:"/artwork/pictograms/environment/sun.svg#artwork-decorative"}),g.jsx("use",{className:"fr-artwork-minor",href:"/artwork/pictograms/environment/sun.svg#artwork-minor"}),g.jsx("use",{className:"fr-artwork-major",href:"/artwork/pictograms/environment/sun.svg#artwork-major"})]})})]})}),g.jsx("div",{className:"fr-fieldset__element",children:g.jsxs("div",{className:"fr-radio-group fr-radio-rich",children:[g.jsx("input",{value:"dark",type:"radio",id:"fr-radios-theme-dark",name:"fr-radios-theme"}),g.jsx("label",{className:"fr-label",htmlFor:"fr-radios-theme-dark",children:"Dark"}),g.jsx("div",{className:"fr-radio-rich__img",children:g.jsxs("svg",{"aria-hidden":"true",className:"fr-artwork",viewBox:"0 0 80 80",width:"80px",height:"80px",children:[g.jsx("use",{className:"fr-artwork-decorative",href:"/artwork/pictograms/environment/moon.svg#artwork-decorative"}),g.jsx("use",{className:"fr-artwork-minor",href:"/artwork/pictograms/environment/moon.svg#artwork-minor"}),g.jsx("use",{className:"fr-artwork-major",href:"/artwork/pictograms/environment/moon.svg#artwork-major"})]})})]})}),g.jsx("div",{className:"fr-fieldset__element",children:g.jsxs("div",{className:"fr-radio-group fr-radio-rich",children:[g.jsx("input",{value:"system",type:"radio",id:"fr-radios-theme-system",name:"fr-radios-theme"}),g.jsxs("label",{className:"fr-label",htmlFor:"fr-radios-theme-system",children:["System",g.jsx("span",{className:"fr-hint-text",children:"Syten"})]}),g.jsx("div",{className:"fr-radio-rich__img",children:g.jsxs("svg",{"aria-hidden":"true",className:"fr-artwork",viewBox:"0 0 80 80",width:"80px",height:"80px",children:[g.jsx("use",{className:"fr-artwork-decorative",href:"/artwork/pictograms/system/system.svg#artwork-decorative"}),g.jsx("use",{className:"fr-artwork-minor",href:"/artwork/pictograms/system/system.svg#artwork-minor"}),g.jsx("use",{className:"fr-artwork-major",href:"/artwork/pictograms/system/system.svg#artwork-major"})]})})]})})]})})]})]})})})})})})}const{VITE_MINISTER_NAME:OT,VITE_APP_DESCRIPTION:FT,VITE_VERSION:wh}={VITE_MINISTER_NAME:"Ministère|de l'enseignement|supérieur|et de la recherche",VITE_APP_NAME:"AFFILIATION MATCHER",VITE_HEADER_TAG:"",VITE_API_URL:"",VITE_VERSION:"1.0.0",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function DT(){return g.jsxs($T,{fluid:!0,children:[g.jsx(LT,{children:g.jsx(ie,{})}),g.jsxs(MT,{description:FT,children:[g.jsx(Wl,{splitCharacter:"|",text:OT}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://legifrance.gouv.fr",children:"legifrance.gouv.fr"}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://gouvernement.fr",children:"gouvernement.fr"}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://service-public.fr",children:"service-public.fr"}),g.jsx(Se,{className:"fr-footer__content-link",target:"_blank",rel:"noreferrer noopener external",title:"[À MODIFIER - Intitulé] - nouvelle fenêtre",href:"https://data.gouv.fr",children:"data.gouv.fr"})]}),g.jsx(IT,{children:g.jsx(Se,{target:"_blank",rel:"noreferer noopenner",className:"fr-footer__bottom-link",href:`https://github.com/dataesr/affiliation-matcher/releases/tag/${wh}`,children:`App version ${wh}`})}),g.jsx(AT,{})]})}const jT={"scroll-top":"_scroll-top_8vydd_1"};function BT(){const[e,t]=p.useState(!1),n=()=>{window.scrollTo({top:0,behavior:"smooth"})};return p.useEffect(()=>{const r=()=>window.pageYOffset>600?t(!0):t(!1);return window.addEventListener("scroll",r),()=>window.removeEventListener("scroll",r)},[]),e?g.jsx(xu,{className:jT["scroll-top"],title:"Revenir en haut de la page",size:"lg",icon:"ri-arrow-up-line",onClick:n}):null}function HT(){return g.jsxs(g.Fragment,{children:[g.jsx(RT,{}),g.jsx(ie,{as:"main",role:"main",fluid:!0,children:g.jsx(PC,{})}),g.jsx(BT,{}),g.jsx(DT,{})]})}var ku=function(e,t){return ku=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},ku(e,t)};function wt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ku(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var j=function(){return j=Object.assign||function(t){for(var n,r=1,o=arguments.length;r0}),n=[],r=0,o=t;r1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(t_,function(a,u,c,f,d,h){if(u)t.minimumIntegerDigits=c.length;else{if(f&&d)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(x0.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(Ch.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Ch,function(a,u,c,f,d,h){return c==="*"?t.minimumFractionDigits=u.length:f&&f[0]==="#"?t.maximumFractionDigits=f.length:d&&h?(t.minimumFractionDigits=d.length,t.maximumFractionDigits=d.length+h.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var i=o.options[0];i==="w"?t=j(j({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=j(j({},t),Th(i)));continue}if(y0.test(o.stem)){t=j(j({},t),Th(o.stem));continue}var l=E0(o.stem);l&&(t=j(j({},t),l));var s=n_(o.stem);s&&(t=j(j({},t),s))}return t}var gi={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function o_(e,t){for(var n="",r=0;r>1),a="a",u=i_(t);for((u=="H"||u=="k")&&(s=0);s-- >0;)n+=a;for(;l-- >0;)n=u+n}else o==="J"?n+="H":n+=o}return n}function i_(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var o=gi[r||""]||gi[n||""]||gi["".concat(n,"-001")]||gi["001"];return o[0]}var la,l_=new RegExp("^".concat(v0.source,"*")),s_=new RegExp("".concat(v0.source,"*$"));function G(e,t){return{start:e,end:t}}var a_=!!String.prototype.startsWith&&"_a".startsWith("a",1),u_=!!String.fromCodePoint,c_=!!Object.fromEntries,f_=!!String.prototype.codePointAt,d_=!!String.prototype.trimStart,h_=!!String.prototype.trimEnd,p_=!!Number.isSafeInteger,m_=p_?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Lu=!0;try{var g_=w0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Lu=((la=g_.exec("a"))===null||la===void 0?void 0:la[0])==="a"}catch{Lu=!1}var Ph=a_?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},$u=u_?String.fromCodePoint:function(){for(var t=[],n=0;ni;){if(l=t[i++],l>1114111)throw RangeError(l+" is not a valid code point");r+=l<65536?String.fromCharCode(l):String.fromCharCode(((l-=65536)>>10)+55296,l%1024+56320)}return r},Nh=c_?Object.fromEntries:function(t){for(var n={},r=0,o=t;r=r)){var o=t.charCodeAt(n),i;return o<55296||o>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},v_=d_?function(t){return t.trimStart()}:function(t){return t.replace(l_,"")},y_=h_?function(t){return t.trimEnd()}:function(t){return t.replace(s_,"")};function w0(e,t){return new RegExp(e,t)}var Iu;if(Lu){var kh=w0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Iu=function(t,n){var r;kh.lastIndex=n;var o=kh.exec(t);return(r=o[1])!==null&&r!==void 0?r:""}}else Iu=function(t,n){for(var r=[];;){var o=b0(t,n);if(o===void 0||S0(o)||w_(o))break;r.push(o),n+=o>=65536?2:1}return $u.apply(void 0,r)};var x_=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var l=this.parseArgument(t,r);if(l.err)return l;o.push(l.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),o.push({type:oe.pound,location:G(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(V.UNMATCHED_CLOSING_TAG,G(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Mu(this.peek()||0)){var l=this.parseTag(t,n);if(l.err)return l;o.push(l.val)}else{var l=this.parseLiteral(t,n);if(l.err)return l;o.push(l.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:oe.literal,value:"<".concat(o,"/>"),location:G(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var l=i.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:oe.tag,value:o,children:l,location:G(r,this.clonePosition())},err:null}:this.error(V.INVALID_TAG,G(s,this.clonePosition())))}else return this.error(V.UNCLOSED_TAG,G(r,this.clonePosition()))}else return this.error(V.INVALID_TAG,G(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&b_(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),o="";;){var i=this.tryParseQuote(n);if(i){o+=i;continue}var l=this.tryParseUnquoted(t,n);if(l){o+=l;continue}var s=this.tryParseLeftAngleBracket();if(s){o+=s;continue}break}var a=G(r,this.clonePosition());return{val:{type:oe.literal,value:o,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!E_(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return $u.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),$u(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(V.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(V.EMPTY_ARGUMENT,G(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(V.MALFORMED_ARGUMENT,G(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(V.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:oe.argument,value:o,location:G(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(V.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition())):this.parseArgumentOptions(t,n,o,r);default:return this.error(V.MALFORMED_ARGUMENT,G(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Iu(this.message,n),o=n+r.length;this.bumpTo(o);var i=this.clonePosition(),l=G(t,i);return{value:r,location:l}},e.prototype.parseArgumentOptions=function(t,n,r,o){var i,l=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(V.EXPECT_ARGUMENT_TYPE,G(l,a));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),f=this.parseSimpleArgStyleIfPossible();if(f.err)return f;var d=y_(f.val);if(d.length===0)return this.error(V.EXPECT_ARGUMENT_STYLE,G(this.clonePosition(),this.clonePosition()));var h=G(c,this.clonePosition());u={style:d,styleLocation:h}}var E=this.tryParseArgumentClose(o);if(E.err)return E;var b=G(o,this.clonePosition());if(u&&Ph(u==null?void 0:u.style,"::",0)){var w=v_(u.style.slice(2));if(s==="number"){var f=this.parseNumberSkeletonFromString(w,u.styleLocation);return f.err?f:{val:{type:oe.number,value:r,location:b,style:f.val},err:null}}else{if(w.length===0)return this.error(V.EXPECT_DATE_TIME_SKELETON,b);var y=w;this.locale&&(y=o_(w,this.locale));var d={type:Nr.dateTime,pattern:y,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?YT(y):{}},m=s==="date"?oe.date:oe.time;return{val:{type:m,value:r,location:b,style:d},err:null}}}return{val:{type:s==="number"?oe.number:s==="date"?oe.date:oe.time,value:r,location:b,style:(i=u==null?void 0:u.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var x=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(V.EXPECT_SELECT_ARGUMENT_OPTIONS,G(x,j({},x)));this.bumpSpace();var S=this.parseIdentifierIfPossible(),T=0;if(s!=="select"&&S.value==="offset"){if(!this.bumpIf(":"))return this.error(V.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,G(this.clonePosition(),this.clonePosition()));this.bumpSpace();var f=this.tryParseDecimalInteger(V.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,V.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(f.err)return f;this.bumpSpace(),S=this.parseIdentifierIfPossible(),T=f.val}var C=this.tryParsePluralOrSelectOptions(t,s,n,S);if(C.err)return C;var E=this.tryParseArgumentClose(o);if(E.err)return E;var _=G(o,this.clonePosition());return s==="select"?{val:{type:oe.select,value:r,options:Nh(C.val),location:_},err:null}:{val:{type:oe.plural,value:r,options:Nh(C.val),offset:T,pluralType:s==="plural"?"cardinal":"ordinal",location:_},err:null}}default:return this.error(V.INVALID_ARGUMENT_TYPE,G(l,a))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(V.EXPECT_ARGUMENT_CLOSING_BRACE,G(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(V.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,G(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=JT(t)}catch{return this.error(V.INVALID_NUMBER_SKELETON,n)}return{val:{type:Nr.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?r_(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,o){for(var i,l=!1,s=[],a=new Set,u=o.value,c=o.location;;){if(u.length===0){var f=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var d=this.tryParseDecimalInteger(V.EXPECT_PLURAL_ARGUMENT_SELECTOR,V.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;c=G(f,this.clonePosition()),u=this.message.slice(f.offset,this.offset())}else break}if(a.has(u))return this.error(n==="select"?V.DUPLICATE_SELECT_ARGUMENT_SELECTOR:V.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(l=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?V.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:V.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,G(this.clonePosition(),this.clonePosition()));var E=this.parseMessage(t+1,n,r);if(E.err)return E;var b=this.tryParseArgumentClose(h);if(b.err)return b;s.push([u,{value:E.val,location:G(h,this.clonePosition())}]),a.add(u),this.bumpSpace(),i=this.parseIdentifierIfPossible(),u=i.value,c=i.location}return s.length===0?this.error(n==="select"?V.EXPECT_SELECT_ARGUMENT_SELECTOR:V.EXPECT_PLURAL_ARGUMENT_SELECTOR,G(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!l?this.error(V.MISSING_OTHER_CLAUSE,G(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,l=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,l=l*10+(s-48),this.bump();else break}var a=G(o,this.clonePosition());return i?(l*=r,m_(l)?{val:l,err:null}:this.error(n,a)):this.error(t,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=b0(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ph(this.message,t,this.offset())){for(var n=0;n=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&S0(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function Mu(e){return e>=97&&e<=122||e>=65&&e<=90}function E_(e){return Mu(e)||e===47}function b_(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function S0(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function w_(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Au(e){e.forEach(function(t){if(delete t.location,h0(t)||p0(t))for(var n in t.options)delete t.options[n].location,Au(t.options[n].value);else c0(t)&&g0(t.style)||(f0(t)||d0(t))&&Ru(t.style)?delete t.style.location:m0(t)&&Au(t.children)})}function S_(e,t){t===void 0&&(t={}),t=j({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new x_(e,t).parse();if(n.err){var r=SyntaxError(V[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Au(n.val),n.val}function _t(e,t){var n=t&&t.cache?t.cache:k_,r=t&&t.serializer?t.serializer:N_,o=t&&t.strategy?t.strategy:T_;return o(e,{cache:n,serializer:r})}function C_(e){return e==null||typeof e=="number"||typeof e=="boolean"}function C0(e,t,n,r){var o=C_(r)?r:n(r),i=t.get(o);return typeof i>"u"&&(i=e.call(this,r),t.set(o,i)),i}function T0(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,r),t.set(o,i)),i}function nf(e,t,n,r,o){return n.bind(t,e,r,o)}function T_(e,t){var n=e.length===1?C0:T0;return nf(e,this,n,t.cache.create(),t.serializer)}function __(e,t){return nf(e,this,T0,t.cache.create(),t.serializer)}function P_(e,t){return nf(e,this,C0,t.cache.create(),t.serializer)}var N_=function(){return JSON.stringify(arguments)};function rf(){this.cache=Object.create(null)}rf.prototype.get=function(e){return this.cache[e]};rf.prototype.set=function(e,t){this.cache[e]=t};var k_={create:function(){return new rf}},Pt={variadic:__,monadic:P_},$t;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})($t||($t={}));var En=function(e){wt(t,e);function t(n,r,o){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Rh=function(e){wt(t,e);function t(n,r,o,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),$t.INVALID_VALUE,i)||this}return t}(En),R_=function(e){wt(t,e);function t(n,r,o){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),$t.INVALID_VALUE,o)||this}return t}(En),L_=function(e){wt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),$t.MISSING_VALUE,r)||this}return t}(En),Fe;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Fe||(Fe={}));function $_(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Fe.literal||n.type!==Fe.literal?t.push(n):r.value+=n.value,t},[])}function _0(e){return typeof e=="function"}function Ii(e,t,n,r,o,i,l){if(e.length===1&&Sh(e[0]))return[{type:Fe.literal,value:e[0].value}];for(var s=[],a=0,u=e;a0}),n=[],r=0,o=t;r1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(r_,function(a,u,c,d,f,h){if(u)t.minimumIntegerDigits=c.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(x0.test(o.stem)){t.minimumIntegerDigits=o.stem.length;continue}if(Ch.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Ch,function(a,u,c,d,f,h){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:f&&h?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+h.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var i=o.options[0];i==="w"?t=j(j({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=j(j({},t),Th(i)));continue}if(y0.test(o.stem)){t=j(j({},t),Th(o.stem));continue}var l=E0(o.stem);l&&(t=j(j({},t),l));var s=o_(o.stem);s&&(t=j(j({},t),s))}return t}var vi={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function l_(e,t){for(var n="",r=0;r>1),a="a",u=s_(t);for((u=="H"||u=="k")&&(s=0);s-- >0;)n+=a;for(;l-- >0;)n=u+n}else o==="J"?n+="H":n+=o}return n}function s_(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var o=vi[r||""]||vi[n||""]||vi["".concat(n,"-001")]||vi["001"];return o[0]}var la,a_=new RegExp("^".concat(v0.source,"*")),u_=new RegExp("".concat(v0.source,"*$"));function G(e,t){return{start:e,end:t}}var c_=!!String.prototype.startsWith&&"_a".startsWith("a",1),f_=!!String.fromCodePoint,d_=!!Object.fromEntries,h_=!!String.prototype.codePointAt,p_=!!String.prototype.trimStart,m_=!!String.prototype.trimEnd,g_=!!Number.isSafeInteger,v_=g_?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Lu=!0;try{var y_=w0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Lu=((la=y_.exec("a"))===null||la===void 0?void 0:la[0])==="a"}catch{Lu=!1}var Ph=c_?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},$u=f_?String.fromCodePoint:function(){for(var t=[],n=0;ni;){if(l=t[i++],l>1114111)throw RangeError(l+" is not a valid code point");r+=l<65536?String.fromCharCode(l):String.fromCharCode(((l-=65536)>>10)+55296,l%1024+56320)}return r},Nh=d_?Object.fromEntries:function(t){for(var n={},r=0,o=t;r=r)){var o=t.charCodeAt(n),i;return o<55296||o>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?o:(o-55296<<10)+(i-56320)+65536}},x_=p_?function(t){return t.trimStart()}:function(t){return t.replace(a_,"")},E_=m_?function(t){return t.trimEnd()}:function(t){return t.replace(u_,"")};function w0(e,t){return new RegExp(e,t)}var Iu;if(Lu){var kh=w0("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Iu=function(t,n){var r;kh.lastIndex=n;var o=kh.exec(t);return(r=o[1])!==null&&r!==void 0?r:""}}else Iu=function(t,n){for(var r=[];;){var o=b0(t,n);if(o===void 0||S0(o)||C_(o))break;r.push(o),n+=o>=65536?2:1}return $u.apply(void 0,r)};var b_=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var o=[];!this.isEOF();){var i=this.char();if(i===123){var l=this.parseArgument(t,r);if(l.err)return l;o.push(l.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var s=this.clonePosition();this.bump(),o.push({type:oe.pound,location:G(s,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(V.UNMATCHED_CLOSING_TAG,G(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Mu(this.peek()||0)){var l=this.parseTag(t,n);if(l.err)return l;o.push(l.val)}else{var l=this.parseLiteral(t,n);if(l.err)return l;o.push(l.val)}}}return{val:o,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:oe.literal,value:"<".concat(o,"/>"),location:G(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var l=i.val,s=this.clonePosition();if(this.bumpIf("")?{val:{type:oe.tag,value:o,children:l,location:G(r,this.clonePosition())},err:null}:this.error(V.INVALID_TAG,G(s,this.clonePosition())))}else return this.error(V.UNCLOSED_TAG,G(r,this.clonePosition()))}else return this.error(V.INVALID_TAG,G(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&S_(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),o="";;){var i=this.tryParseQuote(n);if(i){o+=i;continue}var l=this.tryParseUnquoted(t,n);if(l){o+=l;continue}var s=this.tryParseLeftAngleBracket();if(s){o+=s;continue}break}var a=G(r,this.clonePosition());return{val:{type:oe.literal,value:o,location:a},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!w_(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return $u.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),$u(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(V.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(V.EMPTY_ARGUMENT,G(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(V.MALFORMED_ARGUMENT,G(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(V.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:oe.argument,value:o,location:G(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(V.EXPECT_ARGUMENT_CLOSING_BRACE,G(r,this.clonePosition())):this.parseArgumentOptions(t,n,o,r);default:return this.error(V.MALFORMED_ARGUMENT,G(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=Iu(this.message,n),o=n+r.length;this.bumpTo(o);var i=this.clonePosition(),l=G(t,i);return{value:r,location:l}},e.prototype.parseArgumentOptions=function(t,n,r,o){var i,l=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(V.EXPECT_ARGUMENT_TYPE,G(l,a));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var f=E_(d.val);if(f.length===0)return this.error(V.EXPECT_ARGUMENT_STYLE,G(this.clonePosition(),this.clonePosition()));var h=G(c,this.clonePosition());u={style:f,styleLocation:h}}var E=this.tryParseArgumentClose(o);if(E.err)return E;var b=G(o,this.clonePosition());if(u&&Ph(u==null?void 0:u.style,"::",0)){var w=x_(u.style.slice(2));if(s==="number"){var d=this.parseNumberSkeletonFromString(w,u.styleLocation);return d.err?d:{val:{type:oe.number,value:r,location:b,style:d.val},err:null}}else{if(w.length===0)return this.error(V.EXPECT_DATE_TIME_SKELETON,b);var y=w;this.locale&&(y=l_(w,this.locale));var f={type:Nr.dateTime,pattern:y,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?JT(y):{}},m=s==="date"?oe.date:oe.time;return{val:{type:m,value:r,location:b,style:f},err:null}}}return{val:{type:s==="number"?oe.number:s==="date"?oe.date:oe.time,value:r,location:b,style:(i=u==null?void 0:u.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var x=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(V.EXPECT_SELECT_ARGUMENT_OPTIONS,G(x,j({},x)));this.bumpSpace();var S=this.parseIdentifierIfPossible(),T=0;if(s!=="select"&&S.value==="offset"){if(!this.bumpIf(":"))return this.error(V.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,G(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(V.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,V.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),S=this.parseIdentifierIfPossible(),T=d.val}var C=this.tryParsePluralOrSelectOptions(t,s,n,S);if(C.err)return C;var E=this.tryParseArgumentClose(o);if(E.err)return E;var _=G(o,this.clonePosition());return s==="select"?{val:{type:oe.select,value:r,options:Nh(C.val),location:_},err:null}:{val:{type:oe.plural,value:r,options:Nh(C.val),offset:T,pluralType:s==="plural"?"cardinal":"ordinal",location:_},err:null}}default:return this.error(V.INVALID_ARGUMENT_TYPE,G(l,a))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(V.EXPECT_ARGUMENT_CLOSING_BRACE,G(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(V.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,G(o,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=t_(t)}catch{return this.error(V.INVALID_NUMBER_SKELETON,n)}return{val:{type:Nr.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?i_(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,o){for(var i,l=!1,s=[],a=new Set,u=o.value,c=o.location;;){if(u.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(V.EXPECT_PLURAL_ARGUMENT_SELECTOR,V.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=G(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(a.has(u))return this.error(n==="select"?V.DUPLICATE_SELECT_ARGUMENT_SELECTOR:V.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(l=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?V.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:V.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,G(this.clonePosition(),this.clonePosition()));var E=this.parseMessage(t+1,n,r);if(E.err)return E;var b=this.tryParseArgumentClose(h);if(b.err)return b;s.push([u,{value:E.val,location:G(h,this.clonePosition())}]),a.add(u),this.bumpSpace(),i=this.parseIdentifierIfPossible(),u=i.value,c=i.location}return s.length===0?this.error(n==="select"?V.EXPECT_SELECT_ARGUMENT_SELECTOR:V.EXPECT_PLURAL_ARGUMENT_SELECTOR,G(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!l?this.error(V.MISSING_OTHER_CLAUSE,G(this.clonePosition(),this.clonePosition())):{val:s,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,l=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,l=l*10+(s-48),this.bump();else break}var a=G(o,this.clonePosition());return i?(l*=r,v_(l)?{val:l,err:null}:this.error(n,a)):this.error(t,a)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=b0(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ph(this.message,t,this.offset())){for(var n=0;n=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&S0(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function Mu(e){return e>=97&&e<=122||e>=65&&e<=90}function w_(e){return Mu(e)||e===47}function S_(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function S0(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function C_(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Au(e){e.forEach(function(t){if(delete t.location,h0(t)||p0(t))for(var n in t.options)delete t.options[n].location,Au(t.options[n].value);else c0(t)&&g0(t.style)||(f0(t)||d0(t))&&Ru(t.style)?delete t.style.location:m0(t)&&Au(t.children)})}function T_(e,t){t===void 0&&(t={}),t=j({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new b_(e,t).parse();if(n.err){var r=SyntaxError(V[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||Au(n.val),n.val}function _t(e,t){var n=t&&t.cache?t.cache:L_,r=t&&t.serializer?t.serializer:R_,o=t&&t.strategy?t.strategy:P_;return o(e,{cache:n,serializer:r})}function __(e){return e==null||typeof e=="number"||typeof e=="boolean"}function C0(e,t,n,r){var o=__(r)?r:n(r),i=t.get(o);return typeof i>"u"&&(i=e.call(this,r),t.set(o,i)),i}function T0(e,t,n){var r=Array.prototype.slice.call(arguments,3),o=n(r),i=t.get(o);return typeof i>"u"&&(i=e.apply(this,r),t.set(o,i)),i}function nf(e,t,n,r,o){return n.bind(t,e,r,o)}function P_(e,t){var n=e.length===1?C0:T0;return nf(e,this,n,t.cache.create(),t.serializer)}function N_(e,t){return nf(e,this,T0,t.cache.create(),t.serializer)}function k_(e,t){return nf(e,this,C0,t.cache.create(),t.serializer)}var R_=function(){return JSON.stringify(arguments)};function rf(){this.cache=Object.create(null)}rf.prototype.get=function(e){return this.cache[e]};rf.prototype.set=function(e,t){this.cache[e]=t};var L_={create:function(){return new rf}},Pt={variadic:N_,monadic:k_},$t;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})($t||($t={}));var En=function(e){wt(t,e);function t(n,r,o){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=o,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Rh=function(e){wt(t,e);function t(n,r,o,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),$t.INVALID_VALUE,i)||this}return t}(En),$_=function(e){wt(t,e);function t(n,r,o){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),$t.INVALID_VALUE,o)||this}return t}(En),I_=function(e){wt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),$t.MISSING_VALUE,r)||this}return t}(En),Fe;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Fe||(Fe={}));function M_(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Fe.literal||n.type!==Fe.literal?t.push(n):r.value+=n.value,t},[])}function _0(e){return typeof e=="function"}function Mi(e,t,n,r,o,i,l){if(e.length===1&&Sh(e[0]))return[{type:Fe.literal,value:e[0].value}];for(var s=[],a=0,u=e;a"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=S_,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Hn;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Hn||(Hn={}));var Ho=function(e){wt(t,e);function t(n,r,o){var i=this,l=o?o instanceof Error?o:new Error(String(o)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,` +`,$t.MISSING_INTL_API,l);var S=n.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0));x=c.options[S]||c.options.other}if(!x)throw new Rh(c.value,f,Object.keys(c.options),l);s.push.apply(s,Mi(x.value,t,n,r,o,f-(c.offset||0)));continue}}return M_(s)}function A_(e,t){return t?j(j(j({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=j(j({},e[r]),t[r]||{}),n},{})):e}function O_(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=A_(e[r],t[r]),n},j({},e)):e}function sa(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function F_(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:_t(function(){for(var t,n=[],r=0;r"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=T_,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Hn;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Hn||(Hn={}));var Ko=function(e){wt(t,e);function t(n,r,o){var i=this,l=o?o instanceof Error?o:new Error(String(o)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,` `).concat(l?` `.concat(l.message,` -`).concat(l.stack):""))||this,i.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t}(Error),O_=function(e){wt(t,e);function t(n,r){return e.call(this,Hn.UNSUPPORTED_FORMATTER,n,r)||this}return t}(Ho),F_=function(e){wt(t,e);function t(n,r){return e.call(this,Hn.INVALID_CONFIG,n,r)||this}return t}(Ho),Lh=function(e){wt(t,e);function t(n,r){return e.call(this,Hn.MISSING_DATA,n,r)||this}return t}(Ho),ht=function(e){wt(t,e);function t(n,r,o){var i=e.call(this,Hn.FORMAT_ERROR,"".concat(n,` +`).concat(l.stack):""))||this,i.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t}(Error),D_=function(e){wt(t,e);function t(n,r){return e.call(this,Hn.UNSUPPORTED_FORMATTER,n,r)||this}return t}(Ko),j_=function(e){wt(t,e);function t(n,r){return e.call(this,Hn.INVALID_CONFIG,n,r)||this}return t}(Ko),Lh=function(e){wt(t,e);function t(n,r){return e.call(this,Hn.MISSING_DATA,n,r)||this}return t}(Ko),ht=function(e){wt(t,e);function t(n,r,o){var i=e.call(this,Hn.FORMAT_ERROR,"".concat(n,` Locale: `).concat(r,` -`),o)||this;return i.locale=r,i}return t}(Ho),aa=function(e){wt(t,e);function t(n,r,o,i){var l=e.call(this,"".concat(n,` +`),o)||this;return i.locale=r,i}return t}(Ko),aa=function(e){wt(t,e);function t(n,r,o,i){var l=e.call(this,"".concat(n,` MessageID: `).concat(o==null?void 0:o.id,` Default Message: `).concat(o==null?void 0:o.defaultMessage,` Description: `).concat(o==null?void 0:o.description,` -`),r,i)||this;return l.descriptor=o,l.locale=r,l}return t}(ht),D_=function(e){wt(t,e);function t(n,r){var o=e.call(this,Hn.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(i){var l;return(l=i.value)!==null&&l!==void 0?l:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=n,o}return t}(Ho);function Gn(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,o){return o in e?r[o]=e[o]:o in n&&(r[o]=n[o]),r},{})}var j_=function(e){},B_=function(e){},P0={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:j_,onWarn:B_};function H_(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function wn(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function K_(e){e===void 0&&(e=H_());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,o=_t(function(){for(var s,a=[],u=0;u needs to exist in the component ancestry.")}var fP=j(j({},P0),{textComponent:p.Fragment});function dP(e){return function(t){return e(p.Children.toArray(t))}}var sf=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=p.createContext(null)):p.createContext(null);sf.Consumer;var hP=sf.Provider,pP=hP,mP=sf;function cs(){var e=p.useContext(mP);return cP(e),e}var Fu;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Fu||(Fu={}));var Du;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Du||(Du={}));function L0(e){var t=function(n){var r=cs(),o=n.value,i=n.children,l=Zl(n,["value","children"]),s=typeof o=="string"?new Date(o||0):o,a=e==="formatDate"?r.formatDateToParts(s,l):r.formatTimeToParts(s,l);return i(a)};return t.displayName=Du[e],t}function Ko(e){var t=function(n){var r=cs(),o=n.value,i=n.children,l=Zl(n,["value","children"]),s=r[e](o,l);if(typeof i=="function")return i(s);var a=r.textComponent||p.Fragment;return p.createElement(a,null,s)};return t.displayName=Fu[e],t}function $0(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=_0(r)?dP(r):r,t},{})}var Ah=function(e,t,n,r){for(var o=[],i=4;i{var r;const n=(r=t.match(/\.\/locales\/(.+)\.json$/))==null?void 0:r[1];return n?{...e,[n]:Oh[t]}:e},{});function fs(){const[e,t]=$C(),n=e.get("q"),r=e.get("matcher"),o=e.get("year")||"",i=p.useCallback(u=>{e.set("q",u),t(e)},[e,t]),l=p.useCallback(u=>{e.set("matcher",u),e.delete("year"),t(e)},[e,t]),s=p.useCallback(u=>{e.set("year",u),t(e)},[e,t]);return p.useMemo(()=>({currentQuery:n,currentMatcher:r,currentYear:o,handleQueryChange:i,handleMatcherChange:l,handleYearChange:s}),[n,r,o,i,l,s])}const I0=[{label:"Country",key:"country",year:!1,placeholder:"Department of Medical Genetics, Hotel Dieu de France, Beirut, Lebanon"},{label:"ROR",key:"ror",year:!1,placeholder:"Paris Dauphine University France"},{label:"RNSR",key:"rnsr",year:!0,placeholder:"IPAG Institut de Planétologie et d'Astrophysique de Grenoble"},{label:"grid.ac",key:"grid",year:!1,placeholder:"Paris Dauphine University France"},{label:"Paysage",key:"paysage",year:!0,placeholder:"UTC Université de Technologie de Compiègne"}],Fh=e=>I0.find(t=>t.key==e),xP=Array.from({length:(2011-2023)/-1+1},(e,t)=>2023+t*-1);function EP(){var a,u;const{currentQuery:e,currentMatcher:t,currentYear:n,handleQueryChange:r,handleMatcherChange:o,handleYearChange:i}=fs(),l=((a=Fh(t))==null?void 0:a.year)||!1,s=((u=Fh(t))==null?void 0:u.placeholder)||"Paris Dauphine University France";return g.jsx(xe,{className:"input",children:g.jsxs(Ry,{gutters:!0,className:"fr-pb-4w fr-pt-4w fr-mb-2w",children:[g.jsx(Js,{xs:"12",sm:"8",lg:"8",children:g.jsx($y,{isLarge:!0,buttonLabel:"Match",defaultValue:e,placeholder:s,onSearch:c=>r(c.toLowerCase())},e)}),g.jsx(Js,{xs:"12",sm:"2",lg:"2",children:g.jsxs("select",{className:"fr-select",defaultValue:t||"DEFAULT",onChange:c=>o(c.target.value),children:[g.jsx("option",{value:"DEFAULT",disabled:!0,children:"Select a matcher"},"DEFAULT"),I0.map(c=>g.jsx("option",{value:c.key,children:c.label},c.key))]},t)}),g.jsx(Js,{xs:"12",sm:"2",lg:"2",children:g.jsxs("select",{className:"fr-select",defaultValue:n||"DEFAULT",disabled:!l,onChange:c=>i(c.target.value),children:[g.jsx("option",{value:"DEFAULT",disabled:!0,children:"Select a year"},"DEFAULT"),xP.map(c=>g.jsx("option",{value:c,children:c},c))]},n)})]})})}function ua({error:e}){return g.jsx(xe,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100px"},children:g.jsx(Ay,{type:"error",closeMode:"disallow",children:e})})}function bP(e,t){return t==="ror"?`https://ror.org/${e}`:t==="rnsr"?`https://appliweb.dgri.education.fr/rnsr/PresenteStruct.jsp?numNatStruct=${e}&PUBLIC=OK`:t==="paysage"?`https://paysage.staging.dataesr.ovh/structures/${e}`:null}function wP(e,t){let n=t;return e.forEach(r=>n=n.replace(r,`${r}`)),n=n.replace(/'/g,"''"),n}function SP({resultHighlights:e,setTitle:t}){const{currentQuery:n}=fs(),r=i=>t(new of(i).format({b:l=>g.jsx("strong",{children:l},JSON.stringify(l))})),o=()=>t(n);return g.jsx(xe,{fluid:!0,className:"fr-mt-2w",children:Object.entries(e.criterion).map(([i,l],s)=>g.jsxs(Vc,{children:[g.jsx(Ze,{size:"sm",color:"success",children:i}),l.map((a,u)=>g.jsx(Ze,{size:"sm",onMouseEnter:()=>r(wP(a,n)),onMouseLeave:()=>o(),children:a==null?void 0:a.join(" ")},u))]},s))})}function CP({resultData:e,resultId:t,setTitle:n}){var f,d,h,E;const{currentMatcher:r}=fs(),{results:o,enriched_results:i,highlights:l}=e,s=o.findIndex(b=>b===t),a=i[s],u=l==null?void 0:l[t],c=bP(t,r);return g.jsxs(xe,{className:"card fr-mt-2w",children:[g.jsx(Ry,{children:g.jsxs(Vc,{className:"fr-mt-2w",children:[c?g.jsx(Ze,{as:"a",href:c,target:"_blank",color:"yellow-moutarde",children:`${r} : ${t}`}):g.jsx(Ze,{color:"yellow-moutarde",children:`${r} : ${t}`}),((f=a==null?void 0:a.acronym)==null?void 0:f.length)&&g.jsx(Ze,{color:"green-archipel",children:a.acronym[0]}),((d=a==null?void 0:a.name)==null?void 0:d.length)&&g.jsx(Ze,{color:"blue-ecume",children:a.name[0]}),((h=a==null?void 0:a.city)==null?void 0:h.length)&&g.jsx(Ze,{icon:"building-line",color:"purple-glycine",children:a.city[0]}),((E=a==null?void 0:a.country)==null?void 0:E.length)&&g.jsx(Ze,{icon:"earth-line",color:"pink-macaron",children:a.country[0]})]})}),g.jsx(SP,{resultHighlights:u,setTitle:n})]})}function TP(){return g.jsx(xe,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100px"},children:g.jsx(Gc,{})})}function Dh({resultsDebug:e}){const t=cs();if(!e)return null;const n=r=>{var o;return((o=e.criterion)==null?void 0:o[r])??0};return g.jsx(mE,{className:"fr-container fr-mt-3w",title:t.formatMessage({id:"debug.accordion.title"}),children:e.strategies.map((r,o)=>g.jsxs(xe,{className:"debug-item",children:[g.jsx(Ze,{size:"sm",className:"fr-mb-3w",color:r.possibilities?"success":"error",children:`Matching ${r.equivalent_strategies.length} strategies : ${t.formatMessage({id:"possibility.count"},{count:r.possibilities})}`}),r.equivalent_strategies.map(i=>g.jsx(xe,{fluid:!0,children:g.jsxs(Vc,{className:"fr-mb-2w",children:[i.criteria.map(l=>{const s=n(l);return g.jsx(Ze,{size:"sm",color:s?"yellow-moutarde":null,children:`${l}: ${t.formatMessage({id:"match.count"},{count:s})}`})}),i.matches>0&&g.jsx(Ze,{size:"sm",color:"success",children:t.formatMessage({id:"match.count"},{count:i.matches})})]})}))]},o))})}function jh({info:e}){return g.jsx(xe,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100px"},children:g.jsx(Ay,{type:"info",closeMode:"disallow",children:e})})}const{VITE_API_URL:_P,VITE_ELASTIC_URL:AP}={VITE_MINISTER_NAME:"Ministère|de l'enseignement|supérieur|et de la recherche",VITE_APP_NAME:"AFFILIATION MATCHER",VITE_HEADER_TAG:"",VITE_API_URL:"",VITE_VERSION:"1.0.0",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},PP=`${_P}/match`,NP=async(e,t,n)=>{const r={type:t,query:e,verbose:!0};n&&(r.year=n);const o=await fetch(PP,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!o.ok)throw new Error(`API error: ${o.status}`);return await o.json()};function kP(e,t,n){const{data:r,error:o,isFetching:i}=ST({queryKey:["match",e,t,n],queryFn:()=>NP(e,t,n),enabled:!!(e&&t),staleTime:3e5});return p.useMemo(()=>({data:r,isFetching:i,error:o}),[r,i,o])}function RP(){const e=cs(),{currentQuery:t,currentMatcher:n,currentYear:r}=fs(),{data:o,isFetching:i,error:l}=kP(t,n,r),[s,a]=p.useState(t);if(p.useEffect(()=>a(t),[t]),console.log("data",o),t===null&&n===null)return null;if(!t)return g.jsx(jh,{info:e.formatMessage({id:"info.missing.query"})});if(!n)return g.jsx(jh,{info:e.formatMessage({id:"info.missing.matcher"})});if(i)return g.jsx(TP,{});if(l)return g.jsx(ua,{error:l==null?void 0:l.message});if(!o)return g.jsx(ua,{error:"No data"});if(!(o!=null&&o.results))return g.jsx(ua,{error:o==null?void 0:o.Error});const u=o,c=u.results;return c.length?g.jsxs(xe,{fluid:!0,children:[g.jsx(xe,{className:"sticky card",children:g.jsx(ra,{size:"lead",children:s})}),g.jsx(xe,{className:"fr-mt-3w",children:g.jsx(ra,{size:"md",children:e.formatMessage({id:"match.count"},{count:c.length})})}),g.jsx(xe,{fluid:!0,className:"fr-mt-3w",children:c.map((f,d)=>g.jsx(CP,{resultData:u,resultId:f,setTitle:a},d))}),g.jsx(Dh,{resultsDebug:u==null?void 0:u.debug})]}):g.jsxs(xe,{fluid:!0,children:[g.jsx(xe,{className:"sticky card",children:g.jsx(ra,{size:"lead",children:s})}),g.jsx(xe,{className:"fr-mt-3w",children:g.jsx(Ze,{color:"error",children:`${n} : ${e.formatMessage({id:"match.count"},{count:0})}`})}),g.jsx(Dh,{resultsDebug:u==null?void 0:u.debug})]})}function LP(){return g.jsxs(xe,{fluid:!0,children:[g.jsx(EP,{}),g.jsx(RP,{})]})}function $P(){const e=gP({locale:"en",messages:yP.en});return g.jsx(pP,{value:e,children:g.jsx(LP,{})})}function IP(){return g.jsx(PC,{children:g.jsx(bu,{element:g.jsx(jT,{}),children:g.jsx(bu,{path:"/",element:g.jsx($P,{})})})})}const MP=new WC;ca.createRoot(document.getElementById("root")).render(g.jsx(q.StrictMode,{children:g.jsx(cS,{children:g.jsx(LC,{children:g.jsxs(uT,{client:MP,children:[g.jsx(CT,{}),g.jsx(IP,{})]})})})})); +For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function fP(e,t){var n=z_(t),r=j(j({},P0),e),o=r.locale,i=r.defaultLocale,l=r.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&l?l(new Lh('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&l&&l(new Lh('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(l&&l(new j_('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),cP(r),j(j({},r),{formatters:n,formatNumber:sP.bind(null,r,n.getNumberFormat),formatNumberToParts:aP.bind(null,r,n.getNumberFormat),formatRelativeTime:iP.bind(null,r,n.getRelativeTimeFormat),formatDate:V_.bind(null,r,n.getDateTimeFormat),formatDateToParts:Q_.bind(null,r,n.getDateTimeFormat),formatTime:G_.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:W_.bind(null,r,n.getDateTimeFormat),formatTimeToParts:q_.bind(null,r,n.getDateTimeFormat),formatPlural:nP.bind(null,r,n.getPluralRules),formatMessage:Ou.bind(null,r,n),$t:Ou.bind(null,r,n),formatList:eP.bind(null,r,n.getListFormat),formatListToParts:k0.bind(null,r,n.getListFormat),formatDisplayName:Y_.bind(null,r,n.getDisplayNames)})}function dP(e){u0(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}var hP=j(j({},P0),{textComponent:p.Fragment});function pP(e){return function(t){return e(p.Children.toArray(t))}}var sf=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=p.createContext(null)):p.createContext(null);sf.Consumer;var mP=sf.Provider,gP=mP,vP=sf;function Ir(){var e=p.useContext(vP);return dP(e),e}var Fu;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(Fu||(Fu={}));var Du;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Du||(Du={}));function L0(e){var t=function(n){var r=Ir(),o=n.value,i=n.children,l=es(n,["value","children"]),s=typeof o=="string"?new Date(o||0):o,a=e==="formatDate"?r.formatDateToParts(s,l):r.formatTimeToParts(s,l);return i(a)};return t.displayName=Du[e],t}function Uo(e){var t=function(n){var r=Ir(),o=n.value,i=n.children,l=es(n,["value","children"]),s=r[e](o,l);if(typeof i=="function")return i(s);var a=r.textComponent||p.Fragment;return p.createElement(a,null,s)};return t.displayName=Fu[e],t}function $0(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=_0(r)?pP(r):r,t},{})}var Ah=function(e,t,n,r){for(var o=[],i=4;i{var r;const n=(r=t.match(/\.\/locales\/(.+)\.json$/))==null?void 0:r[1];return n?{...e,[n]:Oh[t]}:e},{});function ds(){const[e,t]=MC(),n=e.get("q"),r=e.get("matcher"),o=e.get("year")||"",i=p.useCallback(u=>{e.set("q",u),t(e)},[e,t]),l=p.useCallback(u=>{e.set("matcher",u),e.delete("year"),t(e)},[e,t]),s=p.useCallback(u=>{e.set("year",u),t(e)},[e,t]);return p.useMemo(()=>({currentQuery:n,currentMatcher:r,currentYear:o,handleQueryChange:i,handleMatcherChange:l,handleYearChange:s}),[n,r,o,i,l,s])}const I0=[{label:"Country",key:"country",year:!1,placeholder:"Department of Medical Genetics, Hotel Dieu de France, Beirut, Lebanon"},{label:"ROR",key:"ror",year:!1,placeholder:"Paris Dauphine University France"},{label:"RNSR",key:"rnsr",year:!0,placeholder:"IPAG Institut de Planétologie et d'Astrophysique de Grenoble"},{label:"grid.ac",key:"grid",year:!1,placeholder:"Paris Dauphine University France"},{label:"Paysage",key:"paysage",year:!0,placeholder:"UTC Université de Technologie de Compiègne"}],Fh=e=>I0.find(t=>t.key==e),bP=Array.from({length:(2011-2023)/-1+1},(e,t)=>2023+t*-1);function wP(){var a,u;const{currentQuery:e,currentMatcher:t,currentYear:n,handleQueryChange:r,handleMatcherChange:o,handleYearChange:i}=ds(),l=((a=Fh(t))==null?void 0:a.year)||!1,s=((u=Fh(t))==null?void 0:u.placeholder)||"Paris Dauphine University France";return g.jsx(ie,{className:"input",children:g.jsxs(Ry,{gutters:!0,className:"fr-pb-4w fr-pt-4w fr-mb-2w",children:[g.jsx(ea,{xs:"12",sm:"8",lg:"8",children:g.jsx($y,{isLarge:!0,buttonLabel:"Match",defaultValue:e,placeholder:s,onSearch:c=>r(c.toLowerCase())},e)}),g.jsx(ea,{xs:"12",sm:"2",lg:"2",children:g.jsxs("select",{className:"fr-select",defaultValue:t||"DEFAULT",onChange:c=>o(c.target.value),children:[g.jsx("option",{value:"DEFAULT",disabled:!0,children:"Select a matcher"},"DEFAULT"),I0.map(c=>g.jsx("option",{value:c.key,children:c.label},c.key))]},t)}),g.jsx(ea,{xs:"12",sm:"2",lg:"2",children:g.jsxs("select",{className:"fr-select",defaultValue:n||"DEFAULT",disabled:!l,onChange:c=>i(c.target.value),children:[g.jsx("option",{value:"DEFAULT",disabled:!0,children:"Select a year"},"DEFAULT"),bP.map(c=>g.jsx("option",{value:c,children:c},c))]},n)})]})})}function ua({error:e}){return g.jsx(ie,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100px"},children:g.jsx(Ay,{type:"error",closeMode:"disallow",children:e})})}function SP(e,t){return t==="ror"?`https://ror.org/${e}`:t==="rnsr"?`https://appliweb.dgri.education.fr/rnsr/PresenteStruct.jsp?numNatStruct=${e}&PUBLIC=OK`:t==="paysage"?`https://paysage.staging.dataesr.ovh/structures/${e}`:null}function CP(e,t){let n=t;return e.forEach(r=>n=n.replace(r,`${r}`)),n=n.replace(/'/g,"''"),n}function TP({resultHighlights:e,setTitle:t}){const{currentQuery:n}=ds(),r=i=>t(new of(i).format({b:l=>g.jsx("strong",{children:l},JSON.stringify(l))})),o=()=>t(n);return g.jsx(ie,{fluid:!0,className:"fr-mt-2w",children:Object.entries(e.criterion).map(([i,l],s)=>g.jsxs(Vc,{children:[g.jsx(Ze,{size:"sm",color:"success",children:i}),l.map((a,u)=>g.jsx(Ze,{size:"sm",onMouseEnter:()=>r(CP(a,n)),onMouseLeave:()=>o(),children:a==null?void 0:a.join(" ")},u))]},s))})}function M0({resultData:e,resultId:t,setTitle:n}){var d,f,h,E;const{currentMatcher:r}=ds(),{results:o,enriched_results:i,highlights:l}=e,s=o.findIndex(b=>b===t),a=i[s],u=l==null?void 0:l[t],c=SP(t,r);return g.jsxs(ie,{className:"card fr-mt-2w",children:[g.jsx(Ry,{children:g.jsxs(Vc,{className:"fr-mt-2w",children:[c?g.jsx(Ze,{as:"a",href:c,target:"_blank",color:"yellow-moutarde",children:`${r} : ${t}`}):g.jsx(Ze,{color:"yellow-moutarde",children:`${r} : ${t}`}),((d=a==null?void 0:a.acronym)==null?void 0:d.length)&&g.jsx(Ze,{color:"green-archipel",children:a.acronym[0]}),((f=a==null?void 0:a.name)==null?void 0:f.length)&&g.jsx(Ze,{color:"blue-ecume",children:a.name[0]}),((h=a==null?void 0:a.city)==null?void 0:h.length)&&g.jsx(Ze,{icon:"building-line",color:"purple-glycine",children:a.city[0]}),((E=a==null?void 0:a.country)==null?void 0:E.length)&&g.jsx(Ze,{icon:"earth-line",color:"pink-macaron",children:a.country[0]})]})}),g.jsx(TP,{resultHighlights:u,setTitle:n})]})}function _P(){return g.jsx(ie,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100px"},children:g.jsx(Gc,{})})}function Dh({resultsDebug:e,resultsLogs:t}){const n=Ir();if(!e)return null;const r=o=>{var i;return((i=e.criterion)==null?void 0:i[o])??0};return g.jsxs(vE,{className:"fr-container fr-mt-3w",title:n.formatMessage({id:"debug.accordion.title"}),children:[e.strategies.map((o,i)=>g.jsxs(ie,{className:"debug-item",children:[g.jsx(Ze,{size:"sm",className:"fr-mb-3w",color:o.possibilities?"success":"error",children:`Matching ${o.equivalent_strategies.length} strategies : ${n.formatMessage({id:"possibility.count"},{count:o.possibilities})}`}),o.equivalent_strategies.map(l=>g.jsx(ie,{fluid:!0,children:g.jsxs(Vc,{className:"fr-mb-2w",children:[l.criteria.map(s=>{const a=r(s);return g.jsx(Ze,{size:"sm",color:a?"yellow-moutarde":null,children:`${s}: ${n.formatMessage({id:"match.count"},{count:a})}`})}),l.matches>0&&g.jsx(Ze,{size:"sm",color:"success",children:n.formatMessage({id:"match.count"},{count:l.matches})})]})}))]},i)),g.jsx(ie,{children:g.jsx("div",{dangerouslySetInnerHTML:{__html:t}})})]})}function jh({info:e}){return g.jsx(ie,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100px"},children:g.jsx(Ay,{type:"info",closeMode:"disallow",children:e})})}const{VITE_API_URL:PP,VITE_ELASTIC_URL:FP}={VITE_MINISTER_NAME:"Ministère|de l'enseignement|supérieur|et de la recherche",VITE_APP_NAME:"AFFILIATION MATCHER",VITE_HEADER_TAG:"",VITE_API_URL:"",VITE_VERSION:"1.0.0",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},NP=`${PP}/match`,kP=async(e,t,n)=>{const r={type:t,query:e,verbose:!0};n&&(r.year=n);const o=await fetch(NP,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(r)});if(!o.ok)throw new Error(`API error: ${o.status}`);return await o.json()};function RP(e,t,n){const{data:r,error:o,isFetching:i}=TT({queryKey:["match",e,t,n],queryFn:()=>kP(e,t,n),enabled:!!(e&&t),staleTime:3e5});return p.useMemo(()=>({data:r,isFetching:i,error:o}),[r,i,o])}function A0({matchIds:e,matchResults:t,setTitle:n}){const r=Ir();return g.jsxs(ie,{fluid:!0,children:[g.jsx(ie,{className:"fr-mt-3w",children:g.jsx(vl,{size:"md",children:r.formatMessage({id:"match.count"},{count:e.length})})}),g.jsx(ie,{fluid:!0,className:"fr-mt-3w",children:e.map((o,i)=>g.jsx(M0,{resultData:t,resultId:o,setTitle:n},i))})]})}function LP({matchIds:e,matchResults:t,setTitle:n}){var s,a;const r=Ir(),o="Others",i=99,l=(s=t==null?void 0:t.enriched_results)==null?void 0:s.reduce((u,c)=>{if(c!=null&&c.paysage_categories){const d=Math.min(...c.paysage_categories.map(f=>(f==null?void 0:f.priority)||i));c.paysage_categories.filter(f=>((f==null?void 0:f.priority)||i)===d).forEach(f=>{const h=(f==null?void 0:f.label)||o,E=(f==null?void 0:f.priority)||i;u[h]=u!=null&&u[h]?{...u[h],ids:[...u[h].ids,c.id]}:{ids:[c.id],priority:E}})}else u[o]=u!=null&&u[o]?{...u[o],ids:[...u[o].ids,c.id]}:{ids:[c.id],priority:i};return u},{});return!l||((a=Object.keys(l))==null?void 0:a.length)===1&&Object.keys(l)[0]===o?g.jsx(A0,{matchIds:e,matchResults:t,setTitle:n}):g.jsx(ie,{fluid:!0,children:Object.entries(l).sort((u,c)=>u[1].priority-c[1].priority).map(([u,c])=>g.jsxs(ie,{fluid:!0,children:[g.jsx(ie,{className:"fr-mt-3w",children:g.jsxs(vl,{size:"md",children:[u," : ",r.formatMessage({id:"match.count"},{count:c.ids.length})]})}),g.jsx(ie,{fluid:!0,className:"fr-mt-3w",children:c.ids.map((d,f)=>g.jsx(M0,{resultData:t,resultId:d,setTitle:n},f))})]}))})}function $P(){const e=Ir(),{currentQuery:t,currentMatcher:n,currentYear:r}=ds(),{data:o,isFetching:i,error:l}=RP(t,n,r),[s,a]=p.useState(t);if(p.useEffect(()=>a(t),[t]),console.log("data",o),t===null&&n===null)return null;if(!t)return g.jsx(jh,{info:e.formatMessage({id:"info.missing.query"})});if(!n)return g.jsx(jh,{info:e.formatMessage({id:"info.missing.matcher"})});if(i)return g.jsx(_P,{});if(l)return g.jsx(ua,{error:l==null?void 0:l.message});if(!o)return g.jsx(ua,{error:"No data"});if(!(o!=null&&o.results))return g.jsx(ua,{error:o==null?void 0:o.Error});const u=o,c=u.results;return c.length?g.jsxs(ie,{fluid:!0,children:[g.jsx(ie,{className:"sticky card",children:g.jsx(vl,{size:"lead",children:s})}),n==="paysage"?g.jsx(LP,{matchIds:c,matchResults:u,setTitle:a}):g.jsx(A0,{matchIds:c,matchResults:u,setTitle:a}),g.jsx(Dh,{resultsDebug:u==null?void 0:u.debug,resultsLogs:u==null?void 0:u.logs})]}):g.jsxs(ie,{fluid:!0,children:[g.jsx(ie,{className:"sticky card",children:g.jsx(vl,{size:"lead",children:s})}),g.jsx(ie,{className:"fr-mt-3w",children:g.jsx(Ze,{color:"error",children:`${n} : ${e.formatMessage({id:"match.count"},{count:0})}`})}),g.jsx(Dh,{resultsDebug:u==null?void 0:u.debug,resultsLogs:u==null?void 0:u.logs})]})}function IP(){return g.jsxs(ie,{fluid:!0,children:[g.jsx(wP,{}),g.jsx($P,{})]})}function MP(){const e=yP({locale:"en",messages:EP.en});return g.jsx(gP,{value:e,children:g.jsx(IP,{})})}function AP(){return g.jsx(kC,{children:g.jsx(bu,{element:g.jsx(HT,{}),children:g.jsx(bu,{path:"/",element:g.jsx(MP,{})})})})}const OP=new qC;ca.createRoot(document.getElementById("root")).render(g.jsx(q.StrictMode,{children:g.jsx(dS,{children:g.jsx(IC,{children:g.jsxs(fT,{client:OP,children:[g.jsx(_T,{}),g.jsx(AP,{})]})})})})); diff --git a/project/client/src/components/results/debug/index.tsx b/project/client/src/components/results/debug/index.tsx index bdd1d50..35bf417 100644 --- a/project/client/src/components/results/debug/index.tsx +++ b/project/client/src/components/results/debug/index.tsx @@ -4,8 +4,9 @@ import { MatchDebug } from "../../../types" type ResultsDebugArgs = { resultsDebug: MatchDebug + resultsLogs: string } -export default function ResultsDebug({ resultsDebug }: ResultsDebugArgs) { +export default function ResultsDebug({ resultsDebug, resultsLogs }: ResultsDebugArgs) { const intl = useIntl() if (!resultsDebug) return null @@ -40,6 +41,9 @@ export default function ResultsDebug({ resultsDebug }: ResultsDebugArgs) { ))} ))} + +
+ ) } diff --git a/project/client/src/components/results/index.tsx b/project/client/src/components/results/index.tsx index c4d3cdd..aeaba19 100644 --- a/project/client/src/components/results/index.tsx +++ b/project/client/src/components/results/index.tsx @@ -1,7 +1,7 @@ import { useEffect, useState } from "react" import { useIntl } from "react-intl" import { Container, Text, Badge } from "@dataesr/dsfr-plus" -import { MatchResults } from "../../types" +import { MatchIds, MatchResults } from "../../types" import Error from "../error" import Result from "./result" import Fetching from "../fetching" @@ -10,6 +10,81 @@ import useUrl from "../../hooks/useUrl" import Info from "../info" import useMatch from "../../hooks/useMatch" +type MatcherResultsArgs = { + matchIds: MatchIds + matchResults: MatchResults + setTitle: any +} + +function MatcherResults({ matchIds, matchResults, setTitle }: MatcherResultsArgs) { + const intl = useIntl() + return ( + + + {intl.formatMessage({ id: "match.count" }, { count: matchIds.length })} + + + {matchIds.map((id, index) => { + return + })} + + + ) +} + +function PaysageResults({ matchIds, matchResults, setTitle }: MatcherResultsArgs) { + const intl = useIntl() + + const DEFAULT_CATEGORY = "Others" + const DEFAULT_PRIORITY = 99 + + const categories = matchResults?.enriched_results?.reduce((acc, res) => { + if (res?.paysage_categories) { + const lowestPriority = Math.min(...res.paysage_categories.map((category) => category?.priority || DEFAULT_PRIORITY)) + res.paysage_categories + .filter((category) => (category?.priority || DEFAULT_PRIORITY) === lowestPriority) + .forEach((category) => { + const label = category?.label || DEFAULT_CATEGORY + const priority = category?.priority || DEFAULT_PRIORITY + acc[label] = acc?.[label] + ? { ...acc[label], ids: [...acc[label].ids, res.id] } + : { ids: [res.id], priority: priority } + }) + } else { + acc[DEFAULT_CATEGORY] = acc?.[DEFAULT_CATEGORY] + ? { ...acc[DEFAULT_CATEGORY], ids: [...acc[DEFAULT_CATEGORY].ids, res.id] } + : { ids: [res.id], priority: DEFAULT_PRIORITY } + } + return acc + }, {} as Record) + + if (!categories || (Object.keys(categories)?.length === 1 && Object.keys(categories)[0] === DEFAULT_CATEGORY)) + return + + return ( + + {Object.entries(categories) + .sort((a, b) => a[1].priority - b[1].priority) + .map(([key, values]) => ( + + + + {key} + {" : "} + {intl.formatMessage({ id: "match.count" }, { count: values.ids.length })} + + + + {values.ids.map((id, index) => { + return + })} + + + ))} + + ) +} + export default function Results() { const intl = useIntl() const { currentQuery, currentMatcher, currentYear } = useUrl() @@ -42,7 +117,7 @@ export default function Results() { {`${currentMatcher} : ${intl.formatMessage({ id: "match.count" }, { count: 0 })}`} - + ) @@ -51,16 +126,12 @@ export default function Results() { {currentTitle} - - {intl.formatMessage({ id: "match.count" }, { count: matchIds.length })} - - - {matchIds.map((id, index) => { - return - })} - - - {/*
*/} + {currentMatcher === "paysage" ? ( + + ) : ( + + )} + ) } diff --git a/project/client/src/locales/en.json b/project/client/src/locales/en.json index 09cc2ed..85a21e6 100644 --- a/project/client/src/locales/en.json +++ b/project/client/src/locales/en.json @@ -1,7 +1,7 @@ { "info.missing.query": "Please enter a text affiliation", "info.missing.matcher": "Please select a matcher", - "debug.accordion.title": "Matching details", + "debug.accordion.title": "Matching logs", "match.count": "{count, plural, =0 {# matches} one {# match} other {# matches}}", "possibility.count": "{count, plural, =0 {# possibilities} one {# possibility} other {# possibilities}}" } \ No newline at end of file diff --git a/project/client/src/types/index.ts b/project/client/src/types/index.ts index d0f2f82..ebbfbf2 100644 --- a/project/client/src/types/index.ts +++ b/project/client/src/types/index.ts @@ -7,6 +7,7 @@ export type MatchEnrichedResult = { acronym?: Array city?: Array country?: Array + paysage_categories?: Array<{ id: string; label?: string; priority?: number }> } export type MatchEnrichedResults = Array diff --git a/project/server/main/load_paysage.py b/project/server/main/load_paysage.py index 85f94ff..1b16b24 100644 --- a/project/server/main/load_paysage.py +++ b/project/server/main/load_paysage.py @@ -127,7 +127,7 @@ def load_paysage(index_prefix: str = "matcher") -> dict: for criterion_value in criterion_values: if criterion_value not in es_data[criterion]: es_data[criterion][criterion_value] = [] - es_data[criterion][criterion_value].append({"id": data_point["id"], "categories": data_point["categories"]}) + es_data[criterion][criterion_value].append({"id": data_point["id"]}) # Bulk insert data into ES actions = [] diff --git a/project/server/main/matcher.py b/project/server/main/matcher.py index 074957c..77357e3 100644 --- a/project/server/main/matcher.py +++ b/project/server/main/matcher.py @@ -160,9 +160,10 @@ def clean_highlights(highlights: dict): if criteria not in new_highlights[match_id]["criterion"]: new_highlights[match_id]["criterion"][criteria] = [] for highlight in highlights[strategy][match_id][criteria]: + highlight = " ".join(highlight) logger.debug(f"highlight: {highlight}") new_highlights[match_id]["criterion"][criteria].append( - [tag.text for tag in BeautifulSoup(highlight[0], "lxml").find_all("em")] + list(set([tag.text for tag in BeautifulSoup(highlight, "lxml").find_all("em")])) ) return new_highlights @@ -193,10 +194,16 @@ def enrich_results(self, results, method): url = f"{PAYSAGE_API_URL}/relations?limit=100&filters[relationTag]=structure-categorie&filters[resourceId]={r}" response = requests.get(url=url, headers=headers) data = response.json().get("data") - categories = [d.get("relatedObjectId") for d in data if d.get("relatedObjectId") in CATEGORIES] - elt["paysage_categories"] = [ - {"category": category, "label": CATEGORIES[category]} for category in categories + categories = [ + { + "id": d.get("relatedObjectId"), + "label": d.get("relatedObject", {}).get("displayName"), + "priority": d.get("relatedObject", {}).get("priority"), + } + for d in data + if d.get("relatedObjectId") in CATEGORIES ] + elt["paysage_categories"] = categories except: pass @@ -220,7 +227,8 @@ def match(self, method: str = None, conditions: dict = None, strategies: list = verbose = conditions.get('verbose', False) index_prefix = conditions.get('index_prefix', 'matcher') query = conditions.get('query', '') - logs = f'

🔍 {query}

' + # logs = f'

🔍 {query}

' + logs = "" debug = {"criterion": {}, "strategies": []} logger.debug(f"method {method}") logger.debug(f"query {query}") @@ -232,7 +240,7 @@ def match(self, method: str = None, conditions: dict = None, strategies: list = equivalent_strategies_results = None equivalent_strategies_matches = [] all_hits = {} - logs += f'
- Matching equivalent strategies : {equivalent_strategies}
' + # logs += f'
- Matching equivalent strategies : {equivalent_strategies}
' for strategy in equivalent_strategies: strategy_results = None for criterion in strategy: @@ -277,7 +285,7 @@ def match(self, method: str = None, conditions: dict = None, strategies: list = else: # Intersection strategy_results = [result for result in strategy_results if result in criteria_results] - logs += f'Criteria : {criterion} : {len(criteria_results)} matches
' + # logs += f'Criteria : {criterion} : {len(criteria_results)} matches
' debug["criterion"][criterion] = len(criteria_results) equivalent_strategies_matches.append(len(strategy_results)) if equivalent_strategies_results is None: @@ -287,9 +295,9 @@ def match(self, method: str = None, conditions: dict = None, strategies: list = equivalent_strategies_results += strategy_results # Remove duplicates equivalent_strategies_results = list(set(equivalent_strategies_results)) - logs += f'Strategy : {strategy} : {len(strategy_results)} matches
' - logs += f'Equivalent strategies have {len(equivalent_strategies_results)} possibilities that match ' \ - f'one of the strategy
' + # logs += f'Strategy : {strategy} : {len(strategy_results)} matches
' + # logs += f'Equivalent strategies have {len(equivalent_strategies_results)} possibilities that match ' \ + # f'one of the strategy
' debug["strategies"].append( { "equivalent_strategies": [ @@ -327,8 +335,9 @@ def match(self, method: str = None, conditions: dict = None, strategies: list = "index_date": index_date, "version": __version__, } - final_res = filter_submatching_results_by_criterion(final_res, conditions) - final_res = filter_submatching_results_by_all(final_res, conditions) + if method != "paysage": + final_res = filter_submatching_results_by_criterion(final_res, conditions) + final_res = filter_submatching_results_by_all(final_res, conditions) final_res['enriched_results'] = self.enrich_results(final_res['results'], method) if 'name' in conditions: similar_results = [] @@ -350,30 +359,30 @@ def match(self, method: str = None, conditions: dict = None, strategies: list = final_res['enriched_results'] = self.enrich_results(final_res['results'], method) logs = final_res['logs'] other_ids = [] - logs += '

Results: ' + # logs += '

Results: ' for result in final_res['results']: if result in correspondance: for e in correspondance[result]: if e not in other_ids: other_ids.append(e) final_res['other_ids'] = other_ids - if method == 'grid': - logs += f' {result}' - elif method == 'ror': - logs += f' ' \ - f'{result}' - elif method == 'rnsr': - logs += f' ' \ - f'{result}' - elif method == "paysage": - logs += ( - f' ' - f"{result}" - ) - else: - logs += f' {result}' + # if method == 'grid': + # logs += f' {result}' + # elif method == 'ror': + # logs += f' ' \ + # f'{result}' + # elif method == 'rnsr': + # logs += f' ' \ + # f'{result}' + # elif method == "paysage": + # logs += ( + # f' ' + # f"{result}" + # ) + # else: + # logs += f' {result}' for matching_id in final_res['highlights']: logs += f'

Explanation for {matching_id} :
' for matching_criteria in final_res['highlights'][matching_id]: