diff --git a/africanlii/forms.py b/africanlii/forms.py index 26f6a4ec5..419593c29 100644 --- a/africanlii/forms.py +++ b/africanlii/forms.py @@ -4,15 +4,15 @@ class ESDocumentFilterForm(BaseDocumentFilterForm): """Form for filtering documents in Elasticsearch. Only applies a subset of filters.""" - def filter_queryset(self, search, exclude=None): + def filter_queryset(self, search, exclude=None, filter_q=False): alphabet = self.cleaned_data.get("alphabet") jurisdictions = self.params.getlist("jurisdictions") years = self.params.getlist("years") + q = self.params.get("q") if not isinstance(exclude, list): exclude = [exclude] - # Order by title then date descending - search = search.sort("title_keyword", "-date") + search = self.order_queryset(search, exclude) if alphabet and "alphabet" not in exclude: search = search.filter( @@ -25,8 +25,20 @@ def filter_queryset(self, search, exclude=None): if years and "years" not in exclude: search = search.filter("terms", year=years) + if filter_q and q and "q" not in exclude: + search = search.query("match", title=q) + return search + def order_queryset(self, queryset, exclude=None): + sort = self.cleaned_data.get("sort") or "-date" + if sort == "title": + sort = "title_keyword" + elif sort == "-title": + sort = "-title_keyword" + queryset = queryset.sort(sort, "title_keyword") + return queryset + def filter_faceted_search(self, search): """Add filters to a faceted search object, which is a bit different to adding them to the normal search object.""" diff --git a/africanlii/locale/en/LC_MESSAGES/django.po b/africanlii/locale/en/LC_MESSAGES/django.po index 3147aef49..f363d8d4a 100644 --- a/africanlii/locale/en/LC_MESSAGES/django.po +++ b/africanlii/locale/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-10-31 08:54+0300\n" +"POT-Creation-Date: 2024-07-17 09:40+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -134,7 +134,7 @@ msgid "For more information, visit the AfricanLII and Laws.Africa with funds from the European Union, the Indigo Trust and the Sigrid Rausing Trust. The initial phase of the project runs from 2021 to 2024." msgstr "" -#: templates/peachjam/about.html:51 +#: templates/peachjam/about.html:48 msgid "Platform developers" msgstr "" -#: templates/peachjam/about.html:53 +#: templates/peachjam/about.html:50 msgid "AfricanLII is a programme of the Democratic Governance and Rights Unit at the Department of Public Law, University of Cape Town. AfricanLII helps governments, academia and non-profit organisations publish the law of African countries for sustainable open access. AfricanLII hosts curated collections on various subjects of African law, such as human rights, the environment, commercial law and finance." msgstr "" -#: templates/peachjam/about.html:61 +#: templates/peachjam/about.html:58 msgid "AfricanLII convenes a network of 16 African LIIs - a collaborative group of governments, organizations, and individuals in Africa, dedicated to free access to law on our continent." msgstr "" -#: templates/peachjam/about.html:67 +#: templates/peachjam/about.html:64 msgid "Laws.Africa helps African governments to sustainably digitise their legal information for public use, through open law software, capacity-building, training, partnerships and support. Laws.Africa’s Open Law Technology solutions lower the cost of digitisation, archival and publication of primary legal information, and create opportunities for rich interactivity, advanced research and justice sector innovation." msgstr "" -#: templates/peachjam/about.html:75 +#: templates/peachjam/about.html:72 msgid "AfricanLII and Laws.Africa collaborate in unlocking the value of African digital legal information in support of the rule of law, access to justice, and innovation." msgstr "" -#: templates/peachjam/about.html:80 +#: templates/peachjam/about.html:77 msgid "Find out more" msgstr "" -#: templates/peachjam/about.html:82 +#: templates/peachjam/about.html:79 msgid "Visit openlawafrica.org or contact us on info@laws.africa for more information." msgstr "" -#: templates/peachjam/about.html:92 +#: templates/peachjam/about.html:86 msgid "Our partners" msgstr "" @@ -443,15 +439,15 @@ msgstr "" msgid "Search African legal information" msgstr "" -#: templates/peachjam/home.html:188 +#: templates/peachjam/home.html:190 msgid "Latest Commentary" msgstr "" -#: templates/peachjam/home.html:191 +#: templates/peachjam/home.html:193 msgid "View more commentary" msgstr "" -#: templates/peachjam/home.html:197 +#: templates/peachjam/home.html:199 msgid "Collections" msgstr "" diff --git a/africanlii/locale/fr/LC_MESSAGES/django.po b/africanlii/locale/fr/LC_MESSAGES/django.po index f601412e3..ac12e764f 100644 --- a/africanlii/locale/fr/LC_MESSAGES/django.po +++ b/africanlii/locale/fr/LC_MESSAGES/django.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: 39b2fd8e1f2e7f60a21a2ff40372741a\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-10-31 08:54+0300\n" +"POT-Creation-Date: 2024-07-17 09:40+0200\n" "PO-Revision-Date: 2024-06-06 13:40\n" "Last-Translator: \n" "Language-Team: French\n" @@ -133,7 +133,7 @@ msgid "For more information, visit the site officiel de l'Union africaine et le portail de l'Agenda 2063." #: templates/africanlii/au_detail_page.html:39 -#: templates/africanlii/au_organ_detail.html:12 +#: templates/africanlii/au_organ_detail.html:11 #: templates/peachjam/_header.html:78 templates/peachjam/home.html:64 msgid "African Union Organs" msgstr "Organes de l'Union africaine" @@ -157,19 +157,12 @@ msgid "Member States" msgstr "États membres" #: templates/africanlii/au_institution_detail.html:9 -#: templates/africanlii/au_organ_detail.html:9 +#: templates/africanlii/au_organ_detail.html:8 #: templates/africanlii/member_state_detail.html:9 #: templates/africanlii/regional_economic_community_detail.html:9 msgid "African Union" msgstr "Union africaine" -#: templates/africanlii/au_institution_detail.html:37 -#: templates/africanlii/au_organ_detail.html:37 -#: templates/africanlii/member_state_detail.html:38 -#: templates/africanlii/regional_economic_community_detail.html:38 -msgid "No documents found." -msgstr "Aucun document trouvé." - #: templates/africanlii/doc_index_detail.html:8 #: templates/africanlii/doc_index_first_level.html:7 #: templates/africanlii/doc_indexes.html:4 @@ -177,8 +170,11 @@ msgstr "Aucun document trouvé." msgid "Indexes" msgstr "Index" +#: templates/africanlii/member_state_detail.html:38 +msgid "No documents found." +msgstr "Aucun document trouvé." + #: templates/peachjam/_footer.html:5 templates/peachjam/_header.html:123 -#: templates/peachjam/about.html:4 msgid "About" msgstr "À propos" @@ -202,11 +198,11 @@ msgstr "Statistiques du site" msgid "With support from" msgstr "Avec le support de" -#: templates/peachjam/_footer.html:44 templates/peachjam/_footer.html:138 +#: templates/peachjam/_footer.html:44 templates/peachjam/_footer.html:144 msgid "European Union" msgstr "Union européenne" -#: templates/peachjam/_footer.html:49 templates/peachjam/_footer.html:151 +#: templates/peachjam/_footer.html:49 templates/peachjam/_footer.html:157 #: templates/peachjam/_header.html:19 msgid "Open Law Africa" msgstr "Droit Ouvert Afrique" @@ -215,7 +211,7 @@ msgstr "Droit Ouvert Afrique" msgid "Other African Legal Information Institutions" msgstr "Autres Institutions Africaines d'information Juridique" -#: templates/peachjam/_footer.html:118 +#: templates/peachjam/_footer.html:124 msgid "University of Cape Town" msgstr "Université du Cap" @@ -288,63 +284,63 @@ msgstr "Articles" msgid "Help" msgstr "Aide" -#: templates/peachjam/about.html:9 +#: templates/peachjam/about.html:4 msgid "About the platform" msgstr "À propos de la plateforme" -#: templates/peachjam/about.html:11 +#: templates/peachjam/about.html:8 msgid "This Pan-African platform serves as an information clearinghouse on all aspects of the African Governance Architecture (AGA) agenda, including charters, protocols, communications, relevant legal decisions, policy, implementation, monitoring, and related material. The overall objective is to build effective collaboration between African citizens and civil society organisations on the one hand, and AGA members on the other, to strengthen implementation of the AGA platform’s agenda with respect to democracy, governance, and human rights. Our specific goals are to:" msgstr "Cette plate-forme panafricaine sert de centre d’information sur tous les aspects du programme de l’architecture africaine de gouvernance (AGA). y compris les chartes, les protocoles, les communications, les décisions juridiques pertinentes, la politique, la mise en œuvre, la surveillance et les documents connexes. L'objectif global est de construire une collaboration efficace entre les citoyens africains et les organisations de la société civile, d'une part, et les membres de l’AGA de l’autre, pour renforcer la mise en œuvre du programme de la plate-forme AGA en matière de démocratie, de gouvernance et de droits de l’homme. Nos objectifs spécifiques sont :" -#: templates/peachjam/about.html:22 +#: templates/peachjam/about.html:19 msgid "Increase overall awareness of the AGA agenda and popular perceptions about democracy, governance and human rights among civil society organisations (CSOs) and AGA members" msgstr "Accroître la sensibilisation générale au programme de l'AGA et aux perceptions populaires de la démocratie, de la gouvernance et des droits de l'homme parmi les organisations de la société civile (OSC) et les membres de l'AGA" -#: templates/peachjam/about.html:28 +#: templates/peachjam/about.html:25 msgid "Supply complete, accurate and re-usable AGA information to allow AGA and CSOs to work towards shared goals" msgstr "Fournir des informations complètes, précises et réutilisables sur l'AGA pour permettre à l'AGA et aux OSC de travailler à des objectifs communs" -#: templates/peachjam/about.html:33 +#: templates/peachjam/about.html:30 msgid "Capacitate civil society on all levels to access, interpret and effectively use AGA information" msgstr "Donner à la société civile, à tous les niveaux, les moyens d'accéder aux informations de l'AGA, de les interpréter et de les utiliser efficacement" -#: templates/peachjam/about.html:38 +#: templates/peachjam/about.html:35 msgid "Strengthen monitoring, develop insights, and improve national-level implementation by developing linkages between regional and member-states’ law and policy." msgstr "Renforcer le suivi, développer des idées et améliorer la mise en œuvre au niveau national en établissant des liens entre le droit et la politique des États membres et les lois régionales." -#: templates/peachjam/about.html:45 +#: templates/peachjam/about.html:42 msgid "This platform is developed and maintained jointly by AfricanLII and Laws.Africa with funds from the European Union, the Indigo Trust and the Sigrid Rausing Trust. The initial phase of the project runs from 2021 to 2024." msgstr "Cette plate-forme est développée et maintenue conjointement par AfricanLII et Laws.Africa avec les fonds de l'Union européenne, de l'Indigo Trust et de la Sigrid Rausing Trust. La phase initiale du projet est de 2021 à 2024." -#: templates/peachjam/about.html:51 +#: templates/peachjam/about.html:48 msgid "Platform developers" msgstr "Développeurs de plateformes" -#: templates/peachjam/about.html:53 +#: templates/peachjam/about.html:50 msgid "AfricanLII is a programme of the Democratic Governance and Rights Unit at the Department of Public Law, University of Cape Town. AfricanLII helps governments, academia and non-profit organisations publish the law of African countries for sustainable open access. AfricanLII hosts curated collections on various subjects of African law, such as human rights, the environment, commercial law and finance." msgstr "AfricanLII est un programme de l’Unité de la gouvernance démocratique et des droits du Département de droit public, Université du Cap. AfricanLII aide les gouvernements, les universitaires et les organisations à but non lucratif à publier la loi des pays africains pour un accès ouvert et durable. AfricanLII accueille des collections conservées sur divers sujets du droit africain, tels que les droits de l'homme, l'environnement, le droit commercial et la finance." -#: templates/peachjam/about.html:61 +#: templates/peachjam/about.html:58 msgid "AfricanLII convenes a network of 16 African LIIs - a collaborative group of governments, organizations, and individuals in Africa, dedicated to free access to law on our continent." msgstr "AfricanLII réunit un réseau de 16 LIIs africaines - un groupe collaboratif de gouvernements, d'organisations et d'individus en Afrique, qui se consacre au libre accès au droit sur notre continent." -#: templates/peachjam/about.html:67 +#: templates/peachjam/about.html:64 msgid "Laws.Africa helps African governments to sustainably digitise their legal information for public use, through open law software, capacity-building, training, partnerships and support. Laws.Africa’s Open Law Technology solutions lower the cost of digitisation, archival and publication of primary legal information, and create opportunities for rich interactivity, advanced research and justice sector innovation." msgstr "Laws.Africa soutient les gouvernements africains à numériser durablement leurs informations juridiques à usage public, par le biais de logiciels de droit ouvert, de renforcement des capacités, de formation, de partenariats et de soutien. L'Open Law Technology de Laws.Africa's réduit le coût de la numérisation, de l’archivage et de la publication d’informations juridiques primaires, et créer des opportunités pour la riche interactivité, la recherche avancée et l'innovation dans le secteur de la justice." -#: templates/peachjam/about.html:75 +#: templates/peachjam/about.html:72 msgid "AfricanLII and Laws.Africa collaborate in unlocking the value of African digital legal information in support of the rule of law, access to justice, and innovation." msgstr "AfricanLII et Laws.Africa collaborent pour libérer la valeur de l'information juridique numérique africaine afin de renforcer l'État de droit, l'accès à la justice et l'innovation." -#: templates/peachjam/about.html:80 +#: templates/peachjam/about.html:77 msgid "Find out more" msgstr "En savoir plus" -#: templates/peachjam/about.html:82 +#: templates/peachjam/about.html:79 msgid "Visit openlawafrica.org or contact us on info@laws.africa for more information." msgstr "Visitez openlawafrica.org ou contactez-nous à info@laws.africa pour plus d'informations." -#: templates/peachjam/about.html:92 +#: templates/peachjam/about.html:86 msgid "Our partners" msgstr "Nos partenaires" @@ -442,15 +438,15 @@ msgstr "Explorez la législation nationale africaine et les jugements des tribun msgid "Search African legal information" msgstr "Rechercher des informations juridiques africaines" -#: templates/peachjam/home.html:188 +#: templates/peachjam/home.html:190 msgid "Latest Commentary" msgstr "Dernier commentaire" -#: templates/peachjam/home.html:191 +#: templates/peachjam/home.html:193 msgid "View more commentary" msgstr "Voir plus de commentaires" -#: templates/peachjam/home.html:197 +#: templates/peachjam/home.html:199 msgid "Collections" msgstr "Collections" @@ -462,4 +458,3 @@ msgstr "Rapports et tutoriels" #: templates/peachjam_search/search.html:5 msgid "Search regional and national African legal information." msgstr "Rechercher des informations juridiques africaines régionales et nationales." - diff --git a/africanlii/locale/pt/LC_MESSAGES/django.po b/africanlii/locale/pt/LC_MESSAGES/django.po index f5d7eaad0..8c8c739b8 100644 --- a/africanlii/locale/pt/LC_MESSAGES/django.po +++ b/africanlii/locale/pt/LC_MESSAGES/django.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: 39b2fd8e1f2e7f60a21a2ff40372741a\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-10-31 08:54+0300\n" +"POT-Creation-Date: 2024-07-17 09:40+0200\n" "PO-Revision-Date: 2024-06-06 13:41\n" "Last-Translator: \n" "Language-Team: Portuguese\n" @@ -133,7 +133,7 @@ msgid "For more information, visit the site oficial da União Africana e o portal da Agenda 2063." #: templates/africanlii/au_detail_page.html:39 -#: templates/africanlii/au_organ_detail.html:12 +#: templates/africanlii/au_organ_detail.html:11 #: templates/peachjam/_header.html:78 templates/peachjam/home.html:64 msgid "African Union Organs" msgstr "Órgãos da União Africana" @@ -157,19 +157,12 @@ msgid "Member States" msgstr "Estados Membros" #: templates/africanlii/au_institution_detail.html:9 -#: templates/africanlii/au_organ_detail.html:9 +#: templates/africanlii/au_organ_detail.html:8 #: templates/africanlii/member_state_detail.html:9 #: templates/africanlii/regional_economic_community_detail.html:9 msgid "African Union" msgstr "União Africana" -#: templates/africanlii/au_institution_detail.html:37 -#: templates/africanlii/au_organ_detail.html:37 -#: templates/africanlii/member_state_detail.html:38 -#: templates/africanlii/regional_economic_community_detail.html:38 -msgid "No documents found." -msgstr "Nenhum documento encontrado." - #: templates/africanlii/doc_index_detail.html:8 #: templates/africanlii/doc_index_first_level.html:7 #: templates/africanlii/doc_indexes.html:4 @@ -177,8 +170,11 @@ msgstr "Nenhum documento encontrado." msgid "Indexes" msgstr "Índices" +#: templates/africanlii/member_state_detail.html:38 +msgid "No documents found." +msgstr "Nenhum documento encontrado." + #: templates/peachjam/_footer.html:5 templates/peachjam/_header.html:123 -#: templates/peachjam/about.html:4 msgid "About" msgstr "Sobre" @@ -202,11 +198,11 @@ msgstr "Estatísticas do site" msgid "With support from" msgstr "Com apoio de" -#: templates/peachjam/_footer.html:44 templates/peachjam/_footer.html:138 +#: templates/peachjam/_footer.html:44 templates/peachjam/_footer.html:144 msgid "European Union" msgstr "União Europeia" -#: templates/peachjam/_footer.html:49 templates/peachjam/_footer.html:151 +#: templates/peachjam/_footer.html:49 templates/peachjam/_footer.html:157 #: templates/peachjam/_header.html:19 msgid "Open Law Africa" msgstr "Lei Aberta África" @@ -215,7 +211,7 @@ msgstr "Lei Aberta África" msgid "Other African Legal Information Institutions" msgstr "Outras Instituições Jurídicas Africanas" -#: templates/peachjam/_footer.html:118 +#: templates/peachjam/_footer.html:124 msgid "University of Cape Town" msgstr "Universidade da Cidade do Cabo" @@ -288,63 +284,63 @@ msgstr "Artigos" msgid "Help" msgstr "Socorro" -#: templates/peachjam/about.html:9 +#: templates/peachjam/about.html:4 msgid "About the platform" msgstr "Sobre a plataforma" -#: templates/peachjam/about.html:11 +#: templates/peachjam/about.html:8 msgid "This Pan-African platform serves as an information clearinghouse on all aspects of the African Governance Architecture (AGA) agenda, including charters, protocols, communications, relevant legal decisions, policy, implementation, monitoring, and related material. The overall objective is to build effective collaboration between African citizens and civil society organisations on the one hand, and AGA members on the other, to strengthen implementation of the AGA platform’s agenda with respect to democracy, governance, and human rights. Our specific goals are to:" msgstr "Esta plataforma Pan-Africana serve como um centro de informação sobre todos os aspectos da agenda da Arquitetura Governativa Africana (AGA), incluindo cartas, protocolos, comunicações, decisões jurídicas relevantes, política, implementação, monitorização e material conexo. O objectivo global é construir uma colaboração eficaz entre os cidadãos africanos e as organizações da sociedade civil, por um lado, e os membros da AGA, por outro lado, para reforçar a implementação da agenda da plataforma AGA no que diz respeito à democracia, à governação e aos direitos humanos. Nossos objetivos específicos são:" -#: templates/peachjam/about.html:22 +#: templates/peachjam/about.html:19 msgid "Increase overall awareness of the AGA agenda and popular perceptions about democracy, governance and human rights among civil society organisations (CSOs) and AGA members" msgstr "Aumentar a consciência geral da agenda AGA e percepções populares sobre democracia, governação e direitos humanos entre organizações da sociedade civil (CSO) e membros da AGA" -#: templates/peachjam/about.html:28 +#: templates/peachjam/about.html:25 msgid "Supply complete, accurate and re-usable AGA information to allow AGA and CSOs to work towards shared goals" msgstr "Informações de fornecimento completas, precisas e reutilizáveis AGA para permitir que AGA e CSOs trabalhem para alcançar metas compartilhadas" -#: templates/peachjam/about.html:33 +#: templates/peachjam/about.html:30 msgid "Capacitate civil society on all levels to access, interpret and effectively use AGA information" msgstr "Capacitar a sociedade civil a todos os níveis para acessar, interpretar e utilizar eficazmente a informação AGA" -#: templates/peachjam/about.html:38 +#: templates/peachjam/about.html:35 msgid "Strengthen monitoring, develop insights, and improve national-level implementation by developing linkages between regional and member-states’ law and policy." msgstr "Reforçar a monitorização, desenvolver ideias e melhorar a implementação a nível nacional através do desenvolvimento de ligações entre a legislação e a política dos Estados Membros e a legislação regional." -#: templates/peachjam/about.html:45 +#: templates/peachjam/about.html:42 msgid "This platform is developed and maintained jointly by AfricanLII and Laws.Africa with funds from the European Union, the Indigo Trust and the Sigrid Rausing Trust. The initial phase of the project runs from 2021 to 2024." msgstr "Essa plataforma é desenvolvida e mantida conjuntamente por AfricanLII e Leis. frica com fundos da União Europeia, do Indigo Trust e do Sigrid Rausing Trust. A fase inicial do projecto vai de 2021 para 2024." -#: templates/peachjam/about.html:51 +#: templates/peachjam/about.html:48 msgid "Platform developers" msgstr "Desenvolvedores da plataforma" -#: templates/peachjam/about.html:53 +#: templates/peachjam/about.html:50 msgid "AfricanLII is a programme of the Democratic Governance and Rights Unit at the Department of Public Law, University of Cape Town. AfricanLII helps governments, academia and non-profit organisations publish the law of African countries for sustainable open access. AfricanLII hosts curated collections on various subjects of African law, such as human rights, the environment, commercial law and finance." msgstr "AfricanLII é um programa da Unidade de Governação Democrática e Direitos do Departamento de Direito Público, Universidade da Cidade do Cabo. AfricanLII ajuda os governos, as organizações acadêmicas e sem fins lucrativos a publicarem a lei dos países africanos para um acesso aberto sustentável. AfricanLII acolhe colecções curadas sobre vários assuntos do direito africano, como os direitos humanos, o ambiente, o direito comercial e as finanças." -#: templates/peachjam/about.html:61 +#: templates/peachjam/about.html:58 msgid "AfricanLII convenes a network of 16 African LIIs - a collaborative group of governments, organizations, and individuals in Africa, dedicated to free access to law on our continent." msgstr "AfricanLII convoca uma rede de 16 LIIs Africanas - um grupo colaborativo de governos. organizações e indivíduos de África dedicados ao livre acesso à lei no nosso continente." -#: templates/peachjam/about.html:67 +#: templates/peachjam/about.html:64 msgid "Laws.Africa helps African governments to sustainably digitise their legal information for public use, through open law software, capacity-building, training, partnerships and support. Laws.Africa’s Open Law Technology solutions lower the cost of digitisation, archival and publication of primary legal information, and create opportunities for rich interactivity, advanced research and justice sector innovation." msgstr "Leis. frica ajuda os governos africanos a digitalizarem de forma sustentável suas informações legais para uso público, através de software de direito aberto, desenvolvimento de capacidades, treinamento, parcerias e apoio. Leis. As soluções de Tecnologias da Lei Aberta reduzem o custo da digitalização, arquivo e publicação das informações legais primárias. e criar oportunidades para uma rica interactividade, investigação avançada e inovação no sector da justiça." -#: templates/peachjam/about.html:75 +#: templates/peachjam/about.html:72 msgid "AfricanLII and Laws.Africa collaborate in unlocking the value of African digital legal information in support of the rule of law, access to justice, and innovation." msgstr "AfricanLII e Leis. frica colaborar na realização do valor da informação digital africana em apoio do Estado de direito, do acesso à justiça e da inovação." -#: templates/peachjam/about.html:80 +#: templates/peachjam/about.html:77 msgid "Find out more" msgstr "Descubra mais" -#: templates/peachjam/about.html:82 +#: templates/peachjam/about.html:79 msgid "Visit openlawafrica.org or contact us on info@laws.africa for more information." msgstr "Visite openlawafrica.org ou contacte-nos em info@laws.africa para mais informações." -#: templates/peachjam/about.html:92 +#: templates/peachjam/about.html:86 msgid "Our partners" msgstr "Nossos parceiros" @@ -442,15 +438,15 @@ msgstr "Explore a legislação nacional africana e as decisões judiciais dos In msgid "Search African legal information" msgstr "Pesquisar informações legais africanas" -#: templates/peachjam/home.html:188 +#: templates/peachjam/home.html:190 msgid "Latest Commentary" msgstr "Comentário mais recente" -#: templates/peachjam/home.html:191 +#: templates/peachjam/home.html:193 msgid "View more commentary" msgstr "Ver mais comentários" -#: templates/peachjam/home.html:197 +#: templates/peachjam/home.html:199 msgid "Collections" msgstr "Coleções" @@ -462,4 +458,3 @@ msgstr "Relatórios e guias" #: templates/peachjam_search/search.html:5 msgid "Search regional and national African legal information." msgstr "Pesquise informações legais africanas regionais e nacionais." - diff --git a/africanlii/locale/sw/LC_MESSAGES/django.po b/africanlii/locale/sw/LC_MESSAGES/django.po index e2ec2d281..35560197e 100644 --- a/africanlii/locale/sw/LC_MESSAGES/django.po +++ b/africanlii/locale/sw/LC_MESSAGES/django.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: 39b2fd8e1f2e7f60a21a2ff40372741a\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-10-31 08:54+0300\n" +"POT-Creation-Date: 2024-07-17 09:40+0200\n" "PO-Revision-Date: 2024-06-06 13:41\n" "Last-Translator: \n" "Language-Team: Swahili\n" @@ -133,7 +133,7 @@ msgid "For more information, visit the ya Umoja wa Afrika na programu ya Ajenda ya 2063." #: templates/africanlii/au_detail_page.html:39 -#: templates/africanlii/au_organ_detail.html:12 +#: templates/africanlii/au_organ_detail.html:11 #: templates/peachjam/_header.html:78 templates/peachjam/home.html:64 msgid "African Union Organs" msgstr "Mashirika ya Umoja wa Afrika" @@ -157,19 +157,12 @@ msgid "Member States" msgstr "Nchi Wanachama" #: templates/africanlii/au_institution_detail.html:9 -#: templates/africanlii/au_organ_detail.html:9 +#: templates/africanlii/au_organ_detail.html:8 #: templates/africanlii/member_state_detail.html:9 #: templates/africanlii/regional_economic_community_detail.html:9 msgid "African Union" msgstr "Umoja wa Afrika" -#: templates/africanlii/au_institution_detail.html:37 -#: templates/africanlii/au_organ_detail.html:37 -#: templates/africanlii/member_state_detail.html:38 -#: templates/africanlii/regional_economic_community_detail.html:38 -msgid "No documents found." -msgstr "Hakuna nyaraka zilizopatikana." - #: templates/africanlii/doc_index_detail.html:8 #: templates/africanlii/doc_index_first_level.html:7 #: templates/africanlii/doc_indexes.html:4 @@ -177,8 +170,11 @@ msgstr "Hakuna nyaraka zilizopatikana." msgid "Indexes" msgstr "Faharasa" +#: templates/africanlii/member_state_detail.html:38 +msgid "No documents found." +msgstr "Hakuna nyaraka zilizopatikana." + #: templates/peachjam/_footer.html:5 templates/peachjam/_header.html:123 -#: templates/peachjam/about.html:4 msgid "About" msgstr "Kuhusu" @@ -202,11 +198,11 @@ msgstr "Takwimu za Tovuti" msgid "With support from" msgstr "Kwa msaada kutoka" -#: templates/peachjam/_footer.html:44 templates/peachjam/_footer.html:138 +#: templates/peachjam/_footer.html:44 templates/peachjam/_footer.html:144 msgid "European Union" msgstr "Umoja wa Ulaya" -#: templates/peachjam/_footer.html:49 templates/peachjam/_footer.html:151 +#: templates/peachjam/_footer.html:49 templates/peachjam/_footer.html:157 #: templates/peachjam/_header.html:19 msgid "Open Law Africa" msgstr "Open Law Afrika" @@ -215,7 +211,7 @@ msgstr "Open Law Afrika" msgid "Other African Legal Information Institutions" msgstr "Taasisi Nyingine za Kisheria za Afrika" -#: templates/peachjam/_footer.html:118 +#: templates/peachjam/_footer.html:124 msgid "University of Cape Town" msgstr "Chuo Kikuu cha Cape Town" @@ -288,63 +284,63 @@ msgstr "Makala" msgid "Help" msgstr "Msaada" -#: templates/peachjam/about.html:9 +#: templates/peachjam/about.html:4 msgid "About the platform" msgstr "Kuhusu jukwaa" -#: templates/peachjam/about.html:11 +#: templates/peachjam/about.html:8 msgid "This Pan-African platform serves as an information clearinghouse on all aspects of the African Governance Architecture (AGA) agenda, including charters, protocols, communications, relevant legal decisions, policy, implementation, monitoring, and related material. The overall objective is to build effective collaboration between African citizens and civil society organisations on the one hand, and AGA members on the other, to strengthen implementation of the AGA platform’s agenda with respect to democracy, governance, and human rights. Our specific goals are to:" msgstr "Jukwaa hili la Pan-African hutumika kama sehemu ya taarifa kuhusu vipengele vyote vya ajenda ya Muundo wa Utawala Kiafrika (AGA), ikijumuisha mikataba, itifaki, mawasiliano, maamuzi muhimu ya kisheria, sera, utekelezaji, ufuatiliaji na maandiko yanayohusiana. Lengo la jumla ni kujenga ushirikiano mzuri kati ya raia wa Afrika na vyama vya kiraia kwa upande mmoja, na wanachama wa AGA kwa upande mwingine, ili kuimarisha utekelezaji wa ajenda ya jukwaa la AGA kwa kuheshimu demokrasia, utawala na haki za binadamu. Malengo yetu mahususi ni:" -#: templates/peachjam/about.html:22 +#: templates/peachjam/about.html:19 msgid "Increase overall awareness of the AGA agenda and popular perceptions about democracy, governance and human rights among civil society organisations (CSOs) and AGA members" msgstr "Kuongeza uelewa wa jumla wa ajenda ya AGA na mitazamo maarufu kuhusu demokrasia, utawala na haki za binadamu miongoni mwa vyama vya kiraia (CSOs) na wanachama wa AGA" -#: templates/peachjam/about.html:28 +#: templates/peachjam/about.html:25 msgid "Supply complete, accurate and re-usable AGA information to allow AGA and CSOs to work towards shared goals" msgstr "Kutoa taarifa ya AGA iliyo kamili, sahihi na inayoweza kutumika tena ili kuruhusu AGA na AZAKI kufanyia kazi malengo ya pamoja" -#: templates/peachjam/about.html:33 +#: templates/peachjam/about.html:30 msgid "Capacitate civil society on all levels to access, interpret and effectively use AGA information" msgstr "Kuwezesha vyama vya kiraia katika ngazi zote kupata, kutafsiri na kutumia ipasavyo taarifa za AGA" -#: templates/peachjam/about.html:38 +#: templates/peachjam/about.html:35 msgid "Strengthen monitoring, develop insights, and improve national-level implementation by developing linkages between regional and member-states’ law and policy." msgstr "Kuimarisha ufuatiliaji, kuendeleza maarifa, na kuboresha utekelezaji wa ngazi ya kitaifa kwa kuendeleza uhusiano kati ya sheria na sera za kanda na nchi wanachama." -#: templates/peachjam/about.html:45 +#: templates/peachjam/about.html:42 msgid "This platform is developed and maintained jointly by AfricanLII and Laws.Africa with funds from the European Union, the Indigo Trust and the Sigrid Rausing Trust. The initial phase of the project runs from 2021 to 2024." msgstr "Jukwaa hili linaandaliwa na kudumishwa kwa pamoja na AfricanLII na Laws.Africa kwa fedha kutoka Umoja wa Ulaya, Indigo Trust na Sigrid Rausing Trust. Awamu ya awali ya mradi inaanza 2021 hadi 2024." -#: templates/peachjam/about.html:51 +#: templates/peachjam/about.html:48 msgid "Platform developers" msgstr "Waandaaji wa jukwaa" -#: templates/peachjam/about.html:53 +#: templates/peachjam/about.html:50 msgid "AfricanLII is a programme of the Democratic Governance and Rights Unit at the Department of Public Law, University of Cape Town. AfricanLII helps governments, academia and non-profit organisations publish the law of African countries for sustainable open access. AfricanLII hosts curated collections on various subjects of African law, such as human rights, the environment, commercial law and finance." msgstr "AfricanLII ni programu ya Kitengo cha Utawala na Haki za Kidemokrasia katika Idara ya Sheria ya Umma, Chuo Kikuu cha Cape Town. AfricanLII husaidia serikali, wasomi na mashirika yasiyo ya kibiashara kuchapisha sheria ya nchi za Afrika kwa ajili ya uendelevu wa kupatikana kwa uwazi. AfricanLII huandaa makusanyo ya masuala mbalimbali ya sheria za Afrika, kama vile haki za binadamu, mazingira, sheria za biashara na fedha." -#: templates/peachjam/about.html:61 +#: templates/peachjam/about.html:58 msgid "AfricanLII convenes a network of 16 African LIIs - a collaborative group of governments, organizations, and individuals in Africa, dedicated to free access to law on our continent." msgstr "AfricanLII inakusanya mtandao wa LII 16 za Afrika - kikundi shirikishi cha serikali, mashirika, na watu binafsi barani Afrika, wanaojitolea kutoa sheria bila malipo katika bara letu." -#: templates/peachjam/about.html:67 +#: templates/peachjam/about.html:64 msgid "Laws.Africa helps African governments to sustainably digitise their legal information for public use, through open law software, capacity-building, training, partnerships and support. Laws.Africa’s Open Law Technology solutions lower the cost of digitisation, archival and publication of primary legal information, and create opportunities for rich interactivity, advanced research and justice sector innovation." msgstr "Sheria.Afrika husaidia serikali za Afrika kuweka taarifa zao za sheria kwa njia endelevu kwa ajili ya matumizi ya umma, kupitia programu za kompyuta za sheria huria, kujenga uwezo, mafunzo, ubia na msaada. Masuluhisho ya Teknolojia ya Sheria Huria ya Sheria.Afrika yanapunguza gharama ya kuweka kidijiti, kuhifadhi kumbukumbu na uchapishaji wa taarifa za msingi za sheria, na kutoa fursa za uchangamani mkubwa, utafiti wa hali ya juu na uvumbuzi wa sekta ya haki." -#: templates/peachjam/about.html:75 +#: templates/peachjam/about.html:72 msgid "AfricanLII and Laws.Africa collaborate in unlocking the value of African digital legal information in support of the rule of law, access to justice, and innovation." msgstr "AfricanLII na Laws.Africa inashirikiana katika kufungua thamani ya taarifa za kisheria za kidijiti za Afrika katika kuunga mkono utawala wa sheria, upatikanaji wa haki, na uvumbuzi." -#: templates/peachjam/about.html:80 +#: templates/peachjam/about.html:77 msgid "Find out more" msgstr "Pata maelezo zaidi" -#: templates/peachjam/about.html:82 +#: templates/peachjam/about.html:79 msgid "Visit openlawafrica.org or contact us on info@laws.africa for more information." msgstr "Tembelea openlawafrica.org au wasiliana nasi kwa info@laws.africa kwa maelezo zaidi." -#: templates/peachjam/about.html:92 +#: templates/peachjam/about.html:86 msgid "Our partners" msgstr "Washirika wetu" @@ -442,15 +438,15 @@ msgstr "Gundua sheria za kitaifa za Kiafrika na hukumu za mahakama kutoka Taasis msgid "Search African legal information" msgstr "Tafuta habari za kisheria za Afrika" -#: templates/peachjam/home.html:188 +#: templates/peachjam/home.html:190 msgid "Latest Commentary" msgstr "Maoni ya Hivi Karibuni" -#: templates/peachjam/home.html:191 +#: templates/peachjam/home.html:193 msgid "View more commentary" msgstr "Tazama maoni zaidi" -#: templates/peachjam/home.html:197 +#: templates/peachjam/home.html:199 msgid "Collections" msgstr "Makusanyo" @@ -462,4 +458,3 @@ msgstr "Ripoti na Miongozo" #: templates/peachjam_search/search.html:5 msgid "Search regional and national African legal information." msgstr "Tafuta taarifa za kisheria za kikanda na kitaifa za Afrika." - diff --git a/africanlii/templates/africanlii/au_detail_page.html b/africanlii/templates/africanlii/au_detail_page.html index cc2315373..d76dd1522 100644 --- a/africanlii/templates/africanlii/au_detail_page.html +++ b/africanlii/templates/africanlii/au_detail_page.html @@ -9,7 +9,7 @@ {% block breadcrumbs %}{% endblock %} {% block page-heading %}

{% trans 'African Union (AU)' %}

- {% include "peachjam/_help_button.html" with link="african-union-documents-au" %} + {% include "peachjam/_help_button.html" with help_link="african-union-documents-au" %} {% endblock %}

{% blocktrans trimmed %} diff --git a/africanlii/templates/africanlii/au_institution_detail.html b/africanlii/templates/africanlii/au_institution_detail.html index afaff7663..641629daf 100644 --- a/africanlii/templates/africanlii/au_institution_detail.html +++ b/africanlii/templates/africanlii/au_institution_detail.html @@ -25,15 +25,11 @@ {% endif %} {% endwith %} {% endblock %} +{% block page-title %}

{{ obj }}

{% endblock %} {% block page-header %} -

{{ obj }}

- {% include 'peachjam/_document_count.html' %} + {{ block.super }} {% include 'peachjam/_years_list.html' with showallyears=True %} {% endblock %} {% block content %} - {% if documents %} - {% include 'peachjam/_document_table.html' %} - {% else %} -

{% trans 'No documents found.' %}

- {% endif %} + {% include 'peachjam/_document_table.html' %} {% endblock %} diff --git a/africanlii/templates/africanlii/au_organ_detail.html b/africanlii/templates/africanlii/au_organ_detail.html index 8a097870b..32aaedd20 100644 --- a/africanlii/templates/africanlii/au_organ_detail.html +++ b/africanlii/templates/africanlii/au_organ_detail.html @@ -1,6 +1,5 @@ -{% extends 'peachjam/layouts/document_list.html' %} +{% extends 'africanlii/au_institution_detail.html' %} {% load i18n %} -{% block title %}{{ author }}{% endblock %} {% block breadcrumbs %}
diff --git a/liiweb/templates/liiweb/legislation_list.html b/liiweb/templates/liiweb/legislation_list.html index 3178170d7..2ff2ecea8 100644 --- a/liiweb/templates/liiweb/legislation_list.html +++ b/liiweb/templates/liiweb/legislation_list.html @@ -1,97 +1,59 @@ -{% extends "peachjam/layouts/main.html" %} +{% extends 'peachjam/layouts/document_list.html' %} {% load i18n %} {% block title %} {% trans 'Legislation' %} {% endblock %} -{% block page-content %} - {% block breadcrumbs %}{% endblock %} - {% block entity-profile %} - {% if entity_profile %} -
{% include 'peachjam/_entity_profile.html' %}
- {% endif %} - {% endblock %} -
-
- {% block page-heading %} -

{% trans 'Legislation' %}

- {% include "peachjam/_help_button.html" with link="legislation/" %} - {% endblock %} - {% block legislation-nav %} - - {% endblock %} - {% if view.variant == 'repealed' %} -
{% trans 'You are viewing repealed legislation which is no longer in force.' %}
- {% endif %} -
- {% comment %} - This ensures that peachjam has links to scrape. This content is replaced when the javacript LegislationTable - component runs. - {% endcomment %} -
    - {% for item in legislation_table %} -
  • - {{ item.title }} - {% if item.children %} - - {% endif %} -
  • - {% endfor %} -
-
- {{ legislation_table|json_script:"legislation-table" }} -
-
+{% block page-title %} +

{% trans 'Legislation' %}

+{% endblock %} +{% block nav-tabs %} + + {% if view.variant == 'repealed' %} +
{% trans 'You are viewing repealed legislation which is no longer in force.' %}
+ {% endif %} {% endblock %} diff --git a/liiweb/templates/liiweb/pocketlaw.html b/liiweb/templates/liiweb/pocketlaw.html index 2a871894d..2762aa4a5 100644 --- a/liiweb/templates/liiweb/pocketlaw.html +++ b/liiweb/templates/liiweb/pocketlaw.html @@ -22,7 +22,7 @@

Your offline {{ APP_NAME }} companion.

Get started with Pocket Law

- {% include "peachjam/_help_button.html" with link="pocket-law" %} + {% include "peachjam/_help_button.html" with help_link="pocket-law" %}
  1. Download Pocket Law {{ APP_NAME }}.
  2. Double-click the application to start the installation.
  3. diff --git a/liiweb/views/legislation.py b/liiweb/views/legislation.py index c96b6d9a2..8113ffb94 100644 --- a/liiweb/views/legislation.py +++ b/liiweb/views/legislation.py @@ -6,28 +6,32 @@ from django.utils.translation import gettext_lazy as _ from django.views.generic import TemplateView -from peachjam.helpers import chunks, get_language +from peachjam.helpers import chunks from peachjam.models import JurisdictionProfile, Legislation, Locality, pj_settings -from peachjam_api.serializers import LegislationSerializer +from peachjam.views import FilteredDocumentListView -class LegislationListView(TemplateView): +class LegislationListView(FilteredDocumentListView): template_name = "liiweb/legislation_list.html" variant = "current" navbar_link = "legislation" model = Legislation - extra_context = {"doc_table_citations": True, "legislation_list_sort": "title"} - - def get_queryset(self): - qs = ( - self.model.objects.exclude(published=False) - .distinct("work_frbr_uri") - .order_by("work_frbr_uri", "-date", "language__pk") - .preferred_language(get_language(self.request)) - ) + queryset = Legislation.objects.prefetch_related("work", "labels") + latest_expression_only = True + form_defaults = None + + def get_form(self): + self.form_defaults = {"sort": "title"} + if self.variant == "recent": + self.form_defaults = {"sort": "-date"} + return super().get_form() + + def get_base_queryset(self, *args, **kwargs): + qs = super().get_base_queryset(*args, **kwargs) + qs = self.get_variant_queryset(qs) return qs - def filter_queryset(self, qs): + def get_variant_queryset(self, qs): if self.variant == "all": pass elif self.variant == "repealed": @@ -48,17 +52,11 @@ def filter_queryset(self, qs): datetime.date.today() - timedelta(days=365) ).isoformat() ) - return qs def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) - - qs = self.filter_queryset(self.get_queryset()) - qs = qs.prefetch_related("taxonomies", "taxonomies__topic", "work") - qs = self.add_children(qs) - - context["legislation_table"] = LegislationSerializer(qs, many=True).data + self.add_children(context["documents"]) site_jurisdictions = pj_settings().document_jurisdictions.all() if site_jurisdictions.count() == 1: @@ -69,6 +67,17 @@ def get_context_data(self, **kwargs): context["entity_profile"] = jurisdiction_profile.entity_profile.first() context["entity_profile_title"] = jurisdiction_profile.jurisdiction.name + context["doc_type"] = "legislation" # for quick search + context["doc_table_toggle"] = True + context["doc_table_citations"] = True + context["doc_table_show_doc_type"] = False + context["doc_table_show_court"] = False + context["doc_table_show_author"] = False + context["doc_table_show_jurisdiction"] = False + context["help_link"] = "legislation/" + + context["documents"] = self.group_documents(context["documents"]) + return context def add_children(self, queryset): @@ -78,7 +87,7 @@ def add_children(self, queryset): ) children = defaultdict(list) - children_qs = self.get_queryset().filter( + children_qs = self.get_base_queryset().filter( parent_work_id__in=parents, repealed=False, metadata_json__principal=True ) # group children by parent @@ -86,10 +95,8 @@ def add_children(self, queryset): children[child.parent_work_id].append(child) # fold in children - qs = list(queryset) - for parent in qs: + for parent in queryset: parent.children = children.get(parent.work_id, []) - return qs class LocalityLegislationView(TemplateView): diff --git a/package-lock.json b/package-lock.json index e722824be..093fff47c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,6 +30,7 @@ "eslint-plugin-standard": "^4.0.1", "eslint-plugin-vue": "^8.5.0", "flag-icons": "^6.6.6", + "htmx.org": "^2.0.1", "i18next": "^22.0.6", "i18next-parser": "^6.5.0", "lodash.debounce": "^4.0.8", @@ -3600,6 +3601,12 @@ "entities": "^4.3.0" } }, + "node_modules/htmx.org": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/htmx.org/-/htmx.org-2.0.1.tgz", + "integrity": "sha512-wO/rWlveSLD2mzRS9Em0v5hlsi6r21iUvaS17GPMgehBbM7eoQmqGQCkscsM67poF24zONgq3gQv+q/cgCHn2w==", + "dev": true + }, "node_modules/human-signals": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", diff --git a/package.json b/package.json index 0c0bfd052..7ef2cf475 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "eslint-plugin-standard": "^4.0.1", "eslint-plugin-vue": "^8.5.0", "flag-icons": "^6.6.6", + "htmx.org": "^2.0.1", "i18next": "^22.0.6", "i18next-parser": "^6.5.0", "lodash.debounce": "^4.0.8", diff --git a/peachjam/forms.py b/peachjam/forms.py index a43329f69..4d1c449c7 100644 --- a/peachjam/forms.py +++ b/peachjam/forms.py @@ -85,14 +85,28 @@ class BaseDocumentFilterForm(forms.Form): registries = forms.CharField(required=False) attorneys = forms.CharField(required=False) outcomes = forms.CharField(required=False) - - def __init__(self, data, *args, **kwargs): + taxonomies = forms.CharField(required=False) + q = forms.CharField(required=False) + + sort = forms.ChoiceField( + required=False, + choices=[ + ("title", _("Title") + " (A - Z)"), + ("-title", _("Title") + " (Z - A)"), + ("-date", _("Date") + " " + _("(Newest first)")), + ("date", _("Date") + " " + _("(Oldest first)")), + ], + ) + + def __init__(self, defaults, data, *args, **kwargs): self.params = QueryDict(mutable=True) + self.params.update({"sort": "title"}) + self.params.update(defaults or {}) self.params.update(data) super().__init__(self.params, *args, **kwargs) - def filter_queryset(self, queryset, exclude=None): + def filter_queryset(self, queryset, exclude=None, filter_q=False): years = self.params.getlist("years") alphabet = self.cleaned_data.get("alphabet") authors = self.params.getlist("authors") @@ -104,6 +118,8 @@ def filter_queryset(self, queryset, exclude=None): registries = self.params.getlist("registries") attorneys = self.params.getlist("attorneys") outcomes = self.params.getlist("outcomes") + taxonomies = self.params.getlist("taxonomies") + q = self.params.get("q") queryset = self.order_queryset(queryset, exclude) @@ -123,7 +139,7 @@ def filter_queryset(self, queryset, exclude=None): queryset = queryset.filter(doc_type__in=doc_type) if judges and exclude != "judges": - queryset = queryset.filter(judges__name__in=judges) + queryset = queryset.filter(judges__name__in=judges).distinct() if natures and exclude != "natures": queryset = queryset.filter(nature__name__in=natures) @@ -135,18 +151,22 @@ def filter_queryset(self, queryset, exclude=None): queryset = queryset.filter(registry__name__in=registries) if attorneys and exclude != "attorneys": - queryset = queryset.filter(attorneys__name__in=attorneys) + queryset = queryset.filter(attorneys__name__in=attorneys).distinct() if outcomes and exclude != "outcomes": queryset = queryset.filter(outcomes__name__in=outcomes).distinct() + if taxonomies and exclude != "taxonomies": + queryset = queryset.filter(taxonomies__topic__name__in=taxonomies) + + if filter_q and q and exclude != "q": + queryset = queryset.filter(title__icontains=q) + return queryset def order_queryset(self, queryset, exclude=None): - if self.cleaned_data.get("alphabet") and exclude != "alphabet": - queryset = queryset.order_by("title") - else: - queryset = queryset.order_by("-date", "title") + sort = self.cleaned_data.get("sort") or "-date" + queryset = queryset.order_by(sort, "title") return queryset diff --git a/peachjam/js/components/LegislationTable/TableRow.vue b/peachjam/js/components/LegislationTable/TableRow.vue deleted file mode 100644 index 119be31b0..000000000 --- a/peachjam/js/components/LegislationTable/TableRow.vue +++ /dev/null @@ -1,50 +0,0 @@ - - - diff --git a/peachjam/js/components/LegislationTable/index.vue b/peachjam/js/components/LegislationTable/index.vue deleted file mode 100644 index 071570ba0..000000000 --- a/peachjam/js/components/LegislationTable/index.vue +++ /dev/null @@ -1,359 +0,0 @@ - - - diff --git a/peachjam/js/components/ListFacets.vue b/peachjam/js/components/ListFacets.vue deleted file mode 100644 index d7b2c21ce..000000000 --- a/peachjam/js/components/ListFacets.vue +++ /dev/null @@ -1,214 +0,0 @@ - - - - - diff --git a/peachjam/js/components/document-filter-form.ts b/peachjam/js/components/document-filter-form.ts new file mode 100644 index 000000000..dbf620ab4 --- /dev/null +++ b/peachjam/js/components/document-filter-form.ts @@ -0,0 +1,48 @@ +export default class DocumentFilterForm { + public root: HTMLElement; + public offCanvasUsed: boolean = false; + + constructor (root: HTMLElement) { + this.root = root; + + // setup a resize observer to move the filters when the window is resized + const observer = new ResizeObserver(() => this.moveFilters()); + observer.observe(this.root); + this.moveFilters(); + } + + moveFilters () { + // on small displays, move the filters into the offcanvas element + if (window.innerWidth < 992) { + this.moveFiltersToOffcanvas(); + } else { + this.moveFiltersToMainContent(); + } + } + + moveFiltersToOffcanvas () { + if (!this.offCanvasUsed) { + const offcanvas = this.root.querySelector('.offcanvas-body'); + const content = this.root.querySelector('.document-list-facets'); + if (offcanvas && content) { + requestAnimationFrame(() => { + offcanvas.appendChild(content); + this.offCanvasUsed = true; + }); + } + } + } + + moveFiltersToMainContent () { + if (this.offCanvasUsed) { + const wrapper = this.root.querySelector('.document-list-facets-wrapper'); + const content = this.root.querySelector('.document-list-facets'); + if (wrapper && content) { + requestAnimationFrame(() => { + wrapper.appendChild(content); + this.offCanvasUsed = false; + }); + } + } + } +} diff --git a/peachjam/js/components/document-list.ts b/peachjam/js/components/document-list.ts deleted file mode 100644 index 78e8bd222..000000000 --- a/peachjam/js/components/document-list.ts +++ /dev/null @@ -1,31 +0,0 @@ -import ListFacets from './ListFacets.vue'; -import { vueI18n } from '../i18n'; -import { createAndMountApp } from '../utils/vue-utils'; - -class DocumentList { - constructor (root: HTMLElement) { - const mountTargets: HTMLElement[] = Array.from(root.querySelectorAll('[data-list-facets]')); - const facetDataJsonElement = root.querySelector('#facet-data'); - let props : any = {}; - - if (facetDataJsonElement && facetDataJsonElement.textContent) { - props = JSON.parse(facetDataJsonElement.textContent); - - // Treaties and protocols don't have associated authors - if (window.location.href.includes('/legislation/')) { - props.authors = []; - } - } - - mountTargets.forEach(mountTarget => { - createAndMountApp({ - component: ListFacets, - props: props, - use: [vueI18n], - mountTarget - }); - }); - } -} - -export default DocumentList; diff --git a/peachjam/js/components/document-table.ts b/peachjam/js/components/document-table.ts new file mode 100644 index 000000000..e7b5a5d68 --- /dev/null +++ b/peachjam/js/components/document-table.ts @@ -0,0 +1,27 @@ +class DocumentTable { + public root: HTMLElement; + + constructor (root: HTMLElement) { + this.root = root; + this.setupSorting(); + } + + setupSorting () { + this.root.querySelectorAll('[data-sort]').forEach((el) => { + el.addEventListener('click', (e: Event) => { + this.setSort(el.getAttribute('data-sort') || ''); + }); + }); + } + + setSort (value: string) { + // find the enclosing form element and set the value of the name=sort input + const form = this.root.closest('form'); + if (form && form.sort) { + form.sort.value = value; + form.sort.dispatchEvent(new Event('change')); + } + } +} + +export default DocumentTable; diff --git a/peachjam/js/components/index.ts b/peachjam/js/components/index.ts index c1e5f637d..f9d017e07 100644 --- a/peachjam/js/components/index.ts +++ b/peachjam/js/components/index.ts @@ -1,6 +1,7 @@ import { CopyToClipboard } from './clipboard'; import { RelationshipEnrichments } from './RelationshipEnrichment'; -import DocumentList from './document-list'; +import DocumentFilterForm from './document-filter-form'; +import DocumentTable from './document-table'; import DocumentContent from './DocumentContent/index'; import NavigationSelect from './navigation-select'; import { ToggleTab } from './tabs'; @@ -9,14 +10,14 @@ import TermsOfUse from './terms-of-use'; import DocumentProblemModal from './DocumentProblemModal.vue'; import FindDocuments from './FindDocuments/index.vue'; -import LegislationTable from './LegislationTable/index.vue'; import PocketLawDownload from './PocketLawDownload.vue'; const components: Record = { // Data components CopyToClipboard, DocumentContent, - DocumentList, + DocumentFilterForm, + DocumentTable, NavigationSelect, RelationshipEnrichments, ToggleTab, @@ -26,7 +27,6 @@ const components: Record = { // Vue components DocumentProblemModal, FindDocuments, - LegislationTable, PocketLawDownload }; diff --git a/peachjam/js/locale/en/translation.json b/peachjam/js/locale/en/translation.json index 25a679a13..0b93d59bc 100644 --- a/peachjam/js/locale/en/translation.json +++ b/peachjam/js/locale/en/translation.json @@ -2,7 +2,6 @@ "{document_count} documents found": "{document_count} documents found.", "{reverse_verb} this provision": "{reverse_verb} this provision", "Advanced search": "Advanced search", - "Alphabetical": "Alphabetical", "AND": "AND", "Attorneys": "Attorneys", "Author": "Author", @@ -28,7 +27,6 @@ "Enter start date": "Enter start date", "Exact phrase": "Exact phrase", "Expand all": "Expand all", - "Filter legislation": "Filter legislation", "Filters": "Filters", "Help": "Help", "In these fields": "In these fields", @@ -43,22 +41,16 @@ "Matter type": "Matter type", "Missing information": "Missing information", "More than 10,000 documents found": "More than 10,000 documents found.", - "Multiple languages available": "Multiple languages available", - "Nature": "Nature", - "Newest first": "Newest first", "No documents match your search": "No documents match your search.", - "No legislation found": "No legislation found.", "No PDF download": "No PDF download", "No results": "No results", "NOT": "NOT", - "Oldest first": "Oldest first", "Oops, something went wrong": "Oops, something went wrong.", "OR": "OR", "Other": "Other", "Outcome": "Outcome", "Page": "Page", "Problem category": "Problem category", - "Regional body": "Regional body", "Relevance": "Relevance", "Remove": "Remove", "Report problem": "Report problem", @@ -74,17 +66,13 @@ "Show full text": "Show full text", "Something went wrong": "Something went wrong.", "Sort by": "Sort by", - "Taxonomies": "Taxonomies", "Thank you for your feedback": "Thank you for your feedback.", "The date range is invalid": "The date range is invalid", "This provision": "This provision", "This provision has been amended": "This provision has been amended", - "Title": "Title", "To the top": "To the top", - "Try searching instead": "Try searching instead", "What changed?": "What changed?", "What's the problem?": "What's the problem?", "Year": "Year", - "Years": "Years", "Your email address": "Your email address" } diff --git a/peachjam/js/locale/fr/translation.json b/peachjam/js/locale/fr/translation.json index 826233246..49c744fc6 100644 --- a/peachjam/js/locale/fr/translation.json +++ b/peachjam/js/locale/fr/translation.json @@ -2,7 +2,6 @@ "{document_count} documents found": "{document_count} documents trouvés.", "{reverse_verb} this provision": "{reverse_verb} cette disposition", "Advanced search": "Recherche avancée", - "Alphabetical": "Alphabétique", "AND": "ET", "Attorneys": "Avocats", "Author": "Auteur", @@ -28,7 +27,6 @@ "Enter start date": "Entrez la date de début", "Exact phrase": "Phrase exacte", "Expand all": "Développer tout", - "Filter legislation": "Filtrer la législation", "Filters": "Filtres", "Help": "Aide", "In these fields": "Dans ces domaines", @@ -43,22 +41,16 @@ "Matter type": "Type de matière", "Missing information": "Information manquante", "More than 10,000 documents found": "Plus de 10 000 documents retrouvés.", - "Multiple languages available": "Plusieurs langues disponibles", - "Nature": "Nature", - "Newest first": "Le plus récent d'abord", "No documents match your search": "Aucun document ne correspond à votre recherche.", - "No legislation found": "Aucune législation trouvée.", "No PDF download": "Pas de téléchargement PDF", "No results": "Aucun résultat", "NOT": "PAS", - "Oldest first": "Le plus ancien en premier", "Oops, something went wrong": "Oups, une erreur s'est produite.", "OR": "OU", "Other": "Autre", "Outcome": "Résultat", "Page": "Page", "Problem category": "Catégorie de problème", - "Regional body": "Corps régional", "Relevance": "Pertinence", "Remove": "Retirer", "Report problem": "Signaler un problème", @@ -74,17 +66,13 @@ "Show full text": "Afficher le texte intégral", "Something went wrong": "Quelque chose s'est mal passé.", "Sort by": "Trier par", - "Taxonomies": "Taxonomies", "Thank you for your feedback": "Merci pour votre avis.", "The date range is invalid": "La plage de dates n'est pas valide", "This provision": "Cette disposition", "This provision has been amended": "Cette disposition a été modifiée", - "Title": "Titre", "To the top": "En haut", - "Try searching instead": "Essayez plutôt de faire une recherche", "What changed?": "Quels sont les changements ?", "What's the problem?": "Quel est le problème?", "Year": "Année", - "Years": "Années", "Your email address": "Votre adresse e-mail" } diff --git a/peachjam/js/locale/pt/translation.json b/peachjam/js/locale/pt/translation.json index 12dd423df..583e4fd1a 100644 --- a/peachjam/js/locale/pt/translation.json +++ b/peachjam/js/locale/pt/translation.json @@ -2,7 +2,6 @@ "{document_count} documents found": "{document_count} documentos encontrados.", "{reverse_verb} this provision": "{reverse_verb} esta disposição", "Advanced search": "Pesquisa avançada", - "Alphabetical": "Alfabética", "AND": "E", "Attorneys": "Advogados", "Author": "Autor", @@ -28,7 +27,6 @@ "Enter start date": "Digite a data inicial", "Exact phrase": "Frase exata", "Expand all": "Expandir tudo", - "Filter legislation": "Filtrar legislação", "Filters": "Filtros", "Help": "Socorro", "In these fields": "Nestes campos", @@ -43,22 +41,16 @@ "Matter type": "Tipo de matéria", "Missing information": "Faltando informação", "More than 10,000 documents found": "Mais de 10.000 documentos encontrados.", - "Multiple languages available": "Vários idiomas disponíveis", - "Nature": "Natureza", - "Newest first": "Os mais novos primeiro", "No documents match your search": "Nenhum documento corresponde à sua pesquisa.", - "No legislation found": "Nenhuma legislação encontrada.", "No PDF download": "Sem download de PDF", "No results": "Nenhum resultado", "NOT": "NÃO", - "Oldest first": "Mais velhos primeiro", "Oops, something went wrong": "Ops, algo deu errado.", "OR": "OU", "Other": "Outro", "Outcome": "Resultado", "Page": "Página", "Problem category": "Categoria do problema", - "Regional body": "Corpo regional", "Relevance": "Relevância", "Remove": "Remover", "Report problem": "Reportar problema", @@ -74,17 +66,13 @@ "Show full text": "Mostrar texto completo", "Something went wrong": "Algo deu errado.", "Sort by": "Classificar por", - "Taxonomies": "Taxonomies", "Thank you for your feedback": "Obrigado pelo seu feedback.", "The date range is invalid": "O intervalo de datas é inválido", "This provision": "Esta disposição", "This provision has been amended": "Esta disposição foi alterada", - "Title": "Título", "To the top": "Para o topo", - "Try searching instead": "Tente pesquisar no lugar", "What changed?": "O que mudou?", "What's the problem?": "Qual é o problema?", "Year": "Ano", - "Years": "anos", "Your email address": "Seu endereço de email" } diff --git a/peachjam/js/locale/sw/translation.json b/peachjam/js/locale/sw/translation.json index 42c4d953f..184554abe 100644 --- a/peachjam/js/locale/sw/translation.json +++ b/peachjam/js/locale/sw/translation.json @@ -2,7 +2,6 @@ "{document_count} documents found": "Nyaraka {document_count} zilizopatikana.", "{reverse_verb} this provision": "{reverse_verb} kifungu hiki", "Advanced search": "Utafutaji wa kina", - "Alphabetical": "Kufuata alfabeti", "AND": "NA", "Attorneys": "Wanasheria", "Author": "Mwandishi", @@ -28,7 +27,6 @@ "Enter start date": "Weka tarehe ya kuanza", "Exact phrase": "Maneno halisi", "Expand all": "Panua zote", - "Filter legislation": "Sheria ya udhibiti", "Filters": "Vichujio", "Help": "Msaada", "In these fields": "Katika nyanja hizi", @@ -43,22 +41,16 @@ "Matter type": "Aina ya jambo", "Missing information": "Taarifa zinazokosekana", "More than 10,000 documents found": "Zaidi ya nyaraka10,000 zimepatikana.", - "Multiple languages available": "Lugha nyingi zinapatikana", - "Nature": "Asili", - "Newest first": "Mpya zaidi kwanza", "No documents match your search": "Hakuna hati zinazolingana na utafutaji wako.", - "No legislation found": "Hakuna sheria iliyopatikana.", "No PDF download": "Hakuna upakuaji wa PDF", "No results": "Hakuna matokeo", "NOT": "HAPANA", - "Oldest first": "Ya zamani kwanza", "Oops, something went wrong": "Oh, kuna hitilafu imetokea.", "OR": "AU", "Other": "Nyingine", "Outcome": "Matokeo", "Page": "Ukurasa", "Problem category": "Aina ya tatizo", - "Regional body": "Chombo cha kanda", "Relevance": "Muhimu", "Remove": "Ondoa", "Report problem": "Ripoti tatizo", @@ -74,17 +66,13 @@ "Show full text": "Onyesha maandishi yote", "Something went wrong": "Kuna hitilafu imetokea.", "Sort by": "Ainisha kwa", - "Taxonomies": "Taksonomia", "Thank you for your feedback": "Asante kwa maoni yako.", "The date range is invalid": "Tarehe siyo sahihi", "This provision": "Kifungu hiki", "This provision has been amended": "Kifungu hiki kimerekebishwa", - "Title": "Mada", "To the top": "Hadi juu", - "Try searching instead": "Jaribu kutafuta badala yake", "What changed?": "Nini kimebadilika?", "What's the problem?": "Tatizo ni nini?", "Year": "Mwaka", - "Years": "Miaka", "Your email address": "Baruapepe yako" } diff --git a/peachjam/js/peachjam.ts b/peachjam/js/peachjam.ts index 966220919..f0381cd9c 100644 --- a/peachjam/js/peachjam.ts +++ b/peachjam/js/peachjam.ts @@ -11,6 +11,8 @@ import '@lawsafrica/law-widgets/dist/components/la-table-of-contents-controller' import '@lawsafrica/law-widgets/dist/components/la-decorate-external-refs'; import '@lawsafrica/law-widgets/dist/components/la-decorate-internal-refs'; import '@lawsafrica/law-widgets/dist/components/la-decorate-terms'; +// @ts-ignore +import htmx from 'htmx.org'; export interface PeachJamConfig { appName: string; @@ -42,8 +44,10 @@ class PeachJam { this.setupConfig(); // add the current user agent to the root HTML element for use with pocketlaw document.documentElement.setAttribute('data-user-agent', navigator.userAgent.toLowerCase()); + this.setupHtmx(); this.setupSentry(); - this.createComponents(); + this.createComponents(document.body); + this.createVueComponents(document.body); this.setupTooltips(); this.setupPopovers(); this.scrollNavTabs(); @@ -57,32 +61,64 @@ class PeachJam { } } - createComponents () { - document.querySelectorAll('[data-component]').forEach((el) => { - const name: string | null = el.getAttribute('data-component'); - if (name && components[name]) { - // create the component and attached it to the HTML element - (el as any).component = new components[name](el); - this.components.push((el as any).component); + setupHtmx () { + window.htmx = htmx; + // htmx:load is fired both when the page loads (weird) and when new content is loaded. We only care about the latter + // case. See https://github.com/bigskysoftware/htmx/issues/1500 + const htmxHelper = { firstLoad: true}; + document.body.addEventListener('htmx:load', (e) => { + if (htmxHelper.firstLoad) { + htmxHelper.firstLoad = false; + return; } + // mount components on new elements + this.createComponents(e.target as HTMLElement); + this.createVueComponents(e.target as HTMLElement); }); + } + + createComponents (root: HTMLElement) { + if (root.getAttribute('data-component')) { + this.createComponent(root); + } + // @ts-ignore + for (const element of root.querySelectorAll('[data-component]')) { + this.createComponent(element); + } + } + createVueComponents (root: HTMLElement) { // create vue-based components - document.querySelectorAll('[data-vue-component]').forEach((el) => { - const name = el.getAttribute('data-vue-component'); - if (name && components[name]) { - const vueComp = components[name]; - createAndMountApp({ - component: vueComp, - // pass in the element's data attributes as props - props: { ...(el as HTMLElement).dataset }, - use: [vueI18n], - mountTarget: el as HTMLElement - }); - (el as any).component = vueComp; - this.components.push(vueComp); - } - }); + // @ts-ignore + for (const element of root.querySelectorAll('[data-vue-component]')) { + this.createVueComponent(element); + } + } + + createComponent (el: HTMLElement) { + const name: string | null = el.getAttribute('data-component'); + if (name && components[name]) { + // create the component and attached it to the HTML element + (el as any).component = new components[name](el); + this.components.push((el as any).component); + } + } + + createVueComponent (el: HTMLElement) { + // create vue-based components + const name = el.getAttribute('data-vue-component'); + if (name && components[name]) { + const vueComp = components[name]; + createAndMountApp({ + component: vueComp, + // pass in the element's data attributes as props + props: { ...(el as HTMLElement).dataset }, + use: [vueI18n], + mountTarget: el as HTMLElement + }); + (el as any).component = vueComp; + this.components.push(vueComp); + } } setupSentry () { diff --git a/peachjam/locale/en/LC_MESSAGES/django.po b/peachjam/locale/en/LC_MESSAGES/django.po index 0e51d4812..af30ba58a 100644 --- a/peachjam/locale/en/LC_MESSAGES/django.po +++ b/peachjam/locale/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-06 15:17+0200\n" +"POT-Creation-Date: 2024-07-17 09:40+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,106 +22,121 @@ msgstr "" msgid "Import" msgstr "" -#: admin.py:407 +#: admin.py:408 msgid "Key details" msgstr "" -#: admin.py:420 +#: admin.py:421 msgid "Additional details" msgstr "" -#: admin.py:433 admin.py:860 +#: admin.py:434 admin.py:874 msgid "Work identification" msgstr "" -#: admin.py:446 +#: admin.py:447 msgid "Content" msgstr "" -#: admin.py:454 admin.py:859 +#: admin.py:455 admin.py:873 msgid "Advanced" msgstr "" -#: admin.py:622 +#: admin.py:631 msgid "Documents published." msgstr "" -#: admin.py:624 +#: admin.py:633 msgid "Publish selected documents" msgstr "" -#: admin.py:628 +#: admin.py:637 msgid "Documents unpublished." msgstr "" -#: admin.py:630 +#: admin.py:639 msgid "Unpublish selected documents" msgstr "" -#: admin.py:710 models/judgment.py:463 models/judgment.py:499 +#: admin.py:719 models/judgment.py:469 models/judgment.py:505 msgid "case number" msgstr "" -#: admin.py:711 models/judgment.py:464 +#: admin.py:720 models/judgment.py:470 msgid "case numbers" msgstr "" -#: admin.py:719 admin.py:720 models/judgment.py:523 -msgid "case history" -msgstr "" - -#: admin.py:740 models/judgment.py:37 models/judgment.py:210 +#: admin.py:729 models/judgment.py:40 models/judgment.py:214 msgid "judge" msgstr "" -#: admin.py:741 models/judgment.py:38 models/judgment.py:247 -#: models/judgment.py:515 +#: admin.py:730 models/judgment.py:41 models/judgment.py:251 +#: models/judgment.py:521 msgid "judges" msgstr "" -#: admin.py:747 +#: admin.py:736 msgid "lower court judge" msgstr "" -#: admin.py:748 models/judgment.py:253 +#: admin.py:737 models/judgment.py:257 msgid "lower court judges" msgstr "" -#: admin.py:903 +#: admin.py:917 msgid "Refreshing content in the background." msgstr "" -#: admin.py:906 +#: admin.py:920 msgid "Refresh content for selected ingestors" msgstr "" -#: admin.py:954 +#: admin.py:968 msgid "Articles published." msgstr "" -#: admin.py:956 +#: admin.py:970 msgid "Publish selected articles" msgstr "" -#: admin.py:960 +#: admin.py:974 msgid "Articles unpublished." msgstr "" -#: admin.py:962 +#: admin.py:976 msgid "Unpublish selected articles" msgstr "" -#: forms.py:221 +#: forms.py:94 forms.py:95 templates/peachjam/_child_documents.html:7 +#: templates/peachjam/_document_table.html:13 +msgid "Title" +msgstr "" + +#: forms.py:96 forms.py:97 templates/peachjam/_case_histories.html:5 +#: templates/peachjam/_document_table.html:30 +#: templates/peachjam/layouts/document_detail.html:261 +msgid "Date" +msgstr "" + +#: forms.py:96 +msgid "(Newest first)" +msgstr "" + +#: forms.py:97 +msgid "(Oldest first)" +msgstr "" + +#: forms.py:246 msgid "Document problem reported" msgstr "" -#: models/article.py:21 models/core_document_model.py:334 -#: models/judgment.py:519 +#: models/article.py:21 models/core_document_model.py:338 +#: models/judgment.py:525 msgid "date" msgstr "" -#: models/article.py:22 models/core_document_model.py:162 -#: models/core_document_model.py:333 +#: models/article.py:22 models/core_document_model.py:166 +#: models/core_document_model.py:337 msgid "title" msgstr "" @@ -133,7 +148,7 @@ msgstr "" msgid "author" msgstr "" -#: models/article.py:31 models/core_document_model.py:741 +#: models/article.py:31 models/core_document_model.py:773 msgid "image" msgstr "" @@ -141,12 +156,12 @@ msgstr "" msgid "summary" msgstr "" -#: models/article.py:34 models/judgment.py:92 models/relationships.py:7 +#: models/article.py:34 models/judgment.py:95 models/relationships.py:7 #: models/taxonomies.py:12 msgid "slug" msgstr "" -#: models/article.py:35 models/core_document_model.py:440 +#: models/article.py:35 models/core_document_model.py:444 msgid "published" msgstr "" @@ -186,27 +201,27 @@ msgstr "" msgid "Author" msgstr "" -#: models/author.py:8 +#: models/author.py:8 views/generic_views.py:191 msgid "Authors" msgstr "" -#: models/author.py:10 models/core_document_model.py:45 -#: models/core_document_model.py:73 models/core_document_model.py:87 -#: models/core_document_model.py:813 models/ingestors.py:14 -#: models/ingestors.py:33 models/judgment.py:16 models/judgment.py:31 -#: models/judgment.py:46 models/judgment.py:61 models/judgment.py:76 -#: models/judgment.py:90 models/judgment.py:116 models/judgment.py:176 +#: models/author.py:10 models/core_document_model.py:49 +#: models/core_document_model.py:77 models/core_document_model.py:91 +#: models/core_document_model.py:864 models/ingestors.py:14 +#: models/ingestors.py:33 models/judgment.py:16 models/judgment.py:34 +#: models/judgment.py:49 models/judgment.py:64 models/judgment.py:79 +#: models/judgment.py:93 models/judgment.py:119 models/judgment.py:179 #: models/relationships.py:6 models/taxonomies.py:11 msgid "name" msgstr "" -#: models/author.py:11 models/core_document_model.py:47 -#: models/core_document_model.py:75 models/core_document_model.py:91 -#: models/judgment.py:117 models/judgment.py:177 +#: models/author.py:11 models/core_document_model.py:51 +#: models/core_document_model.py:79 models/core_document_model.py:95 +#: models/judgment.py:120 models/judgment.py:180 msgid "code" msgstr "" -#: models/author.py:14 models/core_document_model.py:93 models/judgment.py:126 +#: models/author.py:14 models/core_document_model.py:97 models/judgment.py:129 #: models/profile.py:36 models/profile.py:37 models/profile.py:47 #: models/taxonomies.py:15 msgid "profile" @@ -217,10 +232,10 @@ msgstr "" msgid "authors" msgstr "" -#: models/citations.py:19 models/core_document_model.py:736 -#: models/core_document_model.py:762 models/core_document_model.py:829 -#: models/core_document_model.py:858 models/core_document_model.py:884 -#: models/judgment.py:458 models/taxonomies.py:52 +#: models/citations.py:19 models/core_document_model.py:768 +#: models/core_document_model.py:794 models/core_document_model.py:880 +#: models/core_document_model.py:909 models/core_document_model.py:935 +#: models/judgment.py:464 models/taxonomies.py:52 msgid "document" msgstr "" @@ -264,272 +279,272 @@ msgstr "" msgid "citation processing" msgstr "" -#: models/core_document_model.py:49 +#: models/core_document_model.py:53 msgid "level" msgstr "" -#: models/core_document_model.py:63 +#: models/core_document_model.py:67 msgid "label" msgstr "" -#: models/core_document_model.py:64 models/core_document_model.py:448 +#: models/core_document_model.py:68 models/core_document_model.py:452 msgid "labels" msgstr "" -#: models/core_document_model.py:76 models/core_document_model.py:815 -#: models/judgment.py:18 models/judgment.py:33 models/judgment.py:48 -#: models/judgment.py:63 models/judgment.py:78 models/judgment.py:91 +#: models/core_document_model.py:80 models/core_document_model.py:866 +#: models/judgment.py:18 models/judgment.py:36 models/judgment.py:51 +#: models/judgment.py:66 models/judgment.py:81 models/judgment.py:94 msgid "description" msgstr "" -#: models/core_document_model.py:79 +#: models/core_document_model.py:83 msgid "document nature" msgstr "" -#: models/core_document_model.py:80 +#: models/core_document_model.py:84 msgid "document natures" msgstr "" -#: models/core_document_model.py:89 models/core_document_model.py:354 +#: models/core_document_model.py:93 models/core_document_model.py:358 #: models/profile.py:45 msgid "jurisdiction" msgstr "" -#: models/core_document_model.py:97 models/core_document_model.py:361 -#: models/judgment.py:141 +#: models/core_document_model.py:101 models/core_document_model.py:365 +#: models/judgment.py:144 msgid "locality" msgstr "" -#: models/core_document_model.py:98 +#: models/core_document_model.py:102 msgid "localities" msgstr "" -#: models/core_document_model.py:111 +#: models/core_document_model.py:115 msgid "FRBR URI" msgstr "" -#: models/core_document_model.py:115 +#: models/core_document_model.py:119 msgid "FRBR URI country" msgstr "" -#: models/core_document_model.py:121 +#: models/core_document_model.py:125 msgid "FRBR URI locality" msgstr "" -#: models/core_document_model.py:127 +#: models/core_document_model.py:131 msgid "FRBR URI place" msgstr "" -#: models/core_document_model.py:133 models/core_document_model.py:377 +#: models/core_document_model.py:137 models/core_document_model.py:381 msgid "FRBR URI doctype" msgstr "" -#: models/core_document_model.py:139 models/core_document_model.py:384 +#: models/core_document_model.py:143 models/core_document_model.py:388 msgid "FRBR URI subtype" msgstr "" -#: models/core_document_model.py:145 models/core_document_model.py:392 +#: models/core_document_model.py:149 models/core_document_model.py:396 msgid "FRBR URI actor" msgstr "" -#: models/core_document_model.py:151 models/core_document_model.py:400 +#: models/core_document_model.py:155 models/core_document_model.py:404 msgid "FRBR URI date" msgstr "" -#: models/core_document_model.py:157 models/core_document_model.py:408 +#: models/core_document_model.py:161 models/core_document_model.py:412 msgid "FRBR URI number" msgstr "" -#: models/core_document_model.py:168 +#: models/core_document_model.py:172 msgid "languages" msgstr "" -#: models/core_document_model.py:171 +#: models/core_document_model.py:175 msgid "ranking" msgstr "" -#: models/core_document_model.py:173 +#: models/core_document_model.py:177 msgid "number of cited works" msgstr "" -#: models/core_document_model.py:175 +#: models/core_document_model.py:179 msgid "number of incoming citations" msgstr "" -#: models/core_document_model.py:178 models/core_document_model.py:323 +#: models/core_document_model.py:182 models/core_document_model.py:327 msgid "work" msgstr "" -#: models/core_document_model.py:179 +#: models/core_document_model.py:183 msgid "works" msgstr "" -#: models/core_document_model.py:326 +#: models/core_document_model.py:330 msgid "document type" msgstr "" -#: models/core_document_model.py:336 models/core_document_model.py:765 +#: models/core_document_model.py:340 models/core_document_model.py:797 msgid "source URL" msgstr "" -#: models/core_document_model.py:338 +#: models/core_document_model.py:342 msgid "citation" msgstr "" -#: models/core_document_model.py:339 +#: models/core_document_model.py:343 msgid "content HTML" msgstr "" -#: models/core_document_model.py:340 +#: models/core_document_model.py:344 msgid "content HTML is AKN" msgstr "" -#: models/core_document_model.py:341 +#: models/core_document_model.py:345 msgid "TOC JSON" msgstr "" -#: models/core_document_model.py:347 +#: models/core_document_model.py:351 msgid "language" msgstr "" -#: models/core_document_model.py:368 models/core_document_model.py:832 +#: models/core_document_model.py:372 models/core_document_model.py:883 msgid "nature" msgstr "" -#: models/core_document_model.py:372 +#: models/core_document_model.py:376 msgid "work FRBR URI" msgstr "" -#: models/core_document_model.py:389 +#: models/core_document_model.py:393 msgid "Document subtype. Lowercase letters, numbers _ and - only." msgstr "" -#: models/core_document_model.py:397 +#: models/core_document_model.py:401 msgid "Originating actor. Lowercase letters, numbers _ and - only." msgstr "" -#: models/core_document_model.py:405 +#: models/core_document_model.py:409 msgid "YYYY, YYYY-MM, or YYYY-MM-DD" msgstr "" -#: models/core_document_model.py:414 +#: models/core_document_model.py:418 msgid "Unique number or short title identifying this work. Lowercase letters, numbers _ and - only." msgstr "" -#: models/core_document_model.py:419 +#: models/core_document_model.py:423 msgid "expression FRBR URI" msgstr "" -#: models/core_document_model.py:423 +#: models/core_document_model.py:427 msgid "created at" msgstr "" -#: models/core_document_model.py:424 +#: models/core_document_model.py:428 msgid "updated at" msgstr "" -#: models/core_document_model.py:430 +#: models/core_document_model.py:434 msgid "created by" msgstr "" -#: models/core_document_model.py:433 +#: models/core_document_model.py:437 msgid "allow robots" msgstr "" -#: models/core_document_model.py:436 +#: models/core_document_model.py:440 msgid "Allow this document to be indexed by search engine robots." msgstr "" -#: models/core_document_model.py:443 +#: models/core_document_model.py:447 msgid "Is this document published and visible on the website?" msgstr "" -#: models/core_document_model.py:484 +#: models/core_document_model.py:505 msgid "You cannot set a future date for the document" msgstr "" -#: models/core_document_model.py:492 +#: models/core_document_model.py:513 #, python-format msgid "Invalid FRBR URI: %(uri)s" msgstr "" -#: models/core_document_model.py:503 +#: models/core_document_model.py:524 msgid "Document with this Expression FRBR URI already exists!" msgstr "" -#: models/core_document_model.py:707 +#: models/core_document_model.py:731 msgid "filename" msgstr "" -#: models/core_document_model.py:708 +#: models/core_document_model.py:732 msgid "mimetype" msgstr "" -#: models/core_document_model.py:709 +#: models/core_document_model.py:733 msgid "size" msgstr "" -#: models/core_document_model.py:710 models/core_document_model.py:738 +#: models/core_document_model.py:734 models/core_document_model.py:770 msgid "file" msgstr "" -#: models/core_document_model.py:742 +#: models/core_document_model.py:774 msgid "images" msgstr "" -#: models/core_document_model.py:769 +#: models/core_document_model.py:800 msgid "file as pdf" msgstr "" -#: models/core_document_model.py:777 +#: models/core_document_model.py:808 msgid "source file" msgstr "" -#: models/core_document_model.py:778 +#: models/core_document_model.py:809 msgid "source files" msgstr "" -#: models/core_document_model.py:818 +#: models/core_document_model.py:869 msgid "attached file nature" msgstr "" -#: models/core_document_model.py:819 +#: models/core_document_model.py:870 msgid "attached file natures" msgstr "" -#: models/core_document_model.py:836 +#: models/core_document_model.py:887 msgid "attached file" msgstr "" -#: models/core_document_model.py:837 +#: models/core_document_model.py:888 msgid "attached files" msgstr "" -#: models/core_document_model.py:861 +#: models/core_document_model.py:912 msgid "Law report citation/Alternative known name" msgstr "" -#: models/core_document_model.py:868 +#: models/core_document_model.py:919 msgid "alternative name" msgstr "" -#: models/core_document_model.py:869 +#: models/core_document_model.py:920 msgid "alternative names" msgstr "" -#: models/core_document_model.py:889 +#: models/core_document_model.py:940 msgid "document text" msgstr "" -#: models/core_document_model.py:893 +#: models/core_document_model.py:944 msgid "document XML" msgstr "" -#: models/core_document_model.py:897 +#: models/core_document_model.py:948 msgid "document content" msgstr "" -#: models/core_document_model.py:898 +#: models/core_document_model.py:949 msgid "document contents" msgstr "" @@ -561,11 +576,15 @@ msgstr "" msgid "volume number" msgstr "" -#: models/gazette.py:28 -msgid "gazette" +#: models/gazette.py:26 +msgid "special" msgstr "" #: models/gazette.py:29 +msgid "gazette" +msgstr "" + +#: models/gazette.py:30 msgid "gazettes" msgstr "" @@ -641,164 +660,184 @@ msgstr "" msgid "attorney" msgstr "" -#: models/judgment.py:23 models/judgment.py:257 +#: models/judgment.py:23 models/judgment.py:261 msgid "attorneys" msgstr "" -#: models/judgment.py:52 +#: models/judgment.py:30 +msgid "Judge" +msgstr "" + +#: models/judgment.py:31 templates/peachjam/_case_histories.html:8 +#: templates/peachjam/layouts/document_detail.html:243 views/courts.py:61 +msgid "Judges" +msgstr "" + +#: models/judgment.py:55 msgid "order outcome" msgstr "" -#: models/judgment.py:53 +#: models/judgment.py:56 msgid "order outcomes" msgstr "" -#: models/judgment.py:67 models/judgment.py:513 +#: models/judgment.py:70 models/judgment.py:519 msgid "outcome" msgstr "" -#: models/judgment.py:68 +#: models/judgment.py:71 msgid "outcomes" msgstr "" -#: models/judgment.py:82 models/judgment.py:451 +#: models/judgment.py:85 models/judgment.py:457 msgid "matter type" msgstr "" -#: models/judgment.py:83 +#: models/judgment.py:86 msgid "matter types" msgstr "" -#: models/judgment.py:93 models/judgment.py:128 models/judgment.py:271 +#: models/judgment.py:96 models/judgment.py:131 models/judgment.py:275 msgid "order" msgstr "" -#: models/judgment.py:101 models/judgment.py:123 +#: models/judgment.py:104 models/judgment.py:126 msgid "court class" msgstr "" -#: models/judgment.py:102 +#: models/judgment.py:105 msgid "court classes" msgstr "" -#: models/judgment.py:134 +#: models/judgment.py:137 msgid "country" msgstr "" -#: models/judgment.py:149 models/judgment.py:174 models/judgment.py:237 -#: models/judgment.py:517 +#: models/judgment.py:152 models/judgment.py:177 models/judgment.py:241 +#: models/judgment.py:523 msgid "court" msgstr "" -#: models/judgment.py:150 +#: models/judgment.py:153 msgid "courts" msgstr "" -#: models/judgment.py:165 +#: models/judgment.py:168 msgid "Court registry" msgstr "" -#: models/judgment.py:166 +#: models/judgment.py:169 msgid "Court registries" msgstr "" -#: models/judgment.py:180 +#: models/judgment.py:184 msgid "court registry" msgstr "" -#: models/judgment.py:181 +#: models/judgment.py:185 msgid "court registries" msgstr "" -#: models/judgment.py:208 models/judgment.py:224 models/judgment.py:316 -#: models/judgment.py:496 +#: models/judgment.py:212 models/judgment.py:228 models/judgment.py:320 msgid "judgment" msgstr "" -#: models/judgment.py:227 +#: models/judgment.py:231 msgid "lower_court_judge" msgstr "" -#: models/judgment.py:269 +#: models/judgment.py:273 msgid "case summary" msgstr "" -#: models/judgment.py:270 +#: models/judgment.py:274 msgid "flynote" msgstr "" -#: models/judgment.py:273 +#: models/judgment.py:277 msgid "case name" msgstr "" -#: models/judgment.py:275 +#: models/judgment.py:279 msgid "Party names for use in title" msgstr "" -#: models/judgment.py:281 +#: models/judgment.py:285 msgid "serial number" msgstr "" -#: models/judgment.py:283 +#: models/judgment.py:287 msgid "Serial number for MNC, unique for a year and an author." msgstr "" -#: models/judgment.py:286 +#: models/judgment.py:290 msgid "serial number override" msgstr "" -#: models/judgment.py:289 +#: models/judgment.py:293 msgid "Specific MNC serial number assigned by the court." msgstr "" -#: models/judgment.py:293 +#: models/judgment.py:297 msgid "MNC" msgstr "" -#: models/judgment.py:295 +#: models/judgment.py:299 msgid "Media neutral citation" msgstr "" -#: models/judgment.py:302 -msgid "Auto-assign title" +#: models/judgment.py:306 +msgid "Auto-assign details" msgstr "" -#: models/judgment.py:303 -msgid "Whether or not the system should assign the title" +#: models/judgment.py:307 +msgid "Whether or not the system should assign the details" msgstr "" -#: models/judgment.py:317 +#: models/judgment.py:321 msgid "judgments" msgstr "" -#: models/judgment.py:437 +#: models/judgment.py:443 msgid "Full case number as printed on judgment" msgstr "" -#: models/judgment.py:441 +#: models/judgment.py:447 msgid "Override for full case number string" msgstr "" -#: models/judgment.py:443 +#: models/judgment.py:449 msgid "string" msgstr "" -#: models/judgment.py:444 +#: models/judgment.py:450 msgid "number" msgstr "" -#: models/judgment.py:445 +#: models/judgment.py:451 msgid "year" msgstr "" -#: models/judgment.py:506 -msgid "historical judgment" +#: models/judgment.py:502 +msgid "judgment work" +msgstr "" + +#: models/judgment.py:512 +msgid "historical judgment work" msgstr "" -#: models/judgment.py:524 +#: models/judgment.py:529 +msgid "case history" +msgstr "" + +#: models/judgment.py:530 msgid "case histories" msgstr "" +#: models/judgment.py:537 templates/peachjam/layouts/document_detail.html:127 +msgid "Case history" +msgstr "" + #: models/profile.py:13 msgid "about HTML" msgstr "" @@ -925,50 +964,54 @@ msgid "linkedin link" msgstr "" #: models/settings.py:88 -msgid "contact form URL" +msgid "youtube link" msgstr "" #: models/settings.py:91 -msgid "re-extract citations" +msgid "contact form URL" msgstr "" #: models/settings.py:94 -msgid "Pocket Law repo" +msgid "re-extract citations" msgstr "" #: models/settings.py:97 +msgid "Pocket Law repo" +msgstr "" + +#: models/settings.py:100 msgid "editor help link" msgstr "" -#: models/settings.py:103 +#: models/settings.py:106 msgid "user help link" msgstr "" -#: models/settings.py:109 +#: models/settings.py:112 msgid "admin emails" msgstr "" -#: models/settings.py:113 +#: models/settings.py:116 msgid "Enter one or more email addresses separated by spaces." msgstr "" -#: models/settings.py:116 +#: models/settings.py:119 msgid "matomo domain" msgstr "" -#: models/settings.py:120 +#: models/settings.py:123 msgid "Matomo domain (e.g. mysite.matomo.cloud)" msgstr "" -#: models/settings.py:123 +#: models/settings.py:126 msgid "matomo site ID" msgstr "" -#: models/settings.py:127 +#: models/settings.py:130 msgid "Matomo site ID (e.g. 2)" msgstr "" -#: models/settings.py:131 +#: models/settings.py:134 msgid "site settings" msgstr "" @@ -988,19 +1031,19 @@ msgstr "" msgid "document topics" msgstr "" -#: settings.py:248 +#: settings.py:251 msgid "English" msgstr "" -#: settings.py:249 +#: settings.py:252 msgid "French" msgstr "" -#: settings.py:250 +#: settings.py:253 msgid "Portuguese" msgstr "" -#: settings.py:251 +#: settings.py:254 msgid "Swahili" msgstr "" @@ -1154,13 +1197,6 @@ msgstr "" msgid "Need help? Please email {{ SUPPORT_EMAIL }}." msgstr "" -#: templates/peachjam/_case_histories.html:5 -#: templates/peachjam/_document_table.html:13 -#: templates/peachjam/_judgment_table.html:6 -#: templates/peachjam/layouts/document_detail.html:261 -msgid "Date" -msgstr "" - #: templates/peachjam/_case_histories.html:6 msgid "Case" msgstr "" @@ -1170,11 +1206,6 @@ msgstr "" msgid "Court" msgstr "" -#: templates/peachjam/_case_histories.html:8 -#: templates/peachjam/layouts/document_detail.html:243 -msgid "Judges" -msgstr "" - #: templates/peachjam/_case_histories.html:9 #: templates/peachjam/judgment_detail.html:72 msgid "Outcome" @@ -1184,12 +1215,6 @@ msgstr "" msgid "Subsidiary legislation" msgstr "" -#: templates/peachjam/_child_documents.html:7 -#: templates/peachjam/_document_table.html:6 -#: templates/peachjam/_judgment_table.html:5 -msgid "Title" -msgstr "" - #: templates/peachjam/_child_documents.html:8 msgid "Numbered title" msgstr "" @@ -1243,27 +1268,27 @@ msgstr "" msgid "Pages" msgstr "" -#: templates/peachjam/_document_content.html:140 +#: templates/peachjam/_document_content.html:141 msgid "Loading PDF..." msgstr "" -#: templates/peachjam/_document_content.html:150 +#: templates/peachjam/_document_content.html:151 #, python-format msgid "This document is %(filesize)s. Do you want to load it?" msgstr "" -#: templates/peachjam/_document_content.html:154 +#: templates/peachjam/_document_content.html:155 msgid "Load document" msgstr "" -#: templates/peachjam/_document_content.html:163 +#: templates/peachjam/_document_content.html:164 msgid "To the top" msgstr "" #: templates/peachjam/_document_count.html:3 #, python-format -msgid "%(doc_count)s document" -msgid_plural "%(doc_count)s documents" +msgid "%(n_docs)s document" +msgid_plural "%(n_docs)s documents" msgstr[0] "" msgstr[1] "" @@ -1294,12 +1319,34 @@ msgstr "" msgid "Report a problem" msgstr "" -#: templates/peachjam/_document_table.html:8 +#: templates/peachjam/_document_table.html:20 #: templates/peachjam/layouts/document_detail.html:164 msgid "Jurisdiction" msgstr "" -#: templates/peachjam/_document_table.html:38 +#: templates/peachjam/_document_table.html:49 +msgid "No documents found." +msgstr "" + +#: templates/peachjam/_document_table_form.html:14 +#: templates/peachjam/_document_table_form.html:36 +msgid "Filters" +msgstr "" + +#: templates/peachjam/_document_table_form.html:25 +msgid "Close" +msgstr "" + +#: templates/peachjam/_document_table_form.html:103 +#: templates/peachjam/_document_table_form.html:104 +msgid "Filter documents" +msgstr "" + +#: templates/peachjam/_document_table_form.html:111 +msgid "Sort by" +msgstr "" + +#: templates/peachjam/_document_table_row.html:25 #: templates/peachjam/layouts/document_detail.html:297 msgid "Multiple languages available" msgstr "" @@ -1369,10 +1416,8 @@ msgstr "" msgid "Deposit Date" msgstr "" -#: templates/peachjam/_recent_document_list.html:14 -#: templates/peachjam/court_detail.html:62 -#: templates/peachjam/layouts/document_list.html:60 -msgid "No documents found." +#: templates/peachjam/_recent_document_list.html:18 +msgid "No recent documents." msgstr "" #: templates/peachjam/_related_documents.html:4 @@ -1381,7 +1426,7 @@ msgstr "" msgid "Related documents" msgstr "" -#: templates/peachjam/_social_media.html:4 +#: templates/peachjam/_social_media.html:5 msgid "Contact us" msgstr "" @@ -1392,7 +1437,7 @@ msgstr "" msgid "Taxonomies" msgstr "" -#: templates/peachjam/_taxonomy_list.html:23 +#: templates/peachjam/_taxonomy_list.html:22 #: templates/peachjam/taxonomy_first_level_detail.html:31 msgid "No taxonomies found" msgstr "" @@ -1689,7 +1734,7 @@ msgstr "" #: templates/peachjam/court_detail.html:9 #: templates/peachjam/judgment_detail.html:7 #: templates/peachjam/judgment_list.html:4 -#: templates/peachjam/judgment_list.html:9 views/courts.py:23 +#: templates/peachjam/judgment_list.html:11 views/courts.py:27 msgid "Judgments" msgstr "" @@ -1724,6 +1769,10 @@ msgid_plural "%(doc_count)s gazettes" msgstr[0] "" msgstr[1] "" +#: templates/peachjam/gazette_year.html:77 +msgid "Special" +msgstr "" + #: templates/peachjam/generic_document_list.html:4 #: templates/peachjam/generic_document_list.html:7 msgid "Generic Documents" @@ -1768,7 +1817,7 @@ msgstr "" msgid "Case number" msgstr "" -#: templates/peachjam/judgment_detail.html:98 +#: templates/peachjam/judgment_detail.html:98 views/courts.py:97 msgid "Attorneys" msgstr "" @@ -1784,7 +1833,7 @@ msgstr "" msgid "Case summary" msgstr "" -#: templates/peachjam/judgment_list.html:17 +#: templates/peachjam/judgment_list.html:22 msgid "Recent judgments" msgstr "" @@ -1800,10 +1849,6 @@ msgstr "" msgid "Citations" msgstr "" -#: templates/peachjam/layouts/document_detail.html:127 -msgid "Case history" -msgstr "" - #: templates/peachjam/layouts/document_detail.html:140 msgid "Ratifications" msgstr "" @@ -1837,14 +1882,11 @@ msgstr "" msgid "%(n_relationships)s related documents" msgstr "" -#: templates/peachjam/layouts/document_list.html:27 +#: templates/peachjam/layouts/document_list.html:4 +#: templates/peachjam/layouts/document_list.html:12 msgid "Documents" msgstr "" -#: templates/peachjam/layouts/document_list.html:43 -msgid "Filters" -msgstr "" - #: templates/peachjam/legal_instrument_list.html:4 #: templates/peachjam/legal_instrument_list.html:7 msgid "Legal Instruments" @@ -1882,50 +1924,70 @@ msgstr "" msgid "Navigation" msgstr "" -#: views/courts.py:245 +#: views/courts.py:79 +msgid "Outcomes" +msgstr "" + +#: views/courts.py:105 views/generic_views.py:209 +msgid "Alphabet" +msgstr "" + +#: views/courts.py:272 msgid "Courts" msgstr "" -#: views/legislation.py:60 +#: views/generic_views.py:185 +msgid "Years" +msgstr "" + +#: views/generic_views.py:197 +msgid "Document nature" +msgstr "" + +#: views/generic_views.py:203 +msgid "Topics" +msgstr "" + +#: views/legislation.py:61 #, python-format msgid "This %(friendly_type)s was repealed on %(date)s by %(repealing_title)s." msgstr "" -#: views/legislation.py:76 +#: views/legislation.py:77 #, python-format msgid "This %(friendly_type)s will come into force on %(date)s." msgstr "" -#: views/legislation.py:91 +#: views/legislation.py:92 #, python-format msgid "This %(friendly_type)s has not yet come into force in full. See the Document detail tab for more information." msgstr "" -#: views/legislation.py:102 +#: views/legislation.py:103 #, python-format msgid "This %(friendly_type)s has not yet come into force." msgstr "" -#: views/legislation.py:135 +#: views/legislation.py:136 #, python-format msgid "This is the version of this %(friendly_type)s as it was when it was repealed." msgstr "" -#: views/legislation.py:149 +#: views/legislation.py:150 #, python-format msgid "This is the latest version of this %(friendly_type)s." msgstr "" -#: views/legislation.py:164 +#: views/legislation.py:165 #, python-format msgid "This is the version of this %(friendly_type)s as it was from %(date_from)s to %(date_to)s. Read the version as it was when it was repealed." msgstr "" -#: views/legislation.py:169 +#: views/legislation.py:170 #, python-format msgid "This is the version of this %(friendly_type)s as it was from %(date_from)s to %(date_to)s. Read the latest available version." msgstr "" -#: views/legislation.py:224 +#: views/legislation.py:225 msgid "There are outstanding amendments that have not yet been applied. See the History tab for more information." msgstr "" diff --git a/peachjam/locale/fr/LC_MESSAGES/django.po b/peachjam/locale/fr/LC_MESSAGES/django.po index 02f61f0a1..d5e04fbea 100644 --- a/peachjam/locale/fr/LC_MESSAGES/django.po +++ b/peachjam/locale/fr/LC_MESSAGES/django.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: 39b2fd8e1f2e7f60a21a2ff40372741a\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-06 15:17+0200\n" +"POT-Creation-Date: 2024-07-17 09:40+0200\n" "PO-Revision-Date: 2024-06-06 14:41\n" "Last-Translator: \n" "Language-Team: French\n" @@ -21,106 +21,121 @@ msgstr "" msgid "Import" msgstr "Importer" -#: admin.py:407 +#: admin.py:408 msgid "Key details" msgstr "Détails essentiels" -#: admin.py:420 +#: admin.py:421 msgid "Additional details" msgstr "Détails supplémentaires" -#: admin.py:433 admin.py:860 +#: admin.py:434 admin.py:874 msgid "Work identification" msgstr "Identification de travail" -#: admin.py:446 +#: admin.py:447 msgid "Content" msgstr "Contenus" -#: admin.py:454 admin.py:859 +#: admin.py:455 admin.py:873 msgid "Advanced" msgstr "Avancé" -#: admin.py:622 +#: admin.py:631 msgid "Documents published." msgstr "Documents publiés." -#: admin.py:624 +#: admin.py:633 msgid "Publish selected documents" msgstr "Publier les documents sélectionnés" -#: admin.py:628 +#: admin.py:637 msgid "Documents unpublished." msgstr "Documents inédits." -#: admin.py:630 +#: admin.py:639 msgid "Unpublish selected documents" msgstr "Annuler la publication des documents sélectionnés" -#: admin.py:710 models/judgment.py:463 models/judgment.py:499 +#: admin.py:719 models/judgment.py:469 models/judgment.py:505 msgid "case number" msgstr "numéro de dossier" -#: admin.py:711 models/judgment.py:464 +#: admin.py:720 models/judgment.py:470 msgid "case numbers" msgstr "numéros de dossier" -#: admin.py:719 admin.py:720 models/judgment.py:523 -msgid "case history" -msgstr "histoire de cas" - -#: admin.py:740 models/judgment.py:37 models/judgment.py:210 +#: admin.py:729 models/judgment.py:40 models/judgment.py:214 msgid "judge" msgstr "juge" -#: admin.py:741 models/judgment.py:38 models/judgment.py:247 -#: models/judgment.py:515 +#: admin.py:730 models/judgment.py:41 models/judgment.py:251 +#: models/judgment.py:521 msgid "judges" msgstr "juges" -#: admin.py:747 +#: admin.py:736 msgid "lower court judge" msgstr "juge du tribunal inférieur" -#: admin.py:748 models/judgment.py:253 +#: admin.py:737 models/judgment.py:257 msgid "lower court judges" msgstr "juges des tribunaux inférieurs" -#: admin.py:903 +#: admin.py:917 msgid "Refreshing content in the background." msgstr "Actualisation du contenu en arrière-plan." -#: admin.py:906 +#: admin.py:920 msgid "Refresh content for selected ingestors" msgstr "Actualiser le contenu pour les ingérants sélectionnés" -#: admin.py:954 +#: admin.py:968 msgid "Articles published." msgstr "Articles publiés." -#: admin.py:956 +#: admin.py:970 msgid "Publish selected articles" msgstr "Publier les articles sélectionnés" -#: admin.py:960 +#: admin.py:974 msgid "Articles unpublished." msgstr "Articles inédits." -#: admin.py:962 +#: admin.py:976 msgid "Unpublish selected articles" msgstr "Annuler la publication des articles sélectionnés" -#: forms.py:221 +#: forms.py:94 forms.py:95 templates/peachjam/_child_documents.html:7 +#: templates/peachjam/_document_table.html:13 +msgid "Title" +msgstr "Titre" + +#: forms.py:96 forms.py:97 templates/peachjam/_case_histories.html:5 +#: templates/peachjam/_document_table.html:30 +#: templates/peachjam/layouts/document_detail.html:261 +msgid "Date" +msgstr "Date" + +#: forms.py:96 +msgid "(Newest first)" +msgstr "" + +#: forms.py:97 +msgid "(Oldest first)" +msgstr "" + +#: forms.py:246 msgid "Document problem reported" msgstr "Problème de document signalé" -#: models/article.py:21 models/core_document_model.py:334 -#: models/judgment.py:519 +#: models/article.py:21 models/core_document_model.py:338 +#: models/judgment.py:525 msgid "date" msgstr "date" -#: models/article.py:22 models/core_document_model.py:162 -#: models/core_document_model.py:333 +#: models/article.py:22 models/core_document_model.py:166 +#: models/core_document_model.py:337 msgid "title" msgstr "titre" @@ -132,7 +147,7 @@ msgstr "corps" msgid "author" msgstr "auteur" -#: models/article.py:31 models/core_document_model.py:741 +#: models/article.py:31 models/core_document_model.py:773 msgid "image" msgstr "image" @@ -140,12 +155,12 @@ msgstr "image" msgid "summary" msgstr "résumé" -#: models/article.py:34 models/judgment.py:92 models/relationships.py:7 +#: models/article.py:34 models/judgment.py:95 models/relationships.py:7 #: models/taxonomies.py:12 msgid "slug" msgstr "slug" -#: models/article.py:35 models/core_document_model.py:440 +#: models/article.py:35 models/core_document_model.py:444 msgid "published" msgstr "publié" @@ -185,27 +200,27 @@ msgstr "profils des utilisateurs" msgid "Author" msgstr "Auteur" -#: models/author.py:8 +#: models/author.py:8 views/generic_views.py:191 msgid "Authors" msgstr "Auteurs" -#: models/author.py:10 models/core_document_model.py:45 -#: models/core_document_model.py:73 models/core_document_model.py:87 -#: models/core_document_model.py:813 models/ingestors.py:14 -#: models/ingestors.py:33 models/judgment.py:16 models/judgment.py:31 -#: models/judgment.py:46 models/judgment.py:61 models/judgment.py:76 -#: models/judgment.py:90 models/judgment.py:116 models/judgment.py:176 +#: models/author.py:10 models/core_document_model.py:49 +#: models/core_document_model.py:77 models/core_document_model.py:91 +#: models/core_document_model.py:864 models/ingestors.py:14 +#: models/ingestors.py:33 models/judgment.py:16 models/judgment.py:34 +#: models/judgment.py:49 models/judgment.py:64 models/judgment.py:79 +#: models/judgment.py:93 models/judgment.py:119 models/judgment.py:179 #: models/relationships.py:6 models/taxonomies.py:11 msgid "name" msgstr "nom" -#: models/author.py:11 models/core_document_model.py:47 -#: models/core_document_model.py:75 models/core_document_model.py:91 -#: models/judgment.py:117 models/judgment.py:177 +#: models/author.py:11 models/core_document_model.py:51 +#: models/core_document_model.py:79 models/core_document_model.py:95 +#: models/judgment.py:120 models/judgment.py:180 msgid "code" msgstr "code" -#: models/author.py:14 models/core_document_model.py:93 models/judgment.py:126 +#: models/author.py:14 models/core_document_model.py:97 models/judgment.py:129 #: models/profile.py:36 models/profile.py:37 models/profile.py:47 #: models/taxonomies.py:15 msgid "profile" @@ -216,10 +231,10 @@ msgstr "profil" msgid "authors" msgstr "auteurs" -#: models/citations.py:19 models/core_document_model.py:736 -#: models/core_document_model.py:762 models/core_document_model.py:829 -#: models/core_document_model.py:858 models/core_document_model.py:884 -#: models/judgment.py:458 models/taxonomies.py:52 +#: models/citations.py:19 models/core_document_model.py:768 +#: models/core_document_model.py:794 models/core_document_model.py:880 +#: models/core_document_model.py:909 models/core_document_model.py:935 +#: models/judgment.py:464 models/taxonomies.py:52 msgid "document" msgstr "document" @@ -263,272 +278,272 @@ msgstr "date de traitement" msgid "citation processing" msgstr "traitement des citations" -#: models/core_document_model.py:49 +#: models/core_document_model.py:53 msgid "level" msgstr "niveau" -#: models/core_document_model.py:63 +#: models/core_document_model.py:67 msgid "label" msgstr "étiquette" -#: models/core_document_model.py:64 models/core_document_model.py:448 +#: models/core_document_model.py:68 models/core_document_model.py:452 msgid "labels" msgstr "Étiquettes" -#: models/core_document_model.py:76 models/core_document_model.py:815 -#: models/judgment.py:18 models/judgment.py:33 models/judgment.py:48 -#: models/judgment.py:63 models/judgment.py:78 models/judgment.py:91 +#: models/core_document_model.py:80 models/core_document_model.py:866 +#: models/judgment.py:18 models/judgment.py:36 models/judgment.py:51 +#: models/judgment.py:66 models/judgment.py:81 models/judgment.py:94 msgid "description" msgstr "description" -#: models/core_document_model.py:79 +#: models/core_document_model.py:83 msgid "document nature" msgstr "nature du document" -#: models/core_document_model.py:80 +#: models/core_document_model.py:84 msgid "document natures" msgstr "types de document" -#: models/core_document_model.py:89 models/core_document_model.py:354 +#: models/core_document_model.py:93 models/core_document_model.py:358 #: models/profile.py:45 msgid "jurisdiction" msgstr "juridiction" -#: models/core_document_model.py:97 models/core_document_model.py:361 -#: models/judgment.py:141 +#: models/core_document_model.py:101 models/core_document_model.py:365 +#: models/judgment.py:144 msgid "locality" msgstr "localité" -#: models/core_document_model.py:98 +#: models/core_document_model.py:102 msgid "localities" msgstr "localités" -#: models/core_document_model.py:111 +#: models/core_document_model.py:115 msgid "FRBR URI" msgstr "FRBR URI" -#: models/core_document_model.py:115 +#: models/core_document_model.py:119 msgid "FRBR URI country" msgstr "Pays URI FRBR" -#: models/core_document_model.py:121 +#: models/core_document_model.py:125 msgid "FRBR URI locality" msgstr "Localité URI FRBR" -#: models/core_document_model.py:127 +#: models/core_document_model.py:131 msgid "FRBR URI place" msgstr "Lieu URI FRBR" -#: models/core_document_model.py:133 models/core_document_model.py:377 +#: models/core_document_model.py:137 models/core_document_model.py:381 msgid "FRBR URI doctype" msgstr "doctype de FRBR URI" -#: models/core_document_model.py:139 models/core_document_model.py:384 +#: models/core_document_model.py:143 models/core_document_model.py:388 msgid "FRBR URI subtype" msgstr "subtype de FRBR URI" -#: models/core_document_model.py:145 models/core_document_model.py:392 +#: models/core_document_model.py:149 models/core_document_model.py:396 msgid "FRBR URI actor" msgstr "acteur de FRBR URI" -#: models/core_document_model.py:151 models/core_document_model.py:400 +#: models/core_document_model.py:155 models/core_document_model.py:404 msgid "FRBR URI date" msgstr "date de FRBR URI" -#: models/core_document_model.py:157 models/core_document_model.py:408 +#: models/core_document_model.py:161 models/core_document_model.py:412 msgid "FRBR URI number" msgstr "numéro de FRBR URI" -#: models/core_document_model.py:168 +#: models/core_document_model.py:172 msgid "languages" msgstr "langues" -#: models/core_document_model.py:171 +#: models/core_document_model.py:175 msgid "ranking" msgstr "classement" -#: models/core_document_model.py:173 +#: models/core_document_model.py:177 msgid "number of cited works" msgstr "nombre d'ouvrages cités" -#: models/core_document_model.py:175 +#: models/core_document_model.py:179 msgid "number of incoming citations" msgstr "nombre de citations entrantes" -#: models/core_document_model.py:178 models/core_document_model.py:323 +#: models/core_document_model.py:182 models/core_document_model.py:327 msgid "work" msgstr "travail" -#: models/core_document_model.py:179 +#: models/core_document_model.py:183 msgid "works" msgstr "travaux" -#: models/core_document_model.py:326 +#: models/core_document_model.py:330 msgid "document type" msgstr "type de document" -#: models/core_document_model.py:336 models/core_document_model.py:765 +#: models/core_document_model.py:340 models/core_document_model.py:797 msgid "source URL" msgstr "URL source" -#: models/core_document_model.py:338 +#: models/core_document_model.py:342 msgid "citation" msgstr "référence" -#: models/core_document_model.py:339 +#: models/core_document_model.py:343 msgid "content HTML" msgstr "contenu HTML" -#: models/core_document_model.py:340 +#: models/core_document_model.py:344 msgid "content HTML is AKN" msgstr "le contenu HTML est AKN" -#: models/core_document_model.py:341 +#: models/core_document_model.py:345 msgid "TOC JSON" msgstr "JSON TOC" -#: models/core_document_model.py:347 +#: models/core_document_model.py:351 msgid "language" msgstr "langue" -#: models/core_document_model.py:368 models/core_document_model.py:832 +#: models/core_document_model.py:372 models/core_document_model.py:883 msgid "nature" msgstr "nature" -#: models/core_document_model.py:372 +#: models/core_document_model.py:376 msgid "work FRBR URI" msgstr "travail FRBR URI" -#: models/core_document_model.py:389 +#: models/core_document_model.py:393 msgid "Document subtype. Lowercase letters, numbers _ and - only." msgstr "Sous-type de document. Lettres minuscules, chiffres _ et - seulement." -#: models/core_document_model.py:397 +#: models/core_document_model.py:401 msgid "Originating actor. Lowercase letters, numbers _ and - only." msgstr "Acteur originaire. Lettres minuscules, chiffres _ et - seulement." -#: models/core_document_model.py:405 +#: models/core_document_model.py:409 msgid "YYYY, YYYY-MM, or YYYY-MM-DD" msgstr "AAAA, AAAA-MM, ou AAAA-MM-JJ" -#: models/core_document_model.py:414 +#: models/core_document_model.py:418 msgid "Unique number or short title identifying this work. Lowercase letters, numbers _ and - only." msgstr "Nombre unique ou titre court identifiant ce travail. Lettres minuscules, chiffres _ et - seulement." -#: models/core_document_model.py:419 +#: models/core_document_model.py:423 msgid "expression FRBR URI" msgstr "expression FRBR URI" -#: models/core_document_model.py:423 +#: models/core_document_model.py:427 msgid "created at" msgstr "créé le" -#: models/core_document_model.py:424 +#: models/core_document_model.py:428 msgid "updated at" msgstr "mis à jour le" -#: models/core_document_model.py:430 +#: models/core_document_model.py:434 msgid "created by" msgstr "créer par" -#: models/core_document_model.py:433 +#: models/core_document_model.py:437 msgid "allow robots" msgstr "Autoriser les robots" -#: models/core_document_model.py:436 +#: models/core_document_model.py:440 msgid "Allow this document to be indexed by search engine robots." msgstr "Autoriser l'indexation de ce document par les robots des moteurs de recherche." -#: models/core_document_model.py:443 +#: models/core_document_model.py:447 msgid "Is this document published and visible on the website?" msgstr "Ce document est-il publié et visible sur le site Internet ?" -#: models/core_document_model.py:484 +#: models/core_document_model.py:505 msgid "You cannot set a future date for the document" msgstr "Vous ne pouvez pas définir une date ultérieure pour le document" -#: models/core_document_model.py:492 +#: models/core_document_model.py:513 #, python-format msgid "Invalid FRBR URI: %(uri)s" msgstr "Invalid FRBR URI: %(uri)s" -#: models/core_document_model.py:503 +#: models/core_document_model.py:524 msgid "Document with this Expression FRBR URI already exists!" msgstr "Un document avec cette expression FRBR URI existe déjà !" -#: models/core_document_model.py:707 +#: models/core_document_model.py:731 msgid "filename" msgstr "nom de fichier" -#: models/core_document_model.py:708 +#: models/core_document_model.py:732 msgid "mimetype" msgstr "mimetype" -#: models/core_document_model.py:709 +#: models/core_document_model.py:733 msgid "size" msgstr "taille" -#: models/core_document_model.py:710 models/core_document_model.py:738 +#: models/core_document_model.py:734 models/core_document_model.py:770 msgid "file" msgstr "fichier" -#: models/core_document_model.py:742 +#: models/core_document_model.py:774 msgid "images" msgstr "images" -#: models/core_document_model.py:769 +#: models/core_document_model.py:800 msgid "file as pdf" msgstr "fichier en pdf" -#: models/core_document_model.py:777 +#: models/core_document_model.py:808 msgid "source file" msgstr "fichier source" -#: models/core_document_model.py:778 +#: models/core_document_model.py:809 msgid "source files" msgstr "fichiers sources" -#: models/core_document_model.py:818 +#: models/core_document_model.py:869 msgid "attached file nature" msgstr "type de pièce joint" -#: models/core_document_model.py:819 +#: models/core_document_model.py:870 msgid "attached file natures" msgstr "types de fichier joint" -#: models/core_document_model.py:836 +#: models/core_document_model.py:887 msgid "attached file" msgstr "fichier joint" -#: models/core_document_model.py:837 +#: models/core_document_model.py:888 msgid "attached files" msgstr "pièces jointes" -#: models/core_document_model.py:861 +#: models/core_document_model.py:912 msgid "Law report citation/Alternative known name" msgstr "Citation du rapport juridique/Nom alternatif connu" -#: models/core_document_model.py:868 +#: models/core_document_model.py:919 msgid "alternative name" msgstr "nom alternatif" -#: models/core_document_model.py:869 +#: models/core_document_model.py:920 msgid "alternative names" msgstr "noms alternatifs" -#: models/core_document_model.py:889 +#: models/core_document_model.py:940 msgid "document text" msgstr "Texte du document" -#: models/core_document_model.py:893 +#: models/core_document_model.py:944 msgid "document XML" msgstr "document XML" -#: models/core_document_model.py:897 +#: models/core_document_model.py:948 msgid "document content" msgstr "Contenu du document" -#: models/core_document_model.py:898 +#: models/core_document_model.py:949 msgid "document contents" msgstr "Contenu du document" @@ -560,11 +575,15 @@ msgstr "clé" msgid "volume number" msgstr "numéro de tome" -#: models/gazette.py:28 +#: models/gazette.py:26 +msgid "special" +msgstr "" + +#: models/gazette.py:29 msgid "gazette" msgstr "Journal Officiel" -#: models/gazette.py:29 +#: models/gazette.py:30 msgid "gazettes" msgstr "journal officiel" @@ -640,164 +659,194 @@ msgstr "activé" msgid "attorney" msgstr "avocat" -#: models/judgment.py:23 models/judgment.py:257 +#: models/judgment.py:23 models/judgment.py:261 msgid "attorneys" msgstr "Avocats" -#: models/judgment.py:52 +#: models/judgment.py:30 +#, fuzzy +#| msgid "Judges" +msgid "Judge" +msgstr "Juges" + +#: models/judgment.py:31 templates/peachjam/_case_histories.html:8 +#: templates/peachjam/layouts/document_detail.html:243 views/courts.py:61 +msgid "Judges" +msgstr "Juges" + +#: models/judgment.py:55 msgid "order outcome" msgstr "Résultat de la commande" -#: models/judgment.py:53 +#: models/judgment.py:56 msgid "order outcomes" msgstr "Résultats de la commande" -#: models/judgment.py:67 models/judgment.py:513 +#: models/judgment.py:70 models/judgment.py:519 msgid "outcome" msgstr "résultat" -#: models/judgment.py:68 +#: models/judgment.py:71 msgid "outcomes" msgstr "résultats" -#: models/judgment.py:82 models/judgment.py:451 +#: models/judgment.py:85 models/judgment.py:457 msgid "matter type" msgstr "type de matière" -#: models/judgment.py:83 +#: models/judgment.py:86 msgid "matter types" msgstr "types de matière" -#: models/judgment.py:93 models/judgment.py:128 models/judgment.py:271 +#: models/judgment.py:96 models/judgment.py:131 models/judgment.py:275 msgid "order" msgstr "Commande" -#: models/judgment.py:101 models/judgment.py:123 +#: models/judgment.py:104 models/judgment.py:126 msgid "court class" msgstr "cours de cour" -#: models/judgment.py:102 +#: models/judgment.py:105 msgid "court classes" msgstr "cours de cour" -#: models/judgment.py:134 +#: models/judgment.py:137 msgid "country" msgstr "Pays" -#: models/judgment.py:149 models/judgment.py:174 models/judgment.py:237 -#: models/judgment.py:517 +#: models/judgment.py:152 models/judgment.py:177 models/judgment.py:241 +#: models/judgment.py:523 msgid "court" msgstr "cour" -#: models/judgment.py:150 +#: models/judgment.py:153 msgid "courts" msgstr "cours" -#: models/judgment.py:165 +#: models/judgment.py:168 msgid "Court registry" msgstr "Registre des tribunaux" -#: models/judgment.py:166 +#: models/judgment.py:169 msgid "Court registries" msgstr "Greffes des tribunaux" -#: models/judgment.py:180 +#: models/judgment.py:184 msgid "court registry" msgstr "Greffe de la cour" -#: models/judgment.py:181 +#: models/judgment.py:185 msgid "court registries" msgstr "Registres judiciaires" -#: models/judgment.py:208 models/judgment.py:224 models/judgment.py:316 -#: models/judgment.py:496 +#: models/judgment.py:212 models/judgment.py:228 models/judgment.py:320 msgid "judgment" msgstr "jugement" -#: models/judgment.py:227 +#: models/judgment.py:231 msgid "lower_court_judge" msgstr "juge_du_court_inférieur" -#: models/judgment.py:269 +#: models/judgment.py:273 msgid "case summary" msgstr "résumé du cas" -#: models/judgment.py:270 +#: models/judgment.py:274 msgid "flynote" msgstr "mot-clé" -#: models/judgment.py:273 +#: models/judgment.py:277 msgid "case name" msgstr "nom de l'affaire" -#: models/judgment.py:275 +#: models/judgment.py:279 msgid "Party names for use in title" msgstr "Noms des parties à utiliser dans le titre" -#: models/judgment.py:281 +#: models/judgment.py:285 msgid "serial number" msgstr "numéro de série" -#: models/judgment.py:283 +#: models/judgment.py:287 msgid "Serial number for MNC, unique for a year and an author." msgstr "Numéro de série pour CNM, unique pour une année et un auteur." -#: models/judgment.py:286 +#: models/judgment.py:290 msgid "serial number override" msgstr "remplacement du numéro de série" -#: models/judgment.py:289 +#: models/judgment.py:293 msgid "Specific MNC serial number assigned by the court." msgstr "Numéro de série CNM spécifique attribué par le tribunal." -#: models/judgment.py:293 +#: models/judgment.py:297 msgid "MNC" msgstr "CNM" -#: models/judgment.py:295 +#: models/judgment.py:299 msgid "Media neutral citation" msgstr "Citation neutre des médias" -#: models/judgment.py:302 -msgid "Auto-assign title" +#: models/judgment.py:306 +#, fuzzy +#| msgid "Auto-assign title" +msgid "Auto-assign details" msgstr "Titre attribué automatiquement" -#: models/judgment.py:303 -msgid "Whether or not the system should assign the title" +#: models/judgment.py:307 +#, fuzzy +#| msgid "Whether or not the system should assign the title" +msgid "Whether or not the system should assign the details" msgstr "Si le système doit ou non attribuer le titre" -#: models/judgment.py:317 +#: models/judgment.py:321 msgid "judgments" msgstr "jugements" -#: models/judgment.py:437 +#: models/judgment.py:443 msgid "Full case number as printed on judgment" msgstr "Numéro complet du dossier tel qu'imprimé sur le jugement" -#: models/judgment.py:441 +#: models/judgment.py:447 msgid "Override for full case number string" msgstr "Remplacer pour la chaîne de numéro de cas complet" -#: models/judgment.py:443 +#: models/judgment.py:449 msgid "string" msgstr "chaîne de caractères" -#: models/judgment.py:444 +#: models/judgment.py:450 msgid "number" msgstr "nombre" -#: models/judgment.py:445 +#: models/judgment.py:451 msgid "year" msgstr "année" -#: models/judgment.py:506 -msgid "historical judgment" +#: models/judgment.py:502 +#, fuzzy +#| msgid "judgment" +msgid "judgment work" +msgstr "jugement" + +#: models/judgment.py:512 +#, fuzzy +#| msgid "historical judgment" +msgid "historical judgment work" msgstr "jugement historique" -#: models/judgment.py:524 +#: models/judgment.py:529 +msgid "case history" +msgstr "histoire de cas" + +#: models/judgment.py:530 msgid "case histories" msgstr "histoires de cas" +#: models/judgment.py:537 templates/peachjam/layouts/document_detail.html:127 +msgid "Case history" +msgstr "Histoire du cas" + #: models/profile.py:13 msgid "about HTML" msgstr "à propos de HTML" @@ -924,50 +973,54 @@ msgid "linkedin link" msgstr "lien linkedin" #: models/settings.py:88 +msgid "youtube link" +msgstr "" + +#: models/settings.py:91 msgid "contact form URL" msgstr "URL du formulaire de contact" -#: models/settings.py:91 +#: models/settings.py:94 msgid "re-extract citations" msgstr "réextraire les citations" -#: models/settings.py:94 +#: models/settings.py:97 msgid "Pocket Law repo" msgstr "Dépôt Pocket Law" -#: models/settings.py:97 +#: models/settings.py:100 msgid "editor help link" msgstr "lien d'aide de l'éditeur" -#: models/settings.py:103 +#: models/settings.py:106 msgid "user help link" msgstr "lien d'aide utilisateur" -#: models/settings.py:109 +#: models/settings.py:112 msgid "admin emails" msgstr "e-mails de l'administrateur" -#: models/settings.py:113 +#: models/settings.py:116 msgid "Enter one or more email addresses separated by spaces." msgstr "Saisissez une ou plusieurs adresses e-mail séparées par des espaces." -#: models/settings.py:116 +#: models/settings.py:119 msgid "matomo domain" msgstr "domaine matomo" -#: models/settings.py:120 +#: models/settings.py:123 msgid "Matomo domain (e.g. mysite.matomo.cloud)" msgstr "Domaine Matomo (par exemple monsite.matomo.cloud)" -#: models/settings.py:123 +#: models/settings.py:126 msgid "matomo site ID" msgstr "ID du site Matomo" -#: models/settings.py:127 +#: models/settings.py:130 msgid "Matomo site ID (e.g. 2)" msgstr "ID du site Matomo (par exemple 2)" -#: models/settings.py:131 +#: models/settings.py:134 msgid "site settings" msgstr "paramètres du site" @@ -987,19 +1040,19 @@ msgstr "sujet du document" msgid "document topics" msgstr "sujets du document" -#: settings.py:248 +#: settings.py:251 msgid "English" msgstr "Anglais" -#: settings.py:249 +#: settings.py:252 msgid "French" msgstr "Français" -#: settings.py:250 +#: settings.py:253 msgid "Portuguese" msgstr "Portugais" -#: settings.py:251 +#: settings.py:254 msgid "Swahili" msgstr "Swahili" @@ -1052,10 +1105,12 @@ msgstr "Mot de passe oublié ?" #: templates/account/login.html:76 #, python-format -msgid "\n" +msgid "" +"\n" " Log in with %(provider.name)s\n" " " -msgstr "\n" +msgstr "" +"\n" " Connectez-vous à %(provider.name)s\n" " " @@ -1154,13 +1209,6 @@ msgstr "Développer tout" msgid "Need help? Please email {{ SUPPORT_EMAIL }}." msgstr "Besoin d'aide ? Veuillez envoyer un e-mail à {{ SUPPORT_EMAIL }}." -#: templates/peachjam/_case_histories.html:5 -#: templates/peachjam/_document_table.html:13 -#: templates/peachjam/_judgment_table.html:6 -#: templates/peachjam/layouts/document_detail.html:261 -msgid "Date" -msgstr "Date" - #: templates/peachjam/_case_histories.html:6 msgid "Case" msgstr "Cas" @@ -1170,11 +1218,6 @@ msgstr "Cas" msgid "Court" msgstr "Cour" -#: templates/peachjam/_case_histories.html:8 -#: templates/peachjam/layouts/document_detail.html:243 -msgid "Judges" -msgstr "Juges" - #: templates/peachjam/_case_histories.html:9 #: templates/peachjam/judgment_detail.html:72 msgid "Outcome" @@ -1184,12 +1227,6 @@ msgstr "Résultat" msgid "Subsidiary legislation" msgstr "Législation subsidiaire" -#: templates/peachjam/_child_documents.html:7 -#: templates/peachjam/_document_table.html:6 -#: templates/peachjam/_judgment_table.html:5 -msgid "Title" -msgstr "Titre" - #: templates/peachjam/_child_documents.html:8 msgid "Numbered title" msgstr "Titre numéroté" @@ -1243,27 +1280,29 @@ msgstr "Table des matières" msgid "Pages" msgstr "Pages" -#: templates/peachjam/_document_content.html:140 +#: templates/peachjam/_document_content.html:141 msgid "Loading PDF..." msgstr "Chargement du PDF..." -#: templates/peachjam/_document_content.html:150 +#: templates/peachjam/_document_content.html:151 #, python-format msgid "This document is %(filesize)s. Do you want to load it?" msgstr "Ce document est %(filesize)s. Voulez-vous le charger ?" -#: templates/peachjam/_document_content.html:154 +#: templates/peachjam/_document_content.html:155 msgid "Load document" msgstr "Charger le document" -#: templates/peachjam/_document_content.html:163 +#: templates/peachjam/_document_content.html:164 msgid "To the top" msgstr "En haut" #: templates/peachjam/_document_count.html:3 -#, python-format -msgid "%(doc_count)s document" -msgid_plural "%(doc_count)s documents" +#, fuzzy, python-format +#| msgid "%(doc_count)s document" +#| msgid_plural "%(doc_count)s documents" +msgid "%(n_docs)s document" +msgid_plural "%(n_docs)s documents" msgstr[0] "%(doc_count)s Document" msgstr[1] "%(doc_count)s Documents" @@ -1294,12 +1333,36 @@ msgstr "Rapport" msgid "Report a problem" msgstr "Signaler un problème" -#: templates/peachjam/_document_table.html:8 +#: templates/peachjam/_document_table.html:20 #: templates/peachjam/layouts/document_detail.html:164 msgid "Jurisdiction" msgstr "Juridiction" -#: templates/peachjam/_document_table.html:38 +#: templates/peachjam/_document_table.html:49 +msgid "No documents found." +msgstr "Aucun document trouvé." + +#: templates/peachjam/_document_table_form.html:14 +#: templates/peachjam/_document_table_form.html:36 +msgid "Filters" +msgstr "Filtres" + +#: templates/peachjam/_document_table_form.html:25 +msgid "Close" +msgstr "" + +#: templates/peachjam/_document_table_form.html:103 +#: templates/peachjam/_document_table_form.html:104 +#, fuzzy +#| msgid "Cited documents" +msgid "Filter documents" +msgstr "Documents cités" + +#: templates/peachjam/_document_table_form.html:111 +msgid "Sort by" +msgstr "" + +#: templates/peachjam/_document_table_row.html:25 #: templates/peachjam/layouts/document_detail.html:297 msgid "Multiple languages available" msgstr "Plusieurs langues disponibles" @@ -1369,10 +1432,10 @@ msgstr "Date de ratification" msgid "Deposit Date" msgstr "Date de dépôt" -#: templates/peachjam/_recent_document_list.html:14 -#: templates/peachjam/court_detail.html:62 -#: templates/peachjam/layouts/document_list.html:60 -msgid "No documents found." +#: templates/peachjam/_recent_document_list.html:18 +#, fuzzy +#| msgid "No documents found." +msgid "No recent documents." msgstr "Aucun document trouvé." #: templates/peachjam/_related_documents.html:4 @@ -1381,7 +1444,7 @@ msgstr "Aucun document trouvé." msgid "Related documents" msgstr "Documents connexes" -#: templates/peachjam/_social_media.html:4 +#: templates/peachjam/_social_media.html:5 msgid "Contact us" msgstr "Contactez-nous" @@ -1392,7 +1455,7 @@ msgstr "Contactez-nous" msgid "Taxonomies" msgstr "Taxonomies" -#: templates/peachjam/_taxonomy_list.html:23 +#: templates/peachjam/_taxonomy_list.html:22 #: templates/peachjam/taxonomy_first_level_detail.html:31 msgid "No taxonomies found" msgstr "Aucune taxonomie trouvée" @@ -1689,7 +1752,7 @@ msgstr "Livres" #: templates/peachjam/court_detail.html:9 #: templates/peachjam/judgment_detail.html:7 #: templates/peachjam/judgment_list.html:4 -#: templates/peachjam/judgment_list.html:9 views/courts.py:23 +#: templates/peachjam/judgment_list.html:11 views/courts.py:27 msgid "Judgments" msgstr "Jugements" @@ -1724,6 +1787,10 @@ msgid_plural "%(doc_count)s gazettes" msgstr[0] "%(doc_count)s journal officiel" msgstr[1] "%(doc_count)s Journal Officiel" +#: templates/peachjam/gazette_year.html:77 +msgid "Special" +msgstr "" + #: templates/peachjam/generic_document_list.html:4 #: templates/peachjam/generic_document_list.html:7 msgid "Generic Documents" @@ -1768,7 +1835,7 @@ msgstr "Date de l'audience" msgid "Case number" msgstr "Numéro de cas" -#: templates/peachjam/judgment_detail.html:98 +#: templates/peachjam/judgment_detail.html:98 views/courts.py:97 msgid "Attorneys" msgstr "Avocats" @@ -1784,7 +1851,7 @@ msgstr "Commande" msgid "Case summary" msgstr "Résumé du cas" -#: templates/peachjam/judgment_list.html:17 +#: templates/peachjam/judgment_list.html:22 msgid "Recent judgments" msgstr "Jugements récents" @@ -1800,10 +1867,6 @@ msgstr "Historique" msgid "Citations" msgstr "Citation" -#: templates/peachjam/layouts/document_detail.html:127 -msgid "Case history" -msgstr "Histoire du cas" - #: templates/peachjam/layouts/document_detail.html:140 msgid "Ratifications" msgstr "Ratifications" @@ -1837,14 +1900,11 @@ msgstr "Type" msgid "%(n_relationships)s related documents" msgstr "%(n_relationships)s documents connexes" -#: templates/peachjam/layouts/document_list.html:27 +#: templates/peachjam/layouts/document_list.html:4 +#: templates/peachjam/layouts/document_list.html:12 msgid "Documents" msgstr "Documents" -#: templates/peachjam/layouts/document_list.html:43 -msgid "Filters" -msgstr "Filtres" - #: templates/peachjam/legal_instrument_list.html:4 #: templates/peachjam/legal_instrument_list.html:7 msgid "Legal Instruments" @@ -1882,51 +1942,76 @@ msgstr "Termes et conditions d'utilisation" msgid "Navigation" msgstr "Navigation" -#: views/courts.py:245 +#: views/courts.py:79 +#, fuzzy +#| msgid "Outcome" +msgid "Outcomes" +msgstr "Résultat" + +#: views/courts.py:105 views/generic_views.py:209 +msgid "Alphabet" +msgstr "" + +#: views/courts.py:272 msgid "Courts" msgstr "Cours" -#: views/legislation.py:60 +#: views/generic_views.py:185 +msgid "Years" +msgstr "" + +#: views/generic_views.py:197 +#, fuzzy +#| msgid "document nature" +msgid "Document nature" +msgstr "nature du document" + +#: views/generic_views.py:203 +#, fuzzy +#| msgid "topics" +msgid "Topics" +msgstr "sujets" + +#: views/legislation.py:61 #, python-format msgid "This %(friendly_type)s was repealed on %(date)s by %(repealing_title)s." msgstr "Ce %(friendly_type)s a été abrogé le %(date)s par %(repealing_title)s." -#: views/legislation.py:76 +#: views/legislation.py:77 #, python-format msgid "This %(friendly_type)s will come into force on %(date)s." msgstr "Ce %(friendly_type)s entrera en vigueur le %(date)s." -#: views/legislation.py:91 +#: views/legislation.py:92 #, python-format msgid "This %(friendly_type)s has not yet come into force in full. See the Document detail tab for more information." msgstr "Ce %(friendly_type)s n’est pas encore pleinement entré en vigueur. Voir l'onglet Détails du document pour plus d'informations." -#: views/legislation.py:102 +#: views/legislation.py:103 #, python-format msgid "This %(friendly_type)s has not yet come into force." msgstr "Ce %(friendly_type)s n’est pas encore entré en vigueur." -#: views/legislation.py:135 +#: views/legislation.py:136 #, python-format msgid "This is the version of this %(friendly_type)s as it was when it was repealed." msgstr "Il s’agit de la version de ce %(friendly_type)s telle qu’elle était lors de son abrogation." -#: views/legislation.py:149 +#: views/legislation.py:150 #, python-format msgid "This is the latest version of this %(friendly_type)s." msgstr "Il s'agit de la dernière version de ce %(friendly_type)s." -#: views/legislation.py:164 +#: views/legislation.py:165 #, python-format msgid "This is the version of this %(friendly_type)s as it was from %(date_from)s to %(date_to)s. Read the version as it was when it was repealed." msgstr "C'est la version de ce %(friendly_type)s telle qu'elle était de %(date_from)s à %(date_to)s. Lire la version telle qu'elle était au moment de son abrogation." -#: views/legislation.py:169 +#: views/legislation.py:170 #, python-format msgid "This is the version of this %(friendly_type)s as it was from %(date_from)s to %(date_to)s. Read the latest available version." msgstr "C'est la version de ce %(friendly_type)s telle qu'elle était de %(date_from)s à %(date_to)s. Lisez la dernière version disponible." -#: views/legislation.py:224 +#: views/legislation.py:225 msgid "There are outstanding amendments that have not yet been applied. See the History tab for more information." msgstr "Il existe des amendements en suspens qui n’ont pas encore été appliqués. Voir l'onglet Historique pour plus d'informations." - diff --git a/peachjam/locale/pt/LC_MESSAGES/django.po b/peachjam/locale/pt/LC_MESSAGES/django.po index 20f3047fa..77820688c 100644 --- a/peachjam/locale/pt/LC_MESSAGES/django.po +++ b/peachjam/locale/pt/LC_MESSAGES/django.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: 39b2fd8e1f2e7f60a21a2ff40372741a\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-06 15:17+0200\n" +"POT-Creation-Date: 2024-07-17 09:40+0200\n" "PO-Revision-Date: 2024-06-06 13:40\n" "Last-Translator: \n" "Language-Team: Portuguese\n" @@ -21,106 +21,121 @@ msgstr "" msgid "Import" msgstr "Importar" -#: admin.py:407 +#: admin.py:408 msgid "Key details" msgstr "Detalhes da chave" -#: admin.py:420 +#: admin.py:421 msgid "Additional details" msgstr "Detalhes adicionais" -#: admin.py:433 admin.py:860 +#: admin.py:434 admin.py:874 msgid "Work identification" msgstr "Identificação do trabalho" -#: admin.py:446 +#: admin.py:447 msgid "Content" msgstr "Conteúdo" -#: admin.py:454 admin.py:859 +#: admin.py:455 admin.py:873 msgid "Advanced" msgstr "Avançado" -#: admin.py:622 +#: admin.py:631 msgid "Documents published." msgstr "Documentos publicados." -#: admin.py:624 +#: admin.py:633 msgid "Publish selected documents" msgstr "Publicar documentos selecionados" -#: admin.py:628 +#: admin.py:637 msgid "Documents unpublished." msgstr "Documentos não publicados." -#: admin.py:630 +#: admin.py:639 msgid "Unpublish selected documents" msgstr "Cancelar publicação de documentos selecionados" -#: admin.py:710 models/judgment.py:463 models/judgment.py:499 +#: admin.py:719 models/judgment.py:469 models/judgment.py:505 msgid "case number" msgstr "número do processo" -#: admin.py:711 models/judgment.py:464 +#: admin.py:720 models/judgment.py:470 msgid "case numbers" msgstr "números de casos" -#: admin.py:719 admin.py:720 models/judgment.py:523 -msgid "case history" -msgstr "histórico de caso" - -#: admin.py:740 models/judgment.py:37 models/judgment.py:210 +#: admin.py:729 models/judgment.py:40 models/judgment.py:214 msgid "judge" msgstr "juiz" -#: admin.py:741 models/judgment.py:38 models/judgment.py:247 -#: models/judgment.py:515 +#: admin.py:730 models/judgment.py:41 models/judgment.py:251 +#: models/judgment.py:521 msgid "judges" msgstr "juízes" -#: admin.py:747 +#: admin.py:736 msgid "lower court judge" msgstr "juiz de primeira instância" -#: admin.py:748 models/judgment.py:253 +#: admin.py:737 models/judgment.py:257 msgid "lower court judges" msgstr "juízes de primeira instância" -#: admin.py:903 +#: admin.py:917 msgid "Refreshing content in the background." msgstr "Atualizando o conteúdo em segundo plano." -#: admin.py:906 +#: admin.py:920 msgid "Refresh content for selected ingestors" msgstr "Atualizar conteúdo para usuários selecionados" -#: admin.py:954 +#: admin.py:968 msgid "Articles published." msgstr "Artigos publicados." -#: admin.py:956 +#: admin.py:970 msgid "Publish selected articles" msgstr "Publique artigos selecionados" -#: admin.py:960 +#: admin.py:974 msgid "Articles unpublished." msgstr "Artigos não publicados." -#: admin.py:962 +#: admin.py:976 msgid "Unpublish selected articles" msgstr "Cancelar publicação de artigos selecionados" -#: forms.py:221 +#: forms.py:94 forms.py:95 templates/peachjam/_child_documents.html:7 +#: templates/peachjam/_document_table.html:13 +msgid "Title" +msgstr "Título" + +#: forms.py:96 forms.py:97 templates/peachjam/_case_histories.html:5 +#: templates/peachjam/_document_table.html:30 +#: templates/peachjam/layouts/document_detail.html:261 +msgid "Date" +msgstr "Data" + +#: forms.py:96 +msgid "(Newest first)" +msgstr "" + +#: forms.py:97 +msgid "(Oldest first)" +msgstr "" + +#: forms.py:246 msgid "Document problem reported" msgstr "Problema no documento relatado" -#: models/article.py:21 models/core_document_model.py:334 -#: models/judgment.py:519 +#: models/article.py:21 models/core_document_model.py:338 +#: models/judgment.py:525 msgid "date" msgstr "data" -#: models/article.py:22 models/core_document_model.py:162 -#: models/core_document_model.py:333 +#: models/article.py:22 models/core_document_model.py:166 +#: models/core_document_model.py:337 msgid "title" msgstr "título" @@ -132,7 +147,7 @@ msgstr "Corpo" msgid "author" msgstr "autor" -#: models/article.py:31 models/core_document_model.py:741 +#: models/article.py:31 models/core_document_model.py:773 msgid "image" msgstr "Imagem" @@ -140,12 +155,12 @@ msgstr "Imagem" msgid "summary" msgstr "summary" -#: models/article.py:34 models/judgment.py:92 models/relationships.py:7 +#: models/article.py:34 models/judgment.py:95 models/relationships.py:7 #: models/taxonomies.py:12 msgid "slug" msgstr "eixo" -#: models/article.py:35 models/core_document_model.py:440 +#: models/article.py:35 models/core_document_model.py:444 msgid "published" msgstr "Publicado" @@ -185,27 +200,27 @@ msgstr "perfis de usuário" msgid "Author" msgstr "Autor" -#: models/author.py:8 +#: models/author.py:8 views/generic_views.py:191 msgid "Authors" msgstr "Autores" -#: models/author.py:10 models/core_document_model.py:45 -#: models/core_document_model.py:73 models/core_document_model.py:87 -#: models/core_document_model.py:813 models/ingestors.py:14 -#: models/ingestors.py:33 models/judgment.py:16 models/judgment.py:31 -#: models/judgment.py:46 models/judgment.py:61 models/judgment.py:76 -#: models/judgment.py:90 models/judgment.py:116 models/judgment.py:176 +#: models/author.py:10 models/core_document_model.py:49 +#: models/core_document_model.py:77 models/core_document_model.py:91 +#: models/core_document_model.py:864 models/ingestors.py:14 +#: models/ingestors.py:33 models/judgment.py:16 models/judgment.py:34 +#: models/judgment.py:49 models/judgment.py:64 models/judgment.py:79 +#: models/judgment.py:93 models/judgment.py:119 models/judgment.py:179 #: models/relationships.py:6 models/taxonomies.py:11 msgid "name" msgstr "Nome" -#: models/author.py:11 models/core_document_model.py:47 -#: models/core_document_model.py:75 models/core_document_model.py:91 -#: models/judgment.py:117 models/judgment.py:177 +#: models/author.py:11 models/core_document_model.py:51 +#: models/core_document_model.py:79 models/core_document_model.py:95 +#: models/judgment.py:120 models/judgment.py:180 msgid "code" msgstr "Código" -#: models/author.py:14 models/core_document_model.py:93 models/judgment.py:126 +#: models/author.py:14 models/core_document_model.py:97 models/judgment.py:129 #: models/profile.py:36 models/profile.py:37 models/profile.py:47 #: models/taxonomies.py:15 msgid "profile" @@ -216,10 +231,10 @@ msgstr "perfil" msgid "authors" msgstr "autores" -#: models/citations.py:19 models/core_document_model.py:736 -#: models/core_document_model.py:762 models/core_document_model.py:829 -#: models/core_document_model.py:858 models/core_document_model.py:884 -#: models/judgment.py:458 models/taxonomies.py:52 +#: models/citations.py:19 models/core_document_model.py:768 +#: models/core_document_model.py:794 models/core_document_model.py:880 +#: models/core_document_model.py:909 models/core_document_model.py:935 +#: models/judgment.py:464 models/taxonomies.py:52 msgid "document" msgstr "Documento" @@ -263,272 +278,272 @@ msgstr "Processando dados" msgid "citation processing" msgstr "processamento de citações" -#: models/core_document_model.py:49 +#: models/core_document_model.py:53 msgid "level" msgstr "nível" -#: models/core_document_model.py:63 +#: models/core_document_model.py:67 msgid "label" msgstr "rótulo" -#: models/core_document_model.py:64 models/core_document_model.py:448 +#: models/core_document_model.py:68 models/core_document_model.py:452 msgid "labels" msgstr "rótulos" -#: models/core_document_model.py:76 models/core_document_model.py:815 -#: models/judgment.py:18 models/judgment.py:33 models/judgment.py:48 -#: models/judgment.py:63 models/judgment.py:78 models/judgment.py:91 +#: models/core_document_model.py:80 models/core_document_model.py:866 +#: models/judgment.py:18 models/judgment.py:36 models/judgment.py:51 +#: models/judgment.py:66 models/judgment.py:81 models/judgment.py:94 msgid "description" msgstr "Descrição" -#: models/core_document_model.py:79 +#: models/core_document_model.py:83 msgid "document nature" msgstr "natureza do documento" -#: models/core_document_model.py:80 +#: models/core_document_model.py:84 msgid "document natures" msgstr "índices de documentos" -#: models/core_document_model.py:89 models/core_document_model.py:354 +#: models/core_document_model.py:93 models/core_document_model.py:358 #: models/profile.py:45 msgid "jurisdiction" msgstr "jurisdição" -#: models/core_document_model.py:97 models/core_document_model.py:361 -#: models/judgment.py:141 +#: models/core_document_model.py:101 models/core_document_model.py:365 +#: models/judgment.py:144 msgid "locality" msgstr "localidade" -#: models/core_document_model.py:98 +#: models/core_document_model.py:102 msgid "localities" msgstr "localidades" -#: models/core_document_model.py:111 +#: models/core_document_model.py:115 msgid "FRBR URI" msgstr "FRBR URI" -#: models/core_document_model.py:115 +#: models/core_document_model.py:119 msgid "FRBR URI country" msgstr "País URI do FRBR" -#: models/core_document_model.py:121 +#: models/core_document_model.py:125 msgid "FRBR URI locality" msgstr "Localidade URI FRBR" -#: models/core_document_model.py:127 +#: models/core_document_model.py:131 msgid "FRBR URI place" msgstr "Local URI do FRBR" -#: models/core_document_model.py:133 models/core_document_model.py:377 +#: models/core_document_model.py:137 models/core_document_model.py:381 msgid "FRBR URI doctype" msgstr "Doctype FRBR URI" -#: models/core_document_model.py:139 models/core_document_model.py:384 +#: models/core_document_model.py:143 models/core_document_model.py:388 msgid "FRBR URI subtype" msgstr "FRBR URI subtype" -#: models/core_document_model.py:145 models/core_document_model.py:392 +#: models/core_document_model.py:149 models/core_document_model.py:396 msgid "FRBR URI actor" msgstr "Ator URI FRBR" -#: models/core_document_model.py:151 models/core_document_model.py:400 +#: models/core_document_model.py:155 models/core_document_model.py:404 msgid "FRBR URI date" msgstr "FRBR URI date" -#: models/core_document_model.py:157 models/core_document_model.py:408 +#: models/core_document_model.py:161 models/core_document_model.py:412 msgid "FRBR URI number" msgstr "FRBR URI number" -#: models/core_document_model.py:168 +#: models/core_document_model.py:172 msgid "languages" msgstr "Idiomas" -#: models/core_document_model.py:171 +#: models/core_document_model.py:175 msgid "ranking" msgstr "classificação" -#: models/core_document_model.py:173 +#: models/core_document_model.py:177 msgid "number of cited works" msgstr "número de trabalhos citados" -#: models/core_document_model.py:175 +#: models/core_document_model.py:179 msgid "number of incoming citations" msgstr "número de citações recebidas" -#: models/core_document_model.py:178 models/core_document_model.py:323 +#: models/core_document_model.py:182 models/core_document_model.py:327 msgid "work" msgstr "Trabalho" -#: models/core_document_model.py:179 +#: models/core_document_model.py:183 msgid "works" msgstr "obras" -#: models/core_document_model.py:326 +#: models/core_document_model.py:330 msgid "document type" msgstr "tipo de documento" -#: models/core_document_model.py:336 models/core_document_model.py:765 +#: models/core_document_model.py:340 models/core_document_model.py:797 msgid "source URL" msgstr "URL fonte" -#: models/core_document_model.py:338 +#: models/core_document_model.py:342 msgid "citation" msgstr "citação" -#: models/core_document_model.py:339 +#: models/core_document_model.py:343 msgid "content HTML" msgstr "conteúdo HTML" -#: models/core_document_model.py:340 +#: models/core_document_model.py:344 msgid "content HTML is AKN" msgstr "HTML do conteúdo é AKN" -#: models/core_document_model.py:341 +#: models/core_document_model.py:345 msgid "TOC JSON" msgstr "JSON TOC" -#: models/core_document_model.py:347 +#: models/core_document_model.py:351 msgid "language" msgstr "idioma" -#: models/core_document_model.py:368 models/core_document_model.py:832 +#: models/core_document_model.py:372 models/core_document_model.py:883 msgid "nature" msgstr "natureza" -#: models/core_document_model.py:372 +#: models/core_document_model.py:376 msgid "work FRBR URI" msgstr "work FRBR URI" -#: models/core_document_model.py:389 +#: models/core_document_model.py:393 msgid "Document subtype. Lowercase letters, numbers _ and - only." msgstr "Subtipo do documento. Letras minúsculas, números _ e - apenas." -#: models/core_document_model.py:397 +#: models/core_document_model.py:401 msgid "Originating actor. Lowercase letters, numbers _ and - only." msgstr "Originando ator. Letras minúsculas, números _ e - apenas." -#: models/core_document_model.py:405 +#: models/core_document_model.py:409 msgid "YYYY, YYYY-MM, or YYYY-MM-DD" msgstr "AAAA, AAAA-MM, ou AAAA-MM-DD" -#: models/core_document_model.py:414 +#: models/core_document_model.py:418 msgid "Unique number or short title identifying this work. Lowercase letters, numbers _ and - only." msgstr "Número único ou título curto que identifique este trabalho. Letras minúsculas, números _ e - apenas." -#: models/core_document_model.py:419 +#: models/core_document_model.py:423 msgid "expression FRBR URI" msgstr "expression FRBR URI" -#: models/core_document_model.py:423 +#: models/core_document_model.py:427 msgid "created at" msgstr "criado em" -#: models/core_document_model.py:424 +#: models/core_document_model.py:428 msgid "updated at" msgstr "atualizado em" -#: models/core_document_model.py:430 +#: models/core_document_model.py:434 msgid "created by" msgstr "criado por" -#: models/core_document_model.py:433 +#: models/core_document_model.py:437 msgid "allow robots" msgstr "allow robots" -#: models/core_document_model.py:436 +#: models/core_document_model.py:440 msgid "Allow this document to be indexed by search engine robots." msgstr "Permitir que este documento seja indexado por robôs mecanismos de busca." -#: models/core_document_model.py:443 +#: models/core_document_model.py:447 msgid "Is this document published and visible on the website?" msgstr "Este documento está publicado e visível no site?" -#: models/core_document_model.py:484 +#: models/core_document_model.py:505 msgid "You cannot set a future date for the document" msgstr "Você não pode definir uma data futura para o documento" -#: models/core_document_model.py:492 +#: models/core_document_model.py:513 #, python-format msgid "Invalid FRBR URI: %(uri)s" msgstr "Invalid FRBR URI: %(uri)s" -#: models/core_document_model.py:503 +#: models/core_document_model.py:524 msgid "Document with this Expression FRBR URI already exists!" msgstr "Documento com esta Expressão FRBR URI já existe!" -#: models/core_document_model.py:707 +#: models/core_document_model.py:731 msgid "filename" msgstr "nome_arquivo" -#: models/core_document_model.py:708 +#: models/core_document_model.py:732 msgid "mimetype" msgstr "mimetype" -#: models/core_document_model.py:709 +#: models/core_document_model.py:733 msgid "size" msgstr "tamanho" -#: models/core_document_model.py:710 models/core_document_model.py:738 +#: models/core_document_model.py:734 models/core_document_model.py:770 msgid "file" msgstr "arquivo" -#: models/core_document_model.py:742 +#: models/core_document_model.py:774 msgid "images" msgstr "Imagens" -#: models/core_document_model.py:769 +#: models/core_document_model.py:800 msgid "file as pdf" msgstr "arquivo como pdf" -#: models/core_document_model.py:777 +#: models/core_document_model.py:808 msgid "source file" msgstr "arquivo de origem" -#: models/core_document_model.py:778 +#: models/core_document_model.py:809 msgid "source files" msgstr "arquivos de origem" -#: models/core_document_model.py:818 +#: models/core_document_model.py:869 msgid "attached file nature" msgstr "arquivo anexado natureza" -#: models/core_document_model.py:819 +#: models/core_document_model.py:870 msgid "attached file natures" msgstr "índices de arquivos anexados" -#: models/core_document_model.py:836 +#: models/core_document_model.py:887 msgid "attached file" msgstr "arquivo anexado" -#: models/core_document_model.py:837 +#: models/core_document_model.py:888 msgid "attached files" msgstr "arquivos anexados" -#: models/core_document_model.py:861 +#: models/core_document_model.py:912 msgid "Law report citation/Alternative known name" msgstr "Citação de relatório jurídico/Nome conhecido alternativo" -#: models/core_document_model.py:868 +#: models/core_document_model.py:919 msgid "alternative name" msgstr "nome alternativo" -#: models/core_document_model.py:869 +#: models/core_document_model.py:920 msgid "alternative names" msgstr "nomes alternativos" -#: models/core_document_model.py:889 +#: models/core_document_model.py:940 msgid "document text" msgstr "texto do documento" -#: models/core_document_model.py:893 +#: models/core_document_model.py:944 msgid "document XML" msgstr "documento XML" -#: models/core_document_model.py:897 +#: models/core_document_model.py:948 msgid "document content" msgstr "conteúdo do documento" -#: models/core_document_model.py:898 +#: models/core_document_model.py:949 msgid "document contents" msgstr "conteúdo documento" @@ -560,11 +575,15 @@ msgstr "chave" msgid "volume number" msgstr "número do volume" -#: models/gazette.py:28 +#: models/gazette.py:26 +msgid "special" +msgstr "" + +#: models/gazette.py:29 msgid "gazette" msgstr "olhar" -#: models/gazette.py:29 +#: models/gazette.py:30 msgid "gazettes" msgstr "olhares" @@ -640,164 +659,194 @@ msgstr "habilitado" msgid "attorney" msgstr "advogado" -#: models/judgment.py:23 models/judgment.py:257 +#: models/judgment.py:23 models/judgment.py:261 msgid "attorneys" msgstr "advogados" -#: models/judgment.py:52 +#: models/judgment.py:30 +#, fuzzy +#| msgid "Judges" +msgid "Judge" +msgstr "Juízes" + +#: models/judgment.py:31 templates/peachjam/_case_histories.html:8 +#: templates/peachjam/layouts/document_detail.html:243 views/courts.py:61 +msgid "Judges" +msgstr "Juízes" + +#: models/judgment.py:55 msgid "order outcome" msgstr "resultado do pedido" -#: models/judgment.py:53 +#: models/judgment.py:56 msgid "order outcomes" msgstr "resultados de pedidos" -#: models/judgment.py:67 models/judgment.py:513 +#: models/judgment.py:70 models/judgment.py:519 msgid "outcome" msgstr "resultado" -#: models/judgment.py:68 +#: models/judgment.py:71 msgid "outcomes" msgstr "resultados" -#: models/judgment.py:82 models/judgment.py:451 +#: models/judgment.py:85 models/judgment.py:457 msgid "matter type" msgstr "tipo de matéria" -#: models/judgment.py:83 +#: models/judgment.py:86 msgid "matter types" msgstr "tipos de assuntos" -#: models/judgment.py:93 models/judgment.py:128 models/judgment.py:271 +#: models/judgment.py:96 models/judgment.py:131 models/judgment.py:275 msgid "order" msgstr "ordem" -#: models/judgment.py:101 models/judgment.py:123 +#: models/judgment.py:104 models/judgment.py:126 msgid "court class" msgstr "aula do tribunal" -#: models/judgment.py:102 +#: models/judgment.py:105 msgid "court classes" msgstr "aulas de corte" -#: models/judgment.py:134 +#: models/judgment.py:137 msgid "country" msgstr "País" -#: models/judgment.py:149 models/judgment.py:174 models/judgment.py:237 -#: models/judgment.py:517 +#: models/judgment.py:152 models/judgment.py:177 models/judgment.py:241 +#: models/judgment.py:523 msgid "court" msgstr "tribunal" -#: models/judgment.py:150 +#: models/judgment.py:153 msgid "courts" msgstr "Tribunais" -#: models/judgment.py:165 +#: models/judgment.py:168 msgid "Court registry" msgstr "Registro do tribunal" -#: models/judgment.py:166 +#: models/judgment.py:169 msgid "Court registries" msgstr "Registros judiciais" -#: models/judgment.py:180 +#: models/judgment.py:184 msgid "court registry" msgstr "tribunal de registro" -#: models/judgment.py:181 +#: models/judgment.py:185 msgid "court registries" msgstr "Tribunal de registros" -#: models/judgment.py:208 models/judgment.py:224 models/judgment.py:316 -#: models/judgment.py:496 +#: models/judgment.py:212 models/judgment.py:228 models/judgment.py:320 msgid "judgment" msgstr "julgamento" -#: models/judgment.py:227 +#: models/judgment.py:231 msgid "lower_court_judge" msgstr "juiz_do_tribunal_inferior" -#: models/judgment.py:269 +#: models/judgment.py:273 msgid "case summary" msgstr "resumo do caso" -#: models/judgment.py:270 +#: models/judgment.py:274 msgid "flynote" msgstr "nota" -#: models/judgment.py:273 +#: models/judgment.py:277 msgid "case name" msgstr "nome do caso" -#: models/judgment.py:275 +#: models/judgment.py:279 msgid "Party names for use in title" msgstr "Nome da party para uso no título" -#: models/judgment.py:281 +#: models/judgment.py:285 msgid "serial number" msgstr "número de série" -#: models/judgment.py:283 +#: models/judgment.py:287 msgid "Serial number for MNC, unique for a year and an author." msgstr "Número de série para MNC, único por um ano e autor." -#: models/judgment.py:286 +#: models/judgment.py:290 msgid "serial number override" msgstr "substituição de número de série" -#: models/judgment.py:289 +#: models/judgment.py:293 msgid "Specific MNC serial number assigned by the court." msgstr "Número de série MNC específico atribuído pelo tribunal." -#: models/judgment.py:293 +#: models/judgment.py:297 msgid "MNC" msgstr "MNC" -#: models/judgment.py:295 +#: models/judgment.py:299 msgid "Media neutral citation" msgstr "Citação neutra de mídia" -#: models/judgment.py:302 -msgid "Auto-assign title" +#: models/judgment.py:306 +#, fuzzy +#| msgid "Auto-assign title" +msgid "Auto-assign details" msgstr "Atribuir título automaticamente" -#: models/judgment.py:303 -msgid "Whether or not the system should assign the title" +#: models/judgment.py:307 +#, fuzzy +#| msgid "Whether or not the system should assign the title" +msgid "Whether or not the system should assign the details" msgstr "Se o sistema deve ou não atribuir o título" -#: models/judgment.py:317 +#: models/judgment.py:321 msgid "judgments" msgstr "julgamentos" -#: models/judgment.py:437 +#: models/judgment.py:443 msgid "Full case number as printed on judgment" msgstr "Número completo do processo conforme impresso na sentença" -#: models/judgment.py:441 +#: models/judgment.py:447 msgid "Override for full case number string" msgstr "Substituir para string de número de caso completo" -#: models/judgment.py:443 +#: models/judgment.py:449 msgid "string" msgstr "sequência" -#: models/judgment.py:444 +#: models/judgment.py:450 msgid "number" msgstr "Número" -#: models/judgment.py:445 +#: models/judgment.py:451 msgid "year" msgstr "ano" -#: models/judgment.py:506 -msgid "historical judgment" +#: models/judgment.py:502 +#, fuzzy +#| msgid "judgment" +msgid "judgment work" +msgstr "julgamento" + +#: models/judgment.py:512 +#, fuzzy +#| msgid "historical judgment" +msgid "historical judgment work" msgstr "julgamento histórico" -#: models/judgment.py:524 +#: models/judgment.py:529 +msgid "case history" +msgstr "histórico de caso" + +#: models/judgment.py:530 msgid "case histories" msgstr "históricos de casos" +#: models/judgment.py:537 templates/peachjam/layouts/document_detail.html:127 +msgid "Case history" +msgstr "Histórico de caso" + #: models/profile.py:13 msgid "about HTML" msgstr "sobre HTML" @@ -924,50 +973,54 @@ msgid "linkedin link" msgstr "link do LinkedIn" #: models/settings.py:88 +msgid "youtube link" +msgstr "" + +#: models/settings.py:91 msgid "contact form URL" msgstr "URL do formulário de contato" -#: models/settings.py:91 +#: models/settings.py:94 msgid "re-extract citations" msgstr "reextrair citações" -#: models/settings.py:94 +#: models/settings.py:97 msgid "Pocket Law repo" msgstr "Repositório Pocket Law" -#: models/settings.py:97 +#: models/settings.py:100 msgid "editor help link" msgstr "link de ajuda do editor" -#: models/settings.py:103 +#: models/settings.py:106 msgid "user help link" msgstr "link de ajuda do usuário" -#: models/settings.py:109 +#: models/settings.py:112 msgid "admin emails" msgstr "e-mails de administrador" -#: models/settings.py:113 +#: models/settings.py:116 msgid "Enter one or more email addresses separated by spaces." msgstr "Insira um ou mais endereços de e-mail separados por espaços." -#: models/settings.py:116 +#: models/settings.py:119 msgid "matomo domain" msgstr "domínio matomo" -#: models/settings.py:120 +#: models/settings.py:123 msgid "Matomo domain (e.g. mysite.matomo.cloud)" msgstr "Domínio Matomo (por exemplo, meusite.matomo.cloud)" -#: models/settings.py:123 +#: models/settings.py:126 msgid "matomo site ID" msgstr "ID do site matomo" -#: models/settings.py:127 +#: models/settings.py:130 msgid "Matomo site ID (e.g. 2)" msgstr "ID do site Matomo (por exemplo, 2)" -#: models/settings.py:131 +#: models/settings.py:134 msgid "site settings" msgstr "configurações do site" @@ -987,19 +1040,19 @@ msgstr "tópico do documento" msgid "document topics" msgstr "tópicos do documento" -#: settings.py:248 +#: settings.py:251 msgid "English" msgstr "Inglês" -#: settings.py:249 +#: settings.py:252 msgid "French" msgstr "Francês" -#: settings.py:250 +#: settings.py:253 msgid "Portuguese" msgstr "Português" -#: settings.py:251 +#: settings.py:254 msgid "Swahili" msgstr "Suaíli" @@ -1052,10 +1105,12 @@ msgstr "Esqueceu-se da sua senha?" #: templates/account/login.html:76 #, python-format -msgid "\n" +msgid "" +"\n" " Log in with %(provider.name)s\n" " " -msgstr "\n" +msgstr "" +"\n" " Efetuar Login com %(provider.name)s\n" " " @@ -1154,13 +1209,6 @@ msgstr "Expandir tudo" msgid "Need help? Please email {{ SUPPORT_EMAIL }}." msgstr "Precisa de ajuda? Envie um email para {{ SUPPORT_EMAIL }}." -#: templates/peachjam/_case_histories.html:5 -#: templates/peachjam/_document_table.html:13 -#: templates/peachjam/_judgment_table.html:6 -#: templates/peachjam/layouts/document_detail.html:261 -msgid "Date" -msgstr "Data" - #: templates/peachjam/_case_histories.html:6 msgid "Case" msgstr "Caso" @@ -1170,11 +1218,6 @@ msgstr "Caso" msgid "Court" msgstr "Tribunal" -#: templates/peachjam/_case_histories.html:8 -#: templates/peachjam/layouts/document_detail.html:243 -msgid "Judges" -msgstr "Juízes" - #: templates/peachjam/_case_histories.html:9 #: templates/peachjam/judgment_detail.html:72 msgid "Outcome" @@ -1184,12 +1227,6 @@ msgstr "Resultado" msgid "Subsidiary legislation" msgstr "Legislação subsidiária" -#: templates/peachjam/_child_documents.html:7 -#: templates/peachjam/_document_table.html:6 -#: templates/peachjam/_judgment_table.html:5 -msgid "Title" -msgstr "Título" - #: templates/peachjam/_child_documents.html:8 msgid "Numbered title" msgstr "Título numerado" @@ -1243,27 +1280,29 @@ msgstr "Tabela de conteúdos" msgid "Pages" msgstr "Páginas" -#: templates/peachjam/_document_content.html:140 +#: templates/peachjam/_document_content.html:141 msgid "Loading PDF..." msgstr "Carregando PDF..." -#: templates/peachjam/_document_content.html:150 +#: templates/peachjam/_document_content.html:151 #, python-format msgid "This document is %(filesize)s. Do you want to load it?" msgstr "Este documento é %(filesize)s. Deseja carregá-lo?" -#: templates/peachjam/_document_content.html:154 +#: templates/peachjam/_document_content.html:155 msgid "Load document" msgstr "Carregar documento" -#: templates/peachjam/_document_content.html:163 +#: templates/peachjam/_document_content.html:164 msgid "To the top" msgstr "Para o topo" #: templates/peachjam/_document_count.html:3 -#, python-format -msgid "%(doc_count)s document" -msgid_plural "%(doc_count)s documents" +#, fuzzy, python-format +#| msgid "%(doc_count)s document" +#| msgid_plural "%(doc_count)s documents" +msgid "%(n_docs)s document" +msgid_plural "%(n_docs)s documents" msgstr[0] "%(doc_count)s documento" msgstr[1] "%(doc_count)s documentos" @@ -1294,12 +1333,36 @@ msgstr "Relatório" msgid "Report a problem" msgstr "Reportar um problema" -#: templates/peachjam/_document_table.html:8 +#: templates/peachjam/_document_table.html:20 #: templates/peachjam/layouts/document_detail.html:164 msgid "Jurisdiction" msgstr "Jurisdição" -#: templates/peachjam/_document_table.html:38 +#: templates/peachjam/_document_table.html:49 +msgid "No documents found." +msgstr "Nenhum documento encontrado." + +#: templates/peachjam/_document_table_form.html:14 +#: templates/peachjam/_document_table_form.html:36 +msgid "Filters" +msgstr "Filtros" + +#: templates/peachjam/_document_table_form.html:25 +msgid "Close" +msgstr "" + +#: templates/peachjam/_document_table_form.html:103 +#: templates/peachjam/_document_table_form.html:104 +#, fuzzy +#| msgid "Cited documents" +msgid "Filter documents" +msgstr "Documentos citados" + +#: templates/peachjam/_document_table_form.html:111 +msgid "Sort by" +msgstr "" + +#: templates/peachjam/_document_table_row.html:25 #: templates/peachjam/layouts/document_detail.html:297 msgid "Multiple languages available" msgstr "Vários idiomas disponíveis" @@ -1369,10 +1432,10 @@ msgstr "Data de ratificação" msgid "Deposit Date" msgstr "Data do Depósito" -#: templates/peachjam/_recent_document_list.html:14 -#: templates/peachjam/court_detail.html:62 -#: templates/peachjam/layouts/document_list.html:60 -msgid "No documents found." +#: templates/peachjam/_recent_document_list.html:18 +#, fuzzy +#| msgid "No documents found." +msgid "No recent documents." msgstr "Nenhum documento encontrado." #: templates/peachjam/_related_documents.html:4 @@ -1381,7 +1444,7 @@ msgstr "Nenhum documento encontrado." msgid "Related documents" msgstr "Documentos relacionados" -#: templates/peachjam/_social_media.html:4 +#: templates/peachjam/_social_media.html:5 msgid "Contact us" msgstr "Contate-nos" @@ -1392,7 +1455,7 @@ msgstr "Contate-nos" msgid "Taxonomies" msgstr "Taxonomies" -#: templates/peachjam/_taxonomy_list.html:23 +#: templates/peachjam/_taxonomy_list.html:22 #: templates/peachjam/taxonomy_first_level_detail.html:31 msgid "No taxonomies found" msgstr "Nenhuma taxonomia encontrada" @@ -1689,7 +1752,7 @@ msgstr "Livros" #: templates/peachjam/court_detail.html:9 #: templates/peachjam/judgment_detail.html:7 #: templates/peachjam/judgment_list.html:4 -#: templates/peachjam/judgment_list.html:9 views/courts.py:23 +#: templates/peachjam/judgment_list.html:11 views/courts.py:27 msgid "Judgments" msgstr "Julgamentos" @@ -1724,6 +1787,10 @@ msgid_plural "%(doc_count)s gazettes" msgstr[0] "%(doc_count)s azeta" msgstr[1] "%(doc_count)s olhares" +#: templates/peachjam/gazette_year.html:77 +msgid "Special" +msgstr "" + #: templates/peachjam/generic_document_list.html:4 #: templates/peachjam/generic_document_list.html:7 msgid "Generic Documents" @@ -1768,7 +1835,7 @@ msgstr "Data da audiência" msgid "Case number" msgstr "Número do processo" -#: templates/peachjam/judgment_detail.html:98 +#: templates/peachjam/judgment_detail.html:98 views/courts.py:97 msgid "Attorneys" msgstr "Advogados" @@ -1784,7 +1851,7 @@ msgstr "Ordem" msgid "Case summary" msgstr "Resumo do caso" -#: templates/peachjam/judgment_list.html:17 +#: templates/peachjam/judgment_list.html:22 msgid "Recent judgments" msgstr "Julgamentos recentes" @@ -1800,10 +1867,6 @@ msgstr "Histórico" msgid "Citations" msgstr "Citações" -#: templates/peachjam/layouts/document_detail.html:127 -msgid "Case history" -msgstr "Histórico de caso" - #: templates/peachjam/layouts/document_detail.html:140 msgid "Ratifications" msgstr "Tarifas" @@ -1837,14 +1900,11 @@ msgstr "tipo" msgid "%(n_relationships)s related documents" msgstr "%(n_relationships)s documentos relacionados" -#: templates/peachjam/layouts/document_list.html:27 +#: templates/peachjam/layouts/document_list.html:4 +#: templates/peachjam/layouts/document_list.html:12 msgid "Documents" msgstr "Documentos" -#: templates/peachjam/layouts/document_list.html:43 -msgid "Filters" -msgstr "Filtros" - #: templates/peachjam/legal_instrument_list.html:4 #: templates/peachjam/legal_instrument_list.html:7 msgid "Legal Instruments" @@ -1882,51 +1942,76 @@ msgstr "Termos de Utilização" msgid "Navigation" msgstr "Navigation" -#: views/courts.py:245 +#: views/courts.py:79 +#, fuzzy +#| msgid "Outcome" +msgid "Outcomes" +msgstr "Resultado" + +#: views/courts.py:105 views/generic_views.py:209 +msgid "Alphabet" +msgstr "" + +#: views/courts.py:272 msgid "Courts" msgstr "Tribunais" -#: views/legislation.py:60 +#: views/generic_views.py:185 +msgid "Years" +msgstr "" + +#: views/generic_views.py:197 +#, fuzzy +#| msgid "document nature" +msgid "Document nature" +msgstr "natureza do documento" + +#: views/generic_views.py:203 +#, fuzzy +#| msgid "topics" +msgid "Topics" +msgstr "tópicos" + +#: views/legislation.py:61 #, python-format msgid "This %(friendly_type)s was repealed on %(date)s by %(repealing_title)s." msgstr "Este %(friendly_type)s foi revogado em %(date)s por %(repealing_title)s." -#: views/legislation.py:76 +#: views/legislation.py:77 #, python-format msgid "This %(friendly_type)s will come into force on %(date)s." msgstr "Este %(friendly_type)s entrará em vigor em %(date)s." -#: views/legislation.py:91 +#: views/legislation.py:92 #, python-format msgid "This %(friendly_type)s has not yet come into force in full. See the Document detail tab for more information." msgstr "Este %(friendly_type)s ainda não entrou em vigor na íntegra. Consulte a guia Detalhes do documento para obter mais informações." -#: views/legislation.py:102 +#: views/legislation.py:103 #, python-format msgid "This %(friendly_type)s has not yet come into force." msgstr "Este %(friendly_type)s ainda não entrou em vigor." -#: views/legislation.py:135 +#: views/legislation.py:136 #, python-format msgid "This is the version of this %(friendly_type)s as it was when it was repealed." msgstr "Esta é a versão deste %(friendly_type)s como era quando foi revogada." -#: views/legislation.py:149 +#: views/legislation.py:150 #, python-format msgid "This is the latest version of this %(friendly_type)s." msgstr "Esta é a versão mais recente deste %(friendly_type)s." -#: views/legislation.py:164 +#: views/legislation.py:165 #, python-format msgid "This is the version of this %(friendly_type)s as it was from %(date_from)s to %(date_to)s. Read the version as it was when it was repealed." msgstr "Esta é a versão deste %(friendly_type)s como era de %(date_from)s a %(date_to)s. Leia a versão tal como se encontrava quando foi revogada." -#: views/legislation.py:169 +#: views/legislation.py:170 #, python-format msgid "This is the version of this %(friendly_type)s as it was from %(date_from)s to %(date_to)s. Read the latest available version." msgstr "Esta é a versão deste %(friendly_type)s como era de %(date_from)s a %(date_to)s. Leia a última versão disponível." -#: views/legislation.py:224 +#: views/legislation.py:225 msgid "There are outstanding amendments that have not yet been applied. See the History tab for more information." msgstr "Existem alterações pendentes que ainda não foram aplicadas. Consulte a guia Histórico para obter mais informações." - diff --git a/peachjam/locale/sw/LC_MESSAGES/django.po b/peachjam/locale/sw/LC_MESSAGES/django.po index ddfb15c27..4c8bebe9a 100644 --- a/peachjam/locale/sw/LC_MESSAGES/django.po +++ b/peachjam/locale/sw/LC_MESSAGES/django.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: 39b2fd8e1f2e7f60a21a2ff40372741a\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-06 15:17+0200\n" +"POT-Creation-Date: 2024-07-17 09:40+0200\n" "PO-Revision-Date: 2024-06-09 10:56\n" "Last-Translator: \n" "Language-Team: Swahili\n" @@ -21,106 +21,121 @@ msgstr "" msgid "Import" msgstr "Ingiza/tuma" -#: admin.py:407 +#: admin.py:408 msgid "Key details" msgstr "Maelezo muhimu" -#: admin.py:420 +#: admin.py:421 msgid "Additional details" msgstr "Maelezo ya ziada" -#: admin.py:433 admin.py:860 +#: admin.py:434 admin.py:874 msgid "Work identification" msgstr "Utambulisho wa kazi" -#: admin.py:446 +#: admin.py:447 msgid "Content" msgstr "Maudhui" -#: admin.py:454 admin.py:859 +#: admin.py:455 admin.py:873 msgid "Advanced" msgstr "Ya hali ya juu" -#: admin.py:622 +#: admin.py:631 msgid "Documents published." msgstr "Nyaraka zilizochapishwa." -#: admin.py:624 +#: admin.py:633 msgid "Publish selected documents" msgstr "Chapisha nyaraka zilizochaguliwa" -#: admin.py:628 +#: admin.py:637 msgid "Documents unpublished." msgstr "Nyaraka hazijachapishwa." -#: admin.py:630 +#: admin.py:639 msgid "Unpublish selected documents" msgstr "Usichapishe nyaraka zilizochaguliwa" -#: admin.py:710 models/judgment.py:463 models/judgment.py:499 +#: admin.py:719 models/judgment.py:469 models/judgment.py:505 msgid "case number" msgstr "namba ya kesi" -#: admin.py:711 models/judgment.py:464 +#: admin.py:720 models/judgment.py:470 msgid "case numbers" msgstr "namba za kesi" -#: admin.py:719 admin.py:720 models/judgment.py:523 -msgid "case history" -msgstr "historia ya kesi" - -#: admin.py:740 models/judgment.py:37 models/judgment.py:210 +#: admin.py:729 models/judgment.py:40 models/judgment.py:214 msgid "judge" msgstr "jaji" -#: admin.py:741 models/judgment.py:38 models/judgment.py:247 -#: models/judgment.py:515 +#: admin.py:730 models/judgment.py:41 models/judgment.py:251 +#: models/judgment.py:521 msgid "judges" msgstr "majaji" -#: admin.py:747 +#: admin.py:736 msgid "lower court judge" msgstr "hakimu wa mahakama ya chini" -#: admin.py:748 models/judgment.py:253 +#: admin.py:737 models/judgment.py:257 msgid "lower court judges" msgstr "majaji wa mahakama ya mwanzo" -#: admin.py:903 +#: admin.py:917 msgid "Refreshing content in the background." msgstr "Inaonyesha upya maudhui kwa nyuma." -#: admin.py:906 +#: admin.py:920 msgid "Refresh content for selected ingestors" msgstr "Onyesha upya maudhui kwa viingiza taarifa vilivyochaguliwa" -#: admin.py:954 +#: admin.py:968 msgid "Articles published." msgstr "Makala zilizochapishwa." -#: admin.py:956 +#: admin.py:970 msgid "Publish selected articles" msgstr "Chapisha makala zilizochaguliwa" -#: admin.py:960 +#: admin.py:974 msgid "Articles unpublished." msgstr "Makala ambazo hazijachapishwa." -#: admin.py:962 +#: admin.py:976 msgid "Unpublish selected articles" msgstr "Batilisha uchapishaji wa makala uliyochagua" -#: forms.py:221 +#: forms.py:94 forms.py:95 templates/peachjam/_child_documents.html:7 +#: templates/peachjam/_document_table.html:13 +msgid "Title" +msgstr "Mada" + +#: forms.py:96 forms.py:97 templates/peachjam/_case_histories.html:5 +#: templates/peachjam/_document_table.html:30 +#: templates/peachjam/layouts/document_detail.html:261 +msgid "Date" +msgstr "Tarehe" + +#: forms.py:96 +msgid "(Newest first)" +msgstr "" + +#: forms.py:97 +msgid "(Oldest first)" +msgstr "" + +#: forms.py:246 msgid "Document problem reported" msgstr "Tatizo kuhusu nyaraka limeripotiwa" -#: models/article.py:21 models/core_document_model.py:334 -#: models/judgment.py:519 +#: models/article.py:21 models/core_document_model.py:338 +#: models/judgment.py:525 msgid "date" msgstr "tarehe" -#: models/article.py:22 models/core_document_model.py:162 -#: models/core_document_model.py:333 +#: models/article.py:22 models/core_document_model.py:166 +#: models/core_document_model.py:337 msgid "title" msgstr "mada" @@ -132,7 +147,7 @@ msgstr "matini" msgid "author" msgstr "mwandishi" -#: models/article.py:31 models/core_document_model.py:741 +#: models/article.py:31 models/core_document_model.py:773 msgid "image" msgstr "picha" @@ -140,12 +155,12 @@ msgstr "picha" msgid "summary" msgstr "muhtasari" -#: models/article.py:34 models/judgment.py:92 models/relationships.py:7 +#: models/article.py:34 models/judgment.py:95 models/relationships.py:7 #: models/taxonomies.py:12 msgid "slug" msgstr "namna rahisi" -#: models/article.py:35 models/core_document_model.py:440 +#: models/article.py:35 models/core_document_model.py:444 msgid "published" msgstr "iliyochapishwa" @@ -185,27 +200,27 @@ msgstr "wasifu wa mtumiaji" msgid "Author" msgstr "Mwandishi" -#: models/author.py:8 +#: models/author.py:8 views/generic_views.py:191 msgid "Authors" msgstr "Waandishi" -#: models/author.py:10 models/core_document_model.py:45 -#: models/core_document_model.py:73 models/core_document_model.py:87 -#: models/core_document_model.py:813 models/ingestors.py:14 -#: models/ingestors.py:33 models/judgment.py:16 models/judgment.py:31 -#: models/judgment.py:46 models/judgment.py:61 models/judgment.py:76 -#: models/judgment.py:90 models/judgment.py:116 models/judgment.py:176 +#: models/author.py:10 models/core_document_model.py:49 +#: models/core_document_model.py:77 models/core_document_model.py:91 +#: models/core_document_model.py:864 models/ingestors.py:14 +#: models/ingestors.py:33 models/judgment.py:16 models/judgment.py:34 +#: models/judgment.py:49 models/judgment.py:64 models/judgment.py:79 +#: models/judgment.py:93 models/judgment.py:119 models/judgment.py:179 #: models/relationships.py:6 models/taxonomies.py:11 msgid "name" msgstr "jina" -#: models/author.py:11 models/core_document_model.py:47 -#: models/core_document_model.py:75 models/core_document_model.py:91 -#: models/judgment.py:117 models/judgment.py:177 +#: models/author.py:11 models/core_document_model.py:51 +#: models/core_document_model.py:79 models/core_document_model.py:95 +#: models/judgment.py:120 models/judgment.py:180 msgid "code" msgstr "mfumo" -#: models/author.py:14 models/core_document_model.py:93 models/judgment.py:126 +#: models/author.py:14 models/core_document_model.py:97 models/judgment.py:129 #: models/profile.py:36 models/profile.py:37 models/profile.py:47 #: models/taxonomies.py:15 msgid "profile" @@ -216,10 +231,10 @@ msgstr "wasifu" msgid "authors" msgstr "waandishi" -#: models/citations.py:19 models/core_document_model.py:736 -#: models/core_document_model.py:762 models/core_document_model.py:829 -#: models/core_document_model.py:858 models/core_document_model.py:884 -#: models/judgment.py:458 models/taxonomies.py:52 +#: models/citations.py:19 models/core_document_model.py:768 +#: models/core_document_model.py:794 models/core_document_model.py:880 +#: models/core_document_model.py:909 models/core_document_model.py:935 +#: models/judgment.py:464 models/taxonomies.py:52 msgid "document" msgstr "hati" @@ -263,272 +278,272 @@ msgstr "tarehe ya kushughulikia" msgid "citation processing" msgstr "ushughulikiaji wa nukuu" -#: models/core_document_model.py:49 +#: models/core_document_model.py:53 msgid "level" msgstr "kiwango" -#: models/core_document_model.py:63 +#: models/core_document_model.py:67 msgid "label" msgstr "lebo" -#: models/core_document_model.py:64 models/core_document_model.py:448 +#: models/core_document_model.py:68 models/core_document_model.py:452 msgid "labels" msgstr "lebo" -#: models/core_document_model.py:76 models/core_document_model.py:815 -#: models/judgment.py:18 models/judgment.py:33 models/judgment.py:48 -#: models/judgment.py:63 models/judgment.py:78 models/judgment.py:91 +#: models/core_document_model.py:80 models/core_document_model.py:866 +#: models/judgment.py:18 models/judgment.py:36 models/judgment.py:51 +#: models/judgment.py:66 models/judgment.py:81 models/judgment.py:94 msgid "description" msgstr "maelezo" -#: models/core_document_model.py:79 +#: models/core_document_model.py:83 msgid "document nature" msgstr "asili ya hati" -#: models/core_document_model.py:80 +#: models/core_document_model.py:84 msgid "document natures" msgstr "asili za hati" -#: models/core_document_model.py:89 models/core_document_model.py:354 +#: models/core_document_model.py:93 models/core_document_model.py:358 #: models/profile.py:45 msgid "jurisdiction" msgstr "mamlaka ya kisheria" -#: models/core_document_model.py:97 models/core_document_model.py:361 -#: models/judgment.py:141 +#: models/core_document_model.py:101 models/core_document_model.py:365 +#: models/judgment.py:144 msgid "locality" msgstr "eneo" -#: models/core_document_model.py:98 +#: models/core_document_model.py:102 msgid "localities" msgstr "maeneo" -#: models/core_document_model.py:111 +#: models/core_document_model.py:115 msgid "FRBR URI" msgstr "FRBR URI" -#: models/core_document_model.py:115 +#: models/core_document_model.py:119 msgid "FRBR URI country" msgstr "FRBR URI nchi" -#: models/core_document_model.py:121 +#: models/core_document_model.py:125 msgid "FRBR URI locality" msgstr "FRBR URI eneo" -#: models/core_document_model.py:127 +#: models/core_document_model.py:131 msgid "FRBR URI place" msgstr "FRBR URI mahali" -#: models/core_document_model.py:133 models/core_document_model.py:377 +#: models/core_document_model.py:137 models/core_document_model.py:381 msgid "FRBR URI doctype" msgstr "Aina ya hati ya FRBR URI" -#: models/core_document_model.py:139 models/core_document_model.py:384 +#: models/core_document_model.py:143 models/core_document_model.py:388 msgid "FRBR URI subtype" msgstr "Aina ndogo ya FRBR URI" -#: models/core_document_model.py:145 models/core_document_model.py:392 +#: models/core_document_model.py:149 models/core_document_model.py:396 msgid "FRBR URI actor" msgstr "Mwigizaji wa FRBR URI " -#: models/core_document_model.py:151 models/core_document_model.py:400 +#: models/core_document_model.py:155 models/core_document_model.py:404 msgid "FRBR URI date" msgstr "Tarehe ya FRBR URI" -#: models/core_document_model.py:157 models/core_document_model.py:408 +#: models/core_document_model.py:161 models/core_document_model.py:412 msgid "FRBR URI number" msgstr "Namba ya URI FRBR" -#: models/core_document_model.py:168 +#: models/core_document_model.py:172 msgid "languages" msgstr "lugha" -#: models/core_document_model.py:171 +#: models/core_document_model.py:175 msgid "ranking" msgstr "kupanga daraja" -#: models/core_document_model.py:173 +#: models/core_document_model.py:177 msgid "number of cited works" msgstr "idadi ya kazi zilizonukuliwa" -#: models/core_document_model.py:175 +#: models/core_document_model.py:179 msgid "number of incoming citations" msgstr "idadi ya nukuu zinazoingia" -#: models/core_document_model.py:178 models/core_document_model.py:323 +#: models/core_document_model.py:182 models/core_document_model.py:327 msgid "work" msgstr "kazi" -#: models/core_document_model.py:179 +#: models/core_document_model.py:183 msgid "works" msgstr "kazi" -#: models/core_document_model.py:326 +#: models/core_document_model.py:330 msgid "document type" msgstr "aina ya hati" -#: models/core_document_model.py:336 models/core_document_model.py:765 +#: models/core_document_model.py:340 models/core_document_model.py:797 msgid "source URL" msgstr "chanzo cha URL" -#: models/core_document_model.py:338 +#: models/core_document_model.py:342 msgid "citation" msgstr "nukuu" -#: models/core_document_model.py:339 +#: models/core_document_model.py:343 msgid "content HTML" msgstr "HTML ya maudhui" -#: models/core_document_model.py:340 +#: models/core_document_model.py:344 msgid "content HTML is AKN" msgstr "HTML ya maudhui ni AKN" -#: models/core_document_model.py:341 +#: models/core_document_model.py:345 msgid "TOC JSON" msgstr "TOC JSON" -#: models/core_document_model.py:347 +#: models/core_document_model.py:351 msgid "language" msgstr "lugha" -#: models/core_document_model.py:368 models/core_document_model.py:832 +#: models/core_document_model.py:372 models/core_document_model.py:883 msgid "nature" msgstr "asili" -#: models/core_document_model.py:372 +#: models/core_document_model.py:376 msgid "work FRBR URI" msgstr "fanya kazi FRBR URI" -#: models/core_document_model.py:389 +#: models/core_document_model.py:393 msgid "Document subtype. Lowercase letters, numbers _ and - only." msgstr "Aina ndogo ya hati. Herufi ndogo, namba _ na - pekee." -#: models/core_document_model.py:397 +#: models/core_document_model.py:401 msgid "Originating actor. Lowercase letters, numbers _ and - only." msgstr "Mwigizaji wa asili. Herufi ndogo, namba _ na - pekee." -#: models/core_document_model.py:405 +#: models/core_document_model.py:409 msgid "YYYY, YYYY-MM, or YYYY-MM-DD" msgstr "YYYY, YYYY-MM, au YYYY-MM-DD" -#: models/core_document_model.py:414 +#: models/core_document_model.py:418 msgid "Unique number or short title identifying this work. Lowercase letters, numbers _ and - only." msgstr "Namba ya kipekee au jina fupi linalotambulisha kazi hii. Herufi ndogo, namba _ na - pekee." -#: models/core_document_model.py:419 +#: models/core_document_model.py:423 msgid "expression FRBR URI" msgstr "maelezo FRBR URI" -#: models/core_document_model.py:423 +#: models/core_document_model.py:427 msgid "created at" msgstr "imeundwa saa" -#: models/core_document_model.py:424 +#: models/core_document_model.py:428 msgid "updated at" msgstr "imesasishwa saa" -#: models/core_document_model.py:430 +#: models/core_document_model.py:434 msgid "created by" msgstr "imetengenezwa na" -#: models/core_document_model.py:433 +#: models/core_document_model.py:437 msgid "allow robots" msgstr "ruhusu roboti" -#: models/core_document_model.py:436 +#: models/core_document_model.py:440 msgid "Allow this document to be indexed by search engine robots." msgstr "Ruhusu hati hii kuorodheshwa na roboti za mtambo tafutizi." -#: models/core_document_model.py:443 +#: models/core_document_model.py:447 msgid "Is this document published and visible on the website?" msgstr "Je, nyaraka hii imechapishwa na inaonekana kwenye tovuti?" -#: models/core_document_model.py:484 +#: models/core_document_model.py:505 msgid "You cannot set a future date for the document" msgstr "Huwezi kuweka tarehe ya baadaye kwa ajili ya hati" -#: models/core_document_model.py:492 +#: models/core_document_model.py:513 #, python-format msgid "Invalid FRBR URI: %(uri)s" msgstr "URI FRBR sio sahihi: %(uri)s" -#: models/core_document_model.py:503 +#: models/core_document_model.py:524 msgid "Document with this Expression FRBR URI already exists!" msgstr "Hati/nyaraka yenye Msimbo huu FRBR URI tayari ipo!" -#: models/core_document_model.py:707 +#: models/core_document_model.py:731 msgid "filename" msgstr "jina la faili" -#: models/core_document_model.py:708 +#: models/core_document_model.py:732 msgid "mimetype" msgstr "aina ya maudhui" -#: models/core_document_model.py:709 +#: models/core_document_model.py:733 msgid "size" msgstr "ukubwa" -#: models/core_document_model.py:710 models/core_document_model.py:738 +#: models/core_document_model.py:734 models/core_document_model.py:770 msgid "file" msgstr "faili" -#: models/core_document_model.py:742 +#: models/core_document_model.py:774 msgid "images" msgstr "picha" -#: models/core_document_model.py:769 +#: models/core_document_model.py:800 msgid "file as pdf" msgstr "faili kama pdf" -#: models/core_document_model.py:777 +#: models/core_document_model.py:808 msgid "source file" msgstr "faili la chanzo" -#: models/core_document_model.py:778 +#: models/core_document_model.py:809 msgid "source files" msgstr "mafaili ya chanzo" -#: models/core_document_model.py:818 +#: models/core_document_model.py:869 msgid "attached file nature" msgstr "aina ya faili lililoambatishwa" -#: models/core_document_model.py:819 +#: models/core_document_model.py:870 msgid "attached file natures" msgstr "aina ya faili lililoambatishwa" -#: models/core_document_model.py:836 +#: models/core_document_model.py:887 msgid "attached file" msgstr "faili lililoambatishwa" -#: models/core_document_model.py:837 +#: models/core_document_model.py:888 msgid "attached files" msgstr "mafaili yaliyoambatishwa" -#: models/core_document_model.py:861 +#: models/core_document_model.py:912 msgid "Law report citation/Alternative known name" msgstr "Nukuu ya ripoti ya sheria/Jina mbadala linalojulikana" -#: models/core_document_model.py:868 +#: models/core_document_model.py:919 msgid "alternative name" msgstr "jina mbadala" -#: models/core_document_model.py:869 +#: models/core_document_model.py:920 msgid "alternative names" msgstr "majina mbadala" -#: models/core_document_model.py:889 +#: models/core_document_model.py:940 msgid "document text" msgstr "maandishi ya hati" -#: models/core_document_model.py:893 +#: models/core_document_model.py:944 msgid "document XML" msgstr "hati ya XML" -#: models/core_document_model.py:897 +#: models/core_document_model.py:948 msgid "document content" msgstr "maudhui ya hati" -#: models/core_document_model.py:898 +#: models/core_document_model.py:949 msgid "document contents" msgstr "maudhui ya hati" @@ -560,11 +575,15 @@ msgstr "ufunguo" msgid "volume number" msgstr "namba ya juzuu" -#: models/gazette.py:28 +#: models/gazette.py:26 +msgid "special" +msgstr "" + +#: models/gazette.py:29 msgid "gazette" msgstr "gazeti la serikali" -#: models/gazette.py:29 +#: models/gazette.py:30 msgid "gazettes" msgstr "magazeti ya serikali" @@ -640,164 +659,194 @@ msgstr "wezeshwa" msgid "attorney" msgstr "wakili" -#: models/judgment.py:23 models/judgment.py:257 +#: models/judgment.py:23 models/judgment.py:261 msgid "attorneys" msgstr "mawakili" -#: models/judgment.py:52 +#: models/judgment.py:30 +#, fuzzy +#| msgid "Judges" +msgid "Judge" +msgstr "Majaji" + +#: models/judgment.py:31 templates/peachjam/_case_histories.html:8 +#: templates/peachjam/layouts/document_detail.html:243 views/courts.py:61 +msgid "Judges" +msgstr "Majaji" + +#: models/judgment.py:55 msgid "order outcome" msgstr "matokeo ya agizo" -#: models/judgment.py:53 +#: models/judgment.py:56 msgid "order outcomes" msgstr "kuagiza matokeo" -#: models/judgment.py:67 models/judgment.py:513 +#: models/judgment.py:70 models/judgment.py:519 msgid "outcome" msgstr "matokeo" -#: models/judgment.py:68 +#: models/judgment.py:71 msgid "outcomes" msgstr "matokeo" -#: models/judgment.py:82 models/judgment.py:451 +#: models/judgment.py:85 models/judgment.py:457 msgid "matter type" msgstr "aina ya jambo" -#: models/judgment.py:83 +#: models/judgment.py:86 msgid "matter types" msgstr "aina za mambo" -#: models/judgment.py:93 models/judgment.py:128 models/judgment.py:271 +#: models/judgment.py:96 models/judgment.py:131 models/judgment.py:275 msgid "order" msgstr "agizo" -#: models/judgment.py:101 models/judgment.py:123 +#: models/judgment.py:104 models/judgment.py:126 msgid "court class" msgstr "daraja la mahakama" -#: models/judgment.py:102 +#: models/judgment.py:105 msgid "court classes" msgstr "makundi ya mahakama" -#: models/judgment.py:134 +#: models/judgment.py:137 msgid "country" msgstr "nchi" -#: models/judgment.py:149 models/judgment.py:174 models/judgment.py:237 -#: models/judgment.py:517 +#: models/judgment.py:152 models/judgment.py:177 models/judgment.py:241 +#: models/judgment.py:523 msgid "court" msgstr "mahakama" -#: models/judgment.py:150 +#: models/judgment.py:153 msgid "courts" msgstr "mahakama" -#: models/judgment.py:165 +#: models/judgment.py:168 msgid "Court registry" msgstr "Usajili wa mahakama" -#: models/judgment.py:166 +#: models/judgment.py:169 msgid "Court registries" msgstr "Masjala za mahakama" -#: models/judgment.py:180 +#: models/judgment.py:184 msgid "court registry" msgstr "usajili wa mahakama" -#: models/judgment.py:181 +#: models/judgment.py:185 msgid "court registries" msgstr "masijala za mahakama" -#: models/judgment.py:208 models/judgment.py:224 models/judgment.py:316 -#: models/judgment.py:496 +#: models/judgment.py:212 models/judgment.py:228 models/judgment.py:320 msgid "judgment" msgstr "hukumu" -#: models/judgment.py:227 +#: models/judgment.py:231 msgid "lower_court_judge" msgstr "hakimu_wa_mahakama_ya_chini" -#: models/judgment.py:269 +#: models/judgment.py:273 msgid "case summary" msgstr "muhtasari wa kesi" -#: models/judgment.py:270 +#: models/judgment.py:274 msgid "flynote" msgstr "mada" -#: models/judgment.py:273 +#: models/judgment.py:277 msgid "case name" msgstr "jina la kesi" -#: models/judgment.py:275 +#: models/judgment.py:279 msgid "Party names for use in title" msgstr "Majina ya Upande mmoja kwa ajili ya matumizi katika cheo" -#: models/judgment.py:281 +#: models/judgment.py:285 msgid "serial number" msgstr "mfuatano wa namba" -#: models/judgment.py:283 +#: models/judgment.py:287 msgid "Serial number for MNC, unique for a year and an author." msgstr "Mfuatano wa namba kwa MNC, ya kipekee kwa mwaka mmoja na mwandishi." -#: models/judgment.py:286 +#: models/judgment.py:290 msgid "serial number override" msgstr "kubadilisha mfuatano wa namba" -#: models/judgment.py:289 +#: models/judgment.py:293 msgid "Specific MNC serial number assigned by the court." msgstr "Mfuatano wa namba maalumu ya MNC iliyotolewa na mahakama." -#: models/judgment.py:293 +#: models/judgment.py:297 msgid "MNC" msgstr "MNC" -#: models/judgment.py:295 +#: models/judgment.py:299 msgid "Media neutral citation" msgstr "Nukuu isiyoegemea upande wowote" -#: models/judgment.py:302 -msgid "Auto-assign title" +#: models/judgment.py:306 +#, fuzzy +#| msgid "Auto-assign title" +msgid "Auto-assign details" msgstr "Weka kichwa cha habari kiotomati" -#: models/judgment.py:303 -msgid "Whether or not the system should assign the title" +#: models/judgment.py:307 +#, fuzzy +#| msgid "Whether or not the system should assign the title" +msgid "Whether or not the system should assign the details" msgstr "Ikiwa mfumo unapaswa kuweka kichwa cha habari au la" -#: models/judgment.py:317 +#: models/judgment.py:321 msgid "judgments" msgstr "hukumu" -#: models/judgment.py:437 +#: models/judgment.py:443 msgid "Full case number as printed on judgment" msgstr "Namba kamili ya kesi kama ilivyochapishwa kwenye hukumu" -#: models/judgment.py:441 +#: models/judgment.py:447 msgid "Override for full case number string" msgstr "Batilisha kwa mfuatano wa nukuu ya kesi kamili" -#: models/judgment.py:443 +#: models/judgment.py:449 msgid "string" msgstr "nukuu nyingi" -#: models/judgment.py:444 +#: models/judgment.py:450 msgid "number" msgstr "namba" -#: models/judgment.py:445 +#: models/judgment.py:451 msgid "year" msgstr "mwaka" -#: models/judgment.py:506 -msgid "historical judgment" +#: models/judgment.py:502 +#, fuzzy +#| msgid "judgment" +msgid "judgment work" +msgstr "hukumu" + +#: models/judgment.py:512 +#, fuzzy +#| msgid "historical judgment" +msgid "historical judgment work" msgstr "hukumu ya kihistoria" -#: models/judgment.py:524 +#: models/judgment.py:529 +msgid "case history" +msgstr "historia ya kesi" + +#: models/judgment.py:530 msgid "case histories" msgstr "historia za kesi" +#: models/judgment.py:537 templates/peachjam/layouts/document_detail.html:127 +msgid "Case history" +msgstr "Historia ya kesi" + #: models/profile.py:13 msgid "about HTML" msgstr "kuhusu HTML" @@ -924,50 +973,54 @@ msgid "linkedin link" msgstr "kiungo kilichounganishwa" #: models/settings.py:88 +msgid "youtube link" +msgstr "" + +#: models/settings.py:91 msgid "contact form URL" msgstr "URL ya fomu ya mawasiliano" -#: models/settings.py:91 +#: models/settings.py:94 msgid "re-extract citations" msgstr "dondoa nukuu upya" -#: models/settings.py:94 +#: models/settings.py:97 msgid "Pocket Law repo" msgstr "Pocket Law repo" -#: models/settings.py:97 +#: models/settings.py:100 msgid "editor help link" msgstr "kiungo cha usaidizi cha mhariri" -#: models/settings.py:103 +#: models/settings.py:106 msgid "user help link" msgstr "kiungo cha usaidizi kwa mtumiaji" -#: models/settings.py:109 +#: models/settings.py:112 msgid "admin emails" msgstr "baruapepe za msimamizi" -#: models/settings.py:113 +#: models/settings.py:116 msgid "Enter one or more email addresses separated by spaces." msgstr "Weka baruapepe moja au zaidi zikitenganishwa na nafasi." -#: models/settings.py:116 +#: models/settings.py:119 msgid "matomo domain" msgstr "kikoa cha matomo" -#: models/settings.py:120 +#: models/settings.py:123 msgid "Matomo domain (e.g. mysite.matomo.cloud)" msgstr "Kikoa cha Matomo (k.m. mysite.matomo.cloud)" -#: models/settings.py:123 +#: models/settings.py:126 msgid "matomo site ID" msgstr "kitambulisho cha tovuti ya matomo" -#: models/settings.py:127 +#: models/settings.py:130 msgid "Matomo site ID (e.g. 2)" msgstr "Kitambulisho cha tovuti ya Matomo (km 2)" -#: models/settings.py:131 +#: models/settings.py:134 msgid "site settings" msgstr "mipangilio ya tovuti" @@ -987,19 +1040,19 @@ msgstr "mada ya hati" msgid "document topics" msgstr "mada za hati" -#: settings.py:248 +#: settings.py:251 msgid "English" msgstr "Kiingereza" -#: settings.py:249 +#: settings.py:252 msgid "French" msgstr "Kifaransa" -#: settings.py:250 +#: settings.py:253 msgid "Portuguese" msgstr "Kireno" -#: settings.py:251 +#: settings.py:254 msgid "Swahili" msgstr "Kiswahili" @@ -1052,10 +1105,12 @@ msgstr "Umesahau nenosiri lako?" #: templates/account/login.html:76 #, python-format -msgid "\n" +msgid "" +"\n" " Log in with %(provider.name)s\n" " " -msgstr "\n" +msgstr "" +"\n" " Ingia na %(provider.name)s\n" " " @@ -1154,13 +1209,6 @@ msgstr "Panua zote" msgid "Need help? Please email {{ SUPPORT_EMAIL }}." msgstr "Je, unahitaji msaada? Tafadhali tuma barua pepe {{ SUPPORT_EMAIL }}." -#: templates/peachjam/_case_histories.html:5 -#: templates/peachjam/_document_table.html:13 -#: templates/peachjam/_judgment_table.html:6 -#: templates/peachjam/layouts/document_detail.html:261 -msgid "Date" -msgstr "Tarehe" - #: templates/peachjam/_case_histories.html:6 msgid "Case" msgstr "Kesi" @@ -1170,11 +1218,6 @@ msgstr "Kesi" msgid "Court" msgstr "Mahakama" -#: templates/peachjam/_case_histories.html:8 -#: templates/peachjam/layouts/document_detail.html:243 -msgid "Judges" -msgstr "Majaji" - #: templates/peachjam/_case_histories.html:9 #: templates/peachjam/judgment_detail.html:72 msgid "Outcome" @@ -1184,12 +1227,6 @@ msgstr "Matokeo" msgid "Subsidiary legislation" msgstr "Sheria za nyongeza" -#: templates/peachjam/_child_documents.html:7 -#: templates/peachjam/_document_table.html:6 -#: templates/peachjam/_judgment_table.html:5 -msgid "Title" -msgstr "Mada" - #: templates/peachjam/_child_documents.html:8 msgid "Numbered title" msgstr "Jina lenye namba" @@ -1243,27 +1280,29 @@ msgstr "Yaliyomo" msgid "Pages" msgstr "Kurasa" -#: templates/peachjam/_document_content.html:140 +#: templates/peachjam/_document_content.html:141 msgid "Loading PDF..." msgstr "Inapakia PDF..." -#: templates/peachjam/_document_content.html:150 +#: templates/peachjam/_document_content.html:151 #, python-format msgid "This document is %(filesize)s. Do you want to load it?" msgstr "Hati hii ni %(filesize)s. Je, ungependa kuipakia?" -#: templates/peachjam/_document_content.html:154 +#: templates/peachjam/_document_content.html:155 msgid "Load document" msgstr "Pakia hati" -#: templates/peachjam/_document_content.html:163 +#: templates/peachjam/_document_content.html:164 msgid "To the top" msgstr "Hadi juu" #: templates/peachjam/_document_count.html:3 -#, python-format -msgid "%(doc_count)s document" -msgid_plural "%(doc_count)s documents" +#, fuzzy, python-format +#| msgid "%(doc_count)s document" +#| msgid_plural "%(doc_count)s documents" +msgid "%(n_docs)s document" +msgid_plural "%(n_docs)s documents" msgstr[0] "%(doc_count)s hati" msgstr[1] "%(doc_count)s hati" @@ -1294,12 +1333,36 @@ msgstr "Ripoti" msgid "Report a problem" msgstr "Ripoti tatizo" -#: templates/peachjam/_document_table.html:8 +#: templates/peachjam/_document_table.html:20 #: templates/peachjam/layouts/document_detail.html:164 msgid "Jurisdiction" msgstr "Mamlaka ya kisheria" -#: templates/peachjam/_document_table.html:38 +#: templates/peachjam/_document_table.html:49 +msgid "No documents found." +msgstr "Hakuna nyaraka zilizopatikana." + +#: templates/peachjam/_document_table_form.html:14 +#: templates/peachjam/_document_table_form.html:36 +msgid "Filters" +msgstr "Vichujio" + +#: templates/peachjam/_document_table_form.html:25 +msgid "Close" +msgstr "" + +#: templates/peachjam/_document_table_form.html:103 +#: templates/peachjam/_document_table_form.html:104 +#, fuzzy +#| msgid "Cited documents" +msgid "Filter documents" +msgstr "Nyaraka zilizonukuliwa" + +#: templates/peachjam/_document_table_form.html:111 +msgid "Sort by" +msgstr "" + +#: templates/peachjam/_document_table_row.html:25 #: templates/peachjam/layouts/document_detail.html:297 msgid "Multiple languages available" msgstr "Lugha nyingi zinapatikana" @@ -1369,10 +1432,10 @@ msgstr "Tarehe ya Kuridhiwa" msgid "Deposit Date" msgstr "Tarehe ya Kuweka" -#: templates/peachjam/_recent_document_list.html:14 -#: templates/peachjam/court_detail.html:62 -#: templates/peachjam/layouts/document_list.html:60 -msgid "No documents found." +#: templates/peachjam/_recent_document_list.html:18 +#, fuzzy +#| msgid "No documents found." +msgid "No recent documents." msgstr "Hakuna nyaraka zilizopatikana." #: templates/peachjam/_related_documents.html:4 @@ -1381,7 +1444,7 @@ msgstr "Hakuna nyaraka zilizopatikana." msgid "Related documents" msgstr "Nyaraka zinazohusiana" -#: templates/peachjam/_social_media.html:4 +#: templates/peachjam/_social_media.html:5 msgid "Contact us" msgstr "Wasiliana nasi" @@ -1392,7 +1455,7 @@ msgstr "Wasiliana nasi" msgid "Taxonomies" msgstr "Taksonomia" -#: templates/peachjam/_taxonomy_list.html:23 +#: templates/peachjam/_taxonomy_list.html:22 #: templates/peachjam/taxonomy_first_level_detail.html:31 msgid "No taxonomies found" msgstr "Hakuna taksonomia zilizopatikana" @@ -1689,7 +1752,7 @@ msgstr "Vitabu" #: templates/peachjam/court_detail.html:9 #: templates/peachjam/judgment_detail.html:7 #: templates/peachjam/judgment_list.html:4 -#: templates/peachjam/judgment_list.html:9 views/courts.py:23 +#: templates/peachjam/judgment_list.html:11 views/courts.py:27 msgid "Judgments" msgstr "Hukumu" @@ -1724,6 +1787,10 @@ msgid_plural "%(doc_count)s gazettes" msgstr[0] "%(doc_count)s gazeti la serikali" msgstr[1] "%(doc_count)s magazeti ya serikali" +#: templates/peachjam/gazette_year.html:77 +msgid "Special" +msgstr "" + #: templates/peachjam/generic_document_list.html:4 #: templates/peachjam/generic_document_list.html:7 msgid "Generic Documents" @@ -1768,7 +1835,7 @@ msgstr "Tarehe ya kusikilizwa" msgid "Case number" msgstr "Namba ya kesi" -#: templates/peachjam/judgment_detail.html:98 +#: templates/peachjam/judgment_detail.html:98 views/courts.py:97 msgid "Attorneys" msgstr "Wanasheria" @@ -1784,7 +1851,7 @@ msgstr "Agizo" msgid "Case summary" msgstr "Muhtasari wa kesi" -#: templates/peachjam/judgment_list.html:17 +#: templates/peachjam/judgment_list.html:22 msgid "Recent judgments" msgstr "Hukumu za hivi karibuni" @@ -1800,10 +1867,6 @@ msgstr "Historia" msgid "Citations" msgstr "Nukuu" -#: templates/peachjam/layouts/document_detail.html:127 -msgid "Case history" -msgstr "Historia ya kesi" - #: templates/peachjam/layouts/document_detail.html:140 msgid "Ratifications" msgstr "Uridhiaji" @@ -1837,14 +1900,11 @@ msgstr "Aina" msgid "%(n_relationships)s related documents" msgstr "%(n_relationships)s nyaraka zinazohusiana" -#: templates/peachjam/layouts/document_list.html:27 +#: templates/peachjam/layouts/document_list.html:4 +#: templates/peachjam/layouts/document_list.html:12 msgid "Documents" msgstr "Nyaraka" -#: templates/peachjam/layouts/document_list.html:43 -msgid "Filters" -msgstr "Vichujio" - #: templates/peachjam/legal_instrument_list.html:4 #: templates/peachjam/legal_instrument_list.html:7 msgid "Legal Instruments" @@ -1882,51 +1942,76 @@ msgstr "Masharti ya matumizi" msgid "Navigation" msgstr "Urambazaji" -#: views/courts.py:245 +#: views/courts.py:79 +#, fuzzy +#| msgid "Outcome" +msgid "Outcomes" +msgstr "Matokeo" + +#: views/courts.py:105 views/generic_views.py:209 +msgid "Alphabet" +msgstr "" + +#: views/courts.py:272 msgid "Courts" msgstr "Mahakama" -#: views/legislation.py:60 +#: views/generic_views.py:185 +msgid "Years" +msgstr "" + +#: views/generic_views.py:197 +#, fuzzy +#| msgid "document nature" +msgid "Document nature" +msgstr "asili ya hati" + +#: views/generic_views.py:203 +#, fuzzy +#| msgid "topics" +msgid "Topics" +msgstr "mada" + +#: views/legislation.py:61 #, python-format msgid "This %(friendly_type)s was repealed on %(date)s by %(repealing_title)s." msgstr "Hii %(friendly_type)s ilifutwa tarehe %(date)s na %(repealing_title)s." -#: views/legislation.py:76 +#: views/legislation.py:77 #, python-format msgid "This %(friendly_type)s will come into force on %(date)s." msgstr "Hii %(friendly_type)s itaanza kutumika tarehe %(date)s." -#: views/legislation.py:91 +#: views/legislation.py:92 #, python-format msgid "This %(friendly_type)s has not yet come into force in full. See the Document detail tab for more information." msgstr "Hii %(friendly_type)s bado haijaanza kutumika kikamilifu. Tazama kichupo cha maelezo ya Hati kwa maelezo zaidi." -#: views/legislation.py:102 +#: views/legislation.py:103 #, python-format msgid "This %(friendly_type)s has not yet come into force." msgstr "Hii %(friendly_type)s bado haijaanza kutumika." -#: views/legislation.py:135 +#: views/legislation.py:136 #, python-format msgid "This is the version of this %(friendly_type)s as it was when it was repealed." msgstr "Hili ni toleo la %(friendly_type)s kama ilivyokuwa wakati wa kufutwa." -#: views/legislation.py:149 +#: views/legislation.py:150 #, python-format msgid "This is the latest version of this %(friendly_type)s." msgstr "Hili ni toleo la hivi karibuni la %(friendly_type)s hii." -#: views/legislation.py:164 +#: views/legislation.py:165 #, python-format msgid "This is the version of this %(friendly_type)s as it was from %(date_from)s to %(date_to)s. Read the version as it was when it was repealed." msgstr "Hili ni toleo la %(friendly_type)s kama ilivyokuwa kutoka %(date_from)s hadi %(date_to)s. Soma toleo kama lilivyokuwa wakati lilipofutwa." -#: views/legislation.py:169 +#: views/legislation.py:170 #, python-format msgid "This is the version of this %(friendly_type)s as it was from %(date_from)s to %(date_to)s. Read the latest available version." msgstr "Hili ni toleo la %(friendly_type)s kama ilivyokuwa kutoka %(date_from)s hadi %(date_to)s. Soma toleo jipya zaidi lalinalopatikana." -#: views/legislation.py:224 +#: views/legislation.py:225 msgid "There are outstanding amendments that have not yet been applied. See the History tab for more information." msgstr "Kuna marekebisho ambayo hayajatekelezwa ambayo bado hayajatekelezwa. Tazama kichupo cha Historia kwa habari zaidi." - diff --git a/peachjam/settings.py b/peachjam/settings.py index 304066c27..257986c3b 100644 --- a/peachjam/settings.py +++ b/peachjam/settings.py @@ -65,6 +65,7 @@ "django.contrib.admin", "django.contrib.auth", "django.contrib.contenttypes", + "django.contrib.humanize", "django.contrib.messages", "django.contrib.sites", "django.contrib.staticfiles", @@ -78,6 +79,7 @@ "django_advanced_password_validation", "martor", "corsheaders", + "django_htmx", ] MIDDLEWARE = [ @@ -96,6 +98,7 @@ "django.middleware.clickjacking.XFrameOptionsMiddleware", "allauth.account.middleware.AccountMiddleware", "django.middleware.cache.FetchFromCacheMiddleware", + "django_htmx.middleware.HtmxMiddleware", ] ROOT_URLCONF = "peachjam.urls" diff --git a/peachjam/static/js/app-prod.js b/peachjam/static/js/app-prod.js index fdb35cc7b..0bb8c4755 100644 --- a/peachjam/static/js/app-prod.js +++ b/peachjam/static/js/app-prod.js @@ -1,2 +1,2 @@ /*! For license information please see app-prod.js.LICENSE.txt */ -(()=>{var __webpack_modules__={9448:(e,t,n)=>{e.exports=n(1908)},1908:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromRange=function(e,t){if(void 0===e)throw new Error('missing required parameter "root"');if(void 0===t)throw new Error('missing required parameter "range"');return s(e,a.fromRange(e,t))},t.fromTextPosition=s,t.toRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=l(e,t,n);return null===o?null:(o.end=Math.min(o.end,e.textContent.length),a.toRange(e,o))},t.toTextPosition=l;var o,r=(o=n(2027))&&o.__esModule?o:{default:o},a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(9535)),i=new RegExp("(.|[\r\n]){1,"+String(32)+"}","g");function s(e,t){if(void 0===e)throw new Error('missing required parameter "root"');if(void 0===t)throw new Error('missing required parameter "selector"');var n=t.start;if(void 0===n)throw new Error('selector missing required property "start"');if(n<0)throw new Error('property "start" must be a non-negative integer');var o=t.end;if(void 0===o)throw new Error('selector missing required property "end"');if(o<0)throw new Error('property "end" must be a non-negative integer');var r=e.textContent.substr(n,o-n),a=Math.max(0,n-32),i=e.textContent.substr(a,n-a),s=Math.min(e.textContent.length,o+32);return{exact:r,prefix:i,suffix:e.textContent.substr(o,s-o)}}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(void 0===e)throw new Error('missing required parameter "root"');if(void 0===t)throw new Error('missing required parameter "selector"');var o=t.exact;if(void 0===o)throw new Error('selector missing required property "exact"');var a=t.prefix,s=t.suffix,l=n.hint,c=new r.default;c.Match_Distance=2*e.textContent.length;var u=o.match(i),d=void 0===l?e.textContent.length/2|0:l,p=Number.POSITIVE_INFINITY,h=Number.NEGATIVE_INFINITY,f=-1,m=void 0!==a,g=void 0!==s,b=!1;m&&(f=c.match_main(e.textContent,a,d))>-1&&(d=f+a.length,b=!0),g&&!b&&(f=c.match_main(e.textContent,s,d+o.length))>-1&&(d=f-o.length);var v=u.shift();if(!((f=c.match_main(e.textContent,v,d))>-1))return null;d=h=(p=f)+v.length;var y=function(t,n){if(!t)return null;var o=c.match_main(e.textContent,n,t.loc);return-1===o?null:(t.loc=o+n.length,t.start=Math.min(t.start,o),t.end=Math.max(t.end,o+n.length),t)};c.Match_Distance=64;var _=u.reduce(y,{start:p,end:h,loc:d});return _?{start:_.start,end:_.end}:null}},9183:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GutterEnrichmentManager=void 0;const o=n(2581);t.GutterEnrichmentManager=class{constructor(e){this.root=e,this.gutter=e.querySelector("la-gutter"),this.akn=e.querySelector("la-akoma-ntoso"),this.providers=[],this.floatingContainer=this.createFloatingContainer(),this.floaterTimeout=null,this.target=null,document.addEventListener("selectionchange",this.selectionChanged.bind(this))}addProvider(e){this.providers.push(e)}createFloatingContainer(){const e=document.createElement("la-gutter-item"),t=document.createElement("div");return t.className="gutter-enrichment-new-buttons btn-group-vertical btn-group-sm bg-white",e.appendChild(t),e}selectionChanged(){const e=document.getSelection();if(this.akn&&this.gutter)if(e&&e.rangeCount>0&&!e.getRangeAt(0).collapsed){this.floaterTimeout&&window.clearTimeout(this.floaterTimeout);const t=e.getRangeAt(0);if(t.commonAncestorContainer.compareDocumentPosition(this.akn)&Node.DOCUMENT_POSITION_CONTAINS){let e=t.startContainer;for(;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.parentElement;this.target=(0,o.rangeToTarget)(t,this.akn),this.target?(this.addProviderButtons(this.target),this.floatingContainer.anchor=e,this.gutter.contains(this.floatingContainer)||this.gutter.appendChild(this.floatingContainer)):this.removeFloater()}}else this.floaterTimeout=window.setTimeout(this.removeFloater.bind(this),200)}addProviderButtons(e){const t=this.floatingContainer.firstElementChild;if(t){t.innerHTML="";for(const n of this.providers){const o=n.getButton(e);o&&(o.addEventListener("click",(()=>{this.removeFloater(),n.addEnrichment(e)})),t.appendChild(o))}}}removeFloater(){this.floatingContainer.remove(),this.floaterTimeout=null}}},8482:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,r)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||o(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(2720),t),r(n(9183),t)},2720:function(e,t,n){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PopupEnrichmentManager=t.EnrichmentMarker=void 0;const r=n(2581),a=o(n(5088));n(9639),n(3612);class i{constructor(e,t){this.provider=e,this.enrichment=t,this.marks=[],this.popups=[]}}t.EnrichmentMarker=i,t.PopupEnrichmentManager=class{constructor(e){this.markTag="mark",this.markClasses=["enrichment","enrichment--popup"],this.documentRoot=e,this.providers=[],this.markers=[],this.observer=this.createObserver()}createObserver(){const e=new MutationObserver((()=>this.applyEnrichments()));return e.observe(this.documentRoot,{childList:!0}),e}addProvider(e){this.providers.push(e)}removeProvider(e){const t=this.providers.indexOf(e);t>-1&&(this.unapplyProviderEnrichments(e),this.providers.splice(t,1))}applyEnrichments(){for(const e of this.providers)this.applyProviderEnrichments(e)}applyProviderEnrichments(e){this.unapplyProviderEnrichments(e);for(const t of e.getEnrichments()){const n=new i(e,t),o=(0,r.targetToRange)(t.target,this.documentRoot);o&&(0,r.markRange)(o,this.markTag,(o=>(n.marks.push(o),o.classList.add(...this.markClasses),e.markCreated(t,o),n.popups.push(this.createPopup(e,t,o)),o))),n.marks.length&&this.markers.push(n)}}unapplyProviderEnrichments(e){const t=this.markers.filter((t=>t.provider===e));for(const e of t)this.unapplyMarker(e)}unapplyMarker(e){for(const t of e.marks)if(t.parentElement){for(;t.firstChild;)t.parentElement.insertBefore(t.firstChild,t);t.parentElement.removeChild(t)}for(const t of e.popups)t.destroy()}createPopup(e,t,n){const o=(0,a.default)(n,{appendTo:document.body,interactive:!0,theme:"light",zIndex:0,delay:[0,0],onShow:o=>{o.setContent(""),o.setContent(e.getPopupContent(t,n))}});return e.popupCreated(t,o),o}}},2581:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aknRangeToTarget=t.rangeToTarget=t.selectorsToRange=t.targetToAknRange=t.targetToRange=t.withoutForeignElements=t.markRange=t.getTextNodes=t.foreignElementsSelector=void 0;const o=n(9535),r=n(9448);function a(e){const t=[],n={TABLE:1,THEAD:1,TBODY:1,TR:1};let o,r,a,i;function s(e,t){return 0!==t?e.splitText(t):e}if(e.startContainer.nodeType===Node.TEXT_NODE)a=s(e.startContainer,e.startOffset);else if(a=document.createNodeIterator(e.startContainer,NodeFilter.SHOW_TEXT).nextNode(),!a)return t;i=e.endContainer.nodeType===Node.TEXT_NODE?s(e.endContainer,e.endOffset):e.endContainer,o=document.createNodeIterator(e.commonAncestorContainer,NodeFilter.SHOW_TEXT,(function(e){return n[e.parentElement.tagName]?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}));let l=o.nextNode();for(;l&&l!==a;)l=o.nextNode();for(;l&&(r=l.compareDocumentPosition(i),0!=(r&Node.DOCUMENT_POSITION_CONTAINS)||0!=(r&Node.DOCUMENT_POSITION_FOLLOWING));)t.push(l),l=o.nextNode();return t}function i(e,n,o=t.foreignElementsSelector){const r=[];for(const t of Array.from(e.querySelectorAll(o))){const e={e:t,before:null,parent:null};t.nextSibling?e.before=t.nextSibling:e.parent=t.parentElement,t.parentElement&&t.parentElement.removeChild(t),r.push(e)}try{return n()}finally{r.reverse();for(const e of r)e.before&&e.before.parentElement?e.before.parentElement.insertBefore(e.e,e.before):e.parent&&e.parent.appendChild(e.e)}}function s(e,t){let n;const a=t.find((e=>"TextPositionSelector"===e.type)),i=t.find((e=>"TextQuoteSelector"===e.type));if(a)try{if(n=(0,o.toRange)(e,a),!i||n.toString()===i.exact)return n}catch(e){}if(i)return(0,r.toRange)(e,i)}t.foreignElementsSelector=".ig",t.getTextNodes=a,t.markRange=function(e,t="mark",n){let o=e.commonAncestorContainer;o.nodeType!==Node.ELEMENT_NODE&&(o=o.parentElement),o&&i(o,(()=>{for(const o of a(e))if(o.parentElement){let e=o.ownerDocument.createElement(t);n&&(e=n(e,o)),e&&(o.parentElement.insertBefore(e,o),e.appendChild(o))}}))},t.withoutForeignElements=i,t.targetToRange=function(e,t){let n=e.anchor_id,o=n.lastIndexOf("__"),r=t.querySelector(`[id="${n}"]`);for(;!r&&o>-1;)n=n.substring(0,o),o=n.lastIndexOf("__"),r=t.querySelector(`[id="${n}"]`);if(r){if(e.selectors)return i(r,(()=>s(r,e.selectors)));{const e=t.ownerDocument.createRange();return e.selectNodeContents(r),e}}return null},t.targetToAknRange=function(e,t){function n(e){return"arguments"===e?t.querySelector(e):t.querySelector(`[eId=${e}]`)}let o=e.anchor_id,r=o.lastIndexOf("__"),a=n(o);for(;!a&&r>-1;)o=o.substring(0,r),r=o.lastIndexOf("__"),a=n(o);if(a){if(e.selectors)return s(a,e.selectors);{const e=new Range;return e.selectNodeContents(a),e}}return null},t.selectorsToRange=s,t.rangeToTarget=function(e,t){let n=e.commonAncestorContainer;if(n.nodeType!==Node.ELEMENT_NODE&&(n=n.parentElement,!n))return null;if(n=n.closest("[id]"),!n||n!==t&&0==(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINS))return null;const a={anchor_id:n.id,selectors:[]};return i(n,(()=>{let t=(0,o.fromRange)(n,e);t.type="TextPositionSelector",a.selectors.push(t),t=(0,r.fromTextPosition)(n,t),t.type="TextQuoteSelector",a.selectors.push(t)})),a},t.aknRangeToTarget=function(e,t){let n=e.commonAncestorContainer;if(n.nodeType!==Node.ELEMENT_NODE&&(n=n.parentElement,!n))return null;if(n=n.closest("[eId]"),!n||n!==t&&0==(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINS))return null;const a={anchor_id:n.getAttribute("eId")||"",selectors:[]};let i=(0,o.fromRange)(n,e);return i.type="TextPositionSelector",a.selectors.push(i),i=(0,r.fromTextPosition)(n,i),i.type="TextQuoteSelector",a.selectors.push(i),a}},8240:(e,t,n)=>{"use strict";n.d(t,{fi:()=>k,kZ:()=>_});var o=n(400),r=n(2163),a=n(2057),i=n(2556),s=n(6333),l=n(4063),c=n(7252),u=n(611),d=n(138);function p(e,t,n){void 0===n&&(n=!1);var p,h,f=(0,i.Re)(t),m=(0,i.Re)(t)&&function(e){var t=e.getBoundingClientRect(),n=(0,d.NM)(t.width)/e.offsetWidth||1,o=(0,d.NM)(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),g=(0,c.Z)(t),b=(0,o.Z)(e,m,n),v={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(f||!f&&!n)&&(("body"!==(0,s.Z)(t)||(0,u.Z)(g))&&(v=(p=t)!==(0,a.Z)(p)&&(0,i.Re)(p)?{scrollLeft:(h=p).scrollLeft,scrollTop:h.scrollTop}:(0,r.Z)(p)),(0,i.Re)(t)?((y=(0,o.Z)(t,!0)).x+=t.clientLeft,y.y+=t.clientTop):g&&(y.x=(0,l.Z)(g))),{x:b.left+v.scrollLeft-y.x,y:b.top+v.scrollTop-y.y,width:b.width,height:b.height}}var h=n(583),f=n(3624),m=n(5961),g=n(7701);function b(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}var v={placement:"bottom",modifiers:[],strategy:"absolute"};function y(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";n.d(t,{Z:()=>r});var o=n(2556);function r(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,o.Zq)(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}},400:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(2556),r=n(138),a=n(2057),i=n(7977);function s(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var s=e.getBoundingClientRect(),l=1,c=1;t&&(0,o.Re)(e)&&(l=e.offsetWidth>0&&(0,r.NM)(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&(0,r.NM)(s.height)/e.offsetHeight||1);var u=((0,o.kK)(e)?(0,a.Z)(e):window).visualViewport,d=!(0,i.Z)()&&n,p=(s.left+(d&&u?u.offsetLeft:0))/l,h=(s.top+(d&&u?u.offsetTop:0))/c,f=s.width/l,m=s.height/c;return{width:f,height:m,top:h,right:p+f,bottom:h+m,left:p,x:p,y:h}}},3062:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(2057);function r(e){return(0,o.Z)(e).getComputedStyle(e)}},7252:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(2556);function r(e){return(((0,o.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}},583:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(400);function r(e){var t=(0,o.Z)(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}},6333:(e,t,n)=>{"use strict";function o(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{Z:()=>o})},5961:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var o=n(2057),r=n(6333),a=n(3062),i=n(2556);function s(e){return["table","td","th"].indexOf((0,r.Z)(e))>=0}var l=n(5923),c=n(5918);function u(e){return(0,i.Re)(e)&&"fixed"!==(0,a.Z)(e).position?e.offsetParent:null}function d(e){for(var t=(0,o.Z)(e),n=u(e);n&&s(n)&&"static"===(0,a.Z)(n).position;)n=u(n);return n&&("html"===(0,r.Z)(n)||"body"===(0,r.Z)(n)&&"static"===(0,a.Z)(n).position)?t:n||function(e){var t=/firefox/i.test((0,c.Z)());if(/Trident/i.test((0,c.Z)())&&(0,i.Re)(e)&&"fixed"===(0,a.Z)(e).position)return null;var n=(0,l.Z)(e);for((0,i.Zq)(n)&&(n=n.host);(0,i.Re)(n)&&["html","body"].indexOf((0,r.Z)(n))<0;){var o=(0,a.Z)(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}},5923:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(6333),r=n(7252),a=n(2556);function i(e){return"html"===(0,o.Z)(e)?e:e.assignedSlot||e.parentNode||((0,a.Zq)(e)?e.host:null)||(0,r.Z)(e)}},2057:(e,t,n)=>{"use strict";function o(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.d(t,{Z:()=>o})},2163:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(2057);function r(e){var t=(0,o.Z)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},4063:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var o=n(400),r=n(7252),a=n(2163);function i(e){return(0,o.Z)((0,r.Z)(e)).left+(0,a.Z)(e).scrollLeft}},2556:(e,t,n)=>{"use strict";n.d(t,{Re:()=>a,Zq:()=>i,kK:()=>r});var o=n(2057);function r(e){return e instanceof(0,o.Z)(e).Element||e instanceof Element}function a(e){return e instanceof(0,o.Z)(e).HTMLElement||e instanceof HTMLElement}function i(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,o.Z)(e).ShadowRoot||e instanceof ShadowRoot)}},7977:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(5918);function r(){return!/^((?!chrome|android).)*safari/i.test((0,o.Z)())}},611:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(3062);function r(e){var t=(0,o.Z)(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}},3624:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var o=n(5923),r=n(611),a=n(6333),i=n(2556);function s(e){return["html","body","#document"].indexOf((0,a.Z)(e))>=0?e.ownerDocument.body:(0,i.Re)(e)&&(0,r.Z)(e)?e:s((0,o.Z)(e))}var l=n(2057);function c(e,t){var n;void 0===t&&(t=[]);var a=s(e),i=a===(null==(n=e.ownerDocument)?void 0:n.body),u=(0,l.Z)(a),d=i?[u].concat(u.visualViewport||[],(0,r.Z)(a)?a:[]):a,p=t.concat(d);return i?p:p.concat(c((0,o.Z)(d)))}},7701:(e,t,n)=>{"use strict";n.d(t,{BL:()=>c,Ct:()=>g,DH:()=>k,F2:()=>a,I:()=>r,MS:()=>A,N7:()=>b,Pj:()=>p,XM:()=>_,YP:()=>f,bw:()=>m,cW:()=>S,d7:()=>s,ij:()=>v,iv:()=>x,k5:()=>h,mv:()=>l,r5:()=>y,t$:()=>i,ut:()=>u,wX:()=>w,we:()=>o,xs:()=>C,zV:()=>d});var o="top",r="bottom",a="right",i="left",s="auto",l=[o,r,a,i],c="start",u="end",d="clippingParents",p="viewport",h="popper",f="reference",m=l.reduce((function(e,t){return e.concat([t+"-"+c,t+"-"+u])}),[]),g=[].concat(l,[s]).reduce((function(e,t){return e.concat([t,t+"-"+c,t+"-"+u])}),[]),b="beforeRead",v="read",y="afterRead",_="beforeMain",k="main",w="afterMain",x="beforeWrite",S="write",A="afterWrite",C=[b,v,y,_,k,w,x,S,A]},7824:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(6333),r=n(2556);const a={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},a=t.attributes[e]||{},i=t.elements[e];(0,r.Re)(i)&&(0,o.Z)(i)&&(Object.assign(i.style,n),Object.keys(a).forEach((function(e){var t=a[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var a=t.elements[e],i=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});(0,r.Re)(a)&&(0,o.Z)(a)&&(Object.assign(a.style,s),Object.keys(i).forEach((function(e){a.removeAttribute(e)})))}))}},requires:["computeStyles"]}},6896:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var o=n(6206),r=n(583),a=n(4985),i=n(5961),s=n(1516),l=n(7516),c=n(3293),u=n(3706),d=n(7701);const p={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,a=e.name,p=e.options,h=n.elements.arrow,f=n.modifiersData.popperOffsets,m=(0,o.Z)(n.placement),g=(0,s.Z)(m),b=[d.t$,d.F2].indexOf(m)>=0?"height":"width";if(h&&f){var v=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,c.Z)("number"!=typeof e?e:(0,u.Z)(e,d.mv))}(p.padding,n),y=(0,r.Z)(h),_="y"===g?d.we:d.t$,k="y"===g?d.I:d.F2,w=n.rects.reference[b]+n.rects.reference[g]-f[g]-n.rects.popper[b],x=f[g]-n.rects.reference[g],S=(0,i.Z)(h),A=S?"y"===g?S.clientHeight||0:S.clientWidth||0:0,C=w/2-x/2,T=v[_],E=A-y[b]-v[k],O=A/2-y[b]/2+C,P=(0,l.u)(T,O,E),D=g;n.modifiersData[a]=((t={})[D]=P,t.centerOffset=P-O,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&(0,a.Z)(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},6531:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var o=n(7701),r=n(5961),a=n(2057),i=n(7252),s=n(3062),l=n(6206),c=n(4943),u=n(138),d={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p(e){var t,n=e.popper,l=e.popperRect,c=e.placement,p=e.variation,h=e.offsets,f=e.position,m=e.gpuAcceleration,g=e.adaptive,b=e.roundOffsets,v=e.isFixed,y=h.x,_=void 0===y?0:y,k=h.y,w=void 0===k?0:k,x="function"==typeof b?b({x:_,y:w}):{x:_,y:w};_=x.x,w=x.y;var S=h.hasOwnProperty("x"),A=h.hasOwnProperty("y"),C=o.t$,T=o.we,E=window;if(g){var O=(0,r.Z)(n),P="clientHeight",D="clientWidth";O===(0,a.Z)(n)&&(O=(0,i.Z)(n),"static"!==(0,s.Z)(O).position&&"absolute"===f&&(P="scrollHeight",D="scrollWidth")),(c===o.we||(c===o.t$||c===o.F2)&&p===o.ut)&&(T=o.I,w-=(v&&O===E&&E.visualViewport?E.visualViewport.height:O[P])-l.height,w*=m?1:-1),c!==o.t$&&(c!==o.we&&c!==o.I||p!==o.ut)||(C=o.F2,_-=(v&&O===E&&E.visualViewport?E.visualViewport.width:O[D])-l.width,_*=m?1:-1)}var M,L=Object.assign({position:f},g&&d),R=!0===b?function(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:(0,u.NM)(n*r)/r||0,y:(0,u.NM)(o*r)/r||0}}({x:_,y:w},(0,a.Z)(n)):{x:_,y:w};return _=R.x,w=R.y,m?Object.assign({},L,((M={})[T]=A?"0":"",M[C]=S?"0":"",M.transform=(E.devicePixelRatio||1)<=1?"translate("+_+"px, "+w+"px)":"translate3d("+_+"px, "+w+"px, 0)",M)):Object.assign({},L,((t={})[T]=A?w+"px":"",t[C]=S?_+"px":"",t.transform="",t))}const h={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=void 0===o||o,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,u=void 0===s||s,d={placement:(0,l.Z)(t.placement),variation:(0,c.Z)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,p(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,p(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}}},2372:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(2057),r={passive:!0};const a={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,a=e.options,i=a.scroll,s=void 0===i||i,l=a.resize,c=void 0===l||l,u=(0,o.Z)(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach((function(e){e.addEventListener("scroll",n.update,r)})),c&&u.addEventListener("resize",n.update,r),function(){s&&d.forEach((function(e){e.removeEventListener("scroll",n.update,r)})),c&&u.removeEventListener("resize",n.update,r)}},data:{}}},5228:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var o={left:"right",right:"left",bottom:"top",top:"bottom"};function r(e){return e.replace(/left|right|bottom|top/g,(function(e){return o[e]}))}var a=n(6206),i={start:"end",end:"start"};function s(e){return e.replace(/start|end/g,(function(e){return i[e]}))}var l=n(9966),c=n(4943),u=n(7701);const d={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var i=n.mainAxis,d=void 0===i||i,p=n.altAxis,h=void 0===p||p,f=n.fallbackPlacements,m=n.padding,g=n.boundary,b=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,_=void 0===y||y,k=n.allowedAutoPlacements,w=t.options.placement,x=(0,a.Z)(w),S=f||(x!==w&&_?function(e){if((0,a.Z)(e)===u.d7)return[];var t=r(e);return[s(e),t,s(t)]}(w):[r(w)]),A=[w].concat(S).reduce((function(e,n){return e.concat((0,a.Z)(n)===u.d7?function(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=n.boundary,i=n.rootBoundary,s=n.padding,d=n.flipVariations,p=n.allowedAutoPlacements,h=void 0===p?u.Ct:p,f=(0,c.Z)(o),m=f?d?u.bw:u.bw.filter((function(e){return(0,c.Z)(e)===f})):u.mv,g=m.filter((function(e){return h.indexOf(e)>=0}));0===g.length&&(g=m);var b=g.reduce((function(t,n){return t[n]=(0,l.Z)(e,{placement:n,boundary:r,rootBoundary:i,padding:s})[(0,a.Z)(n)],t}),{});return Object.keys(b).sort((function(e,t){return b[e]-b[t]}))}(t,{placement:n,boundary:g,rootBoundary:b,padding:m,flipVariations:_,allowedAutoPlacements:k}):n)}),[]),C=t.rects.reference,T=t.rects.popper,E=new Map,O=!0,P=A[0],D=0;D=0,F=I?"width":"height",N=(0,l.Z)(t,{placement:M,boundary:g,rootBoundary:b,altBoundary:v,padding:m}),j=I?R?u.F2:u.t$:R?u.I:u.we;C[F]>T[F]&&(j=r(j));var $=r(j),U=[];if(d&&U.push(N[L]<=0),h&&U.push(N[j]<=0,N[$]<=0),U.every((function(e){return e}))){P=M,O=!1;break}E.set(M,U)}if(O)for(var q=function(e){var t=A.find((function(t){var n=E.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return P=t,"break"},B=_?3:1;B>0&&"break"!==q(B);B--);t.placement!==P&&(t.modifiersData[o]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},9892:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(7701),r=n(9966);function a(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function i(e){return[o.we,o.F2,o.I,o.t$].some((function(t){return e[t]>=0}))}const s={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,s=t.rects.popper,l=t.modifiersData.preventOverflow,c=(0,r.Z)(t,{elementContext:"reference"}),u=(0,r.Z)(t,{altBoundary:!0}),d=a(c,o),p=a(u,s,l),h=i(d),f=i(p);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":f})}}},2122:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var o=n(6206),r=n(7701);const a={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,a=e.name,i=n.offset,s=void 0===i?[0,0]:i,l=r.Ct.reduce((function(e,n){return e[n]=function(e,t,n){var a=(0,o.Z)(e),i=[r.t$,r.we].indexOf(a)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,l=s[0],c=s[1];return l=l||0,c=(c||0)*i,[r.t$,r.F2].indexOf(a)>=0?{x:c,y:l}:{x:l,y:c}}(n,t.rects,s),e}),{}),c=l[t.placement],u=c.x,d=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[a]=l}}},7421:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(9349);const r={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=(0,o.Z)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}}},3920:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var o=n(7701),r=n(6206),a=n(1516),i=n(7516),s=n(583),l=n(5961),c=n(9966),u=n(4943),d=n(3607),p=n(138);const h={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,h=e.name,f=n.mainAxis,m=void 0===f||f,g=n.altAxis,b=void 0!==g&&g,v=n.boundary,y=n.rootBoundary,_=n.altBoundary,k=n.padding,w=n.tether,x=void 0===w||w,S=n.tetherOffset,A=void 0===S?0:S,C=(0,c.Z)(t,{boundary:v,rootBoundary:y,padding:k,altBoundary:_}),T=(0,r.Z)(t.placement),E=(0,u.Z)(t.placement),O=!E,P=(0,a.Z)(T),D="x"===P?"y":"x",M=t.modifiersData.popperOffsets,L=t.rects.reference,R=t.rects.popper,I="function"==typeof A?A(Object.assign({},t.rects,{placement:t.placement})):A,F="number"==typeof I?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(M){if(m){var $,U="y"===P?o.we:o.t$,q="y"===P?o.I:o.F2,B="y"===P?"height":"width",z=M[P],V=z+C[U],H=z-C[q],W=x?-R[B]/2:0,G=E===o.BL?L[B]:R[B],Y=E===o.BL?-R[B]:-L[B],J=t.elements.arrow,Z=x&&J?(0,s.Z)(J):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,d.Z)(),K=X[U],Q=X[q],ee=(0,i.u)(0,L[B],Z[B]),te=O?L[B]/2-W-ee-K-F.mainAxis:G-ee-K-F.mainAxis,ne=O?-L[B]/2+W+ee+Q+F.mainAxis:Y+ee+Q+F.mainAxis,oe=t.elements.arrow&&(0,l.Z)(t.elements.arrow),re=oe?"y"===P?oe.clientTop||0:oe.clientLeft||0:0,ae=null!=($=null==N?void 0:N[P])?$:0,ie=z+te-ae-re,se=z+ne-ae,le=(0,i.u)(x?(0,p.VV)(V,ie):V,z,x?(0,p.Fp)(H,se):H);M[P]=le,j[P]=le-z}if(b){var ce,ue="x"===P?o.we:o.t$,de="x"===P?o.I:o.F2,pe=M[D],he="y"===D?"height":"width",fe=pe+C[ue],me=pe-C[de],ge=-1!==[o.we,o.t$].indexOf(T),be=null!=(ce=null==N?void 0:N[D])?ce:0,ve=ge?fe:pe-L[he]-R[he]-be+F.altAxis,ye=ge?pe+L[he]+R[he]-be-F.altAxis:me,_e=x&&ge?(0,i.q)(ve,pe,ye):(0,i.u)(x?ve:fe,pe,x?ye:me);M[D]=_e,j[D]=_e-pe}t.modifiersData[h]=j}},requiresIfExists:["offset"]}},804:(e,t,n)=>{"use strict";n.d(t,{fi:()=>f});var o=n(8240),r=n(2372),a=n(7421),i=n(6531),s=n(7824),l=n(2122),c=n(5228),u=n(3920),d=n(6896),p=n(9892),h=[r.Z,a.Z,i.Z,s.Z,l.Z,c.Z,u.Z,d.Z,p.Z],f=(0,o.kZ)({defaultModifiers:h})},9349:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var o=n(6206),r=n(4943),a=n(1516),i=n(7701);function s(e){var t,n=e.reference,s=e.element,l=e.placement,c=l?(0,o.Z)(l):null,u=l?(0,r.Z)(l):null,d=n.x+n.width/2-s.width/2,p=n.y+n.height/2-s.height/2;switch(c){case i.we:t={x:d,y:n.y-s.height};break;case i.I:t={x:d,y:n.y+n.height};break;case i.F2:t={x:n.x+n.width,y:p};break;case i.t$:t={x:n.x-s.width,y:p};break;default:t={x:n.x,y:n.y}}var h=c?(0,a.Z)(c):null;if(null!=h){var f="y"===h?"height":"width";switch(u){case i.BL:t[h]=t[h]-(n[f]/2-s[f]/2);break;case i.ut:t[h]=t[h]+(n[f]/2-s[f]/2)}}return t}},9966:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var o=n(7701),r=n(2057),a=n(7252),i=n(4063),s=n(7977),l=n(3062),c=n(2163),u=n(138),d=n(3624),p=n(5961),h=n(2556),f=n(400),m=n(5923),g=n(4985),b=n(6333);function v(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function y(e,t,n){return t===o.Pj?v(function(e,t){var n=(0,r.Z)(e),o=(0,a.Z)(e),l=n.visualViewport,c=o.clientWidth,u=o.clientHeight,d=0,p=0;if(l){c=l.width,u=l.height;var h=(0,s.Z)();(h||!h&&"fixed"===t)&&(d=l.offsetLeft,p=l.offsetTop)}return{width:c,height:u,x:d+(0,i.Z)(e),y:p}}(e,n)):(0,h.kK)(t)?function(e,t){var n=(0,f.Z)(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):v(function(e){var t,n=(0,a.Z)(e),o=(0,c.Z)(e),r=null==(t=e.ownerDocument)?void 0:t.body,s=(0,u.Fp)(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),d=(0,u.Fp)(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),p=-o.scrollLeft+(0,i.Z)(e),h=-o.scrollTop;return"rtl"===(0,l.Z)(r||n).direction&&(p+=(0,u.Fp)(n.clientWidth,r?r.clientWidth:0)-s),{width:s,height:d,x:p,y:h}}((0,a.Z)(e)))}var _=n(9349),k=n(3293),w=n(3706);function x(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,s=n.strategy,c=void 0===s?e.strategy:s,x=n.boundary,S=void 0===x?o.zV:x,A=n.rootBoundary,C=void 0===A?o.Pj:A,T=n.elementContext,E=void 0===T?o.k5:T,O=n.altBoundary,P=void 0!==O&&O,D=n.padding,M=void 0===D?0:D,L=(0,k.Z)("number"!=typeof M?M:(0,w.Z)(M,o.mv)),R=E===o.k5?o.YP:o.k5,I=e.rects.popper,F=e.elements[P?R:E],N=function(e,t,n,o){var r="clippingParents"===t?function(e){var t=(0,d.Z)((0,m.Z)(e)),n=["absolute","fixed"].indexOf((0,l.Z)(e).position)>=0&&(0,h.Re)(e)?(0,p.Z)(e):e;return(0,h.kK)(n)?t.filter((function(e){return(0,h.kK)(e)&&(0,g.Z)(e,n)&&"body"!==(0,b.Z)(e)})):[]}(e):[].concat(t),a=[].concat(r,[n]),i=a[0],s=a.reduce((function(t,n){var r=y(e,n,o);return t.top=(0,u.Fp)(r.top,t.top),t.right=(0,u.VV)(r.right,t.right),t.bottom=(0,u.VV)(r.bottom,t.bottom),t.left=(0,u.Fp)(r.left,t.left),t}),y(e,i,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}((0,h.kK)(F)?F:F.contextElement||(0,a.Z)(e.elements.popper),S,C,c),j=(0,f.Z)(e.elements.reference),$=(0,_.Z)({reference:j,element:I,strategy:"absolute",placement:i}),U=v(Object.assign({},I,$)),q=E===o.k5?U:j,B={top:N.top-q.top+L.top,bottom:q.bottom-N.bottom+L.bottom,left:N.left-q.left+L.left,right:q.right-N.right+L.right},z=e.modifiersData.offset;if(E===o.k5&&z){var V=z[i];Object.keys(B).forEach((function(e){var t=[o.F2,o.I].indexOf(e)>=0?1:-1,n=[o.we,o.I].indexOf(e)>=0?"y":"x";B[e]+=V[n]*t}))}return B}},3706:(e,t,n)=>{"use strict";function o(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}n.d(t,{Z:()=>o})},6206:(e,t,n)=>{"use strict";function o(e){return e.split("-")[0]}n.d(t,{Z:()=>o})},3607:(e,t,n)=>{"use strict";function o(){return{top:0,right:0,bottom:0,left:0}}n.d(t,{Z:()=>o})},1516:(e,t,n)=>{"use strict";function o(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}n.d(t,{Z:()=>o})},4943:(e,t,n)=>{"use strict";function o(e){return e.split("-")[1]}n.d(t,{Z:()=>o})},138:(e,t,n)=>{"use strict";n.d(t,{Fp:()=>o,NM:()=>a,VV:()=>r});var o=Math.max,r=Math.min,a=Math.round},3293:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var o=n(3607);function r(e){return Object.assign({},(0,o.Z)(),e)}},5918:(e,t,n)=>{"use strict";function o(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}n.d(t,{Z:()=>o})},7516:(e,t,n)=>{"use strict";n.d(t,{q:()=>a,u:()=>r});var o=n(138);function r(e,t,n){return(0,o.Fp)(e,(0,o.VV)(t,n))}function a(e,t,n){var o=r(e,t,n);return o>n?n:o}},2262:(e,t,n)=>{"use strict";n.d(t,{$y:()=>Ae,B:()=>i,BK:()=>He,Bj:()=>a,EB:()=>c,Fl:()=>Je,IU:()=>Ee,Jd:()=>A,OT:()=>ke,PG:()=>Se,SU:()=>Ue,Um:()=>_e,Vh:()=>Ge,WL:()=>Be,X$:()=>O,X3:()=>Te,XI:()=>Fe,Xl:()=>Oe,YS:()=>we,ZM:()=>Ve,cE:()=>k,dq:()=>Re,iH:()=>Ie,j:()=>T,lk:()=>C,nZ:()=>l,oR:()=>$e,qj:()=>ye,qq:()=>y,sT:()=>w,yT:()=>Ce});var o=n(3577);let r;class a{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&r&&(this.parent=r,this.index=(r.scopes||(r.scopes=[])).push(this)-1)}run(e){if(this.active)try{return r=this,e()}finally{r=this.parent}}on(){r=this}off(){r=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},d=e=>(e.w&g)>0,p=e=>(e.n&g)>0,h=new WeakMap;let f,m=0,g=1;const b=Symbol(""),v=Symbol("");class y{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,s(this,n)}run(){if(!this.active)return this.fn();let e=f,t=x;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=f,f=this,x=!0,g=1<<++m,m<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o{("length"===t||t>=r)&&l.push(e)}));else switch(void 0!==n&&l.push(s.get(n)),t){case"add":(0,o.kJ)(e)?(0,o.S0)(n)&&l.push(s.get("length")):(l.push(s.get(b)),(0,o._N)(e)&&l.push(s.get(v)));break;case"delete":(0,o.kJ)(e)||(l.push(s.get(b)),(0,o._N)(e)&&l.push(s.get(v)));break;case"set":(0,o._N)(e)&&l.push(s.get(b))}if(1===l.length)l[0]&&P(l[0]);else{const e=[];for(const t of l)t&&e.push(...t);P(u(e))}}function P(e,t){for(const t of(0,o.kJ)(e)?e:[...e])(t!==f||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const D=(0,o.fY)("__proto__,__v_isRef,__isVue"),M=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(o.yk)),L=$(),R=$(!1,!0),I=$(!0),F=$(!0,!0),N=j();function j(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Ee(this);for(let e=0,t=this.length;e{e[t]=function(...e){A();const n=Ee(this)[t].apply(this,e);return C(),n}})),e}function $(e=!1,t=!1){return function(n,r,a){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&a===(e?t?ve:be:t?ge:me).get(n))return n;const i=(0,o.kJ)(n);if(!e&&i&&(0,o.RI)(N,r))return Reflect.get(N,r,a);const s=Reflect.get(n,r,a);return((0,o.yk)(r)?M.has(r):D(r))?s:(e||T(n,0,r),t?s:Re(s)?i&&(0,o.S0)(r)?s:s.value:(0,o.Kn)(s)?e?ke(s):ye(s):s)}}const U=B(),q=B(!0);function B(e=!1){return function(t,n,r,a){let i=t[n];if(Ae(i)&&Re(i)&&!Re(r))return!1;if(!e&&!Ae(r)&&(Ce(r)||(r=Ee(r),i=Ee(i)),!(0,o.kJ)(t)&&Re(i)&&!Re(r)))return i.value=r,!0;const s=(0,o.kJ)(t)&&(0,o.S0)(n)?Number(n)!0,deleteProperty:(e,t)=>!0},H=(0,o.l7)({},z,{get:R,set:q}),W=(0,o.l7)({},V,{get:F}),G=e=>e,Y=e=>Reflect.getPrototypeOf(e);function J(e,t,n=!1,o=!1){const r=Ee(e=e.__v_raw),a=Ee(t);t!==a&&!n&&T(r,0,t),!n&&T(r,0,a);const{has:i}=Y(r),s=o?G:n?De:Pe;return i.call(r,t)?s(e.get(t)):i.call(r,a)?s(e.get(a)):void(e!==r&&e.get(t))}function Z(e,t=!1){const n=this.__v_raw,o=Ee(n),r=Ee(e);return e!==r&&!t&&T(o,0,e),!t&&T(o,0,r),e===r?n.has(e):n.has(e)||n.has(r)}function X(e,t=!1){return e=e.__v_raw,!t&&T(Ee(e),0,b),Reflect.get(e,"size",e)}function K(e){e=Ee(e);const t=Ee(this);return Y(t).has.call(t,e)||(t.add(e),O(t,"add",e,e)),this}function Q(e,t){t=Ee(t);const n=Ee(this),{has:r,get:a}=Y(n);let i=r.call(n,e);i||(e=Ee(e),i=r.call(n,e));const s=a.call(n,e);return n.set(e,t),i?(0,o.aU)(t,s)&&O(n,"set",e,t):O(n,"add",e,t),this}function ee(e){const t=Ee(this),{has:n,get:o}=Y(t);let r=n.call(t,e);r||(e=Ee(e),r=n.call(t,e)),o&&o.call(t,e);const a=t.delete(e);return r&&O(t,"delete",e,void 0),a}function te(){const e=Ee(this),t=0!==e.size,n=e.clear();return t&&O(e,"clear",void 0,void 0),n}function ne(e,t){return function(n,o){const r=this,a=r.__v_raw,i=Ee(a),s=t?G:e?De:Pe;return!e&&T(i,0,b),a.forEach(((e,t)=>n.call(o,s(e),s(t),r)))}}function oe(e,t,n){return function(...r){const a=this.__v_raw,i=Ee(a),s=(0,o._N)(i),l="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,u=a[e](...r),d=n?G:t?De:Pe;return!t&&T(i,0,c?v:b),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function re(e){return function(...t){return"delete"!==e&&this}}function ae(){const e={get(e){return J(this,e)},get size(){return X(this)},has:Z,add:K,set:Q,delete:ee,clear:te,forEach:ne(!1,!1)},t={get(e){return J(this,e,!1,!0)},get size(){return X(this)},has:Z,add:K,set:Q,delete:ee,clear:te,forEach:ne(!1,!0)},n={get(e){return J(this,e,!0)},get size(){return X(this,!0)},has(e){return Z.call(this,e,!0)},add:re("add"),set:re("set"),delete:re("delete"),clear:re("clear"),forEach:ne(!0,!1)},o={get(e){return J(this,e,!0,!0)},get size(){return X(this,!0)},has(e){return Z.call(this,e,!0)},add:re("add"),set:re("set"),delete:re("delete"),clear:re("clear"),forEach:ne(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=oe(r,!1,!1),n[r]=oe(r,!0,!1),t[r]=oe(r,!1,!0),o[r]=oe(r,!0,!0)})),[e,n,t,o]}const[ie,se,le,ce]=ae();function ue(e,t){const n=t?e?ce:le:e?se:ie;return(t,r,a)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get((0,o.RI)(n,r)&&r in t?n:t,r,a)}const de={get:ue(!1,!1)},pe={get:ue(!1,!0)},he={get:ue(!0,!1)},fe={get:ue(!0,!0)},me=new WeakMap,ge=new WeakMap,be=new WeakMap,ve=new WeakMap;function ye(e){return Ae(e)?e:xe(e,!1,z,de,me)}function _e(e){return xe(e,!1,H,pe,ge)}function ke(e){return xe(e,!0,V,he,be)}function we(e){return xe(e,!0,W,fe,ve)}function xe(e,t,n,r,a){if(!(0,o.Kn)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=a.get(e);if(i)return i;const s=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((0,o.W7)(l));var l;if(0===s)return e;const c=new Proxy(e,2===s?r:n);return a.set(e,c),c}function Se(e){return Ae(e)?Se(e.__v_raw):!(!e||!e.__v_isReactive)}function Ae(e){return!(!e||!e.__v_isReadonly)}function Ce(e){return!(!e||!e.__v_isShallow)}function Te(e){return Se(e)||Ae(e)}function Ee(e){const t=e&&e.__v_raw;return t?Ee(t):e}function Oe(e){return(0,o.Nj)(e,"__v_skip",!0),e}const Pe=e=>(0,o.Kn)(e)?ye(e):e,De=e=>(0,o.Kn)(e)?ke(e):e;function Me(e){x&&f&&E((e=Ee(e)).dep||(e.dep=u()))}function Le(e,t){(e=Ee(e)).dep&&P(e.dep)}function Re(e){return!(!e||!0!==e.__v_isRef)}function Ie(e){return Ne(e,!1)}function Fe(e){return Ne(e,!0)}function Ne(e,t){return Re(e)?e:new je(e,t)}class je{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Ee(e),this._value=t?e:Pe(e)}get value(){return Me(this),this._value}set value(e){e=this.__v_isShallow?e:Ee(e),(0,o.aU)(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:Pe(e),Le(this))}}function $e(e){Le(e)}function Ue(e){return Re(e)?e.value:e}const qe={get:(e,t,n)=>Ue(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return Re(r)&&!Re(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function Be(e){return Se(e)?e:new Proxy(e,qe)}class ze{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>Me(this)),(()=>Le(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Ve(e){return new ze(e)}function He(e){const t=(0,o.kJ)(e)?new Array(e.length):{};for(const n in e)t[n]=Ge(e,n);return t}class We{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}}function Ge(e,t,n){const o=e[t];return Re(o)?o:new We(e,t,n)}class Ye{constructor(e,t,n,o){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new y(e,(()=>{this._dirty||(this._dirty=!0,Le(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Ee(this);return Me(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Je(e,t,n=!1){let r,a;const i=(0,o.mf)(e);return i?(r=e,a=o.dG):(r=e.get,a=e.set),new Ye(r,a,i||!a,n)}Promise.resolve()},6252:(e,t,n)=>{"use strict";n.d(t,{$d:()=>u,$y:()=>o.$y,Ah:()=>Ze,B:()=>o.B,BK:()=>o.BK,Bj:()=>o.Bj,Bz:()=>lo,C3:()=>fn,C_:()=>r.C_,Cn:()=>Z,EB:()=>o.EB,Eo:()=>It,F4:()=>_n,FN:()=>zn,Fl:()=>io,G:()=>Ao,HX:()=>X,HY:()=>Xt,Ho:()=>kn,IU:()=>o.IU,JJ:()=>ue,Jd:()=>Je,KU:()=>c,Ko:()=>Pn,LL:()=>Gt,MW:()=>so,MX:()=>wo,Mr:()=>ko,Nv:()=>Dn,OT:()=>o.OT,Ob:()=>Ie,P$:()=>xe,PG:()=>o.PG,Q2:()=>Yt,Q6:()=>Oe,RC:()=>Me,Rh:()=>he,Rr:()=>po,S3:()=>d,SU:()=>o.SU,U2:()=>Ae,Uc:()=>yo,Uk:()=>wn,Um:()=>o.Um,Us:()=>Rt,Vh:()=>o.Vh,WI:()=>Mn,WL:()=>o.WL,WY:()=>co,Wm:()=>yn,X3:()=>o.X3,XI:()=>o.XI,Xl:()=>o.Xl,Xn:()=>Ge,Y1:()=>Kn,Y3:()=>A,Y8:()=>ke,YP:()=>ge,YS:()=>o.YS,Yq:()=>Ke,ZK:()=>i,ZM:()=>o.ZM,Zq:()=>_o,_:()=>vn,_A:()=>r._A,aZ:()=>Pe,b9:()=>uo,bT:()=>Qe,bv:()=>We,cE:()=>o.cE,d1:()=>et,dD:()=>J,dG:()=>En,dl:()=>Ne,dq:()=>o.dq,ec:()=>j,eq:()=>Co,f3:()=>de,h:()=>vo,hR:()=>r.hR,i8:()=>So,iD:()=>un,iH:()=>o.iH,ic:()=>Ye,j4:()=>dn,j5:()=>r.j5,kC:()=>r.kC,kq:()=>Sn,l1:()=>ho,lA:()=>pn,lR:()=>zt,m0:()=>pe,mW:()=>R,mv:()=>bo,mx:()=>Rn,n4:()=>re,nK:()=>Ee,nQ:()=>xo,nZ:()=>o.nZ,oR:()=>o.oR,of:()=>Qn,p1:()=>go,qG:()=>en,qZ:()=>ln,qb:()=>O,qj:()=>o.qj,qq:()=>o.qq,ry:()=>To,sT:()=>o.sT,se:()=>je,sv:()=>Qt,uE:()=>xn,u_:()=>mo,up:()=>Ht,vl:()=>Xe,vs:()=>r.vs,w5:()=>K,wF:()=>He,wg:()=>on,wy:()=>xt,xv:()=>Kt,yT:()=>o.yT,yX:()=>fe,zw:()=>r.zw});var o=n(2262),r=n(3577);const a=[];function i(e,...t){(0,o.Jd)();const n=a.length?a[a.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=function(){let e=a[a.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}();if(r)c(r,n,11,[e+t.join(""),n&&n.proxy,i.map((({vnode:e})=>`at <${ao(n,e.type)}>`)).join("\n"),i]);else{const n=[`[Vue warn]: ${e}`,...t];i.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=!!e.component&&null==e.component.parent,r=` at <${ao(e.component,e.type,o)}`,a=">"+n;return e.props?[r,...s(e.props),a]:[r+a]}(e))})),t}(i)),console.warn(...n)}(0,o.lk)()}function s(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...l(n,e[n]))})),n.length>3&&t.push(" ..."),t}function l(e,t,n){return(0,r.HD)(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:(0,o.dq)(t)?(t=l(e,(0,o.IU)(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):(0,r.mf)(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=(0,o.IU)(t),n?t:[`${e}=`,t])}function c(e,t,n,o){let r;try{r=o?e(...o):e()}catch(e){d(e,t,n)}return r}function u(e,t,n,o){if((0,r.mf)(e)){const a=c(e,t,n,o);return a&&(0,r.tI)(a)&&a.catch((e=>{d(e,t,n)})),a}const a=[];for(let r=0;r>>1;M(f[o])M(e)-M(t))),k=0;k<_.length;k++)_[k]();_=null,k=0}}const M=e=>null==e.id?1/0:e.id;function L(e){h=!1,p=!0,P(e),f.sort(((e,t)=>M(e)-M(t))),r.dG;try{for(m=0;mR.emit(e,...t))),I=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null===(o=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===o?void 0:o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{j(e,t)})),setTimeout((()=>{R||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,F=!0,I=[])}),3e3)):(F=!0,I=[])}const $=B("component:added"),U=B("component:updated"),q=B("component:removed");function B(e){return t=>{N(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function z(e,t,...n){const o=e.vnode.props||r.kT;let a=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in o){const e=`${"modelValue"===s?"model":s}Modifiers`,{number:t,trim:i}=o[e]||r.kT;i?a=n.map((e=>e.trim())):t&&(a=n.map(r.He))}let l;__VUE_PROD_DEVTOOLS__&&function(e,t,n){N("component:emit",e.appContext.app,e,t,n)}(e,t,a);let c=o[l=(0,r.hR)(t)]||o[l=(0,r.hR)((0,r._A)(t))];!c&&i&&(c=o[l=(0,r.hR)((0,r.rs)(t))]),c&&u(c,e,6,a);const d=o[l+"Once"];if(d){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,u(d,e,6,a)}}function V(e,t,n=!1){const o=t.emitsCache,a=o.get(e);if(void 0!==a)return a;const i=e.emits;let s={},l=!1;if(__VUE_OPTIONS_API__&&!(0,r.mf)(e)){const o=e=>{const n=V(e,t,!0);n&&(l=!0,(0,r.l7)(s,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||l?((0,r.kJ)(i)?i.forEach((e=>s[e]=null)):(0,r.l7)(s,i),o.set(e,s),s):(o.set(e,null),null)}function H(e,t){return!(!e||!(0,r.F7)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,r.RI)(e,t[0].toLowerCase()+t.slice(1))||(0,r.RI)(e,(0,r.rs)(t))||(0,r.RI)(e,t))}let W=null,G=null;function Y(e){const t=W;return W=e,G=e&&e.type.__scopeId||null,t}function J(e){G=e}function Z(){G=null}const X=e=>K;function K(e,t=W,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&ln(-1);const r=Y(t),a=e(...n);return Y(r),o._d&&ln(1),__VUE_PROD_DEVTOOLS__&&U(t),a};return o._n=!0,o._c=!0,o._d=!0,o}function Q(e){const{type:t,vnode:n,proxy:o,withProxy:a,props:i,propsOptions:[s],slots:l,attrs:c,emit:u,render:p,renderCache:h,data:f,setupState:m,ctx:g,inheritAttrs:b}=e;let v,y;const _=Y(e);try{if(4&n.shapeFlag){const e=a||o;v=An(p.call(e,e,h,i,m,f,g)),y=c}else{const e=t;v=An(e.length>1?e(i,{attrs:c,slots:l,emit:u}):e(i,null)),y=t.props?c:ee(c)}}catch(t){tn.length=0,d(t,e,1),v=yn(Qt)}let k=v;if(y&&!1!==b){const e=Object.keys(y),{shapeFlag:t}=k;e.length&&7&t&&(s&&e.some(r.tR)&&(y=te(y,s)),k=kn(k,y))}return n.dirs&&(k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&(k.transition=n.transition),v=k,Y(_),v}const ee=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,r.F7)(n))&&((t||(t={}))[n]=e[n]);return t},te=(e,t)=>{const n={};for(const o in e)(0,r.tR)(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function ne(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r0?(ae(e,"onPending"),ae(e,"onFallback"),c(null,e.ssFallback,t,n,o,null,a,i),ce(p,e.ssFallback)):p.resolve()}(t,n,o,r,a,i,s,l,c):function(e,t,n,o,r,a,i,s,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:b}=d;if(m)d.pendingBranch=p,hn(p,m)?(l(m,p,d.hiddenContainer,null,r,d,a,i,s),d.deps<=0?d.resolve():g&&(l(f,h,n,o,r,null,a,i,s),ce(d,h))):(d.pendingId++,b?(d.isHydrating=!1,d.activeBranch=m):c(m,r,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(l(null,p,d.hiddenContainer,null,r,d,a,i,s),d.deps<=0?d.resolve():(l(f,h,n,o,r,null,a,i,s),ce(d,h))):f&&hn(p,f)?(l(f,p,n,o,r,d,a,i,s),d.resolve(!0)):(l(null,p,d.hiddenContainer,null,r,d,a,i,s),d.deps<=0&&d.resolve()));else if(f&&hn(p,f))l(f,p,n,o,r,d,a,i,s),ce(d,p);else if(ae(t,"onPending"),d.pendingBranch=p,d.pendingId++,l(null,p,d.hiddenContainer,null,r,d,a,i,s),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(h)}),e):0===e&&d.fallback(h)}}(e,t,n,o,r,i,s,l,c)},hydrate:function(e,t,n,o,r,a,i,s,l){const c=t.suspense=ie(t,o,n,e.parentNode,document.createElement("div"),null,r,a,i,s,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,a,i);return 0===c.deps&&c.resolve(),u},create:ie,normalize:function(e){const{shapeFlag:t,children:n}=e,o=32&t;e.ssContent=se(o?n.default:n),e.ssFallback=o?se(n.fallback):yn(Qt)}};function ae(e,t){const n=e.props&&e.props[t];(0,r.mf)(n)&&n()}function ie(e,t,n,o,a,i,s,l,c,u,p=!1){const{p:h,m:f,um:m,n:g,o:{parentNode:b,remove:v}}=u,y=(0,r.He)(e.props&&e.props.timeout),_={vnode:e,parent:t,parentComponent:n,isSVG:s,container:o,hiddenContainer:a,anchor:i,deps:0,pendingId:0,timeout:"number"==typeof y?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(e=!1){const{vnode:t,activeBranch:n,pendingBranch:o,pendingId:r,effects:a,parentComponent:i,container:s}=_;if(_.isHydrating)_.isHydrating=!1;else if(!e){const e=n&&o.transition&&"out-in"===o.transition.mode;e&&(n.transition.afterLeave=()=>{r===_.pendingId&&f(o,s,t,0)});let{anchor:t}=_;n&&(t=g(n),m(n,i,_,!0)),e||f(o,s,t,0)}ce(_,o),_.pendingBranch=null,_.isInFallback=!1;let l=_.parent,c=!1;for(;l;){if(l.pendingBranch){l.effects.push(...a),c=!0;break}l=l.parent}c||O(a),_.effects=[],ae(t,"onResolve")},fallback(e){if(!_.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:o,container:r,isSVG:a}=_;ae(t,"onFallback");const i=g(n),s=()=>{_.isInFallback&&(h(null,e,r,i,o,null,a,l,c),ce(_,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=s),_.isInFallback=!0,m(n,o,null,!0),u||s()},move(e,t,n){_.activeBranch&&f(_.activeBranch,e,t,n),_.container=e},next:()=>_.activeBranch&&g(_.activeBranch),registerDep(e,t){const n=!!_.pendingBranch;n&&_.deps++;const o=e.vnode.el;e.asyncDep.catch((t=>{d(t,e,0)})).then((r=>{if(e.isUnmounted||_.isUnmounted||_.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:a}=e;Xn(e,r,!1),o&&(a.el=o);const i=!o&&e.subTree.el;t(e,a,b(o||e.subTree.el),o?null:g(e.subTree),_,s,c),i&&v(i),oe(e,a.el),n&&0==--_.deps&&_.resolve()}))},unmount(e,t){_.isUnmounted=!0,_.activeBranch&&m(_.activeBranch,n,e,t),_.pendingBranch&&m(_.pendingBranch,n,e,t)}};return _}function se(e){let t;if((0,r.mf)(e)){const n=sn&&e._c;n&&(e._d=!1,on()),e=e(),n&&(e._d=!0,t=nn,rn())}if((0,r.kJ)(e)){const t=function(e){let t;for(let n=0;nt!==e))),e}function le(e,t){t&&t.pendingBranch?(0,r.kJ)(e)?t.effects.push(...e):t.effects.push(e):O(e)}function ce(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e,r=n.el=t.el;o&&o.subTree===n&&(o.vnode.el=r,oe(o,r))}function ue(e,t){if(Bn){let n=Bn.provides;const o=Bn.parent&&Bn.parent.provides;o===n&&(n=Bn.provides=Object.create(o)),n[e]=t}}function de(e,t,n=!1){const o=Bn||W;if(o){const a=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(a&&e in a)return a[e];if(arguments.length>1)return n&&(0,r.mf)(t)?t.call(o.proxy):t}}function pe(e,t){return be(e,null,t)}function he(e,t){return be(e,null,{flush:"post"})}function fe(e,t){return be(e,null,{flush:"sync"})}const me={};function ge(e,t,n){return be(e,t,n)}function be(e,t,{immediate:n,deep:a,flush:i,onTrack:s,onTrigger:l}=r.kT){const d=Bn;let p,h,f=!1,m=!1;if((0,o.dq)(e)?(p=()=>e.value,f=(0,o.yT)(e)):(0,o.PG)(e)?(p=()=>e,a=!0):(0,r.kJ)(e)?(m=!0,f=e.some(o.PG),p=()=>e.map((e=>(0,o.dq)(e)?e.value:(0,o.PG)(e)?_e(e):(0,r.mf)(e)?c(e,d,2):void 0))):p=(0,r.mf)(e)?t?()=>c(e,d,2):()=>{if(!d||!d.isUnmounted)return h&&h(),u(e,d,3,[y])}:r.dG,t&&a){const e=p;p=()=>_e(e())}let y=e=>{h=x.onStop=()=>{c(e,d,4)}};if(Jn)return y=r.dG,t?n&&u(t,d,3,[p(),m?[]:void 0,y]):p(),r.dG;let _=m?[]:me;const k=()=>{if(x.active)if(t){const e=x.run();(a||f||(m?e.some(((e,t)=>(0,r.aU)(e,_[t]))):(0,r.aU)(e,_)))&&(h&&h(),u(t,d,3,[e,_===me?void 0:_,y]),_=e)}else x.run()};let w;k.allowRecurse=!!t,w="sync"===i?k:"post"===i?()=>Lt(k,d&&d.suspense):()=>{!d||d.isMounted?function(e){E(e,b,g,v)}(k):k()};const x=new o.qq(p,w);return t?n?k():_=x.run():"post"===i?Lt(x.run.bind(x),d&&d.suspense):x.run(),()=>{x.stop(),d&&d.scope&&(0,r.Od)(d.scope.effects,x)}}function ve(e,t,n){const o=this.proxy,a=(0,r.HD)(e)?e.includes(".")?ye(o,e):()=>o[e]:e.bind(o,o);let i;(0,r.mf)(t)?i=t:(i=t.handler,n=t);const s=Bn;Vn(this);const l=be(a,i.bind(o),n);return s?Vn(s):Hn(),l}function ye(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{_e(e,t)}));else if((0,r.PO)(e))for(const n in e)_e(e[n],t);return e}function ke(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return We((()=>{e.isMounted=!0})),Je((()=>{e.isUnmounting=!0})),e}const we=[Function,Array],xe={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:we,onEnter:we,onAfterEnter:we,onEnterCancelled:we,onBeforeLeave:we,onLeave:we,onAfterLeave:we,onLeaveCancelled:we,onBeforeAppear:we,onAppear:we,onAfterAppear:we,onAppearCancelled:we},setup(e,{slots:t}){const n=zn(),r=ke();let a;return()=>{const i=t.default&&Oe(t.default(),!0);if(!i||!i.length)return;const s=(0,o.IU)(e),{mode:l}=s,c=i[0];if(r.isLeaving)return Ce(c);const u=Te(c);if(!u)return Ce(c);const d=Ae(u,s,r,n);Ee(u,d);const p=n.subTree,h=p&&Te(p);let f=!1;const{getTransitionKey:m}=u.type;if(m){const e=m();void 0===a?a=e:e!==a&&(a=e,f=!0)}if(h&&h.type!==Qt&&(!hn(u,h)||f)){const e=Ae(h,s,r,n);if(Ee(h,e),"out-in"===l)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.update()},Ce(c);"in-out"===l&&u.type!==Qt&&(e.delayLeave=(e,t,n)=>{Se(r,h)[String(h.key)]=h,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=n})}return c}}};function Se(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function Ae(e,t,n,o){const{appear:r,mode:a,persisted:i=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:g,onAppear:b,onAfterAppear:v,onAppearCancelled:y}=t,_=String(e.key),k=Se(n,e),w=(e,t)=>{e&&u(e,o,9,t)},x={mode:a,persisted:i,beforeEnter(t){let o=s;if(!n.isMounted){if(!r)return;o=g||s}t._leaveCb&&t._leaveCb(!0);const a=k[_];a&&hn(e,a)&&a.el._leaveCb&&a.el._leaveCb(),w(o,[t])},enter(e){let t=l,o=c,a=d;if(!n.isMounted){if(!r)return;t=b||l,o=v||c,a=y||d}let i=!1;const s=e._enterCb=t=>{i||(i=!0,w(t?a:o,[e]),x.delayedLeave&&x.delayedLeave(),e._enterCb=void 0)};t?(t(e,s),t.length<=1&&s()):s()},leave(t,o){const r=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return o();w(p,[t]);let a=!1;const i=t._leaveCb=n=>{a||(a=!0,o(),w(n?m:f,[t]),t._leaveCb=void 0,k[r]===e&&delete k[r])};k[r]=e,h?(h(t,i),h.length<=1&&i()):i()},clone:e=>Ae(e,t,n,o)};return x}function Ce(e){if(Re(e))return(e=kn(e)).children=null,e}function Te(e){return Re(e)?e.children?e.children[0]:void 0:e}function Ee(e,t){6&e.shapeFlag&&e.component?Ee(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Oe(e,t=!1){let n=[],o=0;for(let r=0;r1)for(let e=0;e!!e.type.__asyncLoader;function Me(e){(0,r.mf)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:a,delay:i=200,timeout:s,suspensible:l=!0,onError:c}=e;let u,p=null,h=0;const f=()=>{let e;return p||(e=p=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),c)return new Promise(((t,n)=>{c(e,(()=>t((h++,p=null,f()))),(()=>n(e)),h+1)}));throw e})).then((t=>e!==p&&p?p:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),u=t,t))))};return Pe({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return u},setup(){const e=Bn;if(u)return()=>Le(u,e);const t=t=>{p=null,d(t,e,13,!a)};if(l&&e.suspense||Jn)return f().then((t=>()=>Le(t,e))).catch((e=>(t(e),()=>a?yn(a,{error:e}):null)));const r=(0,o.iH)(!1),c=(0,o.iH)(),h=(0,o.iH)(!!i);return i&&setTimeout((()=>{h.value=!1}),i),null!=s&&setTimeout((()=>{if(!r.value&&!c.value){const e=new Error(`Async component timed out after ${s}ms.`);t(e),c.value=e}}),s),f().then((()=>{r.value=!0,e.parent&&Re(e.parent.vnode)&&C(e.parent.update)})).catch((e=>{t(e),c.value=e})),()=>r.value&&u?Le(u,e):c.value&&a?yn(a,{error:c.value}):n&&!h.value?yn(n):void 0}})}function Le(e,{vnode:{ref:t,props:n,children:o}}){const r=yn(e,n,o);return r.ref=t,r}const Re=e=>e.type.__isKeepAlive,Ie={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=zn(),o=n.ctx;if(!o.renderer)return t.default;const a=new Map,i=new Set;let s=null;__VUE_PROD_DEVTOOLS__&&(n.__v_cache=a);const l=n.suspense,{renderer:{p:c,m:u,um:d,o:{createElement:p}}}=o,h=p("div");function f(e){qe(e),d(e,n,l,!0)}function m(e){a.forEach(((t,n)=>{const o=ro(t.type);!o||e&&e(o)||g(n)}))}function g(e){const t=a.get(e);s&&t.type===s.type?s&&qe(s):f(t),a.delete(e),i.delete(e)}o.activate=(e,t,n,o,a)=>{const i=e.component;u(e,t,n,0,l),c(i.vnode,e,t,n,i,l,o,e.slotScopeIds,a),Lt((()=>{i.isDeactivated=!1,i.a&&(0,r.ir)(i.a);const t=e.props&&e.props.onVnodeMounted;t&&On(t,i.parent,e)}),l),__VUE_PROD_DEVTOOLS__&&$(i)},o.deactivate=e=>{const t=e.component;u(e,h,null,1,l),Lt((()=>{t.da&&(0,r.ir)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&On(n,t.parent,e),t.isDeactivated=!0}),l),__VUE_PROD_DEVTOOLS__&&$(t)},ge((()=>[e.include,e.exclude]),(([e,t])=>{e&&m((t=>Fe(e,t))),t&&m((e=>!Fe(t,e)))}),{flush:"post",deep:!0});let b=null;const v=()=>{null!=b&&a.set(b,Be(n.subTree))};return We(v),Ye(v),Je((()=>{a.forEach((e=>{const{subTree:t,suspense:o}=n,r=Be(t);if(e.type!==r.type)f(e);else{qe(r);const e=r.component.da;e&&Lt(e,o)}}))})),()=>{if(b=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return s=null,n;if(!pn(o)||!(4&o.shapeFlag||128&o.shapeFlag))return s=null,o;let r=Be(o);const l=r.type,c=ro(De(r)?r.type.__asyncResolved||{}:l),{include:u,exclude:d,max:p}=e;if(u&&(!c||!Fe(u,c))||d&&c&&Fe(d,c))return s=r,o;const h=null==r.key?l:r.key,f=a.get(h);return r.el&&(r=kn(r),128&o.shapeFlag&&(o.ssContent=r)),b=h,f?(r.el=f.el,r.component=f.component,r.transition&&Ee(r,r.transition),r.shapeFlag|=512,i.delete(h),i.add(h)):(i.add(h),p&&i.size>parseInt(p,10)&&g(i.values().next().value)),r.shapeFlag|=256,s=r,o}}};function Fe(e,t){return(0,r.kJ)(e)?e.some((e=>Fe(e,t))):(0,r.HD)(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function Ne(e,t){$e(e,"a",t)}function je(e,t){$e(e,"da",t)}function $e(e,t,n=Bn){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(ze(t,o,n),n){let e=n.parent;for(;e&&e.parent;)Re(e.parent.vnode)&&Ue(o,t,n,e),e=e.parent}}function Ue(e,t,n,o){const a=ze(t,e,o,!0);Ze((()=>{(0,r.Od)(o[t],a)}),n)}function qe(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function Be(e){return 128&e.shapeFlag?e.ssContent:e}function ze(e,t,n=Bn,r=!1){if(n){const a=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;(0,o.Jd)(),Vn(n);const a=u(t,n,e,r);return Hn(),(0,o.lk)(),a});return r?a.unshift(i):a.push(i),i}}const Ve=e=>(t,n=Bn)=>(!Jn||"sp"===e)&&ze(e,t,n),He=Ve("bm"),We=Ve("m"),Ge=Ve("bu"),Ye=Ve("u"),Je=Ve("bum"),Ze=Ve("um"),Xe=Ve("sp"),Ke=Ve("rtg"),Qe=Ve("rtc");function et(e,t=Bn){ze("ec",e,t)}let tt=!0;function nt(e,t,n){u((0,r.kJ)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function ot(e,t,n,o){const a=o.includes(".")?ye(n,o):()=>n[o];if((0,r.HD)(e)){const n=t[e];(0,r.mf)(n)&&ge(a,n)}else if((0,r.mf)(e))ge(a,e.bind(n));else if((0,r.Kn)(e))if((0,r.kJ)(e))e.forEach((e=>ot(e,t,n,o)));else{const o=(0,r.mf)(e.handler)?e.handler.bind(n):t[e.handler];(0,r.mf)(o)&&ge(a,o,e)}}function rt(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:a,config:{optionMergeStrategies:i}}=e.appContext,s=a.get(t);let l;return s?l=s:r.length||n||o?(l={},r.length&&r.forEach((e=>at(l,e,i,!0))),at(l,t,i)):l=t,a.set(t,l),l}function at(e,t,n,o=!1){const{mixins:r,extends:a}=t;a&&at(e,a,n,!0),r&&r.forEach((t=>at(e,t,n,!0)));for(const r in t)if(o&&"expose"===r);else{const o=it[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const it={data:st,props:ut,emits:ut,methods:ut,computed:ut,beforeCreate:ct,created:ct,beforeMount:ct,mounted:ct,beforeUpdate:ct,updated:ct,beforeDestroy:ct,beforeUnmount:ct,destroyed:ct,unmounted:ct,activated:ct,deactivated:ct,errorCaptured:ct,serverPrefetch:ct,components:ut,directives:ut,watch:function(e,t){if(!e)return t;if(!t)return e;const n=(0,r.l7)(Object.create(null),e);for(const o in t)n[o]=ct(e[o],t[o]);return n},provide:st,inject:function(e,t){return ut(lt(e),lt(t))}};function st(e,t){return t?e?function(){return(0,r.l7)((0,r.mf)(e)?e.call(this,this):e,(0,r.mf)(t)?t.call(this,this):t)}:t:e}function lt(e){if((0,r.kJ)(e)){const t={};for(let n=0;n{c=!0;const[n,o]=ht(e,t,!0);(0,r.l7)(s,n),o&&l.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!i&&!c)return o.set(e,r.Z6),r.Z6;if((0,r.kJ)(i))for(let e=0;e-1,o[1]=n<0||e-1||(0,r.RI)(o,"default"))&&l.push(t)}}}const u=[s,l];return o.set(e,u),u}function ft(e){return"$"!==e[0]}function mt(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function gt(e,t){return mt(e)===mt(t)}function bt(e,t){return(0,r.kJ)(t)?t.findIndex((t=>gt(t,e))):(0,r.mf)(t)&>(t,e)?0:-1}const vt=e=>"_"===e[0]||"$stable"===e,yt=e=>(0,r.kJ)(e)?e.map(An):[An(e)],_t=(e,t,n)=>{const o=K(((...e)=>yt(t(...e))),n);return o._c=!1,o},kt=(e,t,n)=>{const o=e._ctx;for(const n in e){if(vt(n))continue;const a=e[n];if((0,r.mf)(a))t[n]=_t(0,a,o);else if(null!=a){const e=yt(a);t[n]=()=>e}}},wt=(e,t)=>{const n=yt(t);e.slots.default=()=>n};function xt(e,t){if(null===W)return e;const n=W.proxy,o=e.dirs||(e.dirs=[]);for(let e=0;e(i.has(e)||(e&&(0,r.mf)(e.install)?(i.add(e),e.install(l,...t)):(0,r.mf)(e)&&(i.add(e),e(l,...t))),l),mixin:e=>(__VUE_OPTIONS_API__&&(a.mixins.includes(e)||a.mixins.push(e)),l),component:(e,t)=>t?(a.components[e]=t,l):a.components[e],directive:(e,t)=>t?(a.directives[e]=t,l):a.directives[e],mount(r,i,c){if(!s){const u=yn(n,o);return u.appContext=a,i&&t?t(u,r):e(u,r,c),s=!0,l._container=r,r.__vue_app__=l,__VUE_PROD_DEVTOOLS__&&(l._instance=u.component,function(e,t){N("app:init",e,t,{Fragment:Xt,Text:Kt,Comment:Qt,Static:en})}(l,So)),no(u.component)||u.component.proxy}},unmount(){s&&(e(null,l._container),__VUE_PROD_DEVTOOLS__&&(l._instance=null,function(e){N("app:unmount",e)}(l)),delete l._container.__vue_app__)},provide:(e,t)=>(a.provides[e]=t,l)};return l}}function Et(e,t,n,a,i=!1){if((0,r.kJ)(e))return void e.forEach(((e,o)=>Et(e,t&&((0,r.kJ)(t)?t[o]:t),n,a,i)));if(De(a)&&!i)return;const s=4&a.shapeFlag?no(a.component)||a.component.proxy:a.el,l=i?null:s,{i:u,r:d}=e,p=t&&t.r,h=u.refs===r.kT?u.refs={}:u.refs,f=u.setupState;if(null!=p&&p!==d&&((0,r.HD)(p)?(h[p]=null,(0,r.RI)(f,p)&&(f[p]=null)):(0,o.dq)(p)&&(p.value=null)),(0,r.mf)(d))c(d,u,12,[l,h]);else{const t=(0,r.HD)(d),a=(0,o.dq)(d);if(t||a){const a=()=>{if(e.f){const n=t?h[d]:d.value;i?(0,r.kJ)(n)&&(0,r.Od)(n,s):(0,r.kJ)(n)?n.includes(s)||n.push(s):t?h[d]=[s]:(d.value=[s],e.k&&(h[e.k]=d.value))}else t?(h[d]=l,(0,r.RI)(f,d)&&(f[d]=l)):(0,o.dq)(d)&&(d.value=l,e.k&&(h[e.k]=l))};l?(a.id=-1,Lt(a,n)):a()}}}let Ot=!1;const Pt=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,Dt=e=>8===e.nodeType;function Mt(e){const{mt:t,p:n,o:{patchProp:o,nextSibling:a,parentNode:i,remove:s,insert:l,createComment:c}}=e,u=(n,o,r,s,l,c=!1)=>{const g=Dt(n)&&"["===n.data,b=()=>f(n,o,r,s,l,g),{type:v,ref:y,shapeFlag:_}=o,k=n.nodeType;o.el=n;let w=null;switch(v){case Kt:3!==k?w=b():(n.data!==o.children&&(Ot=!0,n.data=o.children),w=a(n));break;case Qt:w=8!==k||g?b():a(n);break;case en:if(1===k){w=n;const e=!o.children.length;for(let t=0;t{l=l||!!t.dynamicChildren;const{type:c,props:u,patchFlag:d,shapeFlag:h,dirs:f}=t,m="input"===c&&f||"option"===c;if(m||-1!==d){if(f&&St(t,null,n,"created"),u)if(m||!l||48&d)for(const t in u)(m&&t.endsWith("value")||(0,r.F7)(t)&&!(0,r.Gg)(t))&&o(e,t,null,u[t],!1,void 0,n);else u.onClick&&o(e,"onClick",null,u.onClick,!1,void 0,n);let c;if((c=u&&u.onVnodeBeforeMount)&&On(c,n,t),f&&St(t,null,n,"beforeMount"),((c=u&&u.onVnodeMounted)||f)&&le((()=>{c&&On(c,n,t),f&&St(t,null,n,"mounted")}),a),16&h&&(!u||!u.innerHTML&&!u.textContent)){let o=p(e.firstChild,t,e,n,a,i,l);for(;o;){Ot=!0;const e=o;o=o.nextSibling,s(e)}}else 8&h&&e.textContent!==t.children&&(Ot=!0,e.textContent=t.children)}return e.nextSibling},p=(e,t,o,r,a,i,s)=>{s=s||!!t.dynamicChildren;const l=t.children,c=l.length;for(let t=0;t{const{slotScopeIds:u}=t;u&&(r=r?r.concat(u):u);const d=i(e),h=p(a(e),t,d,n,o,r,s);return h&&Dt(h)&&"]"===h.data?a(t.anchor=h):(Ot=!0,l(t.anchor=c("]"),d,h),h)},f=(e,t,o,r,l,c)=>{if(Ot=!0,t.el=null,c){const t=m(e);for(;;){const n=a(e);if(!n||n===t)break;s(n)}}const u=a(e),d=i(e);return s(e),n(null,t,d,u,o,r,Pt(d),l),u},m=e=>{let t=0;for(;e;)if((e=a(e))&&Dt(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return a(e);t--}return e};return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),void D();Ot=!1,u(t.firstChild,e,null,null,null),D(),Ot&&console.error("Hydration completed but contains mismatches.")},u]}const Lt=le;function Rt(e){return Ft(e)}function It(e){return Ft(e,Mt)}function Ft(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&((0,r.E9)().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&((0,r.E9)().__VUE_PROD_DEVTOOLS__=!1);const n=(0,r.E9)();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&j(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:a,remove:i,patchProp:s,createElement:l,createText:c,createComment:u,setText:d,setElementText:p,parentNode:h,nextSibling:g,setScopeId:b=r.dG,cloneNode:v,insertStaticContent:y}=e,_=(e,t,n,o=null,r=null,a=null,i=!1,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!hn(e,t)&&(o=te(e),J(e,r,a,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Kt:k(e,t,n,o);break;case Qt:w(e,t,n,o);break;case en:null==e&&x(t,n,o,i);break;case Xt:R(e,t,n,o,r,a,i,s,l);break;default:1&d?S(e,t,n,o,r,a,i,s,l):6&d?I(e,t,n,o,r,a,i,s,l):(64&d||128&d)&&c.process(e,t,n,o,r,a,i,s,l,ae)}null!=u&&r&&Et(u,e&&e.ref,a,t||e,!t)},k=(e,t,n,o)=>{if(null==e)a(t.el=c(t.children),n,o);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},w=(e,t,n,o)=>{null==e?a(t.el=u(t.children||""),n,o):t.el=e.el},x=(e,t,n,o)=>{[e.el,e.anchor]=y(e.children,t,n,o,e.el,e.anchor)},S=(e,t,n,o,r,a,i,s,l)=>{i=i||"svg"===t.type,null==e?A(t,n,o,r,a,i,s,l):O(e,t,r,a,i,s,l)},A=(e,t,n,o,i,c,u,d)=>{let h,f;const{type:m,props:g,shapeFlag:b,transition:y,patchFlag:_,dirs:k}=e;if(e.el&&void 0!==v&&-1===_)h=e.el=v(e.el);else{if(h=e.el=l(e.type,c,g&&g.is,g),8&b?p(h,e.children):16&b&&E(e.children,h,null,o,i,c&&"foreignObject"!==m,u,d),k&&St(e,null,o,"created"),g){for(const t in g)"value"===t||(0,r.Gg)(t)||s(h,t,null,g[t],c,e.children,o,i,ee);"value"in g&&s(h,"value",null,g.value),(f=g.onVnodeBeforeMount)&&On(f,o,e)}T(h,e,e.scopeId,u,o)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(h,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(h,"__vueParentComponent",{value:o,enumerable:!1})),k&&St(e,null,o,"beforeMount");const w=(!i||i&&!i.pendingBranch)&&y&&!y.persisted;w&&y.beforeEnter(h),a(h,t,n),((f=g&&g.onVnodeMounted)||w||k)&&Lt((()=>{f&&On(f,o,e),w&&y.enter(h),k&&St(e,null,o,"mounted")}),i)},T=(e,t,n,o,r)=>{if(n&&b(e,n),o)for(let t=0;t{for(let c=l;c{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:h}=t;u|=16&e.patchFlag;const f=e.props||r.kT,m=t.props||r.kT;let g;n&&Nt(n,!1),(g=m.onVnodeBeforeUpdate)&&On(g,n,t,e),h&&St(t,e,n,"beforeUpdate"),n&&Nt(n,!0);const b=a&&"foreignObject"!==t.type;if(d?M(e.dynamicChildren,d,c,n,o,b,i):l||V(e,t,c,null,n,o,b,i,!1),u>0){if(16&u)L(c,t,f,m,n,o,a);else if(2&u&&f.class!==m.class&&s(c,"class",null,m.class,a),4&u&&s(c,"style",f.style,m.style,a),8&u){const r=t.dynamicProps;for(let t=0;t{g&&On(g,n,t,e),h&&St(t,e,n,"updated")}),o)},M=(e,t,n,o,r,a,i)=>{for(let s=0;s{if(n!==o){for(const c in o){if((0,r.Gg)(c))continue;const u=o[c],d=n[c];u!==d&&"value"!==c&&s(e,c,d,u,l,t.children,a,i,ee)}if(n!==r.kT)for(const c in n)(0,r.Gg)(c)||c in o||s(e,c,n[c],null,l,t.children,a,i,ee);"value"in o&&s(e,"value",n.value,o.value)}},R=(e,t,n,o,r,i,s,l,u)=>{const d=t.el=e?e.el:c(""),p=t.anchor=e?e.anchor:c("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(a(d,n,o),a(p,n,o),E(t.children,n,p,r,i,s,l,u)):h>0&&64&h&&f&&e.dynamicChildren?(M(e.dynamicChildren,f,n,r,i,s,l),(null!=t.key||r&&t===r.subTree)&&jt(e,t,!0)):V(e,t,n,p,r,i,s,l,u)},I=(e,t,n,o,r,a,i,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,i,l):F(t,n,o,r,a,i,l):N(e,t,l)},F=(e,t,n,o,r,a,i)=>{const s=e.component=qn(e,o,r);if(Re(e)&&(s.ctx.renderer=ae),Zn(s),s.asyncDep){if(r&&r.registerDep(s,B),!e.el){const e=s.subTree=yn(Qt);w(null,e,t,n)}}else B(s,e,t,n,r,a,i)},N=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:a}=e,{props:i,children:s,patchFlag:l}=t,c=a.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!s||s&&s.$stable)||o!==i&&(o?!i||ne(o,i,c):!!i);if(1024&l)return!0;if(16&l)return o?ne(o,i,c):!!i;if(8&l){const e=t.dynamicProps;for(let t=0;tm&&f.splice(t,1)}(o.update),o.update()}else t.component=e.component,t.el=e.el,o.vnode=t},B=(e,t,n,a,i,s,l)=>{const c=e.effect=new o.qq((()=>{if(e.isMounted){let t,{next:n,bu:o,u:a,parent:c,vnode:u}=e,d=n;Nt(e,!1),n?(n.el=u.el,z(e,n,l)):n=u,o&&(0,r.ir)(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&On(t,c,n,u),Nt(e,!0);const p=Q(e),f=e.subTree;e.subTree=p,_(f,p,h(f.el),te(f),e,i,s),n.el=p.el,null===d&&oe(e,p.el),a&&Lt(a,i),(t=n.props&&n.props.onVnodeUpdated)&&Lt((()=>On(t,c,n,u)),i),__VUE_PROD_DEVTOOLS__&&U(e)}else{let o;const{el:l,props:c}=t,{bm:u,m:d,parent:p}=e,h=De(t);if(Nt(e,!1),u&&(0,r.ir)(u),!h&&(o=c&&c.onVnodeBeforeMount)&&On(o,p,t),Nt(e,!0),l&&se){const n=()=>{e.subTree=Q(e),se(l,e.subTree,e,i,null)};h?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const o=e.subTree=Q(e);_(null,o,n,a,e,i,s),t.el=o.el}if(d&&Lt(d,i),!h&&(o=c&&c.onVnodeMounted)){const e=t;Lt((()=>On(o,p,e)),i)}256&t.shapeFlag&&e.a&&Lt(e.a,i),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&$(e),t=n=a=null}}),(()=>C(e.update)),e.scope),u=e.update=c.run.bind(c);u.id=e.uid,Nt(e,!0),u()},z=(e,t,n)=>{t.component=e;const a=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,a){const{props:i,attrs:s,vnode:{patchFlag:l}}=e,c=(0,o.IU)(i),[u]=e.propsOptions;let d=!1;if(!(a||l>0)||16&l){let o;dt(e,t,i,s)&&(d=!0);for(const a in c)t&&((0,r.RI)(t,a)||(o=(0,r.rs)(a))!==a&&(0,r.RI)(t,o))||(u?!n||void 0===n[a]&&void 0===n[o]||(i[a]=pt(u,c,a,void 0,e,!0)):delete i[a]);if(s!==c)for(const e in s)t&&(0,r.RI)(t,e)||(delete s[e],d=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let o=0;o{const{vnode:o,slots:a}=e;let i=!0,s=r.kT;if(32&o.shapeFlag){const e=t._;e?n&&1===e?i=!1:((0,r.l7)(a,t),n||1!==e||delete a._):(i=!t.$stable,kt(t,a)),s=t}else t&&(wt(e,t),s={default:1});if(i)for(const e in a)vt(e)||e in s||delete a[e]})(e,t.children,n),(0,o.Jd)(),P(void 0,e.update),(0,o.lk)()},V=(e,t,n,o,r,a,i,s,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void G(c,d,n,o,r,a,i,s,l);if(256&h)return void W(c,d,n,o,r,a,i,s,l)}8&f?(16&u&&ee(c,r,a),d!==c&&p(n,d)):16&u?16&f?G(c,d,n,o,r,a,i,s,l):ee(c,r,a,!0):(8&u&&p(n,""),16&f&&E(d,n,o,r,a,i,s,l))},W=(e,t,n,o,a,i,s,l,c)=>{e=e||r.Z6,t=t||r.Z6;const u=e.length,d=t.length,p=Math.min(u,d);let h;for(h=0;hd?ee(e,a,i,!0,!1,p):E(t,n,o,a,i,s,l,c,p)},G=(e,t,n,o,a,i,s,l,c)=>{let u=0;const d=t.length;let p=e.length-1,h=d-1;for(;u<=p&&u<=h;){const o=e[u],r=t[u]=c?Cn(t[u]):An(t[u]);if(!hn(o,r))break;_(o,r,n,null,a,i,s,l,c),u++}for(;u<=p&&u<=h;){const o=e[p],r=t[h]=c?Cn(t[h]):An(t[h]);if(!hn(o,r))break;_(o,r,n,null,a,i,s,l,c),p--,h--}if(u>p){if(u<=h){const e=h+1,r=eh)for(;u<=p;)J(e[u],a,i,!0),u++;else{const f=u,m=u,g=new Map;for(u=m;u<=h;u++){const e=t[u]=c?Cn(t[u]):An(t[u]);null!=e.key&&g.set(e.key,u)}let b,v=0;const y=h-m+1;let k=!1,w=0;const x=new Array(y);for(u=0;u=y){J(o,a,i,!0);continue}let r;if(null!=o.key)r=g.get(o.key);else for(b=m;b<=h;b++)if(0===x[b-m]&&hn(o,t[b])){r=b;break}void 0===r?J(o,a,i,!0):(x[r-m]=u+1,r>=w?w=r:k=!0,_(o,t[r],n,null,a,i,s,l,c),v++)}const S=k?function(e){const t=e.slice(),n=[0];let o,r,a,i,s;const l=e.length;for(o=0;o>1,e[n[s]]0&&(t[o]=n[a-1]),n[a]=o)}}for(a=n.length,i=n[a-1];a-- >0;)n[a]=i,i=t[i];return n}(x):r.Z6;for(b=S.length-1,u=y-1;u>=0;u--){const e=m+u,r=t[e],p=e+1{const{el:i,type:s,transition:l,children:c,shapeFlag:u}=e;if(6&u)Y(e.component.subTree,t,n,o);else if(128&u)e.suspense.move(t,n,o);else if(64&u)s.move(e,t,n,ae);else if(s!==Xt)if(s!==en)if(2!==o&&1&u&&l)if(0===o)l.beforeEnter(i),a(i,t,n),Lt((()=>l.enter(i)),r);else{const{leave:e,delayLeave:o,afterLeave:r}=l,s=()=>a(i,t,n),c=()=>{e(i,(()=>{s(),r&&r()}))};o?o(i,s,c):c()}else a(i,t,n);else(({el:e,anchor:t},n,o)=>{let r;for(;e&&e!==t;)r=g(e),a(e,n,o),e=r;a(t,n,o)})(e,t,n);else{a(i,t,n);for(let e=0;e{const{type:a,props:i,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p}=e;if(null!=s&&Et(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&p,f=!De(e);let m;if(f&&(m=i&&i.onVnodeBeforeUnmount)&&On(m,t,e),6&u)K(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&St(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,r,ae,o):c&&(a!==Xt||d>0&&64&d)?ee(c,t,n,!1,!0):(a===Xt&&384&d||!r&&16&u)&&ee(l,t,n),o&&Z(e)}(f&&(m=i&&i.onVnodeUnmounted)||h)&&Lt((()=>{m&&On(m,t,e),h&&St(e,null,t,"unmounted")}),n)},Z=e=>{const{type:t,el:n,anchor:o,transition:r}=e;if(t===Xt)return void X(n,o);if(t===en)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=g(e),i(e),e=n;i(t)})(e);const a=()=>{i(n),r&&!r.persisted&&r.afterLeave&&r.afterLeave()};if(1&e.shapeFlag&&r&&!r.persisted){const{leave:t,delayLeave:o}=r,i=()=>t(n,a);o?o(e.el,a,i):i()}else a()},X=(e,t)=>{let n;for(;e!==t;)n=g(e),i(e),e=n;i(t)},K=(e,t,n)=>{const{bum:o,scope:a,update:i,subTree:s,um:l}=e;o&&(0,r.ir)(o),a.stop(),i&&(i.active=!1,J(s,e,t,n)),l&&Lt(l,t),Lt((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&q(e)},ee=(e,t,n,o=!1,r=!1,a=0)=>{for(let i=a;i6&e.shapeFlag?te(e.component.subTree):128&e.shapeFlag?e.suspense.next():g(e.anchor||e.el),re=(e,t,n)=>{null==e?t._vnode&&J(t._vnode,null,null,!0):_(t._vnode||null,e,t,null,null,null,n),D(),t._vnode=e},ae={p:_,um:J,m:Y,r:Z,mt:F,mc:E,pc:V,pbc:M,n:te,o:e};let ie,se;return t&&([ie,se]=t(ae)),{render:re,hydrate:ie,createApp:Tt(re,ie)}}function Nt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function jt(e,t,n=!1){const o=e.children,a=t.children;if((0,r.kJ)(o)&&(0,r.kJ)(a))for(let e=0;ee&&(e.disabled||""===e.disabled),Ut=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,qt=(e,t)=>{const n=e&&e.to;if((0,r.HD)(n)){if(t){return t(n)}return null}return n};function Bt(e,t,n,{o:{insert:o},m:r},a=2){0===a&&o(e.targetAnchor,t,n);const{el:i,anchor:s,shapeFlag:l,children:c,props:u}=e,d=2===a;if(d&&o(i,t,n),(!d||$t(u))&&16&l)for(let e=0;e{16&v&&u(y,e,t,r,a,i,s,l)};b?g(n,c):d&&g(d,p)}else{t.el=e.el;const o=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=$t(e.props),g=m?n:u,v=m?o:h;if(i=i||Ut(u),_?(p(e.dynamicChildren,_,g,r,a,i,s),jt(e,t,!0)):l||d(e,t,g,v,r,a,i,s,!1),b)m||Bt(t,n,o,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=qt(t.props,f);e&&Bt(t,e,null,c,0)}else m&&Bt(t,u,h,c,1)}},remove(e,t,n,o,{um:r,o:{remove:a}},i){const{shapeFlag:s,children:l,anchor:c,targetAnchor:u,target:d,props:p}=e;if(d&&a(u),(i||!$t(p))&&(a(c),16&s))for(let e=0;e0?nn||r.Z6:null,rn(),sn>0&&nn&&nn.push(e),e}function un(e,t,n,o,r,a){return cn(vn(e,t,n,o,r,a,!0))}function dn(e,t,n,o,r){return cn(yn(e,t,n,o,r,!0))}function pn(e){return!!e&&!0===e.__v_isVNode}function hn(e,t){return e.type===t.type&&e.key===t.key}function fn(e){an=e}const mn="__vInternal",gn=({key:e})=>null!=e?e:null,bn=({ref:e,ref_key:t,ref_for:n})=>null!=e?(0,r.HD)(e)||(0,o.dq)(e)||(0,r.mf)(e)?{i:W,r:e,k:t,f:!!n}:e:null;function vn(e,t=null,n=null,o=0,a=null,i=(e===Xt?0:1),s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&gn(t),ref:t&&bn(t),scopeId:G,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null};return l?(Tn(c,n),128&i&&e.normalize(c)):n&&(c.shapeFlag|=(0,r.HD)(n)?8:16),sn>0&&!s&&nn&&(c.patchFlag>0||6&i)&&32!==c.patchFlag&&nn.push(c),c}const yn=function(e,t=null,n=null,a=0,i=null,s=!1){if(e&&e!==Wt||(e=Qt),pn(e)){const o=kn(e,t,!0);return n&&Tn(o,n),o}if(l=e,(0,r.mf)(l)&&"__vccOpts"in l&&(e=e.__vccOpts),t){t=_n(t);let{class:e,style:n}=t;e&&!(0,r.HD)(e)&&(t.class=(0,r.C_)(e)),(0,r.Kn)(n)&&((0,o.X3)(n)&&!(0,r.kJ)(n)&&(n=(0,r.l7)({},n)),t.style=(0,r.j5)(n))}var l;return vn(e,t,n,a,i,(0,r.HD)(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:(0,r.Kn)(e)?4:(0,r.mf)(e)?2:0,s,!0)};function _n(e){return e?(0,o.X3)(e)||mn in e?(0,r.l7)({},e):e:null}function kn(e,t,n=!1){const{props:o,ref:a,patchFlag:i,children:s}=e,l=t?En(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&gn(l),ref:t&&t.ref?n&&a?(0,r.kJ)(a)?a.concat(bn(t)):[a,bn(t)]:bn(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Xt?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&kn(e.ssContent),ssFallback:e.ssFallback&&kn(e.ssFallback),el:e.el,anchor:e.anchor}}function wn(e=" ",t=0){return yn(Kt,null,e,t)}function xn(e,t){const n=yn(en,null,e);return n.staticCount=t,n}function Sn(e="",t=!1){return t?(on(),dn(Qt,null,e)):yn(Qt,null,e)}function An(e){return null==e||"boolean"==typeof e?yn(Qt):(0,r.kJ)(e)?yn(Xt,null,e.slice()):"object"==typeof e?Cn(e):yn(Kt,null,String(e))}function Cn(e){return null===e.el||e.memo?e:kn(e)}function Tn(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if((0,r.kJ)(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),Tn(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||mn in t?3===o&&W&&(1===W.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=W}}else(0,r.mf)(t)?(t={default:t,_ctx:W},n=32):(t=String(t),64&o?(n=16,t=[wn(t)]):n=8);e.children=t,e.shapeFlag|=n}function En(...e){const t={};for(let n=0;nt(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);a=new Array(n.length);for(let o=0,r=n.length;o!pn(e)||e.type!==Qt&&!(e.type===Xt&&!Ln(e.children))))?e:null}function Rn(e){const t={};for(const n in e)t[(0,r.hR)(n)]=e[n];return t}const In=e=>e?Wn(e)?no(e)||e.proxy:In(e.parent):null,Fn=(0,r.l7)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>In(e.parent),$root:e=>In(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?rt(e):e.type,$forceUpdate:e=>()=>C(e.update),$nextTick:e=>A.bind(e.proxy),$watch:e=>__VUE_OPTIONS_API__?ve.bind(e):r.dG}),Nn={get({_:e},t){const{ctx:n,setupState:a,data:i,props:s,accessCache:l,type:c,appContext:u}=e;let d;if("$"!==t[0]){const o=l[t];if(void 0!==o)switch(o){case 1:return a[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(a!==r.kT&&(0,r.RI)(a,t))return l[t]=1,a[t];if(i!==r.kT&&(0,r.RI)(i,t))return l[t]=2,i[t];if((d=e.propsOptions[0])&&(0,r.RI)(d,t))return l[t]=3,s[t];if(n!==r.kT&&(0,r.RI)(n,t))return l[t]=4,n[t];__VUE_OPTIONS_API__&&!tt||(l[t]=0)}}const p=Fn[t];let h,f;return p?("$attrs"===t&&(0,o.j)(e,"get",t),p(e)):(h=c.__cssModules)&&(h=h[t])?h:n!==r.kT&&(0,r.RI)(n,t)?(l[t]=4,n[t]):(f=u.config.globalProperties,(0,r.RI)(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:o,setupState:a,ctx:i}=e;return a!==r.kT&&(0,r.RI)(a,t)?(a[t]=n,!0):o!==r.kT&&(0,r.RI)(o,t)?(o[t]=n,!0):!((0,r.RI)(e.props,t)||"$"===t[0]&&t.slice(1)in e||(i[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:a,propsOptions:i}},s){let l;return!!n[s]||e!==r.kT&&(0,r.RI)(e,s)||t!==r.kT&&(0,r.RI)(t,s)||(l=i[0])&&(0,r.RI)(l,s)||(0,r.RI)(o,s)||(0,r.RI)(Fn,s)||(0,r.RI)(a.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?this.set(e,t,n.get(),null):null!=n.value&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},jn=(0,r.l7)({},Nn,{get(e,t){if(t!==Symbol.unscopables)return Nn.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!(0,r.e1)(t)}),$n=At();let Un=0;function qn(e,t,n){const a=e.type,i=(t?t.appContext:e.appContext)||$n,s={uid:Un++,vnode:e,type:a,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new o.Bj(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ht(a,i),emitsOptions:V(a,i),emit:null,emitted:null,propsDefaults:r.kT,inheritAttrs:a.inheritAttrs,ctx:r.kT,data:r.kT,props:r.kT,attrs:r.kT,slots:r.kT,refs:r.kT,setupState:r.kT,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=z.bind(null,s),e.ce&&e.ce(s),s}let Bn=null;const zn=()=>Bn||W,Vn=e=>{Bn=e,e.scope.on()},Hn=()=>{Bn&&Bn.scope.off(),Bn=null};function Wn(e){return 4&e.vnode.shapeFlag}let Gn,Yn,Jn=!1;function Zn(e,t=!1){Jn=t;const{props:n,children:a}=e.vnode,i=Wn(e);!function(e,t,n,a=!1){const i={},s={};(0,r.Nj)(s,mn,1),e.propsDefaults=Object.create(null),dt(e,t,i,s);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=a?i:(0,o.Um)(i):e.type.props?e.props=i:e.props=s,e.attrs=s}(e,n,i,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=(0,o.IU)(t),(0,r.Nj)(t,"_",n)):kt(t,e.slots={})}else e.slots={},t&&wt(e,t);(0,r.Nj)(e.slots,mn,1)})(e,a);const s=i?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=(0,o.Xl)(new Proxy(e.ctx,Nn));const{setup:a}=n;if(a){const n=e.setupContext=a.length>1?to(e):null;Vn(e),(0,o.Jd)();const i=c(a,e,0,[e.props,n]);if((0,o.lk)(),Hn(),(0,r.tI)(i)){if(i.then(Hn,Hn),t)return i.then((n=>{Xn(e,n,t)})).catch((t=>{d(t,e,0)}));e.asyncDep=i}else Xn(e,i,t)}else eo(e,t)}(e,t):void 0;return Jn=!1,s}function Xn(e,t,n){(0,r.mf)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,r.Kn)(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=(0,o.WL)(t)),eo(e,n)}function Kn(e){Gn=e,Yn=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,jn))}}const Qn=()=>!Gn;function eo(e,t,n){const a=e.type;if(!e.render){if(!t&&Gn&&!a.render){const t=a.template;if(t){const{isCustomElement:n,compilerOptions:o}=e.appContext.config,{delimiters:i,compilerOptions:s}=a,l=(0,r.l7)((0,r.l7)({isCustomElement:n,delimiters:i},o),s);a.render=Gn(t,l)}}e.render=a.render||r.dG,Yn&&Yn(e)}__VUE_OPTIONS_API__&&(Vn(e),(0,o.Jd)(),function(e){const t=rt(e),n=e.proxy,a=e.ctx;tt=!1,t.beforeCreate&&nt(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:l,watch:c,provide:u,inject:d,created:p,beforeMount:h,mounted:f,beforeUpdate:m,updated:g,activated:b,deactivated:v,beforeDestroy:y,beforeUnmount:_,destroyed:k,unmounted:w,render:x,renderTracked:S,renderTriggered:A,errorCaptured:C,serverPrefetch:T,expose:E,inheritAttrs:O,components:P,directives:D,filters:M}=t;if(d&&function(e,t,n=r.dG,a=!1){(0,r.kJ)(e)&&(e=lt(e));for(const n in e){const i=e[n];let s;s=(0,r.Kn)(i)?"default"in i?de(i.from||n,i.default,!0):de(i.from||n):de(i),(0,o.dq)(s)&&a?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(d,a,null,e.appContext.config.unwrapInjectedRef),l)for(const e in l){const t=l[e];(0,r.mf)(t)&&(a[e]=t.bind(n))}if(i){const t=i.call(n,n);(0,r.Kn)(t)&&(e.data=(0,o.qj)(t))}if(tt=!0,s)for(const e in s){const t=s[e],o=(0,r.mf)(t)?t.bind(n,n):(0,r.mf)(t.get)?t.get.bind(n,n):r.dG,i=!(0,r.mf)(t)&&(0,r.mf)(t.set)?t.set.bind(n):r.dG,l=io({get:o,set:i});Object.defineProperty(a,e,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(c)for(const e in c)ot(c[e],a,n,e);if(u){const e=(0,r.mf)(u)?u.call(n):u;Reflect.ownKeys(e).forEach((t=>{ue(t,e[t])}))}function L(e,t){(0,r.kJ)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(p&&nt(p,e,"c"),L(He,h),L(We,f),L(Ge,m),L(Ye,g),L(Ne,b),L(je,v),L(et,C),L(Qe,S),L(Ke,A),L(Je,_),L(Ze,w),L(Xe,T),(0,r.kJ)(E))if(E.length){const t=e.exposed||(e.exposed={});E.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});x&&e.render===r.dG&&(e.render=x),null!=O&&(e.inheritAttrs=O),P&&(e.components=P),D&&(e.directives=D)}(e),(0,o.lk)(),Hn())}function to(e){let t;return{get attrs(){return t||(t=function(e){return new Proxy(e.attrs,{get:(t,n)=>((0,o.j)(e,"get","$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function no(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((0,o.WL)((0,o.Xl)(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Fn?Fn[n](e):void 0}))}const oo=/(?:^|[-_])(\w)/g;function ro(e){return(0,r.mf)(e)&&e.displayName||e.name}function ao(e,t,n=!1){let o=ro(t);if(!o&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(o=e[1])}if(!o&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};o=n(e.components||e.parent.type.components)||n(e.appContext.components)}return o?o.replace(oo,(e=>e.toUpperCase())).replace(/[-_]/g,""):n?"App":"Anonymous"}const io=(e,t)=>(0,o.Fl)(e,t,Jn);function so(){return null}function lo(){return null}function co(e){}function uo(e,t){return null}function po(){return fo().slots}function ho(){return fo().attrs}function fo(){const e=zn();return e.setupContext||(e.setupContext=to(e))}function mo(e,t){const n=(0,r.kJ)(e)?e.reduce(((e,t)=>(e[t]={},e)),{}):e;for(const e in t){const o=n[e];o?(0,r.kJ)(o)||(0,r.mf)(o)?n[e]={type:o,default:t[e]}:o.default=t[e]:null===o&&(n[e]={default:t[e]})}return n}function go(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function bo(e){const t=zn();let n=e();return Hn(),(0,r.tI)(n)&&(n=n.catch((e=>{throw Vn(t),e}))),[n,()=>Vn(t)]}function vo(e,t,n){const o=arguments.length;return 2===o?(0,r.Kn)(t)&&!(0,r.kJ)(t)?pn(t)?yn(e,null,[t]):yn(e,t):yn(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&pn(n)&&(n=[n]),yn(e,t,n))}const yo=Symbol(""),_o=()=>{{const e=de(yo);return e||i("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function ko(){}function wo(e,t,n,o){const r=n[o];if(r&&xo(r,e))return r;const a=t();return a.memo=e.slice(),n[o]=a}function xo(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&nn&&nn.push(e),!0}const So="3.2.31",Ao={createComponentInstance:qn,setupComponent:Zn,renderComponentRoot:Q,setCurrentRenderingInstance:Y,isVNode:pn,normalizeVNode:An},Co=null,To=null},9963:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseTransition:()=>r.P$,Comment:()=>r.sv,EffectScope:()=>r.Bj,Fragment:()=>r.HY,KeepAlive:()=>r.Ob,ReactiveEffect:()=>r.qq,Static:()=>r.qG,Suspense:()=>r.n4,Teleport:()=>r.lR,Text:()=>r.xv,Transition:()=>M,TransitionGroup:()=>Z,VueElement:()=>A,callWithAsyncErrorHandling:()=>r.$d,callWithErrorHandling:()=>r.KU,camelize:()=>r._A,capitalize:()=>r.kC,cloneVNode:()=>r.Ho,compatUtils:()=>r.ry,computed:()=>r.Fl,createApp:()=>Te,createBlock:()=>r.j4,createCommentVNode:()=>r.kq,createElementBlock:()=>r.iD,createElementVNode:()=>r._,createHydrationRenderer:()=>r.Eo,createPropsRestProxy:()=>r.p1,createRenderer:()=>r.Us,createSSRApp:()=>Ee,createSlots:()=>r.Nv,createStaticVNode:()=>r.uE,createTextVNode:()=>r.Uk,createVNode:()=>r.Wm,customRef:()=>r.ZM,defineAsyncComponent:()=>r.RC,defineComponent:()=>r.aZ,defineCustomElement:()=>w,defineEmits:()=>r.Bz,defineExpose:()=>r.WY,defineProps:()=>r.MW,defineSSRCustomElement:()=>x,devtools:()=>r.mW,effect:()=>r.cE,effectScope:()=>r.B,getCurrentInstance:()=>r.FN,getCurrentScope:()=>r.nZ,getTransitionRawChildren:()=>r.Q6,guardReactiveProps:()=>r.F4,h:()=>r.h,handleError:()=>r.S3,hydrate:()=>Ce,initCustomFormatter:()=>r.Mr,initDirectivesForSSR:()=>De,inject:()=>r.f3,isMemoSame:()=>r.nQ,isProxy:()=>r.X3,isReactive:()=>r.PG,isReadonly:()=>r.$y,isRef:()=>r.dq,isRuntimeOnly:()=>r.of,isShallow:()=>r.yT,isVNode:()=>r.lA,markRaw:()=>r.Xl,mergeDefaults:()=>r.u_,mergeProps:()=>r.dG,nextTick:()=>r.Y3,normalizeClass:()=>r.C_,normalizeProps:()=>r.vs,normalizeStyle:()=>r.j5,onActivated:()=>r.dl,onBeforeMount:()=>r.wF,onBeforeUnmount:()=>r.Jd,onBeforeUpdate:()=>r.Xn,onDeactivated:()=>r.se,onErrorCaptured:()=>r.d1,onMounted:()=>r.bv,onRenderTracked:()=>r.bT,onRenderTriggered:()=>r.Yq,onScopeDispose:()=>r.EB,onServerPrefetch:()=>r.vl,onUnmounted:()=>r.Ah,onUpdated:()=>r.ic,openBlock:()=>r.wg,popScopeId:()=>r.Cn,provide:()=>r.JJ,proxyRefs:()=>r.WL,pushScopeId:()=>r.dD,queuePostFlushCb:()=>r.qb,reactive:()=>r.qj,readonly:()=>r.OT,ref:()=>r.iH,registerRuntimeCompiler:()=>r.Y1,render:()=>Ae,renderList:()=>r.Ko,renderSlot:()=>r.WI,resolveComponent:()=>r.up,resolveDirective:()=>r.Q2,resolveDynamicComponent:()=>r.LL,resolveFilter:()=>r.eq,resolveTransitionHooks:()=>r.U2,setBlockTracking:()=>r.qZ,setDevtoolsHook:()=>r.ec,setTransitionHooks:()=>r.nK,shallowReactive:()=>r.Um,shallowReadonly:()=>r.YS,shallowRef:()=>r.XI,ssrContextKey:()=>r.Uc,ssrUtils:()=>r.G,stop:()=>r.sT,toDisplayString:()=>r.zw,toHandlerKey:()=>r.hR,toHandlers:()=>r.mx,toRaw:()=>r.IU,toRef:()=>r.Vh,toRefs:()=>r.BK,transformVNodeArgs:()=>r.C3,triggerRef:()=>r.oR,unref:()=>r.SU,useAttrs:()=>r.l1,useCssModule:()=>C,useCssVars:()=>T,useSSRContext:()=>r.Zq,useSlots:()=>r.Rr,useTransitionState:()=>r.Y8,vModelCheckbox:()=>re,vModelDynamic:()=>de,vModelRadio:()=>ie,vModelSelect:()=>se,vModelText:()=>oe,vShow:()=>ve,version:()=>r.i8,warn:()=>r.ZK,watch:()=>r.YP,watchEffect:()=>r.m0,watchPostEffect:()=>r.Rh,watchSyncEffect:()=>r.yX,withAsyncContext:()=>r.mv,withCtx:()=>r.w5,withDefaults:()=>r.b9,withDirectives:()=>r.wy,withKeys:()=>be,withMemo:()=>r.MX,withModifiers:()=>me,withScopeId:()=>r.HX});var o=n(3577),r=n(6252),a=n(2262);const i="undefined"!=typeof document?document:null,s=i&&i.createElement("template"),l={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?i.createElementNS("http://www.w3.org/2000/svg",e):i.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>i.createTextNode(e),createComment:e=>i.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>i.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,o,r,a){const i=n?n.previousSibling:t.lastChild;if(r&&(r===a||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==a&&(r=r.nextSibling););else{s.innerHTML=o?`${e}`:e;const r=s.content;if(o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},c=/\s*!important$/;function u(e,t,n){if((0,o.kJ)(n))n.forEach((n=>u(e,t,n)));else if(t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=p[t];if(n)return n;let r=(0,o._A)(t);if("filter"!==r&&r in e)return p[t]=r;r=(0,o.kC)(r);for(let n=0;ndocument.createEvent("Event").timeStamp&&(f=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);m=!!(e&&Number(e[1])<=53)}let g=0;const b=Promise.resolve(),v=()=>{g=0};function y(e,t,n,o){e.addEventListener(t,n,o)}const _=/(?:Once|Passive|Capture)$/,k=/^on[a-z]/;function w(e,t){const n=(0,r.aZ)(e);class o extends A{constructor(e){super(n,e,t)}}return o.def=n,o}const x=e=>w(e,Ce),S="undefined"!=typeof HTMLElement?HTMLElement:class{};class A extends S{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,(0,r.Y3)((()=>{this._connected||(Ae(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})).observe(this,{attributes:!0});const e=e=>{const{props:t,styles:n}=e,r=!(0,o.kJ)(t),a=t?r?Object.keys(t):t:[];let i;if(r)for(const e in this._props){const n=t[e];(n===Number||n&&n.type===Number)&&(this._props[e]=(0,o.He)(this._props[e]),(i||(i=Object.create(null)))[e]=!0)}this._numberProps=i;for(const e of Object.keys(this))"_"!==e[0]&&this._setProp(e,this[e],!0,!1);for(const e of a.map(o._A))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}});this._applyStyles(n),this._update()},t=this._def.__asyncLoader;t?t().then(e):e(this._def)}_setAttr(e){let t=this.getAttribute(e);this._numberProps&&this._numberProps[e]&&(t=(0,o.He)(t)),this._setProp((0,o._A)(e),t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!0){t!==this._props[e]&&(this._props[e]=t,r&&this._instance&&this._update(),n&&(!0===t?this.setAttribute((0,o.rs)(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute((0,o.rs)(e),t+""):t||this.removeAttribute((0,o.rs)(e))))}_update(){Ae(this._createVNode(),this.shadowRoot)}_createVNode(){const e=(0,r.Wm)(this._def,(0,o.l7)({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0,e.emit=(e,...t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof A){e.parent=t._instance;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function C(e="$style"){{const t=(0,r.FN)();if(!t)return o.kT;const n=t.type.__cssModules;if(!n)return o.kT;return n[e]||o.kT}}function T(e){const t=(0,r.FN)();if(!t)return;const n=()=>E(t.subTree,e(t.proxy));(0,r.Rh)(n),(0,r.bv)((()=>{const e=new MutationObserver(n);e.observe(t.subTree.el.parentNode,{childList:!0}),(0,r.Ah)((()=>e.disconnect()))}))}function E(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{E(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)O(e.el,t);else if(e.type===r.HY)e.children.forEach((e=>E(e,t)));else if(e.type===r.qG){let{el:n,anchor:o}=e;for(;n&&(O(n,t),n!==o);)n=n.nextSibling}}function O(e,t){if(1===e.nodeType){const n=e.style;for(const e in t)n.setProperty(`--${e}`,t[e])}}const P="transition",D="animation",M=(e,{slots:t})=>(0,r.h)(r.P$,N(e),t);M.displayName="Transition";const L={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},R=M.props=(0,o.l7)({},r.P$.props,L),I=(e,t=[])=>{(0,o.kJ)(e)?e.forEach((e=>e(...t))):e&&e(...t)},F=e=>!!e&&((0,o.kJ)(e)?e.some((e=>e.length>1)):e.length>1);function N(e){const t={};for(const n in e)n in L||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:r,duration:a,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:u=s,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if((0,o.Kn)(e))return[j(e.enter),j(e.leave)];{const t=j(e);return[t,t]}}(a),g=m&&m[0],b=m&&m[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:_,onLeave:k,onLeaveCancelled:w,onBeforeAppear:x=v,onAppear:S=y,onAppearCancelled:A=_}=t,C=(e,t,n)=>{U(e,t?d:l),U(e,t?u:s),n&&n()},T=(e,t)=>{U(e,f),U(e,h),t&&t()},E=e=>(t,n)=>{const o=e?S:y,a=()=>C(t,e,n);I(o,[t,a]),q((()=>{U(t,e?c:i),$(t,e?d:l),F(o)||z(t,r,g,a)}))};return(0,o.l7)(t,{onBeforeEnter(e){I(v,[e]),$(e,i),$(e,s)},onBeforeAppear(e){I(x,[e]),$(e,c),$(e,u)},onEnter:E(!1),onAppear:E(!0),onLeave(e,t){const n=()=>T(e,t);$(e,p),G(),$(e,h),q((()=>{U(e,p),$(e,f),F(k)||z(e,r,b,n)})),I(k,[e,n])},onEnterCancelled(e){C(e,!1),I(_,[e])},onAppearCancelled(e){C(e,!0),I(A,[e])},onLeaveCancelled(e){T(e),I(w,[e])}})}function j(e){return(0,o.He)(e)}function $(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function U(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function q(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let B=0;function z(e,t,n,o){const r=e._endId=++B,a=()=>{r===e._endId&&o()};if(n)return setTimeout(a,n);const{type:i,timeout:s,propCount:l}=V(e,t);if(!i)return o();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,p),a()},p=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{u(n[e]||"").split(", "),r=o("transitionDelay"),a=o("transitionDuration"),i=H(r,a),s=o("animationDelay"),l=o("animationDuration"),c=H(s,l);let u=null,d=0,p=0;return t===P?i>0&&(u=P,d=i,p=a.length):t===D?c>0&&(u=D,d=c,p=l.length):(d=Math.max(i,c),u=d>0?i>c?P:D:null,p=u?u===P?a.length:l.length:0),{type:u,timeout:d,propCount:p,hasTransform:u===P&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}function H(e,t){for(;e.lengthW(t)+W(e[n]))))}function W(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function G(){return document.body.offsetHeight}const Y=new WeakMap,J=new WeakMap,Z={name:"TransitionGroup",props:(0,o.l7)({},R,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=(0,r.FN)(),o=(0,r.Y8)();let i,s;return(0,r.ic)((()=>{if(!i.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode();e._vtc&&e._vtc.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const r=1===t.nodeType?t:t.parentNode;r.appendChild(o);const{hasTransform:a}=V(o);return r.removeChild(o),a}(i[0].el,n.vnode.el,t))return;i.forEach(X),i.forEach(K);const o=i.filter(Q);G(),o.forEach((e=>{const n=e.el,o=n.style;$(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const r=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",r),n._moveCb=null,U(n,t))};n.addEventListener("transitionend",r)}))})),()=>{const l=(0,a.IU)(e),c=N(l);let u=l.tag||r.HY;i=s,s=t.default?(0,r.Q6)(t.default()):[];for(let e=0;e{const t=e.props["onUpdate:modelValue"];return(0,o.kJ)(t)?e=>(0,o.ir)(t,e):t};function te(e){e.target.composing=!0}function ne(e){const t=e.target;t.composing&&(t.composing=!1,function(e,t){const n=document.createEvent("HTMLEvents");n.initEvent("input",!0,!0),e.dispatchEvent(n)}(t))}const oe={created(e,{modifiers:{lazy:t,trim:n,number:r}},a){e._assign=ee(a);const i=r||a.props&&"number"===a.props.type;y(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n?r=r.trim():i&&(r=(0,o.He)(r)),e._assign(r)})),n&&y(e,"change",(()=>{e.value=e.value.trim()})),t||(y(e,"compositionstart",te),y(e,"compositionend",ne),y(e,"change",ne))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:a}},i){if(e._assign=ee(i),e.composing)return;if(document.activeElement===e){if(n)return;if(r&&e.value.trim()===t)return;if((a||"number"===e.type)&&(0,o.He)(e.value)===t)return}const s=null==t?"":t;e.value!==s&&(e.value=s)}},re={deep:!0,created(e,t,n){e._assign=ee(n),y(e,"change",(()=>{const t=e._modelValue,n=ce(e),r=e.checked,a=e._assign;if((0,o.kJ)(t)){const e=(0,o.hq)(t,n),i=-1!==e;if(r&&!i)a(t.concat(n));else if(!r&&i){const n=[...t];n.splice(e,1),a(n)}}else if((0,o.DM)(t)){const e=new Set(t);r?e.add(n):e.delete(n),a(e)}else a(ue(e,r))}))},mounted:ae,beforeUpdate(e,t,n){e._assign=ee(n),ae(e,t,n)}};function ae(e,{value:t,oldValue:n},r){e._modelValue=t,(0,o.kJ)(t)?e.checked=(0,o.hq)(t,r.props.value)>-1:(0,o.DM)(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=(0,o.WV)(t,ue(e,!0)))}const ie={created(e,{value:t},n){e.checked=(0,o.WV)(t,n.props.value),e._assign=ee(n),y(e,"change",(()=>{e._assign(ce(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=ee(r),t!==n&&(e.checked=(0,o.WV)(t,r.props.value))}},se={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const a=(0,o.DM)(t);y(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?(0,o.He)(ce(e)):ce(e)));e._assign(e.multiple?a?new Set(t):t:t[0])})),e._assign=ee(r)},mounted(e,{value:t}){le(e,t)},beforeUpdate(e,t,n){e._assign=ee(n)},updated(e,{value:t}){le(e,t)}};function le(e,t){const n=e.multiple;if(!n||(0,o.kJ)(t)||(0,o.DM)(t)){for(let r=0,a=e.options.length;r-1:a.selected=t.has(i);else if((0,o.WV)(ce(a),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function ce(e){return"_value"in e?e._value:e.value}function ue(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const de={created(e,t,n){pe(e,t,n,null,"created")},mounted(e,t,n){pe(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){pe(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){pe(e,t,n,o,"updated")}};function pe(e,t,n,o,r){let a;switch(e.tagName){case"SELECT":a=se;break;case"TEXTAREA":a=oe;break;default:switch(n.props&&n.props.type){case"checkbox":a=re;break;case"radio":a=ie;break;default:a=oe}}const i=a[r];i&&i(e,t,n,o)}const he=["ctrl","shift","alt","meta"],fe={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>he.some((n=>e[`${n}Key`]&&!t.includes(n)))},me=(e,t)=>(n,...o)=>{for(let e=0;en=>{if(!("key"in n))return;const r=(0,o.rs)(n.key);return t.some((e=>e===r||ge[e]===r))?e(n):void 0},ve={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):ye(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),ye(e,!0),o.enter(e)):o.leave(e,(()=>{ye(e,!1)})):ye(e,t))},beforeUnmount(e,{value:t}){ye(e,t)}};function ye(e,t){e.style.display=t?e._vod:"none"}const _e=(0,o.l7)({patchProp:(e,t,n,a,i=!1,s,l,c,d)=>{"class"===t?function(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,a,i):"style"===t?function(e,t,n){const r=e.style,a=(0,o.HD)(n);if(n&&!a){for(const e in n)u(r,e,n[e]);if(t&&!(0,o.HD)(t))for(const e in t)null==n[e]&&u(r,e,"")}else{const o=r.display;a?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}(e,n,a):(0,o.F7)(t)?(0,o.tR)(t)||function(e,t,n,a,i=null){const s=e._vei||(e._vei={}),l=s[t];if(a&&l)l.value=a;else{const[n,c]=function(e){let t;if(_.test(e)){let n;for(t={};n=e.match(_);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[(0,o.rs)(e.slice(2)),t]}(t);if(a){const l=s[t]=function(e,t){const n=e=>{const a=e.timeStamp||f();(m||a>=n.attached-1)&&(0,r.$d)(function(e,t){if((0,o.kJ)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=g||(b.then(v),g=f()),n}(a,i);y(e,n,l,c)}else l&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,l,c),s[t]=void 0)}}(e,t,0,a,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){return r?"innerHTML"===t||"textContent"===t||!!(t in e&&k.test(t)&&(0,o.mf)(n)):"spellcheck"!==t&&"draggable"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!k.test(t)||!(0,o.HD)(n))&&t in e))))}(e,t,a,i))?function(e,t,n,r,a,i,s){if("innerHTML"===t||"textContent"===t)return r&&s(r,a,i),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const o=null==n?"":n;return e.value===o&&"OPTION"!==e.tagName||(e.value=o),void(null==n&&e.removeAttribute(t))}if(""===n||null==n){const r=typeof e[t];if("boolean"===r)return void(e[t]=(0,o.yA)(n));if(null==n&&"string"===r)return e[t]="",void e.removeAttribute(t);if("number"===r){try{e[t]=0}catch(e){}return void e.removeAttribute(t)}}try{e[t]=n}catch(e){}}(e,t,a,s,l,c,d):("true-value"===t?e._trueValue=a:"false-value"===t&&(e._falseValue=a),function(e,t,n,r,a){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(h,t.slice(6,t.length)):e.setAttributeNS(h,t,n);else{const r=(0,o.Pq)(t);null==n||r&&!(0,o.yA)(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,a,i))}},l);let ke,we=!1;function xe(){return ke||(ke=(0,r.Us)(_e))}function Se(){return ke=we?ke:(0,r.Eo)(_e),we=!0,ke}const Ae=(...e)=>{xe().render(...e)},Ce=(...e)=>{Se().hydrate(...e)},Te=(...e)=>{const t=xe().createApp(...e),{mount:n}=t;return t.mount=e=>{const r=Oe(e);if(!r)return;const a=t._component;(0,o.mf)(a)||a.render||a.template||(a.template=r.innerHTML),r.innerHTML="";const i=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t},Ee=(...e)=>{const t=Se().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Oe(e);if(t)return n(t,!0,t instanceof SVGElement)},t};function Oe(e){return(0,o.HD)(e)?document.querySelector(e):e}let Pe=!1;const De=()=>{Pe||(Pe=!0,oe.getSSRProps=({value:e})=>({value:e}),ie.getSSRProps=({value:e},t)=>{if(t.props&&(0,o.WV)(t.props.value,e))return{checked:!0}},re.getSSRProps=({value:e},t)=>{if((0,o.kJ)(e)){if(t.props&&(0,o.hq)(e,t.props.value)>-1)return{checked:!0}}else if((0,o.DM)(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},ve.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})}},3577:(e,t,n)=>{"use strict";function o(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,{C_:()=>d,DM:()=>P,E9:()=>te,F7:()=>w,Gg:()=>B,HD:()=>L,He:()=>Q,Kn:()=>I,NO:()=>_,Nj:()=>K,Od:()=>A,PO:()=>U,Pq:()=>a,RI:()=>T,S0:()=>q,W7:()=>$,WV:()=>h,Z6:()=>v,_A:()=>H,_N:()=>O,aU:()=>Z,dG:()=>y,e1:()=>r,fY:()=>o,hR:()=>J,hq:()=>f,ir:()=>X,j5:()=>s,kC:()=>Y,kJ:()=>E,kT:()=>b,l7:()=>S,mf:()=>M,rs:()=>G,tI:()=>F,tR:()=>x,vs:()=>p,yA:()=>i,yk:()=>R,zw:()=>m});const r=o("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt"),a=o("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function i(e){return!!e||""===e}function s(e){if(E(e)){const t={};for(let n=0;n{if(e){const n=e.split(c);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function d(e){let t="";if(L(e))t=e;else if(E(e))for(let n=0;nh(e,t)))}const m=e=>L(e)?e:null==e?"":E(e)||I(e)&&(e.toString===N||!M(e.toString))?JSON.stringify(e,g,2):String(e),g=(e,t)=>t&&t.__v_isRef?g(e,t.value):O(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:P(t)?{[`Set(${t.size})`]:[...t.values()]}:!I(t)||E(t)||U(t)?t:String(t),b={},v=[],y=()=>{},_=()=>!1,k=/^on[^a-z]/,w=e=>k.test(e),x=e=>e.startsWith("onUpdate:"),S=Object.assign,A=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},C=Object.prototype.hasOwnProperty,T=(e,t)=>C.call(e,t),E=Array.isArray,O=e=>"[object Map]"===j(e),P=e=>"[object Set]"===j(e),D=e=>e instanceof Date,M=e=>"function"==typeof e,L=e=>"string"==typeof e,R=e=>"symbol"==typeof e,I=e=>null!==e&&"object"==typeof e,F=e=>I(e)&&M(e.then)&&M(e.catch),N=Object.prototype.toString,j=e=>N.call(e),$=e=>j(e).slice(8,-1),U=e=>"[object Object]"===j(e),q=e=>L(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,B=o(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),z=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},V=/-(\w)/g,H=z((e=>e.replace(V,((e,t)=>t?t.toUpperCase():"")))),W=/\B([A-Z])/g,G=z((e=>e.replace(W,"-$1").toLowerCase())),Y=z((e=>e.charAt(0).toUpperCase()+e.slice(1))),J=z((e=>e?`on${Y(e)}`:"")),Z=(e,t)=>!Object.is(e,t),X=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Q=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ee;const te=()=>ee||(ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{})},110:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(8081),r=n.n(o),a=n(3645),i=n.n(a)()(r());i.push([e.id,'.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}',""]);const s=i},2588:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(8081),r=n.n(o),a=n(3645),i=n.n(a)()(r());i.push([e.id,".tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}",""]);const s=i},3232:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(8081),r=n.n(o),a=n(3645),i=n.n(a)()(r());i.push([e.id,"\n.diffset-left {\n width: 48%;\n}\n.diffset-left .ins,\n.diffset-left ins {\n display: none !important;\n}\n.diffset-right {\n width: 48%;\n}\n.diffset-right .del,\n.diffset-right del {\n display: none !important;\n}\n",""]);const s=i},27:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(8081),r=n.n(o),a=n(3645),i=n.n(a)()(r());i.push([e.id,"\n.card-header[data-v-63c9ac08] {\n background-color: #ffdf80;\n font-family: var(--bs-body-font-family);\n}\n.card-body[data-v-63c9ac08] {\n background-color: #fff6da;\n}\n",""]);const s=i},6307:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(8081),r=n.n(o),a=n(3645),i=n.n(a)()(r());i.push([e.id,"\n.doc-search {\n display: flex;\n flex-direction: column;\n height: 100%;\n padding: 1rem;\n}\n.doc-search__results {\n flex: 1 1 auto;\n overflow-y: auto;\n height: 0;\n}\n.doc-search__results .snippet-card:focus {\n border-color: var(--bs-primary);\n}\n",""]);const s=i},3544:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(8081),r=n.n(o),a=n(3645),i=n.n(a)()(r());i.push([e.id,"\n.facets-scrollable[data-v-32034ea4] {\n max-height: 25vh;\n overflow-y: auto;\n}\n",""]);const s=i},1328:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(8081),r=n.n(o),a=n(3645),i=n.n(a)()(r());i.push([e.id,"\n.dropdown-menu .dropdown-item[data-v-10e31a92] {\n padding-left: 2.5rem;\n padding-right: 2.5rem;\n}\n",""]);const s=i},4593:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(8081),r=n.n(o),a=n(3645),i=n.n(a)()(r());i.push([e.id,"\n.mobile-side-drawer__mobile-view[data-v-6caa891a] {\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 99;\n visibility: hidden;\n transition: visibility 300ms ease-in-out;\n}\n.mobile-side-drawer__mobile-view__content[data-v-6caa891a] {\n width: 100%;\n height: 100%;\n position: relative;\n}\n.mobile-side-drawer__mobile-view__content .slot[data-v-6caa891a] {\n width: 80%;\n height: 100%;\n transition: transform 300ms ease-in-out;\n transform: translateX(-100%);\n overflow: auto;\n}\n.mobile-side-drawer__mobile-view__content .overlay[data-v-6caa891a] {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n transition: opacity 300ms ease-in-out;\n opacity: 0;\n}\n.mobile-side-drawer__mobile-view.active[data-v-6caa891a] {\n visibility: visible;\n}\n.mobile-side-drawer__mobile-view.active .slot[data-v-6caa891a] {\n transform: translateX(0);\n}\n.mobile-side-drawer__mobile-view.active .overlay[data-v-6caa891a] {\n opacity: 1;\n}\n",""]);const s=i},9473:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(8081),r=n.n(o),a=n(3645),i=n.n(a)()(r());i.push([e.id,"\n.hit mark {\n font-weight: bold;\n padding: 0px;\n color: inherit;\n}\n.snippet {\n line-height: 1.3;\n word-break: break-word;\n}\n.hit .explanation {\n max-height: 50vh;\n overflow-y: auto;\n}\n",""]);const s=i},1164:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(8081),r=n.n(o),a=n(3645),i=n.n(a)()(r());i.push([e.id,"\n.overlay[data-v-6963ae4d] {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.2);\n z-index: 9;\n}\n.sort-body[data-v-6963ae4d] {\n display: flex;\n justify-content: space-between;\n}\n@media screen and (max-width: 400px) {\n.sort-body[data-v-6963ae4d] {\n flex-direction: column;\n}\n.sort__inner[data-v-6963ae4d] {\n margin-top: 10px;\n}\n}\n@media screen and (max-width: 992px) {\n.filter-facet-title[data-v-6963ae4d] {\n position: absolute;\n margin: auto;\n left: 0;\n right: 0;\n width: 40px;\n}\n}\n",""]);const s=i},5476:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(8081),r=n.n(o),a=n(3645),i=n.n(a)()(r());i.push([e.id,"\n.facets-scrollable[data-v-a00e87ac] {\n max-height: 25vh;\n overflow-y: auto;\n}\n",""]);const s=i},6968:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(8081),r=n.n(o),a=n(3645),i=n.n(a)()(r());i.push([e.id,"\n.bi-chat-left[data-v-1f5a887a] {\n text-align: center;\n position: relative;\n z-index: 9;\n}\n@media screen and (max-width: 992px) {\n.card[data-v-1f5a887a] {\n position: fixed;\n bottom: 0;\n left: 0;\n width: 100%;\n transform: translateY(100%);\n transition: transform ease-in-out 300ms;\n z-index: 9;\n}\nla-gutter-item[active][data-v-1f5a887a] {\n z-index: 9;\n}\nla-gutter-item[active] .card[data-v-1f5a887a] {\n transform: translateY(0);\n}\n\n /*So content is above To the top element*/\n.card .card-body[data-v-1f5a887a] {\n padding-bottom: 40px;\n}\n}\n",""]);const s=i},404:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var o=n(8081),r=n.n(o),a=n(3645),i=n.n(a)()(r());i.push([e.id,":root{--vs-colors--lightest:rgba(60,60,60,0.26);--vs-colors--light:rgba(60,60,60,0.5);--vs-colors--dark:#333;--vs-colors--darkest:rgba(0,0,0,0.15);--vs-search-input-color:inherit;--vs-search-input-placeholder-color:inherit;--vs-font-size:1rem;--vs-line-height:1.4;--vs-state-disabled-bg:#f8f8f8;--vs-state-disabled-color:var(--vs-colors--light);--vs-state-disabled-controls-color:var(--vs-colors--light);--vs-state-disabled-cursor:not-allowed;--vs-border-color:var(--vs-colors--lightest);--vs-border-width:1px;--vs-border-style:solid;--vs-border-radius:4px;--vs-actions-padding:4px 6px 0 3px;--vs-controls-color:var(--vs-colors--light);--vs-controls-size:1;--vs-controls--deselect-text-shadow:0 1px 0 #fff;--vs-selected-bg:#f0f0f0;--vs-selected-color:var(--vs-colors--dark);--vs-selected-border-color:var(--vs-border-color);--vs-selected-border-style:var(--vs-border-style);--vs-selected-border-width:var(--vs-border-width);--vs-dropdown-bg:#fff;--vs-dropdown-color:inherit;--vs-dropdown-z-index:1000;--vs-dropdown-min-width:160px;--vs-dropdown-max-height:350px;--vs-dropdown-box-shadow:0px 3px 6px 0px var(--vs-colors--darkest);--vs-dropdown-option-bg:#000;--vs-dropdown-option-color:var(--vs-dropdown-color);--vs-dropdown-option-padding:3px 20px;--vs-dropdown-option--active-bg:#5897fb;--vs-dropdown-option--active-color:#fff;--vs-dropdown-option--deselect-bg:#fb5858;--vs-dropdown-option--deselect-color:#fff;--vs-transition-timing-function:cubic-bezier(1,-0.115,0.975,0.855);--vs-transition-duration:150ms}.v-select{font-family:inherit;position:relative}.v-select,.v-select *{box-sizing:border-box}:root{--vs-transition-timing-function:cubic-bezier(1,0.5,0.8,1);--vs-transition-duration:0.15s}@-webkit-keyframes vSelectSpinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes vSelectSpinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.vs__fade-enter-active,.vs__fade-leave-active{pointer-events:none;transition:opacity var(--vs-transition-duration) var(--vs-transition-timing-function)}.vs__fade-enter,.vs__fade-leave-to{opacity:0}:root{--vs-disabled-bg:var(--vs-state-disabled-bg);--vs-disabled-color:var(--vs-state-disabled-color);--vs-disabled-cursor:var(--vs-state-disabled-cursor)}.vs--disabled .vs__clear,.vs--disabled .vs__dropdown-toggle,.vs--disabled .vs__open-indicator,.vs--disabled .vs__search,.vs--disabled .vs__selected{background-color:var(--vs-disabled-bg);cursor:var(--vs-disabled-cursor)}.v-select[dir=rtl] .vs__actions{padding:0 3px 0 6px}.v-select[dir=rtl] .vs__clear{margin-left:6px;margin-right:0}.v-select[dir=rtl] .vs__deselect{margin-left:0;margin-right:2px}.v-select[dir=rtl] .vs__dropdown-menu{text-align:right}.vs__dropdown-toggle{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:var(--vs-border-width) var(--vs-border-style) var(--vs-border-color);border-radius:var(--vs-border-radius);display:flex;padding:0 0 4px;white-space:normal}.vs__selected-options{display:flex;flex-basis:100%;flex-grow:1;flex-wrap:wrap;padding:0 2px;position:relative}.vs__actions{align-items:center;display:flex;padding:var(--vs-actions-padding)}.vs--searchable .vs__dropdown-toggle{cursor:text}.vs--unsearchable .vs__dropdown-toggle{cursor:pointer}.vs--open .vs__dropdown-toggle{border-bottom-color:transparent;border-bottom-left-radius:0;border-bottom-right-radius:0}.vs__open-indicator{fill:var(--vs-controls-color);transform:scale(var(--vs-controls-size));transition:transform var(--vs-transition-duration) var(--vs-transition-timing-function);transition-timing-function:var(--vs-transition-timing-function)}.vs--open .vs__open-indicator{transform:rotate(180deg) scale(var(--vs-controls-size))}.vs--loading .vs__open-indicator{opacity:0}.vs__clear{fill:var(--vs-controls-color);background-color:transparent;border:0;cursor:pointer;margin-right:8px;padding:0}.vs__dropdown-menu{background:var(--vs-dropdown-bg);border:var(--vs-border-width) var(--vs-border-style) var(--vs-border-color);border-radius:0 0 var(--vs-border-radius) var(--vs-border-radius);border-top-style:none;box-shadow:var(--vs-dropdown-box-shadow);box-sizing:border-box;color:var(--vs-dropdown-color);display:block;left:0;list-style:none;margin:0;max-height:var(--vs-dropdown-max-height);min-width:var(--vs-dropdown-min-width);overflow-y:auto;padding:5px 0;position:absolute;text-align:left;top:calc(100% - var(--vs-border-width));width:100%;z-index:var(--vs-dropdown-z-index)}.vs__no-options{text-align:center}.vs__dropdown-option{clear:both;color:var(--vs-dropdown-option-color);cursor:pointer;display:block;line-height:1.42857143;padding:var(--vs-dropdown-option-padding);white-space:nowrap}.vs__dropdown-option--highlight{background:var(--vs-dropdown-option--active-bg);color:var(--vs-dropdown-option--active-color)}.vs__dropdown-option--deselect{background:var(--vs-dropdown-option--deselect-bg);color:var(--vs-dropdown-option--deselect-color)}.vs__dropdown-option--disabled{background:var(--vs-state-disabled-bg);color:var(--vs-state-disabled-color);cursor:var(--vs-state-disabled-cursor)}.vs__selected{align-items:center;background-color:var(--vs-selected-bg);border:var(--vs-selected-border-width) var(--vs-selected-border-style) var(--vs-selected-border-color);border-radius:var(--vs-border-radius);color:var(--vs-selected-color);display:flex;line-height:var(--vs-line-height);margin:4px 2px 0;padding:0 .25em;z-index:0}.vs__deselect{fill:var(--vs-controls-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-flex;margin-left:4px;padding:0;text-shadow:var(--vs-controls--deselect-text-shadow)}.vs--single .vs__selected{background-color:transparent;border-color:transparent}.vs--single.vs--loading .vs__selected,.vs--single.vs--open .vs__selected{opacity:.4;position:absolute}.vs--single.vs--searching .vs__selected{display:none}.vs__search::-webkit-search-cancel-button{display:none}.vs__search::-ms-clear,.vs__search::-webkit-search-decoration,.vs__search::-webkit-search-results-button,.vs__search::-webkit-search-results-decoration{display:none}.vs__search,.vs__search:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:1px solid transparent;border-left:none;box-shadow:none;color:var(--vs-search-input-color);flex-grow:1;font-size:var(--vs-font-size);line-height:var(--vs-line-height);margin:4px 0 0;max-width:100%;outline:none;padding:0 7px;width:0;z-index:1}.vs__search::-moz-placeholder{color:var(--vs-search-input-placeholder-color)}.vs__search:-ms-input-placeholder{color:var(--vs-search-input-placeholder-color)}.vs__search::placeholder{color:var(--vs-search-input-placeholder-color)}.vs--unsearchable .vs__search{opacity:1}.vs--unsearchable:not(.vs--disabled) .vs__search{cursor:pointer}.vs--single.vs--searching:not(.vs--open):not(.vs--loading) .vs__search{opacity:.2}.vs__spinner{align-self:center;-webkit-animation:vSelectSpinner 1.1s linear infinite;animation:vSelectSpinner 1.1s linear infinite;border:.9em solid hsla(0,0%,39%,.1);border-left-color:rgba(60,60,60,.45);font-size:5px;opacity:0;overflow:hidden;text-indent:-9999em;transform:translateZ(0) scale(var(--vs-controls--spinner-size,var(--vs-controls-size)));transition:opacity .1s}.vs__spinner,.vs__spinner:after{border-radius:50%;height:5em;transform:scale(var(--vs-controls--spinner-size,var(--vs-controls-size)));width:5em}.vs--loading .vs__spinner{opacity:1}",""]);const s=i},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(o)for(var s=0;s0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},2027:e=>{var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1;t.Diff=function(e,t){return[e,t]},t.prototype.diff_main=function(e,n,o,r){void 0===r&&(r=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var a=r;if(null==e||null==n)throw new Error("Null input. (diff_main)");if(e==n)return e?[new t.Diff(0,e)]:[];void 0===o&&(o=!0);var i=o,s=this.diff_commonPrefix(e,n),l=e.substring(0,s);e=e.substring(s),n=n.substring(s),s=this.diff_commonSuffix(e,n);var c=e.substring(e.length-s);e=e.substring(0,e.length-s),n=n.substring(0,n.length-s);var u=this.diff_compute_(e,n,i,a);return l&&u.unshift(new t.Diff(0,l)),c&&u.push(new t.Diff(0,c)),this.diff_cleanupMerge(u),u},t.prototype.diff_compute_=function(e,o,r,a){var i;if(!e)return[new t.Diff(1,o)];if(!o)return[new t.Diff(n,e)];var s=e.length>o.length?e:o,l=e.length>o.length?o:e,c=s.indexOf(l);if(-1!=c)return i=[new t.Diff(1,s.substring(0,c)),new t.Diff(0,l),new t.Diff(1,s.substring(c+l.length))],e.length>o.length&&(i[0][0]=i[2][0]=n),i;if(1==l.length)return[new t.Diff(n,e),new t.Diff(1,o)];var u=this.diff_halfMatch_(e,o);if(u){var d=u[0],p=u[1],h=u[2],f=u[3],m=u[4],g=this.diff_main(d,h,r,a),b=this.diff_main(p,f,r,a);return g.concat([new t.Diff(0,m)],b)}return r&&e.length>100&&o.length>100?this.diff_lineMode_(e,o,a):this.diff_bisect_(e,o,a)},t.prototype.diff_lineMode_=function(e,o,r){var a=this.diff_linesToChars_(e,o);e=a.chars1,o=a.chars2;var i=a.lineArray,s=this.diff_main(e,o,!1,r);this.diff_charsToLines_(s,i),this.diff_cleanupSemantic(s),s.push(new t.Diff(0,""));for(var l=0,c=0,u=0,d="",p="";l=1&&u>=1){s.splice(l-c-u,c+u),l=l-c-u;for(var h=this.diff_main(d,p,!1,r),f=h.length-1;f>=0;f--)s.splice(l,0,h[f]);l+=h.length}u=0,c=0,d="",p=""}l++}return s.pop(),s},t.prototype.diff_bisect_=function(e,o,r){for(var a=e.length,i=o.length,s=Math.ceil((a+i)/2),l=s,c=2*s,u=new Array(c),d=new Array(c),p=0;pr);y++){for(var _=-y+m;_<=y-g;_+=2){for(var k=l+_,w=(T=_==-y||_!=y&&u[k-1]a)g+=2;else if(w>i)m+=2;else if(f&&(A=l+h-_)>=0&&A=(S=a-d[A]))return this.diff_bisectSplit_(e,o,T,w,r)}for(var x=-y+b;x<=y-v;x+=2){for(var S,A=l+x,C=(S=x==-y||x!=y&&d[A-1]a)v+=2;else if(C>i)b+=2;else if(!f){var T;if((k=l+h-x)>=0&&k=(S=a-S))return this.diff_bisectSplit_(e,o,T,w,r)}}}return[new t.Diff(n,e),new t.Diff(1,o)]},t.prototype.diff_bisectSplit_=function(e,t,n,o,r){var a=e.substring(0,n),i=t.substring(0,o),s=e.substring(n),l=t.substring(o),c=this.diff_main(a,i,!1,r),u=this.diff_main(s,l,!1,r);return c.concat(u)},t.prototype.diff_linesToChars_=function(e,t){var n=[],o={};function r(e){for(var t="",r=0,i=-1,s=n.length;io?e=e.substring(n-o):nt.length?e:t,o=e.length>t.length?t:e;if(n.length<4||2*o.length=e.length?[o,a,i,s,u]:null}var i,s,l,c,u,d=a(n,o,Math.ceil(n.length/4)),p=a(n,o,Math.ceil(n.length/2));return d||p?(i=p?d&&d[4].length>p[4].length?d:p:d,e.length>t.length?(s=i[0],l=i[1],c=i[2],u=i[3]):(c=i[0],u=i[1],s=i[2],l=i[3]),[s,l,c,u,i[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var o=!1,r=[],a=0,i=null,s=0,l=0,c=0,u=0,d=0;s0?r[a-1]:-1,l=0,c=0,u=0,d=0,i=null,o=!0)),s++;for(o&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),s=1;s=m?(f>=p.length/2||f>=h.length/2)&&(e.splice(s,0,new t.Diff(0,h.substring(0,f))),e[s-1][1]=p.substring(0,p.length-f),e[s+1][1]=h.substring(f),s++):(m>=p.length/2||m>=h.length/2)&&(e.splice(s,0,new t.Diff(0,p.substring(0,m))),e[s-1][0]=1,e[s-1][1]=h.substring(0,h.length-m),e[s+1][0]=n,e[s+1][1]=p.substring(m),s++),s++}s++}},t.prototype.diff_cleanupSemanticLossless=function(e){function n(e,n){if(!e||!n)return 6;var o=e.charAt(e.length-1),r=n.charAt(0),a=o.match(t.nonAlphaNumericRegex_),i=r.match(t.nonAlphaNumericRegex_),s=a&&o.match(t.whitespaceRegex_),l=i&&r.match(t.whitespaceRegex_),c=s&&o.match(t.linebreakRegex_),u=l&&r.match(t.linebreakRegex_),d=c&&e.match(t.blanklineEndRegex_),p=u&&n.match(t.blanklineStartRegex_);return d||p?5:c||u?4:a&&!s&&l?3:s||l?2:a||i?1:0}for(var o=1;o=p&&(p=h,c=r,u=a,d=i)}e[o-1][1]!=c&&(c?e[o-1][1]=c:(e.splice(o-1,1),o--),e[o][1]=u,d?e[o+1][1]=d:(e.splice(o+1,1),o--))}o++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(e){for(var o=!1,r=[],a=0,i=null,s=0,l=!1,c=!1,u=!1,d=!1;s0?r[a-1]:-1,u=d=!1),o=!0)),s++;o&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push(new t.Diff(0,""));for(var o,r=0,a=0,i=0,s="",l="";r1?(0!==a&&0!==i&&(0!==(o=this.diff_commonPrefix(l,s))&&(r-a-i>0&&0==e[r-a-i-1][0]?e[r-a-i-1][1]+=l.substring(0,o):(e.splice(0,0,new t.Diff(0,l.substring(0,o))),r++),l=l.substring(o),s=s.substring(o)),0!==(o=this.diff_commonSuffix(l,s))&&(e[r][1]=l.substring(l.length-o)+e[r][1],l=l.substring(0,l.length-o),s=s.substring(0,s.length-o))),r-=a+i,e.splice(r,a+i),s.length&&(e.splice(r,0,new t.Diff(n,s)),r++),l.length&&(e.splice(r,0,new t.Diff(1,l)),r++),r++):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,i=0,a=0,s="",l=""}""===e[e.length-1][1]&&e.pop();var c=!1;for(r=1;rt));o++)i=r,s=a;return e.length!=o&&e[o][0]===n?s:s+(t-i)},t.prototype.diff_prettyHtml=function(e){for(var t=[],o=/&/g,r=//g,i=/\n/g,s=0;s");switch(l){case 1:t[s]=''+c+"";break;case n:t[s]=''+c+"";break;case 0:t[s]=""+c+""}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],n=0;nthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var o=this.match_alphabet_(t),r=this;function a(e,o){var a=e/t.length,i=Math.abs(n-o);return r.Match_Distance?a+i/r.Match_Distance:i?1:a}var i=this.Match_Threshold,s=e.indexOf(t,n);-1!=s&&(i=Math.min(a(0,s),i),-1!=(s=e.lastIndexOf(t,n+t.length))&&(i=Math.min(a(0,s),i)));var l,c,u=1<=f;b--){var v=o[e.charAt(b-1)];if(g[b]=0===h?(g[b+1]<<1|1)&v:(g[b+1]<<1|1)&v|(d[b+1]|d[b])<<1|1|d[b+1],g[b]&u){var y=a(h,b-1);if(y<=i){if(i=y,!((s=b-1)>n))break;f=Math.max(1,2*n-s)}}}if(a(h+1,n)>i)break;d=g}return s},t.prototype.match_alphabet_=function(e){for(var t={},n=0;n2&&(this.diff_cleanupSemantic(i),this.diff_cleanupEfficiency(i));else if(e&&"object"==typeof e&&void 0===o&&void 0===r)i=e,a=this.diff_text1(i);else if("string"==typeof e&&o&&"object"==typeof o&&void 0===r)a=e,i=o;else{if("string"!=typeof e||"string"!=typeof o||!r||"object"!=typeof r)throw new Error("Unknown call format to patch_make.");a=e,i=r}if(0===i.length)return[];for(var s=[],l=new t.patch_obj,c=0,u=0,d=0,p=a,h=a,f=0;f=2*this.Patch_Margin&&c&&(this.patch_addContext_(l,p),s.push(l),l=new t.patch_obj,c=0,p=h,u=d)}1!==m&&(u+=g.length),m!==n&&(d+=g.length)}return c&&(this.patch_addContext_(l,p),s.push(l)),s},t.prototype.patch_deepCopy=function(e){for(var n=[],o=0;othis.Match_MaxBits?-1!=(s=this.match_main(t,u.substring(0,this.Match_MaxBits),c))&&(-1==(d=this.match_main(t,u.substring(u.length-this.Match_MaxBits),c+u.length-this.Match_MaxBits))||s>=d)&&(s=-1):s=this.match_main(t,u,c),-1==s)a[i]=!1,r-=e[i].length2-e[i].length1;else if(a[i]=!0,r=s-c,u==(l=-1==d?t.substring(s,s+u.length):t.substring(s,d+this.Match_MaxBits)))t=t.substring(0,s)+this.diff_text2(e[i].diffs)+t.substring(s+u.length);else{var p=this.diff_main(u,l,!1);if(u.length>this.Match_MaxBits&&this.diff_levenshtein(p)/u.length>this.Patch_DeleteThreshold)a[i]=!1;else{this.diff_cleanupSemanticLossless(p);for(var h,f=0,m=0;mi[0][1].length){var s=n-i[0][1].length;i[0][1]=o.substring(i[0][1].length)+i[0][1],a.start1-=s,a.start2-=s,a.length1+=s,a.length2+=s}return 0==(i=(a=e[e.length-1]).diffs).length||0!=i[i.length-1][0]?(i.push(new t.Diff(0,o)),a.length1+=n,a.length2+=n):n>i[i.length-1][1].length&&(s=n-i[i.length-1][1].length,i[i.length-1][1]+=o.substring(0,s),a.length1+=s,a.length2+=s),o},t.prototype.patch_splitMax=function(e){for(var o=this.Match_MaxBits,r=0;r2*o?(c.length1+=p.length,i+=p.length,u=!1,c.diffs.push(new t.Diff(d,p)),a.diffs.shift()):(p=p.substring(0,o-c.length1-this.Patch_Margin),c.length1+=p.length,i+=p.length,0===d?(c.length2+=p.length,s+=p.length):u=!1,c.diffs.push(new t.Diff(d,p)),p==a.diffs[0][1]?a.diffs.shift():a.diffs[0][1]=a.diffs[0][1].substring(p.length))}l=(l=this.diff_text2(c.diffs)).substring(l.length-this.Patch_Margin);var h=this.diff_text1(a.diffs).substring(0,this.Patch_Margin);""!==h&&(c.length1+=h.length,c.length2+=h.length,0!==c.diffs.length&&0===c.diffs[c.diffs.length-1][0]?c.diffs[c.diffs.length-1][1]+=h:c.diffs.push(new t.Diff(0,h))),u||e.splice(++r,0,c)}}},t.prototype.patch_toText=function(e){for(var t=[],n=0;n{e.exports=n(5775)},5775:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromRange=function(e,t){if(void 0===e)throw new Error('missing required parameter "root"');if(void 0===t)throw new Error('missing required parameter "range"');var n=e.ownerDocument.createRange(),o=t.startContainer,a=t.startOffset;n.setStart(e,0),n.setEnd(o,a);var i=(0,r.default)(n).length;return{start:i,end:i+(0,r.default)(t).length}},t.toRange=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e)throw new Error('missing required parameter "root"');var n=e.ownerDocument,r=n.createRange(),a=n.createNodeIterator(e,4),i=t.start||0,s=t.end||i,l=i-(0,o.default)(a,i),c=a.referenceNode,u=s-i+l,d=u-(0,o.default)(a,u),p=a.referenceNode;return r.setStart(c,l),r.setEnd(p,d),r};var o=a(n(3604)),r=a(n(9781));function a(e){return e&&e.__esModule?e:{default:e}}},9781:(e,t)=>{"use strict";function n(e,t){if(!t&&e.firstChild)return e.firstChild;do{if(e.nextSibling)return e.nextSibling;e=e.parentNode}while(e);return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="";return function(e,t){for(var o=function(e){return e.startContainer.nodeType===Node.ELEMENT_NODE?e.startContainer.childNodes[e.startOffset]||n(e.startContainer,!0):e.startContainer}(e),r=function(e){return e.endContainer.nodeType===Node.ELEMENT_NODE?e.endContainer.childNodes[e.endOffset]||n(e.endContainer,!0):n(e.endContainer)}(e);o!==r;)t(o),o=n(o)}(e,(function(n){if(n.nodeType===Node.TEXT_NODE){var o=n===e.startContainer?e.startOffset:0,r=n===e.endContainer?e.endOffset:n.textContent.length;t+=n.textContent.slice(o,r)}})),t}},3604:(e,t,n)=>{e.exports=n(7771).default},7771:(e,t)=>{"use strict";t.default=function(e,t){if(4!==e.whatToShow){var a;try{a=new DOMException(o,"InvalidStateError")}catch(e){(a=new Error(o)).code=11,a.name="InvalidStateError",a.toString=function(){return"InvalidStateError: ".concat(o)}}throw a}var i,s=0,l=e.referenceNode,c=null;if("number"==typeof(i=t)&&isFinite(i)&&Math.floor(i)===i)c={forward:function(){return st||!e.pointerBeforeReferenceNode}};else{if(!r(t))throw new TypeError("Argument 2 of seek must be an integer or a Text Node.");c={forward:function(e,t){return 2&e.compareDocumentPosition(t)}(l,t)?function(){return!1}:function(){return l!==t},backward:function(){return l!==t||!e.pointerBeforeReferenceNode}}}for(;c.forward();){if(null===(l=e.nextNode()))throw new RangeError(n);s+=l.nodeValue.length}for(e.nextNode()&&(l=e.previousNode());c.backward();){if(null===(l=e.previousNode()))throw new RangeError(n);s-=l.nodeValue.length}if(!r(e.referenceNode))throw new RangeError(n);return s};var n="Iterator exhausted before seek ended.",o="Argument 1 of seek must use filter NodeFilter.SHOW_TEXT.";function r(e){return 3===e.nodeType}},1296:(e,t,n)=>{var o=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,i=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype.toString,p=Math.max,h=Math.min,f=function(){return u.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=a.test(e);return n||i.test(e)?s(e.slice(2),n?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var o,r,a,i,s,l,c=0,u=!1,d=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=o,a=r;return o=r=void 0,c=t,i=e.apply(a,n)}function y(e){return c=e,s=setTimeout(k,t),u?v(e):i}function _(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=a}function k(){var e=f();if(_(e))return w(e);s=setTimeout(k,function(e){var n=t-(e-l);return d?h(n,a-(e-c)):n}(e))}function w(e){return s=void 0,b&&o?v(e):(o=r=void 0,i)}function x(){var e=f(),n=_(e);if(o=arguments,r=this,l=e,n){if(void 0===s)return y(l);if(d)return s=setTimeout(k,t),v(l)}return void 0===s&&(s=setTimeout(k,t)),i}return t=g(t)||0,m(n)&&(u=!!n.leading,a=(d="maxWait"in n)?p(g(n.maxWait)||0,t):a,b="trailing"in n?!!n.trailing:b),x.cancel=function(){void 0!==s&&clearTimeout(s),c=0,o=l=r=s=void 0},x.flush=function(){return void 0===s?i:w(f())},x}},2705:(e,t,n)=>{var o=n(5639).Symbol;e.exports=o},4239:(e,t,n)=>{var o=n(2705),r=n(9607),a=n(2333),i=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?r(e):a(e)}},7561:(e,t,n)=>{var o=n(7990),r=/^\s+/;e.exports=function(e){return e?e.slice(0,o(e)+1).replace(r,""):e}},1957:(e,t,n)=>{var o="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=o},9607:(e,t,n)=>{var o=n(2705),r=Object.prototype,a=r.hasOwnProperty,i=r.toString,s=o?o.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var o=!0}catch(e){}var r=i.call(e);return o&&(t?e[s]=n:delete e[s]),r}},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5639:(e,t,n)=>{var o=n(1957),r="object"==typeof self&&self&&self.Object===Object&&self,a=o||r||Function("return this")();e.exports=a},7990:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},3279:(e,t,n)=>{var o=n(3218),r=n(1927),a=n(4841),i=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,p,h,f=0,m=!1,g=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=l,o=c;return l=c=void 0,f=t,d=e.apply(o,n)}function y(e){return f=e,p=setTimeout(k,t),m?v(e):d}function _(e){var n=e-h;return void 0===h||n>=t||n<0||g&&e-f>=u}function k(){var e=r();if(_(e))return w(e);p=setTimeout(k,function(e){var n=t-(e-h);return g?s(n,u-(e-f)):n}(e))}function w(e){return p=void 0,b&&l?v(e):(l=c=void 0,d)}function x(){var e=r(),n=_(e);if(l=arguments,c=this,h=e,n){if(void 0===p)return y(h);if(g)return clearTimeout(p),p=setTimeout(k,t),v(h)}return void 0===p&&(p=setTimeout(k,t)),d}return t=a(t)||0,o(n)&&(m=!!n.leading,u=(g="maxWait"in n)?i(a(n.maxWait)||0,t):u,b="trailing"in n?!!n.trailing:b),x.cancel=function(){void 0!==p&&clearTimeout(p),f=0,l=h=c=p=void 0},x.flush=function(){return void 0===p?d:w(r())},x}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3448:(e,t,n)=>{var o=n(4239),r=n(7005);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==o(e)}},1927:(e,t,n)=>{var o=n(5639);e.exports=function(){return o.Date.now()}},4841:(e,t,n)=>{var o=n(7561),r=n(3218),a=n(3448),i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=o(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):i.test(e)?NaN:+e}},813:function(e){e.exports=function(){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5e3;t(this,e),this.ctx=n,this.iframes=o,this.exclude=r,this.iframesTimeout=a}return n(e,[{key:"getContexts",value:function(){var e=[];return(void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[]).forEach((function(t){var n=e.filter((function(e){return e.contains(t)})).length>0;-1!==e.indexOf(t)||n||e.push(t)})),e}},{key:"getIframeContents",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=void 0;try{var r=e.contentWindow;if(o=r.document,!r||!o)throw new Error("iframe inaccessible")}catch(e){n()}o&&t(o)}},{key:"isIframeBlank",value:function(e){var t="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&n!==t&&n}},{key:"observeIframeLoad",value:function(e,t,n){var o=this,r=!1,a=null,i=function i(){if(!r){r=!0,clearTimeout(a);try{o.isIframeBlank(e)||(e.removeEventListener("load",i),o.getIframeContents(e,t,n))}catch(e){n()}}};e.addEventListener("load",i),a=setTimeout(i,this.iframesTimeout)}},{key:"onIframeReady",value:function(e,t,n){try{"complete"===e.contentWindow.document.readyState?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch(e){n()}}},{key:"waitForIframes",value:function(e,t){var n=this,o=0;this.forEachIframe(e,(function(){return!0}),(function(e){o++,n.waitForIframes(e.querySelector("html"),(function(){--o||t()}))}),(function(e){e||t()}))}},{key:"forEachIframe",value:function(t,n,o){var r=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},i=t.querySelectorAll("iframe"),s=i.length,l=0;i=Array.prototype.slice.call(i);var c=function(){--s<=0&&a(l)};s||c(),i.forEach((function(t){e.matches(t,r.exclude)?c():r.onIframeReady(t,(function(e){n(t)&&(l++,o(e)),c()}),c)}))}},{key:"createIterator",value:function(e,t,n){return document.createNodeIterator(e,t,n,!1)}},{key:"createInstanceOnIframe",value:function(t){return new e(t.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(e,t,n){if(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING){if(null===t)return!0;if(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}return!1}},{key:"getIteratorNode",value:function(e){var t=e.previousNode();return{prevNode:t,node:(null===t||e.nextNode())&&e.nextNode()}}},{key:"checkIframeFilter",value:function(e,t,n,o){var r=!1,a=!1;return o.forEach((function(e,t){e.val===n&&(r=t,a=e.handled)})),this.compareNodeIframe(e,t,n)?(!1!==r||a?!1===r||a||(o[r].handled=!0):o.push({val:n,handled:!0}),!0):(!1===r&&o.push({val:n,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(e,t,n,o){var r=this;e.forEach((function(e){e.handled||r.getIframeContents(e.val,(function(e){r.createInstanceOnIframe(e).forEachNode(t,n,o)}))}))}},{key:"iterateThroughNodes",value:function(e,t,n,o,r){for(var a=this,i=this.createIterator(t,e,o),s=[],l=[],c=void 0,u=void 0;d=void 0,d=a.getIteratorNode(i),u=d.prevNode,c=d.node;)this.iframes&&this.forEachIframe(t,(function(e){return a.checkIframeFilter(c,u,e,s)}),(function(t){a.createInstanceOnIframe(t).forEachNode(e,(function(e){return l.push(e)}),o)})),l.push(c);var d;l.forEach((function(e){n(e)})),this.iframes&&this.handleOpenIframes(s,e,n,o),r()}},{key:"forEachNode",value:function(e,t,n){var o=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},a=this.getContexts(),i=a.length;i||r(),a.forEach((function(a){var s=function(){o.iterateThroughNodes(e,a,t,n,(function(){--i<=0&&r()}))};o.iframes?o.waitForIframes(a,s):s()}))}}],[{key:"matches",value:function(e,t){var n="string"==typeof t?[t]:t,o=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(o){var r=!1;return n.every((function(t){return!o.call(e,t)||(r=!0,!1)})),r}return!1}}]),e}(),a=function(){function a(e){t(this,a),this.ctx=e,this.ie=!1;var n=window.navigator.userAgent;(n.indexOf("MSIE")>-1||n.indexOf("Trident")>-1)&&(this.ie=!0)}return n(a,[{key:"log",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug",o=this.opt.log;this.opt.debug&&"object"===(void 0===o?"undefined":e(o))&&"function"==typeof o[n]&&o[n]("mark.js: "+t)}},{key:"escapeStr",value:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(e){return"disabled"!==this.opt.wildcards&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),"disabled"!==this.opt.wildcards&&(e=this.createWildcardsRegExp(e)),this.createAccuracyRegExp(e)}},{key:"createSynonymsRegExp",value:function(e){var t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",o=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var r in t)if(t.hasOwnProperty(r)){var a=t[r],i="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(r):this.escapeStr(r),s="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(a):this.escapeStr(a);""!==i&&""!==s&&(e=e.replace(new RegExp("("+this.escapeStr(i)+"|"+this.escapeStr(s)+")","gm"+n),o+"("+this.processSynomyms(i)+"|"+this.processSynomyms(s)+")"+o))}return e}},{key:"processSynomyms",value:function(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}},{key:"setupWildcardsRegExp",value:function(e){return(e=e.replace(/(?:\\)*\?/g,(function(e){return"\\"===e.charAt(0)?"?":""}))).replace(/(?:\\)*\*/g,(function(e){return"\\"===e.charAt(0)?"*":""}))}},{key:"createWildcardsRegExp",value:function(e){var t="withSpaces"===this.opt.wildcards;return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(e){return e.replace(/[^(|)\\]/g,(function(e,t,n){var o=n.charAt(t+1);return/[(|)\\]/.test(o)||""===o?e:e+"\0"}))}},{key:"createJoinersRegExp",value:function(e){var t=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join("["+t.join("")+"]*"):e}},{key:"createDiacriticsRegExp",value:function(e){var t=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],o=[];return e.split("").forEach((function(r){n.every((function(n){if(-1!==n.indexOf(r)){if(o.indexOf(n)>-1)return!1;e=e.replace(new RegExp("["+n+"]","gm"+t),"["+n+"]"),o.push(n)}return!0}))})),e}},{key:"createMergedBlanksRegExp",value:function(e){return e.replace(/[\s]+/gim,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(e){var t=this,n=this.opt.accuracy,o="string"==typeof n?n:n.value,r="string"==typeof n?[]:n.limiters,a="";switch(r.forEach((function(e){a+="|"+t.escapeStr(e)})),o){case"partially":default:return"()("+e+")";case"complementary":return"()([^"+(a="\\s"+(a||this.escapeStr("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿")))+"]*"+e+"[^"+a+"]*)";case"exactly":return"(^|\\s"+a+")("+e+")(?=$|\\s"+a+")"}}},{key:"getSeparatedKeywords",value:function(e){var t=this,n=[];return e.forEach((function(e){t.opt.separateWordSearch?e.split(" ").forEach((function(e){e.trim()&&-1===n.indexOf(e)&&n.push(e)})):e.trim()&&-1===n.indexOf(e)&&n.push(e)})),{keywords:n.sort((function(e,t){return t.length-e.length})),length:n.length}}},{key:"isNumeric",value:function(e){return Number(parseFloat(e))==e}},{key:"checkRanges",value:function(e){var t=this;if(!Array.isArray(e)||"[object Object]"!==Object.prototype.toString.call(e[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];var n=[],o=0;return e.sort((function(e,t){return e.start-t.start})).forEach((function(e){var r=t.callNoMatchOnInvalidRanges(e,o),a=r.start,i=r.end;r.valid&&(e.start=a,e.length=i-a,n.push(e),o=i)})),n}},{key:"callNoMatchOnInvalidRanges",value:function(e,t){var n=void 0,o=void 0,r=!1;return e&&void 0!==e.start?(o=(n=parseInt(e.start,10))+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&o-t>0&&o-n>0?r=!0:(this.log("Ignoring invalid or overlapping range: "+JSON.stringify(e)),this.opt.noMatch(e))):(this.log("Ignoring invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:n,end:o,valid:r}}},{key:"checkWhitespaceRanges",value:function(e,t,n){var o=void 0,r=!0,a=n.length,i=t-a,s=parseInt(e.start,10)-i;return(o=(s=s>a?a:s)+parseInt(e.length,10))>a&&(o=a,this.log("End range automatically set to the max value of "+a)),s<0||o-s<0||s>a||o>a?(r=!1,this.log("Invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)):""===n.substring(s,o).replace(/\s+/g,"")&&(r=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:s,end:o,valid:r}}},{key:"getTextNodes",value:function(e){var t=this,n="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,(function(e){o.push({start:n.length,end:(n+=e.textContent).length,node:e})}),(function(e){return t.matchesExclude(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),(function(){e({value:n,nodes:o})}))}},{key:"matchesExclude",value:function(e){return r.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(e,t,n){var o=this.opt.element?this.opt.element:"mark",r=e.splitText(t),a=r.splitText(n-t),i=document.createElement(o);return i.setAttribute("data-markjs","true"),this.opt.className&&i.setAttribute("class",this.opt.className),i.textContent=r.textContent,r.parentNode.replaceChild(i,r),a}},{key:"wrapRangeInMappedTextNode",value:function(e,t,n,o,r){var a=this;e.nodes.every((function(i,s){var l=e.nodes[s+1];if(void 0===l||l.start>t){if(!o(i.node))return!1;var c=t-i.start,u=(n>i.end?i.end:n)-i.start,d=e.value.substr(0,i.start),p=e.value.substr(u+i.start);if(i.node=a.wrapRangeInTextNode(i.node,c,u),e.value=d+p,e.nodes.forEach((function(t,n){n>=s&&(e.nodes[n].start>0&&n!==s&&(e.nodes[n].start-=u),e.nodes[n].end-=u)})),n-=u,r(i.node.previousSibling,i.start),!(n>i.end))return!1;t=i.end}return!0}))}},{key:"wrapMatches",value:function(e,t,n,o,r){var a=this,i=0===t?0:t+1;this.getTextNodes((function(t){t.nodes.forEach((function(t){t=t.node;for(var r=void 0;null!==(r=e.exec(t.textContent))&&""!==r[i];)if(n(r[i],t)){var s=r.index;if(0!==i)for(var l=1;l(()=>{"use strict";var __webpack_modules__=[,(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.UNSUPPORTED_FEATURES=t.TextRenderingMode=t.StreamType=t.RenderingIntentFlag=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FontType=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMode=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.arrayByteLength=u,t.arraysToBytes=function(e){const t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];let n=0;for(let o=0;ot}),e.promise=new Promise((function(n,o){e.resolve=function(e){t=!0,n(e)},e.reject=function(e){t=!0,o(e)}})),e},t.createValidAbsoluteUrl=function(e,t=null,n=null){if(!e)return null;try{if(n&&"string"==typeof e){if(n.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);t&&t.length>=2&&(e=`http://${e}`)}if(n.tryConvertEncoding)try{e=f(e)}catch(e){}}const o=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(o))return o}catch(e){}return null},t.escapeString=function(e){return e.replace(/([()\\\n\r])/g,(e=>"\n"===e?"\\n":"\r"===e?"\\r":`\\${e}`))},t.getModificationDate=function(e=new Date){return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getVerbosityLevel=function(){return r},t.info=function(e){r>=o.INFOS&&console.log(`Info: ${e}`)},t.isArrayBuffer=function(e){return"object"==typeof e&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(let n=0,o=e.length;n>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=c,t.stringToPDFString=function(e){if(e[0]>="ï"){let t;if("þ"===e[0]&&"ÿ"===e[1]?t="utf-16be":"ÿ"===e[0]&&"þ"===e[1]?t="utf-16le":"ï"===e[0]&&"»"===e[1]&&"¿"===e[2]&&(t="utf-8"),t)try{const n=new TextDecoder(t,{fatal:!0}),o=c(e);return n.decode(o)}catch(e){a(`stringToPDFString: "${e}".`)}}const t=[];for(let n=0,o=e.length;n>8&255),String.fromCharCode(255&o))}return t.join("")},t.stringToUTF8String=f,t.unreachable=i,t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=a,n(2),t.IDENTITY_MATRIX=[1,0,0,1,0,0],t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],t.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},t.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},t.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},t.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},t.AnnotationReplyType={GROUP:"Group",REPLY:"R"},t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},t.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},t.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},t.PageActionEventType={O:"PageOpen",C:"PageClose"},t.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},t.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};const o={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=o,t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},t.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},t.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"},t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let r=o.WARNINGS;function a(e){r>=o.WARNINGS&&console.log(`Warning: ${e}`)}function i(e){throw new Error(e)}function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}const l=function(){function e(t,n){this.constructor===e&&i("Cannot initialize BaseException."),this.message=t,this.name=n}return e.prototype=new Error,e.constructor=e,e}();function c(e){"string"!=typeof e&&i("Invalid argument for stringToBytes");const t=e.length,n=new Uint8Array(t);for(let o=0;oe.toString(16).padStart(2,"0")));class p{static makeHexColor(e,t,n){return`#${d[e]}${d[t]}${d[n]}`}static scaleMinMax(e,t){let n;e[0]?(e[0]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[3],t[3]*=e[3]):(n=t[0],t[0]=t[2],t[2]=n,n=t[1],t[1]=t[3],t[3]=n,e[1]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const n=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n]}static getAxialAlignedBoundingBox(e,t){const n=p.applyTransform(e,t),o=p.applyTransform(e.slice(2,4),t),r=p.applyTransform([e[0],e[3]],t),a=p.applyTransform([e[2],e[1]],t);return[Math.min(n[0],o[0],r[0],a[0]),Math.min(n[1],o[1],r[1],a[1]),Math.max(n[0],o[0],r[0],a[0]),Math.max(n[1],o[1],r[1],a[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static apply3dTransform(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],o=e[0]*t[1]+e[1]*t[3],r=e[2]*t[0]+e[3]*t[2],a=e[2]*t[1]+e[3]*t[3],i=(n+a)/2,s=Math.sqrt((n+a)**2-4*(n*a-r*o))/2,l=i+s||1,c=i-s||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(e){const t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){const n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),o=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(n>o)return null;const r=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),a=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return r>a?null:[n,r,o,a]}static bezierBoundingBox(e,t,n,o,r,a,i,s){const l=[],c=[[],[]];let u,d,p,h,f,m,g,b;for(let c=0;c<2;++c)if(0===c?(d=6*e-12*n+6*r,u=-3*e+9*n-9*r+3*i,p=3*n-3*e):(d=6*t-12*o+6*a,u=-3*t+9*o-9*a+3*s,p=3*o-3*t),Math.abs(u)<1e-12){if(Math.abs(d)<1e-12)continue;h=-p/d,0{n(3)},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;const n=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=n},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.build=exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=void 0;var _util=__w_pdfjs_require__(1),_display_utils=__w_pdfjs_require__(5),_font_loader=__w_pdfjs_require__(7),_annotation_storage=__w_pdfjs_require__(8),_canvas=__w_pdfjs_require__(10),_worker_options=__w_pdfjs_require__(13),_is_node=__w_pdfjs_require__(3),_message_handler=__w_pdfjs_require__(14),_metadata=__w_pdfjs_require__(15),_optional_content_config=__w_pdfjs_require__(16),_transport_stream=__w_pdfjs_require__(17),_xfa_text=__w_pdfjs_require__(18);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100;let DefaultCanvasFactory=_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;let DefaultCMapReaderFactory=_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;let DefaultStandardFontDataFactory=_display_utils.DOMStandardFontDataFactory,createPDFNetworkStream;if(exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory,_is_node.isNodeJS){const{NodeCanvasFactory:e,NodeCMapReaderFactory:t,NodeStandardFontDataFactory:n}=__w_pdfjs_require__(19);exports.DefaultCanvasFactory=DefaultCanvasFactory=e,exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory=t,exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory=n}function setPDFNetworkStreamFactory(e){createPDFNetworkStream=e}function getDocument(e){const t=new PDFDocumentLoadingTask;let n;if("string"==typeof e||e instanceof URL)n={url:e};else if((0,_util.isArrayBuffer)(e))n={data:e};else if(e instanceof PDFDataRangeTransport)n={range:e};else{if("object"!=typeof e)throw new Error("Invalid parameter in getDocument, need either string, URL, Uint8Array, or parameter object.");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");n=e}const o=Object.create(null);let r=null,a=null;for(const e in n){const t=n[e];switch(e){case"url":if("undefined"!=typeof window)try{o[e]=new URL(t,window.location).href;continue}catch(e){(0,_util.warn)(`Cannot create valid URL: "${e}".`)}else if("string"==typeof t||t instanceof URL){o[e]=t.toString();continue}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");case"range":r=t;continue;case"worker":a=t;continue;case"data":if(_is_node.isNodeJS&&"undefined"!=typeof Buffer&&t instanceof Buffer)o[e]=new Uint8Array(t);else{if(t instanceof Uint8Array)break;if("string"==typeof t)o[e]=(0,_util.stringToBytes)(t);else if("object"!=typeof t||null===t||isNaN(t.length)){if(!(0,_util.isArrayBuffer)(t))throw new Error("Invalid PDF binary data: either typed array, string, or array-like object is expected in the data property.");o[e]=new Uint8Array(t)}else o[e]=new Uint8Array(t)}continue}o[e]=t}if(o.CMapReaderFactory=o.CMapReaderFactory||DefaultCMapReaderFactory,o.StandardFontDataFactory=o.StandardFontDataFactory||DefaultStandardFontDataFactory,o.ignoreErrors=!0!==o.stopAtErrors,o.fontExtraProperties=!0===o.fontExtraProperties,o.pdfBug=!0===o.pdfBug,o.enableXfa=!0===o.enableXfa,(!Number.isInteger(o.rangeChunkSize)||o.rangeChunkSize<1)&&(o.rangeChunkSize=DEFAULT_RANGE_CHUNK_SIZE),("string"!=typeof o.docBaseUrl||(0,_display_utils.isDataScheme)(o.docBaseUrl))&&(o.docBaseUrl=null),(!Number.isInteger(o.maxImageSize)||o.maxImageSize<-1)&&(o.maxImageSize=-1),"string"!=typeof o.cMapUrl&&(o.cMapUrl=null),"string"!=typeof o.standardFontDataUrl&&(o.standardFontDataUrl=null),"boolean"!=typeof o.useWorkerFetch&&(o.useWorkerFetch=o.CMapReaderFactory===_display_utils.DOMCMapReaderFactory&&o.StandardFontDataFactory===_display_utils.DOMStandardFontDataFactory),"boolean"!=typeof o.isEvalSupported&&(o.isEvalSupported=!0),"boolean"!=typeof o.disableFontFace&&(o.disableFontFace=_is_node.isNodeJS),"boolean"!=typeof o.useSystemFonts&&(o.useSystemFonts=!_is_node.isNodeJS&&!o.disableFontFace),"object"==typeof o.ownerDocument&&null!==o.ownerDocument||(o.ownerDocument=globalThis.document),"boolean"!=typeof o.disableRange&&(o.disableRange=!1),"boolean"!=typeof o.disableStream&&(o.disableStream=!1),"boolean"!=typeof o.disableAutoFetch&&(o.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(o.verbosity),!a){const e={verbosity:o.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};a=e.port?PDFWorker.fromPort(e):new PDFWorker(e),t._worker=a}const i=t.docId;return a.promise.then((function(){if(t.destroyed)throw new Error("Loading aborted");const e=_fetchDocument(a,o,r,i),n=new Promise((function(e){let t;r?t=new _transport_stream.PDFDataTransportStream({length:o.length,initialData:o.initialData,progressiveDone:o.progressiveDone,contentDispositionFilename:o.contentDispositionFilename,disableRange:o.disableRange,disableStream:o.disableStream},r):o.data||(t=createPDFNetworkStream({url:o.url,length:o.length,httpHeaders:o.httpHeaders,withCredentials:o.withCredentials,rangeChunkSize:o.rangeChunkSize,disableRange:o.disableRange,disableStream:o.disableStream})),e(t)}));return Promise.all([e,n]).then((function([e,n]){if(t.destroyed)throw new Error("Loading aborted");const r=new _message_handler.MessageHandler(i,e,a.port),s=new WorkerTransport(r,t,n,o);t._transport=s,r.send("Ready",null)}))})).catch(t._capability.reject),t}async function _fetchDocument(e,t,n,o){if(e.destroyed)throw new Error("Worker was destroyed");n&&(t.length=n.length,t.initialData=n.initialData,t.progressiveDone=n.progressiveDone,t.contentDispositionFilename=n.contentDispositionFilename);const r=await e.messageHandler.sendWithPromise("GetDocRequest",{docId:o,apiVersion:"2.14.305",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,docBaseUrl:t.docBaseUrl,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported,fontExtraProperties:t.fontExtraProperties,enableXfa:t.enableXfa,useSystemFonts:t.useSystemFonts,cMapUrl:t.useWorkerFetch?t.cMapUrl:null,standardFontDataUrl:t.useWorkerFetch?t.standardFontDataUrl:null});if(e.destroyed)throw new Error("Worker was destroyed");return r}class PDFDocumentLoadingTask{static#e=0;constructor(){this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+PDFDocumentLoadingTask.#e++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0,await(this._transport?.destroy()),this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(e,t,n=!1,o=null){this.length=e,this.initialData=t,this.progressiveDone=n,this.contentDispositionFilename=o,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,t){for(const n of this._rangeListeners)n(e,t)}onDataProgress(e,t){this._readyCapability.promise.then((()=>{for(const n of this._progressListeners)n(e,t)}))}onDataProgressiveRead(e){this._readyCapability.promise.then((()=>{for(const t of this._progressiveReadListeners)t(e)}))}onDataProgressiveDone(){this._readyCapability.promise.then((()=>{for(const e of this._progressiveDoneListeners)e()}))}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(e,t){this._pdfInfo=e,this._transport=t,Object.defineProperty(this,"fingerprint",{get(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.fingerprint`, please use `PDFDocumentProxy.fingerprints` instead."),this.fingerprints[0]}}),Object.defineProperty(this,"getStats",{value:async()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getStats`, please use the `PDFDocumentProxy.stats`-getter instead."),this.stats||{streamTypes:{},fontTypes:{}})})}get annotationStorage(){return this._transport.annotationStorage}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get stats(){return this._transport.stats}get isPureXfa(){return!!this._transport._htmlForXfa}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(e=!1){return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}saveDocument(){return this._transport.annotationStorage.size<=0&&(0,_display_utils.deprecated)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."),this._transport.saveDocument()}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(e,t,n,o,r=!1){this._pageIndex=e,this._pageInfo=t,this._ownerDocument=o,this._transport=n,this._stats=r?new _display_utils.StatTimer:null,this._pdfBug=r,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this._bitmaps=new Set,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this._annotationPromises=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:e,rotation:t=this.rotate,offsetX:n=0,offsetY:o=0,dontFlip:r=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:t,offsetX:n,offsetY:o,dontFlip:r})}getAnnotations({intent:e="display"}={}){const t=this._transport.getRenderingIntent(e);let n=this._annotationPromises.get(t.cacheKey);return n||(n=this._transport.getAnnotations(this._pageIndex,t.renderingIntent),this._annotationPromises.set(t.cacheKey,n),n=n.then((e=>{for(const t of e)void 0!==t.titleObj&&Object.defineProperty(t,"title",{get:()=>((0,_display_utils.deprecated)("`title`-property on annotation, please use `titleObj` instead."),t.titleObj.str)}),void 0!==t.contentsObj&&Object.defineProperty(t,"contents",{get:()=>((0,_display_utils.deprecated)("`contents`-property on annotation, please use `contentsObj` instead."),t.contentsObj.str)});return e}))),n}getJSActions(){return this._jsActionsPromise||=this._transport.getPageJSActions(this._pageIndex)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:e,viewport:t,intent:n="display",annotationMode:o=_util.AnnotationMode.ENABLE,transform:r=null,imageLayer:a=null,canvasFactory:i=null,background:s=null,optionalContentConfigPromise:l=null,annotationCanvasMap:c=null,pageColors:u=null}){void 0!==arguments[0]?.renderInteractiveForms&&((0,_display_utils.deprecated)("render no longer accepts the `renderInteractiveForms`-option, please use the `annotationMode`-option instead."),!0===arguments[0].renderInteractiveForms&&o===_util.AnnotationMode.ENABLE&&(o=_util.AnnotationMode.ENABLE_FORMS)),void 0!==arguments[0]?.includeAnnotationStorage&&((0,_display_utils.deprecated)("render no longer accepts the `includeAnnotationStorage`-option, please use the `annotationMode`-option instead."),!0===arguments[0].includeAnnotationStorage&&o===_util.AnnotationMode.ENABLE&&(o=_util.AnnotationMode.ENABLE_STORAGE)),this._stats&&this._stats.time("Overall");const d=this._transport.getRenderingIntent(n,o);this.pendingCleanup=!1,l||(l=this._transport.getOptionalContentConfig());let p=this._intentStates.get(d.cacheKey);p||(p=Object.create(null),this._intentStates.set(d.cacheKey,p)),p.streamReaderCancelTimeout&&(clearTimeout(p.streamReaderCancelTimeout),p.streamReaderCancelTimeout=null);const h=i||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),f=!!(d.renderingIntent&_util.RenderingIntentFlag.PRINT);p.displayReadyCapability||(p.displayReadyCapability=(0,_util.createPromiseCapability)(),p.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(d));const m=e=>{p.renderTasks.delete(g),(this.cleanupAfterRender||f)&&(this.pendingCleanup=!0),this._tryCleanup(),e?(g.capability.reject(e),this._abortOperatorList({intentState:p,reason:e instanceof Error?e:new Error(e)})):g.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},g=new InternalRenderTask({callback:m,params:{canvasContext:e,viewport:t,transform:r,imageLayer:a,background:s},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:c,operatorList:p.operatorList,pageIndex:this._pageIndex,canvasFactory:h,useRequestAnimationFrame:!f,pdfBug:this._pdfBug,pageColors:u});(p.renderTasks||=new Set).add(g);const b=g.task;return Promise.all([p.displayReadyCapability.promise,l]).then((([e,t])=>{this.pendingCleanup?m():(this._stats&&this._stats.time("Rendering"),g.initializeGraphics({transparency:e,optionalContentConfig:t}),g.operatorListChanged())})).catch(m),b}getOperatorList({intent:e="display",annotationMode:t=_util.AnnotationMode.ENABLE}={}){const n=this._transport.getRenderingIntent(e,t,!0);let o,r=this._intentStates.get(n.cacheKey);return r||(r=Object.create(null),this._intentStates.set(n.cacheKey,r)),r.opListReadCapability||(o=Object.create(null),o.operatorListChanged=function(){r.operatorList.lastChunk&&(r.opListReadCapability.resolve(r.operatorList),r.renderTasks.delete(o))},r.opListReadCapability=(0,_util.createPromiseCapability)(),(r.renderTasks||=new Set).add(o),r.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(n)),r.opListReadCapability.promise}streamTextContent({disableCombineTextItems:e=!1,includeMarkedContent:t=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,combineTextItems:!0!==e,includeMarkedContent:!0===t},{highWaterMark:100,size:e=>e.items.length})}getTextContent(e={}){if(this._transport._htmlForXfa)return this.getXfa().then((e=>_xfa_text.XfaText.textContent(e)));const t=this.streamTextContent(e);return new Promise((function(e,n){const o=t.getReader(),r={items:[],styles:Object.create(null)};!function t(){o.read().then((function({value:n,done:o}){o?e(r):(Object.assign(r.styles,n.styles),r.items.push(...n.items),t())}),n)}()}))}getStructTree(){return this._structTreePromise||=this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const e=[];for(const t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:new Error("Page was destroyed."),force:!0}),!t.opListReadCapability)for(const n of t.renderTasks)e.push(n.completed),n.cancel();this.objs.clear();for(const e of this._bitmaps)e.close();return this._bitmaps.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,this.pendingCleanup=!1,Promise.all(e)}cleanup(e=!1){return this.pendingCleanup=!0,this._tryCleanup(e)}_tryCleanup(e=!1){if(!this.pendingCleanup)return!1;for(const{renderTasks:e,operatorList:t}of this._intentStates.values())if(e.size>0||!t.lastChunk)return!1;this._intentStates.clear(),this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,e&&this._stats&&(this._stats=new _display_utils.StatTimer);for(const e of this._bitmaps)e.close();return this._bitmaps.clear(),this.pendingCleanup=!1,!0}_startRenderPage(e,t){const n=this._intentStates.get(t);n&&(this._stats&&this._stats.timeEnd("Page Request"),n.displayReadyCapability&&n.displayReadyCapability.resolve(e))}_renderPageChunk(e,t){for(let n=0,o=e.length;n{n.read().then((({value:e,done:t})=>{t?o.streamReader=null:this._transport.destroyed||(this._renderPageChunk(e,o),r())}),(e=>{if(o.streamReader=null,!this._transport.destroyed){if(o.operatorList){o.operatorList.lastChunk=!0;for(const e of o.renderTasks)e.operatorListChanged();this._tryCleanup()}if(o.displayReadyCapability)o.displayReadyCapability.reject(e);else{if(!o.opListReadCapability)throw e;o.opListReadCapability.reject(e)}}}))};r()}_abortOperatorList({intentState:e,reason:t,force:n=!1}){if(e.streamReader){if(!n){if(e.renderTasks.size>0)return;if(t instanceof _display_utils.RenderingCancelledException)return void(e.streamReaderCancelTimeout=setTimeout((()=>{this._abortOperatorList({intentState:e,reason:t,force:!0}),e.streamReaderCancelTimeout=null}),RENDERING_CANCELLED_TIMEOUT))}if(e.streamReader.cancel(new _util.AbortException(t.message)).catch((()=>{})),e.streamReader=null,!this._transport.destroyed){for(const[t,n]of this._intentStates)if(n===e){this._intentStates.delete(t);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(){this._listeners=[],this._deferred=Promise.resolve()}postMessage(e,t){const n={data:structuredClone(e,t)};this._deferred.then((()=>{for(const e of this._listeners)e.call(this,n)}))}addEventListener(e,t){this._listeners.push(t)}removeEventListener(e,t){const n=this._listeners.indexOf(t);this._listeners.splice(n,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_is_node.isNodeJS)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"==typeof document){const e=document?.currentScript?.src;e&&(PDFWorkerUtil.fallbackWorkerSrc=e.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(e,t){let n;try{if(n=new URL(e),!n.origin||"null"===n.origin)return!1}catch(e){return!1}const o=new URL(t,n);return n.origin===o.origin},PDFWorkerUtil.createCDNWrapper=function(e){const t=`importScripts("${e}");`;return URL.createObjectURL(new Blob([t]))};class PDFWorker{static#t=new WeakMap;constructor({name:e=null,port:t=null,verbosity:n=(0,_util.getVerbosityLevel)()}={}){if(t&&PDFWorker.#t.has(t))throw new Error("Cannot use more than one PDFWorker per port.");if(this.name=e,this.destroyed=!1,this.verbosity=n,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,t)return PDFWorker.#t.set(t,this),void this._initializeFromPort(t);this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve()}_initialize(){if("undefined"!=typeof Worker&&!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){let e=PDFWorker.workerSrc;try{PDFWorkerUtil.isSameOrigin(window.location.href,e)||(e=PDFWorkerUtil.createCDNWrapper(new URL(e,window.location).href));const t=new Worker(e),n=new _message_handler.MessageHandler("main","worker",t),o=()=>{t.removeEventListener("error",r),n.destroy(),t.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},r=()=>{this._webWorker||o()};t.addEventListener("error",r),n.on("test",(e=>{t.removeEventListener("error",r),this.destroyed?o():e?(this._messageHandler=n,this._port=t,this._webWorker=t,this._readyCapability.resolve(),n.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),n.destroy(),t.terminate())})),n.on("ready",(e=>{if(t.removeEventListener("error",r),this.destroyed)o();else try{a()}catch(e){this._setupFakeWorker()}}));const a=()=>{const e=new Uint8Array;n.send("test",e,[e.buffer])};return void a()}catch(e){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then((e=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const t=new LoopbackPort;this._port=t;const n="fake"+PDFWorkerUtil.fakeWorkerId++,o=new _message_handler.MessageHandler(n+"_worker",n,t);e.setup(o,t);const r=new _message_handler.MessageHandler(n,n+"_worker",t);this._messageHandler=r,this._readyCapability.resolve(),r.send("configure",{verbosity:this.verbosity})})).catch((e=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${e.message}".`))}))}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),PDFWorker.#t.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(e){if(!e?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return this.#t.has(e.port)?this.#t.get(e.port):new PDFWorker(e)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch(e){return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}exports.PDFWorker=PDFWorker,PDFWorker.getWorkerSrc=function(){return(0,_display_utils.deprecated)("`PDFWorker.getWorkerSrc()`, please use `PDFWorker.workerSrc` instead."),this.workerSrc};class WorkerTransport{#n=null;#o=new Map;#r=new Map;#a=null;constructor(e,t,n,o){this.messageHandler=e,this.loadingTask=t,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:t.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:o.ownerDocument,styleElement:o.styleElement}),this._params=o,o.useWorkerFetch||(this.CMapReaderFactory=new o.CMapReaderFactory({baseUrl:o.cMapUrl,isCompressed:o.cMapPacked}),this.StandardFontDataFactory=new o.StandardFontDataFactory({baseUrl:o.standardFontDataUrl})),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}get stats(){return this.#n}getRenderingIntent(e,t=_util.AnnotationMode.ENABLE,n=!1){let o=_util.RenderingIntentFlag.DISPLAY,r="";switch(e){case"any":o=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":o=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${e}`)}switch(t){case _util.AnnotationMode.DISABLE:o+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:o+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:o+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,r=this.annotationStorage.hash;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${t}`)}return n&&(o+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:o,cacheKey:`${o}_${r}`}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));const e=[];for(const t of this.#o.values())e.push(t._destroy());this.#o.clear(),this.#r.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const t=this.messageHandler.sendWithPromise("Terminate",null);return e.push(t),Promise.all(e).then((()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#a=null,this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null,this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:t}=this;e.on("GetReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=e=>{this._lastProgress={loaded:e.loaded,total:e.total}},t.onPull=()=>{this._fullReader.read().then((function({value:e,done:n}){n?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{this._fullReader.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}})),e.on("ReaderHeadersReady",(e=>{const n=(0,_util.createPromiseCapability)(),o=this._fullReader;return o.headersReady.then((()=>{o.isStreamingSupported&&o.isRangeSupported||(this._lastProgress&&t.onProgress?.(this._lastProgress),o.onProgress=e=>{t.onProgress?.({loaded:e.loaded,total:e.total})}),n.resolve({isStreamingSupported:o.isStreamingSupported,isRangeSupported:o.isRangeSupported,contentLength:o.contentLength})}),n.reject),n.promise})),e.on("GetRangeReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const n=this._networkStream.getRangeReader(e.begin,e.end);n?(t.onPull=()=>{n.read().then((function({value:e,done:n}){n?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{n.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}):t.close()})),e.on("GetDoc",(({pdfInfo:e})=>{this._numPages=e.numPages,this._htmlForXfa=e.htmlForXfa,delete e.htmlForXfa,t._capability.resolve(new PDFDocumentProxy(e,this))})),e.on("DocException",(function(e){let n;switch(e.name){case"PasswordException":n=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":n=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":n=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":n=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":n=new _util.UnknownErrorException(e.message,e.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}t._capability.reject(n)})),e.on("PasswordRequest",(e=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),t.onPassword){const n=e=>{e instanceof Error?this._passwordCapability.reject(e):this._passwordCapability.resolve({password:e})};try{t.onPassword(n,e.code)}catch(e){this._passwordCapability.reject(e)}}else this._passwordCapability.reject(new _util.PasswordException(e.message,e.code));return this._passwordCapability.promise})),e.on("DataLoaded",(e=>{t.onProgress?.({loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(e=>{this.destroyed||this.#o.get(e.pageIndex)._startRenderPage(e.transparency,e.cacheKey)})),e.on("commonobj",(([t,n,o])=>{if(!this.destroyed&&!this.commonObjs.has(t))switch(n){case"Font":const r=this._params;if("error"in o){const e=o.error;(0,_util.warn)(`Error during font loading: ${e}`),this.commonObjs.resolve(t,e);break}let a=null;r.pdfBug&&globalThis.FontInspector?.enabled&&(a={registerFont(e,t){globalThis.FontInspector.fontAdded(e,t)}});const i=new _font_loader.FontFaceObject(o,{isEvalSupported:r.isEvalSupported,disableFontFace:r.disableFontFace,ignoreErrors:r.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:a});this.fontLoader.bind(i).catch((n=>e.sendWithPromise("FontFallback",{id:t}))).finally((()=>{!r.fontExtraProperties&&i.data&&(i.data=null),this.commonObjs.resolve(t,i)}));break;case"FontPath":case"Image":this.commonObjs.resolve(t,o);break;default:throw new Error(`Got unknown common object type ${n}`)}})),e.on("obj",(([e,t,n,o])=>{if(this.destroyed)return;const r=this.#o.get(t);if(!r.objs.has(e))switch(n){case"Image":r.objs.resolve(e,o);const t=8e6;if(o){let e;if(o.bitmap){const{bitmap:t,width:n,height:a}=o;e=n*a*4,r._bitmaps.add(t)}else e=o.data?.length||0;e>t&&(r.cleanupAfterRender=!0)}break;case"Pattern":r.objs.resolve(e,o);break;default:throw new Error(`Got unknown object type ${n}`)}})),e.on("DocProgress",(e=>{this.destroyed||t.onProgress?.({loaded:e.loaded,total:e.total})})),e.on("DocStats",(e=>{this.destroyed||(this.#n=Object.freeze({streamTypes:Object.freeze(e.streamTypes),fontTypes:Object.freeze(e.fontTypes)}))})),e.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),e.on("FetchBuiltInCMap",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.CMapReaderFactory?this.CMapReaderFactory.fetch(e):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.")))),e.on("FetchStandardFontData",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.StandardFontDataFactory?this.StandardFontDataFactory.fetch(e):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))))}_onUnsupportedFeature({featureId:e}){this.destroyed||this.loadingTask.onUnsupportedFeature?.(e)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));const t=e-1,n=this.#r.get(t);if(n)return n;const o=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then((e=>{if(this.destroyed)throw new Error("Transport destroyed");const n=new PDFPageProxy(t,e,this,this._params.ownerDocument,this._params.pdfBug);return this.#o.set(t,n),n}));return this.#r.set(t,o),o}getPageIndex(e){return"object"!=typeof e||null===e||!Number.isInteger(e.num)||e.num<0||!Number.isInteger(e.gen)||e.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen})}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}saveDocument(){return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:this._fullReader?.filename??null}).finally((()=>{this.annotationStorage.resetModified()}))}getFieldObjects(){return this._getFieldObjectsPromise||=this.messageHandler.sendWithPromise("GetFieldObjects",null)}hasJSActions(){return this._hasJSActionsPromise||=this.messageHandler.sendWithPromise("HasJSActions",null)}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!=typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getDocJSActions(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((e=>new _optional_content_config.OptionalContentConfig(e)))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return this.#a||=this.messageHandler.sendWithPromise("GetMetadata",null).then((e=>({info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null})))}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(e=!1){if(await this.messageHandler.sendWithPromise("Cleanup",null),!this.destroyed){for(const e of this.#o.values())if(!e.cleanup())throw new Error(`startCleanup: Page ${e.pageNumber} is currently rendering.`);this.commonObjs.clear(),e||this.fontLoader.clear(),this.#a=null,this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null}}get loadingParams(){const e=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch,enableXfa:e.enableXfa})}}class PDFObjects{#i=Object.create(null);#s(e){return this.#i[e]||(this.#i[e]={capability:(0,_util.createPromiseCapability)(),data:null})}get(e,t=null){if(t){const n=this.#s(e);return n.capability.promise.then((()=>t(n.data))),null}const n=this.#i[e];if(!n?.capability.settled)throw new Error(`Requesting object that isn't resolved yet ${e}.`);return n.data}has(e){return this.#i[e]?.capability.settled||!1}resolve(e,t=null){const n=this.#s(e);n.data=t,n.capability.resolve()}clear(){this.#i=Object.create(null)}}class RenderTask{constructor(e){this._internalRenderTask=e,this.onContinue=null}get promise(){return this._internalRenderTask.capability.promise}cancel(){this._internalRenderTask.cancel()}}exports.RenderTask=RenderTask;class InternalRenderTask{static#l=new WeakSet;constructor({callback:e,params:t,objs:n,commonObjs:o,annotationCanvasMap:r,operatorList:a,pageIndex:i,canvasFactory:s,useRequestAnimationFrame:l=!1,pdfBug:c=!1,pageColors:u=null}){this.callback=e,this.params=t,this.objs=n,this.commonObjs=o,this.annotationCanvasMap=r,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=i,this.canvasFactory=s,this._pdfBug=c,this.pageColors=u,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===l&&"undefined"!=typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=t.canvasContext.canvas}get completed(){return this.capability.promise.catch((function(){}))}initializeGraphics({transparency:e=!1,optionalContentConfig:t}){if(this.cancelled)return;if(this._canvas){if(InternalRenderTask.#l.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");InternalRenderTask.#l.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:n,viewport:o,transform:r,imageLayer:a,background:i}=this.params;this.gfx=new _canvas.CanvasGraphics(n,this.commonObjs,this.objs,this.canvasFactory,a,t,this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:r,viewport:o,transparency:e,background:i}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}cancel(e=null){this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&InternalRenderTask.#l.delete(this._canvas),this.callback(e||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas"))}operatorListChanged(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame((()=>{this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&InternalRenderTask.#l.delete(this._canvas),this.callback())))}}const version="2.14.305";exports.version=version;const build="eaaa8b4ad";exports.build=build},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StatTimer=t.RenderingCancelledException=t.PixelsPerInch=t.PageViewport=t.PDFDateString=t.DOMStandardFontDataFactory=t.DOMSVGFactory=t.DOMCanvasFactory=t.DOMCMapReaderFactory=void 0,t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.getFilenameFromUrl=function(e){const t=e.indexOf("#"),n=e.indexOf("?"),o=Math.min(t>0?t:e.length,n>0?n:e.length);return e.substring(e.lastIndexOf("/",o)+1,o)},t.getPdfFilenameFromUrl=function(e,t="document.pdf"){if("string"!=typeof e)return t;if(h(e))return(0,r.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;const n=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,o=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e);let a=n.exec(o[1])||n.exec(o[2])||n.exec(o[3]);if(a&&(a=a[0],a.includes("%")))try{a=n.exec(decodeURIComponent(a))[0]}catch(e){}return a||t},t.getXfaPageViewport=function(e,{scale:t=1,rotation:n=0}){const{width:o,height:r}=e.attributes.style,a=[0,0,parseInt(o),parseInt(r)];return new d({viewBox:a,scale:t,rotation:n})},t.isDataScheme=h,t.isPdfFile=function(e){return"string"==typeof e&&/\.pdf$/i.test(e)},t.isValidFetchUrl=f,t.loadScript=function(e,t=!1){return new Promise(((n,o)=>{const r=document.createElement("script");r.src=e,r.onload=function(e){t&&r.remove(),n(e)},r.onerror=function(){o(new Error(`Cannot load script at: ${r.src}`))},(document.head||document.documentElement).appendChild(r)}))};var o=n(6),r=n(1);class a{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF}t.PixelsPerInch=a;class i extends o.BaseCanvasFactory{constructor({ownerDocument:e=globalThis.document}={}){super(),this._document=e}_createCanvas(e,t){const n=this._document.createElement("canvas");return n.width=e,n.height=t,n}}async function s(e,t=!1){if(f(e,document.baseURI)){const n=await fetch(e);if(!n.ok)throw new Error(n.statusText);return t?new Uint8Array(await n.arrayBuffer()):(0,r.stringToBytes)(await n.text())}return new Promise(((n,o)=>{const a=new XMLHttpRequest;a.open("GET",e,!0),t&&(a.responseType="arraybuffer"),a.onreadystatechange=()=>{if(a.readyState===XMLHttpRequest.DONE){if(200===a.status||0===a.status){let e;if(t&&a.response?e=new Uint8Array(a.response):!t&&a.responseText&&(e=(0,r.stringToBytes)(a.responseText)),e)return void n(e)}o(new Error(a.statusText))}},a.send(null)}))}t.DOMCanvasFactory=i;class l extends o.BaseCMapReaderFactory{_fetchData(e,t){return s(e,this.isCompressed).then((e=>({cMapData:e,compressionType:t})))}}t.DOMCMapReaderFactory=l;class c extends o.BaseStandardFontDataFactory{_fetchData(e){return s(e,!0)}}t.DOMStandardFontDataFactory=c;class u extends o.BaseSVGFactory{_createSVG(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}}t.DOMSVGFactory=u;class d{constructor({viewBox:e,scale:t,rotation:n,offsetX:o=0,offsetY:r=0,dontFlip:a=!1}){this.viewBox=e,this.scale=t,this.rotation=n,this.offsetX=o,this.offsetY=r;const i=(e[2]+e[0])/2,s=(e[3]+e[1])/2;let l,c,u,d,p,h,f,m;switch((n%=360)<0&&(n+=360),n){case 180:l=-1,c=0,u=0,d=1;break;case 90:l=0,c=1,u=1,d=0;break;case 270:l=0,c=-1,u=-1,d=0;break;case 0:l=1,c=0,u=0,d=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}a&&(u=-u,d=-d),0===l?(p=Math.abs(s-e[1])*t+o,h=Math.abs(i-e[0])*t+r,f=Math.abs(e[3]-e[1])*t,m=Math.abs(e[2]-e[0])*t):(p=Math.abs(i-e[0])*t+o,h=Math.abs(s-e[1])*t+r,f=Math.abs(e[2]-e[0])*t,m=Math.abs(e[3]-e[1])*t),this.transform=[l*t,c*t,u*t,d*t,p-l*t*i-u*t*s,h-c*t*i-d*t*s],this.width=f,this.height=m}clone({scale:e=this.scale,rotation:t=this.rotation,offsetX:n=this.offsetX,offsetY:o=this.offsetY,dontFlip:r=!1}={}){return new d({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:n,offsetY:o,dontFlip:r})}convertToViewportPoint(e,t){return r.Util.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){const t=r.Util.applyTransform([e[0],e[1]],this.transform),n=r.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]}convertToPdfPoint(e,t){return r.Util.applyInverseTransform([e,t],this.transform)}}t.PageViewport=d;class p extends r.BaseException{constructor(e,t){super(e,"RenderingCancelledException"),this.type=t}}function h(e){const t=e.length;let n=0;for(;nt&&(t=n.length)}for(const n of this.times){const o=n.end-n.start;e.push(`${n.name.padEnd(t)} ${o}ms\n`)}return e.join("")}},t.PDFDateString=class{static toDateObject(e){if(!e||"string"!=typeof e)return null;m||(m=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const t=m.exec(e);if(!t)return null;const n=parseInt(t[1],10);let o=parseInt(t[2],10);o=o>=1&&o<=12?o-1:0;let r=parseInt(t[3],10);r=r>=1&&r<=31?r:1;let a=parseInt(t[4],10);a=a>=0&&a<=23?a:0;let i=parseInt(t[5],10);i=i>=0&&i<=59?i:0;let s=parseInt(t[6],10);s=s>=0&&s<=59?s:0;const l=t[7]||"Z";let c=parseInt(t[8],10);c=c>=0&&c<=23?c:0;let u=parseInt(t[9],10)||0;return u=u>=0&&u<=59?u:0,"-"===l?(a+=c,i+=u):"+"===l&&(a-=c,i-=u),new Date(Date.UTC(n,o,r,a,i,s))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStandardFontDataFactory=t.BaseSVGFactory=t.BaseCanvasFactory=t.BaseCMapReaderFactory=void 0;var o=n(1);class r{constructor(){this.constructor===r&&(0,o.unreachable)("Cannot initialize BaseCanvasFactory.")}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");const n=this._createCanvas(e,t);return{canvas:n,context:n.getContext("2d")}}reset(e,t,n){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||n<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=n}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,t){(0,o.unreachable)("Abstract method `_createCanvas` called.")}}t.BaseCanvasFactory=r;class a{constructor({baseUrl:e=null,isCompressed:t=!1}){this.constructor===a&&(0,o.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=e,this.isCompressed=t}async fetch({name:e}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!e)throw new Error("CMap name must be specified.");const t=this.baseUrl+e+(this.isCompressed?".bcmap":""),n=this.isCompressed?o.CMapCompressionType.BINARY:o.CMapCompressionType.NONE;return this._fetchData(t,n).catch((e=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${t}`)}))}_fetchData(e,t){(0,o.unreachable)("Abstract method `_fetchData` called.")}}t.BaseCMapReaderFactory=a;class i{constructor({baseUrl:e=null}){this.constructor===i&&(0,o.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=e}async fetch({filename:e}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!e)throw new Error("Font filename must be specified.");const t=`${this.baseUrl}${e}`;return this._fetchData(t).catch((e=>{throw new Error(`Unable to load font data at: ${t}`)}))}_fetchData(e){(0,o.unreachable)("Abstract method `_fetchData` called.")}}t.BaseStandardFontDataFactory=i;class s{constructor(){this.constructor===s&&(0,o.unreachable)("Cannot initialize BaseSVGFactory.")}create(e,t){if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");const n=this._createSVG("svg:svg");return n.setAttribute("version","1.1"),n.setAttribute("width",`${e}px`),n.setAttribute("height",`${t}px`),n.setAttribute("preserveAspectRatio","none"),n.setAttribute("viewBox",`0 0 ${e} ${t}`),n}createElement(e){if("string"!=typeof e)throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){(0,o.unreachable)("Abstract method `_createSVG` called.")}}t.BaseSVGFactory=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var o=n(1);class r{constructor({docId:e,onUnsupportedFeature:t,ownerDocument:n=globalThis.document,styleElement:a=null}){this.constructor===r&&(0,o.unreachable)("Cannot initialize BaseFontLoader."),this.docId=e,this._onUnsupportedFeature=t,this._document=n,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(e){this.nativeFontFaces.push(e),this._document.fonts.add(e)}insertRule(e){let t=this.styleElement;t||(t=this.styleElement=this._document.createElement("style"),t.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,this._document.documentElement.getElementsByTagName("head")[0].appendChild(t));const n=t.sheet;n.insertRule(e,n.cssRules.length)}clear(){for(const e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async bind(e){if(e.attached||e.missingFile)return;if(e.attached=!0,this.isFontLoadingAPISupported){const t=e.createNativeFontFace();if(t){this.addNativeFontFace(t);try{await t.loaded}catch(n){throw this._onUnsupportedFeature({featureId:o.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,o.warn)(`Failed to load font '${t.family}': '${n}'.`),e.disableFontFace=!0,n}}return}const t=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;await new Promise((n=>{const o=this._queueLoadingCallback(n);this._prepareFontLoadEvent([t],[e],o)}))}}_queueLoadingCallback(e){(0,o.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){const e=!!this._document?.fonts;return(0,o.shadow)(this,"isFontLoadingAPISupported",e)}get isSyncFontLoadingSupported(){(0,o.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,o.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(e,t,n){(0,o.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let a;t.FontLoader=a,t.FontLoader=a=class extends r{constructor(e){super(e),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let e=!1;return("undefined"==typeof navigator||/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent)?.[1]>=14)&&(e=!0),(0,o.shadow)(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){const t=this.loadingContext,n={id:"pdfjs-font-loading-"+t.nextRequestId++,done:!1,complete:function(){for((0,o.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;t.requests.length>0&&t.requests[0].done;){const e=t.requests.shift();setTimeout(e.callback,0)}},callback:e};return t.requests.push(n),n}get _loadTestFont(){return(0,o.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(e,t,n){function r(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function a(e,t,n,o){return e.substring(0,t)+o+e.substring(t+n)}let i,s;const l=this._document.createElement("canvas");l.width=1,l.height=1;const c=l.getContext("2d");let u=0;const d=`lt${Date.now()}${this.loadTestFontId++}`;let p=this._loadTestFont;p=a(p,976,d.length,d);const h=1482184792;let f=r(p,16);for(i=0,s=d.length-3;i30)return(0,o.warn)("Load test font never loaded."),void n();c.font="30px "+t,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0?n():setTimeout(e.bind(null,t,n))}(d,(()=>{b.remove(),n.complete()}))}},t.FontFaceObject=class{constructor(e,{isEvalSupported:t=!0,disableFontFace:n=!1,ignoreErrors:o=!1,onUnsupportedFeature:r,fontRegistry:a=null}){this.compiledGlyphs=Object.create(null);for(const t in e)this[t]=e[t];this.isEvalSupported=!1!==t,this.disableFontFace=!0===n,this.ignoreErrors=!0===o,this._onUnsupportedFeature=r,this.fontRegistry=a}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let e;if(this.cssFontInfo){const t={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(t.style=`oblique ${this.cssFontInfo.italicAngle}deg`),e=new FontFace(this.cssFontInfo.fontFamily,this.data,t)}else e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const e=(0,o.bytesToString)(this.data),t=`url(data:${this.mimetype};base64,${btoa(e)});`;let n;if(this.cssFontInfo){let e=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(e+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),n=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${e}src:${t}}`}else n=`@font-face {font-family:"${this.loadedName}";src:${t}}`;return this.fontRegistry&&this.fontRegistry.registerFont(this,t),n}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];let n;try{n=e.get(this.loadedName+"_path_"+t)}catch(e){if(!this.ignoreErrors)throw e;return this._onUnsupportedFeature({featureId:o.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,o.warn)(`getPathGenerator - ignoring character: "${e}".`),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&o.FeatureTest.isEvalSupported){const e=[];for(const t of n){const n=void 0!==t.args?t.args.join(","):"";e.push("c.",t.cmd,"(",n,");\n")}return this.compiledGlyphs[t]=new Function("c","size",e.join(""))}return this.compiledGlyphs[t]=function(e,t){for(const o of n)"scale"===o.cmd&&(o.args=[t,-t]),e[o.cmd].apply(e,o.args)}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationStorage=void 0;var o=n(9),r=n(1);t.AnnotationStorage=class{constructor(){this._storage=new Map,this._modified=!1,this.onSetModified=null,this.onResetModified=null}getValue(e,t){const n=this._storage.get(e);return void 0===n?t:Object.assign(t,n)}getRawValue(e){return this._storage.get(e)}setValue(e,t){const n=this._storage.get(e);let o=!1;if(void 0!==n)for(const[e,r]of Object.entries(t))n[e]!==r&&(o=!0,n[e]=r);else o=!0,this._storage.set(e,t);o&&this._setModified()}getAll(){return this._storage.size>0?(0,r.objectFromMap)(this._storage):null}get size(){return this._storage.size}_setModified(){this._modified||(this._modified=!0,"function"==typeof this.onSetModified&&this.onSetModified())}resetModified(){this._modified&&(this._modified=!1,"function"==typeof this.onResetModified&&this.onResetModified())}get serializable(){return this._storage.size>0?this._storage:null}get hash(){const e=new o.MurmurHash3_64;for(const[t,n]of this._storage)e.update(`${t}:${JSON.stringify(n)}`);return e.hexdigest()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var o=n(1);const r=3285377520,a=4294901760,i=65535;t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:r,this.h2=e?4294967295&e:r}update(e){let t,n;if("string"==typeof e){t=new Uint8Array(2*e.length),n=0;for(let o=0,r=e.length;o>>8,t[n++]=255&r)}}else{if(!(0,o.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");t=e.slice(),n=t.byteLength}const r=n>>2,s=n-4*r,l=new Uint32Array(t.buffer,0,r);let c=0,u=0,d=this.h1,p=this.h2;const h=3432918353,f=461845907,m=11601,g=13715;for(let e=0;e>>17,c=c*f&a|c*g&i,d^=c,d=d<<13|d>>>19,d=5*d+3864292196):(u=l[e],u=u*h&a|u*m&i,u=u<<15|u>>>17,u=u*f&a|u*g&i,p^=u,p=p<<13|p>>>19,p=5*p+3864292196);switch(c=0,s){case 3:c^=t[4*r+2]<<16;case 2:c^=t[4*r+1]<<8;case 1:c^=t[4*r],c=c*h&a|c*m&i,c=c<<15|c>>>17,c=c*f&a|c*g&i,1&r?d^=c:p^=c}this.h1=d,this.h2=p}hexdigest(){let e=this.h1,t=this.h2;e^=t>>>1,e=3981806797*e&a|36045*e&i,t=4283543511*t&a|(2950163797*(t<<16|e>>>16)&a)>>>16,e^=t>>>1,e=444984403*e&a|60499*e&i,t=3301882366*t&a|(3120437893*(t<<16|e>>>16)&a)>>>16,e^=t>>>1;const n=(e>>>0).toString(16),o=(t>>>0).toString(16);return n.padStart(8,"0")+o.padStart(8,"0")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var o=n(1),r=n(11),a=n(12),i=n(3),s=n(5);const l=4096,c=16;function u(e){if(e._transformStack&&(e._transformStack=[]),!e.mozCurrentTransform){e._originalSave=e.save,e._originalRestore=e.restore,e._originalRotate=e.rotate,e._originalScale=e.scale,e._originalTranslate=e.translate,e._originalTransform=e.transform,e._originalSetTransform=e.setTransform,e._originalResetTransform=e.resetTransform,e._transformMatrix=e._transformMatrix||[1,0,0,1,0,0],e._transformStack=[];try{const t=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"lineWidth");e._setLineWidth=t.set,e._getLineWidth=t.get,Object.defineProperty(e,"lineWidth",{set:function(e){this._setLineWidth(1.000001*e)},get:function(){return this._getLineWidth()}})}catch(e){}Object.defineProperty(e,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(e,"mozCurrentTransformInverse",{get:function(){const[e,t,n,o,r,a]=this._transformMatrix,i=e*o-t*n,s=t*n-e*o;return[o/i,t/s,n/s,e/i,(o*r-n*a)/s,(t*r-e*a)/i]}}),e.save=function(){const e=this._transformMatrix;this._transformStack.push(e),this._transformMatrix=e.slice(0,6),this._originalSave()},e.restore=function(){0===this._transformStack.length&&(0,o.warn)("Tried to restore a ctx when the stack was already empty.");const e=this._transformStack.pop();e&&(this._transformMatrix=e,this._originalRestore())},e.translate=function(e,t){const n=this._transformMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5],this._originalTranslate(e,t)},e.scale=function(e,t){const n=this._transformMatrix;n[0]*=e,n[1]*=e,n[2]*=t,n[3]*=t,this._originalScale(e,t)},e.transform=function(t,n,o,r,a,i){const s=this._transformMatrix;this._transformMatrix=[s[0]*t+s[2]*n,s[1]*t+s[3]*n,s[0]*o+s[2]*r,s[1]*o+s[3]*r,s[0]*a+s[2]*i+s[4],s[1]*a+s[3]*i+s[5]],e._originalTransform(t,n,o,r,a,i)},e.setTransform=function(t,n,o,r,a,i){this._transformMatrix=[t,n,o,r,a,i],e._originalSetTransform(t,n,o,r,a,i)},e.resetTransform=function(){this._transformMatrix=[1,0,0,1,0,0],e._originalResetTransform()},e.rotate=function(e){const t=Math.cos(e),n=Math.sin(e),o=this._transformMatrix;this._transformMatrix=[o[0]*t+o[2]*n,o[1]*t+o[3]*n,o[0]*-n+o[2]*t,o[1]*-n+o[3]*t,o[4],o[5]],this._originalRotate(e)}}}class d{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,t,n,o){let r;return void 0!==this.cache[e]?(r=this.cache[e],this.canvasFactory.reset(r,t,n),r.context.setTransform(1,0,0,1,0,0)):(r=this.canvasFactory.create(t,n),this.cache[e]=r),o&&u(r.context),r}delete(e){delete this.cache[e]}clear(){for(const e in this.cache){const t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}}function p(e,t,n,o,r,a,i,s,l,c){const[u,d,p,h,f,m]=e.mozCurrentTransform;if(0===d&&0===p){const g=i*u+f,b=Math.round(g),v=s*h+m,y=Math.round(v),_=(i+l)*u+f,k=Math.abs(Math.round(_)-b)||1,w=(s+c)*h+m,x=Math.abs(Math.round(w)-y)||1;return e.setTransform(Math.sign(u),0,0,Math.sign(h),b,y),e.drawImage(t,n,o,r,a,0,0,k,x),e.setTransform(u,d,p,h,f,m),[k,x]}if(0===u&&0===h){const g=s*p+f,b=Math.round(g),v=i*d+m,y=Math.round(v),_=(s+c)*p+f,k=Math.abs(Math.round(_)-b)||1,w=(i+l)*d+m,x=Math.abs(Math.round(w)-y)||1;return e.setTransform(0,Math.sign(d),Math.sign(p),0,b,y),e.drawImage(t,n,o,r,a,0,0,x,k),e.setTransform(u,d,p,h,f,m),[x,k]}return e.drawImage(t,n,o,r,a,i,s,l,c),[Math.hypot(u,d)*l,Math.hypot(p,h)*c]}class h{constructor(e,t){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=o.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=o.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=o.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps=null,this.startNewPathAndClipBox([0,0,e,t])}clone(){const e=Object.create(this);return e.clipBox=this.clipBox.slice(),e}setCurrentPoint(e,t){this.x=e,this.y=t}updatePathMinMax(e,t,n){[t,n]=o.Util.applyTransform([t,n],e),this.minX=Math.min(this.minX,t),this.minY=Math.min(this.minY,n),this.maxX=Math.max(this.maxX,t),this.maxY=Math.max(this.maxY,n)}updateRectMinMax(e,t){const n=o.Util.applyTransform(t,e),r=o.Util.applyTransform(t.slice(2),e);this.minX=Math.min(this.minX,n[0],r[0]),this.minY=Math.min(this.minY,n[1],r[1]),this.maxX=Math.max(this.maxX,n[0],r[0]),this.maxY=Math.max(this.maxY,n[1],r[1])}updateScalingPathMinMax(e,t){o.Util.scaleMinMax(e,t),this.minX=Math.min(this.minX,t[0]),this.maxX=Math.max(this.maxX,t[1]),this.minY=Math.min(this.minY,t[2]),this.maxY=Math.max(this.maxY,t[3])}updateCurvePathMinMax(e,t,n,r,a,i,s,l,c,u){const d=o.Util.bezierBoundingBox(t,n,r,a,i,s,l,c);if(u)return u[0]=Math.min(u[0],d[0],d[2]),u[1]=Math.max(u[1],d[0],d[2]),u[2]=Math.min(u[2],d[1],d[3]),void(u[3]=Math.max(u[3],d[1],d[3]));this.updateRectMinMax(e,d)}getPathBoundingBox(e=r.PathType.FILL,t=null){const n=[this.minX,this.minY,this.maxX,this.maxY];if(e===r.PathType.STROKE){t||(0,o.unreachable)("Stroke bounding box must include transform.");const e=o.Util.singularValueDecompose2dScale(t),r=e[0]*this.lineWidth/2,a=e[1]*this.lineWidth/2;n[0]-=r,n[1]-=a,n[2]+=r,n[3]+=a}return n}updateClipFromPath(){const e=o.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(e){this.clipBox=e,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(e=r.PathType.FILL,t=null){return o.Util.intersect(this.clipBox,this.getPathBoundingBox(e,t))}}function f(e,t,n=null){if("undefined"!=typeof ImageData&&t instanceof ImageData)return void e.putImageData(t,0,0);const r=t.height,a=t.width,i=r%c,s=(r-i)/c,l=0===i?s:s+1,u=e.createImageData(a,c);let d,p=0;const h=t.data,f=u.data;let m,g,b,v,y,_,k,w;if(n)switch(n.length){case 1:y=n[0],_=n[0],k=n[0],w=n[0];break;case 4:y=n[0],_=n[1],k=n[2],w=n[3]}if(t.kind===o.ImageKind.GRAYSCALE_1BPP){const t=h.byteLength,n=new Uint32Array(f.buffer,0,f.byteLength>>2),r=n.length,v=a+7>>3;let y=4294967295,_=o.FeatureTest.isLittleEndian?4278190080:255;for(w&&255===w[0]&&0===w[255]&&([y,_]=[_,y]),m=0;mv?a:8*e-7,i=-8&r;let s=0,l=0;for(;o>=1}for(;d=s&&(b=i,v=a*b),d=0,g=v;g--;)f[d++]=h[p++],f[d++]=h[p++],f[d++]=h[p++],f[d++]=255;if(t)for(let e=0;e>8,e[a-2]=e[a-2]*r+n*i>>8,e[a-1]=e[a-1]*r+o*i>>8}}}function y(e,t,n){const o=e.length;for(let r=3;r>8]>>8:t[r]*o>>16}}function k(e,t){const n=o.Util.singularValueDecompose2dScale(e);n[0]=Math.fround(n[0]),n[1]=Math.fround(n[1]);const r=Math.fround((globalThis.devicePixelRatio||1)*s.PixelsPerInch.PDF_TO_CSS_UNITS);return void 0!==t?t:n[0]<=r||n[1]<=r}const w=["butt","round","square"],x=["miter","round","bevel"],S={},A={};class C{constructor(e,t,n,o,r,a,i,s){this.ctx=e,this.current=new h(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=n,this.canvasFactory=o,this.imageLayer=r,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=a,this.cachedCanvases=new d(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=i,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.backgroundColor=s?.background||null,this.foregroundColor=s?.foreground||null,e&&u(e),this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(e,t=null){return"string"==typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}beginDrawing({transform:e,viewport:t,transparency:n=!1,background:o=null}){const r=this.ctx.canvas.width,a=this.ctx.canvas.height,i=o||"#ffffff";if(this.ctx.save(),this.foregroundColor&&this.backgroundColor){this.ctx.fillStyle=this.foregroundColor;const e=this.foregroundColor=this.ctx.fillStyle;this.ctx.fillStyle=this.backgroundColor;const t=this.backgroundColor=this.ctx.fillStyle;let n=!0,o=i;if(this.ctx.fillStyle=i,o=this.ctx.fillStyle,n="string"==typeof o&&/^#[0-9A-Fa-f]{6}$/.test(o),"#000000"===e&&"#ffffff"===t||e===t||!n)this.foregroundColor=this.backgroundColor=null;else{const n=parseInt(o.slice(1),16),r=(n&&16711680)>>16,a=(n&&65280)>>8,i=n&&255,s=e=>(e/=255)<=.03928?e/12.92:((e+.055)/1.055)**2.4,l=Math.round(.2126*s(r)+.7152*s(a)+.0722*s(i));this.selectColor=(n,o,r)=>{const a=.2126*s(n)+.7152*s(o)+.0722*s(r);return Math.round(a)===l?t:e}}}if(this.ctx.fillStyle=this.backgroundColor||i,this.ctx.fillRect(0,0,r,a),this.ctx.restore(),n){const e=this.cachedCanvases.getCanvas("transparent",r,a,!0);this.compositeCtx=this.ctx,this.transparentCanvas=e.canvas,this.ctx=e.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),b(this.ctx,this.foregroundColor),e&&(this.ctx.transform.apply(this.ctx,e),this.outputScaleX=e[0],this.outputScaleY=e[0]),this.ctx.transform.apply(this.ctx,t.transform),this.viewportScale=t.scale,this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()}executeOperatorList(e,t,n,r){const a=e.argsArray,i=e.fnArray;let s=t||0;const l=a.length;if(l===s)return s;const c=l-s>10&&"function"==typeof n,u=c?Date.now()+15:0;let d=0;const p=this.commonObjs,h=this.objs;let f;for(;;){if(void 0!==r&&s===r.nextBreakPoint)return r.breakIt(s,n),s;if(f=i[s],f!==o.OPS.dependency)this[f].apply(this,a[s]);else for(const e of a[s]){const t=e.startsWith("g_")?p:h;if(!t.has(e))return t.get(e,n),s}if(s++,s===l)return s;if(c&&++d>10){if(Date.now()>u)return n(),s;d=0}}}endDrawing(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const e of this._cachedBitmapsMap.values()){for(const t of e.values())"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement&&(t.width=t.height=0);e.clear()}this._cachedBitmapsMap.clear(),this.imageLayer&&this.imageLayer.endLayout()}_scaleImage(e,t){const n=e.width,o=e.height;let r,a,i=Math.max(Math.hypot(t[0],t[1]),1),s=Math.max(Math.hypot(t[2],t[3]),1),l=n,c=o,u="prescale1";for(;i>2&&l>1||s>2&&c>1;){let t=l,n=c;i>2&&l>1&&(t=Math.ceil(l/2),i/=l/t),s>2&&c>1&&(n=Math.ceil(c/2),s/=c/n),r=this.cachedCanvases.getCanvas(u,t,n,!1),a=r.context,a.clearRect(0,0,t,n),a.drawImage(e,0,0,l,c,0,0,t,n),e=r.canvas,l=t,c=n,u="prescale1"===u?"prescale2":"prescale1"}return{img:e,paintWidth:l,paintHeight:c}}_createMaskCanvas(e){const t=this.ctx,{width:n,height:a}=e,i=this.current.fillColor,s=this.current.patternFill,l=t.mozCurrentTransform;let c,u,d,h;if((e.bitmap||e.data)&&e.count>1){const t=e.bitmap||e.data.buffer,n=l.slice(0,4);u=JSON.stringify(s?n:[n,i]),c=this._cachedBitmapsMap.get(t),c||(c=new Map,this._cachedBitmapsMap.set(t,c));const o=c.get(u);if(o&&!s)return{canvas:o,offsetX:Math.round(Math.min(l[0],l[2])+l[4]),offsetY:Math.round(Math.min(l[1],l[3])+l[5])};d=o}d||(h=this.cachedCanvases.getCanvas("maskCanvas",n,a,!1),m(h.context,e));let f=o.Util.transform(l,[1/n,0,0,-1/a,0,0]);f=o.Util.transform(f,[1,0,0,1,0,-a]);const g=o.Util.applyTransform([0,0],f),b=o.Util.applyTransform([n,a],f),v=o.Util.normalizeRect([g[0],g[1],b[0],b[1]]),y=Math.round(v[2]-v[0])||1,_=Math.round(v[3]-v[1])||1,w=this.cachedCanvases.getCanvas("fillCanvas",y,_,!0),x=w.context,S=Math.min(g[0],b[0]),A=Math.min(g[1],b[1]);x.translate(-S,-A),x.transform.apply(x,f),d||(d=this._scaleImage(h.canvas,x.mozCurrentTransformInverse),d=d.img,c&&s&&c.set(u,d)),x.imageSmoothingEnabled=k(x.mozCurrentTransform,e.interpolate),p(x,d,0,0,d.width,d.height,0,0,n,a),x.globalCompositeOperation="source-in";const C=o.Util.transform(x.mozCurrentTransformInverse,[1,0,0,1,-S,-A]);return x.fillStyle=s?i.getPattern(t,this,C,r.PathType.FILL):i,x.fillRect(0,0,n,a),c&&!s&&(this.cachedCanvases.delete("fillCanvas"),c.set(u,w.canvas)),{canvas:w.canvas,offsetX:Math.round(S),offsetY:Math.round(A)}}setLineWidth(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking=null),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(e){this.ctx.lineCap=w[e]}setLineJoin(e){this.ctx.lineJoin=x[e]}setMiterLimit(e){this.ctx.miterLimit=e}setDash(e,t){const n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(e),n.lineDashOffset=t)}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(let t=0,n=e.length;t{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(e,n){t.translate(e,n),this.__originalTranslate(e,n)},e.scale=function(e,n){t.scale(e,n),this.__originalScale(e,n)},e.transform=function(e,n,o,r,a,i){t.transform(e,n,o,r,a,i),this.__originalTransform(e,n,o,r,a,i)},e.setTransform=function(e,n,o,r,a,i){t.setTransform(e,n,o,r,a,i),this.__originalSetTransform(e,n,o,r,a,i)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(e){t.rotate(e),this.__originalRotate(e)},e.clip=function(e){t.clip(e),this.__originalClip(e)},e.moveTo=function(e,n){t.moveTo(e,n),this.__originalMoveTo(e,n)},e.lineTo=function(e,n){t.lineTo(e,n),this.__originalLineTo(e,n)},e.bezierCurveTo=function(e,n,o,r,a,i){t.bezierCurveTo(e,n,o,r,a,i),this.__originalBezierCurveTo(e,n,o,r,a,i)},e.rect=function(e,n,o,r){t.rect(e,n,o,r),this.__originalRect(e,n,o,r)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}(r,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),g(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return;e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const t=this.current.activeSMask;(function(e,t,n,o){const r=o[0],a=o[1],i=o[2]-r,s=o[3]-a;0!==i&&0!==s&&(function(e,t,n,o,r,a,i,s,l,c,u){const d=!!a,p=d?a[0]:0,h=d?a[1]:0,f=d?a[2]:0;let m;m="Luminosity"===r?_:y;const g=Math.min(o,Math.ceil(1048576/n));for(let r=0;r100&&(c=100),this.current.fontSizeScale=t/c,this.ctx.font=`${s} ${i} ${c}px ${l}`}setTextRenderingMode(e){this.current.textRenderingMode=e}setTextRise(e){this.current.textRise=e}moveText(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}setTextMatrix(e,t,n,o,r,a){this.current.textMatrix=[e,t,n,o,r,a],this.current.textMatrixScale=Math.hypot(e,t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(e,t,n,r){const a=this.ctx,i=this.current,s=i.font,l=i.textRenderingMode,c=i.fontSize/i.fontSizeScale,u=l&o.TextRenderingMode.FILL_STROKE_MASK,d=!!(l&o.TextRenderingMode.ADD_TO_PATH_FLAG),p=i.patternFill&&!s.missingFile;let h;(s.disableFontFace||d||p)&&(h=s.getPathGenerator(this.commonObjs,e)),s.disableFontFace||p?(a.save(),a.translate(t,n),a.beginPath(),h(a,c),r&&a.setTransform.apply(a,r),u!==o.TextRenderingMode.FILL&&u!==o.TextRenderingMode.FILL_STROKE||a.fill(),u!==o.TextRenderingMode.STROKE&&u!==o.TextRenderingMode.FILL_STROKE||a.stroke(),a.restore()):(u!==o.TextRenderingMode.FILL&&u!==o.TextRenderingMode.FILL_STROKE||a.fillText(e,t,n),u!==o.TextRenderingMode.STROKE&&u!==o.TextRenderingMode.FILL_STROKE||a.strokeText(e,t,n)),d&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:a.mozCurrentTransform,x:t,y:n,fontSize:c,addToPath:h})}get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10,!1);e.scale(1.5,1),e.fillText("I",0,10);const t=e.getImageData(0,0,10,10).data;let n=!1;for(let e=3;e0&&t[e]<255){n=!0;break}return(0,o.shadow)(this,"isFontSubpixelAAEnabled",n)}showText(e){const t=this.current,n=t.font;if(n.isType3Font)return this.showType3Text(e);const a=t.fontSize;if(0===a)return;const i=this.ctx,s=t.fontSizeScale,l=t.charSpacing,c=t.wordSpacing,u=t.fontDirection,d=t.textHScale*u,p=e.length,h=n.vertical,f=h?1:-1,m=n.defaultVMetrics,g=a*t.fontMatrix[0],b=t.textRenderingMode===o.TextRenderingMode.FILL&&!n.disableFontFace&&!t.patternFill;let v;if(i.save(),i.transform.apply(i,t.textMatrix),i.translate(t.x,t.y+t.textRise),u>0?i.scale(d,-1):i.scale(d,1),t.patternFill){i.save();const e=t.fillColor.getPattern(i,this,i.mozCurrentTransformInverse,r.PathType.FILL);v=i.mozCurrentTransform,i.restore(),i.fillStyle=e}let y=t.lineWidth;const _=t.textMatrixScale;if(0===_||0===y){const e=t.textRenderingMode&o.TextRenderingMode.FILL_STROKE_MASK;e!==o.TextRenderingMode.STROKE&&e!==o.TextRenderingMode.FILL_STROKE||(y=this.getSinglePixelWidth())}else y/=_;1!==s&&(i.scale(s,s),y/=s),i.lineWidth=y;let k,w=0;for(k=0;k0){const e=1e3*i.measureText(d).width/a*s;if(Snew C(e,this.commonObjs,this.objs,this.canvasFactory)};t=new r.TilingPattern(e,n,this.ctx,a,o)}else t=this._getPattern(e[1],e[2]);return t}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(e,t,n){const r=this.selectColor?.(e,t,n)||o.Util.makeHexColor(e,t,n);this.ctx.strokeStyle=r,this.current.strokeColor=r}setFillRGBColor(e,t,n){const r=this.selectColor?.(e,t,n)||o.Util.makeHexColor(e,t,n);this.ctx.fillStyle=r,this.current.fillColor=r,this.current.patternFill=!1}_getPattern(e,t=null){let n;return this.cachedPatterns.has(e)?n=this.cachedPatterns.get(e):(n=(0,r.getShadingPattern)(this.objs.get(e)),this.cachedPatterns.set(e,n)),t&&(n.matrix=t),n}shadingFill(e){if(!this.contentVisible)return;const t=this.ctx;this.save();const n=this._getPattern(e);t.fillStyle=n.getPattern(t,this,t.mozCurrentTransformInverse,r.PathType.SHADING);const a=t.mozCurrentTransformInverse;if(a){const e=t.canvas,n=e.width,r=e.height,i=o.Util.applyTransform([0,0],a),s=o.Util.applyTransform([0,r],a),l=o.Util.applyTransform([n,0],a),c=o.Util.applyTransform([n,r],a),u=Math.min(i[0],s[0],l[0],c[0]),d=Math.min(i[1],s[1],l[1],c[1]),p=Math.max(i[0],s[0],l[0],c[0]),h=Math.max(i[1],s[1],l[1],c[1]);this.ctx.fillRect(u,d,p-u,h-d)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,o.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,o.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform.apply(this,e),this.baseTransform=this.ctx.mozCurrentTransform,t)){const e=t[2]-t[0],n=t[3]-t[1];this.ctx.rect(t[0],t[1],e,n),this.current.updateRectMinMax(this.ctx.mozCurrentTransform,t),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const t=this.ctx;e.isolated||(0,o.info)("TODO: Support non-isolated groups."),e.knockout&&(0,o.warn)("Knockout groups not supported.");const n=t.mozCurrentTransform;if(e.matrix&&t.transform.apply(t,e.matrix),!e.bbox)throw new Error("Bounding box is required.");let r=o.Util.getAxialAlignedBoundingBox(e.bbox,t.mozCurrentTransform);const a=[0,0,t.canvas.width,t.canvas.height];r=o.Util.intersect(r,a)||[0,0,0,0];const i=Math.floor(r[0]),s=Math.floor(r[1]);let c=Math.max(Math.ceil(r[2])-i,1),u=Math.max(Math.ceil(r[3])-s,1),d=1,p=1;c>l&&(d=c/l,c=l),u>l&&(p=u/l,u=l),this.current.startNewPathAndClipBox([0,0,c,u]);let h="groupAt"+this.groupLevel;e.smask&&(h+="_smask_"+this.smaskCounter++%2);const f=this.cachedCanvases.getCanvas(h,c,u,!0),m=f.context;m.scale(1/d,1/p),m.translate(-i,-s),m.transform.apply(m,n),e.smask?this.smaskStack.push({canvas:f.canvas,context:m,offsetX:i,offsetY:s,scaleX:d,scaleY:p,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(i,s),t.scale(d,p),t.save()),g(t,m),this.ctx=m,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++}endGroup(e){if(!this.contentVisible)return;this.groupLevel--;const t=this.ctx,n=this.groupStack.pop();if(this.ctx=n,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const e=this.ctx.mozCurrentTransform;this.restore(),this.ctx.save(),this.ctx.setTransform.apply(this.ctx,e);const n=o.Util.getAxialAlignedBoundingBox([0,0,t.canvas.width,t.canvas.height],e);this.ctx.drawImage(t.canvas,0,0),this.ctx.restore(),this.compose(n)}}beginAnnotations(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)}endAnnotations(){this.restore()}beginAnnotation(e,t,n,r,a){if(this.save(),Array.isArray(t)&&4===t.length){const r=t[2]-t[0],i=t[3]-t[1];if(a&&this.annotationCanvasMap){(n=n.slice())[4]-=t[0],n[5]-=t[1],(t=t.slice())[0]=t[1]=0,t[2]=r,t[3]=i;const[a,l]=o.Util.singularValueDecompose2dScale(this.ctx.mozCurrentTransform),{viewportScale:c}=this,d=Math.ceil(r*this.outputScaleX*c),p=Math.ceil(i*this.outputScaleY*c);this.annotationCanvas=this.canvasFactory.create(d,p);const{canvas:h,context:f}=this.annotationCanvas,m=`var(--zoom-factor) * ${s.PixelsPerInch.PDF_TO_CSS_UNITS}`;h.style.width=`calc(${r}px * ${m})`,h.style.height=`calc(${i}px * ${m})`,this.annotationCanvasMap.set(e,h),this.annotationCanvas.savedCtx=this.ctx,this.ctx=f,this.ctx.setTransform(a,0,0,-l,0,i*l),u(this.ctx),b(this.ctx,this.foregroundColor)}else b(this.ctx,this.foregroundColor),this.ctx.rect(t[0],t[1],r,i),this.ctx.clip(),this.endPath()}this.current=new h(this.ctx.canvas.width,this.ctx.canvas.height),this.transform.apply(this,n),this.transform.apply(this,r)}endAnnotation(){this.annotationCanvas&&(this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas),this.restore()}paintImageMaskXObject(e){if(!this.contentVisible)return;const t=e.count;(e=this.getObject(e.data,e)).count=t;const n=this.ctx,o=this.processingType3;if(o&&(void 0===o.compiled&&(o.compiled=function(e){const{width:t,height:n}=e;if(t>1e3||n>1e3)return null;const o=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),r=t+1;let a,s,l,c=new Uint8Array(r*(n+1));const u=t+7&-8;let d=new Uint8Array(u*n),p=0;for(const t of e.data){let e=128;for(;e>0;)d[p++]=t&e?0:255,e>>=1}let h=0;for(p=0,0!==d[p]&&(c[0]=1,++h),s=1;s>2)+(d[p+1]?4:0)+(d[p-u+1]?8:0),o[e]&&(c[l+s]=o[e],++h),p++;if(d[p-u]!==d[p]&&(c[l+s]=d[p]?2:4,++h),h>1e3)return null}for(p=u*(n-1),l=a*r,0!==d[p]&&(c[l]=8,++h),s=1;s1e3)return null;const f=new Int32Array([0,r,-1,0,-r,0,0,0,1]);let m,g,b;for(i.isNodeJS?g=[]:m=new Path2D,a=0;h&&a<=n;a++){let e=a*r;const n=e+t;for(;e>4,c[e]&=i>>2|i<<2),m?m.lineTo(e%r,e/r|0):b.push(e%r,e/r|0),c[e]||--h}while(o!==e);m||g.push(b),--a}return d=null,c=null,function(e){if(e.save(),e.scale(1/t,-1/n),e.translate(0,-n),m)e.fill(m);else{e.beginPath();for(const t of g){e.moveTo(t[0],t[1]);for(let n=2,o=t.length;nt?i/t:1,o=a>t?a/t:1}}this._cachedScaleForStroking=[n,o]}return this._cachedScaleForStroking}rescaleAndStroke(e){const{ctx:t}=this,{lineWidth:n}=this.current,[o,r]=this.getScaleForStroking();if(t.lineWidth=n||1,1===o&&1===r)return void t.stroke();let a,i,s;e&&(a=t.mozCurrentTransform.slice(),i=t.getLineDash().slice(),s=t.lineDashOffset),t.scale(o,r);const l=Math.max(o,r);t.setLineDash(t.getLineDash().map((e=>e/l))),t.lineDashOffset/=l,t.stroke(),e&&(t.setTransform(...a),t.setLineDash(i),t.lineDashOffset=s)}getCanvasPosition(e,t){const n=this.ctx.mozCurrentTransform;return[n[0]*e+n[2]*t+n[4],n[1]*e+n[3]*t+n[5]]}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}t.CanvasGraphics=C;for(const e in o.OPS)void 0!==C.prototype[e]&&(C.prototype[o.OPS[e]]=C.prototype[e])},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.PathType=void 0,t.getShadingPattern=function(e){switch(e[0]){case"RadialAxial":return new l(e);case"Mesh":return new d(e);case"Dummy":return new p}throw new Error(`Unknown IR type: ${e[0]}`)};var o=n(1),r=n(3);const a={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function i(e,t){if(!t||r.isNodeJS)return;const n=t[2]-t[0],o=t[3]-t[1],a=new Path2D;a.rect(t[0],t[1],n,o),e.clip(a)}t.PathType=a;class s{constructor(){this.constructor===s&&(0,o.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,o.unreachable)("Abstract method `getPattern` called.")}}class l extends s{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let t;"axial"===this._type?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const e of this._colorStops)t.addColorStop(e[0],e[1]);return t}getPattern(e,t,n,r){let s;if(r===a.STROKE||r===a.FILL){const a=t.current.getClippedPathBoundingBox(r,e.mozCurrentTransform)||[0,0,0,0],l=Math.ceil(a[2]-a[0])||1,c=Math.ceil(a[3]-a[1])||1,u=t.cachedCanvases.getCanvas("pattern",l,c,!0),d=u.context;d.clearRect(0,0,d.canvas.width,d.canvas.height),d.beginPath(),d.rect(0,0,d.canvas.width,d.canvas.height),d.translate(-a[0],-a[1]),n=o.Util.transform(n,[1,0,0,1,a[0],a[1]]),d.transform.apply(d,t.baseTransform),this.matrix&&d.transform.apply(d,this.matrix),i(d,this._bbox),d.fillStyle=this._createGradient(d),d.fill(),s=e.createPattern(u.canvas,"no-repeat");const p=new DOMMatrix(n);try{s.setTransform(p)}catch(e){(0,o.warn)(`RadialAxialShadingPattern.getPattern: "${e?.message}".`)}}else i(e,this._bbox),s=this._createGradient(e);return s}}function c(e,t,n,o,r,a,i,s){const l=t.coords,c=t.colors,u=e.data,d=4*e.width;let p;l[n+1]>l[o+1]&&(p=n,n=o,o=p,p=a,a=i,i=p),l[o+1]>l[r+1]&&(p=o,o=r,r=p,p=i,i=s,s=p),l[n+1]>l[o+1]&&(p=n,n=o,o=p,p=a,a=i,i=p);const h=(l[n]+t.offsetX)*t.scaleX,f=(l[n+1]+t.offsetY)*t.scaleY,m=(l[o]+t.offsetX)*t.scaleX,g=(l[o+1]+t.offsetY)*t.scaleY,b=(l[r]+t.offsetX)*t.scaleX,v=(l[r+1]+t.offsetY)*t.scaleY;if(f>=v)return;const y=c[a],_=c[a+1],k=c[a+2],w=c[i],x=c[i+1],S=c[i+2],A=c[s],C=c[s+1],T=c[s+2],E=Math.round(f),O=Math.round(v);let P,D,M,L,R,I,F,N;for(let e=E;e<=O;e++){if(ev?1:g===v?0:(g-e)/(g-v),P=m-(m-b)*t,D=w-(w-A)*t,M=x-(x-C)*t,L=S-(S-T)*t}let t;t=ev?1:(f-e)/(f-v),R=h-(h-b)*t,I=y-(y-A)*t,F=_-(_-C)*t,N=k-(k-T)*t;const n=Math.round(Math.min(P,R)),o=Math.round(Math.max(P,R));let r=d*e+4*n;for(let e=n;e<=o;e++)t=(P-e)/(P-R),t<0?t=0:t>1&&(t=1),u[r++]=D-(D-I)*t|0,u[r++]=M-(M-F)*t|0,u[r++]=L-(L-N)*t|0,u[r++]=255}}function u(e,t,n){const o=t.coords,r=t.colors;let a,i;switch(t.type){case"lattice":const s=t.verticesPerRow,l=Math.floor(o.length/s)-1,u=s-1;for(a=0;a=o?r=o:n=r/e,{scale:n,size:r}}clipBbox(e,t,n,o,r){const a=o-t,i=r-n;e.ctx.rect(t,n,a,i),e.current.updateRectMinMax(e.ctx.mozCurrentTransform,[t,n,o,r]),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,n){const r=e.ctx,a=e.current;switch(t){case 1:const e=this.ctx;r.fillStyle=e.fillStyle,r.strokeStyle=e.strokeStyle,a.fillColor=e.fillStyle,a.strokeColor=e.strokeStyle;break;case 2:const i=o.Util.makeHexColor(n[0],n[1],n[2]);r.fillStyle=i,r.strokeStyle=i,a.fillColor=i,a.strokeColor=i;break;default:throw new o.FormatError(`Unsupported paint type: ${t}`)}}getPattern(e,t,n,r){let i=n;r!==a.SHADING&&(i=o.Util.transform(i,t.baseTransform),this.matrix&&(i=o.Util.transform(i,this.matrix)));const s=this.createPatternCanvas(t);let l=new DOMMatrix(i);l=l.translate(s.offsetX,s.offsetY),l=l.scale(1/s.scaleX,1/s.scaleY);const c=e.createPattern(s.canvas,"repeat");try{c.setTransform(l)}catch(e){(0,o.warn)(`TilingPattern.getPattern: "${e?.message}".`)}return c}}t.TilingPattern=h},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.applyMaskImageData=function({src:e,srcPos:t=0,dest:n,destPos:r=0,width:a,height:i,inverseDecode:s=!1}){const l=o.FeatureTest.isLittleEndian?4278190080:255,[c,u]=s?[0,l]:[l,0],d=a>>3,p=7&a,h=e.length;n=new Uint32Array(n.buffer);for(let o=0;o{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;const n=Object.create(null);t.GlobalWorkerOptions=n,n.workerPort=void 0===n.workerPort?null:n.workerPort,n.workerSrc=void 0===n.workerSrc?"":n.workerSrc},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var o=n(1);function r(e){switch(e instanceof Error||"object"==typeof e&&null!==e||(0,o.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new o.AbortException(e.message);case"MissingPDFException":return new o.MissingPDFException(e.message);case"PasswordException":return new o.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new o.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new o.UnknownErrorException(e.message,e.details);default:return new o.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,n){this.sourceName=e,this.targetName=t,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=e=>{const t=e.data;if(t.targetName!==this.sourceName)return;if(t.stream)return void this._processStreamMessage(t);if(t.callback){const e=t.callbackId,n=this.callbackCapabilities[e];if(!n)throw new Error(`Cannot resolve callback ${e}`);if(delete this.callbackCapabilities[e],1===t.callback)n.resolve(t.data);else{if(2!==t.callback)throw new Error("Unexpected callback case");n.reject(r(t.reason))}return}const o=this.actionHandler[t.action];if(!o)throw new Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){const e=this.sourceName,a=t.sourceName;new Promise((function(e){e(o(t.data))})).then((function(o){n.postMessage({sourceName:e,targetName:a,callback:1,callbackId:t.callbackId,data:o})}),(function(o){n.postMessage({sourceName:e,targetName:a,callback:2,callbackId:t.callbackId,reason:r(o)})}))}else t.streamId?this._createStreamSink(t):o(t.data)},n.addEventListener("message",this._onComObjOnMessage)}on(e,t){const n=this.actionHandler;if(n[e])throw new Error(`There is already an actionName called "${e}"`);n[e]=t}send(e,t,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){const r=this.callbackId++,a=(0,o.createPromiseCapability)();this.callbackCapabilities[r]=a;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:r,data:t},n)}catch(e){a.reject(e)}return a.promise}sendWithStream(e,t,n,a){const i=this.streamId++,s=this.sourceName,l=this.targetName,c=this.comObj;return new ReadableStream({start:n=>{const r=(0,o.createPromiseCapability)();return this.streamControllers[i]={controller:n,startCall:r,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:s,targetName:l,action:e,streamId:i,data:t,desiredSize:n.desiredSize},a),r.promise},pull:e=>{const t=(0,o.createPromiseCapability)();return this.streamControllers[i].pullCall=t,c.postMessage({sourceName:s,targetName:l,stream:6,streamId:i,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,o.assert)(e instanceof Error,"cancel must have a valid reason");const t=(0,o.createPromiseCapability)();return this.streamControllers[i].cancelCall=t,this.streamControllers[i].isClosed=!0,c.postMessage({sourceName:s,targetName:l,stream:1,streamId:i,reason:r(e)}),t.promise}},n)}_createStreamSink(e){const t=e.streamId,n=this.sourceName,a=e.sourceName,i=this.comObj,s=this,l=this.actionHandler[e.action],c={enqueue(e,r=1,s){if(this.isCancelled)return;const l=this.desiredSize;this.desiredSize-=r,l>0&&this.desiredSize<=0&&(this.sinkCapability=(0,o.createPromiseCapability)(),this.ready=this.sinkCapability.promise),i.postMessage({sourceName:n,targetName:a,stream:4,streamId:t,chunk:e},s)},close(){this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:a,stream:3,streamId:t}),delete s.streamSinks[t])},error(e){(0,o.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:a,stream:5,streamId:t,reason:r(e)}))},sinkCapability:(0,o.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};c.sinkCapability.resolve(),c.ready=c.sinkCapability.promise,this.streamSinks[t]=c,new Promise((function(t){t(l(e.data,c))})).then((function(){i.postMessage({sourceName:n,targetName:a,stream:8,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:n,targetName:a,stream:8,streamId:t,reason:r(e)})}))}_processStreamMessage(e){const t=e.streamId,n=this.sourceName,a=e.sourceName,i=this.comObj,s=this.streamControllers[t],l=this.streamSinks[t];switch(e.stream){case 8:e.success?s.startCall.resolve():s.startCall.reject(r(e.reason));break;case 7:e.success?s.pullCall.resolve():s.pullCall.reject(r(e.reason));break;case 6:if(!l){i.postMessage({sourceName:n,targetName:a,stream:7,streamId:t,success:!0});break}l.desiredSize<=0&&e.desiredSize>0&&l.sinkCapability.resolve(),l.desiredSize=e.desiredSize,new Promise((function(e){e(l.onPull&&l.onPull())})).then((function(){i.postMessage({sourceName:n,targetName:a,stream:7,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:n,targetName:a,stream:7,streamId:t,reason:r(e)})}));break;case 4:if((0,o.assert)(s,"enqueue should have stream controller"),s.isClosed)break;s.controller.enqueue(e.chunk);break;case 3:if((0,o.assert)(s,"close should have stream controller"),s.isClosed)break;s.isClosed=!0,s.controller.close(),this._deleteStreamController(s,t);break;case 5:(0,o.assert)(s,"error should have stream controller"),s.controller.error(r(e.reason)),this._deleteStreamController(s,t);break;case 2:e.success?s.cancelCall.resolve():s.cancelCall.reject(r(e.reason)),this._deleteStreamController(s,t);break;case 1:if(!l)break;new Promise((function(t){t(l.onCancel&&l.onCancel(r(e.reason)))})).then((function(){i.postMessage({sourceName:n,targetName:a,stream:2,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:n,targetName:a,stream:2,streamId:t,reason:r(e)})})),l.sinkCapability.reject(r(e.reason)),l.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(e,t){await Promise.allSettled([e.startCall&&e.startCall.promise,e.pullCall&&e.pullCall.promise,e.cancelCall&&e.cancelCall.promise]),delete this.streamControllers[t]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var o=n(1);t.Metadata=class{#c;#u;constructor({parsedData:e,rawData:t}){this.#c=e,this.#u=t}getRaw(){return this.#u}get(e){return this.#c.get(e)??null}getAll(){return(0,o.objectFromMap)(this.#c)}has(e){return this.#c.has(e)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var o=n(1);class r{constructor(e,t){this.visible=!0,this.name=e,this.intent=t}}t.OptionalContentConfig=class{constructor(e){if(this.name=null,this.creator=null,this._order=null,this._groups=new Map,null!==e){this.name=e.name,this.creator=e.creator,this._order=e.order;for(const t of e.groups)this._groups.set(t.id,new r(t.name,t.intent));if("OFF"===e.baseState)for(const e of this._groups)e.visible=!1;for(const t of e.on)this._groups.get(t).visible=!0;for(const t of e.off)this._groups.get(t).visible=!1}}_evaluateVisibilityExpression(e){const t=e.length;if(t<2)return!0;const n=e[0];for(let r=1;r0?(0,o.objectFromMap)(this._groups):null}getGroup(e){return this._groups.get(e)||null}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var o=n(1),r=n(5);t.PDFDataTransportStream=class{constructor(e,t){(0,o.assert)(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=e.progressiveDone||!1,this._contentDispositionFilename=e.contentDispositionFilename||null;const n=e.initialData;if(n?.length>0){const e=new Uint8Array(n).buffer;this._queuedChunks.push(e)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._contentLength=e.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(((e,t)=>{this._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener(((e,t)=>{this._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((e=>{this._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((()=>{this._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}_onReceiveData(e){const t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{const n=this._rangeReaders.some((function(n){return n._begin===e.begin&&(n._enqueue(t),!0)}));(0,o.assert)(n,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(e){if(void 0===e.total){const t=this._rangeReaders[0];t?.onProgress&&t.onProgress({loaded:e.loaded})}else{const t=this._fullRequestReader;t?.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){(0,o.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new a(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new i(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);for(const t of this._rangeReaders.slice(0))t.cancel(e);this._pdfDataRangeTransport.abort()}};class a{constructor(e,t,n=!1,o=null){this._stream=e,this._done=n||!1,this._filename=(0,r.isPdfFile)(o)?o:null,this._queuedChunks=t||[],this._loaded=0;for(const e of this._queuedChunks)this._loaded+=e.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=(0,o.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class i{constructor(e,t,n){this._stream=e,this._begin=t,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,o.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaText=void 0;class n{static textContent(e){const t=[],o={items:t,styles:Object.create(null)};return function e(o){if(!o)return;let r=null;const a=o.name;if("#text"===a)r=o.value;else{if(!n.shouldBuildText(a))return;o?.attributes?.textContent?r=o.attributes.textContent:o.value&&(r=o.value)}if(null!==r&&t.push({str:r}),o.children)for(const t of o.children)e(t)}(e),o}static shouldBuildText(e){return!("textarea"===e||"input"===e||"option"===e||"select"===e)}}t.XfaText=n},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeCanvasFactory=t.NodeCMapReaderFactory=void 0;var o=n(6);const r=function(e){return new Promise(((t,n)=>{__webpack_require__(172).readFile(e,((e,o)=>{!e&&o?t(new Uint8Array(o)):n(new Error(e))}))}))};class a extends o.BaseCanvasFactory{_createCanvas(e,t){return __webpack_require__(3414).createCanvas(e,t)}}t.NodeCanvasFactory=a;class i extends o.BaseCMapReaderFactory{_fetchData(e,t){return r(e).then((e=>({cMapData:e,compressionType:t})))}}t.NodeCMapReaderFactory=i;class s extends o.BaseStandardFontDataFactory{_fetchData(e){return r(e)}}t.NodeStandardFontDataFactory=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var o=n(1),r=n(5),a=n(8),i=n(21),s=n(22);const l=1e3,c=new WeakSet;function u(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class d{static create(e){switch(e.data.annotationType){case o.AnnotationType.LINK:return new h(e);case o.AnnotationType.TEXT:return new f(e);case o.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new g(e);case"Btn":return e.data.radioButton?new v(e):e.data.checkBox?new b(e):new y(e);case"Ch":return new _(e)}return new m(e);case o.AnnotationType.POPUP:return new k(e);case o.AnnotationType.FREETEXT:return new x(e);case o.AnnotationType.LINE:return new S(e);case o.AnnotationType.SQUARE:return new A(e);case o.AnnotationType.CIRCLE:return new C(e);case o.AnnotationType.POLYLINE:return new T(e);case o.AnnotationType.CARET:return new O(e);case o.AnnotationType.INK:return new P(e);case o.AnnotationType.POLYGON:return new E(e);case o.AnnotationType.HIGHLIGHT:return new D(e);case o.AnnotationType.UNDERLINE:return new M(e);case o.AnnotationType.SQUIGGLY:return new L(e);case o.AnnotationType.STRIKEOUT:return new R(e);case o.AnnotationType.STAMP:return new I(e);case o.AnnotationType.FILEATTACHMENT:return new F(e);default:return new p(e)}}}class p{constructor(e,{isRenderable:t=!1,ignoreBorder:n=!1,createQuadrilaterals:o=!1}={}){this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.page=e.page,this.viewport=e.viewport,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this._mouseState=e.mouseState,t&&(this.container=this._createContainer(n)),o&&(this.quadrilaterals=this._createQuadrilaterals(n))}_createContainer(e=!1){const t=this.data,n=this.page,r=this.viewport,a=document.createElement("section");let{width:i,height:s}=u(t.rect);a.setAttribute("data-annotation-id",t.id);const l=o.Util.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]);if(t.hasOwnCanvas){const e=r.transform.slice(),[t,n]=o.Util.singularValueDecompose2dScale(e);i=Math.ceil(i*t),s=Math.ceil(s*n),l[0]*=t,l[1]*=n;for(let t=0;t<4;t++)e[t]=Math.sign(e[t]);a.style.transform=`matrix(${e.join(",")})`}else a.style.transform=`matrix(${r.transform.join(",")})`;if(a.style.transformOrigin=`${-l[0]}px ${-l[1]}px`,!e&&t.borderStyle.width>0){a.style.borderWidth=`${t.borderStyle.width}px`,t.borderStyle.style!==o.AnnotationBorderStyleType.UNDERLINE&&(i-=2*t.borderStyle.width,s-=2*t.borderStyle.width);const e=t.borderStyle.horizontalCornerRadius,n=t.borderStyle.verticalCornerRadius;if(e>0||n>0){const t=`${e}px / ${n}px`;a.style.borderRadius=t}switch(t.borderStyle.style){case o.AnnotationBorderStyleType.SOLID:a.style.borderStyle="solid";break;case o.AnnotationBorderStyleType.DASHED:a.style.borderStyle="dashed";break;case o.AnnotationBorderStyleType.BEVELED:(0,o.warn)("Unimplemented border style: beveled");break;case o.AnnotationBorderStyleType.INSET:(0,o.warn)("Unimplemented border style: inset");break;case o.AnnotationBorderStyleType.UNDERLINE:a.style.borderBottomStyle="solid"}t.borderColor||t.color?a.style.borderColor=o.Util.makeHexColor(0|t.color[0],0|t.color[1],0|t.color[2]):a.style.borderWidth=0}return a.style.left=`${l[0]}px`,a.style.top=`${l[1]}px`,t.hasOwnCanvas?a.style.width=a.style.height="auto":(a.style.width=`${i}px`,a.style.height=`${s}px`),a}get _commonActions(){const e=(e,t,n)=>{const o=n.detail[e];n.target.style[t]=i.ColorConverters[`${o[0]}_HTML`](o.slice(1))};return(0,o.shadow)(this,"_commonActions",{display:e=>{const t=e.detail.display%2==1;e.target.style.visibility=t?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:t,print:0===e.detail.display||3===e.detail.display})},print:e=>{this.annotationStorage.setValue(this.data.id,{print:e.detail.print})},hidden:e=>{e.target.style.visibility=e.detail.hidden?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:e.detail.hidden})},focus:e=>{setTimeout((()=>e.target.focus({preventScroll:!1})),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.detail.readonly?e.target.setAttribute("readonly",""):e.target.removeAttribute("readonly")},required:e=>{e.detail.required?e.target.setAttribute("required",""):e.target.removeAttribute("required")},bgColor:t=>{e("bgColor","backgroundColor",t)},fillColor:t=>{e("fillColor","backgroundColor",t)},fgColor:t=>{e("fgColor","color",t)},textColor:t=>{e("textColor","color",t)},borderColor:t=>{e("borderColor","borderColor",t)},strokeColor:t=>{e("strokeColor","borderColor",t)}})}_dispatchEventFromSandbox(e,t){const n=this._commonActions;for(const o of Object.keys(t.detail)){const r=e[o]||n[o];r&&r(t)}}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;const t=this.annotationStorage.getRawValue(this.data.id);if(!t)return;const n=this._commonActions;for(const[o,r]of Object.entries(t)){const a=n[o];a&&(a({detail:r,target:e}),delete t[o])}}_createQuadrilaterals(e=!1){if(!this.data.quadPoints)return null;const t=[],n=this.data.rect;for(const n of this.data.quadPoints)this.data.rect=[n[2].x,n[2].y,n[1].x,n[1].y],t.push(this._createContainer(e));return this.data.rect=n,t}_createPopup(e,t){let n=this.container;this.quadrilaterals&&(e=e||this.quadrilaterals,n=this.quadrilaterals[0]),e||((e=document.createElement("div")).style.height=n.style.height,e.style.width=n.style.width,n.appendChild(e));const o=new w({container:n,trigger:e,color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,hideWrapper:!0}).render();o.style.left=n.style.width,n.appendChild(o)}_renderQuadrilaterals(e){for(const t of this.quadrilaterals)t.className=e;return this.quadrilaterals}render(){(0,o.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(e,t=null){const n=[];if(this._fieldObjects){const r=this._fieldObjects[e];if(r)for(const{page:e,id:a,exportValues:i}of r){if(-1===e)continue;if(a===t)continue;const r="string"==typeof i?i:null,s=document.getElementById(a);!s||c.has(s)?n.push({id:a,exportValue:r,domElement:s}):(0,o.warn)(`_getElementsByName - element not allowed: ${a}`)}return n}for(const o of document.getElementsByName(e)){const{id:e,exportValue:r}=o;e!==t&&c.has(o)&&n.push({id:e,exportValue:r,domElement:o})}return n}static get platform(){const e="undefined"!=typeof navigator?navigator.platform:"";return(0,o.shadow)(this,"platform",{isWin:e.includes("Win"),isMac:e.includes("Mac")})}}class h extends p{constructor(e,t=null){super(e,{isRenderable:!!(e.data.url||e.data.dest||e.data.action||e.data.isTooltipOnly||e.data.resetForm||e.data.actions&&(e.data.actions.Action||e.data.actions["Mouse Up"]||e.data.actions["Mouse Down"])),ignoreBorder:!!t?.ignoreBorder,createQuadrilaterals:!0})}render(){const{data:e,linkService:t}=this,n=document.createElement("a");if(e.url)t.addLinkAttributes(n,e.url,e.newWindow);else if(e.action)this._bindNamedAction(n,e.action);else if(e.dest)this._bindLink(n,e.dest);else{let t=!1;e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(t=!0,this._bindJSAction(n,e)),e.resetForm?this._bindResetFormAction(n,e.resetForm):t||this._bindLink(n,"")}return this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map(((e,t)=>{const o=0===t?n:n.cloneNode();return e.appendChild(o),e})):(this.container.className="linkAnnotation",this.container.appendChild(n),this.container)}_bindLink(e,t){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.goToDestination(t),!1),(t||""===t)&&(e.className="internalLink")}_bindNamedAction(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),e.className="internalLink"}_bindJSAction(e,t){e.href=this.linkService.getAnchorUrl("");const n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const o of Object.keys(t.actions)){const r=n.get(o);r&&(e[r]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t.id,name:o}}),!1))}e.onclick||(e.onclick=()=>!1),e.className="internalLink"}_bindResetFormAction(e,t){const n=e.onclick;if(n||(e.href=this.linkService.getAnchorUrl("")),e.className="internalLink",!this._fieldObjects)return(0,o.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(n||(e.onclick=()=>!1));e.onclick=()=>{n&&n();const{fields:e,refs:o,include:r}=t,a=[];if(0!==e.length||0!==o.length){const t=new Set(o);for(const n of e){const e=this._fieldObjects[n]||[];for(const{id:n}of e)t.add(n)}for(const e of Object.values(this._fieldObjects))for(const n of e)t.has(n.id)===r&&a.push(n)}else for(const e of Object.values(this._fieldObjects))a.push(...e);const i=this.annotationStorage,s=[];for(const e of a){const{id:t}=e;switch(s.push(t),e.type){case"text":{const n=e.defaultValue||"";i.setValue(t,{value:n});break}case"checkbox":case"radiobutton":{const n=e.defaultValue===e.exportValues;i.setValue(t,{value:n});break}case"combobox":case"listbox":{const n=e.defaultValue||"";i.setValue(t,{value:n});break}default:continue}const n=document.getElementById(t);n&&c.has(n)&&n.dispatchEvent(new Event("resetform"))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:s,name:"ResetForm"}}),!1}}}class f extends p{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str)})}render(){this.container.className="textAnnotation";const e=document.createElement("img");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(e,this.data),this.container.appendChild(e),this.container}}class m extends p{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}_getKeyModifier(e){const{isWin:t,isMac:n}=p.platform;return t&&e.ctrlKey||n&&e.metaKey}_setEventListener(e,t,n,o){t.includes("mouse")?e.addEventListener(t,(e=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:o(e),shift:e.shiftKey,modifier:this._getKeyModifier(e)}})})):e.addEventListener(t,(e=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:o(e)}})}))}_setEventListeners(e,t,n){for(const[o,r]of t)("Action"===r||this.data.actions?.[r])&&this._setEventListener(e,o,r,n)}_setBackgroundColor(e){const t=this.data.backgroundColor||null;e.style.backgroundColor=null===t?"transparent":o.Util.makeHexColor(t[0],t[1],t[2])}}class g extends m{constructor(e){super(e,{isRenderable:e.renderForms||!e.data.hasAppearance&&!!e.data.fieldValue})}setPropertyOnSiblings(e,t,n,o){const r=this.annotationStorage;for(const a of this._getElementsByName(e.name,e.id))a.domElement&&(a.domElement[t]=n),r.setValue(a.id,{[o]:n})}render(){const e=this.annotationStorage,t=this.data.id;this.container.className="textWidgetAnnotation";let n=null;if(this.renderForms){const o=e.getValue(t,{value:this.data.fieldValue}),r=o.formattedValue||o.value||"",a={userValue:null,formattedValue:null,valueOnFocus:""};this.data.multiLine?(n=document.createElement("textarea"),n.textContent=r):(n=document.createElement("input"),n.type="text",n.setAttribute("value",r)),c.add(n),n.disabled=this.data.readOnly,n.name=this.data.fieldName,n.tabIndex=l,a.userValue=r,n.setAttribute("id",t),n.addEventListener("input",(o=>{e.setValue(t,{value:o.target.value}),this.setPropertyOnSiblings(n,"value",o.target.value,"value")})),n.addEventListener("resetform",(e=>{const t=this.data.defaultFieldValue??"";n.value=a.userValue=t,a.formattedValue=null}));let i=e=>{const{formattedValue:t}=a;null!=t&&(e.target.value=t),e.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){n.addEventListener("focus",(e=>{a.userValue&&(e.target.value=a.userValue),a.valueOnFocus=e.target.value})),n.addEventListener("updatefromsandbox",(n=>{const o={value(n){a.userValue=n.detail.value??"",e.setValue(t,{value:a.userValue.toString()}),n.target.value=a.userValue},formattedValue(n){const{formattedValue:o}=n.detail;a.formattedValue=o,null!=o&&n.target!==document.activeElement&&(n.target.value=o),e.setValue(t,{formattedValue:o})},selRange(e){e.target.setSelectionRange(...e.detail.selRange)}};this._dispatchEventFromSandbox(o,n)})),n.addEventListener("keydown",(e=>{let n=-1;if("Escape"===e.key?n=0:"Enter"===e.key?n=2:"Tab"===e.key&&(n=3),-1===n)return;const{value:o}=e.target;a.valueOnFocus!==o&&(a.userValue=o,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:o,willCommit:!0,commitKey:n,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))}));const o=i;i=null,n.addEventListener("blur",(e=>{const{value:n}=e.target;a.userValue=n,this._mouseState.isDown&&a.valueOnFocus!==n&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:n,willCommit:!0,commitKey:1,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}),o(e)})),this.data.actions?.Keystroke&&n.addEventListener("beforeinput",(e=>{const{data:n,target:o}=e,{value:r,selectionStart:a,selectionEnd:i}=o;let s=a,l=i;switch(e.inputType){case"deleteWordBackward":{const e=r.substring(0,a).match(/\w*[^\w]*$/);e&&(s-=e[0].length);break}case"deleteWordForward":{const e=r.substring(a).match(/^[^\w]*\w*/);e&&(l+=e[0].length);break}case"deleteContentBackward":a===i&&(s-=1);break;case"deleteContentForward":a===i&&(l+=1)}e.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:r,change:n||"",willCommit:!1,selStart:s,selEnd:l}})})),this._setEventListeners(n,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.value))}if(i&&n.addEventListener("blur",i),null!==this.data.maxLen&&(n.maxLength=this.data.maxLen),this.data.comb){const e=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;n.classList.add("comb"),n.style.letterSpacing=`calc(${e}px - 1ch)`}}else n=document.createElement("div"),n.textContent=this.data.fieldValue,n.style.verticalAlign="middle",n.style.display="table-cell";return this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.appendChild(n),this.container}_setTextStyle(e){const{fontSize:t,fontColor:n}=this.data.defaultAppearanceData,r=e.style;t&&(r.fontSize=`${t}px`),r.color=o.Util.makeHexColor(n[0],n[1],n[2]),null!==this.data.textAlignment&&(r.textAlign=["left","center","right"][this.data.textAlignment])}}class b extends m{constructor(e){super(e,{isRenderable:e.renderForms})}render(){const e=this.annotationStorage,t=this.data,n=t.id;let o=e.getValue(n,{value:t.exportValue===t.fieldValue}).value;"string"==typeof o&&(o="Off"!==o,e.setValue(n,{value:o})),this.container.className="buttonWidgetAnnotation checkBox";const r=document.createElement("input");return c.add(r),r.disabled=t.readOnly,r.type="checkbox",r.name=t.fieldName,o&&r.setAttribute("checked",!0),r.setAttribute("id",n),r.setAttribute("exportValue",t.exportValue),r.tabIndex=l,r.addEventListener("change",(o=>{const{name:r,checked:a}=o.target;for(const o of this._getElementsByName(r,n)){const n=a&&o.exportValue===t.exportValue;o.domElement&&(o.domElement.checked=n),e.setValue(o.id,{value:n})}e.setValue(n,{value:a})})),r.addEventListener("resetform",(e=>{const n=t.defaultFieldValue||"Off";e.target.checked=n===t.exportValue})),this.enableScripting&&this.hasJSActions&&(r.addEventListener("updatefromsandbox",(t=>{const o={value(t){t.target.checked="Off"!==t.detail.value,e.setValue(n,{value:t.target.checked})}};this._dispatchEventFromSandbox(o,t)})),this._setEventListeners(r,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.appendChild(r),this.container}}class v extends m{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.className="buttonWidgetAnnotation radioButton";const e=this.annotationStorage,t=this.data,n=t.id;let o=e.getValue(n,{value:t.fieldValue===t.buttonValue}).value;"string"==typeof o&&(o=o!==t.buttonValue,e.setValue(n,{value:o}));const r=document.createElement("input");if(c.add(r),r.disabled=t.readOnly,r.type="radio",r.name=t.fieldName,o&&r.setAttribute("checked",!0),r.setAttribute("id",n),r.tabIndex=l,r.addEventListener("change",(t=>{const{name:o,checked:r}=t.target;for(const t of this._getElementsByName(o,n))e.setValue(t.id,{value:!1});e.setValue(n,{value:r})})),r.addEventListener("resetform",(e=>{const n=t.defaultFieldValue;e.target.checked=null!=n&&n===t.buttonValue})),this.enableScripting&&this.hasJSActions){const o=t.buttonValue;r.addEventListener("updatefromsandbox",(t=>{const r={value:t=>{const r=o===t.detail.value;for(const o of this._getElementsByName(t.target.name)){const t=r&&o.id===n;o.domElement&&(o.domElement.checked=t),e.setValue(o.id,{value:t})}}};this._dispatchEventFromSandbox(r,t)})),this._setEventListeners(r,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))}return this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.appendChild(r),this.container}}class y extends h{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){const e=super.render();return e.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(e.title=this.data.alternativeText),this._setDefaultPropertiesFromJS(e),e}}class _ extends m{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.className="choiceWidgetAnnotation";const e=this.annotationStorage,t=this.data.id,n=e.getValue(t,{value:this.data.fieldValue});let{fontSize:o}=this.data.defaultAppearanceData;o||(o=9);const r=`calc(${o}px * var(--zoom-factor))`,a=document.createElement("select");c.add(a),a.disabled=this.data.readOnly,a.name=this.data.fieldName,a.setAttribute("id",t),a.tabIndex=l,a.style.fontSize=`${o}px`,this.data.combo||(a.size=this.data.options.length,this.data.multiSelect&&(a.multiple=!0)),a.addEventListener("resetform",(e=>{const t=this.data.defaultFieldValue;for(const e of a.options)e.selected=e.value===t}));for(const e of this.data.options){const t=document.createElement("option");t.textContent=e.displayValue,t.value=e.exportValue,this.data.combo&&(t.style.fontSize=r),n.value.includes(e.exportValue)&&t.setAttribute("selected",!0),a.appendChild(t)}const i=(e,t)=>{const n=t?"value":"textContent",o=e.target.options;return e.target.multiple?Array.prototype.filter.call(o,(e=>e.selected)).map((e=>e[n])):-1===o.selectedIndex?null:o[o.selectedIndex][n]},s=e=>{const t=e.target.options;return Array.prototype.map.call(t,(e=>({displayValue:e.textContent,exportValue:e.value})))};return this.enableScripting&&this.hasJSActions?(a.addEventListener("updatefromsandbox",(n=>{const o={value(n){const o=n.detail.value,r=new Set(Array.isArray(o)?o:[o]);for(const e of a.options)e.selected=r.has(e.value);e.setValue(t,{value:i(n,!0)})},multipleSelection(e){a.multiple=!0},remove(n){const o=a.options,r=n.detail.remove;o[r].selected=!1,a.remove(r),o.length>0&&-1===Array.prototype.findIndex.call(o,(e=>e.selected))&&(o[0].selected=!0),e.setValue(t,{value:i(n,!0),items:s(n)})},clear(n){for(;0!==a.length;)a.remove(0);e.setValue(t,{value:null,items:[]})},insert(n){const{index:o,displayValue:r,exportValue:l}=n.detail.insert,c=document.createElement("option");c.textContent=r,c.value=l,a.insertBefore(c,a.children[o]),e.setValue(t,{value:i(n,!0),items:s(n)})},items(n){const{items:o}=n.detail;for(;0!==a.length;)a.remove(0);for(const e of o){const{displayValue:t,exportValue:n}=e,o=document.createElement("option");o.textContent=t,o.value=n,a.appendChild(o)}a.options.length>0&&(a.options[0].selected=!0),e.setValue(t,{value:i(n,!0),items:s(n)})},indices(n){const o=new Set(n.detail.indices);for(const e of n.target.options)e.selected=o.has(e.index);e.setValue(t,{value:i(n,!0)})},editable(e){e.target.disabled=!e.detail.editable}};this._dispatchEventFromSandbox(o,n)})),a.addEventListener("input",(n=>{const o=i(n,!0),r=i(n,!1);e.setValue(t,{value:o}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:r,changeEx:o,willCommit:!0,commitKey:1,keyDown:!1}})})),this._setEventListeners(a,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],(e=>e.target.checked))):a.addEventListener("input",(function(n){e.setValue(t,{value:i(n,!0)})})),this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.appendChild(a),this.container}}class k extends p{constructor(e){super(e,{isRenderable:!!(e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str)})}render(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;const e=`[data-annotation-id="${this.data.parentId}"]`,t=this.layer.querySelectorAll(e);if(0===t.length)return this.container;const n=new w({container:this.container,trigger:Array.from(t),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),r=this.page,a=o.Util.normalizeRect([this.data.parentRect[0],r.view[3]-this.data.parentRect[1]+r.view[1],this.data.parentRect[2],r.view[3]-this.data.parentRect[3]+r.view[1]]),i=a[0]+this.data.parentRect[2]-this.data.parentRect[0],s=a[1];return this.container.style.transformOrigin=`${-i}px ${-s}px`,this.container.style.left=`${i}px`,this.container.style.top=`${s}px`,this.container.appendChild(n.render()),this.container}}class w{constructor(e){this.container=e.container,this.trigger=e.trigger,this.color=e.color,this.titleObj=e.titleObj,this.modificationDate=e.modificationDate,this.contentsObj=e.contentsObj,this.richText=e.richText,this.hideWrapper=e.hideWrapper||!1,this.pinned=!1}render(){const e=document.createElement("div");e.className="popupWrapper",this.hideElement=this.hideWrapper?e:this.container,this.hideElement.hidden=!0;const t=document.createElement("div");t.className="popup";const n=this.color;if(n){const e=.7*(255-n[0])+n[0],r=.7*(255-n[1])+n[1],a=.7*(255-n[2])+n[2];t.style.backgroundColor=o.Util.makeHexColor(0|e,0|r,0|a)}const a=document.createElement("h1");a.dir=this.titleObj.dir,a.textContent=this.titleObj.str,t.appendChild(a);const i=r.PDFDateString.toDateObject(this.modificationDate);if(i){const e=document.createElement("span");e.className="popupDate",e.textContent="{{date}}, {{time}}",e.dataset.l10nId="annotation_date_string",e.dataset.l10nArgs=JSON.stringify({date:i.toLocaleDateString(),time:i.toLocaleTimeString()}),t.appendChild(e)}if(!this.richText?.str||this.contentsObj?.str&&this.contentsObj.str!==this.richText.str){const e=this._formatContents(this.contentsObj);t.appendChild(e)}else s.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:t}),t.lastChild.className="richText popupContent";Array.isArray(this.trigger)||(this.trigger=[this.trigger]);for(const e of this.trigger)e.addEventListener("click",this._toggle.bind(this)),e.addEventListener("mouseover",this._show.bind(this,!1)),e.addEventListener("mouseout",this._hide.bind(this,!1));return t.addEventListener("click",this._hide.bind(this,!0)),e.appendChild(t),e}_formatContents({str:e,dir:t}){const n=document.createElement("p");n.className="popupContent",n.dir=t;const o=e.split(/(?:\r\n?|\n)/);for(let e=0,t=o.length;e{function n(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void 0,t.ColorConverters=class{static CMYK_G([e,t,n,o]){return["G",1-Math.min(1,.3*e+.59*n+.11*t+o)]}static G_CMYK([e]){return["CMYK",0,0,0,1-e]}static G_RGB([e]){return["RGB",e,e,e]}static G_HTML([e]){const t=n(e);return`#${t}${t}${t}`}static RGB_G([e,t,n]){return["G",.3*e+.59*t+.11*n]}static RGB_HTML([e,t,o]){return`#${n(e)}${n(t)}${n(o)}`}static T_HTML(){return"#00000000"}static CMYK_RGB([e,t,n,o]){return["RGB",1-Math.min(1,e+o),1-Math.min(1,n+o),1-Math.min(1,t+o)]}static CMYK_HTML(e){return this.RGB_HTML(this.CMYK_RGB(e))}static RGB_CMYK([e,t,n]){const o=1-e,r=1-t,a=1-n;return["CMYK",o,r,a,Math.min(o,r,a)]}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0;var o=n(18);t.XfaLayer=class{static setupStorage(e,t,n,o,r){const a=o.getValue(t,{value:null});switch(n.name){case"textarea":if(null!==a.value&&(e.textContent=a.value),"print"===r)break;e.addEventListener("input",(e=>{o.setValue(t,{value:e.target.value})}));break;case"input":if("radio"===n.attributes.type||"checkbox"===n.attributes.type){if(a.value===n.attributes.xfaOn?e.setAttribute("checked",!0):a.value===n.attributes.xfaOff&&e.removeAttribute("checked"),"print"===r)break;e.addEventListener("change",(e=>{o.setValue(t,{value:e.target.checked?e.target.getAttribute("xfaOn"):e.target.getAttribute("xfaOff")})}))}else{if(null!==a.value&&e.setAttribute("value",a.value),"print"===r)break;e.addEventListener("input",(e=>{o.setValue(t,{value:e.target.value})}))}break;case"select":if(null!==a.value)for(const e of n.children)e.attributes.value===a.value&&(e.attributes.selected=!0);e.addEventListener("input",(e=>{const n=e.target.options,r=-1===n.selectedIndex?"":n[n.selectedIndex].value;o.setValue(t,{value:r})}))}}static setAttributes({html:e,element:t,storage:n=null,intent:o,linkService:r}){const{attributes:a}=t,i=e instanceof HTMLAnchorElement;"radio"===a.type&&(a.name=`${a.name}-${o}`);for(const[t,n]of Object.entries(a))if(null!=n&&"dataId"!==t)if("style"!==t)if("textContent"===t)e.textContent=n;else if("class"===t)n.length&&e.setAttribute(t,n.join(" "));else{if(i&&("href"===t||"newWindow"===t))continue;e.setAttribute(t,n)}else Object.assign(e.style,n);i&&r.addLinkAttributes(e,a.href,a.newWindow),n&&a.dataId&&this.setupStorage(e,a.dataId,t,n)}static render(e){const t=e.annotationStorage,n=e.linkService,r=e.xfaHtml,a=e.intent||"display",i=document.createElement(r.name);r.attributes&&this.setAttributes({html:i,element:r,intent:a,linkService:n});const s=[[r,-1,i]],l=e.div;if(l.appendChild(i),e.viewport){const t=`matrix(${e.viewport.transform.join(",")})`;l.style.transform=t}"richText"!==a&&l.setAttribute("class","xfaLayer xfaFont");const c=[];for(;s.length>0;){const[e,r,i]=s[s.length-1];if(r+1===e.children.length){s.pop();continue}const l=e.children[++s[s.length-1][1]];if(null===l)continue;const{name:u}=l;if("#text"===u){const e=document.createTextNode(l.value);c.push(e),i.appendChild(e);continue}let d;if(d=l?.attributes?.xmlns?document.createElementNS(l.attributes.xmlns,u):document.createElement(u),i.appendChild(d),l.attributes&&this.setAttributes({html:d,element:l,storage:t,intent:a,linkService:n}),l.children&&l.children.length>0)s.push([l,-1,d]);else if(l.value){const e=document.createTextNode(l.value);o.XfaText.shouldBuildText(u)&&c.push(e),d.appendChild(e)}}for(const e of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))e.setAttribute("readOnly",!0);return{textDivs:c}}static update(e){const t=`matrix(${e.viewport.transform.join(",")})`;e.div.style.transform=t,e.div.hidden=!1}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.renderTextLayer=function(e){const t=new d({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});return t._render(e.timeout),t};var o=n(1);const r=30,a=new Map,i=/^\s+$/g;function s(e,t,n,s){const l=document.createElement("span"),c=e._enhanceTextSelection?{angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1}:{angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL};e._textDivs.push(l);const u=o.Util.transform(e._viewport.transform,t.transform);let d=Math.atan2(u[1],u[0]);const p=n[t.fontName];p.vertical&&(d+=Math.PI/2);const h=Math.hypot(u[2],u[3]),f=h*function(e,t){const n=a.get(e);if(n)return n;t.save(),t.font=`30px ${e}`;const o=t.measureText("");let i=o.fontBoundingBoxAscent,s=Math.abs(o.fontBoundingBoxDescent);if(i){t.restore();const n=i/(i+s);return a.set(e,n),n}t.strokeStyle="red",t.clearRect(0,0,r,r),t.strokeText("g",0,0);let l=t.getImageData(0,0,r,r).data;s=0;for(let e=l.length-1-3;e>=0;e-=4)if(l[e]>0){s=Math.ceil(e/4/r);break}t.clearRect(0,0,r,r),t.strokeText("A",0,r),l=t.getImageData(0,0,r,r).data,i=0;for(let e=0,t=l.length;e0){i=r-Math.floor(e/4/r);break}if(t.restore(),i){const t=i/(i+s);return a.set(e,t),t}return a.set(e,.8),.8}(p.fontFamily,s);let m,g;0===d?(m=u[4],g=u[5]-f):(m=u[4]+f*Math.sin(d),g=u[5]-f*Math.cos(d)),l.style.left=`${m}px`,l.style.top=`${g}px`,l.style.fontSize=`${h}px`,l.style.fontFamily=p.fontFamily,l.setAttribute("role","presentation"),l.textContent=t.str,l.dir=t.dir,e._fontInspectorEnabled&&(l.dataset.fontName=t.fontName),0!==d&&(c.angle=d*(180/Math.PI));let b=!1;if(t.str.length>1||e._enhanceTextSelection&&i.test(t.str))b=!0;else if(" "!==t.str&&t.transform[0]!==t.transform[3]){const e=Math.abs(t.transform[0]),n=Math.abs(t.transform[3]);e!==n&&Math.max(e,n)/Math.min(e,n)>1.5&&(b=!0)}if(b&&(p.vertical?c.canvasWidth=t.height*e._viewport.scale:c.canvasWidth=t.width*e._viewport.scale),e._textDivProperties.set(l,c),e._textContentStream&&e._layoutText(l),e._enhanceTextSelection&&c.hasText){let n=1,r=0;0!==d&&(n=Math.cos(d),r=Math.sin(d));const a=(p.vertical?t.height:t.width)*e._viewport.scale,i=h;let s,c;0!==d?(s=[n,r,-r,n,m,g],c=o.Util.getAxialAlignedBoundingBox([0,0,a,i],s)):c=[m,g,m+a,g+i],e._bounds.push({left:c[0],top:c[1],right:c[2],bottom:c[3],div:l,size:[a,i],m:s})}}function l(e){if(e._canceled)return;const t=e._textDivs,n=e._capability,o=t.length;if(o>1e5)return e._renderingDone=!0,void n.resolve();if(!e._textContentStream)for(let n=0;n0&&(o=o?Math.min(n,o):n)}return o}function u(e,t){t.sort((function(e,t){return e.x1-t.x1||e.index-t.index}));const n=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];for(const e of t){let t=0;for(;t=0&&n[a].start>=e.y2;)a--;let i,s,l=-1/0;for(i=t;i<=a;i++){let t;o=n[i],r=o.boundary,t=r.x2>e.x1?r.index>e.index?r.x1New:e.x1:void 0===r.x2New?(r.x2+e.x1)/2:r.x2New,t>l&&(l=t)}for(e.x1New=l,i=t;i<=a;i++)o=n[i],r=o.boundary,void 0===r.x2New?r.x2>e.x1?r.index>e.index&&(r.x2New=r.x2):r.x2New=l:r.x2New>l&&(r.x2New=Math.max(l,r.x2));const c=[];let u=null;for(i=t;i<=a;i++){o=n[i],r=o.boundary;const t=r.x2>e.x2?r:e;u===t?c[c.length-1].end=o.end:(c.push({start:o.start,end:o.end,boundary:t}),u=t)}for(n[t].start=0&&n[s].start>=r.y1;s--)e=n[s].boundary===r;for(s=a+1;!e&&s{this._enhanceTextSelection||(this._textDivProperties=null),this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)})).catch((()=>{}))}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new o.AbortException("TextLayer task cancelled.")).catch((()=>{})),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))}_processItems(e,t){for(let n=0,o=e.length;n0){const e=t.canvasWidth/a;this._enhanceTextSelection&&(t.scale=e),n=`scaleX(${e})`}}if(0!==t.angle&&(n=`rotate(${t.angle}deg) ${n}`),n.length>0&&(this._enhanceTextSelection&&(t.originalTransform=n),e.style.transform=n),t.hasText&&this._container.appendChild(e),t.hasEOL){const e=document.createElement("br");e.setAttribute("role","presentation"),this._container.appendChild(e)}}_render(e=0){const t=(0,o.createPromiseCapability)();let n=Object.create(null);const a=this._document.createElement("canvas");if(a.height=a.width=r,this._layoutTextCtx=a.getContext("2d",{alpha:!1}),this._textContent){const e=this._textContent.items,n=this._textContent.styles;this._processItems(e,n),t.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');{const e=()=>{this._reader.read().then((({value:o,done:r})=>{r?t.resolve():(Object.assign(n,o.styles),this._processItems(o.items,n),e())}),t.reject)};this._reader=this._textContentStream.getReader(),e()}}t.promise.then((()=>{n=null,e?this._renderTimer=setTimeout((()=>{l(this),this._renderTimer=null}),e):l(this)}),this._capability.reject)}expandTextDivs(e=!1){if(!this._enhanceTextSelection||!this._renderingDone)return;null!==this._bounds&&(function(e){const t=e._bounds,n=e._viewport,r=function(e,t,n){const o=n.map((function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}}));u(e,o);const r=new Array(n.length);for(const e of o){const t=e.index;r[t]={left:e.x1New,top:0,right:e.x2New,bottom:0}}n.map((function(t,n){const a=r[n],i=o[n];i.x1=t.top,i.y1=e-a.right,i.x2=t.bottom,i.y2=e-a.left,i.index=n,i.x1New=void 0,i.x2New=void 0})),u(t,o);for(const e of o){const t=e.index;r[t].top=e.x1New,r[t].bottom=e.x2New}return r}(n.width,n.height,t);for(let n=0;n0?(n.push(`${a.paddingTop}px`),t.push(`translateY(${-a.paddingTop}px)`)):n.push(0),a.paddingRight>0?n.push(a.paddingRight/a.scale+"px"):n.push(0),a.paddingBottom>0?n.push(`${a.paddingBottom}px`):n.push(0),a.paddingLeft>0?(n.push(a.paddingLeft/a.scale+"px"),t.push(`translateX(${-a.paddingLeft/a.scale}px)`)):n.push(0),r.style.padding=n.join(" "),t.length&&(r.style.transform=t.join(" "))):(r.style.padding=null,r.style.transform=a.originalTransform))}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var o=n(1),r=n(5),a=n(3);let i=class{constructor(){(0,o.unreachable)("Not implemented: SVGGraphics")}};t.SVGGraphics=i;{const s={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},l="http://www.w3.org/XML/1998/namespace",c="http://www.w3.org/1999/xlink",u=["butt","round","square"],d=["miter","round","bevel"],p=function(e,t="",n=!1){if(URL.createObjectURL&&"undefined"!=typeof Blob&&!n)return URL.createObjectURL(new Blob([e],{type:t}));const o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let r=`data:${t};base64,`;for(let t=0,n=e.length;t>2]+o[(3&a)<<4|i>>4]+o[t+1>6:64]+o[t+2>1&2147483647:n>>1&2147483647;t[e]=n}function n(e,n,o,r){let a=r;const i=n.length;o[a]=i>>24&255,o[a+1]=i>>16&255,o[a+2]=i>>8&255,o[a+3]=255&i,a+=4,o[a]=255&e.charCodeAt(0),o[a+1]=255&e.charCodeAt(1),o[a+2]=255&e.charCodeAt(2),o[a+3]=255&e.charCodeAt(3),a+=4,o.set(n,a),a+=n.length;const s=function(e,n,o){let r=-1;for(let a=n;a>>8^t[n]}return-1^r}(o,r+4,a);o[a]=s>>24&255,o[a+1]=s>>16&255,o[a+2]=s>>8&255,o[a+3]=255&s}function r(e){let t=e.length;const n=65535,o=Math.ceil(t/n),r=new Uint8Array(2+t+5*o+4);let a=0;r[a++]=120,r[a++]=156;let i=0;for(;t>n;)r[a++]=0,r[a++]=255,r[a++]=255,r[a++]=0,r[a++]=0,r.set(e.subarray(i,i+n),a),a+=n,i+=n,t-=n;r[a++]=1,r[a++]=255&t,r[a++]=t>>8&255,r[a++]=255&~t,r[a++]=(65535&~t)>>8&255,r.set(e.subarray(i),a),a+=e.length-i;const s=function(e,t,n){let o=1,r=0;for(let t=0;t>24&255,r[a++]=s>>16&255,r[a++]=s>>8&255,r[a++]=255&s,r}return function(t,i,s){return function(t,i,s,l){const c=t.width,u=t.height;let d,h,f;const m=t.data;switch(i){case o.ImageKind.GRAYSCALE_1BPP:h=0,d=1,f=c+7>>3;break;case o.ImageKind.RGB_24BPP:h=2,d=8,f=3*c;break;case o.ImageKind.RGBA_32BPP:h=6,d=8,f=4*c;break;default:throw new Error("invalid format")}const g=new Uint8Array((1+f)*u);let b=0,v=0;for(let e=0;e>24&255,c>>16&255,c>>8&255,255&c,u>>24&255,u>>16&255,u>>8&255,255&u,d,h,0,0,0]),_=function(e){if(!a.isNodeJS)return r(e);try{let t;t=parseInt(process.versions.node)>=8?e:Buffer.from(e);const n=__webpack_require__(2258).deflateSync(t,{level:9});return n instanceof Uint8Array?n:new Uint8Array(n)}catch(e){(0,o.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+e)}return r(e)}(g),k=e.length+36+y.length+_.length,w=new Uint8Array(k);let x=0;return w.set(e,x),x+=e.length,n("IHDR",y,w,x),x+=12+y.length,n("IDATA",_,w,x),x+=12+_.length,n("IEND",new Uint8Array(0),w,x),p(w,"image/png",s)}(t,void 0===t.kind?o.ImageKind.GRAYSCALE_1BPP:t.kind,i,s)}}();class f{constructor(){this.fontSizeScale=1,this.fontWeight=s.fontWeight,this.fontSize=0,this.textMatrix=o.IDENTITY_MATRIX,this.fontMatrix=o.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=o.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=s.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(e,t){this.x=e,this.y=t}}function m(e){let t=[];const n=[];for(const o of e)"save"!==o.fn?"restore"===o.fn?t=n.pop():t.push(o):(t.push({fnId:92,fn:"group",items:[]}),n.push(t),t=t[t.length-1].items);return t}function g(e){if(Number.isInteger(e))return e.toString();const t=e.toFixed(10);let n=t.length-1;if("0"!==t[n])return t;do{n--}while("0"===t[n]);return t.substring(0,"."===t[n]?n:n+1)}function b(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":`scale(${g(e[0])} ${g(e[3])})`;if(e[0]===e[3]&&e[1]===-e[2])return`rotate(${g(180*Math.acos(e[0])/Math.PI)})`}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return`translate(${g(e[4])} ${g(e[5])})`;return`matrix(${g(e[0])} ${g(e[1])} ${g(e[2])} ${g(e[3])} ${g(e[4])} ${g(e[5])})`}let v=0,y=0,_=0;t.SVGGraphics=i=class{constructor(e,t,n=!1){this.svgFactory=new r.DOMSVGFactory,this.current=new f,this.transformMatrix=o.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!n,this._operatorIdMapping=[];for(const e in o.OPS)this._operatorIdMapping[o.OPS[e]]=e}save(){this.transformStack.push(this.transformMatrix);const e=this.current;this.extraStack.push(e),this.current=e.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(e){this.save(),this.executeOpTree(e),this.restore()}loadDependencies(e){const t=e.fnArray,n=e.argsArray;for(let e=0,r=t.length;e{e.get(t,n)}));this.current.dependencies.push(n)}return Promise.all(this.current.dependencies)}transform(e,t,n,r,a,i){const s=[e,t,n,r,a,i];this.transformMatrix=o.Util.transform(this.transformMatrix,s),this.tgrp=null}getSVG(e,t){this.viewport=t;const n=this._initialize(t);return this.loadDependencies(e).then((()=>(this.transformMatrix=o.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(e)),n)))}convertOpList(e){const t=this._operatorIdMapping,n=e.argsArray,o=e.fnArray,r=[];for(let e=0,a=o.length;e0&&(this.current.lineWidth=e)}setLineCap(e){this.current.lineCap=u[e]}setLineJoin(e){this.current.lineJoin=d[e]}setMiterLimit(e){this.current.miterLimit=e}setStrokeAlpha(e){this.current.strokeAlpha=e}setStrokeRGBColor(e,t,n){this.current.strokeColor=o.Util.makeHexColor(e,t,n)}setFillAlpha(e){this.current.fillAlpha=e}setFillRGBColor(e,t,n){this.current.fillColor=o.Util.makeHexColor(e,t,n),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(e){this.current.strokeColor=this._makeColorN_Pattern(e)}setFillColorN(e){this.current.fillColor=this._makeColorN_Pattern(e)}shadingFill(e){const t=this.viewport.width,n=this.viewport.height,r=o.Util.inverseTransform(this.transformMatrix),a=o.Util.applyTransform([0,0],r),i=o.Util.applyTransform([0,n],r),s=o.Util.applyTransform([t,0],r),l=o.Util.applyTransform([t,n],r),c=Math.min(a[0],i[0],s[0],l[0]),u=Math.min(a[1],i[1],s[1],l[1]),d=Math.max(a[0],i[0],s[0],l[0]),p=Math.max(a[1],i[1],s[1],l[1]),h=this.svgFactory.createElement("svg:rect");h.setAttributeNS(null,"x",c),h.setAttributeNS(null,"y",u),h.setAttributeNS(null,"width",d-c),h.setAttributeNS(null,"height",p-u),h.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&h.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(h)}_makeColorN_Pattern(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}_makeTilingPattern(e){const t=e[1],n=e[2],r=e[3]||o.IDENTITY_MATRIX,[a,i,s,l]=e[4],c=e[5],u=e[6],d=e[7],p="shading"+_++,[h,f,m,g]=o.Util.normalizeRect([...o.Util.applyTransform([a,i],r),...o.Util.applyTransform([s,l],r)]),[b,v]=o.Util.singularValueDecompose2dScale(r),y=c*b,k=u*v,w=this.svgFactory.createElement("svg:pattern");w.setAttributeNS(null,"id",p),w.setAttributeNS(null,"patternUnits","userSpaceOnUse"),w.setAttributeNS(null,"width",y),w.setAttributeNS(null,"height",k),w.setAttributeNS(null,"x",`${h}`),w.setAttributeNS(null,"y",`${f}`);const x=this.svg,S=this.transformMatrix,A=this.current.fillColor,C=this.current.strokeColor,T=this.svgFactory.create(m-h,g-f);if(this.svg=T,this.transformMatrix=r,2===d){const e=o.Util.makeHexColor(...t);this.current.fillColor=e,this.current.strokeColor=e}return this.executeOpTree(this.convertOpList(n)),this.svg=x,this.transformMatrix=S,this.current.fillColor=A,this.current.strokeColor=C,w.appendChild(T.childNodes[0]),this.defs.appendChild(w),`url(#${p})`}_makeShadingPattern(e){switch("string"==typeof e&&(e=this.objs.get(e)),e[0]){case"RadialAxial":const t="shading"+_++,n=e[3];let r;switch(e[1]){case"axial":const n=e[4],o=e[5];r=this.svgFactory.createElement("svg:linearGradient"),r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),r.setAttributeNS(null,"x1",n[0]),r.setAttributeNS(null,"y1",n[1]),r.setAttributeNS(null,"x2",o[0]),r.setAttributeNS(null,"y2",o[1]);break;case"radial":const a=e[4],i=e[5],s=e[6],l=e[7];r=this.svgFactory.createElement("svg:radialGradient"),r.setAttributeNS(null,"id",t),r.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),r.setAttributeNS(null,"cx",i[0]),r.setAttributeNS(null,"cy",i[1]),r.setAttributeNS(null,"r",l),r.setAttributeNS(null,"fx",a[0]),r.setAttributeNS(null,"fy",a[1]),r.setAttributeNS(null,"fr",s);break;default:throw new Error(`Unknown RadialAxial type: ${e[1]}`)}for(const e of n){const t=this.svgFactory.createElement("svg:stop");t.setAttributeNS(null,"offset",e[0]),t.setAttributeNS(null,"stop-color",e[1]),r.appendChild(t)}return this.defs.appendChild(r),`url(#${t})`;case"Mesh":return(0,o.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${e[0]}`)}}setDash(e,t){this.current.dashArray=e,this.current.dashPhase=t}constructPath(e,t){const n=this.current;let r=n.x,a=n.y,i=[],s=0;for(const n of e)switch(0|n){case o.OPS.rectangle:r=t[s++],a=t[s++];const e=r+t[s++],n=a+t[s++];i.push("M",g(r),g(a),"L",g(e),g(a),"L",g(e),g(n),"L",g(r),g(n),"Z");break;case o.OPS.moveTo:r=t[s++],a=t[s++],i.push("M",g(r),g(a));break;case o.OPS.lineTo:r=t[s++],a=t[s++],i.push("L",g(r),g(a));break;case o.OPS.curveTo:r=t[s+4],a=t[s+5],i.push("C",g(t[s]),g(t[s+1]),g(t[s+2]),g(t[s+3]),g(r),g(a)),s+=6;break;case o.OPS.curveTo2:i.push("C",g(r),g(a),g(t[s]),g(t[s+1]),g(t[s+2]),g(t[s+3])),r=t[s+2],a=t[s+3],s+=4;break;case o.OPS.curveTo3:r=t[s+2],a=t[s+3],i.push("C",g(t[s]),g(t[s+1]),g(r),g(a),g(r),g(a)),s+=4;break;case o.OPS.closePath:i.push("Z")}i=i.join(" "),n.path&&e.length>0&&e[0]!==o.OPS.rectangle&&e[0]!==o.OPS.moveTo?i=n.path.getAttributeNS(null,"d")+i:(n.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(n.path)),n.path.setAttributeNS(null,"d",i),n.path.setAttributeNS(null,"fill","none"),n.element=n.path,n.setCurrentPoint(r,a)}endPath(){const e=this.current;if(e.path=null,!this.pendingClip)return;if(!e.element)return void(this.pendingClip=null);const t="clippath"+v++,n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",t),n.setAttributeNS(null,"transform",b(this.transformMatrix));const o=e.element.cloneNode(!0);if("evenodd"===this.pendingClip?o.setAttributeNS(null,"clip-rule","evenodd"):o.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,n.appendChild(o),this.defs.appendChild(n),e.activeClipUrl){e.clipGroup=null;for(const e of this.extraStack)e.clipGroup=null;n.setAttributeNS(null,"clip-path",e.activeClipUrl)}e.activeClipUrl=`url(#${t})`,this.tgrp=null}clip(e){this.pendingClip=e}closePath(){const e=this.current;if(e.path){const t=`${e.path.getAttributeNS(null,"d")}Z`;e.path.setAttributeNS(null,"d",t)}}setLeading(e){this.current.leading=-e}setTextRise(e){this.current.textRise=e}setTextRenderingMode(e){this.current.textRenderingMode=e}setHScale(e){this.current.textHScale=e/100}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,n]of e)switch(t){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n);break;case"CA":this.setStrokeAlpha(n);break;case"ca":this.setFillAlpha(n);break;default:(0,o.warn)(`Unimplemented graphic state operator ${t}`)}}fill(){const e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}stroke(){const e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(e,t=1){const n=this.current;let o=n.dashArray;1!==t&&o.length>0&&(o=o.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",n.strokeColor),e.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",g(n.miterLimit)),e.setAttributeNS(null,"stroke-linecap",n.lineCap),e.setAttributeNS(null,"stroke-linejoin",n.lineJoin),e.setAttributeNS(null,"stroke-width",g(t*n.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",o.map(g).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",g(t*n.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(e)}paintImageXObject(e){const t=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);t?this.paintInlineImageXObject(t):(0,o.warn)(`Dependent image with object ID ${e} is not ready yet`)}paintInlineImageXObject(e,t){const n=e.width,o=e.height,r=h(e,this.forceDataSchema,!!t),a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",g(n)),a.setAttributeNS(null,"height",g(o)),this.current.element=a,this.clip("nonzero");const i=this.svgFactory.createElement("svg:image");i.setAttributeNS(c,"xlink:href",r),i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y",g(-o)),i.setAttributeNS(null,"width",g(n)+"px"),i.setAttributeNS(null,"height",g(o)+"px"),i.setAttributeNS(null,"transform",`scale(${g(1/n)} ${g(-1/o)})`),t?t.appendChild(i):this._ensureTransformGroup().appendChild(i)}paintImageMaskXObject(e){const t=this.current,n=e.width,o=e.height,r=t.fillColor;t.maskId="mask"+y++;const a=this.svgFactory.createElement("svg:mask");a.setAttributeNS(null,"id",t.maskId);const i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y","0"),i.setAttributeNS(null,"width",g(n)),i.setAttributeNS(null,"height",g(o)),i.setAttributeNS(null,"fill",r),i.setAttributeNS(null,"mask",`url(#${t.maskId})`),this.defs.appendChild(a),this._ensureTransformGroup().appendChild(i),this.paintInlineImageXObject(e,a)}paintFormXObjectBegin(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){const e=t[2]-t[0],n=t[3]-t[1],o=this.svgFactory.createElement("svg:rect");o.setAttributeNS(null,"x",t[0]),o.setAttributeNS(null,"y",t[1]),o.setAttributeNS(null,"width",g(e)),o.setAttributeNS(null,"height",g(n)),this.current.element=o,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(e){const t=this.svgFactory.create(e.width,e.height),n=this.svgFactory.createElement("svg:defs");t.appendChild(n),this.defs=n;const o=this.svgFactory.createElement("svg:g");return o.setAttributeNS(null,"transform",b(e.transform)),t.appendChild(o),this.svg=o,t}_ensureClipGroup(){if(!this.current.clipGroup){const e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(e),this.current.clipGroup=e}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",b(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var o=n(1),r=n(26);const a=__webpack_require__(172),i=__webpack_require__(2001),s=__webpack_require__(3779),l=__webpack_require__(6558),c=/^file:\/\/\/[a-zA-Z]:\//;t.PDFNodeStream=class{constructor(e){this.source=e,this.url=function(e){const t=l.parse(e);return"file:"===t.protocol||t.host?t:/^[a-z]:[/\\]/i.test(e)?l.parse(`file:///${e}`):(t.host||(t.protocol="file:"),t)}(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,o.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new m(this):new h(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=this.isFsUrl?new g(this,e,t):new f(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class u{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=(0,o.createPromiseCapability)(),this._headersCapability=(0,o.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return null===e?(this._readCapability=(0,o.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new o.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class d{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,o.createPromiseCapability)();const t=e.source;this._isStreamingSupported=!t.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return null===e?(this._readCapability=(0,o.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}function p(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class h extends u{constructor(e){super(e);const t=t=>{if(404===t.statusCode){const e=new o.MissingPDFException(`Missing PDF "${this._url}".`);return this._storedError=e,void this._headersCapability.reject(e)}this._headersCapability.resolve(),this._setReadableStream(t);const n=e=>this._readableStream.headers[e.toLowerCase()],{allowRangeRequests:a,suggestedLength:i}=(0,r.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=i||this._contentLength,this._filename=(0,r.extractFilenameFromHeader)(n)};this._request=null,"http:"===this._url.protocol?this._request=i.request(p(this._url,e.httpHeaders),t):this._request=s.request(p(this._url,e.httpHeaders),t),this._request.on("error",(e=>{this._storedError=e,this._headersCapability.reject(e)})),this._request.end()}}class f extends d{constructor(e,t,n){super(e),this._httpHeaders={};for(const t in e.httpHeaders){const n=e.httpHeaders[t];void 0!==n&&(this._httpHeaders[t]=n)}this._httpHeaders.Range=`bytes=${t}-${n-1}`;const r=e=>{if(404!==e.statusCode)this._setReadableStream(e);else{const e=new o.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=e}};this._request=null,"http:"===this._url.protocol?this._request=i.request(p(this._url,this._httpHeaders),r):this._request=s.request(p(this._url,this._httpHeaders),r),this._request.on("error",(e=>{this._storedError=e})),this._request.end()}}class m extends u{constructor(e){super(e);let t=decodeURIComponent(this._url.path);c.test(this._url.href)&&(t=t.replace(/^\//,"")),a.lstat(t,((e,n)=>{if(e)return"ENOENT"===e.code&&(e=new o.MissingPDFException(`Missing PDF "${t}".`)),this._storedError=e,void this._headersCapability.reject(e);this._contentLength=n.size,this._setReadableStream(a.createReadStream(t)),this._headersCapability.resolve()}))}}class g extends d{constructor(e,t,n){super(e);let o=decodeURIComponent(this._url.path);c.test(this._url.href)&&(o=o.replace(/^\//,"")),this._setReadableStream(a.createReadStream(o,{start:t,end:n-1}))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new o.MissingPDFException('Missing PDF "'+t+'".'):new o.UnexpectedResponseException(`Unexpected server response (${e}) while retrieving PDF "${t}".`,e)},t.extractFilenameFromHeader=function(e){const t=e("Content-Disposition");if(t){let e=(0,r.getFilenameFromContentDispositionHeader)(t);if(e.includes("%"))try{e=decodeURIComponent(e)}catch(e){}if((0,a.isPdfFile)(e))return e}return null},t.validateRangeRequestCapabilities=function({getResponseHeader:e,isHttp:t,rangeChunkSize:n,disableRange:o}){const r={allowRangeRequests:!1,suggestedLength:void 0},a=parseInt(e("Content-Length"),10);return Number.isInteger(a)?(r.suggestedLength=a,a<=2*n||o||!t||"bytes"!==e("Accept-Ranges")||"identity"!==(e("Content-Encoding")||"identity")||(r.allowRangeRequests=!0),r):r},t.validateResponseStatus=function(e){return 200===e||206===e};var o=n(1),r=n(27),a=n(5)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){let t=!0,n=r("filename\\*","i").exec(e);if(n){n=n[1];let e=s(n);return e=unescape(e),e=l(e),e=c(e),i(e)}if(n=function(e){const t=[];let n;const o=r("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(n=o.exec(e));){let[,e,o,r]=n;if(e=parseInt(e,10),e in t){if(0===e)break}else t[e]=[o,r]}const a=[];for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var o=n(1),r=n(26);class a{constructor(e,t={}){this.url=e,this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&t.httpHeaders||Object.create(null),this.withCredentials=t.withCredentials||!1,this.getXhr=t.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,t,n){const o={begin:e,end:t};for(const e in n)o[e]=n[e];return this.request(o)}requestFull(e){return this.request(e)}request(e){const t=this.getXhr(),n=this.currXhrId++,o=this.pendingRequests[n]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(const e in this.httpHeaders){const n=this.httpHeaders[e];void 0!==n&&t.setRequestHeader(e,n)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),o.expectedStatus=206):o.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(n){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,n),t.onprogress=this.onProgress.bind(this,n),o.onHeadersReceived=e.onHeadersReceived,o.onDone=e.onDone,o.onError=e.onError,o.onProgress=e.onProgress,t.send(null),n}onProgress(e,t){const n=this.pendingRequests[e];n&&n.onProgress?.(t)}onStateChange(e,t){const n=this.pendingRequests[e];if(!n)return;const r=n.xhr;if(r.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4!==r.readyState)return;if(!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],0===r.status&&this.isHttp)return void n.onError?.(r.status);const a=r.status||200;if((200!==a||206!==n.expectedStatus)&&a!==n.expectedStatus)return void n.onError?.(r.status);const i=function(e){const t=e.response;return"string"!=typeof t?t:(0,o.stringToBytes)(t).buffer}(r);if(206===a){const e=r.getResponseHeader("Content-Range"),t=/bytes (\d+)-(\d+)\/(\d+)/.exec(e);n.onDone({begin:parseInt(t[1],10),chunk:i})}else i?n.onDone({begin:0,chunk:i}):n.onError?.(r.status)}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){const t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}t.PDFNetworkStream=class{constructor(e){this._source=e,this._manager=new a(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return(0,o.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new i(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){const n=new s(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class i{constructor(e,t){this._manager=e;const n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._fullRequestId=e.requestFull(n),this._headersReceivedCapability=(0,o.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const e=this._fullRequestId,t=this._manager.getRequestXhr(e),n=e=>t.getResponseHeader(e),{allowRangeRequests:o,suggestedLength:a}=(0,r.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});o&&(this._isRangeSupported=!0),this._contentLength=a||this._contentLength,this._filename=(0,r.extractFilenameFromHeader)(n),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=(0,r.createResponseStatusError)(e,this._url),this._headersReceivedCapability.reject(this._storedError);for(const e of this._requests)e.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){this.onProgress?.({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=(0,o.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e);for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class s{constructor(e,t,n){this._manager=e;const o={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._requestId=e.requestRange(t,n,o),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){this.onClosed?.(this)}_onDone(e){const t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError=(0,r.createResponseStatusError)(e,this._url);for(const e of this._requests)e.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){this.isStreamingSupported||this.onProgress?.({loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(null!==this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,o.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var o=n(1),r=n(26);function a(e,t,n){return{method:"GET",headers:e,signal:n?.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function i(e){const t=new Headers;for(const n in e){const o=e[n];void 0!==o&&t.append(n,o)}return t}t.PDFFetchStream=class{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,o.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new s(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new l(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class s{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;const t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=(0,o.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=i(this._stream.httpHeaders);const n=t.url;fetch(n,a(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,r.validateResponseStatus)(e.status))throw(0,r.createResponseStatusError)(e.status,n);this._reader=e.body.getReader(),this._headersCapability.resolve();const t=t=>e.headers.get(t),{allowRangeRequests:a,suggestedLength:i}=(0,r.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=i||this._contentLength,this._filename=(0,r.extractFilenameFromHeader)(t),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new o.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}class l{constructor(e,t,n){this._stream=e,this._reader=null,this._loaded=0;const s=e.source;this._withCredentials=s.withCredentials||!1,this._readCapability=(0,o.createPromiseCapability)(),this._isStreamingSupported=!s.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=i(this._stream.httpHeaders),this._headers.append("Range",`bytes=${t}-${n-1}`);const l=s.url;fetch(l,a(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,r.validateResponseStatus)(e.status))throw(0,r.createResponseStatusError)(e.status,l);this._readCapability.resolve(),this._reader=e.body.getReader()})).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__w_pdfjs_require__),n.exports}var __webpack_exports__={};return(()=>{var e=__webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return r.AnnotationLayer}}),Object.defineProperty(e,"AnnotationMode",{enumerable:!0,get:function(){return t.AnnotationMode}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return t.CMapCompressionType}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return a.GlobalWorkerOptions}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return t.InvalidPDFException}}),Object.defineProperty(e,"LoopbackPort",{enumerable:!0,get:function(){return n.LoopbackPort}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return t.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return t.OPS}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return n.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return o.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return n.PDFWorker}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return t.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return t.PermissionFlag}}),Object.defineProperty(e,"PixelsPerInch",{enumerable:!0,get:function(){return o.PixelsPerInch}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return o.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return l.SVGGraphics}}),Object.defineProperty(e,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return t.UNSUPPORTED_FEATURES}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return t.UnexpectedResponseException}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return t.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return t.VerbosityLevel}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return c.XfaLayer}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return n.build}}),Object.defineProperty(e,"createPromiseCapability",{enumerable:!0,get:function(){return t.createPromiseCapability}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return n.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return o.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return o.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return o.getXfaPageViewport}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return o.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return o.loadScript}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return s.renderTextLayer}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return t.shadow}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return n.version}});var t=__w_pdfjs_require__(1),n=__w_pdfjs_require__(4),o=__w_pdfjs_require__(5),r=__w_pdfjs_require__(20),a=__w_pdfjs_require__(13),i=__w_pdfjs_require__(3),s=__w_pdfjs_require__(23),l=__w_pdfjs_require__(24),c=__w_pdfjs_require__(22);if(i.isNodeJS){const{PDFNodeStream:e}=__w_pdfjs_require__(25);(0,n.setPDFNetworkStreamFactory)((t=>new e(t)))}else{const{PDFNetworkStream:e}=__w_pdfjs_require__(28),{PDFFetchStream:t}=__w_pdfjs_require__(29);(0,n.setPDFNetworkStreamFactory)((n=>(0,o.isValidFetchUrl)(n.url)?new t(n):new e(n)))}})(),__webpack_exports__})(),module.exports=factory()},5088:(e,t,n)=>{"use strict";n.r(t),n.d(t,{animateFill:()=>ne,createSingleton:()=>Q,default:()=>ue,delegate:()=>te,followCursor:()=>ie,hideAll:()=>X,inlinePositioning:()=>se,roundArrow:()=>a,sticky:()=>le});var o=n(804),r=n(7824),a='',i="tippy-content",s="tippy-backdrop",l="tippy-arrow",c="tippy-svg-arrow",u={passive:!0,capture:!0},d=function(){return document.body};function p(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?Array.isArray(n)?n[t]:n:o}return e}function h(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function f(e,t){return"function"==typeof e?e.apply(void 0,t):e}function m(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout((function(){e(o)}),t)};var n}function g(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}function b(e){return[].concat(e)}function v(e,t){-1===e.indexOf(t)&&e.push(t)}function y(e){return e.split("-")[0]}function _(e){return[].slice.call(e)}function k(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function w(){return document.createElement("div")}function x(e){return["Element","Fragment"].some((function(t){return h(e,t)}))}function S(e){return h(e,"MouseEvent")}function A(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function C(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function T(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function E(e){var t,n=b(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function O(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[o](t,n)}))}function P(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var D={isTouch:!1},M=0;function L(){D.isTouch||(D.isTouch=!0,window.performance&&document.addEventListener("mousemove",R))}function R(){var e=performance.now();e-M<20&&(D.isTouch=!1,document.removeEventListener("mousemove",R)),M=e}function I(){var e=document.activeElement;if(A(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var F=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),N=Object.assign({appendTo:d,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),j=Object.keys(N);function $(e){var t=(e.plugins||[]).reduce((function(t,n){var o,r=n.name,a=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:null!=(o=N[r])?o:a),t}),{});return Object.assign({},e,t)}function U(e,t){var n=Object.assign({},t,{content:f(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys($(Object.assign({},N,{plugins:t}))):j).reduce((function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},N.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function q(e,t){e.innerHTML=t}function B(e){var t=w();return!0===e?t.className=l:(t.className=c,x(e)?t.appendChild(e):q(t,e)),t}function z(e,t){x(t.content)?(q(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?q(e,t.content):e.textContent=t.content)}function V(e){var t=e.firstElementChild,n=_(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(i)})),arrow:n.find((function(e){return e.classList.contains(l)||e.classList.contains(c)})),backdrop:n.find((function(e){return e.classList.contains(s)}))}}function H(e){var t=w(),n=w();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=w();function r(n,o){var r=V(t),a=r.box,i=r.content,s=r.arrow;o.theme?a.setAttribute("data-theme",o.theme):a.removeAttribute("data-theme"),"string"==typeof o.animation?a.setAttribute("data-animation",o.animation):a.removeAttribute("data-animation"),o.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?a.setAttribute("role",o.role):a.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||z(i,e.props),o.arrow?s?n.arrow!==o.arrow&&(a.removeChild(s),a.appendChild(B(o.arrow))):a.appendChild(B(o.arrow)):s&&a.removeChild(s)}return o.className=i,o.setAttribute("data-state","hidden"),z(o,e.props),t.appendChild(n),n.appendChild(o),r(e.props,e.props),{popper:t,onUpdate:r}}H.$$tippy=!0;var W=1,G=[],Y=[];function J(e,t){var n,r,a,i,s,l,c,h,g=U(e,Object.assign({},N,$(k(t)))),x=!1,A=!1,M=!1,L=!1,R=[],I=m(_e,g.interactiveDebounce),j=W++,q=(h=g.plugins).filter((function(e,t){return h.indexOf(e)===t})),B={id:j,reference:e,popper:w(),popperInstance:null,props:g,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:q,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(a)},setProps:function(t){if(!B.state.isDestroyed){ie("onBeforeUpdate",[B,t]),ve();var n=B.props,o=U(e,Object.assign({},n,k(t),{ignoreAttributes:!0}));B.props=o,be(),n.interactiveDebounce!==o.interactiveDebounce&&(ce(),I=m(_e,o.interactiveDebounce)),n.triggerTarget&&!o.triggerTarget?b(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):o.triggerTarget&&e.removeAttribute("aria-expanded"),le(),ae(),J&&J(n,o),B.popperInstance&&(Se(),Ce().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),ie("onAfterUpdate",[B,t])}},setContent:function(e){B.setProps({content:e})},show:function(){var e=B.state.isVisible,t=B.state.isDestroyed,n=!B.state.isEnabled,o=D.isTouch&&!B.props.touch,r=p(B.props.duration,0,N.duration);if(!(e||t||n||o||te().hasAttribute("disabled")||(ie("onShow",[B],!1),!1===B.props.onShow(B)))){if(B.state.isVisible=!0,ee()&&(H.style.visibility="visible"),ae(),he(),B.state.isMounted||(H.style.transition="none"),ee()){var a=oe();C([a.box,a.content],0)}var i,s,c;l=function(){var e;if(B.state.isVisible&&!L){if(L=!0,H.offsetHeight,H.style.transition=B.props.moveTransition,ee()&&B.props.animation){var t=oe(),n=t.box,o=t.content;C([n,o],r),T([n,o],"visible")}se(),le(),v(Y,B),null==(e=B.popperInstance)||e.forceUpdate(),ie("onMount",[B]),B.props.animation&&ee()&&function(e,t){me(e,(function(){B.state.isShown=!0,ie("onShown",[B])}))}(r)}},s=B.props.appendTo,c=te(),(i=B.props.interactive&&s===d||"parent"===s?c.parentNode:f(s,[c])).contains(H)||i.appendChild(H),B.state.isMounted=!0,Se()}},hide:function(){var e=!B.state.isVisible,t=B.state.isDestroyed,n=!B.state.isEnabled,o=p(B.props.duration,1,N.duration);if(!(e||t||n)&&(ie("onHide",[B],!1),!1!==B.props.onHide(B))){if(B.state.isVisible=!1,B.state.isShown=!1,L=!1,x=!1,ee()&&(H.style.visibility="hidden"),ce(),fe(),ae(!0),ee()){var r=oe(),a=r.box,i=r.content;B.props.animation&&(C([a,i],o),T([a,i],"hidden"))}se(),le(),B.props.animation?ee()&&function(e,t){me(e,(function(){!B.state.isVisible&&H.parentNode&&H.parentNode.contains(H)&&t()}))}(o,B.unmount):B.unmount()}},hideWithInteractivity:function(e){ne().addEventListener("mousemove",I),v(G,I),I(e)},enable:function(){B.state.isEnabled=!0},disable:function(){B.hide(),B.state.isEnabled=!1},unmount:function(){B.state.isVisible&&B.hide(),B.state.isMounted&&(Ae(),Ce().forEach((function(e){e._tippy.unmount()})),H.parentNode&&H.parentNode.removeChild(H),Y=Y.filter((function(e){return e!==B})),B.state.isMounted=!1,ie("onHidden",[B]))},destroy:function(){B.state.isDestroyed||(B.clearDelayTimeouts(),B.unmount(),ve(),delete e._tippy,B.state.isDestroyed=!0,ie("onDestroy",[B]))}};if(!g.render)return B;var z=g.render(B),H=z.popper,J=z.onUpdate;H.setAttribute("data-tippy-root",""),H.id="tippy-"+B.id,B.popper=H,e._tippy=B,H._tippy=B;var Z=q.map((function(e){return e.fn(B)})),X=e.hasAttribute("aria-expanded");return be(),le(),ae(),ie("onCreate",[B]),g.showOnCreate&&Te(),H.addEventListener("mouseenter",(function(){B.props.interactive&&B.state.isVisible&&B.clearDelayTimeouts()})),H.addEventListener("mouseleave",(function(){B.props.interactive&&B.props.trigger.indexOf("mouseenter")>=0&&ne().addEventListener("mousemove",I)})),B;function K(){var e=B.props.touch;return Array.isArray(e)?e:[e,0]}function Q(){return"hold"===K()[0]}function ee(){var e;return!(null==(e=B.props.render)||!e.$$tippy)}function te(){return c||e}function ne(){var e=te().parentNode;return e?E(e):document}function oe(){return V(H)}function re(e){return B.state.isMounted&&!B.state.isVisible||D.isTouch||i&&"focus"===i.type?0:p(B.props.delay,e?0:1,N.delay)}function ae(e){void 0===e&&(e=!1),H.style.pointerEvents=B.props.interactive&&!e?"":"none",H.style.zIndex=""+B.props.zIndex}function ie(e,t,n){var o;void 0===n&&(n=!0),Z.forEach((function(n){n[e]&&n[e].apply(n,t)})),n&&(o=B.props)[e].apply(o,t)}function se(){var t=B.props.aria;if(t.content){var n="aria-"+t.content,o=H.id;b(B.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(B.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var r=t&&t.replace(o,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function le(){!X&&B.props.aria.expanded&&b(B.props.triggerTarget||e).forEach((function(e){B.props.interactive?e.setAttribute("aria-expanded",B.state.isVisible&&e===te()?"true":"false"):e.removeAttribute("aria-expanded")}))}function ce(){ne().removeEventListener("mousemove",I),G=G.filter((function(e){return e!==I}))}function ue(t){if(!D.isTouch||!M&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!B.props.interactive||!P(H,n)){if(b(B.props.triggerTarget||e).some((function(e){return P(e,n)}))){if(D.isTouch)return;if(B.state.isVisible&&B.props.trigger.indexOf("click")>=0)return}else ie("onClickOutside",[B,t]);!0===B.props.hideOnClick&&(B.clearDelayTimeouts(),B.hide(),A=!0,setTimeout((function(){A=!1})),B.state.isMounted||fe())}}}function de(){M=!0}function pe(){M=!1}function he(){var e=ne();e.addEventListener("mousedown",ue,!0),e.addEventListener("touchend",ue,u),e.addEventListener("touchstart",pe,u),e.addEventListener("touchmove",de,u)}function fe(){var e=ne();e.removeEventListener("mousedown",ue,!0),e.removeEventListener("touchend",ue,u),e.removeEventListener("touchstart",pe,u),e.removeEventListener("touchmove",de,u)}function me(e,t){var n=oe().box;function o(e){e.target===n&&(O(n,"remove",o),t())}if(0===e)return t();O(n,"remove",s),O(n,"add",o),s=o}function ge(t,n,o){void 0===o&&(o=!1),b(B.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,o),R.push({node:e,eventType:t,handler:n,options:o})}))}function be(){var e;Q()&&(ge("touchstart",ye,{passive:!0}),ge("touchend",ke,{passive:!0})),(e=B.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(ge(e,ye),e){case"mouseenter":ge("mouseleave",ke);break;case"focus":ge(F?"focusout":"blur",we);break;case"focusin":ge("focusout",we)}}))}function ve(){R.forEach((function(e){var t=e.node,n=e.eventType,o=e.handler,r=e.options;t.removeEventListener(n,o,r)})),R=[]}function ye(e){var t,n=!1;if(B.state.isEnabled&&!xe(e)&&!A){var o="focus"===(null==(t=i)?void 0:t.type);i=e,c=e.currentTarget,le(),!B.state.isVisible&&S(e)&&G.forEach((function(t){return t(e)})),"click"===e.type&&(B.props.trigger.indexOf("mouseenter")<0||x)&&!1!==B.props.hideOnClick&&B.state.isVisible?n=!0:Te(e),"click"===e.type&&(x=!n),n&&!o&&Ee(e)}}function _e(e){var t=e.target,n=te().contains(t)||H.contains(t);if("mousemove"!==e.type||!n){var o=Ce().concat(H).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:g}:null})).filter(Boolean);(function(e,t){var n=t.clientX,o=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,a=e.props.interactiveBorder,i=y(r.placement),s=r.modifiersData.offset;if(!s)return!0;var l="bottom"===i?s.top.y:0,c="top"===i?s.bottom.y:0,u="right"===i?s.left.x:0,d="left"===i?s.right.x:0,p=t.top-o+l>a,h=o-t.bottom-c>a,f=t.left-n+u>a,m=n-t.right-d>a;return p||h||f||m}))})(o,e)&&(ce(),Ee(e))}}function ke(e){xe(e)||B.props.trigger.indexOf("click")>=0&&x||(B.props.interactive?B.hideWithInteractivity(e):Ee(e))}function we(e){B.props.trigger.indexOf("focusin")<0&&e.target!==te()||B.props.interactive&&e.relatedTarget&&H.contains(e.relatedTarget)||Ee(e)}function xe(e){return!!D.isTouch&&Q()!==e.type.indexOf("touch")>=0}function Se(){Ae();var t=B.props,n=t.popperOptions,r=t.placement,a=t.offset,i=t.getReferenceClientRect,s=t.moveTransition,c=ee()?V(H).arrow:null,u=i?{getBoundingClientRect:i,contextElement:i.contextElement||te()}:e,d=[{name:"offset",options:{offset:a}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(ee()){var n=oe().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];ee()&&c&&d.push({name:"arrow",options:{element:c,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),B.popperInstance=(0,o.fi)(u,H,Object.assign({},n,{placement:r,onFirstUpdate:l,modifiers:d}))}function Ae(){B.popperInstance&&(B.popperInstance.destroy(),B.popperInstance=null)}function Ce(){return _(H.querySelectorAll("[data-tippy-root]"))}function Te(e){B.clearDelayTimeouts(),e&&ie("onTrigger",[B,e]),he();var t=re(!0),o=K(),r=o[0],a=o[1];D.isTouch&&"hold"===r&&a&&(t=a),t?n=setTimeout((function(){B.show()}),t):B.show()}function Ee(e){if(B.clearDelayTimeouts(),ie("onUntrigger",[B,e]),B.state.isVisible){if(!(B.props.trigger.indexOf("mouseenter")>=0&&B.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&x)){var t=re(!1);t?r=setTimeout((function(){B.state.isVisible&&B.hide()}),t):a=requestAnimationFrame((function(){B.hide()}))}}else fe()}}function Z(e,t){void 0===t&&(t={});var n=N.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",L,u),window.addEventListener("blur",I);var o,r=Object.assign({},t,{plugins:n}),a=(o=e,x(o)?[o]:function(e){return h(e,"NodeList")}(o)?_(o):Array.isArray(o)?o:_(document.querySelectorAll(o))).reduce((function(e,t){var n=t&&J(t,r);return n&&e.push(n),e}),[]);return x(e)?a[0]:a}Z.defaultProps=N,Z.setDefaultProps=function(e){Object.keys(e).forEach((function(t){N[t]=e[t]}))},Z.currentInput=D;var X=function(e){var t=void 0===e?{}:e,n=t.exclude,o=t.duration;Y.forEach((function(e){var t=!1;if(n&&(t=A(n)?e.reference===n:e.popper===n.popper),!t){var r=e.props.duration;e.setProps({duration:o}),e.hide(),e.state.isDestroyed||e.setProps({duration:r})}}))},K=Object.assign({},r.Z,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),Q=function(e,t){var n;void 0===t&&(t={});var o,r=e,a=[],i=[],s=t.overrides,l=[],c=!1;function u(){i=r.map((function(e){return b(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function d(){a=r.map((function(e){return e.reference}))}function p(e){r.forEach((function(t){e?t.enable():t.disable()}))}function h(e){return r.map((function(t){var n=t.setProps;return t.setProps=function(r){n(r),t.reference===o&&e.setProps(r)},function(){t.setProps=n}}))}function f(e,t){var n=i.indexOf(t);if(t!==o){o=t;var l=(s||[]).concat("content").reduce((function(e,t){return e[t]=r[n].props[t],e}),{});e.setProps(Object.assign({},l,{getReferenceClientRect:"function"==typeof l.getReferenceClientRect?l.getReferenceClientRect:function(){var e;return null==(e=a[n])?void 0:e.getBoundingClientRect()}}))}}p(!1),d(),u();var m={fn:function(){return{onDestroy:function(){p(!0)},onHidden:function(){o=null},onClickOutside:function(e){e.props.showOnCreate&&!c&&(c=!0,o=null)},onShow:function(e){e.props.showOnCreate&&!c&&(c=!0,f(e,a[0]))},onTrigger:function(e,t){f(e,t.currentTarget)}}}},v=Z(w(),Object.assign({},g(t,["overrides"]),{plugins:[m].concat(t.plugins||[]),triggerTarget:i,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[K])})})),y=v.show;v.show=function(e){if(y(),!o&&null==e)return f(v,a[0]);if(!o||null!=e){if("number"==typeof e)return a[e]&&f(v,a[e]);if(r.indexOf(e)>=0){var t=e.reference;return f(v,t)}return a.indexOf(e)>=0?f(v,e):void 0}},v.showNext=function(){var e=a[0];if(!o)return v.show(0);var t=a.indexOf(o);v.show(a[t+1]||e)},v.showPrevious=function(){var e=a[a.length-1];if(!o)return v.show(e);var t=a.indexOf(o),n=a[t-1]||e;v.show(n)};var _=v.setProps;return v.setProps=function(e){s=e.overrides||s,_(e)},v.setInstances=function(e){p(!0),l.forEach((function(e){return e()})),r=e,p(!1),d(),u(),l=h(v),v.setProps({triggerTarget:i})},l=h(v),v},ee={mouseover:"mouseenter",focusin:"focus",click:"click"};function te(e,t){var n=[],o=[],r=!1,a=t.target,i=g(t,["target"]),s=Object.assign({},i,{trigger:"manual",touch:!1}),l=Object.assign({touch:N.touch},i,{showOnCreate:!0}),c=Z(e,s);function d(e){if(e.target&&!r){var n=e.target.closest(a);if(n){var i=n.getAttribute("data-tippy-trigger")||t.trigger||N.trigger;if(!n._tippy&&!("touchstart"===e.type&&"boolean"==typeof l.touch||"touchstart"!==e.type&&i.indexOf(ee[e.type])<0)){var s=Z(n,l);s&&(o=o.concat(s))}}}}function p(e,t,o,r){void 0===r&&(r=!1),e.addEventListener(t,o,r),n.push({node:e,eventType:t,handler:o,options:r})}return b(c).forEach((function(e){var t=e.destroy,a=e.enable,i=e.disable;e.destroy=function(e){void 0===e&&(e=!0),e&&o.forEach((function(e){e.destroy()})),o=[],n.forEach((function(e){var t=e.node,n=e.eventType,o=e.handler,r=e.options;t.removeEventListener(n,o,r)})),n=[],t()},e.enable=function(){a(),o.forEach((function(e){return e.enable()})),r=!1},e.disable=function(){i(),o.forEach((function(e){return e.disable()})),r=!0},function(e){var t=e.reference;p(t,"touchstart",d,u),p(t,"mouseover",d),p(t,"focusin",d),p(t,"click",d)}(e)})),c}var ne={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(null==(t=e.props.render)||!t.$$tippy)return{};var n=V(e.popper),o=n.box,r=n.content,a=e.props.animateFill?function(){var e=w();return e.className=s,T([e],"hidden"),e}():null;return{onCreate:function(){a&&(o.insertBefore(a,o.firstElementChild),o.setAttribute("data-animatefill",""),o.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(a){var e=o.style.transitionDuration,t=Number(e.replace("ms",""));r.style.transitionDelay=Math.round(t/10)+"ms",a.style.transitionDuration=e,T([a],"visible")}},onShow:function(){a&&(a.style.transitionDuration="0ms")},onHide:function(){a&&T([a],"hidden")}}}},oe={clientX:0,clientY:0},re=[];function ae(e){var t=e.clientX,n=e.clientY;oe={clientX:t,clientY:n}}var ie={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=E(e.props.triggerTarget||t),o=!1,r=!1,a=!0,i=e.props;function s(){return"initial"===e.props.followCursor&&e.state.isVisible}function l(){n.addEventListener("mousemove",d)}function c(){n.removeEventListener("mousemove",d)}function u(){o=!0,e.setProps({getReferenceClientRect:null}),o=!1}function d(n){var o=!n.target||t.contains(n.target),r=e.props.followCursor,a=n.clientX,i=n.clientY,s=t.getBoundingClientRect(),l=a-s.left,c=i-s.top;!o&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=a,o=i;"initial"===r&&(n=e.left+l,o=e.top+c);var s="horizontal"===r?e.top:o,u="vertical"===r?e.right:n,d="horizontal"===r?e.bottom:o,p="vertical"===r?e.left:n;return{width:u-p,height:d-s,top:s,right:u,bottom:d,left:p}}})}function p(){e.props.followCursor&&(re.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",ae)}(n))}function h(){0===(re=re.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",ae)}(n)}return{onCreate:p,onDestroy:h,onBeforeUpdate:function(){i=e.props},onAfterUpdate:function(t,n){var a=n.followCursor;o||void 0!==a&&i.followCursor!==a&&(h(),a?(p(),!e.state.isMounted||r||s()||l()):(c(),u()))},onMount:function(){e.props.followCursor&&!r&&(a&&(d(oe),a=!1),s()||l())},onTrigger:function(e,t){S(t)&&(oe={clientX:t.clientX,clientY:t.clientY}),r="focus"===t.type},onHidden:function(){e.props.followCursor&&(u(),c(),a=!0)}}}},se={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference,o=-1,r=!1,a=[],i={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(r){var i=r.state;e.props.inlinePositioning&&(-1!==a.indexOf(i.placement)&&(a=[]),t!==i.placement&&-1===a.indexOf(i.placement)&&(a.push(i.placement),e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,n,o){if(n.length<2||null===e)return t;if(2===n.length&&o>=0&&n[0].left>n[1].right)return n[o]||t;switch(e){case"top":case"bottom":var r=n[0],a=n[n.length-1],i="top"===e,s=r.top,l=a.bottom,c=i?r.left:a.left,u=i?r.right:a.right;return{top:s,bottom:l,left:c,right:u,width:u-c,height:l-s};case"left":case"right":var d=Math.min.apply(Math,n.map((function(e){return e.left}))),p=Math.max.apply(Math,n.map((function(e){return e.right}))),h=n.filter((function(t){return"left"===e?t.left===d:t.right===p})),f=h[0].top,m=h[h.length-1].bottom;return{top:f,bottom:m,left:d,right:p,width:p-d,height:m-f};default:return t}}(y(e),n.getBoundingClientRect(),_(n.getClientRects()),o)}(i.placement)}})),t=i.placement)}};function s(){var t;r||(t=function(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter((function(e){return e.name!==t.name})),[t])})}}(e.props,i),r=!0,e.setProps(t),r=!1)}return{onCreate:s,onAfterUpdate:s,onTrigger:function(t,n){if(S(n)){var r=_(e.reference.getClientRects()),a=r.find((function(e){return e.left-2<=n.clientX&&e.right+2>=n.clientX&&e.top-2<=n.clientY&&e.bottom+2>=n.clientY})),i=r.indexOf(a);o=i>-1?i:o}},onHidden:function(){o=-1}}}},le={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function o(t){return!0===e.props.sticky||e.props.sticky===t}var r=null,a=null;function i(){var s=o("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,l=o("popper")?n.getBoundingClientRect():null;(s&&ce(r,s)||l&&ce(a,l))&&e.popperInstance&&e.popperInstance.update(),r=s,a=l,e.state.isMounted&&requestAnimationFrame(i)}return{onMount:function(){e.props.sticky&&i()}}}};function ce(e,t){return!e||!t||e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left}Z.setDefaultProps({render:H});const ue=Z},9938:function(e,t,n){var o;"undefined"!=typeof self&&self,e.exports=(o=n(9963),(()=>{var e={646:e=>{e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},860:e=>{e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},206:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(e,t,n)=>{var o=n(646),r=n(860),a=n(206);e.exports=function(e){return o(e)||r(e)||a()}},8:e=>{function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t},744:(e,t)=>{"use strict";t.Z=(e,t)=>{for(const[n,o]of t)e[n]=o;return e}},748:e=>{"use strict";e.exports=o}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var a=t[o]={exports:{}};return e[o](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";n.r(r),n.d(r,{VueSelect:()=>N,default:()=>$,mixins:()=>j});var e=n(748),t=["dir"],o=["id","aria-expanded","aria-owns"],a={ref:"selectedOptions",class:"vs__selected-options"},i=["disabled","title","aria-label","onClick"],s={ref:"actions",class:"vs__actions"},l=["disabled"],c={class:"vs__spinner"},u=["id"],d=["id","aria-selected","onMouseover","onClick"],p={key:0,class:"vs__no-options"},h=(0,e.createTextVNode)(" Sorry, no matching options. "),f=["id"],m=n(319),g=n.n(m),b=n(8),v=n.n(b),y=n(713),_=n.n(y);const k={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(e){var t=this;this.autoscroll&&e&&this.$nextTick((function(){return t.maybeAdjustScroll()}))}},methods:{maybeAdjustScroll:function(){var e,t=(null===(e=this.$refs.dropdownMenu)||void 0===e?void 0:e.children[this.typeAheadPointer])||!1;if(t){var n=this.getDropdownViewport(),o=t.getBoundingClientRect(),r=o.top,a=o.bottom,i=o.height;if(rn.bottom)return this.$refs.dropdownMenu.scrollTop=t.offsetTop-(n.height-i)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},w={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){for(var e=0;e=0;e--)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},typeAheadDown:function(){for(var e=this.typeAheadPointer+1;e0&&void 0!==arguments[0]?arguments[0]:null;return this.mutableLoading=null==e?!this.mutableLoading:e}}};var S={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},A=[(0,e.createElementVNode)("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1)],C=n(744);const T=(0,C.Z)({},[["render",function(t,n){return(0,e.openBlock)(),(0,e.createElementBlock)("svg",S,A)}]]);var E={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},O=[(0,e.createElementVNode)("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1)];const P={Deselect:T,OpenIndicator:(0,C.Z)({},[["render",function(t,n){return(0,e.openBlock)(),(0,e.createElementBlock)("svg",E,O)}]])},D={mounted:function(e,t){var n=t.instance;if(n.appendToBody){var o=n.$refs.toggle.getBoundingClientRect(),r=o.height,a=o.top,i=o.left,s=o.width,l=window.scrollX||window.pageXOffset,c=window.scrollY||window.pageYOffset;e.unbindPosition=n.calculatePosition(e,n,{width:s+"px",left:l+i+"px",top:c+a+r+"px"}),document.body.appendChild(e)}},unmounted:function(e,t){t.instance.appendToBody&&(e.unbindPosition&&"function"==typeof e.unbindPosition&&e.unbindPosition(),e.parentNode&&e.parentNode.removeChild(e))}};var M=0;function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function R(e){for(var t=1;t-1}},filter:{type:Function,default:function(e,t){var n=this;return e.filter((function(e){var o=n.getOptionLabel(e);return"number"==typeof o&&(o=o.toString()),n.filterBy(e,o,t)}))}},createOption:{type:Function,default:function(e){return"object"===v()(this.optionList[0])?_()({},this.label,e):e}},resetOnOptionsChange:{default:!1,validator:function(e){return["function","boolean"].includes(v()(e))}},clearSearchOnBlur:{type:Function,default:function(e){var t=e.clearSearchOnSelect,n=e.multiple;return t&&!n}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(e,t){return e}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(e,t,n){var o=n.width,r=n.top,a=n.left;e.style.top=r,e.style.left=a,e.style.width=o}},dropdownShouldOpen:{type:Function,default:function(e){var t=e.noDrop,n=e.open,o=e.mutableLoading;return!t&&n&&!o}},uid:{type:[String,Number],default:function(){return++M}}},data:function(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues:function(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues:function(){return void 0===this.modelValue||this.isReducingValues},selectedValue:function(){var e=this.modelValue;return this.isTrackingValues&&(e=this.$data._value),null!=e?[].concat(e):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var e=this,t={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:R({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":"vs".concat(this.uid,"__combobox"),"aria-controls":"vs".concat(this.uid,"__listbox"),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return e.isComposing=!0},compositionend:function(){return e.isComposing=!1},keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(t){return e.search=t.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:t,listFooter:t,header:R({},t,{deselect:this.deselect}),footer:R({},t,{deselect:this.deselect})}},childComponents:function(){return R({},P,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var e=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return e;var t=this.search.length?this.filter(e,this.search,this):e;if(this.taggable&&this.search.length){var n=this.createOption(this.search);this.optionExists(n)||t.unshift(n)}return t},isValueEmpty:function(){return 0===this.selectedValue.length},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(e,t){var n=this;!this.taggable&&("function"==typeof n.resetOnOptionsChange?n.resetOnOptionsChange(e,t,n.selectedValue):n.resetOnOptionsChange)&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler:function(e){this.isTrackingValues&&this.setInternalValueFromOptions(e)}},multiple:function(){this.clearSelection()},open:function(e){this.$emit(e?"open":"close")}},created:function(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions:function(e){var t=this;Array.isArray(e)?this.$data._value=e.map((function(e){return t.findOptionFromReducedValue(e)})):this.$data._value=this.findOptionFromReducedValue(e)},select:function(e){this.$emit("option:selecting",e),this.isOptionSelected(e)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(e):(this.taggable&&!this.optionExists(e)&&(this.$emit("option:created",e),this.pushTag(e)),this.multiple&&(e=this.selectedValue.concat(e)),this.updateValue(e),this.$emit("option:selected",e)),this.onAfterSelect(e)},deselect:function(e){var t=this;this.$emit("option:deselecting",e),this.updateValue(this.selectedValue.filter((function(n){return!t.optionComparator(n,e)}))),this.$emit("option:deselected",e)},clearSelection:function(){this.updateValue(this.multiple?[]:null)},onAfterSelect:function(e){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue:function(e){var t=this;void 0===this.modelValue&&(this.$data._value=e),null!==e&&(e=Array.isArray(e)?e.map((function(e){return t.reduce(e)})):this.reduce(e)),this.$emit("update:modelValue",e)},toggleDropdown:function(e){var t=e.target!==this.searchEl;t&&e.preventDefault();var n=[].concat(g()(this.deselectButtons||[]),g()([this.$refs.clearButton]||0));void 0===this.searchEl||n.filter(Boolean).some((function(t){return t.contains(e.target)||t===e.target}))?e.preventDefault():this.open&&t?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(e){var t=this;return this.selectedValue.some((function(n){return t.optionComparator(n,e)}))},isOptionDeselectable:function(e){return this.isOptionSelected(e)&&this.deselectFromDropdown},optionComparator:function(e,t){return this.getOptionKey(e)===this.getOptionKey(t)},findOptionFromReducedValue:function(e){var t=this,n=[].concat(g()(this.options),g()(this.pushedTags)).filter((function(n){return JSON.stringify(t.reduce(n))===JSON.stringify(e)}));return 1===n.length?n[0]:n.find((function(e){return t.optionComparator(e,t.$data._value)}))||e},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var e=null;this.multiple&&(e=g()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(e)}},optionExists:function(e){var t=this;return this.optionList.some((function(n){return t.optionComparator(n,e)}))},normalizeOptionForSlot:function(e){return"object"===v()(e)?e:_()({},this.label,e)},pushTag:function(e){this.pushedTags.push(e)},onEscape:function(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur:function(){if(!this.mousedown||this.searching){var e=this.clearSearchOnSelect,t=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:e,multiple:t})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,0!==this.search.length||0!==this.options.length||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onSearchKeyDown:function(e){var t=this,n=function(e){return e.preventDefault(),!t.isComposing&&t.typeAheadSelect()},o={8:function(e){return t.maybeDeleteValue()},9:function(e){return t.onTab()},27:function(e){return t.onEscape()},38:function(e){return e.preventDefault(),t.typeAheadUp()},40:function(e){return e.preventDefault(),t.typeAheadDown()}};this.selectOnKeyCodes.forEach((function(e){return o[e]=n}));var r=this.mapKeydown(o,this);if("function"==typeof r[e.keyCode])return r[e.keyCode](e)}}},F=(0,C.Z)(I,[["render",function(n,r,m,g,b,v){var y=(0,e.resolveDirective)("append-to-body");return(0,e.openBlock)(),(0,e.createElementBlock)("div",{dir:m.dir,class:(0,e.normalizeClass)(["v-select",v.stateClasses])},[(0,e.renderSlot)(n.$slots,"header",(0,e.normalizeProps)((0,e.guardReactiveProps)(v.scope.header))),(0,e.createElementVNode)("div",{id:"vs".concat(m.uid,"__combobox"),ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":v.dropdownOpen.toString(),"aria-owns":"vs".concat(m.uid,"__listbox"),"aria-label":"Search for option",onMousedown:r[1]||(r[1]=function(e){return v.toggleDropdown(e)})},[(0,e.createElementVNode)("div",a,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(v.selectedValue,(function(t,o){return(0,e.renderSlot)(n.$slots,"selected-option-container",{option:v.normalizeOptionForSlot(t),deselect:v.deselect,multiple:m.multiple,disabled:m.disabled},(function(){return[((0,e.openBlock)(),(0,e.createElementBlock)("span",{key:m.getOptionKey(t),class:"vs__selected"},[(0,e.renderSlot)(n.$slots,"selected-option",(0,e.normalizeProps)((0,e.guardReactiveProps)(v.normalizeOptionForSlot(t))),(function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(m.getOptionLabel(t)),1)]})),m.multiple?((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:0,ref:function(e){return b.deselectButtons[o]=e},disabled:m.disabled,type:"button",class:"vs__deselect",title:"Deselect ".concat(m.getOptionLabel(t)),"aria-label":"Deselect ".concat(m.getOptionLabel(t)),onClick:function(e){return v.deselect(t)}},[((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(v.childComponents.Deselect)))],8,i)):(0,e.createCommentVNode)("",!0)]))]}))})),256)),(0,e.renderSlot)(n.$slots,"search",(0,e.normalizeProps)((0,e.guardReactiveProps)(v.scope.search)),(function(){return[(0,e.createElementVNode)("input",(0,e.mergeProps)({class:"vs__search"},v.scope.search.attributes,(0,e.toHandlers)(v.scope.search.events)),null,16)]}))],512),(0,e.createElementVNode)("div",s,[(0,e.withDirectives)((0,e.createElementVNode)("button",{ref:"clearButton",disabled:m.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:r[0]||(r[0]=function(){return v.clearSelection&&v.clearSelection.apply(v,arguments)})},[((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(v.childComponents.Deselect)))],8,l),[[e.vShow,v.showClearButton]]),(0,e.renderSlot)(n.$slots,"open-indicator",(0,e.normalizeProps)((0,e.guardReactiveProps)(v.scope.openIndicator)),(function(){return[m.noDrop?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(v.childComponents.OpenIndicator),(0,e.normalizeProps)((0,e.mergeProps)({key:0},v.scope.openIndicator.attributes)),null,16))]})),(0,e.renderSlot)(n.$slots,"spinner",(0,e.normalizeProps)((0,e.guardReactiveProps)(v.scope.spinner)),(function(){return[(0,e.withDirectives)((0,e.createElementVNode)("div",c,"Loading...",512),[[e.vShow,n.mutableLoading]])]}))],512)],40,o),(0,e.createVNode)(e.Transition,{name:m.transition},{default:(0,e.withCtx)((function(){return[v.dropdownOpen?(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)("ul",{id:"vs".concat(m.uid,"__listbox"),ref:"dropdownMenu",key:"vs".concat(m.uid,"__listbox"),class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:r[2]||(r[2]=(0,e.withModifiers)((function(){return v.onMousedown&&v.onMousedown.apply(v,arguments)}),["prevent"])),onMouseup:r[3]||(r[3]=function(){return v.onMouseUp&&v.onMouseUp.apply(v,arguments)})},[(0,e.renderSlot)(n.$slots,"list-header",(0,e.normalizeProps)((0,e.guardReactiveProps)(v.scope.listHeader))),((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(v.filteredOptions,(function(t,o){return(0,e.openBlock)(),(0,e.createElementBlock)("li",{id:"vs".concat(m.uid,"__option-").concat(o),key:m.getOptionKey(t),role:"option",class:(0,e.normalizeClass)(["vs__dropdown-option",{"vs__dropdown-option--deselect":v.isOptionDeselectable(t)&&o===n.typeAheadPointer,"vs__dropdown-option--selected":v.isOptionSelected(t),"vs__dropdown-option--highlight":o===n.typeAheadPointer,"vs__dropdown-option--disabled":!m.selectable(t)}]),"aria-selected":o===n.typeAheadPointer||null,onMouseover:function(e){return m.selectable(t)?n.typeAheadPointer=o:null},onClick:(0,e.withModifiers)((function(e){return m.selectable(t)?v.select(t):null}),["prevent","stop"])},[(0,e.renderSlot)(n.$slots,"option",(0,e.normalizeProps)((0,e.guardReactiveProps)(v.normalizeOptionForSlot(t))),(function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(m.getOptionLabel(t)),1)]}))],42,d)})),128)),0===v.filteredOptions.length?((0,e.openBlock)(),(0,e.createElementBlock)("li",p,[(0,e.renderSlot)(n.$slots,"no-options",(0,e.normalizeProps)((0,e.guardReactiveProps)(v.scope.noOptions)),(function(){return[h]}))])):(0,e.createCommentVNode)("",!0),(0,e.renderSlot)(n.$slots,"list-footer",(0,e.normalizeProps)((0,e.guardReactiveProps)(v.scope.listFooter)))],40,u)),[[y]]):((0,e.openBlock)(),(0,e.createElementBlock)("ul",{key:1,id:"vs".concat(m.uid,"__listbox"),role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,f))]})),_:3},8,["name"]),(0,e.renderSlot)(n.$slots,"footer",(0,e.normalizeProps)((0,e.guardReactiveProps)(v.scope.footer)))],10,t)}]]),N=F,j={ajax:x,pointer:w,pointerScroll:k},$=F})(),r})())},9639:(e,t,n)=>{var o=n(110);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals),(0,n(5346).Z)("49b6e69a",o,!1,{})},3612:(e,t,n)=>{var o=n(2588);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals),(0,n(5346).Z)("4340ba7e",o,!1,{})},4402:(e,t,n)=>{var o=n(3232);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals),(0,n(5346).Z)("1ad73a10",o,!1,{})},1763:(e,t,n)=>{var o=n(27);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals),(0,n(5346).Z)("e3c5d780",o,!1,{})},6051:(e,t,n)=>{var o=n(6307);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals),(0,n(5346).Z)("7f6514f9",o,!1,{})},5294:(e,t,n)=>{var o=n(3544);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals),(0,n(5346).Z)("6e2627ad",o,!1,{})},3462:(e,t,n)=>{var o=n(1328);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals),(0,n(5346).Z)("63e1e200",o,!1,{})},786:(e,t,n)=>{var o=n(4593);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals),(0,n(5346).Z)("6ce3e926",o,!1,{})},5377:(e,t,n)=>{var o=n(9473);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals),(0,n(5346).Z)("67e0ffea",o,!1,{})},5922:(e,t,n)=>{var o=n(1164);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals),(0,n(5346).Z)("054f5378",o,!1,{})},1012:(e,t,n)=>{var o=n(5476);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals),(0,n(5346).Z)("3bb8babc",o,!1,{})},8298:(e,t,n)=>{var o=n(6968);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals),(0,n(5346).Z)("f75ead22",o,!1,{})},3965:(e,t,n)=>{var o=n(404);o.__esModule&&(o=o.default),"string"==typeof o&&(o=[[e.id,o,""]]),o.locals&&(e.exports=o.locals),(0,n(5346).Z)("2ab8496e",o,!1,{})},5346:(e,t,n)=>{"use strict";function o(e,t){for(var n=[],o={},r=0;rf});var r="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},i=r&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},d=null,p="data-vue-ssr-id",h="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(e,t,n,r){c=n,d=r||{};var i=o(e,t);return m(i),function(t){for(var n=[],r=0;rn.parts.length&&(o.parts.length=n.parts.length)}else{var i=[];for(r=0;r{var o={"./en/translation.json":7573,"./fr/translation.json":5465,"./pt/translation.json":5163,"./sw/translation.json":6490};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}r.keys=function(){return Object.keys(o)},r.resolve=a,e.exports=r,r.id=5144},3414:()=>{},172:()=>{},2001:()=>{},3779:()=>{},6558:()=>{},2258:()=>{},7573:e=>{"use strict";e.exports=JSON.parse('{"{document_count} documents found":"{document_count} documents found.","{reverse_verb} this provision":"{reverse_verb} this provision","Advanced search":"Advanced search","Alphabetical":"Alphabetical","AND":"AND","Attorneys":"Attorneys","Author":"Author","Between {prev_expression_date} and {new_expression_date}":"Between {prev_expression_date} and {new_expression_date}","Cancel":"Cancel","Clear":"Clear","Clear all":"Clear all","Close":"Close","Collapse all":"Collapse all","Court":"Court","Court registry":"Court registry","Date (newest first)":"Date (newest first)","Date (oldest first)":"Date (oldest first)","Date from":"Date from","Date to":"Date to","Delete":"Delete","Document is empty":"Document is empty","Document is not accessible on my device":"Document is not accessible on my device","Document nature":"Document nature","Document type":"Document type","Edit":"Edit","Enter end date":"Enter end date","Enter start date":"Enter start date","Exact phrase":"Exact phrase","Expand all":"Expand all","Filter legislation":"Filter legislation","Filters":"Filters","Help":"Help","In these fields":"In these fields","Incorrect information":"Incorrect information","Is there something wrong with this document?":"Is there something wrong with this document?","Judges":"Judges","Jurisdiction":"Jurisdiction","Language":"Language","Link citation":"Link citation","Loading":"Loading","Locality":"Locality","Matter type":"Matter type","Missing information":"Missing information","More than 10,000 documents found":"More than 10,000 documents found.","Multiple languages available":"Multiple languages available","Nature":"Nature","Newest first":"Newest first","No documents match your search":"No documents match your search.","No legislation found":"No legislation found.","No PDF download":"No PDF download","No results":"No results","NOT":"NOT","Oldest first":"Oldest first","Oops, something went wrong":"Oops, something went wrong.","OR":"OR","Other":"Other","Outcome":"Outcome","Page":"Page","Problem category":"Problem category","Regional body":"Regional body","Relevance":"Relevance","Remove":"Remove","Report problem":"Report problem","Search":"Search","Search {{appName}}":{"":"Search {{appName}}..."},"Search document content":"Search document content","Search documents":"Search documents","Search table of contents":"Search table of contents","Share":"Share","Show changes side-by-side":"Show changes side-by-side","Show full text":"Show full text","Something went wrong":"Something went wrong.","Sort by":"Sort by","Taxonomies":"Taxonomies","Thank you for your feedback":"Thank you for your feedback.","The date range is invalid":"The date range is invalid","This provision":"This provision","This provision has been amended":"This provision has been amended","Title":"Title","To the top":"To the top","Try searching instead":"Try searching instead","What changed?":"What changed?","What\'s the problem?":"What\'s the problem?","Year":"Year","Years":"Years","Your email address":"Your email address"}')},5465:e=>{"use strict";e.exports=JSON.parse('{"{document_count} documents found":"{document_count} documents trouvés.","{reverse_verb} this provision":"{reverse_verb} cette disposition","Advanced search":"Recherche avancée","Alphabetical":"Alphabétique","AND":"ET","Attorneys":"Avocats","Author":"Auteur","Between {prev_expression_date} and {new_expression_date}":"Entre {prev_expression_date} et {new_expression_date}","Cancel":"Annuler","Clear":"Nettoyer","Clear all":"Effacer tout","Close":"Fermer","Collapse all":"Réduire tout","Court":"Cour","Court registry":"Registre des tribunaux","Date (newest first)":"Date (plus récente en premier)","Date (oldest first)":"Date (plus ancienne en premier)","Date from":"Date du","Date to":"Date de fin","Delete":"Supprimez","Document is empty":"Le document est vide","Document is not accessible on my device":"Le document n\'est pas accessible sur mon appareil","Document nature":"Type de document","Document type":"Type de document","Edit":"Modifier","Enter end date":"Entrez la date de fin","Enter start date":"Entrez la date de début","Exact phrase":"Phrase exacte","Expand all":"Développer tout","Filter legislation":"Filtrer la législation","Filters":"Filtres","Help":"Aide","In these fields":"Dans ces domaines","Incorrect information":"Informations incorrectes","Is there something wrong with this document?":"Y a-t-il quelque chose qui ne va pas avec ce document ?","Judges":"Juges","Jurisdiction":"Juridiction","Language":"Langue","Link citation":"Citation de lien","Loading":"En cours de chargement","Locality":"Localité","Matter type":"Type de matière","Missing information":"Information manquante","More than 10,000 documents found":"Plus de 10 000 documents retrouvés.","Multiple languages available":"Plusieurs langues disponibles","Nature":"Nature","Newest first":"Le plus récent d\'abord","No documents match your search":"Aucun document ne correspond à votre recherche.","No legislation found":"Aucune législation trouvée.","No PDF download":"Pas de téléchargement PDF","No results":"Aucun résultat","NOT":"PAS","Oldest first":"Le plus ancien en premier","Oops, something went wrong":"Oups, une erreur s\'est produite.","OR":"OU","Other":"Autre","Outcome":"Résultat","Page":"Page","Problem category":"Catégorie de problème","Regional body":"Corps régional","Relevance":"Pertinence","Remove":"Retirer","Report problem":"Signaler un problème","Search":"Recherche","Search {{appName}}":{"":"Rechercher dans {{appName}}..."},"Search document content":"Rechercher le contenu du document","Search documents":"Rechercher des documents","Search table of contents":"Rechercher la table des matières","Share":"Partager","Show changes side-by-side":"Afficher les modifications côte à côte","Show full text":"Afficher le texte intégral","Something went wrong":"Quelque chose s\'est mal passé.","Sort by":"Trier par","Taxonomies":"Taxonomies","Thank you for your feedback":"Merci pour votre avis.","The date range is invalid":"La plage de dates n\'est pas valide","This provision":"Cette disposition","This provision has been amended":"Cette disposition a été modifiée","Title":"Titre","To the top":"En haut","Try searching instead":"Essayez plutôt de faire une recherche","What changed?":"Quels sont les changements ?","What\'s the problem?":"Quel est le problème?","Year":"Année","Years":"Années","Your email address":"Votre adresse e-mail"}')},5163:e=>{"use strict";e.exports=JSON.parse('{"{document_count} documents found":"{document_count} documentos encontrados.","{reverse_verb} this provision":"{reverse_verb} esta disposição","Advanced search":"Pesquisa avançada","Alphabetical":"Alfabética","AND":"E","Attorneys":"Advogados","Author":"Autor","Between {prev_expression_date} and {new_expression_date}":"Entre {prev_expression_date} e {new_expression_date}","Cancel":"Cancelar","Clear":"Limpar","Clear all":"Limpar tudo","Close":"FECHAR","Collapse all":"Recolher tudo","Court":"Tribunal","Court registry":"Registro do tribunal","Date (newest first)":"Data (mais recente primeiro)","Date (oldest first)":"Data (mais antigo primeiro)","Date from":"Data inicial","Date to":"Data final","Delete":"Excluir","Document is empty":"O documento está vazio","Document is not accessible on my device":"O documento não está acessível no meu dispositivo","Document nature":"Natureza do documento","Document type":"Tipo de documento","Edit":"Editar","Enter end date":"Digite a data final","Enter start date":"Digite a data inicial","Exact phrase":"Frase exata","Expand all":"Expandir tudo","Filter legislation":"Filtrar legislação","Filters":"Filtros","Help":"Socorro","In these fields":"Nestes campos","Incorrect information":"Informação incorreta","Is there something wrong with this document?":"Há algo errado com este documento?","Judges":"Juízes","Jurisdiction":"Jurisdição","Language":"Idioma","Link citation":"Citação de link","Loading":"Carregando...","Locality":"Localidade","Matter type":"Tipo de matéria","Missing information":"Faltando informação","More than 10,000 documents found":"Mais de 10.000 documentos encontrados.","Multiple languages available":"Vários idiomas disponíveis","Nature":"Natureza","Newest first":"Os mais novos primeiro","No documents match your search":"Nenhum documento corresponde à sua pesquisa.","No legislation found":"Nenhuma legislação encontrada.","No PDF download":"Sem download de PDF","No results":"Nenhum resultado","NOT":"NÃO","Oldest first":"Mais velhos primeiro","Oops, something went wrong":"Ops, algo deu errado.","OR":"OU","Other":"Outro","Outcome":"Resultado","Page":"Página","Problem category":"Categoria do problema","Regional body":"Corpo regional","Relevance":"Relevância","Remove":"Remover","Report problem":"Reportar problema","Search":"Pesquisa","Search {{appName}}":{"":"Pesquisar {{appName}}..."},"Search document content":"Pesquisar conteúdo de documento","Search documents":"Pesquisar documentos","Search table of contents":"Pesquisar na tabela de conteúdos","Share":"Compartilhar","Show changes side-by-side":"Mostrar mudanças lado a lado","Show full text":"Mostrar texto completo","Something went wrong":"Algo deu errado.","Sort by":"Classificar por","Taxonomies":"Taxonomies","Thank you for your feedback":"Obrigado pelo seu feedback.","The date range is invalid":"O intervalo de datas é inválido","This provision":"Esta disposição","This provision has been amended":"Esta disposição foi alterada","Title":"Título","To the top":"Para o topo","Try searching instead":"Tente pesquisar no lugar","What changed?":"O que mudou?","What\'s the problem?":"Qual é o problema?","Year":"Ano","Years":"anos","Your email address":"Seu endereço de email"}')},6490:e=>{"use strict";e.exports=JSON.parse('{"{document_count} documents found":"Nyaraka {document_count} zilizopatikana.","{reverse_verb} this provision":"{reverse_verb} kifungu hiki","Advanced search":"Utafutaji wa kina","Alphabetical":"Kufuata alfabeti","AND":"NA","Attorneys":"Wanasheria","Author":"Mwandishi","Between {prev_expression_date} and {new_expression_date}":"Kati ya {prev_expression_date} na {new_expression_date}","Cancel":"Sitisha","Clear":"Wazi","Clear all":"Futa zote","Close":"Funga","Collapse all":"Kunja zote","Court":"Mahakama","Court registry":"Usajili wa mahakama","Date (newest first)":"Tarehe (za karibu zaidi kwanza)","Date (oldest first)":"Tarehe (za nyuma kwanza)","Date from":"Tarehe kutoka","Date to":"Tarehe hadi","Delete":"Futa","Document is empty":"Nyaraka haina taarifa","Document is not accessible on my device":"Hati haipatikani kwenye kifaa changu","Document nature":"Asili ya hati","Document type":"Aina ya hati","Edit":"Hariri","Enter end date":"Weka tarehe ya mwisho","Enter start date":"Weka tarehe ya kuanza","Exact phrase":"Maneno halisi","Expand all":"Panua zote","Filter legislation":"Sheria ya udhibiti","Filters":"Vichujio","Help":"Msaada","In these fields":"Katika nyanja hizi","Incorrect information":"Taarifa zisizo sahihi","Is there something wrong with this document?":"Je, kuna kitu kibaya na hati hii?","Judges":"Majaji","Jurisdiction":"Mamlaka ya kisheria","Language":"Lugha","Link citation":"Nukuu ya kiungo","Loading":"Inapakia","Locality":"Eneo","Matter type":"Aina ya jambo","Missing information":"Taarifa zinazokosekana","More than 10,000 documents found":"Zaidi ya nyaraka10,000 zimepatikana.","Multiple languages available":"Lugha nyingi zinapatikana","Nature":"Asili","Newest first":"Mpya zaidi kwanza","No documents match your search":"Hakuna hati zinazolingana na utafutaji wako.","No legislation found":"Hakuna sheria iliyopatikana.","No PDF download":"Hakuna upakuaji wa PDF","No results":"Hakuna matokeo","NOT":"HAPANA","Oldest first":"Ya zamani kwanza","Oops, something went wrong":"Oh, kuna hitilafu imetokea.","OR":"AU","Other":"Nyingine","Outcome":"Matokeo","Page":"Ukurasa","Problem category":"Aina ya tatizo","Regional body":"Chombo cha kanda","Relevance":"Muhimu","Remove":"Ondoa","Report problem":"Ripoti tatizo","Search":"Tafuta","Search {{appName}}":{"":"Tafuta {{appName}}..."},"Search document content":"Tafuta yaliyomo kwenye waraka","Search documents":"Tafuta nyaraka","Search table of contents":"Tafuta yaliyomo","Share":"Sambaza","Show changes side-by-side":"Tafuta yaliyomo sambamba","Show full text":"Onyesha maandishi yote","Something went wrong":"Kuna hitilafu imetokea.","Sort by":"Ainisha kwa","Taxonomies":"Taksonomia","Thank you for your feedback":"Asante kwa maoni yako.","The date range is invalid":"Tarehe siyo sahihi","This provision":"Kifungu hiki","This provision has been amended":"Kifungu hiki kimerekebishwa","Title":"Mada","To the top":"Hadi juu","Try searching instead":"Jaribu kutafuta badala yake","What changed?":"Nini kimebadilika?","What\'s the problem?":"Tatizo ni nini?","Year":"Mwaka","Years":"Miaka","Your email address":"Baruapepe yako"}')}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};(()=>{"use strict";var e={};__webpack_require__.r(e),__webpack_require__.d(e,{afterMain:()=>Pf.wX,afterRead:()=>Pf.r5,afterWrite:()=>Pf.MS,applyStyles:()=>Df.Z,arrow:()=>Mf.Z,auto:()=>Pf.d7,basePlacements:()=>Pf.mv,beforeMain:()=>Pf.XM,beforeRead:()=>Pf.N7,beforeWrite:()=>Pf.iv,bottom:()=>Pf.I,clippingParents:()=>Pf.zV,computeStyles:()=>Lf.Z,createPopper:()=>Bf.fi,createPopperBase:()=>Uf.fi,createPopperLite:()=>Vf,detectOverflow:()=>qf.Z,end:()=>Pf.ut,eventListeners:()=>Rf.Z,flip:()=>If.Z,hide:()=>Ff.Z,left:()=>Pf.t$,main:()=>Pf.DH,modifierPhases:()=>Pf.xs,offset:()=>Nf.Z,placements:()=>Pf.Ct,popper:()=>Pf.k5,popperGenerator:()=>Uf.kZ,popperOffsets:()=>jf.Z,preventOverflow:()=>$f.Z,read:()=>Pf.ij,reference:()=>Pf.YP,right:()=>Pf.F2,start:()=>Pf.BL,top:()=>Pf.we,variationPlacements:()=>Pf.bw,viewport:()=>Pf.Pj,write:()=>Pf.cW});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{Alert:()=>Im,Button:()=>Nm,Carousel:()=>Xm,Collapse:()=>rg,Dropdown:()=>wg,Modal:()=>Wg,Offcanvas:()=>tb,Popover:()=>xb,ScrollSpy:()=>Ob,Tab:()=>qb,Toast:()=>Gb,Tooltip:()=>_b});var n=function(){function e(e){var t=this;this.root=e,this.text=e.innerText,e.addEventListener("click",(function(){return t.copy()}))}return e.prototype.copy=function(){return e=this,t=void 0,o=function(){var e=this;return function(e,t){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(r=2&a[0]?o.return:a[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]((0,o.dD)("data-v-1f5a887a"),e=e(),(0,o.Cn)(),e),s=[".anchor"],l=i((()=>(0,o._)("i",{class:"bi bi-chat-left mobile-gutter-item-icon"},null,-1))),c={class:"card"},u={class:"card-body"},d={class:"mb-2 d-lg-none text-end"},p={key:0,class:"float-end d-none d-lg-block"},h={class:"dropdown"},f=i((()=>(0,o._)("a",{class:"dropdown-toggle",href:"#","data-bs-toggle":"dropdown"},null,-1))),m={class:"dropdown-menu"},g={key:1},b=["href"],v={key:1},y=(0,o.Uk)(". "),_={key:2},k=["href"],w={key:1};var x=__webpack_require__(2581);function S(e,t){if(!e.length)return null;var n=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,a=t.length;r({marks:[],anchorElement:null}),computed:{isForwards(){return this.enrichment.subject_work.frbr_uri===this.thisWorkFrbrUri},objectDocument(){return S(this.enrichment.object_documents,"eng")},subjectDocument(){return S(this.enrichment.subject_documents,"eng")}},mounted(){this.markAndAnchor(),window.addEventListener("click",this.handleOutsideClick),this.gutter.appendChild(this.$el)},unmounted(){this.unmark()},beforeUnmount(){window.removeEventListener("click",this.handleOutsideClick),this.marks.forEach((e=>{e.removeEventListener("click",e.clickFn)}))},methods:{handleOutsideClick(e){this.$el.contains(e.target)||this.$el===e.target||this.marks.some((t=>t.contains(e.target)||t===e.target))||this.deactivate()},deactivate(){this.$el.active=!1,this.marks.forEach((e=>e.classList.remove("active")))},activate(){Array.from(this.viewRoot.querySelectorAll("mark")).forEach((e=>{e.classList.remove("active")})),this.$el.active=!0,this.marks.forEach((e=>{e.classList.add("active")}))},markAndAnchor(){this.unmark();const e={anchor_id:this.isForwards?this.enrichment.subject_target_id:this.enrichment.object_target_id},t=(0,x.targetToRange)(e,this.viewRoot);t&&((0,x.markRange)(t,"mark",(e=>(this.marks.push(e),e.classList.add("anntn-highlight"),e.clickFn=()=>this.activate(),e.addEventListener("click",e.clickFn),e))),this.anchorElement=this.marks[0])},unmark(){this.marks.forEach((e=>{const t=e.parentNode;for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)})),this.marks=[]},remove(){confirm("Are you sure?")&&this.$emit("delete",this.enrichment)}}};__webpack_require__(8298),A.render=function(e,t){return(0,o.wg)(),(0,o.iD)("la-gutter-item",{class:"relationship-gutter-item",".anchor":e.anchorElement,onClick:t[2]||(t[2]=(...t)=>e.activate&&e.activate(...t))},[l,(0,o._)("div",c,[(0,o._)("div",u,[(0,o._)("div",d,[(0,o._)("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:t[0]||(t[0]=(0,r.withModifiers)(((...t)=>e.deactivate&&e.deactivate(...t)),["stop"]))})]),e.editable?((0,o.wg)(),(0,o.iD)("div",p,[(0,o._)("div",h,[f,(0,o._)("ul",m,[(0,o._)("li",null,[(0,o._)("a",{class:"dropdown-item",href:"#",onClick:t[1]||(t[1]=(0,r.withModifiers)(((...t)=>e.remove&&e.remove(...t)),["prevent"]))},(0,a.zw)(e.$t("Delete")),1)])])])])):(0,o.kq)("v-if",!0),e.isForwards?((0,o.wg)(),(0,o.iD)("div",g,[(0,o.Uk)((0,a.zw)(e.$t("This provision"))+" "+(0,a.zw)(e.enrichment.predicate.verb)+" ",1),e.objectDocument?((0,o.wg)(),(0,o.iD)("a",{key:0,target:"_blank",href:`${e.objectDocument.expression_frbr_uri}/`},(0,a.zw)(e.objectDocument.title),9,b)):((0,o.wg)(),(0,o.iD)("span",v,(0,a.zw)(e.enrichment.object_work.frbr_uri)+" xx",1)),y])):((0,o.wg)(),(0,o.iD)("div",_,[e.subjectDocument?((0,o.wg)(),(0,o.iD)("a",{key:0,target:"_blank",href:`${e.subjectDocument.expression_frbr_uri}/`},(0,a.zw)(e.subjectDocument.title),9,k)):((0,o.wg)(),(0,o.iD)("span",w,(0,a.zw)(e.enrichment.subject_work.frbr_uri),1)),(0,o.Uk)(". "+(0,a.zw)(e.$t("{reverse_verb} this provision",{reverse_verb:e.enrichment.predicate.reverse_verb}))+". ",1)]))])])],8,s)},A.__scopeId="data-v-1f5a887a";const C=A,T={class:"modal fade",tabindex:"-1","data-bs-keyboard":"false","data-bs-backdrop":"static",role:"dialog","aria-hidden":"true"},E={class:"modal-dialog modal-lg",role:"document"},O={class:"modal-content"},P={class:"modal-header"},D=(0,o._)("h5",{class:"modal-title"}," Add relationship ",-1),M=["aria-label"],L={class:"modal-body"},R={key:0},I=(0,o.Uk)(" Search for a document... "),F=["required"],N=["required"],j={key:0,value:""},$=["value"],U=(0,o.Uk)(" Search for a document... "),q=["required"],B={key:3},z={class:"modal-footer"},V=(0,o._)("button",{type:"submit",class:"btn btn-success"}," Add ",-1);var H=__webpack_require__(9938),W=__webpack_require__.n(H),G=(__webpack_require__(3965),function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))}),Y=function(e,t){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(r=2&a[0]?o.return:a[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]({predicates:[],relationship:e.enrichment,works:[]}),computed:{isForwards(){return this.relationship.subject_work.frbr_uri===this.thisWorkFrbrUri}},mounted(){document.body.appendChild(this.$el),this.predicates=JSON.parse(document.getElementById("predicates").innerText||"[]"),this.relationship.predicate_id=this.predicates.length?this.predicates[0].id:"",this.modal=new bootstrap.Modal(this.$el),this.$el.addEventListener("hidePrevented.bs.modal",this.close),this.modal.show()},unmounted(){this.modal.hide()},methods:{onSearch(e,t){e.length&&(t(!0),this.search(t,e))},reverse(){!function(e){for(var t=0,n=["work","target_id","documents"];te.save&&e.save(...t)),["prevent"]))},[(0,o._)("div",P,[D,(0,o._)("button",{type:"button",class:"btn-close","aria-label":e.$t("Close"),onClick:t[0]||(t[0]=(...t)=>e.close&&e.close(...t))},null,8,M)]),(0,o._)("div",L,[e.isForwards?((0,o.wg)(),(0,o.iD)("p",R," The selection... ")):(0,o.kq)("v-if",!0),e.isForwards?(0,o.kq)("v-if",!0):((0,o.wg)(),(0,o.j4)(n,{key:1,modelValue:e.relationship.subject_work_id,"onUpdate:modelValue":t[1]||(t[1]=t=>e.relationship.subject_work_id=t),class:"mb-3",label:"title",placeholder:"Choose the subject document...",options:e.works,reduce:e=>e.id,onSearch:e.onSearch},{"no-options":(0,o.w5)((()=>[I])),search:(0,o.w5)((({attributes:t,events:n})=>[(0,o._)("input",(0,o.dG)({class:"vs__search",required:!e.relationship.subject_work_id},t,(0,o.mx)(n)),null,16,F)])),_:1},8,["modelValue","options","reduce","onSearch"])),(0,o.wy)((0,o._)("select",{"onUpdate:modelValue":t[2]||(t[2]=t=>e.relationship.predicate_id=t),class:"form-control mb-3",required:!e.predicates.length},[e.predicates.length?(0,o.kq)("v-if",!0):((0,o.wg)(),(0,o.iD)("option",j," No options available. Add Predicates in admin to have options. ")),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.predicates,(e=>((0,o.wg)(),(0,o.iD)("option",{key:e.id,value:e.id},(0,a.zw)(e.verb),9,$)))),128))],8,N),[[r.vModelSelect,e.relationship.predicate_id]]),e.isForwards?((0,o.wg)(),(0,o.j4)(n,{key:2,modelValue:e.relationship.object_work_id,"onUpdate:modelValue":t[3]||(t[3]=t=>e.relationship.object_work_id=t),label:"title",placeholder:"Choose the object document...",options:e.works,reduce:e=>e.id,onSearch:e.onSearch},{"no-options":(0,o.w5)((()=>[U])),search:(0,o.w5)((({attributes:t,events:n})=>[(0,o._)("input",(0,o.dG)({class:"vs__search",required:!e.relationship.object_work_id},t,(0,o.mx)(n)),null,16,q)])),_:1},8,["modelValue","options","reduce","onSearch"])):((0,o.wg)(),(0,o.iD)("p",B," ... the selection. "))]),(0,o._)("div",z,[(0,o._)("button",{disabled:"",class:"btn btn-outline-secondary",type:"button",onClick:t[4]||(t[4]=(...t)=>e.reverse&&e.reverse(...t))}," Reverse "),(0,o._)("button",{type:"button",class:"btn btn-secondary",onClick:t[5]||(t[5]=(...t)=>e.close&&e.close(...t))}," Cancel "),V])],544)])])])}},RelationshipEnrichment:C},props:{enrichments:{type:Array,default:()=>[]},viewRoot:HTMLElement,gutter:HTMLElement,editable:Boolean,thisWorkFrbrUri:{type:String,default:""}},data:e=>({items:e.enrichments,creating:null}),methods:{markAndAnchorAll(){this.$refs["gutter-item"]&&this.$refs["gutter-item"].forEach((e=>{e.markAndAnchor()}))},async deleteEnrichment(e){if((await fetch(`/api/relationships/${e.id}/`,{method:"DELETE",headers:await X()})).ok){const t=this.items.findIndex((t=>t.id===e.id));t>-1&&this.items.splice(t,1)}},async save(e){const t=await X();t["Content-Type"]="application/json";const n=await fetch("/api/relationships/",{method:"POST",headers:t,body:JSON.stringify(e)});n.ok&&(this.items.push(await n.json()),this.creating=null)},closeModal(){this.creating=null}},render:function(e,t){const n=(0,o.up)("relationship-enrichment"),r=(0,o.up)("relationship-enrichment-modal");return(0,o.wg)(),(0,o.iD)("div",null,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.items,(t=>((0,o.wg)(),(0,o.j4)(n,{key:t.id,ref_for:!0,ref:"gutter-item",enrichment:t,"view-root":e.viewRoot,gutter:e.gutter,editable:e.editable,"this-work-frbr-uri":e.thisWorkFrbrUri,onDelete:n=>e.deleteEnrichment(t)},null,8,["enrichment","view-root","gutter","editable","this-work-frbr-uri","onDelete"])))),128)),e.creating?((0,o.wg)(),(0,o.j4)(r,{key:0,enrichment:e.creating,"this-work-frbr-uri":e.thisWorkFrbrUri,onSave:e.save,onClose:e.closeModal},null,8,["enrichment","this-work-frbr-uri","onSave","onClose"])):(0,o.kq)("v-if",!0)])}},te="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,ne=e=>te?Symbol(e):e,oe=e=>"number"==typeof e&&isFinite(e),re=e=>"[object RegExp]"===ye(e),ae=e=>_e(e)&&0===Object.keys(e).length;function ie(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const se=Object.assign;let le;const ce=()=>le||(le="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:{});function ue(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const de=Object.prototype.hasOwnProperty;function pe(e,t){return de.call(e,t)}const he=Array.isArray,fe=e=>"function"==typeof e,me=e=>"string"==typeof e,ge=e=>"boolean"==typeof e,be=e=>null!==e&&"object"==typeof e,ve=Object.prototype.toString,ye=e=>ve.call(e),_e=e=>"[object Object]"===ye(e);function ke(){const e=new Map;return{events:e,on(t,n){const o=e.get(t);o&&o.push(n)||e.set(t,[n])},off(t,n){const o=e.get(t);o&&o.splice(o.indexOf(n)>>>0,1)},emit(t,n){(e.get(t)||[]).slice().map((e=>e(n))),(e.get("*")||[]).slice().map((e=>e(t,n)))}}}function we(e,t,n={}){const{domain:o,messages:r,args:a}=n,i=new SyntaxError(String(e));return i.code=e,t&&(i.location=t),i.domain=o,i}function xe(e){throw e}function Se(e,t,n){const o={start:e,end:t};return null!=n&&(o.source=n),o}const Ae=" ",Ce="\n",Te=String.fromCharCode(8232),Ee=String.fromCharCode(8233);function Oe(e){const t=e;let n=0,o=1,r=1,a=0;const i=e=>"\r"===t[e]&&t[e+1]===Ce,s=e=>t[e]===Ee,l=e=>t[e]===Te,c=e=>i(e)||s(e)||l(e)?Ce:t[e];function u(){return a=0,(i(e=n)||(e=>t[e]===Ce)(e)||s(e)||l(e))&&(o++,r=0),i(n)&&n++,n++,r++,t[n];var e}return{index:()=>n,line:()=>o,column:()=>r,peekOffset:()=>a,charAt:c,currentChar:()=>c(n),currentPeek:()=>c(n+a),next:u,peek:function(){return i(n+a)&&a++,a++,t[n+a]},reset:function(){n=0,o=1,r=1,a=0},resetPeek:function(e=0){a=e},skipToPeek:function(){const e=n+a;for(;e!==n;)u();a=0}}}const Pe=void 0;function De(e,t={}){const n=!1!==t.location,o=Oe(e),r=()=>o.index(),a=()=>{return e=o.line(),t=o.column(),n=o.index(),{line:e,column:t,offset:n};var e,t,n},i=a(),s=r(),l={currentType:14,offset:s,startLoc:i,endLoc:i,lastType:14,lastOffset:s,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function d(e,t,n,...o){const r=c();if(t.column+=n,t.offset+=n,u){const n=we(e,Se(r.startLoc,t),{domain:"tokenizer",args:o});u(n)}}function p(e,t,o){e.endLoc=a(),e.currentType=t;const r={type:t};return n&&(r.loc=Se(e.startLoc,e.endLoc)),null!=o&&(r.value=o),r}const h=e=>p(e,14);function f(e,t){return e.currentChar()===t?(e.next(),t):(d(0,a(),0,t),"")}function m(e){let t="";for(;e.currentPeek()===Ae||e.currentPeek()===Ce;)t+=e.currentPeek(),e.peek();return t}function g(e){const t=m(e);return e.skipToPeek(),t}function b(e){if(e===Pe)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function v(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function y(e,t=!0){const n=(t=!1,o="",r=!1)=>{const a=e.currentPeek();return"{"===a?"%"!==o&&t:"@"!==a&&a?"%"===a?(e.peek(),n(t,"%",!0)):"|"===a?!("%"!==o&&!r&&(o===Ae||o===Ce)):a===Ae?(e.peek(),n(!0,Ae,r)):a!==Ce||(e.peek(),n(!0,Ce,r)):"%"===o||t},o=n();return t&&e.resetPeek(),o}function _(e,t){const n=e.currentChar();return n===Pe?Pe:t(n)?(e.next(),n):null}function k(e){return _(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function w(e){return _(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function x(e){return _(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function S(e){let t="",n="";for(;t=w(e);)n+=t;return n}function A(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return C(e,t,4);case"U":return C(e,t,6);default:return d(3,a(),0,t),""}}function C(e,t,n){f(e,t);let o="";for(let r=0;r=1&&d(8,a(),0),e.next(),n=p(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&d(7,a(),0),e.next(),n=p(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&d(6,a(),0),n=O(e,t)||h(t),t.braceNest=0,n;default:let o=!0,r=!0,i=!0;if(v(e))return t.braceNest>0&&d(6,a(),0),n=p(t,1,T(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return d(6,a(),0),t.braceNest=0,P(e,t);if(o=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const o=b(e.currentPeek());return e.resetPeek(),o}(e,t))return n=p(t,5,function(e){g(e);let t="",n="";for(;t=k(e);)n+=t;return e.currentChar()===Pe&&d(6,a(),0),n}(e)),g(e),n;if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const o=function(e){if(e===Pe)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),o}(e,t))return n=p(t,6,function(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${S(e)}`):t+=S(e),e.currentChar()===Pe&&d(6,a(),0),t}(e)),g(e),n;if(i=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const o="'"===e.currentPeek();return e.resetPeek(),o}(e,t))return n=p(t,7,function(e){g(e),f(e,"'");let t="",n="";const o=e=>"'"!==e&&e!==Ce;for(;t=_(e,o);)n+="\\"===t?A(e):t;const r=e.currentChar();return r===Ce||r===Pe?(d(2,a(),0),r===Ce&&(e.next(),f(e,"'")),n):(f(e,"'"),n)}(e)),g(e),n;if(!o&&!r&&!i)return n=p(t,13,function(e){g(e);let t="",n="";const o=e=>"{"!==e&&"}"!==e&&e!==Ae&&e!==Ce;for(;t=_(e,o);)n+=t;return n}(e)),d(1,a(),0,n.value),g(e),n}return n}function O(e,t){const{currentType:n}=t;let o=null;const r=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||r!==Ce&&r!==Ae||d(9,a(),0),r){case"@":return e.next(),o=p(t,8,"@"),t.inLinked=!0,o;case".":return g(e),e.next(),p(t,9,".");case":":return g(e),e.next(),p(t,10,":");default:return v(e)?(o=p(t,1,T(e)),t.braceNest=0,t.inLinked=!1,o):function(e,t){const{currentType:n}=t;if(8!==n)return!1;m(e);const o="."===e.currentPeek();return e.resetPeek(),o}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;m(e);const o=":"===e.currentPeek();return e.resetPeek(),o}(e,t)?(g(e),O(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;m(e);const o=b(e.currentPeek());return e.resetPeek(),o}(e,t)?(g(e),p(t,12,function(e){let t="",n="";for(;t=k(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const o=()=>{const t=e.currentPeek();return"{"===t?b(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===Ae||!t)&&(t===Ce?(e.peek(),o()):b(t))},r=o();return e.resetPeek(),r}(e,t)?(g(e),"{"===r?E(e,t)||o:p(t,11,function(e){const t=(n=!1,o)=>{const r=e.currentChar();return"{"!==r&&"%"!==r&&"@"!==r&&"|"!==r&&r?r===Ae?o:r===Ce?(o+=r,e.next(),t(n,o)):(o+=r,e.next(),t(!0,o)):o};return t(!1,"")}(e))):(8===n&&d(9,a(),0),t.braceNest=0,t.inLinked=!1,P(e,t))}}function P(e,t){let n={type:14};if(t.braceNest>0)return E(e,t)||h(t);if(t.inLinked)return O(e,t)||h(t);const o=e.currentChar();switch(o){case"{":return E(e,t)||h(t);case"}":return d(5,a(),0),e.next(),p(t,3,"}");case"@":return O(e,t)||h(t);default:if(v(e))return n=p(t,1,T(e)),t.braceNest=0,t.inLinked=!1,n;if(y(e))return p(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!y(e))break;t+=n,e.next()}else if(n===Ae||n===Ce)if(y(e))t+=n,e.next();else{if(v(e))break;t+=n,e.next()}else t+=n,e.next()}return t}(e));if("%"===o)return e.next(),p(t,4,"%")}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:i}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=i,l.offset=r(),l.startLoc=a(),o.currentChar()===Pe?p(l,14):P(o,l)},currentOffset:r,currentPosition:a,context:c}}const Me=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Le(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function Re(e={}){const t=!1!==e.location,{onError:n}=e;function o(e,t,o,r,...a){const i=e.currentPosition();if(i.offset+=r,i.column+=r,n){const e=we(t,Se(o,i),{domain:"parser",args:a});n(e)}}function r(e,n,o){const r={type:e,start:n,end:n};return t&&(r.loc={start:o,end:o}),r}function a(e,n,o,r){e.end=n,r&&(e.type=r),t&&e.loc&&(e.loc.end=o)}function i(e,t){const n=e.context(),o=r(3,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}function s(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:i}=n,s=r(5,o,i);return s.index=parseInt(t,10),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function l(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:i}=n,s=r(4,o,i);return s.key=t,e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){const n=e.context(),{lastOffset:o,lastStartLoc:i}=n,s=r(9,o,i);return s.value=t.replace(Me,Le),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function u(e){const t=e.context(),n=r(6,t.offset,t.startLoc);let i=e.nextToken();if(9===i.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:i,lastStartLoc:s}=n,l=r(8,i,s);return 12!==t.type?(o(e,11,n.lastStartLoc,0),l.value="",a(l,i,s),{nextConsumeToken:t,node:l}):(null==t.value&&o(e,13,n.lastStartLoc,0,Ie(t)),l.value=t.value||"",a(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,i=t.nextConsumeToken||e.nextToken()}switch(10!==i.type&&o(e,13,t.lastStartLoc,0,Ie(i)),i=e.nextToken(),2===i.type&&(i=e.nextToken()),i.type){case 11:null==i.value&&o(e,13,t.lastStartLoc,0,Ie(i)),n.key=function(e,t){const n=e.context(),o=r(7,n.offset,n.startLoc);return o.value=t,a(o,e.currentOffset(),e.currentPosition()),o}(e,i.value||"");break;case 5:null==i.value&&o(e,13,t.lastStartLoc,0,Ie(i)),n.key=l(e,i.value||"");break;case 6:null==i.value&&o(e,13,t.lastStartLoc,0,Ie(i)),n.key=s(e,i.value||"");break;case 7:null==i.value&&o(e,13,t.lastStartLoc,0,Ie(i)),n.key=c(e,i.value||"");break;default:o(e,12,t.lastStartLoc,0);const u=e.context(),d=r(7,u.offset,u.startLoc);return d.value="",a(d,u.offset,u.startLoc),n.key=d,a(n,u.offset,u.startLoc),{nextConsumeToken:i,node:n}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function d(e){const t=e.context(),n=r(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let d=null;do{const r=d||e.nextToken();switch(d=null,r.type){case 0:null==r.value&&o(e,13,t.lastStartLoc,0,Ie(r)),n.items.push(i(e,r.value||""));break;case 6:null==r.value&&o(e,13,t.lastStartLoc,0,Ie(r)),n.items.push(s(e,r.value||""));break;case 5:null==r.value&&o(e,13,t.lastStartLoc,0,Ie(r)),n.items.push(l(e,r.value||""));break;case 7:null==r.value&&o(e,13,t.lastStartLoc,0,Ie(r)),n.items.push(c(e,r.value||""));break;case 8:const a=u(e);n.items.push(a.node),d=a.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return a(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}return{parse:function(n){const i=De(n,se({},e)),s=i.context(),l=r(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=function(e){const t=e.context(),{offset:n,startLoc:i}=t,s=d(e);return 14===t.currentType?s:function(e,t,n,i){const s=e.context();let l=0===i.items.length;const c=r(1,t,n);c.cases=[],c.cases.push(i);do{const t=d(e);l||(l=0===t.items.length),c.cases.push(t)}while(14!==s.currentType);return l&&o(e,10,n,0),a(c,e.currentOffset(),e.currentPosition()),c}(e,n,i,s)}(i),14!==s.currentType&&o(i,13,s.lastStartLoc,0,n[s.offset]||""),a(l,i.currentOffset(),i.currentPosition()),l}}}function Ie(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Fe(e,t){for(let n=0;n1){e.push(`${n("plural")}([`),e.indent(o());const r=t.cases.length;for(let n=0;nn,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&Ne(e.body,n);const o=n.context();e.helpers=Array.from(o.helpers)}(o,n),((e,t={})=>{const n=me(t.mode)?t.mode:"normal",o=me(t.filename)?t.filename:"message.intl",r=!!t.sourceMap,a=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",i=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],l=function(e,t){const{sourceMap:n,filename:o,breakLineCode:r,needIndent:a}=t,i={source:e.loc.source,filename:o,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:r,needIndent:a,indentLevel:0};function s(e,t){i.code+=e}function l(e,t=!0){const n=t?r:"";s(a?n+" ".repeat(e):n)}return{context:()=>i,push:s,indent:function(e=!0){const t=++i.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--i.indentLevel;e&&l(t)},newline:function(){l(i.indentLevel)},helper:e=>`_${e}`,needIndent:()=>i.needIndent}}(e,{mode:n,filename:o,sourceMap:r,breakLineCode:a,needIndent:i});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(i),s.length>0&&(l.push(`const { ${s.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),l.newline()),l.push("return "),je(l,e),l.deindent(i),l.push("}");const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}})(o,n)}const Ue=Object.prototype.hasOwnProperty;function qe(e,t){return Ue.call(e,t)}const Be=e=>null!==e&&"object"==typeof e,ze=[];ze[0]={w:[0],i:[3,0],"[":[4],o:[7]},ze[1]={w:[1],".":[2],"[":[4],o:[7]},ze[2]={w:[2],i:[3,0],0:[3,0]},ze[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},ze[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},ze[5]={"'":[4,0],o:8,l:[5,0]},ze[6]={'"':[4,0],o:8,l:[6,0]};const Ve=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function He(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}const We=new Map;function Ge(e,t){if(!Be(e))return null;let n=We.get(t);if(n||(n=function(e){const t=[];let n,o,r,a,i,s,l,c=-1,u=0,d=0;const p=[];function h(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,r="\\"+t,p[0](),!0}for(p[0]=()=>{void 0===o?o=r:o+=r},p[1]=()=>{void 0!==o&&(t.push(o),o=void 0)},p[2]=()=>{p[0](),d++},p[3]=()=>{if(d>0)d--,u=4,p[0]();else{if(d=0,void 0===o)return!1;if(o=function(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,Ve.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}(o),!1===o)return!1;p[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!h()){if(a=He(n),l=ze[u],i=l[a]||l.l||8,8===i)return;if(u=i[0],void 0!==i[1]&&(s=p[i[1]],s&&(r=n,!1===s())))return;if(7===u)return t}}(t),n&&We.set(t,n)),!n)return null;const o=n.length;let r=e,a=0;for(;ae,Ze=e=>"",Xe=e=>0===e.length?"":e.join(""),Ke=e=>null==e?"":he(e)||_e(e)&&e.toString===ve?JSON.stringify(e,null,2):String(e);function Qe(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}let et=null;const tt=nt("function:translate");function nt(e){return t=>et&&et.emit(e,t)}let ot,rt=null;const at=e=>{rt=e};let it=0;function st(e,t,n,o,r){const{missing:a,onWarn:i}=e;if(null!==a){const o=a(e,n,t,r);return me(o)?o:t}return t}function lt(e,t,n){const o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let r=o.__localeChainCache.get(n);if(!r){r=[];let e=[n];for(;he(e);)e=ct(r,e,t);const a=he(t)?t:_e(t)?t.default?t.default:null:t;e=me(a)?[a]:a,he(e)&&ct(r,e,!1),o.__localeChainCache.set(n,r)}return r}function ct(e,t,n){let o=!0;for(let r=0;re;let ft=Object.create(null);function mt(e){return we(e,null,void 0)}const gt=()=>"",bt=e=>fe(e);function vt(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:r,fallbackLocale:a,messages:i}=e,[s,l]=_t(...t),c=(ge(l.missingWarn)?l.missingWarn:e.missingWarn,ge(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,ge(l.escapeParameter)?l.escapeParameter:e.escapeParameter),u=!!l.resolvedMessage,d=me(l.default)||ge(l.default)?ge(l.default)?s:l.default:n?s:"",p=n||""!==d,h=me(l.locale)?l.locale:e.locale;c&&function(e){he(e.list)?e.list=e.list.map((e=>me(e)?ue(e):e)):be(e.named)&&Object.keys(e.named).forEach((t=>{me(e.named[t])&&(e.named[t]=ue(e.named[t]))}))}(l);let[f,m,g]=u?[s,h,i[h]||{}]:function(e,t,n,o,r,a){const{messages:i,onWarn:s}=e,l=lt(e,o,n);let c,u={},d=null,p=n,h=null;for(let n=0;n{v=!0}));if(v)return f;const _=function(e,t,n,o){const{modifiers:r,pluralRules:a}=e,i={locale:t,modifiers:r,pluralRules:a,messages:o=>{const r=Ge(n,o);if(me(r)){let n=!1;const a=yt(e,o,t,r,o,(()=>{n=!0}));return n?gt:a}return bt(r)?r:gt}};return e.processor&&(i.processor=e.processor),o.list&&(i.list=o.list),o.named&&(i.named=o.named),oe(o.plural)&&(i.pluralIndex=o.plural),i}(e,m,g,l),k=function(e,t,n){return t(n)}(0,y,function(e={}){const t=e.locale,n=function(e){const t=oe(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(oe(e.named.count)||oe(e.named.n))?oe(e.named.count)?e.named.count:oe(e.named.n)?e.named.n:t:t}(e),o=be(e.pluralRules)&&me(t)&&fe(e.pluralRules[t])?e.pluralRules[t]:Qe,r=be(e.pluralRules)&&me(t)&&fe(e.pluralRules[t])?Qe:void 0,a=e.list||[],i=e.named||{};function s(t){return(fe(e.messages)?e.messages(t):!!be(e.messages)&&e.messages[t])||(e.parent?e.parent.message(t):Ze)}oe(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,i);const l=_e(e.processor)&&fe(e.processor.normalize)?e.processor.normalize:Xe,c=_e(e.processor)&&fe(e.processor.interpolate)?e.processor.interpolate:Ke,u={list:e=>a[e],named:e=>i[e],plural:e=>e[o(n,e.length,r)],linked:(t,n)=>{const o=s(t)(u);return me(n)?(r=n,e.modifiers?e.modifiers[r]:Je)(o):o;var r},message:s,type:_e(e.processor)&&me(e.processor.type)?e.processor.type:"text",interpolate:c,normalize:l};return u}(_)),w=o?o(k):k;if(__INTLIFY_PROD_DEVTOOLS__){const t={timestamp:Date.now(),key:me(s)?s:bt(f)?f.key:"",locale:m||(bt(f)?f.locale:""),format:me(f)?f:bt(f)?f.source:"",message:w};t.meta=se({},e.__meta,rt||{}),tt(t)}return w}function yt(e,t,n,o,r,a){const{messageCompiler:i,warnHtmlMessage:s}=e;if(bt(o)){const e=o;return e.locale=e.locale||n,e.key=e.key||t,e}const l=i(o,function(e,t,n,o,r,a){return{warnHtmlMessage:r,onError:e=>{throw a&&a(e),e},onCacheKey:e=>((e,t,n)=>{return o={l:e,k:t,s:n},JSON.stringify(o).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027");var o})(t,n,e)}}(0,n,r,0,s,a));return l.locale=n,l.key=t,l.source=o,l}function _t(...e){const[t,n,o]=e,r={};if(!me(t)&&!oe(t)&&!bt(t))throw mt(14);const a=oe(t)?String(t):(bt(t),t);return oe(n)?r.plural=n:me(n)?r.default=n:_e(n)&&!ae(n)?r.named=n:he(n)&&(r.list=n),oe(o)?r.plural=o:me(o)?r.default=o:_e(o)&&se(r,o),[a,r]}const kt="undefined"!=typeof Intl;function wt(e,...t){const{datetimeFormats:n,unresolving:o,fallbackLocale:r,onWarn:a}=e,{__datetimeFormatters:i}=e,[s,l,c,u]=xt(...t),d=(ge(c.missingWarn)?c.missingWarn:e.missingWarn,ge(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,!!c.part),p=me(c.locale)?c.locale:e.locale,h=lt(e,r,p);if(!me(s)||""===s)return new Intl.DateTimeFormat(p).format(l);let f,m={},g=null,b=p,v=null;for(let t=0;tr,setSettings(e){try{localStorage.setItem(o,JSON.stringify(e))}catch(e){}r=e},now:()=>{return void 0!==Dt||("undefined"!=typeof window&&window.performance?(Dt=!0,Mt=window.performance):void 0!==__webpack_require__.g&&(null===(e=__webpack_require__.g.perf_hooks)||void 0===e?void 0:e.performance)?(Dt=!0,Mt=__webpack_require__.g.perf_hooks.performance):Dt=!1),Dt?Mt.now():Date.now();var e}},t&&t.on("plugin:settings:set",((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}))})}async setRealTarget(e){this.target=e;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}const Rt="Vue I18n devtools",It="I18n Resources",Ft="Vue I18n",Nt="Search for scopes ...",jt=16764185;function $t(e,...t){return we(e,null,void 0)}const Ut="__INTLIFY_META__",qt=ne("__transrateVNode"),Bt=ne("__datetimeParts"),zt=ne("__numberParts"),Vt=ne("__enableEmitter"),Ht=ne("__disableEmitter"),Wt=ne("__setPluralRules");ne("__intlifyMeta");const Gt=ne("__injectWithOption");let Yt=0;function Jt(e){return(t,n,r,a)=>e(n,r,(0,o.FN)()||void 0,a)}function Zt(e,t){const{messages:n,__i18n:o}=t,r=_e(n)?n:he(o)?{}:{[e]:{}};if(he(o)&&o.forEach((({locale:e,resource:t})=>{e?(r[e]=r[e]||{},Kt(t,r[e])):Kt(t,r)})),t.flatJson)for(const e in r)pe(r,e)&&Ye(r[e]);return r}const Xt=e=>!be(e)||he(e);function Kt(e,t){if(Xt(e)||Xt(t))throw $t(20);for(const n in e)pe(e,n)&&(Xt(e[n])||Xt(t[n])?t[n]=e[n]:Kt(e[n],t[n]))}function Qt(e={}){const{__root:t}=e,n=void 0===t;let r=!ge(e.inheritLocale)||e.inheritLocale;const a=(0,Et.iH)(t&&r?t.locale.value:me(e.locale)?e.locale:"en-US"),i=(0,Et.iH)(t&&r?t.fallbackLocale.value:me(e.fallbackLocale)||he(e.fallbackLocale)||_e(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a.value),s=(0,Et.iH)(Zt(a.value,e)),l=(0,Et.iH)(_e(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),c=(0,Et.iH)(_e(e.numberFormats)?e.numberFormats:{[a.value]:{}});let u=t?t.missingWarn:!ge(e.missingWarn)&&!re(e.missingWarn)||e.missingWarn,d=t?t.fallbackWarn:!ge(e.fallbackWarn)&&!re(e.fallbackWarn)||e.fallbackWarn,p=t?t.fallbackRoot:!ge(e.fallbackRoot)||e.fallbackRoot,h=!!e.fallbackFormat,f=fe(e.missing)?e.missing:null,m=fe(e.missing)?Jt(e.missing):null,g=fe(e.postTranslation)?e.postTranslation:null,b=!ge(e.warnHtmlMessage)||e.warnHtmlMessage,v=!!e.escapeParameter;const y=t?t.modifiers:_e(e.modifiers)?e.modifiers:{};let _,k=e.pluralRules||t&&t.pluralRules;_=function(e={}){const t=me(e.version)?e.version:"9.1.10",n=me(e.locale)?e.locale:"en-US",o=he(e.fallbackLocale)||_e(e.fallbackLocale)||me(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,r=_e(e.messages)?e.messages:{[n]:{}},a=_e(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},i=_e(e.numberFormats)?e.numberFormats:{[n]:{}},s=se({},e.modifiers||{},{upper:e=>me(e)?e.toUpperCase():e,lower:e=>me(e)?e.toLowerCase():e,capitalize:e=>me(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),l=e.pluralRules||{},c=fe(e.missing)?e.missing:null,u=!ge(e.missingWarn)&&!re(e.missingWarn)||e.missingWarn,d=!ge(e.fallbackWarn)&&!re(e.fallbackWarn)||e.fallbackWarn,p=!!e.fallbackFormat,h=!!e.unresolving,f=fe(e.postTranslation)?e.postTranslation:null,m=_e(e.processor)?e.processor:null,g=!ge(e.warnHtmlMessage)||e.warnHtmlMessage,b=!!e.escapeParameter,v=fe(e.messageCompiler)?e.messageCompiler:ot,y=fe(e.onWarn)?e.onWarn:ie,_=e,k=be(_.__datetimeFormatters)?_.__datetimeFormatters:new Map,w=be(_.__numberFormatters)?_.__numberFormatters:new Map,x=be(_.__meta)?_.__meta:{};it++;const S={version:t,cid:it,locale:n,fallbackLocale:o,messages:r,datetimeFormats:a,numberFormats:i,modifiers:s,pluralRules:l,missing:c,missingWarn:u,fallbackWarn:d,fallbackFormat:p,unresolving:h,postTranslation:f,processor:m,warnHtmlMessage:g,escapeParameter:b,messageCompiler:v,onWarn:y,__datetimeFormatters:k,__numberFormatters:w,__meta:x};return __INTLIFY_PROD_DEVTOOLS__&&function(e,t,n){et&&et.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}(S,t,x),S}({version:"9.1.10",locale:a.value,fallbackLocale:i.value,messages:s.value,datetimeFormats:l.value,numberFormats:c.value,modifiers:y,pluralRules:k,missing:null===m?void 0:m,missingWarn:u,fallbackWarn:d,fallbackFormat:h,unresolving:!0,postTranslation:null===g?void 0:g,warnHtmlMessage:b,escapeParameter:v,__datetimeFormatters:_e(_)?_.__datetimeFormatters:void 0,__numberFormatters:_e(_)?_.__numberFormatters:void 0,__v_emitter:_e(_)?_.__v_emitter:void 0,__meta:{framework:"vue"}}),pt(_,a.value,i.value);const w=(0,o.Fl)({get:()=>a.value,set:e=>{a.value=e,_.locale=a.value}}),x=(0,o.Fl)({get:()=>i.value,set:e=>{i.value=e,_.fallbackLocale=i.value,pt(_,a.value,e)}}),S=(0,o.Fl)((()=>s.value)),A=(0,o.Fl)((()=>l.value)),C=(0,o.Fl)((()=>c.value));function T(e,n,r,u,d,h){let f;if(a.value,i.value,s.value,l.value,c.value,__INTLIFY_PROD_DEVTOOLS__)try{at((()=>{const e=(0,o.FN)();return e&&e.type[Ut]?{[Ut]:e.type[Ut]}:null})()),f=e(_)}finally{at(null)}else f=e(_);if(oe(f)&&-1===f){const[e,o]=n();return t&&p?u(t):d(e)}if(h(f))return f;throw $t(14)}function E(...e){return T((t=>vt(t,...e)),(()=>_t(...e)),0,(t=>t.t(...e)),(e=>e),(e=>me(e)))}const O={normalize:function(e){return e.map((e=>me(e)?(0,o.Wm)(o.xv,null,e,0):e))},interpolate:e=>e,type:"vnode"};function P(e){return s.value[e]||{}}Yt++,t&&((0,o.YP)(t.locale,(e=>{r&&(a.value=e,_.locale=e,pt(_,a.value,i.value))})),(0,o.YP)(t.fallbackLocale,(e=>{r&&(i.value=e,_.fallbackLocale=e,pt(_,a.value,i.value))})));const D={id:Yt,locale:w,fallbackLocale:x,get inheritLocale(){return r},set inheritLocale(e){r=e,e&&t&&(a.value=t.locale.value,i.value=t.fallbackLocale.value,pt(_,a.value,i.value))},get availableLocales(){return Object.keys(s.value).sort()},messages:S,datetimeFormats:A,numberFormats:C,get modifiers(){return y},get pluralRules(){return k||{}},get isGlobal(){return n},get missingWarn(){return u},set missingWarn(e){u=e,_.missingWarn=u},get fallbackWarn(){return d},set fallbackWarn(e){d=e,_.fallbackWarn=d},get fallbackRoot(){return p},set fallbackRoot(e){p=e},get fallbackFormat(){return h},set fallbackFormat(e){h=e,_.fallbackFormat=h},get warnHtmlMessage(){return b},set warnHtmlMessage(e){b=e,_.warnHtmlMessage=e},get escapeParameter(){return v},set escapeParameter(e){v=e,_.escapeParameter=e},t:E,rt:function(...e){const[t,n,o]=e;if(o&&!be(o))throw $t(15);return E(t,n,se({resolvedMessage:!0},o||{}))},d:function(...e){return T((t=>wt(t,...e)),(()=>xt(...e)),0,(t=>t.d(...e)),(()=>""),(e=>me(e)))},n:function(...e){return T((t=>At(t,...e)),(()=>Ct(...e)),0,(t=>t.n(...e)),(()=>""),(e=>me(e)))},te:function(e,t){return null!==Ge(P(me(t)?t:a.value),e)},tm:function(e){const n=function(e){let t=null;const n=lt(_,i.value,a.value);for(let o=0;o{let n;const o=t;try{o.processor=O,n=vt(o,...e)}finally{o.processor=null}return n}),(()=>_t(...e)),0,(t=>t[qt](...e)),(e=>[(0,o.Wm)(o.xv,null,e,0)]),(e=>he(e)))},[zt]:function(...e){return T((t=>At(t,...e)),(()=>Ct(...e)),0,(t=>t[zt](...e)),(()=>[]),(e=>me(e)||he(e)))},[Bt]:function(...e){return T((t=>wt(t,...e)),(()=>xt(...e)),0,(t=>t[Bt](...e)),(()=>[]),(e=>me(e)||he(e)))},[Wt]:function(e){k=e,_.pluralRules=k},[Gt]:e.__injectWithOption};return D}function en(e={}){const t=Qt(function(e){const t=me(e.locale)?e.locale:"en-US",n=me(e.fallbackLocale)||he(e.fallbackLocale)||_e(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,o=fe(e.missing)?e.missing:void 0,r=!ge(e.silentTranslationWarn)&&!re(e.silentTranslationWarn)||!e.silentTranslationWarn,a=!ge(e.silentFallbackWarn)&&!re(e.silentFallbackWarn)||!e.silentFallbackWarn,i=!ge(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,l=_e(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=fe(e.postTranslation)?e.postTranslation:void 0,d=!me(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,p=!!e.escapeParameterHtml,h=!ge(e.sync)||e.sync;let f=e.messages;if(_e(e.sharedMessages)){const t=e.sharedMessages;f=Object.keys(t).reduce(((e,n)=>{const o=e[n]||(e[n]={});return se(o,t[n]),e}),f||{})}const{__i18n:m,__root:g,__injectWithOption:b}=e,v=e.datetimeFormats,y=e.numberFormats;return{locale:t,fallbackLocale:n,messages:f,flatJson:e.flatJson,datetimeFormats:v,numberFormats:y,missing:o,missingWarn:r,fallbackWarn:a,fallbackRoot:i,fallbackFormat:s,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:p,inheritLocale:h,__i18n:m,__root:g,__injectWithOption:b}}(e)),n={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return ge(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=ge(e)?!e:e},get silentFallbackWarn(){return ge(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=ge(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[n,o,r]=e,a={};let i=null,s=null;if(!me(n))throw $t(15);const l=n;return me(o)?a.locale=o:he(o)?i=o:_e(o)&&(s=o),he(r)?i=r:_e(r)&&(s=r),t.t(l,i||s||{},a)},rt:(...e)=>t.rt(...e),tc(...e){const[n,o,r]=e,a={plural:1};let i=null,s=null;if(!me(n))throw $t(15);const l=n;return me(o)?a.locale=o:oe(o)?a.plural=o:he(o)?i=o:_e(o)&&(s=o),me(r)?a.locale=r:he(r)?i=r:_e(r)&&(s=r),t.t(l,i||s||{},a)},te:(e,n)=>t.te(e,n),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>t.d(...e),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>t.n(...e),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)},getChoiceIndex:(e,t)=>-1,__onComponentInstanceCreated(t){const{componentInstanceCreatedListener:o}=e;o&&o(t,n)}};return n}const tn={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}},nn={name:"i18n-t",props:se({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>oe(e)||!isNaN(e)}},tn),setup(e,t){const{slots:n,attrs:r}=t,a=e.i18n||yn({useScope:e.scope,__useComponent:!0}),i=Object.keys(n).filter((e=>"_"!==e));return()=>{const n={};e.locale&&(n.locale=e.locale),void 0!==e.plural&&(n.plural=me(e.plural)?+e.plural:e.plural);const s=function({slots:e},t){return 1===t.length&&"default"===t[0]?e.default?e.default():[]:t.reduce(((t,n)=>{const o=e[n];return o&&(t[n]=o()),t}),{})}(t,i),l=a[qt](e.keypath,s,n),c=se({},r);return me(e.tag)||be(e.tag)?(0,o.h)(e.tag,c,l):(0,o.h)(o.HY,c,l)}}};function on(e,t,n,r){const{slots:a,attrs:i}=t;return()=>{const t={part:!0};let s={};e.locale&&(t.locale=e.locale),me(e.format)?t.key=e.format:be(e.format)&&(me(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,o)=>n.includes(o)?se({},t,{[o]:e.format[o]}):t),{}));const l=r(e.value,t,s);let c=[t.key];he(l)?c=l.map(((e,t)=>{const n=a[e.type];return n?n({[e.type]:e.value,index:t,parts:l}):[e.value]})):me(l)&&(c=[l]);const u=se({},i);return me(e.tag)||be(e.tag)?(0,o.h)(e.tag,u,c):(0,o.h)(o.HY,u,c)}}const rn=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],an={name:"i18n-n",props:se({value:{type:Number,required:!0},format:{type:[String,Object]}},tn),setup(e,t){const n=e.i18n||yn({useScope:"parent",__useComponent:!0});return on(e,t,rn,((...e)=>n[zt](...e)))}},sn=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],ln={name:"i18n-d",props:se({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},tn),setup(e,t){const n=e.i18n||yn({useScope:"parent",__useComponent:!0});return on(e,t,sn,((...e)=>n[Bt](...e)))}};const cn="vue-i18n: composer properties";let un;async function dn(e,t){return new Promise(((n,o)=>{try{!function(e,t){const n=e,o=Ot(),r=Ot().__VUE_DEVTOOLS_GLOBAL_HOOK__,a=Pt&&n.enableEarlyProxy;if(!r||!o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&a){const e=a?new Lt(n,r):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else r.emit("devtools-plugin:setup",e,t)}({id:"vue-devtools-plugin-vue-i18n",label:Rt,packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[cn],app:e},(o=>{un=o,o.on.visitComponentTree((({componentInstance:e,treeNode:n})=>{!function(e,t,n){const o="composition"===n.mode?n.global:n.global.__composer;if(e&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==o){const n={label:`i18n (${e.type.name||e.type.displayName||e.type.__file} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(n)}}(e,n,t)})),o.on.inspectComponent((({componentInstance:e,instanceData:n})=>{e.vnode.el.__VUE_I18N__&&n&&("legacy"===t.mode?e.vnode.el.__VUE_I18N__!==t.global.__composer&&pn(n,e.vnode.el.__VUE_I18N__):pn(n,e.vnode.el.__VUE_I18N__))})),o.addInspector({id:"vue-i18n-resource-inspector",label:It,icon:"language",treeFilterPlaceholder:Nt}),o.on.getInspectorTree((n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&function(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n="composition"===t.mode?t.global:t.global.__composer;for(const[o,r]of t.__instances){const a="composition"===t.mode?r:r.__composer;if(n===a)continue;const i=o.type.name||o.type.displayName||o.type.__file;e.rootNodes.push({id:a.id.toString(),label:`${i} Scope`})}}(n,t)})),o.on.getInspectorState((n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&function(e,t){const n=gn(e.nodeId,t);n&&(e.state=function(e){const t={},n="Locale related info",o=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=o;const r="Locale messages info",a=[{type:r,key:"messages",editable:!1,value:hn(e.messages.value)}];t[r]=a;const i="Datetime formats info",s=[{type:i,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[i]=s;const l="Datetime formats info",c=[{type:l,key:"numberFormats",editable:!1,value:e.numberFormats.value}];return t[l]=c,t}(n))}(n,t)})),o.on.editInspectorState((n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&function(e,t){const n=gn(e.nodeId,t);if(n){const[t]=e.path;"locale"===t&&me(e.state.value)?n.locale.value=e.state.value:"fallbackLocale"===t&&(me(e.state.value)||he(e.state.value)||be(e.state.value))?n.fallbackLocale.value=e.state.value:"inheritLocale"===t&&ge(e.state.value)&&(n.inheritLocale=e.state.value)}}(n,t)})),o.addTimelineLayer({id:"vue-i18n-timeline",label:Ft,color:jt}),n(!0)}))}catch(e){console.error(e),o(!1)}}))}function pn(e,t){const n=cn;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:hn(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function hn(e){const t={};return Object.keys(e).forEach((n=>{const o=e[n];var r,a;fe(o)&&"source"in o?t[n]={_custom:{type:"function",display:"ƒ "+((r=o).source?`("${a=r.source,a.replace(/[<>"&]/g,mn)}")`:"(?)")}}:be(o)?t[n]=hn(o):t[n]=o})),t}const fn={"<":"<",">":">",'"':""","&":"&"};function mn(e){return fn[e]||e}function gn(e,t){if("global"===e)return"composition"===t.mode?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find((t=>t.id.toString()===e));return n?"composition"===t.mode?n:n.__composer:null}}function bn(e,t){if(un){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),un.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:"compile-error"===e?"error":"fallback"===e||"missing"===e?"warning":"default"}})}}function vn(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Wt](t.pluralizationRules||e.pluralizationRules);const n=Zt(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach((t=>e.mergeLocaleMessage(t,n[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((n=>e.mergeNumberFormat(n,t.numberFormats[n]))),e}function yn(e={}){const t=(0,o.FN)();if(null==t)throw $t(16);if(!t.appContext.app.__VUE_I18N_SYMBOL__)throw $t(17);const n=(0,o.f3)(t.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw $t(22);const r="composition"===n.mode?n.global:n.global.__composer,a=ae(e)?"__i18n"in t.type?"local":"global":e.useScope?e.useScope:"local";if("global"===a){let n=be(e.messages)?e.messages:{};"__i18nGlobal"in t.type&&(n=Zt(r.locale.value,{messages:n,__i18n:t.type.__i18nGlobal}));const o=Object.keys(n);if(o.length&&o.forEach((e=>{r.mergeLocaleMessage(e,n[e])})),be(e.datetimeFormats)){const t=Object.keys(e.datetimeFormats);t.length&&t.forEach((t=>{r.mergeDateTimeFormat(t,e.datetimeFormats[t])}))}if(be(e.numberFormats)){const t=Object.keys(e.numberFormats);t.length&&t.forEach((t=>{r.mergeNumberFormat(t,e.numberFormats[t])}))}return r}if("parent"===a){let o=function(e,t,n=!1){let o=null;const r=t.root;let a=t.parent;for(;null!=a;){const t=e;if("composition"===e.mode)o=t.__getInstance(a);else{const e=t.__getInstance(a);null!=e&&(o=e.__composer),n&&o&&!o[Gt]&&(o=null)}if(null!=o)break;if(r===a)break;a=a.parent}return o}(n,t,e.__useComponent);return null==o&&(o=r),o}if("legacy"===n.mode)throw $t(18);const i=n;let s=i.__getInstance(t);if(null==s){const n=t.type,a=se({},e);n.__i18n&&(a.__i18n=n.__i18n),r&&(a.__root=r),s=Qt(a),function(e,t,n){let r=null;(0,o.bv)((()=>{if(__VUE_PROD_DEVTOOLS__&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,r=ke();const e=n;e[Vt]&&e[Vt](r),r.on("*",bn)}}),t),(0,o.Ah)((()=>{if(__VUE_PROD_DEVTOOLS__&&t.vnode.el&&t.vnode.el.__VUE_I18N__){r&&r.off("*",bn);const e=n;e[Ht]&&e[Ht](),delete t.vnode.el.__VUE_I18N__}e.__deleteInstance(t)}),t)}(i,t,s),i.__setInstance(t,s)}return s}const _n=["locale","fallbackLocale","availableLocales"],kn=["t","rt","d","n","tm"];var wn,xn;if(wn=function(e,t={}){{const n=(t.onCacheKey||ht)(e),o=ft[n];if(o)return o;let r=!1;const a=t.onError||xe;t.onError=e=>{r=!0,a(e)};const{code:i}=$e(e,t),s=new Function(`return ${i}`)();return r?s:ft[n]=s}},ot=wn,function(){let e=!1;"boolean"!=typeof __VUE_I18N_FULL_INSTALL__&&(e=!0,ce().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!=typeof __VUE_I18N_LEGACY_API__&&(e=!0,ce().__VUE_I18N_LEGACY_API__=!0),"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(ce().__INTLIFY_PROD_DEVTOOLS__=!1)}(),__INTLIFY_PROD_DEVTOOLS__){const e=ce();e.__INTLIFY__=!0,xn=e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__,et=xn}function Sn(e){return Sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sn(e)}function An(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cn(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};An(this,e),this.init(t,n)}return Tn(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Nn,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),o=1;o-1?e.replace(/###/g,"."):e}function r(){return!e||"string"==typeof e}for(var a="string"!=typeof t?[].concat(t):t.split(".");a.length>1;){if(r())return{};var i=o(a.shift());!e[i]&&n&&(e[i]=new n),e=Object.prototype.hasOwnProperty.call(e,i)?e[i]:{}}return r()?{}:{obj:e,k:o(a.shift())}}function Vn(e,t,n){var o=zn(e,t,Object);o.obj[o.k]=n}function Hn(e,t){var n=zn(e,t),o=n.obj,r=n.k;if(o)return o[r]}function Wn(e,t,n){var o=Hn(e,n);return void 0!==o?o:Hn(t,n)}function Gn(e,t,n){for(var o in t)"__proto__"!==o&&"constructor"!==o&&(o in e?"string"==typeof e[o]||e[o]instanceof String||"string"==typeof t[o]||t[o]instanceof String?n&&(e[o]=t[o]):Gn(e[o],t[o],n):e[o]=t[o]);return e}function Yn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Jn={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Zn(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Jn[e]})):e}var Xn="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Kn=[" ",",","?","!",";"];function Qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function eo(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var o=t.split(n),r=e,a=0;aa+i;)i++,l=r[s=o.slice(a,a+i).join(n)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(s)){if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s]}var c=o.slice(a+i).join(n);return c?to(l,c,n):void 0}r=r[o[a]]}return r}}var no=function(e){Pn(r,e);var t,n,o=(t=r,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,o=Mn(t);if(n){var r=Mn(this).constructor;e=Reflect.construct(o,arguments,r)}else e=o.apply(this,arguments);return Dn(this,e)});function r(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return An(this,r),t=o.call(this),Xn&&$n.call(En(t)),t.data=e||{},t.options=n,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return Tn(r,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,a=void 0!==o.ignoreJSONStructure?o.ignoreJSONStructure:this.options.ignoreJSONStructure,i=[e,t];n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(i=e.split("."));var s=Hn(this.data,i);return s||!a||"string"!=typeof n?s:to(this.data&&this.data[e]&&this.data[e][t],n,r)}},{key:"addResource",value:function(e,t,n,o){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=".");var i=[e,t];n&&(i=i.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(o=t,t=(i=e.split("."))[1]),this.addNamespaces(t),Vn(this.data,i,o),r.silent||this.emit("added",e,t,n,o)}},{key:"addResources",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in n)"string"!=typeof n[r]&&"[object Array]"!==Object.prototype.toString.apply(n[r])||this.addResource(e,t,r,n[r],{silent:!0});o.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,o,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},i=[e,t];e.indexOf(".")>-1&&(o=n,n=t,t=(i=e.split("."))[1]),this.addNamespaces(t);var s=Hn(this.data,i)||{};o?Gn(s,n,r):s=eo(eo({},s),n),Vn(this.data,i,s),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?eo(eo({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),r}($n),oo={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,o,r){var a=this;return e.forEach((function(e){a.processors[e]&&(t=a.processors[e].process(t,n,o,r))})),t}};function ro(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ao(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return An(this,r),t=o.call(this),Xn&&$n.call(En(t)),Bn(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,En(t)),t.options=n,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=jn.create("translator"),t}return Tn(r,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var o=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,i=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var o=Kn.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===o.length)return!0;var r=new RegExp("(".concat(o.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),a=!r.test(e);if(!a){var i=e.indexOf(n);i>0&&!r.test(e.substring(0,i))&&(a=!0)}return a}(e,n,o));if(a&&!i){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:r};var l=e.split(n);(n!==o||n===o&&this.options.ns.indexOf(l[0])>-1)&&(r=l.shift()),e=l.join(o)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,t,n){var o=this;if("object"!==Sn(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var a=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),l=s.key,c=s.namespaces,u=c[c.length-1],d=t.lng||this.language,p=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var h=t.nsSeparator||this.options.nsSeparator;return a?(f.res="".concat(u).concat(h).concat(l),f):"".concat(u).concat(h).concat(l)}return a?(f.res=l,f):l}var f=this.resolve(e,t),m=f&&f.res,g=f&&f.usedKey||l,b=f&&f.exactUsedKey||l,v=Object.prototype.toString.apply(m),y=["[object Number]","[object Function]","[object RegExp]"],_=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,w="string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m;if(k&&m&&w&&y.indexOf(v)<0&&("string"!=typeof _||"[object Array]"!==v)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var x=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,m,ao(ao({},t),{},{ns:c})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return a?(f.res=x,f):x}if(i){var S="[object Array]"===v,A=S?[]:{},C=S?b:g;for(var T in m)if(Object.prototype.hasOwnProperty.call(m,T)){var E="".concat(C).concat(i).concat(T);A[T]=this.translate(E,ao(ao({},t),{joinArrays:!1,ns:c})),A[T]===E&&(A[T]=m[T])}m=A}}else if(k&&"string"==typeof _&&"[object Array]"===v)(m=m.join(_))&&(m=this.extendTranslation(m,e,t,n));else{var O=!1,P=!1,D=void 0!==t.count&&"string"!=typeof t.count,M=r.hasDefaultValue(t),L=D?this.pluralResolver.getSuffix(d,t.count,t):"",R=t["defaultValue".concat(L)]||t.defaultValue;!this.isValidLookup(m)&&M&&(O=!0,m=R),this.isValidLookup(m)||(P=!0,m=l);var I=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,F=I&&P?void 0:m,N=M&&R!==m&&this.options.updateMissing;if(P||O||N){if(this.logger.log(N?"updateKey":"missingKey",d,u,l,N?R:m),i){var j=this.resolve(l,ao(ao({},t),{},{keySeparator:!1}));j&&j.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var $=[],U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&U&&U[0])for(var q=0;q1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!i.isValidLookup(t)){var l=i.extractFromKey(e,s),c=l.key;n=c;var u=l.namespaces;i.options.fallbackNS&&(u=u.concat(i.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,p=d&&!s.ordinal&&0===s.count&&i.pluralResolver.shouldUseIntlApi(),h=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,f=s.lngs?s.lngs:i.languageUtils.toResolveHierarchy(s.lng||i.language,s.fallbackLng);u.forEach((function(e){i.isValidLookup(t)||(a=e,!io["".concat(f[0],"-").concat(e)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(a)&&(io["".concat(f[0],"-").concat(e)]=!0,i.logger.warn('key "'.concat(n,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(a,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((function(n){if(!i.isValidLookup(t)){r=n;var a,l=[c];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(l,c,n,e,s);else{var u;d&&(u=i.pluralResolver.getSuffix(n,s.count,s));var f="".concat(i.options.pluralSeparator,"zero");if(d&&(l.push(c+u),p&&l.push(c+f)),h){var m="".concat(c).concat(i.options.contextSeparator).concat(s.context);l.push(m),d&&(l.push(m+u),p&&l.push(m+f))}}for(;a=l.pop();)i.isValidLookup(t)||(o=a,t=i.getResource(n,e,a,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:o,usedLng:r,usedNS:a}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,o):this.resourceStore.getResource(e,t,n,o)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),r}($n);function lo(e){return e.charAt(0).toUpperCase()+e.slice(1)}var co=function(){function e(t){An(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=jn.create("languageUtils")}return Tn(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=lo(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=lo(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=lo(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var o=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(o)||(t=o)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var o=n.getLanguagePartFromCode(e);if(n.isSupportedCode(o))return t=o;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(o))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,o=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],a=function(e){e&&(n.isSupportedCode(e)?r.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):"string"==typeof e&&a(this.formatLanguageCode(e)),o.forEach((function(e){r.indexOf(e)<0&&a(n.formatLanguageCode(e))})),r}}]),e}(),uo=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],po={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},ho=["v1","v2","v3"],fo={zero:0,one:1,two:2,few:3,many:4,other:5};function mo(){var e={};return uo.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:po[t.fc]}}))})),e}var go=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};An(this,e),this.languageUtils=t,this.options=n,this.logger=jn.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=mo()}return Tn(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.getRule(e,n);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort((function(e,t){return fo[e]-fo[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):o.numbers.map((function(o){return t.getSuffix(e,o,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=this.getRule(e,n);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(t)):this.getSuffixRetroCompatible(o,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,o=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[o];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));var a=function(){return n.options.prepend&&r.toString()?n.options.prepend+r.toString():r.toString()};return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?"_plural_".concat(r.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}},{key:"shouldUseIntlApi",value:function(){return!ho.includes(this.options.compatibilityJSON)}}]),e}();function bo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function vo(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};An(this,e),this.logger=jn.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return Tn(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:Zn,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Yn(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Yn(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?Yn(t.nestingPrefix):t.nestingPrefixEscaped||Yn("$t("),this.nestingSuffix=t.nestingSuffix?Yn(t.nestingSuffix):t.nestingSuffixEscaped||Yn(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,o){var r,a,i,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(s.formatSeparator)<0){var r=Wn(t,l,e);return s.alwaysFormat?s.format(r,void 0,n,vo(vo(vo({},o),t),{},{interpolationkey:e})):r}var a=e.split(s.formatSeparator),i=a.shift().trim(),c=a.join(s.formatSeparator).trim();return s.format(Wn(t,l,i),c,n,vo(vo(vo({},o),t),{},{interpolationkey:i}))};this.resetRegExp();var d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&void 0!==o.interpolation.skipOnVariables?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach((function(t){for(i=0;r=t.regex.exec(e);){var n=r[1].trim();if(void 0===(a=u(n)))if("function"==typeof d){var l=d(e,r,o);a="string"==typeof l?l:""}else if(o&&o.hasOwnProperty(n))a="";else{if(p){a=r[0];continue}s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),a=""}else"string"==typeof a||s.useRawValueToEscape||(a=qn(a));var c=t.safeValue(a);if(e=e.replace(r[0],c),p?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=r[0].length):t.regex.lastIndex=0,++i>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,o,r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=vo({},a);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var o=e.split(new RegExp("".concat(n,"[ ]*{"))),r="{".concat(o[1]);e=o[0];var a=(r=this.interpolate(r,i)).match(/'/g),s=r.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(r=r.replace(/'/g,'"'));try{i=JSON.parse(r),t&&(i=vo(vo({},t),i))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(r)}return delete i.defaultValue,e}for(i.applyPostProcessor=!1,delete i.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=u.shift(),l=u,c=!0}if((o=t(s.call(this,n[1].trim(),i),i))&&n[0]===e&&"string"!=typeof o)return o;"string"!=typeof o&&(o=qn(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),o=""),c&&(o=l.reduce((function(e,t){return r.format(e,t,a.lng,vo(vo({},a),{},{interpolationkey:n[1].trim()}))}),o.trim())),e=e.replace(n[0],o),this.regexp.lastIndex=0}return e}}]),e}();function _o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ko(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};An(this,e),this.logger=jn.create("formatter"),this.options=t,this.formats={number:wo((function(e,t){var n=new Intl.NumberFormat(e,t);return function(e){return n.format(e)}})),currency:wo((function(e,t){var n=new Intl.NumberFormat(e,ko(ko({},t),{},{style:"currency"}));return function(e){return n.format(e)}})),datetime:wo((function(e,t){var n=new Intl.DateTimeFormat(e,ko({},t));return function(e){return n.format(e)}})),relativetime:wo((function(e,t){var n=new Intl.RelativeTimeFormat(e,ko({},t));return function(e){return n.format(e,t.range||"day")}})),list:wo((function(e,t){var n=new Intl.ListFormat(e,ko({},t));return function(e){return n.format(e)}}))},this.init(t)}return Tn(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=wo(t)}},{key:"format",value:function(e,t,n,o){var r=this;return t.split(this.formatSeparator).reduce((function(e,t){var a=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var o=e.split("(");t=o[0].toLowerCase().trim();var r=o[1].substring(0,o[1].length-1);"currency"===t&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):"relativetime"===t&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach((function(e){if(e){var t=function(e){if(Array.isArray(e))return e}(a=e.split(":"))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return Rn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rn(e,t):void 0}}(a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=t[0],r=t.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[o.trim()]||(n[o.trim()]=r),"false"===r&&(n[o.trim()]=!1),"true"===r&&(n[o.trim()]=!0),isNaN(r)||(n[o.trim()]=parseInt(r,10))}var a}))}return{formatName:t,formatOptions:n}}(t),i=a.formatName,s=a.formatOptions;if(r.formats[i]){var l=e;try{var c=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},u=c.locale||c.lng||o.locale||o.lng||n;l=r.formats[i](e,u,ko(ko(ko({},s),o),c))}catch(e){r.logger.warn(e)}return l}return r.logger.warn("there was no format function for ".concat(i)),e}),e)}}]),e}();function So(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ao(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};return An(this,r),a=o.call(this),Xn&&$n.call(En(a)),a.backend=e,a.store=t,a.services=n,a.languageUtils=n.languageUtils,a.options=i,a.logger=jn.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=i.maxParallelReads||10,a.readingCalls=0,a.maxRetries=i.maxRetries>=0?i.maxRetries:5,a.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(n,i.backend,i),a}return Tn(r,[{key:"queueLoad",value:function(e,t,n,o){var r=this,a={},i={},s={},l={};return e.forEach((function(e){var o=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&r.store.hasResourceBundle(e,t)?r.state[s]=2:r.state[s]<0||(1===r.state[s]?void 0===i[s]&&(i[s]=!0):(r.state[s]=1,o=!1,void 0===i[s]&&(i[s]=!0),void 0===a[s]&&(a[s]=!0),void 0===l[t]&&(l[t]=!0)))})),o||(s[e]=!0)})),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,n){var o=e.split("|"),r=o[0],a=o[1];t&&this.emit("failedLoading",r,a,t),n&&this.store.addResourceBundle(r,a,n),this.state[e]=t?-1:2;var i={};this.queue.forEach((function(n){var o,s,l,c,u;o=n.loaded,s=a,(c=(l=zn(o,[r],Object)).obj)[u=l.k]=c[u]||[],c[u].push(s),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((function(e){i[e]||(i[e]={});var t=n.loaded[e];t.length&&t.forEach((function(t){void 0===i[e][t]&&(i[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",i),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var o=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:a,callback:i}):(this.readingCalls++,this.backend[n](e,t,(function(s,l){if(o.readingCalls--,o.waitingReads.length>0){var c=o.waitingReads.shift();o.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}s&&l&&r2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var a=this.queueLoad(e,t,o,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=e.split("|"),r=o[0],a=o[1];this.read(r,a,"read",void 0,void 0,(function(o,i){o&&t.logger.warn("".concat(n,"loading namespace ").concat(a," for language ").concat(r," failed"),o),!o&&i&&t.logger.log("".concat(n,"loaded namespace ").concat(a," for language ").concat(r),i),t.loaded(e,o,i)}))}},{key:"saveMissing",value:function(e,t,n,o,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,o,null,Ao(Ao({},a),{},{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,n,o))}}]),r}($n);function To(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===Sn(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Sn(e[2])||"object"===Sn(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,o){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Eo(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Oo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Po(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(An(this,r),e=o.call(this),Xn&&$n.call(En(e)),e.options=Eo(t),e.services={},e.logger=jn,e.modules={external:[]},Mo(En(e)),n&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,n),Dn(e,En(e));setTimeout((function(){e.init(t,n)}),0)}return e}return Tn(r,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var o=To();function r(e){return e?"function"==typeof e?new e:e:null}if(this.options=Po(Po(Po({},o),this.options),Eo(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=Po(Po({},o.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var a;this.modules.logger?jn.init(r(this.modules.logger),this.options):jn.init(null,this.options),this.modules.formatter?a=this.modules.formatter:"undefined"!=typeof Intl&&(a=xo);var i=new co(this.options);this.store=new no(this.options.resources,this.options);var s=this.services;s.logger=jn,s.resourceStore=this.store,s.languageUtils=i,s.pluralResolver=new go(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!a||this.options.interpolation.format&&this.options.interpolation.format!==o.interpolation.format||(s.formatter=r(a),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new yo(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new Co(r(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r1?n-1:0),r=1;r0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var c=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var d=Un(),p=function(){var t=function(t,o){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),d.resolve(o),n(t,o)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),d}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Do,o=n,r="string"==typeof e?e:this.language;if("function"==typeof e&&(o=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return o();var a=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){a.indexOf(e)<0&&a.push(e)}))};if(r)i(r);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return i(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(a,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),o(e)}))}else o(null)}},{key:"reloadResources",value:function(e,t,n){var o=Un();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Do),this.services.backendConnector.reload(e,t,(function(e){o.resolve(),n(e)})),o}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&oo.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var o=Un();this.emit("languageChanging",e);var r=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},a=function(a){e||a||!n.services.languageDetector||(a=[]);var i="string"==typeof a?a:n.services.languageUtils.getBestMatchFromCodes(a);i&&(n.language||r(i),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,a){a?(r(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit("languageChanged",a),n.logger.log("languageChanged",a)):n.isLanguageChangingTo=void 0,o.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),o}},{key:"getFixedT",value:function(e,t,n){var o=this,r=function e(t,r){var a;if("object"!==Sn(r)){for(var i=arguments.length,s=new Array(i>2?i-2:0),l=2;l1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var o=this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===o.toLowerCase())return!0;var i=function(e,n){var o=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===o||2===o};if(n.precheck){var s=n.precheck(this,i);if(void 0!==s)return s}return!(!this.hasResourceBundle(o,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!i(o,e)||r&&!i(a,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,o=Un();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){o.resolve(),t&&t(e)})),o):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=Un();"string"==typeof e&&(e=[e]);var o=this.options.preload||[],r=e.filter((function(e){return o.indexOf(e)<0}));return r.length?(this.options.preload=o.concat(r),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Do,o=Po(Po(Po({},this.options),t),{isClone:!0}),a=new r(o);void 0===t.debug&&void 0===t.prefix||(a.logger=a.logger.clone(t));var i=["store","services","language"];return i.forEach((function(t){a[t]=e[t]})),a.services=Po({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new so(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Lo(e,t)}));var Ro=Lo.createInstance();Ro.createInstance=Lo.createInstance,Ro.createInstance,Ro.init,Ro.loadResources,Ro.reloadResources,Ro.use,Ro.changeLanguage,Ro.getFixedT,Ro.t,Ro.exists,Ro.setDefaultNamespace,Ro.hasLoadedNamespace,Ro.loadNamespaces,Ro.loadLanguages;const Io=Ro;var Fo,No=document.getElementById("language"),jo=No?Array.from(No.querySelectorAll("option")).map((function(e){return e.value})):["en"],$o=No?No.options[No.selectedIndex].value:"en",Uo=function(e){void 0===e&&(e="");try{return __webpack_require__(5144)("./".concat(e))}catch(e){return null}};Fo={},jo.forEach((function(e){Fo[e]={translation:Uo("".concat(e,"/translation.json"))}})),Io.init({fallbackLng:"en",lng:$o,resources:Fo});var qo,Bo=(qo={},jo.forEach((function(e){qo[e]=Uo("".concat(e,"/translation.json"))})),function(e={}){const t=__VUE_I18N_LEGACY_API__&&ge(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=!!e.globalInjection,r=new Map,a=__VUE_I18N_LEGACY_API__&&t?en(e):Qt(e),i=ne(""),s={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(e,...r){if(__VUE_PROD_DEVTOOLS__&&(e.__VUE_I18N__=s),e.__VUE_I18N_SYMBOL__=i,e.provide(e.__VUE_I18N_SYMBOL__,s),!t&&n&&function(e,t){const n=Object.create(null);_n.forEach((e=>{const o=Object.getOwnPropertyDescriptor(t,e);if(!o)throw $t(22);const r=(0,Et.dq)(o.value)?{get:()=>o.value.value,set(e){o.value.value=e}}:{get:()=>o.get&&o.get()};Object.defineProperty(n,e,r)})),e.config.globalProperties.$i18n=n,kn.forEach((n=>{const o=Object.getOwnPropertyDescriptor(t,n);if(!o||!o.value)throw $t(22);Object.defineProperty(e.config.globalProperties,`$${n}`,o)}))}(e,s.global),__VUE_I18N_FULL_INSTALL__&&function(e,t,...n){const o=_e(n[0])?n[0]:{},r=!!o.useI18nComponentName;(!ge(o.globalInstall)||o.globalInstall)&&(e.component(r?"i18n":nn.name,nn),e.component(an.name,an),e.component(ln.name,ln)),e.directive("t",function(e){const t=(t,{instance:n,value:o,modifiers:r})=>{if(!n||!n.$)throw $t(22);const a=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const o=n.__getInstance(t);return null!=o?o.__composer:e.global.__composer}}(e,n.$),i=function(e){if(me(e))return{path:e};if(_e(e)){if(!("path"in e))throw $t(19);return e}throw $t(20)}(o);t.textContent=a.t(...function(e){const{path:t,locale:n,args:o,choice:r,plural:a}=e,i={},s=o||{};return me(n)&&(i.locale=n),oe(r)&&(i.plural=r),oe(a)&&(i.plural=a),[t,s,i]}(i))};return{beforeMount:t,beforeUpdate:t}}(t))}(e,s,...r),__VUE_I18N_LEGACY_API__&&t&&e.mixin(function(e,t,n){return{beforeCreate(){const r=(0,o.FN)();if(!r)throw $t(22);const a=this.$options;if(a.i18n){const n=a.i18n;a.__i18n&&(n.__i18n=a.__i18n),n.__root=t,this===this.$root?this.$i18n=vn(e,n):(n.__injectWithOption=!0,this.$i18n=en(n))}else a.__i18n?this===this.$root?this.$i18n=vn(e,a):this.$i18n=en({__i18n:a.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e)},mounted(){if(__VUE_PROD_DEVTOOLS__){this.$el.__VUE_I18N__=this.$i18n.__composer;const e=this.__v_emitter=ke(),t=this.$i18n;t.__enableEmitter&&t.__enableEmitter(e),e.on("*",bn)}},beforeUnmount(){const e=(0,o.FN)();if(!e)throw $t(22);if(__VUE_PROD_DEVTOOLS__){this.__v_emitter&&(this.__v_emitter.off("*",bn),delete this.__v_emitter);const e=this.$i18n;e.__disableEmitter&&e.__disableEmitter(),delete this.$el.__VUE_I18N__}delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(e),delete this.$i18n}}}(a,a.__composer,s)),__VUE_PROD_DEVTOOLS__){if(!await dn(e,s))throw $t(21);const n=ke();if(t){const e=a;e.__enableEmitter&&e.__enableEmitter(n)}else{const e=a;e[Vt]&&e[Vt](n)}n.on("*",bn)}},get global(){return a},__instances:r,__getInstance:e=>r.get(e)||null,__setInstance(e,t){r.set(e,t)},__deleteInstance(e){r.delete(e)}};return s}({fallbackLocale:"en",locale:$o,messages:qo})),zo=function(e){var t=e.component,n=e.props,a=void 0===n?{}:n,i=e.use,s=void 0===i?[]:i,l=e.mountTarget,c=(0,o.aZ)(t),u=(0,r.createApp)(c,a);return null==s||s.forEach((function(e){u.use(e)})),u.mount(l)},Vo=function(){function e(e,t){var n=this;this.root=e,this.manager=t,this.gutter=e.querySelector("la-gutter"),this.akn=e.querySelector("la-akoma-ntoso"),this.workFrbrUri=e.dataset.workFrbrUri||"",this.workId=e.dataset.workId||"",this.editable=this.root.hasAttribute("data-editable-relationships");var o=document.getElementById("provision-relationships");this.enrichments=o?JSON.parse(o.innerText||"[]"):[],this.listComponent=zo({component:ee,props:{gutter:this.gutter,viewRoot:this.root,enrichments:this.enrichments,editable:this.editable,thisWorkFrbrUri:this.workFrbrUri},use:[Bo],mountTarget:document.createElement("div")});var r=new MutationObserver((function(){n.listComponent.markAndAnchorAll()}));this.akn&&r.observe(this.akn,{childList:!0}),this.editable&&this.manager.addProvider(this)}return e.prototype.getButton=function(e){var t=document.createElement("button");return t.className="btn btn-outline-secondary",t.type="button",t.innerText="Add relationship...",t},e.prototype.addEnrichment=function(e){this.listComponent.creating={id:null,predicate_id:null,predicate:{},subject_work_id:this.workId,subject_work:{frbr_uri:this.workFrbrUri},subject_target_id:e.anchor_id,subject_documents:[],object_work:{},object_target_id:null,object_documents:[]}},e}();const Ho={ref:"form",method:"get"},Wo={class:"list-group"},Go={class:"position-relative list-group-item bg-light d-flex justify-content-between align-items-center"},Yo={key:0,class:"list-group-item"},Jo={class:"d-flex justify-content-between mb-2"},Zo={class:"d-flex align-items-center"},Xo={key:1,class:"circle-loader ms-2"},Ko={class:"form-check flex-grow-1"},Qo=["id","value","name","checked"],er=["for"],tr={class:"badge bg-light text-dark"},nr={class:"form-check flex-grow-1"},or=["id","checked","value","name"],rr=["for"],ar={class:"badge bg-light text-dark"},ir={key:2,class:"letter-radiobox-container"},sr=["value","checked","name"],lr={class:"letter-radiobox__text"},cr={key:1,class:"list-group-item d-flex justify-content-between"},ur={class:"d-flex justify-content-between align-items-center"},dr={class:"form-check"},pr=["id","checked","name"],hr=["for"],fr={class:"d-flex align-items-center"},mr={class:"badge bg-light text-dark"},gr={key:0,class:"circle-loader ms-2"},br={name:"SingleFacet",props:{facet:{type:Object,required:!0},loading:{type:Boolean,required:!1,default:!1}},emits:["clear-facet","on-change"],computed:{showClearFilter(){return"checkboxes"===this.facet.type?this.facet.value.length:this.facet.value}}};__webpack_require__(5294),br.render=function(e,t){return(0,o.wg)(),(0,o.iD)(o.HY,null,[e.facet.options&&e.facet.options.length?((0,o.wg)(),(0,o.iD)("li",Yo,[(0,o._)("div",Jo,[(0,o._)("strong",null,(0,a.zw)(e.facet.title),1),(0,o._)("div",Zo,[e.showClearFilter?((0,o.wg)(),(0,o.iD)("a",{key:0,href:"#",onClick:t[0]||(t[0]=(0,r.withModifiers)((t=>e.$emit("clear-facet",e.facet.name)),["prevent"]))},(0,a.zw)(e.$t("Clear")),1)):(0,o.kq)("v-if",!0),e.loading?((0,o.wg)(),(0,o.iD)("span",Xo)):(0,o.kq)("v-if",!0)])]),(0,o._)("div",{class:(0,a.C_)("letter-radio"===e.facet.type?"":"facets-scrollable")},["checkboxes"===e.facet.type?((0,o.wg)(!0),(0,o.iD)(o.HY,{key:0},(0,o.Ko)(e.facet.options,((n,r)=>((0,o.wg)(),(0,o.iD)("div",{key:r,class:"d-flex justify-content-between align-items-center"},[(0,o._)("div",Ko,[(0,o._)("input",{id:`${e.facet.name}_${r}`,value:n.value,class:"form-check-input",type:"checkbox",name:e.facet.name,checked:e.facet.value.some((e=>String(e)===String(n.value))),onInput:t[1]||(t[1]=t=>e.$emit("on-change",t,e.facet))},null,40,Qo),(0,o._)("label",{class:"form-check-label",for:`${e.facet.name}_${r}`},(0,a.zw)(n.label),9,er)]),(0,o._)("div",null,[(0,o._)("span",tr,(0,a.zw)(n.count),1)])])))),128)):(0,o.kq)("v-if",!0),"radio"===e.facet.type?((0,o.wg)(!0),(0,o.iD)(o.HY,{key:1},(0,o.Ko)(e.facet.options,((n,r)=>((0,o.wg)(),(0,o.iD)("div",{key:r,class:"d-flex justify-content-between align-items-center"},[(0,o._)("div",nr,[(0,o._)("input",{id:`${e.facet.name}_${r}`,checked:String(e.facet.value)===String(n.value),value:n.value,class:"form-check-input",type:"radio",name:e.facet.name,onInput:t[2]||(t[2]=t=>e.$emit("on-change",t,e.facet))},null,40,or),(0,o._)("label",{class:"form-check-label",for:`${e.facet.name}_${r}`},(0,a.zw)(n.label),9,rr)]),(0,o._)("div",null,[(0,o._)("span",ar,(0,a.zw)(n.count),1)])])))),128)):(0,o.kq)("v-if",!0),"letter-radio"===e.facet.type?((0,o.wg)(),(0,o.iD)("div",ir,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.facet.options,((n,r)=>((0,o.wg)(),(0,o.iD)("label",{key:r,class:"letter-radiobox"},[((0,o.wg)(),(0,o.iD)("input",{key:r,value:n.value,checked:String(e.facet.value)===String(n.value),type:"radio",name:e.facet.name,onInput:t[3]||(t[3]=t=>e.$emit("on-change",t,e.facet))},null,40,sr)),(0,o._)("span",lr,(0,a.zw)(n.label),1)])))),128))])):(0,o.kq)("v-if",!0)],2)])):(0,o.kq)("v-if",!0),"boolean"===e.facet.type?((0,o.wg)(),(0,o.iD)("div",cr,[(0,o._)("div",ur,[(0,o._)("div",dr,[(0,o._)("input",{id:e.facet.name,checked:e.facet.value,class:"form-check-input",type:"checkbox",name:e.facet.name,onInput:t[4]||(t[4]=t=>e.$emit("on-change",t,e.facet))},null,40,pr),(0,o._)("label",{class:"form-check-label",for:e.facet.name},[(0,o._)("strong",null,(0,a.zw)(e.facet.title),1)],8,hr)])]),(0,o._)("div",fr,[(0,o._)("span",mr,(0,a.zw)(e.facet.count),1),e.loading?((0,o.wg)(),(0,o.iD)("span",gr)):(0,o.kq)("v-if",!0)])])):(0,o.kq)("v-if",!0)],64)},br.__scopeId="data-v-32034ea4";const vr={name:"FilterFacets",components:{SingleFacet:br},props:{modelValue:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1}},emits:["update:modelValue"],computed:{showClearAllFilter(){return this.modelValue.some((e=>"checkboxes"===e.type?e.value.length:e.value))}},methods:{clearSingleFacet(e,t){const n=e.findIndex((e=>e.name===t));return"checkboxes"===e[n].type?e[n].value=[]:e["boolean"===n.type]?e[n].value=!1:e[n].value=null,e},clearFacet(e){const t=this.clearSingleFacet(this.modelValue,e);this.$emit("update:modelValue",[...t])},clearAll(){let e=this.modelValue;this.modelValue.forEach((t=>{e=this.clearSingleFacet(e,t.name)})),this.$emit("update:modelValue",[...e])},handleChange(e,t){const n=this.modelValue.findIndex((e=>e.name===t.name)),o=[...this.modelValue];o[n]={...o[n],value:(()=>{let r=e.target.value;return"boolean"===t.type&&(r=e.target.checked),"checkboxes"===t.type&&(r=e.target.checked?[...o[n].value,e.target.value]:o[n].value.filter((t=>String(t)!==String(e.target.value)))),r})()},this.$emit("update:modelValue",o)}},render:function(e,t){const n=(0,o.up)("SingleFacet");return(0,o.wg)(),(0,o.iD)("ul",Wo,[(0,o._)("li",Go,[(0,o.WI)(e.$slots,"header-title",{},(()=>[(0,o._)("strong",null,(0,a.zw)(e.$t("Filters")),1)])),e.showClearAllFilter?((0,o.wg)(),(0,o.iD)("a",{key:0,href:"#",onClick:t[0]||(t[0]=(0,r.withModifiers)(((...t)=>e.clearAll&&e.clearAll(...t)),["prevent"]))},(0,a.zw)(e.$t("Clear all")),1)):(0,o.kq)("v-if",!0)]),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.modelValue,((t,r)=>((0,o.wg)(),(0,o.j4)(n,{key:r,facet:t,loading:e.loading,onOnChange:e.handleChange,onClearFacet:e.clearFacet},null,8,["facet","loading","onOnChange","onClearFacet"])))),128))])}},yr={name:"ListFacets",components:{FilterFacets:vr},props:{judges:{type:Array,default:()=>[]},authors:{type:Array,default:()=>[]},alphabet:{type:Array,default:()=>[]},years:{type:Array,default:()=>[]},docTypes:{type:Array,default:()=>[]},natures:{type:Array,default:()=>[]},jurisdictions:{type:Array,default:()=>[]},localities:{type:Array,default:()=>[]},registries:{type:Array,default:()=>[]},attorneys:{type:Array,default:()=>[]},outcomes:{type:Array,default:()=>[]}},data(){return{loading:!1,facets:this.getFacets()}},watch:{facets(){this.$nextTick((()=>this.submit()))}},methods:{getDocTypeLabel:e=>e.split("_").map((e=>`${e[0].toUpperCase()}${e.slice(1,e.length)}`)).join(" "),getDocNatureLabel:e=>e.split(),sortAlphabetically:e=>[...e].sort(((e,t)=>e.localeCompare(t))),sortDescending:e=>[...e].sort(((e,t)=>t-e)),getUrlParamValue(e){const t=window.location.search;return new URLSearchParams(t).getAll(e)},submit(){this.loading=!0,this.$refs.form.submit()},getTitle:e=>JSON.parse(document.querySelector("#data-labels").textContent)[e],getFacets(){const e=[{name:"authors",type:"radio",title:this.getTitle("author")},{name:"docTypes",type:"radio",title:this.$t("Document type")},{name:"natures",type:"checkboxes",title:this.$t("Nature")},{name:"judges",type:"radio",title:this.getTitle("judge")},{name:"outcomes",type:"checkboxes",title:this.$t("Outcome")},{name:"jurisdictions",type:"checkboxes",title:this.$t("Jurisdiction")},{name:"years",type:"checkboxes",title:this.$t("Year")},{name:"localities",type:"checkboxes",title:this.$t("Locality")},{name:"alphabet",type:"letter-radio",title:this.$t("Alphabetical")},{name:"attorneys",type:"checkboxes",title:this.$t("Attorneys")}],t=(e,t)=>e.map((e=>({label:"docTypes"===t?this.getDocTypeLabel(e):e,value:e})));for(const n of e)"checkboxes"===n.type?n.value=this.getUrlParamValue(n.name):n.value=this.getUrlParamValue(n.name).length?this.getUrlParamValue(n.name)[0]:null,"alphabet"===n.name?n.options=t(this.alphabet,n.name):"years"===n.name?n.options=t(this.sortDescending(this.years),n.name):n.options=t(this.sortAlphabetically(this.$props[n.name]),n.name);return e}}};__webpack_require__(1012),yr.render=function(e,t){const n=(0,o.up)("FilterFacets");return(0,o.wg)(),(0,o.iD)(o.HY,null,[(0,o._)("form",Ho,[(0,o.Wm)(n,{modelValue:e.facets,"onUpdate:modelValue":t[0]||(t[0]=t=>e.facets=t),loading:e.loading},null,8,["modelValue","loading"])],512),(0,o.kq)(" DOM Hack for i18next to parse facet to locale json. i18next skips t functions in script element "),(0,o.kq)("v-if",!0)],64)},yr.__scopeId="data-v-a00e87ac";const _r=yr;const kr=function(e){var t=Array.from(e.querySelectorAll("[data-list-facets]")),n=e.querySelector("#facet-data"),o={};n&&n.textContent&&(o=JSON.parse(n.textContent),window.location.href.includes("/legislation/")&&(o.authors=[])),t.forEach((function(e){zo({component:_r,props:o,use:[Bo],mountTarget:e})}))},wr={class:"doc-search"},xr={class:"input-group"},Sr=["placeholder","aria-label"],Ar={class:"btn btn-secondary",type:"submit"},Cr={class:"text-end mt-2"},Tr={key:0,class:"mt-2"},Er={class:"doc-search__results"},Or={key:0};var Pr=__webpack_require__(813),Dr=__webpack_require__.n(Pr);const Mr=["tabindex","onClick"],Lr={class:"card-body"},Rr={ref:"snippet",class:"result-snippet"},Ir={name:"ResultSnippet",props:{node:{type:HTMLElement,required:!0}},watch:{node(e){this.setHTML(e)}},mounted(){this.setHTML(this.node)},methods:{setHTML(e){this.$refs.snippet.innerHTML="",e.querySelectorAll("a").forEach((e=>{const t=e.parentNode;for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)})),e.removeAttribute("style"),e.querySelectorAll("[style]").forEach((e=>e.removeAttribute("style"))),this.$refs.snippet.appendChild(e)}},render:function(e,t){return(0,o.wg)(),(0,o.iD)("div",Rr,null,512)}},Fr={name:"HTMLSnippets",components:{ResultSnippet:Ir},props:{nodes:{type:Array,required:!0}},emits:["go-to-snippet"],data:()=>({snippets:[]}),watch:{nodes(){this.renderSnippets()}},mounted(){this.renderSnippets()},methods:{renderSnippets(){const e=new Set;this.nodes.map((e=>e.closest("p, h1, h2, h3, h4, h5, h6, address, blockquote, div, table"))).forEach((t=>e.add(t))),this.snippets=[...e]}},render:function(e,t){const n=(0,o.up)("ResultSnippet");return(0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.snippets,((t,r)=>((0,o.wg)(),(0,o.iD)("div",{key:r,class:"card snippet-card mb-2",tabindex:r,role:"button","aria-pressed":"false",onClick:n=>{e.$emit("go-to-snippet",t)}},[(0,o._)("div",Lr,[(0,o.Wm)(n,{node:t.cloneNode(!0)},null,8,["node"])])],8,Mr)))),128)}},Nr=["tabindex","onClick"],jr={class:"card-body"},$r={name:"PdfSnippets",components:{ResultSnippet:Ir},props:{nodes:{type:Array,required:!0}},emits:["go-to-snippet"],data:()=>({snippets:[]}),watch:{nodes(){this.renderSnippets()}},mounted(){this.renderSnippets()},methods:{renderSnippets(){const e=new Set;this.nodes.map((e=>e.closest('span[role="presentation"]'))).forEach((t=>{e.add(t)})),this.snippets=[...e].map((e=>({snippetNode:e,pageNode:e.closest("[data-page]")})))}},render:function(e,t){const n=(0,o.up)("ResultSnippet");return(0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.snippets,((t,r)=>((0,o.wg)(),(0,o.iD)("div",{key:r,class:"card snippet-card mb-2",tabindex:r,role:"button","aria-pressed":"false",onClick:n=>{e.$emit("go-to-snippet",t.snippetNode)}},[(0,o._)("div",jr,[(0,o._)("h5",null,[(0,o._)("strong",null,(0,a.zw)(e.$t("Page"))+" "+(0,a.zw)(t.pageNode.dataset.page),1)]),(0,o._)("div",null,[(0,o.Wm)(n,{node:t.snippetNode.cloneNode(!0)},null,8,["node"])])])],8,Nr)))),128)}},Ur={class:""},qr=["tabindex","onClick"],Br={class:"card-body"},zr={class:"card-title"},Vr={name:"AknSnippets",components:{ResultSnippet:Ir},props:{nodes:{type:Array,required:!0}},emits:["go-to-snippet"],data:()=>({markInstance:null,snippets:[]}),watch:{nodes(){this.renderSnippets()}},mounted(){this.renderSnippets()},methods:{renderSnippets(){const e=new Set;this.nodes.map((e=>{const t=["h1","h2","h3","h4","h5",...["blockContainer","block","blockList","conclusions","foreign","heading","subheading","listIntroduction","listWrapUp","intro","wrapUp","crossHeading","item","ol","p","preface","tblock","toc","ul"].map((e=>`.akn-${e}`))].join(", ");return e.closest(t)?e.closest(t):e})).forEach((t=>{e.add(t)})),this.snippets=[...e].map((e=>{let t,n=e;const o=()=>{n=n.parentElement;const e=n.querySelector("h1, h2, h3, h4, h5, .akn-heading, .akn-subheading");e?t=e:o()};return o(),{snippetNode:e,titleNode:t}}))}},render:function(e,t){const n=(0,o.up)("ResultSnippet");return(0,o.wg)(),(0,o.iD)("div",Ur,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.snippets,((t,r)=>((0,o.wg)(),(0,o.iD)("div",{key:r,class:"card snippet-card mb-2",tabindex:r,role:"button","aria-pressed":"false",onClick:n=>{e.$emit("go-to-snippet",t.snippetNode)}},[(0,o._)("div",Br,[(0,o._)("h5",zr,[(0,o._)("strong",null,(0,a.zw)(t.titleNode.textContent),1)]),(0,o.Wm)(n,{node:t.snippetNode.cloneNode(!0)},null,8,["node"])])],8,qr)))),128))])}};function Hr(e,t,n){if(void 0===t&&(t=function(){return!1}),void 0===n&&(n=0),void 0!==window.IntersectionObserver){var o=new IntersectionObserver((function(n,o){n.forEach((function(n){n.isIntersecting&&(o.unobserve(n.target),window.setTimeout((function(){t(e)}),500))}))}));o.observe(e);var r,a=e.getBoundingClientRect(),i=Math.floor(a.top+self.pageYOffset-n);window.scrollTo({top:i,behavior:"smooth"});var s=function(){window.clearTimeout(r),r=setTimeout((function(){o.unobserve(e),window.removeEventListener("scroll",s)}),66)};window.addEventListener("scroll",s,!1)}}function Wr(e){var t,n=[],o=new Map;return e.querySelectorAll("h1, h2, h3, h4, h5").forEach((function(e){if(e.innerText){e.id||(o.set(e.tagName,(o.get(e.tagName)||0)+1),e.id=e.tagName+"_"+o.get(e.tagName));var r={type:e.tagName,title:e.innerText,id:e.id,children:[]};if(t){for(;t.length&&t[t.length-1].type>e.tagName;)t.pop();var a=t[t.length-1];a&&(a.type===e.tagName?(t.length>1?t[t.length-2].children.push(r):n.push(r),t[t.length-1]=r):(a.children.push(r),t.push(r)))}else n.push(r),t=[r]}})),n}function Gr(e,t){for(var n,o=0;o({userHelpLink:Of.config.userHelpLink}),render:function(e,t){return e.userHelpLink?((0,o.wg)(),(0,o.iD)("span",Jr,[(0,o._)("a",{href:`${e.userHelpLink}${e.page}`,class:"me-3",target:"_blank"},[Xr,(0,o.Uk)((0,a.zw)(e.$t("Help")),1)],8,Zr)])):(0,o.kq)("v-if",!0)}},Qr={name:"DocumentSearch",components:{HelpBtn:Kr,AknSnippets:Vr,PdfSnippets:$r,HTMLSnippets:Fr},props:{docType:{type:String,required:!0,validator:e=>["akn","pdf","html"].includes(e)},document:{type:HTMLElement,required:!0},mountElement:{type:HTMLElement,required:!0}},data:()=>({q:"",marks:[],markInstance:null}),watch:{q(e){this.markInstance&&(this.markInstance.unmark(),this.marks=[]),this.searchDoc(e)}},methods:{clear(){this.$refs.q.value="",this.q=""},searchDoc(e){this.markInstance||(this.markInstance=new(Dr())(this.document)),this.markInstance.mark(e,{separateWordSearch:!1}),this.marks=[...this.document.querySelectorAll("[data-markjs]")]},goToSnippet(e){this.mountElement.dispatchEvent(new CustomEvent("going-to-snippet")),window.setTimeout((()=>{Hr(e,(()=>{e.style.outline="2px solid transparent",e.style.transition="outline-color 400ms ease-in-out",e.style.outlineColor="var(--bs-primary)",window.setTimeout((()=>{e.style.outlineColor="transparent"}),400)}),60)}),300)}}};__webpack_require__(6051),Qr.render=function(e,t){const n=(0,o.up)("HelpBtn"),i=(0,o.up)("AknSnippets"),s=(0,o.up)("HTMLSnippets"),l=(0,o.up)("PdfSnippets");return(0,o.wg)(),(0,o.iD)("div",wr,[(0,o._)("form",{class:"doc-search__form mb-2",onSubmit:t[1]||(t[1]=(0,r.withModifiers)((()=>e.q=e.$refs.q.value),["prevent"]))},[(0,o._)("div",xr,[(0,o._)("input",{ref:"q",type:"text",required:"",class:"form-control",placeholder:e.$t("Search document content"),"aria-label":e.$t("Search document content"),"aria-describedby":"search-content-button",minlength:"3"},null,8,Sr),(0,o._)("button",Ar,(0,a.zw)(e.$t("Search")),1)]),(0,o._)("div",Cr,[(0,o.Wm)(n,{page:"search/search-inside-a-document"}),e.marks.length?((0,o.wg)(),(0,o.iD)("a",{key:0,href:"#",onClick:t[0]||(t[0]=(0,r.withModifiers)(((...t)=>e.clear&&e.clear(...t)),["prevent"]))},(0,a.zw)(e.$t("Clear")),1)):(0,o.kq)("v-if",!0)]),!e.marks.length&&e.q?((0,o.wg)(),(0,o.iD)("div",Tr,(0,a.zw)(e.$t("No results")),1)):(0,o.kq)("v-if",!0)],32),(0,o._)("div",Er,[e.marks.length?((0,o.wg)(),(0,o.iD)("div",Or,["akn"===e.docType?((0,o.wg)(),(0,o.j4)(i,{key:0,nodes:e.marks,onGoToSnippet:e.goToSnippet},null,8,["nodes","onGoToSnippet"])):(0,o.kq)("v-if",!0),"html"===e.docType?((0,o.wg)(),(0,o.j4)(s,{key:1,nodes:e.marks,onGoToSnippet:e.goToSnippet},null,8,["nodes","onGoToSnippet"])):(0,o.kq)("v-if",!0),"pdf"===e.docType?((0,o.wg)(),(0,o.j4)(l,{key:2,nodes:e.marks,onGoToSnippet:e.goToSnippet},null,8,["nodes","onGoToSnippet"])):(0,o.kq)("v-if",!0)])):(0,o.kq)("v-if",!0)])])};const ea=Qr;var ta=__webpack_require__(3279),na=__webpack_require__.n(ta),oa=function(e,t,n,o){return new(n||(n=Promise))((function(r,a){function i(e){try{l(o.next(e))}catch(e){a(e)}}function s(e){try{l(o.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((o=o.apply(e,t||[])).next())}))},ra=function(e,t){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(r=2&a[0]?o.return:a[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]=a.offsetTop))return;if(n=e.root.querySelector('.preview-panel[data-page="'.concat(a.dataset.page,'"]'))){e.activatePreviewPanel(n);var i=e.root.querySelector("[data-preview-scroll-container]");i&&(i.scrollTop=n.offsetTop+n.clientHeight-2*n.offsetHeight)}}}),20))},e.prototype.activatePreviewPanel=function(e){for(var t=0,n=Array.from(this.root.querySelectorAll(".preview-panel"));t({})}},emits:["show-changes"],methods:{showChanges(){this.$el.dispatchEvent(new CustomEvent("show-changes",{detail:{provision:this.provision}}))}},render:function(e,t){return(0,o.wg)(),(0,o.iD)("la-gutter-item",{anchor:`#${e.provision.id}`},[(0,o._)("i",{class:"bi bi-clock-history mobile-gutter-item-icon",role:"button",onClick:t[0]||(t[0]=(...t)=>e.showChanges&&e.showChanges(...t))}),(0,o._)("div",ca,[(0,o._)("div",ua,[(0,o._)("p",null,(0,a.zw)(e.$t("This provision has been amended"))+".",1),(0,o._)("button",{class:"btn btn-sm btn-secondary",type:"button",onClick:t[1]||(t[1]=(...t)=>e.showChanges&&e.showChanges(...t))},(0,a.zw)(e.$t("What changed?")),1)])])],8,la)}},pa={key:0,class:"reader-provision-changes-inline ig mb-3"},ha={class:"card border-warning"},fa={class:"card-header"},ma={class:"d-flex mb-2 mb-lg-0"},ga={class:"h5 flex-grow-1"},ba={class:"row"},va={class:"col-12 col-lg-6"},ya=["value"],_a={class:"col-6 d-none d-lg-block"},ka={class:"card-body reader-provision-changes-inline-body"},wa=["innerHTML"],xa={key:1,class:"d-flex justify-content-between pa-3"},Sa=["innerHTML"],Aa=["innerHTML"],Ca={name:"DiffContent",props:{diffset:{type:Object,required:!0},sideBySide:{type:Boolean,required:!0}}};__webpack_require__(4402),Ca.render=function(e,t){return(0,o.wg)(),(0,o.iD)("div",null,[e.sideBySide?((0,o.wg)(),(0,o.iD)("div",xa,[(0,o._)("la-akoma-ntoso",{class:"diffset diffset-left",innerHTML:e.diffset.html_diff},null,8,Sa),(0,o._)("la-akoma-ntoso",{class:"diffset diffset-right",innerHTML:e.diffset.html_diff},null,8,Aa)])):((0,o.wg)(),(0,o.iD)("la-akoma-ntoso",{key:0,class:"diffset pa-3",innerHTML:e.diffset.html_diff},null,8,wa))])};const Ta={name:"ProvisionDiffContentInline",components:{DiffContent:Ca},props:{documentId:{type:String,required:!0},provision:{type:Object,required:!0},frbrExpressionUri:{type:String,required:!0},serviceUrl:{type:String,required:!0}},data:()=>({originalElement:null,wrapperElement:null,sideBySide:!0,diffsets:[],diffset:null,vw:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)}),watch:{vw:{immediate:!0,handler(e){e<992&&(this.sideBySide=!1)}}},mounted(){this.loadDiffContentsets(),this.originalElement=document.getElementById(this.provision.id),this.wrapperElement=document.createElement("div"),this.wrapperElement.style.position="relative",this.originalElement&&(this.originalElement.style.position="absolute",this.originalElement.style.visibility="hidden",this.originalElement.style.height="0",this.originalElement.style.top="0",this.originalElement.insertAdjacentElement("beforebegin",this.wrapperElement),this.wrapperElement.append(this.originalElement,this.$el)),window.addEventListener("resize",this.setVw)},unmounted(){window.removeEventListener("resize",this.setVw)},methods:{setVw:na()((function(){this.vw=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)}),200),async loadDiffContentsets(){const e=`${this.serviceUrl}/e/diffsets${this.frbrExpressionUri}/?id=${this.provision.id}`,t=await fetch(e);t.ok&&(this.diffsets=(await t.json()).diffsets,this.diffset=this.diffsets?this.diffsets[0]:null)},close(){this.originalElement&&(this.wrapperElement.insertAdjacentElement("beforebegin",this.originalElement),this.originalElement.style.position=null,this.originalElement.style.visibility=null,this.originalElement.style.height=null,this.originalElement.style.top=null,this.wrapperElement.remove()),this.$el.dispatchEvent(new CustomEvent("close")),this.$el.remove()}}};__webpack_require__(1763),Ta.render=function(e,t){const n=(0,o.up)("diff-content");return e.provision?((0,o.wg)(),(0,o.iD)("div",pa,[(0,o._)("div",ha,[(0,o._)("div",fa,[(0,o._)("div",ma,[(0,o._)("div",ga,(0,a.zw)(e.$t("What changed?")),1),(0,o._)("button",{type:"button",class:"btn btn-secondary",onClick:t[0]||(t[0]=(...t)=>e.close&&e.close(...t))},(0,a.zw)(e.$t("Close")),1)]),(0,o._)("div",ba,[(0,o._)("div",va,[e.diffsets?(0,o.wy)(((0,o.wg)(),(0,o.iD)("select",{key:0,"onUpdate:modelValue":t[1]||(t[1]=t=>e.diffset=t),class:"form-control"},[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.diffsets,((t,n)=>((0,o.wg)(),(0,o.iD)("option",{key:n,value:t},(0,a.zw)(e.$t("Between {prev_expression_date} and {new_expression_date}",{prev_expression_date:t.prev_expression_date,new_expression_date:t.new_expression_date})),9,ya)))),128))],512)),[[r.vModelSelect,e.diffset]]):(0,o.kq)("v-if",!0)]),(0,o._)("div",_a,[(0,o._)("label",null,[(0,o.wy)((0,o._)("input",{"onUpdate:modelValue":t[2]||(t[2]=t=>e.sideBySide=t),type:"checkbox"},null,512),[[r.vModelCheckbox,e.sideBySide]]),(0,o.Uk)(" "+(0,a.zw)(e.$t("Show changes side-by-side")),1)])])])]),(0,o._)("div",ka,[e.diffsets.length?((0,o.wg)(),(0,o.iD)(o.HY,{key:0},[e.diffset?((0,o.wg)(),(0,o.j4)(n,{key:0,diffset:e.diffset,"side-by-side":e.sideBySide},null,8,["diffset","side-by-side"])):(0,o.kq)("v-if",!0)],2112)):((0,o.wg)(),(0,o.iD)(o.HY,{key:1},[(0,o.Uk)((0,a.zw)(e.$t("Loading"))+"... ",1)],2112))])])])):(0,o.kq)("v-if",!0)},Ta.__scopeId="data-v-63c9ac08";const Ea=Ta;const Oa=function(){function e(e,t,n){this.frbrExpressionUri=e,this.gutter=t,this.serviceUrl=this.getServiceUrl(n),this.loadProvisions()}return e.prototype.getServiceUrl=function(e){var t=window.location.hostname,n="localhost"===t||"127.0.0.1"===t?"laws.africa":window.location.hostname;return"".concat(e,"/v1/p/").concat(n)},e.prototype.loadProvisions=function(){return e=this,t=void 0,o=function(){var e,t,n,o;return function(e,t){var n,o,r,a,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(r=2&a[0]?o.return:a[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]({resolve:null,enrichment:null}),mounted(){document.body.appendChild(this.$el),this.modal=new window.bootstrap.Modal(this.$el),this.$el.addEventListener("hidePrevented.bs.modal",this.removeOrClose)},methods:{showModal(e){return this.enrichment=e,new Promise((e=>{this.resolve=e,this.modal.show()}))},remove(){this.resolve(null),this.modal.hide(),this.enrichment=null},close(){this.resolve(this.enrichment),this.modal.hide(),this.enrichment=null},removeOrClose(){this.enrichment.id?this.close():this.remove()},confirmRemove(){confirm(this.$t("Are you sure?"))&&this.remove()}},render:function(e,t){return(0,o.wg)(),(0,o.iD)("div",Pa,[(0,o._)("div",Da,[e.enrichment?((0,o.wg)(),(0,o.iD)("div",Ma,[(0,o._)("form",{ref:"form",onSubmit:t[4]||(t[4]=(0,r.withModifiers)(((...t)=>e.close&&e.close(...t)),["prevent"]))},[(0,o._)("div",La,[(0,o._)("h5",Ra,(0,a.zw)(e.$t("Link citation")),1),(0,o._)("button",{type:"button",class:"btn-close",onClick:t[0]||(t[0]=(...t)=>e.removeOrClose&&e.removeOrClose(...t))})]),(0,o._)("div",Ia,[(0,o._)("p",null,[(0,o._)("b",null,(0,a.zw)(e.enrichment.text),1)]),Fa,(0,o.wy)((0,o._)("input",{"onUpdate:modelValue":t[1]||(t[1]=t=>e.enrichment.url=t),type:"text",class:"form-control",placeholder:"eg. /akn/...",required:""},null,512),[[r.vModelText,e.enrichment.url]])]),(0,o._)("div",Na,[e.enrichment.id?(0,o.kq)("v-if",!0):((0,o.wg)(),(0,o.iD)("button",{key:0,type:"button",class:"btn btn-secondary",onClick:t[2]||(t[2]=(...t)=>e.remove&&e.remove(...t))}," Cancel ")),e.enrichment.id?(0,o.kq)("v-if",!0):((0,o.wg)(),(0,o.iD)("button",ja," Add ")),e.enrichment.id?((0,o.wg)(),(0,o.iD)("button",{key:2,type:"button",class:"btn btn-danger",onClick:t[3]||(t[3]=(...t)=>e.confirmRemove&&e.confirmRemove(...t))}," Delete ")):(0,o.kq)("v-if",!0),e.enrichment.id?((0,o.wg)(),(0,o.iD)("button",$a," Close ")):(0,o.kq)("v-if",!0)])],544)])):(0,o.kq)("v-if",!0)])])}},qa=[".anchor"],Ba={class:"card"},za={class:"card-body"},Va=(0,o._)("br",null,null,-1),Ha=["href"],Wa={name:"CitationLinkGutterItem",props:{link:{type:Object,default:null},anchorElement:{type:HTMLElement,default:null},provider:{type:Object,default:null}},methods:{edit(){this.provider.editLink(this.link)}},render:function(e,t){return(0,o.wg)(),(0,o.iD)("la-gutter-item",{".anchor":e.anchorElement},[(0,o._)("div",Ba,[(0,o._)("div",za,[(0,o._)("p",null,[(0,o._)("button",{class:"btn btn-sm btn-outline-secondary float-end ms-1",onClick:t[0]||(t[0]=(...t)=>e.edit&&e.edit(...t))},(0,a.zw)(e.$t("Edit")),1),(0,o.Uk)(" "+(0,a.zw)(e.link.text)+" ",1),Va,(0,o._)("a",{href:e.link.url,target:"_blank"},(0,a.zw)(e.link.url),9,Ha)])])])],8,qa)}};var Ga=function(){return Ga=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]0&&(null===(t=this.manager.gutter)||void 0===t||t.appendChild(this.createGutterItem(e,r[0])))}},e.prototype.createModal=function(){return zo({component:Ua,props:{},use:[Bo],mountTarget:document.createElement("div")})},e.prototype.createGutterItem=function(e,t){var n=zo({component:Wa,props:{link:e,anchorElement:t,provider:this},use:[Bo],mountTarget:document.createElement("div")}).$el;return this.gutterItems.set(e,n),n},e.prototype.editLink=function(e){var t=this;this.modal&&this.modal.showModal(e).then((function(n){return Ya(t,void 0,void 0,(function(){var t,o,r,a;return Ja(this,(function(i){switch(i.label){case 0:return n?(t=fetch,o=["/api/citation-links/".concat(e.id,"/")],a={method:"PUT"},r=[{}],[4,X()]):[3,3];case 1:return[4,t.apply(void 0,o.concat([(a.headers=Ga.apply(void 0,[Ga.apply(void 0,r.concat([i.sent()])),{"Content-Type":"application/json"}]),a.body=JSON.stringify(e),a)]))];case 2:return i.sent().ok&&(this.unapplyLink(e),this.applyLink(e)),[3,4];case 3:this.deleteLink(e),i.label=4;case 4:return[2]}}))}))}))},e.prototype.deleteLink=function(e){return Ya(this,void 0,void 0,(function(){var t,n,o;return Ja(this,(function(r){switch(r.label){case 0:return t=fetch,n=["/api/citation-links/".concat(e.id,"/")],o={method:"DELETE"},[4,X()];case 1:return[4,t.apply(void 0,n.concat([(o.headers=r.sent(),o)]))];case 2:return r.sent().ok&&(this.unapplyLink(e),this.links.splice(this.links.indexOf(e),1)),[2]}}))}))},e.prototype.unapplyLink=function(e){for(var t,n,o=0,r=this.anchors.get(e)||[];o{this.$el.remove()})),this.modal.show()},render:function(e,t){return(0,o.wg)(),(0,o.iD)("div",Qa,[(0,o._)("div",ei,[(0,o._)("div",ti,[(0,o._)("div",ni,[(0,o._)("h5",oi,(0,a.zw)(e.$t("Share")),1),ri]),(0,o._)("div",ai,[(0,o._)("p",null,(0,a.zw)(e.text),1),(0,o._)("div",ii,[(0,o._)("a",{href:`https://api.whatsapp.com/send?text=${e.combined}`,class:"btn btn-link",target:"_blank",onClick:t[0]||(t[0]=t=>e.modal.hide())},li,8,si),(0,o._)("a",{href:`https://twitter.com/intent/tweet?text=${e.combined}`,class:"btn btn-link",target:"_blank",onClick:t[1]||(t[1]=t=>e.modal.hide())},ui,8,ci),(0,o._)("a",{href:`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e.url)}`,class:"btn btn-link",target:"_blank",onClick:t[2]||(t[2]=t=>e.modal.hide())},pi,8,di),(0,o._)("a",{href:`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e.url)}`,class:"btn btn-link",target:"_blank",onClick:t[3]||(t[3]=t=>e.modal.hide())},fi,8,hi)])])])])])}},gi=function(){function e(e){var t,n;this.manager=e,this.manager.addProvider(this),this.documentTitle=(null===(n=null===(t=document.querySelector(".document-content"))||void 0===t?void 0:t.dataset)||void 0===n?void 0:n.title)||""}return e.prototype.getButton=function(e){var t=document.createElement("button");return t.className="btn btn-outline-secondary",t.type="button",t.innerText=Io.t("Share..."),t},e.prototype.addEnrichment=function(e){if(e.selectors){var t=e.selectors.find((function(e){return"TextQuoteSelector"===e.type}));if(t&&t.exact){var n=new URL(window.location.toString());n.hash=e.anchor_id,zo({component:mi,props:{url:n.toString(),text:"".concat(t.exact," - ").concat(this.documentTitle)},use:[Bo],mountTarget:document.createElement("div")})}}},e}(),bi=function(){function e(e){var t,n=this;this.citationLinks=null,this.root=e,this.gutter=this.root.querySelector("la-gutter"),this.akn=this.root.querySelector(".content"),this.docDiffsManager=this.setupDocDiffs(),this.gutterManager=new Xa.GutterEnrichmentManager(this.root),this.gutterManager.akn=this.root.querySelector(".content"),this.relationshipsManager=new Vo(e,this.gutterManager),this.selectionSearch=new Ka(this.gutterManager),this.selectionShare=new gi(this.gutterManager),null===(t=this.gutter)||void 0===t||t.addEventListener("laItemChanged",(function(e){var t;e.target.classList.contains("relationship-gutter-item")&&e.target.active&&(null===(t=n.docDiffsManager)||void 0===t||t.closeInlineDiff())}))}return e.prototype.setupDocDiffs=function(){if(!this.akn||!this.gutter)return null;var e=this.akn.getAttribute("frbr-expression-uri");return e?new Oa(e,this.gutter,this.root.getAttribute("data-diffs-url")||""):null},e.prototype.setupPdfCitationLinks=function(){this.citationLinks=new Za(this.root,this.gutterManager)},e}();var vi=function(){function e(e){this.offCanvas=new window.bootstrap.Offcanvas(e),this.body=e.querySelector("[data-offcanvas-body]")}return e.prototype.show=function(){this.offCanvas.show()},e.prototype.hide=function(){this.offCanvas.hide()},e}();const yi=function(){function e(e){var t=this;this.enrichmentsManager=null,this.tocController=null,this.tocShowActiveItemOnly=!1,this.tocItemIndex=new Map,this.activeTocItem=null,this.getTocItems=function(){var e=[];if("akn"===t.displayType){var n=t.root.querySelector("#akn_toc_json");n&&(e=JSON.parse(n.textContent)||[])}else if("html"===t.displayType){var o=t.root.querySelector(".content__html");o&&Gr(0,e=Wr(o))}return t.tocShowActiveItemOnly&&e.unshift({tag:"H1",title:Io.t("Show full text"),id:"",children:[]}),function e(t,n,o){void 0===n&&(n=null),void 0===o&&(o=1);for(var r=0,a=t;r1;)o=o.parent;if(!o)return;if(this.activeTocItem!==o){var r=null===(n=this.originalDocument.querySelector('[id="'.concat(o.id,'"]')))||void 0===n?void 0:n.cloneNode(!0);this.documentElement.replaceChildren(r),this.activeTocItem=o}}else(t=this.documentElement).replaceChildren.apply(t,Array.from(this.originalDocument.children).map((function(e){return e.cloneNode(!0)}))),this.activeTocItem=null},e.prototype.setSharedPortion=function(e){void 0===e&&(e="");var t=[this.root.dataset.title];e&&t.push(e),t.push(window.location.toString());for(var n=t.join(" - "),o=0,r=Array.from(document.querySelectorAll(".share-link"));o({email:"",message:"",problem:"",problem_category:"",submitted:!1,success:!0,url:window.location.toString()}),mounted(){this.$el.parentElement.addEventListener("show.bs.modal",this.onShow)},methods:{onShow(){this.email="",this.message="",this.problem="",this.problem_category="",this.submitted=!1,this.success=!0},async onSubmit(){const e=new FormData(this.$refs.form);fetch("/document-problem/",{method:"post",body:e,headers:await X()}).then((e=>{this.submitted=!0,this.success=e.ok})).catch((e=>{console.log(e)}))}},render:function(e,t){return(0,o.wg)(),(0,o.iD)("div",Si,[(0,o._)("div",Ai,[(0,o._)("div",Ci,[(0,o._)("h5",Ti,(0,a.zw)(e.$t("Is there something wrong with this document?")),1),Ei]),(0,o._)("div",Oi,[e.submitted?((0,o.wg)(),(0,o.iD)("div",Wi,(0,a.zw)(e.success?e.$t("Thank you for your feedback."):e.$t("Something went wrong.")),1)):((0,o.wg)(),(0,o.iD)("form",{key:0,id:"document-problem-form",ref:"form",method:"post",onSubmit:t[3]||(t[3]=(0,r.withModifiers)(((...t)=>e.onSubmit&&e.onSubmit(...t)),["prevent"]))},[(0,o._)("input",{type:"hidden",name:"document_link",value:e.url},null,8,Pi),(0,o._)("div",Di,[(0,o._)("label",Mi,[(0,o.Uk)((0,a.zw)(e.$t("Problem category"))+" ",1),Li]),(0,o.wy)((0,o._)("select",{"onUpdate:modelValue":t[0]||(t[0]=t=>e.problem_category=t),class:"form-control",name:"problem_category",required:""},[(0,o._)("option",Ri,(0,a.zw)(e.$t("Incorrect information")),1),(0,o._)("option",Ii,(0,a.zw)(e.$t("Missing information")),1),(0,o._)("option",Fi,(0,a.zw)(e.$t("No PDF download")),1),(0,o._)("option",Ni,(0,a.zw)(e.$t("Document is empty")),1),(0,o._)("option",ji,(0,a.zw)(e.$t("Document is not accessible on my device")),1),(0,o._)("option",$i,(0,a.zw)(e.$t("Other")),1)],512),[[r.vModelSelect,e.problem_category]])]),(0,o._)("div",Ui,[(0,o._)("label",qi,[(0,o.Uk)((0,a.zw)(e.$t("What's the problem?"))+" ",1),Bi]),(0,o.wy)((0,o._)("textarea",{id:"problem_description","onUpdate:modelValue":t[1]||(t[1]=t=>e.problem=t),class:"form-control",name:"problem_description",rows:"4",required:""},null,512),[[r.vModelText,e.problem]])]),(0,o._)("div",zi,[(0,o._)("label",Vi,[(0,o.Uk)((0,a.zw)(e.$t("Your email address"))+" ",1),Hi]),(0,o.wy)((0,o._)("input",{id:"email_address","onUpdate:modelValue":t[2]||(t[2]=t=>e.email=t),type:"email",class:"form-control",name:"email_address",placeholder:"example@example.com",required:""},null,512),[[r.vModelText,e.email]])])],544))]),(0,o._)("div",Gi,[(0,o._)("button",Yi,(0,a.zw)(e.submitted?e.$t("Close"):e.$t("Cancel")),1),e.submitted?(0,o.kq)("v-if",!0):((0,o.wg)(),(0,o.iD)("button",Ji,(0,a.zw)(e.$t("Report problem")),1))])])])}},Xi={id:"search",ref:"search-box"},Ki={class:"mb-4"},Qi={id:"nav-tab",class:"nav nav-tabs mb-3",role:"tablist"},es={id:"search-tab",class:"nav-link active","data-bs-toggle":"tab","data-bs-target":"#nav-search",type:"button",role:"tab","aria-controls":"nav-search","aria-selected":"true"},ts={id:"advanced-search-tab",class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#nav-advanced-search",type:"button",role:"tab","aria-controls":"nav-advanced-search","aria-selected":"false"},ns={id:"nav-tabContent",class:"tab-content"},os={id:"nav-search",class:"tab-pane fade show active",role:"tabpanel","aria-labelledby":"search-tab"},rs=["placeholder","aria-label"],as=["disabled"],is={key:0,class:"circle-loader--lt"},ss={key:1},ls=(0,o.Uk)(" Filters "),cs={key:0},us={class:"my-2"},ds={id:"nav-advanced-search",class:"tab-pane fade",role:"tabpanel","aria-labelledby":"advanced-search-tab"},ps={key:0,class:"mt-3 alert alert-warning"},hs={key:1,class:"mt-3"},fs={ref:"filters-results-container"},ms={class:"row"},gs={class:"col col-lg-3"},bs=["aria-label"],vs={class:"filter-facet-title"},ys={class:"col-md-12 col-lg-9 position-relative"},_s={class:"search-results"},ks={key:0},ws={class:"mb-3 sort-body row"},xs={class:"col-md-3 order-md-2 mb-2 sort__inner d-flex align-items-center"},Ss={style:{width:"65px"}},As={value:"-score"},Cs={value:"date"},Ts={value:"-date"},Es={class:"col-md order-md-1"},Os={key:0},Ps={key:1},Ds={class:"list-unstyled"},Ms={key:0,class:"overlay"},Ls={href:"#search",class:"to-the-top btn btn-secondary d-block d-lg-none"},Rs={class:"mb-4 hit"},Is={class:"card"},Fs={class:"card-body"},Ns={class:"card-title"},js=["href","innerHTML"],$s={class:"mb-1"},Us={key:0},qs={key:0,class:"me-3"},Bs=["innerHTML"],zs={key:1},Vs={key:0},Hs={key:2},Ws={class:"me-3"},Gs={class:"me-3"},Ys={key:1,class:"me-3"},Js={key:2,class:"me-3"},Zs={key:0},Xs=["href","onClick"],Ks=(0,o.Uk)(": "),Qs=["innerHTML"],el={key:1},tl={key:2,class:"ms-3"},nl=["innerHTML"],ol={key:3,class:"ms-3 mt-2"},rl=(0,o._)("h5",null,"Explanation",-1),al={class:"explanation border p-2"},il={class:"table table-sm table-light mb-0"},sl={style:{width:"15%"},class:"align-baseline"},ll={class:"align-baseline"},cl={key:0},ul={key:0,open:""},dl=(0,o._)("summary",null,"(details)",-1),pl={key:1},hl={key:1,open:""},fl=(0,o._)("summary",null,"(details)",-1),ml={key:2},gl={class:"mb-1"},bl={key:0},vl=["href"],yl={class:"ms-3"},_l={key:1},kl=["href"],wl=["innerHTML"],xl={name:"SearchResult",components:{JsonTable:{name:"JsonTable",props:{data:{type:Object}},render:function(e,t){const n=(0,o.up)("JsonTable",!0);return(0,o.wg)(),(0,o.iD)("table",il,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.data,((e,t)=>((0,o.wg)(),(0,o.iD)("tr",{key:t},[(0,o._)("th",sl,(0,a.zw)(t),1),(0,o._)("td",ll,[Array.isArray(e)?((0,o.wg)(),(0,o.iD)("ol",cl,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e,((e,t)=>((0,o.wg)(),(0,o.iD)("li",{key:t,class:"border-bottom"},["object"==typeof e?((0,o.wg)(),(0,o.iD)("details",ul,[dl,(0,o.Wm)(n,{data:e},null,8,["data"])])):((0,o.wg)(),(0,o.iD)("div",pl,(0,a.zw)(e),1))])))),128))])):"object"==typeof e?((0,o.wg)(),(0,o.iD)("details",hl,[fl,(0,o.Wm)(n,{data:e},null,8,["data"])])):((0,o.wg)(),(0,o.iD)("div",ml,(0,a.zw)(e),1))])])))),128))])}},SearchResultProvision:{name:"SearchResultProvision",props:{item:{type:Object,default:()=>{}},expressionFrbrUri:{type:String,default:""},parents:{type:Array,default:()=>[]}},emits:["item-clicked"],render:function(e,t){const n=(0,o.up)("SearchResultProvision",!0);return(0,o.wg)(),(0,o.iD)("div",gl,[e.parents.length?((0,o.wg)(),(0,o.iD)("div",bl,[(0,o._)("a",{href:`${e.expressionFrbrUri}#${e.parents[0].id}`,target:"_blank",onClick:t[0]||(t[0]=t=>e.$emit("item-clicked",e.parents[0].id))},(0,a.zw)(e.parents[0].title),9,vl),(0,o._)("div",yl,[(0,o.Wm)(n,{item:e.item,parents:e.parents.slice(1),"expression-frbr-uri":e.expressionFrbrUri,onItemClicked:t[1]||(t[1]=t=>e.$emit("item-clicked",t))},null,8,["item","parents","expression-frbr-uri"])])])):((0,o.wg)(),(0,o.iD)("div",_l,[(0,o._)("a",{href:`${e.expressionFrbrUri}#${e.item.id}`,target:"_blank",onClick:t[2]||(t[2]=t=>e.$emit("item-clicked",e.item.id))},(0,a.zw)(e.item.title),9,kl),e.item.highlight["provisions.body"]?((0,o.wg)(),(0,o.iD)("div",{key:0,class:"ms-3",innerHTML:e.item.highlight["provisions.body"].join(" ... ")},null,8,wl)):(0,o.kq)("v-if",!0)]))])}}},props:{item:{type:Object,default:()=>({})},query:{type:String,default:()=>""},showJurisdiction:{type:Boolean,default:!1},documentLabels:{type:Array,default:()=>[]},debug:{type:Boolean,default:!1}},emits:["explain","item-clicked"],computed:{labels(){return this.documentLabels.filter((e=>(this.item.labels||[]).includes(e.code)))}},methods:{highlights(e){if(e.highlight.content)return e.highlight.content.join(" ... ")},getFlag(e){const t=e.expression_frbr_uri.split("/")[2].split("-")[0];return"aa"===t?'African Union Icon':``},authors:e=>e.authors?Array.isArray(e.authors)?", ".join(e.authors):e.authors:"",provisionParents:e=>e.parent_titles.map(((t,n)=>({title:t,id:e.parent_ids[n]})))}};__webpack_require__(5377),xl.render=function(e,t){const n=(0,o.up)("SearchResultProvision"),i=(0,o.up)("json-table");return(0,o.wg)(),(0,o.iD)("li",Rs,[(0,o._)("div",Is,[(0,o._)("div",Fs,[(0,o._)("h5",Ns,[(0,o._)("a",{class:"h5 text-primary",target:"_blank",href:e.item.expression_frbr_uri,onClick:t[0]||(t[0]=t=>e.$emit("item-clicked")),innerHTML:e.item.highlight.title||e.item.title},null,8,js)]),(0,o._)("div",$s,[e.item.citation&&e.item.citation!==e.item.title?((0,o.wg)(),(0,o.iD)("div",Us,[(0,o._)("i",null,(0,a.zw)(e.item.citation),1)])):(0,o.kq)("v-if",!0),(0,o._)("div",null,[e.showJurisdiction||e.item.locality?((0,o.wg)(),(0,o.iD)("span",qs,[e.showJurisdiction?((0,o.wg)(),(0,o.iD)("span",{key:0,innerHTML:e.getFlag(e.item),class:"me-1"},null,8,Bs)):(0,o.kq)("v-if",!0),e.showJurisdiction?((0,o.wg)(),(0,o.iD)("span",zs,[(0,o.Uk)((0,a.zw)(e.item.jurisdiction)+" ",1),e.item.locality?((0,o.wg)(),(0,o.iD)("span",Vs,"· ")):(0,o.kq)("v-if",!0)])):(0,o.kq)("v-if",!0),e.item.locality?((0,o.wg)(),(0,o.iD)("span",Hs,(0,a.zw)(e.item.locality),1)):(0,o.kq)("v-if",!0)])):(0,o.kq)("v-if",!0),(0,o._)("span",Ws,(0,a.zw)(e.item.doc_type),1),(0,o._)("span",Gs,(0,a.zw)(e.item.date),1),e.item.court?((0,o.wg)(),(0,o.iD)("span",Ys,(0,a.zw)(e.item.court),1)):(0,o.kq)("v-if",!0),e.item.authors?((0,o.wg)(),(0,o.iD)("span",Js,(0,a.zw)(e.authors(e.item)),1)):(0,o.kq)("v-if",!0),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.labels,(e=>((0,o.wg)(),(0,o.iD)("span",{key:e.code,class:(0,a.C_)(`me-3 badge rounded-pill bg-${e.level}`)},(0,a.zw)(e.name),3)))),128)),e.debug?((0,o.wg)(),(0,o.iD)("a",{key:3,class:"me-3",href:"#",onClick:t[1]||(t[1]=(0,r.withModifiers)((t=>e.$emit("explain")),["prevent"]))},(0,a.zw)(e.item._score),1)):(0,o.kq)("v-if",!0)]),(0,o._)("div",null,(0,a.zw)(e.item.matter_type),1)]),e.item.pages.length?((0,o.wg)(),(0,o.iD)("div",Zs,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.item.pages,(t=>((0,o.wg)(),(0,o.iD)("div",{key:t.page_num,class:"mb-1"},[(0,o._)("a",{href:`${e.item.expression_frbr_uri}#page-${t.page_num}`,target:"_blank",onClick:n=>e.$emit("item-clicked",`page-${t.page_num}`)},(0,a.zw)(e.$t("Page"))+" "+(0,a.zw)(t.page_num),9,Xs),Ks,t.highlight["pages.body"]?((0,o.wg)(),(0,o.iD)("span",{key:0,innerHTML:t.highlight["pages.body"].join(" ... ")},null,8,Qs)):(0,o.kq)("v-if",!0)])))),128))])):(0,o.kq)("v-if",!0),e.item.provisions.length?((0,o.wg)(),(0,o.iD)("div",el,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.item.provisions,(r=>((0,o.wg)(),(0,o.j4)(n,{key:r.id,item:r,parents:e.provisionParents(r),"expression-frbr-uri":e.item.expression_frbr_uri,onItemClicked:t[2]||(t[2]=t=>e.$emit("item-clicked",t))},null,8,["item","parents","expression-frbr-uri"])))),128))])):((0,o.wg)(),(0,o.iD)("div",tl,[(0,o._)("span",{class:"snippet",innerHTML:e.highlights(e.item)},null,8,nl)])),e.debug&&e.item.explanation?((0,o.wg)(),(0,o.iD)("div",ol,[rl,(0,o._)("div",al,[(0,o.Wm)(i,{data:e.item.explanation},null,8,["data"])])])):(0,o.kq)("v-if",!0)])])])};const Sl=xl,Al={key:0,class:"pagination flex-wrap"},Cl=["onClick"],Tl={key:0,class:"page-item disabled"},El=[(0,o._)("a",{class:"page-link"},"...",-1)],Ol={name:"SearchPagination",props:{search:{type:Object,required:!0},page:{type:Number,required:!0}},emits:["changed"],data:()=>({maxPages:15,pageSize:10}),computed:{totalPages(){return Math.ceil(this.search.count/this.pageSize)},pages(){return[...Array(Math.min(this.totalPages,this.maxPages)).keys()].map((e=>e+1))},tooManyPages(){return this.totalPages>this.maxPages}},methods:{setPage(e){this.$emit("changed",e)}},render:function(e,t){return(0,o.wg)(),(0,o.iD)("nav",null,[e.totalPages>1?((0,o.wg)(),(0,o.iD)("ul",Al,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.pages,(t=>((0,o.wg)(),(0,o.iD)("li",{key:t,class:(0,a.C_)(["page-item",e.page===t?"active":""])},[(0,o._)("a",{class:"page-link",href:"#",onClick:(0,r.withModifiers)((n=>e.setPage(t)),["prevent"])},(0,a.zw)(t),9,Cl)],2)))),128)),e.tooManyPages?((0,o.wg)(),(0,o.iD)("li",Tl,El)):(0,o.kq)("v-if",!0)])):(0,o.kq)("v-if",!0)])}},Pl={class:"mobile-side-drawer"},Dl={class:"mobile-side-drawer__desktop-view d-none d-lg-block"},Ml={class:"mobile-side-drawer__mobile-view__content"},Ll={class:"slot bg-light"},Rl={name:"MobileFacetsDrawer",props:{open:{type:Boolean,default:!1}},emits:["outside-drawer-click"]};__webpack_require__(786),Rl.render=function(e,t){return(0,o.wg)(),(0,o.iD)("div",Pl,[(0,o._)("div",Dl,[(0,o.WI)(e.$slots,"default")]),(0,o._)("div",{class:(0,a.C_)((e.open?"active":"")+" mobile-side-drawer__mobile-view d-lg-none")},[(0,o._)("div",Ml,[(0,o._)("div",{class:"overlay",onClick:t[0]||(t[0]=t=>e.$emit("outside-drawer-click"))}),(0,o._)("div",Ll,[(0,o.WI)(e.$slots,"default")])])],2)])},Rl.__scopeId="data-v-6caa891a";const Il=Rl,Fl={class:"card"},Nl={class:"card-body"},jl={class:"row mt-5"},$l={class:"col-6"},Ul={class:"form-label",for:"date_from"},ql=["aria-describedby","placeholder","value","disabled"],Bl={class:"col-6"},zl={class:"form-label",for:"date_to"},Vl=["aria-describedby","placeholder","value","disabled"],Hl={key:0,class:"text-danger"},Wl={class:"card-footer d-flex justify-content-end"},Gl={type:"submit",class:"btn btn-primary"},Yl={class:"mb-3 d-md-flex"},Jl={class:"d-flex mb-2 flex-grow-1"},Zl={key:0,class:"me-3"},Xl={value:"AND"},Kl={value:"OR"},Ql={value:"NOT"},ec={class:"flex-grow-1 me-3"},tc={class:"d-flex mb-2"},nc={class:"dropdown me-3"},oc=["id"],rc=["aria-labelledby"],ac=["id","checked","disabled","onChange"],ic=["for"],sc={class:"form-check"},lc=["id"],cc=["for"],uc={name:"AdvancedSearchFields",props:{criterion:{type:Object,default:()=>({})},targetIndex:{type:Number,default:0}},emits:["on-change"],data:e=>({fields:[{field:"all",label:e.$t("Any field")},{field:"title",label:e.$t("Title")},{field:"judges",label:e.$t("Judges")},{field:"case_summary",label:e.$t("Case summary")},{field:"flynote",label:e.$t("Flynote")},{field:"content",label:e.$t("Content")}]}),methods:{changed(){this.$emit("on-change")},fieldChanged(e,t){"all"===e?t?(this.criterion.fields.splice(0,this.criterion.fields.length),this.criterion.fields.push(e)):this.criterion.fields.includes(e)&&this.criterion.fields.length>1&&this.criterion.fields.splice(this.criterion.fields.indexOf(e),1):t?(this.criterion.fields.includes(e)||this.criterion.fields.push(e),this.criterion.fields.includes("all")&&this.criterion.fields.splice(this.criterion.fields.indexOf("all"),1)):this.criterion.fields.includes(e)&&(this.criterion.fields.splice(this.criterion.fields.indexOf(e),1),0===this.criterion.fields.length&&this.criterion.fields.push("all")),this.changed()}}};__webpack_require__(3462),uc.render=function(e,t){return(0,o.wg)(),(0,o.iD)("div",Yl,[(0,o._)("div",Jl,[e.criterion.condition?((0,o.wg)(),(0,o.iD)("div",Zl,[(0,o.wy)((0,o._)("select",{"onUpdate:modelValue":t[0]||(t[0]=t=>e.criterion.condition=t),class:"form-control",onChange:t[1]||(t[1]=(...t)=>e.changed&&e.changed(...t))},[(0,o._)("option",Xl,(0,a.zw)(e.$t("AND")),1),(0,o._)("option",Kl,(0,a.zw)(e.$t("OR")),1),(0,o._)("option",Ql,(0,a.zw)(e.$t("NOT")),1)],544),[[r.vModelSelect,e.criterion.condition]])])):(0,o.kq)("v-if",!0),(0,o._)("div",ec,[(0,o.wy)((0,o._)("input",{"onUpdate:modelValue":t[2]||(t[2]=t=>e.criterion.text=t),type:"text",class:"form-control",placeholder:"Text to search for...",onInput:t[3]||(t[3]=(...t)=>e.changed&&e.changed(...t))},null,544),[[r.vModelText,e.criterion.text]])])]),(0,o._)("div",tc,[(0,o._)("div",nc,[(0,o._)("button",{id:`advanced-${e.targetIndex}-fields-btn`,class:"btn btn-secondary dropdown-toggle","data-bs-toggle":"dropdown","data-bs-auto-close":"outside","aria-expanded":"false"},(0,a.zw)(e.$t("In these fields")),9,oc),(0,o._)("div",{class:"dropdown-menu","aria-labelledby":`advanced-${e.targetIndex}-fields-btn`},[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.fields,(t=>((0,o.wg)(),(0,o.iD)("div",{key:t.field,class:"form-check dropdown-item"},[(0,o._)("input",{id:`advanced-${e.targetIndex}-fields-${t.field}`,checked:this.criterion.fields.includes(t.field),disabled:"all"===t.field&&this.criterion.fields.includes(t.field),class:"form-check-input",type:"checkbox",onChange:n=>e.fieldChanged(t.field,n.target.checked)},null,40,ac),(0,o._)("label",{class:"form-check-label",for:`advanced-${e.targetIndex}-fields-${t.field}`},(0,a.zw)(t.label),9,ic)])))),128))],8,rc)]),(0,o._)("div",sc,[(0,o.wy)((0,o._)("input",{id:`advanced-${e.targetIndex}-exact`,"onUpdate:modelValue":t[4]||(t[4]=t=>e.criterion.exact=t),type:"checkbox",class:"form-check-input",onChange:t[5]||(t[5]=(...t)=>e.changed&&e.changed(...t))},null,40,lc),[[r.vModelCheckbox,e.criterion.exact]]),(0,o._)("label",{class:"form-check-label",for:`advanced-${e.targetIndex}-exact`},(0,a.zw)(e.$t("Exact phrase")),9,cc)])])])},uc.__scopeId="data-v-10e31a92";const dc={name:"AdvancedSearch",components:{HelpBtn:Kr,AdvancedSearchFields:uc},props:{modelValue:{type:Array,default:()=>[]},advancedSearchDateCriteria:{type:Object,default:()=>({})},globalSearchValue:{type:String,default:""}},emits:["submit","update:modelValue","global-search-change","date-change"],computed:{invalidDates(){const e=[this.advancedSearchDateCriteria.date_from,this.advancedSearchDateCriteria.date_to];return!e.every((e=>!e))&&(e.every((e=>e))?new Date(e[0])>new Date(e[1]):!e.some((e=>e)))},disableDate(){return!(this.modelValue.some((e=>e.text))||this.globalSearchValue)}},watch:{disableDate:{handler(e){e&&this.$emit("date-change",{...this.advancedSearchDateCriteria,date_from:null,date_to:null})}}},methods:{onChange(){this.cleanupCriteria(!1)},onDateChange(e){this.$emit("date-change",{...this.advancedSearchDateCriteria,[e.target.name]:e.target.value})},cleanupCriteria(e){let t=[...this.modelValue];e&&(t=t.filter((e=>""===e.condition||e.text))),t[t.length-1].text&&t.push({text:"",fields:["all"],exact:!1,condition:"AND"}),this.$emit("update:modelValue",t)},submitAdvancedForm(){this.cleanupCriteria(!0),this.$emit("submit")}},render:function(e,t){const n=(0,o.up)("AdvancedSearchFields"),i=(0,o.up)("HelpBtn");return(0,o.wg)(),(0,o.iD)("form",{onSubmit:t[2]||(t[2]=(0,r.withModifiers)(((...t)=>e.submitAdvancedForm&&e.submitAdvancedForm(...t)),["prevent"]))},[(0,o._)("div",Fl,[(0,o._)("div",Nl,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.modelValue,((t,r)=>((0,o.wg)(),(0,o.j4)(n,{key:r,criterion:t,"target-index":r,onOnChange:e.onChange},null,8,["criterion","target-index","onOnChange"])))),128)),(0,o._)("div",jl,[(0,o._)("div",$l,[(0,o._)("label",Ul,(0,a.zw)(e.$t("Date from")),1),(0,o._)("input",{id:"date_from",name:"date_from",type:"date",class:"form-control","aria-describedby":e.$t("Date from"),placeholder:e.$t("Enter start date"),value:e.advancedSearchDateCriteria.date_from,disabled:e.disableDate,onChange:t[0]||(t[0]=(...t)=>e.onDateChange&&e.onDateChange(...t))},null,40,ql)]),(0,o._)("div",Bl,[(0,o._)("label",zl,(0,a.zw)(e.$t("Date to")),1),(0,o._)("input",{id:"date_to",name:"date_to",type:"date",class:"form-control","aria-describedby":e.$t("Date to"),placeholder:e.$t("Enter end date"),value:e.advancedSearchDateCriteria.date_to,disabled:e.disableDate,onChange:t[1]||(t[1]=(...t)=>e.onDateChange&&e.onDateChange(...t))},null,40,Vl)])]),e.invalidDates?((0,o.wg)(),(0,o.iD)("div",Hl,(0,a.zw)(e.$t("The date range is invalid"))+". ",1)):(0,o.kq)("v-if",!0)]),(0,o._)("div",Wl,[(0,o.Wm)(i,{page:"search/advanced-search"}),(0,o._)("button",Gl,(0,a.zw)(e.$t("Search")),1)])])],32)}},pc={class:"d-none d-md-block"},hc=["title","onClick"],fc={name:"FacetBadges",props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],computed:{activeOptions(){const e=this.modelValue.filter((e=>e.value.length)),t=[];return e.forEach((e=>{const n=e.options.filter((t=>e.value.includes(t.value)));t.push(...n)})),t}},methods:{updateModel(e){const t=[...this.modelValue].map((t=>(t.value=t.value.filter((t=>t!==e)),t)));this.$emit("update:modelValue",t)}},render:function(e,t){return(0,o.wg)(),(0,o.iD)("div",pc,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.activeOptions,(t=>((0,o.wg)(),(0,o.iD)("button",{key:t.value,class:"btn btn-outline-primary me-2 mb-2 btn-sm",type:"button",title:e.$t("Remove"),onClick:n=>e.updateModel(t.value)},(0,a.zw)(t.label)+"  × ",9,hc)))),128))])}},mc=new(function(){function e(){this.isGAEnabled="gtag"in window,this.isMatomoEnabled="_paq"in window,this.gtag=this.isGAEnabled?window.gtag:function(){},this.paq=this.isMatomoEnabled?window._paq:[]}return e.prototype.trackPageView=function(){this.paq.push(["trackPageView"]),this.gtag("event","page_view")},e.prototype.trackSiteSearch=function(e,t,n){this.paq.push(["trackSiteSearch",e,t,n]),this.gtag("event","site_search",{keyword:e,category:t,searchCount:n})},e}()),gc={name:"FindDocuments",components:{FacetBadges:fc,MobileFacetsDrawer:Il,SearchResult:Sl,SearchPagination:Ol,FilterFacets:vr,AdvancedSearch:dc,HelpBtn:Kr},props:["showJurisdiction"],data(){const e=e=>JSON.parse(document.querySelector("#data-labels").textContent)[e],t={searchPlaceholder:JSON.parse(document.querySelector("#data-labels").textContent).searchPlaceholder,documentLabels:JSON.parse(document.querySelector("#data-labels").textContent).documentLabels,loadingCount:0,error:null,searchInfo:{},page:1,pageSize:10,ordering:"-score",q:"",drawerOpen:!1,advancedSearchCriteria:[{text:"",fields:[],condition:"",exact:!1},{text:"",fields:[],condition:"AND",exact:!1}],advancedSearchDateCriteria:{date_to:null,date_from:null}},n=[{title:this.$t("Document type"),name:"doc_type",type:"checkboxes",value:[],options:[]},{title:this.$t("Labels"),name:"labels",type:"checkboxes",value:[],options:[],optionLabels:(e=>{const t={};for(const n of e)t[n.code]=n.name;return t})(t.documentLabels)},{title:e("author"),name:"authors",type:"checkboxes",value:[],options:[]},{title:this.$t("Court"),name:"court",type:"checkboxes",value:[],options:[]},{title:e("registry"),name:"registry",type:"checkboxes",value:[],options:[]},{title:e("judge"),name:"judges",type:"checkboxes",value:[],options:[]},{title:this.$t("Attorneys"),name:"attorneys",type:"checkboxes",value:[],options:[]},{title:this.$t("Outcome"),name:"outcome",type:"checkboxes",value:[],options:[]},{title:this.$t("Locality"),name:"locality",type:"checkboxes",value:[],options:[]},{title:this.$t("Matter type"),name:"matter_type",type:"checkboxes",value:[],options:[]},{title:this.$t("Document nature"),name:"nature",type:"checkboxes",value:[],options:[]},{title:this.$t("Language"),name:"language",type:"checkboxes",value:[],options:[]},{title:this.$t("Year"),name:"year",type:"checkboxes",value:[],options:[]}];return this.showJurisdiction&&n.splice(0,0,{title:this.$t("Jurisdiction"),name:"jurisdiction",type:"checkboxes",value:[],options:[]}),t.facets=n,t},computed:{selectedFacetsCount(){return this.facets.map((e=>e.value.length)).reduce(((e,t)=>e+t),0)},loading(){return this.loadingCount>0}},watch:{ordering(){this.search()},facets:{handler(){this.page=1,this.search()}}},mounted(){this.loadState(),window.addEventListener("popstate",(()=>this.loadState()))},methods:{sortGenericBuckets(e,t=!1){const n=[...e];return n.sort(((e,t)=>e.key.localeCompare(t.key))),t&&n.reverse(),n},getUrlParamValue(e,t){const n=window.location.search,o=new URLSearchParams(n),r=t.map((e=>e.value));return o.getAll(e).filter((e=>r.includes(e)))},handlePageChange(e){this.page=e,this.search()},simpleSearch(){this.resetAdvancedFields(),this.submit()},advancedSearch(){this.q="",this.submit()},submit(){this.page=1,this.search()},clearAllFilters(){this.facets.forEach((e=>{e.value.length&&(e.value=[])}))},serialiseState(){const e=new URLSearchParams;this.q&&e.set("q",this.q),this.page>1&&e.set("page",this.page),"-score"!==this.ordering&&e.set("ordering",this.ordering),this.facets.forEach((t=>{t.value.forEach((n=>{e.append(t.name,n)}))})),this.advancedSearchDateCriteria.date_from&&this.advancedSearchDateCriteria.date_to?(e.append("date_from",this.advancedSearchDateCriteria.date_from),e.append("date_to",this.advancedSearchDateCriteria.date_to)):this.advancedSearchDateCriteria.date_from?e.append("date_from",this.advancedSearchDateCriteria.date_from):this.advancedSearchDateCriteria.date_to&&e.append("date_to",this.advancedSearchDateCriteria.date_to);const t=this.advancedSearchCriteria.filter((e=>e.text)).map((e=>{const t={text:e.text};return e.fields.length&&(t.fields=e.fields),e.condition&&(t.condition=e.condition),e.exact&&(t.exact=e.exact),t}));return t.length&&e.append("a",JSON.stringify(t)),e.toString()},loadState(){this.resetAdvancedFields();const e=new URLSearchParams(window.location.search);this.q=e.get("q")||"",this.page=parseInt(e.get("page"))||this.page,this.ordering=e.get("ordering")||this.ordering,this.facets.forEach((t=>{e.has(t.name)&&(t.value=e.getAll(t.name))})),e.has("date_from")&&(this.advancedSearchDateCriteria.date_from=e.get("date_from")),e.has("date_to")&&(this.advancedSearchDateCriteria.date_to=e.get("date_to"));let t=e.get("show-advanced-tab");e.has("a")&&(JSON.parse(e.get("a")).forEach(((e,t)=>{const n={text:e.text,fields:e.fields||[],condition:e.condition||"",exact:!!e.exact};0!==t||e.condition?this.advancedSearchCriteria.splice(t,0,n):this.advancedSearchCriteria.splice(0,1,n)})),t=!0),t&&new window.bootstrap.Tab(this.$el.querySelector("#advanced-search-tab")).show(),this.search(!1)},suggest(e){this.q=e,this.search()},formatFacets(){const e=(e,t)=>e.map((e=>({label:t?t[e.key]:e.key,count:e.doc_count,value:e.key})));this.facets.forEach((t=>{"year"===t.name?t.options=e(this.sortGenericBuckets(this.searchInfo.facets[`_filter_${t.name}`][t.name].buckets,!0),t.optionLabels):this.searchInfo.facets[`_filter_${t.name}`]&&(t.options=e(this.sortGenericBuckets(this.searchInfo.facets[`_filter_${t.name}`][t.name].buckets),t.optionLabels)),t.value=this.getUrlParamValue(t.name,t.options)}))},formatResults(){for(let e=0;e{t.value.forEach((n=>{e.append(t.name,n)}))})),this.facets.forEach((t=>{e.append("facet",t.name)})),this.generateAdvancedSearchParams(e),e},generateAdvancedSearchParams(e){if(this.advancedSearchDateCriteria.date_from&&this.advancedSearchDateCriteria.date_to){const t=this.advancedSearchDateCriteria.date_from,n=this.advancedSearchDateCriteria.date_to;e.append("date__range",`${t}__${n}`)}else this.advancedSearchDateCriteria.date_from?e.append("date__gte",this.advancedSearchDateCriteria.date_from):this.advancedSearchDateCriteria.date_to&&e.append("date__lte",this.advancedSearchDateCriteria.date_to);const t=new Map;for(const e of this.advancedSearchCriteria)if(e.text)for(const n of e.fields)t.has(n)||t.set(n,[]),t.get(n).push(e);for(const[n,o]of t)e.set(`search__${n}`,this.generateAdvancedSearchQuery(o))},generateAdvancedSearchQuery(e){let t="";for(const n of e){const e=n.exact?`"${n.text}"`:n.text;"AND"===n.condition?t+=" & ":"OR"===n.condition?t+=" | ":"NOT"===n.condition&&(t+=" -"),t+=`(${e})`}return t.trim()},async search(e=!0){if(this.q||Array.isArray(this.advancedSearchCriteria)&&this.advancedSearchCriteria.some((e=>e.text))){this.loadingCount=this.loadingCount+1,Hr(this.$refs["search-box"]);try{const t=this.generateSearchParams(),n=this.searchInfo.trace_id||"",o=`/search/api/documents/?${t.toString()}&previous=${n}`;e&&window.history.pushState(null,"",document.location.pathname+"?"+this.serialiseState());const r=await fetch(o);t.toString()===this.generateSearchParams().toString()&&(r.ok?(this.error=null,this.searchInfo=await r.json(),0===this.searchInfo.count&&this.clearAllFilters(),this.formatFacets(),this.formatResults(),this.trackSearch(t)):this.error=r.statusText)}catch{this.error="Network unavailable."}this.loadingCount=this.loadingCount-1,this.drawerOpen=!1}},trackSearch(e){const t=[],n=[],o=this.facets.map((e=>e.name)).concat(["date__range","date__gte","date__lte"]);[...new Set(e.keys())].forEach((r=>{if(r.startsWith("search")){const n="search"===r?"":r.substring(8)+"=";t.push(n+e.get(r).trim())}else o.includes(r)&&n.push(`${r}=${e.getAll(r).join(",")}`)})),mc.trackSiteSearch(t.join("; "),n.join("; "),this.searchInfo.count)},async explain(e){const t=this.generateSearchParams();t.set("index",e._index);const n=`/search/api/documents/${e.id}/explain/?${t.toString()}`,o=await fetch(n),r=await o.json();e.explanation=r},async itemClicked(e,t){const n=new URLSearchParams;n.set("frbr_uri",e.expression_frbr_uri),n.set("portion",t||""),n.set("position",e.position),n.set("search_trace",this.searchInfo.trace_id);try{fetch("/search/api/click/",{method:"POST",headers:await X(),body:n})}catch(e){console.log(e)}},resetAdvancedFields(){this.advancedSearchCriteria=[{text:"",fields:["all"],condition:"",exact:!1},{text:"",fields:["all"],condition:"AND",exact:!1}],this.advancedSearchDateCriteria={date_to:null,date_from:null}}}};__webpack_require__(5922),gc.render=function(e,t){const n=(0,o.up)("HelpBtn"),i=(0,o.up)("AdvancedSearch"),s=(0,o.up)("FilterFacets"),l=(0,o.up)("MobileFacetsDrawer"),c=(0,o.up)("FacetBadges"),u=(0,o.up)("SearchResult"),d=(0,o.up)("SearchPagination");return(0,o.wg)(),(0,o.iD)("div",Xi,[(0,o._)("div",Ki,[(0,o._)("nav",null,[(0,o._)("div",Qi,[(0,o._)("button",es,(0,a.zw)(e.$t("Search")),1),(0,o._)("button",ts,(0,a.zw)(e.$t("Advanced search")),1)])]),(0,o._)("div",ns,[(0,o._)("div",os,[(0,o._)("form",{class:"d-flex align-items-center mb-2",onSubmit:t[2]||(t[2]=(0,r.withModifiers)(((...t)=>e.simpleSearch&&e.simpleSearch(...t)),["prevent"]))},[(0,o.wy)((0,o._)("input",{"onUpdate:modelValue":t[0]||(t[0]=t=>e.q=t),type:"text",class:"form-control",placeholder:e.searchPlaceholder,"aria-label":e.$t("Search documents"),"aria-describedby":"basic-addon2",required:""},null,8,rs),[[r.vModelText,e.q]]),(0,o._)("button",{type:"submit",class:"btn btn-primary ms-1",disabled:e.loading},[e.loading?((0,o.wg)(),(0,o.iD)("span",is)):((0,o.wg)(),(0,o.iD)("span",ss,(0,a.zw)(e.$t("Search")),1))],8,as),e.searchInfo.count?((0,o.wg)(),(0,o.iD)("button",{key:0,type:"button",class:"btn btn-secondary ms-1 d-lg-none text-nowrap",onClick:t[1]||(t[1]=()=>e.drawerOpen=!0)},[ls,e.selectedFacetsCount?((0,o.wg)(),(0,o.iD)("span",cs,"("+(0,a.zw)(e.selectedFacetsCount)+")",1)):(0,o.kq)("v-if",!0)])):(0,o.kq)("v-if",!0)],32),(0,o._)("div",us,[(0,o.Wm)(n,{page:"search/"})])]),(0,o._)("div",ds,[(0,o.Wm)(i,{modelValue:e.advancedSearchCriteria,"onUpdate:modelValue":t[3]||(t[3]=t=>e.advancedSearchCriteria=t),"advanced-search-date-criteria":e.advancedSearchDateCriteria,"global-search-value":e.q,onGlobalSearchChange:t[4]||(t[4]=t=>e.q=t),onDateChange:t[5]||(t[5]=t=>e.advancedSearchDateCriteria={...t}),onSubmit:e.advancedSearch},null,8,["modelValue","advanced-search-date-criteria","global-search-value","onSubmit"])])]),e.error?((0,o.wg)(),(0,o.iD)("div",ps,(0,a.zw)(e.$t("Oops, something went wrong."))+" "+(0,a.zw)(e.error),1)):(0,o.kq)("v-if",!0),0===e.searchInfo.count?((0,o.wg)(),(0,o.iD)("div",hs,(0,a.zw)(e.$t("No documents match your search.")),1)):(0,o.kq)("v-if",!0)]),(0,o._)("div",fs,[(0,o._)("div",ms,[(0,o._)("div",gs,[(0,o.Wm)(l,{open:e.drawerOpen,onOutsideDrawerClick:t[8]||(t[8]=()=>e.drawerOpen=!1)},{default:(0,o.w5)((()=>[e.searchInfo.count?((0,o.wg)(),(0,o.j4)(s,{key:0,modelValue:e.facets,"onUpdate:modelValue":t[7]||(t[7]=t=>e.facets=t),loading:e.loading},{"header-title":(0,o.w5)((()=>[(0,o._)("button",{type:"button",class:"btn-close d-lg-none","aria-label":e.$t("Close"),onClick:t[6]||(t[6]=()=>e.drawerOpen=!1)},null,8,bs),(0,o._)("strong",vs,(0,a.zw)(e.$t("Filters")),1)])),_:1},8,["modelValue","loading"])):(0,o.kq)("v-if",!0)])),_:1},8,["open"])]),(0,o._)("div",ys,[(0,o._)("div",_s,[e.searchInfo.count?((0,o.wg)(),(0,o.iD)("div",ks,[(0,o.Wm)(c,{modelValue:e.facets,"onUpdate:modelValue":t[9]||(t[9]=t=>e.facets=t)},null,8,["modelValue"]),(0,o._)("div",ws,[(0,o._)("div",xs,[(0,o._)("div",Ss,(0,a.zw)(e.$t("Sort by")),1),(0,o.wy)((0,o._)("select",{"onUpdate:modelValue":t[10]||(t[10]=t=>e.ordering=t),class:"ms-2 form-select"},[(0,o._)("option",As,(0,a.zw)(e.$t("Relevance")),1),(0,o._)("option",Cs,(0,a.zw)(e.$t("Date (oldest first)")),1),(0,o._)("option",Ts,(0,a.zw)(e.$t("Date (newest first)")),1)],512),[[r.vModelSelect,e.ordering]])]),(0,o._)("div",Es,[e.searchInfo.count>9999?((0,o.wg)(),(0,o.iD)("span",Os,(0,a.zw)(e.$t("More than 10,000 documents found.")),1)):((0,o.wg)(),(0,o.iD)("span",Ps,(0,a.zw)(e.$t("{document_count} documents found",{document_count:e.searchInfo.count})),1))])]),(0,o._)("ul",Ds,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.searchInfo.results,(t=>((0,o.wg)(),(0,o.j4)(u,{key:t.key,item:t,query:e.q,debug:e.searchInfo.can_debug,"show-jurisdiction":e.showJurisdiction,"document-labels":e.documentLabels,onExplain:n=>e.explain(t),onItemClicked:n=>e.itemClicked(t,n)},null,8,["item","query","debug","show-jurisdiction","document-labels","onExplain","onItemClicked"])))),128))]),(0,o.Wm)(d,{search:e.searchInfo,page:e.page,onChanged:e.handlePageChange},null,8,["search","page","onChanged"])])):(0,o.kq)("v-if",!0)]),e.loading&&e.searchInfo.count?((0,o.wg)(),(0,o.iD)("div",Ms)):(0,o.kq)("v-if",!0)])]),(0,o._)("a",Ls," ▲ "+(0,a.zw)(e.$t("To the top")),1)],512),(0,o.kq)(" DOM Hack for i18next to parse facet to locale json. i18next skips t functions in script element "),(0,o.kq)("v-if",!0)],512)},gc.__scopeId="data-v-6963ae4d";const bc=gc,vc={id:"mobile-legislation-facets",ref:"mobile-legislation-facets-ref",class:"offcanvas offcanvas-start",tabindex:"-1","aria-labelledby":"mobile-legislation-facets"},yc={class:"offcanvas-header justify-content-end"},_c=["aria-label"],kc={class:"offcanvas-body"},wc={class:"row"},xc={class:"col col-lg-3 d-none d-lg-block"},Sc={class:"col col-lg-9"},Ac=(0,o._)("div",{class:"d-block d-lg-none mb-2"},[(0,o._)("button",{class:"btn btn-primary",type:"button","data-bs-toggle":"offcanvas","data-bs-target":"#mobile-legislation-facets","aria-controls":"mobile-legislation-facets"}," Filters ")],-1),Cc={class:"mb-2 d-flex"},Tc={class:"flex-grow-1 me-2"},Ec=["placeholder"],Oc={value:"title"},Pc={value:"-title"},Dc={value:"year"},Mc={value:"-year"},Lc={class:"mb-3"},Rc=(0,o._)("th",{class:"cell-toggle"},null,-1),Ic={class:"cell-title"},Fc={key:0,class:"bi bi-sort-up ms-2"},Nc={key:1,class:"bi bi-sort-down ms-2"},jc={key:0,class:"cell-citation"},$c={class:"cell-date"},Uc={key:0,class:"bi bi-sort-up ms-2"},qc={key:1,class:"bi bi-sort-down ms-2"},Bc={key:0},zc=(0,o._)("td",{class:"cell-toggle"},null,-1),Vc=["colspan"],Hc=["id"],Wc={key:1,class:"p-2 text-center"},Gc=["href"],Yc=(0,o.Uk)(". "),Jc={class:"cell-toggle"},Zc=[(0,o._)("i",{class:"bi bi-caret-right-fill"},null,-1),(0,o._)("i",{class:"bi bi-caret-down-fill"},null,-1)],Xc={class:"cell-title"},Kc=["href"],Qc=["title"],eu={key:1,class:"d-flex align-items-center"},tu={key:0,class:"cell-citation"},nu={class:"cell-date"},ou={name:"LegislationTable",components:{FilterFacets:vr,TableRow:{name:"TableRow",props:["row","hideCitation"],emits:["toggle"],render:function(e,t){return(0,o.wg)(),(0,o.iD)("tr",{class:(0,a.C_)(e.row.children&&e.row.children.length?"has-children":""),role:"button",onClick:t[1]||(t[1]=(...t)=>e.handleRowClick&&e.handleRowClick(...t))},[(0,o._)("td",Jc,[e.row.children&&e.row.children.length?((0,o.wg)(),(0,o.iD)("div",{key:0,class:"indent",role:"button",onClick:t[0]||(t[0]=t=>e.$emit("toggle"))},Zc)):(0,o.kq)("v-if",!0)]),(0,o._)("td",Xc,[(0,o._)("a",{href:`${e.row.work_frbr_uri}`},(0,a.zw)(e.row.title),9,Kc),null!=e.row.languages&&e.row.languages.length>1?((0,o.wg)(),(0,o.iD)("i",{key:0,class:"bi bi-translate ps-2",title:e.$t("Multiple languages available")},null,8,Qc)):(0,o.kq)("v-if",!0),e.row.labels.length?((0,o.wg)(),(0,o.iD)("div",eu,[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.row.labels,((e,t)=>((0,o.wg)(),(0,o.iD)("span",{key:t,class:(0,a.C_)(`badge rounded-pill bg-${e.level}`)},(0,a.zw)(e.name),3)))),128))])):(0,o.kq)("v-if",!0)]),e.hideCitation?(0,o.kq)("v-if",!0):((0,o.wg)(),(0,o.iD)("td",tu,(0,a.zw)(e.row.citation),1)),(0,o._)("td",nu,(0,a.zw)(e.row.year),1)],2)}}},props:["hideCitations","initialSort"],data:e=>({offCanvasFacets:null,facets:[],tableData:[],filteredData:[],rows:[],lockAccordion:!1,q:"",sort:e.initialSort||"title",windowWith:window.innerWidth}),watch:{q(){this.filterData()},sort(){this.filterData()},facets(){this.offCanvasFacets.hide(),this.filterData()}},beforeUnmount(){window.removeEventListener("resize",this.setWindowWidth)},mounted(){this.offCanvasFacets=new window.bootstrap.Offcanvas(this.$refs["mobile-legislation-facets-ref"]),window.addEventListener("resize",this.setWindowWidth);const e=document.getElementById("legislation-table");this.tableData=JSON.parse(e.textContent),this.filterData(),this.setFacets()},methods:{toggleChildren(e){const t=document.getElementById(`row-${e}`),n=document.getElementById(`children-${e}`);if(t&&n)return t.classList.toggle("expanded"),new window.bootstrap.Collapse(n,{toggle:!0})},setWindowWidth:na()((function(){this.windowWith=window.innerWidth}),100),setFacets(){const e={};this.filteredData.filter((e=>e.year)).forEach((t=>{e[t.year]=(e[t.year]||0)+1}));const t={};this.filteredData.filter((e=>e.taxonomies.length)).forEach((e=>{e.taxonomies.forEach((e=>{t[e]=(t[e]||0)+1}))}));const n=e=>Object.keys(e).map((t=>({label:t,count:e[t],value:t}))),o=n(e),r=n(t);r.sort(((e,t)=>e.value.localeCompare(t.value))),o.sort(((e,t)=>t.value-e.value));const a="abcdefghijklmnopqrstuvwxyz".split("").map((e=>({label:e.toUpperCase(),value:e})));this.facets=[{title:this.$t("Alphabetical"),name:"alphabetical",type:"letter-radio",value:[],options:a},{title:this.$t("Years"),name:"year",type:"radio",value:null,options:o},{title:this.$t("Taxonomies"),name:"taxonomies",type:"checkboxes",value:[],options:r}]},updateSort(e){this.sort===e?this.sort=`-${e}`:this.sort=e},filterData(){let e=[...this.tableData];this.q.trim()&&(e=e.filter((e=>["title","citation"].some((t=>(e[t]||"").toLowerCase().includes(this.q.toLowerCase()))))));const t={};this.facets.forEach((e=>{!e.value||Array.isArray(e.value)&&!e.value.length||(t[e.name]=e.value)})),Object.keys(t).forEach((n=>{e=e.filter((e=>{if("alphabetical"===n)return e.title.toLowerCase().startsWith(t[n]);if(Array.isArray(t[n])){const o=t[n].map((e=>String(e))),r=e[n].map((e=>String(e)));return o.some((e=>r.includes(e)))}return String(e[n])===String(t[n])}))}));const n="-"!==this.sort[0],o=n?this.sort:this.sort.substring(1);this.sortRows(e,o,n);for(const t of e)this.sortRows(t.children,o,n);this.filteredData=e,this.rows=[];let r="";this.filteredData.forEach((e=>{const t=function(e){const t=e[o]||"";return"year"===o?t.substring(0,4):t&&t.length?t[0].toUpperCase():""}(e);t!==r&&(r=t,this.rows.push({heading:t,children:[]})),this.rows.push(e)}))},sortRows(e,t,n){e.sort(((e,o)=>{const r=e[t]?e[t].toLowerCase():"",a=o[t]?o[t].toLowerCase():"";return r.localeCompare(a)*(n?1:-1)*("year"===t?-1:1)}))}},render:function(e,t){const n=(0,o.up)("FilterFacets"),i=(0,o.up)("table-row");return(0,o.wg)(),(0,o.iD)("div",null,[(0,o._)("div",vc,[(0,o._)("div",yc,[(0,o._)("button",{type:"button",class:"btn-close text-reset","data-bs-dismiss":"offcanvas","aria-label":e.$t("Close")},null,8,_c)]),(0,o._)("div",kc,[e.windowWith<992?((0,o.wg)(),(0,o.j4)(n,{key:0,modelValue:e.facets,"onUpdate:modelValue":t[0]||(t[0]=t=>e.facets=t)},null,8,["modelValue"])):(0,o.kq)("v-if",!0)])],512),(0,o._)("div",wc,[(0,o._)("div",xc,[e.windowWith>992?((0,o.wg)(),(0,o.j4)(n,{key:0,modelValue:e.facets,"onUpdate:modelValue":t[1]||(t[1]=t=>e.facets=t)},null,8,["modelValue"])):(0,o.kq)("v-if",!0)]),(0,o._)("div",Sc,[Ac,(0,o._)("div",Cc,[(0,o._)("div",Tc,[(0,o.wy)((0,o._)("input",{"onUpdate:modelValue":t[2]||(t[2]=t=>e.q=t),type:"text",class:"form-control",placeholder:e.$t("Filter legislation")},null,8,Ec),[[r.vModelText,e.q]])]),(0,o._)("div",null,[(0,o.wy)((0,o._)("select",{class:"form-control","onUpdate:modelValue":t[3]||(t[3]=t=>e.sort=t)},[(0,o._)("option",Oc,(0,a.zw)(e.$t("Title"))+" (A - Z)",1),(0,o._)("option",Pc,(0,a.zw)(e.$t("Title"))+" (Z - A)",1),(0,o._)("option",Dc,(0,a.zw)(e.$t("Year"))+" ("+(0,a.zw)(e.$t("Newest first"))+")",1),(0,o._)("option",Mc,(0,a.zw)(e.$t("Year"))+" ("+(0,a.zw)(e.$t("Oldest first"))+")",1)],512),[[r.vModelSelect,e.sort]])])]),(0,o._)("div",Lc,(0,a.zw)(e.filteredData.length)+" of "+(0,a.zw)(e.tableData.length)+" documents ",1),e.filteredData.length?((0,o.wg)(),(0,o.iD)("table",{key:0,class:(0,a.C_)("doc-table doc-table--toggle "+(e.hideCitations?"":"doc-table--citation"))},[(0,o._)("thead",null,[(0,o._)("tr",null,[Rc,(0,o._)("th",Ic,[(0,o._)("div",{class:"align-items-center",role:"button",onClick:t[4]||(t[4]=t=>e.updateSort("title"))},[(0,o.Uk)((0,a.zw)(e.$t("Title"))+" ",1),"title"===e.sort?((0,o.wg)(),(0,o.iD)("i",Fc)):(0,o.kq)("v-if",!0),"-title"===e.sort?((0,o.wg)(),(0,o.iD)("i",Nc)):(0,o.kq)("v-if",!0)])]),e.hideCitations?(0,o.kq)("v-if",!0):((0,o.wg)(),(0,o.iD)("th",jc)),(0,o._)("th",$c,[(0,o._)("div",{role:"button",onClick:t[5]||(t[5]=t=>e.updateSort("year"))},[(0,o.Uk)((0,a.zw)(e.$t("Year"))+" ",1),"year"===e.sort?((0,o.wg)(),(0,o.iD)("i",Uc)):(0,o.kq)("v-if",!0),"-year"===e.sort?((0,o.wg)(),(0,o.iD)("i",qc)):(0,o.kq)("v-if",!0)])])])]),((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(e.rows,((t,n)=>((0,o.wg)(),(0,o.iD)(o.HY,{key:n},[null!=t.heading?((0,o.wg)(),(0,o.iD)("tr",Bc,[zc,(0,o._)("td",{class:"cell-group",colspan:e.hideCitations?2:3},(0,a.zw)(t.heading),9,Vc)])):((0,o.wg)(),(0,o.j4)(i,{key:1,id:`row-${n}`,row:t,"hide-citation":e.hideCitations,onToggle:t=>e.toggleChildren(n)},null,8,["id","row","hide-citation","onToggle"])),t.children&&t.children.length?((0,o.wg)(),(0,o.iD)("tbody",{key:2,id:`children-${n}`,class:"doc-table-children collapse"},[((0,o.wg)(!0),(0,o.iD)(o.HY,null,(0,o.Ko)(t.children,((t,n)=>((0,o.wg)(),(0,o.j4)(i,{key:n,row:t,"hide-citation":e.hideCitations},null,8,["row","hide-citation"])))),128))],8,Hc)):(0,o.kq)("v-if",!0)],64)))),128))],2)):((0,o.wg)(),(0,o.iD)("div",Wc,[(0,o.Uk)((0,a.zw)(e.$t("No legislation found."))+" ",1),(0,o._)("a",{href:`/search/?q=${encodeURIComponent(e.q)}`,target:"_blank"},(0,a.zw)(e.$t("Try searching instead")),9,Gc),Yc]))])]),(0,o.kq)(" DOM Hack for i18next to parse facet to locale json. i18next skips t functions in script element "),(0,o.kq)("v-if",!0)])}},ru={key:0},au={key:0},iu={key:1},su=(0,o._)("h3",null,"Download now",-1),lu={key:0,class:"mb-3"},cu=["href"],uu={key:1,class:"mb-3"},du=["href"],pu=(0,o._)("dt",null,"Version",-1),hu=(0,o._)("dt",null,"Released",-1),fu={CopyToClipboard:n,DocumentContent:yi,DocumentList:kr,NavigationSelect:_i,RelationshipEnrichments:Vo,ToggleTab:ki,TaxonomyTree:wi,TermsOfUse:xi,DocumentProblemModal:Zi,FindDocuments:bc,LegislationTable:ou,PocketLawDownload:{name:"PocketLawDownload",props:{repo:String},data:()=>({info:null}),async mounted(){if(this.repo){const e=`https://api.github.com/repos/${this.repo}/releases/latest`;let t;try{const n=await fetch(e);t=await n.json()}catch(e){return void console.error(e)}this.info={version:t.name,date:t.created_at.split("T")[0]},this.info.windows_asset=t.assets.find((e=>e.name.endsWith(".exe"))),this.info.mac_asset=t.assets.find((e=>e.name.endsWith(".dmg")))}},methods:{size:e=>Math.trunc(e/1024/1024)},render:function(e,t){return(0,o.wg)(),(0,o.iD)("div",null,[this.repo?((0,o.wg)(),(0,o.iD)("div",ru,[e.info?((0,o.wg)(),(0,o.iD)("div",iu,[su,e.info.windows_asset?((0,o.wg)(),(0,o.iD)("div",lu,[(0,o._)("a",{href:e.info.windows_asset.browser_download_url,class:"btn btn-lg btn-outline-primary"},"Pocket Law for Windows ("+(0,a.zw)(e.size(e.info.windows_asset.size))+" MB)",9,cu)])):(0,o.kq)("v-if",!0),e.info.mac_asset?((0,o.wg)(),(0,o.iD)("div",uu,[(0,o._)("a",{href:e.info.mac_asset.browser_download_url,class:"btn btn-lg btn-outline-primary"},"Pocket Law for Mac OS ("+(0,a.zw)(e.size(e.info.mac_asset.size))+" MB)",9,du)])):(0,o.kq)("v-if",!0),(0,o._)("dl",null,[pu,(0,o._)("dd",null,(0,a.zw)(e.info.version),1),hu,(0,o._)("dd",null,(0,a.zw)(e.info.date),1)])])):((0,o.wg)(),(0,o.iD)("div",au," Loading... "))])):(0,o.kq)("v-if",!0)])}}};var mu=Object.defineProperty,gu=new WeakMap,bu=e=>gu.get(e),vu=(e,t)=>t in e,yu=(e,t)=>(0,console.error)(e,t),_u=new Map,ku="http://www.w3.org/1999/xlink",wu="undefined"!=typeof window?window:{},xu=wu.document||{head:{}},Su=wu.HTMLElement||class{},Au={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},Cu=(()=>{let e=!1;try{xu.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(e){}return e})(),Tu=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),Eu=!1,Ou=[],Pu=[],Du=(e,t)=>n=>{e.push(n),Eu||(Eu=!0,t&&4&Au.$flags$?Ru(Lu):Au.raf(Lu))},Mu=e=>{for(let t=0;t{Mu(Ou),Mu(Pu),(Eu=Ou.length>0)&&Au.raf(Lu)},Ru=e=>Promise.resolve(undefined).then(e),Iu=Du(Pu,!0),Fu={},Nu=e=>"object"==(e=typeof e)||"function"===e;((e,t)=>{for(var n in t)mu(e,n,{get:t[n],enumerable:!0})})({},{err:()=>$u,map:()=>Uu,ok:()=>ju,unwrap:()=>zu,unwrapErr:()=>Vu});var ju=e=>({isOk:!0,isErr:!1,value:e}),$u=e=>({isOk:!1,isErr:!0,value:e});function Uu(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>ju(e))):ju(n)}if(e.isErr){const t=e.value;return $u(t)}throw"should never get here"}var qu,Bu,zu=e=>{if(e.isOk)return e.value;throw e.value},Vu=e=>{if(e.isErr)return e.value;throw e.value},Hu=(e,t,...n)=>{let o=null,r=null,a=null,i=!1,s=!1;const l=[],c=t=>{for(let n=0;ne[t])).join(" "))}}const u=Wu(e,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=r,u.$name$=a,u},Wu=(e,t)=>({$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),Gu={},Yu=(e,t,n)=>{const o=e;return{emit:e=>Ju(o,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},Ju=(e,t,n)=>{const o=Au.ce(t,n);return e.dispatchEvent(o),o},Zu=new WeakMap,Xu=(e,t)=>"sc-"+e.$tagName$,Ku=(e,t,n,o,r,a)=>{if(n!==o){let i=vu(e,t),s=t.toLowerCase();if("class"===t){const t=e.classList,r=ed(n),a=ed(o);t.remove(...r.filter((e=>e&&!a.includes(e)))),t.add(...a.filter((e=>e&&!r.includes(e))))}else if("style"===t){for(const t in n)o&&null!=o[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in o)n&&o[t]===n[t]||(t.includes("-")?e.style.setProperty(t,o[t]):e.style[t]=o[t])}else if("key"===t);else if("ref"===t)o&&o(e);else if(e.__lookupSetter__(t)||"o"!==t[0]||"n"!==t[1]){const l=Nu(o);if((i||l&&null!==o)&&!r)try{if(e.tagName.includes("-"))e[t]=o;else{const r=null==o?"":o;"list"===t?i=!1:null!=n&&e[t]==r||(e[t]=r)}}catch(e){}let c=!1;s!==(s=s.replace(/^xlink\:?/,""))&&(t=s,c=!0),null==o||!1===o?!1===o&&""!==e.getAttribute(t)||(c?e.removeAttributeNS(ku,t):e.removeAttribute(t)):(!i||4&a||r)&&!l&&(o=!0===o?"":o,c?e.setAttributeNS(ku,t,o):e.setAttribute(t,o))}else if(t="-"===t[2]?t.slice(3):vu(wu,s)?s.slice(2):s[2]+t.slice(3),n||o){const r=t.endsWith(td);t=t.replace(nd,""),n&&Au.rel(e,t,n,r),o&&Au.ael(e,t,o,r)}}},Qu=/\s/,ed=e=>e?e.split(Qu):[],td="Capture",nd=new RegExp(td+"$"),od=(e,t,n)=>{const o=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,r=e&&e.$attrs$||Fu,a=t.$attrs$||Fu;for(const e of rd(Object.keys(r)))e in a||Ku(o,e,r[e],void 0,n,t.$flags$);for(const e of rd(Object.keys(a)))Ku(o,e,r[e],a[e],n,t.$flags$)};function rd(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var ad=!1,id=!1,sd=!1,ld=(e,t,n,o)=>{var r;const a=t.$children$[n];let i,s,l,c=0;if(ad||(sd=!0,"slot"===a.$tag$&&(a.$flags$|=a.$children$?2:1)),null!==a.$text$)i=a.$elm$=xu.createTextNode(a.$text$);else if(1&a.$flags$)i=a.$elm$=xu.createTextNode("");else if(i=a.$elm$=xu.createElement(!ad&&2&a.$flags$?"slot-fb":a.$tag$),od(null,a,!1),a.$children$)for(c=0;c{Au.$flags$|=1;const n=Array.from(e.childNodes);e["s-sr"];for(let e=n.length-1;e>=0;e--){const o=n[e];o["s-hn"]!==Bu&&o["s-ol"]&&(kd(fd(o),o,hd(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,sd=!0),t&&cd(o,t)}Au.$flags$&=-2},ud=(e,t,n,o,r,a)=>{let i,s=e["s-cr"]&&e["s-cr"].parentNode||e;for(;r<=a;++r)o[r]&&(i=ld(null,n,r),i&&(o[r].$elm$=i,kd(s,i,hd(t))))},dd=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.$elm$;_d(t),e&&(id=!0,e["s-ol"]?e["s-ol"].remove():cd(e,!0),e.remove())}}},pd=(e,t,n=!1)=>e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:!!n||e.$key$===t.$key$),hd=e=>e&&e["s-ol"]||e,fd=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,md=(e,t,n=!1)=>{const o=t.$elm$=e.$elm$,r=e.$children$,a=t.$children$,i=t.$tag$,s=t.$text$;let l;null===s?(("slot"!==i||ad)&&od(e,t,!1),null!==r&&null!==a?((e,t,n,o,r=!1)=>{let a,i,s=0,l=0,c=0,u=0,d=t.length-1,p=t[0],h=t[d],f=o.length-1,m=o[0],g=o[f];for(;s<=d&&l<=f;)if(null==p)p=t[++s];else if(null==h)h=t[--d];else if(null==m)m=o[++l];else if(null==g)g=o[--f];else if(pd(p,m,r))md(p,m,r),p=t[++s],m=o[++l];else if(pd(h,g,r))md(h,g,r),h=t[--d],g=o[--f];else if(pd(p,g,r))"slot"!==p.$tag$&&"slot"!==g.$tag$||cd(p.$elm$.parentNode,!1),md(p,g,r),kd(e,p.$elm$,h.$elm$.nextSibling),p=t[++s],g=o[--f];else if(pd(h,m,r))"slot"!==p.$tag$&&"slot"!==g.$tag$||cd(h.$elm$.parentNode,!1),md(h,m,r),kd(e,h.$elm$,p.$elm$),h=t[--d],m=o[++l];else{for(c=-1,u=s;u<=d;++u)if(t[u]&&null!==t[u].$key$&&t[u].$key$===m.$key$){c=u;break}c>=0?(i=t[c],i.$tag$!==m.$tag$?a=ld(t&&t[l],n,c):(md(i,m,r),t[c]=void 0,a=i.$elm$),m=o[++l]):(a=ld(t&&t[l],n,l),m=o[++l]),a&&kd(fd(p.$elm$),a,hd(p.$elm$))}s>d?ud(e,null==o[f+1]?null:o[f+1].$elm$,n,o,l,f):l>f&&dd(t,s,d)})(o,r,t,a,n):null!==a?(null!==e.$text$&&(o.textContent=""),ud(o,null,t,a,0,a.length-1)):null!==r&&dd(r,0,r.length-1)):(l=o["s-cr"])?l.parentNode.textContent=s:e.$text$!==s&&(o.data=s)},gd=e=>{const t=e.childNodes;for(const e of t)if(1===e.nodeType){if(e["s-sr"]){const n=e["s-sn"];e.hidden=!1;for(const o of t)if(o!==e)if(o["s-hn"]!==e["s-hn"]||""!==n){if(1===o.nodeType&&(n===o.getAttribute("slot")||n===o["s-sn"])||3===o.nodeType&&n===o["s-sn"]){e.hidden=!0;break}}else if(1===o.nodeType||3===o.nodeType&&""!==o.textContent.trim()){e.hidden=!0;break}}gd(e)}},bd=[],vd=e=>{let t,n,o;for(const r of e.childNodes){if(r["s-sr"]&&(t=r["s-cr"])&&t.parentNode){n=t.parentNode.childNodes;const e=r["s-sn"];for(o=n.length-1;o>=0;o--)if(t=n[o],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==r["s-hn"])if(yd(t,e)){let n=bd.find((e=>e.$nodeToRelocate$===t));id=!0,t["s-sn"]=t["s-sn"]||e,n?(n.$nodeToRelocate$["s-sh"]=r["s-hn"],n.$slotRefNode$=r):(t["s-sh"]=r["s-hn"],bd.push({$slotRefNode$:r,$nodeToRelocate$:t})),t["s-sr"]&&bd.map((e=>{yd(e.$nodeToRelocate$,t["s-sn"])&&(n=bd.find((e=>e.$nodeToRelocate$===t)),n&&!e.$slotRefNode$&&(e.$slotRefNode$=n.$slotRefNode$))}))}else bd.some((e=>e.$nodeToRelocate$===t))||bd.push({$nodeToRelocate$:t})}1===r.nodeType&&vd(r)}},yd=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,_d=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(_d)},kd=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),wd=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.$onRenderResolve$=t)))},xd=(e,t)=>{if(e.$flags$|=16,!(4&e.$flags$))return wd(e,e.$ancestorComponent$),Iu((()=>Sd(e,t)));e.$flags$|=512},Sd=(e,t)=>{const n=e.$hostElement$,o=(e.$cmpMeta$.$tagName$,()=>{}),r=n;if(!r)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let a;return t&&(a=Dd(r,"componentWillLoad")),o(),Ad(a,(()=>Td(e,r,t)))},Ad=(e,t)=>Cd(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),Cd=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,Td=async(e,t,n)=>{var o;const r=e.$hostElement$,a=(e.$cmpMeta$.$tagName$,()=>{}),i=r["s-rc"];n&&(e=>{const t=e.$cmpMeta$,n=e.$hostElement$,o=(t.$tagName$,()=>{});((e,t,n)=>{var o;const r=e,a=Xu(t),i=_u.get(a);if(e=11===e.nodeType?e:xu,i)if("string"==typeof i){e=r.head||e;let n,s=Zu.get(e);if(s||Zu.set(e,s=new Set),!s.has(a)){{n=xu.createElement("style"),n.innerHTML=i;const t=null!=(o=Au.$nonce$)?o:function(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}(xu);null!=t&&n.setAttribute("nonce",t),e.insertBefore(n,e.querySelector("link"))}4&t.$flags$&&(n.innerHTML+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),s&&s.add(a)}}else r.adoptedStyleSheets.includes(i)||(r.adoptedStyleSheets=[...r.adoptedStyleSheets,i])})(n.getRootNode(),t),o()})(e);const s=(e.$cmpMeta$.$tagName$,()=>{});Ed(e,t,r,n),i&&(i.map((e=>e())),r["s-rc"]=void 0),s(),a();{const t=null!=(o=r["s-p"])?o:[],n=()=>Od(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}},Ed=(e,t,n,o)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,((e,t,n=!1)=>{var o,r,a,i;const s=e.$hostElement$,l=e.$cmpMeta$,c=e.$vnode$||Wu(null,null),u=(d=t)&&d.$tag$===Gu?t:Hu(null,null,t);var d;if(Bu=s.tagName,l.$attrsToReflect$&&(u.$attrs$=u.$attrs$||{},l.$attrsToReflect$.map((([e,t])=>u.$attrs$[t]=s[e]))),n&&u.$attrs$)for(const e of Object.keys(u.$attrs$))s.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(u.$attrs$[e]=s[e]);if(u.$tag$=null,u.$flags$|=4,e.$vnode$=u,u.$elm$=c.$elm$=s,ad=!1,qu=s["s-cr"],id=!1,md(c,u,n),Au.$flags$|=1,sd){vd(u.$elm$);for(const e of bd){const t=e.$nodeToRelocate$;if(!t["s-ol"]){const e=xu.createTextNode("");e["s-nr"]=t,kd(t.parentNode,t["s-ol"]=e,t)}}for(const e of bd){const t=e.$nodeToRelocate$,s=e.$slotRefNode$;if(s){const e=s.parentNode;let n=s.nextSibling;{let a=null==(o=t["s-ol"])?void 0:o.previousSibling;for(;a;){let o=null!=(r=a["s-nr"])?r:null;if(o&&o["s-sn"]===t["s-sn"]&&e===o.parentNode){for(o=o.nextSibling;o===t||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}a=a.previousSibling}}(!n&&e!==t.parentNode||t.nextSibling!==n)&&t!==n&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),kd(e,t,n),1===t.nodeType&&(t.hidden=null!=(a=t["s-ih"])&&a)),t&&"function"==typeof s["s-rf"]&&s["s-rf"](t)}else 1===t.nodeType&&(n&&(t["s-ih"]=null!=(i=t.hidden)&&i),t.hidden=!0)}}id&&gd(u.$elm$),Au.$flags$&=-2,bd.length=0,qu=void 0})(e,t,o)}catch(t){yu(t,e.$hostElement$)}return null},Od=e=>{e.$cmpMeta$.$tagName$;const t=e.$hostElement$,n=t,o=e.$ancestorComponent$;Dd(n,"componentDidRender"),64&e.$flags$||(e.$flags$|=64,Md(t),Dd(n,"componentDidLoad"),e.$onReadyResolve$(t),o||Pd()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Ru((()=>xd(e,!1))),e.$flags$&=-517},Pd=e=>{Md(xu.documentElement),Ru((()=>Ju(wu,"appload",{detail:{namespace:"lawwidgets"}})))},Dd=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){yu(e)}},Md=e=>e.classList.add(("hydrated","hydrated")),Ld=(e,t,n)=>{var o,r;const a=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const n=Object.entries(null!=(o=t.$members$)?o:{});n.map((([e,[n]])=>{(31&n||32&n)&&Object.defineProperty(a,e,{get(){return t=e,bu(this).$instanceValues$.get(t);var t},set(n){((e,t,n,o)=>{const r=bu(e),a=e,i=r.$instanceValues$.get(t),s=r.$flags$,l=a;var c,u;c=n,u=o.$members$[t][0],n=null==c||Nu(c)?c:4&u?"false"!==c&&(""===c||!!c):1&u?String(c):c;const d=Number.isNaN(i)&&Number.isNaN(n);if(n!==i&&!d){if(r.$instanceValues$.set(t,n),o.$watchers$&&128&s){const e=o.$watchers$[t];e&&e.map((e=>{try{l[e](n,i,t)}catch(e){yu(e,a)}}))}2==(18&s)&&xd(r,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0})}));{const o=new Map;a.attributeChangedCallback=function(e,n,r){Au.jmp((()=>{var i;const s=o.get(e);if(this.hasOwnProperty(s))r=this[s],delete this[s];else{if(a.hasOwnProperty(s)&&"number"==typeof this[s]&&this[s]==r)return;if(null==s){const o=bu(this),a=null==o?void 0:o.$flags$;if(a&&!(8&a)&&128&a&&r!==n){const o=this,a=null==(i=t.$watchers$)?void 0:i[e];null==a||a.forEach((t=>{null!=o[t]&&o[t].call(o,r,n,e)}))}return}}this[s]=(null!==r||"boolean"!=typeof this[s])&&r}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.$watchers$)?r:{}),...n.filter((([e,t])=>15&t[0])).map((([e,n])=>{var r;const a=n[1]||e;return o.set(a,e),512&n[0]&&(null==(r=t.$attrsToReflect$)||r.push([e,a])),a}))]))}}return e},Rd=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};n.$members$=t[2],n.$listeners$=t[3],n.$watchers$=e.$watchers$,n.$attrsToReflect$=[];const o=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){((e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};n.$onReadyPromise$=new Promise((e=>n.$onReadyResolve$=e)),e["s-p"]=[],e["s-rc"]=[],gu.set(e,n)})(this,n)},connectedCallback(){const e=bu(this);Id(this,e,n.$listeners$),(e=>{if(0==(1&Au.$flags$)){const t=bu(e),n=t.$cmpMeta$,o=(n.$tagName$,()=>{});if(1&t.$flags$)Id(e,t,n.$listeners$),(null==t?void 0:t.$lazyInstance$)||(null==t?void 0:t.$onReadyPromise$)&&t.$onReadyPromise$.then((()=>{}));else{t.$flags$|=1,12&n.$flags$&&(e=>{const t=e["s-cr"]=xu.createComment("");t["s-cn"]=!0,kd(e,t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){wd(t,t.$ancestorComponent$=n);break}}n.$members$&&Object.entries(n.$members$).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,o)=>{let r;if(0==(32&t.$flags$)){t.$flags$|=32;{r=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.$flags$|=128))}if(r&&r.style){let e;"string"==typeof r.style&&(e=r.style);const t=Xu(n);if(!_u.has(t)){const o=(n.$tagName$,()=>{});((e,t,n)=>{let o=_u.get(e);Tu&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,_u.set(e,o)})(t,e,!!(1&n.$flags$)),o()}}}const a=t.$ancestorComponent$,i=()=>xd(t,!0);a&&a["s-rc"]?a["s-rc"].push(i):i()})(e,t,n)}o()}})(this)},disconnectedCallback(){(async e=>{if(0==(1&Au.$flags$)){const t=bu(e);t.$rmListeners$&&(t.$rmListeners$.map((e=>e())),t.$rmListeners$=void 0)}})(this),o&&o.call(this)},__attachShadow(){this.shadowRoot=this}}),e.is=n.$tagName$,Ld(e,n)},Id=(e,t,n,o)=>{n&&n.map((([n,o,r])=>{const a=e,i=Fd(t,r),s=Nd(n);Au.ael(a,o,i,s),(t.$rmListeners$=t.$rmListeners$||[]).push((()=>Au.rel(a,o,i,s)))}))},Fd=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(e){yu(e)}},Nd=e=>Cu?{passive:0!=(1&e),capture:0!=(2&e)}:0!=(2&e);function jd(){return document.location.hostname.replace(/^www\./,"")}const $d="https://services.lawsafrica.com/v1",Ud=Rd(class extends Su{constructor(){super(),this.__registerHost(),this.frbrExpressionUri=void 0,this.frbrCountry=void 0,this.frbrType=void 0,this.frbrSubtype=void 0,this.frbrAuthor=void 0,this.frbrDate=void 0,this.frbrNumber=void 0,this.frbrExpressionDate=void 0,this.frbrLanguage=void 0,this.fetch=!1,this.partner=void 0,this.provider=$d}refetch(){this.fetchContent()}parseFrbrExpressionUri(e){const t=new RegExp("^(/(?akn))/(?[a-z]{2})(-(?[^/]+))?/(?[^/]+)(/(?[^0-9][^/]*))?(/(?[^0-9][^/]*))?/(?[0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?)/(?[^/]+)(/(((?[a-z]{3})(?[@:][^/]*)?(/!?(?[^/]+?)?(/(?[^.]+))?)?(.(?[a-z0-9]+))?)|!?(?[^/]+)))?$","g").exec(e);(null==t?void 0:t.groups)&&Object.keys(t.groups).forEach((e=>{var n;if(null===(n=t.groups)||void 0===n?void 0:n[e])switch(e){case"country":this.frbrCountry||(this.frbrCountry=t.groups[e]);break;case"doctype":this.frbrType||(this.frbrType=t.groups[e]);break;case"subtype":this.frbrSubtype||(this.frbrSubtype=t.groups[e]);break;case"actor":this.frbrAuthor||(this.frbrAuthor=t.groups[e]);break;case"date":this.frbrDate||(this.frbrDate=t.groups[e]);break;case"number":this.frbrNumber||(this.frbrNumber=t.groups[e]);break;case"expression_date":this.frbrExpressionDate||(this.frbrExpressionDate=t.groups[e].replace("@","").replace(":",""));break;case"language":this.frbrLanguage||(this.frbrLanguage=t.groups[e])}})),this.fetchContent()}async fetchContent(){if(this.ensurePartner(),this.fetch&&this.frbrExpressionUri&&this.provider){const e=this.provider+"/p/"+this.partner+"/e/portion"+this.frbrExpressionUri;try{const t=await fetch(e);t.ok&&(this.el.innerHTML=await t.text())}catch(e){}}}ensurePartner(){this.partner||(this.partner=jd())}componentWillLoad(){this.frbrExpressionUri&&this.parseFrbrExpressionUri(this.frbrExpressionUri)}get el(){return this}static get watchers(){return{provider:["refetch"],fetch:["refetch"],frbrExpressionUri:["parseFrbrExpressionUri"]}}static get style(){return'@import url("https://fonts.googleapis.com/css?family=PT+Serif:400,400i,700,700i");@import url("https://fonts.googleapis.com/css?family=PT+Serif:400,400i,700,700i");la-akoma-ntoso{display:block;font-family:Palatino, "Book Antiqua", "PT Serif", Georgia, serif;font-size:15px;line-height:1.35;}@-webkit-keyframes fadeout{from{background-color:yellow}to{background-color:unset}}@keyframes fadeout{from{background-color:yellow}to{background-color:unset}}la-akoma-ntoso.flash-target :target{-webkit-animation:fadeout 2s;animation:fadeout 2s}la-akoma-ntoso .akn-blockContainer{display:block}la-akoma-ntoso .akn-block{display:block}la-akoma-ntoso .akn-blockList{display:block}la-akoma-ntoso .akn-conclusions{display:block}la-akoma-ntoso .akn-coverPage{display:block}la-akoma-ntoso .akn-foreign{display:block}la-akoma-ntoso .akn-intro{display:block}la-akoma-ntoso .akn-item{display:block}la-akoma-ntoso .akn-listIntroduction{display:block}la-akoma-ntoso .akn-listWrapUp{display:block}la-akoma-ntoso .akn-ol{display:block}la-akoma-ntoso .akn-p{display:block}la-akoma-ntoso .akn-preamble{display:block}la-akoma-ntoso .akn-preface{display:block}la-akoma-ntoso .akn-tblock{display:block}la-akoma-ntoso .akn-toc{display:block}la-akoma-ntoso .akn-ul{display:block}la-akoma-ntoso .akn-wrapUp{display:block}la-akoma-ntoso .akn-from{display:block}la-akoma-ntoso .akn-narrative{display:block}la-akoma-ntoso .akn-scene{display:block}la-akoma-ntoso .akn-summary{display:block}la-akoma-ntoso .akn-preface,la-akoma-ntoso .akn-preamble{margin-bottom:1.6em}la-akoma-ntoso .akn-preface>.akn-p,la-akoma-ntoso .akn-preamble>.akn-p{margin-bottom:0.8em}la-akoma-ntoso .akn-listIntroduction,la-akoma-ntoso .akn-listWrapUp,la-akoma-ntoso .akn-p{margin-bottom:0.8em}la-akoma-ntoso .akn-blockList>.akn-item{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-blockList>.akn-item>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-ul,la-akoma-ntoso .akn-ol{list-style-position:outside;padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-ul{list-style-type:disc}la-akoma-ntoso .akn-ol{list-style-type:arabic}la-akoma-ntoso .akn-li{display:list-item;margin-bottom:0.8em}la-akoma-ntoso .akn-akomaNtoso{display:block}la-akoma-ntoso .akn-act{display:block}la-akoma-ntoso .akn-amendment{display:block}la-akoma-ntoso .akn-amendmentList{display:block}la-akoma-ntoso .akn-bill{display:block}la-akoma-ntoso .akn-components{display:block}la-akoma-ntoso .akn-debate{display:block}la-akoma-ntoso .akn-debateReport{display:block}la-akoma-ntoso .akn-doc{display:block}la-akoma-ntoso .akn-documentCollection{display:block}la-akoma-ntoso .akn-judgment{display:block}la-akoma-ntoso .akn-officialGazette{display:block}la-akoma-ntoso .akn-portion{display:block}la-akoma-ntoso .akn-statement{display:block}la-akoma-ntoso .coverpage{text-align:center;margin-bottom:1.6em}la-akoma-ntoso .coverpage .notice-list{margin:0px;padding:0px}la-akoma-ntoso .coverpage .notice-list li{list-style:none}la-akoma-ntoso .coverpage .place-name,la-akoma-ntoso .coverpage .parent-work{font-size:19px;line-height:1.2;margin-bottom:0.8em;font-weight:bold}la-akoma-ntoso .coverpage .assent-date,la-akoma-ntoso .coverpage .commencement-date{margin-bottom:0.8em;font-weight:bold}la-akoma-ntoso .coverpage .commencement-date-list{margin-bottom:0.8em}la-akoma-ntoso .coverpage .commencement-date-uncommenced{margin-bottom:0.8em;font-weight:bold}la-akoma-ntoso .coverpage .commencements-table{margin:auto;max-width:80%}la-akoma-ntoso .coverpage .amendment-list{margin-top:1.6em;padding:0px}la-akoma-ntoso .coverpage .amendment{list-style:none;margin-bottom:0.8em;font-style:italic}la-akoma-ntoso .coverpage .commencement-note,la-akoma-ntoso .coverpage .verification-notice,la-akoma-ntoso .coverpage .as-at-date-notice{margin-top:0.8em;font-style:italic}la-akoma-ntoso .akn-from{float:left;margin-right:0.5em;font-weight:bold}la-akoma-ntoso h1,la-akoma-ntoso h2,la-akoma-ntoso h3,la-akoma-ntoso h4,la-akoma-ntoso h5,la-akoma-ntoso .akn-heading{margin-top:0px;margin-bottom:0.8em;font-family:Palatino, "Book Antiqua", "PT Serif", Georgia, serif;font-weight:bold}la-akoma-ntoso h1{font-size:26px;line-height:1.2}la-akoma-ntoso h2,la-akoma-ntoso .akn-heading{text-align:center;font-size:19px;line-height:1.2}la-akoma-ntoso h3{font-size:18px;line-height:1.35}la-akoma-ntoso h4{font-size:15px;line-height:1.35}la-akoma-ntoso .akn-subheading,la-akoma-ntoso .akn-crossHeading{text-align:center;font-style:italic}la-akoma-ntoso .akn-attachment>.akn-subheading{font-style:normal}la-akoma-ntoso .akn-alinea{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-article{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-book{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-chapter{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-clause{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-division{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-hcontainer{display:block;margin-bottom:0.8em}la-akoma-ntoso .akn-indent{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-level{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-list{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-paragraph{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-part{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-point{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-proviso{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-rule{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-section{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subchapter{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subclause{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subdivision{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-sublist{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subparagraph{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subpart{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subrule{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subsection{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subtitle{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-title{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-tome{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-transitional{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-address{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-adjournment{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-administrationOfOath{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-answer{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-communication{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-debateSection{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-declarationOfVote{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-ministerialStatements{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-nationalInterest{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-noticesOfMotion{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-oralStatements{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-papers{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-personalStatements{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-petitions{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-pointOfOrder{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-prayers{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-proceduralMotions{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-question{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-questions{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-resolutions{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-rollCall{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-speech{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-speechGroup{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-writtenStatements{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-crossHeading{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-alinea{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-alinea.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-alinea>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-alinea>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-alinea>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-indent{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-indent.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-indent>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-indent>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-indent>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-level{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-level.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-level>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-level>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-level>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-list{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-list.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-list>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-list>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-list>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-paragraph{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-paragraph.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-paragraph>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-paragraph>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-paragraph>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-point{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-point.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-point>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-point>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-point>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-proviso{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-proviso.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-proviso>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-proviso>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-proviso>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-rule{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-rule.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-rule>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-rule>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-rule>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-sublist{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-sublist.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-sublist>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-sublist>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-sublist>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-subparagraph{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-subparagraph.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-subparagraph>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-subparagraph>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-subparagraph>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-subrule{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-subrule.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-subrule>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-subrule>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-subrule>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-subsection{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-subsection.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-subsection>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-subsection>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-subsection>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-transitional{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-transitional.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-transitional>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-transitional>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-transitional>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-br{display:block}la-akoma-ntoso .akn-def{font-weight:bold}la-akoma-ntoso .akn-longTitle{display:block;font-weight:bold;margin-bottom:0.8em}la-akoma-ntoso .akn-remark{font-style:italic}la-akoma-ntoso img{max-width:100%}la-akoma-ntoso .akn-ins{text-decoration:underline}la-akoma-ntoso .akn-del{text-decoration:line-through}la-akoma-ntoso .akn-authorialNote{display:-ms-flexbox;display:flex;font-size:small;margin-top:0.4em;padding:0.25em 0.25em 0 0.25em;position:relative;background-color:rgba(0, 0, 0, 0.07)}la-akoma-ntoso .akn-authorialNote::before{content:" ";position:absolute;top:0;left:0;border-top:1px solid black;width:15%}la-akoma-ntoso .akn-authorialNote+.akn-authorialNote{margin-top:0px}la-akoma-ntoso .akn-authorialNote+.akn-authorialNote::before{border-top:0px}la-akoma-ntoso .akn-authorialNote>.akn-authorialNote--marker{margin-right:0.5em}la-akoma-ntoso .akn-embeddedStructure{display:block;margin-left:2em}la-akoma-ntoso .akn-embeddedStructure .akn-embeddedStructure--startQuote{margin-left:-0.5em;float:left}la-akoma-ntoso .akn--table-container{max-width:100%;overflow-y:auto;margin-bottom:1.6em}la-akoma-ntoso table{width:100%;border:1px solid #ddd;border-collapse:collapse}la-akoma-ntoso table.akn--no-border{border-width:0px}la-akoma-ntoso table.akn--no-border th,la-akoma-ntoso table.akn--no-border td{border-width:0px}la-akoma-ntoso table th,la-akoma-ntoso table td{border-top:1px solid #ddd;border-left:1px solid #ddd;padding:5px;text-align:left;vertical-align:top}la-akoma-ntoso table th{font-weight:bold}la-akoma-ntoso table th>:last-child,la-akoma-ntoso table td>:last-child{margin-bottom:0px}la-akoma-ntoso table thead th{vertical-align:bottom}la-akoma-ntoso table caption+thead tr:first-child th,la-akoma-ntoso table caption+thead tr:first-child td,la-akoma-ntoso table colgroup+thead tr:first-child th,la-akoma-ntoso table colgroup+thead tr:first-child td,la-akoma-ntoso table thead:first-child tr:first-child th,la-akoma-ntoso table thead:first-child tr:first-child td{border-top:0}la-akoma-ntoso table tbody+tbody{border-top:2px solid #ddd}la-akoma-ntoso .akn--text-left{text-align:left}la-akoma-ntoso .akn--text-center{text-align:center}la-akoma-ntoso .akn--text-right{text-align:right}la-akoma-ntoso[frbr-country^=ke]{}la-akoma-ntoso[frbr-country^=ke] .akn-remark,la-akoma-ntoso[frbr-country^=ke] .akn-crossHeading{font-style:normal}la-akoma-ntoso[frbr-country^=ke] .coverpage .amendment,la-akoma-ntoso[frbr-country^=ke] .coverpage .verification-notice,la-akoma-ntoso[frbr-country^=ke] .coverpage .as-at-date-notice{font-style:normal}la-akoma-ntoso[frbr-country^=ke] .akn-listIntroduction>.akn-remark:only-child,la-akoma-ntoso[frbr-country^=ke] .akn-p>.akn-remark:only-child{display:block;margin-top:0.8em;text-align:center}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-division .akn-heading,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-paragraph .akn-heading{text-align:start;font-size:15px;line-height:1.35}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-heading,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-subheading{margin-bottom:0.8em}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-judgmentBody .akn-p,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-attachments .akn-p{text-align:justify}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-remark,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-ref,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-term{font-style:italic}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] em{font-style:normal;text-decoration:underline}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-header{padding-top:1.6em;padding-bottom:3.2em}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header{width:80%;margin-left:auto;margin-right:auto;margin-bottom:1.6em;font-weight:bold;text-align:center}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .doc-title,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .neutral-citation{margin-bottom:0.8em}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .doc-date,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .judges,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .docket-number,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .extra-text,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .doc-authority{margin-bottom:0.8em;text-transform:uppercase}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .legacy-citation{margin-bottom:0.8em;font-weight:normal;font-style:italic}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .republic-head,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .parties-separator{margin-top:1.6em;margin-bottom:0.8em;text-transform:uppercase}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .party-listing{margin-bottom:0.8em;text-transform:uppercase;display:-ms-flexbox;display:flex;-ms-flex-line-pack:end;align-content:flex-end}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .party-listing .party-name{text-align:left;max-width:60%}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .party-listing .dotted{-ms-flex-positive:1;flex-grow:1;border-bottom:dotted 1px;margin:6px}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .header-note{margin-top:1.6em;margin-bottom:0.8em;font-style:italic}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary{text-align:justify}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary .summary-title,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary .author{margin-bottom:0.8em}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary .catchwords,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary .outcome{font-style:italic}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary .akn-h4{font-weight:bold;font-style:normal}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .introduction .decision-action{text-align:center;margin-top:2.4em;text-transform:uppercase;font-weight:bold}la-akoma-ntoso[frbr-country^=na] .coverpage .amendment-list,la-akoma-ntoso[frbr-country^=na] .coverpage .commencement-date,la-akoma-ntoso[frbr-country^=na] .coverpage .verification-notice,la-akoma-ntoso[frbr-country^=na] .coverpage .as-at-date-notice,la-akoma-ntoso[frbr-country^=na] .coverpage .assent-date{font-style:normal;font-weight:bold;color:#00b156}la-akoma-ntoso[frbr-country^=na] .coverpage .as-at-date-notice,la-akoma-ntoso[frbr-country^=na] .coverpage .amendment,la-akoma-ntoso[frbr-country^=na] .coverpage .commencement-note,la-akoma-ntoso[frbr-country^=na] .coverpage .verification-notice{font-style:normal}la-akoma-ntoso[frbr-country^=na] .akn-remark{font-style:normal;font-weight:bold;color:#00b156}la-akoma-ntoso[frbr-country^=na] .akn-p>.akn-remark:only-child,la-akoma-ntoso[frbr-country^=na] .akn-listIntroduction>.akn-remark:only-child{display:block;margin-top:0.8em;text-align:center}la-akoma-ntoso[frbr-country^=pl]{}la-akoma-ntoso[frbr-country^=pl] .coverpage .doctype{text-transform:uppercase}la-akoma-ntoso[frbr-country^=pl] .akn-intro,la-akoma-ntoso[frbr-country^=pl] .akn-list,la-akoma-ntoso[frbr-country^=pl] .akn-paragraph,la-akoma-ntoso[frbr-country^=pl] .akn-point{margin-bottom:0.8em}la-akoma-ntoso[frbr-country^=pl] .akn-alinea,la-akoma-ntoso[frbr-country^=pl] .akn-indent,la-akoma-ntoso[frbr-country^=pl] .akn-paragraph,la-akoma-ntoso[frbr-country^=pl] .akn-point{margin-left:3em}la-akoma-ntoso[frbr-country^=pl] .akn-alinea>.akn-num,la-akoma-ntoso[frbr-country^=pl] .akn-alinea>.akn-indent-num,la-akoma-ntoso[frbr-country^=pl] .akn-indent>.akn-num,la-akoma-ntoso[frbr-country^=pl] .akn-indent>.akn-indent-num,la-akoma-ntoso[frbr-country^=pl] .akn-paragraph>.akn-num,la-akoma-ntoso[frbr-country^=pl] .akn-paragraph>.akn-indent-num,la-akoma-ntoso[frbr-country^=pl] .akn-point>.akn-num,la-akoma-ntoso[frbr-country^=pl] .akn-point>.akn-indent-num{display:block;float:left;margin-left:-3em}la-akoma-ntoso.show-structure .akn-alinea,la-akoma-ntoso.show-structure-hier .akn-alinea{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9a9a}la-akoma-ntoso.show-structure .akn-alinea::before,la-akoma-ntoso.show-structure-hier .akn-alinea::before{content:"alinea";position:absolute;top:0px;left:0px;color:white;background-color:#ef9a9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-article,la-akoma-ntoso.show-structure-hier .akn-article{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efa89a}la-akoma-ntoso.show-structure .akn-article::before,la-akoma-ntoso.show-structure-hier .akn-article::before{content:"article";position:absolute;top:0px;left:0px;color:white;background-color:#efa89a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-book,la-akoma-ntoso.show-structure-hier .akn-book{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efb69a}la-akoma-ntoso.show-structure .akn-book::before,la-akoma-ntoso.show-structure-hier .akn-book::before{content:"book";position:absolute;top:0px;left:0px;color:black;background-color:#efb69a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-chapter,la-akoma-ntoso.show-structure-hier .akn-chapter{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efc59a}la-akoma-ntoso.show-structure .akn-chapter::before,la-akoma-ntoso.show-structure-hier .akn-chapter::before{content:"chapter";position:absolute;top:0px;left:0px;color:black;background-color:#efc59a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-clause,la-akoma-ntoso.show-structure-hier .akn-clause{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efd39a}la-akoma-ntoso.show-structure .akn-clause::before,la-akoma-ntoso.show-structure-hier .akn-clause::before{content:"clause";position:absolute;top:0px;left:0px;color:black;background-color:#efd39a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-division,la-akoma-ntoso.show-structure-hier .akn-division{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efe19a}la-akoma-ntoso.show-structure .akn-division::before,la-akoma-ntoso.show-structure-hier .akn-division::before{content:"division";position:absolute;top:0px;left:0px;color:black;background-color:#efe19a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-hcontainer,la-akoma-ntoso.show-structure-hier .akn-hcontainer{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efef9a}la-akoma-ntoso.show-structure .akn-hcontainer::before,la-akoma-ntoso.show-structure-hier .akn-hcontainer::before{content:"hcontainer";position:absolute;top:0px;left:0px;color:black;background-color:#efef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-indent,la-akoma-ntoso.show-structure-hier .akn-indent{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #e1ef9a}la-akoma-ntoso.show-structure .akn-indent::before,la-akoma-ntoso.show-structure-hier .akn-indent::before{content:"indent";position:absolute;top:0px;left:0px;color:black;background-color:#e1ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-level,la-akoma-ntoso.show-structure-hier .akn-level{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #d3ef9a}la-akoma-ntoso.show-structure .akn-level::before,la-akoma-ntoso.show-structure-hier .akn-level::before{content:"level";position:absolute;top:0px;left:0px;color:black;background-color:#d3ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-list,la-akoma-ntoso.show-structure-hier .akn-list{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #c5ef9a}la-akoma-ntoso.show-structure .akn-list::before,la-akoma-ntoso.show-structure-hier .akn-list::before{content:"list";position:absolute;top:0px;left:0px;color:black;background-color:#c5ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-paragraph,la-akoma-ntoso.show-structure-hier .akn-paragraph{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #b6ef9a}la-akoma-ntoso.show-structure .akn-paragraph::before,la-akoma-ntoso.show-structure-hier .akn-paragraph::before{content:"para";position:absolute;top:0px;left:0px;color:black;background-color:#b6ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-part,la-akoma-ntoso.show-structure-hier .akn-part{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #a8ef9a}la-akoma-ntoso.show-structure .akn-part::before,la-akoma-ntoso.show-structure-hier .akn-part::before{content:"part";position:absolute;top:0px;left:0px;color:black;background-color:#a8ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-point,la-akoma-ntoso.show-structure-hier .akn-point{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aef9a}la-akoma-ntoso.show-structure .akn-point::before,la-akoma-ntoso.show-structure-hier .akn-point::before{content:"point";position:absolute;top:0px;left:0px;color:black;background-color:#9aef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-proviso,la-akoma-ntoso.show-structure-hier .akn-proviso{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefa8}la-akoma-ntoso.show-structure .akn-proviso::before,la-akoma-ntoso.show-structure-hier .akn-proviso::before{content:"proviso";position:absolute;top:0px;left:0px;color:black;background-color:#9aefa8;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-rule,la-akoma-ntoso.show-structure-hier .akn-rule{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefb6}la-akoma-ntoso.show-structure .akn-rule::before,la-akoma-ntoso.show-structure-hier .akn-rule::before{content:"rule";position:absolute;top:0px;left:0px;color:black;background-color:#9aefb6;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-section,la-akoma-ntoso.show-structure-hier .akn-section{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefc5}la-akoma-ntoso.show-structure .akn-section::before,la-akoma-ntoso.show-structure-hier .akn-section::before{content:"section";position:absolute;top:0px;left:0px;color:black;background-color:#9aefc5;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subchapter,la-akoma-ntoso.show-structure-hier .akn-subchapter{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefd3}la-akoma-ntoso.show-structure .akn-subchapter::before,la-akoma-ntoso.show-structure-hier .akn-subchapter::before{content:"subchapter";position:absolute;top:0px;left:0px;color:black;background-color:#9aefd3;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subclause,la-akoma-ntoso.show-structure-hier .akn-subclause{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefe1}la-akoma-ntoso.show-structure .akn-subclause::before,la-akoma-ntoso.show-structure-hier .akn-subclause::before{content:"subclause";position:absolute;top:0px;left:0px;color:black;background-color:#9aefe1;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subdivision,la-akoma-ntoso.show-structure-hier .akn-subdivision{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefef}la-akoma-ntoso.show-structure .akn-subdivision::before,la-akoma-ntoso.show-structure-hier .akn-subdivision::before{content:"subdivision";position:absolute;top:0px;left:0px;color:black;background-color:#9aefef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-sublist,la-akoma-ntoso.show-structure-hier .akn-sublist{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9ae1ef}la-akoma-ntoso.show-structure .akn-sublist::before,la-akoma-ntoso.show-structure-hier .akn-sublist::before{content:"sublist";position:absolute;top:0px;left:0px;color:black;background-color:#9ae1ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subparagraph,la-akoma-ntoso.show-structure-hier .akn-subparagraph{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9ad3ef}la-akoma-ntoso.show-structure .akn-subparagraph::before,la-akoma-ntoso.show-structure-hier .akn-subparagraph::before{content:"subpara";position:absolute;top:0px;left:0px;color:black;background-color:#9ad3ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subpart,la-akoma-ntoso.show-structure-hier .akn-subpart{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9ac5ef}la-akoma-ntoso.show-structure .akn-subpart::before,la-akoma-ntoso.show-structure-hier .akn-subpart::before{content:"subpart";position:absolute;top:0px;left:0px;color:white;background-color:#9ac5ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subrule,la-akoma-ntoso.show-structure-hier .akn-subrule{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9ab6ef}la-akoma-ntoso.show-structure .akn-subrule::before,la-akoma-ntoso.show-structure-hier .akn-subrule::before{content:"subrule";position:absolute;top:0px;left:0px;color:white;background-color:#9ab6ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subsection,la-akoma-ntoso.show-structure-hier .akn-subsection{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aa8ef}la-akoma-ntoso.show-structure .akn-subsection::before,la-akoma-ntoso.show-structure-hier .akn-subsection::before{content:"subsection";position:absolute;top:0px;left:0px;color:white;background-color:#9aa8ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subtitle,la-akoma-ntoso.show-structure-hier .akn-subtitle{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9a9aef}la-akoma-ntoso.show-structure .akn-subtitle::before,la-akoma-ntoso.show-structure-hier .akn-subtitle::before{content:"subtitle";position:absolute;top:0px;left:0px;color:white;background-color:#9a9aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-title,la-akoma-ntoso.show-structure-hier .akn-title{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #a89aef}la-akoma-ntoso.show-structure .akn-title::before,la-akoma-ntoso.show-structure-hier .akn-title::before{content:"title";position:absolute;top:0px;left:0px;color:white;background-color:#a89aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-tome,la-akoma-ntoso.show-structure-hier .akn-tome{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #b69aef}la-akoma-ntoso.show-structure .akn-tome::before,la-akoma-ntoso.show-structure-hier .akn-tome::before{content:"tome";position:absolute;top:0px;left:0px;color:white;background-color:#b69aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-transitional,la-akoma-ntoso.show-structure-hier .akn-transitional{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #c59aef}la-akoma-ntoso.show-structure .akn-transitional::before,la-akoma-ntoso.show-structure-hier .akn-transitional::before{content:"transitional";position:absolute;top:0px;left:0px;color:white;background-color:#c59aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-address,la-akoma-ntoso.show-structure-hier .akn-address{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #d39aef}la-akoma-ntoso.show-structure .akn-address::before,la-akoma-ntoso.show-structure-hier .akn-address::before{content:"address";position:absolute;top:0px;left:0px;color:white;background-color:#d39aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-adjournment,la-akoma-ntoso.show-structure-hier .akn-adjournment{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #e19aef}la-akoma-ntoso.show-structure .akn-adjournment::before,la-akoma-ntoso.show-structure-hier .akn-adjournment::before{content:"adjournment";position:absolute;top:0px;left:0px;color:white;background-color:#e19aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-administrationOfOath,la-akoma-ntoso.show-structure-hier .akn-administrationOfOath{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9aef}la-akoma-ntoso.show-structure .akn-administrationOfOath::before,la-akoma-ntoso.show-structure-hier .akn-administrationOfOath::before{content:"administrationOfOath";position:absolute;top:0px;left:0px;color:white;background-color:#ef9aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-answer,la-akoma-ntoso.show-structure-hier .akn-answer{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9ae1}la-akoma-ntoso.show-structure .akn-answer::before,la-akoma-ntoso.show-structure-hier .akn-answer::before{content:"answer";position:absolute;top:0px;left:0px;color:white;background-color:#ef9ae1;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-communication,la-akoma-ntoso.show-structure-hier .akn-communication{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9ad3}la-akoma-ntoso.show-structure .akn-communication::before,la-akoma-ntoso.show-structure-hier .akn-communication::before{content:"communication";position:absolute;top:0px;left:0px;color:white;background-color:#ef9ad3;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-debateSection,la-akoma-ntoso.show-structure-hier .akn-debateSection{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9ac5}la-akoma-ntoso.show-structure .akn-debateSection::before,la-akoma-ntoso.show-structure-hier .akn-debateSection::before{content:"debateSection";position:absolute;top:0px;left:0px;color:white;background-color:#ef9ac5;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-declarationOfVote,la-akoma-ntoso.show-structure-hier .akn-declarationOfVote{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9ab6}la-akoma-ntoso.show-structure .akn-declarationOfVote::before,la-akoma-ntoso.show-structure-hier .akn-declarationOfVote::before{content:"declarationOfVote";position:absolute;top:0px;left:0px;color:white;background-color:#ef9ab6;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-ministerialStatements,la-akoma-ntoso.show-structure-hier .akn-ministerialStatements{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9aa8}la-akoma-ntoso.show-structure .akn-ministerialStatements::before,la-akoma-ntoso.show-structure-hier .akn-ministerialStatements::before{content:"ministerialStatements";position:absolute;top:0px;left:0px;color:white;background-color:#ef9aa8;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-nationalInterest,la-akoma-ntoso.show-structure-hier .akn-nationalInterest{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9a9a}la-akoma-ntoso.show-structure .akn-nationalInterest::before,la-akoma-ntoso.show-structure-hier .akn-nationalInterest::before{content:"nationalInterest";position:absolute;top:0px;left:0px;color:white;background-color:#ef9a9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-noticesOfMotion,la-akoma-ntoso.show-structure-hier .akn-noticesOfMotion{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efa89a}la-akoma-ntoso.show-structure .akn-noticesOfMotion::before,la-akoma-ntoso.show-structure-hier .akn-noticesOfMotion::before{content:"noticesOfMotion";position:absolute;top:0px;left:0px;color:white;background-color:#efa89a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-oralStatements,la-akoma-ntoso.show-structure-hier .akn-oralStatements{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efb69a}la-akoma-ntoso.show-structure .akn-oralStatements::before,la-akoma-ntoso.show-structure-hier .akn-oralStatements::before{content:"oralStatements";position:absolute;top:0px;left:0px;color:black;background-color:#efb69a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-papers,la-akoma-ntoso.show-structure-hier .akn-papers{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efc59a}la-akoma-ntoso.show-structure .akn-papers::before,la-akoma-ntoso.show-structure-hier .akn-papers::before{content:"papers";position:absolute;top:0px;left:0px;color:black;background-color:#efc59a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-personalStatements,la-akoma-ntoso.show-structure-hier .akn-personalStatements{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efd39a}la-akoma-ntoso.show-structure .akn-personalStatements::before,la-akoma-ntoso.show-structure-hier .akn-personalStatements::before{content:"personalStatements";position:absolute;top:0px;left:0px;color:black;background-color:#efd39a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-petitions,la-akoma-ntoso.show-structure-hier .akn-petitions{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efe19a}la-akoma-ntoso.show-structure .akn-petitions::before,la-akoma-ntoso.show-structure-hier .akn-petitions::before{content:"petitions";position:absolute;top:0px;left:0px;color:black;background-color:#efe19a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-pointOfOrder,la-akoma-ntoso.show-structure-hier .akn-pointOfOrder{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efef9a}la-akoma-ntoso.show-structure .akn-pointOfOrder::before,la-akoma-ntoso.show-structure-hier .akn-pointOfOrder::before{content:"pointOfOrder";position:absolute;top:0px;left:0px;color:black;background-color:#efef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-prayers,la-akoma-ntoso.show-structure-hier .akn-prayers{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #e1ef9a}la-akoma-ntoso.show-structure .akn-prayers::before,la-akoma-ntoso.show-structure-hier .akn-prayers::before{content:"prayers";position:absolute;top:0px;left:0px;color:black;background-color:#e1ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-proceduralMotions,la-akoma-ntoso.show-structure-hier .akn-proceduralMotions{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #d3ef9a}la-akoma-ntoso.show-structure .akn-proceduralMotions::before,la-akoma-ntoso.show-structure-hier .akn-proceduralMotions::before{content:"proceduralMotions";position:absolute;top:0px;left:0px;color:black;background-color:#d3ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-question,la-akoma-ntoso.show-structure-hier .akn-question{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #c5ef9a}la-akoma-ntoso.show-structure .akn-question::before,la-akoma-ntoso.show-structure-hier .akn-question::before{content:"question";position:absolute;top:0px;left:0px;color:black;background-color:#c5ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-questions,la-akoma-ntoso.show-structure-hier .akn-questions{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #b6ef9a}la-akoma-ntoso.show-structure .akn-questions::before,la-akoma-ntoso.show-structure-hier .akn-questions::before{content:"questions";position:absolute;top:0px;left:0px;color:black;background-color:#b6ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-resolutions,la-akoma-ntoso.show-structure-hier .akn-resolutions{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #a8ef9a}la-akoma-ntoso.show-structure .akn-resolutions::before,la-akoma-ntoso.show-structure-hier .akn-resolutions::before{content:"resolutions";position:absolute;top:0px;left:0px;color:black;background-color:#a8ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-rollCall,la-akoma-ntoso.show-structure-hier .akn-rollCall{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aef9a}la-akoma-ntoso.show-structure .akn-rollCall::before,la-akoma-ntoso.show-structure-hier .akn-rollCall::before{content:"rollCall";position:absolute;top:0px;left:0px;color:black;background-color:#9aef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-speech,la-akoma-ntoso.show-structure-hier .akn-speech{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefa8}la-akoma-ntoso.show-structure .akn-speech::before,la-akoma-ntoso.show-structure-hier .akn-speech::before{content:"speech";position:absolute;top:0px;left:0px;color:black;background-color:#9aefa8;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-speechGroup,la-akoma-ntoso.show-structure-hier .akn-speechGroup{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefb6}la-akoma-ntoso.show-structure .akn-speechGroup::before,la-akoma-ntoso.show-structure-hier .akn-speechGroup::before{content:"speechGroup";position:absolute;top:0px;left:0px;color:black;background-color:#9aefb6;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-writtenStatements,la-akoma-ntoso.show-structure-hier .akn-writtenStatements{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefc5}la-akoma-ntoso.show-structure .akn-writtenStatements::before,la-akoma-ntoso.show-structure-hier .akn-writtenStatements::before{content:"writtenStatements";position:absolute;top:0px;left:0px;color:black;background-color:#9aefc5;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-crossHeading,la-akoma-ntoso.show-structure-hier .akn-crossHeading{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefd3}la-akoma-ntoso.show-structure .akn-crossHeading::before,la-akoma-ntoso.show-structure-hier .akn-crossHeading::before{content:"crossHeading";position:absolute;top:0px;left:0px;color:black;background-color:#9aefd3;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-hcontainer:not([data-name=hcontainer])::before,la-akoma-ntoso.show-structure-hier .akn-hcontainer:not([data-name=hcontainer])::before{content:"HCONTAINER - " attr(data-name) !important}la-akoma-ntoso.show-structure .akn-subsection:not(.akn--no-indent),la-akoma-ntoso.show-structure .akn-paragraph:not(.akn--no-indent),la-akoma-ntoso.show-structure .akn-subparagraph:not(.akn--no-indent),la-akoma-ntoso.show-structure .akn-blockList>.akn-item:not(.akn--no-indent),la-akoma-ntoso.show-structure-hier .akn-subsection:not(.akn--no-indent),la-akoma-ntoso.show-structure-hier .akn-paragraph:not(.akn--no-indent),la-akoma-ntoso.show-structure-hier .akn-subparagraph:not(.akn--no-indent),la-akoma-ntoso.show-structure-hier .akn-blockList>.akn-item:not(.akn--no-indent){padding-left:calc(3em + 3px)}la-akoma-ntoso.show-structure .akn-blockContainer,la-akoma-ntoso.show-structure-block .akn-blockContainer{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efe89a}la-akoma-ntoso.show-structure .akn-blockContainer::before,la-akoma-ntoso.show-structure-block .akn-blockContainer::before{position:absolute;top:0px;left:0px;color:black;background-color:#efe89a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-block,la-akoma-ntoso.show-structure-block .akn-block{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #e8ef9a}la-akoma-ntoso.show-structure .akn-block::before,la-akoma-ntoso.show-structure-block .akn-block::before{position:absolute;top:0px;left:0px;color:black;background-color:#e8ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-blockList,la-akoma-ntoso.show-structure-block .akn-blockList{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #daef9a}la-akoma-ntoso.show-structure .akn-blockList::before,la-akoma-ntoso.show-structure-block .akn-blockList::before{content:"items";position:absolute;top:0px;left:0px;color:black;background-color:#daef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-conclusions,la-akoma-ntoso.show-structure-block .akn-conclusions{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ccef9a}la-akoma-ntoso.show-structure .akn-conclusions::before,la-akoma-ntoso.show-structure-block .akn-conclusions::before{position:absolute;top:0px;left:0px;color:black;background-color:#ccef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-coverPage,la-akoma-ntoso.show-structure-block .akn-coverPage{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #bdef9a}la-akoma-ntoso.show-structure .akn-coverPage::before,la-akoma-ntoso.show-structure-block .akn-coverPage::before{position:absolute;top:0px;left:0px;color:black;background-color:#bdef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-foreign,la-akoma-ntoso.show-structure-block .akn-foreign{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #afef9a}la-akoma-ntoso.show-structure .akn-foreign::before,la-akoma-ntoso.show-structure-block .akn-foreign::before{position:absolute;top:0px;left:0px;color:black;background-color:#afef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-intro,la-akoma-ntoso.show-structure-block .akn-intro{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #a1ef9a}la-akoma-ntoso.show-structure .akn-intro::before,la-akoma-ntoso.show-structure-block .akn-intro::before{content:"intro";position:absolute;top:0px;left:0px;color:black;background-color:#a1ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-item,la-akoma-ntoso.show-structure-block .akn-item{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefa1}la-akoma-ntoso.show-structure .akn-item::before,la-akoma-ntoso.show-structure-block .akn-item::before{content:"item";position:absolute;top:0px;left:0px;color:black;background-color:#9aefa1;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-listIntroduction,la-akoma-ntoso.show-structure-block .akn-listIntroduction{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefaf}la-akoma-ntoso.show-structure .akn-listIntroduction::before,la-akoma-ntoso.show-structure-block .akn-listIntroduction::before{content:"listIntro";position:absolute;top:0px;left:0px;color:black;background-color:#9aefaf;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-listWrapUp,la-akoma-ntoso.show-structure-block .akn-listWrapUp{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefbd}la-akoma-ntoso.show-structure .akn-listWrapUp::before,la-akoma-ntoso.show-structure-block .akn-listWrapUp::before{content:"listWrapUp";position:absolute;top:0px;left:0px;color:black;background-color:#9aefbd;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-ol,la-akoma-ntoso.show-structure-block .akn-ol{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefcc}la-akoma-ntoso.show-structure .akn-ol::before,la-akoma-ntoso.show-structure-block .akn-ol::before{position:absolute;top:0px;left:0px;color:black;background-color:#9aefcc;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-preamble,la-akoma-ntoso.show-structure-block .akn-preamble{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefe8}la-akoma-ntoso.show-structure .akn-preamble::before,la-akoma-ntoso.show-structure-block .akn-preamble::before{content:"preamble";position:absolute;top:0px;left:0px;color:black;background-color:#9aefe8;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-preface,la-akoma-ntoso.show-structure-block .akn-preface{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9ae8ef}la-akoma-ntoso.show-structure .akn-preface::before,la-akoma-ntoso.show-structure-block .akn-preface::before{content:"preface";position:absolute;top:0px;left:0px;color:black;background-color:#9ae8ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-tblock,la-akoma-ntoso.show-structure-block .akn-tblock{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9adaef}la-akoma-ntoso.show-structure .akn-tblock::before,la-akoma-ntoso.show-structure-block .akn-tblock::before{position:absolute;top:0px;left:0px;color:black;background-color:#9adaef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-toc,la-akoma-ntoso.show-structure-block .akn-toc{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9accef}la-akoma-ntoso.show-structure .akn-toc::before,la-akoma-ntoso.show-structure-block .akn-toc::before{position:absolute;top:0px;left:0px;color:black;background-color:#9accef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-ul,la-akoma-ntoso.show-structure-block .akn-ul{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9abdef}la-akoma-ntoso.show-structure .akn-ul::before,la-akoma-ntoso.show-structure-block .akn-ul::before{content:"bullets";position:absolute;top:0px;left:0px;color:white;background-color:#9abdef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-wrapUp,la-akoma-ntoso.show-structure-block .akn-wrapUp{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aafef}la-akoma-ntoso.show-structure .akn-wrapUp::before,la-akoma-ntoso.show-structure-block .akn-wrapUp::before{content:"wrapUp";position:absolute;top:0px;left:0px;color:white;background-color:#9aafef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-from,la-akoma-ntoso.show-structure-block .akn-from{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aa1ef}la-akoma-ntoso.show-structure .akn-from::before,la-akoma-ntoso.show-structure-block .akn-from::before{content:"from";position:absolute;top:0px;left:0px;color:white;background-color:#9aa1ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-narrative,la-akoma-ntoso.show-structure-block .akn-narrative{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #a19aef}la-akoma-ntoso.show-structure .akn-narrative::before,la-akoma-ntoso.show-structure-block .akn-narrative::before{content:"narrative";position:absolute;top:0px;left:0px;color:white;background-color:#a19aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-scene,la-akoma-ntoso.show-structure-block .akn-scene{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #af9aef}la-akoma-ntoso.show-structure .akn-scene::before,la-akoma-ntoso.show-structure-block .akn-scene::before{content:"scene";position:absolute;top:0px;left:0px;color:white;background-color:#af9aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-summary,la-akoma-ntoso.show-structure-block .akn-summary{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #bd9aef}la-akoma-ntoso.show-structure .akn-summary::before,la-akoma-ntoso.show-structure-block .akn-summary::before{content:"summary";position:absolute;top:0px;left:0px;color:white;background-color:#bd9aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn--table-container,la-akoma-ntoso.show-structure-block .akn--table-container{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efe89a}la-akoma-ntoso.show-structure .akn--table-container::before,la-akoma-ntoso.show-structure-block .akn--table-container::before{content:"table";position:absolute;top:0px;left:0px;color:black;background-color:#efe89a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-abbr,la-akoma-ntoso.show-structure-inline .akn-abbr{background-color:rgba(175, 239, 154, 0.4);position:relative}la-akoma-ntoso.show-structure .akn-abbr:hover::before,la-akoma-ntoso.show-structure-inline .akn-abbr:hover::before{content:"abbr";color:black;background-color:#afef9a;position:absolute;top:-1.4em;left:0px;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase;white-space:nowrap}la-akoma-ntoso.show-structure .akn-remark,la-akoma-ntoso.show-structure-inline .akn-remark{background-color:rgba(161, 239, 154, 0.4);position:relative}la-akoma-ntoso.show-structure .akn-remark:hover::before,la-akoma-ntoso.show-structure-inline .akn-remark:hover::before{content:"remark";color:black;background-color:#a1ef9a;position:absolute;top:-1.4em;left:0px;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase;white-space:nowrap}la-akoma-ntoso.show-structure .akn-abbr:hover::before,la-akoma-ntoso.show-structure-inline .akn-abbr:hover::before{content:"ABBR - " attr(title);text-transform:none}la-akoma-ntoso.show-structure .akn-authorialNote,la-akoma-ntoso.show-structure-subflow .akn-authorialNote{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efbd9a}la-akoma-ntoso.show-structure .akn-authorialNote::before,la-akoma-ntoso.show-structure-subflow .akn-authorialNote::before{content:"footnote";position:absolute;top:0px;left:0px;color:black;background-color:#efbd9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-embeddedStructure,la-akoma-ntoso.show-structure-subflow .akn-embeddedStructure{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ccef9a}la-akoma-ntoso.show-structure .akn-embeddedStructure::before,la-akoma-ntoso.show-structure-subflow .akn-embeddedStructure::before{content:"quote";position:absolute;top:0px;left:0px;color:black;background-color:#ccef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-attachment,la-akoma-ntoso.show-structure-doc-container .akn-attachment{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efcc9a}la-akoma-ntoso.show-structure .akn-attachment::before,la-akoma-ntoso.show-structure-doc-container .akn-attachment::before{content:"attachment";position:absolute;top:0px;left:0px;color:black;background-color:#efcc9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-component,la-akoma-ntoso.show-structure-doc-container .akn-component{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #bdef9a}la-akoma-ntoso.show-structure .akn-component::before,la-akoma-ntoso.show-structure-doc-container .akn-component::before{content:"component";position:absolute;top:0px;left:0px;color:black;background-color:#bdef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}'}},[0,"la-akoma-ntoso",{frbrExpressionUri:[1537,"frbr-expression-uri"],frbrCountry:[1537,"frbr-country"],frbrType:[1537,"frbr-type"],frbrSubtype:[1537,"frbr-subtype"],frbrAuthor:[1537,"frbr-author"],frbrDate:[1537,"frbr-date"],frbrNumber:[1537,"frbr-number"],frbrExpressionDate:[1537,"frbr-expression-date"],frbrLanguage:[1537,"frbr-language"],fetch:[1540],partner:[1537],provider:[1]},void 0,{provider:["refetch"],fetch:["refetch"],frbrExpressionUri:["parseFrbrExpressionUri"]}]);"undefined"!=typeof customElements&&["la-akoma-ntoso"].forEach((e=>{"la-akoma-ntoso"===e&&(customElements.get(e)||customElements.define(e,Ud))}));var qd="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{},Bd=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},zd="object"==typeof qd&&qd&&qd.Object===Object&&qd,Vd="object"==typeof self&&self&&self.Object===Object&&self,Hd=zd||Vd||Function("return this")(),Wd=Hd,Gd=/\s/,Yd=/^\s+/,Jd=Hd.Symbol,Zd=Jd,Xd=Object.prototype,Kd=Xd.hasOwnProperty,Qd=Xd.toString,ep=Zd?Zd.toStringTag:void 0,tp=Object.prototype.toString,np=function(e){var t=Kd.call(e,ep),n=e[ep];try{e[ep]=void 0;var o=!0}catch(e){}var r=Qd.call(e);return o&&(t?e[ep]=n:delete e[ep]),r},op=Jd?Jd.toStringTag:void 0,rp=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":op&&op in Object(e)?np(e):function(e){return tp.call(e)}(e)},ap=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&Gd.test(e.charAt(t)););return t}(e)+1).replace(Yd,""):e},ip=Bd,sp=/^[-+]0x[0-9a-f]+$/i,lp=/^0b[01]+$/i,cp=/^0o[0-7]+$/i,up=parseInt,dp=Bd,pp=function(){return Wd.Date.now()},hp=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==rp(e)}(e))return NaN;if(ip(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ip(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ap(e);var n=lp.test(e);return n||cp.test(e)?up(e.slice(2),n?2:8):sp.test(e)?NaN:+e},fp=Math.max,mp=Math.min,gp=function(e,t,n){var o,r,a,i,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=o,a=r;return o=r=void 0,c=t,i=e.apply(a,n)}function f(e){return c=e,s=setTimeout(g,t),u?h(e):i}function m(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=a}function g(){var e=pp();if(m(e))return b(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?mp(n,a-(e-c)):n}(e))}function b(e){return s=void 0,p&&o?h(e):(o=r=void 0,i)}function v(){var e=pp(),n=m(e);if(o=arguments,r=this,l=e,n){if(void 0===s)return f(l);if(d)return clearTimeout(s),s=setTimeout(g,t),h(l)}return void 0===s&&(s=setTimeout(g,t)),i}return t=hp(t)||0,dp(n)&&(u=!!n.leading,a=(d="maxWait"in n)?fp(hp(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,o=l=r=s=void 0},v.flush=function(){return void 0===s?i:b(pp())},v};class bp{constructor(e,t,n){this.component=e,this.selector=t,this.callback=n,this.target=this.findElement(),this.target&&window.MutationObserver?(this.observer=new MutationObserver((()=>{this.targetDomChanged()})),this.observer.observe(this.target,{childList:!0})):this.observer=null}getElement(){return this.target}findElement(){if(this.selector)try{return this.selector instanceof HTMLElement?this.selector:this.component.ownerDocument.querySelector(this.selector)}catch(e){return console.log(e),null}let e=this.component.closest("la-akoma-ntoso");return e||(e=this.component.ownerDocument.querySelector("la-akoma-ntoso")),e}targetDomChanged(){this.callback&&this.callback()}}class vp{constructor(e){this.root=e,this.buffer=10,this.tops=new WeakMap,this.anchors=new WeakMap}layout(e){this.updateAnchorsAndItems(e),this.updateTops(e);const t=(e=this.sortItems(e)).find((e=>e.active));if(t){const n=e.indexOf(t);if(n>-1){const o=this.anchors.get(t);if(o){const r=this.tops.get(o);if(r)return t.style.top=`${r}px`,this.layoutUpwards(e,n-1,r-this.buffer),void this.layoutDownwards(e,n+1,r+t.clientHeight+this.buffer)}}}this.layoutDownwards(e,0,0)}sortItems(e){return[...e].sort(this.compareItems.bind(this))}compareItems(e,t){const n=this.anchors.get(e),o=this.anchors.get(t);if(n){if(o){const e=this.tops.get(n),t=this.tops.get(o);return e?t?e-t:1:-1}return 1}return-1}layoutUpwards(e,t,n){for(let o=t;o>=0;o--){const t=e[o],r=this.anchors.get(t);if(r){let e=this.tops.get(r);e&&(e+t.clientHeight>=n&&(e=n-t.clientHeight),t.style.top=`${e}px`,n=e-this.buffer)}}}layoutDownwards(e,t,n){for(let o=t;o{e.active=!1}))}setOtherItemsInactive(e){Array.from(this.items()).forEach((t=>{t!=e&&(t.active=!1)}))}setupLayout(){this.akomaNtosoElement&&(this.layout=new vp(this.akomaNtosoElement),window.ResizeObserver&&(this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=new ResizeObserver(this.queueLayout),this.resizeObserver.observe(this.akomaNtosoElement)))}async layoutItems(){this.layout&&(this.layout.layout([...this.items()]),this.layoutComplete.emit())}async activateNextItem(){const e=this.layout?this.layout.sortItems(this.getVisibleItems()):[];if(1===e.length)return e[0].active=!0,e[0];if(e.length>1){const t=e.findIndex((e=>e.active)),n=-1===t||t===e.length-1?e[0]:e[t+1];return n.active=!0,n}return null}async activatePrevItem(){const e=this.layout?this.layout.sortItems(this.getVisibleItems()):[];if(1===e.length)return e[0].active=!0,e[0];if(e.length>1){const t=e.findIndex((e=>e.active)),n=-1===t||0===t?e[e.length-1]:e[t-1];return n.active=!0,n}return null}items(){return this.el.querySelectorAll("la-gutter-item")}getVisibleItems(){return[...this.items()].filter((e=>"none"!==e.style.display))}get el(){return this}static get style(){return".la-akoma-ntoso-with-gutter{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.la-akoma-ntoso-with-gutter>la-akoma-ntoso{-ms-flex:80%;flex:80%;max-width:80%;position:relative;padding-right:0.5rem}.la-akoma-ntoso-with-gutter>la-gutter{-ms-flex:20%;flex:20%;max-width:20%;position:relative;overflow-y:hidden;background-color:rgba(0, 0, 0, 0.05);padding-left:0.5rem;padding-right:0.5rem}la-gutter>la-gutter-item{position:absolute;left:1rem;width:calc(100% - 1.5rem);-webkit-transition:top ease-out 100ms, left ease-out 100ms;transition:top ease-out 100ms, left ease-out 100ms;z-index:2}la-gutter>la-gutter-item[active]{left:0.5rem;z-index:3}"}},[0,"la-gutter",{akomaNtoso:[1,"akoma-ntoso"],layoutItems:[64],activateNextItem:[64],activatePrevItem:[64]},[[0,"laItemChanged","itemChanged"],[0,"click","clicked"]]]);"undefined"!=typeof customElements&&["la-gutter"].forEach((e=>{"la-gutter"===e&&(customElements.get(e)||customElements.define(e,yp))}));const _p=Rd(class extends Su{constructor(){super(),this.__registerHost(),this.laItemChanged=Yu(this,"laItemChanged",7),this.anchor=void 0,this.active=!1}activeChanged(){this.laItemChanged.emit()}anchorChanged(){this.laItemChanged.emit()}onClick(){this.active=!0}static get watchers(){return{active:["activeChanged"],anchor:["anchorChanged"]}}static get style(){return"la-gutter-item{display:block}"}},[0,"la-gutter-item",{anchor:[1],active:[1540]},[[0,"click","onClick"]],{active:["activeChanged"],anchor:["anchorChanged"]}]);"undefined"!=typeof customElements&&["la-gutter-item"].forEach((e=>{"la-gutter-item"===e&&(customElements.get(e)||customElements.define(e,_p))}));const kp=Rd(class extends Su{constructor(){super(),this.__registerHost(),this.itemRendered=Yu(this,"itemRendered",7),this.itemTitleClicked=Yu(this,"itemTitleClicked",7),this.onItemTitleClick=e=>{this.itemTitleClicked.emit(e)},this.item={},this.filteredItems=null,this.prependHtml="",this.appendHtml="",this.expandIconHtml="",this.collapseIconHtml="",this.expanded=!0}toggle(){this.expanded=!this.expanded}componentDidRender(){this.itemRendered.emit()}render(){var e;const t=!!(null===(e=this.item.children)||void 0===e?void 0:e.length),n=!this.filteredItems||this.filteredItems.has(this.item),o=this.item.href||`#${this.item.id||""}`;return Hu(Gu,Object.assign({},t?{parent:t}:{},{class:n?"":"excluded"}),Hu("div",{class:"indented"},t?Hu("div",{class:"indented__toggle-btn",role:"button",onClick:()=>this.toggle()},(()=>this.expanded?this.collapseIconHtml?Hu("span",{innerHTML:this.collapseIconHtml}):Hu("span",null,"▼"):this.expandIconHtml?Hu("span",{innerHTML:this.expandIconHtml}):Hu("span",null,"►"))()):null),Hu("div",{class:"content"},Hu("div",{class:"content__action"},this.prependHtml?Hu("div",{class:"content__action__prepend",innerHTML:this.prependHtml}):null,Hu("a",{href:o,class:"content__action__title",onClick:this.onItemTitleClick},this.item.title),this.appendHtml?Hu("div",{class:"content__action__append",innerHTML:this.appendHtml}):null),Hu("div",{class:"content__children"},Hu("slot",null))))}static get style(){return"la-toc-item{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}la-toc-item *{-webkit-box-sizing:border-box;box-sizing:border-box}la-toc-item .indented{width:1.4em;height:1.4em}la-toc-item .content{-ms-flex:1;flex:1}la-toc-item .content__action{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}la-toc-item .content__action__title{-ms-flex-positive:1;flex-grow:1}la-toc-item .content__children{display:none}la-toc-item[expanded]>.content>.content__children{display:inherit}la-toc-item.excluded{display:none}la-toc-item .indented__toggle-btn{cursor:pointer;display:inline-block;font-size:smaller;text-align:center;padding:1px 6px}"}},[4,"la-toc-item",{item:[16],filteredItems:[16],prependHtml:[1,"prepend-html"],appendHtml:[1,"append-html"],expandIconHtml:[1,"expand-icon-html"],collapseIconHtml:[1,"collapse-icon-html"],expanded:[1540]}]);function wp(){"undefined"!=typeof customElements&&["la-toc-item"].forEach((e=>{"la-toc-item"===e&&(customElements.get(e)||customElements.define(e,kp))}))}wp();const xp=Rd(class extends Su{constructor(){super(),this.__registerHost(),this.expandIconHtml="",this.collapseIconHtml="",this.items=[],this.titleFilter="",this.expanded=!0,this.frbrExpressionUri=void 0,this.fetch=!1,this.partner=void 0,this.provider=$d,this.filteredItems=null,this.innerItems=[]}parseItemsProp(e){"string"==typeof e?this.innerItems=JSON.parse(e):Array.isArray(e)&&(this.innerItems=[...e])}refetch(){this.fetchContent()}async fetchContent(){if(this.ensurePartner(),this.fetch&&this.frbrExpressionUri&&this.provider){const e=this.provider+"/p/"+this.partner+"/e/we/toc.json"+this.frbrExpressionUri;try{const t=await fetch(e);t.ok&&(this.innerItems=(await t.json()).toc)}catch(e){}}}ensurePartner(){this.partner||(this.partner=jd())}getSlotHTML(e){var t;const n=this.el.querySelector(e);return(null==n?void 0:n.querySelector(e))?(null===(t=n.querySelector(e))||void 0===t?void 0:t.innerHTML)||"":(null==n?void 0:n.innerHTML)||""}componentWillLoad(){this.expandIconHtml=this.getSlotHTML("[slot='expand-icon']"),this.collapseIconHtml=this.getSlotHTML("[slot='collapse-icon']"),this.parseItemsProp(this.items),this.titleFilterChanged(this.titleFilter),this.fetchContent()}async expandAll(){Array.from(this.el.querySelectorAll("la-toc-item")).forEach((e=>{e.expanded=!0}))}async collapseAll(){Array.from(this.el.querySelectorAll("la-toc-item")).forEach((e=>{e.expanded=!1}))}titleFilterChanged(e){if(e){const t=e.toLocaleLowerCase().trim(),n=new Set;function o(e){for(const t of e.children||[])n.add(t),o(t)}function r(e){var a;let i=((null===(a=e.title)||void 0===a?void 0:a.toLocaleLowerCase())||"").includes(t);if(i)o(e);else if(e.children)for(const t of e.children)i=r(t)||i;return i&&n.add(e),i}for(const a of this.innerItems)r(a);this.filteredItems=n}else this.filteredItems=null;this.expandAll()}renderItem(e){const t=(e.children||[]).map((e=>this.renderItem(e))),n=void 0===e.expanded?this.expanded:e.expanded;return Hu("la-toc-item",{item:e,filteredItems:this.filteredItems,expandIconHtml:this.expandIconHtml,collapseIconHtml:this.collapseIconHtml,expanded:n},t)}render(){return Hu(Gu,{key:"f8b5eaf0e2c359af4eea3b7d6ab3fcad94f393bb"},Hu("div",{key:"ddca6abce36c9be705a172c12e833a6f9d088b89",style:{display:"none"}},Hu("slot",{key:"6f55f20f2cb614bb7a7519c44a71f2f94ff60b14",name:"expand-icon"}),Hu("slot",{key:"9bc755de6658047c64c1c3f5e42a4b6342a883f8",name:"collapse-icon"})),this.innerItems.map((e=>this.renderItem(e))))}get el(){return this}static get watchers(){return{items:["parseItemsProp"],provider:["refetch"],frbrExpressionUri:["refetch"],fetch:["refetch"],titleFilter:["titleFilterChanged"]}}},[4,"la-table-of-contents",{items:[1],titleFilter:[1,"title-filter"],expanded:[4],frbrExpressionUri:[1537,"frbr-expression-uri"],fetch:[1540],partner:[1537],provider:[1],filteredItems:[32],innerItems:[32],expandAll:[64],collapseAll:[64]},void 0,{items:["parseItemsProp"],provider:["refetch"],frbrExpressionUri:["refetch"],fetch:["refetch"],titleFilter:["titleFilterChanged"]}]);function Sp(){"undefined"!=typeof customElements&&["la-table-of-contents","la-toc-item"].forEach((e=>{switch(e){case"la-table-of-contents":customElements.get(e)||customElements.define(e,xp);break;case"la-toc-item":customElements.get(e)||wp()}}))}Sp();const Ap=Rd(class extends Su{constructor(){super(),this.__registerHost(),this.handleTitleChange=gp((e=>{this.titleFilter=e.target.value}),300),this.items=[],this.titleFilterPlaceholder="Search the table of contents",this.hideClearTitleFilterButton=!1,this.titleFilterClearBtnClasses="",this.expandAllBtnClasses="",this.collapseAllBtnClasses="",this.expandAllBtnText="Expand all",this.collapseAllBtnText="Collapse all",this.expanded=!0,this.titleFilterInputClasses="",this.frbrExpressionUri=void 0,this.fetch=!1,this.partner=void 0,this.provider=$d,this.titleFilter=""}clearTitleFilter(){this.titleFilter=""}async expandAll(){const e=this.el.querySelector("la-table-of-contents");null==e||e.expandAll()}async collapseAll(){const e=this.el.querySelector("la-table-of-contents");null==e||e.collapseAll()}render(){return Hu(Gu,null,Hu("div",{class:"search"},Hu("input",{class:`search__input ${this.titleFilterInputClasses}`,value:this.titleFilter,placeholder:this.titleFilterPlaceholder,onInput:e=>this.handleTitleChange(e)}),(()=>this.hideClearTitleFilterButton?null:Hu("button",{class:`search__clear-btn ${this.titleFilterClearBtnClasses}`,type:"button",onClick:()=>this.clearTitleFilter(),disabled:!this.titleFilter},Hu("slot",{name:"clear-title-filter-icon"},"✕")))()),Hu("div",{class:"toggle"},Hu("button",{type:"button",class:`toggle__expand-all-btn ${this.expandAllBtnClasses}`,onClick:()=>this.expandAll()},this.expandAllBtnText),Hu("button",{type:"button",class:`toggle__collapse-all-btn ${this.collapseAllBtnClasses}`,onClick:()=>this.collapseAll()},this.collapseAllBtnText)),Hu("la-table-of-contents",{items:this.items,titleFilter:this.titleFilter,fetch:this.fetch,provider:this.provider,partner:this.partner,"frbr-expression-uri":this.frbrExpressionUri,expanded:this.expanded},Hu("span",{slot:"expand-icon"},Hu("slot",{name:"expand-icon"})),Hu("span",{slot:"collapse-icon"},Hu("slot",{name:"collapse-icon"}))))}get el(){return this}static get style(){return"la-table-of-contents-controller *{-webkit-box-sizing:border-box;box-sizing:border-box}la-table-of-contents-controller .search{width:100%;margin-bottom:5px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative}la-table-of-contents-controller .search__input{-ms-flex:1;flex:1}la-table-of-contents-controller .search__clear-btn{position:absolute;top:0;right:0;height:100%}la-table-of-contents-controller .toggle{margin-bottom:5px}la-table-of-contents-controller .toggle__expand-all-btn{margin-right:5px}"}},[4,"la-table-of-contents-controller",{items:[1],titleFilterPlaceholder:[1,"title-filter-placeholder"],hideClearTitleFilterButton:[4,"hide-clear-title-filter-button"],titleFilterClearBtnClasses:[1,"title-filter-clear-btn-classes"],expandAllBtnClasses:[1,"expand-all-btn-classes"],collapseAllBtnClasses:[1,"collapse-all-btn-classes"],expandAllBtnText:[1,"expand-all-btn-text"],collapseAllBtnText:[1,"collapse-all-btn-text"],expanded:[4],titleFilterInputClasses:[1,"title-filter-input-classes"],frbrExpressionUri:[1537,"frbr-expression-uri"],fetch:[1540],partner:[1537],provider:[1],titleFilter:[32]}]);"undefined"!=typeof customElements&&["la-table-of-contents-controller","la-table-of-contents","la-toc-item"].forEach((e=>{switch(e){case"la-table-of-contents-controller":customElements.get(e)||customElements.define(e,Ap);break;case"la-table-of-contents":customElements.get(e)||Sp();break;case"la-toc-item":customElements.get(e)||wp()}}));var Cp="top",Tp="bottom",Ep="right",Op="left",Pp="auto",Dp=[Cp,Tp,Ep,Op],Mp="start",Lp="end",Rp="viewport",Ip="popper",Fp=Dp.reduce((function(e,t){return e.concat([t+"-"+Mp,t+"-"+Lp])}),[]),Np=[].concat(Dp,[Pp]).reduce((function(e,t){return e.concat([t,t+"-"+Mp,t+"-"+Lp])}),[]),jp=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function $p(e){return e?(e.nodeName||"").toLowerCase():null}function Up(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function qp(e){return e instanceof Up(e).Element||e instanceof Element}function Bp(e){return e instanceof Up(e).HTMLElement||e instanceof HTMLElement}function zp(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Up(e).ShadowRoot||e instanceof ShadowRoot)}const Vp={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},o=t.attributes[e]||{},r=t.elements[e];Bp(r)&&$p(r)&&(Object.assign(r.style,n),Object.keys(o).forEach((function(e){var t=o[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var o=t.elements[e],r=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Bp(o)&&$p(o)&&(Object.assign(o.style,a),Object.keys(r).forEach((function(e){o.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Hp(e){return e.split("-")[0]}var Wp=Math.max,Gp=Math.min,Yp=Math.round;function Jp(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Zp(){return!/^((?!chrome|android).)*safari/i.test(Jp())}function Xp(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var o=e.getBoundingClientRect(),r=1,a=1;t&&Bp(e)&&(r=e.offsetWidth>0&&Yp(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Yp(o.height)/e.offsetHeight||1);var i=(qp(e)?Up(e):window).visualViewport,s=!Zp()&&n,l=(o.left+(s&&i?i.offsetLeft:0))/r,c=(o.top+(s&&i?i.offsetTop:0))/a,u=o.width/r,d=o.height/a;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Kp(e){var t=Xp(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function Qp(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&zp(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function eh(e){return Up(e).getComputedStyle(e)}function th(e){return["table","td","th"].indexOf($p(e))>=0}function nh(e){return((qp(e)?e.ownerDocument:e.document)||window.document).documentElement}function oh(e){return"html"===$p(e)?e:e.assignedSlot||e.parentNode||(zp(e)?e.host:null)||nh(e)}function rh(e){return Bp(e)&&"fixed"!==eh(e).position?e.offsetParent:null}function ah(e){for(var t=Up(e),n=rh(e);n&&th(n)&&"static"===eh(n).position;)n=rh(n);return n&&("html"===$p(n)||"body"===$p(n)&&"static"===eh(n).position)?t:n||function(e){var t=/firefox/i.test(Jp());if(/Trident/i.test(Jp())&&Bp(e)&&"fixed"===eh(e).position)return null;var n=oh(e);for(zp(n)&&(n=n.host);Bp(n)&&["html","body"].indexOf($p(n))<0;){var o=eh(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||t&&"filter"===o.willChange||t&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(e)||t}function ih(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function sh(e,t,n){return Wp(e,Gp(t,n))}function lh(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ch(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}const uh={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,o=e.name,r=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=Hp(n.placement),l=ih(s),c=[Op,Ep].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(e,t){return lh("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ch(e,Dp))}(r.padding,n),d=Kp(a),p="y"===l?Cp:Op,h="y"===l?Tp:Ep,f=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],m=i[l]-n.rects.reference[l],g=ah(a),b=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=f/2-m/2,y=u[p],_=b-d[c]-u[h],k=b/2-d[c]/2+v,w=sh(y,k,_),x=l;n.modifiersData[o]=((t={})[x]=w,t.centerOffset=w-k,t)}},effect:function(e){var t=e.state,n=e.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=t.elements.popper.querySelector(o)))&&Qp(t.elements.popper,o)&&(t.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dh(e){return e.split("-")[1]}var ph={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hh(e){var t,n=e.popper,o=e.popperRect,r=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,h=void 0===p?0:p,f=i.y,m=void 0===f?0:f,g="function"==typeof u?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var b=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),y=Op,_=Cp,k=window;if(c){var w=ah(n),x="clientHeight",S="clientWidth";w===Up(n)&&"static"!==eh(w=nh(n)).position&&"absolute"===s&&(x="scrollHeight",S="scrollWidth"),(r===Cp||(r===Op||r===Ep)&&a===Lp)&&(_=Tp,m-=(d&&w===k&&k.visualViewport?k.visualViewport.height:w[x])-o.height,m*=l?1:-1),r!==Op&&(r!==Cp&&r!==Tp||a!==Lp)||(y=Ep,h-=(d&&w===k&&k.visualViewport?k.visualViewport.width:w[S])-o.width,h*=l?1:-1)}var A,C=Object.assign({position:s},c&&ph),T=!0===u?function(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:Yp(n*r)/r||0,y:Yp(o*r)/r||0}}({x:h,y:m},Up(n)):{x:h,y:m};return h=T.x,m=T.y,l?Object.assign({},C,((A={})[_]=v?"0":"",A[y]=b?"0":"",A.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",A)):Object.assign({},C,((t={})[_]=v?m+"px":"",t[y]=b?h+"px":"",t.transform="",t))}var fh={passive:!0};const mh={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,a=void 0===r||r,i=o.resize,s=void 0===i||i,l=Up(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,fh)})),s&&l.addEventListener("resize",n.update,fh),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,fh)})),s&&l.removeEventListener("resize",n.update,fh)}},data:{}};var gh={left:"right",right:"left",bottom:"top",top:"bottom"};function bh(e){return e.replace(/left|right|bottom|top/g,(function(e){return gh[e]}))}var vh={start:"end",end:"start"};function yh(e){return e.replace(/start|end/g,(function(e){return vh[e]}))}function _h(e){var t=Up(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function kh(e){return Xp(nh(e)).left+_h(e).scrollLeft}function wh(e){var t=eh(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function xh(e){return["html","body","#document"].indexOf($p(e))>=0?e.ownerDocument.body:Bp(e)&&wh(e)?e:xh(oh(e))}function Sh(e,t){var n;void 0===t&&(t=[]);var o=xh(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),a=Up(o),i=r?[a].concat(a.visualViewport||[],wh(o)?o:[]):o,s=t.concat(i);return r?s:s.concat(Sh(oh(i)))}function Ah(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ch(e,t,n){return t===Rp?Ah(function(e,t){var n=Up(e),o=nh(e),r=n.visualViewport,a=o.clientWidth,i=o.clientHeight,s=0,l=0;if(r){a=r.width,i=r.height;var c=Zp();(c||!c&&"fixed"===t)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:a,height:i,x:s+kh(e),y:l}}(e,n)):qp(t)?function(e,t){var n=Xp(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Ah(function(e){var t,n=nh(e),o=_h(e),r=null==(t=e.ownerDocument)?void 0:t.body,a=Wp(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Wp(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+kh(e),l=-o.scrollTop;return"rtl"===eh(r||n).direction&&(s+=Wp(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(nh(e)))}function Th(e){var t,n=e.reference,o=e.element,r=e.placement,a=r?Hp(r):null,i=r?dh(r):null,s=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(a){case Cp:t={x:s,y:n.y-o.height};break;case Tp:t={x:s,y:n.y+n.height};break;case Ep:t={x:n.x+n.width,y:l};break;case Op:t={x:n.x-o.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?ih(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case Mp:t[c]=t[c]-(n[u]/2-o[u]/2);break;case Lp:t[c]=t[c]+(n[u]/2-o[u]/2)}}return t}function Eh(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=void 0===o?e.placement:o,a=n.strategy,i=void 0===a?e.strategy:a,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?Rp:c,d=n.elementContext,p=void 0===d?Ip:d,h=n.altBoundary,f=void 0!==h&&h,m=n.padding,g=void 0===m?0:m,b=lh("number"!=typeof g?g:ch(g,Dp)),v=p===Ip?"reference":Ip,y=e.rects.popper,_=e.elements[f?v:p],k=function(e,t,n,o){var r="clippingParents"===t?function(e){var t=Sh(oh(e)),n=["absolute","fixed"].indexOf(eh(e).position)>=0&&Bp(e)?ah(e):e;return qp(n)?t.filter((function(e){return qp(e)&&Qp(e,n)&&"body"!==$p(e)})):[]}(e):[].concat(t),a=[].concat(r,[n]),i=a[0],s=a.reduce((function(t,n){var r=Ch(e,n,o);return t.top=Wp(r.top,t.top),t.right=Gp(r.right,t.right),t.bottom=Gp(r.bottom,t.bottom),t.left=Wp(r.left,t.left),t}),Ch(e,i,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(qp(_)?_:_.contextElement||nh(e.elements.popper),l,u,i),w=Xp(e.elements.reference),x=Th({reference:w,element:y,strategy:"absolute",placement:r}),S=Ah(Object.assign({},y,x)),A=p===Ip?S:w,C={top:k.top-A.top+b.top,bottom:A.bottom-k.bottom+b.bottom,left:k.left-A.left+b.left,right:A.right-k.right+b.right},T=e.modifiersData.offset;if(p===Ip&&T){var E=T[r];Object.keys(C).forEach((function(e){var t=[Ep,Tp].indexOf(e)>=0?1:-1,n=[Cp,Tp].indexOf(e)>=0?"y":"x";C[e]+=E[n]*t}))}return C}function Oh(e,t){void 0===t&&(t={});var n=t,o=n.placement,r=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Np:l,u=dh(o),d=u?s?Fp:Fp.filter((function(e){return dh(e)===u})):Dp,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var h=p.reduce((function(t,n){return t[n]=Eh(e,{placement:n,boundary:r,rootBoundary:a,padding:i})[Hp(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}const Ph={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,a=void 0===r||r,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,f=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,b=Hp(g),v=l||(b!==g&&f?function(e){if(Hp(e)===Pp)return[];var t=bh(e);return[yh(e),t,yh(t)]}(g):[bh(g)]),y=[g].concat(v).reduce((function(e,n){return e.concat(Hp(n)===Pp?Oh(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),_=t.rects.reference,k=t.rects.popper,w=new Map,x=!0,S=y[0],A=0;A=0,P=O?"width":"height",D=Eh(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),M=O?E?Ep:Op:E?Tp:Cp;_[P]>k[P]&&(M=bh(M));var L=bh(M),R=[];if(a&&R.push(D[T]<=0),s&&R.push(D[M]<=0,D[L]<=0),R.every((function(e){return e}))){S=C,x=!1;break}w.set(C,R)}if(x)for(var I=function(e){var t=y.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},F=f?3:1;F>0&&"break"!==I(F);F--);t.placement!==S&&(t.modifiersData[o]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Dh(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Mh(e){return[Cp,Ep,Tp,Op].some((function(t){return e[t]>=0}))}function Lh(e,t,n){void 0===n&&(n=!1);var o,r,a=Bp(t),i=Bp(t)&&function(e){var t=e.getBoundingClientRect(),n=Yp(t.width)/e.offsetWidth||1,o=Yp(t.height)/e.offsetHeight||1;return 1!==n||1!==o}(t),s=nh(t),l=Xp(e,i,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==$p(t)||wh(s))&&(c=(o=t)!==Up(o)&&Bp(o)?{scrollLeft:(r=o).scrollLeft,scrollTop:r.scrollTop}:_h(o)),Bp(t)?((u=Xp(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=kh(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Rh(e){var t=new Map,n=new Set,o=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var o=t.get(e);o&&r(o)}})),o.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),o}var Ih={placement:"bottom",modifiers:[],strategy:"absolute"};function Fh(){for(var e=arguments.length,t=new Array(e),n=0;n=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*r,[Op,Ep].indexOf(o)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,a),e}),{}),s=i[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[o]=i}},Ph,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,a=void 0===r||r,i=n.altAxis,s=void 0!==i&&i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=void 0===p||p,f=n.tetherOffset,m=void 0===f?0:f,g=Eh(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),b=Hp(t.placement),v=dh(t.placement),y=!v,_=ih(b),k="x"===_?"y":"x",w=t.modifiersData.popperOffsets,x=t.rects.reference,S=t.rects.popper,A="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(w){if(a){var O,P="y"===_?Cp:Op,D="y"===_?Tp:Ep,M="y"===_?"height":"width",L=w[_],R=L+g[P],I=L-g[D],F=h?-S[M]/2:0,N=v===Mp?x[M]:S[M],j=v===Mp?-S[M]:-x[M],$=t.elements.arrow,U=h&&$?Kp($):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=q[P],z=q[D],V=sh(0,x[M],U[M]),H=y?x[M]/2-F-V-B-C.mainAxis:N-V-B-C.mainAxis,W=y?-x[M]/2+F+V+z+C.mainAxis:j+V+z+C.mainAxis,G=t.elements.arrow&&ah(t.elements.arrow),Y=G?"y"===_?G.clientTop||0:G.clientLeft||0:0,J=null!=(O=null==T?void 0:T[_])?O:0,Z=L+W-J,X=sh(h?Gp(R,L+H-J-Y):R,L,h?Wp(I,Z):I);w[_]=X,E[_]=X-L}if(s){var K,Q="x"===_?Cp:Op,ee="x"===_?Tp:Ep,te=w[k],ne="y"===k?"height":"width",oe=te+g[Q],re=te-g[ee],ae=-1!==[Cp,Op].indexOf(b),ie=null!=(K=null==T?void 0:T[k])?K:0,se=ae?oe:te-x[ne]-S[ne]-ie+C.altAxis,le=ae?te+x[ne]+S[ne]-ie-C.altAxis:re,ce=h&&ae?function(e,t,n){var o=sh(e,t,n);return o>n?n:o}(se,te,le):sh(h?se:oe,te,h?le:re);w[k]=ce,E[k]=ce-te}t.modifiersData[o]=E}},requiresIfExists:["offset"]},uh,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,a=t.modifiersData.preventOverflow,i=Eh(t,{elementContext:"reference"}),s=Eh(t,{altBoundary:!0}),l=Dh(i,o),c=Dh(s,r,a),u=Mh(l),d=Mh(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),$h="tippy-content",Uh="tippy-arrow",qh="tippy-svg-arrow",Bh={passive:!0,capture:!0},zh=function(){return document.body};function Vh(e,t,n){if(Array.isArray(e)){var o=e[t];return null==o?Array.isArray(n)?n[t]:n:o}return e}function Hh(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function Wh(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Gh(e,t){return 0===t?e:function(o){clearTimeout(n),n=setTimeout((function(){e(o)}),t)};var n}function Yh(e){return[].concat(e)}function Jh(e,t){-1===e.indexOf(t)&&e.push(t)}function Zh(e){return[].slice.call(e)}function Xh(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Kh(){return document.createElement("div")}function Qh(e){return["Element","Fragment"].some((function(t){return Hh(e,t)}))}function ef(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function tf(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function nf(e,t,n){var o=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[o](t,n)}))}function of(e,t){for(var n=t;n;){var o;if(e.contains(n))return!0;n=null==n.getRootNode||null==(o=n.getRootNode())?void 0:o.host}return!1}var rf={isTouch:!1},af=0;function sf(){rf.isTouch||(rf.isTouch=!0,window.performance&&document.addEventListener("mousemove",lf))}function lf(){var e=performance.now();e-af<20&&(rf.isTouch=!1,document.removeEventListener("mousemove",lf)),af=e}function cf(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var uf=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),df=Object.assign({appendTo:zh,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),pf=Object.keys(df);function hf(e){var t=(e.plugins||[]).reduce((function(t,n){var o,r=n.name,a=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:null!=(o=df[r])?o:a),t}),{});return Object.assign({},e,t)}function ff(e,t){var n=Object.assign({},t,{content:Wh(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(hf(Object.assign({},df,{plugins:t}))):pf).reduce((function(t,n){var o=(e.getAttribute("data-tippy-"+n)||"").trim();if(!o)return t;if("content"===n)t[n]=o;else try{t[n]=JSON.parse(o)}catch(e){t[n]=o}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},df.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function mf(e,t){e.innerHTML=t}function gf(e){var t=Kh();return!0===e?t.className=Uh:(t.className=qh,Qh(e)?t.appendChild(e):mf(t,e)),t}function bf(e,t){Qh(t.content)?(mf(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?mf(e,t.content):e.textContent=t.content)}function vf(e){var t=e.firstElementChild,n=Zh(t.children);return{box:t,content:n.find((function(e){return e.classList.contains($h)})),arrow:n.find((function(e){return e.classList.contains(Uh)||e.classList.contains(qh)})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function yf(e){var t=Kh(),n=Kh();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var o=Kh();function r(n,o){var r=vf(t),a=r.box,i=r.content,s=r.arrow;o.theme?a.setAttribute("data-theme",o.theme):a.removeAttribute("data-theme"),"string"==typeof o.animation?a.setAttribute("data-animation",o.animation):a.removeAttribute("data-animation"),o.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth="number"==typeof o.maxWidth?o.maxWidth+"px":o.maxWidth,o.role?a.setAttribute("role",o.role):a.removeAttribute("role"),n.content===o.content&&n.allowHTML===o.allowHTML||bf(i,e.props),o.arrow?s?n.arrow!==o.arrow&&(a.removeChild(s),a.appendChild(gf(o.arrow))):a.appendChild(gf(o.arrow)):s&&a.removeChild(s)}return o.className=$h,o.setAttribute("data-state","hidden"),bf(o,e.props),t.appendChild(n),n.appendChild(o),r(e.props,e.props),{popper:t,onUpdate:r}}yf.$$tippy=!0;var _f=1,kf=[],wf=[];function xf(e,t){var n,o,r,a,i,s,l,c,u=ff(e,Object.assign({},df,hf(Xh(t)))),d=!1,p=!1,h=!1,f=!1,m=[],g=Gh(G,u.interactiveDebounce),b=_f++,v=(c=u.plugins).filter((function(e,t){return c.indexOf(e)===t})),y={id:b,reference:e,popper:Kh(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(t){if(!y.state.isDestroyed){L("onBeforeUpdate",[y,t]),H();var n=y.props,o=ff(e,Object.assign({},n,Xh(t),{ignoreAttributes:!0}));y.props=o,V(),n.interactiveDebounce!==o.interactiveDebounce&&(F(),g=Gh(G,o.interactiveDebounce)),n.triggerTarget&&!o.triggerTarget?Yh(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):o.triggerTarget&&e.removeAttribute("aria-expanded"),I(),M(),w&&w(n,o),y.popperInstance&&(X(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),L("onAfterUpdate",[y,t])}},setContent:function(e){y.setProps({content:e})},show:function(){var e=y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,o=rf.isTouch&&!y.props.touch,r=Vh(y.props.duration,0,df.duration);if(!(e||t||n||o||E().hasAttribute("disabled")||(L("onShow",[y],!1),!1===y.props.onShow(y)))){if(y.state.isVisible=!0,T()&&(k.style.visibility="visible"),M(),U(),y.state.isMounted||(k.style.transition="none"),T()){var a=P();ef([a.box,a.content],0)}var i,l,c;s=function(){var e;if(y.state.isVisible&&!f){if(f=!0,k.style.transition=y.props.moveTransition,T()&&y.props.animation){var t=P(),n=t.box,o=t.content;ef([n,o],r),tf([n,o],"visible")}R(),I(),Jh(wf,y),null==(e=y.popperInstance)||e.forceUpdate(),L("onMount",[y]),y.props.animation&&T()&&function(e,t){B(e,(function(){y.state.isShown=!0,L("onShown",[y])}))}(r)}},l=y.props.appendTo,c=E(),(i=y.props.interactive&&l===zh||"parent"===l?c.parentNode:Wh(l,[c])).contains(k)||i.appendChild(k),y.state.isMounted=!0,X()}},hide:function(){var e=!y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,o=Vh(y.props.duration,1,df.duration);if(!(e||t||n)&&(L("onHide",[y],!1),!1!==y.props.onHide(y))){if(y.state.isVisible=!1,y.state.isShown=!1,f=!1,d=!1,T()&&(k.style.visibility="hidden"),F(),q(),M(!0),T()){var r=P(),a=r.box,i=r.content;y.props.animation&&(ef([a,i],o),tf([a,i],"hidden"))}R(),I(),y.props.animation?T()&&function(e,t){B(e,(function(){!y.state.isVisible&&k.parentNode&&k.parentNode.contains(k)&&t()}))}(o,y.unmount):y.unmount()}},hideWithInteractivity:function(e){O().addEventListener("mousemove",g),Jh(kf,g),g(e)},enable:function(){y.state.isEnabled=!0},disable:function(){y.hide(),y.state.isEnabled=!1},unmount:function(){y.state.isVisible&&y.hide(),y.state.isMounted&&(K(),Q().forEach((function(e){e._tippy.unmount()})),k.parentNode&&k.parentNode.removeChild(k),wf=wf.filter((function(e){return e!==y})),y.state.isMounted=!1,L("onHidden",[y]))},destroy:function(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),H(),delete e._tippy,y.state.isDestroyed=!0,L("onDestroy",[y]))}};if(!u.render)return y;var _=u.render(y),k=_.popper,w=_.onUpdate;k.setAttribute("data-tippy-root",""),k.id="tippy-"+y.id,y.popper=k,e._tippy=y,k._tippy=y;var x=v.map((function(e){return e.fn(y)})),S=e.hasAttribute("aria-expanded");return V(),I(),M(),L("onCreate",[y]),u.showOnCreate&&ee(),k.addEventListener("mouseenter",(function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()})),k.addEventListener("mouseleave",(function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&O().addEventListener("mousemove",g)})),y;function A(){var e=y.props.touch;return Array.isArray(e)?e:[e,0]}function C(){return"hold"===A()[0]}function T(){var e;return!(null==(e=y.props.render)||!e.$$tippy)}function E(){return l||e}function O(){var e,t,n=E().parentNode;return n&&null!=(t=Yh(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document}function P(){return vf(k)}function D(e){return y.state.isMounted&&!y.state.isVisible||rf.isTouch||a&&"focus"===a.type?0:Vh(y.props.delay,e?0:1,df.delay)}function M(e){void 0===e&&(e=!1),k.style.pointerEvents=y.props.interactive&&!e?"":"none",k.style.zIndex=""+y.props.zIndex}function L(e,t,n){var o;void 0===n&&(n=!0),x.forEach((function(n){n[e]&&n[e].apply(n,t)})),n&&(o=y.props)[e].apply(o,t)}function R(){var t=y.props.aria;if(t.content){var n="aria-"+t.content,o=k.id;Yh(y.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(y.state.isVisible)e.setAttribute(n,t?t+" "+o:o);else{var r=t&&t.replace(o,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function I(){!S&&y.props.aria.expanded&&Yh(y.props.triggerTarget||e).forEach((function(e){y.props.interactive?e.setAttribute("aria-expanded",y.state.isVisible&&e===E()?"true":"false"):e.removeAttribute("aria-expanded")}))}function F(){O().removeEventListener("mousemove",g),kf=kf.filter((function(e){return e!==g}))}function N(t){if(!rf.isTouch||!h&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!y.props.interactive||!of(k,n)){if(Yh(y.props.triggerTarget||e).some((function(e){return of(e,n)}))){if(rf.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else L("onClickOutside",[y,t]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),p=!0,setTimeout((function(){p=!1})),y.state.isMounted||q())}}}function j(){h=!0}function $(){h=!1}function U(){var e=O();e.addEventListener("mousedown",N,!0),e.addEventListener("touchend",N,Bh),e.addEventListener("touchstart",$,Bh),e.addEventListener("touchmove",j,Bh)}function q(){var e=O();e.removeEventListener("mousedown",N,!0),e.removeEventListener("touchend",N,Bh),e.removeEventListener("touchstart",$,Bh),e.removeEventListener("touchmove",j,Bh)}function B(e,t){var n=P().box;function o(e){e.target===n&&(nf(n,"remove",o),t())}if(0===e)return t();nf(n,"remove",i),nf(n,"add",o),i=o}function z(t,n,o){void 0===o&&(o=!1),Yh(y.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,o),m.push({node:e,eventType:t,handler:n,options:o})}))}function V(){var e;C()&&(z("touchstart",W,{passive:!0}),z("touchend",Y,{passive:!0})),(e=y.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(z(e,W),e){case"mouseenter":z("mouseleave",Y);break;case"focus":z(uf?"focusout":"blur",J);break;case"focusin":z("focusout",J)}}))}function H(){m.forEach((function(e){var t=e.node,n=e.eventType,o=e.handler,r=e.options;t.removeEventListener(n,o,r)})),m=[]}function W(e){var t,n=!1;if(y.state.isEnabled&&!Z(e)&&!p){var o="focus"===(null==(t=a)?void 0:t.type);a=e,l=e.currentTarget,I(),!y.state.isVisible&&Hh(e,"MouseEvent")&&kf.forEach((function(t){return t(e)})),"click"===e.type&&(y.props.trigger.indexOf("mouseenter")<0||d)&&!1!==y.props.hideOnClick&&y.state.isVisible?n=!0:ee(e),"click"===e.type&&(d=!n),n&&!o&&te(e)}}function G(e){var t=e.target,n=E().contains(t)||k.contains(t);if("mousemove"!==e.type||!n){var o=Q().concat(k).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null})).filter(Boolean);(function(e,t){var n=t.clientX,o=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,a=e.props.interactiveBorder,i=r.placement.split("-")[0],s=r.modifiersData.offset;if(!s)return!0;var l="bottom"===i?s.top.y:0,c="top"===i?s.bottom.y:0,u="right"===i?s.left.x:0,d="left"===i?s.right.x:0,p=t.top-o+l>a,h=o-t.bottom-c>a,f=t.left-n+u>a,m=n-t.right-d>a;return p||h||f||m}))})(o,e)&&(F(),te(e))}}function Y(e){Z(e)||y.props.trigger.indexOf("click")>=0&&d||(y.props.interactive?y.hideWithInteractivity(e):te(e))}function J(e){y.props.trigger.indexOf("focusin")<0&&e.target!==E()||y.props.interactive&&e.relatedTarget&&k.contains(e.relatedTarget)||te(e)}function Z(e){return!!rf.isTouch&&C()!==e.type.indexOf("touch")>=0}function X(){K();var t=y.props,n=t.popperOptions,o=t.placement,r=t.offset,a=t.getReferenceClientRect,i=t.moveTransition,l=T()?vf(k).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||E()}:e,u=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!i}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(T()){var n=P().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];T()&&l&&u.push({name:"arrow",options:{element:l,padding:3}}),u.push.apply(u,(null==n?void 0:n.modifiers)||[]),y.popperInstance=jh(c,k,Object.assign({},n,{placement:o,onFirstUpdate:s,modifiers:u}))}function K(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function Q(){return Zh(k.querySelectorAll("[data-tippy-root]"))}function ee(e){y.clearDelayTimeouts(),e&&L("onTrigger",[y,e]),U();var t=D(!0),o=A(),r=o[0],a=o[1];rf.isTouch&&"hold"===r&&a&&(t=a),t?n=setTimeout((function(){y.show()}),t):y.show()}function te(e){if(y.clearDelayTimeouts(),L("onUntrigger",[y,e]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=D(!1);t?o=setTimeout((function(){y.state.isVisible&&y.hide()}),t):r=requestAnimationFrame((function(){y.hide()}))}}else q()}}function Sf(e,t){void 0===t&&(t={});var n=df.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",sf,Bh),window.addEventListener("blur",cf);var o,r=Object.assign({},t,{plugins:n}),a=(o=e,Qh(o)?[o]:function(e){return Hh(e,"NodeList")}(o)?Zh(o):Array.isArray(o)?o:Zh(document.querySelectorAll(o))).reduce((function(e,t){var n=t&&xf(t,r);return n&&e.push(n),e}),[]);return Qh(e)?a[0]:a}Sf.defaultProps=df,Sf.setDefaultProps=function(e){Object.keys(e).forEach((function(t){df[t]=e[t]}))},Sf.currentInput=rf,Object.assign({},Vp,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),Sf.setDefaultProps({render:yf});const Af=Rd(class extends Su{constructor(){super(),this.__registerHost(),this.tippies=[],this.akomaNtoso=void 0,this.popups=!1,this.partner=void 0,this.provider=$d}componentWillLoad(){const e=new bp(this.el,this.akomaNtoso,(()=>{this.componentDidLoad()}));this.akomaNtosoElement=e.getElement(),this.tippyContainer=document.createElement("div"),this.tippyContainer.className="la-decorate-external-refs__popup",document.body.appendChild(this.tippyContainer)}componentDidLoad(){this.changePopups(this.popups)}changePopups(e){for(const e of this.tippies)e.destroy();this.tippies=[],this.akomaNtosoElement&&e&&this.createPopups()}createPopups(){this.akomaNtosoElement&&(this.tippies=Sf(this.akomaNtosoElement.querySelectorAll('a.akn-ref[data-href^="/akn/"]'),{appendTo:()=>this.tippyContainer,allowHTML:!0,hideOnClick:!0,interactive:!0,maxWidth:450,onTrigger:this.onTrigger.bind(this),theme:"light-border"}))}async onTrigger(e){const t=e.reference.getAttribute("data-href")||"",n=await this.fetchContent(t);n&&e.setContent(`\n
    \n
    ${n}
    \n
    `)}ensurePartner(){this.partner||(this.partner=jd())}async fetchContent(e){if(this.ensurePartner(),e&&this.provider){const t=this.provider+"/p/"+this.partner+"/e/popup"+e;try{const e=await fetch(t);if(e.ok)return await e.text()}catch(e){}}return null}get el(){return this}static get watchers(){return{popups:["changePopups"]}}static get style(){return'.la-decorate-external-refs__popup{position:relative}.la-decorate-external-refs__popup .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.la-decorate-external-refs__popup [data-tippy-root]{max-width:calc(100vw - 10px)}.la-decorate-external-refs__popup .tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform}.la-decorate-external-refs__popup .tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.la-decorate-external-refs__popup .tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;-webkit-transform-origin:center top;transform-origin:center top}.la-decorate-external-refs__popup .tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.la-decorate-external-refs__popup .tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;-webkit-transform-origin:center bottom;transform-origin:center bottom}.la-decorate-external-refs__popup .tippy-box[data-placement^=left]>.tippy-arrow{right:0}.la-decorate-external-refs__popup .tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;-webkit-transform-origin:center left;transform-origin:center left}.la-decorate-external-refs__popup .tippy-box[data-placement^=right]>.tippy-arrow{left:0}.la-decorate-external-refs__popup .tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;-webkit-transform-origin:center right;transform-origin:center right}.la-decorate-external-refs__popup .tippy-box[data-inertia][data-state=visible]{-webkit-transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11);transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11)}.la-decorate-external-refs__popup .tippy-arrow{width:16px;height:16px;color:#333}.la-decorate-external-refs__popup .tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.la-decorate-external-refs__popup .tippy-content{position:relative;padding:5px 9px;z-index:1}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]{background-color:#fff;background-clip:padding-box;border:1px solid rgba(0, 8, 16, 0.15);color:#333;-webkit-box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08);box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08)}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-backdrop{background-color:#fff}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after,.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{content:"";position:absolute;z-index:-1}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after{border-color:transparent;border-style:solid}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:after{border-top-color:rgba(0, 8, 16, 0.2);border-width:7px 7px 0;top:17px;left:1px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow>svg{top:16px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow:after{top:17px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff;bottom:16px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:after{border-bottom-color:rgba(0, 8, 16, 0.2);border-width:0 7px 7px;bottom:17px;left:1px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow:after{bottom:17px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:after{border-left-color:rgba(0, 8, 16, 0.2);border-width:7px 0 7px 7px;left:17px;top:1px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow>svg{left:11px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow:after{left:12px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff;right:16px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:after{border-width:7px 7px 7px 0;right:17px;top:1px;border-right-color:rgba(0, 8, 16, 0.2)}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow>svg{right:11px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow:after{right:12px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow{fill:#fff}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA2czEuNzk2LS4wMTMgNC42Ny0zLjYxNUM1Ljg1MS45IDYuOTMuMDA2IDggMGMxLjA3LS4wMDYgMi4xNDguODg3IDMuMzQzIDIuMzg1QzE0LjIzMyA2LjAwNSAxNiA2IDE2IDZIMHoiIGZpbGw9InJnYmEoMCwgOCwgMTYsIDAuMikiLz48L3N2Zz4=);background-size:16px 6px;width:16px;height:6px}.la-decorate-external-refs__popup .tippy-content{padding:0}.la-decorate-external-refs__popup .tippy-content__title{padding:0.5rem 0.75rem;margin-bottom:0;font-size:1rem;font-weight:bold;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(0.3rem - 1px);border-top-right-radius:calc(0.3rem - 1px);background-color:#f7f7f7}.la-decorate-external-refs__popup .tippy-content__body{padding:0.5rem 0.75rem;background-color:white}.la-decorate-external-refs__popup .tippy-content la-akoma-ntoso{max-height:40vh;overflow-y:auto}'}},[0,"la-decorate-external-refs",{akomaNtoso:[1,"akoma-ntoso"],popups:[4],partner:[1],provider:[1]},void 0,{popups:["changePopups"]}]);"undefined"!=typeof customElements&&["la-decorate-external-refs"].forEach((e=>{"la-decorate-external-refs"===e&&(customElements.get(e)||customElements.define(e,Af))}));const Cf=Rd(class extends Su{constructor(){super(),this.__registerHost(),this.tippies=[],this.akomaNtoso=void 0,this.popups=!1,this.flag=!1,this.fetch=!1,this.partner=void 0,this.provider=$d}componentWillLoad(){const e=new bp(this.el,this.akomaNtoso,(()=>{this.componentDidLoad()}));this.akomaNtosoElement=e.getElement(),this.tippyContainer=document.createElement("div"),this.tippyContainer.className="la-decorate-internal-refs__popup",document.body.appendChild(this.tippyContainer)}componentDidLoad(){this.changeFlag(this.flag),this.changePopups(this.popups)}changeFlag(e){this.akomaNtosoElement&&this.akomaNtosoElement.classList.toggle("flag-internal-refs",e)}changePopups(e){for(const e of this.tippies)e.destroy();this.tippies=[],this.akomaNtosoElement&&e&&this.createPopups()}createPopups(){this.tippies=Sf('a.akn-ref[href^="#"]',{appendTo:()=>this.tippyContainer,allowHTML:!0,hideOnClick:!0,interactive:!0,maxWidth:450,onTrigger:this.onTrigger.bind(this),theme:"light-border"})}async onTrigger(e){if(this.akomaNtosoElement){const t=e.reference.getAttribute("href")||"";let n="",o=null;try{o=this.akomaNtosoElement.querySelector(t)}catch(e){console.log(e)}o?n=o.outerHTML:this.fetch&&(n=await this.fetchContent(t.slice(1))),n&&e.setContent(`\n
    \n
    ${n}
    \n
    `)}}async fetchContent(e){if(this.ensurePartner(),this.provider&&this.akomaNtosoElement){const t=this.akomaNtosoElement.getAttribute("frbr-expression-uri");if(t){const n=this.provider+"/p/"+this.partner+"/e/portion"+function(e,t){const n=e.indexOf("~");return n>-1&&(e=e.slice(0,n)),e.endsWith("/")||(e+="/"),e+t}(t,"~"+e);try{const e=await fetch(n);if(e.ok)return await e.text()}catch(e){}}}return null}ensurePartner(){this.partner||(this.partner=jd())}get el(){return this}static get watchers(){return{flag:["changeFlag"],popups:["changePopups"]}}static get style(){return'.la-decorate-internal-refs__popup{position:relative}.la-decorate-internal-refs__popup .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.la-decorate-internal-refs__popup [data-tippy-root]{max-width:calc(100vw - 10px)}.la-decorate-internal-refs__popup .tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform}.la-decorate-internal-refs__popup .tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.la-decorate-internal-refs__popup .tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;-webkit-transform-origin:center top;transform-origin:center top}.la-decorate-internal-refs__popup .tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.la-decorate-internal-refs__popup .tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;-webkit-transform-origin:center bottom;transform-origin:center bottom}.la-decorate-internal-refs__popup .tippy-box[data-placement^=left]>.tippy-arrow{right:0}.la-decorate-internal-refs__popup .tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;-webkit-transform-origin:center left;transform-origin:center left}.la-decorate-internal-refs__popup .tippy-box[data-placement^=right]>.tippy-arrow{left:0}.la-decorate-internal-refs__popup .tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;-webkit-transform-origin:center right;transform-origin:center right}.la-decorate-internal-refs__popup .tippy-box[data-inertia][data-state=visible]{-webkit-transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11);transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11)}.la-decorate-internal-refs__popup .tippy-arrow{width:16px;height:16px;color:#333}.la-decorate-internal-refs__popup .tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.la-decorate-internal-refs__popup .tippy-content{position:relative;padding:5px 9px;z-index:1}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]{background-color:#fff;background-clip:padding-box;border:1px solid rgba(0, 8, 16, 0.15);color:#333;-webkit-box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08);box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08)}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-backdrop{background-color:#fff}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after,.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{content:"";position:absolute;z-index:-1}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after{border-color:transparent;border-style:solid}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:after{border-top-color:rgba(0, 8, 16, 0.2);border-width:7px 7px 0;top:17px;left:1px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow>svg{top:16px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow:after{top:17px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff;bottom:16px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:after{border-bottom-color:rgba(0, 8, 16, 0.2);border-width:0 7px 7px;bottom:17px;left:1px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow:after{bottom:17px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:after{border-left-color:rgba(0, 8, 16, 0.2);border-width:7px 0 7px 7px;left:17px;top:1px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow>svg{left:11px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow:after{left:12px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff;right:16px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:after{border-width:7px 7px 7px 0;right:17px;top:1px;border-right-color:rgba(0, 8, 16, 0.2)}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow>svg{right:11px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow:after{right:12px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow{fill:#fff}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA2czEuNzk2LS4wMTMgNC42Ny0zLjYxNUM1Ljg1MS45IDYuOTMuMDA2IDggMGMxLjA3LS4wMDYgMi4xNDguODg3IDMuMzQzIDIuMzg1QzE0LjIzMyA2LjAwNSAxNiA2IDE2IDZIMHoiIGZpbGw9InJnYmEoMCwgOCwgMTYsIDAuMikiLz48L3N2Zz4=);background-size:16px 6px;width:16px;height:6px}.la-decorate-internal-refs__popup .tippy-content{padding:0}.la-decorate-internal-refs__popup .tippy-content__title{padding:0.5rem 0.75rem;margin-bottom:0;font-size:1rem;font-weight:bold;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(0.3rem - 1px);border-top-right-radius:calc(0.3rem - 1px);background-color:#f7f7f7}.la-decorate-internal-refs__popup .tippy-content__body{padding:0.5rem 0.75rem;background-color:white}.la-decorate-internal-refs__popup .tippy-content la-akoma-ntoso{max-height:40vh;overflow-y:auto}la-akoma-ntoso.flag-internal-refs .akn-ref[href^="#"]::after{display:inline-block;content:"";vertical-align:-0.125em;background-image:url("data:image/svg+xml,");background-repeat:no-repeat;width:0.8rem;height:0.8rem}'}},[0,"la-decorate-internal-refs",{akomaNtoso:[1,"akoma-ntoso"],popups:[4],flag:[4],fetch:[1540],partner:[1537],provider:[1]},void 0,{flag:["changeFlag"],popups:["changePopups"]}]);"undefined"!=typeof customElements&&["la-decorate-internal-refs"].forEach((e=>{"la-decorate-internal-refs"===e&&(customElements.get(e)||customElements.define(e,Cf))}));const Tf=Rd(class extends Su{constructor(){super(),this.__registerHost(),this.defnContainers=".akn-p, .akn-subsection, .akn-section, .akn-blockList",this.tippies=[],this.akomaNtoso=void 0,this.popupDefinitions=!1,this.linkTerms=!1}componentWillLoad(){const e=new bp(this.el,this.akomaNtoso,(()=>{this.componentDidLoad()}));this.akomaNtosoElement=e.getElement(),this.tippyContainer=document.createElement("div"),this.tippyContainer.className="la-decorate-terms__popup",document.body.appendChild(this.tippyContainer)}componentDidLoad(){this.akomaNtosoElement&&(this.setupDefinitions(),this.linkTerms&&this.makeTermLinks(),this.changePopupDefinitions(this.popupDefinitions))}changePopupDefinitions(e){for(const e of this.tippies)e.destroy();this.tippies=[],this.akomaNtosoElement&&e&&this.createPopups(),this.toggleCssClasses()}changeLinkTerms(){this.toggleCssClasses()}toggleCssClasses(){this.akomaNtosoElement&&(this.akomaNtosoElement.classList.toggle("show-terms",this.linkTerms||this.popupDefinitions),this.akomaNtosoElement.classList.toggle("link-terms",this.linkTerms))}setupDefinitions(){this.akomaNtosoElement&&Array.from(this.akomaNtosoElement.querySelectorAll(".akn-def[data-refersto]")).forEach((e=>{var t;const n=null===(t=e.getAttribute("data-refersto"))||void 0===t?void 0:t.replace("#",""),o=e.closest(this.defnContainers);o&&n&&(o.dataset.defines=e.dataset.refersto,o.setAttribute("id",`defn-${n}`))}))}createPopups(){this.tippies=Sf(this.akomaNtosoElement.querySelectorAll(".akn-term"),{appendTo:()=>this.tippyContainer,allowHTML:!0,content:"",hideOnClick:!0,interactive:!0,maxWidth:450,onTrigger:this.onTrigger.bind(this),theme:"light-border"})}onTrigger(e){const t=e.reference,n=this.getDefinition(t);n&&e.setContent(`\n
    \n
    ${t.innerText}
    \n
    ${n.outerHTML}
    \n
    `)}getDefinition(e){const t=e.getAttribute("data-refersto");if(this.akomaNtosoElement)try{return this.akomaNtosoElement.querySelector(`[data-defines="${t}"]`)}catch(e){console.log(e)}return null}makeTermLinks(){this.akomaNtosoElement&&this.akomaNtosoElement.addEventListener("click",(e=>{if(e.target&&e.target instanceof Su){const t=e.target;if(t.classList.contains("akn-term")){const e=(t.dataset.refersto||"").replace("#","");e&&(window.location.hash=`#defn-${e}`)}}}))}get el(){return this}static get watchers(){return{popupDefinitions:["changePopupDefinitions"],linkTerms:["changeLinkTerms"]}}static get style(){return'.la-decorate-terms__popup{position:relative}.la-decorate-terms__popup .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.la-decorate-terms__popup [data-tippy-root]{max-width:calc(100vw - 10px)}.la-decorate-terms__popup .tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform}.la-decorate-terms__popup .tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.la-decorate-terms__popup .tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;-webkit-transform-origin:center top;transform-origin:center top}.la-decorate-terms__popup .tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.la-decorate-terms__popup .tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;-webkit-transform-origin:center bottom;transform-origin:center bottom}.la-decorate-terms__popup .tippy-box[data-placement^=left]>.tippy-arrow{right:0}.la-decorate-terms__popup .tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;-webkit-transform-origin:center left;transform-origin:center left}.la-decorate-terms__popup .tippy-box[data-placement^=right]>.tippy-arrow{left:0}.la-decorate-terms__popup .tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;-webkit-transform-origin:center right;transform-origin:center right}.la-decorate-terms__popup .tippy-box[data-inertia][data-state=visible]{-webkit-transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11);transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11)}.la-decorate-terms__popup .tippy-arrow{width:16px;height:16px;color:#333}.la-decorate-terms__popup .tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.la-decorate-terms__popup .tippy-content{position:relative;padding:5px 9px;z-index:1}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]{background-color:#fff;background-clip:padding-box;border:1px solid rgba(0, 8, 16, 0.15);color:#333;-webkit-box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08);box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08)}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-backdrop{background-color:#fff}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after,.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{content:"";position:absolute;z-index:-1}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after{border-color:transparent;border-style:solid}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:after{border-top-color:rgba(0, 8, 16, 0.2);border-width:7px 7px 0;top:17px;left:1px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow>svg{top:16px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow:after{top:17px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff;bottom:16px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:after{border-bottom-color:rgba(0, 8, 16, 0.2);border-width:0 7px 7px;bottom:17px;left:1px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow:after{bottom:17px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:after{border-left-color:rgba(0, 8, 16, 0.2);border-width:7px 0 7px 7px;left:17px;top:1px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow>svg{left:11px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow:after{left:12px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff;right:16px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:after{border-width:7px 7px 7px 0;right:17px;top:1px;border-right-color:rgba(0, 8, 16, 0.2)}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow>svg{right:11px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow:after{right:12px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow{fill:#fff}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA2czEuNzk2LS4wMTMgNC42Ny0zLjYxNUM1Ljg1MS45IDYuOTMuMDA2IDggMGMxLjA3LS4wMDYgMi4xNDguODg3IDMuMzQzIDIuMzg1QzE0LjIzMyA2LjAwNSAxNiA2IDE2IDZIMHoiIGZpbGw9InJnYmEoMCwgOCwgMTYsIDAuMikiLz48L3N2Zz4=);background-size:16px 6px;width:16px;height:6px}.la-decorate-terms__popup .tippy-content{padding:0}.la-decorate-terms__popup .tippy-content__title{padding:0.5rem 0.75rem;margin-bottom:0;font-size:1rem;font-weight:bold;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(0.3rem - 1px);border-top-right-radius:calc(0.3rem - 1px);background-color:#f7f7f7}.la-decorate-terms__popup .tippy-content__body{padding:0.5rem 0.75rem;background-color:white}.la-decorate-terms__popup .tippy-content la-akoma-ntoso{max-height:40vh;overflow-y:auto}la-akoma-ntoso.show-terms .akn-term{-webkit-text-decoration:underline dotted 1px;text-decoration:underline dotted 1px}la-akoma-ntoso.link-terms .akn-term{cursor:pointer}'}},[0,"la-decorate-terms",{akomaNtoso:[1,"akoma-ntoso"],popupDefinitions:[4,"popup-definitions"],linkTerms:[4,"link-terms"]},void 0,{popupDefinitions:["changePopupDefinitions"],linkTerms:["changeLinkTerms"]}]);"undefined"!=typeof customElements&&["la-decorate-terms"].forEach((e=>{"la-decorate-terms"===e&&(customElements.get(e)||customElements.define(e,Tf))}));var Ef=function(){return Ef=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0&&t.every((function(e){return""===e.filename})))return null}catch(e){}return e}})},e.prototype.setupTooltips=function(){document.querySelectorAll('[data-bs-toggle="tooltip"]').forEach((function(e){new window.bootstrap.Tooltip(e)}))},e.prototype.setupPopovers=function(){document.querySelectorAll('[data-bs-toggle="help-popover"]').forEach((function(e){var t,n=new window.bootstrap.Popover(e,{html:!0,content:"\n ".concat(e.getAttribute("data-bs-content"),'\n \n "),container:"body"});e.addEventListener("inserted.bs.popover",(function(e){var t=document.querySelector(".popover-body"),o=function(e){(null==t?void 0:t.contains(e.target))||(n.hide(),document.removeEventListener("click",o))};document.addEventListener("click",o)}))}))},e.prototype.scrollNavTabs=function(){document.querySelectorAll(".nav.nav-tabs.scroll-xs > .nav-item > .nav-link.active").forEach((function(e){e.parentElement&&e.parentElement.parentElement&&(e.parentElement.parentElement.scrollLeft=e.offsetLeft)}))},e.prototype.clearGACookies=function(){if(!window.dataLayer){var e=[];try{e=document.cookie.split(";")}catch(e){return}for(var t=0;t-1?n.substring(0,o):n;r.trim().startsWith("_ga")&&(document.cookie="".concat(r,"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=.").concat(window.location.hostname))}}},e}());var Pf=__webpack_require__(7701),Df=__webpack_require__(7824),Mf=__webpack_require__(6896),Lf=__webpack_require__(6531),Rf=__webpack_require__(2372),If=__webpack_require__(5228),Ff=__webpack_require__(9892),Nf=__webpack_require__(2122),jf=__webpack_require__(7421),$f=__webpack_require__(3920),Uf=__webpack_require__(8240),qf=__webpack_require__(9966),Bf=__webpack_require__(804),zf=[Rf.Z,jf.Z,Lf.Z,Df.Z],Vf=(0,Uf.kZ)({defaultModifiers:zf});const Hf=new Map,Wf={set(e,t,n){Hf.has(e)||Hf.set(e,new Map);const o=Hf.get(e);o.has(t)||0===o.size?o.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(o.keys())[0]}.`)},get:(e,t)=>Hf.has(e)&&Hf.get(e).get(t)||null,remove(e,t){if(!Hf.has(e))return;const n=Hf.get(e);n.delete(t),0===n.size&&Hf.delete(e)}},Gf="transitionend",Yf=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),Jf=e=>{e.dispatchEvent(new Event(Gf))},Zf=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),Xf=e=>Zf(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(Yf(e)):null,Kf=e=>{if(!Zf(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const t=e.closest("summary");if(t&&t.parentNode!==n)return!1;if(null===t)return!1}return t},Qf=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),em=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?em(e.parentNode):null},tm=()=>{},nm=e=>{e.offsetHeight},om=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,rm=[],am=()=>"rtl"===document.documentElement.dir,im=e=>{var t;t=()=>{const t=om();if(t){const n=e.NAME,o=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=o,e.jQueryInterface)}},"loading"===document.readyState?(rm.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of rm)e()})),rm.push(t)):t()},sm=(e,t=[],n=e)=>"function"==typeof e?e(...t):n,lm=(e,t,n=!0)=>{if(!n)return void sm(e);const o=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const o=Number.parseFloat(t),r=Number.parseFloat(n);return o||r?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(t)+5;let r=!1;const a=({target:n})=>{n===t&&(r=!0,t.removeEventListener(Gf,a),sm(e))};t.addEventListener(Gf,a),setTimeout((()=>{r||Jf(t)}),o)},cm=(e,t,n,o)=>{const r=e.length;let a=e.indexOf(t);return-1===a?!n&&o?e[r-1]:e[0]:(a+=n?1:-1,o&&(a=(a+r)%r),e[Math.max(0,Math.min(a,r-1))])},um=/[^.]*(?=\..*)\.|.*/,dm=/\..*/,pm=/::\d+$/,hm={};let fm=1;const mm={mouseenter:"mouseover",mouseleave:"mouseout"},gm=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function bm(e,t){return t&&`${t}::${fm++}`||e.uidEvent||fm++}function vm(e){const t=bm(e);return e.uidEvent=t,hm[t]=hm[t]||{},hm[t]}function ym(e,t,n=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===n))}function _m(e,t,n){const o="string"==typeof t,r=o?n:t||n;let a=Sm(e);return gm.has(a)||(a=e),[o,r,a]}function km(e,t,n,o,r){if("string"!=typeof t||!e)return;let[a,i,s]=_m(t,n,o);if(t in mm){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};i=e(i)}const l=vm(e),c=l[s]||(l[s]={}),u=ym(c,i,a?n:null);if(u)return void(u.oneOff=u.oneOff&&r);const d=bm(i,t.replace(um,"")),p=a?function(e,t,n){return function o(r){const a=e.querySelectorAll(t);for(let{target:i}=r;i&&i!==this;i=i.parentNode)for(const s of a)if(s===i)return Cm(r,{delegateTarget:i}),o.oneOff&&Am.off(e,r.type,t,n),n.apply(i,[r])}}(e,n,i):function(e,t){return function n(o){return Cm(o,{delegateTarget:e}),n.oneOff&&Am.off(e,o.type,t),t.apply(e,[o])}}(e,i);p.delegationSelector=a?n:null,p.callable=i,p.oneOff=r,p.uidEvent=d,c[d]=p,e.addEventListener(s,p,a)}function wm(e,t,n,o,r){const a=ym(t[n],o,r);a&&(e.removeEventListener(n,a,Boolean(r)),delete t[n][a.uidEvent])}function xm(e,t,n,o){const r=t[n]||{};for(const[a,i]of Object.entries(r))a.includes(o)&&wm(e,t,n,i.callable,i.delegationSelector)}function Sm(e){return e=e.replace(dm,""),mm[e]||e}const Am={on(e,t,n,o){km(e,t,n,o,!1)},one(e,t,n,o){km(e,t,n,o,!0)},off(e,t,n,o){if("string"!=typeof t||!e)return;const[r,a,i]=_m(t,n,o),s=i!==t,l=vm(e),c=l[i]||{},u=t.startsWith(".");if(void 0===a){if(u)for(const n of Object.keys(l))xm(e,l,n,t.slice(1));for(const[n,o]of Object.entries(c)){const r=n.replace(pm,"");s&&!t.includes(r)||wm(e,l,i,o.callable,o.delegationSelector)}}else{if(!Object.keys(c).length)return;wm(e,l,i,a,r?n:null)}},trigger(e,t,n){if("string"!=typeof t||!e)return null;const o=om();let r=null,a=!0,i=!0,s=!1;t!==Sm(t)&&o&&(r=o.Event(t,n),o(e).trigger(r),a=!r.isPropagationStopped(),i=!r.isImmediatePropagationStopped(),s=r.isDefaultPrevented());const l=Cm(new Event(t,{bubbles:a,cancelable:!0}),n);return s&&l.preventDefault(),i&&e.dispatchEvent(l),l.defaultPrevented&&r&&r.preventDefault(),l}};function Cm(e,t={}){for(const[n,o]of Object.entries(t))try{e[n]=o}catch(t){Object.defineProperty(e,n,{configurable:!0,get:()=>o})}return e}function Tm(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function Em(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const Om={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${Em(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${Em(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const o of n){let n=o.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=Tm(e.dataset[o])}return t},getDataAttribute:(e,t)=>Tm(e.getAttribute(`data-bs-${Em(t)}`))};class Pm{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const n=Zf(t)?Om.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...Zf(t)?Om.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[o,r]of Object.entries(t)){const t=e[o],a=Zf(t)?"element":null==(n=t)?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(r).test(a))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${o}" provided type "${a}" but expected type "${r}".`)}var n}}class Dm extends Pm{constructor(e,t){super(),(e=Xf(e))&&(this._element=e,this._config=this._getConfig(t),Wf.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Wf.remove(this._element,this.constructor.DATA_KEY),Am.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){lm(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Wf.get(Xf(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.1"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const Mm=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&"#"!==n?n.trim():null}return Yf(t)},Lm={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const n=[];let o=e.parentNode.closest(t);for(;o;)n.push(o),o=o.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!Qf(e)&&Kf(e)))},getSelectorFromElement(e){const t=Mm(e);return t&&Lm.findOne(t)?t:null},getElementFromSelector(e){const t=Mm(e);return t?Lm.findOne(t):null},getMultipleElementsFromSelector(e){const t=Mm(e);return t?Lm.find(t):[]}},Rm=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,o=e.NAME;Am.on(document,n,`[data-bs-dismiss="${o}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Qf(this))return;const r=Lm.getElementFromSelector(this)||this.closest(`.${o}`);e.getOrCreateInstance(r)[t]()}))};class Im extends Dm{static get NAME(){return"alert"}close(){if(Am.trigger(this._element,"close.bs.alert").defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),Am.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=Im.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}Rm(Im,"close"),im(Im);const Fm='[data-bs-toggle="button"]';class Nm extends Dm{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=Nm.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}Am.on(document,"click.bs.button.data-api",Fm,(e=>{e.preventDefault();const t=e.target.closest(Fm);Nm.getOrCreateInstance(t).toggle()})),im(Nm);const jm={endCallback:null,leftCallback:null,rightCallback:null},$m={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Um extends Pm{constructor(e,t){super(),this._element=e,e&&Um.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return jm}static get DefaultType(){return $m}static get NAME(){return"swipe"}dispose(){Am.off(this._element,".bs.swipe")}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),sm(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&sm(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(Am.on(this._element,"pointerdown.bs.swipe",(e=>this._start(e))),Am.on(this._element,"pointerup.bs.swipe",(e=>this._end(e))),this._element.classList.add("pointer-event")):(Am.on(this._element,"touchstart.bs.swipe",(e=>this._start(e))),Am.on(this._element,"touchmove.bs.swipe",(e=>this._move(e))),Am.on(this._element,"touchend.bs.swipe",(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const qm="next",Bm="prev",zm="left",Vm="right",Hm="slid.bs.carousel",Wm="carousel",Gm="active",Ym={ArrowLeft:Vm,ArrowRight:zm},Jm={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Zm={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Xm extends Dm{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Lm.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===Wm&&this.cycle()}static get Default(){return Jm}static get DefaultType(){return Zm}static get NAME(){return"carousel"}next(){this._slide(qm)}nextWhenVisible(){!document.hidden&&Kf(this._element)&&this.next()}prev(){this._slide(Bm)}pause(){this._isSliding&&Jf(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?Am.one(this._element,Hm,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void Am.one(this._element,Hm,(()=>this.to(e)));const n=this._getItemIndex(this._getActive());if(n===e)return;const o=e>n?qm:Bm;this._slide(o,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&Am.on(this._element,"keydown.bs.carousel",(e=>this._keydown(e))),"hover"===this._config.pause&&(Am.on(this._element,"mouseenter.bs.carousel",(()=>this.pause())),Am.on(this._element,"mouseleave.bs.carousel",(()=>this._maybeEnableCycle()))),this._config.touch&&Um.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of Lm.find(".carousel-item img",this._element))Am.on(e,"dragstart.bs.carousel",(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(zm)),rightCallback:()=>this._slide(this._directionToOrder(Vm)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new Um(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=Ym[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=Lm.findOne(".active",this._indicatorsElement);t.classList.remove(Gm),t.removeAttribute("aria-current");const n=Lm.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(Gm),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const n=this._getActive(),o=e===qm,r=t||cm(this._getItems(),n,o,this._config.wrap);if(r===n)return;const a=this._getItemIndex(r),i=t=>Am.trigger(this._element,t,{relatedTarget:r,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:a});if(i("slide.bs.carousel").defaultPrevented)return;if(!n||!r)return;const s=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=r;const l=o?"carousel-item-start":"carousel-item-end",c=o?"carousel-item-next":"carousel-item-prev";r.classList.add(c),nm(r),n.classList.add(l),r.classList.add(l),this._queueCallback((()=>{r.classList.remove(l,c),r.classList.add(Gm),n.classList.remove(Gm,c,l),this._isSliding=!1,i(Hm)}),n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return Lm.findOne(".active.carousel-item",this._element)}_getItems(){return Lm.find(".carousel-item",this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return am()?e===zm?Bm:qm:e===zm?qm:Bm}_orderToDirection(e){return am()?e===Bm?zm:Vm:e===Bm?Vm:zm}static jQueryInterface(e){return this.each((function(){const t=Xm.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}Am.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",(function(e){const t=Lm.getElementFromSelector(this);if(!t||!t.classList.contains(Wm))return;e.preventDefault();const n=Xm.getOrCreateInstance(t),o=this.getAttribute("data-bs-slide-to");return o?(n.to(o),void n._maybeEnableCycle()):"next"===Om.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())})),Am.on(window,"load.bs.carousel.data-api",(()=>{const e=Lm.find('[data-bs-ride="carousel"]');for(const t of e)Xm.getOrCreateInstance(t)})),im(Xm);const Km="show",Qm="collapse",eg="collapsing",tg='[data-bs-toggle="collapse"]',ng={parent:null,toggle:!0},og={parent:"(null|element)",toggle:"boolean"};class rg extends Dm{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=Lm.find(tg);for(const e of n){const t=Lm.getSelectorFromElement(e),n=Lm.find(t).filter((e=>e===this._element));null!==t&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ng}static get DefaultType(){return og}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>rg.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(Am.trigger(this._element,"show.bs.collapse").defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(Qm),this._element.classList.add(eg),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(eg),this._element.classList.add(Qm,Km),this._element.style[t]="",Am.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[t]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(Am.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,nm(this._element),this._element.classList.add(eg),this._element.classList.remove(Qm,Km);for(const e of this._triggerArray){const t=Lm.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(eg),this._element.classList.add(Qm),Am.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(Km)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=Xf(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(tg);for(const t of e){const e=Lm.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=Lm.find(":scope .collapse .collapse",this._config.parent);return Lm.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const n=rg.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}))}}Am.on(document,"click.bs.collapse.data-api",tg,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of Lm.getMultipleElementsFromSelector(this))rg.getOrCreateInstance(e,{toggle:!1}).toggle()})),im(rg);const ag="dropdown",ig="ArrowUp",sg="ArrowDown",lg="click.bs.dropdown.data-api",cg="keydown.bs.dropdown.data-api",ug="show",dg='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',pg=`${dg}.show`,hg=".dropdown-menu",fg=am()?"top-end":"top-start",mg=am()?"top-start":"top-end",gg=am()?"bottom-end":"bottom-start",bg=am()?"bottom-start":"bottom-end",vg=am()?"left-start":"right-start",yg=am()?"right-start":"left-start",_g={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},kg={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class wg extends Dm{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=Lm.next(this._element,hg)[0]||Lm.prev(this._element,hg)[0]||Lm.findOne(hg,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return _g}static get DefaultType(){return kg}static get NAME(){return ag}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Qf(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!Am.trigger(this._element,"show.bs.dropdown",e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))Am.on(e,"mouseover",tm);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(ug),this._element.classList.add(ug),Am.trigger(this._element,"shown.bs.dropdown",e)}}hide(){if(Qf(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!Am.trigger(this._element,"hide.bs.dropdown",e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))Am.off(e,"mouseover",tm);this._popper&&this._popper.destroy(),this._menu.classList.remove(ug),this._element.classList.remove(ug),this._element.setAttribute("aria-expanded","false"),Om.removeDataAttribute(this._menu,"popper"),Am.trigger(this._element,"hidden.bs.dropdown",e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!Zf(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${ag.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===e)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:Zf(this._config.reference)?t=Xf(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const n=this._getPopperConfig();this._popper=Bf.fi(t,this._menu,n)}_isShown(){return this._menu.classList.contains(ug)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return vg;if(e.classList.contains("dropstart"))return yg;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?mg:fg:t?bg:gg}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(Om.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...sm(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const n=Lm.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>Kf(e)));n.length&&cm(n,t,e===sg,!n.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=wg.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=Lm.find(pg);for(const n of t){const t=wg.getInstance(n);if(!t||!1===t._config.autoClose)continue;const o=e.composedPath(),r=o.includes(t._menu);if(o.includes(t._element)||"inside"===t._config.autoClose&&!r||"outside"===t._config.autoClose&&r)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:t._element};"click"===e.type&&(a.clickEvent=e),t._completeHide(a)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,o=[ig,sg].includes(e.key);if(!o&&!n)return;if(t&&!n)return;e.preventDefault();const r=this.matches(dg)?this:Lm.prev(this,dg)[0]||Lm.next(this,dg)[0]||Lm.findOne(dg,e.delegateTarget.parentNode),a=wg.getOrCreateInstance(r);if(o)return e.stopPropagation(),a.show(),void a._selectMenuItem(e);a._isShown()&&(e.stopPropagation(),a.hide(),r.focus())}}Am.on(document,cg,dg,wg.dataApiKeydownHandler),Am.on(document,cg,hg,wg.dataApiKeydownHandler),Am.on(document,lg,wg.clearMenus),Am.on(document,"keyup.bs.dropdown.data-api",wg.clearMenus),Am.on(document,lg,dg,(function(e){e.preventDefault(),wg.getOrCreateInstance(this).toggle()})),im(wg);const xg="show",Sg="mousedown.bs.backdrop",Ag={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Cg={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Tg extends Pm{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Ag}static get DefaultType(){return Cg}static get NAME(){return"backdrop"}show(e){if(!this._config.isVisible)return void sm(e);this._append();const t=this._getElement();this._config.isAnimated&&nm(t),t.classList.add(xg),this._emulateAnimation((()=>{sm(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(xg),this._emulateAnimation((()=>{this.dispose(),sm(e)}))):sm(e)}dispose(){this._isAppended&&(Am.off(this._element,Sg),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=Xf(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),Am.on(e,Sg,(()=>{sm(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){lm(e,this._getElement(),this._config.isAnimated)}}const Eg=".bs.focustrap",Og="backward",Pg={autofocus:!0,trapElement:null},Dg={autofocus:"boolean",trapElement:"element"};class Mg extends Pm{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Pg}static get DefaultType(){return Dg}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),Am.off(document,Eg),Am.on(document,"focusin.bs.focustrap",(e=>this._handleFocusin(e))),Am.on(document,"keydown.tab.bs.focustrap",(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,Am.off(document,Eg))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const n=Lm.focusableChildren(t);0===n.length?t.focus():this._lastTabNavDirection===Og?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?Og:"forward")}}const Lg=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Rg=".sticky-top",Ig="padding-right",Fg="margin-right";class Ng{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Ig,(t=>t+e)),this._setElementAttributes(Lg,Ig,(t=>t+e)),this._setElementAttributes(Rg,Fg,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Ig),this._resetElementAttributes(Lg,Ig),this._resetElementAttributes(Rg,Fg)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const o=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+o)return;this._saveInitialAttribute(e,t);const r=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(r))}px`)}))}_saveInitialAttribute(e,t){const n=e.style.getPropertyValue(t);n&&Om.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const n=Om.getDataAttribute(e,t);null!==n?(Om.removeDataAttribute(e,t),e.style.setProperty(t,n)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(Zf(e))t(e);else for(const n of Lm.find(e,this._element))t(n)}}const jg=".bs.modal",$g="hidden.bs.modal",Ug="show.bs.modal",qg="modal-open",Bg="show",zg="modal-static",Vg={backdrop:!0,focus:!0,keyboard:!0},Hg={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Wg extends Dm{constructor(e,t){super(e,t),this._dialog=Lm.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Ng,this._addEventListeners()}static get Default(){return Vg}static get DefaultType(){return Hg}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||Am.trigger(this._element,Ug,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(qg),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){this._isShown&&!this._isTransitioning&&(Am.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Bg),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){Am.off(window,jg),Am.off(this._dialog,jg),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Tg({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Mg({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=Lm.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),nm(this._element),this._element.classList.add(Bg),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,Am.trigger(this._element,"shown.bs.modal",{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){Am.on(this._element,"keydown.dismiss.bs.modal",(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),Am.on(window,"resize.bs.modal",(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),Am.on(this._element,"mousedown.dismiss.bs.modal",(e=>{Am.one(this._element,"click.dismiss.bs.modal",(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(qg),this._resetAdjustments(),this._scrollBar.reset(),Am.trigger(this._element,$g)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(Am.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(zg)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(zg),this._queueCallback((()=>{this._element.classList.remove(zg),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){const e=am()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!n&&e){const e=am()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const n=Wg.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}}))}}Am.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(e){const t=Lm.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),Am.one(t,Ug,(e=>{e.defaultPrevented||Am.one(t,$g,(()=>{Kf(this)&&this.focus()}))}));const n=Lm.findOne(".modal.show");n&&Wg.getInstance(n).hide(),Wg.getOrCreateInstance(t).toggle(this)})),Rm(Wg),im(Wg);const Gg="show",Yg="showing",Jg="hiding",Zg=".offcanvas.show",Xg="hidePrevented.bs.offcanvas",Kg="hidden.bs.offcanvas",Qg={backdrop:!0,keyboard:!0,scroll:!1},eb={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class tb extends Dm{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Qg}static get DefaultType(){return eb}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||Am.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Ng).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Yg),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Gg),this._element.classList.remove(Yg),Am.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})}),this._element,!0))}hide(){this._isShown&&(Am.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Jg),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(Gg,Jg),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Ng).reset(),Am.trigger(this._element,Kg)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Tg({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():Am.trigger(this._element,Xg)}:null})}_initializeFocusTrap(){return new Mg({trapElement:this._element})}_addEventListeners(){Am.on(this._element,"keydown.dismiss.bs.offcanvas",(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():Am.trigger(this._element,Xg))}))}static jQueryInterface(e){return this.each((function(){const t=tb.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}Am.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(e){const t=Lm.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),Qf(this))return;Am.one(t,Kg,(()=>{Kf(this)&&this.focus()}));const n=Lm.findOne(Zg);n&&n!==t&&tb.getInstance(n).hide(),tb.getOrCreateInstance(t).toggle(this)})),Am.on(window,"load.bs.offcanvas.data-api",(()=>{for(const e of Lm.find(Zg))tb.getOrCreateInstance(e).show()})),Am.on(window,"resize.bs.offcanvas",(()=>{for(const e of Lm.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&tb.getOrCreateInstance(e).hide()})),Rm(tb),im(tb);const nb={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},ob=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),rb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,ab=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?!ob.has(n)||Boolean(rb.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(n)))},ib={allowList:nb,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
    "},sb={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},lb={entry:"(string|element|function|null)",selector:"(string|element)"};class cb extends Pm{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return ib}static get DefaultType(){return sb}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},lb)}_setContent(e,t,n){const o=Lm.findOne(n,e);o&&((t=this._resolvePossibleFunction(t))?Zf(t)?this._putElementInTemplate(Xf(t),o):this._config.html?o.innerHTML=this._maybeSanitize(t):o.textContent=t:o.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,n){if(!e.length)return e;if(n&&"function"==typeof n)return n(e);const o=(new window.DOMParser).parseFromString(e,"text/html"),r=[].concat(...o.body.querySelectorAll("*"));for(const e of r){const n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}const o=[].concat(...e.attributes),r=[].concat(t["*"]||[],t[n]||[]);for(const t of o)ab(t,r)||e.removeAttribute(t.nodeName)}return o.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return sm(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const ub=new Set(["sanitize","allowList","sanitizeFn"]),db="fade",pb="show",hb=".modal",fb="hide.bs.modal",mb="hover",gb="focus",bb={AUTO:"auto",TOP:"top",RIGHT:am()?"left":"right",BOTTOM:"bottom",LEFT:am()?"right":"left"},vb={allowList:nb,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},yb={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class _b extends Dm{constructor(t,n){if(void 0===e)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return vb}static get DefaultType(){return yb}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),Am.off(this._element.closest(hb),fb,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=Am.trigger(this._element,this.constructor.eventName("show")),t=(em(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:o}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(o.append(n),Am.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(pb),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))Am.on(e,"mouseover",tm);this._queueCallback((()=>{Am.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!Am.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(pb),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))Am.off(e,"mouseover",tm);this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),Am.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(db,pb),t.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(db),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new cb({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(db)}_isShown(){return this.tip&&this.tip.classList.contains(pb)}_createPopper(e){const t=sm(this._config.placement,[this,e,this._element]),n=bb[t.toUpperCase()];return Bf.fi(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return sm(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...sm(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)Am.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{this._initializeOnDelegatedTarget(e).toggle()}));else if("manual"!==t){const e=t===mb?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=t===mb?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");Am.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?gb:mb]=!0,t._enter()})),Am.on(this._element,n,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?gb:mb]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},Am.on(this._element.closest(hb),fb,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=Om.getDataAttributes(this._element);for(const e of Object.keys(t))ub.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:Xf(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const t=_b.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}im(_b);const kb={..._b.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},wb={..._b.DefaultType,content:"(null|string|element|function)"};class xb extends _b{static get Default(){return kb}static get DefaultType(){return wb}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=xb.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}im(xb);const Sb="click.bs.scrollspy",Ab="active",Cb="[href]",Tb={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Eb={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ob extends Dm{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Tb}static get DefaultType(){return Eb}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=Xf(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map((e=>Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(Am.off(this._config.target,Sb),Am.on(this._config.target,Sb,Cb,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const n=this._rootElement||window,o=t.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:o,behavior:"smooth"});n.scrollTop=o}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},o=(this._rootElement||document.documentElement).scrollTop,r=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(const a of e){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(a));continue}const e=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(r&&e){if(n(a),!o)return}else r||e||n(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Lm.find(Cb,this._config.target);for(const t of e){if(!t.hash||Qf(t))continue;const e=Lm.findOne(decodeURI(t.hash),this._element);Kf(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Ab),this._activateParents(e),Am.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))Lm.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(Ab);else for(const t of Lm.parents(e,".nav, .list-group"))for(const e of Lm.prev(t,".nav-link, .nav-item > .nav-link, .list-group-item"))e.classList.add(Ab)}_clearActiveClass(e){e.classList.remove(Ab);const t=Lm.find("[href].active",e);for(const e of t)e.classList.remove(Ab)}static jQueryInterface(e){return this.each((function(){const t=Ob.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Am.on(window,"load.bs.scrollspy.data-api",(()=>{for(const e of Lm.find('[data-bs-spy="scroll"]'))Ob.getOrCreateInstance(e)})),im(Ob);const Pb="ArrowLeft",Db="ArrowRight",Mb="ArrowUp",Lb="ArrowDown",Rb="Home",Ib="End",Fb="active",Nb="fade",jb="show",$b='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Ub=`.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), ${$b}`;class qb extends Dm{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),Am.on(this._element,"keydown.bs.tab",(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),n=t?Am.trigger(t,"hide.bs.tab",{relatedTarget:e}):null;Am.trigger(e,"show.bs.tab",{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(Fb),this._activate(Lm.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),Am.trigger(e,"shown.bs.tab",{relatedTarget:t})):e.classList.add(jb)}),e,e.classList.contains(Nb)))}_deactivate(e,t){e&&(e.classList.remove(Fb),e.blur(),this._deactivate(Lm.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),Am.trigger(e,"hidden.bs.tab",{relatedTarget:t})):e.classList.remove(jb)}),e,e.classList.contains(Nb)))}_keydown(e){if(![Pb,Db,Mb,Lb,Rb,Ib].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e=>!Qf(e)));let n;if([Rb,Ib].includes(e.key))n=t[e.key===Rb?0:t.length-1];else{const o=[Db,Lb].includes(e.key);n=cm(t,e.target,o,!0)}n&&(n.focus({preventScroll:!0}),qb.getOrCreateInstance(n).show())}_getChildren(){return Lm.find(Ub,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=Lm.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const n=this._getOuterElement(e);if(!n.classList.contains("dropdown"))return;const o=(e,o)=>{const r=Lm.findOne(e,n);r&&r.classList.toggle(o,t)};o(".dropdown-toggle",Fb),o(".dropdown-menu",jb),n.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(Fb)}_getInnerElement(e){return e.matches(Ub)?e:Lm.findOne(Ub,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=qb.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Am.on(document,"click.bs.tab",$b,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),Qf(this)||qb.getOrCreateInstance(this).show()})),Am.on(window,"load.bs.tab",(()=>{for(const e of Lm.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))qb.getOrCreateInstance(e)})),im(qb);const Bb="hide",zb="show",Vb="showing",Hb={animation:"boolean",autohide:"boolean",delay:"number"},Wb={animation:!0,autohide:!0,delay:5e3};class Gb extends Dm{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Wb}static get DefaultType(){return Hb}static get NAME(){return"toast"}show(){Am.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Bb),nm(this._element),this._element.classList.add(zb,Vb),this._queueCallback((()=>{this._element.classList.remove(Vb),Am.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(Am.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(Vb),this._queueCallback((()=>{this._element.classList.add(Bb),this._element.classList.remove(Vb,zb),Am.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(zb),super.dispose()}isShown(){return this._element.classList.contains(zb)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){Am.on(this._element,"mouseover.bs.toast",(e=>this._onInteraction(e,!0))),Am.on(this._element,"mouseout.bs.toast",(e=>this._onInteraction(e,!1))),Am.on(this._element,"focusin.bs.toast",(e=>this._onInteraction(e,!0))),Am.on(this._element,"focusout.bs.toast",(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=Gb.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}Rm(Gb),im(Gb),window.bootstrap=t,Of.setup()})()})(); \ No newline at end of file +(()=>{var __webpack_modules__={9448:(e,t,n)=>{e.exports=n(1908)},1908:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromRange=function(e,t){if(void 0===e)throw new Error('missing required parameter "root"');if(void 0===t)throw new Error('missing required parameter "range"');return s(e,a.fromRange(e,t))},t.fromTextPosition=s,t.toRange=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=l(e,t,n);return null===r?null:(r.end=Math.min(r.end,e.textContent.length),a.toRange(e,r))},t.toTextPosition=l;var r,o=(r=n(2027))&&r.__esModule?r:{default:r},a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(9535)),i=new RegExp("(.|[\r\n]){1,"+String(32)+"}","g");function s(e,t){if(void 0===e)throw new Error('missing required parameter "root"');if(void 0===t)throw new Error('missing required parameter "selector"');var n=t.start;if(void 0===n)throw new Error('selector missing required property "start"');if(n<0)throw new Error('property "start" must be a non-negative integer');var r=t.end;if(void 0===r)throw new Error('selector missing required property "end"');if(r<0)throw new Error('property "end" must be a non-negative integer');var o=e.textContent.substr(n,r-n),a=Math.max(0,n-32),i=e.textContent.substr(a,n-a),s=Math.min(e.textContent.length,r+32);return{exact:o,prefix:i,suffix:e.textContent.substr(r,s-r)}}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(void 0===e)throw new Error('missing required parameter "root"');if(void 0===t)throw new Error('missing required parameter "selector"');var r=t.exact;if(void 0===r)throw new Error('selector missing required property "exact"');var a=t.prefix,s=t.suffix,l=n.hint,c=new o.default;c.Match_Distance=2*e.textContent.length;var u=r.match(i),d=void 0===l?e.textContent.length/2|0:l,p=Number.POSITIVE_INFINITY,h=Number.NEGATIVE_INFINITY,f=-1,m=void 0!==a,g=void 0!==s,b=!1;m&&(f=c.match_main(e.textContent,a,d))>-1&&(d=f+a.length,b=!0),g&&!b&&(f=c.match_main(e.textContent,s,d+r.length))>-1&&(d=f-r.length);var v=u.shift();if(!((f=c.match_main(e.textContent,v,d))>-1))return null;d=h=(p=f)+v.length;var y=function(t,n){if(!t)return null;var r=c.match_main(e.textContent,n,t.loc);return-1===r?null:(t.loc=r+n.length,t.start=Math.min(t.start,r),t.end=Math.max(t.end,r+n.length),t)};c.Match_Distance=64;var _=u.reduce(y,{start:p,end:h,loc:d});return _?{start:_.start,end:_.end}:null}},9183:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GutterEnrichmentManager=void 0;const r=n(2581);t.GutterEnrichmentManager=class{constructor(e){this.root=e,this.gutter=e.querySelector("la-gutter"),this.akn=e.querySelector("la-akoma-ntoso"),this.providers=[],this.floatingContainer=this.createFloatingContainer(),this.floaterTimeout=null,this.target=null,document.addEventListener("selectionchange",this.selectionChanged.bind(this))}addProvider(e){this.providers.push(e)}createFloatingContainer(){const e=document.createElement("la-gutter-item"),t=document.createElement("div");return t.className="gutter-enrichment-new-buttons btn-group-vertical btn-group-sm bg-white",e.appendChild(t),e}selectionChanged(){const e=document.getSelection();if(this.akn&&this.gutter)if(e&&e.rangeCount>0&&!e.getRangeAt(0).collapsed){this.floaterTimeout&&window.clearTimeout(this.floaterTimeout);const t=e.getRangeAt(0);if(t.commonAncestorContainer.compareDocumentPosition(this.akn)&Node.DOCUMENT_POSITION_CONTAINS){let e=t.startContainer;for(;e&&e.nodeType!==Node.ELEMENT_NODE;)e=e.parentElement;this.target=(0,r.rangeToTarget)(t,this.akn),this.target?(this.addProviderButtons(this.target),this.floatingContainer.anchor=e,this.gutter.contains(this.floatingContainer)||this.gutter.appendChild(this.floatingContainer)):this.removeFloater()}}else this.floaterTimeout=window.setTimeout(this.removeFloater.bind(this),200)}addProviderButtons(e){const t=this.floatingContainer.firstElementChild;if(t){t.innerHTML="";for(const n of this.providers){const r=n.getButton(e);r&&(r.addEventListener("click",(()=>{this.removeFloater(),n.addEnrichment(e)})),t.appendChild(r))}}}removeFloater(){this.floatingContainer.remove(),this.floaterTimeout=null}}},8482:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2720),t),o(n(9183),t)},2720:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PopupEnrichmentManager=t.EnrichmentMarker=void 0;const o=n(2581),a=r(n(5088));n(9639),n(3612);class i{constructor(e,t){this.provider=e,this.enrichment=t,this.marks=[],this.popups=[]}}t.EnrichmentMarker=i,t.PopupEnrichmentManager=class{constructor(e){this.markTag="mark",this.markClasses=["enrichment","enrichment--popup"],this.documentRoot=e,this.providers=[],this.markers=[],this.observer=this.createObserver()}createObserver(){const e=new MutationObserver((()=>this.applyEnrichments()));return e.observe(this.documentRoot,{childList:!0}),e}addProvider(e){this.providers.push(e)}removeProvider(e){const t=this.providers.indexOf(e);t>-1&&(this.unapplyProviderEnrichments(e),this.providers.splice(t,1))}applyEnrichments(){for(const e of this.providers)this.applyProviderEnrichments(e)}applyProviderEnrichments(e){this.unapplyProviderEnrichments(e);for(const t of e.getEnrichments()){const n=new i(e,t),r=(0,o.targetToRange)(t.target,this.documentRoot);r&&(0,o.markRange)(r,this.markTag,(r=>(n.marks.push(r),r.classList.add(...this.markClasses),e.markCreated(t,r),n.popups.push(this.createPopup(e,t,r)),r))),n.marks.length&&this.markers.push(n)}}unapplyProviderEnrichments(e){const t=this.markers.filter((t=>t.provider===e));for(const e of t)this.unapplyMarker(e)}unapplyMarker(e){for(const t of e.marks)if(t.parentElement){for(;t.firstChild;)t.parentElement.insertBefore(t.firstChild,t);t.parentElement.removeChild(t)}for(const t of e.popups)t.destroy()}createPopup(e,t,n){const r=(0,a.default)(n,{appendTo:document.body,interactive:!0,theme:"light",zIndex:0,delay:[0,0],onShow:r=>{r.setContent(""),r.setContent(e.getPopupContent(t,n))}});return e.popupCreated(t,r),r}}},2581:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.aknRangeToTarget=t.rangeToTarget=t.selectorsToRange=t.targetToAknRange=t.targetToRange=t.withoutForeignElements=t.markRange=t.getTextNodes=t.foreignElementsSelector=void 0;const r=n(9535),o=n(9448);function a(e){const t=[],n={TABLE:1,THEAD:1,TBODY:1,TR:1};let r,o,a,i;function s(e,t){return 0!==t?e.splitText(t):e}if(e.startContainer.nodeType===Node.TEXT_NODE)a=s(e.startContainer,e.startOffset);else if(a=document.createNodeIterator(e.startContainer,NodeFilter.SHOW_TEXT).nextNode(),!a)return t;i=e.endContainer.nodeType===Node.TEXT_NODE?s(e.endContainer,e.endOffset):e.endContainer,r=document.createNodeIterator(e.commonAncestorContainer,NodeFilter.SHOW_TEXT,(function(e){return n[e.parentElement.tagName]?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT}));let l=r.nextNode();for(;l&&l!==a;)l=r.nextNode();for(;l&&(o=l.compareDocumentPosition(i),0!=(o&Node.DOCUMENT_POSITION_CONTAINS)||0!=(o&Node.DOCUMENT_POSITION_FOLLOWING));)t.push(l),l=r.nextNode();return t}function i(e,n,r=t.foreignElementsSelector){const o=[];for(const t of Array.from(e.querySelectorAll(r))){const e={e:t,before:null,parent:null};t.nextSibling?e.before=t.nextSibling:e.parent=t.parentElement,t.parentElement&&t.parentElement.removeChild(t),o.push(e)}try{return n()}finally{o.reverse();for(const e of o)e.before&&e.before.parentElement?e.before.parentElement.insertBefore(e.e,e.before):e.parent&&e.parent.appendChild(e.e)}}function s(e,t){let n;const a=t.find((e=>"TextPositionSelector"===e.type)),i=t.find((e=>"TextQuoteSelector"===e.type));if(a)try{if(n=(0,r.toRange)(e,a),!i||n.toString()===i.exact)return n}catch(e){}if(i)return(0,o.toRange)(e,i)}t.foreignElementsSelector=".ig",t.getTextNodes=a,t.markRange=function(e,t="mark",n){let r=e.commonAncestorContainer;r.nodeType!==Node.ELEMENT_NODE&&(r=r.parentElement),r&&i(r,(()=>{for(const r of a(e))if(r.parentElement){let e=r.ownerDocument.createElement(t);n&&(e=n(e,r)),e&&(r.parentElement.insertBefore(e,r),e.appendChild(r))}}))},t.withoutForeignElements=i,t.targetToRange=function(e,t){let n=e.anchor_id,r=n.lastIndexOf("__"),o=t.querySelector(`[id="${n}"]`);for(;!o&&r>-1;)n=n.substring(0,r),r=n.lastIndexOf("__"),o=t.querySelector(`[id="${n}"]`);if(o){if(e.selectors)return i(o,(()=>s(o,e.selectors)));{const e=t.ownerDocument.createRange();return e.selectNodeContents(o),e}}return null},t.targetToAknRange=function(e,t){function n(e){return"arguments"===e?t.querySelector(e):t.querySelector(`[eId=${e}]`)}let r=e.anchor_id,o=r.lastIndexOf("__"),a=n(r);for(;!a&&o>-1;)r=r.substring(0,o),o=r.lastIndexOf("__"),a=n(r);if(a){if(e.selectors)return s(a,e.selectors);{const e=new Range;return e.selectNodeContents(a),e}}return null},t.selectorsToRange=s,t.rangeToTarget=function(e,t){let n=e.commonAncestorContainer;if(n.nodeType!==Node.ELEMENT_NODE&&(n=n.parentElement,!n))return null;if(n=n.closest("[id]"),!n||n!==t&&0==(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINS))return null;const a={anchor_id:n.id,selectors:[]};return i(n,(()=>{let t=(0,r.fromRange)(n,e);t.type="TextPositionSelector",a.selectors.push(t),t=(0,o.fromTextPosition)(n,t),t.type="TextQuoteSelector",a.selectors.push(t)})),a},t.aknRangeToTarget=function(e,t){let n=e.commonAncestorContainer;if(n.nodeType!==Node.ELEMENT_NODE&&(n=n.parentElement,!n))return null;if(n=n.closest("[eId]"),!n||n!==t&&0==(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINS))return null;const a={anchor_id:n.getAttribute("eId")||"",selectors:[]};let i=(0,r.fromRange)(n,e);return i.type="TextPositionSelector",a.selectors.push(i),i=(0,o.fromTextPosition)(n,i),i.type="TextQuoteSelector",a.selectors.push(i),a}},8240:(e,t,n)=>{"use strict";n.d(t,{fi:()=>k,kZ:()=>_});var r=n(400),o=n(2163),a=n(2057),i=n(2556),s=n(6333),l=n(4063),c=n(7252),u=n(611),d=n(138);function p(e,t,n){void 0===n&&(n=!1);var p,h,f=(0,i.Re)(t),m=(0,i.Re)(t)&&function(e){var t=e.getBoundingClientRect(),n=(0,d.NM)(t.width)/e.offsetWidth||1,r=(0,d.NM)(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),g=(0,c.Z)(t),b=(0,r.Z)(e,m,n),v={scrollLeft:0,scrollTop:0},y={x:0,y:0};return(f||!f&&!n)&&(("body"!==(0,s.Z)(t)||(0,u.Z)(g))&&(v=(p=t)!==(0,a.Z)(p)&&(0,i.Re)(p)?{scrollLeft:(h=p).scrollLeft,scrollTop:h.scrollTop}:(0,o.Z)(p)),(0,i.Re)(t)?((y=(0,r.Z)(t,!0)).x+=t.clientLeft,y.y+=t.clientTop):g&&(y.x=(0,l.Z)(g))),{x:b.left+v.scrollLeft-y.x,y:b.top+v.scrollTop-y.y,width:b.width,height:b.height}}var h=n(583),f=n(3624),m=n(5961),g=n(7701);function b(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var v={placement:"bottom",modifiers:[],strategy:"absolute"};function y(){for(var e=arguments.length,t=new Array(e),n=0;n{"use strict";n.d(t,{Z:()=>o});var r=n(2556);function o(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&(0,r.Zq)(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}},400:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2556),o=n(138),a=n(2057),i=n(7977);function s(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var s=e.getBoundingClientRect(),l=1,c=1;t&&(0,r.Re)(e)&&(l=e.offsetWidth>0&&(0,o.NM)(s.width)/e.offsetWidth||1,c=e.offsetHeight>0&&(0,o.NM)(s.height)/e.offsetHeight||1);var u=((0,r.kK)(e)?(0,a.Z)(e):window).visualViewport,d=!(0,i.Z)()&&n,p=(s.left+(d&&u?u.offsetLeft:0))/l,h=(s.top+(d&&u?u.offsetTop:0))/c,f=s.width/l,m=s.height/c;return{width:f,height:m,top:h,right:p+f,bottom:h+m,left:p,x:p,y:h}}},3062:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(2057);function o(e){return(0,r.Z)(e).getComputedStyle(e)}},7252:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(2556);function o(e){return(((0,r.kK)(e)?e.ownerDocument:e.document)||window.document).documentElement}},583:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(400);function o(e){var t=(0,r.Z)(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}},6333:(e,t,n)=>{"use strict";function r(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,{Z:()=>r})},5961:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(2057),o=n(6333),a=n(3062),i=n(2556);function s(e){return["table","td","th"].indexOf((0,o.Z)(e))>=0}var l=n(5923),c=n(5918);function u(e){return(0,i.Re)(e)&&"fixed"!==(0,a.Z)(e).position?e.offsetParent:null}function d(e){for(var t=(0,r.Z)(e),n=u(e);n&&s(n)&&"static"===(0,a.Z)(n).position;)n=u(n);return n&&("html"===(0,o.Z)(n)||"body"===(0,o.Z)(n)&&"static"===(0,a.Z)(n).position)?t:n||function(e){var t=/firefox/i.test((0,c.Z)());if(/Trident/i.test((0,c.Z)())&&(0,i.Re)(e)&&"fixed"===(0,a.Z)(e).position)return null;var n=(0,l.Z)(e);for((0,i.Zq)(n)&&(n=n.host);(0,i.Re)(n)&&["html","body"].indexOf((0,o.Z)(n))<0;){var r=(0,a.Z)(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}},5923:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(6333),o=n(7252),a=n(2556);function i(e){return"html"===(0,r.Z)(e)?e:e.assignedSlot||e.parentNode||((0,a.Zq)(e)?e.host:null)||(0,o.Z)(e)}},2057:(e,t,n)=>{"use strict";function r(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}n.d(t,{Z:()=>r})},2163:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(2057);function o(e){var t=(0,r.Z)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},4063:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(400),o=n(7252),a=n(2163);function i(e){return(0,r.Z)((0,o.Z)(e)).left+(0,a.Z)(e).scrollLeft}},2556:(e,t,n)=>{"use strict";n.d(t,{Re:()=>a,Zq:()=>i,kK:()=>o});var r=n(2057);function o(e){return e instanceof(0,r.Z)(e).Element||e instanceof Element}function a(e){return e instanceof(0,r.Z)(e).HTMLElement||e instanceof HTMLElement}function i(e){return"undefined"!=typeof ShadowRoot&&(e instanceof(0,r.Z)(e).ShadowRoot||e instanceof ShadowRoot)}},7977:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(5918);function o(){return!/^((?!chrome|android).)*safari/i.test((0,r.Z)())}},611:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(3062);function o(e){var t=(0,r.Z)(e),n=t.overflow,o=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+o)}},3624:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(5923),o=n(611),a=n(6333),i=n(2556);function s(e){return["html","body","#document"].indexOf((0,a.Z)(e))>=0?e.ownerDocument.body:(0,i.Re)(e)&&(0,o.Z)(e)?e:s((0,r.Z)(e))}var l=n(2057);function c(e,t){var n;void 0===t&&(t=[]);var a=s(e),i=a===(null==(n=e.ownerDocument)?void 0:n.body),u=(0,l.Z)(a),d=i?[u].concat(u.visualViewport||[],(0,o.Z)(a)?a:[]):a,p=t.concat(d);return i?p:p.concat(c((0,r.Z)(d)))}},7701:(e,t,n)=>{"use strict";n.d(t,{BL:()=>c,Ct:()=>g,DH:()=>k,F2:()=>a,I:()=>o,MS:()=>A,N7:()=>b,Pj:()=>p,XM:()=>_,YP:()=>f,bw:()=>m,cW:()=>S,d7:()=>s,ij:()=>v,iv:()=>w,k5:()=>h,mv:()=>l,r5:()=>y,t$:()=>i,ut:()=>u,wX:()=>x,we:()=>r,xs:()=>C,zV:()=>d});var r="top",o="bottom",a="right",i="left",s="auto",l=[r,o,a,i],c="start",u="end",d="clippingParents",p="viewport",h="popper",f="reference",m=l.reduce((function(e,t){return e.concat([t+"-"+c,t+"-"+u])}),[]),g=[].concat(l,[s]).reduce((function(e,t){return e.concat([t,t+"-"+c,t+"-"+u])}),[]),b="beforeRead",v="read",y="afterRead",_="beforeMain",k="main",x="afterMain",w="beforeWrite",S="write",A="afterWrite",C=[b,v,y,_,k,x,w,S,A]},7824:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(6333),o=n(2556);const a={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},a=t.attributes[e]||{},i=t.elements[e];(0,o.Re)(i)&&(0,r.Z)(i)&&(Object.assign(i.style,n),Object.keys(a).forEach((function(e){var t=a[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var a=t.elements[e],i=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});(0,o.Re)(a)&&(0,r.Z)(a)&&(Object.assign(a.style,s),Object.keys(i).forEach((function(e){a.removeAttribute(e)})))}))}},requires:["computeStyles"]}},6896:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(6206),o=n(583),a=n(4985),i=n(5961),s=n(1516),l=n(7516),c=n(3293),u=n(3706),d=n(7701);const p={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,a=e.name,p=e.options,h=n.elements.arrow,f=n.modifiersData.popperOffsets,m=(0,r.Z)(n.placement),g=(0,s.Z)(m),b=[d.t$,d.F2].indexOf(m)>=0?"height":"width";if(h&&f){var v=function(e,t){return e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,(0,c.Z)("number"!=typeof e?e:(0,u.Z)(e,d.mv))}(p.padding,n),y=(0,o.Z)(h),_="y"===g?d.we:d.t$,k="y"===g?d.I:d.F2,x=n.rects.reference[b]+n.rects.reference[g]-f[g]-n.rects.popper[b],w=f[g]-n.rects.reference[g],S=(0,i.Z)(h),A=S?"y"===g?S.clientHeight||0:S.clientWidth||0:0,C=x/2-w/2,E=v[_],T=A-y[b]-v[k],O=A/2-y[b]/2+C,P=(0,l.u)(E,O,T),D=g;n.modifiersData[a]=((t={})[D]=P,t.centerOffset=P-O,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&(0,a.Z)(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}},6531:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(7701),o=n(5961),a=n(2057),i=n(7252),s=n(3062),l=n(6206),c=n(4943),u=n(138),d={top:"auto",right:"auto",bottom:"auto",left:"auto"};function p(e){var t,n=e.popper,l=e.popperRect,c=e.placement,p=e.variation,h=e.offsets,f=e.position,m=e.gpuAcceleration,g=e.adaptive,b=e.roundOffsets,v=e.isFixed,y=h.x,_=void 0===y?0:y,k=h.y,x=void 0===k?0:k,w="function"==typeof b?b({x:_,y:x}):{x:_,y:x};_=w.x,x=w.y;var S=h.hasOwnProperty("x"),A=h.hasOwnProperty("y"),C=r.t$,E=r.we,T=window;if(g){var O=(0,o.Z)(n),P="clientHeight",D="clientWidth";O===(0,a.Z)(n)&&(O=(0,i.Z)(n),"static"!==(0,s.Z)(O).position&&"absolute"===f&&(P="scrollHeight",D="scrollWidth")),(c===r.we||(c===r.t$||c===r.F2)&&p===r.ut)&&(E=r.I,x-=(v&&O===T&&T.visualViewport?T.visualViewport.height:O[P])-l.height,x*=m?1:-1),c!==r.t$&&(c!==r.we&&c!==r.I||p!==r.ut)||(C=r.F2,_-=(v&&O===T&&T.visualViewport?T.visualViewport.width:O[D])-l.width,_*=m?1:-1)}var R,L=Object.assign({position:f},g&&d),I=!0===b?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:(0,u.NM)(n*o)/o||0,y:(0,u.NM)(r*o)/o||0}}({x:_,y:x},(0,a.Z)(n)):{x:_,y:x};return _=I.x,x=I.y,m?Object.assign({},L,((R={})[E]=A?"0":"",R[C]=S?"0":"",R.transform=(T.devicePixelRatio||1)<=1?"translate("+_+"px, "+x+"px)":"translate3d("+_+"px, "+x+"px, 0)",R)):Object.assign({},L,((t={})[E]=A?x+"px":"",t[C]=S?_+"px":"",t.transform="",t))}const h={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,a=n.adaptive,i=void 0===a||a,s=n.roundOffsets,u=void 0===s||s,d={placement:(0,l.Z)(t.placement),variation:(0,c.Z)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,p(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,p(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}}},2372:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(2057),o={passive:!0};const a={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,a=e.options,i=a.scroll,s=void 0===i||i,l=a.resize,c=void 0===l||l,u=(0,r.Z)(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach((function(e){e.addEventListener("scroll",n.update,o)})),c&&u.addEventListener("resize",n.update,o),function(){s&&d.forEach((function(e){e.removeEventListener("scroll",n.update,o)})),c&&u.removeEventListener("resize",n.update,o)}},data:{}}},5228:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r={left:"right",right:"left",bottom:"top",top:"bottom"};function o(e){return e.replace(/left|right|bottom|top/g,(function(e){return r[e]}))}var a=n(6206),i={start:"end",end:"start"};function s(e){return e.replace(/start|end/g,(function(e){return i[e]}))}var l=n(9966),c=n(4943),u=n(7701);const d={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,d=void 0===i||i,p=n.altAxis,h=void 0===p||p,f=n.fallbackPlacements,m=n.padding,g=n.boundary,b=n.rootBoundary,v=n.altBoundary,y=n.flipVariations,_=void 0===y||y,k=n.allowedAutoPlacements,x=t.options.placement,w=(0,a.Z)(x),S=f||(w!==x&&_?function(e){if((0,a.Z)(e)===u.d7)return[];var t=o(e);return[s(e),t,s(t)]}(x):[o(x)]),A=[x].concat(S).reduce((function(e,n){return e.concat((0,a.Z)(n)===u.d7?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,d=n.flipVariations,p=n.allowedAutoPlacements,h=void 0===p?u.Ct:p,f=(0,c.Z)(r),m=f?d?u.bw:u.bw.filter((function(e){return(0,c.Z)(e)===f})):u.mv,g=m.filter((function(e){return h.indexOf(e)>=0}));0===g.length&&(g=m);var b=g.reduce((function(t,n){return t[n]=(0,l.Z)(e,{placement:n,boundary:o,rootBoundary:i,padding:s})[(0,a.Z)(n)],t}),{});return Object.keys(b).sort((function(e,t){return b[e]-b[t]}))}(t,{placement:n,boundary:g,rootBoundary:b,padding:m,flipVariations:_,allowedAutoPlacements:k}):n)}),[]),C=t.rects.reference,E=t.rects.popper,T=new Map,O=!0,P=A[0],D=0;D=0,F=M?"width":"height",N=(0,l.Z)(t,{placement:R,boundary:g,rootBoundary:b,altBoundary:v,padding:m}),j=M?I?u.F2:u.t$:I?u.I:u.we;C[F]>E[F]&&(j=o(j));var $=o(j),H=[];if(d&&H.push(N[L]<=0),h&&H.push(N[j]<=0,N[$]<=0),H.every((function(e){return e}))){P=R,O=!1;break}T.set(R,H)}if(O)for(var q=function(e){var t=A.find((function(t){var n=T.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return P=t,"break"},U=_?3:1;U>0&&"break"!==q(U);U--);t.placement!==P&&(t.modifiersData[r]._skip=!0,t.placement=P,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}}},9892:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(7701),o=n(9966);function a(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function i(e){return[r.we,r.F2,r.I,r.t$].some((function(t){return e[t]>=0}))}const s={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,s=t.rects.popper,l=t.modifiersData.preventOverflow,c=(0,o.Z)(t,{elementContext:"reference"}),u=(0,o.Z)(t,{altBoundary:!0}),d=a(c,r),p=a(u,s,l),h=i(d),f=i(p);t.modifiersData[n]={referenceClippingOffsets:d,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":f})}}},2122:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(6206),o=n(7701);const a={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,a=e.name,i=n.offset,s=void 0===i?[0,0]:i,l=o.Ct.reduce((function(e,n){return e[n]=function(e,t,n){var a=(0,r.Z)(e),i=[o.t$,o.we].indexOf(a)>=0?-1:1,s="function"==typeof n?n(Object.assign({},t,{placement:e})):n,l=s[0],c=s[1];return l=l||0,c=(c||0)*i,[o.t$,o.F2].indexOf(a)>=0?{x:c,y:l}:{x:l,y:c}}(n,t.rects,s),e}),{}),c=l[t.placement],u=c.x,d=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[a]=l}}},7421:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(9349);const o={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=(0,r.Z)({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}}},3920:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(7701),o=n(6206),a=n(1516),i=n(7516),s=n(583),l=n(5961),c=n(9966),u=n(4943),d=n(3607),p=n(138);const h={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,h=e.name,f=n.mainAxis,m=void 0===f||f,g=n.altAxis,b=void 0!==g&&g,v=n.boundary,y=n.rootBoundary,_=n.altBoundary,k=n.padding,x=n.tether,w=void 0===x||x,S=n.tetherOffset,A=void 0===S?0:S,C=(0,c.Z)(t,{boundary:v,rootBoundary:y,padding:k,altBoundary:_}),E=(0,o.Z)(t.placement),T=(0,u.Z)(t.placement),O=!T,P=(0,a.Z)(E),D="x"===P?"y":"x",R=t.modifiersData.popperOffsets,L=t.rects.reference,I=t.rects.popper,M="function"==typeof A?A(Object.assign({},t.rects,{placement:t.placement})):A,F="number"==typeof M?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,j={x:0,y:0};if(R){if(m){var $,H="y"===P?r.we:r.t$,q="y"===P?r.I:r.F2,U="y"===P?"height":"width",B=R[P],V=B+C[H],z=B-C[q],W=w?-I[U]/2:0,G=T===r.BL?L[U]:I[U],Y=T===r.BL?-I[U]:-L[U],X=t.elements.arrow,J=w&&X?(0,s.Z)(X):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:(0,d.Z)(),K=Z[H],Q=Z[q],ee=(0,i.u)(0,L[U],J[U]),te=O?L[U]/2-W-ee-K-F.mainAxis:G-ee-K-F.mainAxis,ne=O?-L[U]/2+W+ee+Q+F.mainAxis:Y+ee+Q+F.mainAxis,re=t.elements.arrow&&(0,l.Z)(t.elements.arrow),oe=re?"y"===P?re.clientTop||0:re.clientLeft||0:0,ae=null!=($=null==N?void 0:N[P])?$:0,ie=B+te-ae-oe,se=B+ne-ae,le=(0,i.u)(w?(0,p.VV)(V,ie):V,B,w?(0,p.Fp)(z,se):z);R[P]=le,j[P]=le-B}if(b){var ce,ue="x"===P?r.we:r.t$,de="x"===P?r.I:r.F2,pe=R[D],he="y"===D?"height":"width",fe=pe+C[ue],me=pe-C[de],ge=-1!==[r.we,r.t$].indexOf(E),be=null!=(ce=null==N?void 0:N[D])?ce:0,ve=ge?fe:pe-L[he]-I[he]-be+F.altAxis,ye=ge?pe+L[he]+I[he]-be-F.altAxis:me,_e=w&&ge?(0,i.q)(ve,pe,ye):(0,i.u)(w?ve:fe,pe,w?ye:me);R[D]=_e,j[D]=_e-pe}t.modifiersData[h]=j}},requiresIfExists:["offset"]}},804:(e,t,n)=>{"use strict";n.d(t,{fi:()=>f});var r=n(8240),o=n(2372),a=n(7421),i=n(6531),s=n(7824),l=n(2122),c=n(5228),u=n(3920),d=n(6896),p=n(9892),h=[o.Z,a.Z,i.Z,s.Z,l.Z,c.Z,u.Z,d.Z,p.Z],f=(0,r.kZ)({defaultModifiers:h})},9349:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(6206),o=n(4943),a=n(1516),i=n(7701);function s(e){var t,n=e.reference,s=e.element,l=e.placement,c=l?(0,r.Z)(l):null,u=l?(0,o.Z)(l):null,d=n.x+n.width/2-s.width/2,p=n.y+n.height/2-s.height/2;switch(c){case i.we:t={x:d,y:n.y-s.height};break;case i.I:t={x:d,y:n.y+n.height};break;case i.F2:t={x:n.x+n.width,y:p};break;case i.t$:t={x:n.x-s.width,y:p};break;default:t={x:n.x,y:n.y}}var h=c?(0,a.Z)(c):null;if(null!=h){var f="y"===h?"height":"width";switch(u){case i.BL:t[h]=t[h]-(n[f]/2-s[f]/2);break;case i.ut:t[h]=t[h]+(n[f]/2-s[f]/2)}}return t}},9966:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w});var r=n(7701),o=n(2057),a=n(7252),i=n(4063),s=n(7977),l=n(3062),c=n(2163),u=n(138),d=n(3624),p=n(5961),h=n(2556),f=n(400),m=n(5923),g=n(4985),b=n(6333);function v(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function y(e,t,n){return t===r.Pj?v(function(e,t){var n=(0,o.Z)(e),r=(0,a.Z)(e),l=n.visualViewport,c=r.clientWidth,u=r.clientHeight,d=0,p=0;if(l){c=l.width,u=l.height;var h=(0,s.Z)();(h||!h&&"fixed"===t)&&(d=l.offsetLeft,p=l.offsetTop)}return{width:c,height:u,x:d+(0,i.Z)(e),y:p}}(e,n)):(0,h.kK)(t)?function(e,t){var n=(0,f.Z)(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):v(function(e){var t,n=(0,a.Z)(e),r=(0,c.Z)(e),o=null==(t=e.ownerDocument)?void 0:t.body,s=(0,u.Fp)(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),d=(0,u.Fp)(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),p=-r.scrollLeft+(0,i.Z)(e),h=-r.scrollTop;return"rtl"===(0,l.Z)(o||n).direction&&(p+=(0,u.Fp)(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:d,x:p,y:h}}((0,a.Z)(e)))}var _=n(9349),k=n(3293),x=n(3706);function w(e,t){void 0===t&&(t={});var n=t,o=n.placement,i=void 0===o?e.placement:o,s=n.strategy,c=void 0===s?e.strategy:s,w=n.boundary,S=void 0===w?r.zV:w,A=n.rootBoundary,C=void 0===A?r.Pj:A,E=n.elementContext,T=void 0===E?r.k5:E,O=n.altBoundary,P=void 0!==O&&O,D=n.padding,R=void 0===D?0:D,L=(0,k.Z)("number"!=typeof R?R:(0,x.Z)(R,r.mv)),I=T===r.k5?r.YP:r.k5,M=e.rects.popper,F=e.elements[P?I:T],N=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=(0,d.Z)((0,m.Z)(e)),n=["absolute","fixed"].indexOf((0,l.Z)(e).position)>=0&&(0,h.Re)(e)?(0,p.Z)(e):e;return(0,h.kK)(n)?t.filter((function(e){return(0,h.kK)(e)&&(0,g.Z)(e,n)&&"body"!==(0,b.Z)(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce((function(t,n){var o=y(e,n,r);return t.top=(0,u.Fp)(o.top,t.top),t.right=(0,u.VV)(o.right,t.right),t.bottom=(0,u.VV)(o.bottom,t.bottom),t.left=(0,u.Fp)(o.left,t.left),t}),y(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}((0,h.kK)(F)?F:F.contextElement||(0,a.Z)(e.elements.popper),S,C,c),j=(0,f.Z)(e.elements.reference),$=(0,_.Z)({reference:j,element:M,strategy:"absolute",placement:i}),H=v(Object.assign({},M,$)),q=T===r.k5?H:j,U={top:N.top-q.top+L.top,bottom:q.bottom-N.bottom+L.bottom,left:N.left-q.left+L.left,right:q.right-N.right+L.right},B=e.modifiersData.offset;if(T===r.k5&&B){var V=B[i];Object.keys(U).forEach((function(e){var t=[r.F2,r.I].indexOf(e)>=0?1:-1,n=[r.we,r.I].indexOf(e)>=0?"y":"x";U[e]+=V[n]*t}))}return U}},3706:(e,t,n)=>{"use strict";function r(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}n.d(t,{Z:()=>r})},6206:(e,t,n)=>{"use strict";function r(e){return e.split("-")[0]}n.d(t,{Z:()=>r})},3607:(e,t,n)=>{"use strict";function r(){return{top:0,right:0,bottom:0,left:0}}n.d(t,{Z:()=>r})},1516:(e,t,n)=>{"use strict";function r(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}n.d(t,{Z:()=>r})},4943:(e,t,n)=>{"use strict";function r(e){return e.split("-")[1]}n.d(t,{Z:()=>r})},138:(e,t,n)=>{"use strict";n.d(t,{Fp:()=>r,NM:()=>a,VV:()=>o});var r=Math.max,o=Math.min,a=Math.round},3293:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(3607);function o(e){return Object.assign({},(0,r.Z)(),e)}},5918:(e,t,n)=>{"use strict";function r(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}n.d(t,{Z:()=>r})},7516:(e,t,n)=>{"use strict";n.d(t,{q:()=>a,u:()=>o});var r=n(138);function o(e,t,n){return(0,r.Fp)(e,(0,r.VV)(t,n))}function a(e,t,n){var r=o(e,t,n);return r>n?n:r}},2262:(e,t,n)=>{"use strict";n.d(t,{$y:()=>Ae,B:()=>i,BK:()=>ze,Bj:()=>a,EB:()=>c,Fl:()=>Xe,IU:()=>Te,Jd:()=>A,OT:()=>ke,PG:()=>Se,SU:()=>He,Um:()=>_e,Vh:()=>Ge,WL:()=>Ue,X$:()=>O,X3:()=>Ee,XI:()=>Fe,Xl:()=>Oe,YS:()=>xe,ZM:()=>Ve,cE:()=>k,dq:()=>Ie,iH:()=>Me,j:()=>E,lk:()=>C,nZ:()=>l,oR:()=>$e,qj:()=>ye,qq:()=>y,sT:()=>x,yT:()=>Ce});var r=n(3577);let o;class a{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&o&&(this.parent=o,this.index=(o.scopes||(o.scopes=[])).push(this)-1)}run(e){if(this.active)try{return o=this,e()}finally{o=this.parent}}on(){o=this}off(){o=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},d=e=>(e.w&g)>0,p=e=>(e.n&g)>0,h=new WeakMap;let f,m=0,g=1;const b=Symbol(""),v=Symbol("");class y{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,s(this,n)}run(){if(!this.active)return this.fn();let e=f,t=w;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=f,f=this,w=!0,g=1<<++m,m<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{("length"===t||t>=o)&&l.push(e)}));else switch(void 0!==n&&l.push(s.get(n)),t){case"add":(0,r.kJ)(e)?(0,r.S0)(n)&&l.push(s.get("length")):(l.push(s.get(b)),(0,r._N)(e)&&l.push(s.get(v)));break;case"delete":(0,r.kJ)(e)||(l.push(s.get(b)),(0,r._N)(e)&&l.push(s.get(v)));break;case"set":(0,r._N)(e)&&l.push(s.get(b))}if(1===l.length)l[0]&&P(l[0]);else{const e=[];for(const t of l)t&&e.push(...t);P(u(e))}}function P(e,t){for(const t of(0,r.kJ)(e)?e:[...e])(t!==f||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const D=(0,r.fY)("__proto__,__v_isRef,__isVue"),R=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(r.yk)),L=$(),I=$(!1,!0),M=$(!0),F=$(!0,!0),N=j();function j(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Te(this);for(let e=0,t=this.length;e{e[t]=function(...e){A();const n=Te(this)[t].apply(this,e);return C(),n}})),e}function $(e=!1,t=!1){return function(n,o,a){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&a===(e?t?ve:be:t?ge:me).get(n))return n;const i=(0,r.kJ)(n);if(!e&&i&&(0,r.RI)(N,o))return Reflect.get(N,o,a);const s=Reflect.get(n,o,a);return((0,r.yk)(o)?R.has(o):D(o))?s:(e||E(n,0,o),t?s:Ie(s)?i&&(0,r.S0)(o)?s:s.value:(0,r.Kn)(s)?e?ke(s):ye(s):s)}}const H=U(),q=U(!0);function U(e=!1){return function(t,n,o,a){let i=t[n];if(Ae(i)&&Ie(i)&&!Ie(o))return!1;if(!e&&!Ae(o)&&(Ce(o)||(o=Te(o),i=Te(i)),!(0,r.kJ)(t)&&Ie(i)&&!Ie(o)))return i.value=o,!0;const s=(0,r.kJ)(t)&&(0,r.S0)(n)?Number(n)!0,deleteProperty:(e,t)=>!0},z=(0,r.l7)({},B,{get:I,set:q}),W=(0,r.l7)({},V,{get:F}),G=e=>e,Y=e=>Reflect.getPrototypeOf(e);function X(e,t,n=!1,r=!1){const o=Te(e=e.__v_raw),a=Te(t);t!==a&&!n&&E(o,0,t),!n&&E(o,0,a);const{has:i}=Y(o),s=r?G:n?De:Pe;return i.call(o,t)?s(e.get(t)):i.call(o,a)?s(e.get(a)):void(e!==o&&e.get(t))}function J(e,t=!1){const n=this.__v_raw,r=Te(n),o=Te(e);return e!==o&&!t&&E(r,0,e),!t&&E(r,0,o),e===o?n.has(e):n.has(e)||n.has(o)}function Z(e,t=!1){return e=e.__v_raw,!t&&E(Te(e),0,b),Reflect.get(e,"size",e)}function K(e){e=Te(e);const t=Te(this);return Y(t).has.call(t,e)||(t.add(e),O(t,"add",e,e)),this}function Q(e,t){t=Te(t);const n=Te(this),{has:o,get:a}=Y(n);let i=o.call(n,e);i||(e=Te(e),i=o.call(n,e));const s=a.call(n,e);return n.set(e,t),i?(0,r.aU)(t,s)&&O(n,"set",e,t):O(n,"add",e,t),this}function ee(e){const t=Te(this),{has:n,get:r}=Y(t);let o=n.call(t,e);o||(e=Te(e),o=n.call(t,e)),r&&r.call(t,e);const a=t.delete(e);return o&&O(t,"delete",e,void 0),a}function te(){const e=Te(this),t=0!==e.size,n=e.clear();return t&&O(e,"clear",void 0,void 0),n}function ne(e,t){return function(n,r){const o=this,a=o.__v_raw,i=Te(a),s=t?G:e?De:Pe;return!e&&E(i,0,b),a.forEach(((e,t)=>n.call(r,s(e),s(t),o)))}}function re(e,t,n){return function(...o){const a=this.__v_raw,i=Te(a),s=(0,r._N)(i),l="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,u=a[e](...o),d=n?G:t?De:Pe;return!t&&E(i,0,c?v:b),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function oe(e){return function(...t){return"delete"!==e&&this}}function ae(){const e={get(e){return X(this,e)},get size(){return Z(this)},has:J,add:K,set:Q,delete:ee,clear:te,forEach:ne(!1,!1)},t={get(e){return X(this,e,!1,!0)},get size(){return Z(this)},has:J,add:K,set:Q,delete:ee,clear:te,forEach:ne(!1,!0)},n={get(e){return X(this,e,!0)},get size(){return Z(this,!0)},has(e){return J.call(this,e,!0)},add:oe("add"),set:oe("set"),delete:oe("delete"),clear:oe("clear"),forEach:ne(!0,!1)},r={get(e){return X(this,e,!0,!0)},get size(){return Z(this,!0)},has(e){return J.call(this,e,!0)},add:oe("add"),set:oe("set"),delete:oe("delete"),clear:oe("clear"),forEach:ne(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=re(o,!1,!1),n[o]=re(o,!0,!1),t[o]=re(o,!1,!0),r[o]=re(o,!0,!0)})),[e,n,t,r]}const[ie,se,le,ce]=ae();function ue(e,t){const n=t?e?ce:le:e?se:ie;return(t,o,a)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get((0,r.RI)(n,o)&&o in t?n:t,o,a)}const de={get:ue(!1,!1)},pe={get:ue(!1,!0)},he={get:ue(!0,!1)},fe={get:ue(!0,!0)},me=new WeakMap,ge=new WeakMap,be=new WeakMap,ve=new WeakMap;function ye(e){return Ae(e)?e:we(e,!1,B,de,me)}function _e(e){return we(e,!1,z,pe,ge)}function ke(e){return we(e,!0,V,he,be)}function xe(e){return we(e,!0,W,fe,ve)}function we(e,t,n,o,a){if(!(0,r.Kn)(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=a.get(e);if(i)return i;const s=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((0,r.W7)(l));var l;if(0===s)return e;const c=new Proxy(e,2===s?o:n);return a.set(e,c),c}function Se(e){return Ae(e)?Se(e.__v_raw):!(!e||!e.__v_isReactive)}function Ae(e){return!(!e||!e.__v_isReadonly)}function Ce(e){return!(!e||!e.__v_isShallow)}function Ee(e){return Se(e)||Ae(e)}function Te(e){const t=e&&e.__v_raw;return t?Te(t):e}function Oe(e){return(0,r.Nj)(e,"__v_skip",!0),e}const Pe=e=>(0,r.Kn)(e)?ye(e):e,De=e=>(0,r.Kn)(e)?ke(e):e;function Re(e){w&&f&&T((e=Te(e)).dep||(e.dep=u()))}function Le(e,t){(e=Te(e)).dep&&P(e.dep)}function Ie(e){return!(!e||!0!==e.__v_isRef)}function Me(e){return Ne(e,!1)}function Fe(e){return Ne(e,!0)}function Ne(e,t){return Ie(e)?e:new je(e,t)}class je{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Te(e),this._value=t?e:Pe(e)}get value(){return Re(this),this._value}set value(e){e=this.__v_isShallow?e:Te(e),(0,r.aU)(e,this._rawValue)&&(this._rawValue=e,this._value=this.__v_isShallow?e:Pe(e),Le(this))}}function $e(e){Le(e)}function He(e){return Ie(e)?e.value:e}const qe={get:(e,t,n)=>He(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Ie(o)&&!Ie(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Ue(e){return Se(e)?e:new Proxy(e,qe)}class Be{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>Re(this)),(()=>Le(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function Ve(e){return new Be(e)}function ze(e){const t=(0,r.kJ)(e)?new Array(e.length):{};for(const n in e)t[n]=Ge(e,n);return t}class We{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}}function Ge(e,t,n){const r=e[t];return Ie(r)?r:new We(e,t,n)}class Ye{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new y(e,(()=>{this._dirty||(this._dirty=!0,Le(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Te(this);return Re(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Xe(e,t,n=!1){let o,a;const i=(0,r.mf)(e);return i?(o=e,a=r.dG):(o=e.get,a=e.set),new Ye(o,a,i||!a,n)}Promise.resolve()},6252:(e,t,n)=>{"use strict";n.d(t,{$d:()=>u,$y:()=>r.$y,Ah:()=>Je,B:()=>r.B,BK:()=>r.BK,Bj:()=>r.Bj,Bz:()=>lr,C3:()=>fn,C_:()=>o.C_,Cn:()=>J,EB:()=>r.EB,Eo:()=>Mt,F4:()=>_n,FN:()=>Bn,Fl:()=>ir,G:()=>Sr,HX:()=>Z,HY:()=>Zt,Ho:()=>kn,IU:()=>r.IU,JJ:()=>ue,Jd:()=>Xe,KU:()=>c,Ko:()=>Pn,LL:()=>Gt,MW:()=>sr,MX:()=>kr,Mr:()=>_r,Nv:()=>Dn,OT:()=>r.OT,Ob:()=>Me,P$:()=>we,PG:()=>r.PG,Q2:()=>Yt,Q6:()=>Oe,RC:()=>Re,Rh:()=>he,Rr:()=>dr,S3:()=>d,SU:()=>r.SU,U2:()=>Ae,Uc:()=>vr,Uk:()=>xn,Um:()=>r.Um,Us:()=>It,Vh:()=>r.Vh,WI:()=>Rn,WL:()=>r.WL,WY:()=>cr,Wm:()=>yn,X3:()=>r.X3,XI:()=>r.XI,Xl:()=>r.Xl,Xn:()=>Ge,Y1:()=>Kn,Y3:()=>A,Y8:()=>ke,YP:()=>ge,YS:()=>r.YS,Yq:()=>Ke,ZK:()=>i,ZM:()=>r.ZM,Zq:()=>yr,_:()=>vn,_A:()=>o._A,aZ:()=>Pe,b9:()=>ur,bT:()=>Qe,bv:()=>We,cE:()=>r.cE,d1:()=>et,dD:()=>X,dG:()=>Tn,dl:()=>Ne,dq:()=>r.dq,ec:()=>j,eq:()=>Ar,f3:()=>de,h:()=>br,hR:()=>o.hR,i8:()=>wr,iD:()=>un,iH:()=>r.iH,ic:()=>Ye,j4:()=>dn,j5:()=>o.j5,kC:()=>o.kC,kq:()=>Sn,l1:()=>pr,lA:()=>pn,lR:()=>Bt,m0:()=>pe,mW:()=>I,mv:()=>gr,mx:()=>In,n4:()=>oe,nK:()=>Te,nQ:()=>xr,nZ:()=>r.nZ,oR:()=>r.oR,of:()=>Qn,p1:()=>mr,qG:()=>en,qZ:()=>ln,qb:()=>O,qj:()=>r.qj,qq:()=>r.qq,ry:()=>Cr,sT:()=>r.sT,se:()=>je,sv:()=>Qt,uE:()=>wn,u_:()=>fr,up:()=>zt,vl:()=>Ze,vs:()=>o.vs,w5:()=>K,wF:()=>ze,wg:()=>rn,wy:()=>wt,xv:()=>Kt,yT:()=>r.yT,yX:()=>fe,zw:()=>o.zw});var r=n(2262),o=n(3577);const a=[];function i(e,...t){(0,r.Jd)();const n=a.length?a[a.length-1].component:null,o=n&&n.appContext.config.warnHandler,i=function(){let e=a[a.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}();if(o)c(o,n,11,[e+t.join(""),n&&n.proxy,i.map((({vnode:e})=>`at <${ar(n,e.type)}>`)).join("\n"),i]);else{const n=[`[Vue warn]: ${e}`,...t];i.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=!!e.component&&null==e.component.parent,o=` at <${ar(e.component,e.type,r)}`,a=">"+n;return e.props?[o,...s(e.props),a]:[o+a]}(e))})),t}(i)),console.warn(...n)}(0,r.lk)()}function s(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...l(n,e[n]))})),n.length>3&&t.push(" ..."),t}function l(e,t,n){return(0,o.HD)(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:(0,r.dq)(t)?(t=l(e,(0,r.IU)(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):(0,o.mf)(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=(0,r.IU)(t),n?t:[`${e}=`,t])}function c(e,t,n,r){let o;try{o=r?e(...r):e()}catch(e){d(e,t,n)}return o}function u(e,t,n,r){if((0,o.mf)(e)){const a=c(e,t,n,r);return a&&(0,o.tI)(a)&&a.catch((e=>{d(e,t,n)})),a}const a=[];for(let o=0;o>>1;R(f[r])R(e)-R(t))),k=0;k<_.length;k++)_[k]();_=null,k=0}}const R=e=>null==e.id?1/0:e.id;function L(e){h=!1,p=!0,P(e),f.sort(((e,t)=>R(e)-R(t))),o.dG;try{for(m=0;mI.emit(e,...t))),M=[]):"undefined"!=typeof window&&window.HTMLElement&&!(null===(r=null===(n=window.navigator)||void 0===n?void 0:n.userAgent)||void 0===r?void 0:r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{j(e,t)})),setTimeout((()=>{I||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,F=!0,M=[])}),3e3)):(F=!0,M=[])}const $=U("component:added"),H=U("component:updated"),q=U("component:removed");function U(e){return t=>{N(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function B(e,t,...n){const r=e.vnode.props||o.kT;let a=n;const i=t.startsWith("update:"),s=i&&t.slice(7);if(s&&s in r){const e=`${"modelValue"===s?"model":s}Modifiers`,{number:t,trim:i}=r[e]||o.kT;i?a=n.map((e=>e.trim())):t&&(a=n.map(o.He))}let l;__VUE_PROD_DEVTOOLS__&&function(e,t,n){N("component:emit",e.appContext.app,e,t,n)}(e,t,a);let c=r[l=(0,o.hR)(t)]||r[l=(0,o.hR)((0,o._A)(t))];!c&&i&&(c=r[l=(0,o.hR)((0,o.rs)(t))]),c&&u(c,e,6,a);const d=r[l+"Once"];if(d){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,u(d,e,6,a)}}function V(e,t,n=!1){const r=t.emitsCache,a=r.get(e);if(void 0!==a)return a;const i=e.emits;let s={},l=!1;if(__VUE_OPTIONS_API__&&!(0,o.mf)(e)){const r=e=>{const n=V(e,t,!0);n&&(l=!0,(0,o.l7)(s,n))};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}return i||l?((0,o.kJ)(i)?i.forEach((e=>s[e]=null)):(0,o.l7)(s,i),r.set(e,s),s):(r.set(e,null),null)}function z(e,t){return!(!e||!(0,o.F7)(t))&&(t=t.slice(2).replace(/Once$/,""),(0,o.RI)(e,t[0].toLowerCase()+t.slice(1))||(0,o.RI)(e,(0,o.rs)(t))||(0,o.RI)(e,t))}let W=null,G=null;function Y(e){const t=W;return W=e,G=e&&e.type.__scopeId||null,t}function X(e){G=e}function J(){G=null}const Z=e=>K;function K(e,t=W,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&ln(-1);const o=Y(t),a=e(...n);return Y(o),r._d&&ln(1),__VUE_PROD_DEVTOOLS__&&H(t),a};return r._n=!0,r._c=!0,r._d=!0,r}function Q(e){const{type:t,vnode:n,proxy:r,withProxy:a,props:i,propsOptions:[s],slots:l,attrs:c,emit:u,render:p,renderCache:h,data:f,setupState:m,ctx:g,inheritAttrs:b}=e;let v,y;const _=Y(e);try{if(4&n.shapeFlag){const e=a||r;v=An(p.call(e,e,h,i,m,f,g)),y=c}else{const e=t;v=An(e.length>1?e(i,{attrs:c,slots:l,emit:u}):e(i,null)),y=t.props?c:ee(c)}}catch(t){tn.length=0,d(t,e,1),v=yn(Qt)}let k=v;if(y&&!1!==b){const e=Object.keys(y),{shapeFlag:t}=k;e.length&&7&t&&(s&&e.some(o.tR)&&(y=te(y,s)),k=kn(k,y))}return n.dirs&&(k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&(k.transition=n.transition),v=k,Y(_),v}const ee=e=>{let t;for(const n in e)("class"===n||"style"===n||(0,o.F7)(n))&&((t||(t={}))[n]=e[n]);return t},te=(e,t)=>{const n={};for(const r in e)(0,o.tR)(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function ne(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o0?(ae(e,"onPending"),ae(e,"onFallback"),c(null,e.ssFallback,t,n,r,null,a,i),ce(p,e.ssFallback)):p.resolve()}(t,n,r,o,a,i,s,l,c):function(e,t,n,r,o,a,i,s,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:m,isInFallback:g,isHydrating:b}=d;if(m)d.pendingBranch=p,hn(p,m)?(l(m,p,d.hiddenContainer,null,o,d,a,i,s),d.deps<=0?d.resolve():g&&(l(f,h,n,r,o,null,a,i,s),ce(d,h))):(d.pendingId++,b?(d.isHydrating=!1,d.activeBranch=m):c(m,o,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(l(null,p,d.hiddenContainer,null,o,d,a,i,s),d.deps<=0?d.resolve():(l(f,h,n,r,o,null,a,i,s),ce(d,h))):f&&hn(p,f)?(l(f,p,n,r,o,d,a,i,s),d.resolve(!0)):(l(null,p,d.hiddenContainer,null,o,d,a,i,s),d.deps<=0&&d.resolve()));else if(f&&hn(p,f))l(f,p,n,r,o,d,a,i,s),ce(d,p);else if(ae(t,"onPending"),d.pendingBranch=p,d.pendingId++,l(null,p,d.hiddenContainer,null,o,d,a,i,s),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(h)}),e):0===e&&d.fallback(h)}}(e,t,n,r,o,i,s,l,c)},hydrate:function(e,t,n,r,o,a,i,s,l){const c=t.suspense=ie(t,r,n,e.parentNode,document.createElement("div"),null,o,a,i,s,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,a,i);return 0===c.deps&&c.resolve(),u},create:ie,normalize:function(e){const{shapeFlag:t,children:n}=e,r=32&t;e.ssContent=se(r?n.default:n),e.ssFallback=r?se(n.fallback):yn(Qt)}};function ae(e,t){const n=e.props&&e.props[t];(0,o.mf)(n)&&n()}function ie(e,t,n,r,a,i,s,l,c,u,p=!1){const{p:h,m:f,um:m,n:g,o:{parentNode:b,remove:v}}=u,y=(0,o.He)(e.props&&e.props.timeout),_={vnode:e,parent:t,parentComponent:n,isSVG:s,container:r,hiddenContainer:a,anchor:i,deps:0,pendingId:0,timeout:"number"==typeof y?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:p,isUnmounted:!1,effects:[],resolve(e=!1){const{vnode:t,activeBranch:n,pendingBranch:r,pendingId:o,effects:a,parentComponent:i,container:s}=_;if(_.isHydrating)_.isHydrating=!1;else if(!e){const e=n&&r.transition&&"out-in"===r.transition.mode;e&&(n.transition.afterLeave=()=>{o===_.pendingId&&f(r,s,t,0)});let{anchor:t}=_;n&&(t=g(n),m(n,i,_,!0)),e||f(r,s,t,0)}ce(_,r),_.pendingBranch=null,_.isInFallback=!1;let l=_.parent,c=!1;for(;l;){if(l.pendingBranch){l.effects.push(...a),c=!0;break}l=l.parent}c||O(a),_.effects=[],ae(t,"onResolve")},fallback(e){if(!_.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:r,container:o,isSVG:a}=_;ae(t,"onFallback");const i=g(n),s=()=>{_.isInFallback&&(h(null,e,o,i,r,null,a,l,c),ce(_,e))},u=e.transition&&"out-in"===e.transition.mode;u&&(n.transition.afterLeave=s),_.isInFallback=!0,m(n,r,null,!0),u||s()},move(e,t,n){_.activeBranch&&f(_.activeBranch,e,t,n),_.container=e},next:()=>_.activeBranch&&g(_.activeBranch),registerDep(e,t){const n=!!_.pendingBranch;n&&_.deps++;const r=e.vnode.el;e.asyncDep.catch((t=>{d(t,e,0)})).then((o=>{if(e.isUnmounted||_.isUnmounted||_.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:a}=e;Zn(e,o,!1),r&&(a.el=r);const i=!r&&e.subTree.el;t(e,a,b(r||e.subTree.el),r?null:g(e.subTree),_,s,c),i&&v(i),re(e,a.el),n&&0==--_.deps&&_.resolve()}))},unmount(e,t){_.isUnmounted=!0,_.activeBranch&&m(_.activeBranch,n,e,t),_.pendingBranch&&m(_.pendingBranch,n,e,t)}};return _}function se(e){let t;if((0,o.mf)(e)){const n=sn&&e._c;n&&(e._d=!1,rn()),e=e(),n&&(e._d=!0,t=nn,on())}if((0,o.kJ)(e)){const t=function(e){let t;for(let n=0;nt!==e))),e}function le(e,t){t&&t.pendingBranch?(0,o.kJ)(e)?t.effects.push(...e):t.effects.push(e):O(e)}function ce(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,o=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=o,re(r,o))}function ue(e,t){if(Un){let n=Un.provides;const r=Un.parent&&Un.parent.provides;r===n&&(n=Un.provides=Object.create(r)),n[e]=t}}function de(e,t,n=!1){const r=Un||W;if(r){const a=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(a&&e in a)return a[e];if(arguments.length>1)return n&&(0,o.mf)(t)?t.call(r.proxy):t}}function pe(e,t){return be(e,null,t)}function he(e,t){return be(e,null,{flush:"post"})}function fe(e,t){return be(e,null,{flush:"sync"})}const me={};function ge(e,t,n){return be(e,t,n)}function be(e,t,{immediate:n,deep:a,flush:i,onTrack:s,onTrigger:l}=o.kT){const d=Un;let p,h,f=!1,m=!1;if((0,r.dq)(e)?(p=()=>e.value,f=(0,r.yT)(e)):(0,r.PG)(e)?(p=()=>e,a=!0):(0,o.kJ)(e)?(m=!0,f=e.some(r.PG),p=()=>e.map((e=>(0,r.dq)(e)?e.value:(0,r.PG)(e)?_e(e):(0,o.mf)(e)?c(e,d,2):void 0))):p=(0,o.mf)(e)?t?()=>c(e,d,2):()=>{if(!d||!d.isUnmounted)return h&&h(),u(e,d,3,[y])}:o.dG,t&&a){const e=p;p=()=>_e(e())}let y=e=>{h=w.onStop=()=>{c(e,d,4)}};if(Xn)return y=o.dG,t?n&&u(t,d,3,[p(),m?[]:void 0,y]):p(),o.dG;let _=m?[]:me;const k=()=>{if(w.active)if(t){const e=w.run();(a||f||(m?e.some(((e,t)=>(0,o.aU)(e,_[t]))):(0,o.aU)(e,_)))&&(h&&h(),u(t,d,3,[e,_===me?void 0:_,y]),_=e)}else w.run()};let x;k.allowRecurse=!!t,x="sync"===i?k:"post"===i?()=>Lt(k,d&&d.suspense):()=>{!d||d.isMounted?function(e){T(e,b,g,v)}(k):k()};const w=new r.qq(p,x);return t?n?k():_=w.run():"post"===i?Lt(w.run.bind(w),d&&d.suspense):w.run(),()=>{w.stop(),d&&d.scope&&(0,o.Od)(d.scope.effects,w)}}function ve(e,t,n){const r=this.proxy,a=(0,o.HD)(e)?e.includes(".")?ye(r,e):()=>r[e]:e.bind(r,r);let i;(0,o.mf)(t)?i=t:(i=t.handler,n=t);const s=Un;Vn(this);const l=be(a,i.bind(r),n);return s?Vn(s):zn(),l}function ye(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e{_e(e,t)}));else if((0,o.PO)(e))for(const n in e)_e(e[n],t);return e}function ke(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return We((()=>{e.isMounted=!0})),Xe((()=>{e.isUnmounting=!0})),e}const xe=[Function,Array],we={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:xe,onEnter:xe,onAfterEnter:xe,onEnterCancelled:xe,onBeforeLeave:xe,onLeave:xe,onAfterLeave:xe,onLeaveCancelled:xe,onBeforeAppear:xe,onAppear:xe,onAfterAppear:xe,onAppearCancelled:xe},setup(e,{slots:t}){const n=Bn(),o=ke();let a;return()=>{const i=t.default&&Oe(t.default(),!0);if(!i||!i.length)return;const s=(0,r.IU)(e),{mode:l}=s,c=i[0];if(o.isLeaving)return Ce(c);const u=Ee(c);if(!u)return Ce(c);const d=Ae(u,s,o,n);Te(u,d);const p=n.subTree,h=p&&Ee(p);let f=!1;const{getTransitionKey:m}=u.type;if(m){const e=m();void 0===a?a=e:e!==a&&(a=e,f=!0)}if(h&&h.type!==Qt&&(!hn(u,h)||f)){const e=Ae(h,s,o,n);if(Te(h,e),"out-in"===l)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,n.update()},Ce(c);"in-out"===l&&u.type!==Qt&&(e.delayLeave=(e,t,n)=>{Se(o,h)[String(h.key)]=h,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=n})}return c}}};function Se(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function Ae(e,t,n,r){const{appear:o,mode:a,persisted:i=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:p,onLeave:h,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:g,onAppear:b,onAfterAppear:v,onAppearCancelled:y}=t,_=String(e.key),k=Se(n,e),x=(e,t)=>{e&&u(e,r,9,t)},w={mode:a,persisted:i,beforeEnter(t){let r=s;if(!n.isMounted){if(!o)return;r=g||s}t._leaveCb&&t._leaveCb(!0);const a=k[_];a&&hn(e,a)&&a.el._leaveCb&&a.el._leaveCb(),x(r,[t])},enter(e){let t=l,r=c,a=d;if(!n.isMounted){if(!o)return;t=b||l,r=v||c,a=y||d}let i=!1;const s=e._enterCb=t=>{i||(i=!0,x(t?a:r,[e]),w.delayedLeave&&w.delayedLeave(),e._enterCb=void 0)};t?(t(e,s),t.length<=1&&s()):s()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();x(p,[t]);let a=!1;const i=t._leaveCb=n=>{a||(a=!0,r(),x(n?m:f,[t]),t._leaveCb=void 0,k[o]===e&&delete k[o])};k[o]=e,h?(h(t,i),h.length<=1&&i()):i()},clone:e=>Ae(e,t,n,r)};return w}function Ce(e){if(Ie(e))return(e=kn(e)).children=null,e}function Ee(e){return Ie(e)?e.children?e.children[0]:void 0:e}function Te(e,t){6&e.shapeFlag&&e.component?Te(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Oe(e,t=!1){let n=[],r=0;for(let o=0;o1)for(let e=0;e!!e.type.__asyncLoader;function Re(e){(0,o.mf)(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:a,delay:i=200,timeout:s,suspensible:l=!0,onError:c}=e;let u,p=null,h=0;const f=()=>{let e;return p||(e=p=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),c)return new Promise(((t,n)=>{c(e,(()=>t((h++,p=null,f()))),(()=>n(e)),h+1)}));throw e})).then((t=>e!==p&&p?p:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),u=t,t))))};return Pe({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return u},setup(){const e=Un;if(u)return()=>Le(u,e);const t=t=>{p=null,d(t,e,13,!a)};if(l&&e.suspense||Xn)return f().then((t=>()=>Le(t,e))).catch((e=>(t(e),()=>a?yn(a,{error:e}):null)));const o=(0,r.iH)(!1),c=(0,r.iH)(),h=(0,r.iH)(!!i);return i&&setTimeout((()=>{h.value=!1}),i),null!=s&&setTimeout((()=>{if(!o.value&&!c.value){const e=new Error(`Async component timed out after ${s}ms.`);t(e),c.value=e}}),s),f().then((()=>{o.value=!0,e.parent&&Ie(e.parent.vnode)&&C(e.parent.update)})).catch((e=>{t(e),c.value=e})),()=>o.value&&u?Le(u,e):c.value&&a?yn(a,{error:c.value}):n&&!h.value?yn(n):void 0}})}function Le(e,{vnode:{ref:t,props:n,children:r}}){const o=yn(e,n,r);return o.ref=t,o}const Ie=e=>e.type.__isKeepAlive,Me={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Bn(),r=n.ctx;if(!r.renderer)return t.default;const a=new Map,i=new Set;let s=null;__VUE_PROD_DEVTOOLS__&&(n.__v_cache=a);const l=n.suspense,{renderer:{p:c,m:u,um:d,o:{createElement:p}}}=r,h=p("div");function f(e){qe(e),d(e,n,l,!0)}function m(e){a.forEach(((t,n)=>{const r=or(t.type);!r||e&&e(r)||g(n)}))}function g(e){const t=a.get(e);s&&t.type===s.type?s&&qe(s):f(t),a.delete(e),i.delete(e)}r.activate=(e,t,n,r,a)=>{const i=e.component;u(e,t,n,0,l),c(i.vnode,e,t,n,i,l,r,e.slotScopeIds,a),Lt((()=>{i.isDeactivated=!1,i.a&&(0,o.ir)(i.a);const t=e.props&&e.props.onVnodeMounted;t&&On(t,i.parent,e)}),l),__VUE_PROD_DEVTOOLS__&&$(i)},r.deactivate=e=>{const t=e.component;u(e,h,null,1,l),Lt((()=>{t.da&&(0,o.ir)(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&On(n,t.parent,e),t.isDeactivated=!0}),l),__VUE_PROD_DEVTOOLS__&&$(t)},ge((()=>[e.include,e.exclude]),(([e,t])=>{e&&m((t=>Fe(e,t))),t&&m((e=>!Fe(t,e)))}),{flush:"post",deep:!0});let b=null;const v=()=>{null!=b&&a.set(b,Ue(n.subTree))};return We(v),Ye(v),Xe((()=>{a.forEach((e=>{const{subTree:t,suspense:r}=n,o=Ue(t);if(e.type!==o.type)f(e);else{qe(o);const e=o.component.da;e&&Lt(e,r)}}))})),()=>{if(b=null,!t.default)return null;const n=t.default(),r=n[0];if(n.length>1)return s=null,n;if(!pn(r)||!(4&r.shapeFlag||128&r.shapeFlag))return s=null,r;let o=Ue(r);const l=o.type,c=or(De(o)?o.type.__asyncResolved||{}:l),{include:u,exclude:d,max:p}=e;if(u&&(!c||!Fe(u,c))||d&&c&&Fe(d,c))return s=o,r;const h=null==o.key?l:o.key,f=a.get(h);return o.el&&(o=kn(o),128&r.shapeFlag&&(r.ssContent=o)),b=h,f?(o.el=f.el,o.component=f.component,o.transition&&Te(o,o.transition),o.shapeFlag|=512,i.delete(h),i.add(h)):(i.add(h),p&&i.size>parseInt(p,10)&&g(i.values().next().value)),o.shapeFlag|=256,s=o,r}}};function Fe(e,t){return(0,o.kJ)(e)?e.some((e=>Fe(e,t))):(0,o.HD)(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function Ne(e,t){$e(e,"a",t)}function je(e,t){$e(e,"da",t)}function $e(e,t,n=Un){const r=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(Be(t,r,n),n){let e=n.parent;for(;e&&e.parent;)Ie(e.parent.vnode)&&He(r,t,n,e),e=e.parent}}function He(e,t,n,r){const a=Be(t,e,r,!0);Je((()=>{(0,o.Od)(r[t],a)}),n)}function qe(e){let t=e.shapeFlag;256&t&&(t-=256),512&t&&(t-=512),e.shapeFlag=t}function Ue(e){return 128&e.shapeFlag?e.ssContent:e}function Be(e,t,n=Un,o=!1){if(n){const a=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;(0,r.Jd)(),Vn(n);const a=u(t,n,e,o);return zn(),(0,r.lk)(),a});return o?a.unshift(i):a.push(i),i}}const Ve=e=>(t,n=Un)=>(!Xn||"sp"===e)&&Be(e,t,n),ze=Ve("bm"),We=Ve("m"),Ge=Ve("bu"),Ye=Ve("u"),Xe=Ve("bum"),Je=Ve("um"),Ze=Ve("sp"),Ke=Ve("rtg"),Qe=Ve("rtc");function et(e,t=Un){Be("ec",e,t)}let tt=!0;function nt(e,t,n){u((0,o.kJ)(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function rt(e,t,n,r){const a=r.includes(".")?ye(n,r):()=>n[r];if((0,o.HD)(e)){const n=t[e];(0,o.mf)(n)&&ge(a,n)}else if((0,o.mf)(e))ge(a,e.bind(n));else if((0,o.Kn)(e))if((0,o.kJ)(e))e.forEach((e=>rt(e,t,n,r)));else{const r=(0,o.mf)(e.handler)?e.handler.bind(n):t[e.handler];(0,o.mf)(r)&&ge(a,r,e)}}function ot(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:a,config:{optionMergeStrategies:i}}=e.appContext,s=a.get(t);let l;return s?l=s:o.length||n||r?(l={},o.length&&o.forEach((e=>at(l,e,i,!0))),at(l,t,i)):l=t,a.set(t,l),l}function at(e,t,n,r=!1){const{mixins:o,extends:a}=t;a&&at(e,a,n,!0),o&&o.forEach((t=>at(e,t,n,!0)));for(const o in t)if(r&&"expose"===o);else{const r=it[o]||n&&n[o];e[o]=r?r(e[o],t[o]):t[o]}return e}const it={data:st,props:ut,emits:ut,methods:ut,computed:ut,beforeCreate:ct,created:ct,beforeMount:ct,mounted:ct,beforeUpdate:ct,updated:ct,beforeDestroy:ct,beforeUnmount:ct,destroyed:ct,unmounted:ct,activated:ct,deactivated:ct,errorCaptured:ct,serverPrefetch:ct,components:ut,directives:ut,watch:function(e,t){if(!e)return t;if(!t)return e;const n=(0,o.l7)(Object.create(null),e);for(const r in t)n[r]=ct(e[r],t[r]);return n},provide:st,inject:function(e,t){return ut(lt(e),lt(t))}};function st(e,t){return t?e?function(){return(0,o.l7)((0,o.mf)(e)?e.call(this,this):e,(0,o.mf)(t)?t.call(this,this):t)}:t:e}function lt(e){if((0,o.kJ)(e)){const t={};for(let n=0;n{c=!0;const[n,r]=ht(e,t,!0);(0,o.l7)(s,n),r&&l.push(...r)};!n&&t.mixins.length&&t.mixins.forEach(r),e.extends&&r(e.extends),e.mixins&&e.mixins.forEach(r)}if(!i&&!c)return r.set(e,o.Z6),o.Z6;if((0,o.kJ)(i))for(let e=0;e-1,r[1]=n<0||e-1||(0,o.RI)(r,"default"))&&l.push(t)}}}const u=[s,l];return r.set(e,u),u}function ft(e){return"$"!==e[0]}function mt(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function gt(e,t){return mt(e)===mt(t)}function bt(e,t){return(0,o.kJ)(t)?t.findIndex((t=>gt(t,e))):(0,o.mf)(t)&>(t,e)?0:-1}const vt=e=>"_"===e[0]||"$stable"===e,yt=e=>(0,o.kJ)(e)?e.map(An):[An(e)],_t=(e,t,n)=>{const r=K(((...e)=>yt(t(...e))),n);return r._c=!1,r},kt=(e,t,n)=>{const r=e._ctx;for(const n in e){if(vt(n))continue;const a=e[n];if((0,o.mf)(a))t[n]=_t(0,a,r);else if(null!=a){const e=yt(a);t[n]=()=>e}}},xt=(e,t)=>{const n=yt(t);e.slots.default=()=>n};function wt(e,t){if(null===W)return e;const n=W.proxy,r=e.dirs||(e.dirs=[]);for(let e=0;e(i.has(e)||(e&&(0,o.mf)(e.install)?(i.add(e),e.install(l,...t)):(0,o.mf)(e)&&(i.add(e),e(l,...t))),l),mixin:e=>(__VUE_OPTIONS_API__&&(a.mixins.includes(e)||a.mixins.push(e)),l),component:(e,t)=>t?(a.components[e]=t,l):a.components[e],directive:(e,t)=>t?(a.directives[e]=t,l):a.directives[e],mount(o,i,c){if(!s){const u=yn(n,r);return u.appContext=a,i&&t?t(u,o):e(u,o,c),s=!0,l._container=o,o.__vue_app__=l,__VUE_PROD_DEVTOOLS__&&(l._instance=u.component,function(e,t){N("app:init",e,t,{Fragment:Zt,Text:Kt,Comment:Qt,Static:en})}(l,wr)),nr(u.component)||u.component.proxy}},unmount(){s&&(e(null,l._container),__VUE_PROD_DEVTOOLS__&&(l._instance=null,function(e){N("app:unmount",e)}(l)),delete l._container.__vue_app__)},provide:(e,t)=>(a.provides[e]=t,l)};return l}}function Tt(e,t,n,a,i=!1){if((0,o.kJ)(e))return void e.forEach(((e,r)=>Tt(e,t&&((0,o.kJ)(t)?t[r]:t),n,a,i)));if(De(a)&&!i)return;const s=4&a.shapeFlag?nr(a.component)||a.component.proxy:a.el,l=i?null:s,{i:u,r:d}=e,p=t&&t.r,h=u.refs===o.kT?u.refs={}:u.refs,f=u.setupState;if(null!=p&&p!==d&&((0,o.HD)(p)?(h[p]=null,(0,o.RI)(f,p)&&(f[p]=null)):(0,r.dq)(p)&&(p.value=null)),(0,o.mf)(d))c(d,u,12,[l,h]);else{const t=(0,o.HD)(d),a=(0,r.dq)(d);if(t||a){const a=()=>{if(e.f){const n=t?h[d]:d.value;i?(0,o.kJ)(n)&&(0,o.Od)(n,s):(0,o.kJ)(n)?n.includes(s)||n.push(s):t?h[d]=[s]:(d.value=[s],e.k&&(h[e.k]=d.value))}else t?(h[d]=l,(0,o.RI)(f,d)&&(f[d]=l)):(0,r.dq)(d)&&(d.value=l,e.k&&(h[e.k]=l))};l?(a.id=-1,Lt(a,n)):a()}}}let Ot=!1;const Pt=e=>/svg/.test(e.namespaceURI)&&"foreignObject"!==e.tagName,Dt=e=>8===e.nodeType;function Rt(e){const{mt:t,p:n,o:{patchProp:r,nextSibling:a,parentNode:i,remove:s,insert:l,createComment:c}}=e,u=(n,r,o,s,l,c=!1)=>{const g=Dt(n)&&"["===n.data,b=()=>f(n,r,o,s,l,g),{type:v,ref:y,shapeFlag:_}=r,k=n.nodeType;r.el=n;let x=null;switch(v){case Kt:3!==k?x=b():(n.data!==r.children&&(Ot=!0,n.data=r.children),x=a(n));break;case Qt:x=8!==k||g?b():a(n);break;case en:if(1===k){x=n;const e=!r.children.length;for(let t=0;t{l=l||!!t.dynamicChildren;const{type:c,props:u,patchFlag:d,shapeFlag:h,dirs:f}=t,m="input"===c&&f||"option"===c;if(m||-1!==d){if(f&&St(t,null,n,"created"),u)if(m||!l||48&d)for(const t in u)(m&&t.endsWith("value")||(0,o.F7)(t)&&!(0,o.Gg)(t))&&r(e,t,null,u[t],!1,void 0,n);else u.onClick&&r(e,"onClick",null,u.onClick,!1,void 0,n);let c;if((c=u&&u.onVnodeBeforeMount)&&On(c,n,t),f&&St(t,null,n,"beforeMount"),((c=u&&u.onVnodeMounted)||f)&&le((()=>{c&&On(c,n,t),f&&St(t,null,n,"mounted")}),a),16&h&&(!u||!u.innerHTML&&!u.textContent)){let r=p(e.firstChild,t,e,n,a,i,l);for(;r;){Ot=!0;const e=r;r=r.nextSibling,s(e)}}else 8&h&&e.textContent!==t.children&&(Ot=!0,e.textContent=t.children)}return e.nextSibling},p=(e,t,r,o,a,i,s)=>{s=s||!!t.dynamicChildren;const l=t.children,c=l.length;for(let t=0;t{const{slotScopeIds:u}=t;u&&(o=o?o.concat(u):u);const d=i(e),h=p(a(e),t,d,n,r,o,s);return h&&Dt(h)&&"]"===h.data?a(t.anchor=h):(Ot=!0,l(t.anchor=c("]"),d,h),h)},f=(e,t,r,o,l,c)=>{if(Ot=!0,t.el=null,c){const t=m(e);for(;;){const n=a(e);if(!n||n===t)break;s(n)}}const u=a(e),d=i(e);return s(e),n(null,t,d,u,r,o,Pt(d),l),u},m=e=>{let t=0;for(;e;)if((e=a(e))&&Dt(e)&&("["===e.data&&t++,"]"===e.data)){if(0===t)return a(e);t--}return e};return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),void D();Ot=!1,u(t.firstChild,e,null,null,null),D(),Ot&&console.error("Hydration completed but contains mismatches.")},u]}const Lt=le;function It(e){return Ft(e)}function Mt(e){return Ft(e,Rt)}function Ft(e,t){"boolean"!=typeof __VUE_OPTIONS_API__&&((0,o.E9)().__VUE_OPTIONS_API__=!0),"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&((0,o.E9)().__VUE_PROD_DEVTOOLS__=!1);const n=(0,o.E9)();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&j(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:a,remove:i,patchProp:s,createElement:l,createText:c,createComment:u,setText:d,setElementText:p,parentNode:h,nextSibling:g,setScopeId:b=o.dG,cloneNode:v,insertStaticContent:y}=e,_=(e,t,n,r=null,o=null,a=null,i=!1,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!hn(e,t)&&(r=te(e),X(e,o,a,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Kt:k(e,t,n,r);break;case Qt:x(e,t,n,r);break;case en:null==e&&w(t,n,r,i);break;case Zt:I(e,t,n,r,o,a,i,s,l);break;default:1&d?S(e,t,n,r,o,a,i,s,l):6&d?M(e,t,n,r,o,a,i,s,l):(64&d||128&d)&&c.process(e,t,n,r,o,a,i,s,l,ae)}null!=u&&o&&Tt(u,e&&e.ref,a,t||e,!t)},k=(e,t,n,r)=>{if(null==e)a(t.el=c(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&d(n,t.children)}},x=(e,t,n,r)=>{null==e?a(t.el=u(t.children||""),n,r):t.el=e.el},w=(e,t,n,r)=>{[e.el,e.anchor]=y(e.children,t,n,r,e.el,e.anchor)},S=(e,t,n,r,o,a,i,s,l)=>{i=i||"svg"===t.type,null==e?A(t,n,r,o,a,i,s,l):O(e,t,o,a,i,s,l)},A=(e,t,n,r,i,c,u,d)=>{let h,f;const{type:m,props:g,shapeFlag:b,transition:y,patchFlag:_,dirs:k}=e;if(e.el&&void 0!==v&&-1===_)h=e.el=v(e.el);else{if(h=e.el=l(e.type,c,g&&g.is,g),8&b?p(h,e.children):16&b&&T(e.children,h,null,r,i,c&&"foreignObject"!==m,u,d),k&&St(e,null,r,"created"),g){for(const t in g)"value"===t||(0,o.Gg)(t)||s(h,t,null,g[t],c,e.children,r,i,ee);"value"in g&&s(h,"value",null,g.value),(f=g.onVnodeBeforeMount)&&On(f,r,e)}E(h,e,e.scopeId,u,r)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(h,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(h,"__vueParentComponent",{value:r,enumerable:!1})),k&&St(e,null,r,"beforeMount");const x=(!i||i&&!i.pendingBranch)&&y&&!y.persisted;x&&y.beforeEnter(h),a(h,t,n),((f=g&&g.onVnodeMounted)||x||k)&&Lt((()=>{f&&On(f,r,e),x&&y.enter(h),k&&St(e,null,r,"mounted")}),i)},E=(e,t,n,r,o)=>{if(n&&b(e,n),r)for(let t=0;t{for(let c=l;c{const c=t.el=e.el;let{patchFlag:u,dynamicChildren:d,dirs:h}=t;u|=16&e.patchFlag;const f=e.props||o.kT,m=t.props||o.kT;let g;n&&Nt(n,!1),(g=m.onVnodeBeforeUpdate)&&On(g,n,t,e),h&&St(t,e,n,"beforeUpdate"),n&&Nt(n,!0);const b=a&&"foreignObject"!==t.type;if(d?R(e.dynamicChildren,d,c,n,r,b,i):l||V(e,t,c,null,n,r,b,i,!1),u>0){if(16&u)L(c,t,f,m,n,r,a);else if(2&u&&f.class!==m.class&&s(c,"class",null,m.class,a),4&u&&s(c,"style",f.style,m.style,a),8&u){const o=t.dynamicProps;for(let t=0;t{g&&On(g,n,t,e),h&&St(t,e,n,"updated")}),r)},R=(e,t,n,r,o,a,i)=>{for(let s=0;s{if(n!==r){for(const c in r){if((0,o.Gg)(c))continue;const u=r[c],d=n[c];u!==d&&"value"!==c&&s(e,c,d,u,l,t.children,a,i,ee)}if(n!==o.kT)for(const c in n)(0,o.Gg)(c)||c in r||s(e,c,n[c],null,l,t.children,a,i,ee);"value"in r&&s(e,"value",n.value,r.value)}},I=(e,t,n,r,o,i,s,l,u)=>{const d=t.el=e?e.el:c(""),p=t.anchor=e?e.anchor:c("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(a(d,n,r),a(p,n,r),T(t.children,n,p,o,i,s,l,u)):h>0&&64&h&&f&&e.dynamicChildren?(R(e.dynamicChildren,f,n,o,i,s,l),(null!=t.key||o&&t===o.subTree)&&jt(e,t,!0)):V(e,t,n,p,o,i,s,l,u)},M=(e,t,n,r,o,a,i,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,i,l):F(t,n,r,o,a,i,l):N(e,t,l)},F=(e,t,n,r,o,a,i)=>{const s=e.component=qn(e,r,o);if(Ie(e)&&(s.ctx.renderer=ae),Jn(s),s.asyncDep){if(o&&o.registerDep(s,U),!e.el){const e=s.subTree=yn(Qt);x(null,e,t,n)}}else U(s,e,t,n,o,a,i)},N=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:a}=e,{props:i,children:s,patchFlag:l}=t,c=a.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!o&&!s||s&&s.$stable)||r!==i&&(r?!i||ne(r,i,c):!!i);if(1024&l)return!0;if(16&l)return r?ne(r,i,c):!!i;if(8&l){const e=t.dynamicProps;for(let t=0;tm&&f.splice(t,1)}(r.update),r.update()}else t.component=e.component,t.el=e.el,r.vnode=t},U=(e,t,n,a,i,s,l)=>{const c=e.effect=new r.qq((()=>{if(e.isMounted){let t,{next:n,bu:r,u:a,parent:c,vnode:u}=e,d=n;Nt(e,!1),n?(n.el=u.el,B(e,n,l)):n=u,r&&(0,o.ir)(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&On(t,c,n,u),Nt(e,!0);const p=Q(e),f=e.subTree;e.subTree=p,_(f,p,h(f.el),te(f),e,i,s),n.el=p.el,null===d&&re(e,p.el),a&&Lt(a,i),(t=n.props&&n.props.onVnodeUpdated)&&Lt((()=>On(t,c,n,u)),i),__VUE_PROD_DEVTOOLS__&&H(e)}else{let r;const{el:l,props:c}=t,{bm:u,m:d,parent:p}=e,h=De(t);if(Nt(e,!1),u&&(0,o.ir)(u),!h&&(r=c&&c.onVnodeBeforeMount)&&On(r,p,t),Nt(e,!0),l&&se){const n=()=>{e.subTree=Q(e),se(l,e.subTree,e,i,null)};h?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const r=e.subTree=Q(e);_(null,r,n,a,e,i,s),t.el=r.el}if(d&&Lt(d,i),!h&&(r=c&&c.onVnodeMounted)){const e=t;Lt((()=>On(r,p,e)),i)}256&t.shapeFlag&&e.a&&Lt(e.a,i),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&$(e),t=n=a=null}}),(()=>C(e.update)),e.scope),u=e.update=c.run.bind(c);u.id=e.uid,Nt(e,!0),u()},B=(e,t,n)=>{t.component=e;const a=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,a){const{props:i,attrs:s,vnode:{patchFlag:l}}=e,c=(0,r.IU)(i),[u]=e.propsOptions;let d=!1;if(!(a||l>0)||16&l){let r;dt(e,t,i,s)&&(d=!0);for(const a in c)t&&((0,o.RI)(t,a)||(r=(0,o.rs)(a))!==a&&(0,o.RI)(t,r))||(u?!n||void 0===n[a]&&void 0===n[r]||(i[a]=pt(u,c,a,void 0,e,!0)):delete i[a]);if(s!==c)for(const e in s)t&&(0,o.RI)(t,e)||(delete s[e],d=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let r=0;r{const{vnode:r,slots:a}=e;let i=!0,s=o.kT;if(32&r.shapeFlag){const e=t._;e?n&&1===e?i=!1:((0,o.l7)(a,t),n||1!==e||delete a._):(i=!t.$stable,kt(t,a)),s=t}else t&&(xt(e,t),s={default:1});if(i)for(const e in a)vt(e)||e in s||delete a[e]})(e,t.children,n),(0,r.Jd)(),P(void 0,e.update),(0,r.lk)()},V=(e,t,n,r,o,a,i,s,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void G(c,d,n,r,o,a,i,s,l);if(256&h)return void W(c,d,n,r,o,a,i,s,l)}8&f?(16&u&&ee(c,o,a),d!==c&&p(n,d)):16&u?16&f?G(c,d,n,r,o,a,i,s,l):ee(c,o,a,!0):(8&u&&p(n,""),16&f&&T(d,n,r,o,a,i,s,l))},W=(e,t,n,r,a,i,s,l,c)=>{e=e||o.Z6,t=t||o.Z6;const u=e.length,d=t.length,p=Math.min(u,d);let h;for(h=0;hd?ee(e,a,i,!0,!1,p):T(t,n,r,a,i,s,l,c,p)},G=(e,t,n,r,a,i,s,l,c)=>{let u=0;const d=t.length;let p=e.length-1,h=d-1;for(;u<=p&&u<=h;){const r=e[u],o=t[u]=c?Cn(t[u]):An(t[u]);if(!hn(r,o))break;_(r,o,n,null,a,i,s,l,c),u++}for(;u<=p&&u<=h;){const r=e[p],o=t[h]=c?Cn(t[h]):An(t[h]);if(!hn(r,o))break;_(r,o,n,null,a,i,s,l,c),p--,h--}if(u>p){if(u<=h){const e=h+1,o=eh)for(;u<=p;)X(e[u],a,i,!0),u++;else{const f=u,m=u,g=new Map;for(u=m;u<=h;u++){const e=t[u]=c?Cn(t[u]):An(t[u]);null!=e.key&&g.set(e.key,u)}let b,v=0;const y=h-m+1;let k=!1,x=0;const w=new Array(y);for(u=0;u=y){X(r,a,i,!0);continue}let o;if(null!=r.key)o=g.get(r.key);else for(b=m;b<=h;b++)if(0===w[b-m]&&hn(r,t[b])){o=b;break}void 0===o?X(r,a,i,!0):(w[o-m]=u+1,o>=x?x=o:k=!0,_(r,t[o],n,null,a,i,s,l,c),v++)}const S=k?function(e){const t=e.slice(),n=[0];let r,o,a,i,s;const l=e.length;for(r=0;r>1,e[n[s]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,i=n[a-1];a-- >0;)n[a]=i,i=t[i];return n}(w):o.Z6;for(b=S.length-1,u=y-1;u>=0;u--){const e=m+u,o=t[e],p=e+1{const{el:i,type:s,transition:l,children:c,shapeFlag:u}=e;if(6&u)Y(e.component.subTree,t,n,r);else if(128&u)e.suspense.move(t,n,r);else if(64&u)s.move(e,t,n,ae);else if(s!==Zt)if(s!==en)if(2!==r&&1&u&&l)if(0===r)l.beforeEnter(i),a(i,t,n),Lt((()=>l.enter(i)),o);else{const{leave:e,delayLeave:r,afterLeave:o}=l,s=()=>a(i,t,n),c=()=>{e(i,(()=>{s(),o&&o()}))};r?r(i,s,c):c()}else a(i,t,n);else(({el:e,anchor:t},n,r)=>{let o;for(;e&&e!==t;)o=g(e),a(e,n,r),e=o;a(t,n,r)})(e,t,n);else{a(i,t,n);for(let e=0;e{const{type:a,props:i,ref:s,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p}=e;if(null!=s&&Tt(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&p,f=!De(e);let m;if(f&&(m=i&&i.onVnodeBeforeUnmount)&&On(m,t,e),6&u)K(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&St(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,o,ae,r):c&&(a!==Zt||d>0&&64&d)?ee(c,t,n,!1,!0):(a===Zt&&384&d||!o&&16&u)&&ee(l,t,n),r&&J(e)}(f&&(m=i&&i.onVnodeUnmounted)||h)&&Lt((()=>{m&&On(m,t,e),h&&St(e,null,t,"unmounted")}),n)},J=e=>{const{type:t,el:n,anchor:r,transition:o}=e;if(t===Zt)return void Z(n,r);if(t===en)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=g(e),i(e),e=n;i(t)})(e);const a=()=>{i(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:r}=o,i=()=>t(n,a);r?r(e.el,a,i):i()}else a()},Z=(e,t)=>{let n;for(;e!==t;)n=g(e),i(e),e=n;i(t)},K=(e,t,n)=>{const{bum:r,scope:a,update:i,subTree:s,um:l}=e;r&&(0,o.ir)(r),a.stop(),i&&(i.active=!1,X(s,e,t,n)),l&&Lt(l,t),Lt((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&q(e)},ee=(e,t,n,r=!1,o=!1,a=0)=>{for(let i=a;i6&e.shapeFlag?te(e.component.subTree):128&e.shapeFlag?e.suspense.next():g(e.anchor||e.el),oe=(e,t,n)=>{null==e?t._vnode&&X(t._vnode,null,null,!0):_(t._vnode||null,e,t,null,null,null,n),D(),t._vnode=e},ae={p:_,um:X,m:Y,r:J,mt:F,mc:T,pc:V,pbc:R,n:te,o:e};let ie,se;return t&&([ie,se]=t(ae)),{render:oe,hydrate:ie,createApp:Et(oe,ie)}}function Nt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function jt(e,t,n=!1){const r=e.children,a=t.children;if((0,o.kJ)(r)&&(0,o.kJ)(a))for(let e=0;ee&&(e.disabled||""===e.disabled),Ht=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,qt=(e,t)=>{const n=e&&e.to;if((0,o.HD)(n)){if(t){return t(n)}return null}return n};function Ut(e,t,n,{o:{insert:r},m:o},a=2){0===a&&r(e.targetAnchor,t,n);const{el:i,anchor:s,shapeFlag:l,children:c,props:u}=e,d=2===a;if(d&&r(i,t,n),(!d||$t(u))&&16&l)for(let e=0;e{16&v&&u(y,e,t,o,a,i,s,l)};b?g(n,c):d&&g(d,p)}else{t.el=e.el;const r=t.anchor=e.anchor,u=t.target=e.target,h=t.targetAnchor=e.targetAnchor,m=$t(e.props),g=m?n:u,v=m?r:h;if(i=i||Ht(u),_?(p(e.dynamicChildren,_,g,o,a,i,s),jt(e,t,!0)):l||d(e,t,g,v,o,a,i,s,!1),b)m||Ut(t,n,r,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=qt(t.props,f);e&&Ut(t,e,null,c,0)}else m&&Ut(t,u,h,c,1)}},remove(e,t,n,r,{um:o,o:{remove:a}},i){const{shapeFlag:s,children:l,anchor:c,targetAnchor:u,target:d,props:p}=e;if(d&&a(u),(i||!$t(p))&&(a(c),16&s))for(let e=0;e0?nn||o.Z6:null,on(),sn>0&&nn&&nn.push(e),e}function un(e,t,n,r,o,a){return cn(vn(e,t,n,r,o,a,!0))}function dn(e,t,n,r,o){return cn(yn(e,t,n,r,o,!0))}function pn(e){return!!e&&!0===e.__v_isVNode}function hn(e,t){return e.type===t.type&&e.key===t.key}function fn(e){an=e}const mn="__vInternal",gn=({key:e})=>null!=e?e:null,bn=({ref:e,ref_key:t,ref_for:n})=>null!=e?(0,o.HD)(e)||(0,r.dq)(e)||(0,o.mf)(e)?{i:W,r:e,k:t,f:!!n}:e:null;function vn(e,t=null,n=null,r=0,a=null,i=(e===Zt?0:1),s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&gn(t),ref:t&&bn(t),scopeId:G,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:a,dynamicChildren:null,appContext:null};return l?(En(c,n),128&i&&e.normalize(c)):n&&(c.shapeFlag|=(0,o.HD)(n)?8:16),sn>0&&!s&&nn&&(c.patchFlag>0||6&i)&&32!==c.patchFlag&&nn.push(c),c}const yn=function(e,t=null,n=null,a=0,i=null,s=!1){if(e&&e!==Wt||(e=Qt),pn(e)){const r=kn(e,t,!0);return n&&En(r,n),r}if(l=e,(0,o.mf)(l)&&"__vccOpts"in l&&(e=e.__vccOpts),t){t=_n(t);let{class:e,style:n}=t;e&&!(0,o.HD)(e)&&(t.class=(0,o.C_)(e)),(0,o.Kn)(n)&&((0,r.X3)(n)&&!(0,o.kJ)(n)&&(n=(0,o.l7)({},n)),t.style=(0,o.j5)(n))}var l;return vn(e,t,n,a,i,(0,o.HD)(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:(0,o.Kn)(e)?4:(0,o.mf)(e)?2:0,s,!0)};function _n(e){return e?(0,r.X3)(e)||mn in e?(0,o.l7)({},e):e:null}function kn(e,t,n=!1){const{props:r,ref:a,patchFlag:i,children:s}=e,l=t?Tn(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&gn(l),ref:t&&t.ref?n&&a?(0,o.kJ)(a)?a.concat(bn(t)):[a,bn(t)]:bn(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Zt?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&kn(e.ssContent),ssFallback:e.ssFallback&&kn(e.ssFallback),el:e.el,anchor:e.anchor}}function xn(e=" ",t=0){return yn(Kt,null,e,t)}function wn(e,t){const n=yn(en,null,e);return n.staticCount=t,n}function Sn(e="",t=!1){return t?(rn(),dn(Qt,null,e)):yn(Qt,null,e)}function An(e){return null==e||"boolean"==typeof e?yn(Qt):(0,o.kJ)(e)?yn(Zt,null,e.slice()):"object"==typeof e?Cn(e):yn(Kt,null,String(e))}function Cn(e){return null===e.el||e.memo?e:kn(e)}function En(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if((0,o.kJ)(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),En(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||mn in t?3===r&&W&&(1===W.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=W}}else(0,o.mf)(t)?(t={default:t,_ctx:W},n=32):(t=String(t),64&r?(n=16,t=[xn(t)]):n=8);e.children=t,e.shapeFlag|=n}function Tn(...e){const t={};for(let n=0;nt(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);a=new Array(n.length);for(let r=0,o=n.length;r!pn(e)||e.type!==Qt&&!(e.type===Zt&&!Ln(e.children))))?e:null}function In(e){const t={};for(const n in e)t[(0,o.hR)(n)]=e[n];return t}const Mn=e=>e?Wn(e)?nr(e)||e.proxy:Mn(e.parent):null,Fn=(0,o.l7)(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Mn(e.parent),$root:e=>Mn(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?ot(e):e.type,$forceUpdate:e=>()=>C(e.update),$nextTick:e=>A.bind(e.proxy),$watch:e=>__VUE_OPTIONS_API__?ve.bind(e):o.dG}),Nn={get({_:e},t){const{ctx:n,setupState:a,data:i,props:s,accessCache:l,type:c,appContext:u}=e;let d;if("$"!==t[0]){const r=l[t];if(void 0!==r)switch(r){case 1:return a[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(a!==o.kT&&(0,o.RI)(a,t))return l[t]=1,a[t];if(i!==o.kT&&(0,o.RI)(i,t))return l[t]=2,i[t];if((d=e.propsOptions[0])&&(0,o.RI)(d,t))return l[t]=3,s[t];if(n!==o.kT&&(0,o.RI)(n,t))return l[t]=4,n[t];__VUE_OPTIONS_API__&&!tt||(l[t]=0)}}const p=Fn[t];let h,f;return p?("$attrs"===t&&(0,r.j)(e,"get",t),p(e)):(h=c.__cssModules)&&(h=h[t])?h:n!==o.kT&&(0,o.RI)(n,t)?(l[t]=4,n[t]):(f=u.config.globalProperties,(0,o.RI)(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:r,setupState:a,ctx:i}=e;return a!==o.kT&&(0,o.RI)(a,t)?(a[t]=n,!0):r!==o.kT&&(0,o.RI)(r,t)?(r[t]=n,!0):!((0,o.RI)(e.props,t)||"$"===t[0]&&t.slice(1)in e||(i[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:a,propsOptions:i}},s){let l;return!!n[s]||e!==o.kT&&(0,o.RI)(e,s)||t!==o.kT&&(0,o.RI)(t,s)||(l=i[0])&&(0,o.RI)(l,s)||(0,o.RI)(r,s)||(0,o.RI)(Fn,s)||(0,o.RI)(a.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?this.set(e,t,n.get(),null):null!=n.value&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},jn=(0,o.l7)({},Nn,{get(e,t){if(t!==Symbol.unscopables)return Nn.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!(0,o.e1)(t)}),$n=At();let Hn=0;function qn(e,t,n){const a=e.type,i=(t?t.appContext:e.appContext)||$n,s={uid:Hn++,vnode:e,type:a,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new r.Bj(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ht(a,i),emitsOptions:V(a,i),emit:null,emitted:null,propsDefaults:o.kT,inheritAttrs:a.inheritAttrs,ctx:o.kT,data:o.kT,props:o.kT,attrs:o.kT,slots:o.kT,refs:o.kT,setupState:o.kT,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return s.ctx={_:s},s.root=t?t.root:s,s.emit=B.bind(null,s),e.ce&&e.ce(s),s}let Un=null;const Bn=()=>Un||W,Vn=e=>{Un=e,e.scope.on()},zn=()=>{Un&&Un.scope.off(),Un=null};function Wn(e){return 4&e.vnode.shapeFlag}let Gn,Yn,Xn=!1;function Jn(e,t=!1){Xn=t;const{props:n,children:a}=e.vnode,i=Wn(e);!function(e,t,n,a=!1){const i={},s={};(0,o.Nj)(s,mn,1),e.propsDefaults=Object.create(null),dt(e,t,i,s);for(const t in e.propsOptions[0])t in i||(i[t]=void 0);n?e.props=a?i:(0,r.Um)(i):e.type.props?e.props=i:e.props=s,e.attrs=s}(e,n,i,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=(0,r.IU)(t),(0,o.Nj)(t,"_",n)):kt(t,e.slots={})}else e.slots={},t&&xt(e,t);(0,o.Nj)(e.slots,mn,1)})(e,a);const s=i?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=(0,r.Xl)(new Proxy(e.ctx,Nn));const{setup:a}=n;if(a){const n=e.setupContext=a.length>1?tr(e):null;Vn(e),(0,r.Jd)();const i=c(a,e,0,[e.props,n]);if((0,r.lk)(),zn(),(0,o.tI)(i)){if(i.then(zn,zn),t)return i.then((n=>{Zn(e,n,t)})).catch((t=>{d(t,e,0)}));e.asyncDep=i}else Zn(e,i,t)}else er(e,t)}(e,t):void 0;return Xn=!1,s}function Zn(e,t,n){(0,o.mf)(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:(0,o.Kn)(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=(0,r.WL)(t)),er(e,n)}function Kn(e){Gn=e,Yn=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,jn))}}const Qn=()=>!Gn;function er(e,t,n){const a=e.type;if(!e.render){if(!t&&Gn&&!a.render){const t=a.template;if(t){const{isCustomElement:n,compilerOptions:r}=e.appContext.config,{delimiters:i,compilerOptions:s}=a,l=(0,o.l7)((0,o.l7)({isCustomElement:n,delimiters:i},r),s);a.render=Gn(t,l)}}e.render=a.render||o.dG,Yn&&Yn(e)}__VUE_OPTIONS_API__&&(Vn(e),(0,r.Jd)(),function(e){const t=ot(e),n=e.proxy,a=e.ctx;tt=!1,t.beforeCreate&&nt(t.beforeCreate,e,"bc");const{data:i,computed:s,methods:l,watch:c,provide:u,inject:d,created:p,beforeMount:h,mounted:f,beforeUpdate:m,updated:g,activated:b,deactivated:v,beforeDestroy:y,beforeUnmount:_,destroyed:k,unmounted:x,render:w,renderTracked:S,renderTriggered:A,errorCaptured:C,serverPrefetch:E,expose:T,inheritAttrs:O,components:P,directives:D,filters:R}=t;if(d&&function(e,t,n=o.dG,a=!1){(0,o.kJ)(e)&&(e=lt(e));for(const n in e){const i=e[n];let s;s=(0,o.Kn)(i)?"default"in i?de(i.from||n,i.default,!0):de(i.from||n):de(i),(0,r.dq)(s)&&a?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.value,set:e=>s.value=e}):t[n]=s}}(d,a,null,e.appContext.config.unwrapInjectedRef),l)for(const e in l){const t=l[e];(0,o.mf)(t)&&(a[e]=t.bind(n))}if(i){const t=i.call(n,n);(0,o.Kn)(t)&&(e.data=(0,r.qj)(t))}if(tt=!0,s)for(const e in s){const t=s[e],r=(0,o.mf)(t)?t.bind(n,n):(0,o.mf)(t.get)?t.get.bind(n,n):o.dG,i=!(0,o.mf)(t)&&(0,o.mf)(t.set)?t.set.bind(n):o.dG,l=ir({get:r,set:i});Object.defineProperty(a,e,{enumerable:!0,configurable:!0,get:()=>l.value,set:e=>l.value=e})}if(c)for(const e in c)rt(c[e],a,n,e);if(u){const e=(0,o.mf)(u)?u.call(n):u;Reflect.ownKeys(e).forEach((t=>{ue(t,e[t])}))}function L(e,t){(0,o.kJ)(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(p&&nt(p,e,"c"),L(ze,h),L(We,f),L(Ge,m),L(Ye,g),L(Ne,b),L(je,v),L(et,C),L(Qe,S),L(Ke,A),L(Xe,_),L(Je,x),L(Ze,E),(0,o.kJ)(T))if(T.length){const t=e.exposed||(e.exposed={});T.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});w&&e.render===o.dG&&(e.render=w),null!=O&&(e.inheritAttrs=O),P&&(e.components=P),D&&(e.directives=D)}(e),(0,r.lk)(),zn())}function tr(e){let t;return{get attrs(){return t||(t=function(e){return new Proxy(e.attrs,{get:(t,n)=>((0,r.j)(e,"get","$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}function nr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((0,r.WL)((0,r.Xl)(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Fn?Fn[n](e):void 0}))}const rr=/(?:^|[-_])(\w)/g;function or(e){return(0,o.mf)(e)&&e.displayName||e.name}function ar(e,t,n=!1){let r=or(t);if(!r&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(r=e[1])}if(!r&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};r=n(e.components||e.parent.type.components)||n(e.appContext.components)}return r?r.replace(rr,(e=>e.toUpperCase())).replace(/[-_]/g,""):n?"App":"Anonymous"}const ir=(e,t)=>(0,r.Fl)(e,t,Xn);function sr(){return null}function lr(){return null}function cr(e){}function ur(e,t){return null}function dr(){return hr().slots}function pr(){return hr().attrs}function hr(){const e=Bn();return e.setupContext||(e.setupContext=tr(e))}function fr(e,t){const n=(0,o.kJ)(e)?e.reduce(((e,t)=>(e[t]={},e)),{}):e;for(const e in t){const r=n[e];r?(0,o.kJ)(r)||(0,o.mf)(r)?n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(n[e]={default:t[e]})}return n}function mr(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function gr(e){const t=Bn();let n=e();return zn(),(0,o.tI)(n)&&(n=n.catch((e=>{throw Vn(t),e}))),[n,()=>Vn(t)]}function br(e,t,n){const r=arguments.length;return 2===r?(0,o.Kn)(t)&&!(0,o.kJ)(t)?pn(t)?yn(e,null,[t]):yn(e,t):yn(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&pn(n)&&(n=[n]),yn(e,t,n))}const vr=Symbol(""),yr=()=>{{const e=de(vr);return e||i("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function _r(){}function kr(e,t,n,r){const o=n[r];if(o&&xr(o,e))return o;const a=t();return a.memo=e.slice(),n[r]=a}function xr(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let e=0;e0&&nn&&nn.push(e),!0}const wr="3.2.31",Sr={createComponentInstance:qn,setupComponent:Jn,renderComponentRoot:Q,setCurrentRenderingInstance:Y,isVNode:pn,normalizeVNode:An},Ar=null,Cr=null},9963:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BaseTransition:()=>o.P$,Comment:()=>o.sv,EffectScope:()=>o.Bj,Fragment:()=>o.HY,KeepAlive:()=>o.Ob,ReactiveEffect:()=>o.qq,Static:()=>o.qG,Suspense:()=>o.n4,Teleport:()=>o.lR,Text:()=>o.xv,Transition:()=>R,TransitionGroup:()=>J,VueElement:()=>A,callWithAsyncErrorHandling:()=>o.$d,callWithErrorHandling:()=>o.KU,camelize:()=>o._A,capitalize:()=>o.kC,cloneVNode:()=>o.Ho,compatUtils:()=>o.ry,computed:()=>o.Fl,createApp:()=>Ee,createBlock:()=>o.j4,createCommentVNode:()=>o.kq,createElementBlock:()=>o.iD,createElementVNode:()=>o._,createHydrationRenderer:()=>o.Eo,createPropsRestProxy:()=>o.p1,createRenderer:()=>o.Us,createSSRApp:()=>Te,createSlots:()=>o.Nv,createStaticVNode:()=>o.uE,createTextVNode:()=>o.Uk,createVNode:()=>o.Wm,customRef:()=>o.ZM,defineAsyncComponent:()=>o.RC,defineComponent:()=>o.aZ,defineCustomElement:()=>x,defineEmits:()=>o.Bz,defineExpose:()=>o.WY,defineProps:()=>o.MW,defineSSRCustomElement:()=>w,devtools:()=>o.mW,effect:()=>o.cE,effectScope:()=>o.B,getCurrentInstance:()=>o.FN,getCurrentScope:()=>o.nZ,getTransitionRawChildren:()=>o.Q6,guardReactiveProps:()=>o.F4,h:()=>o.h,handleError:()=>o.S3,hydrate:()=>Ce,initCustomFormatter:()=>o.Mr,initDirectivesForSSR:()=>De,inject:()=>o.f3,isMemoSame:()=>o.nQ,isProxy:()=>o.X3,isReactive:()=>o.PG,isReadonly:()=>o.$y,isRef:()=>o.dq,isRuntimeOnly:()=>o.of,isShallow:()=>o.yT,isVNode:()=>o.lA,markRaw:()=>o.Xl,mergeDefaults:()=>o.u_,mergeProps:()=>o.dG,nextTick:()=>o.Y3,normalizeClass:()=>o.C_,normalizeProps:()=>o.vs,normalizeStyle:()=>o.j5,onActivated:()=>o.dl,onBeforeMount:()=>o.wF,onBeforeUnmount:()=>o.Jd,onBeforeUpdate:()=>o.Xn,onDeactivated:()=>o.se,onErrorCaptured:()=>o.d1,onMounted:()=>o.bv,onRenderTracked:()=>o.bT,onRenderTriggered:()=>o.Yq,onScopeDispose:()=>o.EB,onServerPrefetch:()=>o.vl,onUnmounted:()=>o.Ah,onUpdated:()=>o.ic,openBlock:()=>o.wg,popScopeId:()=>o.Cn,provide:()=>o.JJ,proxyRefs:()=>o.WL,pushScopeId:()=>o.dD,queuePostFlushCb:()=>o.qb,reactive:()=>o.qj,readonly:()=>o.OT,ref:()=>o.iH,registerRuntimeCompiler:()=>o.Y1,render:()=>Ae,renderList:()=>o.Ko,renderSlot:()=>o.WI,resolveComponent:()=>o.up,resolveDirective:()=>o.Q2,resolveDynamicComponent:()=>o.LL,resolveFilter:()=>o.eq,resolveTransitionHooks:()=>o.U2,setBlockTracking:()=>o.qZ,setDevtoolsHook:()=>o.ec,setTransitionHooks:()=>o.nK,shallowReactive:()=>o.Um,shallowReadonly:()=>o.YS,shallowRef:()=>o.XI,ssrContextKey:()=>o.Uc,ssrUtils:()=>o.G,stop:()=>o.sT,toDisplayString:()=>o.zw,toHandlerKey:()=>o.hR,toHandlers:()=>o.mx,toRaw:()=>o.IU,toRef:()=>o.Vh,toRefs:()=>o.BK,transformVNodeArgs:()=>o.C3,triggerRef:()=>o.oR,unref:()=>o.SU,useAttrs:()=>o.l1,useCssModule:()=>C,useCssVars:()=>E,useSSRContext:()=>o.Zq,useSlots:()=>o.Rr,useTransitionState:()=>o.Y8,vModelCheckbox:()=>oe,vModelDynamic:()=>de,vModelRadio:()=>ie,vModelSelect:()=>se,vModelText:()=>re,vShow:()=>ve,version:()=>o.i8,warn:()=>o.ZK,watch:()=>o.YP,watchEffect:()=>o.m0,watchPostEffect:()=>o.Rh,watchSyncEffect:()=>o.yX,withAsyncContext:()=>o.mv,withCtx:()=>o.w5,withDefaults:()=>o.b9,withDirectives:()=>o.wy,withKeys:()=>be,withMemo:()=>o.MX,withModifiers:()=>me,withScopeId:()=>o.HX});var r=n(3577),o=n(6252),a=n(2262);const i="undefined"!=typeof document?document:null,s=i&&i.createElement("template"),l={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?i.createElementNS("http://www.w3.org/2000/svg",e):i.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>i.createTextNode(e),createComment:e=>i.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>i.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,o,a){const i=n?n.previousSibling:t.lastChild;if(o&&(o===a||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==a&&(o=o.nextSibling););else{s.innerHTML=r?`${e}`:e;const o=s.content;if(r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},c=/\s*!important$/;function u(e,t,n){if((0,r.kJ)(n))n.forEach((n=>u(e,t,n)));else if(t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=p[t];if(n)return n;let o=(0,r._A)(t);if("filter"!==o&&o in e)return p[t]=o;o=(0,r.kC)(o);for(let n=0;ndocument.createEvent("Event").timeStamp&&(f=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);m=!!(e&&Number(e[1])<=53)}let g=0;const b=Promise.resolve(),v=()=>{g=0};function y(e,t,n,r){e.addEventListener(t,n,r)}const _=/(?:Once|Passive|Capture)$/,k=/^on[a-z]/;function x(e,t){const n=(0,o.aZ)(e);class r extends A{constructor(e){super(n,e,t)}}return r.def=n,r}const w=e=>x(e,Ce),S="undefined"!=typeof HTMLElement?HTMLElement:class{};class A extends S{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,(0,o.Y3)((()=>{this._connected||(Ae(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let e=0;e{for(const t of e)this._setAttr(t.attributeName)})).observe(this,{attributes:!0});const e=e=>{const{props:t,styles:n}=e,o=!(0,r.kJ)(t),a=t?o?Object.keys(t):t:[];let i;if(o)for(const e in this._props){const n=t[e];(n===Number||n&&n.type===Number)&&(this._props[e]=(0,r.He)(this._props[e]),(i||(i=Object.create(null)))[e]=!0)}this._numberProps=i;for(const e of Object.keys(this))"_"!==e[0]&&this._setProp(e,this[e],!0,!1);for(const e of a.map(r._A))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t)}});this._applyStyles(n),this._update()},t=this._def.__asyncLoader;t?t().then(e):e(this._def)}_setAttr(e){let t=this.getAttribute(e);this._numberProps&&this._numberProps[e]&&(t=(0,r.He)(t)),this._setProp((0,r._A)(e),t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute((0,r.rs)(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute((0,r.rs)(e),t+""):t||this.removeAttribute((0,r.rs)(e))))}_update(){Ae(this._createVNode(),this.shadowRoot)}_createVNode(){const e=(0,o.Wm)(this._def,(0,r.l7)({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0,e.emit=(e,...t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof A){e.parent=t._instance;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function C(e="$style"){{const t=(0,o.FN)();if(!t)return r.kT;const n=t.type.__cssModules;if(!n)return r.kT;return n[e]||r.kT}}function E(e){const t=(0,o.FN)();if(!t)return;const n=()=>T(t.subTree,e(t.proxy));(0,o.Rh)(n),(0,o.bv)((()=>{const e=new MutationObserver(n);e.observe(t.subTree.el.parentNode,{childList:!0}),(0,o.Ah)((()=>e.disconnect()))}))}function T(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{T(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)O(e.el,t);else if(e.type===o.HY)e.children.forEach((e=>T(e,t)));else if(e.type===o.qG){let{el:n,anchor:r}=e;for(;n&&(O(n,t),n!==r);)n=n.nextSibling}}function O(e,t){if(1===e.nodeType){const n=e.style;for(const e in t)n.setProperty(`--${e}`,t[e])}}const P="transition",D="animation",R=(e,{slots:t})=>(0,o.h)(o.P$,N(e),t);R.displayName="Transition";const L={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},I=R.props=(0,r.l7)({},o.P$.props,L),M=(e,t=[])=>{(0,r.kJ)(e)?e.forEach((e=>e(...t))):e&&e(...t)},F=e=>!!e&&((0,r.kJ)(e)?e.some((e=>e.length>1)):e.length>1);function N(e){const t={};for(const n in e)n in L||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:a,enterFromClass:i=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:u=s,appearToClass:d=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if((0,r.Kn)(e))return[j(e.enter),j(e.leave)];{const t=j(e);return[t,t]}}(a),g=m&&m[0],b=m&&m[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:_,onLeave:k,onLeaveCancelled:x,onBeforeAppear:w=v,onAppear:S=y,onAppearCancelled:A=_}=t,C=(e,t,n)=>{H(e,t?d:l),H(e,t?u:s),n&&n()},E=(e,t)=>{H(e,f),H(e,h),t&&t()},T=e=>(t,n)=>{const r=e?S:y,a=()=>C(t,e,n);M(r,[t,a]),q((()=>{H(t,e?c:i),$(t,e?d:l),F(r)||B(t,o,g,a)}))};return(0,r.l7)(t,{onBeforeEnter(e){M(v,[e]),$(e,i),$(e,s)},onBeforeAppear(e){M(w,[e]),$(e,c),$(e,u)},onEnter:T(!1),onAppear:T(!0),onLeave(e,t){const n=()=>E(e,t);$(e,p),G(),$(e,h),q((()=>{H(e,p),$(e,f),F(k)||B(e,o,b,n)})),M(k,[e,n])},onEnterCancelled(e){C(e,!1),M(_,[e])},onAppearCancelled(e){C(e,!0),M(A,[e])},onLeaveCancelled(e){E(e),M(x,[e])}})}function j(e){return(0,r.He)(e)}function $(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function H(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function q(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let U=0;function B(e,t,n,r){const o=e._endId=++U,a=()=>{o===e._endId&&r()};if(n)return setTimeout(a,n);const{type:i,timeout:s,propCount:l}=V(e,t);if(!i)return r();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,p),a()},p=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{u(n[e]||"").split(", "),o=r("transitionDelay"),a=r("transitionDuration"),i=z(o,a),s=r("animationDelay"),l=r("animationDuration"),c=z(s,l);let u=null,d=0,p=0;return t===P?i>0&&(u=P,d=i,p=a.length):t===D?c>0&&(u=D,d=c,p=l.length):(d=Math.max(i,c),u=d>0?i>c?P:D:null,p=u?u===P?a.length:l.length:0),{type:u,timeout:d,propCount:p,hasTransform:u===P&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}function z(e,t){for(;e.lengthW(t)+W(e[n]))))}function W(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function G(){return document.body.offsetHeight}const Y=new WeakMap,X=new WeakMap,J={name:"TransitionGroup",props:(0,r.l7)({},I,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=(0,o.FN)(),r=(0,o.Y8)();let i,s;return(0,o.ic)((()=>{if(!i.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach((e=>{e.split(/\s+/).forEach((e=>e&&r.classList.remove(e)))})),n.split(/\s+/).forEach((e=>e&&r.classList.add(e))),r.style.display="none";const o=1===t.nodeType?t:t.parentNode;o.appendChild(r);const{hasTransform:a}=V(r);return o.removeChild(r),a}(i[0].el,n.vnode.el,t))return;i.forEach(Z),i.forEach(K);const r=i.filter(Q);G(),r.forEach((e=>{const n=e.el,r=n.style;$(n,t),r.transform=r.webkitTransform=r.transitionDuration="";const o=n._moveCb=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",o),n._moveCb=null,H(n,t))};n.addEventListener("transitionend",o)}))})),()=>{const l=(0,a.IU)(e),c=N(l);let u=l.tag||o.HY;i=s,s=t.default?(0,o.Q6)(t.default()):[];for(let e=0;e{const t=e.props["onUpdate:modelValue"];return(0,r.kJ)(t)?e=>(0,r.ir)(t,e):t};function te(e){e.target.composing=!0}function ne(e){const t=e.target;t.composing&&(t.composing=!1,function(e,t){const n=document.createEvent("HTMLEvents");n.initEvent("input",!0,!0),e.dispatchEvent(n)}(t))}const re={created(e,{modifiers:{lazy:t,trim:n,number:o}},a){e._assign=ee(a);const i=o||a.props&&"number"===a.props.type;y(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n?o=o.trim():i&&(o=(0,r.He)(o)),e._assign(o)})),n&&y(e,"change",(()=>{e.value=e.value.trim()})),t||(y(e,"compositionstart",te),y(e,"compositionend",ne),y(e,"change",ne))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:a}},i){if(e._assign=ee(i),e.composing)return;if(document.activeElement===e){if(n)return;if(o&&e.value.trim()===t)return;if((a||"number"===e.type)&&(0,r.He)(e.value)===t)return}const s=null==t?"":t;e.value!==s&&(e.value=s)}},oe={deep:!0,created(e,t,n){e._assign=ee(n),y(e,"change",(()=>{const t=e._modelValue,n=ce(e),o=e.checked,a=e._assign;if((0,r.kJ)(t)){const e=(0,r.hq)(t,n),i=-1!==e;if(o&&!i)a(t.concat(n));else if(!o&&i){const n=[...t];n.splice(e,1),a(n)}}else if((0,r.DM)(t)){const e=new Set(t);o?e.add(n):e.delete(n),a(e)}else a(ue(e,o))}))},mounted:ae,beforeUpdate(e,t,n){e._assign=ee(n),ae(e,t,n)}};function ae(e,{value:t,oldValue:n},o){e._modelValue=t,(0,r.kJ)(t)?e.checked=(0,r.hq)(t,o.props.value)>-1:(0,r.DM)(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=(0,r.WV)(t,ue(e,!0)))}const ie={created(e,{value:t},n){e.checked=(0,r.WV)(t,n.props.value),e._assign=ee(n),y(e,"change",(()=>{e._assign(ce(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e._assign=ee(o),t!==n&&(e.checked=(0,r.WV)(t,o.props.value))}},se={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const a=(0,r.DM)(t);y(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?(0,r.He)(ce(e)):ce(e)));e._assign(e.multiple?a?new Set(t):t:t[0])})),e._assign=ee(o)},mounted(e,{value:t}){le(e,t)},beforeUpdate(e,t,n){e._assign=ee(n)},updated(e,{value:t}){le(e,t)}};function le(e,t){const n=e.multiple;if(!n||(0,r.kJ)(t)||(0,r.DM)(t)){for(let o=0,a=e.options.length;o-1:a.selected=t.has(i);else if((0,r.WV)(ce(a),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function ce(e){return"_value"in e?e._value:e.value}function ue(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const de={created(e,t,n){pe(e,t,n,null,"created")},mounted(e,t,n){pe(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){pe(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){pe(e,t,n,r,"updated")}};function pe(e,t,n,r,o){let a;switch(e.tagName){case"SELECT":a=se;break;case"TEXTAREA":a=re;break;default:switch(n.props&&n.props.type){case"checkbox":a=oe;break;case"radio":a=ie;break;default:a=re}}const i=a[o];i&&i(e,t,n,r)}const he=["ctrl","shift","alt","meta"],fe={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>he.some((n=>e[`${n}Key`]&&!t.includes(n)))},me=(e,t)=>(n,...r)=>{for(let e=0;en=>{if(!("key"in n))return;const o=(0,r.rs)(n.key);return t.some((e=>e===o||ge[e]===o))?e(n):void 0},ve={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):ye(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),ye(e,!0),r.enter(e)):r.leave(e,(()=>{ye(e,!1)})):ye(e,t))},beforeUnmount(e,{value:t}){ye(e,t)}};function ye(e,t){e.style.display=t?e._vod:"none"}const _e=(0,r.l7)({patchProp:(e,t,n,a,i=!1,s,l,c,d)=>{"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,a,i):"style"===t?function(e,t,n){const o=e.style,a=(0,r.HD)(n);if(n&&!a){for(const e in n)u(o,e,n[e]);if(t&&!(0,r.HD)(t))for(const e in t)null==n[e]&&u(o,e,"")}else{const r=o.display;a?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=r)}}(e,n,a):(0,r.F7)(t)?(0,r.tR)(t)||function(e,t,n,a,i=null){const s=e._vei||(e._vei={}),l=s[t];if(a&&l)l.value=a;else{const[n,c]=function(e){let t;if(_.test(e)){let n;for(t={};n=e.match(_);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[(0,r.rs)(e.slice(2)),t]}(t);if(a){const l=s[t]=function(e,t){const n=e=>{const a=e.timeStamp||f();(m||a>=n.attached-1)&&(0,o.$d)(function(e,t){if((0,r.kJ)(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=g||(b.then(v),g=f()),n}(a,i);y(e,n,l,c)}else l&&(function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,l,c),s[t]=void 0)}}(e,t,0,a,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){return o?"innerHTML"===t||"textContent"===t||!!(t in e&&k.test(t)&&(0,r.mf)(n)):"spellcheck"!==t&&"draggable"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!k.test(t)||!(0,r.HD)(n))&&t in e))))}(e,t,a,i))?function(e,t,n,o,a,i,s){if("innerHTML"===t||"textContent"===t)return o&&s(o,a,i),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const r=null==n?"":n;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==n&&e.removeAttribute(t))}if(""===n||null==n){const o=typeof e[t];if("boolean"===o)return void(e[t]=(0,r.yA)(n));if(null==n&&"string"===o)return e[t]="",void e.removeAttribute(t);if("number"===o){try{e[t]=0}catch(e){}return void e.removeAttribute(t)}}try{e[t]=n}catch(e){}}(e,t,a,s,l,c,d):("true-value"===t?e._trueValue=a:"false-value"===t&&(e._falseValue=a),function(e,t,n,o,a){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(h,t.slice(6,t.length)):e.setAttributeNS(h,t,n);else{const o=(0,r.Pq)(t);null==n||o&&!(0,r.yA)(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,a,i))}},l);let ke,xe=!1;function we(){return ke||(ke=(0,o.Us)(_e))}function Se(){return ke=xe?ke:(0,o.Eo)(_e),xe=!0,ke}const Ae=(...e)=>{we().render(...e)},Ce=(...e)=>{Se().hydrate(...e)},Ee=(...e)=>{const t=we().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=Oe(e);if(!o)return;const a=t._component;(0,r.mf)(a)||a.render||a.template||(a.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t},Te=(...e)=>{const t=Se().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Oe(e);if(t)return n(t,!0,t instanceof SVGElement)},t};function Oe(e){return(0,r.HD)(e)?document.querySelector(e):e}let Pe=!1;const De=()=>{Pe||(Pe=!0,re.getSSRProps=({value:e})=>({value:e}),ie.getSSRProps=({value:e},t)=>{if(t.props&&(0,r.WV)(t.props.value,e))return{checked:!0}},oe.getSSRProps=({value:e},t)=>{if((0,r.kJ)(e)){if(t.props&&(0,r.hq)(e,t.props.value)>-1)return{checked:!0}}else if((0,r.DM)(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},ve.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})}},3577:(e,t,n)=>{"use strict";function r(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}n.d(t,{C_:()=>d,DM:()=>P,E9:()=>te,F7:()=>x,Gg:()=>U,HD:()=>L,He:()=>Q,Kn:()=>M,NO:()=>_,Nj:()=>K,Od:()=>A,PO:()=>H,Pq:()=>a,RI:()=>E,S0:()=>q,W7:()=>$,WV:()=>h,Z6:()=>v,_A:()=>z,_N:()=>O,aU:()=>J,dG:()=>y,e1:()=>o,fY:()=>r,hR:()=>X,hq:()=>f,ir:()=>Z,j5:()=>s,kC:()=>Y,kJ:()=>T,kT:()=>b,l7:()=>S,mf:()=>R,rs:()=>G,tI:()=>F,tR:()=>w,vs:()=>p,yA:()=>i,yk:()=>I,zw:()=>m});const o=r("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt"),a=r("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function i(e){return!!e||""===e}function s(e){if(T(e)){const t={};for(let n=0;n{if(e){const n=e.split(c);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function d(e){let t="";if(L(e))t=e;else if(T(e))for(let n=0;nh(e,t)))}const m=e=>L(e)?e:null==e?"":T(e)||M(e)&&(e.toString===N||!R(e.toString))?JSON.stringify(e,g,2):String(e),g=(e,t)=>t&&t.__v_isRef?g(e,t.value):O(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:P(t)?{[`Set(${t.size})`]:[...t.values()]}:!M(t)||T(t)||H(t)?t:String(t),b={},v=[],y=()=>{},_=()=>!1,k=/^on[^a-z]/,x=e=>k.test(e),w=e=>e.startsWith("onUpdate:"),S=Object.assign,A=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},C=Object.prototype.hasOwnProperty,E=(e,t)=>C.call(e,t),T=Array.isArray,O=e=>"[object Map]"===j(e),P=e=>"[object Set]"===j(e),D=e=>e instanceof Date,R=e=>"function"==typeof e,L=e=>"string"==typeof e,I=e=>"symbol"==typeof e,M=e=>null!==e&&"object"==typeof e,F=e=>M(e)&&R(e.then)&&R(e.catch),N=Object.prototype.toString,j=e=>N.call(e),$=e=>j(e).slice(8,-1),H=e=>"[object Object]"===j(e),q=e=>L(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,U=r(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),B=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},V=/-(\w)/g,z=B((e=>e.replace(V,((e,t)=>t?t.toUpperCase():"")))),W=/\B([A-Z])/g,G=B((e=>e.replace(W,"-$1").toLowerCase())),Y=B((e=>e.charAt(0).toUpperCase()+e.slice(1))),X=B((e=>e?`on${Y(e)}`:"")),J=(e,t)=>!Object.is(e,t),Z=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Q=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ee;const te=()=>ee||(ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{})},110:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(8081),o=n.n(r),a=n(3645),i=n.n(a)()(o());i.push([e.id,'.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}',""]);const s=i},2588:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(8081),o=n.n(r),a=n(3645),i=n.n(a)()(o());i.push([e.id,".tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}",""]);const s=i},3232:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(8081),o=n.n(r),a=n(3645),i=n.n(a)()(o());i.push([e.id,"\n.diffset-left {\n width: 48%;\n}\n.diffset-left .ins,\n.diffset-left ins {\n display: none !important;\n}\n.diffset-right {\n width: 48%;\n}\n.diffset-right .del,\n.diffset-right del {\n display: none !important;\n}\n",""]);const s=i},27:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(8081),o=n.n(r),a=n(3645),i=n.n(a)()(o());i.push([e.id,"\n.card-header[data-v-63c9ac08] {\n background-color: #ffdf80;\n font-family: var(--bs-body-font-family);\n}\n.card-body[data-v-63c9ac08] {\n background-color: #fff6da;\n}\n",""]);const s=i},6307:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(8081),o=n.n(r),a=n(3645),i=n.n(a)()(o());i.push([e.id,"\n.doc-search {\n display: flex;\n flex-direction: column;\n height: 100%;\n padding: 1rem;\n}\n.doc-search__results {\n flex: 1 1 auto;\n overflow-y: auto;\n height: 0;\n}\n.doc-search__results .snippet-card:focus {\n border-color: var(--bs-primary);\n}\n",""]);const s=i},3544:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(8081),o=n.n(r),a=n(3645),i=n.n(a)()(o());i.push([e.id,"\n.facets-scrollable[data-v-32034ea4] {\n max-height: 25vh;\n overflow-y: auto;\n}\n",""]);const s=i},1328:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(8081),o=n.n(r),a=n(3645),i=n.n(a)()(o());i.push([e.id,"\n.dropdown-menu .dropdown-item[data-v-10e31a92] {\n padding-left: 2.5rem;\n padding-right: 2.5rem;\n}\n",""]);const s=i},4593:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(8081),o=n.n(r),a=n(3645),i=n.n(a)()(o());i.push([e.id,"\n.mobile-side-drawer__mobile-view[data-v-6caa891a] {\n position: fixed;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n z-index: 99;\n visibility: hidden;\n transition: visibility 300ms ease-in-out;\n}\n.mobile-side-drawer__mobile-view__content[data-v-6caa891a] {\n width: 100%;\n height: 100%;\n position: relative;\n}\n.mobile-side-drawer__mobile-view__content .slot[data-v-6caa891a] {\n width: 80%;\n height: 100%;\n transition: transform 300ms ease-in-out;\n transform: translateX(-100%);\n overflow: auto;\n}\n.mobile-side-drawer__mobile-view__content .overlay[data-v-6caa891a] {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.5);\n transition: opacity 300ms ease-in-out;\n opacity: 0;\n}\n.mobile-side-drawer__mobile-view.active[data-v-6caa891a] {\n visibility: visible;\n}\n.mobile-side-drawer__mobile-view.active .slot[data-v-6caa891a] {\n transform: translateX(0);\n}\n.mobile-side-drawer__mobile-view.active .overlay[data-v-6caa891a] {\n opacity: 1;\n}\n",""]);const s=i},9473:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(8081),o=n.n(r),a=n(3645),i=n.n(a)()(o());i.push([e.id,"\n.hit mark {\n font-weight: bold;\n padding: 0px;\n color: inherit;\n}\n.snippet {\n line-height: 1.3;\n word-break: break-word;\n}\n.hit .explanation {\n max-height: 50vh;\n overflow-y: auto;\n}\n",""]);const s=i},1164:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(8081),o=n.n(r),a=n(3645),i=n.n(a)()(o());i.push([e.id,"\n.overlay[data-v-6963ae4d] {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: rgba(0, 0, 0, 0.2);\n z-index: 9;\n}\n.sort-body[data-v-6963ae4d] {\n display: flex;\n justify-content: space-between;\n}\n@media screen and (max-width: 400px) {\n.sort-body[data-v-6963ae4d] {\n flex-direction: column;\n}\n.sort__inner[data-v-6963ae4d] {\n margin-top: 10px;\n}\n}\n@media screen and (max-width: 992px) {\n.filter-facet-title[data-v-6963ae4d] {\n position: absolute;\n margin: auto;\n left: 0;\n right: 0;\n width: 40px;\n}\n}\n",""]);const s=i},6968:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(8081),o=n.n(r),a=n(3645),i=n.n(a)()(o());i.push([e.id,"\n.bi-chat-left[data-v-1f5a887a] {\n text-align: center;\n position: relative;\n z-index: 9;\n}\n@media screen and (max-width: 992px) {\n.card[data-v-1f5a887a] {\n position: fixed;\n bottom: 0;\n left: 0;\n width: 100%;\n transform: translateY(100%);\n transition: transform ease-in-out 300ms;\n z-index: 9;\n}\nla-gutter-item[active][data-v-1f5a887a] {\n z-index: 9;\n}\nla-gutter-item[active] .card[data-v-1f5a887a] {\n transform: translateY(0);\n}\n\n /*So content is above To the top element*/\n.card .card-body[data-v-1f5a887a] {\n padding-bottom: 40px;\n}\n}\n",""]);const s=i},404:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});var r=n(8081),o=n.n(r),a=n(3645),i=n.n(a)()(o());i.push([e.id,":root{--vs-colors--lightest:rgba(60,60,60,0.26);--vs-colors--light:rgba(60,60,60,0.5);--vs-colors--dark:#333;--vs-colors--darkest:rgba(0,0,0,0.15);--vs-search-input-color:inherit;--vs-search-input-placeholder-color:inherit;--vs-font-size:1rem;--vs-line-height:1.4;--vs-state-disabled-bg:#f8f8f8;--vs-state-disabled-color:var(--vs-colors--light);--vs-state-disabled-controls-color:var(--vs-colors--light);--vs-state-disabled-cursor:not-allowed;--vs-border-color:var(--vs-colors--lightest);--vs-border-width:1px;--vs-border-style:solid;--vs-border-radius:4px;--vs-actions-padding:4px 6px 0 3px;--vs-controls-color:var(--vs-colors--light);--vs-controls-size:1;--vs-controls--deselect-text-shadow:0 1px 0 #fff;--vs-selected-bg:#f0f0f0;--vs-selected-color:var(--vs-colors--dark);--vs-selected-border-color:var(--vs-border-color);--vs-selected-border-style:var(--vs-border-style);--vs-selected-border-width:var(--vs-border-width);--vs-dropdown-bg:#fff;--vs-dropdown-color:inherit;--vs-dropdown-z-index:1000;--vs-dropdown-min-width:160px;--vs-dropdown-max-height:350px;--vs-dropdown-box-shadow:0px 3px 6px 0px var(--vs-colors--darkest);--vs-dropdown-option-bg:#000;--vs-dropdown-option-color:var(--vs-dropdown-color);--vs-dropdown-option-padding:3px 20px;--vs-dropdown-option--active-bg:#5897fb;--vs-dropdown-option--active-color:#fff;--vs-dropdown-option--deselect-bg:#fb5858;--vs-dropdown-option--deselect-color:#fff;--vs-transition-timing-function:cubic-bezier(1,-0.115,0.975,0.855);--vs-transition-duration:150ms}.v-select{font-family:inherit;position:relative}.v-select,.v-select *{box-sizing:border-box}:root{--vs-transition-timing-function:cubic-bezier(1,0.5,0.8,1);--vs-transition-duration:0.15s}@-webkit-keyframes vSelectSpinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes vSelectSpinner{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.vs__fade-enter-active,.vs__fade-leave-active{pointer-events:none;transition:opacity var(--vs-transition-duration) var(--vs-transition-timing-function)}.vs__fade-enter,.vs__fade-leave-to{opacity:0}:root{--vs-disabled-bg:var(--vs-state-disabled-bg);--vs-disabled-color:var(--vs-state-disabled-color);--vs-disabled-cursor:var(--vs-state-disabled-cursor)}.vs--disabled .vs__clear,.vs--disabled .vs__dropdown-toggle,.vs--disabled .vs__open-indicator,.vs--disabled .vs__search,.vs--disabled .vs__selected{background-color:var(--vs-disabled-bg);cursor:var(--vs-disabled-cursor)}.v-select[dir=rtl] .vs__actions{padding:0 3px 0 6px}.v-select[dir=rtl] .vs__clear{margin-left:6px;margin-right:0}.v-select[dir=rtl] .vs__deselect{margin-left:0;margin-right:2px}.v-select[dir=rtl] .vs__dropdown-menu{text-align:right}.vs__dropdown-toggle{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:var(--vs-border-width) var(--vs-border-style) var(--vs-border-color);border-radius:var(--vs-border-radius);display:flex;padding:0 0 4px;white-space:normal}.vs__selected-options{display:flex;flex-basis:100%;flex-grow:1;flex-wrap:wrap;padding:0 2px;position:relative}.vs__actions{align-items:center;display:flex;padding:var(--vs-actions-padding)}.vs--searchable .vs__dropdown-toggle{cursor:text}.vs--unsearchable .vs__dropdown-toggle{cursor:pointer}.vs--open .vs__dropdown-toggle{border-bottom-color:transparent;border-bottom-left-radius:0;border-bottom-right-radius:0}.vs__open-indicator{fill:var(--vs-controls-color);transform:scale(var(--vs-controls-size));transition:transform var(--vs-transition-duration) var(--vs-transition-timing-function);transition-timing-function:var(--vs-transition-timing-function)}.vs--open .vs__open-indicator{transform:rotate(180deg) scale(var(--vs-controls-size))}.vs--loading .vs__open-indicator{opacity:0}.vs__clear{fill:var(--vs-controls-color);background-color:transparent;border:0;cursor:pointer;margin-right:8px;padding:0}.vs__dropdown-menu{background:var(--vs-dropdown-bg);border:var(--vs-border-width) var(--vs-border-style) var(--vs-border-color);border-radius:0 0 var(--vs-border-radius) var(--vs-border-radius);border-top-style:none;box-shadow:var(--vs-dropdown-box-shadow);box-sizing:border-box;color:var(--vs-dropdown-color);display:block;left:0;list-style:none;margin:0;max-height:var(--vs-dropdown-max-height);min-width:var(--vs-dropdown-min-width);overflow-y:auto;padding:5px 0;position:absolute;text-align:left;top:calc(100% - var(--vs-border-width));width:100%;z-index:var(--vs-dropdown-z-index)}.vs__no-options{text-align:center}.vs__dropdown-option{clear:both;color:var(--vs-dropdown-option-color);cursor:pointer;display:block;line-height:1.42857143;padding:var(--vs-dropdown-option-padding);white-space:nowrap}.vs__dropdown-option--highlight{background:var(--vs-dropdown-option--active-bg);color:var(--vs-dropdown-option--active-color)}.vs__dropdown-option--deselect{background:var(--vs-dropdown-option--deselect-bg);color:var(--vs-dropdown-option--deselect-color)}.vs__dropdown-option--disabled{background:var(--vs-state-disabled-bg);color:var(--vs-state-disabled-color);cursor:var(--vs-state-disabled-cursor)}.vs__selected{align-items:center;background-color:var(--vs-selected-bg);border:var(--vs-selected-border-width) var(--vs-selected-border-style) var(--vs-selected-border-color);border-radius:var(--vs-border-radius);color:var(--vs-selected-color);display:flex;line-height:var(--vs-line-height);margin:4px 2px 0;padding:0 .25em;z-index:0}.vs__deselect{fill:var(--vs-controls-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-flex;margin-left:4px;padding:0;text-shadow:var(--vs-controls--deselect-text-shadow)}.vs--single .vs__selected{background-color:transparent;border-color:transparent}.vs--single.vs--loading .vs__selected,.vs--single.vs--open .vs__selected{opacity:.4;position:absolute}.vs--single.vs--searching .vs__selected{display:none}.vs__search::-webkit-search-cancel-button{display:none}.vs__search::-ms-clear,.vs__search::-webkit-search-decoration,.vs__search::-webkit-search-results-button,.vs__search::-webkit-search-results-decoration{display:none}.vs__search,.vs__search:focus{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:1px solid transparent;border-left:none;box-shadow:none;color:var(--vs-search-input-color);flex-grow:1;font-size:var(--vs-font-size);line-height:var(--vs-line-height);margin:4px 0 0;max-width:100%;outline:none;padding:0 7px;width:0;z-index:1}.vs__search::-moz-placeholder{color:var(--vs-search-input-placeholder-color)}.vs__search:-ms-input-placeholder{color:var(--vs-search-input-placeholder-color)}.vs__search::placeholder{color:var(--vs-search-input-placeholder-color)}.vs--unsearchable .vs__search{opacity:1}.vs--unsearchable:not(.vs--disabled) .vs__search{cursor:pointer}.vs--single.vs--searching:not(.vs--open):not(.vs--loading) .vs__search{opacity:.2}.vs__spinner{align-self:center;-webkit-animation:vSelectSpinner 1.1s linear infinite;animation:vSelectSpinner 1.1s linear infinite;border:.9em solid hsla(0,0%,39%,.1);border-left-color:rgba(60,60,60,.45);font-size:5px;opacity:0;overflow:hidden;text-indent:-9999em;transform:translateZ(0) scale(var(--vs-controls--spinner-size,var(--vs-controls-size)));transition:opacity .1s}.vs__spinner,.vs__spinner:after{border-radius:50%;height:5em;transform:scale(var(--vs-controls--spinner-size,var(--vs-controls-size)));width:5em}.vs--loading .vs__spinner{opacity:1}",""]);const s=i},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(r)for(var s=0;s0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),o&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=o):u[4]="".concat(o)),t.push(u))}},t}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},2027:e=>{var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1;t.Diff=function(e,t){return[e,t]},t.prototype.diff_main=function(e,n,r,o){void 0===o&&(o=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var a=o;if(null==e||null==n)throw new Error("Null input. (diff_main)");if(e==n)return e?[new t.Diff(0,e)]:[];void 0===r&&(r=!0);var i=r,s=this.diff_commonPrefix(e,n),l=e.substring(0,s);e=e.substring(s),n=n.substring(s),s=this.diff_commonSuffix(e,n);var c=e.substring(e.length-s);e=e.substring(0,e.length-s),n=n.substring(0,n.length-s);var u=this.diff_compute_(e,n,i,a);return l&&u.unshift(new t.Diff(0,l)),c&&u.push(new t.Diff(0,c)),this.diff_cleanupMerge(u),u},t.prototype.diff_compute_=function(e,r,o,a){var i;if(!e)return[new t.Diff(1,r)];if(!r)return[new t.Diff(n,e)];var s=e.length>r.length?e:r,l=e.length>r.length?r:e,c=s.indexOf(l);if(-1!=c)return i=[new t.Diff(1,s.substring(0,c)),new t.Diff(0,l),new t.Diff(1,s.substring(c+l.length))],e.length>r.length&&(i[0][0]=i[2][0]=n),i;if(1==l.length)return[new t.Diff(n,e),new t.Diff(1,r)];var u=this.diff_halfMatch_(e,r);if(u){var d=u[0],p=u[1],h=u[2],f=u[3],m=u[4],g=this.diff_main(d,h,o,a),b=this.diff_main(p,f,o,a);return g.concat([new t.Diff(0,m)],b)}return o&&e.length>100&&r.length>100?this.diff_lineMode_(e,r,a):this.diff_bisect_(e,r,a)},t.prototype.diff_lineMode_=function(e,r,o){var a=this.diff_linesToChars_(e,r);e=a.chars1,r=a.chars2;var i=a.lineArray,s=this.diff_main(e,r,!1,o);this.diff_charsToLines_(s,i),this.diff_cleanupSemantic(s),s.push(new t.Diff(0,""));for(var l=0,c=0,u=0,d="",p="";l=1&&u>=1){s.splice(l-c-u,c+u),l=l-c-u;for(var h=this.diff_main(d,p,!1,o),f=h.length-1;f>=0;f--)s.splice(l,0,h[f]);l+=h.length}u=0,c=0,d="",p=""}l++}return s.pop(),s},t.prototype.diff_bisect_=function(e,r,o){for(var a=e.length,i=r.length,s=Math.ceil((a+i)/2),l=s,c=2*s,u=new Array(c),d=new Array(c),p=0;po);y++){for(var _=-y+m;_<=y-g;_+=2){for(var k=l+_,x=(E=_==-y||_!=y&&u[k-1]a)g+=2;else if(x>i)m+=2;else if(f&&(A=l+h-_)>=0&&A=(S=a-d[A]))return this.diff_bisectSplit_(e,r,E,x,o)}for(var w=-y+b;w<=y-v;w+=2){for(var S,A=l+w,C=(S=w==-y||w!=y&&d[A-1]a)v+=2;else if(C>i)b+=2;else if(!f){var E;if((k=l+h-w)>=0&&k=(S=a-S))return this.diff_bisectSplit_(e,r,E,x,o)}}}return[new t.Diff(n,e),new t.Diff(1,r)]},t.prototype.diff_bisectSplit_=function(e,t,n,r,o){var a=e.substring(0,n),i=t.substring(0,r),s=e.substring(n),l=t.substring(r),c=this.diff_main(a,i,!1,o),u=this.diff_main(s,l,!1,o);return c.concat(u)},t.prototype.diff_linesToChars_=function(e,t){var n=[],r={};function o(e){for(var t="",o=0,i=-1,s=n.length;ir?e=e.substring(n-r):nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,a,i,s,u]:null}var i,s,l,c,u,d=a(n,r,Math.ceil(n.length/4)),p=a(n,r,Math.ceil(n.length/2));return d||p?(i=p?d&&d[4].length>p[4].length?d:p:d,e.length>t.length?(s=i[0],l=i[1],c=i[2],u=i[3]):(c=i[0],u=i[1],s=i[2],l=i[3]),[s,l,c,u,i[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var r=!1,o=[],a=0,i=null,s=0,l=0,c=0,u=0,d=0;s0?o[a-1]:-1,l=0,c=0,u=0,d=0,i=null,r=!0)),s++;for(r&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),s=1;s=m?(f>=p.length/2||f>=h.length/2)&&(e.splice(s,0,new t.Diff(0,h.substring(0,f))),e[s-1][1]=p.substring(0,p.length-f),e[s+1][1]=h.substring(f),s++):(m>=p.length/2||m>=h.length/2)&&(e.splice(s,0,new t.Diff(0,p.substring(0,m))),e[s-1][0]=1,e[s-1][1]=h.substring(0,h.length-m),e[s+1][0]=n,e[s+1][1]=p.substring(m),s++),s++}s++}},t.prototype.diff_cleanupSemanticLossless=function(e){function n(e,n){if(!e||!n)return 6;var r=e.charAt(e.length-1),o=n.charAt(0),a=r.match(t.nonAlphaNumericRegex_),i=o.match(t.nonAlphaNumericRegex_),s=a&&r.match(t.whitespaceRegex_),l=i&&o.match(t.whitespaceRegex_),c=s&&r.match(t.linebreakRegex_),u=l&&o.match(t.linebreakRegex_),d=c&&e.match(t.blanklineEndRegex_),p=u&&n.match(t.blanklineStartRegex_);return d||p?5:c||u?4:a&&!s&&l?3:s||l?2:a||i?1:0}for(var r=1;r=p&&(p=h,c=o,u=a,d=i)}e[r-1][1]!=c&&(c?e[r-1][1]=c:(e.splice(r-1,1),r--),e[r][1]=u,d?e[r+1][1]=d:(e.splice(r+1,1),r--))}r++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(e){for(var r=!1,o=[],a=0,i=null,s=0,l=!1,c=!1,u=!1,d=!1;s0?o[a-1]:-1,u=d=!1),r=!0)),s++;r&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push(new t.Diff(0,""));for(var r,o=0,a=0,i=0,s="",l="";o1?(0!==a&&0!==i&&(0!==(r=this.diff_commonPrefix(l,s))&&(o-a-i>0&&0==e[o-a-i-1][0]?e[o-a-i-1][1]+=l.substring(0,r):(e.splice(0,0,new t.Diff(0,l.substring(0,r))),o++),l=l.substring(r),s=s.substring(r)),0!==(r=this.diff_commonSuffix(l,s))&&(e[o][1]=l.substring(l.length-r)+e[o][1],l=l.substring(0,l.length-r),s=s.substring(0,s.length-r))),o-=a+i,e.splice(o,a+i),s.length&&(e.splice(o,0,new t.Diff(n,s)),o++),l.length&&(e.splice(o,0,new t.Diff(1,l)),o++),o++):0!==o&&0==e[o-1][0]?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,i=0,a=0,s="",l=""}""===e[e.length-1][1]&&e.pop();var c=!1;for(o=1;ot));r++)i=o,s=a;return e.length!=r&&e[r][0]===n?s:s+(t-i)},t.prototype.diff_prettyHtml=function(e){for(var t=[],r=/&/g,o=//g,i=/\n/g,s=0;s");switch(l){case 1:t[s]=''+c+"";break;case n:t[s]=''+c+"";break;case 0:t[s]=""+c+""}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],n=0;nthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(t),o=this;function a(e,r){var a=e/t.length,i=Math.abs(n-r);return o.Match_Distance?a+i/o.Match_Distance:i?1:a}var i=this.Match_Threshold,s=e.indexOf(t,n);-1!=s&&(i=Math.min(a(0,s),i),-1!=(s=e.lastIndexOf(t,n+t.length))&&(i=Math.min(a(0,s),i)));var l,c,u=1<=f;b--){var v=r[e.charAt(b-1)];if(g[b]=0===h?(g[b+1]<<1|1)&v:(g[b+1]<<1|1)&v|(d[b+1]|d[b])<<1|1|d[b+1],g[b]&u){var y=a(h,b-1);if(y<=i){if(i=y,!((s=b-1)>n))break;f=Math.max(1,2*n-s)}}}if(a(h+1,n)>i)break;d=g}return s},t.prototype.match_alphabet_=function(e){for(var t={},n=0;n2&&(this.diff_cleanupSemantic(i),this.diff_cleanupEfficiency(i));else if(e&&"object"==typeof e&&void 0===r&&void 0===o)i=e,a=this.diff_text1(i);else if("string"==typeof e&&r&&"object"==typeof r&&void 0===o)a=e,i=r;else{if("string"!=typeof e||"string"!=typeof r||!o||"object"!=typeof o)throw new Error("Unknown call format to patch_make.");a=e,i=o}if(0===i.length)return[];for(var s=[],l=new t.patch_obj,c=0,u=0,d=0,p=a,h=a,f=0;f=2*this.Patch_Margin&&c&&(this.patch_addContext_(l,p),s.push(l),l=new t.patch_obj,c=0,p=h,u=d)}1!==m&&(u+=g.length),m!==n&&(d+=g.length)}return c&&(this.patch_addContext_(l,p),s.push(l)),s},t.prototype.patch_deepCopy=function(e){for(var n=[],r=0;rthis.Match_MaxBits?-1!=(s=this.match_main(t,u.substring(0,this.Match_MaxBits),c))&&(-1==(d=this.match_main(t,u.substring(u.length-this.Match_MaxBits),c+u.length-this.Match_MaxBits))||s>=d)&&(s=-1):s=this.match_main(t,u,c),-1==s)a[i]=!1,o-=e[i].length2-e[i].length1;else if(a[i]=!0,o=s-c,u==(l=-1==d?t.substring(s,s+u.length):t.substring(s,d+this.Match_MaxBits)))t=t.substring(0,s)+this.diff_text2(e[i].diffs)+t.substring(s+u.length);else{var p=this.diff_main(u,l,!1);if(u.length>this.Match_MaxBits&&this.diff_levenshtein(p)/u.length>this.Patch_DeleteThreshold)a[i]=!1;else{this.diff_cleanupSemanticLossless(p);for(var h,f=0,m=0;mi[0][1].length){var s=n-i[0][1].length;i[0][1]=r.substring(i[0][1].length)+i[0][1],a.start1-=s,a.start2-=s,a.length1+=s,a.length2+=s}return 0==(i=(a=e[e.length-1]).diffs).length||0!=i[i.length-1][0]?(i.push(new t.Diff(0,r)),a.length1+=n,a.length2+=n):n>i[i.length-1][1].length&&(s=n-i[i.length-1][1].length,i[i.length-1][1]+=r.substring(0,s),a.length1+=s,a.length2+=s),r},t.prototype.patch_splitMax=function(e){for(var r=this.Match_MaxBits,o=0;o2*r?(c.length1+=p.length,i+=p.length,u=!1,c.diffs.push(new t.Diff(d,p)),a.diffs.shift()):(p=p.substring(0,r-c.length1-this.Patch_Margin),c.length1+=p.length,i+=p.length,0===d?(c.length2+=p.length,s+=p.length):u=!1,c.diffs.push(new t.Diff(d,p)),p==a.diffs[0][1]?a.diffs.shift():a.diffs[0][1]=a.diffs[0][1].substring(p.length))}l=(l=this.diff_text2(c.diffs)).substring(l.length-this.Patch_Margin);var h=this.diff_text1(a.diffs).substring(0,this.Patch_Margin);""!==h&&(c.length1+=h.length,c.length2+=h.length,0!==c.diffs.length&&0===c.diffs[c.diffs.length-1][0]?c.diffs[c.diffs.length-1][1]+=h:c.diffs.push(new t.Diff(0,h))),u||e.splice(++o,0,c)}}},t.prototype.patch_toText=function(e){for(var t=[],n=0;n{e.exports=n(5775)},5775:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fromRange=function(e,t){if(void 0===e)throw new Error('missing required parameter "root"');if(void 0===t)throw new Error('missing required parameter "range"');var n=e.ownerDocument.createRange(),r=t.startContainer,a=t.startOffset;n.setStart(e,0),n.setEnd(r,a);var i=(0,o.default)(n).length;return{start:i,end:i+(0,o.default)(t).length}},t.toRange=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e)throw new Error('missing required parameter "root"');var n=e.ownerDocument,o=n.createRange(),a=n.createNodeIterator(e,4),i=t.start||0,s=t.end||i,l=i-(0,r.default)(a,i),c=a.referenceNode,u=s-i+l,d=u-(0,r.default)(a,u),p=a.referenceNode;return o.setStart(c,l),o.setEnd(p,d),o};var r=a(n(3604)),o=a(n(9781));function a(e){return e&&e.__esModule?e:{default:e}}},9781:(e,t)=>{"use strict";function n(e,t){if(!t&&e.firstChild)return e.firstChild;do{if(e.nextSibling)return e.nextSibling;e=e.parentNode}while(e);return e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t="";return function(e,t){for(var r=function(e){return e.startContainer.nodeType===Node.ELEMENT_NODE?e.startContainer.childNodes[e.startOffset]||n(e.startContainer,!0):e.startContainer}(e),o=function(e){return e.endContainer.nodeType===Node.ELEMENT_NODE?e.endContainer.childNodes[e.endOffset]||n(e.endContainer,!0):n(e.endContainer)}(e);r!==o;)t(r),r=n(r)}(e,(function(n){if(n.nodeType===Node.TEXT_NODE){var r=n===e.startContainer?e.startOffset:0,o=n===e.endContainer?e.endOffset:n.textContent.length;t+=n.textContent.slice(r,o)}})),t}},3604:(e,t,n)=>{e.exports=n(7771).default},7771:(e,t)=>{"use strict";t.default=function(e,t){if(4!==e.whatToShow){var a;try{a=new DOMException(r,"InvalidStateError")}catch(e){(a=new Error(r)).code=11,a.name="InvalidStateError",a.toString=function(){return"InvalidStateError: ".concat(r)}}throw a}var i,s=0,l=e.referenceNode,c=null;if("number"==typeof(i=t)&&isFinite(i)&&Math.floor(i)===i)c={forward:function(){return st||!e.pointerBeforeReferenceNode}};else{if(!o(t))throw new TypeError("Argument 2 of seek must be an integer or a Text Node.");c={forward:function(e,t){return 2&e.compareDocumentPosition(t)}(l,t)?function(){return!1}:function(){return l!==t},backward:function(){return l!==t||!e.pointerBeforeReferenceNode}}}for(;c.forward();){if(null===(l=e.nextNode()))throw new RangeError(n);s+=l.nodeValue.length}for(e.nextNode()&&(l=e.previousNode());c.backward();){if(null===(l=e.previousNode()))throw new RangeError(n);s-=l.nodeValue.length}if(!o(e.referenceNode))throw new RangeError(n);return s};var n="Iterator exhausted before seek ended.",r="Argument 1 of seek must use filter NodeFilter.SHOW_TEXT.";function o(e){return 3===e.nodeType}},8914:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{Z:()=>__WEBPACK_DEFAULT_EXPORT__});var htmx=function(){const htmx={onLoad:null,process:null,on:null,off:null,trigger:null,ajax:null,find:null,findAll:null,closest:null,values:function(e,t){return getInputValues(e,t||"post").values},remove:null,addClass:null,removeClass:null,toggleClass:null,takeClass:null,swap:null,defineExtension:null,removeExtension:null,logAll:null,logNone:null,logger:null,config:{historyEnabled:!0,historyCacheSize:10,refreshOnHistoryMiss:!1,defaultSwapStyle:"innerHTML",defaultSwapDelay:0,defaultSettleDelay:20,includeIndicatorStyles:!0,indicatorClass:"htmx-indicator",requestClass:"htmx-request",addedClass:"htmx-added",settlingClass:"htmx-settling",swappingClass:"htmx-swapping",allowEval:!0,allowScriptTags:!0,inlineScriptNonce:"",inlineStyleNonce:"",attributesToSettle:["class","style","width","height"],withCredentials:!1,timeout:0,wsReconnectDelay:"full-jitter",wsBinaryType:"blob",disableSelector:"[hx-disable], [data-hx-disable]",scrollBehavior:"instant",defaultFocusScroll:!1,getCacheBusterParam:!1,globalViewTransitions:!1,methodsThatUseUrlParams:["get","delete"],selfRequestsOnly:!0,ignoreTitle:!1,scrollIntoViewOnBoost:!0,triggerSpecsCache:null,disableInheritance:!1,responseHandling:[{code:"204",swap:!1},{code:"[23]..",swap:!0},{code:"[45]..",swap:!1,error:!0}],allowNestedOobSwaps:!0},parseInterval:null,_:null,version:"2.0.1"};htmx.onLoad=onLoadHelper,htmx.process=processNode,htmx.on=addEventListenerImpl,htmx.off=removeEventListenerImpl,htmx.trigger=triggerEvent,htmx.ajax=ajaxHelper,htmx.find=find,htmx.findAll=findAll,htmx.closest=closest,htmx.remove=removeElement,htmx.addClass=addClassToElement,htmx.removeClass=removeClassFromElement,htmx.toggleClass=toggleClassOnElement,htmx.takeClass=takeClassForElement,htmx.swap=swap,htmx.defineExtension=defineExtension,htmx.removeExtension=removeExtension,htmx.logAll=logAll,htmx.logNone=logNone,htmx.parseInterval=parseInterval,htmx._=internalEval;const internalAPI={addTriggerHandler,bodyContains,canAccessLocalStorage,findThisElement,filterValues,swap,hasAttribute,getAttributeValue,getClosestAttributeValue,getClosestMatch,getExpressionVars,getHeaders,getInputValues,getInternalData,getSwapSpecification,getTriggerSpecs,getTarget,makeFragment,mergeObjects,makeSettleInfo,oobSwap,querySelectorExt,settleImmediately,shouldCancel,triggerEvent,triggerErrorEvent,withExtensions},VERBS=["get","post","put","delete","patch"],VERB_SELECTOR=VERBS.map((function(e){return"[hx-"+e+"], [data-hx-"+e+"]"})).join(", "),HEAD_TAG_REGEX=makeTagRegEx("head");function makeTagRegEx(e,t=!1){return new RegExp(`<${e}(\\s[^>]*>|>)([\\s\\S]*?)<\\/${e}>`,t?"gim":"im")}function parseInterval(e){if(null==e)return;let t=NaN;return t="ms"==e.slice(-2)?parseFloat(e.slice(0,-2)):"s"==e.slice(-1)?1e3*parseFloat(e.slice(0,-1)):"m"==e.slice(-1)?1e3*parseFloat(e.slice(0,-1))*60:parseFloat(e),isNaN(t)?void 0:t}function getRawAttribute(e,t){return e instanceof Element&&e.getAttribute(t)}function hasAttribute(e,t){return!!e.hasAttribute&&(e.hasAttribute(t)||e.hasAttribute("data-"+t))}function getAttributeValue(e,t){return getRawAttribute(e,t)||getRawAttribute(e,"data-"+t)}function parentElt(e){const t=e.parentElement;return!t&&e.parentNode instanceof ShadowRoot?e.parentNode:t}function getDocument(){return document}function getRootNode(e,t){return e.getRootNode?e.getRootNode({composed:t}):getDocument()}function getClosestMatch(e,t){for(;e&&!t(e);)e=parentElt(e);return e||null}function getAttributeValueWithDisinheritance(e,t,n){const r=getAttributeValue(t,n),o=getAttributeValue(t,"hx-disinherit");var a=getAttributeValue(t,"hx-inherit");if(e!==t){if(htmx.config.disableInheritance)return a&&("*"===a||a.split(" ").indexOf(n)>=0)?r:null;if(o&&("*"===o||o.split(" ").indexOf(n)>=0))return"unset"}return r}function getClosestAttributeValue(e,t){let n=null;if(getClosestMatch(e,(function(r){return!!(n=getAttributeValueWithDisinheritance(e,asElement(r),t))})),"unset"!==n)return n}function matches(e,t){const n=e instanceof Element&&(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector);return!!n&&n.call(e,t)}function getStartTag(e){const t=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i.exec(e);return t?t[1].toLowerCase():""}function parseHTML(e){return(new DOMParser).parseFromString(e,"text/html")}function takeChildrenFor(e,t){for(;t.childNodes.length>0;)e.append(t.childNodes[0])}function duplicateScript(e){const t=getDocument().createElement("script");return forEach(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),t.textContent=e.textContent,t.async=!1,htmx.config.inlineScriptNonce&&(t.nonce=htmx.config.inlineScriptNonce),t}function isJavaScriptScriptNode(e){return e.matches("script")&&("text/javascript"===e.type||"module"===e.type||""===e.type)}function normalizeScriptTags(e){Array.from(e.querySelectorAll("script")).forEach((e=>{if(isJavaScriptScriptNode(e)){const t=duplicateScript(e),n=e.parentNode;try{n.insertBefore(t,e)}catch(e){logError(e)}finally{e.remove()}}}))}function makeFragment(e){const t=e.replace(HEAD_TAG_REGEX,""),n=getStartTag(t);let r;if("html"===n){r=new DocumentFragment;const t=parseHTML(e);takeChildrenFor(r,t.body),r.title=t.title}else if("body"===n){r=new DocumentFragment;const e=parseHTML(t);takeChildrenFor(r,e.body),r.title=e.title}else{const e=parseHTML('");r=e.querySelector("template").content,r.title=e.title;var o=r.querySelector("title");o&&o.parentNode===r&&(o.remove(),r.title=o.innerText)}return r&&(htmx.config.allowScriptTags?normalizeScriptTags(r):r.querySelectorAll("script").forEach((e=>e.remove()))),r}function maybeCall(e){e&&e()}function isType(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function isFunction(e){return"function"==typeof e}function isRawObject(e){return isType(e,"Object")}function getInternalData(e){const t="htmx-internal-data";let n=e[t];return n||(n=e[t]={}),n}function toArray(e){const t=[];if(e)for(let n=0;n=0}function bodyContains(e){const t=e.getRootNode&&e.getRootNode();return t&&t instanceof window.ShadowRoot?getDocument().body.contains(t.host):getDocument().body.contains(e)}function splitOnWhitespace(e){return e.trim().split(/\s+/)}function mergeObjects(e,t){for(const n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function parseJSON(e){try{return JSON.parse(e)}catch(e){return logError(e),null}}function canAccessLocalStorage(){const e="htmx:localStorageTest";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}function normalizePath(e){try{const t=new URL(e);return t&&(e=t.pathname+t.search),/^\/$/.test(e)||(e=e.replace(/\/+$/,"")),e}catch(t){return e}}function internalEval(str){return maybeEval(getDocument().body,(function(){return eval(str)}))}function onLoadHelper(e){return htmx.on("htmx:load",(function(t){e(t.detail.elt)}))}function logAll(){htmx.logger=function(e,t,n){console&&console.log(t,e,n)}}function logNone(){htmx.logger=null}function find(e,t){return"string"!=typeof e?e.querySelector(t):find(getDocument(),e)}function findAll(e,t){return"string"!=typeof e?e.querySelectorAll(t):findAll(getDocument(),e)}function getWindow(){return window}function removeElement(e,t){e=resolveTarget(e),t?getWindow().setTimeout((function(){removeElement(e),e=null}),t):parentElt(e).removeChild(e)}function asElement(e){return e instanceof Element?e:null}function asHtmlElement(e){return e instanceof HTMLElement?e:null}function asString(e){return"string"==typeof e?e:null}function asParentNode(e){return e instanceof Element||e instanceof Document||e instanceof DocumentFragment?e:null}function addClassToElement(e,t,n){(e=asElement(resolveTarget(e)))&&(n?getWindow().setTimeout((function(){addClassToElement(e,t),e=null}),n):e.classList&&e.classList.add(t))}function removeClassFromElement(e,t,n){let r=asElement(resolveTarget(e));r&&(n?getWindow().setTimeout((function(){removeClassFromElement(r,t),r=null}),n):r.classList&&(r.classList.remove(t),0===r.classList.length&&r.removeAttribute("class")))}function toggleClassOnElement(e,t){(e=resolveTarget(e)).classList.toggle(t)}function takeClassForElement(e,t){forEach((e=resolveTarget(e)).parentElement.children,(function(e){removeClassFromElement(e,t)})),addClassToElement(asElement(e),t)}function closest(e,t){if((e=asElement(resolveTarget(e)))&&e.closest)return e.closest(t);do{if(null==e||matches(e,t))return e}while(e=e&&asElement(parentElt(e)));return null}function startsWith(e,t){return e.substring(0,t.length)===t}function endsWith(e,t){return e.substring(e.length-t.length)===t}function normalizeSelector(e){const t=e.trim();return startsWith(t,"<")&&endsWith(t,"/>")?t.substring(1,t.length-2):t}function querySelectorAllExt(e,t,n){return e=resolveTarget(e),0===t.indexOf("closest ")?[closest(asElement(e),normalizeSelector(t.substr(8)))]:0===t.indexOf("find ")?[find(asParentNode(e),normalizeSelector(t.substr(5)))]:"next"===t?[asElement(e).nextElementSibling]:0===t.indexOf("next ")?[scanForwardQuery(e,normalizeSelector(t.substr(5)),!!n)]:"previous"===t?[asElement(e).previousElementSibling]:0===t.indexOf("previous ")?[scanBackwardsQuery(e,normalizeSelector(t.substr(9)),!!n)]:"document"===t?[document]:"window"===t?[window]:"body"===t?[document.body]:"root"===t?[getRootNode(e,!!n)]:0===t.indexOf("global ")?querySelectorAllExt(e,t.slice(7),!0):toArray(asParentNode(getRootNode(e,!!n)).querySelectorAll(normalizeSelector(t)))}var scanForwardQuery=function(e,t,n){const r=asParentNode(getRootNode(e,n)).querySelectorAll(t);for(let t=0;t=0;t--){const n=r[t];if(n.compareDocumentPosition(e)===Node.DOCUMENT_POSITION_FOLLOWING)return n}};function querySelectorExt(e,t){return"string"!=typeof e?querySelectorAllExt(e,t)[0]:querySelectorAllExt(getDocument().body,e)[0]}function resolveTarget(e,t){return"string"==typeof e?find(asParentNode(t)||document,e):e}function processEventArgs(e,t,n){return isFunction(t)?{target:getDocument().body,event:asString(e),listener:t}:{target:resolveTarget(e),event:asString(t),listener:n}}function addEventListenerImpl(e,t,n){return ready((function(){const r=processEventArgs(e,t,n);r.target.addEventListener(r.event,r.listener)})),isFunction(t)?t:n}function removeEventListenerImpl(e,t,n){return ready((function(){const r=processEventArgs(e,t,n);r.target.removeEventListener(r.event,r.listener)})),isFunction(t)?t:n}const DUMMY_ELT=getDocument().createElement("output");function findAttributeTargets(e,t){const n=getClosestAttributeValue(e,t);if(n){if("this"===n)return[findThisElement(e,t)];{const r=querySelectorAllExt(e,n);return 0===r.length?(logError('The selector "'+n+'" on '+t+" returned no matches!"),[DUMMY_ELT]):r}}}function findThisElement(e,t){return asElement(getClosestMatch(e,(function(e){return null!=getAttributeValue(asElement(e),t)})))}function getTarget(e){const t=getClosestAttributeValue(e,"hx-target");return t?"this"===t?findThisElement(e,"hx-target"):querySelectorExt(e,t):getInternalData(e).boosted?getDocument().body:e}function shouldSettleAttribute(e){const t=htmx.config.attributesToSettle;for(let n=0;n0?(o=e.substr(0,e.indexOf(":")),r=e.substr(e.indexOf(":")+1,e.length)):o=e);const a=getDocument().querySelectorAll(r);return a?(forEach(a,(function(e){let r;const a=t.cloneNode(!0);r=getDocument().createDocumentFragment(),r.appendChild(a),isInlineSwap(o,e)||(r=asParentNode(a));const i={shouldSwap:!0,target:e,fragment:r};triggerEvent(e,"htmx:oobBeforeSwap",i)&&(e=i.target,i.shouldSwap&&swapWithStyle(o,e,e,r,n),forEach(n.elts,(function(e){triggerEvent(e,"htmx:oobAfterSwap",i)})))})),t.parentNode.removeChild(t)):(t.parentNode.removeChild(t),triggerErrorEvent(getDocument().body,"htmx:oobErrorNoTarget",{content:t})),e}function handlePreservedElements(e){forEach(findAll(e,"[hx-preserve], [data-hx-preserve]"),(function(e){const t=getAttributeValue(e,"id"),n=getDocument().getElementById(t);null!=n&&e.parentNode.replaceChild(n,e)}))}function handleAttributes(e,t,n){forEach(t.querySelectorAll("[id]"),(function(t){const r=getRawAttribute(t,"id");if(r&&r.length>0){const o=r.replace("'","\\'"),a=t.tagName.replace(":","\\:"),i=asParentNode(e),s=i&&i.querySelector(a+"[id='"+o+"']");if(s&&s!==i){const e=t.cloneNode();cloneAttributes(t,s),n.tasks.push((function(){cloneAttributes(t,e)}))}}}))}function makeAjaxLoadTask(e){return function(){removeClassFromElement(e,htmx.config.addedClass),processNode(asElement(e)),processFocus(asParentNode(e)),triggerEvent(e,"htmx:load")}}function processFocus(e){const t="[autofocus]",n=asHtmlElement(matches(e,t)?e:e.querySelector(t));null!=n&&n.focus()}function insertNodesBefore(e,t,n,r){for(handleAttributes(e,n,r);n.childNodes.length>0;){const o=n.firstChild;addClassToElement(asElement(o),htmx.config.addedClass),e.insertBefore(o,t),o.nodeType!==Node.TEXT_NODE&&o.nodeType!==Node.COMMENT_NODE&&r.tasks.push(makeAjaxLoadTask(o))}}function stringHash(e,t){let n=0;for(;n0?getWindow().setTimeout(s,n.settleDelay):s()}function handleTriggerHeader(e,t,n){const r=e.getResponseHeader(t);if(0===r.indexOf("{")){const e=parseJSON(r);for(const t in e)if(e.hasOwnProperty(t)){let r=e[t];isRawObject(r)||(r={value:r}),triggerEvent(n,t,r)}}else{const e=r.split(",");for(let t=0;t0;){const i=t[0];if("]"===i){if(r--,0===r){null===a&&(o+="true"),t.shift(),o+=")})";try{const t=maybeEval(e,(function(){return Function(o)()}),(function(){return!0}));return t.source=o,t}catch(e){return triggerErrorEvent(getDocument().body,"htmx:syntax:error",{error:e,source:o}),null}}}else"["===i&&r++;isPossibleRelativeReference(i,a,n)?o+="(("+n+"."+i+") ? ("+n+"."+i+") : (window."+i+"))":o+=i,a=t.shift()}}}function consumeUntil(e,t){let n="";for(;e.length>0&&!t.test(e[0]);)n+=e.shift();return n}function consumeCSSSelector(e){let t;return e.length>0&&COMBINED_SELECTOR_START.test(e[0])?(e.shift(),t=consumeUntil(e,COMBINED_SELECTOR_END).trim(),e.shift()):t=consumeUntil(e,WHITESPACE_OR_COMMA),t}const INPUT_SELECTOR="input, textarea, select";function parseAndCacheTrigger(e,t,n){const r=[],o=tokenizeString(t);do{consumeUntil(o,NOT_WHITESPACE);const t=o.length,n=consumeUntil(o,/[,\[\s]/);if(""!==n)if("every"===n){const t={trigger:"every"};consumeUntil(o,NOT_WHITESPACE),t.pollInterval=parseInterval(consumeUntil(o,/[,\[\s]/)),consumeUntil(o,NOT_WHITESPACE),(a=maybeGenerateConditional(e,o,"event"))&&(t.eventFilter=a),r.push(t)}else{const t={trigger:n};var a;for((a=maybeGenerateConditional(e,o,"event"))&&(t.eventFilter=a);o.length>0&&","!==o[0];){consumeUntil(o,NOT_WHITESPACE);const n=o.shift();if("changed"===n)t.changed=!0;else if("once"===n)t.once=!0;else if("consume"===n)t.consume=!0;else if("delay"===n&&":"===o[0])o.shift(),t.delay=parseInterval(consumeUntil(o,WHITESPACE_OR_COMMA));else if("from"===n&&":"===o[0]){if(o.shift(),COMBINED_SELECTOR_START.test(o[0]))var i=consumeCSSSelector(o);else if("closest"===(i=consumeUntil(o,WHITESPACE_OR_COMMA))||"find"===i||"next"===i||"previous"===i){o.shift();const e=consumeCSSSelector(o);e.length>0&&(i+=" "+e)}t.from=i}else"target"===n&&":"===o[0]?(o.shift(),t.target=consumeCSSSelector(o)):"throttle"===n&&":"===o[0]?(o.shift(),t.throttle=parseInterval(consumeUntil(o,WHITESPACE_OR_COMMA))):"queue"===n&&":"===o[0]?(o.shift(),t.queue=consumeUntil(o,WHITESPACE_OR_COMMA)):"root"===n&&":"===o[0]?(o.shift(),t[n]=consumeCSSSelector(o)):"threshold"===n&&":"===o[0]?(o.shift(),t[n]=consumeUntil(o,WHITESPACE_OR_COMMA)):triggerErrorEvent(e,"htmx:syntax:error",{token:o.shift()})}r.push(t)}o.length===t&&triggerErrorEvent(e,"htmx:syntax:error",{token:o.shift()}),consumeUntil(o,NOT_WHITESPACE)}while(","===o[0]&&o.shift());return n&&(n[t]=r),r}function getTriggerSpecs(e){const t=getAttributeValue(e,"hx-trigger");let n=[];if(t){const r=htmx.config.triggerSpecsCache;n=r&&r[t]||parseAndCacheTrigger(e,t,r)}return n.length>0?n:matches(e,"form")?[{trigger:"submit"}]:matches(e,'input[type="button"], input[type="submit"]')?[{trigger:"click"}]:matches(e,INPUT_SELECTOR)?[{trigger:"change"}]:[{trigger:"click"}]}function cancelPolling(e){getInternalData(e).cancelled=!0}function processPolling(e,t,n){const r=getInternalData(e);r.timeout=getWindow().setTimeout((function(){bodyContains(e)&&!0!==r.cancelled&&(maybeFilterEvent(n,e,makeEvent("hx:poll:trigger",{triggerSpec:n,target:e}))||t(e),processPolling(e,t,n))}),n.pollInterval)}function isLocalLink(e){return location.hostname===e.hostname&&getRawAttribute(e,"href")&&0!==getRawAttribute(e,"href").indexOf("#")}function eltIsDisabled(e){return closest(e,htmx.config.disableSelector)}function boostElement(e,t,n){if(e instanceof HTMLAnchorElement&&isLocalLink(e)&&(""===e.target||"_self"===e.target)||"FORM"===e.tagName){let r,o;if(t.boosted=!0,"A"===e.tagName)r="get",o=getRawAttribute(e,"href");else{const t=getRawAttribute(e,"method");r=t?t.toLowerCase():"get",o=getRawAttribute(e,"action")}n.forEach((function(n){addEventListener(e,(function(e,t){const n=asElement(e);eltIsDisabled(n)?cleanUpElement(n):issueAjaxRequest(r,o,n,t)}),t,n,!0)}))}}function shouldCancel(e,t){const n=asElement(t);if(!n)return!1;if("submit"===e.type||"click"===e.type){if("FORM"===n.tagName)return!0;if(matches(n,'input[type="submit"], button')&&null!==closest(n,"form"))return!0;if(n instanceof HTMLAnchorElement&&n.href&&("#"===n.getAttribute("href")||0!==n.getAttribute("href").indexOf("#")))return!0}return!1}function ignoreBoostedAnchorCtrlClick(e,t){return getInternalData(e).boosted&&e instanceof HTMLAnchorElement&&"click"===t.type&&(t.ctrlKey||t.metaKey)}function maybeFilterEvent(e,t,n){const r=e.eventFilter;if(r)try{return!0!==r.call(t,n)}catch(e){const t=r.source;return triggerErrorEvent(getDocument().body,"htmx:eventFilter:error",{error:e,source:t}),!0}return!1}function addEventListener(e,t,n,r,o){const a=getInternalData(e);let i;i=r.from?querySelectorAllExt(e,r.from):[e],r.changed&&i.forEach((function(e){getInternalData(e).lastValue=e.value})),forEach(i,(function(i){const s=function(n){if(!bodyContains(e))return void i.removeEventListener(r.trigger,s);if(ignoreBoostedAnchorCtrlClick(e,n))return;if((o||shouldCancel(n,e))&&n.preventDefault(),maybeFilterEvent(r,e,n))return;const l=getInternalData(n);if(l.triggerSpec=r,null==l.handledFor&&(l.handledFor=[]),l.handledFor.indexOf(e)<0){if(l.handledFor.push(e),r.consume&&n.stopPropagation(),r.target&&n.target&&!matches(asElement(n.target),r.target))return;if(r.once){if(a.triggeredOnce)return;a.triggeredOnce=!0}if(r.changed){const e=getInternalData(i),t=i.value;if(e.lastValue===t)return;e.lastValue=t}if(a.delayed&&clearTimeout(a.delayed),a.throttle)return;r.throttle>0?a.throttle||(t(e,n),a.throttle=getWindow().setTimeout((function(){a.throttle=null}),r.throttle)):r.delay>0?a.delayed=getWindow().setTimeout((function(){t(e,n)}),r.delay):(triggerEvent(e,"htmx:trigger"),t(e,n))}};null==n.listenerInfos&&(n.listenerInfos=[]),n.listenerInfos.push({trigger:r.trigger,listener:s,on:i}),i.addEventListener(r.trigger,s)}))}let windowIsScrolling=!1,scrollHandler=null;function initScrollHandler(){scrollHandler||(scrollHandler=function(){windowIsScrolling=!0},window.addEventListener("scroll",scrollHandler),setInterval((function(){windowIsScrolling&&(windowIsScrolling=!1,forEach(getDocument().querySelectorAll("[hx-trigger*='revealed'],[data-hx-trigger*='revealed']"),(function(e){maybeReveal(e)})))}),200))}function maybeReveal(e){!hasAttribute(e,"data-hx-revealed")&&isScrolledIntoView(e)&&(e.setAttribute("data-hx-revealed","true"),getInternalData(e).initHash?triggerEvent(e,"revealed"):e.addEventListener("htmx:afterProcessNode",(function(){triggerEvent(e,"revealed")}),{once:!0}))}function loadImmediately(e,t,n,r){const o=function(){n.loaded||(n.loaded=!0,t(e))};r>0?getWindow().setTimeout(o,r):o()}function processVerbs(e,t,n){let r=!1;return forEach(VERBS,(function(o){if(hasAttribute(e,"hx-"+o)){const a=getAttributeValue(e,"hx-"+o);r=!0,t.path=a,t.verb=o,n.forEach((function(n){addTriggerHandler(e,n,t,(function(e,t){const n=asElement(e);closest(n,htmx.config.disableSelector)?cleanUpElement(n):issueAjaxRequest(o,a,n,t)}))}))}})),r}function addTriggerHandler(e,t,n,r){if("revealed"===t.trigger)initScrollHandler(),addEventListener(e,r,n,t),maybeReveal(asElement(e));else if("intersect"===t.trigger){const o={};t.root&&(o.root=querySelectorExt(e,t.root)),t.threshold&&(o.threshold=parseFloat(t.threshold)),new IntersectionObserver((function(t){for(let n=0;n0?(n.polling=!0,processPolling(asElement(e),r,t)):addEventListener(e,r,n,t)}function shouldProcessHxOn(e){const t=asElement(e);if(!t)return!1;const n=t.attributes;for(let e=0;e", "+e)).join(""))}return[]}function maybeSetLastButtonClicked(e){const t=closest(asElement(e.target),"button, input[type='submit']"),n=getRelatedFormData(e);n&&(n.lastButtonClicked=t)}function maybeUnsetLastButtonClicked(e){const t=getRelatedFormData(e);t&&(t.lastButtonClicked=null)}function getRelatedFormData(e){const t=closest(asElement(e.target),"button, input[type='submit']");if(!t)return;const n=resolveTarget("#"+getRawAttribute(t,"form"),t.getRootNode())||closest(t,"form");return n?getInternalData(n):void 0}function initButtonTracking(e){e.addEventListener("click",maybeSetLastButtonClicked),e.addEventListener("focusin",maybeSetLastButtonClicked),e.addEventListener("focusout",maybeUnsetLastButtonClicked)}function addHxOnEventHandler(e,t,n){const r=getInternalData(e);let o;Array.isArray(r.onHandlers)||(r.onHandlers=[]);const a=function(t){maybeEval(e,(function(){eltIsDisabled(e)||(o||(o=new Function("event",n)),o.call(e,t))}))};e.addEventListener(t,a),r.onHandlers.push({event:t,listener:a})}function processHxOnWildcard(e){deInitOnHandlers(e);for(let t=0;thtmx.config.historyCacheSize;)a.shift();for(;a.length>0;)try{localStorage.setItem("htmx-history-cache",JSON.stringify(a));break}catch(e){triggerErrorEvent(getDocument().body,"htmx:historyCacheError",{cause:e,cache:a}),a.shift()}}function getCachedHistory(e){if(!canAccessLocalStorage())return null;e=normalizePath(e);const t=parseJSON(localStorage.getItem("htmx-history-cache"))||[];for(let n=0;n=200&&this.status<400){triggerEvent(getDocument().body,"htmx:historyCacheMissLoad",n);const t=makeFragment(this.response),r=t.querySelector("[hx-history-elt],[data-hx-history-elt]")||t,o=getHistoryElement(),a=makeSettleInfo(o);handleTitle(t.title),swapInnerHTML(o,r,a),settleImmediately(a.tasks),currentPathForHistory=e,triggerEvent(getDocument().body,"htmx:historyRestore",{path:e,cacheMiss:!0,serverResponse:this.response})}else triggerErrorEvent(getDocument().body,"htmx:historyCacheMissLoadError",n)},t.send()}function restoreHistory(e){saveCurrentPageToHistory();const t=getCachedHistory(e=e||location.pathname+location.search);if(t){const n=makeFragment(t.content),r=getHistoryElement(),o=makeSettleInfo(r);handleTitle(n.title),swapInnerHTML(r,n,o),settleImmediately(o.tasks),getWindow().setTimeout((function(){window.scrollTo(0,t.scroll)}),0),currentPathForHistory=e,triggerEvent(getDocument().body,"htmx:historyRestore",{path:e,item:t})}else htmx.config.refreshOnHistoryMiss?window.location.reload(!0):loadHistoryFromServer(e)}function addRequestIndicatorClasses(e){let t=findAttributeTargets(e,"hx-indicator");return null==t&&(t=[e]),forEach(t,(function(e){const t=getInternalData(e);t.requestCount=(t.requestCount||0)+1,e.classList.add.call(e.classList,htmx.config.requestClass)})),t}function disableElements(e){let t=findAttributeTargets(e,"hx-disabled-elt");return null==t&&(t=[]),forEach(t,(function(e){const t=getInternalData(e);t.requestCount=(t.requestCount||0)+1,e.setAttribute("disabled","")})),t}function removeRequestIndicators(e,t){forEach(e,(function(e){const t=getInternalData(e);t.requestCount=(t.requestCount||0)-1,0===t.requestCount&&e.classList.remove.call(e.classList,htmx.config.requestClass)})),forEach(t,(function(e){const t=getInternalData(e);t.requestCount=(t.requestCount||0)-1,0===t.requestCount&&e.removeAttribute("disabled")}))}function haveSeenNode(e,t){for(let n=0;nt.indexOf(e)<0)):r.filter((e=>e!==t)),n.delete(e),forEach(r,(t=>n.append(e,t)))}}function processInputValue(e,t,n,r,o){if(null!=r&&!haveSeenNode(e,r)){if(e.push(r),shouldInclude(r)){const e=getRawAttribute(r,"name");let a=r.value;r instanceof HTMLSelectElement&&r.multiple&&(a=toArray(r.querySelectorAll("option:checked")).map((function(e){return e.value}))),r instanceof HTMLInputElement&&r.files&&(a=toArray(r.files)),addValueToFormData(e,a,t),o&&validateElement(r,n)}r instanceof HTMLFormElement&&(forEach(r.elements,(function(r){e.indexOf(r)>=0?removeValueFromFormData(r.name,r.value,t):e.push(r),o&&validateElement(r,n)})),new FormData(r).forEach((function(e,n){e instanceof File&&""===e.name||addValueToFormData(n,e,t)})))}}function validateElement(e,t){const n=e;n.willValidate&&(triggerEvent(n,"htmx:validation:validate"),n.checkValidity()||(t.push({elt:n,message:n.validationMessage,validity:n.validity}),triggerEvent(n,"htmx:validation:failed",{message:n.validationMessage,validity:n.validity})))}function overrideFormData(e,t){for(const n of t.keys())e.delete(n),t.getAll(n).forEach((function(t){e.append(n,t)}));return e}function getInputValues(e,t){const n=[],r=new FormData,o=new FormData,a=[],i=getInternalData(e);i.lastButtonClicked&&!bodyContains(i.lastButtonClicked)&&(i.lastButtonClicked=null);let s=e instanceof HTMLFormElement&&!0!==e.noValidate||"true"===getAttributeValue(e,"hx-validate");if(i.lastButtonClicked&&(s=s&&!0!==i.lastButtonClicked.formNoValidate),"get"!==t&&processInputValue(n,o,a,closest(e,"form"),s),processInputValue(n,r,a,e,s),i.lastButtonClicked||"BUTTON"===e.tagName||"INPUT"===e.tagName&&"submit"===getRawAttribute(e,"type")){const t=i.lastButtonClicked||e;addValueToFormData(getRawAttribute(t,"name"),t.value,o)}return forEach(findAttributeTargets(e,"hx-include"),(function(e){processInputValue(n,r,a,asElement(e),s),matches(e,"form")||forEach(asParentNode(e).querySelectorAll(INPUT_SELECTOR),(function(e){processInputValue(n,r,a,e,s)}))})),overrideFormData(r,o),{errors:a,formData:r,values:formDataProxy(r)}}function appendParam(e,t,n){""!==e&&(e+="&"),"[object Object]"===String(n)&&(n=JSON.stringify(n));const r=encodeURIComponent(n);return e+(encodeURIComponent(t)+"=")+r}function urlEncode(e){e=formDataFromObject(e);let t="";return e.forEach((function(e,n){t=appendParam(t,n,e)})),t}function getHeaders(e,t,n){const r={"HX-Request":"true","HX-Trigger":getRawAttribute(e,"id"),"HX-Trigger-Name":getRawAttribute(e,"name"),"HX-Target":getAttributeValue(t,"id"),"HX-Current-URL":getDocument().location.href};return getValuesForElement(e,"hx-headers",!1,r),void 0!==n&&(r["HX-Prompt"]=n),getInternalData(e).boosted&&(r["HX-Boosted"]="true"),r}function filterValues(e,t){const n=getClosestAttributeValue(t,"hx-params");if(n){if("none"===n)return new FormData;if("*"===n)return e;if(0===n.indexOf("not "))return forEach(n.substr(4).split(","),(function(t){t=t.trim(),e.delete(t)})),e;{const t=new FormData;return forEach(n.split(","),(function(n){n=n.trim(),e.has(n)&&e.getAll(n).forEach((function(e){t.append(n,e)}))})),t}}return e}function isAnchorLink(e){return!!getRawAttribute(e,"href")&&getRawAttribute(e,"href").indexOf("#")>=0}function getSwapSpecification(e,t){const n=t||getClosestAttributeValue(e,"hx-swap"),r={swapStyle:getInternalData(e).boosted?"innerHTML":htmx.config.defaultSwapStyle,swapDelay:htmx.config.defaultSwapDelay,settleDelay:htmx.config.defaultSettleDelay};if(htmx.config.scrollIntoViewOnBoost&&getInternalData(e).boosted&&!isAnchorLink(e)&&(r.show="top"),n){const e=splitOnWhitespace(n);if(e.length>0)for(let t=0;t0?a.join(":"):null;r.scroll=e,r.scrollTarget=o}else if(0===n.indexOf("show:")){var a;const e=(a=n.substr(5).split(":")).pop();o=a.length>0?a.join(":"):null,r.show=e,r.showTarget=o}else if(0===n.indexOf("focus-scroll:")){const e=n.substr("focus-scroll:".length);r.focusScroll="true"==e}else 0==t?r.swapStyle=n:logError("Unknown modifier in hx-swap: "+n)}}return r}function usesFormData(e){return"multipart/form-data"===getClosestAttributeValue(e,"hx-encoding")||matches(e,"form")&&"multipart/form-data"===getRawAttribute(e,"enctype")}function encodeParamsForBody(e,t,n){let r=null;return withExtensions(t,(function(o){null==r&&(r=o.encodeParameters(e,n,t))})),null!=r?r:usesFormData(t)?overrideFormData(new FormData,formDataFromObject(n)):urlEncode(n)}function makeSettleInfo(e){return{tasks:[],elts:[e]}}function updateScrollState(e,t){const n=e[0],r=e[e.length-1];if(t.scroll){var o=null;t.scrollTarget&&(o=asElement(querySelectorExt(n,t.scrollTarget))),"top"===t.scroll&&(n||o)&&((o=o||n).scrollTop=0),"bottom"===t.scroll&&(r||o)&&((o=o||r).scrollTop=o.scrollHeight)}if(t.show){if(o=null,t.showTarget){let e=t.showTarget;"window"===t.showTarget&&(e="body"),o=asElement(querySelectorExt(n,e))}"top"===t.show&&(n||o)&&(o=o||n).scrollIntoView({block:"start",behavior:htmx.config.scrollBehavior}),"bottom"===t.show&&(r||o)&&(o=o||r).scrollIntoView({block:"end",behavior:htmx.config.scrollBehavior})}}function getValuesForElement(e,t,n,r){if(null==r&&(r={}),null==e)return r;const o=getAttributeValue(e,t);if(o){let t,a=o.trim(),i=n;if("unset"===a)return null;0===a.indexOf("javascript:")?(a=a.substr(11),i=!0):0===a.indexOf("js:")&&(a=a.substr(3),i=!0),0!==a.indexOf("{")&&(a="{"+a+"}"),t=i?maybeEval(e,(function(){return Function("return ("+a+")")()}),{}):parseJSON(a);for(const e in t)t.hasOwnProperty(e)&&null==r[e]&&(r[e]=t[e])}return getValuesForElement(asElement(parentElt(e)),t,n,r)}function maybeEval(e,t,n){return htmx.config.allowEval?t():(triggerErrorEvent(e,"htmx:evalDisallowedError"),n)}function getHXVarsForElement(e,t){return getValuesForElement(e,"hx-vars",!0,t)}function getHXValsForElement(e,t){return getValuesForElement(e,"hx-vals",!1,t)}function getExpressionVars(e){return mergeObjects(getHXVarsForElement(e),getHXValsForElement(e))}function safelySetHeaderValue(e,t,n){if(null!==n)try{e.setRequestHeader(t,n)}catch(r){e.setRequestHeader(t,encodeURIComponent(n)),e.setRequestHeader(t+"-URI-AutoEncoded","true")}}function getPathFromResponse(e){if(e.responseURL&&"undefined"!=typeof URL)try{const t=new URL(e.responseURL);return t.pathname+t.search}catch(t){triggerErrorEvent(getDocument().body,"htmx:badResponseUrl",{url:e.responseURL})}}function hasHeader(e,t){return t.test(e.getAllResponseHeaders())}function ajaxHelper(e,t,n){return e=e.toLowerCase(),n?n instanceof Element||"string"==typeof n?issueAjaxRequest(e,t,null,null,{targetOverride:resolveTarget(n),returnPromise:!0}):issueAjaxRequest(e,t,resolveTarget(n.source),n.event,{handler:n.handler,headers:n.headers,values:n.values,targetOverride:resolveTarget(n.target),swapOverride:n.swap,select:n.select,returnPromise:!0}):issueAjaxRequest(e,t,null,null,{returnPromise:!0})}function hierarchyForElt(e){const t=[];for(;e;)t.push(e),e=e.parentElement;return t}function verifyPath(e,t,n){let r,o;return"function"==typeof URL?(o=new URL(t,document.location.href),r=document.location.origin===o.origin):(o=t,r=startsWith(t,document.location.origin)),!(htmx.config.selfRequestsOnly&&!r)&&triggerEvent(e,"htmx:validateUrl",mergeObjects({url:o,sameHost:r},n))}function formDataFromObject(e){if(e instanceof FormData)return e;const t=new FormData;for(const n in e)e.hasOwnProperty(n)&&("function"==typeof e[n].forEach?e[n].forEach((function(e){t.append(n,e)})):"object"==typeof e[n]?t.append(n,JSON.stringify(e[n])):t.append(n,e[n]));return t}function formDataArrayProxy(e,t,n){return new Proxy(n,{get:function(n,r){return"number"==typeof r?n[r]:"length"===r?n.length:"push"===r?function(r){n.push(r),e.append(t,r)}:"function"==typeof n[r]?function(){n[r].apply(n,arguments),e.delete(t),n.forEach((function(n){e.append(t,n)}))}:n[r]&&1===n[r].length?n[r][0]:n[r]},set:function(n,r,o){return n[r]=o,e.delete(t),n.forEach((function(n){e.append(t,n)})),!0}})}function formDataProxy(e){return new Proxy(e,{get:function(t,n){if("symbol"==typeof n)return Reflect.get(t,n);if("toJSON"===n)return()=>Object.fromEntries(e);if(n in t)return"function"==typeof t[n]?function(){return e[n].apply(e,arguments)}:t[n];const r=e.getAll(n);return 0===r.length?void 0:1===r.length?r[0]:formDataArrayProxy(t,n,r)},set:function(e,t,n){return"string"==typeof t&&(e.delete(t),"function"==typeof n.forEach?n.forEach((function(n){e.append(t,n)})):e.append(t,n),!0)},deleteProperty:function(e,t){return"string"==typeof t&&e.delete(t),!0},ownKeys:function(e){return Reflect.ownKeys(Object.fromEntries(e))},getOwnPropertyDescriptor:function(e,t){return Reflect.getOwnPropertyDescriptor(Object.fromEntries(e),t)}})}function issueAjaxRequest(e,t,n,r,o,a){let i=null,s=null;if((o=null!=o?o:{}).returnPromise&&"undefined"!=typeof Promise)var l=new Promise((function(e,t){i=e,s=t}));null==n&&(n=getDocument().body);const c=o.handler||handleAjaxResponse,u=o.select||null;if(!bodyContains(n))return maybeCall(i),l;const d=o.targetOverride||asElement(getTarget(n));if(null==d||d==DUMMY_ELT)return triggerErrorEvent(n,"htmx:targetError",{target:getAttributeValue(n,"hx-target")}),maybeCall(s),l;let p=getInternalData(n);const h=p.lastButtonClicked;if(h){const n=getRawAttribute(h,"formaction");null!=n&&(t=n);const r=getRawAttribute(h,"formmethod");null!=r&&"dialog"!==r.toLowerCase()&&(e=r)}const f=getClosestAttributeValue(n,"hx-confirm");if(void 0===a&&!1===triggerEvent(n,"htmx:confirm",{target:d,elt:n,path:t,verb:e,triggeringEvent:r,etc:o,issueRequest:function(a){return issueAjaxRequest(e,t,n,r,o,!!a)},question:f}))return maybeCall(i),l;let m=n,g=getClosestAttributeValue(n,"hx-sync"),b=null,v=!1;if(g){const e=g.split(":"),t=e[0].trim();if(m="this"===t?findThisElement(n,"hx-sync"):asElement(querySelectorExt(n,t)),g=(e[1]||"drop").trim(),p=getInternalData(m),"drop"===g&&p.xhr&&!0!==p.abortable)return maybeCall(i),l;if("abort"===g){if(p.xhr)return maybeCall(i),l;v=!0}else"replace"===g?triggerEvent(m,"htmx:abort"):0===g.indexOf("queue")&&(b=(g.split(" ")[1]||"last").trim())}if(p.xhr){if(!p.abortable){if(null==b){if(r){const e=getInternalData(r);e&&e.triggerSpec&&e.triggerSpec.queue&&(b=e.triggerSpec.queue)}null==b&&(b="last")}return null==p.queuedRequests&&(p.queuedRequests=[]),"first"===b&&0===p.queuedRequests.length||"all"===b?p.queuedRequests.push((function(){issueAjaxRequest(e,t,n,r,o)})):"last"===b&&(p.queuedRequests=[],p.queuedRequests.push((function(){issueAjaxRequest(e,t,n,r,o)}))),maybeCall(i),l}triggerEvent(m,"htmx:abort")}const y=new XMLHttpRequest;p.xhr=y,p.abortable=v;const _=function(){p.xhr=null,p.abortable=!1,null!=p.queuedRequests&&p.queuedRequests.length>0&&p.queuedRequests.shift()()},k=getClosestAttributeValue(n,"hx-prompt");if(k){var x=prompt(k);if(null===x||!triggerEvent(n,"htmx:prompt",{prompt:x,target:d}))return maybeCall(i),_(),l}if(f&&!a&&!confirm(f))return maybeCall(i),_(),l;let w=getHeaders(n,d,x);"get"===e||usesFormData(n)||(w["Content-Type"]="application/x-www-form-urlencoded"),o.headers&&(w=mergeObjects(w,o.headers));const S=getInputValues(n,e);let A=S.errors;const C=S.formData;o.values&&overrideFormData(C,formDataFromObject(o.values));const E=overrideFormData(C,formDataFromObject(getExpressionVars(n)));let T=filterValues(E,n);htmx.config.getCacheBusterParam&&"get"===e&&T.set("org.htmx.cache-buster",getRawAttribute(d,"id")||"true"),null!=t&&""!==t||(t=getDocument().location.href);const O=getValuesForElement(n,"hx-request"),P=getInternalData(n).boosted;let D=htmx.config.methodsThatUseUrlParams.indexOf(e)>=0;const R={boosted:P,useUrlParams:D,formData:T,parameters:formDataProxy(T),unfilteredFormData:E,unfilteredParameters:formDataProxy(E),headers:w,target:d,verb:e,errors:A,withCredentials:o.credentials||O.credentials||htmx.config.withCredentials,timeout:o.timeout||O.timeout||htmx.config.timeout,path:t,triggeringEvent:r};if(!triggerEvent(n,"htmx:configRequest",R))return maybeCall(i),_(),l;if(t=R.path,e=R.verb,w=R.headers,T=formDataFromObject(R.parameters),A=R.errors,D=R.useUrlParams,A&&A.length>0)return triggerEvent(n,"htmx:validation:halted",R),maybeCall(i),_(),l;const L=t.split("#"),I=L[0],M=L[1];let F=t;if(D&&(F=I,!T.keys().next().done&&(F.indexOf("?")<0?F+="?":F+="&",F+=urlEncode(T),M&&(F+="#"+M))),!verifyPath(n,F,R))return triggerErrorEvent(n,"htmx:invalidPath",R),maybeCall(s),l;if(y.open(e.toUpperCase(),F,!0),y.overrideMimeType("text/html"),y.withCredentials=R.withCredentials,y.timeout=R.timeout,O.noHeaders);else for(const e in w)if(w.hasOwnProperty(e)){const t=w[e];safelySetHeaderValue(y,e,t)}const N={xhr:y,target:d,requestConfig:R,etc:o,boosted:P,select:u,pathInfo:{requestPath:t,finalRequestPath:F,responsePath:null,anchor:M}};if(y.onload=function(){try{const e=hierarchyForElt(n);if(N.pathInfo.responsePath=getPathFromResponse(y),c(n,N),removeRequestIndicators(j,$),triggerEvent(n,"htmx:afterRequest",N),triggerEvent(n,"htmx:afterOnLoad",N),!bodyContains(n)){let t=null;for(;e.length>0&&null==t;){const n=e.shift();bodyContains(n)&&(t=n)}t&&(triggerEvent(t,"htmx:afterRequest",N),triggerEvent(t,"htmx:afterOnLoad",N))}maybeCall(i),_()}catch(e){throw triggerErrorEvent(n,"htmx:onLoadError",mergeObjects({error:e},N)),e}},y.onerror=function(){removeRequestIndicators(j,$),triggerErrorEvent(n,"htmx:afterRequest",N),triggerErrorEvent(n,"htmx:sendError",N),maybeCall(s),_()},y.onabort=function(){removeRequestIndicators(j,$),triggerErrorEvent(n,"htmx:afterRequest",N),triggerErrorEvent(n,"htmx:sendAbort",N),maybeCall(s),_()},y.ontimeout=function(){removeRequestIndicators(j,$),triggerErrorEvent(n,"htmx:afterRequest",N),triggerErrorEvent(n,"htmx:timeout",N),maybeCall(s),_()},!triggerEvent(n,"htmx:beforeRequest",N))return maybeCall(i),_(),l;var j=addRequestIndicatorClasses(n),$=disableElements(n);forEach(["loadstart","loadend","progress","abort"],(function(e){forEach([y,y.upload],(function(t){t.addEventListener(e,(function(t){triggerEvent(n,"htmx:xhr:"+e,{lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total})}))}))})),triggerEvent(n,"htmx:beforeSend",N);const H=D?null:encodeParamsForBody(y,n,T);return y.send(H),l}function determineHistoryUpdates(e,t){const n=t.xhr;let r=null,o=null;if(hasHeader(n,/HX-Push:/i)?(r=n.getResponseHeader("HX-Push"),o="push"):hasHeader(n,/HX-Push-Url:/i)?(r=n.getResponseHeader("HX-Push-Url"),o="push"):hasHeader(n,/HX-Replace-Url:/i)&&(r=n.getResponseHeader("HX-Replace-Url"),o="replace"),r)return"false"===r?{}:{type:o,path:r};const a=t.pathInfo.finalRequestPath,i=t.pathInfo.responsePath,s=getClosestAttributeValue(e,"hx-push-url"),l=getClosestAttributeValue(e,"hx-replace-url"),c=getInternalData(e).boosted;let u=null,d=null;return s?(u="push",d=s):l?(u="replace",d=l):c&&(u="push",d=i||a),d?"false"===d?{}:("true"===d&&(d=i||a),t.pathInfo.anchor&&-1===d.indexOf("#")&&(d=d+"#"+t.pathInfo.anchor),{type:u,path:d}):{}}function codeMatches(e,t){return new RegExp(e.code).test(t.toString(10))}function resolveResponseHandling(e){for(var t=0;t0?getWindow().setTimeout(u,b.swapDelay):u()}d&&triggerErrorEvent(e,"htmx:responseError",mergeObjects({error:"Response Status Error Code "+n.status+" from "+t.pathInfo.requestPath},t))}}const extensions={};function extensionBase(){return{init:function(e){return null},getSelectors:function(){return null},onEvent:function(e,t){return!0},transformResponse:function(e,t,n){return e},isInlineSwap:function(e){return!1},handleSwap:function(e,t,n,r){return!1},encodeParameters:function(e,t,n){return null}}}function defineExtension(e,t){t.init&&t.init(internalAPI),extensions[e]=mergeObjects(extensionBase(),t)}function removeExtension(e){delete extensions[e]}function getExtensions(e,t,n){if(null==t&&(t=[]),null==e)return t;null==n&&(n=[]);const r=getAttributeValue(e,"hx-ext");return r&&forEach(r.split(","),(function(e){if("ignore:"!=(e=e.replace(/ /g,"")).slice(0,7)){if(n.indexOf(e)<0){const n=extensions[e];n&&t.indexOf(n)<0&&t.push(n)}}else n.push(e.slice(7))})),getExtensions(asElement(parentElt(e)),t,n)}var isReady=!1;function ready(e){isReady||"complete"===getDocument().readyState?e():getDocument().addEventListener("DOMContentLoaded",e)}function insertIndicatorStyles(){if(!1!==htmx.config.includeIndicatorStyles){const e=htmx.config.inlineStyleNonce?` nonce="${htmx.config.inlineStyleNonce}"`:"";getDocument().head.insertAdjacentHTML("beforeend"," ."+htmx.config.indicatorClass+"{opacity:0} ."+htmx.config.requestClass+" ."+htmx.config.indicatorClass+"{opacity:1; transition: opacity 200ms ease-in;} ."+htmx.config.requestClass+"."+htmx.config.indicatorClass+"{opacity:1; transition: opacity 200ms ease-in;} ")}}function getMetaConfig(){const e=getDocument().querySelector('meta[name="htmx-config"]');return e?parseJSON(e.content):null}function mergeMetaConfig(){const e=getMetaConfig();e&&(htmx.config=mergeObjects(htmx.config,e))}return getDocument().addEventListener("DOMContentLoaded",(function(){isReady=!0})),ready((function(){mergeMetaConfig(),insertIndicatorStyles();let e=getDocument().body;processNode(e);const t=getDocument().querySelectorAll("[hx-trigger='restored'],[data-hx-trigger='restored']");e.addEventListener("htmx:abort",(function(e){const t=getInternalData(e.target);t&&t.xhr&&t.xhr.abort()}));const n=window.onpopstate?window.onpopstate.bind(window):null;window.onpopstate=function(e){e.state&&e.state.htmx?(restoreHistory(),forEach(t,(function(e){triggerEvent(e,"htmx:restored",{document:getDocument(),triggerEvent})}))):n&&n(e)},getWindow().setTimeout((function(){triggerEvent(e,"htmx:load",{}),e=null}),0)})),htmx}();const __WEBPACK_DEFAULT_EXPORT__=htmx},1296:(e,t,n)=>{var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,i=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,u=l||c||Function("return this")(),d=Object.prototype.toString,p=Math.max,h=Math.min,f=function(){return u.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var n=a.test(e);return n||i.test(e)?s(e.slice(2),n?2:8):o.test(e)?NaN:+e}e.exports=function(e,t,n){var r,o,a,i,s,l,c=0,u=!1,d=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=r,a=o;return r=o=void 0,c=t,i=e.apply(a,n)}function y(e){return c=e,s=setTimeout(k,t),u?v(e):i}function _(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=a}function k(){var e=f();if(_(e))return x(e);s=setTimeout(k,function(e){var n=t-(e-l);return d?h(n,a-(e-c)):n}(e))}function x(e){return s=void 0,b&&r?v(e):(r=o=void 0,i)}function w(){var e=f(),n=_(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return y(l);if(d)return s=setTimeout(k,t),v(l)}return void 0===s&&(s=setTimeout(k,t)),i}return t=g(t)||0,m(n)&&(u=!!n.leading,a=(d="maxWait"in n)?p(g(n.maxWait)||0,t):a,b="trailing"in n?!!n.trailing:b),w.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},w.flush=function(){return void 0===s?i:x(f())},w}},2705:(e,t,n)=>{var r=n(5639).Symbol;e.exports=r},4239:(e,t,n)=>{var r=n(2705),o=n(9607),a=n(2333),i=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":i&&i in Object(e)?o(e):a(e)}},7561:(e,t,n)=>{var r=n(7990),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},1957:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},9607:(e,t,n)=>{var r=n(2705),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=i.call(e);return r&&(t?e[s]=n:delete e[s]),o}},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5639:(e,t,n)=>{var r=n(1957),o="object"==typeof self&&self&&self.Object===Object&&self,a=r||o||Function("return this")();e.exports=a},7990:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},3279:(e,t,n)=>{var r=n(3218),o=n(1927),a=n(4841),i=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,p,h,f=0,m=!1,g=!1,b=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=l,r=c;return l=c=void 0,f=t,d=e.apply(r,n)}function y(e){return f=e,p=setTimeout(k,t),m?v(e):d}function _(e){var n=e-h;return void 0===h||n>=t||n<0||g&&e-f>=u}function k(){var e=o();if(_(e))return x(e);p=setTimeout(k,function(e){var n=t-(e-h);return g?s(n,u-(e-f)):n}(e))}function x(e){return p=void 0,b&&l?v(e):(l=c=void 0,d)}function w(){var e=o(),n=_(e);if(l=arguments,c=this,h=e,n){if(void 0===p)return y(h);if(g)return clearTimeout(p),p=setTimeout(k,t),v(h)}return void 0===p&&(p=setTimeout(k,t)),d}return t=a(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?i(a(n.maxWait)||0,t):u,b="trailing"in n?!!n.trailing:b),w.cancel=function(){void 0!==p&&clearTimeout(p),f=0,l=h=c=p=void 0},w.flush=function(){return void 0===p?d:x(o())},w}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3448:(e,t,n)=>{var r=n(4239),o=n(7005);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},1927:(e,t,n)=>{var r=n(5639);e.exports=function(){return r.Date.now()}},4841:(e,t,n)=>{var r=n(7561),o=n(3218),a=n(3448),i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||l.test(e)?c(e.slice(2),n?2:8):i.test(e)?NaN:+e}},813:function(e){e.exports=function(){"use strict";var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},n=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5e3;t(this,e),this.ctx=n,this.iframes=r,this.exclude=o,this.iframesTimeout=a}return n(e,[{key:"getContexts",value:function(){var e=[];return(void 0!==this.ctx&&this.ctx?NodeList.prototype.isPrototypeOf(this.ctx)?Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?this.ctx:"string"==typeof this.ctx?Array.prototype.slice.call(document.querySelectorAll(this.ctx)):[this.ctx]:[]).forEach((function(t){var n=e.filter((function(e){return e.contains(t)})).length>0;-1!==e.indexOf(t)||n||e.push(t)})),e}},{key:"getIframeContents",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=void 0;try{var o=e.contentWindow;if(r=o.document,!o||!r)throw new Error("iframe inaccessible")}catch(e){n()}r&&t(r)}},{key:"isIframeBlank",value:function(e){var t="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&n!==t&&n}},{key:"observeIframeLoad",value:function(e,t,n){var r=this,o=!1,a=null,i=function i(){if(!o){o=!0,clearTimeout(a);try{r.isIframeBlank(e)||(e.removeEventListener("load",i),r.getIframeContents(e,t,n))}catch(e){n()}}};e.addEventListener("load",i),a=setTimeout(i,this.iframesTimeout)}},{key:"onIframeReady",value:function(e,t,n){try{"complete"===e.contentWindow.document.readyState?this.isIframeBlank(e)?this.observeIframeLoad(e,t,n):this.getIframeContents(e,t,n):this.observeIframeLoad(e,t,n)}catch(e){n()}}},{key:"waitForIframes",value:function(e,t){var n=this,r=0;this.forEachIframe(e,(function(){return!0}),(function(e){r++,n.waitForIframes(e.querySelector("html"),(function(){--r||t()}))}),(function(e){e||t()}))}},{key:"forEachIframe",value:function(t,n,r){var o=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},i=t.querySelectorAll("iframe"),s=i.length,l=0;i=Array.prototype.slice.call(i);var c=function(){--s<=0&&a(l)};s||c(),i.forEach((function(t){e.matches(t,o.exclude)?c():o.onIframeReady(t,(function(e){n(t)&&(l++,r(e)),c()}),c)}))}},{key:"createIterator",value:function(e,t,n){return document.createNodeIterator(e,t,n,!1)}},{key:"createInstanceOnIframe",value:function(t){return new e(t.querySelector("html"),this.iframes)}},{key:"compareNodeIframe",value:function(e,t,n){if(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_PRECEDING){if(null===t)return!0;if(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)return!0}return!1}},{key:"getIteratorNode",value:function(e){var t=e.previousNode();return{prevNode:t,node:(null===t||e.nextNode())&&e.nextNode()}}},{key:"checkIframeFilter",value:function(e,t,n,r){var o=!1,a=!1;return r.forEach((function(e,t){e.val===n&&(o=t,a=e.handled)})),this.compareNodeIframe(e,t,n)?(!1!==o||a?!1===o||a||(r[o].handled=!0):r.push({val:n,handled:!0}),!0):(!1===o&&r.push({val:n,handled:!1}),!1)}},{key:"handleOpenIframes",value:function(e,t,n,r){var o=this;e.forEach((function(e){e.handled||o.getIframeContents(e.val,(function(e){o.createInstanceOnIframe(e).forEachNode(t,n,r)}))}))}},{key:"iterateThroughNodes",value:function(e,t,n,r,o){for(var a=this,i=this.createIterator(t,e,r),s=[],l=[],c=void 0,u=void 0;d=void 0,d=a.getIteratorNode(i),u=d.prevNode,c=d.node;)this.iframes&&this.forEachIframe(t,(function(e){return a.checkIframeFilter(c,u,e,s)}),(function(t){a.createInstanceOnIframe(t).forEachNode(e,(function(e){return l.push(e)}),r)})),l.push(c);var d;l.forEach((function(e){n(e)})),this.iframes&&this.handleOpenIframes(s,e,n,r),o()}},{key:"forEachNode",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:function(){},a=this.getContexts(),i=a.length;i||o(),a.forEach((function(a){var s=function(){r.iterateThroughNodes(e,a,t,n,(function(){--i<=0&&o()}))};r.iframes?r.waitForIframes(a,s):s()}))}}],[{key:"matches",value:function(e,t){var n="string"==typeof t?[t]:t,r=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(r){var o=!1;return n.every((function(t){return!r.call(e,t)||(o=!0,!1)})),o}return!1}}]),e}(),a=function(){function a(e){t(this,a),this.ctx=e,this.ie=!1;var n=window.navigator.userAgent;(n.indexOf("MSIE")>-1||n.indexOf("Trident")>-1)&&(this.ie=!0)}return n(a,[{key:"log",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"debug",r=this.opt.log;this.opt.debug&&"object"===(void 0===r?"undefined":e(r))&&"function"==typeof r[n]&&r[n]("mark.js: "+t)}},{key:"escapeStr",value:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}},{key:"createRegExp",value:function(e){return"disabled"!==this.opt.wildcards&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),"disabled"!==this.opt.wildcards&&(e=this.createWildcardsRegExp(e)),this.createAccuracyRegExp(e)}},{key:"createSynonymsRegExp",value:function(e){var t=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",r=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(var o in t)if(t.hasOwnProperty(o)){var a=t[o],i="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(o):this.escapeStr(o),s="disabled"!==this.opt.wildcards?this.setupWildcardsRegExp(a):this.escapeStr(a);""!==i&&""!==s&&(e=e.replace(new RegExp("("+this.escapeStr(i)+"|"+this.escapeStr(s)+")","gm"+n),r+"("+this.processSynomyms(i)+"|"+this.processSynomyms(s)+")"+r))}return e}},{key:"processSynomyms",value:function(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}},{key:"setupWildcardsRegExp",value:function(e){return(e=e.replace(/(?:\\)*\?/g,(function(e){return"\\"===e.charAt(0)?"?":""}))).replace(/(?:\\)*\*/g,(function(e){return"\\"===e.charAt(0)?"*":""}))}},{key:"createWildcardsRegExp",value:function(e){var t="withSpaces"===this.opt.wildcards;return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}},{key:"setupIgnoreJoinersRegExp",value:function(e){return e.replace(/[^(|)\\]/g,(function(e,t,n){var r=n.charAt(t+1);return/[(|)\\]/.test(r)||""===r?e:e+"\0"}))}},{key:"createJoinersRegExp",value:function(e){var t=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&t.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join("["+t.join("")+"]*"):e}},{key:"createDiacriticsRegExp",value:function(e){var t=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["aàáảãạăằắẳẵặâầấẩẫậäåāą","AÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćč","CÇĆČ","dđď","DĐĎ","eèéẻẽẹêềếểễệëěēę","EÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïī","IÌÍỈĨỊÎÏĪ","lł","LŁ","nñňń","NÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøō","OÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rř","RŘ","sšśșş","SŠŚȘŞ","tťțţ","TŤȚŢ","uùúủũụưừứửữựûüůū","UÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿ","YÝỲỶỸỴŸ","zžżź","ZŽŻŹ"]:["aàáảãạăằắẳẵặâầấẩẫậäåāąAÀÁẢÃẠĂẰẮẲẴẶÂẦẤẨẪẬÄÅĀĄ","cçćčCÇĆČ","dđďDĐĎ","eèéẻẽẹêềếểễệëěēęEÈÉẺẼẸÊỀẾỂỄỆËĚĒĘ","iìíỉĩịîïīIÌÍỈĨỊÎÏĪ","lłLŁ","nñňńNÑŇŃ","oòóỏõọôồốổỗộơởỡớờợöøōOÒÓỎÕỌÔỒỐỔỖỘƠỞỠỚỜỢÖØŌ","rřRŘ","sšśșşSŠŚȘŞ","tťțţTŤȚŢ","uùúủũụưừứửữựûüůūUÙÚỦŨỤƯỪỨỬỮỰÛÜŮŪ","yýỳỷỹỵÿYÝỲỶỸỴŸ","zžżźZŽŻŹ"],r=[];return e.split("").forEach((function(o){n.every((function(n){if(-1!==n.indexOf(o)){if(r.indexOf(n)>-1)return!1;e=e.replace(new RegExp("["+n+"]","gm"+t),"["+n+"]"),r.push(n)}return!0}))})),e}},{key:"createMergedBlanksRegExp",value:function(e){return e.replace(/[\s]+/gim,"[\\s]+")}},{key:"createAccuracyRegExp",value:function(e){var t=this,n=this.opt.accuracy,r="string"==typeof n?n:n.value,o="string"==typeof n?[]:n.limiters,a="";switch(o.forEach((function(e){a+="|"+t.escapeStr(e)})),r){case"partially":default:return"()("+e+")";case"complementary":return"()([^"+(a="\\s"+(a||this.escapeStr("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~¡¿")))+"]*"+e+"[^"+a+"]*)";case"exactly":return"(^|\\s"+a+")("+e+")(?=$|\\s"+a+")"}}},{key:"getSeparatedKeywords",value:function(e){var t=this,n=[];return e.forEach((function(e){t.opt.separateWordSearch?e.split(" ").forEach((function(e){e.trim()&&-1===n.indexOf(e)&&n.push(e)})):e.trim()&&-1===n.indexOf(e)&&n.push(e)})),{keywords:n.sort((function(e,t){return t.length-e.length})),length:n.length}}},{key:"isNumeric",value:function(e){return Number(parseFloat(e))==e}},{key:"checkRanges",value:function(e){var t=this;if(!Array.isArray(e)||"[object Object]"!==Object.prototype.toString.call(e[0]))return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];var n=[],r=0;return e.sort((function(e,t){return e.start-t.start})).forEach((function(e){var o=t.callNoMatchOnInvalidRanges(e,r),a=o.start,i=o.end;o.valid&&(e.start=a,e.length=i-a,n.push(e),r=i)})),n}},{key:"callNoMatchOnInvalidRanges",value:function(e,t){var n=void 0,r=void 0,o=!1;return e&&void 0!==e.start?(r=(n=parseInt(e.start,10))+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&r-t>0&&r-n>0?o=!0:(this.log("Ignoring invalid or overlapping range: "+JSON.stringify(e)),this.opt.noMatch(e))):(this.log("Ignoring invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:n,end:r,valid:o}}},{key:"checkWhitespaceRanges",value:function(e,t,n){var r=void 0,o=!0,a=n.length,i=t-a,s=parseInt(e.start,10)-i;return(r=(s=s>a?a:s)+parseInt(e.length,10))>a&&(r=a,this.log("End range automatically set to the max value of "+a)),s<0||r-s<0||s>a||r>a?(o=!1,this.log("Invalid range: "+JSON.stringify(e)),this.opt.noMatch(e)):""===n.substring(s,r).replace(/\s+/g,"")&&(o=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:s,end:r,valid:o}}},{key:"getTextNodes",value:function(e){var t=this,n="",r=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,(function(e){r.push({start:n.length,end:(n+=e.textContent).length,node:e})}),(function(e){return t.matchesExclude(e.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}),(function(){e({value:n,nodes:r})}))}},{key:"matchesExclude",value:function(e){return o.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}},{key:"wrapRangeInTextNode",value:function(e,t,n){var r=this.opt.element?this.opt.element:"mark",o=e.splitText(t),a=o.splitText(n-t),i=document.createElement(r);return i.setAttribute("data-markjs","true"),this.opt.className&&i.setAttribute("class",this.opt.className),i.textContent=o.textContent,o.parentNode.replaceChild(i,o),a}},{key:"wrapRangeInMappedTextNode",value:function(e,t,n,r,o){var a=this;e.nodes.every((function(i,s){var l=e.nodes[s+1];if(void 0===l||l.start>t){if(!r(i.node))return!1;var c=t-i.start,u=(n>i.end?i.end:n)-i.start,d=e.value.substr(0,i.start),p=e.value.substr(u+i.start);if(i.node=a.wrapRangeInTextNode(i.node,c,u),e.value=d+p,e.nodes.forEach((function(t,n){n>=s&&(e.nodes[n].start>0&&n!==s&&(e.nodes[n].start-=u),e.nodes[n].end-=u)})),n-=u,o(i.node.previousSibling,i.start),!(n>i.end))return!1;t=i.end}return!0}))}},{key:"wrapMatches",value:function(e,t,n,r,o){var a=this,i=0===t?0:t+1;this.getTextNodes((function(t){t.nodes.forEach((function(t){t=t.node;for(var o=void 0;null!==(o=e.exec(t.textContent))&&""!==o[i];)if(n(o[i],t)){var s=o.index;if(0!==i)for(var l=1;l(()=>{"use strict";var __webpack_modules__=[,(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.UNSUPPORTED_FEATURES=t.TextRenderingMode=t.StreamType=t.RenderingIntentFlag=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FontType=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMode=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.arrayByteLength=u,t.arraysToBytes=function(e){const t=e.length;if(1===t&&e[0]instanceof Uint8Array)return e[0];let n=0;for(let r=0;rt}),e.promise=new Promise((function(n,r){e.resolve=function(e){t=!0,n(e)},e.reject=function(e){t=!0,r(e)}})),e},t.createValidAbsoluteUrl=function(e,t=null,n=null){if(!e)return null;try{if(n&&"string"==typeof e){if(n.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);t&&t.length>=2&&(e=`http://${e}`)}if(n.tryConvertEncoding)try{e=f(e)}catch(e){}}const r=t?new URL(e,t):new URL(e);if(function(e){if(!e)return!1;switch(e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(r))return r}catch(e){}return null},t.escapeString=function(e){return e.replace(/([()\\\n\r])/g,(e=>"\n"===e?"\\n":"\r"===e?"\\r":`\\${e}`))},t.getModificationDate=function(e=new Date){return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getVerbosityLevel=function(){return o},t.info=function(e){o>=r.INFOS&&console.log(`Info: ${e}`)},t.isArrayBuffer=function(e){return"object"==typeof e&&null!==e&&void 0!==e.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=c,t.stringToPDFString=function(e){if(e[0]>="ï"){let t;if("þ"===e[0]&&"ÿ"===e[1]?t="utf-16be":"ÿ"===e[0]&&"þ"===e[1]?t="utf-16le":"ï"===e[0]&&"»"===e[1]&&"¿"===e[2]&&(t="utf-8"),t)try{const n=new TextDecoder(t,{fatal:!0}),r=c(e);return n.decode(r)}catch(e){a(`stringToPDFString: "${e}".`)}}const t=[];for(let n=0,r=e.length;n>8&255),String.fromCharCode(255&r))}return t.join("")},t.stringToUTF8String=f,t.unreachable=i,t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=a,n(2),t.IDENTITY_MATRIX=[1,0,0,1,0,0],t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],t.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},t.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},t.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4},t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},t.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26},t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"},t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"},t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"},t.AnnotationReplyType={GROUP:"Group",REPLY:"R"},t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},t.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864},t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},t.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"},t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},t.PageActionEventType={O:"PageOpen",C:"PageClose"},t.StreamType={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"},t.FontType={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};const r={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=r,t.CMapCompressionType={NONE:0,BINARY:1,STREAM:2},t.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91},t.UNSUPPORTED_FEATURES={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"},t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let o=r.WARNINGS;function a(e){o>=r.WARNINGS&&console.log(`Warning: ${e}`)}function i(e){throw new Error(e)}function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!1}),n}const l=function(){function e(t,n){this.constructor===e&&i("Cannot initialize BaseException."),this.message=t,this.name=n}return e.prototype=new Error,e.constructor=e,e}();function c(e){"string"!=typeof e&&i("Invalid argument for stringToBytes");const t=e.length,n=new Uint8Array(t);for(let r=0;re.toString(16).padStart(2,"0")));class p{static makeHexColor(e,t,n){return`#${d[e]}${d[t]}${d[n]}`}static scaleMinMax(e,t){let n;e[0]?(e[0]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[3],t[3]*=e[3]):(n=t[0],t[0]=t[2],t[2]=n,n=t[1],t[1]=t[3],t[3]=n,e[1]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const n=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n]}static getAxialAlignedBoundingBox(e,t){const n=p.applyTransform(e,t),r=p.applyTransform(e.slice(2,4),t),o=p.applyTransform([e[0],e[3]],t),a=p.applyTransform([e[2],e[1]],t);return[Math.min(n[0],r[0],o[0],a[0]),Math.min(n[1],r[1],o[1],a[1]),Math.max(n[0],r[0],o[0],a[0]),Math.max(n[1],r[1],o[1],a[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static apply3dTransform(e,t){return[e[0]*t[0]+e[1]*t[1]+e[2]*t[2],e[3]*t[0]+e[4]*t[1]+e[5]*t[2],e[6]*t[0]+e[7]*t[1]+e[8]*t[2]]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],o=e[2]*t[0]+e[3]*t[2],a=e[2]*t[1]+e[3]*t[3],i=(n+a)/2,s=Math.sqrt((n+a)**2-4*(n*a-o*r))/2,l=i+s||1,c=i-s||1;return[Math.sqrt(l),Math.sqrt(c)]}static normalizeRect(e){const t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){const n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),r=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(n>r)return null;const o=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),a=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return o>a?null:[n,o,r,a]}static bezierBoundingBox(e,t,n,r,o,a,i,s){const l=[],c=[[],[]];let u,d,p,h,f,m,g,b;for(let c=0;c<2;++c)if(0===c?(d=6*e-12*n+6*o,u=-3*e+9*n-9*o+3*i,p=3*n-3*e):(d=6*t-12*r+6*a,u=-3*t+9*r-9*a+3*s,p=3*r-3*t),Math.abs(u)<1e-12){if(Math.abs(d)<1e-12)continue;h=-p/d,0{n(3)},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isNodeJS=void 0;const n=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=n},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.build=exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=void 0;var _util=__w_pdfjs_require__(1),_display_utils=__w_pdfjs_require__(5),_font_loader=__w_pdfjs_require__(7),_annotation_storage=__w_pdfjs_require__(8),_canvas=__w_pdfjs_require__(10),_worker_options=__w_pdfjs_require__(13),_is_node=__w_pdfjs_require__(3),_message_handler=__w_pdfjs_require__(14),_metadata=__w_pdfjs_require__(15),_optional_content_config=__w_pdfjs_require__(16),_transport_stream=__w_pdfjs_require__(17),_xfa_text=__w_pdfjs_require__(18);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100;let DefaultCanvasFactory=_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;let DefaultCMapReaderFactory=_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;let DefaultStandardFontDataFactory=_display_utils.DOMStandardFontDataFactory,createPDFNetworkStream;if(exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory,_is_node.isNodeJS){const{NodeCanvasFactory:e,NodeCMapReaderFactory:t,NodeStandardFontDataFactory:n}=__w_pdfjs_require__(19);exports.DefaultCanvasFactory=DefaultCanvasFactory=e,exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory=t,exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory=n}function setPDFNetworkStreamFactory(e){createPDFNetworkStream=e}function getDocument(e){const t=new PDFDocumentLoadingTask;let n;if("string"==typeof e||e instanceof URL)n={url:e};else if((0,_util.isArrayBuffer)(e))n={data:e};else if(e instanceof PDFDataRangeTransport)n={range:e};else{if("object"!=typeof e)throw new Error("Invalid parameter in getDocument, need either string, URL, Uint8Array, or parameter object.");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");n=e}const r=Object.create(null);let o=null,a=null;for(const e in n){const t=n[e];switch(e){case"url":if("undefined"!=typeof window)try{r[e]=new URL(t,window.location).href;continue}catch(e){(0,_util.warn)(`Cannot create valid URL: "${e}".`)}else if("string"==typeof t||t instanceof URL){r[e]=t.toString();continue}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");case"range":o=t;continue;case"worker":a=t;continue;case"data":if(_is_node.isNodeJS&&"undefined"!=typeof Buffer&&t instanceof Buffer)r[e]=new Uint8Array(t);else{if(t instanceof Uint8Array)break;if("string"==typeof t)r[e]=(0,_util.stringToBytes)(t);else if("object"!=typeof t||null===t||isNaN(t.length)){if(!(0,_util.isArrayBuffer)(t))throw new Error("Invalid PDF binary data: either typed array, string, or array-like object is expected in the data property.");r[e]=new Uint8Array(t)}else r[e]=new Uint8Array(t)}continue}r[e]=t}if(r.CMapReaderFactory=r.CMapReaderFactory||DefaultCMapReaderFactory,r.StandardFontDataFactory=r.StandardFontDataFactory||DefaultStandardFontDataFactory,r.ignoreErrors=!0!==r.stopAtErrors,r.fontExtraProperties=!0===r.fontExtraProperties,r.pdfBug=!0===r.pdfBug,r.enableXfa=!0===r.enableXfa,(!Number.isInteger(r.rangeChunkSize)||r.rangeChunkSize<1)&&(r.rangeChunkSize=DEFAULT_RANGE_CHUNK_SIZE),("string"!=typeof r.docBaseUrl||(0,_display_utils.isDataScheme)(r.docBaseUrl))&&(r.docBaseUrl=null),(!Number.isInteger(r.maxImageSize)||r.maxImageSize<-1)&&(r.maxImageSize=-1),"string"!=typeof r.cMapUrl&&(r.cMapUrl=null),"string"!=typeof r.standardFontDataUrl&&(r.standardFontDataUrl=null),"boolean"!=typeof r.useWorkerFetch&&(r.useWorkerFetch=r.CMapReaderFactory===_display_utils.DOMCMapReaderFactory&&r.StandardFontDataFactory===_display_utils.DOMStandardFontDataFactory),"boolean"!=typeof r.isEvalSupported&&(r.isEvalSupported=!0),"boolean"!=typeof r.disableFontFace&&(r.disableFontFace=_is_node.isNodeJS),"boolean"!=typeof r.useSystemFonts&&(r.useSystemFonts=!_is_node.isNodeJS&&!r.disableFontFace),"object"==typeof r.ownerDocument&&null!==r.ownerDocument||(r.ownerDocument=globalThis.document),"boolean"!=typeof r.disableRange&&(r.disableRange=!1),"boolean"!=typeof r.disableStream&&(r.disableStream=!1),"boolean"!=typeof r.disableAutoFetch&&(r.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(r.verbosity),!a){const e={verbosity:r.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};a=e.port?PDFWorker.fromPort(e):new PDFWorker(e),t._worker=a}const i=t.docId;return a.promise.then((function(){if(t.destroyed)throw new Error("Loading aborted");const e=_fetchDocument(a,r,o,i),n=new Promise((function(e){let t;o?t=new _transport_stream.PDFDataTransportStream({length:r.length,initialData:r.initialData,progressiveDone:r.progressiveDone,contentDispositionFilename:r.contentDispositionFilename,disableRange:r.disableRange,disableStream:r.disableStream},o):r.data||(t=createPDFNetworkStream({url:r.url,length:r.length,httpHeaders:r.httpHeaders,withCredentials:r.withCredentials,rangeChunkSize:r.rangeChunkSize,disableRange:r.disableRange,disableStream:r.disableStream})),e(t)}));return Promise.all([e,n]).then((function([e,n]){if(t.destroyed)throw new Error("Loading aborted");const o=new _message_handler.MessageHandler(i,e,a.port),s=new WorkerTransport(o,t,n,r);t._transport=s,o.send("Ready",null)}))})).catch(t._capability.reject),t}async function _fetchDocument(e,t,n,r){if(e.destroyed)throw new Error("Worker was destroyed");n&&(t.length=n.length,t.initialData=n.initialData,t.progressiveDone=n.progressiveDone,t.contentDispositionFilename=n.contentDispositionFilename);const o=await e.messageHandler.sendWithPromise("GetDocRequest",{docId:r,apiVersion:"2.14.305",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,docBaseUrl:t.docBaseUrl,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported,fontExtraProperties:t.fontExtraProperties,enableXfa:t.enableXfa,useSystemFonts:t.useSystemFonts,cMapUrl:t.useWorkerFetch?t.cMapUrl:null,standardFontDataUrl:t.useWorkerFetch?t.standardFontDataUrl:null});if(e.destroyed)throw new Error("Worker was destroyed");return o}class PDFDocumentLoadingTask{static#e=0;constructor(){this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d"+PDFDocumentLoadingTask.#e++,this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0,await(this._transport?.destroy()),this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(e,t,n=!1,r=null){this.length=e,this.initialData=t,this.progressiveDone=n,this.contentDispositionFilename=r,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,t){for(const n of this._rangeListeners)n(e,t)}onDataProgress(e,t){this._readyCapability.promise.then((()=>{for(const n of this._progressListeners)n(e,t)}))}onDataProgressiveRead(e){this._readyCapability.promise.then((()=>{for(const t of this._progressiveReadListeners)t(e)}))}onDataProgressiveDone(){this._readyCapability.promise.then((()=>{for(const e of this._progressiveDoneListeners)e()}))}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(e,t){this._pdfInfo=e,this._transport=t,Object.defineProperty(this,"fingerprint",{get(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.fingerprint`, please use `PDFDocumentProxy.fingerprints` instead."),this.fingerprints[0]}}),Object.defineProperty(this,"getStats",{value:async()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getStats`, please use the `PDFDocumentProxy.stats`-getter instead."),this.stats||{streamTypes:{},fontTypes:{}})})}get annotationStorage(){return this._transport.annotationStorage}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get stats(){return this._transport.stats}get isPureXfa(){return!!this._transport._htmlForXfa}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJavaScript(){return this._transport.getJavaScript()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(e=!1){return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}saveDocument(){return this._transport.annotationStorage.size<=0&&(0,_display_utils.deprecated)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."),this._transport.saveDocument()}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{constructor(e,t,n,r,o=!1){this._pageIndex=e,this._pageInfo=t,this._ownerDocument=r,this._transport=n,this._stats=o?new _display_utils.StatTimer:null,this._pdfBug=o,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this._bitmaps=new Set,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this._annotationPromises=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:e,rotation:t=this.rotate,offsetX:n=0,offsetY:r=0,dontFlip:o=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:t,offsetX:n,offsetY:r,dontFlip:o})}getAnnotations({intent:e="display"}={}){const t=this._transport.getRenderingIntent(e);let n=this._annotationPromises.get(t.cacheKey);return n||(n=this._transport.getAnnotations(this._pageIndex,t.renderingIntent),this._annotationPromises.set(t.cacheKey,n),n=n.then((e=>{for(const t of e)void 0!==t.titleObj&&Object.defineProperty(t,"title",{get:()=>((0,_display_utils.deprecated)("`title`-property on annotation, please use `titleObj` instead."),t.titleObj.str)}),void 0!==t.contentsObj&&Object.defineProperty(t,"contents",{get:()=>((0,_display_utils.deprecated)("`contents`-property on annotation, please use `contentsObj` instead."),t.contentsObj.str)});return e}))),n}getJSActions(){return this._jsActionsPromise||=this._transport.getPageJSActions(this._pageIndex)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:e,viewport:t,intent:n="display",annotationMode:r=_util.AnnotationMode.ENABLE,transform:o=null,imageLayer:a=null,canvasFactory:i=null,background:s=null,optionalContentConfigPromise:l=null,annotationCanvasMap:c=null,pageColors:u=null}){void 0!==arguments[0]?.renderInteractiveForms&&((0,_display_utils.deprecated)("render no longer accepts the `renderInteractiveForms`-option, please use the `annotationMode`-option instead."),!0===arguments[0].renderInteractiveForms&&r===_util.AnnotationMode.ENABLE&&(r=_util.AnnotationMode.ENABLE_FORMS)),void 0!==arguments[0]?.includeAnnotationStorage&&((0,_display_utils.deprecated)("render no longer accepts the `includeAnnotationStorage`-option, please use the `annotationMode`-option instead."),!0===arguments[0].includeAnnotationStorage&&r===_util.AnnotationMode.ENABLE&&(r=_util.AnnotationMode.ENABLE_STORAGE)),this._stats&&this._stats.time("Overall");const d=this._transport.getRenderingIntent(n,r);this.pendingCleanup=!1,l||(l=this._transport.getOptionalContentConfig());let p=this._intentStates.get(d.cacheKey);p||(p=Object.create(null),this._intentStates.set(d.cacheKey,p)),p.streamReaderCancelTimeout&&(clearTimeout(p.streamReaderCancelTimeout),p.streamReaderCancelTimeout=null);const h=i||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),f=!!(d.renderingIntent&_util.RenderingIntentFlag.PRINT);p.displayReadyCapability||(p.displayReadyCapability=(0,_util.createPromiseCapability)(),p.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(d));const m=e=>{p.renderTasks.delete(g),(this.cleanupAfterRender||f)&&(this.pendingCleanup=!0),this._tryCleanup(),e?(g.capability.reject(e),this._abortOperatorList({intentState:p,reason:e instanceof Error?e:new Error(e)})):g.capability.resolve(),this._stats&&(this._stats.timeEnd("Rendering"),this._stats.timeEnd("Overall"))},g=new InternalRenderTask({callback:m,params:{canvasContext:e,viewport:t,transform:o,imageLayer:a,background:s},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:c,operatorList:p.operatorList,pageIndex:this._pageIndex,canvasFactory:h,useRequestAnimationFrame:!f,pdfBug:this._pdfBug,pageColors:u});(p.renderTasks||=new Set).add(g);const b=g.task;return Promise.all([p.displayReadyCapability.promise,l]).then((([e,t])=>{this.pendingCleanup?m():(this._stats&&this._stats.time("Rendering"),g.initializeGraphics({transparency:e,optionalContentConfig:t}),g.operatorListChanged())})).catch(m),b}getOperatorList({intent:e="display",annotationMode:t=_util.AnnotationMode.ENABLE}={}){const n=this._transport.getRenderingIntent(e,t,!0);let r,o=this._intentStates.get(n.cacheKey);return o||(o=Object.create(null),this._intentStates.set(n.cacheKey,o)),o.opListReadCapability||(r=Object.create(null),r.operatorListChanged=function(){o.operatorList.lastChunk&&(o.opListReadCapability.resolve(o.operatorList),o.renderTasks.delete(r))},o.opListReadCapability=(0,_util.createPromiseCapability)(),(o.renderTasks||=new Set).add(r),o.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(n)),o.opListReadCapability.promise}streamTextContent({disableCombineTextItems:e=!1,includeMarkedContent:t=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,combineTextItems:!0!==e,includeMarkedContent:!0===t},{highWaterMark:100,size:e=>e.items.length})}getTextContent(e={}){if(this._transport._htmlForXfa)return this.getXfa().then((e=>_xfa_text.XfaText.textContent(e)));const t=this.streamTextContent(e);return new Promise((function(e,n){const r=t.getReader(),o={items:[],styles:Object.create(null)};!function t(){r.read().then((function({value:n,done:r}){r?e(o):(Object.assign(o.styles,n.styles),o.items.push(...n.items),t())}),n)}()}))}getStructTree(){return this._structTreePromise||=this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const e=[];for(const t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:new Error("Page was destroyed."),force:!0}),!t.opListReadCapability)for(const n of t.renderTasks)e.push(n.completed),n.cancel();this.objs.clear();for(const e of this._bitmaps)e.close();return this._bitmaps.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,this.pendingCleanup=!1,Promise.all(e)}cleanup(e=!1){return this.pendingCleanup=!0,this._tryCleanup(e)}_tryCleanup(e=!1){if(!this.pendingCleanup)return!1;for(const{renderTasks:e,operatorList:t}of this._intentStates.values())if(e.size>0||!t.lastChunk)return!1;this._intentStates.clear(),this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,e&&this._stats&&(this._stats=new _display_utils.StatTimer);for(const e of this._bitmaps)e.close();return this._bitmaps.clear(),this.pendingCleanup=!1,!0}_startRenderPage(e,t){const n=this._intentStates.get(t);n&&(this._stats&&this._stats.timeEnd("Page Request"),n.displayReadyCapability&&n.displayReadyCapability.resolve(e))}_renderPageChunk(e,t){for(let n=0,r=e.length;n{n.read().then((({value:e,done:t})=>{t?r.streamReader=null:this._transport.destroyed||(this._renderPageChunk(e,r),o())}),(e=>{if(r.streamReader=null,!this._transport.destroyed){if(r.operatorList){r.operatorList.lastChunk=!0;for(const e of r.renderTasks)e.operatorListChanged();this._tryCleanup()}if(r.displayReadyCapability)r.displayReadyCapability.reject(e);else{if(!r.opListReadCapability)throw e;r.opListReadCapability.reject(e)}}}))};o()}_abortOperatorList({intentState:e,reason:t,force:n=!1}){if(e.streamReader){if(!n){if(e.renderTasks.size>0)return;if(t instanceof _display_utils.RenderingCancelledException)return void(e.streamReaderCancelTimeout=setTimeout((()=>{this._abortOperatorList({intentState:e,reason:t,force:!0}),e.streamReaderCancelTimeout=null}),RENDERING_CANCELLED_TIMEOUT))}if(e.streamReader.cancel(new _util.AbortException(t.message)).catch((()=>{})),e.streamReader=null,!this._transport.destroyed){for(const[t,n]of this._intentStates)if(n===e){this._intentStates.delete(t);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{constructor(){this._listeners=[],this._deferred=Promise.resolve()}postMessage(e,t){const n={data:structuredClone(e,t)};this._deferred.then((()=>{for(const e of this._listeners)e.call(this,n)}))}addEventListener(e,t){this._listeners.push(t)}removeEventListener(e,t){const n=this._listeners.indexOf(t);this._listeners.splice(n,1)}terminate(){this._listeners.length=0}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_is_node.isNodeJS)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"==typeof document){const e=document?.currentScript?.src;e&&(PDFWorkerUtil.fallbackWorkerSrc=e.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(e,t){let n;try{if(n=new URL(e),!n.origin||"null"===n.origin)return!1}catch(e){return!1}const r=new URL(t,n);return n.origin===r.origin},PDFWorkerUtil.createCDNWrapper=function(e){const t=`importScripts("${e}");`;return URL.createObjectURL(new Blob([t]))};class PDFWorker{static#t=new WeakMap;constructor({name:e=null,port:t=null,verbosity:n=(0,_util.getVerbosityLevel)()}={}){if(t&&PDFWorker.#t.has(t))throw new Error("Cannot use more than one PDFWorker per port.");if(this.name=e,this.destroyed=!1,this.verbosity=n,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,t)return PDFWorker.#t.set(t,this),void this._initializeFromPort(t);this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve()}_initialize(){if("undefined"!=typeof Worker&&!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){let e=PDFWorker.workerSrc;try{PDFWorkerUtil.isSameOrigin(window.location.href,e)||(e=PDFWorkerUtil.createCDNWrapper(new URL(e,window.location).href));const t=new Worker(e),n=new _message_handler.MessageHandler("main","worker",t),r=()=>{t.removeEventListener("error",o),n.destroy(),t.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},o=()=>{this._webWorker||r()};t.addEventListener("error",o),n.on("test",(e=>{t.removeEventListener("error",o),this.destroyed?r():e?(this._messageHandler=n,this._port=t,this._webWorker=t,this._readyCapability.resolve(),n.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),n.destroy(),t.terminate())})),n.on("ready",(e=>{if(t.removeEventListener("error",o),this.destroyed)r();else try{a()}catch(e){this._setupFakeWorker()}}));const a=()=>{const e=new Uint8Array;n.send("test",e,[e.buffer])};return void a()}catch(e){(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then((e=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const t=new LoopbackPort;this._port=t;const n="fake"+PDFWorkerUtil.fakeWorkerId++,r=new _message_handler.MessageHandler(n+"_worker",n,t);e.setup(r,t);const o=new _message_handler.MessageHandler(n,n+"_worker",t);this._messageHandler=o,this._readyCapability.resolve(),o.send("configure",{verbosity:this.verbosity})})).catch((e=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${e.message}".`))}))}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),PDFWorker.#t.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(e){if(!e?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");return this.#t.has(e.port)?this.#t.get(e.port):new PDFWorker(e)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch(e){return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_is_node.isNodeJS){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}exports.PDFWorker=PDFWorker,PDFWorker.getWorkerSrc=function(){return(0,_display_utils.deprecated)("`PDFWorker.getWorkerSrc()`, please use `PDFWorker.workerSrc` instead."),this.workerSrc};class WorkerTransport{#n=null;#r=new Map;#o=new Map;#a=null;constructor(e,t,n,r){this.messageHandler=e,this.loadingTask=t,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:t.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:r.ownerDocument,styleElement:r.styleElement}),this._params=r,r.useWorkerFetch||(this.CMapReaderFactory=new r.CMapReaderFactory({baseUrl:r.cMapUrl,isCompressed:r.cMapPacked}),this.StandardFontDataFactory=new r.StandardFontDataFactory({baseUrl:r.standardFontDataUrl})),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}get stats(){return this.#n}getRenderingIntent(e,t=_util.AnnotationMode.ENABLE,n=!1){let r=_util.RenderingIntentFlag.DISPLAY,o="";switch(e){case"any":r=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":r=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${e}`)}switch(t){case _util.AnnotationMode.DISABLE:r+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:r+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:r+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,o=this.annotationStorage.hash;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${t}`)}return n&&(r+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:r,cacheKey:`${r}_${o}`}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));const e=[];for(const t of this.#r.values())e.push(t._destroy());this.#r.clear(),this.#o.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const t=this.messageHandler.sendWithPromise("Terminate",null);return e.push(t),Promise.all(e).then((()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#a=null,this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null,this._networkStream&&this._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:t}=this;e.on("GetReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=e=>{this._lastProgress={loaded:e.loaded,total:e.total}},t.onPull=()=>{this._fullReader.read().then((function({value:e,done:n}){n?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{this._fullReader.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}})),e.on("ReaderHeadersReady",(e=>{const n=(0,_util.createPromiseCapability)(),r=this._fullReader;return r.headersReady.then((()=>{r.isStreamingSupported&&r.isRangeSupported||(this._lastProgress&&t.onProgress?.(this._lastProgress),r.onProgress=e=>{t.onProgress?.({loaded:e.loaded,total:e.total})}),n.resolve({isStreamingSupported:r.isStreamingSupported,isRangeSupported:r.isRangeSupported,contentLength:r.contentLength})}),n.reject),n.promise})),e.on("GetRangeReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const n=this._networkStream.getRangeReader(e.begin,e.end);n?(t.onPull=()=>{n.read().then((function({value:e,done:n}){n?t.close():((0,_util.assert)((0,_util.isArrayBuffer)(e),"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{n.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}):t.close()})),e.on("GetDoc",(({pdfInfo:e})=>{this._numPages=e.numPages,this._htmlForXfa=e.htmlForXfa,delete e.htmlForXfa,t._capability.resolve(new PDFDocumentProxy(e,this))})),e.on("DocException",(function(e){let n;switch(e.name){case"PasswordException":n=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":n=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":n=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":n=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":n=new _util.UnknownErrorException(e.message,e.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}t._capability.reject(n)})),e.on("PasswordRequest",(e=>{if(this._passwordCapability=(0,_util.createPromiseCapability)(),t.onPassword){const n=e=>{e instanceof Error?this._passwordCapability.reject(e):this._passwordCapability.resolve({password:e})};try{t.onPassword(n,e.code)}catch(e){this._passwordCapability.reject(e)}}else this._passwordCapability.reject(new _util.PasswordException(e.message,e.code));return this._passwordCapability.promise})),e.on("DataLoaded",(e=>{t.onProgress?.({loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(e=>{this.destroyed||this.#r.get(e.pageIndex)._startRenderPage(e.transparency,e.cacheKey)})),e.on("commonobj",(([t,n,r])=>{if(!this.destroyed&&!this.commonObjs.has(t))switch(n){case"Font":const o=this._params;if("error"in r){const e=r.error;(0,_util.warn)(`Error during font loading: ${e}`),this.commonObjs.resolve(t,e);break}let a=null;o.pdfBug&&globalThis.FontInspector?.enabled&&(a={registerFont(e,t){globalThis.FontInspector.fontAdded(e,t)}});const i=new _font_loader.FontFaceObject(r,{isEvalSupported:o.isEvalSupported,disableFontFace:o.disableFontFace,ignoreErrors:o.ignoreErrors,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),fontRegistry:a});this.fontLoader.bind(i).catch((n=>e.sendWithPromise("FontFallback",{id:t}))).finally((()=>{!o.fontExtraProperties&&i.data&&(i.data=null),this.commonObjs.resolve(t,i)}));break;case"FontPath":case"Image":this.commonObjs.resolve(t,r);break;default:throw new Error(`Got unknown common object type ${n}`)}})),e.on("obj",(([e,t,n,r])=>{if(this.destroyed)return;const o=this.#r.get(t);if(!o.objs.has(e))switch(n){case"Image":o.objs.resolve(e,r);const t=8e6;if(r){let e;if(r.bitmap){const{bitmap:t,width:n,height:a}=r;e=n*a*4,o._bitmaps.add(t)}else e=r.data?.length||0;e>t&&(o.cleanupAfterRender=!0)}break;case"Pattern":o.objs.resolve(e,r);break;default:throw new Error(`Got unknown object type ${n}`)}})),e.on("DocProgress",(e=>{this.destroyed||t.onProgress?.({loaded:e.loaded,total:e.total})})),e.on("DocStats",(e=>{this.destroyed||(this.#n=Object.freeze({streamTypes:Object.freeze(e.streamTypes),fontTypes:Object.freeze(e.fontTypes)}))})),e.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),e.on("FetchBuiltInCMap",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.CMapReaderFactory?this.CMapReaderFactory.fetch(e):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.")))),e.on("FetchStandardFontData",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.StandardFontDataFactory?this.StandardFontDataFactory.fetch(e):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))))}_onUnsupportedFeature({featureId:e}){this.destroyed||this.loadingTask.onUnsupportedFeature?.(e)}getData(){return this.messageHandler.sendWithPromise("GetData",null)}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));const t=e-1,n=this.#o.get(t);if(n)return n;const r=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then((e=>{if(this.destroyed)throw new Error("Transport destroyed");const n=new PDFPageProxy(t,e,this,this._params.ownerDocument,this._params.pdfBug);return this.#r.set(t,n),n}));return this.#o.set(t,r),r}getPageIndex(e){return"object"!=typeof e||null===e||!Number.isInteger(e.num)||e.num<0||!Number.isInteger(e.gen)||e.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen})}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}saveDocument(){return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:this._fullReader?.filename??null}).finally((()=>{this.annotationStorage.resetModified()}))}getFieldObjects(){return this._getFieldObjectsPromise||=this.messageHandler.sendWithPromise("GetFieldObjects",null)}hasJSActions(){return this._hasJSActionsPromise||=this.messageHandler.sendWithPromise("HasJSActions",null)}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!=typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getJavaScript(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}getDocJSActions(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((e=>new _optional_content_config.OptionalContentConfig(e)))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){return this.#a||=this.messageHandler.sendWithPromise("GetMetadata",null).then((e=>({info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null})))}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(e=!1){if(await this.messageHandler.sendWithPromise("Cleanup",null),!this.destroyed){for(const e of this.#r.values())if(!e.cleanup())throw new Error(`startCleanup: Page ${e.pageNumber} is currently rendering.`);this.commonObjs.clear(),e||this.fontLoader.clear(),this.#a=null,this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null}}get loadingParams(){const e=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e.disableAutoFetch,enableXfa:e.enableXfa})}}class PDFObjects{#i=Object.create(null);#s(e){return this.#i[e]||(this.#i[e]={capability:(0,_util.createPromiseCapability)(),data:null})}get(e,t=null){if(t){const n=this.#s(e);return n.capability.promise.then((()=>t(n.data))),null}const n=this.#i[e];if(!n?.capability.settled)throw new Error(`Requesting object that isn't resolved yet ${e}.`);return n.data}has(e){return this.#i[e]?.capability.settled||!1}resolve(e,t=null){const n=this.#s(e);n.data=t,n.capability.resolve()}clear(){this.#i=Object.create(null)}}class RenderTask{constructor(e){this._internalRenderTask=e,this.onContinue=null}get promise(){return this._internalRenderTask.capability.promise}cancel(){this._internalRenderTask.cancel()}}exports.RenderTask=RenderTask;class InternalRenderTask{static#l=new WeakSet;constructor({callback:e,params:t,objs:n,commonObjs:r,annotationCanvasMap:o,operatorList:a,pageIndex:i,canvasFactory:s,useRequestAnimationFrame:l=!1,pdfBug:c=!1,pageColors:u=null}){this.callback=e,this.params=t,this.objs=n,this.commonObjs=r,this.annotationCanvasMap=o,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=i,this.canvasFactory=s,this._pdfBug=c,this.pageColors=u,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===l&&"undefined"!=typeof window,this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=t.canvasContext.canvas}get completed(){return this.capability.promise.catch((function(){}))}initializeGraphics({transparency:e=!1,optionalContentConfig:t}){if(this.cancelled)return;if(this._canvas){if(InternalRenderTask.#l.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");InternalRenderTask.#l.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:n,viewport:r,transform:o,imageLayer:a,background:i}=this.params;this.gfx=new _canvas.CanvasGraphics(n,this.commonObjs,this.objs,this.canvasFactory,a,t,this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:o,viewport:r,transparency:e,background:i}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}cancel(e=null){this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&InternalRenderTask.#l.delete(this._canvas),this.callback(e||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,"canvas"))}operatorListChanged(){this.graphicsReady?(this.stepper&&this.stepper.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound)}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame((()=>{this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&InternalRenderTask.#l.delete(this._canvas),this.callback())))}}const version="2.14.305";exports.version=version;const build="eaaa8b4ad";exports.build=build},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StatTimer=t.RenderingCancelledException=t.PixelsPerInch=t.PageViewport=t.PDFDateString=t.DOMStandardFontDataFactory=t.DOMSVGFactory=t.DOMCanvasFactory=t.DOMCMapReaderFactory=void 0,t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.getFilenameFromUrl=function(e){const t=e.indexOf("#"),n=e.indexOf("?"),r=Math.min(t>0?t:e.length,n>0?n:e.length);return e.substring(e.lastIndexOf("/",r)+1,r)},t.getPdfFilenameFromUrl=function(e,t="document.pdf"){if("string"!=typeof e)return t;if(h(e))return(0,o.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;const n=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,r=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e);let a=n.exec(r[1])||n.exec(r[2])||n.exec(r[3]);if(a&&(a=a[0],a.includes("%")))try{a=n.exec(decodeURIComponent(a))[0]}catch(e){}return a||t},t.getXfaPageViewport=function(e,{scale:t=1,rotation:n=0}){const{width:r,height:o}=e.attributes.style,a=[0,0,parseInt(r),parseInt(o)];return new d({viewBox:a,scale:t,rotation:n})},t.isDataScheme=h,t.isPdfFile=function(e){return"string"==typeof e&&/\.pdf$/i.test(e)},t.isValidFetchUrl=f,t.loadScript=function(e,t=!1){return new Promise(((n,r)=>{const o=document.createElement("script");o.src=e,o.onload=function(e){t&&o.remove(),n(e)},o.onerror=function(){r(new Error(`Cannot load script at: ${o.src}`))},(document.head||document.documentElement).appendChild(o)}))};var r=n(6),o=n(1);class a{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF}t.PixelsPerInch=a;class i extends r.BaseCanvasFactory{constructor({ownerDocument:e=globalThis.document}={}){super(),this._document=e}_createCanvas(e,t){const n=this._document.createElement("canvas");return n.width=e,n.height=t,n}}async function s(e,t=!1){if(f(e,document.baseURI)){const n=await fetch(e);if(!n.ok)throw new Error(n.statusText);return t?new Uint8Array(await n.arrayBuffer()):(0,o.stringToBytes)(await n.text())}return new Promise(((n,r)=>{const a=new XMLHttpRequest;a.open("GET",e,!0),t&&(a.responseType="arraybuffer"),a.onreadystatechange=()=>{if(a.readyState===XMLHttpRequest.DONE){if(200===a.status||0===a.status){let e;if(t&&a.response?e=new Uint8Array(a.response):!t&&a.responseText&&(e=(0,o.stringToBytes)(a.responseText)),e)return void n(e)}r(new Error(a.statusText))}},a.send(null)}))}t.DOMCanvasFactory=i;class l extends r.BaseCMapReaderFactory{_fetchData(e,t){return s(e,this.isCompressed).then((e=>({cMapData:e,compressionType:t})))}}t.DOMCMapReaderFactory=l;class c extends r.BaseStandardFontDataFactory{_fetchData(e){return s(e,!0)}}t.DOMStandardFontDataFactory=c;class u extends r.BaseSVGFactory{_createSVG(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}}t.DOMSVGFactory=u;class d{constructor({viewBox:e,scale:t,rotation:n,offsetX:r=0,offsetY:o=0,dontFlip:a=!1}){this.viewBox=e,this.scale=t,this.rotation=n,this.offsetX=r,this.offsetY=o;const i=(e[2]+e[0])/2,s=(e[3]+e[1])/2;let l,c,u,d,p,h,f,m;switch((n%=360)<0&&(n+=360),n){case 180:l=-1,c=0,u=0,d=1;break;case 90:l=0,c=1,u=1,d=0;break;case 270:l=0,c=-1,u=-1,d=0;break;case 0:l=1,c=0,u=0,d=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}a&&(u=-u,d=-d),0===l?(p=Math.abs(s-e[1])*t+r,h=Math.abs(i-e[0])*t+o,f=Math.abs(e[3]-e[1])*t,m=Math.abs(e[2]-e[0])*t):(p=Math.abs(i-e[0])*t+r,h=Math.abs(s-e[1])*t+o,f=Math.abs(e[2]-e[0])*t,m=Math.abs(e[3]-e[1])*t),this.transform=[l*t,c*t,u*t,d*t,p-l*t*i-u*t*s,h-c*t*i-d*t*s],this.width=f,this.height=m}clone({scale:e=this.scale,rotation:t=this.rotation,offsetX:n=this.offsetX,offsetY:r=this.offsetY,dontFlip:o=!1}={}){return new d({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:n,offsetY:r,dontFlip:o})}convertToViewportPoint(e,t){return o.Util.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){const t=o.Util.applyTransform([e[0],e[1]],this.transform),n=o.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]}convertToPdfPoint(e,t){return o.Util.applyInverseTransform([e,t],this.transform)}}t.PageViewport=d;class p extends o.BaseException{constructor(e,t){super(e,"RenderingCancelledException"),this.type=t}}function h(e){const t=e.length;let n=0;for(;nt&&(t=n.length)}for(const n of this.times){const r=n.end-n.start;e.push(`${n.name.padEnd(t)} ${r}ms\n`)}return e.join("")}},t.PDFDateString=class{static toDateObject(e){if(!e||"string"!=typeof e)return null;m||(m=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));const t=m.exec(e);if(!t)return null;const n=parseInt(t[1],10);let r=parseInt(t[2],10);r=r>=1&&r<=12?r-1:0;let o=parseInt(t[3],10);o=o>=1&&o<=31?o:1;let a=parseInt(t[4],10);a=a>=0&&a<=23?a:0;let i=parseInt(t[5],10);i=i>=0&&i<=59?i:0;let s=parseInt(t[6],10);s=s>=0&&s<=59?s:0;const l=t[7]||"Z";let c=parseInt(t[8],10);c=c>=0&&c<=23?c:0;let u=parseInt(t[9],10)||0;return u=u>=0&&u<=59?u:0,"-"===l?(a+=c,i+=u):"+"===l&&(a-=c,i-=u),new Date(Date.UTC(n,r,o,a,i,s))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStandardFontDataFactory=t.BaseSVGFactory=t.BaseCanvasFactory=t.BaseCMapReaderFactory=void 0;var r=n(1);class o{constructor(){this.constructor===o&&(0,r.unreachable)("Cannot initialize BaseCanvasFactory.")}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");const n=this._createCanvas(e,t);return{canvas:n,context:n.getContext("2d")}}reset(e,t,n){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||n<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=n}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,t){(0,r.unreachable)("Abstract method `_createCanvas` called.")}}t.BaseCanvasFactory=o;class a{constructor({baseUrl:e=null,isCompressed:t=!1}){this.constructor===a&&(0,r.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=e,this.isCompressed=t}async fetch({name:e}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!e)throw new Error("CMap name must be specified.");const t=this.baseUrl+e+(this.isCompressed?".bcmap":""),n=this.isCompressed?r.CMapCompressionType.BINARY:r.CMapCompressionType.NONE;return this._fetchData(t,n).catch((e=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${t}`)}))}_fetchData(e,t){(0,r.unreachable)("Abstract method `_fetchData` called.")}}t.BaseCMapReaderFactory=a;class i{constructor({baseUrl:e=null}){this.constructor===i&&(0,r.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=e}async fetch({filename:e}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!e)throw new Error("Font filename must be specified.");const t=`${this.baseUrl}${e}`;return this._fetchData(t).catch((e=>{throw new Error(`Unable to load font data at: ${t}`)}))}_fetchData(e){(0,r.unreachable)("Abstract method `_fetchData` called.")}}t.BaseStandardFontDataFactory=i;class s{constructor(){this.constructor===s&&(0,r.unreachable)("Cannot initialize BaseSVGFactory.")}create(e,t){if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");const n=this._createSVG("svg:svg");return n.setAttribute("version","1.1"),n.setAttribute("width",`${e}px`),n.setAttribute("height",`${t}px`),n.setAttribute("preserveAspectRatio","none"),n.setAttribute("viewBox",`0 0 ${e} ${t}`),n}createElement(e){if("string"!=typeof e)throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){(0,r.unreachable)("Abstract method `_createSVG` called.")}}t.BaseSVGFactory=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var r=n(1);class o{constructor({docId:e,onUnsupportedFeature:t,ownerDocument:n=globalThis.document,styleElement:a=null}){this.constructor===o&&(0,r.unreachable)("Cannot initialize BaseFontLoader."),this.docId=e,this._onUnsupportedFeature=t,this._document=n,this.nativeFontFaces=[],this.styleElement=null}addNativeFontFace(e){this.nativeFontFaces.push(e),this._document.fonts.add(e)}insertRule(e){let t=this.styleElement;t||(t=this.styleElement=this._document.createElement("style"),t.id=`PDFJS_FONT_STYLE_TAG_${this.docId}`,this._document.documentElement.getElementsByTagName("head")[0].appendChild(t));const n=t.sheet;n.insertRule(e,n.cssRules.length)}clear(){for(const e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async bind(e){if(e.attached||e.missingFile)return;if(e.attached=!0,this.isFontLoadingAPISupported){const t=e.createNativeFontFace();if(t){this.addNativeFontFace(t);try{await t.loaded}catch(n){throw this._onUnsupportedFeature({featureId:r.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,r.warn)(`Failed to load font '${t.family}': '${n}'.`),e.disableFontFace=!0,n}}return}const t=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;await new Promise((n=>{const r=this._queueLoadingCallback(n);this._prepareFontLoadEvent([t],[e],r)}))}}_queueLoadingCallback(e){(0,r.unreachable)("Abstract method `_queueLoadingCallback`.")}get isFontLoadingAPISupported(){const e=!!this._document?.fonts;return(0,r.shadow)(this,"isFontLoadingAPISupported",e)}get isSyncFontLoadingSupported(){(0,r.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}get _loadTestFont(){(0,r.unreachable)("Abstract method `_loadTestFont`.")}_prepareFontLoadEvent(e,t,n){(0,r.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}let a;t.FontLoader=a,t.FontLoader=a=class extends o{constructor(e){super(e),this.loadingContext={requests:[],nextRequestId:0},this.loadTestFontId=0}get isSyncFontLoadingSupported(){let e=!1;return("undefined"==typeof navigator||/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent)?.[1]>=14)&&(e=!0),(0,r.shadow)(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){const t=this.loadingContext,n={id:"pdfjs-font-loading-"+t.nextRequestId++,done:!1,complete:function(){for((0,r.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;t.requests.length>0&&t.requests[0].done;){const e=t.requests.shift();setTimeout(e.callback,0)}},callback:e};return t.requests.push(n),n}get _loadTestFont(){return(0,r.shadow)(this,"_loadTestFont",atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA=="))}_prepareFontLoadEvent(e,t,n){function o(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function a(e,t,n,r){return e.substring(0,t)+r+e.substring(t+n)}let i,s;const l=this._document.createElement("canvas");l.width=1,l.height=1;const c=l.getContext("2d");let u=0;const d=`lt${Date.now()}${this.loadTestFontId++}`;let p=this._loadTestFont;p=a(p,976,d.length,d);const h=1482184792;let f=o(p,16);for(i=0,s=d.length-3;i30)return(0,r.warn)("Load test font never loaded."),void n();c.font="30px "+t,c.fillText(".",0,20),c.getImageData(0,0,1,1).data[3]>0?n():setTimeout(e.bind(null,t,n))}(d,(()=>{b.remove(),n.complete()}))}},t.FontFaceObject=class{constructor(e,{isEvalSupported:t=!0,disableFontFace:n=!1,ignoreErrors:r=!1,onUnsupportedFeature:o,fontRegistry:a=null}){this.compiledGlyphs=Object.create(null);for(const t in e)this[t]=e[t];this.isEvalSupported=!1!==t,this.disableFontFace=!0===n,this.ignoreErrors=!0===r,this._onUnsupportedFeature=o,this.fontRegistry=a}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let e;if(this.cssFontInfo){const t={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(t.style=`oblique ${this.cssFontInfo.italicAngle}deg`),e=new FontFace(this.cssFontInfo.fontFamily,this.data,t)}else e=new FontFace(this.loadedName,this.data,{});return this.fontRegistry&&this.fontRegistry.registerFont(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const e=(0,r.bytesToString)(this.data),t=`url(data:${this.mimetype};base64,${btoa(e)});`;let n;if(this.cssFontInfo){let e=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(e+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),n=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${e}src:${t}}`}else n=`@font-face {font-family:"${this.loadedName}";src:${t}}`;return this.fontRegistry&&this.fontRegistry.registerFont(this,t),n}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];let n;try{n=e.get(this.loadedName+"_path_"+t)}catch(e){if(!this.ignoreErrors)throw e;return this._onUnsupportedFeature({featureId:r.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,r.warn)(`getPathGenerator - ignoring character: "${e}".`),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&r.FeatureTest.isEvalSupported){const e=[];for(const t of n){const n=void 0!==t.args?t.args.join(","):"";e.push("c.",t.cmd,"(",n,");\n")}return this.compiledGlyphs[t]=new Function("c","size",e.join(""))}return this.compiledGlyphs[t]=function(e,t){for(const r of n)"scale"===r.cmd&&(r.args=[t,-t]),e[r.cmd].apply(e,r.args)}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationStorage=void 0;var r=n(9),o=n(1);t.AnnotationStorage=class{constructor(){this._storage=new Map,this._modified=!1,this.onSetModified=null,this.onResetModified=null}getValue(e,t){const n=this._storage.get(e);return void 0===n?t:Object.assign(t,n)}getRawValue(e){return this._storage.get(e)}setValue(e,t){const n=this._storage.get(e);let r=!1;if(void 0!==n)for(const[e,o]of Object.entries(t))n[e]!==o&&(r=!0,n[e]=o);else r=!0,this._storage.set(e,t);r&&this._setModified()}getAll(){return this._storage.size>0?(0,o.objectFromMap)(this._storage):null}get size(){return this._storage.size}_setModified(){this._modified||(this._modified=!0,"function"==typeof this.onSetModified&&this.onSetModified())}resetModified(){this._modified&&(this._modified=!1,"function"==typeof this.onResetModified&&this.onResetModified())}get serializable(){return this._storage.size>0?this._storage:null}get hash(){const e=new r.MurmurHash3_64;for(const[t,n]of this._storage)e.update(`${t}:${JSON.stringify(n)}`);return e.hexdigest()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var r=n(1);const o=3285377520,a=4294901760,i=65535;t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:o,this.h2=e?4294967295&e:o}update(e){let t,n;if("string"==typeof e){t=new Uint8Array(2*e.length),n=0;for(let r=0,o=e.length;r>>8,t[n++]=255&o)}}else{if(!(0,r.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");t=e.slice(),n=t.byteLength}const o=n>>2,s=n-4*o,l=new Uint32Array(t.buffer,0,o);let c=0,u=0,d=this.h1,p=this.h2;const h=3432918353,f=461845907,m=11601,g=13715;for(let e=0;e>>17,c=c*f&a|c*g&i,d^=c,d=d<<13|d>>>19,d=5*d+3864292196):(u=l[e],u=u*h&a|u*m&i,u=u<<15|u>>>17,u=u*f&a|u*g&i,p^=u,p=p<<13|p>>>19,p=5*p+3864292196);switch(c=0,s){case 3:c^=t[4*o+2]<<16;case 2:c^=t[4*o+1]<<8;case 1:c^=t[4*o],c=c*h&a|c*m&i,c=c<<15|c>>>17,c=c*f&a|c*g&i,1&o?d^=c:p^=c}this.h1=d,this.h2=p}hexdigest(){let e=this.h1,t=this.h2;e^=t>>>1,e=3981806797*e&a|36045*e&i,t=4283543511*t&a|(2950163797*(t<<16|e>>>16)&a)>>>16,e^=t>>>1,e=444984403*e&a|60499*e&i,t=3301882366*t&a|(3120437893*(t<<16|e>>>16)&a)>>>16,e^=t>>>1;const n=(e>>>0).toString(16),r=(t>>>0).toString(16);return n.padStart(8,"0")+r.padStart(8,"0")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var r=n(1),o=n(11),a=n(12),i=n(3),s=n(5);const l=4096,c=16;function u(e){if(e._transformStack&&(e._transformStack=[]),!e.mozCurrentTransform){e._originalSave=e.save,e._originalRestore=e.restore,e._originalRotate=e.rotate,e._originalScale=e.scale,e._originalTranslate=e.translate,e._originalTransform=e.transform,e._originalSetTransform=e.setTransform,e._originalResetTransform=e.resetTransform,e._transformMatrix=e._transformMatrix||[1,0,0,1,0,0],e._transformStack=[];try{const t=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"lineWidth");e._setLineWidth=t.set,e._getLineWidth=t.get,Object.defineProperty(e,"lineWidth",{set:function(e){this._setLineWidth(1.000001*e)},get:function(){return this._getLineWidth()}})}catch(e){}Object.defineProperty(e,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(e,"mozCurrentTransformInverse",{get:function(){const[e,t,n,r,o,a]=this._transformMatrix,i=e*r-t*n,s=t*n-e*r;return[r/i,t/s,n/s,e/i,(r*o-n*a)/s,(t*o-e*a)/i]}}),e.save=function(){const e=this._transformMatrix;this._transformStack.push(e),this._transformMatrix=e.slice(0,6),this._originalSave()},e.restore=function(){0===this._transformStack.length&&(0,r.warn)("Tried to restore a ctx when the stack was already empty.");const e=this._transformStack.pop();e&&(this._transformMatrix=e,this._originalRestore())},e.translate=function(e,t){const n=this._transformMatrix;n[4]=n[0]*e+n[2]*t+n[4],n[5]=n[1]*e+n[3]*t+n[5],this._originalTranslate(e,t)},e.scale=function(e,t){const n=this._transformMatrix;n[0]*=e,n[1]*=e,n[2]*=t,n[3]*=t,this._originalScale(e,t)},e.transform=function(t,n,r,o,a,i){const s=this._transformMatrix;this._transformMatrix=[s[0]*t+s[2]*n,s[1]*t+s[3]*n,s[0]*r+s[2]*o,s[1]*r+s[3]*o,s[0]*a+s[2]*i+s[4],s[1]*a+s[3]*i+s[5]],e._originalTransform(t,n,r,o,a,i)},e.setTransform=function(t,n,r,o,a,i){this._transformMatrix=[t,n,r,o,a,i],e._originalSetTransform(t,n,r,o,a,i)},e.resetTransform=function(){this._transformMatrix=[1,0,0,1,0,0],e._originalResetTransform()},e.rotate=function(e){const t=Math.cos(e),n=Math.sin(e),r=this._transformMatrix;this._transformMatrix=[r[0]*t+r[2]*n,r[1]*t+r[3]*n,r[0]*-n+r[2]*t,r[1]*-n+r[3]*t,r[4],r[5]],this._originalRotate(e)}}}class d{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,t,n,r){let o;return void 0!==this.cache[e]?(o=this.cache[e],this.canvasFactory.reset(o,t,n),o.context.setTransform(1,0,0,1,0,0)):(o=this.canvasFactory.create(t,n),this.cache[e]=o),r&&u(o.context),o}delete(e){delete this.cache[e]}clear(){for(const e in this.cache){const t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}}function p(e,t,n,r,o,a,i,s,l,c){const[u,d,p,h,f,m]=e.mozCurrentTransform;if(0===d&&0===p){const g=i*u+f,b=Math.round(g),v=s*h+m,y=Math.round(v),_=(i+l)*u+f,k=Math.abs(Math.round(_)-b)||1,x=(s+c)*h+m,w=Math.abs(Math.round(x)-y)||1;return e.setTransform(Math.sign(u),0,0,Math.sign(h),b,y),e.drawImage(t,n,r,o,a,0,0,k,w),e.setTransform(u,d,p,h,f,m),[k,w]}if(0===u&&0===h){const g=s*p+f,b=Math.round(g),v=i*d+m,y=Math.round(v),_=(s+c)*p+f,k=Math.abs(Math.round(_)-b)||1,x=(i+l)*d+m,w=Math.abs(Math.round(x)-y)||1;return e.setTransform(0,Math.sign(d),Math.sign(p),0,b,y),e.drawImage(t,n,r,o,a,0,0,w,k),e.setTransform(u,d,p,h,f,m),[w,k]}return e.drawImage(t,n,r,o,a,i,s,l,c),[Math.hypot(u,d)*l,Math.hypot(p,h)*c]}class h{constructor(e,t){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=r.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=r.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps=null,this.startNewPathAndClipBox([0,0,e,t])}clone(){const e=Object.create(this);return e.clipBox=this.clipBox.slice(),e}setCurrentPoint(e,t){this.x=e,this.y=t}updatePathMinMax(e,t,n){[t,n]=r.Util.applyTransform([t,n],e),this.minX=Math.min(this.minX,t),this.minY=Math.min(this.minY,n),this.maxX=Math.max(this.maxX,t),this.maxY=Math.max(this.maxY,n)}updateRectMinMax(e,t){const n=r.Util.applyTransform(t,e),o=r.Util.applyTransform(t.slice(2),e);this.minX=Math.min(this.minX,n[0],o[0]),this.minY=Math.min(this.minY,n[1],o[1]),this.maxX=Math.max(this.maxX,n[0],o[0]),this.maxY=Math.max(this.maxY,n[1],o[1])}updateScalingPathMinMax(e,t){r.Util.scaleMinMax(e,t),this.minX=Math.min(this.minX,t[0]),this.maxX=Math.max(this.maxX,t[1]),this.minY=Math.min(this.minY,t[2]),this.maxY=Math.max(this.maxY,t[3])}updateCurvePathMinMax(e,t,n,o,a,i,s,l,c,u){const d=r.Util.bezierBoundingBox(t,n,o,a,i,s,l,c);if(u)return u[0]=Math.min(u[0],d[0],d[2]),u[1]=Math.max(u[1],d[0],d[2]),u[2]=Math.min(u[2],d[1],d[3]),void(u[3]=Math.max(u[3],d[1],d[3]));this.updateRectMinMax(e,d)}getPathBoundingBox(e=o.PathType.FILL,t=null){const n=[this.minX,this.minY,this.maxX,this.maxY];if(e===o.PathType.STROKE){t||(0,r.unreachable)("Stroke bounding box must include transform.");const e=r.Util.singularValueDecompose2dScale(t),o=e[0]*this.lineWidth/2,a=e[1]*this.lineWidth/2;n[0]-=o,n[1]-=a,n[2]+=o,n[3]+=a}return n}updateClipFromPath(){const e=r.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(e){this.clipBox=e,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(e=o.PathType.FILL,t=null){return r.Util.intersect(this.clipBox,this.getPathBoundingBox(e,t))}}function f(e,t,n=null){if("undefined"!=typeof ImageData&&t instanceof ImageData)return void e.putImageData(t,0,0);const o=t.height,a=t.width,i=o%c,s=(o-i)/c,l=0===i?s:s+1,u=e.createImageData(a,c);let d,p=0;const h=t.data,f=u.data;let m,g,b,v,y,_,k,x;if(n)switch(n.length){case 1:y=n[0],_=n[0],k=n[0],x=n[0];break;case 4:y=n[0],_=n[1],k=n[2],x=n[3]}if(t.kind===r.ImageKind.GRAYSCALE_1BPP){const t=h.byteLength,n=new Uint32Array(f.buffer,0,f.byteLength>>2),o=n.length,v=a+7>>3;let y=4294967295,_=r.FeatureTest.isLittleEndian?4278190080:255;for(x&&255===x[0]&&0===x[255]&&([y,_]=[_,y]),m=0;mv?a:8*e-7,i=-8&o;let s=0,l=0;for(;r>=1}for(;d=s&&(b=i,v=a*b),d=0,g=v;g--;)f[d++]=h[p++],f[d++]=h[p++],f[d++]=h[p++],f[d++]=255;if(t)for(let e=0;e>8,e[a-2]=e[a-2]*o+n*i>>8,e[a-1]=e[a-1]*o+r*i>>8}}}function y(e,t,n){const r=e.length;for(let o=3;o>8]>>8:t[o]*r>>16}}function k(e,t){const n=r.Util.singularValueDecompose2dScale(e);n[0]=Math.fround(n[0]),n[1]=Math.fround(n[1]);const o=Math.fround((globalThis.devicePixelRatio||1)*s.PixelsPerInch.PDF_TO_CSS_UNITS);return void 0!==t?t:n[0]<=o||n[1]<=o}const x=["butt","round","square"],w=["miter","round","bevel"],S={},A={};class C{constructor(e,t,n,r,o,a,i,s){this.ctx=e,this.current=new h(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=n,this.canvasFactory=r,this.imageLayer=o,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=a,this.cachedCanvases=new d(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=i,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.backgroundColor=s?.background||null,this.foregroundColor=s?.foreground||null,e&&u(e),this._cachedScaleForStroking=null,this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(e,t=null){return"string"==typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}beginDrawing({transform:e,viewport:t,transparency:n=!1,background:r=null}){const o=this.ctx.canvas.width,a=this.ctx.canvas.height,i=r||"#ffffff";if(this.ctx.save(),this.foregroundColor&&this.backgroundColor){this.ctx.fillStyle=this.foregroundColor;const e=this.foregroundColor=this.ctx.fillStyle;this.ctx.fillStyle=this.backgroundColor;const t=this.backgroundColor=this.ctx.fillStyle;let n=!0,r=i;if(this.ctx.fillStyle=i,r=this.ctx.fillStyle,n="string"==typeof r&&/^#[0-9A-Fa-f]{6}$/.test(r),"#000000"===e&&"#ffffff"===t||e===t||!n)this.foregroundColor=this.backgroundColor=null;else{const n=parseInt(r.slice(1),16),o=(n&&16711680)>>16,a=(n&&65280)>>8,i=n&&255,s=e=>(e/=255)<=.03928?e/12.92:((e+.055)/1.055)**2.4,l=Math.round(.2126*s(o)+.7152*s(a)+.0722*s(i));this.selectColor=(n,r,o)=>{const a=.2126*s(n)+.7152*s(r)+.0722*s(o);return Math.round(a)===l?t:e}}}if(this.ctx.fillStyle=this.backgroundColor||i,this.ctx.fillRect(0,0,o,a),this.ctx.restore(),n){const e=this.cachedCanvases.getCanvas("transparent",o,a,!0);this.compositeCtx=this.ctx,this.transparentCanvas=e.canvas,this.ctx=e.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),b(this.ctx,this.foregroundColor),e&&(this.ctx.transform.apply(this.ctx,e),this.outputScaleX=e[0],this.outputScaleY=e[0]),this.ctx.transform.apply(this.ctx,t.transform),this.viewportScale=t.scale,this.baseTransform=this.ctx.mozCurrentTransform.slice(),this.imageLayer&&this.imageLayer.beginLayout()}executeOperatorList(e,t,n,o){const a=e.argsArray,i=e.fnArray;let s=t||0;const l=a.length;if(l===s)return s;const c=l-s>10&&"function"==typeof n,u=c?Date.now()+15:0;let d=0;const p=this.commonObjs,h=this.objs;let f;for(;;){if(void 0!==o&&s===o.nextBreakPoint)return o.breakIt(s,n),s;if(f=i[s],f!==r.OPS.dependency)this[f].apply(this,a[s]);else for(const e of a[s]){const t=e.startsWith("g_")?p:h;if(!t.has(e))return t.get(e,n),s}if(s++,s===l)return s;if(c&&++d>10){if(Date.now()>u)return n(),s;d=0}}}endDrawing(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const e of this._cachedBitmapsMap.values()){for(const t of e.values())"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement&&(t.width=t.height=0);e.clear()}this._cachedBitmapsMap.clear(),this.imageLayer&&this.imageLayer.endLayout()}_scaleImage(e,t){const n=e.width,r=e.height;let o,a,i=Math.max(Math.hypot(t[0],t[1]),1),s=Math.max(Math.hypot(t[2],t[3]),1),l=n,c=r,u="prescale1";for(;i>2&&l>1||s>2&&c>1;){let t=l,n=c;i>2&&l>1&&(t=Math.ceil(l/2),i/=l/t),s>2&&c>1&&(n=Math.ceil(c/2),s/=c/n),o=this.cachedCanvases.getCanvas(u,t,n,!1),a=o.context,a.clearRect(0,0,t,n),a.drawImage(e,0,0,l,c,0,0,t,n),e=o.canvas,l=t,c=n,u="prescale1"===u?"prescale2":"prescale1"}return{img:e,paintWidth:l,paintHeight:c}}_createMaskCanvas(e){const t=this.ctx,{width:n,height:a}=e,i=this.current.fillColor,s=this.current.patternFill,l=t.mozCurrentTransform;let c,u,d,h;if((e.bitmap||e.data)&&e.count>1){const t=e.bitmap||e.data.buffer,n=l.slice(0,4);u=JSON.stringify(s?n:[n,i]),c=this._cachedBitmapsMap.get(t),c||(c=new Map,this._cachedBitmapsMap.set(t,c));const r=c.get(u);if(r&&!s)return{canvas:r,offsetX:Math.round(Math.min(l[0],l[2])+l[4]),offsetY:Math.round(Math.min(l[1],l[3])+l[5])};d=r}d||(h=this.cachedCanvases.getCanvas("maskCanvas",n,a,!1),m(h.context,e));let f=r.Util.transform(l,[1/n,0,0,-1/a,0,0]);f=r.Util.transform(f,[1,0,0,1,0,-a]);const g=r.Util.applyTransform([0,0],f),b=r.Util.applyTransform([n,a],f),v=r.Util.normalizeRect([g[0],g[1],b[0],b[1]]),y=Math.round(v[2]-v[0])||1,_=Math.round(v[3]-v[1])||1,x=this.cachedCanvases.getCanvas("fillCanvas",y,_,!0),w=x.context,S=Math.min(g[0],b[0]),A=Math.min(g[1],b[1]);w.translate(-S,-A),w.transform.apply(w,f),d||(d=this._scaleImage(h.canvas,w.mozCurrentTransformInverse),d=d.img,c&&s&&c.set(u,d)),w.imageSmoothingEnabled=k(w.mozCurrentTransform,e.interpolate),p(w,d,0,0,d.width,d.height,0,0,n,a),w.globalCompositeOperation="source-in";const C=r.Util.transform(w.mozCurrentTransformInverse,[1,0,0,1,-S,-A]);return w.fillStyle=s?i.getPattern(t,this,C,o.PathType.FILL):i,w.fillRect(0,0,n,a),c&&!s&&(this.cachedCanvases.delete("fillCanvas"),c.set(u,x.canvas)),{canvas:x.canvas,offsetX:Math.round(S),offsetY:Math.round(A)}}setLineWidth(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking=null),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(e){this.ctx.lineCap=x[e]}setLineJoin(e){this.ctx.lineJoin=w[e]}setMiterLimit(e){this.ctx.miterLimit=e}setDash(e,t){const n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(e),n.lineDashOffset=t)}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(let t=0,n=e.length;t{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(e,n){t.translate(e,n),this.__originalTranslate(e,n)},e.scale=function(e,n){t.scale(e,n),this.__originalScale(e,n)},e.transform=function(e,n,r,o,a,i){t.transform(e,n,r,o,a,i),this.__originalTransform(e,n,r,o,a,i)},e.setTransform=function(e,n,r,o,a,i){t.setTransform(e,n,r,o,a,i),this.__originalSetTransform(e,n,r,o,a,i)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(e){t.rotate(e),this.__originalRotate(e)},e.clip=function(e){t.clip(e),this.__originalClip(e)},e.moveTo=function(e,n){t.moveTo(e,n),this.__originalMoveTo(e,n)},e.lineTo=function(e,n){t.lineTo(e,n),this.__originalLineTo(e,n)},e.bezierCurveTo=function(e,n,r,o,a,i){t.bezierCurveTo(e,n,r,o,a,i),this.__originalBezierCurveTo(e,n,r,o,a,i)},e.rect=function(e,n,r,o){t.rect(e,n,r,o),this.__originalRect(e,n,r,o)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}(o,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),g(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return;e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const t=this.current.activeSMask;(function(e,t,n,r){const o=r[0],a=r[1],i=r[2]-o,s=r[3]-a;0!==i&&0!==s&&(function(e,t,n,r,o,a,i,s,l,c,u){const d=!!a,p=d?a[0]:0,h=d?a[1]:0,f=d?a[2]:0;let m;m="Luminosity"===o?_:y;const g=Math.min(r,Math.ceil(1048576/n));for(let o=0;o100&&(c=100),this.current.fontSizeScale=t/c,this.ctx.font=`${s} ${i} ${c}px ${l}`}setTextRenderingMode(e){this.current.textRenderingMode=e}setTextRise(e){this.current.textRise=e}moveText(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}setTextMatrix(e,t,n,r,o,a){this.current.textMatrix=[e,t,n,r,o,a],this.current.textMatrixScale=Math.hypot(e,t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(e,t,n,o){const a=this.ctx,i=this.current,s=i.font,l=i.textRenderingMode,c=i.fontSize/i.fontSizeScale,u=l&r.TextRenderingMode.FILL_STROKE_MASK,d=!!(l&r.TextRenderingMode.ADD_TO_PATH_FLAG),p=i.patternFill&&!s.missingFile;let h;(s.disableFontFace||d||p)&&(h=s.getPathGenerator(this.commonObjs,e)),s.disableFontFace||p?(a.save(),a.translate(t,n),a.beginPath(),h(a,c),o&&a.setTransform.apply(a,o),u!==r.TextRenderingMode.FILL&&u!==r.TextRenderingMode.FILL_STROKE||a.fill(),u!==r.TextRenderingMode.STROKE&&u!==r.TextRenderingMode.FILL_STROKE||a.stroke(),a.restore()):(u!==r.TextRenderingMode.FILL&&u!==r.TextRenderingMode.FILL_STROKE||a.fillText(e,t,n),u!==r.TextRenderingMode.STROKE&&u!==r.TextRenderingMode.FILL_STROKE||a.strokeText(e,t,n)),d&&(this.pendingTextPaths||(this.pendingTextPaths=[])).push({transform:a.mozCurrentTransform,x:t,y:n,fontSize:c,addToPath:h})}get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10,!1);e.scale(1.5,1),e.fillText("I",0,10);const t=e.getImageData(0,0,10,10).data;let n=!1;for(let e=3;e0&&t[e]<255){n=!0;break}return(0,r.shadow)(this,"isFontSubpixelAAEnabled",n)}showText(e){const t=this.current,n=t.font;if(n.isType3Font)return this.showType3Text(e);const a=t.fontSize;if(0===a)return;const i=this.ctx,s=t.fontSizeScale,l=t.charSpacing,c=t.wordSpacing,u=t.fontDirection,d=t.textHScale*u,p=e.length,h=n.vertical,f=h?1:-1,m=n.defaultVMetrics,g=a*t.fontMatrix[0],b=t.textRenderingMode===r.TextRenderingMode.FILL&&!n.disableFontFace&&!t.patternFill;let v;if(i.save(),i.transform.apply(i,t.textMatrix),i.translate(t.x,t.y+t.textRise),u>0?i.scale(d,-1):i.scale(d,1),t.patternFill){i.save();const e=t.fillColor.getPattern(i,this,i.mozCurrentTransformInverse,o.PathType.FILL);v=i.mozCurrentTransform,i.restore(),i.fillStyle=e}let y=t.lineWidth;const _=t.textMatrixScale;if(0===_||0===y){const e=t.textRenderingMode&r.TextRenderingMode.FILL_STROKE_MASK;e!==r.TextRenderingMode.STROKE&&e!==r.TextRenderingMode.FILL_STROKE||(y=this.getSinglePixelWidth())}else y/=_;1!==s&&(i.scale(s,s),y/=s),i.lineWidth=y;let k,x=0;for(k=0;k0){const e=1e3*i.measureText(d).width/a*s;if(Snew C(e,this.commonObjs,this.objs,this.canvasFactory)};t=new o.TilingPattern(e,n,this.ctx,a,r)}else t=this._getPattern(e[1],e[2]);return t}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(e,t,n){const o=this.selectColor?.(e,t,n)||r.Util.makeHexColor(e,t,n);this.ctx.strokeStyle=o,this.current.strokeColor=o}setFillRGBColor(e,t,n){const o=this.selectColor?.(e,t,n)||r.Util.makeHexColor(e,t,n);this.ctx.fillStyle=o,this.current.fillColor=o,this.current.patternFill=!1}_getPattern(e,t=null){let n;return this.cachedPatterns.has(e)?n=this.cachedPatterns.get(e):(n=(0,o.getShadingPattern)(this.objs.get(e)),this.cachedPatterns.set(e,n)),t&&(n.matrix=t),n}shadingFill(e){if(!this.contentVisible)return;const t=this.ctx;this.save();const n=this._getPattern(e);t.fillStyle=n.getPattern(t,this,t.mozCurrentTransformInverse,o.PathType.SHADING);const a=t.mozCurrentTransformInverse;if(a){const e=t.canvas,n=e.width,o=e.height,i=r.Util.applyTransform([0,0],a),s=r.Util.applyTransform([0,o],a),l=r.Util.applyTransform([n,0],a),c=r.Util.applyTransform([n,o],a),u=Math.min(i[0],s[0],l[0],c[0]),d=Math.min(i[1],s[1],l[1],c[1]),p=Math.max(i[0],s[0],l[0],c[0]),h=Math.max(i[1],s[1],l[1],c[1]);this.ctx.fillRect(u,d,p-u,h-d)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,r.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,r.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform.apply(this,e),this.baseTransform=this.ctx.mozCurrentTransform,t)){const e=t[2]-t[0],n=t[3]-t[1];this.ctx.rect(t[0],t[1],e,n),this.current.updateRectMinMax(this.ctx.mozCurrentTransform,t),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const t=this.ctx;e.isolated||(0,r.info)("TODO: Support non-isolated groups."),e.knockout&&(0,r.warn)("Knockout groups not supported.");const n=t.mozCurrentTransform;if(e.matrix&&t.transform.apply(t,e.matrix),!e.bbox)throw new Error("Bounding box is required.");let o=r.Util.getAxialAlignedBoundingBox(e.bbox,t.mozCurrentTransform);const a=[0,0,t.canvas.width,t.canvas.height];o=r.Util.intersect(o,a)||[0,0,0,0];const i=Math.floor(o[0]),s=Math.floor(o[1]);let c=Math.max(Math.ceil(o[2])-i,1),u=Math.max(Math.ceil(o[3])-s,1),d=1,p=1;c>l&&(d=c/l,c=l),u>l&&(p=u/l,u=l),this.current.startNewPathAndClipBox([0,0,c,u]);let h="groupAt"+this.groupLevel;e.smask&&(h+="_smask_"+this.smaskCounter++%2);const f=this.cachedCanvases.getCanvas(h,c,u,!0),m=f.context;m.scale(1/d,1/p),m.translate(-i,-s),m.transform.apply(m,n),e.smask?this.smaskStack.push({canvas:f.canvas,context:m,offsetX:i,offsetY:s,scaleX:d,scaleY:p,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(i,s),t.scale(d,p),t.save()),g(t,m),this.ctx=m,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++}endGroup(e){if(!this.contentVisible)return;this.groupLevel--;const t=this.ctx,n=this.groupStack.pop();if(this.ctx=n,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const e=this.ctx.mozCurrentTransform;this.restore(),this.ctx.save(),this.ctx.setTransform.apply(this.ctx,e);const n=r.Util.getAxialAlignedBoundingBox([0,0,t.canvas.width,t.canvas.height],e);this.ctx.drawImage(t.canvas,0,0),this.ctx.restore(),this.compose(n)}}beginAnnotations(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)}endAnnotations(){this.restore()}beginAnnotation(e,t,n,o,a){if(this.save(),Array.isArray(t)&&4===t.length){const o=t[2]-t[0],i=t[3]-t[1];if(a&&this.annotationCanvasMap){(n=n.slice())[4]-=t[0],n[5]-=t[1],(t=t.slice())[0]=t[1]=0,t[2]=o,t[3]=i;const[a,l]=r.Util.singularValueDecompose2dScale(this.ctx.mozCurrentTransform),{viewportScale:c}=this,d=Math.ceil(o*this.outputScaleX*c),p=Math.ceil(i*this.outputScaleY*c);this.annotationCanvas=this.canvasFactory.create(d,p);const{canvas:h,context:f}=this.annotationCanvas,m=`var(--zoom-factor) * ${s.PixelsPerInch.PDF_TO_CSS_UNITS}`;h.style.width=`calc(${o}px * ${m})`,h.style.height=`calc(${i}px * ${m})`,this.annotationCanvasMap.set(e,h),this.annotationCanvas.savedCtx=this.ctx,this.ctx=f,this.ctx.setTransform(a,0,0,-l,0,i*l),u(this.ctx),b(this.ctx,this.foregroundColor)}else b(this.ctx,this.foregroundColor),this.ctx.rect(t[0],t[1],o,i),this.ctx.clip(),this.endPath()}this.current=new h(this.ctx.canvas.width,this.ctx.canvas.height),this.transform.apply(this,n),this.transform.apply(this,o)}endAnnotation(){this.annotationCanvas&&(this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas),this.restore()}paintImageMaskXObject(e){if(!this.contentVisible)return;const t=e.count;(e=this.getObject(e.data,e)).count=t;const n=this.ctx,r=this.processingType3;if(r&&(void 0===r.compiled&&(r.compiled=function(e){const{width:t,height:n}=e;if(t>1e3||n>1e3)return null;const r=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),o=t+1;let a,s,l,c=new Uint8Array(o*(n+1));const u=t+7&-8;let d=new Uint8Array(u*n),p=0;for(const t of e.data){let e=128;for(;e>0;)d[p++]=t&e?0:255,e>>=1}let h=0;for(p=0,0!==d[p]&&(c[0]=1,++h),s=1;s>2)+(d[p+1]?4:0)+(d[p-u+1]?8:0),r[e]&&(c[l+s]=r[e],++h),p++;if(d[p-u]!==d[p]&&(c[l+s]=d[p]?2:4,++h),h>1e3)return null}for(p=u*(n-1),l=a*o,0!==d[p]&&(c[l]=8,++h),s=1;s1e3)return null;const f=new Int32Array([0,o,-1,0,-o,0,0,0,1]);let m,g,b;for(i.isNodeJS?g=[]:m=new Path2D,a=0;h&&a<=n;a++){let e=a*o;const n=e+t;for(;e>4,c[e]&=i>>2|i<<2),m?m.lineTo(e%o,e/o|0):b.push(e%o,e/o|0),c[e]||--h}while(r!==e);m||g.push(b),--a}return d=null,c=null,function(e){if(e.save(),e.scale(1/t,-1/n),e.translate(0,-n),m)e.fill(m);else{e.beginPath();for(const t of g){e.moveTo(t[0],t[1]);for(let n=2,r=t.length;nt?i/t:1,r=a>t?a/t:1}}this._cachedScaleForStroking=[n,r]}return this._cachedScaleForStroking}rescaleAndStroke(e){const{ctx:t}=this,{lineWidth:n}=this.current,[r,o]=this.getScaleForStroking();if(t.lineWidth=n||1,1===r&&1===o)return void t.stroke();let a,i,s;e&&(a=t.mozCurrentTransform.slice(),i=t.getLineDash().slice(),s=t.lineDashOffset),t.scale(r,o);const l=Math.max(r,o);t.setLineDash(t.getLineDash().map((e=>e/l))),t.lineDashOffset/=l,t.stroke(),e&&(t.setTransform(...a),t.setLineDash(i),t.lineDashOffset=s)}getCanvasPosition(e,t){const n=this.ctx.mozCurrentTransform;return[n[0]*e+n[2]*t+n[4],n[1]*e+n[3]*t+n[5]]}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}t.CanvasGraphics=C;for(const e in r.OPS)void 0!==C.prototype[e]&&(C.prototype[r.OPS[e]]=C.prototype[e])},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.PathType=void 0,t.getShadingPattern=function(e){switch(e[0]){case"RadialAxial":return new l(e);case"Mesh":return new d(e);case"Dummy":return new p}throw new Error(`Unknown IR type: ${e[0]}`)};var r=n(1),o=n(3);const a={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function i(e,t){if(!t||o.isNodeJS)return;const n=t[2]-t[0],r=t[3]-t[1],a=new Path2D;a.rect(t[0],t[1],n,r),e.clip(a)}t.PathType=a;class s{constructor(){this.constructor===s&&(0,r.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,r.unreachable)("Abstract method `getPattern` called.")}}class l extends s{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let t;"axial"===this._type?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const e of this._colorStops)t.addColorStop(e[0],e[1]);return t}getPattern(e,t,n,o){let s;if(o===a.STROKE||o===a.FILL){const a=t.current.getClippedPathBoundingBox(o,e.mozCurrentTransform)||[0,0,0,0],l=Math.ceil(a[2]-a[0])||1,c=Math.ceil(a[3]-a[1])||1,u=t.cachedCanvases.getCanvas("pattern",l,c,!0),d=u.context;d.clearRect(0,0,d.canvas.width,d.canvas.height),d.beginPath(),d.rect(0,0,d.canvas.width,d.canvas.height),d.translate(-a[0],-a[1]),n=r.Util.transform(n,[1,0,0,1,a[0],a[1]]),d.transform.apply(d,t.baseTransform),this.matrix&&d.transform.apply(d,this.matrix),i(d,this._bbox),d.fillStyle=this._createGradient(d),d.fill(),s=e.createPattern(u.canvas,"no-repeat");const p=new DOMMatrix(n);try{s.setTransform(p)}catch(e){(0,r.warn)(`RadialAxialShadingPattern.getPattern: "${e?.message}".`)}}else i(e,this._bbox),s=this._createGradient(e);return s}}function c(e,t,n,r,o,a,i,s){const l=t.coords,c=t.colors,u=e.data,d=4*e.width;let p;l[n+1]>l[r+1]&&(p=n,n=r,r=p,p=a,a=i,i=p),l[r+1]>l[o+1]&&(p=r,r=o,o=p,p=i,i=s,s=p),l[n+1]>l[r+1]&&(p=n,n=r,r=p,p=a,a=i,i=p);const h=(l[n]+t.offsetX)*t.scaleX,f=(l[n+1]+t.offsetY)*t.scaleY,m=(l[r]+t.offsetX)*t.scaleX,g=(l[r+1]+t.offsetY)*t.scaleY,b=(l[o]+t.offsetX)*t.scaleX,v=(l[o+1]+t.offsetY)*t.scaleY;if(f>=v)return;const y=c[a],_=c[a+1],k=c[a+2],x=c[i],w=c[i+1],S=c[i+2],A=c[s],C=c[s+1],E=c[s+2],T=Math.round(f),O=Math.round(v);let P,D,R,L,I,M,F,N;for(let e=T;e<=O;e++){if(ev?1:g===v?0:(g-e)/(g-v),P=m-(m-b)*t,D=x-(x-A)*t,R=w-(w-C)*t,L=S-(S-E)*t}let t;t=ev?1:(f-e)/(f-v),I=h-(h-b)*t,M=y-(y-A)*t,F=_-(_-C)*t,N=k-(k-E)*t;const n=Math.round(Math.min(P,I)),r=Math.round(Math.max(P,I));let o=d*e+4*n;for(let e=n;e<=r;e++)t=(P-e)/(P-I),t<0?t=0:t>1&&(t=1),u[o++]=D-(D-M)*t|0,u[o++]=R-(R-F)*t|0,u[o++]=L-(L-N)*t|0,u[o++]=255}}function u(e,t,n){const r=t.coords,o=t.colors;let a,i;switch(t.type){case"lattice":const s=t.verticesPerRow,l=Math.floor(r.length/s)-1,u=s-1;for(a=0;a=r?o=r:n=o/e,{scale:n,size:o}}clipBbox(e,t,n,r,o){const a=r-t,i=o-n;e.ctx.rect(t,n,a,i),e.current.updateRectMinMax(e.ctx.mozCurrentTransform,[t,n,r,o]),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,n){const o=e.ctx,a=e.current;switch(t){case 1:const e=this.ctx;o.fillStyle=e.fillStyle,o.strokeStyle=e.strokeStyle,a.fillColor=e.fillStyle,a.strokeColor=e.strokeStyle;break;case 2:const i=r.Util.makeHexColor(n[0],n[1],n[2]);o.fillStyle=i,o.strokeStyle=i,a.fillColor=i,a.strokeColor=i;break;default:throw new r.FormatError(`Unsupported paint type: ${t}`)}}getPattern(e,t,n,o){let i=n;o!==a.SHADING&&(i=r.Util.transform(i,t.baseTransform),this.matrix&&(i=r.Util.transform(i,this.matrix)));const s=this.createPatternCanvas(t);let l=new DOMMatrix(i);l=l.translate(s.offsetX,s.offsetY),l=l.scale(1/s.scaleX,1/s.scaleY);const c=e.createPattern(s.canvas,"repeat");try{c.setTransform(l)}catch(e){(0,r.warn)(`TilingPattern.getPattern: "${e?.message}".`)}return c}}t.TilingPattern=h},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.applyMaskImageData=function({src:e,srcPos:t=0,dest:n,destPos:o=0,width:a,height:i,inverseDecode:s=!1}){const l=r.FeatureTest.isLittleEndian?4278190080:255,[c,u]=s?[0,l]:[l,0],d=a>>3,p=7&a,h=e.length;n=new Uint32Array(n.buffer);for(let r=0;r{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;const n=Object.create(null);t.GlobalWorkerOptions=n,n.workerPort=void 0===n.workerPort?null:n.workerPort,n.workerSrc=void 0===n.workerSrc?"":n.workerSrc},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var r=n(1);function o(e){switch(e instanceof Error||"object"==typeof e&&null!==e||(0,r.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new r.AbortException(e.message);case"MissingPDFException":return new r.MissingPDFException(e.message);case"PasswordException":return new r.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new r.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new r.UnknownErrorException(e.message,e.details);default:return new r.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,n){this.sourceName=e,this.targetName=t,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=e=>{const t=e.data;if(t.targetName!==this.sourceName)return;if(t.stream)return void this._processStreamMessage(t);if(t.callback){const e=t.callbackId,n=this.callbackCapabilities[e];if(!n)throw new Error(`Cannot resolve callback ${e}`);if(delete this.callbackCapabilities[e],1===t.callback)n.resolve(t.data);else{if(2!==t.callback)throw new Error("Unexpected callback case");n.reject(o(t.reason))}return}const r=this.actionHandler[t.action];if(!r)throw new Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){const e=this.sourceName,a=t.sourceName;new Promise((function(e){e(r(t.data))})).then((function(r){n.postMessage({sourceName:e,targetName:a,callback:1,callbackId:t.callbackId,data:r})}),(function(r){n.postMessage({sourceName:e,targetName:a,callback:2,callbackId:t.callbackId,reason:o(r)})}))}else t.streamId?this._createStreamSink(t):r(t.data)},n.addEventListener("message",this._onComObjOnMessage)}on(e,t){const n=this.actionHandler;if(n[e])throw new Error(`There is already an actionName called "${e}"`);n[e]=t}send(e,t,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){const o=this.callbackId++,a=(0,r.createPromiseCapability)();this.callbackCapabilities[o]=a;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:o,data:t},n)}catch(e){a.reject(e)}return a.promise}sendWithStream(e,t,n,a){const i=this.streamId++,s=this.sourceName,l=this.targetName,c=this.comObj;return new ReadableStream({start:n=>{const o=(0,r.createPromiseCapability)();return this.streamControllers[i]={controller:n,startCall:o,pullCall:null,cancelCall:null,isClosed:!1},c.postMessage({sourceName:s,targetName:l,action:e,streamId:i,data:t,desiredSize:n.desiredSize},a),o.promise},pull:e=>{const t=(0,r.createPromiseCapability)();return this.streamControllers[i].pullCall=t,c.postMessage({sourceName:s,targetName:l,stream:6,streamId:i,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,r.assert)(e instanceof Error,"cancel must have a valid reason");const t=(0,r.createPromiseCapability)();return this.streamControllers[i].cancelCall=t,this.streamControllers[i].isClosed=!0,c.postMessage({sourceName:s,targetName:l,stream:1,streamId:i,reason:o(e)}),t.promise}},n)}_createStreamSink(e){const t=e.streamId,n=this.sourceName,a=e.sourceName,i=this.comObj,s=this,l=this.actionHandler[e.action],c={enqueue(e,o=1,s){if(this.isCancelled)return;const l=this.desiredSize;this.desiredSize-=o,l>0&&this.desiredSize<=0&&(this.sinkCapability=(0,r.createPromiseCapability)(),this.ready=this.sinkCapability.promise),i.postMessage({sourceName:n,targetName:a,stream:4,streamId:t,chunk:e},s)},close(){this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:a,stream:3,streamId:t}),delete s.streamSinks[t])},error(e){(0,r.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,i.postMessage({sourceName:n,targetName:a,stream:5,streamId:t,reason:o(e)}))},sinkCapability:(0,r.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};c.sinkCapability.resolve(),c.ready=c.sinkCapability.promise,this.streamSinks[t]=c,new Promise((function(t){t(l(e.data,c))})).then((function(){i.postMessage({sourceName:n,targetName:a,stream:8,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:n,targetName:a,stream:8,streamId:t,reason:o(e)})}))}_processStreamMessage(e){const t=e.streamId,n=this.sourceName,a=e.sourceName,i=this.comObj,s=this.streamControllers[t],l=this.streamSinks[t];switch(e.stream){case 8:e.success?s.startCall.resolve():s.startCall.reject(o(e.reason));break;case 7:e.success?s.pullCall.resolve():s.pullCall.reject(o(e.reason));break;case 6:if(!l){i.postMessage({sourceName:n,targetName:a,stream:7,streamId:t,success:!0});break}l.desiredSize<=0&&e.desiredSize>0&&l.sinkCapability.resolve(),l.desiredSize=e.desiredSize,new Promise((function(e){e(l.onPull&&l.onPull())})).then((function(){i.postMessage({sourceName:n,targetName:a,stream:7,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:n,targetName:a,stream:7,streamId:t,reason:o(e)})}));break;case 4:if((0,r.assert)(s,"enqueue should have stream controller"),s.isClosed)break;s.controller.enqueue(e.chunk);break;case 3:if((0,r.assert)(s,"close should have stream controller"),s.isClosed)break;s.isClosed=!0,s.controller.close(),this._deleteStreamController(s,t);break;case 5:(0,r.assert)(s,"error should have stream controller"),s.controller.error(o(e.reason)),this._deleteStreamController(s,t);break;case 2:e.success?s.cancelCall.resolve():s.cancelCall.reject(o(e.reason)),this._deleteStreamController(s,t);break;case 1:if(!l)break;new Promise((function(t){t(l.onCancel&&l.onCancel(o(e.reason)))})).then((function(){i.postMessage({sourceName:n,targetName:a,stream:2,streamId:t,success:!0})}),(function(e){i.postMessage({sourceName:n,targetName:a,stream:2,streamId:t,reason:o(e)})})),l.sinkCapability.reject(o(e.reason)),l.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async _deleteStreamController(e,t){await Promise.allSettled([e.startCall&&e.startCall.promise,e.pullCall&&e.pullCall.promise,e.cancelCall&&e.cancelCall.promise]),delete this.streamControllers[t]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var r=n(1);t.Metadata=class{#c;#u;constructor({parsedData:e,rawData:t}){this.#c=e,this.#u=t}getRaw(){return this.#u}get(e){return this.#c.get(e)??null}getAll(){return(0,r.objectFromMap)(this.#c)}has(e){return this.#c.has(e)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var r=n(1);class o{constructor(e,t){this.visible=!0,this.name=e,this.intent=t}}t.OptionalContentConfig=class{constructor(e){if(this.name=null,this.creator=null,this._order=null,this._groups=new Map,null!==e){this.name=e.name,this.creator=e.creator,this._order=e.order;for(const t of e.groups)this._groups.set(t.id,new o(t.name,t.intent));if("OFF"===e.baseState)for(const e of this._groups)e.visible=!1;for(const t of e.on)this._groups.get(t).visible=!0;for(const t of e.off)this._groups.get(t).visible=!1}}_evaluateVisibilityExpression(e){const t=e.length;if(t<2)return!0;const n=e[0];for(let o=1;o0?(0,r.objectFromMap)(this._groups):null}getGroup(e){return this._groups.get(e)||null}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var r=n(1),o=n(5);t.PDFDataTransportStream=class{constructor(e,t){(0,r.assert)(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=e.progressiveDone||!1,this._contentDispositionFilename=e.contentDispositionFilename||null;const n=e.initialData;if(n?.length>0){const e=new Uint8Array(n).buffer;this._queuedChunks.push(e)}this._pdfDataRangeTransport=t,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._contentLength=e.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(((e,t)=>{this._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener(((e,t)=>{this._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((e=>{this._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((()=>{this._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}_onReceiveData(e){const t=new Uint8Array(e.chunk).buffer;if(void 0===e.begin)this._fullRequestReader?this._fullRequestReader._enqueue(t):this._queuedChunks.push(t);else{const n=this._rangeReaders.some((function(n){return n._begin===e.begin&&(n._enqueue(t),!0)}));(0,r.assert)(n,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(e){if(void 0===e.total){const t=this._rangeReaders[0];t?.onProgress&&t.onProgress({loaded:e.loaded})}else{const t=this._fullRequestReader;t?.onProgress&&t.onProgress({loaded:e.loaded,total:e.total})}}_onProgressiveDone(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){(0,r.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new a(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new i(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);for(const t of this._rangeReaders.slice(0))t.cancel(e);this._pdfDataRangeTransport.abort()}};class a{constructor(e,t,n=!1,r=null){this._stream=e,this._done=n||!1,this._filename=(0,o.isPdfFile)(r)?r:null,this._queuedChunks=t||[],this._loaded=0;for(const e of this._queuedChunks)this._loaded+=e.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class i{constructor(e,t,n){this._stream=e,this._begin=t,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaText=void 0;class n{static textContent(e){const t=[],r={items:t,styles:Object.create(null)};return function e(r){if(!r)return;let o=null;const a=r.name;if("#text"===a)o=r.value;else{if(!n.shouldBuildText(a))return;r?.attributes?.textContent?o=r.attributes.textContent:r.value&&(o=r.value)}if(null!==o&&t.push({str:o}),r.children)for(const t of r.children)e(t)}(e),r}static shouldBuildText(e){return!("textarea"===e||"input"===e||"option"===e||"select"===e)}}t.XfaText=n},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeCanvasFactory=t.NodeCMapReaderFactory=void 0;var r=n(6);const o=function(e){return new Promise(((t,n)=>{__webpack_require__(172).readFile(e,((e,r)=>{!e&&r?t(new Uint8Array(r)):n(new Error(e))}))}))};class a extends r.BaseCanvasFactory{_createCanvas(e,t){return __webpack_require__(3414).createCanvas(e,t)}}t.NodeCanvasFactory=a;class i extends r.BaseCMapReaderFactory{_fetchData(e,t){return o(e).then((e=>({cMapData:e,compressionType:t})))}}t.NodeCMapReaderFactory=i;class s extends r.BaseStandardFontDataFactory{_fetchData(e){return o(e)}}t.NodeStandardFontDataFactory=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayer=void 0;var r=n(1),o=n(5),a=n(8),i=n(21),s=n(22);const l=1e3,c=new WeakSet;function u(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class d{static create(e){switch(e.data.annotationType){case r.AnnotationType.LINK:return new h(e);case r.AnnotationType.TEXT:return new f(e);case r.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new g(e);case"Btn":return e.data.radioButton?new v(e):e.data.checkBox?new b(e):new y(e);case"Ch":return new _(e)}return new m(e);case r.AnnotationType.POPUP:return new k(e);case r.AnnotationType.FREETEXT:return new w(e);case r.AnnotationType.LINE:return new S(e);case r.AnnotationType.SQUARE:return new A(e);case r.AnnotationType.CIRCLE:return new C(e);case r.AnnotationType.POLYLINE:return new E(e);case r.AnnotationType.CARET:return new O(e);case r.AnnotationType.INK:return new P(e);case r.AnnotationType.POLYGON:return new T(e);case r.AnnotationType.HIGHLIGHT:return new D(e);case r.AnnotationType.UNDERLINE:return new R(e);case r.AnnotationType.SQUIGGLY:return new L(e);case r.AnnotationType.STRIKEOUT:return new I(e);case r.AnnotationType.STAMP:return new M(e);case r.AnnotationType.FILEATTACHMENT:return new F(e);default:return new p(e)}}}class p{constructor(e,{isRenderable:t=!1,ignoreBorder:n=!1,createQuadrilaterals:r=!1}={}){this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.page=e.page,this.viewport=e.viewport,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this._mouseState=e.mouseState,t&&(this.container=this._createContainer(n)),r&&(this.quadrilaterals=this._createQuadrilaterals(n))}_createContainer(e=!1){const t=this.data,n=this.page,o=this.viewport,a=document.createElement("section");let{width:i,height:s}=u(t.rect);a.setAttribute("data-annotation-id",t.id);const l=r.Util.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]);if(t.hasOwnCanvas){const e=o.transform.slice(),[t,n]=r.Util.singularValueDecompose2dScale(e);i=Math.ceil(i*t),s=Math.ceil(s*n),l[0]*=t,l[1]*=n;for(let t=0;t<4;t++)e[t]=Math.sign(e[t]);a.style.transform=`matrix(${e.join(",")})`}else a.style.transform=`matrix(${o.transform.join(",")})`;if(a.style.transformOrigin=`${-l[0]}px ${-l[1]}px`,!e&&t.borderStyle.width>0){a.style.borderWidth=`${t.borderStyle.width}px`,t.borderStyle.style!==r.AnnotationBorderStyleType.UNDERLINE&&(i-=2*t.borderStyle.width,s-=2*t.borderStyle.width);const e=t.borderStyle.horizontalCornerRadius,n=t.borderStyle.verticalCornerRadius;if(e>0||n>0){const t=`${e}px / ${n}px`;a.style.borderRadius=t}switch(t.borderStyle.style){case r.AnnotationBorderStyleType.SOLID:a.style.borderStyle="solid";break;case r.AnnotationBorderStyleType.DASHED:a.style.borderStyle="dashed";break;case r.AnnotationBorderStyleType.BEVELED:(0,r.warn)("Unimplemented border style: beveled");break;case r.AnnotationBorderStyleType.INSET:(0,r.warn)("Unimplemented border style: inset");break;case r.AnnotationBorderStyleType.UNDERLINE:a.style.borderBottomStyle="solid"}t.borderColor||t.color?a.style.borderColor=r.Util.makeHexColor(0|t.color[0],0|t.color[1],0|t.color[2]):a.style.borderWidth=0}return a.style.left=`${l[0]}px`,a.style.top=`${l[1]}px`,t.hasOwnCanvas?a.style.width=a.style.height="auto":(a.style.width=`${i}px`,a.style.height=`${s}px`),a}get _commonActions(){const e=(e,t,n)=>{const r=n.detail[e];n.target.style[t]=i.ColorConverters[`${r[0]}_HTML`](r.slice(1))};return(0,r.shadow)(this,"_commonActions",{display:e=>{const t=e.detail.display%2==1;e.target.style.visibility=t?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:t,print:0===e.detail.display||3===e.detail.display})},print:e=>{this.annotationStorage.setValue(this.data.id,{print:e.detail.print})},hidden:e=>{e.target.style.visibility=e.detail.hidden?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{hidden:e.detail.hidden})},focus:e=>{setTimeout((()=>e.target.focus({preventScroll:!1})),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.detail.readonly?e.target.setAttribute("readonly",""):e.target.removeAttribute("readonly")},required:e=>{e.detail.required?e.target.setAttribute("required",""):e.target.removeAttribute("required")},bgColor:t=>{e("bgColor","backgroundColor",t)},fillColor:t=>{e("fillColor","backgroundColor",t)},fgColor:t=>{e("fgColor","color",t)},textColor:t=>{e("textColor","color",t)},borderColor:t=>{e("borderColor","borderColor",t)},strokeColor:t=>{e("strokeColor","borderColor",t)}})}_dispatchEventFromSandbox(e,t){const n=this._commonActions;for(const r of Object.keys(t.detail)){const o=e[r]||n[r];o&&o(t)}}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;const t=this.annotationStorage.getRawValue(this.data.id);if(!t)return;const n=this._commonActions;for(const[r,o]of Object.entries(t)){const a=n[r];a&&(a({detail:o,target:e}),delete t[r])}}_createQuadrilaterals(e=!1){if(!this.data.quadPoints)return null;const t=[],n=this.data.rect;for(const n of this.data.quadPoints)this.data.rect=[n[2].x,n[2].y,n[1].x,n[1].y],t.push(this._createContainer(e));return this.data.rect=n,t}_createPopup(e,t){let n=this.container;this.quadrilaterals&&(e=e||this.quadrilaterals,n=this.quadrilaterals[0]),e||((e=document.createElement("div")).style.height=n.style.height,e.style.width=n.style.width,n.appendChild(e));const r=new x({container:n,trigger:e,color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,hideWrapper:!0}).render();r.style.left=n.style.width,n.appendChild(r)}_renderQuadrilaterals(e){for(const t of this.quadrilaterals)t.className=e;return this.quadrilaterals}render(){(0,r.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(e,t=null){const n=[];if(this._fieldObjects){const o=this._fieldObjects[e];if(o)for(const{page:e,id:a,exportValues:i}of o){if(-1===e)continue;if(a===t)continue;const o="string"==typeof i?i:null,s=document.getElementById(a);!s||c.has(s)?n.push({id:a,exportValue:o,domElement:s}):(0,r.warn)(`_getElementsByName - element not allowed: ${a}`)}return n}for(const r of document.getElementsByName(e)){const{id:e,exportValue:o}=r;e!==t&&c.has(r)&&n.push({id:e,exportValue:o,domElement:r})}return n}static get platform(){const e="undefined"!=typeof navigator?navigator.platform:"";return(0,r.shadow)(this,"platform",{isWin:e.includes("Win"),isMac:e.includes("Mac")})}}class h extends p{constructor(e,t=null){super(e,{isRenderable:!!(e.data.url||e.data.dest||e.data.action||e.data.isTooltipOnly||e.data.resetForm||e.data.actions&&(e.data.actions.Action||e.data.actions["Mouse Up"]||e.data.actions["Mouse Down"])),ignoreBorder:!!t?.ignoreBorder,createQuadrilaterals:!0})}render(){const{data:e,linkService:t}=this,n=document.createElement("a");if(e.url)t.addLinkAttributes(n,e.url,e.newWindow);else if(e.action)this._bindNamedAction(n,e.action);else if(e.dest)this._bindLink(n,e.dest);else{let t=!1;e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(t=!0,this._bindJSAction(n,e)),e.resetForm?this._bindResetFormAction(n,e.resetForm):t||this._bindLink(n,"")}return this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map(((e,t)=>{const r=0===t?n:n.cloneNode();return e.appendChild(r),e})):(this.container.className="linkAnnotation",this.container.appendChild(n),this.container)}_bindLink(e,t){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.goToDestination(t),!1),(t||""===t)&&(e.className="internalLink")}_bindNamedAction(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),e.className="internalLink"}_bindJSAction(e,t){e.href=this.linkService.getAnchorUrl("");const n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const r of Object.keys(t.actions)){const o=n.get(r);o&&(e[o]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t.id,name:r}}),!1))}e.onclick||(e.onclick=()=>!1),e.className="internalLink"}_bindResetFormAction(e,t){const n=e.onclick;if(n||(e.href=this.linkService.getAnchorUrl("")),e.className="internalLink",!this._fieldObjects)return(0,r.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(n||(e.onclick=()=>!1));e.onclick=()=>{n&&n();const{fields:e,refs:r,include:o}=t,a=[];if(0!==e.length||0!==r.length){const t=new Set(r);for(const n of e){const e=this._fieldObjects[n]||[];for(const{id:n}of e)t.add(n)}for(const e of Object.values(this._fieldObjects))for(const n of e)t.has(n.id)===o&&a.push(n)}else for(const e of Object.values(this._fieldObjects))a.push(...e);const i=this.annotationStorage,s=[];for(const e of a){const{id:t}=e;switch(s.push(t),e.type){case"text":{const n=e.defaultValue||"";i.setValue(t,{value:n});break}case"checkbox":case"radiobutton":{const n=e.defaultValue===e.exportValues;i.setValue(t,{value:n});break}case"combobox":case"listbox":{const n=e.defaultValue||"";i.setValue(t,{value:n});break}default:continue}const n=document.getElementById(t);n&&c.has(n)&&n.dispatchEvent(new Event("resetform"))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:s,name:"ResetForm"}}),!1}}}class f extends p{constructor(e){super(e,{isRenderable:!!(e.data.hasPopup||e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str)})}render(){this.container.className="textAnnotation";const e=document.createElement("img");return e.style.height=this.container.style.height,e.style.width=this.container.style.width,e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(e,this.data),this.container.appendChild(e),this.container}}class m extends p{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}_getKeyModifier(e){const{isWin:t,isMac:n}=p.platform;return t&&e.ctrlKey||n&&e.metaKey}_setEventListener(e,t,n,r){t.includes("mouse")?e.addEventListener(t,(e=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:r(e),shift:e.shiftKey,modifier:this._getKeyModifier(e)}})})):e.addEventListener(t,(e=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:r(e)}})}))}_setEventListeners(e,t,n){for(const[r,o]of t)("Action"===o||this.data.actions?.[o])&&this._setEventListener(e,r,o,n)}_setBackgroundColor(e){const t=this.data.backgroundColor||null;e.style.backgroundColor=null===t?"transparent":r.Util.makeHexColor(t[0],t[1],t[2])}}class g extends m{constructor(e){super(e,{isRenderable:e.renderForms||!e.data.hasAppearance&&!!e.data.fieldValue})}setPropertyOnSiblings(e,t,n,r){const o=this.annotationStorage;for(const a of this._getElementsByName(e.name,e.id))a.domElement&&(a.domElement[t]=n),o.setValue(a.id,{[r]:n})}render(){const e=this.annotationStorage,t=this.data.id;this.container.className="textWidgetAnnotation";let n=null;if(this.renderForms){const r=e.getValue(t,{value:this.data.fieldValue}),o=r.formattedValue||r.value||"",a={userValue:null,formattedValue:null,valueOnFocus:""};this.data.multiLine?(n=document.createElement("textarea"),n.textContent=o):(n=document.createElement("input"),n.type="text",n.setAttribute("value",o)),c.add(n),n.disabled=this.data.readOnly,n.name=this.data.fieldName,n.tabIndex=l,a.userValue=o,n.setAttribute("id",t),n.addEventListener("input",(r=>{e.setValue(t,{value:r.target.value}),this.setPropertyOnSiblings(n,"value",r.target.value,"value")})),n.addEventListener("resetform",(e=>{const t=this.data.defaultFieldValue??"";n.value=a.userValue=t,a.formattedValue=null}));let i=e=>{const{formattedValue:t}=a;null!=t&&(e.target.value=t),e.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){n.addEventListener("focus",(e=>{a.userValue&&(e.target.value=a.userValue),a.valueOnFocus=e.target.value})),n.addEventListener("updatefromsandbox",(n=>{const r={value(n){a.userValue=n.detail.value??"",e.setValue(t,{value:a.userValue.toString()}),n.target.value=a.userValue},formattedValue(n){const{formattedValue:r}=n.detail;a.formattedValue=r,null!=r&&n.target!==document.activeElement&&(n.target.value=r),e.setValue(t,{formattedValue:r})},selRange(e){e.target.setSelectionRange(...e.detail.selRange)}};this._dispatchEventFromSandbox(r,n)})),n.addEventListener("keydown",(e=>{let n=-1;if("Escape"===e.key?n=0:"Enter"===e.key?n=2:"Tab"===e.key&&(n=3),-1===n)return;const{value:r}=e.target;a.valueOnFocus!==r&&(a.userValue=r,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:r,willCommit:!0,commitKey:n,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))}));const r=i;i=null,n.addEventListener("blur",(e=>{const{value:n}=e.target;a.userValue=n,this._mouseState.isDown&&a.valueOnFocus!==n&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:n,willCommit:!0,commitKey:1,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}),r(e)})),this.data.actions?.Keystroke&&n.addEventListener("beforeinput",(e=>{const{data:n,target:r}=e,{value:o,selectionStart:a,selectionEnd:i}=r;let s=a,l=i;switch(e.inputType){case"deleteWordBackward":{const e=o.substring(0,a).match(/\w*[^\w]*$/);e&&(s-=e[0].length);break}case"deleteWordForward":{const e=o.substring(a).match(/^[^\w]*\w*/);e&&(l+=e[0].length);break}case"deleteContentBackward":a===i&&(s-=1);break;case"deleteContentForward":a===i&&(l+=1)}e.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:o,change:n||"",willCommit:!1,selStart:s,selEnd:l}})})),this._setEventListeners(n,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.value))}if(i&&n.addEventListener("blur",i),null!==this.data.maxLen&&(n.maxLength=this.data.maxLen),this.data.comb){const e=(this.data.rect[2]-this.data.rect[0])/this.data.maxLen;n.classList.add("comb"),n.style.letterSpacing=`calc(${e}px - 1ch)`}}else n=document.createElement("div"),n.textContent=this.data.fieldValue,n.style.verticalAlign="middle",n.style.display="table-cell";return this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.appendChild(n),this.container}_setTextStyle(e){const{fontSize:t,fontColor:n}=this.data.defaultAppearanceData,o=e.style;t&&(o.fontSize=`${t}px`),o.color=r.Util.makeHexColor(n[0],n[1],n[2]),null!==this.data.textAlignment&&(o.textAlign=["left","center","right"][this.data.textAlignment])}}class b extends m{constructor(e){super(e,{isRenderable:e.renderForms})}render(){const e=this.annotationStorage,t=this.data,n=t.id;let r=e.getValue(n,{value:t.exportValue===t.fieldValue}).value;"string"==typeof r&&(r="Off"!==r,e.setValue(n,{value:r})),this.container.className="buttonWidgetAnnotation checkBox";const o=document.createElement("input");return c.add(o),o.disabled=t.readOnly,o.type="checkbox",o.name=t.fieldName,r&&o.setAttribute("checked",!0),o.setAttribute("id",n),o.setAttribute("exportValue",t.exportValue),o.tabIndex=l,o.addEventListener("change",(r=>{const{name:o,checked:a}=r.target;for(const r of this._getElementsByName(o,n)){const n=a&&r.exportValue===t.exportValue;r.domElement&&(r.domElement.checked=n),e.setValue(r.id,{value:n})}e.setValue(n,{value:a})})),o.addEventListener("resetform",(e=>{const n=t.defaultFieldValue||"Off";e.target.checked=n===t.exportValue})),this.enableScripting&&this.hasJSActions&&(o.addEventListener("updatefromsandbox",(t=>{const r={value(t){t.target.checked="Off"!==t.detail.value,e.setValue(n,{value:t.target.checked})}};this._dispatchEventFromSandbox(r,t)})),this._setEventListeners(o,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))),this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.appendChild(o),this.container}}class v extends m{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.className="buttonWidgetAnnotation radioButton";const e=this.annotationStorage,t=this.data,n=t.id;let r=e.getValue(n,{value:t.fieldValue===t.buttonValue}).value;"string"==typeof r&&(r=r!==t.buttonValue,e.setValue(n,{value:r}));const o=document.createElement("input");if(c.add(o),o.disabled=t.readOnly,o.type="radio",o.name=t.fieldName,r&&o.setAttribute("checked",!0),o.setAttribute("id",n),o.tabIndex=l,o.addEventListener("change",(t=>{const{name:r,checked:o}=t.target;for(const t of this._getElementsByName(r,n))e.setValue(t.id,{value:!1});e.setValue(n,{value:o})})),o.addEventListener("resetform",(e=>{const n=t.defaultFieldValue;e.target.checked=null!=n&&n===t.buttonValue})),this.enableScripting&&this.hasJSActions){const r=t.buttonValue;o.addEventListener("updatefromsandbox",(t=>{const o={value:t=>{const o=r===t.detail.value;for(const r of this._getElementsByName(t.target.name)){const t=o&&r.id===n;r.domElement&&(r.domElement.checked=t),e.setValue(r.id,{value:t})}}};this._dispatchEventFromSandbox(o,t)})),this._setEventListeners(o,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))}return this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.appendChild(o),this.container}}class y extends h{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){const e=super.render();return e.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(e.title=this.data.alternativeText),this._setDefaultPropertiesFromJS(e),e}}class _ extends m{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.className="choiceWidgetAnnotation";const e=this.annotationStorage,t=this.data.id,n=e.getValue(t,{value:this.data.fieldValue});let{fontSize:r}=this.data.defaultAppearanceData;r||(r=9);const o=`calc(${r}px * var(--zoom-factor))`,a=document.createElement("select");c.add(a),a.disabled=this.data.readOnly,a.name=this.data.fieldName,a.setAttribute("id",t),a.tabIndex=l,a.style.fontSize=`${r}px`,this.data.combo||(a.size=this.data.options.length,this.data.multiSelect&&(a.multiple=!0)),a.addEventListener("resetform",(e=>{const t=this.data.defaultFieldValue;for(const e of a.options)e.selected=e.value===t}));for(const e of this.data.options){const t=document.createElement("option");t.textContent=e.displayValue,t.value=e.exportValue,this.data.combo&&(t.style.fontSize=o),n.value.includes(e.exportValue)&&t.setAttribute("selected",!0),a.appendChild(t)}const i=(e,t)=>{const n=t?"value":"textContent",r=e.target.options;return e.target.multiple?Array.prototype.filter.call(r,(e=>e.selected)).map((e=>e[n])):-1===r.selectedIndex?null:r[r.selectedIndex][n]},s=e=>{const t=e.target.options;return Array.prototype.map.call(t,(e=>({displayValue:e.textContent,exportValue:e.value})))};return this.enableScripting&&this.hasJSActions?(a.addEventListener("updatefromsandbox",(n=>{const r={value(n){const r=n.detail.value,o=new Set(Array.isArray(r)?r:[r]);for(const e of a.options)e.selected=o.has(e.value);e.setValue(t,{value:i(n,!0)})},multipleSelection(e){a.multiple=!0},remove(n){const r=a.options,o=n.detail.remove;r[o].selected=!1,a.remove(o),r.length>0&&-1===Array.prototype.findIndex.call(r,(e=>e.selected))&&(r[0].selected=!0),e.setValue(t,{value:i(n,!0),items:s(n)})},clear(n){for(;0!==a.length;)a.remove(0);e.setValue(t,{value:null,items:[]})},insert(n){const{index:r,displayValue:o,exportValue:l}=n.detail.insert,c=document.createElement("option");c.textContent=o,c.value=l,a.insertBefore(c,a.children[r]),e.setValue(t,{value:i(n,!0),items:s(n)})},items(n){const{items:r}=n.detail;for(;0!==a.length;)a.remove(0);for(const e of r){const{displayValue:t,exportValue:n}=e,r=document.createElement("option");r.textContent=t,r.value=n,a.appendChild(r)}a.options.length>0&&(a.options[0].selected=!0),e.setValue(t,{value:i(n,!0),items:s(n)})},indices(n){const r=new Set(n.detail.indices);for(const e of n.target.options)e.selected=r.has(e.index);e.setValue(t,{value:i(n,!0)})},editable(e){e.target.disabled=!e.detail.editable}};this._dispatchEventFromSandbox(r,n)})),a.addEventListener("input",(n=>{const r=i(n,!0),o=i(n,!1);e.setValue(t,{value:r}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:o,changeEx:r,willCommit:!0,commitKey:1,keyDown:!1}})})),this._setEventListeners(a,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],(e=>e.target.checked))):a.addEventListener("input",(function(n){e.setValue(t,{value:i(n,!0)})})),this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.appendChild(a),this.container}}class k extends p{constructor(e){super(e,{isRenderable:!!(e.data.titleObj?.str||e.data.contentsObj?.str||e.data.richText?.str)})}render(){if(this.container.className="popupAnnotation",["Line","Square","Circle","PolyLine","Polygon","Ink"].includes(this.data.parentType))return this.container;const e=`[data-annotation-id="${this.data.parentId}"]`,t=this.layer.querySelectorAll(e);if(0===t.length)return this.container;const n=new x({container:this.container,trigger:Array.from(t),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),o=this.page,a=r.Util.normalizeRect([this.data.parentRect[0],o.view[3]-this.data.parentRect[1]+o.view[1],this.data.parentRect[2],o.view[3]-this.data.parentRect[3]+o.view[1]]),i=a[0]+this.data.parentRect[2]-this.data.parentRect[0],s=a[1];return this.container.style.transformOrigin=`${-i}px ${-s}px`,this.container.style.left=`${i}px`,this.container.style.top=`${s}px`,this.container.appendChild(n.render()),this.container}}class x{constructor(e){this.container=e.container,this.trigger=e.trigger,this.color=e.color,this.titleObj=e.titleObj,this.modificationDate=e.modificationDate,this.contentsObj=e.contentsObj,this.richText=e.richText,this.hideWrapper=e.hideWrapper||!1,this.pinned=!1}render(){const e=document.createElement("div");e.className="popupWrapper",this.hideElement=this.hideWrapper?e:this.container,this.hideElement.hidden=!0;const t=document.createElement("div");t.className="popup";const n=this.color;if(n){const e=.7*(255-n[0])+n[0],o=.7*(255-n[1])+n[1],a=.7*(255-n[2])+n[2];t.style.backgroundColor=r.Util.makeHexColor(0|e,0|o,0|a)}const a=document.createElement("h1");a.dir=this.titleObj.dir,a.textContent=this.titleObj.str,t.appendChild(a);const i=o.PDFDateString.toDateObject(this.modificationDate);if(i){const e=document.createElement("span");e.className="popupDate",e.textContent="{{date}}, {{time}}",e.dataset.l10nId="annotation_date_string",e.dataset.l10nArgs=JSON.stringify({date:i.toLocaleDateString(),time:i.toLocaleTimeString()}),t.appendChild(e)}if(!this.richText?.str||this.contentsObj?.str&&this.contentsObj.str!==this.richText.str){const e=this._formatContents(this.contentsObj);t.appendChild(e)}else s.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:t}),t.lastChild.className="richText popupContent";Array.isArray(this.trigger)||(this.trigger=[this.trigger]);for(const e of this.trigger)e.addEventListener("click",this._toggle.bind(this)),e.addEventListener("mouseover",this._show.bind(this,!1)),e.addEventListener("mouseout",this._hide.bind(this,!1));return t.addEventListener("click",this._hide.bind(this,!0)),e.appendChild(t),e}_formatContents({str:e,dir:t}){const n=document.createElement("p");n.className="popupContent",n.dir=t;const r=e.split(/(?:\r\n?|\n)/);for(let e=0,t=r.length;e{function n(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void 0,t.ColorConverters=class{static CMYK_G([e,t,n,r]){return["G",1-Math.min(1,.3*e+.59*n+.11*t+r)]}static G_CMYK([e]){return["CMYK",0,0,0,1-e]}static G_RGB([e]){return["RGB",e,e,e]}static G_HTML([e]){const t=n(e);return`#${t}${t}${t}`}static RGB_G([e,t,n]){return["G",.3*e+.59*t+.11*n]}static RGB_HTML([e,t,r]){return`#${n(e)}${n(t)}${n(r)}`}static T_HTML(){return"#00000000"}static CMYK_RGB([e,t,n,r]){return["RGB",1-Math.min(1,e+r),1-Math.min(1,n+r),1-Math.min(1,t+r)]}static CMYK_HTML(e){return this.RGB_HTML(this.CMYK_RGB(e))}static RGB_CMYK([e,t,n]){const r=1-e,o=1-t,a=1-n;return["CMYK",r,o,a,Math.min(r,o,a)]}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0;var r=n(18);t.XfaLayer=class{static setupStorage(e,t,n,r,o){const a=r.getValue(t,{value:null});switch(n.name){case"textarea":if(null!==a.value&&(e.textContent=a.value),"print"===o)break;e.addEventListener("input",(e=>{r.setValue(t,{value:e.target.value})}));break;case"input":if("radio"===n.attributes.type||"checkbox"===n.attributes.type){if(a.value===n.attributes.xfaOn?e.setAttribute("checked",!0):a.value===n.attributes.xfaOff&&e.removeAttribute("checked"),"print"===o)break;e.addEventListener("change",(e=>{r.setValue(t,{value:e.target.checked?e.target.getAttribute("xfaOn"):e.target.getAttribute("xfaOff")})}))}else{if(null!==a.value&&e.setAttribute("value",a.value),"print"===o)break;e.addEventListener("input",(e=>{r.setValue(t,{value:e.target.value})}))}break;case"select":if(null!==a.value)for(const e of n.children)e.attributes.value===a.value&&(e.attributes.selected=!0);e.addEventListener("input",(e=>{const n=e.target.options,o=-1===n.selectedIndex?"":n[n.selectedIndex].value;r.setValue(t,{value:o})}))}}static setAttributes({html:e,element:t,storage:n=null,intent:r,linkService:o}){const{attributes:a}=t,i=e instanceof HTMLAnchorElement;"radio"===a.type&&(a.name=`${a.name}-${r}`);for(const[t,n]of Object.entries(a))if(null!=n&&"dataId"!==t)if("style"!==t)if("textContent"===t)e.textContent=n;else if("class"===t)n.length&&e.setAttribute(t,n.join(" "));else{if(i&&("href"===t||"newWindow"===t))continue;e.setAttribute(t,n)}else Object.assign(e.style,n);i&&o.addLinkAttributes(e,a.href,a.newWindow),n&&a.dataId&&this.setupStorage(e,a.dataId,t,n)}static render(e){const t=e.annotationStorage,n=e.linkService,o=e.xfaHtml,a=e.intent||"display",i=document.createElement(o.name);o.attributes&&this.setAttributes({html:i,element:o,intent:a,linkService:n});const s=[[o,-1,i]],l=e.div;if(l.appendChild(i),e.viewport){const t=`matrix(${e.viewport.transform.join(",")})`;l.style.transform=t}"richText"!==a&&l.setAttribute("class","xfaLayer xfaFont");const c=[];for(;s.length>0;){const[e,o,i]=s[s.length-1];if(o+1===e.children.length){s.pop();continue}const l=e.children[++s[s.length-1][1]];if(null===l)continue;const{name:u}=l;if("#text"===u){const e=document.createTextNode(l.value);c.push(e),i.appendChild(e);continue}let d;if(d=l?.attributes?.xmlns?document.createElementNS(l.attributes.xmlns,u):document.createElement(u),i.appendChild(d),l.attributes&&this.setAttributes({html:d,element:l,storage:t,intent:a,linkService:n}),l.children&&l.children.length>0)s.push([l,-1,d]);else if(l.value){const e=document.createTextNode(l.value);r.XfaText.shouldBuildText(u)&&c.push(e),d.appendChild(e)}}for(const e of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))e.setAttribute("readOnly",!0);return{textDivs:c}}static update(e){const t=`matrix(${e.viewport.transform.join(",")})`;e.div.style.transform=t,e.div.hidden=!1}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.renderTextLayer=function(e){const t=new d({textContent:e.textContent,textContentStream:e.textContentStream,container:e.container,viewport:e.viewport,textDivs:e.textDivs,textContentItemsStr:e.textContentItemsStr,enhanceTextSelection:e.enhanceTextSelection});return t._render(e.timeout),t};var r=n(1);const o=30,a=new Map,i=/^\s+$/g;function s(e,t,n,s){const l=document.createElement("span"),c=e._enhanceTextSelection?{angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1}:{angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL};e._textDivs.push(l);const u=r.Util.transform(e._viewport.transform,t.transform);let d=Math.atan2(u[1],u[0]);const p=n[t.fontName];p.vertical&&(d+=Math.PI/2);const h=Math.hypot(u[2],u[3]),f=h*function(e,t){const n=a.get(e);if(n)return n;t.save(),t.font=`30px ${e}`;const r=t.measureText("");let i=r.fontBoundingBoxAscent,s=Math.abs(r.fontBoundingBoxDescent);if(i){t.restore();const n=i/(i+s);return a.set(e,n),n}t.strokeStyle="red",t.clearRect(0,0,o,o),t.strokeText("g",0,0);let l=t.getImageData(0,0,o,o).data;s=0;for(let e=l.length-1-3;e>=0;e-=4)if(l[e]>0){s=Math.ceil(e/4/o);break}t.clearRect(0,0,o,o),t.strokeText("A",0,o),l=t.getImageData(0,0,o,o).data,i=0;for(let e=0,t=l.length;e0){i=o-Math.floor(e/4/o);break}if(t.restore(),i){const t=i/(i+s);return a.set(e,t),t}return a.set(e,.8),.8}(p.fontFamily,s);let m,g;0===d?(m=u[4],g=u[5]-f):(m=u[4]+f*Math.sin(d),g=u[5]-f*Math.cos(d)),l.style.left=`${m}px`,l.style.top=`${g}px`,l.style.fontSize=`${h}px`,l.style.fontFamily=p.fontFamily,l.setAttribute("role","presentation"),l.textContent=t.str,l.dir=t.dir,e._fontInspectorEnabled&&(l.dataset.fontName=t.fontName),0!==d&&(c.angle=d*(180/Math.PI));let b=!1;if(t.str.length>1||e._enhanceTextSelection&&i.test(t.str))b=!0;else if(" "!==t.str&&t.transform[0]!==t.transform[3]){const e=Math.abs(t.transform[0]),n=Math.abs(t.transform[3]);e!==n&&Math.max(e,n)/Math.min(e,n)>1.5&&(b=!0)}if(b&&(p.vertical?c.canvasWidth=t.height*e._viewport.scale:c.canvasWidth=t.width*e._viewport.scale),e._textDivProperties.set(l,c),e._textContentStream&&e._layoutText(l),e._enhanceTextSelection&&c.hasText){let n=1,o=0;0!==d&&(n=Math.cos(d),o=Math.sin(d));const a=(p.vertical?t.height:t.width)*e._viewport.scale,i=h;let s,c;0!==d?(s=[n,o,-o,n,m,g],c=r.Util.getAxialAlignedBoundingBox([0,0,a,i],s)):c=[m,g,m+a,g+i],e._bounds.push({left:c[0],top:c[1],right:c[2],bottom:c[3],div:l,size:[a,i],m:s})}}function l(e){if(e._canceled)return;const t=e._textDivs,n=e._capability,r=t.length;if(r>1e5)return e._renderingDone=!0,void n.resolve();if(!e._textContentStream)for(let n=0;n0&&(r=r?Math.min(n,r):n)}return r}function u(e,t){t.sort((function(e,t){return e.x1-t.x1||e.index-t.index}));const n=[{start:-1/0,end:1/0,boundary:{x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0}}];for(const e of t){let t=0;for(;t=0&&n[a].start>=e.y2;)a--;let i,s,l=-1/0;for(i=t;i<=a;i++){let t;r=n[i],o=r.boundary,t=o.x2>e.x1?o.index>e.index?o.x1New:e.x1:void 0===o.x2New?(o.x2+e.x1)/2:o.x2New,t>l&&(l=t)}for(e.x1New=l,i=t;i<=a;i++)r=n[i],o=r.boundary,void 0===o.x2New?o.x2>e.x1?o.index>e.index&&(o.x2New=o.x2):o.x2New=l:o.x2New>l&&(o.x2New=Math.max(l,o.x2));const c=[];let u=null;for(i=t;i<=a;i++){r=n[i],o=r.boundary;const t=o.x2>e.x2?o:e;u===t?c[c.length-1].end=r.end:(c.push({start:r.start,end:r.end,boundary:t}),u=t)}for(n[t].start=0&&n[s].start>=o.y1;s--)e=n[s].boundary===o;for(s=a+1;!e&&s{this._enhanceTextSelection||(this._textDivProperties=null),this._layoutTextCtx&&(this._layoutTextCtx.canvas.width=0,this._layoutTextCtx.canvas.height=0,this._layoutTextCtx=null)})).catch((()=>{}))}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new r.AbortException("TextLayer task cancelled.")).catch((()=>{})),this._reader=null),null!==this._renderTimer&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))}_processItems(e,t){for(let n=0,r=e.length;n0){const e=t.canvasWidth/a;this._enhanceTextSelection&&(t.scale=e),n=`scaleX(${e})`}}if(0!==t.angle&&(n=`rotate(${t.angle}deg) ${n}`),n.length>0&&(this._enhanceTextSelection&&(t.originalTransform=n),e.style.transform=n),t.hasText&&this._container.appendChild(e),t.hasEOL){const e=document.createElement("br");e.setAttribute("role","presentation"),this._container.appendChild(e)}}_render(e=0){const t=(0,r.createPromiseCapability)();let n=Object.create(null);const a=this._document.createElement("canvas");if(a.height=a.width=o,this._layoutTextCtx=a.getContext("2d",{alpha:!1}),this._textContent){const e=this._textContent.items,n=this._textContent.styles;this._processItems(e,n),t.resolve()}else{if(!this._textContentStream)throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');{const e=()=>{this._reader.read().then((({value:r,done:o})=>{o?t.resolve():(Object.assign(n,r.styles),this._processItems(r.items,n),e())}),t.reject)};this._reader=this._textContentStream.getReader(),e()}}t.promise.then((()=>{n=null,e?this._renderTimer=setTimeout((()=>{l(this),this._renderTimer=null}),e):l(this)}),this._capability.reject)}expandTextDivs(e=!1){if(!this._enhanceTextSelection||!this._renderingDone)return;null!==this._bounds&&(function(e){const t=e._bounds,n=e._viewport,o=function(e,t,n){const r=n.map((function(e,t){return{x1:e.left,y1:e.top,x2:e.right,y2:e.bottom,index:t,x1New:void 0,x2New:void 0}}));u(e,r);const o=new Array(n.length);for(const e of r){const t=e.index;o[t]={left:e.x1New,top:0,right:e.x2New,bottom:0}}n.map((function(t,n){const a=o[n],i=r[n];i.x1=t.top,i.y1=e-a.right,i.x2=t.bottom,i.y2=e-a.left,i.index=n,i.x1New=void 0,i.x2New=void 0})),u(t,r);for(const e of r){const t=e.index;o[t].top=e.x1New,o[t].bottom=e.x2New}return o}(n.width,n.height,t);for(let n=0;n0?(n.push(`${a.paddingTop}px`),t.push(`translateY(${-a.paddingTop}px)`)):n.push(0),a.paddingRight>0?n.push(a.paddingRight/a.scale+"px"):n.push(0),a.paddingBottom>0?n.push(`${a.paddingBottom}px`):n.push(0),a.paddingLeft>0?(n.push(a.paddingLeft/a.scale+"px"),t.push(`translateX(${-a.paddingLeft/a.scale}px)`)):n.push(0),o.style.padding=n.join(" "),t.length&&(o.style.transform=t.join(" "))):(o.style.padding=null,o.style.transform=a.originalTransform))}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var r=n(1),o=n(5),a=n(3);let i=class{constructor(){(0,r.unreachable)("Not implemented: SVGGraphics")}};t.SVGGraphics=i;{const s={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},l="http://www.w3.org/XML/1998/namespace",c="http://www.w3.org/1999/xlink",u=["butt","round","square"],d=["miter","round","bevel"],p=function(e,t="",n=!1){if(URL.createObjectURL&&"undefined"!=typeof Blob&&!n)return URL.createObjectURL(new Blob([e],{type:t}));const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let o=`data:${t};base64,`;for(let t=0,n=e.length;t>2]+r[(3&a)<<4|i>>4]+r[t+1>6:64]+r[t+2>1&2147483647:n>>1&2147483647;t[e]=n}function n(e,n,r,o){let a=o;const i=n.length;r[a]=i>>24&255,r[a+1]=i>>16&255,r[a+2]=i>>8&255,r[a+3]=255&i,a+=4,r[a]=255&e.charCodeAt(0),r[a+1]=255&e.charCodeAt(1),r[a+2]=255&e.charCodeAt(2),r[a+3]=255&e.charCodeAt(3),a+=4,r.set(n,a),a+=n.length;const s=function(e,n,r){let o=-1;for(let a=n;a>>8^t[n]}return-1^o}(r,o+4,a);r[a]=s>>24&255,r[a+1]=s>>16&255,r[a+2]=s>>8&255,r[a+3]=255&s}function o(e){let t=e.length;const n=65535,r=Math.ceil(t/n),o=new Uint8Array(2+t+5*r+4);let a=0;o[a++]=120,o[a++]=156;let i=0;for(;t>n;)o[a++]=0,o[a++]=255,o[a++]=255,o[a++]=0,o[a++]=0,o.set(e.subarray(i,i+n),a),a+=n,i+=n,t-=n;o[a++]=1,o[a++]=255&t,o[a++]=t>>8&255,o[a++]=255&~t,o[a++]=(65535&~t)>>8&255,o.set(e.subarray(i),a),a+=e.length-i;const s=function(e,t,n){let r=1,o=0;for(let t=0;t>24&255,o[a++]=s>>16&255,o[a++]=s>>8&255,o[a++]=255&s,o}return function(t,i,s){return function(t,i,s,l){const c=t.width,u=t.height;let d,h,f;const m=t.data;switch(i){case r.ImageKind.GRAYSCALE_1BPP:h=0,d=1,f=c+7>>3;break;case r.ImageKind.RGB_24BPP:h=2,d=8,f=3*c;break;case r.ImageKind.RGBA_32BPP:h=6,d=8,f=4*c;break;default:throw new Error("invalid format")}const g=new Uint8Array((1+f)*u);let b=0,v=0;for(let e=0;e>24&255,c>>16&255,c>>8&255,255&c,u>>24&255,u>>16&255,u>>8&255,255&u,d,h,0,0,0]),_=function(e){if(!a.isNodeJS)return o(e);try{let t;t=parseInt(process.versions.node)>=8?e:Buffer.from(e);const n=__webpack_require__(2258).deflateSync(t,{level:9});return n instanceof Uint8Array?n:new Uint8Array(n)}catch(e){(0,r.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+e)}return o(e)}(g),k=e.length+36+y.length+_.length,x=new Uint8Array(k);let w=0;return x.set(e,w),w+=e.length,n("IHDR",y,x,w),w+=12+y.length,n("IDATA",_,x,w),w+=12+_.length,n("IEND",new Uint8Array(0),x,w),p(x,"image/png",s)}(t,void 0===t.kind?r.ImageKind.GRAYSCALE_1BPP:t.kind,i,s)}}();class f{constructor(){this.fontSizeScale=1,this.fontWeight=s.fontWeight,this.fontSize=0,this.textMatrix=r.IDENTITY_MATRIX,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=r.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=s.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(e,t){this.x=e,this.y=t}}function m(e){let t=[];const n=[];for(const r of e)"save"!==r.fn?"restore"===r.fn?t=n.pop():t.push(r):(t.push({fnId:92,fn:"group",items:[]}),n.push(t),t=t[t.length-1].items);return t}function g(e){if(Number.isInteger(e))return e.toString();const t=e.toFixed(10);let n=t.length-1;if("0"!==t[n])return t;do{n--}while("0"===t[n]);return t.substring(0,"."===t[n]?n:n+1)}function b(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":`scale(${g(e[0])} ${g(e[3])})`;if(e[0]===e[3]&&e[1]===-e[2])return`rotate(${g(180*Math.acos(e[0])/Math.PI)})`}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return`translate(${g(e[4])} ${g(e[5])})`;return`matrix(${g(e[0])} ${g(e[1])} ${g(e[2])} ${g(e[3])} ${g(e[4])} ${g(e[5])})`}let v=0,y=0,_=0;t.SVGGraphics=i=class{constructor(e,t,n=!1){this.svgFactory=new o.DOMSVGFactory,this.current=new f,this.transformMatrix=r.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!n,this._operatorIdMapping=[];for(const e in r.OPS)this._operatorIdMapping[r.OPS[e]]=e}save(){this.transformStack.push(this.transformMatrix);const e=this.current;this.extraStack.push(e),this.current=e.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(e){this.save(),this.executeOpTree(e),this.restore()}loadDependencies(e){const t=e.fnArray,n=e.argsArray;for(let e=0,o=t.length;e{e.get(t,n)}));this.current.dependencies.push(n)}return Promise.all(this.current.dependencies)}transform(e,t,n,o,a,i){const s=[e,t,n,o,a,i];this.transformMatrix=r.Util.transform(this.transformMatrix,s),this.tgrp=null}getSVG(e,t){this.viewport=t;const n=this._initialize(t);return this.loadDependencies(e).then((()=>(this.transformMatrix=r.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(e)),n)))}convertOpList(e){const t=this._operatorIdMapping,n=e.argsArray,r=e.fnArray,o=[];for(let e=0,a=r.length;e0&&(this.current.lineWidth=e)}setLineCap(e){this.current.lineCap=u[e]}setLineJoin(e){this.current.lineJoin=d[e]}setMiterLimit(e){this.current.miterLimit=e}setStrokeAlpha(e){this.current.strokeAlpha=e}setStrokeRGBColor(e,t,n){this.current.strokeColor=r.Util.makeHexColor(e,t,n)}setFillAlpha(e){this.current.fillAlpha=e}setFillRGBColor(e,t,n){this.current.fillColor=r.Util.makeHexColor(e,t,n),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(e){this.current.strokeColor=this._makeColorN_Pattern(e)}setFillColorN(e){this.current.fillColor=this._makeColorN_Pattern(e)}shadingFill(e){const t=this.viewport.width,n=this.viewport.height,o=r.Util.inverseTransform(this.transformMatrix),a=r.Util.applyTransform([0,0],o),i=r.Util.applyTransform([0,n],o),s=r.Util.applyTransform([t,0],o),l=r.Util.applyTransform([t,n],o),c=Math.min(a[0],i[0],s[0],l[0]),u=Math.min(a[1],i[1],s[1],l[1]),d=Math.max(a[0],i[0],s[0],l[0]),p=Math.max(a[1],i[1],s[1],l[1]),h=this.svgFactory.createElement("svg:rect");h.setAttributeNS(null,"x",c),h.setAttributeNS(null,"y",u),h.setAttributeNS(null,"width",d-c),h.setAttributeNS(null,"height",p-u),h.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&h.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(h)}_makeColorN_Pattern(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}_makeTilingPattern(e){const t=e[1],n=e[2],o=e[3]||r.IDENTITY_MATRIX,[a,i,s,l]=e[4],c=e[5],u=e[6],d=e[7],p="shading"+_++,[h,f,m,g]=r.Util.normalizeRect([...r.Util.applyTransform([a,i],o),...r.Util.applyTransform([s,l],o)]),[b,v]=r.Util.singularValueDecompose2dScale(o),y=c*b,k=u*v,x=this.svgFactory.createElement("svg:pattern");x.setAttributeNS(null,"id",p),x.setAttributeNS(null,"patternUnits","userSpaceOnUse"),x.setAttributeNS(null,"width",y),x.setAttributeNS(null,"height",k),x.setAttributeNS(null,"x",`${h}`),x.setAttributeNS(null,"y",`${f}`);const w=this.svg,S=this.transformMatrix,A=this.current.fillColor,C=this.current.strokeColor,E=this.svgFactory.create(m-h,g-f);if(this.svg=E,this.transformMatrix=o,2===d){const e=r.Util.makeHexColor(...t);this.current.fillColor=e,this.current.strokeColor=e}return this.executeOpTree(this.convertOpList(n)),this.svg=w,this.transformMatrix=S,this.current.fillColor=A,this.current.strokeColor=C,x.appendChild(E.childNodes[0]),this.defs.appendChild(x),`url(#${p})`}_makeShadingPattern(e){switch("string"==typeof e&&(e=this.objs.get(e)),e[0]){case"RadialAxial":const t="shading"+_++,n=e[3];let o;switch(e[1]){case"axial":const n=e[4],r=e[5];o=this.svgFactory.createElement("svg:linearGradient"),o.setAttributeNS(null,"id",t),o.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),o.setAttributeNS(null,"x1",n[0]),o.setAttributeNS(null,"y1",n[1]),o.setAttributeNS(null,"x2",r[0]),o.setAttributeNS(null,"y2",r[1]);break;case"radial":const a=e[4],i=e[5],s=e[6],l=e[7];o=this.svgFactory.createElement("svg:radialGradient"),o.setAttributeNS(null,"id",t),o.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),o.setAttributeNS(null,"cx",i[0]),o.setAttributeNS(null,"cy",i[1]),o.setAttributeNS(null,"r",l),o.setAttributeNS(null,"fx",a[0]),o.setAttributeNS(null,"fy",a[1]),o.setAttributeNS(null,"fr",s);break;default:throw new Error(`Unknown RadialAxial type: ${e[1]}`)}for(const e of n){const t=this.svgFactory.createElement("svg:stop");t.setAttributeNS(null,"offset",e[0]),t.setAttributeNS(null,"stop-color",e[1]),o.appendChild(t)}return this.defs.appendChild(o),`url(#${t})`;case"Mesh":return(0,r.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${e[0]}`)}}setDash(e,t){this.current.dashArray=e,this.current.dashPhase=t}constructPath(e,t){const n=this.current;let o=n.x,a=n.y,i=[],s=0;for(const n of e)switch(0|n){case r.OPS.rectangle:o=t[s++],a=t[s++];const e=o+t[s++],n=a+t[s++];i.push("M",g(o),g(a),"L",g(e),g(a),"L",g(e),g(n),"L",g(o),g(n),"Z");break;case r.OPS.moveTo:o=t[s++],a=t[s++],i.push("M",g(o),g(a));break;case r.OPS.lineTo:o=t[s++],a=t[s++],i.push("L",g(o),g(a));break;case r.OPS.curveTo:o=t[s+4],a=t[s+5],i.push("C",g(t[s]),g(t[s+1]),g(t[s+2]),g(t[s+3]),g(o),g(a)),s+=6;break;case r.OPS.curveTo2:i.push("C",g(o),g(a),g(t[s]),g(t[s+1]),g(t[s+2]),g(t[s+3])),o=t[s+2],a=t[s+3],s+=4;break;case r.OPS.curveTo3:o=t[s+2],a=t[s+3],i.push("C",g(t[s]),g(t[s+1]),g(o),g(a),g(o),g(a)),s+=4;break;case r.OPS.closePath:i.push("Z")}i=i.join(" "),n.path&&e.length>0&&e[0]!==r.OPS.rectangle&&e[0]!==r.OPS.moveTo?i=n.path.getAttributeNS(null,"d")+i:(n.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(n.path)),n.path.setAttributeNS(null,"d",i),n.path.setAttributeNS(null,"fill","none"),n.element=n.path,n.setCurrentPoint(o,a)}endPath(){const e=this.current;if(e.path=null,!this.pendingClip)return;if(!e.element)return void(this.pendingClip=null);const t="clippath"+v++,n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",t),n.setAttributeNS(null,"transform",b(this.transformMatrix));const r=e.element.cloneNode(!0);if("evenodd"===this.pendingClip?r.setAttributeNS(null,"clip-rule","evenodd"):r.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,n.appendChild(r),this.defs.appendChild(n),e.activeClipUrl){e.clipGroup=null;for(const e of this.extraStack)e.clipGroup=null;n.setAttributeNS(null,"clip-path",e.activeClipUrl)}e.activeClipUrl=`url(#${t})`,this.tgrp=null}clip(e){this.pendingClip=e}closePath(){const e=this.current;if(e.path){const t=`${e.path.getAttributeNS(null,"d")}Z`;e.path.setAttributeNS(null,"d",t)}}setLeading(e){this.current.leading=-e}setTextRise(e){this.current.textRise=e}setTextRenderingMode(e){this.current.textRenderingMode=e}setHScale(e){this.current.textHScale=e/100}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,n]of e)switch(t){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n);break;case"CA":this.setStrokeAlpha(n);break;case"ca":this.setFillAlpha(n);break;default:(0,r.warn)(`Unimplemented graphic state operator ${t}`)}}fill(){const e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}stroke(){const e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(e,t=1){const n=this.current;let r=n.dashArray;1!==t&&r.length>0&&(r=r.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",n.strokeColor),e.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",g(n.miterLimit)),e.setAttributeNS(null,"stroke-linecap",n.lineCap),e.setAttributeNS(null,"stroke-linejoin",n.lineJoin),e.setAttributeNS(null,"stroke-width",g(t*n.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",r.map(g).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",g(t*n.dashPhase)+"px")}eoFill(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(e)}paintImageXObject(e){const t=e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e);t?this.paintInlineImageXObject(t):(0,r.warn)(`Dependent image with object ID ${e} is not ready yet`)}paintInlineImageXObject(e,t){const n=e.width,r=e.height,o=h(e,this.forceDataSchema,!!t),a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",g(n)),a.setAttributeNS(null,"height",g(r)),this.current.element=a,this.clip("nonzero");const i=this.svgFactory.createElement("svg:image");i.setAttributeNS(c,"xlink:href",o),i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y",g(-r)),i.setAttributeNS(null,"width",g(n)+"px"),i.setAttributeNS(null,"height",g(r)+"px"),i.setAttributeNS(null,"transform",`scale(${g(1/n)} ${g(-1/r)})`),t?t.appendChild(i):this._ensureTransformGroup().appendChild(i)}paintImageMaskXObject(e){const t=this.current,n=e.width,r=e.height,o=t.fillColor;t.maskId="mask"+y++;const a=this.svgFactory.createElement("svg:mask");a.setAttributeNS(null,"id",t.maskId);const i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x","0"),i.setAttributeNS(null,"y","0"),i.setAttributeNS(null,"width",g(n)),i.setAttributeNS(null,"height",g(r)),i.setAttributeNS(null,"fill",o),i.setAttributeNS(null,"mask",`url(#${t.maskId})`),this.defs.appendChild(a),this._ensureTransformGroup().appendChild(i),this.paintInlineImageXObject(e,a)}paintFormXObjectBegin(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){const e=t[2]-t[0],n=t[3]-t[1],r=this.svgFactory.createElement("svg:rect");r.setAttributeNS(null,"x",t[0]),r.setAttributeNS(null,"y",t[1]),r.setAttributeNS(null,"width",g(e)),r.setAttributeNS(null,"height",g(n)),this.current.element=r,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(e){const t=this.svgFactory.create(e.width,e.height),n=this.svgFactory.createElement("svg:defs");t.appendChild(n),this.defs=n;const r=this.svgFactory.createElement("svg:g");return r.setAttributeNS(null,"transform",b(e.transform)),t.appendChild(r),this.svg=r,t}_ensureClipGroup(){if(!this.current.clipGroup){const e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(e),this.current.clipGroup=e}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",b(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var r=n(1),o=n(26);const a=__webpack_require__(172),i=__webpack_require__(2001),s=__webpack_require__(3779),l=__webpack_require__(6558),c=/^file:\/\/\/[a-zA-Z]:\//;t.PDFNodeStream=class{constructor(e){this.source=e,this.url=function(e){const t=l.parse(e);return"file:"===t.protocol||t.host?t:/^[a-z]:[/\\]/i.test(e)?l.parse(`file:///${e}`):(t.host||(t.protocol="file:"),t)}(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new m(this):new h(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=this.isFsUrl?new g(this,e,t):new f(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class u{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=(0,r.createPromiseCapability)(),this._headersCapability=(0,r.createPromiseCapability)()}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return null===e?(this._readCapability=(0,r.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new r.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class d{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,r.createPromiseCapability)();const t=e.source;this._isStreamingSupported=!t.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return null===e?(this._readCapability=(0,r.createPromiseCapability)(),this.read()):(this._loaded+=e.length,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}function p(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class h extends u{constructor(e){super(e);const t=t=>{if(404===t.statusCode){const e=new r.MissingPDFException(`Missing PDF "${this._url}".`);return this._storedError=e,void this._headersCapability.reject(e)}this._headersCapability.resolve(),this._setReadableStream(t);const n=e=>this._readableStream.headers[e.toLowerCase()],{allowRangeRequests:a,suggestedLength:i}=(0,o.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=i||this._contentLength,this._filename=(0,o.extractFilenameFromHeader)(n)};this._request=null,"http:"===this._url.protocol?this._request=i.request(p(this._url,e.httpHeaders),t):this._request=s.request(p(this._url,e.httpHeaders),t),this._request.on("error",(e=>{this._storedError=e,this._headersCapability.reject(e)})),this._request.end()}}class f extends d{constructor(e,t,n){super(e),this._httpHeaders={};for(const t in e.httpHeaders){const n=e.httpHeaders[t];void 0!==n&&(this._httpHeaders[t]=n)}this._httpHeaders.Range=`bytes=${t}-${n-1}`;const o=e=>{if(404!==e.statusCode)this._setReadableStream(e);else{const e=new r.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=e}};this._request=null,"http:"===this._url.protocol?this._request=i.request(p(this._url,this._httpHeaders),o):this._request=s.request(p(this._url,this._httpHeaders),o),this._request.on("error",(e=>{this._storedError=e})),this._request.end()}}class m extends u{constructor(e){super(e);let t=decodeURIComponent(this._url.path);c.test(this._url.href)&&(t=t.replace(/^\//,"")),a.lstat(t,((e,n)=>{if(e)return"ENOENT"===e.code&&(e=new r.MissingPDFException(`Missing PDF "${t}".`)),this._storedError=e,void this._headersCapability.reject(e);this._contentLength=n.size,this._setReadableStream(a.createReadStream(t)),this._headersCapability.resolve()}))}}class g extends d{constructor(e,t,n){super(e);let r=decodeURIComponent(this._url.path);c.test(this._url.href)&&(r=r.replace(/^\//,"")),this._setReadableStream(a.createReadStream(r,{start:t,end:n-1}))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new r.MissingPDFException('Missing PDF "'+t+'".'):new r.UnexpectedResponseException(`Unexpected server response (${e}) while retrieving PDF "${t}".`,e)},t.extractFilenameFromHeader=function(e){const t=e("Content-Disposition");if(t){let e=(0,o.getFilenameFromContentDispositionHeader)(t);if(e.includes("%"))try{e=decodeURIComponent(e)}catch(e){}if((0,a.isPdfFile)(e))return e}return null},t.validateRangeRequestCapabilities=function({getResponseHeader:e,isHttp:t,rangeChunkSize:n,disableRange:r}){const o={allowRangeRequests:!1,suggestedLength:void 0},a=parseInt(e("Content-Length"),10);return Number.isInteger(a)?(o.suggestedLength=a,a<=2*n||r||!t||"bytes"!==e("Accept-Ranges")||"identity"!==(e("Content-Encoding")||"identity")||(o.allowRangeRequests=!0),o):o},t.validateResponseStatus=function(e){return 200===e||206===e};var r=n(1),o=n(27),a=n(5)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){let t=!0,n=o("filename\\*","i").exec(e);if(n){n=n[1];let e=s(n);return e=unescape(e),e=l(e),e=c(e),i(e)}if(n=function(e){const t=[];let n;const r=o("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(n=r.exec(e));){let[,e,r,o]=n;if(e=parseInt(e,10),e in t){if(0===e)break}else t[e]=[r,o]}const a=[];for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var r=n(1),o=n(26);class a{constructor(e,t={}){this.url=e,this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&t.httpHeaders||Object.create(null),this.withCredentials=t.withCredentials||!1,this.getXhr=t.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,t,n){const r={begin:e,end:t};for(const e in n)r[e]=n[e];return this.request(r)}requestFull(e){return this.request(e)}request(e){const t=this.getXhr(),n=this.currXhrId++,r=this.pendingRequests[n]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(const e in this.httpHeaders){const n=this.httpHeaders[e];void 0!==n&&t.setRequestHeader(e,n)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),r.expectedStatus=206):r.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(n){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,n),t.onprogress=this.onProgress.bind(this,n),r.onHeadersReceived=e.onHeadersReceived,r.onDone=e.onDone,r.onError=e.onError,r.onProgress=e.onProgress,t.send(null),n}onProgress(e,t){const n=this.pendingRequests[e];n&&n.onProgress?.(t)}onStateChange(e,t){const n=this.pendingRequests[e];if(!n)return;const o=n.xhr;if(o.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4!==o.readyState)return;if(!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],0===o.status&&this.isHttp)return void n.onError?.(o.status);const a=o.status||200;if((200!==a||206!==n.expectedStatus)&&a!==n.expectedStatus)return void n.onError?.(o.status);const i=function(e){const t=e.response;return"string"!=typeof t?t:(0,r.stringToBytes)(t).buffer}(o);if(206===a){const e=o.getResponseHeader("Content-Range"),t=/bytes (\d+)-(\d+)\/(\d+)/.exec(e);n.onDone({begin:parseInt(t[1],10),chunk:i})}else i?n.onDone({begin:0,chunk:i}):n.onError?.(o.status)}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){const t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}t.PDFNetworkStream=class{constructor(e){this._source=e,this._manager=new a(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new i(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){const n=new s(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class i{constructor(e,t){this._manager=e;const n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._fullRequestId=e.requestFull(n),this._headersReceivedCapability=(0,r.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const e=this._fullRequestId,t=this._manager.getRequestXhr(e),n=e=>t.getResponseHeader(e),{allowRangeRequests:r,suggestedLength:a}=(0,o.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});r&&(this._isRangeSupported=!0),this._contentLength=a||this._contentLength,this._filename=(0,o.extractFilenameFromHeader)(n),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=(0,o.createResponseStatusError)(e,this._url),this._headersReceivedCapability.reject(this._storedError);for(const e of this._requests)e.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){this.onProgress?.({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e);for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class s{constructor(e,t,n){this._manager=e;const r={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._requestId=e.requestRange(t,n,r),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){this.onClosed?.(this)}_onDone(e){const t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError=(0,o.createResponseStatusError)(e,this._url);for(const e of this._requests)e.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){this.isStreamingSupported||this.onProgress?.({loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(null!==this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=(0,r.createPromiseCapability)();return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var r=n(1),o=n(26);function a(e,t,n){return{method:"GET",headers:e,signal:n?.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function i(e){const t=new Headers;for(const n in e){const r=e[n];void 0!==r&&t.append(n,r)}return t}t.PDFFetchStream=class{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new s(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new l(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader&&this._fullRequestReader.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class s{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;const t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=(0,r.createPromiseCapability)(),this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=i(this._stream.httpHeaders);const n=t.url;fetch(n,a(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,o.validateResponseStatus)(e.status))throw(0,o.createResponseStatusError)(e.status,n);this._reader=e.body.getReader(),this._headersCapability.resolve();const t=t=>e.headers.get(t),{allowRangeRequests:a,suggestedLength:i}=(0,o.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=i||this._contentLength,this._filename=(0,o.extractFilenameFromHeader)(t),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new r.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}class l{constructor(e,t,n){this._stream=e,this._reader=null,this._loaded=0;const s=e.source;this._withCredentials=s.withCredentials||!1,this._readCapability=(0,r.createPromiseCapability)(),this._isStreamingSupported=!s.disableStream,"undefined"!=typeof AbortController&&(this._abortController=new AbortController),this._headers=i(this._stream.httpHeaders),this._headers.append("Range",`bytes=${t}-${n-1}`);const l=s.url;fetch(l,a(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,o.validateResponseStatus)(e.status))throw(0,o.createResponseStatusError)(e.status,l);this._readCapability.resolve(),this._reader=e.body.getReader()})).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._reader&&this._reader.cancel(e),this._abortController&&this._abortController.abort()}}}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__w_pdfjs_require__),n.exports}var __webpack_exports__={};return(()=>{var e=__webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return o.AnnotationLayer}}),Object.defineProperty(e,"AnnotationMode",{enumerable:!0,get:function(){return t.AnnotationMode}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return t.CMapCompressionType}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return a.GlobalWorkerOptions}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return t.InvalidPDFException}}),Object.defineProperty(e,"LoopbackPort",{enumerable:!0,get:function(){return n.LoopbackPort}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return t.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return t.OPS}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return n.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return r.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return n.PDFWorker}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return t.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return t.PermissionFlag}}),Object.defineProperty(e,"PixelsPerInch",{enumerable:!0,get:function(){return r.PixelsPerInch}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return r.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return l.SVGGraphics}}),Object.defineProperty(e,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return t.UNSUPPORTED_FEATURES}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return t.UnexpectedResponseException}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return t.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return t.VerbosityLevel}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return c.XfaLayer}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return n.build}}),Object.defineProperty(e,"createPromiseCapability",{enumerable:!0,get:function(){return t.createPromiseCapability}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return n.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return r.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return r.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return r.getXfaPageViewport}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return r.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return r.loadScript}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return s.renderTextLayer}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return t.shadow}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return n.version}});var t=__w_pdfjs_require__(1),n=__w_pdfjs_require__(4),r=__w_pdfjs_require__(5),o=__w_pdfjs_require__(20),a=__w_pdfjs_require__(13),i=__w_pdfjs_require__(3),s=__w_pdfjs_require__(23),l=__w_pdfjs_require__(24),c=__w_pdfjs_require__(22);if(i.isNodeJS){const{PDFNodeStream:e}=__w_pdfjs_require__(25);(0,n.setPDFNetworkStreamFactory)((t=>new e(t)))}else{const{PDFNetworkStream:e}=__w_pdfjs_require__(28),{PDFFetchStream:t}=__w_pdfjs_require__(29);(0,n.setPDFNetworkStreamFactory)((n=>(0,r.isValidFetchUrl)(n.url)?new t(n):new e(n)))}})(),__webpack_exports__})(),module.exports=factory()},5088:(e,t,n)=>{"use strict";n.r(t),n.d(t,{animateFill:()=>ne,createSingleton:()=>Q,default:()=>ue,delegate:()=>te,followCursor:()=>ie,hideAll:()=>Z,inlinePositioning:()=>se,roundArrow:()=>a,sticky:()=>le});var r=n(804),o=n(7824),a='',i="tippy-content",s="tippy-backdrop",l="tippy-arrow",c="tippy-svg-arrow",u={passive:!0,capture:!0},d=function(){return document.body};function p(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function h(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function f(e,t){return"function"==typeof e?e.apply(void 0,t):e}function m(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function g(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}function b(e){return[].concat(e)}function v(e,t){-1===e.indexOf(t)&&e.push(t)}function y(e){return e.split("-")[0]}function _(e){return[].slice.call(e)}function k(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function x(){return document.createElement("div")}function w(e){return["Element","Fragment"].some((function(t){return h(e,t)}))}function S(e){return h(e,"MouseEvent")}function A(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function C(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function E(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function T(e){var t,n=b(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function O(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function P(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var D={isTouch:!1},R=0;function L(){D.isTouch||(D.isTouch=!0,window.performance&&document.addEventListener("mousemove",I))}function I(){var e=performance.now();e-R<20&&(D.isTouch=!1,document.removeEventListener("mousemove",I)),R=e}function M(){var e=document.activeElement;if(A(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var F=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),N=Object.assign({appendTo:d,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),j=Object.keys(N);function $(e){var t=(e.plugins||[]).reduce((function(t,n){var r,o=n.name,a=n.defaultValue;return o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=N[o])?r:a),t}),{});return Object.assign({},e,t)}function H(e,t){var n=Object.assign({},t,{content:f(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys($(Object.assign({},N,{plugins:t}))):j).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},N.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function q(e,t){e.innerHTML=t}function U(e){var t=x();return!0===e?t.className=l:(t.className=c,w(e)?t.appendChild(e):q(t,e)),t}function B(e,t){w(t.content)?(q(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?q(e,t.content):e.textContent=t.content)}function V(e){var t=e.firstElementChild,n=_(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(i)})),arrow:n.find((function(e){return e.classList.contains(l)||e.classList.contains(c)})),backdrop:n.find((function(e){return e.classList.contains(s)}))}}function z(e){var t=x(),n=x();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=x();function o(n,r){var o=V(t),a=o.box,i=o.content,s=o.arrow;r.theme?a.setAttribute("data-theme",r.theme):a.removeAttribute("data-theme"),"string"==typeof r.animation?a.setAttribute("data-animation",r.animation):a.removeAttribute("data-animation"),r.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?a.setAttribute("role",r.role):a.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||B(i,e.props),r.arrow?s?n.arrow!==r.arrow&&(a.removeChild(s),a.appendChild(U(r.arrow))):a.appendChild(U(r.arrow)):s&&a.removeChild(s)}return r.className=i,r.setAttribute("data-state","hidden"),B(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}z.$$tippy=!0;var W=1,G=[],Y=[];function X(e,t){var n,o,a,i,s,l,c,h,g=H(e,Object.assign({},N,$(k(t)))),w=!1,A=!1,R=!1,L=!1,I=[],M=m(_e,g.interactiveDebounce),j=W++,q=(h=g.plugins).filter((function(e,t){return h.indexOf(e)===t})),U={id:j,reference:e,popper:x(),popperInstance:null,props:g,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:q,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(o),cancelAnimationFrame(a)},setProps:function(t){if(!U.state.isDestroyed){ie("onBeforeUpdate",[U,t]),ve();var n=U.props,r=H(e,Object.assign({},n,k(t),{ignoreAttributes:!0}));U.props=r,be(),n.interactiveDebounce!==r.interactiveDebounce&&(ce(),M=m(_e,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?b(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded"),le(),ae(),X&&X(n,r),U.popperInstance&&(Se(),Ce().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),ie("onAfterUpdate",[U,t])}},setContent:function(e){U.setProps({content:e})},show:function(){var e=U.state.isVisible,t=U.state.isDestroyed,n=!U.state.isEnabled,r=D.isTouch&&!U.props.touch,o=p(U.props.duration,0,N.duration);if(!(e||t||n||r||te().hasAttribute("disabled")||(ie("onShow",[U],!1),!1===U.props.onShow(U)))){if(U.state.isVisible=!0,ee()&&(z.style.visibility="visible"),ae(),he(),U.state.isMounted||(z.style.transition="none"),ee()){var a=re();C([a.box,a.content],0)}var i,s,c;l=function(){var e;if(U.state.isVisible&&!L){if(L=!0,z.offsetHeight,z.style.transition=U.props.moveTransition,ee()&&U.props.animation){var t=re(),n=t.box,r=t.content;C([n,r],o),E([n,r],"visible")}se(),le(),v(Y,U),null==(e=U.popperInstance)||e.forceUpdate(),ie("onMount",[U]),U.props.animation&&ee()&&function(e,t){me(e,(function(){U.state.isShown=!0,ie("onShown",[U])}))}(o)}},s=U.props.appendTo,c=te(),(i=U.props.interactive&&s===d||"parent"===s?c.parentNode:f(s,[c])).contains(z)||i.appendChild(z),U.state.isMounted=!0,Se()}},hide:function(){var e=!U.state.isVisible,t=U.state.isDestroyed,n=!U.state.isEnabled,r=p(U.props.duration,1,N.duration);if(!(e||t||n)&&(ie("onHide",[U],!1),!1!==U.props.onHide(U))){if(U.state.isVisible=!1,U.state.isShown=!1,L=!1,w=!1,ee()&&(z.style.visibility="hidden"),ce(),fe(),ae(!0),ee()){var o=re(),a=o.box,i=o.content;U.props.animation&&(C([a,i],r),E([a,i],"hidden"))}se(),le(),U.props.animation?ee()&&function(e,t){me(e,(function(){!U.state.isVisible&&z.parentNode&&z.parentNode.contains(z)&&t()}))}(r,U.unmount):U.unmount()}},hideWithInteractivity:function(e){ne().addEventListener("mousemove",M),v(G,M),M(e)},enable:function(){U.state.isEnabled=!0},disable:function(){U.hide(),U.state.isEnabled=!1},unmount:function(){U.state.isVisible&&U.hide(),U.state.isMounted&&(Ae(),Ce().forEach((function(e){e._tippy.unmount()})),z.parentNode&&z.parentNode.removeChild(z),Y=Y.filter((function(e){return e!==U})),U.state.isMounted=!1,ie("onHidden",[U]))},destroy:function(){U.state.isDestroyed||(U.clearDelayTimeouts(),U.unmount(),ve(),delete e._tippy,U.state.isDestroyed=!0,ie("onDestroy",[U]))}};if(!g.render)return U;var B=g.render(U),z=B.popper,X=B.onUpdate;z.setAttribute("data-tippy-root",""),z.id="tippy-"+U.id,U.popper=z,e._tippy=U,z._tippy=U;var J=q.map((function(e){return e.fn(U)})),Z=e.hasAttribute("aria-expanded");return be(),le(),ae(),ie("onCreate",[U]),g.showOnCreate&&Ee(),z.addEventListener("mouseenter",(function(){U.props.interactive&&U.state.isVisible&&U.clearDelayTimeouts()})),z.addEventListener("mouseleave",(function(){U.props.interactive&&U.props.trigger.indexOf("mouseenter")>=0&&ne().addEventListener("mousemove",M)})),U;function K(){var e=U.props.touch;return Array.isArray(e)?e:[e,0]}function Q(){return"hold"===K()[0]}function ee(){var e;return!(null==(e=U.props.render)||!e.$$tippy)}function te(){return c||e}function ne(){var e=te().parentNode;return e?T(e):document}function re(){return V(z)}function oe(e){return U.state.isMounted&&!U.state.isVisible||D.isTouch||i&&"focus"===i.type?0:p(U.props.delay,e?0:1,N.delay)}function ae(e){void 0===e&&(e=!1),z.style.pointerEvents=U.props.interactive&&!e?"":"none",z.style.zIndex=""+U.props.zIndex}function ie(e,t,n){var r;void 0===n&&(n=!0),J.forEach((function(n){n[e]&&n[e].apply(n,t)})),n&&(r=U.props)[e].apply(r,t)}function se(){var t=U.props.aria;if(t.content){var n="aria-"+t.content,r=z.id;b(U.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(U.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function le(){!Z&&U.props.aria.expanded&&b(U.props.triggerTarget||e).forEach((function(e){U.props.interactive?e.setAttribute("aria-expanded",U.state.isVisible&&e===te()?"true":"false"):e.removeAttribute("aria-expanded")}))}function ce(){ne().removeEventListener("mousemove",M),G=G.filter((function(e){return e!==M}))}function ue(t){if(!D.isTouch||!R&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!U.props.interactive||!P(z,n)){if(b(U.props.triggerTarget||e).some((function(e){return P(e,n)}))){if(D.isTouch)return;if(U.state.isVisible&&U.props.trigger.indexOf("click")>=0)return}else ie("onClickOutside",[U,t]);!0===U.props.hideOnClick&&(U.clearDelayTimeouts(),U.hide(),A=!0,setTimeout((function(){A=!1})),U.state.isMounted||fe())}}}function de(){R=!0}function pe(){R=!1}function he(){var e=ne();e.addEventListener("mousedown",ue,!0),e.addEventListener("touchend",ue,u),e.addEventListener("touchstart",pe,u),e.addEventListener("touchmove",de,u)}function fe(){var e=ne();e.removeEventListener("mousedown",ue,!0),e.removeEventListener("touchend",ue,u),e.removeEventListener("touchstart",pe,u),e.removeEventListener("touchmove",de,u)}function me(e,t){var n=re().box;function r(e){e.target===n&&(O(n,"remove",r),t())}if(0===e)return t();O(n,"remove",s),O(n,"add",r),s=r}function ge(t,n,r){void 0===r&&(r=!1),b(U.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),I.push({node:e,eventType:t,handler:n,options:r})}))}function be(){var e;Q()&&(ge("touchstart",ye,{passive:!0}),ge("touchend",ke,{passive:!0})),(e=U.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(ge(e,ye),e){case"mouseenter":ge("mouseleave",ke);break;case"focus":ge(F?"focusout":"blur",xe);break;case"focusin":ge("focusout",xe)}}))}function ve(){I.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),I=[]}function ye(e){var t,n=!1;if(U.state.isEnabled&&!we(e)&&!A){var r="focus"===(null==(t=i)?void 0:t.type);i=e,c=e.currentTarget,le(),!U.state.isVisible&&S(e)&&G.forEach((function(t){return t(e)})),"click"===e.type&&(U.props.trigger.indexOf("mouseenter")<0||w)&&!1!==U.props.hideOnClick&&U.state.isVisible?n=!0:Ee(e),"click"===e.type&&(w=!n),n&&!r&&Te(e)}}function _e(e){var t=e.target,n=te().contains(t)||z.contains(t);if("mousemove"!==e.type||!n){var r=Ce().concat(z).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:g}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,a=e.props.interactiveBorder,i=y(o.placement),s=o.modifiersData.offset;if(!s)return!0;var l="bottom"===i?s.top.y:0,c="top"===i?s.bottom.y:0,u="right"===i?s.left.x:0,d="left"===i?s.right.x:0,p=t.top-r+l>a,h=r-t.bottom-c>a,f=t.left-n+u>a,m=n-t.right-d>a;return p||h||f||m}))})(r,e)&&(ce(),Te(e))}}function ke(e){we(e)||U.props.trigger.indexOf("click")>=0&&w||(U.props.interactive?U.hideWithInteractivity(e):Te(e))}function xe(e){U.props.trigger.indexOf("focusin")<0&&e.target!==te()||U.props.interactive&&e.relatedTarget&&z.contains(e.relatedTarget)||Te(e)}function we(e){return!!D.isTouch&&Q()!==e.type.indexOf("touch")>=0}function Se(){Ae();var t=U.props,n=t.popperOptions,o=t.placement,a=t.offset,i=t.getReferenceClientRect,s=t.moveTransition,c=ee()?V(z).arrow:null,u=i?{getBoundingClientRect:i,contextElement:i.contextElement||te()}:e,d=[{name:"offset",options:{offset:a}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(ee()){var n=re().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];ee()&&c&&d.push({name:"arrow",options:{element:c,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),U.popperInstance=(0,r.fi)(u,z,Object.assign({},n,{placement:o,onFirstUpdate:l,modifiers:d}))}function Ae(){U.popperInstance&&(U.popperInstance.destroy(),U.popperInstance=null)}function Ce(){return _(z.querySelectorAll("[data-tippy-root]"))}function Ee(e){U.clearDelayTimeouts(),e&&ie("onTrigger",[U,e]),he();var t=oe(!0),r=K(),o=r[0],a=r[1];D.isTouch&&"hold"===o&&a&&(t=a),t?n=setTimeout((function(){U.show()}),t):U.show()}function Te(e){if(U.clearDelayTimeouts(),ie("onUntrigger",[U,e]),U.state.isVisible){if(!(U.props.trigger.indexOf("mouseenter")>=0&&U.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&w)){var t=oe(!1);t?o=setTimeout((function(){U.state.isVisible&&U.hide()}),t):a=requestAnimationFrame((function(){U.hide()}))}}else fe()}}function J(e,t){void 0===t&&(t={});var n=N.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",L,u),window.addEventListener("blur",M);var r,o=Object.assign({},t,{plugins:n}),a=(r=e,w(r)?[r]:function(e){return h(e,"NodeList")}(r)?_(r):Array.isArray(r)?r:_(document.querySelectorAll(r))).reduce((function(e,t){var n=t&&X(t,o);return n&&e.push(n),e}),[]);return w(e)?a[0]:a}J.defaultProps=N,J.setDefaultProps=function(e){Object.keys(e).forEach((function(t){N[t]=e[t]}))},J.currentInput=D;var Z=function(e){var t=void 0===e?{}:e,n=t.exclude,r=t.duration;Y.forEach((function(e){var t=!1;if(n&&(t=A(n)?e.reference===n:e.popper===n.popper),!t){var o=e.props.duration;e.setProps({duration:r}),e.hide(),e.state.isDestroyed||e.setProps({duration:o})}}))},K=Object.assign({},o.Z,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),Q=function(e,t){var n;void 0===t&&(t={});var r,o=e,a=[],i=[],s=t.overrides,l=[],c=!1;function u(){i=o.map((function(e){return b(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function d(){a=o.map((function(e){return e.reference}))}function p(e){o.forEach((function(t){e?t.enable():t.disable()}))}function h(e){return o.map((function(t){var n=t.setProps;return t.setProps=function(o){n(o),t.reference===r&&e.setProps(o)},function(){t.setProps=n}}))}function f(e,t){var n=i.indexOf(t);if(t!==r){r=t;var l=(s||[]).concat("content").reduce((function(e,t){return e[t]=o[n].props[t],e}),{});e.setProps(Object.assign({},l,{getReferenceClientRect:"function"==typeof l.getReferenceClientRect?l.getReferenceClientRect:function(){var e;return null==(e=a[n])?void 0:e.getBoundingClientRect()}}))}}p(!1),d(),u();var m={fn:function(){return{onDestroy:function(){p(!0)},onHidden:function(){r=null},onClickOutside:function(e){e.props.showOnCreate&&!c&&(c=!0,r=null)},onShow:function(e){e.props.showOnCreate&&!c&&(c=!0,f(e,a[0]))},onTrigger:function(e,t){f(e,t.currentTarget)}}}},v=J(x(),Object.assign({},g(t,["overrides"]),{plugins:[m].concat(t.plugins||[]),triggerTarget:i,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[K])})})),y=v.show;v.show=function(e){if(y(),!r&&null==e)return f(v,a[0]);if(!r||null!=e){if("number"==typeof e)return a[e]&&f(v,a[e]);if(o.indexOf(e)>=0){var t=e.reference;return f(v,t)}return a.indexOf(e)>=0?f(v,e):void 0}},v.showNext=function(){var e=a[0];if(!r)return v.show(0);var t=a.indexOf(r);v.show(a[t+1]||e)},v.showPrevious=function(){var e=a[a.length-1];if(!r)return v.show(e);var t=a.indexOf(r),n=a[t-1]||e;v.show(n)};var _=v.setProps;return v.setProps=function(e){s=e.overrides||s,_(e)},v.setInstances=function(e){p(!0),l.forEach((function(e){return e()})),o=e,p(!1),d(),u(),l=h(v),v.setProps({triggerTarget:i})},l=h(v),v},ee={mouseover:"mouseenter",focusin:"focus",click:"click"};function te(e,t){var n=[],r=[],o=!1,a=t.target,i=g(t,["target"]),s=Object.assign({},i,{trigger:"manual",touch:!1}),l=Object.assign({touch:N.touch},i,{showOnCreate:!0}),c=J(e,s);function d(e){if(e.target&&!o){var n=e.target.closest(a);if(n){var i=n.getAttribute("data-tippy-trigger")||t.trigger||N.trigger;if(!n._tippy&&!("touchstart"===e.type&&"boolean"==typeof l.touch||"touchstart"!==e.type&&i.indexOf(ee[e.type])<0)){var s=J(n,l);s&&(r=r.concat(s))}}}}function p(e,t,r,o){void 0===o&&(o=!1),e.addEventListener(t,r,o),n.push({node:e,eventType:t,handler:r,options:o})}return b(c).forEach((function(e){var t=e.destroy,a=e.enable,i=e.disable;e.destroy=function(e){void 0===e&&(e=!0),e&&r.forEach((function(e){e.destroy()})),r=[],n.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),n=[],t()},e.enable=function(){a(),r.forEach((function(e){return e.enable()})),o=!1},e.disable=function(){i(),r.forEach((function(e){return e.disable()})),o=!0},function(e){var t=e.reference;p(t,"touchstart",d,u),p(t,"mouseover",d),p(t,"focusin",d),p(t,"click",d)}(e)})),c}var ne={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(null==(t=e.props.render)||!t.$$tippy)return{};var n=V(e.popper),r=n.box,o=n.content,a=e.props.animateFill?function(){var e=x();return e.className=s,E([e],"hidden"),e}():null;return{onCreate:function(){a&&(r.insertBefore(a,r.firstElementChild),r.setAttribute("data-animatefill",""),r.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(a){var e=r.style.transitionDuration,t=Number(e.replace("ms",""));o.style.transitionDelay=Math.round(t/10)+"ms",a.style.transitionDuration=e,E([a],"visible")}},onShow:function(){a&&(a.style.transitionDuration="0ms")},onHide:function(){a&&E([a],"hidden")}}}},re={clientX:0,clientY:0},oe=[];function ae(e){var t=e.clientX,n=e.clientY;re={clientX:t,clientY:n}}var ie={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=T(e.props.triggerTarget||t),r=!1,o=!1,a=!0,i=e.props;function s(){return"initial"===e.props.followCursor&&e.state.isVisible}function l(){n.addEventListener("mousemove",d)}function c(){n.removeEventListener("mousemove",d)}function u(){r=!0,e.setProps({getReferenceClientRect:null}),r=!1}function d(n){var r=!n.target||t.contains(n.target),o=e.props.followCursor,a=n.clientX,i=n.clientY,s=t.getBoundingClientRect(),l=a-s.left,c=i-s.top;!r&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=a,r=i;"initial"===o&&(n=e.left+l,r=e.top+c);var s="horizontal"===o?e.top:r,u="vertical"===o?e.right:n,d="horizontal"===o?e.bottom:r,p="vertical"===o?e.left:n;return{width:u-p,height:d-s,top:s,right:u,bottom:d,left:p}}})}function p(){e.props.followCursor&&(oe.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",ae)}(n))}function h(){0===(oe=oe.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",ae)}(n)}return{onCreate:p,onDestroy:h,onBeforeUpdate:function(){i=e.props},onAfterUpdate:function(t,n){var a=n.followCursor;r||void 0!==a&&i.followCursor!==a&&(h(),a?(p(),!e.state.isMounted||o||s()||l()):(c(),u()))},onMount:function(){e.props.followCursor&&!o&&(a&&(d(re),a=!1),s()||l())},onTrigger:function(e,t){S(t)&&(re={clientX:t.clientX,clientY:t.clientY}),o="focus"===t.type},onHidden:function(){e.props.followCursor&&(u(),c(),a=!0)}}}},se={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference,r=-1,o=!1,a=[],i={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(o){var i=o.state;e.props.inlinePositioning&&(-1!==a.indexOf(i.placement)&&(a=[]),t!==i.placement&&-1===a.indexOf(i.placement)&&(a.push(i.placement),e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,n,r){if(n.length<2||null===e)return t;if(2===n.length&&r>=0&&n[0].left>n[1].right)return n[r]||t;switch(e){case"top":case"bottom":var o=n[0],a=n[n.length-1],i="top"===e,s=o.top,l=a.bottom,c=i?o.left:a.left,u=i?o.right:a.right;return{top:s,bottom:l,left:c,right:u,width:u-c,height:l-s};case"left":case"right":var d=Math.min.apply(Math,n.map((function(e){return e.left}))),p=Math.max.apply(Math,n.map((function(e){return e.right}))),h=n.filter((function(t){return"left"===e?t.left===d:t.right===p})),f=h[0].top,m=h[h.length-1].bottom;return{top:f,bottom:m,left:d,right:p,width:p-d,height:m-f};default:return t}}(y(e),n.getBoundingClientRect(),_(n.getClientRects()),r)}(i.placement)}})),t=i.placement)}};function s(){var t;o||(t=function(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter((function(e){return e.name!==t.name})),[t])})}}(e.props,i),o=!0,e.setProps(t),o=!1)}return{onCreate:s,onAfterUpdate:s,onTrigger:function(t,n){if(S(n)){var o=_(e.reference.getClientRects()),a=o.find((function(e){return e.left-2<=n.clientX&&e.right+2>=n.clientX&&e.top-2<=n.clientY&&e.bottom+2>=n.clientY})),i=o.indexOf(a);r=i>-1?i:r}},onHidden:function(){r=-1}}}},le={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function r(t){return!0===e.props.sticky||e.props.sticky===t}var o=null,a=null;function i(){var s=r("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,l=r("popper")?n.getBoundingClientRect():null;(s&&ce(o,s)||l&&ce(a,l))&&e.popperInstance&&e.popperInstance.update(),o=s,a=l,e.state.isMounted&&requestAnimationFrame(i)}return{onMount:function(){e.props.sticky&&i()}}}};function ce(e,t){return!e||!t||e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left}J.setDefaultProps({render:z});const ue=J},9938:function(e,t,n){var r;"undefined"!=typeof self&&self,e.exports=(r=n(9963),(()=>{var e={646:e=>{e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},860:e=>{e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},206:e=>{e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(e,t,n)=>{var r=n(646),o=n(860),a=n(206);e.exports=function(e){return r(e)||o(e)||a()}},8:e=>{function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t},744:(e,t)=>{"use strict";t.Z=(e,t)=>{for(const[n,r]of t)e[n]=r;return e}},748:e=>{"use strict";e.exports=r}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{VueSelect:()=>N,default:()=>$,mixins:()=>j});var e=n(748),t=["dir"],r=["id","aria-expanded","aria-owns"],a={ref:"selectedOptions",class:"vs__selected-options"},i=["disabled","title","aria-label","onClick"],s={ref:"actions",class:"vs__actions"},l=["disabled"],c={class:"vs__spinner"},u=["id"],d=["id","aria-selected","onMouseover","onClick"],p={key:0,class:"vs__no-options"},h=(0,e.createTextVNode)(" Sorry, no matching options. "),f=["id"],m=n(319),g=n.n(m),b=n(8),v=n.n(b),y=n(713),_=n.n(y);const k={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(e){var t=this;this.autoscroll&&e&&this.$nextTick((function(){return t.maybeAdjustScroll()}))}},methods:{maybeAdjustScroll:function(){var e,t=(null===(e=this.$refs.dropdownMenu)||void 0===e?void 0:e.children[this.typeAheadPointer])||!1;if(t){var n=this.getDropdownViewport(),r=t.getBoundingClientRect(),o=r.top,a=r.bottom,i=r.height;if(on.bottom)return this.$refs.dropdownMenu.scrollTop=t.offsetTop-(n.height-i)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},x={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){for(var e=0;e=0;e--)if(this.selectable(this.filteredOptions[e])){this.typeAheadPointer=e;break}},typeAheadDown:function(){for(var e=this.typeAheadPointer+1;e0&&void 0!==arguments[0]?arguments[0]:null;return this.mutableLoading=null==e?!this.mutableLoading:e}}};var S={xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"},A=[(0,e.createElementVNode)("path",{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"},null,-1)],C=n(744);const E=(0,C.Z)({},[["render",function(t,n){return(0,e.openBlock)(),(0,e.createElementBlock)("svg",S,A)}]]);var T={xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"},O=[(0,e.createElementVNode)("path",{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"},null,-1)];const P={Deselect:E,OpenIndicator:(0,C.Z)({},[["render",function(t,n){return(0,e.openBlock)(),(0,e.createElementBlock)("svg",T,O)}]])},D={mounted:function(e,t){var n=t.instance;if(n.appendToBody){var r=n.$refs.toggle.getBoundingClientRect(),o=r.height,a=r.top,i=r.left,s=r.width,l=window.scrollX||window.pageXOffset,c=window.scrollY||window.pageYOffset;e.unbindPosition=n.calculatePosition(e,n,{width:s+"px",left:l+i+"px",top:c+a+o+"px"}),document.body.appendChild(e)}},unmounted:function(e,t){t.instance.appendToBody&&(e.unbindPosition&&"function"==typeof e.unbindPosition&&e.unbindPosition(),e.parentNode&&e.parentNode.removeChild(e))}};var R=0;function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t-1}},filter:{type:Function,default:function(e,t){var n=this;return e.filter((function(e){var r=n.getOptionLabel(e);return"number"==typeof r&&(r=r.toString()),n.filterBy(e,r,t)}))}},createOption:{type:Function,default:function(e){return"object"===v()(this.optionList[0])?_()({},this.label,e):e}},resetOnOptionsChange:{default:!1,validator:function(e){return["function","boolean"].includes(v()(e))}},clearSearchOnBlur:{type:Function,default:function(e){var t=e.clearSearchOnSelect,n=e.multiple;return t&&!n}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(e,t){return e}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(e,t,n){var r=n.width,o=n.top,a=n.left;e.style.top=o,e.style.left=a,e.style.width=r}},dropdownShouldOpen:{type:Function,default:function(e){var t=e.noDrop,n=e.open,r=e.mutableLoading;return!t&&n&&!r}},uid:{type:[String,Number],default:function(){return++R}}},data:function(){return{search:"",open:!1,isComposing:!1,pushedTags:[],_value:[],deselectButtons:[]}},computed:{isReducingValues:function(){return this.$props.reduce!==this.$options.props.reduce.default},isTrackingValues:function(){return void 0===this.modelValue||this.isReducingValues},selectedValue:function(){var e=this.modelValue;return this.isTrackingValues&&(e=this.$data._value),null!=e?[].concat(e):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$slots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var e=this,t={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:I({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":"vs".concat(this.uid,"__combobox"),"aria-controls":"vs".concat(this.uid,"__listbox"),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return e.isComposing=!0},compositionend:function(){return e.isComposing=!1},keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(t){return e.search=t.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:t,listFooter:t,header:I({},t,{deselect:this.deselect}),footer:I({},t,{deselect:this.deselect})}},childComponents:function(){return I({},P,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var e=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return e;var t=this.search.length?this.filter(e,this.search,this):e;if(this.taggable&&this.search.length){var n=this.createOption(this.search);this.optionExists(n)||t.unshift(n)}return t},isValueEmpty:function(){return 0===this.selectedValue.length},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(e,t){var n=this;!this.taggable&&("function"==typeof n.resetOnOptionsChange?n.resetOnOptionsChange(e,t,n.selectedValue):n.resetOnOptionsChange)&&this.clearSelection(),this.modelValue&&this.isTrackingValues&&this.setInternalValueFromOptions(this.modelValue)},modelValue:{immediate:!0,handler:function(e){this.isTrackingValues&&this.setInternalValueFromOptions(e)}},multiple:function(){this.clearSelection()},open:function(e){this.$emit(e?"open":"close")}},created:function(){this.mutableLoading=this.loading},methods:{setInternalValueFromOptions:function(e){var t=this;Array.isArray(e)?this.$data._value=e.map((function(e){return t.findOptionFromReducedValue(e)})):this.$data._value=this.findOptionFromReducedValue(e)},select:function(e){this.$emit("option:selecting",e),this.isOptionSelected(e)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(e):(this.taggable&&!this.optionExists(e)&&(this.$emit("option:created",e),this.pushTag(e)),this.multiple&&(e=this.selectedValue.concat(e)),this.updateValue(e),this.$emit("option:selected",e)),this.onAfterSelect(e)},deselect:function(e){var t=this;this.$emit("option:deselecting",e),this.updateValue(this.selectedValue.filter((function(n){return!t.optionComparator(n,e)}))),this.$emit("option:deselected",e)},clearSelection:function(){this.updateValue(this.multiple?[]:null)},onAfterSelect:function(e){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue:function(e){var t=this;void 0===this.modelValue&&(this.$data._value=e),null!==e&&(e=Array.isArray(e)?e.map((function(e){return t.reduce(e)})):this.reduce(e)),this.$emit("update:modelValue",e)},toggleDropdown:function(e){var t=e.target!==this.searchEl;t&&e.preventDefault();var n=[].concat(g()(this.deselectButtons||[]),g()([this.$refs.clearButton]||0));void 0===this.searchEl||n.filter(Boolean).some((function(t){return t.contains(e.target)||t===e.target}))?e.preventDefault():this.open&&t?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(e){var t=this;return this.selectedValue.some((function(n){return t.optionComparator(n,e)}))},isOptionDeselectable:function(e){return this.isOptionSelected(e)&&this.deselectFromDropdown},optionComparator:function(e,t){return this.getOptionKey(e)===this.getOptionKey(t)},findOptionFromReducedValue:function(e){var t=this,n=[].concat(g()(this.options),g()(this.pushedTags)).filter((function(n){return JSON.stringify(t.reduce(n))===JSON.stringify(e)}));return 1===n.length?n[0]:n.find((function(e){return t.optionComparator(e,t.$data._value)}))||e},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var e=null;this.multiple&&(e=g()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(e)}},optionExists:function(e){var t=this;return this.optionList.some((function(n){return t.optionComparator(n,e)}))},normalizeOptionForSlot:function(e){return"object"===v()(e)?e:_()({},this.label,e)},pushTag:function(e){this.pushedTags.push(e)},onEscape:function(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur:function(){if(!this.mousedown||this.searching){var e=this.clearSearchOnSelect,t=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:e,multiple:t})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,0!==this.search.length||0!==this.options.length||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onSearchKeyDown:function(e){var t=this,n=function(e){return e.preventDefault(),!t.isComposing&&t.typeAheadSelect()},r={8:function(e){return t.maybeDeleteValue()},9:function(e){return t.onTab()},27:function(e){return t.onEscape()},38:function(e){return e.preventDefault(),t.typeAheadUp()},40:function(e){return e.preventDefault(),t.typeAheadDown()}};this.selectOnKeyCodes.forEach((function(e){return r[e]=n}));var o=this.mapKeydown(r,this);if("function"==typeof o[e.keyCode])return o[e.keyCode](e)}}},F=(0,C.Z)(M,[["render",function(n,o,m,g,b,v){var y=(0,e.resolveDirective)("append-to-body");return(0,e.openBlock)(),(0,e.createElementBlock)("div",{dir:m.dir,class:(0,e.normalizeClass)(["v-select",v.stateClasses])},[(0,e.renderSlot)(n.$slots,"header",(0,e.normalizeProps)((0,e.guardReactiveProps)(v.scope.header))),(0,e.createElementVNode)("div",{id:"vs".concat(m.uid,"__combobox"),ref:"toggle",class:"vs__dropdown-toggle",role:"combobox","aria-expanded":v.dropdownOpen.toString(),"aria-owns":"vs".concat(m.uid,"__listbox"),"aria-label":"Search for option",onMousedown:o[1]||(o[1]=function(e){return v.toggleDropdown(e)})},[(0,e.createElementVNode)("div",a,[((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(v.selectedValue,(function(t,r){return(0,e.renderSlot)(n.$slots,"selected-option-container",{option:v.normalizeOptionForSlot(t),deselect:v.deselect,multiple:m.multiple,disabled:m.disabled},(function(){return[((0,e.openBlock)(),(0,e.createElementBlock)("span",{key:m.getOptionKey(t),class:"vs__selected"},[(0,e.renderSlot)(n.$slots,"selected-option",(0,e.normalizeProps)((0,e.guardReactiveProps)(v.normalizeOptionForSlot(t))),(function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(m.getOptionLabel(t)),1)]})),m.multiple?((0,e.openBlock)(),(0,e.createElementBlock)("button",{key:0,ref:function(e){return b.deselectButtons[r]=e},disabled:m.disabled,type:"button",class:"vs__deselect",title:"Deselect ".concat(m.getOptionLabel(t)),"aria-label":"Deselect ".concat(m.getOptionLabel(t)),onClick:function(e){return v.deselect(t)}},[((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(v.childComponents.Deselect)))],8,i)):(0,e.createCommentVNode)("",!0)]))]}))})),256)),(0,e.renderSlot)(n.$slots,"search",(0,e.normalizeProps)((0,e.guardReactiveProps)(v.scope.search)),(function(){return[(0,e.createElementVNode)("input",(0,e.mergeProps)({class:"vs__search"},v.scope.search.attributes,(0,e.toHandlers)(v.scope.search.events)),null,16)]}))],512),(0,e.createElementVNode)("div",s,[(0,e.withDirectives)((0,e.createElementVNode)("button",{ref:"clearButton",disabled:m.disabled,type:"button",class:"vs__clear",title:"Clear Selected","aria-label":"Clear Selected",onClick:o[0]||(o[0]=function(){return v.clearSelection&&v.clearSelection.apply(v,arguments)})},[((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(v.childComponents.Deselect)))],8,l),[[e.vShow,v.showClearButton]]),(0,e.renderSlot)(n.$slots,"open-indicator",(0,e.normalizeProps)((0,e.guardReactiveProps)(v.scope.openIndicator)),(function(){return[m.noDrop?(0,e.createCommentVNode)("",!0):((0,e.openBlock)(),(0,e.createBlock)((0,e.resolveDynamicComponent)(v.childComponents.OpenIndicator),(0,e.normalizeProps)((0,e.mergeProps)({key:0},v.scope.openIndicator.attributes)),null,16))]})),(0,e.renderSlot)(n.$slots,"spinner",(0,e.normalizeProps)((0,e.guardReactiveProps)(v.scope.spinner)),(function(){return[(0,e.withDirectives)((0,e.createElementVNode)("div",c,"Loading...",512),[[e.vShow,n.mutableLoading]])]}))],512)],40,r),(0,e.createVNode)(e.Transition,{name:m.transition},{default:(0,e.withCtx)((function(){return[v.dropdownOpen?(0,e.withDirectives)(((0,e.openBlock)(),(0,e.createElementBlock)("ul",{id:"vs".concat(m.uid,"__listbox"),ref:"dropdownMenu",key:"vs".concat(m.uid,"__listbox"),class:"vs__dropdown-menu",role:"listbox",tabindex:"-1",onMousedown:o[2]||(o[2]=(0,e.withModifiers)((function(){return v.onMousedown&&v.onMousedown.apply(v,arguments)}),["prevent"])),onMouseup:o[3]||(o[3]=function(){return v.onMouseUp&&v.onMouseUp.apply(v,arguments)})},[(0,e.renderSlot)(n.$slots,"list-header",(0,e.normalizeProps)((0,e.guardReactiveProps)(v.scope.listHeader))),((0,e.openBlock)(!0),(0,e.createElementBlock)(e.Fragment,null,(0,e.renderList)(v.filteredOptions,(function(t,r){return(0,e.openBlock)(),(0,e.createElementBlock)("li",{id:"vs".concat(m.uid,"__option-").concat(r),key:m.getOptionKey(t),role:"option",class:(0,e.normalizeClass)(["vs__dropdown-option",{"vs__dropdown-option--deselect":v.isOptionDeselectable(t)&&r===n.typeAheadPointer,"vs__dropdown-option--selected":v.isOptionSelected(t),"vs__dropdown-option--highlight":r===n.typeAheadPointer,"vs__dropdown-option--disabled":!m.selectable(t)}]),"aria-selected":r===n.typeAheadPointer||null,onMouseover:function(e){return m.selectable(t)?n.typeAheadPointer=r:null},onClick:(0,e.withModifiers)((function(e){return m.selectable(t)?v.select(t):null}),["prevent","stop"])},[(0,e.renderSlot)(n.$slots,"option",(0,e.normalizeProps)((0,e.guardReactiveProps)(v.normalizeOptionForSlot(t))),(function(){return[(0,e.createTextVNode)((0,e.toDisplayString)(m.getOptionLabel(t)),1)]}))],42,d)})),128)),0===v.filteredOptions.length?((0,e.openBlock)(),(0,e.createElementBlock)("li",p,[(0,e.renderSlot)(n.$slots,"no-options",(0,e.normalizeProps)((0,e.guardReactiveProps)(v.scope.noOptions)),(function(){return[h]}))])):(0,e.createCommentVNode)("",!0),(0,e.renderSlot)(n.$slots,"list-footer",(0,e.normalizeProps)((0,e.guardReactiveProps)(v.scope.listFooter)))],40,u)),[[y]]):((0,e.openBlock)(),(0,e.createElementBlock)("ul",{key:1,id:"vs".concat(m.uid,"__listbox"),role:"listbox",style:{display:"none",visibility:"hidden"}},null,8,f))]})),_:3},8,["name"]),(0,e.renderSlot)(n.$slots,"footer",(0,e.normalizeProps)((0,e.guardReactiveProps)(v.scope.footer)))],10,t)}]]),N=F,j={ajax:w,pointer:x,pointerScroll:k},$=F})(),o})())},9639:(e,t,n)=>{var r=n(110);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5346).Z)("49b6e69a",r,!1,{})},3612:(e,t,n)=>{var r=n(2588);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5346).Z)("4340ba7e",r,!1,{})},4402:(e,t,n)=>{var r=n(3232);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5346).Z)("1ad73a10",r,!1,{})},1763:(e,t,n)=>{var r=n(27);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5346).Z)("e3c5d780",r,!1,{})},6051:(e,t,n)=>{var r=n(6307);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5346).Z)("7f6514f9",r,!1,{})},5294:(e,t,n)=>{var r=n(3544);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5346).Z)("6e2627ad",r,!1,{})},3462:(e,t,n)=>{var r=n(1328);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5346).Z)("63e1e200",r,!1,{})},786:(e,t,n)=>{var r=n(4593);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5346).Z)("6ce3e926",r,!1,{})},5377:(e,t,n)=>{var r=n(9473);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5346).Z)("67e0ffea",r,!1,{})},5922:(e,t,n)=>{var r=n(1164);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5346).Z)("054f5378",r,!1,{})},8298:(e,t,n)=>{var r=n(6968);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5346).Z)("f75ead22",r,!1,{})},3965:(e,t,n)=>{var r=n(404);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(5346).Z)("2ab8496e",r,!1,{})},5346:(e,t,n)=>{"use strict";function r(e,t){for(var n=[],r={},o=0;of});var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var a={},i=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},d=null,p="data-vue-ssr-id",h="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(e,t,n,o){c=n,d=o||{};var i=r(e,t);return m(i),function(t){for(var n=[],o=0;on.parts.length&&(r.parts.length=n.parts.length)}else{var i=[];for(o=0;o{var r={"./en/translation.json":7573,"./fr/translation.json":5465,"./pt/translation.json":5163,"./sw/translation.json":6490};function o(e){var t=a(e);return n(t)}function a(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=a,e.exports=o,o.id=5144},3414:()=>{},172:()=>{},2001:()=>{},3779:()=>{},6558:()=>{},2258:()=>{},7573:e=>{"use strict";e.exports=JSON.parse('{"{document_count} documents found":"{document_count} documents found.","{reverse_verb} this provision":"{reverse_verb} this provision","Advanced search":"Advanced search","Alphabetical":"Alphabetical","AND":"AND","Attorneys":"Attorneys","Author":"Author","Between {prev_expression_date} and {new_expression_date}":"Between {prev_expression_date} and {new_expression_date}","Cancel":"Cancel","Clear":"Clear","Clear all":"Clear all","Close":"Close","Collapse all":"Collapse all","Court":"Court","Court registry":"Court registry","Date (newest first)":"Date (newest first)","Date (oldest first)":"Date (oldest first)","Date from":"Date from","Date to":"Date to","Delete":"Delete","Document is empty":"Document is empty","Document is not accessible on my device":"Document is not accessible on my device","Document nature":"Document nature","Document type":"Document type","Edit":"Edit","Enter end date":"Enter end date","Enter start date":"Enter start date","Exact phrase":"Exact phrase","Expand all":"Expand all","Filter legislation":"Filter legislation","Filters":"Filters","Help":"Help","In these fields":"In these fields","Incorrect information":"Incorrect information","Is there something wrong with this document?":"Is there something wrong with this document?","Judges":"Judges","Jurisdiction":"Jurisdiction","Language":"Language","Link citation":"Link citation","Loading":"Loading","Locality":"Locality","Matter type":"Matter type","Missing information":"Missing information","More than 10,000 documents found":"More than 10,000 documents found.","Multiple languages available":"Multiple languages available","Nature":"Nature","Newest first":"Newest first","No documents match your search":"No documents match your search.","No legislation found":"No legislation found.","No PDF download":"No PDF download","No results":"No results","NOT":"NOT","Oldest first":"Oldest first","Oops, something went wrong":"Oops, something went wrong.","OR":"OR","Other":"Other","Outcome":"Outcome","Page":"Page","Problem category":"Problem category","Regional body":"Regional body","Relevance":"Relevance","Remove":"Remove","Report problem":"Report problem","Search":"Search","Search {{appName}}":{"":"Search {{appName}}..."},"Search document content":"Search document content","Search documents":"Search documents","Search table of contents":"Search table of contents","Share":"Share","Show changes side-by-side":"Show changes side-by-side","Show full text":"Show full text","Something went wrong":"Something went wrong.","Sort by":"Sort by","Taxonomies":"Taxonomies","Thank you for your feedback":"Thank you for your feedback.","The date range is invalid":"The date range is invalid","This provision":"This provision","This provision has been amended":"This provision has been amended","Title":"Title","To the top":"To the top","Try searching instead":"Try searching instead","What changed?":"What changed?","What\'s the problem?":"What\'s the problem?","Year":"Year","Years":"Years","Your email address":"Your email address"}')},5465:e=>{"use strict";e.exports=JSON.parse('{"{document_count} documents found":"{document_count} documents trouvés.","{reverse_verb} this provision":"{reverse_verb} cette disposition","Advanced search":"Recherche avancée","Alphabetical":"Alphabétique","AND":"ET","Attorneys":"Avocats","Author":"Auteur","Between {prev_expression_date} and {new_expression_date}":"Entre {prev_expression_date} et {new_expression_date}","Cancel":"Annuler","Clear":"Nettoyer","Clear all":"Effacer tout","Close":"Fermer","Collapse all":"Réduire tout","Court":"Cour","Court registry":"Registre des tribunaux","Date (newest first)":"Date (plus récente en premier)","Date (oldest first)":"Date (plus ancienne en premier)","Date from":"Date du","Date to":"Date de fin","Delete":"Supprimez","Document is empty":"Le document est vide","Document is not accessible on my device":"Le document n\'est pas accessible sur mon appareil","Document nature":"Type de document","Document type":"Type de document","Edit":"Modifier","Enter end date":"Entrez la date de fin","Enter start date":"Entrez la date de début","Exact phrase":"Phrase exacte","Expand all":"Développer tout","Filter legislation":"Filtrer la législation","Filters":"Filtres","Help":"Aide","In these fields":"Dans ces domaines","Incorrect information":"Informations incorrectes","Is there something wrong with this document?":"Y a-t-il quelque chose qui ne va pas avec ce document ?","Judges":"Juges","Jurisdiction":"Juridiction","Language":"Langue","Link citation":"Citation de lien","Loading":"En cours de chargement","Locality":"Localité","Matter type":"Type de matière","Missing information":"Information manquante","More than 10,000 documents found":"Plus de 10 000 documents retrouvés.","Multiple languages available":"Plusieurs langues disponibles","Nature":"Nature","Newest first":"Le plus récent d\'abord","No documents match your search":"Aucun document ne correspond à votre recherche.","No legislation found":"Aucune législation trouvée.","No PDF download":"Pas de téléchargement PDF","No results":"Aucun résultat","NOT":"PAS","Oldest first":"Le plus ancien en premier","Oops, something went wrong":"Oups, une erreur s\'est produite.","OR":"OU","Other":"Autre","Outcome":"Résultat","Page":"Page","Problem category":"Catégorie de problème","Regional body":"Corps régional","Relevance":"Pertinence","Remove":"Retirer","Report problem":"Signaler un problème","Search":"Recherche","Search {{appName}}":{"":"Rechercher dans {{appName}}..."},"Search document content":"Rechercher le contenu du document","Search documents":"Rechercher des documents","Search table of contents":"Rechercher la table des matières","Share":"Partager","Show changes side-by-side":"Afficher les modifications côte à côte","Show full text":"Afficher le texte intégral","Something went wrong":"Quelque chose s\'est mal passé.","Sort by":"Trier par","Taxonomies":"Taxonomies","Thank you for your feedback":"Merci pour votre avis.","The date range is invalid":"La plage de dates n\'est pas valide","This provision":"Cette disposition","This provision has been amended":"Cette disposition a été modifiée","Title":"Titre","To the top":"En haut","Try searching instead":"Essayez plutôt de faire une recherche","What changed?":"Quels sont les changements ?","What\'s the problem?":"Quel est le problème?","Year":"Année","Years":"Années","Your email address":"Votre adresse e-mail"}')},5163:e=>{"use strict";e.exports=JSON.parse('{"{document_count} documents found":"{document_count} documentos encontrados.","{reverse_verb} this provision":"{reverse_verb} esta disposição","Advanced search":"Pesquisa avançada","Alphabetical":"Alfabética","AND":"E","Attorneys":"Advogados","Author":"Autor","Between {prev_expression_date} and {new_expression_date}":"Entre {prev_expression_date} e {new_expression_date}","Cancel":"Cancelar","Clear":"Limpar","Clear all":"Limpar tudo","Close":"FECHAR","Collapse all":"Recolher tudo","Court":"Tribunal","Court registry":"Registro do tribunal","Date (newest first)":"Data (mais recente primeiro)","Date (oldest first)":"Data (mais antigo primeiro)","Date from":"Data inicial","Date to":"Data final","Delete":"Excluir","Document is empty":"O documento está vazio","Document is not accessible on my device":"O documento não está acessível no meu dispositivo","Document nature":"Natureza do documento","Document type":"Tipo de documento","Edit":"Editar","Enter end date":"Digite a data final","Enter start date":"Digite a data inicial","Exact phrase":"Frase exata","Expand all":"Expandir tudo","Filter legislation":"Filtrar legislação","Filters":"Filtros","Help":"Socorro","In these fields":"Nestes campos","Incorrect information":"Informação incorreta","Is there something wrong with this document?":"Há algo errado com este documento?","Judges":"Juízes","Jurisdiction":"Jurisdição","Language":"Idioma","Link citation":"Citação de link","Loading":"Carregando...","Locality":"Localidade","Matter type":"Tipo de matéria","Missing information":"Faltando informação","More than 10,000 documents found":"Mais de 10.000 documentos encontrados.","Multiple languages available":"Vários idiomas disponíveis","Nature":"Natureza","Newest first":"Os mais novos primeiro","No documents match your search":"Nenhum documento corresponde à sua pesquisa.","No legislation found":"Nenhuma legislação encontrada.","No PDF download":"Sem download de PDF","No results":"Nenhum resultado","NOT":"NÃO","Oldest first":"Mais velhos primeiro","Oops, something went wrong":"Ops, algo deu errado.","OR":"OU","Other":"Outro","Outcome":"Resultado","Page":"Página","Problem category":"Categoria do problema","Regional body":"Corpo regional","Relevance":"Relevância","Remove":"Remover","Report problem":"Reportar problema","Search":"Pesquisa","Search {{appName}}":{"":"Pesquisar {{appName}}..."},"Search document content":"Pesquisar conteúdo de documento","Search documents":"Pesquisar documentos","Search table of contents":"Pesquisar na tabela de conteúdos","Share":"Compartilhar","Show changes side-by-side":"Mostrar mudanças lado a lado","Show full text":"Mostrar texto completo","Something went wrong":"Algo deu errado.","Sort by":"Classificar por","Taxonomies":"Taxonomies","Thank you for your feedback":"Obrigado pelo seu feedback.","The date range is invalid":"O intervalo de datas é inválido","This provision":"Esta disposição","This provision has been amended":"Esta disposição foi alterada","Title":"Título","To the top":"Para o topo","Try searching instead":"Tente pesquisar no lugar","What changed?":"O que mudou?","What\'s the problem?":"Qual é o problema?","Year":"Ano","Years":"anos","Your email address":"Seu endereço de email"}')},6490:e=>{"use strict";e.exports=JSON.parse('{"{document_count} documents found":"Nyaraka {document_count} zilizopatikana.","{reverse_verb} this provision":"{reverse_verb} kifungu hiki","Advanced search":"Utafutaji wa kina","Alphabetical":"Kufuata alfabeti","AND":"NA","Attorneys":"Wanasheria","Author":"Mwandishi","Between {prev_expression_date} and {new_expression_date}":"Kati ya {prev_expression_date} na {new_expression_date}","Cancel":"Sitisha","Clear":"Wazi","Clear all":"Futa zote","Close":"Funga","Collapse all":"Kunja zote","Court":"Mahakama","Court registry":"Usajili wa mahakama","Date (newest first)":"Tarehe (za karibu zaidi kwanza)","Date (oldest first)":"Tarehe (za nyuma kwanza)","Date from":"Tarehe kutoka","Date to":"Tarehe hadi","Delete":"Futa","Document is empty":"Nyaraka haina taarifa","Document is not accessible on my device":"Hati haipatikani kwenye kifaa changu","Document nature":"Asili ya hati","Document type":"Aina ya hati","Edit":"Hariri","Enter end date":"Weka tarehe ya mwisho","Enter start date":"Weka tarehe ya kuanza","Exact phrase":"Maneno halisi","Expand all":"Panua zote","Filter legislation":"Sheria ya udhibiti","Filters":"Vichujio","Help":"Msaada","In these fields":"Katika nyanja hizi","Incorrect information":"Taarifa zisizo sahihi","Is there something wrong with this document?":"Je, kuna kitu kibaya na hati hii?","Judges":"Majaji","Jurisdiction":"Mamlaka ya kisheria","Language":"Lugha","Link citation":"Nukuu ya kiungo","Loading":"Inapakia","Locality":"Eneo","Matter type":"Aina ya jambo","Missing information":"Taarifa zinazokosekana","More than 10,000 documents found":"Zaidi ya nyaraka10,000 zimepatikana.","Multiple languages available":"Lugha nyingi zinapatikana","Nature":"Asili","Newest first":"Mpya zaidi kwanza","No documents match your search":"Hakuna hati zinazolingana na utafutaji wako.","No legislation found":"Hakuna sheria iliyopatikana.","No PDF download":"Hakuna upakuaji wa PDF","No results":"Hakuna matokeo","NOT":"HAPANA","Oldest first":"Ya zamani kwanza","Oops, something went wrong":"Oh, kuna hitilafu imetokea.","OR":"AU","Other":"Nyingine","Outcome":"Matokeo","Page":"Ukurasa","Problem category":"Aina ya tatizo","Regional body":"Chombo cha kanda","Relevance":"Muhimu","Remove":"Ondoa","Report problem":"Ripoti tatizo","Search":"Tafuta","Search {{appName}}":{"":"Tafuta {{appName}}..."},"Search document content":"Tafuta yaliyomo kwenye waraka","Search documents":"Tafuta nyaraka","Search table of contents":"Tafuta yaliyomo","Share":"Sambaza","Show changes side-by-side":"Tafuta yaliyomo sambamba","Show full text":"Onyesha maandishi yote","Something went wrong":"Kuna hitilafu imetokea.","Sort by":"Ainisha kwa","Taxonomies":"Taksonomia","Thank you for your feedback":"Asante kwa maoni yako.","The date range is invalid":"Tarehe siyo sahihi","This provision":"Kifungu hiki","This provision has been amended":"Kifungu hiki kimerekebishwa","Title":"Mada","To the top":"Hadi juu","Try searching instead":"Jaribu kutafuta badala yake","What changed?":"Nini kimebadilika?","What\'s the problem?":"Tatizo ni nini?","Year":"Mwaka","Years":"Miaka","Your email address":"Baruapepe yako"}')}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__={};(()=>{"use strict";var e={};__webpack_require__.r(e),__webpack_require__.d(e,{afterMain:()=>Uh.wX,afterRead:()=>Uh.r5,afterWrite:()=>Uh.MS,applyStyles:()=>Bh.Z,arrow:()=>Vh.Z,auto:()=>Uh.d7,basePlacements:()=>Uh.mv,beforeMain:()=>Uh.XM,beforeRead:()=>Uh.N7,beforeWrite:()=>Uh.iv,bottom:()=>Uh.I,clippingParents:()=>Uh.zV,computeStyles:()=>zh.Z,createPopper:()=>ef.fi,createPopperBase:()=>Kh.fi,createPopperLite:()=>nf,detectOverflow:()=>Qh.Z,end:()=>Uh.ut,eventListeners:()=>Wh.Z,flip:()=>Gh.Z,hide:()=>Yh.Z,left:()=>Uh.t$,main:()=>Uh.DH,modifierPhases:()=>Uh.xs,offset:()=>Xh.Z,placements:()=>Uh.Ct,popper:()=>Uh.k5,popperGenerator:()=>Kh.kZ,popperOffsets:()=>Jh.Z,preventOverflow:()=>Zh.Z,read:()=>Uh.ij,reference:()=>Uh.YP,right:()=>Uh.F2,start:()=>Uh.BL,top:()=>Uh.we,variationPlacements:()=>Uh.bw,viewport:()=>Uh.Pj,write:()=>Uh.cW});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{Alert:()=>Yf,Button:()=>Jf,Carousel:()=>um,Collapse:()=>bm,Dropdown:()=>Mm,Modal:()=>ag,Offcanvas:()=>fg,Popover:()=>Fg,ScrollSpy:()=>Ug,Tab:()=>eb,Toast:()=>ib,Tooltip:()=>Lg});var n=function(){function e(e){var t=this;this.root=e,this.text=e.innerText,e.addEventListener("click",(function(){return t.copy()}))}return e.prototype.copy=function(){return e=this,t=void 0,r=function(){var e=this;return function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]((0,r.dD)("data-v-1f5a887a"),e=e(),(0,r.Cn)(),e),s=[".anchor"],l=i((()=>(0,r._)("i",{class:"bi bi-chat-left mobile-gutter-item-icon"},null,-1))),c={class:"card"},u={class:"card-body"},d={class:"mb-2 d-lg-none text-end"},p={key:0,class:"float-end d-none d-lg-block"},h={class:"dropdown"},f=i((()=>(0,r._)("a",{class:"dropdown-toggle",href:"#","data-bs-toggle":"dropdown"},null,-1))),m={class:"dropdown-menu"},g={key:1},b=["href"],v={key:1},y=(0,r.Uk)(". "),_={key:2},k=["href"],x={key:1};var w=__webpack_require__(2581);function S(e,t){if(!e.length)return null;var n=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o({marks:[],anchorElement:null}),computed:{isForwards(){return this.enrichment.subject_work.frbr_uri===this.thisWorkFrbrUri},objectDocument(){return S(this.enrichment.object_documents,"eng")},subjectDocument(){return S(this.enrichment.subject_documents,"eng")}},mounted(){this.markAndAnchor(),window.addEventListener("click",this.handleOutsideClick),this.gutter.appendChild(this.$el)},unmounted(){this.unmark()},beforeUnmount(){window.removeEventListener("click",this.handleOutsideClick),this.marks.forEach((e=>{e.removeEventListener("click",e.clickFn)}))},methods:{handleOutsideClick(e){this.$el.contains(e.target)||this.$el===e.target||this.marks.some((t=>t.contains(e.target)||t===e.target))||this.deactivate()},deactivate(){this.$el.active=!1,this.marks.forEach((e=>e.classList.remove("active")))},activate(){Array.from(this.viewRoot.querySelectorAll("mark")).forEach((e=>{e.classList.remove("active")})),this.$el.active=!0,this.marks.forEach((e=>{e.classList.add("active")}))},markAndAnchor(){this.unmark();const e={anchor_id:this.isForwards?this.enrichment.subject_target_id:this.enrichment.object_target_id},t=(0,w.targetToRange)(e,this.viewRoot);t&&((0,w.markRange)(t,"mark",(e=>(this.marks.push(e),e.classList.add("anntn-highlight"),e.clickFn=()=>this.activate(),e.addEventListener("click",e.clickFn),e))),this.anchorElement=this.marks[0])},unmark(){this.marks.forEach((e=>{const t=e.parentNode;for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)})),this.marks=[]},remove(){confirm("Are you sure?")&&this.$emit("delete",this.enrichment)}}};__webpack_require__(8298),A.render=function(e,t){return(0,r.wg)(),(0,r.iD)("la-gutter-item",{class:"relationship-gutter-item",".anchor":e.anchorElement,onClick:t[2]||(t[2]=(...t)=>e.activate&&e.activate(...t))},[l,(0,r._)("div",c,[(0,r._)("div",u,[(0,r._)("div",d,[(0,r._)("button",{type:"button",class:"btn-close","aria-label":"Close",onClick:t[0]||(t[0]=(0,o.withModifiers)(((...t)=>e.deactivate&&e.deactivate(...t)),["stop"]))})]),e.editable?((0,r.wg)(),(0,r.iD)("div",p,[(0,r._)("div",h,[f,(0,r._)("ul",m,[(0,r._)("li",null,[(0,r._)("a",{class:"dropdown-item",href:"#",onClick:t[1]||(t[1]=(0,o.withModifiers)(((...t)=>e.remove&&e.remove(...t)),["prevent"]))},(0,a.zw)(e.$t("Delete")),1)])])])])):(0,r.kq)("v-if",!0),e.isForwards?((0,r.wg)(),(0,r.iD)("div",g,[(0,r.Uk)((0,a.zw)(e.$t("This provision"))+" "+(0,a.zw)(e.enrichment.predicate.verb)+" ",1),e.objectDocument?((0,r.wg)(),(0,r.iD)("a",{key:0,target:"_blank",href:`${e.objectDocument.expression_frbr_uri}/`},(0,a.zw)(e.objectDocument.title),9,b)):((0,r.wg)(),(0,r.iD)("span",v,(0,a.zw)(e.enrichment.object_work.frbr_uri)+" xx",1)),y])):((0,r.wg)(),(0,r.iD)("div",_,[e.subjectDocument?((0,r.wg)(),(0,r.iD)("a",{key:0,target:"_blank",href:`${e.subjectDocument.expression_frbr_uri}/`},(0,a.zw)(e.subjectDocument.title),9,k)):((0,r.wg)(),(0,r.iD)("span",x,(0,a.zw)(e.enrichment.subject_work.frbr_uri),1)),(0,r.Uk)(". "+(0,a.zw)(e.$t("{reverse_verb} this provision",{reverse_verb:e.enrichment.predicate.reverse_verb}))+". ",1)]))])])],8,s)},A.__scopeId="data-v-1f5a887a";const C=A,E={class:"modal fade",tabindex:"-1","data-bs-keyboard":"false","data-bs-backdrop":"static",role:"dialog","aria-hidden":"true"},T={class:"modal-dialog modal-lg",role:"document"},O={class:"modal-content"},P={class:"modal-header"},D=(0,r._)("h5",{class:"modal-title"}," Add relationship ",-1),R=["aria-label"],L={class:"modal-body"},I={key:0},M=(0,r.Uk)(" Search for a document... "),F=["required"],N=["required"],j={key:0,value:""},$=["value"],H=(0,r.Uk)(" Search for a document... "),q=["required"],U={key:3},B={class:"modal-footer"},V=(0,r._)("button",{type:"submit",class:"btn btn-success"}," Add ",-1);var z=__webpack_require__(9938),W=__webpack_require__.n(z),G=(__webpack_require__(3965),function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))}),Y=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]({predicates:[],relationship:e.enrichment,works:[]}),computed:{isForwards(){return this.relationship.subject_work.frbr_uri===this.thisWorkFrbrUri}},mounted(){document.body.appendChild(this.$el),this.predicates=JSON.parse(document.getElementById("predicates").innerText||"[]"),this.relationship.predicate_id=this.predicates.length?this.predicates[0].id:"",this.modal=new bootstrap.Modal(this.$el),this.$el.addEventListener("hidePrevented.bs.modal",this.close),this.modal.show()},unmounted(){this.modal.hide()},methods:{onSearch(e,t){e.length&&(t(!0),this.search(t,e))},reverse(){!function(e){for(var t=0,n=["work","target_id","documents"];te.save&&e.save(...t)),["prevent"]))},[(0,r._)("div",P,[D,(0,r._)("button",{type:"button",class:"btn-close","aria-label":e.$t("Close"),onClick:t[0]||(t[0]=(...t)=>e.close&&e.close(...t))},null,8,R)]),(0,r._)("div",L,[e.isForwards?((0,r.wg)(),(0,r.iD)("p",I," The selection... ")):(0,r.kq)("v-if",!0),e.isForwards?(0,r.kq)("v-if",!0):((0,r.wg)(),(0,r.j4)(n,{key:1,modelValue:e.relationship.subject_work_id,"onUpdate:modelValue":t[1]||(t[1]=t=>e.relationship.subject_work_id=t),class:"mb-3",label:"title",placeholder:"Choose the subject document...",options:e.works,reduce:e=>e.id,onSearch:e.onSearch},{"no-options":(0,r.w5)((()=>[M])),search:(0,r.w5)((({attributes:t,events:n})=>[(0,r._)("input",(0,r.dG)({class:"vs__search",required:!e.relationship.subject_work_id},t,(0,r.mx)(n)),null,16,F)])),_:1},8,["modelValue","options","reduce","onSearch"])),(0,r.wy)((0,r._)("select",{"onUpdate:modelValue":t[2]||(t[2]=t=>e.relationship.predicate_id=t),class:"form-control mb-3",required:!e.predicates.length},[e.predicates.length?(0,r.kq)("v-if",!0):((0,r.wg)(),(0,r.iD)("option",j," No options available. Add Predicates in admin to have options. ")),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.predicates,(e=>((0,r.wg)(),(0,r.iD)("option",{key:e.id,value:e.id},(0,a.zw)(e.verb),9,$)))),128))],8,N),[[o.vModelSelect,e.relationship.predicate_id]]),e.isForwards?((0,r.wg)(),(0,r.j4)(n,{key:2,modelValue:e.relationship.object_work_id,"onUpdate:modelValue":t[3]||(t[3]=t=>e.relationship.object_work_id=t),label:"title",placeholder:"Choose the object document...",options:e.works,reduce:e=>e.id,onSearch:e.onSearch},{"no-options":(0,r.w5)((()=>[H])),search:(0,r.w5)((({attributes:t,events:n})=>[(0,r._)("input",(0,r.dG)({class:"vs__search",required:!e.relationship.object_work_id},t,(0,r.mx)(n)),null,16,q)])),_:1},8,["modelValue","options","reduce","onSearch"])):((0,r.wg)(),(0,r.iD)("p",U," ... the selection. "))]),(0,r._)("div",B,[(0,r._)("button",{disabled:"",class:"btn btn-outline-secondary",type:"button",onClick:t[4]||(t[4]=(...t)=>e.reverse&&e.reverse(...t))}," Reverse "),(0,r._)("button",{type:"button",class:"btn btn-secondary",onClick:t[5]||(t[5]=(...t)=>e.close&&e.close(...t))}," Cancel "),V])],544)])])])}},RelationshipEnrichment:C},props:{enrichments:{type:Array,default:()=>[]},viewRoot:HTMLElement,gutter:HTMLElement,editable:Boolean,thisWorkFrbrUri:{type:String,default:""}},data:e=>({items:e.enrichments,creating:null}),methods:{markAndAnchorAll(){this.$refs["gutter-item"]&&this.$refs["gutter-item"].forEach((e=>{e.markAndAnchor()}))},async deleteEnrichment(e){if((await fetch(`/api/relationships/${e.id}/`,{method:"DELETE",headers:await Z()})).ok){const t=this.items.findIndex((t=>t.id===e.id));t>-1&&this.items.splice(t,1)}},async save(e){const t=await Z();t["Content-Type"]="application/json";const n=await fetch("/api/relationships/",{method:"POST",headers:t,body:JSON.stringify(e)});n.ok&&(this.items.push(await n.json()),this.creating=null)},closeModal(){this.creating=null}},render:function(e,t){const n=(0,r.up)("relationship-enrichment"),o=(0,r.up)("relationship-enrichment-modal");return(0,r.wg)(),(0,r.iD)("div",null,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.items,(t=>((0,r.wg)(),(0,r.j4)(n,{key:t.id,ref_for:!0,ref:"gutter-item",enrichment:t,"view-root":e.viewRoot,gutter:e.gutter,editable:e.editable,"this-work-frbr-uri":e.thisWorkFrbrUri,onDelete:n=>e.deleteEnrichment(t)},null,8,["enrichment","view-root","gutter","editable","this-work-frbr-uri","onDelete"])))),128)),e.creating?((0,r.wg)(),(0,r.j4)(o,{key:0,enrichment:e.creating,"this-work-frbr-uri":e.thisWorkFrbrUri,onSave:e.save,onClose:e.closeModal},null,8,["enrichment","this-work-frbr-uri","onSave","onClose"])):(0,r.kq)("v-if",!0)])}},te="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,ne=e=>te?Symbol(e):e,re=e=>"number"==typeof e&&isFinite(e),oe=e=>"[object RegExp]"===ye(e),ae=e=>_e(e)&&0===Object.keys(e).length;function ie(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const se=Object.assign;let le;const ce=()=>le||(le="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:{});function ue(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const de=Object.prototype.hasOwnProperty;function pe(e,t){return de.call(e,t)}const he=Array.isArray,fe=e=>"function"==typeof e,me=e=>"string"==typeof e,ge=e=>"boolean"==typeof e,be=e=>null!==e&&"object"==typeof e,ve=Object.prototype.toString,ye=e=>ve.call(e),_e=e=>"[object Object]"===ye(e);function ke(){const e=new Map;return{events:e,on(t,n){const r=e.get(t);r&&r.push(n)||e.set(t,[n])},off(t,n){const r=e.get(t);r&&r.splice(r.indexOf(n)>>>0,1)},emit(t,n){(e.get(t)||[]).slice().map((e=>e(n))),(e.get("*")||[]).slice().map((e=>e(t,n)))}}}function xe(e,t,n={}){const{domain:r,messages:o,args:a}=n,i=new SyntaxError(String(e));return i.code=e,t&&(i.location=t),i.domain=r,i}function we(e){throw e}function Se(e,t,n){const r={start:e,end:t};return null!=n&&(r.source=n),r}const Ae=" ",Ce="\n",Ee=String.fromCharCode(8232),Te=String.fromCharCode(8233);function Oe(e){const t=e;let n=0,r=1,o=1,a=0;const i=e=>"\r"===t[e]&&t[e+1]===Ce,s=e=>t[e]===Te,l=e=>t[e]===Ee,c=e=>i(e)||s(e)||l(e)?Ce:t[e];function u(){return a=0,(i(e=n)||(e=>t[e]===Ce)(e)||s(e)||l(e))&&(r++,o=0),i(n)&&n++,n++,o++,t[n];var e}return{index:()=>n,line:()=>r,column:()=>o,peekOffset:()=>a,charAt:c,currentChar:()=>c(n),currentPeek:()=>c(n+a),next:u,peek:function(){return i(n+a)&&a++,a++,t[n+a]},reset:function(){n=0,r=1,o=1,a=0},resetPeek:function(e=0){a=e},skipToPeek:function(){const e=n+a;for(;e!==n;)u();a=0}}}const Pe=void 0;function De(e,t={}){const n=!1!==t.location,r=Oe(e),o=()=>r.index(),a=()=>{return e=r.line(),t=r.column(),n=r.index(),{line:e,column:t,offset:n};var e,t,n},i=a(),s=o(),l={currentType:14,offset:s,startLoc:i,endLoc:i,lastType:14,lastOffset:s,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function d(e,t,n,...r){const o=c();if(t.column+=n,t.offset+=n,u){const n=xe(e,Se(o.startLoc,t),{domain:"tokenizer",args:r});u(n)}}function p(e,t,r){e.endLoc=a(),e.currentType=t;const o={type:t};return n&&(o.loc=Se(e.startLoc,e.endLoc)),null!=r&&(o.value=r),o}const h=e=>p(e,14);function f(e,t){return e.currentChar()===t?(e.next(),t):(d(0,a(),0,t),"")}function m(e){let t="";for(;e.currentPeek()===Ae||e.currentPeek()===Ce;)t+=e.currentPeek(),e.peek();return t}function g(e){const t=m(e);return e.skipToPeek(),t}function b(e){if(e===Pe)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function v(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function y(e,t=!0){const n=(t=!1,r="",o=!1)=>{const a=e.currentPeek();return"{"===a?"%"!==r&&t:"@"!==a&&a?"%"===a?(e.peek(),n(t,"%",!0)):"|"===a?!("%"!==r&&!o&&(r===Ae||r===Ce)):a===Ae?(e.peek(),n(!0,Ae,o)):a!==Ce||(e.peek(),n(!0,Ce,o)):"%"===r||t},r=n();return t&&e.resetPeek(),r}function _(e,t){const n=e.currentChar();return n===Pe?Pe:t(n)?(e.next(),n):null}function k(e){return _(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function x(e){return _(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function w(e){return _(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function S(e){let t="",n="";for(;t=x(e);)n+=t;return n}function A(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return C(e,t,4);case"U":return C(e,t,6);default:return d(3,a(),0,t),""}}function C(e,t,n){f(e,t);let r="";for(let o=0;o=1&&d(8,a(),0),e.next(),n=p(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&d(7,a(),0),e.next(),n=p(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&d(6,a(),0),n=O(e,t)||h(t),t.braceNest=0,n;default:let r=!0,o=!0,i=!0;if(v(e))return t.braceNest>0&&d(6,a(),0),n=p(t,1,E(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return d(6,a(),0),t.braceNest=0,P(e,t);if(r=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=b(e.currentPeek());return e.resetPeek(),r}(e,t))return n=p(t,5,function(e){g(e);let t="",n="";for(;t=k(e);)n+=t;return e.currentChar()===Pe&&d(6,a(),0),n}(e)),g(e),n;if(o=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r=function(e){if(e===Pe)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),r}(e,t))return n=p(t,6,function(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${S(e)}`):t+=S(e),e.currentChar()===Pe&&d(6,a(),0),t}(e)),g(e),n;if(i=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const r="'"===e.currentPeek();return e.resetPeek(),r}(e,t))return n=p(t,7,function(e){g(e),f(e,"'");let t="",n="";const r=e=>"'"!==e&&e!==Ce;for(;t=_(e,r);)n+="\\"===t?A(e):t;const o=e.currentChar();return o===Ce||o===Pe?(d(2,a(),0),o===Ce&&(e.next(),f(e,"'")),n):(f(e,"'"),n)}(e)),g(e),n;if(!r&&!o&&!i)return n=p(t,13,function(e){g(e);let t="",n="";const r=e=>"{"!==e&&"}"!==e&&e!==Ae&&e!==Ce;for(;t=_(e,r);)n+=t;return n}(e)),d(1,a(),0,n.value),g(e),n}return n}function O(e,t){const{currentType:n}=t;let r=null;const o=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||o!==Ce&&o!==Ae||d(9,a(),0),o){case"@":return e.next(),r=p(t,8,"@"),t.inLinked=!0,r;case".":return g(e),e.next(),p(t,9,".");case":":return g(e),e.next(),p(t,10,":");default:return v(e)?(r=p(t,1,E(e)),t.braceNest=0,t.inLinked=!1,r):function(e,t){const{currentType:n}=t;if(8!==n)return!1;m(e);const r="."===e.currentPeek();return e.resetPeek(),r}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;m(e);const r=":"===e.currentPeek();return e.resetPeek(),r}(e,t)?(g(e),O(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;m(e);const r=b(e.currentPeek());return e.resetPeek(),r}(e,t)?(g(e),p(t,12,function(e){let t="",n="";for(;t=k(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const r=()=>{const t=e.currentPeek();return"{"===t?b(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||t===Ae||!t)&&(t===Ce?(e.peek(),r()):b(t))},o=r();return e.resetPeek(),o}(e,t)?(g(e),"{"===o?T(e,t)||r:p(t,11,function(e){const t=(n=!1,r)=>{const o=e.currentChar();return"{"!==o&&"%"!==o&&"@"!==o&&"|"!==o&&o?o===Ae?r:o===Ce?(r+=o,e.next(),t(n,r)):(r+=o,e.next(),t(!0,r)):r};return t(!1,"")}(e))):(8===n&&d(9,a(),0),t.braceNest=0,t.inLinked=!1,P(e,t))}}function P(e,t){let n={type:14};if(t.braceNest>0)return T(e,t)||h(t);if(t.inLinked)return O(e,t)||h(t);const r=e.currentChar();switch(r){case"{":return T(e,t)||h(t);case"}":return d(5,a(),0),e.next(),p(t,3,"}");case"@":return O(e,t)||h(t);default:if(v(e))return n=p(t,1,E(e)),t.braceNest=0,t.inLinked=!1,n;if(y(e))return p(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!y(e))break;t+=n,e.next()}else if(n===Ae||n===Ce)if(y(e))t+=n,e.next();else{if(v(e))break;t+=n,e.next()}else t+=n,e.next()}return t}(e));if("%"===r)return e.next(),p(t,4,"%")}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:i}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=i,l.offset=o(),l.startLoc=a(),r.currentChar()===Pe?p(l,14):P(r,l)},currentOffset:o,currentPosition:a,context:c}}const Re=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function Le(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function Ie(e={}){const t=!1!==e.location,{onError:n}=e;function r(e,t,r,o,...a){const i=e.currentPosition();if(i.offset+=o,i.column+=o,n){const e=xe(t,Se(r,i),{domain:"parser",args:a});n(e)}}function o(e,n,r){const o={type:e,start:n,end:n};return t&&(o.loc={start:r,end:r}),o}function a(e,n,r,o){e.end=n,o&&(e.type=o),t&&e.loc&&(e.loc.end=r)}function i(e,t){const n=e.context(),r=o(3,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}function s(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:i}=n,s=o(5,r,i);return s.index=parseInt(t,10),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function l(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:i}=n,s=o(4,r,i);return s.key=t,e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function c(e,t){const n=e.context(),{lastOffset:r,lastStartLoc:i}=n,s=o(9,r,i);return s.value=t.replace(Re,Le),e.nextToken(),a(s,e.currentOffset(),e.currentPosition()),s}function u(e){const t=e.context(),n=o(6,t.offset,t.startLoc);let i=e.nextToken();if(9===i.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:i,lastStartLoc:s}=n,l=o(8,i,s);return 12!==t.type?(r(e,11,n.lastStartLoc,0),l.value="",a(l,i,s),{nextConsumeToken:t,node:l}):(null==t.value&&r(e,13,n.lastStartLoc,0,Me(t)),l.value=t.value||"",a(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,i=t.nextConsumeToken||e.nextToken()}switch(10!==i.type&&r(e,13,t.lastStartLoc,0,Me(i)),i=e.nextToken(),2===i.type&&(i=e.nextToken()),i.type){case 11:null==i.value&&r(e,13,t.lastStartLoc,0,Me(i)),n.key=function(e,t){const n=e.context(),r=o(7,n.offset,n.startLoc);return r.value=t,a(r,e.currentOffset(),e.currentPosition()),r}(e,i.value||"");break;case 5:null==i.value&&r(e,13,t.lastStartLoc,0,Me(i)),n.key=l(e,i.value||"");break;case 6:null==i.value&&r(e,13,t.lastStartLoc,0,Me(i)),n.key=s(e,i.value||"");break;case 7:null==i.value&&r(e,13,t.lastStartLoc,0,Me(i)),n.key=c(e,i.value||"");break;default:r(e,12,t.lastStartLoc,0);const u=e.context(),d=o(7,u.offset,u.startLoc);return d.value="",a(d,u.offset,u.startLoc),n.key=d,a(n,u.offset,u.startLoc),{nextConsumeToken:i,node:n}}return a(n,e.currentOffset(),e.currentPosition()),{node:n}}function d(e){const t=e.context(),n=o(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let d=null;do{const o=d||e.nextToken();switch(d=null,o.type){case 0:null==o.value&&r(e,13,t.lastStartLoc,0,Me(o)),n.items.push(i(e,o.value||""));break;case 6:null==o.value&&r(e,13,t.lastStartLoc,0,Me(o)),n.items.push(s(e,o.value||""));break;case 5:null==o.value&&r(e,13,t.lastStartLoc,0,Me(o)),n.items.push(l(e,o.value||""));break;case 7:null==o.value&&r(e,13,t.lastStartLoc,0,Me(o)),n.items.push(c(e,o.value||""));break;case 8:const a=u(e);n.items.push(a.node),d=a.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return a(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}return{parse:function(n){const i=De(n,se({},e)),s=i.context(),l=o(0,s.offset,s.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=function(e){const t=e.context(),{offset:n,startLoc:i}=t,s=d(e);return 14===t.currentType?s:function(e,t,n,i){const s=e.context();let l=0===i.items.length;const c=o(1,t,n);c.cases=[],c.cases.push(i);do{const t=d(e);l||(l=0===t.items.length),c.cases.push(t)}while(14!==s.currentType);return l&&r(e,10,n,0),a(c,e.currentOffset(),e.currentPosition()),c}(e,n,i,s)}(i),14!==s.currentType&&r(i,13,s.lastStartLoc,0,n[s.offset]||""),a(l,i.currentOffset(),i.currentPosition()),l}}}function Me(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Fe(e,t){for(let n=0;n1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let n=0;nn,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&Ne(e.body,n);const r=n.context();e.helpers=Array.from(r.helpers)}(r,n),((e,t={})=>{const n=me(t.mode)?t.mode:"normal",r=me(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,a=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",i=t.needIndent?t.needIndent:"arrow"!==n,s=e.helpers||[],l=function(e,t){const{sourceMap:n,filename:r,breakLineCode:o,needIndent:a}=t,i={source:e.loc.source,filename:r,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:a,indentLevel:0};function s(e,t){i.code+=e}function l(e,t=!0){const n=t?o:"";s(a?n+" ".repeat(e):n)}return{context:()=>i,push:s,indent:function(e=!0){const t=++i.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--i.indentLevel;e&&l(t)},newline:function(){l(i.indentLevel)},helper:e=>`_${e}`,needIndent:()=>i.needIndent}}(e,{mode:n,filename:r,sourceMap:o,breakLineCode:a,needIndent:i});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(i),s.length>0&&(l.push(`const { ${s.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),l.newline()),l.push("return "),je(l,e),l.deindent(i),l.push("}");const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}})(r,n)}const He=Object.prototype.hasOwnProperty;function qe(e,t){return He.call(e,t)}const Ue=e=>null!==e&&"object"==typeof e,Be=[];Be[0]={w:[0],i:[3,0],"[":[4],o:[7]},Be[1]={w:[1],".":[2],"[":[4],o:[7]},Be[2]={w:[2],i:[3,0],0:[3,0]},Be[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},Be[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},Be[5]={"'":[4,0],o:8,l:[5,0]},Be[6]={'"':[4,0],o:8,l:[6,0]};const Ve=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function ze(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}const We=new Map;function Ge(e,t){if(!Ue(e))return null;let n=We.get(t);if(n||(n=function(e){const t=[];let n,r,o,a,i,s,l,c=-1,u=0,d=0;const p=[];function h(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,o="\\"+t,p[0](),!0}for(p[0]=()=>{void 0===r?r=o:r+=o},p[1]=()=>{void 0!==r&&(t.push(r),r=void 0)},p[2]=()=>{p[0](),d++},p[3]=()=>{if(d>0)d--,u=4,p[0]();else{if(d=0,void 0===r)return!1;if(r=function(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,Ve.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}(r),!1===r)return!1;p[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!h()){if(a=ze(n),l=Be[u],i=l[a]||l.l||8,8===i)return;if(u=i[0],void 0!==i[1]&&(s=p[i[1]],s&&(o=n,!1===s())))return;if(7===u)return t}}(t),n&&We.set(t,n)),!n)return null;const r=n.length;let o=e,a=0;for(;ae,Je=e=>"",Ze=e=>0===e.length?"":e.join(""),Ke=e=>null==e?"":he(e)||_e(e)&&e.toString===ve?JSON.stringify(e,null,2):String(e);function Qe(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}let et=null;const tt=nt("function:translate");function nt(e){return t=>et&&et.emit(e,t)}let rt,ot=null;const at=e=>{ot=e};let it=0;function st(e,t,n,r,o){const{missing:a,onWarn:i}=e;if(null!==a){const r=a(e,n,t,o);return me(r)?r:t}return t}function lt(e,t,n){const r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(n);if(!o){o=[];let e=[n];for(;he(e);)e=ct(o,e,t);const a=he(t)?t:_e(t)?t.default?t.default:null:t;e=me(a)?[a]:a,he(e)&&ct(o,e,!1),r.__localeChainCache.set(n,o)}return o}function ct(e,t,n){let r=!0;for(let o=0;oe;let ft=Object.create(null);function mt(e){return xe(e,null,void 0)}const gt=()=>"",bt=e=>fe(e);function vt(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,fallbackLocale:a,messages:i}=e,[s,l]=_t(...t),c=(ge(l.missingWarn)?l.missingWarn:e.missingWarn,ge(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,ge(l.escapeParameter)?l.escapeParameter:e.escapeParameter),u=!!l.resolvedMessage,d=me(l.default)||ge(l.default)?ge(l.default)?s:l.default:n?s:"",p=n||""!==d,h=me(l.locale)?l.locale:e.locale;c&&function(e){he(e.list)?e.list=e.list.map((e=>me(e)?ue(e):e)):be(e.named)&&Object.keys(e.named).forEach((t=>{me(e.named[t])&&(e.named[t]=ue(e.named[t]))}))}(l);let[f,m,g]=u?[s,h,i[h]||{}]:function(e,t,n,r,o,a){const{messages:i,onWarn:s}=e,l=lt(e,r,n);let c,u={},d=null,p=n,h=null;for(let n=0;n{v=!0}));if(v)return f;const _=function(e,t,n,r){const{modifiers:o,pluralRules:a}=e,i={locale:t,modifiers:o,pluralRules:a,messages:r=>{const o=Ge(n,r);if(me(o)){let n=!1;const a=yt(e,r,t,o,r,(()=>{n=!0}));return n?gt:a}return bt(o)?o:gt}};return e.processor&&(i.processor=e.processor),r.list&&(i.list=r.list),r.named&&(i.named=r.named),re(r.plural)&&(i.pluralIndex=r.plural),i}(e,m,g,l),k=function(e,t,n){return t(n)}(0,y,function(e={}){const t=e.locale,n=function(e){const t=re(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(re(e.named.count)||re(e.named.n))?re(e.named.count)?e.named.count:re(e.named.n)?e.named.n:t:t}(e),r=be(e.pluralRules)&&me(t)&&fe(e.pluralRules[t])?e.pluralRules[t]:Qe,o=be(e.pluralRules)&&me(t)&&fe(e.pluralRules[t])?Qe:void 0,a=e.list||[],i=e.named||{};function s(t){return(fe(e.messages)?e.messages(t):!!be(e.messages)&&e.messages[t])||(e.parent?e.parent.message(t):Je)}re(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,i);const l=_e(e.processor)&&fe(e.processor.normalize)?e.processor.normalize:Ze,c=_e(e.processor)&&fe(e.processor.interpolate)?e.processor.interpolate:Ke,u={list:e=>a[e],named:e=>i[e],plural:e=>e[r(n,e.length,o)],linked:(t,n)=>{const r=s(t)(u);return me(n)?(o=n,e.modifiers?e.modifiers[o]:Xe)(r):r;var o},message:s,type:_e(e.processor)&&me(e.processor.type)?e.processor.type:"text",interpolate:c,normalize:l};return u}(_)),x=r?r(k):k;if(__INTLIFY_PROD_DEVTOOLS__){const t={timestamp:Date.now(),key:me(s)?s:bt(f)?f.key:"",locale:m||(bt(f)?f.locale:""),format:me(f)?f:bt(f)?f.source:"",message:x};t.meta=se({},e.__meta,ot||{}),tt(t)}return x}function yt(e,t,n,r,o,a){const{messageCompiler:i,warnHtmlMessage:s}=e;if(bt(r)){const e=r;return e.locale=e.locale||n,e.key=e.key||t,e}const l=i(r,function(e,t,n,r,o,a){return{warnHtmlMessage:o,onError:e=>{throw a&&a(e),e},onCacheKey:e=>((e,t,n)=>{return r={l:e,k:t,s:n},JSON.stringify(r).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027");var r})(t,n,e)}}(0,n,o,0,s,a));return l.locale=n,l.key=t,l.source=r,l}function _t(...e){const[t,n,r]=e,o={};if(!me(t)&&!re(t)&&!bt(t))throw mt(14);const a=re(t)?String(t):(bt(t),t);return re(n)?o.plural=n:me(n)?o.default=n:_e(n)&&!ae(n)?o.named=n:he(n)&&(o.list=n),re(r)?o.plural=r:me(r)?o.default=r:_e(r)&&se(o,r),[a,o]}const kt="undefined"!=typeof Intl;function xt(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:a}=e,{__datetimeFormatters:i}=e,[s,l,c,u]=wt(...t),d=(ge(c.missingWarn)?c.missingWarn:e.missingWarn,ge(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,!!c.part),p=me(c.locale)?c.locale:e.locale,h=lt(e,o,p);if(!me(s)||""===s)return new Intl.DateTimeFormat(p).format(l);let f,m={},g=null,b=p,v=null;for(let t=0;to,setSettings(e){try{localStorage.setItem(r,JSON.stringify(e))}catch(e){}o=e},now:()=>{return void 0!==Dt||("undefined"!=typeof window&&window.performance?(Dt=!0,Rt=window.performance):void 0!==__webpack_require__.g&&(null===(e=__webpack_require__.g.perf_hooks)||void 0===e?void 0:e.performance)?(Dt=!0,Rt=__webpack_require__.g.perf_hooks.performance):Dt=!1),Dt?Rt.now():Date.now();var e}},t&&t.on("plugin:settings:set",((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}))})}async setRealTarget(e){this.target=e;for(const e of this.onQueue)this.target.on[e.method](...e.args);for(const e of this.targetQueue)e.resolve(await this.target[e.method](...e.args))}}const It="Vue I18n devtools",Mt="I18n Resources",Ft="Vue I18n",Nt="Search for scopes ...",jt=16764185;function $t(e,...t){return xe(e,null,void 0)}const Ht="__INTLIFY_META__",qt=ne("__transrateVNode"),Ut=ne("__datetimeParts"),Bt=ne("__numberParts"),Vt=ne("__enableEmitter"),zt=ne("__disableEmitter"),Wt=ne("__setPluralRules");ne("__intlifyMeta");const Gt=ne("__injectWithOption");let Yt=0;function Xt(e){return(t,n,o,a)=>e(n,o,(0,r.FN)()||void 0,a)}function Jt(e,t){const{messages:n,__i18n:r}=t,o=_e(n)?n:he(r)?{}:{[e]:{}};if(he(r)&&r.forEach((({locale:e,resource:t})=>{e?(o[e]=o[e]||{},Kt(t,o[e])):Kt(t,o)})),t.flatJson)for(const e in o)pe(o,e)&&Ye(o[e]);return o}const Zt=e=>!be(e)||he(e);function Kt(e,t){if(Zt(e)||Zt(t))throw $t(20);for(const n in e)pe(e,n)&&(Zt(e[n])||Zt(t[n])?t[n]=e[n]:Kt(e[n],t[n]))}function Qt(e={}){const{__root:t}=e,n=void 0===t;let o=!ge(e.inheritLocale)||e.inheritLocale;const a=(0,Tt.iH)(t&&o?t.locale.value:me(e.locale)?e.locale:"en-US"),i=(0,Tt.iH)(t&&o?t.fallbackLocale.value:me(e.fallbackLocale)||he(e.fallbackLocale)||_e(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:a.value),s=(0,Tt.iH)(Jt(a.value,e)),l=(0,Tt.iH)(_e(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),c=(0,Tt.iH)(_e(e.numberFormats)?e.numberFormats:{[a.value]:{}});let u=t?t.missingWarn:!ge(e.missingWarn)&&!oe(e.missingWarn)||e.missingWarn,d=t?t.fallbackWarn:!ge(e.fallbackWarn)&&!oe(e.fallbackWarn)||e.fallbackWarn,p=t?t.fallbackRoot:!ge(e.fallbackRoot)||e.fallbackRoot,h=!!e.fallbackFormat,f=fe(e.missing)?e.missing:null,m=fe(e.missing)?Xt(e.missing):null,g=fe(e.postTranslation)?e.postTranslation:null,b=!ge(e.warnHtmlMessage)||e.warnHtmlMessage,v=!!e.escapeParameter;const y=t?t.modifiers:_e(e.modifiers)?e.modifiers:{};let _,k=e.pluralRules||t&&t.pluralRules;_=function(e={}){const t=me(e.version)?e.version:"9.1.10",n=me(e.locale)?e.locale:"en-US",r=he(e.fallbackLocale)||_e(e.fallbackLocale)||me(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,o=_e(e.messages)?e.messages:{[n]:{}},a=_e(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},i=_e(e.numberFormats)?e.numberFormats:{[n]:{}},s=se({},e.modifiers||{},{upper:e=>me(e)?e.toUpperCase():e,lower:e=>me(e)?e.toLowerCase():e,capitalize:e=>me(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),l=e.pluralRules||{},c=fe(e.missing)?e.missing:null,u=!ge(e.missingWarn)&&!oe(e.missingWarn)||e.missingWarn,d=!ge(e.fallbackWarn)&&!oe(e.fallbackWarn)||e.fallbackWarn,p=!!e.fallbackFormat,h=!!e.unresolving,f=fe(e.postTranslation)?e.postTranslation:null,m=_e(e.processor)?e.processor:null,g=!ge(e.warnHtmlMessage)||e.warnHtmlMessage,b=!!e.escapeParameter,v=fe(e.messageCompiler)?e.messageCompiler:rt,y=fe(e.onWarn)?e.onWarn:ie,_=e,k=be(_.__datetimeFormatters)?_.__datetimeFormatters:new Map,x=be(_.__numberFormatters)?_.__numberFormatters:new Map,w=be(_.__meta)?_.__meta:{};it++;const S={version:t,cid:it,locale:n,fallbackLocale:r,messages:o,datetimeFormats:a,numberFormats:i,modifiers:s,pluralRules:l,missing:c,missingWarn:u,fallbackWarn:d,fallbackFormat:p,unresolving:h,postTranslation:f,processor:m,warnHtmlMessage:g,escapeParameter:b,messageCompiler:v,onWarn:y,__datetimeFormatters:k,__numberFormatters:x,__meta:w};return __INTLIFY_PROD_DEVTOOLS__&&function(e,t,n){et&&et.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}(S,t,w),S}({version:"9.1.10",locale:a.value,fallbackLocale:i.value,messages:s.value,datetimeFormats:l.value,numberFormats:c.value,modifiers:y,pluralRules:k,missing:null===m?void 0:m,missingWarn:u,fallbackWarn:d,fallbackFormat:h,unresolving:!0,postTranslation:null===g?void 0:g,warnHtmlMessage:b,escapeParameter:v,__datetimeFormatters:_e(_)?_.__datetimeFormatters:void 0,__numberFormatters:_e(_)?_.__numberFormatters:void 0,__v_emitter:_e(_)?_.__v_emitter:void 0,__meta:{framework:"vue"}}),pt(_,a.value,i.value);const x=(0,r.Fl)({get:()=>a.value,set:e=>{a.value=e,_.locale=a.value}}),w=(0,r.Fl)({get:()=>i.value,set:e=>{i.value=e,_.fallbackLocale=i.value,pt(_,a.value,e)}}),S=(0,r.Fl)((()=>s.value)),A=(0,r.Fl)((()=>l.value)),C=(0,r.Fl)((()=>c.value));function E(e,n,o,u,d,h){let f;if(a.value,i.value,s.value,l.value,c.value,__INTLIFY_PROD_DEVTOOLS__)try{at((()=>{const e=(0,r.FN)();return e&&e.type[Ht]?{[Ht]:e.type[Ht]}:null})()),f=e(_)}finally{at(null)}else f=e(_);if(re(f)&&-1===f){const[e,r]=n();return t&&p?u(t):d(e)}if(h(f))return f;throw $t(14)}function T(...e){return E((t=>vt(t,...e)),(()=>_t(...e)),0,(t=>t.t(...e)),(e=>e),(e=>me(e)))}const O={normalize:function(e){return e.map((e=>me(e)?(0,r.Wm)(r.xv,null,e,0):e))},interpolate:e=>e,type:"vnode"};function P(e){return s.value[e]||{}}Yt++,t&&((0,r.YP)(t.locale,(e=>{o&&(a.value=e,_.locale=e,pt(_,a.value,i.value))})),(0,r.YP)(t.fallbackLocale,(e=>{o&&(i.value=e,_.fallbackLocale=e,pt(_,a.value,i.value))})));const D={id:Yt,locale:x,fallbackLocale:w,get inheritLocale(){return o},set inheritLocale(e){o=e,e&&t&&(a.value=t.locale.value,i.value=t.fallbackLocale.value,pt(_,a.value,i.value))},get availableLocales(){return Object.keys(s.value).sort()},messages:S,datetimeFormats:A,numberFormats:C,get modifiers(){return y},get pluralRules(){return k||{}},get isGlobal(){return n},get missingWarn(){return u},set missingWarn(e){u=e,_.missingWarn=u},get fallbackWarn(){return d},set fallbackWarn(e){d=e,_.fallbackWarn=d},get fallbackRoot(){return p},set fallbackRoot(e){p=e},get fallbackFormat(){return h},set fallbackFormat(e){h=e,_.fallbackFormat=h},get warnHtmlMessage(){return b},set warnHtmlMessage(e){b=e,_.warnHtmlMessage=e},get escapeParameter(){return v},set escapeParameter(e){v=e,_.escapeParameter=e},t:T,rt:function(...e){const[t,n,r]=e;if(r&&!be(r))throw $t(15);return T(t,n,se({resolvedMessage:!0},r||{}))},d:function(...e){return E((t=>xt(t,...e)),(()=>wt(...e)),0,(t=>t.d(...e)),(()=>""),(e=>me(e)))},n:function(...e){return E((t=>At(t,...e)),(()=>Ct(...e)),0,(t=>t.n(...e)),(()=>""),(e=>me(e)))},te:function(e,t){return null!==Ge(P(me(t)?t:a.value),e)},tm:function(e){const n=function(e){let t=null;const n=lt(_,i.value,a.value);for(let r=0;r{let n;const r=t;try{r.processor=O,n=vt(r,...e)}finally{r.processor=null}return n}),(()=>_t(...e)),0,(t=>t[qt](...e)),(e=>[(0,r.Wm)(r.xv,null,e,0)]),(e=>he(e)))},[Bt]:function(...e){return E((t=>At(t,...e)),(()=>Ct(...e)),0,(t=>t[Bt](...e)),(()=>[]),(e=>me(e)||he(e)))},[Ut]:function(...e){return E((t=>xt(t,...e)),(()=>wt(...e)),0,(t=>t[Ut](...e)),(()=>[]),(e=>me(e)||he(e)))},[Wt]:function(e){k=e,_.pluralRules=k},[Gt]:e.__injectWithOption};return D}function en(e={}){const t=Qt(function(e){const t=me(e.locale)?e.locale:"en-US",n=me(e.fallbackLocale)||he(e.fallbackLocale)||_e(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,r=fe(e.missing)?e.missing:void 0,o=!ge(e.silentTranslationWarn)&&!oe(e.silentTranslationWarn)||!e.silentTranslationWarn,a=!ge(e.silentFallbackWarn)&&!oe(e.silentFallbackWarn)||!e.silentFallbackWarn,i=!ge(e.fallbackRoot)||e.fallbackRoot,s=!!e.formatFallbackMessages,l=_e(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=fe(e.postTranslation)?e.postTranslation:void 0,d=!me(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,p=!!e.escapeParameterHtml,h=!ge(e.sync)||e.sync;let f=e.messages;if(_e(e.sharedMessages)){const t=e.sharedMessages;f=Object.keys(t).reduce(((e,n)=>{const r=e[n]||(e[n]={});return se(r,t[n]),e}),f||{})}const{__i18n:m,__root:g,__injectWithOption:b}=e,v=e.datetimeFormats,y=e.numberFormats;return{locale:t,fallbackLocale:n,messages:f,flatJson:e.flatJson,datetimeFormats:v,numberFormats:y,missing:r,missingWarn:o,fallbackWarn:a,fallbackRoot:i,fallbackFormat:s,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:p,inheritLocale:h,__i18n:m,__root:g,__injectWithOption:b}}(e)),n={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return ge(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=ge(e)?!e:e},get silentFallbackWarn(){return ge(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=ge(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[n,r,o]=e,a={};let i=null,s=null;if(!me(n))throw $t(15);const l=n;return me(r)?a.locale=r:he(r)?i=r:_e(r)&&(s=r),he(o)?i=o:_e(o)&&(s=o),t.t(l,i||s||{},a)},rt:(...e)=>t.rt(...e),tc(...e){const[n,r,o]=e,a={plural:1};let i=null,s=null;if(!me(n))throw $t(15);const l=n;return me(r)?a.locale=r:re(r)?a.plural=r:he(r)?i=r:_e(r)&&(s=r),me(o)?a.locale=o:he(o)?i=o:_e(o)&&(s=o),t.t(l,i||s||{},a)},te:(e,n)=>t.te(e,n),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>t.d(...e),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>t.n(...e),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)},getChoiceIndex:(e,t)=>-1,__onComponentInstanceCreated(t){const{componentInstanceCreatedListener:r}=e;r&&r(t,n)}};return n}const tn={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}},nn={name:"i18n-t",props:se({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>re(e)||!isNaN(e)}},tn),setup(e,t){const{slots:n,attrs:o}=t,a=e.i18n||yn({useScope:e.scope,__useComponent:!0}),i=Object.keys(n).filter((e=>"_"!==e));return()=>{const n={};e.locale&&(n.locale=e.locale),void 0!==e.plural&&(n.plural=me(e.plural)?+e.plural:e.plural);const s=function({slots:e},t){return 1===t.length&&"default"===t[0]?e.default?e.default():[]:t.reduce(((t,n)=>{const r=e[n];return r&&(t[n]=r()),t}),{})}(t,i),l=a[qt](e.keypath,s,n),c=se({},o);return me(e.tag)||be(e.tag)?(0,r.h)(e.tag,c,l):(0,r.h)(r.HY,c,l)}}};function rn(e,t,n,o){const{slots:a,attrs:i}=t;return()=>{const t={part:!0};let s={};e.locale&&(t.locale=e.locale),me(e.format)?t.key=e.format:be(e.format)&&(me(e.format.key)&&(t.key=e.format.key),s=Object.keys(e.format).reduce(((t,r)=>n.includes(r)?se({},t,{[r]:e.format[r]}):t),{}));const l=o(e.value,t,s);let c=[t.key];he(l)?c=l.map(((e,t)=>{const n=a[e.type];return n?n({[e.type]:e.value,index:t,parts:l}):[e.value]})):me(l)&&(c=[l]);const u=se({},i);return me(e.tag)||be(e.tag)?(0,r.h)(e.tag,u,c):(0,r.h)(r.HY,u,c)}}const on=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],an={name:"i18n-n",props:se({value:{type:Number,required:!0},format:{type:[String,Object]}},tn),setup(e,t){const n=e.i18n||yn({useScope:"parent",__useComponent:!0});return rn(e,t,on,((...e)=>n[Bt](...e)))}},sn=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],ln={name:"i18n-d",props:se({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},tn),setup(e,t){const n=e.i18n||yn({useScope:"parent",__useComponent:!0});return rn(e,t,sn,((...e)=>n[Ut](...e)))}};const cn="vue-i18n: composer properties";let un;async function dn(e,t){return new Promise(((n,r)=>{try{!function(e,t){const n=e,r=Ot(),o=Ot().__VUE_DEVTOOLS_GLOBAL_HOOK__,a=Pt&&n.enableEarlyProxy;if(!o||!r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&a){const e=a?new Lt(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:e}),e&&t(e.proxiedTarget)}else o.emit("devtools-plugin:setup",e,t)}({id:"vue-devtools-plugin-vue-i18n",label:It,packageName:"vue-i18n",homepage:"https://vue-i18n.intlify.dev",logo:"https://vue-i18n.intlify.dev/vue-i18n-devtools-logo.png",componentStateTypes:[cn],app:e},(r=>{un=r,r.on.visitComponentTree((({componentInstance:e,treeNode:n})=>{!function(e,t,n){const r="composition"===n.mode?n.global:n.global.__composer;if(e&&e.vnode.el.__VUE_I18N__&&e.vnode.el.__VUE_I18N__!==r){const n={label:`i18n (${e.type.name||e.type.displayName||e.type.__file} Scope)`,textColor:0,backgroundColor:16764185};t.tags.push(n)}}(e,n,t)})),r.on.inspectComponent((({componentInstance:e,instanceData:n})=>{e.vnode.el.__VUE_I18N__&&n&&("legacy"===t.mode?e.vnode.el.__VUE_I18N__!==t.global.__composer&&pn(n,e.vnode.el.__VUE_I18N__):pn(n,e.vnode.el.__VUE_I18N__))})),r.addInspector({id:"vue-i18n-resource-inspector",label:Mt,icon:"language",treeFilterPlaceholder:Nt}),r.on.getInspectorTree((n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&function(e,t){e.rootNodes.push({id:"global",label:"Global Scope"});const n="composition"===t.mode?t.global:t.global.__composer;for(const[r,o]of t.__instances){const a="composition"===t.mode?o:o.__composer;if(n===a)continue;const i=r.type.name||r.type.displayName||r.type.__file;e.rootNodes.push({id:a.id.toString(),label:`${i} Scope`})}}(n,t)})),r.on.getInspectorState((n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&function(e,t){const n=gn(e.nodeId,t);n&&(e.state=function(e){const t={},n="Locale related info",r=[{type:n,key:"locale",editable:!0,value:e.locale.value},{type:n,key:"fallbackLocale",editable:!0,value:e.fallbackLocale.value},{type:n,key:"availableLocales",editable:!1,value:e.availableLocales},{type:n,key:"inheritLocale",editable:!0,value:e.inheritLocale}];t[n]=r;const o="Locale messages info",a=[{type:o,key:"messages",editable:!1,value:hn(e.messages.value)}];t[o]=a;const i="Datetime formats info",s=[{type:i,key:"datetimeFormats",editable:!1,value:e.datetimeFormats.value}];t[i]=s;const l="Datetime formats info",c=[{type:l,key:"numberFormats",editable:!1,value:e.numberFormats.value}];return t[l]=c,t}(n))}(n,t)})),r.on.editInspectorState((n=>{n.app===e&&"vue-i18n-resource-inspector"===n.inspectorId&&function(e,t){const n=gn(e.nodeId,t);if(n){const[t]=e.path;"locale"===t&&me(e.state.value)?n.locale.value=e.state.value:"fallbackLocale"===t&&(me(e.state.value)||he(e.state.value)||be(e.state.value))?n.fallbackLocale.value=e.state.value:"inheritLocale"===t&&ge(e.state.value)&&(n.inheritLocale=e.state.value)}}(n,t)})),r.addTimelineLayer({id:"vue-i18n-timeline",label:Ft,color:jt}),n(!0)}))}catch(e){console.error(e),r(!1)}}))}function pn(e,t){const n=cn;e.state.push({type:n,key:"locale",editable:!0,value:t.locale.value}),e.state.push({type:n,key:"availableLocales",editable:!1,value:t.availableLocales}),e.state.push({type:n,key:"fallbackLocale",editable:!0,value:t.fallbackLocale.value}),e.state.push({type:n,key:"inheritLocale",editable:!0,value:t.inheritLocale}),e.state.push({type:n,key:"messages",editable:!1,value:hn(t.messages.value)}),e.state.push({type:n,key:"datetimeFormats",editable:!1,value:t.datetimeFormats.value}),e.state.push({type:n,key:"numberFormats",editable:!1,value:t.numberFormats.value})}function hn(e){const t={};return Object.keys(e).forEach((n=>{const r=e[n];var o,a;fe(r)&&"source"in r?t[n]={_custom:{type:"function",display:"ƒ "+((o=r).source?`("${a=o.source,a.replace(/[<>"&]/g,mn)}")`:"(?)")}}:be(r)?t[n]=hn(r):t[n]=r})),t}const fn={"<":"<",">":">",'"':""","&":"&"};function mn(e){return fn[e]||e}function gn(e,t){if("global"===e)return"composition"===t.mode?t.global:t.global.__composer;{const n=Array.from(t.__instances.values()).find((t=>t.id.toString()===e));return n?"composition"===t.mode?n:n.__composer:null}}function bn(e,t){if(un){let n;t&&"groupId"in t&&(n=t.groupId,delete t.groupId),un.addTimelineEvent({layerId:"vue-i18n-timeline",event:{title:e,groupId:n,time:Date.now(),meta:{},data:t||{},logType:"compile-error"===e?"error":"fallback"===e||"missing"===e?"warning":"default"}})}}function vn(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Wt](t.pluralizationRules||e.pluralizationRules);const n=Jt(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach((t=>e.mergeLocaleMessage(t,n[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((n=>e.mergeNumberFormat(n,t.numberFormats[n]))),e}function yn(e={}){const t=(0,r.FN)();if(null==t)throw $t(16);if(!t.appContext.app.__VUE_I18N_SYMBOL__)throw $t(17);const n=(0,r.f3)(t.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw $t(22);const o="composition"===n.mode?n.global:n.global.__composer,a=ae(e)?"__i18n"in t.type?"local":"global":e.useScope?e.useScope:"local";if("global"===a){let n=be(e.messages)?e.messages:{};"__i18nGlobal"in t.type&&(n=Jt(o.locale.value,{messages:n,__i18n:t.type.__i18nGlobal}));const r=Object.keys(n);if(r.length&&r.forEach((e=>{o.mergeLocaleMessage(e,n[e])})),be(e.datetimeFormats)){const t=Object.keys(e.datetimeFormats);t.length&&t.forEach((t=>{o.mergeDateTimeFormat(t,e.datetimeFormats[t])}))}if(be(e.numberFormats)){const t=Object.keys(e.numberFormats);t.length&&t.forEach((t=>{o.mergeNumberFormat(t,e.numberFormats[t])}))}return o}if("parent"===a){let r=function(e,t,n=!1){let r=null;const o=t.root;let a=t.parent;for(;null!=a;){const t=e;if("composition"===e.mode)r=t.__getInstance(a);else{const e=t.__getInstance(a);null!=e&&(r=e.__composer),n&&r&&!r[Gt]&&(r=null)}if(null!=r)break;if(o===a)break;a=a.parent}return r}(n,t,e.__useComponent);return null==r&&(r=o),r}if("legacy"===n.mode)throw $t(18);const i=n;let s=i.__getInstance(t);if(null==s){const n=t.type,a=se({},e);n.__i18n&&(a.__i18n=n.__i18n),o&&(a.__root=o),s=Qt(a),function(e,t,n){let o=null;(0,r.bv)((()=>{if(__VUE_PROD_DEVTOOLS__&&t.vnode.el){t.vnode.el.__VUE_I18N__=n,o=ke();const e=n;e[Vt]&&e[Vt](o),o.on("*",bn)}}),t),(0,r.Ah)((()=>{if(__VUE_PROD_DEVTOOLS__&&t.vnode.el&&t.vnode.el.__VUE_I18N__){o&&o.off("*",bn);const e=n;e[zt]&&e[zt](),delete t.vnode.el.__VUE_I18N__}e.__deleteInstance(t)}),t)}(i,t,s),i.__setInstance(t,s)}return s}const _n=["locale","fallbackLocale","availableLocales"],kn=["t","rt","d","n","tm"];var xn,wn;if(xn=function(e,t={}){{const n=(t.onCacheKey||ht)(e),r=ft[n];if(r)return r;let o=!1;const a=t.onError||we;t.onError=e=>{o=!0,a(e)};const{code:i}=$e(e,t),s=new Function(`return ${i}`)();return o?s:ft[n]=s}},rt=xn,function(){let e=!1;"boolean"!=typeof __VUE_I18N_FULL_INSTALL__&&(e=!0,ce().__VUE_I18N_FULL_INSTALL__=!0),"boolean"!=typeof __VUE_I18N_LEGACY_API__&&(e=!0,ce().__VUE_I18N_LEGACY_API__=!0),"boolean"!=typeof __INTLIFY_PROD_DEVTOOLS__&&(ce().__INTLIFY_PROD_DEVTOOLS__=!1)}(),__INTLIFY_PROD_DEVTOOLS__){const e=ce();e.__INTLIFY__=!0,wn=e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__,et=wn}function Sn(e){return Sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Sn(e)}function An(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cn(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:{};An(this,e),this.init(t,n)}return En(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Nn,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var a="string"!=typeof t?[].concat(t):t.split(".");a.length>1;){if(o())return{};var i=r(a.shift());!e[i]&&n&&(e[i]=new n),e=Object.prototype.hasOwnProperty.call(e,i)?e[i]:{}}return o()?{}:{obj:e,k:r(a.shift())}}function Vn(e,t,n){var r=Bn(e,t,Object);r.obj[r.k]=n}function zn(e,t){var n=Bn(e,t),r=n.obj,o=n.k;if(r)return r[o]}function Wn(e,t,n){var r=zn(e,n);return void 0!==r?r:zn(t,n)}function Gn(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):Gn(e[r],t[r],n):e[r]=t[r]);return e}function Yn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Xn={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Jn(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Xn[e]})):e}var Zn="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,Kn=[" ",",","?","!",";"];function Qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function er(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,a=0;aa+i;)i++,l=o[s=r.slice(a,a+i).join(n)];if(void 0===l)return;if(null===l)return null;if(t.endsWith(s)){if("string"==typeof l)return l;if(s&&"string"==typeof l[s])return l[s]}var c=r.slice(a+i).join(n);return c?tr(l,c,n):void 0}o=o[r[a]]}return o}}var nr=function(e){Pn(o,e);var t,n,r=(t=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=Rn(t);if(n){var o=Rn(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return Dn(this,e)});function o(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return An(this,o),t=r.call(this),Zn&&$n.call(Tn(t)),t.data=e||{},t.options=n,void 0===t.options.keySeparator&&(t.options.keySeparator="."),void 0===t.options.ignoreJSONStructure&&(t.options.ignoreJSONStructure=!0),t}return En(o,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,a=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,i=[e,t];n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split("."));var s=zn(this.data,i);return s||!a||"string"!=typeof n?s:tr(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},a=this.options.keySeparator;void 0===a&&(a=".");var i=[e,t];n&&(i=i.concat(a?n.split(a):n)),e.indexOf(".")>-1&&(r=t,t=(i=e.split("."))[1]),this.addNamespaces(t),Vn(this.data,i,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},i=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(i=e.split("."))[1]),this.addNamespaces(t);var s=zn(this.data,i)||{};r?Gn(s,n,o):s=er(er({},s),n),Vn(this.data,i,s),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?er(er({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),o}($n),rr={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var a=this;return e.forEach((function(e){a.processors[e]&&(t=a.processors[e].process(t,n,r,o))})),t}};function or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ar(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{};return An(this,o),t=r.call(this),Zn&&$n.call(Tn(t)),Un(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,Tn(t)),t.options=n,void 0===t.options.keySeparator&&(t.options.keySeparator="."),t.logger=jn.create("translator"),t}return En(o,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,i=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=Kn.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===r.length)return!0;var o=new RegExp("(".concat(r.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),a=!o.test(e);if(!a){var i=e.indexOf(n);i>0&&!o.test(e.substring(0,i))&&(a=!0)}return a}(e,n,r));if(a&&!i){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:o};var l=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(l[0])>-1)&&(o=l.shift()),e=l.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,t,n){var r=this;if("object"!==Sn(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var a=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),l=s.key,c=s.namespaces,u=c[c.length-1],d=t.lng||this.language,p=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var h=t.nsSeparator||this.options.nsSeparator;return a?(f.res="".concat(u).concat(h).concat(l),f):"".concat(u).concat(h).concat(l)}return a?(f.res=l,f):l}var f=this.resolve(e,t),m=f&&f.res,g=f&&f.usedKey||l,b=f&&f.exactUsedKey||l,v=Object.prototype.toString.apply(m),y=["[object Number]","[object Function]","[object RegExp]"],_=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,x="string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m;if(k&&m&&x&&y.indexOf(v)<0&&("string"!=typeof _||"[object Array]"!==v)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var w=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,m,ar(ar({},t),{},{ns:c})):"key '".concat(l," (").concat(this.language,")' returned an object instead of string.");return a?(f.res=w,f):w}if(i){var S="[object Array]"===v,A=S?[]:{},C=S?b:g;for(var E in m)if(Object.prototype.hasOwnProperty.call(m,E)){var T="".concat(C).concat(i).concat(E);A[E]=this.translate(T,ar(ar({},t),{joinArrays:!1,ns:c})),A[E]===T&&(A[E]=m[E])}m=A}}else if(k&&"string"==typeof _&&"[object Array]"===v)(m=m.join(_))&&(m=this.extendTranslation(m,e,t,n));else{var O=!1,P=!1,D=void 0!==t.count&&"string"!=typeof t.count,R=o.hasDefaultValue(t),L=D?this.pluralResolver.getSuffix(d,t.count,t):"",I=t["defaultValue".concat(L)]||t.defaultValue;!this.isValidLookup(m)&&R&&(O=!0,m=I),this.isValidLookup(m)||(P=!0,m=l);var M=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,F=M&&P?void 0:m,N=R&&I!==m&&this.options.updateMissing;if(P||O||N){if(this.logger.log(N?"updateKey":"missingKey",d,u,l,N?I:m),i){var j=this.resolve(l,ar(ar({},t),{},{keySeparator:!1}));j&&j.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var $=[],H=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&H&&H[0])for(var q=0;q1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!i.isValidLookup(t)){var l=i.extractFromKey(e,s),c=l.key;n=c;var u=l.namespaces;i.options.fallbackNS&&(u=u.concat(i.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,p=d&&!s.ordinal&&0===s.count&&i.pluralResolver.shouldUseIntlApi(),h=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,f=s.lngs?s.lngs:i.languageUtils.toResolveHierarchy(s.lng||i.language,s.fallbackLng);u.forEach((function(e){i.isValidLookup(t)||(a=e,!ir["".concat(f[0],"-").concat(e)]&&i.utils&&i.utils.hasLoadedNamespace&&!i.utils.hasLoadedNamespace(a)&&(ir["".concat(f[0],"-").concat(e)]=!0,i.logger.warn('key "'.concat(n,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(a,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((function(n){if(!i.isValidLookup(t)){o=n;var a,l=[c];if(i.i18nFormat&&i.i18nFormat.addLookupKeys)i.i18nFormat.addLookupKeys(l,c,n,e,s);else{var u;d&&(u=i.pluralResolver.getSuffix(n,s.count,s));var f="".concat(i.options.pluralSeparator,"zero");if(d&&(l.push(c+u),p&&l.push(c+f)),h){var m="".concat(c).concat(i.options.contextSeparator).concat(s.context);l.push(m),d&&(l.push(m+u),p&&l.push(m+f))}}for(;a=l.pop();)i.isValidLookup(t)||(r=a,t=i.getResource(n,e,a,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:a}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),o}($n);function lr(e){return e.charAt(0).toUpperCase()+e.slice(1)}var cr=function(){function e(t){An(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=jn.create("languageUtils")}return En(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=lr(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=lr(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=lr(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],a=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):"string"==typeof e&&a(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&a(n.formatLanguageCode(e))})),o}}]),e}(),ur=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],dr={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},pr=["v1","v2","v3"],hr={zero:0,one:1,two:2,few:3,many:4,other:5};function fr(){var e={};return ur.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:dr[t.fc]}}))})),e}var mr=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};An(this,e),this.languageUtils=t,this.options=n,this.logger=jn.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=fr()}return En(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((function(e,t){return hr[e]-hr[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):r.numbers.map((function(r){return t.getSuffix(e,r,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),o=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var a=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?a():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!pr.includes(this.options.compatibilityJSON)}}]),e}();function gr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function br(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};An(this,e),this.logger=jn.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return En(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:Jn,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Yn(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Yn(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?Yn(t.nestingPrefix):t.nestingPrefixEscaped||Yn("$t("),this.nestingSuffix=t.nestingSuffix?Yn(t.nestingSuffix):t.nestingSuffixEscaped||Yn(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,a,i,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var u=function(e){if(e.indexOf(s.formatSeparator)<0){var o=Wn(t,l,e);return s.alwaysFormat?s.format(o,void 0,n,br(br(br({},r),t),{},{interpolationkey:e})):o}var a=e.split(s.formatSeparator),i=a.shift().trim(),c=a.join(s.formatSeparator).trim();return s.format(Wn(t,l,i),c,n,br(br(br({},r),t),{},{interpolationkey:i}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach((function(t){for(i=0;o=t.regex.exec(e);){var n=o[1].trim();if(void 0===(a=u(n)))if("function"==typeof d){var l=d(e,o,r);a="string"==typeof l?l:""}else if(r&&r.hasOwnProperty(n))a="";else{if(p){a=o[0];continue}s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),a=""}else"string"==typeof a||s.useRawValueToEscape||(a=qn(a));var c=t.safeValue(a);if(e=e.replace(o[0],c),p?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++i>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=br({},a);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0];var a=(o=this.interpolate(o,i)).match(/'/g),s=o.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i=br(br({},t),i))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete i.defaultValue,e}for(i.applyPostProcessor=!1,delete i.defaultValue;n=this.nestingRegexp.exec(e);){var l=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=u.shift(),l=u,c=!0}if((r=t(s.call(this,n[1].trim(),i),i))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=qn(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=l.reduce((function(e,t){return o.format(e,t,a.lng,br(br({},a),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function yr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _r(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};An(this,e),this.logger=jn.create("formatter"),this.options=t,this.formats={number:kr((function(e,t){var n=new Intl.NumberFormat(e,t);return function(e){return n.format(e)}})),currency:kr((function(e,t){var n=new Intl.NumberFormat(e,_r(_r({},t),{},{style:"currency"}));return function(e){return n.format(e)}})),datetime:kr((function(e,t){var n=new Intl.DateTimeFormat(e,_r({},t));return function(e){return n.format(e)}})),relativetime:kr((function(e,t){var n=new Intl.RelativeTimeFormat(e,_r({},t));return function(e){return n.format(e,t.range||"day")}})),list:kr((function(e,t){var n=new Intl.ListFormat(e,_r({},t));return function(e){return n.format(e)}}))},this.init(t)}return En(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=kr(t)}},{key:"format",value:function(e,t,n,r){var o=this;return t.split(this.formatSeparator).reduce((function(e,t){var a=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var o=r[1].substring(0,r[1].length-1);"currency"===t&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):"relativetime"===t&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach((function(e){if(e){var t=function(e){if(Array.isArray(e))return e}(a=e.split(":"))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return In(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?In(e,t):void 0}}(a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=t[0],o=t.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[r.trim()]||(n[r.trim()]=o),"false"===o&&(n[r.trim()]=!1),"true"===o&&(n[r.trim()]=!0),isNaN(o)||(n[r.trim()]=parseInt(o,10))}var a}))}return{formatName:t,formatOptions:n}}(t),i=a.formatName,s=a.formatOptions;if(o.formats[i]){var l=e;try{var c=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},u=c.locale||c.lng||r.locale||r.lng||n;l=o.formats[i](e,u,_r(_r(_r({},s),r),c))}catch(e){o.logger.warn(e)}return l}return o.logger.warn("there was no format function for ".concat(i)),e}),e)}}]),e}();function wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Sr(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};return An(this,o),a=r.call(this),Zn&&$n.call(Tn(a)),a.backend=e,a.store=t,a.services=n,a.languageUtils=n.languageUtils,a.options=i,a.logger=jn.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=i.maxParallelReads||10,a.readingCalls=0,a.maxRetries=i.maxRetries>=0?i.maxRetries:5,a.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(n,i.backend,i),a}return En(o,[{key:"queueLoad",value:function(e,t,n,r){var o=this,a={},i={},s={},l={};return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?void 0===i[s]&&(i[s]=!0):(o.state[s]=1,r=!1,void 0===i[s]&&(i[s]=!0),void 0===a[s]&&(a[s]=!0),void 0===l[t]&&(l[t]=!0)))})),r||(s[e]=!0)})),(Object.keys(a).length||Object.keys(i).length)&&this.queue.push({pending:i,pendingCount:Object.keys(i).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(i),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(l)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],a=r[1];t&&this.emit("failedLoading",o,a,t),n&&this.store.addResourceBundle(o,a,n),this.state[e]=t?-1:2;var i={};this.queue.forEach((function(n){var r,s,l,c,u;r=n.loaded,s=a,(c=(l=Bn(r,[o],Object)).obj)[u=l.k]=c[u]||[],c[u].push(s),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((function(e){i[e]||(i[e]={});var t=n.loaded[e];t.length&&t.forEach((function(t){void 0===i[e][t]&&(i[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",i),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,i=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:o,wait:a,callback:i}):(this.readingCalls++,this.backend[n](e,t,(function(s,l){if(r.readingCalls--,r.waitingReads.length>0){var c=r.waitingReads.shift();r.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}s&&l&&o2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var a=this.queueLoad(e,t,r,o);if(!a.toLoad.length)return a.pending.length||o(),null;a.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],a=r[1];this.read(o,a,"read",void 0,void 0,(function(r,i){r&&t.logger.warn("".concat(n,"loading namespace ").concat(a," for language ").concat(o," failed"),r),!r&&i&&t.logger.log("".concat(n,"loaded namespace ").concat(a," for language ").concat(o),i),t.loaded(e,r,i)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,Sr(Sr({},a),{},{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),o}($n);function Cr(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===Sn(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Sn(e[2])||"object"===Sn(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Er(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Or(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(An(this,o),e=r.call(this),Zn&&$n.call(Tn(e)),e.options=Er(t),e.services={},e.logger=jn,e.modules={external:[]},Dr(Tn(e)),n&&!e.isInitialized&&!t.isClone){if(!e.options.initImmediate)return e.init(t,n),Dn(e,Tn(e));setTimeout((function(){e.init(t,n)}),0)}return e}return En(o,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r=Cr();function o(e){return e?"function"==typeof e?new e:e:null}if(this.options=Or(Or(Or({},r),this.options),Er(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=Or(Or({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var a;this.modules.logger?jn.init(o(this.modules.logger),this.options):jn.init(null,this.options),this.modules.formatter?a=this.modules.formatter:"undefined"!=typeof Intl&&(a=xr);var i=new cr(this.options);this.store=new nr(this.options.resources,this.options);var s=this.services;s.logger=jn,s.resourceStore=this.store,s.languageUtils=i,s.pluralResolver=new mr(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!a||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(s.formatter=o(a),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new vr(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new Ar(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o1?n-1:0),o=1;o0&&"dev"!==l[0]&&(this.options.lng=l[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var c=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var d=Hn(),p=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),d.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),d}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pr,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var a=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){a.indexOf(e)<0&&a.push(e)}))};if(o)i(o);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return i(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(a,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)}))}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=Hn();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Pr),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&rr.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=Hn();this.emit("languageChanging",e);var o=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},a=function(a){e||a||!n.services.languageDetector||(a=[]);var i="string"==typeof a?a:n.services.languageUtils.getBestMatchFromCodes(a);i&&(n.language||o(i),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,a){a?(o(a),n.translator.changeLanguage(a),n.isLanguageChangingTo=void 0,n.emit("languageChanged",a),n.logger.log("languageChanged",a)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,o=function e(t,o){var a;if("object"!==Sn(o)){for(var i=arguments.length,s=new Array(i>2?i-2:0),l=2;l1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.resolvedLanguage||this.languages[0],o=!!this.options&&this.options.fallbackLng,a=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var i=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,i);if(void 0!==s)return s}return!(!this.hasResourceBundle(r,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!i(r,e)||o&&!i(a,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=Hn();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=Hn();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr":"rtl"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Pr,r=Or(Or(Or({},this.options),t),{isClone:!0}),a=new o(r);void 0===t.debug&&void 0===t.prefix||(a.logger=a.logger.clone(t));var i=["store","services","language"];return i.forEach((function(t){a[t]=e[t]})),a.services=Or({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new sr(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Rr(e,t)}));var Lr=Rr.createInstance();Lr.createInstance=Rr.createInstance,Lr.createInstance,Lr.init,Lr.loadResources,Lr.reloadResources,Lr.use,Lr.changeLanguage,Lr.getFixedT,Lr.t,Lr.exists,Lr.setDefaultNamespace,Lr.hasLoadedNamespace,Lr.loadNamespaces,Lr.loadLanguages;const Ir=Lr;var Mr,Fr=document.getElementById("language"),Nr=Fr?Array.from(Fr.querySelectorAll("option")).map((function(e){return e.value})):["en"],jr=Fr?Fr.options[Fr.selectedIndex].value:"en",$r=function(e){void 0===e&&(e="");try{return __webpack_require__(5144)("./".concat(e))}catch(e){return null}};Mr={},Nr.forEach((function(e){Mr[e]={translation:$r("".concat(e,"/translation.json"))}})),Ir.init({fallbackLng:"en",lng:jr,resources:Mr});var Hr,qr=(Hr={},Nr.forEach((function(e){Hr[e]=$r("".concat(e,"/translation.json"))})),function(e={}){const t=__VUE_I18N_LEGACY_API__&&ge(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=!!e.globalInjection,o=new Map,a=__VUE_I18N_LEGACY_API__&&t?en(e):Qt(e),i=ne(""),s={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(e,...o){if(__VUE_PROD_DEVTOOLS__&&(e.__VUE_I18N__=s),e.__VUE_I18N_SYMBOL__=i,e.provide(e.__VUE_I18N_SYMBOL__,s),!t&&n&&function(e,t){const n=Object.create(null);_n.forEach((e=>{const r=Object.getOwnPropertyDescriptor(t,e);if(!r)throw $t(22);const o=(0,Tt.dq)(r.value)?{get:()=>r.value.value,set(e){r.value.value=e}}:{get:()=>r.get&&r.get()};Object.defineProperty(n,e,o)})),e.config.globalProperties.$i18n=n,kn.forEach((n=>{const r=Object.getOwnPropertyDescriptor(t,n);if(!r||!r.value)throw $t(22);Object.defineProperty(e.config.globalProperties,`$${n}`,r)}))}(e,s.global),__VUE_I18N_FULL_INSTALL__&&function(e,t,...n){const r=_e(n[0])?n[0]:{},o=!!r.useI18nComponentName;(!ge(r.globalInstall)||r.globalInstall)&&(e.component(o?"i18n":nn.name,nn),e.component(an.name,an),e.component(ln.name,ln)),e.directive("t",function(e){const t=(t,{instance:n,value:r,modifiers:o})=>{if(!n||!n.$)throw $t(22);const a=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return null!=r?r.__composer:e.global.__composer}}(e,n.$),i=function(e){if(me(e))return{path:e};if(_e(e)){if(!("path"in e))throw $t(19);return e}throw $t(20)}(r);t.textContent=a.t(...function(e){const{path:t,locale:n,args:r,choice:o,plural:a}=e,i={},s=r||{};return me(n)&&(i.locale=n),re(o)&&(i.plural=o),re(a)&&(i.plural=a),[t,s,i]}(i))};return{beforeMount:t,beforeUpdate:t}}(t))}(e,s,...o),__VUE_I18N_LEGACY_API__&&t&&e.mixin(function(e,t,n){return{beforeCreate(){const o=(0,r.FN)();if(!o)throw $t(22);const a=this.$options;if(a.i18n){const n=a.i18n;a.__i18n&&(n.__i18n=a.__i18n),n.__root=t,this===this.$root?this.$i18n=vn(e,n):(n.__injectWithOption=!0,this.$i18n=en(n))}else a.__i18n?this===this.$root?this.$i18n=vn(e,a):this.$i18n=en({__i18n:a.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(o,this.$i18n),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e)},mounted(){if(__VUE_PROD_DEVTOOLS__){this.$el.__VUE_I18N__=this.$i18n.__composer;const e=this.__v_emitter=ke(),t=this.$i18n;t.__enableEmitter&&t.__enableEmitter(e),e.on("*",bn)}},beforeUnmount(){const e=(0,r.FN)();if(!e)throw $t(22);if(__VUE_PROD_DEVTOOLS__){this.__v_emitter&&(this.__v_emitter.off("*",bn),delete this.__v_emitter);const e=this.$i18n;e.__disableEmitter&&e.__disableEmitter(),delete this.$el.__VUE_I18N__}delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(e),delete this.$i18n}}}(a,a.__composer,s)),__VUE_PROD_DEVTOOLS__){if(!await dn(e,s))throw $t(21);const n=ke();if(t){const e=a;e.__enableEmitter&&e.__enableEmitter(n)}else{const e=a;e[Vt]&&e[Vt](n)}n.on("*",bn)}},get global(){return a},__instances:o,__getInstance:e=>o.get(e)||null,__setInstance(e,t){o.set(e,t)},__deleteInstance(e){o.delete(e)}};return s}({fallbackLocale:"en",locale:jr,messages:Hr})),Ur=function(e){var t=e.component,n=e.props,a=void 0===n?{}:n,i=e.use,s=void 0===i?[]:i,l=e.mountTarget,c=(0,r.aZ)(t),u=(0,o.createApp)(c,a);return null==s||s.forEach((function(e){u.use(e)})),u.mount(l)},Br=function(){function e(e,t){var n=this;this.root=e,this.manager=t,this.gutter=e.querySelector("la-gutter"),this.akn=e.querySelector("la-akoma-ntoso"),this.workFrbrUri=e.dataset.workFrbrUri||"",this.workId=e.dataset.workId||"",this.editable=this.root.hasAttribute("data-editable-relationships");var r=document.getElementById("provision-relationships");this.enrichments=r?JSON.parse(r.innerText||"[]"):[],this.listComponent=Ur({component:ee,props:{gutter:this.gutter,viewRoot:this.root,enrichments:this.enrichments,editable:this.editable,thisWorkFrbrUri:this.workFrbrUri},use:[qr],mountTarget:document.createElement("div")});var o=new MutationObserver((function(){n.listComponent.markAndAnchorAll()}));this.akn&&o.observe(this.akn,{childList:!0}),this.editable&&this.manager.addProvider(this)}return e.prototype.getButton=function(e){var t=document.createElement("button");return t.className="btn btn-outline-secondary",t.type="button",t.innerText="Add relationship...",t},e.prototype.addEnrichment=function(e){this.listComponent.creating={id:null,predicate_id:null,predicate:{},subject_work_id:this.workId,subject_work:{frbr_uri:this.workFrbrUri},subject_target_id:e.anchor_id,subject_documents:[],object_work:{},object_target_id:null,object_documents:[]}},e}();const Vr=function(){function e(e){var t=this;this.offCanvasUsed=!1,this.root=e,new ResizeObserver((function(){return t.moveFilters()})).observe(this.root),this.moveFilters()}return e.prototype.moveFilters=function(){window.innerWidth<992?this.moveFiltersToOffcanvas():this.moveFiltersToMainContent()},e.prototype.moveFiltersToOffcanvas=function(){var e=this;if(!this.offCanvasUsed){var t=this.root.querySelector(".offcanvas-body"),n=this.root.querySelector(".document-list-facets");t&&n&&requestAnimationFrame((function(){t.appendChild(n),e.offCanvasUsed=!0}))}},e.prototype.moveFiltersToMainContent=function(){var e=this;if(this.offCanvasUsed){var t=this.root.querySelector(".document-list-facets-wrapper"),n=this.root.querySelector(".document-list-facets");t&&n&&requestAnimationFrame((function(){t.appendChild(n),e.offCanvasUsed=!1}))}},e}();const zr=function(){function e(e){this.root=e,this.setupSorting()}return e.prototype.setupSorting=function(){var e=this;this.root.querySelectorAll("[data-sort]").forEach((function(t){t.addEventListener("click",(function(n){e.setSort(t.getAttribute("data-sort")||"")}))}))},e.prototype.setSort=function(e){var t=this.root.closest("form");t&&t.sort&&(t.sort.value=e,t.sort.dispatchEvent(new Event("change")))},e}(),Wr={class:"doc-search"},Gr={class:"input-group"},Yr=["placeholder","aria-label"],Xr={class:"btn btn-secondary",type:"submit"},Jr={class:"text-end mt-2"},Zr={key:0,class:"mt-2"},Kr={class:"doc-search__results"},Qr={key:0};var eo=__webpack_require__(813),to=__webpack_require__.n(eo);const no=["tabindex","onClick"],ro={class:"card-body"},oo={ref:"snippet",class:"result-snippet"},ao={name:"ResultSnippet",props:{node:{type:HTMLElement,required:!0}},watch:{node(e){this.setHTML(e)}},mounted(){this.setHTML(this.node)},methods:{setHTML(e){this.$refs.snippet.innerHTML="",e.querySelectorAll("a").forEach((e=>{const t=e.parentNode;for(;e.firstChild;)t.insertBefore(e.firstChild,e);t.removeChild(e)})),e.removeAttribute("style"),e.querySelectorAll("[style]").forEach((e=>e.removeAttribute("style"))),this.$refs.snippet.appendChild(e)}},render:function(e,t){return(0,r.wg)(),(0,r.iD)("div",oo,null,512)}},io={name:"HTMLSnippets",components:{ResultSnippet:ao},props:{nodes:{type:Array,required:!0}},emits:["go-to-snippet"],data:()=>({snippets:[]}),watch:{nodes(){this.renderSnippets()}},mounted(){this.renderSnippets()},methods:{renderSnippets(){const e=new Set;this.nodes.map((e=>e.closest("p, h1, h2, h3, h4, h5, h6, address, blockquote, div, table"))).forEach((t=>e.add(t))),this.snippets=[...e]}},render:function(e,t){const n=(0,r.up)("ResultSnippet");return(0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.snippets,((t,o)=>((0,r.wg)(),(0,r.iD)("div",{key:o,class:"card snippet-card mb-2",tabindex:o,role:"button","aria-pressed":"false",onClick:n=>{e.$emit("go-to-snippet",t)}},[(0,r._)("div",ro,[(0,r.Wm)(n,{node:t.cloneNode(!0)},null,8,["node"])])],8,no)))),128)}},so=["tabindex","onClick"],lo={class:"card-body"},co={name:"PdfSnippets",components:{ResultSnippet:ao},props:{nodes:{type:Array,required:!0}},emits:["go-to-snippet"],data:()=>({snippets:[]}),watch:{nodes(){this.renderSnippets()}},mounted(){this.renderSnippets()},methods:{renderSnippets(){const e=new Set;this.nodes.map((e=>e.closest('span[role="presentation"]'))).forEach((t=>{e.add(t)})),this.snippets=[...e].map((e=>({snippetNode:e,pageNode:e.closest("[data-page]")})))}},render:function(e,t){const n=(0,r.up)("ResultSnippet");return(0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.snippets,((t,o)=>((0,r.wg)(),(0,r.iD)("div",{key:o,class:"card snippet-card mb-2",tabindex:o,role:"button","aria-pressed":"false",onClick:n=>{e.$emit("go-to-snippet",t.snippetNode)}},[(0,r._)("div",lo,[(0,r._)("h5",null,[(0,r._)("strong",null,(0,a.zw)(e.$t("Page"))+" "+(0,a.zw)(t.pageNode.dataset.page),1)]),(0,r._)("div",null,[(0,r.Wm)(n,{node:t.snippetNode.cloneNode(!0)},null,8,["node"])])])],8,so)))),128)}},uo={class:""},po=["tabindex","onClick"],ho={class:"card-body"},fo={class:"card-title"},mo={name:"AknSnippets",components:{ResultSnippet:ao},props:{nodes:{type:Array,required:!0}},emits:["go-to-snippet"],data:()=>({markInstance:null,snippets:[]}),watch:{nodes(){this.renderSnippets()}},mounted(){this.renderSnippets()},methods:{renderSnippets(){const e=new Set;this.nodes.map((e=>{const t=["h1","h2","h3","h4","h5",...["blockContainer","block","blockList","conclusions","foreign","heading","subheading","listIntroduction","listWrapUp","intro","wrapUp","crossHeading","item","ol","p","preface","tblock","toc","ul"].map((e=>`.akn-${e}`))].join(", ");return e.closest(t)?e.closest(t):e})).forEach((t=>{e.add(t)})),this.snippets=[...e].map((e=>{let t,n=e;const r=()=>{n=n.parentElement;const e=n.querySelector("h1, h2, h3, h4, h5, .akn-heading, .akn-subheading");e?t=e:r()};return r(),{snippetNode:e,titleNode:t}}))}},render:function(e,t){const n=(0,r.up)("ResultSnippet");return(0,r.wg)(),(0,r.iD)("div",uo,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.snippets,((t,o)=>((0,r.wg)(),(0,r.iD)("div",{key:o,class:"card snippet-card mb-2",tabindex:o,role:"button","aria-pressed":"false",onClick:n=>{e.$emit("go-to-snippet",t.snippetNode)}},[(0,r._)("div",ho,[(0,r._)("h5",fo,[(0,r._)("strong",null,(0,a.zw)(t.titleNode.textContent),1)]),(0,r.Wm)(n,{node:t.snippetNode.cloneNode(!0)},null,8,["node"])])],8,po)))),128))])}};function go(e,t,n){if(void 0===t&&(t=function(){return!1}),void 0===n&&(n=0),void 0!==window.IntersectionObserver){var r=new IntersectionObserver((function(n,r){n.forEach((function(n){n.isIntersecting&&(r.unobserve(n.target),window.setTimeout((function(){t(e)}),500))}))}));r.observe(e);var o,a=e.getBoundingClientRect(),i=Math.floor(a.top+self.pageYOffset-n);window.scrollTo({top:i,behavior:"smooth"});var s=function(){window.clearTimeout(o),o=setTimeout((function(){r.unobserve(e),window.removeEventListener("scroll",s)}),66)};window.addEventListener("scroll",s,!1)}}function bo(e){var t,n=[],r=new Map;return e.querySelectorAll("h1, h2, h3, h4, h5").forEach((function(e){if(e.innerText){e.id||(r.set(e.tagName,(r.get(e.tagName)||0)+1),e.id=e.tagName+"_"+r.get(e.tagName));var o={type:e.tagName,title:e.innerText,id:e.id,children:[]};if(t){for(;t.length&&t[t.length-1].type>e.tagName;)t.pop();var a=t[t.length-1];a&&(a.type===e.tagName?(t.length>1?t[t.length-2].children.push(o):n.push(o),t[t.length-1]=o):(a.children.push(o),t.push(o)))}else n.push(o),t=[o]}})),n}function vo(e,t){for(var n,r=0;r({userHelpLink:qh.config.userHelpLink}),render:function(e,t){return e.userHelpLink?((0,r.wg)(),(0,r.iD)("span",_o,[(0,r._)("a",{href:`${e.userHelpLink}${e.page}`,class:"me-3",target:"_blank"},[xo,(0,r.Uk)((0,a.zw)(e.$t("Help")),1)],8,ko)])):(0,r.kq)("v-if",!0)}},So={name:"DocumentSearch",components:{HelpBtn:wo,AknSnippets:mo,PdfSnippets:co,HTMLSnippets:io},props:{docType:{type:String,required:!0,validator:e=>["akn","pdf","html"].includes(e)},document:{type:HTMLElement,required:!0},mountElement:{type:HTMLElement,required:!0}},data:()=>({q:"",marks:[],markInstance:null}),watch:{q(e){this.markInstance&&(this.markInstance.unmark(),this.marks=[]),this.searchDoc(e)}},methods:{clear(){this.$refs.q.value="",this.q=""},searchDoc(e){this.markInstance||(this.markInstance=new(to())(this.document)),this.markInstance.mark(e,{separateWordSearch:!1}),this.marks=[...this.document.querySelectorAll("[data-markjs]")]},goToSnippet(e){this.mountElement.dispatchEvent(new CustomEvent("going-to-snippet")),window.setTimeout((()=>{go(e,(()=>{e.style.outline="2px solid transparent",e.style.transition="outline-color 400ms ease-in-out",e.style.outlineColor="var(--bs-primary)",window.setTimeout((()=>{e.style.outlineColor="transparent"}),400)}),60)}),300)}}};__webpack_require__(6051),So.render=function(e,t){const n=(0,r.up)("HelpBtn"),i=(0,r.up)("AknSnippets"),s=(0,r.up)("HTMLSnippets"),l=(0,r.up)("PdfSnippets");return(0,r.wg)(),(0,r.iD)("div",Wr,[(0,r._)("form",{class:"doc-search__form mb-2",onSubmit:t[1]||(t[1]=(0,o.withModifiers)((()=>e.q=e.$refs.q.value),["prevent"]))},[(0,r._)("div",Gr,[(0,r._)("input",{ref:"q",type:"text",required:"",class:"form-control",placeholder:e.$t("Search document content"),"aria-label":e.$t("Search document content"),"aria-describedby":"search-content-button",minlength:"3"},null,8,Yr),(0,r._)("button",Xr,(0,a.zw)(e.$t("Search")),1)]),(0,r._)("div",Jr,[(0,r.Wm)(n,{page:"search/search-inside-a-document"}),e.marks.length?((0,r.wg)(),(0,r.iD)("a",{key:0,href:"#",onClick:t[0]||(t[0]=(0,o.withModifiers)(((...t)=>e.clear&&e.clear(...t)),["prevent"]))},(0,a.zw)(e.$t("Clear")),1)):(0,r.kq)("v-if",!0)]),!e.marks.length&&e.q?((0,r.wg)(),(0,r.iD)("div",Zr,(0,a.zw)(e.$t("No results")),1)):(0,r.kq)("v-if",!0)],32),(0,r._)("div",Kr,[e.marks.length?((0,r.wg)(),(0,r.iD)("div",Qr,["akn"===e.docType?((0,r.wg)(),(0,r.j4)(i,{key:0,nodes:e.marks,onGoToSnippet:e.goToSnippet},null,8,["nodes","onGoToSnippet"])):(0,r.kq)("v-if",!0),"html"===e.docType?((0,r.wg)(),(0,r.j4)(s,{key:1,nodes:e.marks,onGoToSnippet:e.goToSnippet},null,8,["nodes","onGoToSnippet"])):(0,r.kq)("v-if",!0),"pdf"===e.docType?((0,r.wg)(),(0,r.j4)(l,{key:2,nodes:e.marks,onGoToSnippet:e.goToSnippet},null,8,["nodes","onGoToSnippet"])):(0,r.kq)("v-if",!0)])):(0,r.kq)("v-if",!0)])])};const Ao=So;var Co=__webpack_require__(3279),Eo=__webpack_require__.n(Co),To=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))},Oo=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]=a.offsetTop))return;if(n=e.root.querySelector('.preview-panel[data-page="'.concat(a.dataset.page,'"]'))){e.activatePreviewPanel(n);var i=e.root.querySelector("[data-preview-scroll-container]");i&&(i.scrollTop=n.offsetTop+n.clientHeight-2*n.offsetHeight)}}}),20))},e.prototype.activatePreviewPanel=function(e){for(var t=0,n=Array.from(this.root.querySelectorAll(".preview-panel"));t({})}},emits:["show-changes"],methods:{showChanges(){this.$el.dispatchEvent(new CustomEvent("show-changes",{detail:{provision:this.provision}}))}},render:function(e,t){return(0,r.wg)(),(0,r.iD)("la-gutter-item",{anchor:`#${e.provision.id}`},[(0,r._)("i",{class:"bi bi-clock-history mobile-gutter-item-icon",role:"button",onClick:t[0]||(t[0]=(...t)=>e.showChanges&&e.showChanges(...t))}),(0,r._)("div",Io,[(0,r._)("div",Mo,[(0,r._)("p",null,(0,a.zw)(e.$t("This provision has been amended"))+".",1),(0,r._)("button",{class:"btn btn-sm btn-secondary",type:"button",onClick:t[1]||(t[1]=(...t)=>e.showChanges&&e.showChanges(...t))},(0,a.zw)(e.$t("What changed?")),1)])])],8,Lo)}},No={key:0,class:"reader-provision-changes-inline ig mb-3"},jo={class:"card border-warning"},$o={class:"card-header"},Ho={class:"d-flex mb-2 mb-lg-0"},qo={class:"h5 flex-grow-1"},Uo={class:"row"},Bo={class:"col-12 col-lg-6"},Vo=["value"],zo={class:"col-6 d-none d-lg-block"},Wo={class:"card-body reader-provision-changes-inline-body"},Go=["innerHTML"],Yo={key:1,class:"d-flex justify-content-between pa-3"},Xo=["innerHTML"],Jo=["innerHTML"],Zo={name:"DiffContent",props:{diffset:{type:Object,required:!0},sideBySide:{type:Boolean,required:!0}}};__webpack_require__(4402),Zo.render=function(e,t){return(0,r.wg)(),(0,r.iD)("div",null,[e.sideBySide?((0,r.wg)(),(0,r.iD)("div",Yo,[(0,r._)("la-akoma-ntoso",{class:"diffset diffset-left",innerHTML:e.diffset.html_diff},null,8,Xo),(0,r._)("la-akoma-ntoso",{class:"diffset diffset-right",innerHTML:e.diffset.html_diff},null,8,Jo)])):((0,r.wg)(),(0,r.iD)("la-akoma-ntoso",{key:0,class:"diffset pa-3",innerHTML:e.diffset.html_diff},null,8,Go))])};const Ko={name:"ProvisionDiffContentInline",components:{DiffContent:Zo},props:{documentId:{type:String,required:!0},provision:{type:Object,required:!0},frbrExpressionUri:{type:String,required:!0},serviceUrl:{type:String,required:!0}},data:()=>({originalElement:null,wrapperElement:null,sideBySide:!0,diffsets:[],diffset:null,vw:Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)}),watch:{vw:{immediate:!0,handler(e){e<992&&(this.sideBySide=!1)}}},mounted(){this.loadDiffContentsets(),this.originalElement=document.getElementById(this.provision.id),this.wrapperElement=document.createElement("div"),this.wrapperElement.style.position="relative",this.originalElement&&(this.originalElement.style.position="absolute",this.originalElement.style.visibility="hidden",this.originalElement.style.height="0",this.originalElement.style.top="0",this.originalElement.insertAdjacentElement("beforebegin",this.wrapperElement),this.wrapperElement.append(this.originalElement,this.$el)),window.addEventListener("resize",this.setVw)},unmounted(){window.removeEventListener("resize",this.setVw)},methods:{setVw:Eo()((function(){this.vw=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)}),200),async loadDiffContentsets(){const e=`${this.serviceUrl}/e/diffsets${this.frbrExpressionUri}/?id=${this.provision.id}`,t=await fetch(e);t.ok&&(this.diffsets=(await t.json()).diffsets,this.diffset=this.diffsets?this.diffsets[0]:null)},close(){this.originalElement&&(this.wrapperElement.insertAdjacentElement("beforebegin",this.originalElement),this.originalElement.style.position=null,this.originalElement.style.visibility=null,this.originalElement.style.height=null,this.originalElement.style.top=null,this.wrapperElement.remove()),this.$el.dispatchEvent(new CustomEvent("close")),this.$el.remove()}}};__webpack_require__(1763),Ko.render=function(e,t){const n=(0,r.up)("diff-content");return e.provision?((0,r.wg)(),(0,r.iD)("div",No,[(0,r._)("div",jo,[(0,r._)("div",$o,[(0,r._)("div",Ho,[(0,r._)("div",qo,(0,a.zw)(e.$t("What changed?")),1),(0,r._)("button",{type:"button",class:"btn btn-secondary",onClick:t[0]||(t[0]=(...t)=>e.close&&e.close(...t))},(0,a.zw)(e.$t("Close")),1)]),(0,r._)("div",Uo,[(0,r._)("div",Bo,[e.diffsets?(0,r.wy)(((0,r.wg)(),(0,r.iD)("select",{key:0,"onUpdate:modelValue":t[1]||(t[1]=t=>e.diffset=t),class:"form-control"},[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.diffsets,((t,n)=>((0,r.wg)(),(0,r.iD)("option",{key:n,value:t},(0,a.zw)(e.$t("Between {prev_expression_date} and {new_expression_date}",{prev_expression_date:t.prev_expression_date,new_expression_date:t.new_expression_date})),9,Vo)))),128))],512)),[[o.vModelSelect,e.diffset]]):(0,r.kq)("v-if",!0)]),(0,r._)("div",zo,[(0,r._)("label",null,[(0,r.wy)((0,r._)("input",{"onUpdate:modelValue":t[2]||(t[2]=t=>e.sideBySide=t),type:"checkbox"},null,512),[[o.vModelCheckbox,e.sideBySide]]),(0,r.Uk)(" "+(0,a.zw)(e.$t("Show changes side-by-side")),1)])])])]),(0,r._)("div",Wo,[e.diffsets.length?((0,r.wg)(),(0,r.iD)(r.HY,{key:0},[e.diffset?((0,r.wg)(),(0,r.j4)(n,{key:0,diffset:e.diffset,"side-by-side":e.sideBySide},null,8,["diffset","side-by-side"])):(0,r.kq)("v-if",!0)],2112)):((0,r.wg)(),(0,r.iD)(r.HY,{key:1},[(0,r.Uk)((0,a.zw)(e.$t("Loading"))+"... ",1)],2112))])])])):(0,r.kq)("v-if",!0)},Ko.__scopeId="data-v-63c9ac08";const Qo=Ko;const ea=function(){function e(e,t,n){this.frbrExpressionUri=e,this.gutter=t,this.serviceUrl=this.getServiceUrl(n),this.loadProvisions()}return e.prototype.getServiceUrl=function(e){var t=window.location.hostname,n="localhost"===t||"127.0.0.1"===t?"laws.africa":window.location.hostname;return"".concat(e,"/v1/p/").concat(n)},e.prototype.loadProvisions=function(){return e=this,t=void 0,r=function(){var e,t,n,r;return function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]({resolve:null,enrichment:null}),mounted(){document.body.appendChild(this.$el),this.modal=new window.bootstrap.Modal(this.$el),this.$el.addEventListener("hidePrevented.bs.modal",this.removeOrClose)},methods:{showModal(e){return this.enrichment=e,new Promise((e=>{this.resolve=e,this.modal.show()}))},remove(){this.resolve(null),this.modal.hide(),this.enrichment=null},close(){this.resolve(this.enrichment),this.modal.hide(),this.enrichment=null},removeOrClose(){this.enrichment.id?this.close():this.remove()},confirmRemove(){confirm(this.$t("Are you sure?"))&&this.remove()}},render:function(e,t){return(0,r.wg)(),(0,r.iD)("div",ta,[(0,r._)("div",na,[e.enrichment?((0,r.wg)(),(0,r.iD)("div",ra,[(0,r._)("form",{ref:"form",onSubmit:t[4]||(t[4]=(0,o.withModifiers)(((...t)=>e.close&&e.close(...t)),["prevent"]))},[(0,r._)("div",oa,[(0,r._)("h5",aa,(0,a.zw)(e.$t("Link citation")),1),(0,r._)("button",{type:"button",class:"btn-close",onClick:t[0]||(t[0]=(...t)=>e.removeOrClose&&e.removeOrClose(...t))})]),(0,r._)("div",ia,[(0,r._)("p",null,[(0,r._)("b",null,(0,a.zw)(e.enrichment.text),1)]),sa,(0,r.wy)((0,r._)("input",{"onUpdate:modelValue":t[1]||(t[1]=t=>e.enrichment.url=t),type:"text",class:"form-control",placeholder:"eg. /akn/...",required:""},null,512),[[o.vModelText,e.enrichment.url]])]),(0,r._)("div",la,[e.enrichment.id?(0,r.kq)("v-if",!0):((0,r.wg)(),(0,r.iD)("button",{key:0,type:"button",class:"btn btn-secondary",onClick:t[2]||(t[2]=(...t)=>e.remove&&e.remove(...t))}," Cancel ")),e.enrichment.id?(0,r.kq)("v-if",!0):((0,r.wg)(),(0,r.iD)("button",ca," Add ")),e.enrichment.id?((0,r.wg)(),(0,r.iD)("button",{key:2,type:"button",class:"btn btn-danger",onClick:t[3]||(t[3]=(...t)=>e.confirmRemove&&e.confirmRemove(...t))}," Delete ")):(0,r.kq)("v-if",!0),e.enrichment.id?((0,r.wg)(),(0,r.iD)("button",ua," Close ")):(0,r.kq)("v-if",!0)])],544)])):(0,r.kq)("v-if",!0)])])}},pa=[".anchor"],ha={class:"card"},fa={class:"card-body"},ma=(0,r._)("br",null,null,-1),ga=["href"],ba={name:"CitationLinkGutterItem",props:{link:{type:Object,default:null},anchorElement:{type:HTMLElement,default:null},provider:{type:Object,default:null}},methods:{edit(){this.provider.editLink(this.link)}},render:function(e,t){return(0,r.wg)(),(0,r.iD)("la-gutter-item",{".anchor":e.anchorElement},[(0,r._)("div",ha,[(0,r._)("div",fa,[(0,r._)("p",null,[(0,r._)("button",{class:"btn btn-sm btn-outline-secondary float-end ms-1",onClick:t[0]||(t[0]=(...t)=>e.edit&&e.edit(...t))},(0,a.zw)(e.$t("Edit")),1),(0,r.Uk)(" "+(0,a.zw)(e.link.text)+" ",1),ma,(0,r._)("a",{href:e.link.url,target:"_blank"},(0,a.zw)(e.link.url),9,ga)])])])],8,pa)}};var va=function(){return va=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]0&&(null===(t=this.manager.gutter)||void 0===t||t.appendChild(this.createGutterItem(e,o[0])))}},e.prototype.createModal=function(){return Ur({component:da,props:{},use:[qr],mountTarget:document.createElement("div")})},e.prototype.createGutterItem=function(e,t){var n=Ur({component:ba,props:{link:e,anchorElement:t,provider:this},use:[qr],mountTarget:document.createElement("div")}).$el;return this.gutterItems.set(e,n),n},e.prototype.editLink=function(e){var t=this;this.modal&&this.modal.showModal(e).then((function(n){return ya(t,void 0,void 0,(function(){var t,r,o,a;return _a(this,(function(i){switch(i.label){case 0:return n?(t=fetch,r=["/api/citation-links/".concat(e.id,"/")],a={method:"PUT"},o=[{}],[4,Z()]):[3,3];case 1:return[4,t.apply(void 0,r.concat([(a.headers=va.apply(void 0,[va.apply(void 0,o.concat([i.sent()])),{"Content-Type":"application/json"}]),a.body=JSON.stringify(e),a)]))];case 2:return i.sent().ok&&(this.unapplyLink(e),this.applyLink(e)),[3,4];case 3:this.deleteLink(e),i.label=4;case 4:return[2]}}))}))}))},e.prototype.deleteLink=function(e){return ya(this,void 0,void 0,(function(){var t,n,r;return _a(this,(function(o){switch(o.label){case 0:return t=fetch,n=["/api/citation-links/".concat(e.id,"/")],r={method:"DELETE"},[4,Z()];case 1:return[4,t.apply(void 0,n.concat([(r.headers=o.sent(),r)]))];case 2:return o.sent().ok&&(this.unapplyLink(e),this.links.splice(this.links.indexOf(e),1)),[2]}}))}))},e.prototype.unapplyLink=function(e){for(var t,n,r=0,o=this.anchors.get(e)||[];r{this.$el.remove()})),this.modal.show()},render:function(e,t){return(0,r.wg)(),(0,r.iD)("div",Sa,[(0,r._)("div",Aa,[(0,r._)("div",Ca,[(0,r._)("div",Ea,[(0,r._)("h5",Ta,(0,a.zw)(e.$t("Share")),1),Oa]),(0,r._)("div",Pa,[(0,r._)("p",null,(0,a.zw)(e.text),1),(0,r._)("div",Da,[(0,r._)("a",{href:`https://api.whatsapp.com/send?text=${e.combined}`,class:"btn btn-link",target:"_blank",onClick:t[0]||(t[0]=t=>e.modal.hide())},La,8,Ra),(0,r._)("a",{href:`https://twitter.com/intent/tweet?text=${e.combined}`,class:"btn btn-link",target:"_blank",onClick:t[1]||(t[1]=t=>e.modal.hide())},Ma,8,Ia),(0,r._)("a",{href:`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(e.url)}`,class:"btn btn-link",target:"_blank",onClick:t[2]||(t[2]=t=>e.modal.hide())},Na,8,Fa),(0,r._)("a",{href:`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(e.url)}`,class:"btn btn-link",target:"_blank",onClick:t[3]||(t[3]=t=>e.modal.hide())},$a,8,ja)])])])])])}},qa=function(){function e(e){var t,n;this.manager=e,this.manager.addProvider(this),this.documentTitle=(null===(n=null===(t=document.querySelector(".document-content"))||void 0===t?void 0:t.dataset)||void 0===n?void 0:n.title)||""}return e.prototype.getButton=function(e){var t=document.createElement("button");return t.className="btn btn-outline-secondary",t.type="button",t.innerText=Ir.t("Share..."),t},e.prototype.addEnrichment=function(e){if(e.selectors){var t=e.selectors.find((function(e){return"TextQuoteSelector"===e.type}));if(t&&t.exact){var n=new URL(window.location.toString());n.hash=e.anchor_id,Ur({component:Ha,props:{url:n.toString(),text:"".concat(t.exact," - ").concat(this.documentTitle)},use:[qr],mountTarget:document.createElement("div")})}}},e}(),Ua=function(){function e(e){var t,n=this;this.citationLinks=null,this.root=e,this.gutter=this.root.querySelector("la-gutter"),this.akn=this.root.querySelector(".content"),this.docDiffsManager=this.setupDocDiffs(),this.gutterManager=new xa.GutterEnrichmentManager(this.root),this.gutterManager.akn=this.root.querySelector(".content"),this.relationshipsManager=new Br(e,this.gutterManager),this.selectionSearch=new wa(this.gutterManager),this.selectionShare=new qa(this.gutterManager),null===(t=this.gutter)||void 0===t||t.addEventListener("laItemChanged",(function(e){var t;e.target.classList.contains("relationship-gutter-item")&&e.target.active&&(null===(t=n.docDiffsManager)||void 0===t||t.closeInlineDiff())}))}return e.prototype.setupDocDiffs=function(){if(!this.akn||!this.gutter)return null;var e=this.akn.getAttribute("frbr-expression-uri");return e?new ea(e,this.gutter,this.root.getAttribute("data-diffs-url")||""):null},e.prototype.setupPdfCitationLinks=function(){this.citationLinks=new ka(this.root,this.gutterManager)},e}();var Ba=function(){function e(e){this.offCanvas=new window.bootstrap.Offcanvas(e),this.body=e.querySelector("[data-offcanvas-body]")}return e.prototype.show=function(){this.offCanvas.show()},e.prototype.hide=function(){this.offCanvas.hide()},e}();const Va=function(){function e(e){var t=this;this.enrichmentsManager=null,this.tocController=null,this.tocShowActiveItemOnly=!1,this.tocItemIndex=new Map,this.activeTocItem=null,this.getTocItems=function(){var e=[];if("akn"===t.displayType){var n=t.root.querySelector("#akn_toc_json");n&&(e=JSON.parse(n.textContent)||[])}else if("html"===t.displayType){var r=t.root.querySelector(".content__html");r&&vo(0,e=bo(r))}return t.tocShowActiveItemOnly&&e.unshift({tag:"H1",title:Ir.t("Show full text"),id:"",children:[]}),function e(t,n,r){void 0===n&&(n=null),void 0===r&&(r=1);for(var o=0,a=t;o1;)r=r.parent;if(!r)return;if(this.activeTocItem!==r){var o=null===(n=this.originalDocument.querySelector('[id="'.concat(r.id,'"]')))||void 0===n?void 0:n.cloneNode(!0);this.documentElement.replaceChildren(o),this.activeTocItem=r}}else(t=this.documentElement).replaceChildren.apply(t,Array.from(this.originalDocument.children).map((function(e){return e.cloneNode(!0)}))),this.activeTocItem=null},e.prototype.setSharedPortion=function(e){void 0===e&&(e="");var t=[this.root.dataset.title];e&&t.push(e),t.push(window.location.toString());for(var n=t.join(" - "),r=0,o=Array.from(document.querySelectorAll(".share-link"));r({email:"",message:"",problem:"",problem_category:"",submitted:!1,success:!0,url:window.location.toString()}),mounted(){this.$el.parentElement.addEventListener("show.bs.modal",this.onShow)},methods:{onShow(){this.email="",this.message="",this.problem="",this.problem_category="",this.submitted=!1,this.success=!0},async onSubmit(){const e=new FormData(this.$refs.form);fetch("/document-problem/",{method:"post",body:e,headers:await Z()}).then((e=>{this.submitted=!0,this.success=e.ok})).catch((e=>{console.log(e)}))}},render:function(e,t){return(0,r.wg)(),(0,r.iD)("div",Xa,[(0,r._)("div",Ja,[(0,r._)("div",Za,[(0,r._)("h5",Ka,(0,a.zw)(e.$t("Is there something wrong with this document?")),1),Qa]),(0,r._)("div",ei,[e.submitted?((0,r.wg)(),(0,r.iD)("div",bi,(0,a.zw)(e.success?e.$t("Thank you for your feedback."):e.$t("Something went wrong.")),1)):((0,r.wg)(),(0,r.iD)("form",{key:0,id:"document-problem-form",ref:"form",method:"post",onSubmit:t[3]||(t[3]=(0,o.withModifiers)(((...t)=>e.onSubmit&&e.onSubmit(...t)),["prevent"]))},[(0,r._)("input",{type:"hidden",name:"document_link",value:e.url},null,8,ti),(0,r._)("div",ni,[(0,r._)("label",ri,[(0,r.Uk)((0,a.zw)(e.$t("Problem category"))+" ",1),oi]),(0,r.wy)((0,r._)("select",{"onUpdate:modelValue":t[0]||(t[0]=t=>e.problem_category=t),class:"form-control",name:"problem_category",required:""},[(0,r._)("option",ai,(0,a.zw)(e.$t("Incorrect information")),1),(0,r._)("option",ii,(0,a.zw)(e.$t("Missing information")),1),(0,r._)("option",si,(0,a.zw)(e.$t("No PDF download")),1),(0,r._)("option",li,(0,a.zw)(e.$t("Document is empty")),1),(0,r._)("option",ci,(0,a.zw)(e.$t("Document is not accessible on my device")),1),(0,r._)("option",ui,(0,a.zw)(e.$t("Other")),1)],512),[[o.vModelSelect,e.problem_category]])]),(0,r._)("div",di,[(0,r._)("label",pi,[(0,r.Uk)((0,a.zw)(e.$t("What's the problem?"))+" ",1),hi]),(0,r.wy)((0,r._)("textarea",{id:"problem_description","onUpdate:modelValue":t[1]||(t[1]=t=>e.problem=t),class:"form-control",name:"problem_description",rows:"4",required:""},null,512),[[o.vModelText,e.problem]])]),(0,r._)("div",fi,[(0,r._)("label",mi,[(0,r.Uk)((0,a.zw)(e.$t("Your email address"))+" ",1),gi]),(0,r.wy)((0,r._)("input",{id:"email_address","onUpdate:modelValue":t[2]||(t[2]=t=>e.email=t),type:"email",class:"form-control",name:"email_address",placeholder:"example@example.com",required:""},null,512),[[o.vModelText,e.email]])])],544))]),(0,r._)("div",vi,[(0,r._)("button",yi,(0,a.zw)(e.submitted?e.$t("Close"):e.$t("Cancel")),1),e.submitted?(0,r.kq)("v-if",!0):((0,r.wg)(),(0,r.iD)("button",_i,(0,a.zw)(e.$t("Report problem")),1))])])])}},xi={id:"search",ref:"search-box"},wi={class:"mb-4"},Si={id:"nav-tab",class:"nav nav-tabs mb-3",role:"tablist"},Ai={id:"search-tab",class:"nav-link active","data-bs-toggle":"tab","data-bs-target":"#nav-search",type:"button",role:"tab","aria-controls":"nav-search","aria-selected":"true"},Ci={id:"advanced-search-tab",class:"nav-link","data-bs-toggle":"tab","data-bs-target":"#nav-advanced-search",type:"button",role:"tab","aria-controls":"nav-advanced-search","aria-selected":"false"},Ei={id:"nav-tabContent",class:"tab-content"},Ti={id:"nav-search",class:"tab-pane fade show active",role:"tabpanel","aria-labelledby":"search-tab"},Oi=["placeholder","aria-label"],Pi=["disabled"],Di={key:0,class:"circle-loader--lt"},Ri={key:1},Li=(0,r.Uk)(" Filters "),Ii={key:0},Mi={class:"my-2"},Fi={id:"nav-advanced-search",class:"tab-pane fade",role:"tabpanel","aria-labelledby":"advanced-search-tab"},Ni={key:0,class:"mt-3 alert alert-warning"},ji={key:1,class:"mt-3"},$i={ref:"filters-results-container"},Hi={class:"row"},qi={class:"col col-lg-3"},Ui=["aria-label"],Bi={class:"filter-facet-title"},Vi={class:"col-md-12 col-lg-9 position-relative"},zi={class:"search-results"},Wi={key:0},Gi={class:"mb-3 sort-body row"},Yi={class:"col-md-3 order-md-2 mb-2 sort__inner d-flex align-items-center"},Xi={style:{width:"65px"}},Ji={value:"-score"},Zi={value:"date"},Ki={value:"-date"},Qi={class:"col-md order-md-1"},es={key:0},ts={key:1},ns={class:"list-unstyled"},rs={key:0,class:"overlay"},os={href:"#search",class:"to-the-top btn btn-secondary d-block d-lg-none"},as={class:"mb-4 hit"},is={class:"card"},ss={class:"card-body"},ls={class:"card-title"},cs=["href","innerHTML"],us={class:"mb-1"},ds={key:0},ps={key:0,class:"me-3"},hs=["innerHTML"],fs={key:1},ms={key:0},gs={key:2},bs={class:"me-3"},vs={class:"me-3"},ys={key:1,class:"me-3"},_s={key:2,class:"me-3"},ks={key:0},xs=["href","onClick"],ws=(0,r.Uk)(": "),Ss=["innerHTML"],As={key:1},Cs={key:2,class:"ms-3"},Es=["innerHTML"],Ts={key:3,class:"ms-3 mt-2"},Os=(0,r._)("h5",null,"Explanation",-1),Ps={class:"explanation border p-2"},Ds={class:"table table-sm table-light mb-0"},Rs={style:{width:"15%"},class:"align-baseline"},Ls={class:"align-baseline"},Is={key:0},Ms={key:0,open:""},Fs=(0,r._)("summary",null,"(details)",-1),Ns={key:1},js={key:1,open:""},$s=(0,r._)("summary",null,"(details)",-1),Hs={key:2},qs={class:"mb-1"},Us={key:0},Bs=["href"],Vs={class:"ms-3"},zs={key:1},Ws=["href"],Gs=["innerHTML"],Ys={name:"SearchResult",components:{JsonTable:{name:"JsonTable",props:{data:{type:Object}},render:function(e,t){const n=(0,r.up)("JsonTable",!0);return(0,r.wg)(),(0,r.iD)("table",Ds,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.data,((e,t)=>((0,r.wg)(),(0,r.iD)("tr",{key:t},[(0,r._)("th",Rs,(0,a.zw)(t),1),(0,r._)("td",Ls,[Array.isArray(e)?((0,r.wg)(),(0,r.iD)("ol",Is,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e,((e,t)=>((0,r.wg)(),(0,r.iD)("li",{key:t,class:"border-bottom"},["object"==typeof e?((0,r.wg)(),(0,r.iD)("details",Ms,[Fs,(0,r.Wm)(n,{data:e},null,8,["data"])])):((0,r.wg)(),(0,r.iD)("div",Ns,(0,a.zw)(e),1))])))),128))])):"object"==typeof e?((0,r.wg)(),(0,r.iD)("details",js,[$s,(0,r.Wm)(n,{data:e},null,8,["data"])])):((0,r.wg)(),(0,r.iD)("div",Hs,(0,a.zw)(e),1))])])))),128))])}},SearchResultProvision:{name:"SearchResultProvision",props:{item:{type:Object,default:()=>{}},expressionFrbrUri:{type:String,default:""},parents:{type:Array,default:()=>[]}},emits:["item-clicked"],render:function(e,t){const n=(0,r.up)("SearchResultProvision",!0);return(0,r.wg)(),(0,r.iD)("div",qs,[e.parents.length?((0,r.wg)(),(0,r.iD)("div",Us,[(0,r._)("a",{href:`${e.expressionFrbrUri}#${e.parents[0].id}`,target:"_blank",onClick:t[0]||(t[0]=t=>e.$emit("item-clicked",e.parents[0].id))},(0,a.zw)(e.parents[0].title),9,Bs),(0,r._)("div",Vs,[(0,r.Wm)(n,{item:e.item,parents:e.parents.slice(1),"expression-frbr-uri":e.expressionFrbrUri,onItemClicked:t[1]||(t[1]=t=>e.$emit("item-clicked",t))},null,8,["item","parents","expression-frbr-uri"])])])):((0,r.wg)(),(0,r.iD)("div",zs,[(0,r._)("a",{href:`${e.expressionFrbrUri}#${e.item.id}`,target:"_blank",onClick:t[2]||(t[2]=t=>e.$emit("item-clicked",e.item.id))},(0,a.zw)(e.item.title),9,Ws),e.item.highlight["provisions.body"]?((0,r.wg)(),(0,r.iD)("div",{key:0,class:"ms-3",innerHTML:e.item.highlight["provisions.body"].join(" ... ")},null,8,Gs)):(0,r.kq)("v-if",!0)]))])}}},props:{item:{type:Object,default:()=>({})},query:{type:String,default:()=>""},showJurisdiction:{type:Boolean,default:!1},documentLabels:{type:Array,default:()=>[]},debug:{type:Boolean,default:!1}},emits:["explain","item-clicked"],computed:{labels(){return this.documentLabels.filter((e=>(this.item.labels||[]).includes(e.code)))}},methods:{highlights(e){if(e.highlight.content)return e.highlight.content.join(" ... ")},getFlag(e){const t=e.expression_frbr_uri.split("/")[2].split("-")[0];return"aa"===t?'African Union Icon':``},authors:e=>e.authors?Array.isArray(e.authors)?", ".join(e.authors):e.authors:"",provisionParents:e=>e.parent_titles.map(((t,n)=>({title:t,id:e.parent_ids[n]})))}};__webpack_require__(5377),Ys.render=function(e,t){const n=(0,r.up)("SearchResultProvision"),i=(0,r.up)("json-table");return(0,r.wg)(),(0,r.iD)("li",as,[(0,r._)("div",is,[(0,r._)("div",ss,[(0,r._)("h5",ls,[(0,r._)("a",{class:"h5 text-primary",target:"_blank",href:e.item.expression_frbr_uri,onClick:t[0]||(t[0]=t=>e.$emit("item-clicked")),innerHTML:e.item.highlight.title||e.item.title},null,8,cs)]),(0,r._)("div",us,[e.item.citation&&e.item.citation!==e.item.title?((0,r.wg)(),(0,r.iD)("div",ds,[(0,r._)("i",null,(0,a.zw)(e.item.citation),1)])):(0,r.kq)("v-if",!0),(0,r._)("div",null,[e.showJurisdiction||e.item.locality?((0,r.wg)(),(0,r.iD)("span",ps,[e.showJurisdiction?((0,r.wg)(),(0,r.iD)("span",{key:0,innerHTML:e.getFlag(e.item),class:"me-1"},null,8,hs)):(0,r.kq)("v-if",!0),e.showJurisdiction?((0,r.wg)(),(0,r.iD)("span",fs,[(0,r.Uk)((0,a.zw)(e.item.jurisdiction)+" ",1),e.item.locality?((0,r.wg)(),(0,r.iD)("span",ms,"· ")):(0,r.kq)("v-if",!0)])):(0,r.kq)("v-if",!0),e.item.locality?((0,r.wg)(),(0,r.iD)("span",gs,(0,a.zw)(e.item.locality),1)):(0,r.kq)("v-if",!0)])):(0,r.kq)("v-if",!0),(0,r._)("span",bs,(0,a.zw)(e.item.doc_type),1),(0,r._)("span",vs,(0,a.zw)(e.item.date),1),e.item.court?((0,r.wg)(),(0,r.iD)("span",ys,(0,a.zw)(e.item.court),1)):(0,r.kq)("v-if",!0),e.item.authors?((0,r.wg)(),(0,r.iD)("span",_s,(0,a.zw)(e.authors(e.item)),1)):(0,r.kq)("v-if",!0),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.labels,(e=>((0,r.wg)(),(0,r.iD)("span",{key:e.code,class:(0,a.C_)(`me-3 badge rounded-pill bg-${e.level}`)},(0,a.zw)(e.name),3)))),128)),e.debug?((0,r.wg)(),(0,r.iD)("a",{key:3,class:"me-3",href:"#",onClick:t[1]||(t[1]=(0,o.withModifiers)((t=>e.$emit("explain")),["prevent"]))},(0,a.zw)(e.item._score),1)):(0,r.kq)("v-if",!0)]),(0,r._)("div",null,(0,a.zw)(e.item.matter_type),1)]),e.item.pages.length?((0,r.wg)(),(0,r.iD)("div",ks,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.item.pages,(t=>((0,r.wg)(),(0,r.iD)("div",{key:t.page_num,class:"mb-1"},[(0,r._)("a",{href:`${e.item.expression_frbr_uri}#page-${t.page_num}`,target:"_blank",onClick:n=>e.$emit("item-clicked",`page-${t.page_num}`)},(0,a.zw)(e.$t("Page"))+" "+(0,a.zw)(t.page_num),9,xs),ws,t.highlight["pages.body"]?((0,r.wg)(),(0,r.iD)("span",{key:0,innerHTML:t.highlight["pages.body"].join(" ... ")},null,8,Ss)):(0,r.kq)("v-if",!0)])))),128))])):(0,r.kq)("v-if",!0),e.item.provisions.length?((0,r.wg)(),(0,r.iD)("div",As,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.item.provisions,(o=>((0,r.wg)(),(0,r.j4)(n,{key:o.id,item:o,parents:e.provisionParents(o),"expression-frbr-uri":e.item.expression_frbr_uri,onItemClicked:t[2]||(t[2]=t=>e.$emit("item-clicked",t))},null,8,["item","parents","expression-frbr-uri"])))),128))])):((0,r.wg)(),(0,r.iD)("div",Cs,[(0,r._)("span",{class:"snippet",innerHTML:e.highlights(e.item)},null,8,Es)])),e.debug&&e.item.explanation?((0,r.wg)(),(0,r.iD)("div",Ts,[Os,(0,r._)("div",Ps,[(0,r.Wm)(i,{data:e.item.explanation},null,8,["data"])])])):(0,r.kq)("v-if",!0)])])])};const Xs=Ys,Js={key:0,class:"pagination flex-wrap"},Zs=["onClick"],Ks={key:0,class:"page-item disabled"},Qs=[(0,r._)("a",{class:"page-link"},"...",-1)],el={name:"SearchPagination",props:{search:{type:Object,required:!0},page:{type:Number,required:!0}},emits:["changed"],data:()=>({maxPages:15,pageSize:10}),computed:{totalPages(){return Math.ceil(this.search.count/this.pageSize)},pages(){return[...Array(Math.min(this.totalPages,this.maxPages)).keys()].map((e=>e+1))},tooManyPages(){return this.totalPages>this.maxPages}},methods:{setPage(e){this.$emit("changed",e)}},render:function(e,t){return(0,r.wg)(),(0,r.iD)("nav",null,[e.totalPages>1?((0,r.wg)(),(0,r.iD)("ul",Js,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.pages,(t=>((0,r.wg)(),(0,r.iD)("li",{key:t,class:(0,a.C_)(["page-item",e.page===t?"active":""])},[(0,r._)("a",{class:"page-link",href:"#",onClick:(0,o.withModifiers)((n=>e.setPage(t)),["prevent"])},(0,a.zw)(t),9,Zs)],2)))),128)),e.tooManyPages?((0,r.wg)(),(0,r.iD)("li",Ks,Qs)):(0,r.kq)("v-if",!0)])):(0,r.kq)("v-if",!0)])}},tl={class:"list-group"},nl={class:"position-relative list-group-item bg-light d-flex justify-content-between align-items-center"},rl={key:0,class:"list-group-item"},ol={class:"d-flex justify-content-between mb-2"},al={class:"d-flex align-items-center"},il={key:1,class:"circle-loader ms-2"},sl={class:"form-check flex-grow-1"},ll=["id","value","name","checked"],cl=["for"],ul={class:"badge bg-light text-dark"},dl={class:"form-check flex-grow-1"},pl=["id","checked","value","name"],hl=["for"],fl={class:"badge bg-light text-dark"},ml={key:2,class:"letter-radiobox-container"},gl=["value","checked","name"],bl={class:"letter-radiobox__text"},vl={key:1,class:"list-group-item d-flex justify-content-between"},yl={class:"d-flex justify-content-between align-items-center"},_l={class:"form-check"},kl=["id","checked","name"],xl=["for"],wl={class:"d-flex align-items-center"},Sl={class:"badge bg-light text-dark"},Al={key:0,class:"circle-loader ms-2"},Cl={name:"SingleFacet",props:{facet:{type:Object,required:!0},loading:{type:Boolean,required:!1,default:!1}},emits:["clear-facet","on-change"],computed:{showClearFilter(){return"checkboxes"===this.facet.type?this.facet.value.length:this.facet.value}}};__webpack_require__(5294),Cl.render=function(e,t){return(0,r.wg)(),(0,r.iD)(r.HY,null,[e.facet.options&&e.facet.options.length?((0,r.wg)(),(0,r.iD)("li",rl,[(0,r._)("div",ol,[(0,r._)("strong",null,(0,a.zw)(e.facet.title),1),(0,r._)("div",al,[e.showClearFilter?((0,r.wg)(),(0,r.iD)("a",{key:0,href:"#",onClick:t[0]||(t[0]=(0,o.withModifiers)((t=>e.$emit("clear-facet",e.facet.name)),["prevent"]))},(0,a.zw)(e.$t("Clear")),1)):(0,r.kq)("v-if",!0),e.loading?((0,r.wg)(),(0,r.iD)("span",il)):(0,r.kq)("v-if",!0)])]),(0,r._)("div",{class:(0,a.C_)("letter-radio"===e.facet.type?"":"facets-scrollable")},["checkboxes"===e.facet.type?((0,r.wg)(!0),(0,r.iD)(r.HY,{key:0},(0,r.Ko)(e.facet.options,((n,o)=>((0,r.wg)(),(0,r.iD)("div",{key:o,class:"d-flex justify-content-between align-items-center"},[(0,r._)("div",sl,[(0,r._)("input",{id:`${e.facet.name}_${o}`,value:n.value,class:"form-check-input",type:"checkbox",name:e.facet.name,checked:e.facet.value.some((e=>String(e)===String(n.value))),onInput:t[1]||(t[1]=t=>e.$emit("on-change",t,e.facet))},null,40,ll),(0,r._)("label",{class:"form-check-label",for:`${e.facet.name}_${o}`},(0,a.zw)(n.label),9,cl)]),(0,r._)("div",null,[(0,r._)("span",ul,(0,a.zw)(n.count),1)])])))),128)):(0,r.kq)("v-if",!0),"radio"===e.facet.type?((0,r.wg)(!0),(0,r.iD)(r.HY,{key:1},(0,r.Ko)(e.facet.options,((n,o)=>((0,r.wg)(),(0,r.iD)("div",{key:o,class:"d-flex justify-content-between align-items-center"},[(0,r._)("div",dl,[(0,r._)("input",{id:`${e.facet.name}_${o}`,checked:String(e.facet.value)===String(n.value),value:n.value,class:"form-check-input",type:"radio",name:e.facet.name,onInput:t[2]||(t[2]=t=>e.$emit("on-change",t,e.facet))},null,40,pl),(0,r._)("label",{class:"form-check-label",for:`${e.facet.name}_${o}`},(0,a.zw)(n.label),9,hl)]),(0,r._)("div",null,[(0,r._)("span",fl,(0,a.zw)(n.count),1)])])))),128)):(0,r.kq)("v-if",!0),"letter-radio"===e.facet.type?((0,r.wg)(),(0,r.iD)("div",ml,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.facet.options,((n,o)=>((0,r.wg)(),(0,r.iD)("label",{key:o,class:"letter-radiobox"},[((0,r.wg)(),(0,r.iD)("input",{key:o,value:n.value,checked:String(e.facet.value)===String(n.value),type:"radio",name:e.facet.name,onInput:t[3]||(t[3]=t=>e.$emit("on-change",t,e.facet))},null,40,gl)),(0,r._)("span",bl,(0,a.zw)(n.label),1)])))),128))])):(0,r.kq)("v-if",!0)],2)])):(0,r.kq)("v-if",!0),"boolean"===e.facet.type?((0,r.wg)(),(0,r.iD)("div",vl,[(0,r._)("div",yl,[(0,r._)("div",_l,[(0,r._)("input",{id:e.facet.name,checked:e.facet.value,class:"form-check-input",type:"checkbox",name:e.facet.name,onInput:t[4]||(t[4]=t=>e.$emit("on-change",t,e.facet))},null,40,kl),(0,r._)("label",{class:"form-check-label",for:e.facet.name},[(0,r._)("strong",null,(0,a.zw)(e.facet.title),1)],8,xl)])]),(0,r._)("div",wl,[(0,r._)("span",Sl,(0,a.zw)(e.facet.count),1),e.loading?((0,r.wg)(),(0,r.iD)("span",Al)):(0,r.kq)("v-if",!0)])])):(0,r.kq)("v-if",!0)],64)},Cl.__scopeId="data-v-32034ea4";const El={name:"FilterFacets",components:{SingleFacet:Cl},props:{modelValue:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1}},emits:["update:modelValue"],computed:{showClearAllFilter(){return this.modelValue.some((e=>"checkboxes"===e.type?e.value.length:e.value))}},methods:{clearSingleFacet(e,t){const n=e.findIndex((e=>e.name===t));return"checkboxes"===e[n].type?e[n].value=[]:e["boolean"===n.type]?e[n].value=!1:e[n].value=null,e},clearFacet(e){const t=this.clearSingleFacet(this.modelValue,e);this.$emit("update:modelValue",[...t])},clearAll(){let e=this.modelValue;this.modelValue.forEach((t=>{e=this.clearSingleFacet(e,t.name)})),this.$emit("update:modelValue",[...e])},handleChange(e,t){const n=this.modelValue.findIndex((e=>e.name===t.name)),r=[...this.modelValue];r[n]={...r[n],value:(()=>{let o=e.target.value;return"boolean"===t.type&&(o=e.target.checked),"checkboxes"===t.type&&(o=e.target.checked?[...r[n].value,e.target.value]:r[n].value.filter((t=>String(t)!==String(e.target.value)))),o})()},this.$emit("update:modelValue",r)}},render:function(e,t){const n=(0,r.up)("SingleFacet");return(0,r.wg)(),(0,r.iD)("ul",tl,[(0,r._)("li",nl,[(0,r.WI)(e.$slots,"header-title",{},(()=>[(0,r._)("strong",null,(0,a.zw)(e.$t("Filters")),1)])),e.showClearAllFilter?((0,r.wg)(),(0,r.iD)("a",{key:0,href:"#",onClick:t[0]||(t[0]=(0,o.withModifiers)(((...t)=>e.clearAll&&e.clearAll(...t)),["prevent"]))},(0,a.zw)(e.$t("Clear all")),1)):(0,r.kq)("v-if",!0)]),((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.modelValue,((t,o)=>((0,r.wg)(),(0,r.j4)(n,{key:o,facet:t,loading:e.loading,onOnChange:e.handleChange,onClearFacet:e.clearFacet},null,8,["facet","loading","onOnChange","onClearFacet"])))),128))])}},Tl={class:"mobile-side-drawer"},Ol={class:"mobile-side-drawer__desktop-view d-none d-lg-block"},Pl={class:"mobile-side-drawer__mobile-view__content"},Dl={class:"slot bg-light"},Rl={name:"MobileFacetsDrawer",props:{open:{type:Boolean,default:!1}},emits:["outside-drawer-click"]};__webpack_require__(786),Rl.render=function(e,t){return(0,r.wg)(),(0,r.iD)("div",Tl,[(0,r._)("div",Ol,[(0,r.WI)(e.$slots,"default")]),(0,r._)("div",{class:(0,a.C_)((e.open?"active":"")+" mobile-side-drawer__mobile-view d-lg-none")},[(0,r._)("div",Pl,[(0,r._)("div",{class:"overlay",onClick:t[0]||(t[0]=t=>e.$emit("outside-drawer-click"))}),(0,r._)("div",Dl,[(0,r.WI)(e.$slots,"default")])])],2)])},Rl.__scopeId="data-v-6caa891a";const Ll=Rl,Il={class:"card"},Ml={class:"card-body"},Fl={class:"row mt-5"},Nl={class:"col-6"},jl={class:"form-label",for:"date_from"},$l=["aria-describedby","placeholder","value","disabled"],Hl={class:"col-6"},ql={class:"form-label",for:"date_to"},Ul=["aria-describedby","placeholder","value","disabled"],Bl={key:0,class:"text-danger"},Vl={class:"card-footer d-flex justify-content-end"},zl={type:"submit",class:"btn btn-primary"},Wl={class:"mb-3 d-md-flex"},Gl={class:"d-flex mb-2 flex-grow-1"},Yl={key:0,class:"me-3"},Xl={value:"AND"},Jl={value:"OR"},Zl={value:"NOT"},Kl={class:"flex-grow-1 me-3"},Ql={class:"d-flex mb-2"},ec={class:"dropdown me-3"},tc=["id"],nc=["aria-labelledby"],rc=["id","checked","disabled","onChange"],oc=["for"],ac={class:"form-check"},ic=["id"],sc=["for"],lc={name:"AdvancedSearchFields",props:{criterion:{type:Object,default:()=>({})},targetIndex:{type:Number,default:0}},emits:["on-change"],data:e=>({fields:[{field:"all",label:e.$t("Any field")},{field:"title",label:e.$t("Title")},{field:"judges",label:e.$t("Judges")},{field:"case_summary",label:e.$t("Case summary")},{field:"flynote",label:e.$t("Flynote")},{field:"content",label:e.$t("Content")}]}),methods:{changed(){this.$emit("on-change")},fieldChanged(e,t){"all"===e?t?(this.criterion.fields.splice(0,this.criterion.fields.length),this.criterion.fields.push(e)):this.criterion.fields.includes(e)&&this.criterion.fields.length>1&&this.criterion.fields.splice(this.criterion.fields.indexOf(e),1):t?(this.criterion.fields.includes(e)||this.criterion.fields.push(e),this.criterion.fields.includes("all")&&this.criterion.fields.splice(this.criterion.fields.indexOf("all"),1)):this.criterion.fields.includes(e)&&(this.criterion.fields.splice(this.criterion.fields.indexOf(e),1),0===this.criterion.fields.length&&this.criterion.fields.push("all")),this.changed()}}};__webpack_require__(3462),lc.render=function(e,t){return(0,r.wg)(),(0,r.iD)("div",Wl,[(0,r._)("div",Gl,[e.criterion.condition?((0,r.wg)(),(0,r.iD)("div",Yl,[(0,r.wy)((0,r._)("select",{"onUpdate:modelValue":t[0]||(t[0]=t=>e.criterion.condition=t),class:"form-control",onChange:t[1]||(t[1]=(...t)=>e.changed&&e.changed(...t))},[(0,r._)("option",Xl,(0,a.zw)(e.$t("AND")),1),(0,r._)("option",Jl,(0,a.zw)(e.$t("OR")),1),(0,r._)("option",Zl,(0,a.zw)(e.$t("NOT")),1)],544),[[o.vModelSelect,e.criterion.condition]])])):(0,r.kq)("v-if",!0),(0,r._)("div",Kl,[(0,r.wy)((0,r._)("input",{"onUpdate:modelValue":t[2]||(t[2]=t=>e.criterion.text=t),type:"text",class:"form-control",placeholder:"Text to search for...",onInput:t[3]||(t[3]=(...t)=>e.changed&&e.changed(...t))},null,544),[[o.vModelText,e.criterion.text]])])]),(0,r._)("div",Ql,[(0,r._)("div",ec,[(0,r._)("button",{id:`advanced-${e.targetIndex}-fields-btn`,class:"btn btn-secondary dropdown-toggle","data-bs-toggle":"dropdown","data-bs-auto-close":"outside","aria-expanded":"false"},(0,a.zw)(e.$t("In these fields")),9,tc),(0,r._)("div",{class:"dropdown-menu","aria-labelledby":`advanced-${e.targetIndex}-fields-btn`},[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.fields,(t=>((0,r.wg)(),(0,r.iD)("div",{key:t.field,class:"form-check dropdown-item"},[(0,r._)("input",{id:`advanced-${e.targetIndex}-fields-${t.field}`,checked:this.criterion.fields.includes(t.field),disabled:"all"===t.field&&this.criterion.fields.includes(t.field),class:"form-check-input",type:"checkbox",onChange:n=>e.fieldChanged(t.field,n.target.checked)},null,40,rc),(0,r._)("label",{class:"form-check-label",for:`advanced-${e.targetIndex}-fields-${t.field}`},(0,a.zw)(t.label),9,oc)])))),128))],8,nc)]),(0,r._)("div",ac,[(0,r.wy)((0,r._)("input",{id:`advanced-${e.targetIndex}-exact`,"onUpdate:modelValue":t[4]||(t[4]=t=>e.criterion.exact=t),type:"checkbox",class:"form-check-input",onChange:t[5]||(t[5]=(...t)=>e.changed&&e.changed(...t))},null,40,ic),[[o.vModelCheckbox,e.criterion.exact]]),(0,r._)("label",{class:"form-check-label",for:`advanced-${e.targetIndex}-exact`},(0,a.zw)(e.$t("Exact phrase")),9,sc)])])])},lc.__scopeId="data-v-10e31a92";const cc={name:"AdvancedSearch",components:{HelpBtn:wo,AdvancedSearchFields:lc},props:{modelValue:{type:Array,default:()=>[]},advancedSearchDateCriteria:{type:Object,default:()=>({})},globalSearchValue:{type:String,default:""}},emits:["submit","update:modelValue","global-search-change","date-change"],computed:{invalidDates(){const e=[this.advancedSearchDateCriteria.date_from,this.advancedSearchDateCriteria.date_to];return!e.every((e=>!e))&&(e.every((e=>e))?new Date(e[0])>new Date(e[1]):!e.some((e=>e)))},disableDate(){return!(this.modelValue.some((e=>e.text))||this.globalSearchValue)}},watch:{disableDate:{handler(e){e&&this.$emit("date-change",{...this.advancedSearchDateCriteria,date_from:null,date_to:null})}}},methods:{onChange(){this.cleanupCriteria(!1)},onDateChange(e){this.$emit("date-change",{...this.advancedSearchDateCriteria,[e.target.name]:e.target.value})},cleanupCriteria(e){let t=[...this.modelValue];e&&(t=t.filter((e=>""===e.condition||e.text))),t[t.length-1].text&&t.push({text:"",fields:["all"],exact:!1,condition:"AND"}),this.$emit("update:modelValue",t)},submitAdvancedForm(){this.cleanupCriteria(!0),this.$emit("submit")}},render:function(e,t){const n=(0,r.up)("AdvancedSearchFields"),i=(0,r.up)("HelpBtn");return(0,r.wg)(),(0,r.iD)("form",{onSubmit:t[2]||(t[2]=(0,o.withModifiers)(((...t)=>e.submitAdvancedForm&&e.submitAdvancedForm(...t)),["prevent"]))},[(0,r._)("div",Il,[(0,r._)("div",Ml,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.modelValue,((t,o)=>((0,r.wg)(),(0,r.j4)(n,{key:o,criterion:t,"target-index":o,onOnChange:e.onChange},null,8,["criterion","target-index","onOnChange"])))),128)),(0,r._)("div",Fl,[(0,r._)("div",Nl,[(0,r._)("label",jl,(0,a.zw)(e.$t("Date from")),1),(0,r._)("input",{id:"date_from",name:"date_from",type:"date",class:"form-control","aria-describedby":e.$t("Date from"),placeholder:e.$t("Enter start date"),value:e.advancedSearchDateCriteria.date_from,disabled:e.disableDate,onChange:t[0]||(t[0]=(...t)=>e.onDateChange&&e.onDateChange(...t))},null,40,$l)]),(0,r._)("div",Hl,[(0,r._)("label",ql,(0,a.zw)(e.$t("Date to")),1),(0,r._)("input",{id:"date_to",name:"date_to",type:"date",class:"form-control","aria-describedby":e.$t("Date to"),placeholder:e.$t("Enter end date"),value:e.advancedSearchDateCriteria.date_to,disabled:e.disableDate,onChange:t[1]||(t[1]=(...t)=>e.onDateChange&&e.onDateChange(...t))},null,40,Ul)])]),e.invalidDates?((0,r.wg)(),(0,r.iD)("div",Bl,(0,a.zw)(e.$t("The date range is invalid"))+". ",1)):(0,r.kq)("v-if",!0)]),(0,r._)("div",Vl,[(0,r.Wm)(i,{page:"search/advanced-search"}),(0,r._)("button",zl,(0,a.zw)(e.$t("Search")),1)])])],32)}},uc={class:"d-none d-md-block"},dc=["title","onClick"],pc={name:"FacetBadges",props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],computed:{activeOptions(){const e=this.modelValue.filter((e=>e.value.length)),t=[];return e.forEach((e=>{const n=e.options.filter((t=>e.value.includes(t.value)));t.push(...n)})),t}},methods:{updateModel(e){const t=[...this.modelValue].map((t=>(t.value=t.value.filter((t=>t!==e)),t)));this.$emit("update:modelValue",t)}},render:function(e,t){return(0,r.wg)(),(0,r.iD)("div",uc,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.activeOptions,(t=>((0,r.wg)(),(0,r.iD)("button",{key:t.value,class:"btn btn-outline-primary me-2 mb-2 btn-sm",type:"button",title:e.$t("Remove"),onClick:n=>e.updateModel(t.value)},(0,a.zw)(t.label)+"  × ",9,dc)))),128))])}},hc=new(function(){function e(){this.isGAEnabled="gtag"in window,this.isMatomoEnabled="_paq"in window,this.gtag=this.isGAEnabled?window.gtag:function(){},this.paq=this.isMatomoEnabled?window._paq:[]}return e.prototype.trackPageView=function(){this.paq.push(["trackPageView"]),this.gtag("event","page_view")},e.prototype.trackSiteSearch=function(e,t,n){this.paq.push(["trackSiteSearch",e,t,n]),this.gtag("event","site_search",{keyword:e,category:t,searchCount:n})},e}()),fc={name:"FindDocuments",components:{FacetBadges:pc,MobileFacetsDrawer:Ll,SearchResult:Xs,SearchPagination:el,FilterFacets:El,AdvancedSearch:cc,HelpBtn:wo},props:["showJurisdiction"],data(){const e=e=>JSON.parse(document.querySelector("#data-labels").textContent)[e],t={searchPlaceholder:JSON.parse(document.querySelector("#data-labels").textContent).searchPlaceholder,documentLabels:JSON.parse(document.querySelector("#data-labels").textContent).documentLabels,loadingCount:0,error:null,searchInfo:{},page:1,pageSize:10,ordering:"-score",q:"",drawerOpen:!1,advancedSearchCriteria:[{text:"",fields:[],condition:"",exact:!1},{text:"",fields:[],condition:"AND",exact:!1}],advancedSearchDateCriteria:{date_to:null,date_from:null}},n=[{title:this.$t("Document type"),name:"doc_type",type:"checkboxes",value:[],options:[]},{title:this.$t("Labels"),name:"labels",type:"checkboxes",value:[],options:[],optionLabels:(e=>{const t={};for(const n of e)t[n.code]=n.name;return t})(t.documentLabels)},{title:e("author"),name:"authors",type:"checkboxes",value:[],options:[]},{title:this.$t("Court"),name:"court",type:"checkboxes",value:[],options:[]},{title:e("registry"),name:"registry",type:"checkboxes",value:[],options:[]},{title:e("judge"),name:"judges",type:"checkboxes",value:[],options:[]},{title:this.$t("Attorneys"),name:"attorneys",type:"checkboxes",value:[],options:[]},{title:this.$t("Outcome"),name:"outcome",type:"checkboxes",value:[],options:[]},{title:this.$t("Locality"),name:"locality",type:"checkboxes",value:[],options:[]},{title:this.$t("Matter type"),name:"matter_type",type:"checkboxes",value:[],options:[]},{title:this.$t("Document nature"),name:"nature",type:"checkboxes",value:[],options:[]},{title:this.$t("Language"),name:"language",type:"checkboxes",value:[],options:[]},{title:this.$t("Year"),name:"year",type:"checkboxes",value:[],options:[]}];return this.showJurisdiction&&n.splice(0,0,{title:this.$t("Jurisdiction"),name:"jurisdiction",type:"checkboxes",value:[],options:[]}),t.facets=n,t},computed:{selectedFacetsCount(){return this.facets.map((e=>e.value.length)).reduce(((e,t)=>e+t),0)},loading(){return this.loadingCount>0}},watch:{ordering(){this.search()},facets:{handler(){this.page=1,this.search()}}},mounted(){this.loadState(),window.addEventListener("popstate",(()=>this.loadState()))},methods:{sortGenericBuckets(e,t=!1){const n=[...e];return n.sort(((e,t)=>e.key.localeCompare(t.key))),t&&n.reverse(),n},getUrlParamValue(e,t){const n=window.location.search,r=new URLSearchParams(n),o=t.map((e=>e.value));return r.getAll(e).filter((e=>o.includes(e)))},handlePageChange(e){this.page=e,this.search()},simpleSearch(){this.resetAdvancedFields(),this.submit()},advancedSearch(){this.q="",this.submit()},submit(){this.page=1,this.search()},clearAllFilters(){this.facets.forEach((e=>{e.value.length&&(e.value=[])}))},serialiseState(){const e=new URLSearchParams;this.q&&e.set("q",this.q),this.page>1&&e.set("page",this.page),"-score"!==this.ordering&&e.set("ordering",this.ordering),this.facets.forEach((t=>{t.value.forEach((n=>{e.append(t.name,n)}))})),this.advancedSearchDateCriteria.date_from&&this.advancedSearchDateCriteria.date_to?(e.append("date_from",this.advancedSearchDateCriteria.date_from),e.append("date_to",this.advancedSearchDateCriteria.date_to)):this.advancedSearchDateCriteria.date_from?e.append("date_from",this.advancedSearchDateCriteria.date_from):this.advancedSearchDateCriteria.date_to&&e.append("date_to",this.advancedSearchDateCriteria.date_to);const t=this.advancedSearchCriteria.filter((e=>e.text)).map((e=>{const t={text:e.text};return e.fields.length&&(t.fields=e.fields),e.condition&&(t.condition=e.condition),e.exact&&(t.exact=e.exact),t}));return t.length&&e.append("a",JSON.stringify(t)),e.toString()},loadState(){this.resetAdvancedFields();const e=new URLSearchParams(window.location.search);this.q=e.get("q")||"",this.page=parseInt(e.get("page"))||this.page,this.ordering=e.get("ordering")||this.ordering,this.facets.forEach((t=>{e.has(t.name)&&(t.value=e.getAll(t.name))})),e.has("date_from")&&(this.advancedSearchDateCriteria.date_from=e.get("date_from")),e.has("date_to")&&(this.advancedSearchDateCriteria.date_to=e.get("date_to"));let t=e.get("show-advanced-tab");e.has("a")&&(JSON.parse(e.get("a")).forEach(((e,t)=>{const n={text:e.text,fields:e.fields||[],condition:e.condition||"",exact:!!e.exact};0!==t||e.condition?this.advancedSearchCriteria.splice(t,0,n):this.advancedSearchCriteria.splice(0,1,n)})),t=!0),t&&new window.bootstrap.Tab(this.$el.querySelector("#advanced-search-tab")).show(),this.search(!1)},suggest(e){this.q=e,this.search()},formatFacets(){const e=(e,t)=>e.map((e=>({label:t?t[e.key]:e.key,count:e.doc_count,value:e.key})));this.facets.forEach((t=>{"year"===t.name?t.options=e(this.sortGenericBuckets(this.searchInfo.facets[`_filter_${t.name}`][t.name].buckets,!0),t.optionLabels):this.searchInfo.facets[`_filter_${t.name}`]&&(t.options=e(this.sortGenericBuckets(this.searchInfo.facets[`_filter_${t.name}`][t.name].buckets),t.optionLabels)),t.value=this.getUrlParamValue(t.name,t.options)}))},formatResults(){for(let e=0;e{t.value.forEach((n=>{e.append(t.name,n)}))})),this.facets.forEach((t=>{e.append("facet",t.name)})),this.generateAdvancedSearchParams(e),e},generateAdvancedSearchParams(e){if(this.advancedSearchDateCriteria.date_from&&this.advancedSearchDateCriteria.date_to){const t=this.advancedSearchDateCriteria.date_from,n=this.advancedSearchDateCriteria.date_to;e.append("date__range",`${t}__${n}`)}else this.advancedSearchDateCriteria.date_from?e.append("date__gte",this.advancedSearchDateCriteria.date_from):this.advancedSearchDateCriteria.date_to&&e.append("date__lte",this.advancedSearchDateCriteria.date_to);const t=new Map;for(const e of this.advancedSearchCriteria)if(e.text)for(const n of e.fields)t.has(n)||t.set(n,[]),t.get(n).push(e);for(const[n,r]of t)e.set(`search__${n}`,this.generateAdvancedSearchQuery(r))},generateAdvancedSearchQuery(e){let t="";for(const n of e){const e=n.exact?`"${n.text}"`:n.text;"AND"===n.condition?t+=" & ":"OR"===n.condition?t+=" | ":"NOT"===n.condition&&(t+=" -"),t+=`(${e})`}return t.trim()},async search(e=!0){if(this.q||Array.isArray(this.advancedSearchCriteria)&&this.advancedSearchCriteria.some((e=>e.text))){this.loadingCount=this.loadingCount+1,go(this.$refs["search-box"]);try{const t=this.generateSearchParams(),n=this.searchInfo.trace_id||"",r=`/search/api/documents/?${t.toString()}&previous=${n}`;e&&window.history.pushState(null,"",document.location.pathname+"?"+this.serialiseState());const o=await fetch(r);t.toString()===this.generateSearchParams().toString()&&(o.ok?(this.error=null,this.searchInfo=await o.json(),0===this.searchInfo.count&&this.clearAllFilters(),this.formatFacets(),this.formatResults(),this.trackSearch(t)):this.error=o.statusText)}catch{this.error="Network unavailable."}this.loadingCount=this.loadingCount-1,this.drawerOpen=!1}},trackSearch(e){const t=[],n=[],r=this.facets.map((e=>e.name)).concat(["date__range","date__gte","date__lte"]);[...new Set(e.keys())].forEach((o=>{if(o.startsWith("search")){const n="search"===o?"":o.substring(8)+"=";t.push(n+e.get(o).trim())}else r.includes(o)&&n.push(`${o}=${e.getAll(o).join(",")}`)})),hc.trackSiteSearch(t.join("; "),n.join("; "),this.searchInfo.count)},async explain(e){const t=this.generateSearchParams();t.set("index",e._index);const n=`/search/api/documents/${e.id}/explain/?${t.toString()}`,r=await fetch(n),o=await r.json();e.explanation=o},async itemClicked(e,t){const n=new URLSearchParams;n.set("frbr_uri",e.expression_frbr_uri),n.set("portion",t||""),n.set("position",e.position),n.set("search_trace",this.searchInfo.trace_id);try{fetch("/search/api/click/",{method:"POST",headers:await Z(),body:n})}catch(e){console.log(e)}},resetAdvancedFields(){this.advancedSearchCriteria=[{text:"",fields:["all"],condition:"",exact:!1},{text:"",fields:["all"],condition:"AND",exact:!1}],this.advancedSearchDateCriteria={date_to:null,date_from:null}}}};__webpack_require__(5922),fc.render=function(e,t){const n=(0,r.up)("HelpBtn"),i=(0,r.up)("AdvancedSearch"),s=(0,r.up)("FilterFacets"),l=(0,r.up)("MobileFacetsDrawer"),c=(0,r.up)("FacetBadges"),u=(0,r.up)("SearchResult"),d=(0,r.up)("SearchPagination");return(0,r.wg)(),(0,r.iD)("div",xi,[(0,r._)("div",wi,[(0,r._)("nav",null,[(0,r._)("div",Si,[(0,r._)("button",Ai,(0,a.zw)(e.$t("Search")),1),(0,r._)("button",Ci,(0,a.zw)(e.$t("Advanced search")),1)])]),(0,r._)("div",Ei,[(0,r._)("div",Ti,[(0,r._)("form",{class:"d-flex align-items-center mb-2",onSubmit:t[2]||(t[2]=(0,o.withModifiers)(((...t)=>e.simpleSearch&&e.simpleSearch(...t)),["prevent"]))},[(0,r.wy)((0,r._)("input",{"onUpdate:modelValue":t[0]||(t[0]=t=>e.q=t),type:"text",class:"form-control",placeholder:e.searchPlaceholder,"aria-label":e.$t("Search documents"),"aria-describedby":"basic-addon2",required:""},null,8,Oi),[[o.vModelText,e.q]]),(0,r._)("button",{type:"submit",class:"btn btn-primary ms-1",disabled:e.loading},[e.loading?((0,r.wg)(),(0,r.iD)("span",Di)):((0,r.wg)(),(0,r.iD)("span",Ri,(0,a.zw)(e.$t("Search")),1))],8,Pi),e.searchInfo.count?((0,r.wg)(),(0,r.iD)("button",{key:0,type:"button",class:"btn btn-secondary ms-1 d-lg-none text-nowrap",onClick:t[1]||(t[1]=()=>e.drawerOpen=!0)},[Li,e.selectedFacetsCount?((0,r.wg)(),(0,r.iD)("span",Ii,"("+(0,a.zw)(e.selectedFacetsCount)+")",1)):(0,r.kq)("v-if",!0)])):(0,r.kq)("v-if",!0)],32),(0,r._)("div",Mi,[(0,r.Wm)(n,{page:"search/"})])]),(0,r._)("div",Fi,[(0,r.Wm)(i,{modelValue:e.advancedSearchCriteria,"onUpdate:modelValue":t[3]||(t[3]=t=>e.advancedSearchCriteria=t),"advanced-search-date-criteria":e.advancedSearchDateCriteria,"global-search-value":e.q,onGlobalSearchChange:t[4]||(t[4]=t=>e.q=t),onDateChange:t[5]||(t[5]=t=>e.advancedSearchDateCriteria={...t}),onSubmit:e.advancedSearch},null,8,["modelValue","advanced-search-date-criteria","global-search-value","onSubmit"])])]),e.error?((0,r.wg)(),(0,r.iD)("div",Ni,(0,a.zw)(e.$t("Oops, something went wrong."))+" "+(0,a.zw)(e.error),1)):(0,r.kq)("v-if",!0),0===e.searchInfo.count?((0,r.wg)(),(0,r.iD)("div",ji,(0,a.zw)(e.$t("No documents match your search.")),1)):(0,r.kq)("v-if",!0)]),(0,r._)("div",$i,[(0,r._)("div",Hi,[(0,r._)("div",qi,[(0,r.Wm)(l,{open:e.drawerOpen,onOutsideDrawerClick:t[8]||(t[8]=()=>e.drawerOpen=!1)},{default:(0,r.w5)((()=>[e.searchInfo.count?((0,r.wg)(),(0,r.j4)(s,{key:0,modelValue:e.facets,"onUpdate:modelValue":t[7]||(t[7]=t=>e.facets=t),loading:e.loading},{"header-title":(0,r.w5)((()=>[(0,r._)("button",{type:"button",class:"btn-close d-lg-none","aria-label":e.$t("Close"),onClick:t[6]||(t[6]=()=>e.drawerOpen=!1)},null,8,Ui),(0,r._)("strong",Bi,(0,a.zw)(e.$t("Filters")),1)])),_:1},8,["modelValue","loading"])):(0,r.kq)("v-if",!0)])),_:1},8,["open"])]),(0,r._)("div",Vi,[(0,r._)("div",zi,[e.searchInfo.count?((0,r.wg)(),(0,r.iD)("div",Wi,[(0,r.Wm)(c,{modelValue:e.facets,"onUpdate:modelValue":t[9]||(t[9]=t=>e.facets=t)},null,8,["modelValue"]),(0,r._)("div",Gi,[(0,r._)("div",Yi,[(0,r._)("div",Xi,(0,a.zw)(e.$t("Sort by")),1),(0,r.wy)((0,r._)("select",{"onUpdate:modelValue":t[10]||(t[10]=t=>e.ordering=t),class:"ms-2 form-select"},[(0,r._)("option",Ji,(0,a.zw)(e.$t("Relevance")),1),(0,r._)("option",Zi,(0,a.zw)(e.$t("Date (oldest first)")),1),(0,r._)("option",Ki,(0,a.zw)(e.$t("Date (newest first)")),1)],512),[[o.vModelSelect,e.ordering]])]),(0,r._)("div",Qi,[e.searchInfo.count>9999?((0,r.wg)(),(0,r.iD)("span",es,(0,a.zw)(e.$t("More than 10,000 documents found.")),1)):((0,r.wg)(),(0,r.iD)("span",ts,(0,a.zw)(e.$t("{document_count} documents found",{document_count:e.searchInfo.count})),1))])]),(0,r._)("ul",ns,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(e.searchInfo.results,(t=>((0,r.wg)(),(0,r.j4)(u,{key:t.key,item:t,query:e.q,debug:e.searchInfo.can_debug,"show-jurisdiction":e.showJurisdiction,"document-labels":e.documentLabels,onExplain:n=>e.explain(t),onItemClicked:n=>e.itemClicked(t,n)},null,8,["item","query","debug","show-jurisdiction","document-labels","onExplain","onItemClicked"])))),128))]),(0,r.Wm)(d,{search:e.searchInfo,page:e.page,onChanged:e.handlePageChange},null,8,["search","page","onChanged"])])):(0,r.kq)("v-if",!0)]),e.loading&&e.searchInfo.count?((0,r.wg)(),(0,r.iD)("div",rs)):(0,r.kq)("v-if",!0)])]),(0,r._)("a",os," ▲ "+(0,a.zw)(e.$t("To the top")),1)],512),(0,r.kq)(" DOM Hack for i18next to parse facet to locale json. i18next skips t functions in script element "),(0,r.kq)("v-if",!0)],512)},fc.__scopeId="data-v-6963ae4d";const mc=fc,gc={key:0},bc={key:0},vc={key:1},yc=(0,r._)("h3",null,"Download now",-1),_c={key:0,class:"mb-3"},kc=["href"],xc={key:1,class:"mb-3"},wc=["href"],Sc=(0,r._)("dt",null,"Version",-1),Ac=(0,r._)("dt",null,"Released",-1),Cc={CopyToClipboard:n,DocumentContent:Va,DocumentFilterForm:Vr,DocumentTable:zr,NavigationSelect:za,RelationshipEnrichments:Br,ToggleTab:Wa,TaxonomyTree:Ga,TermsOfUse:Ya,DocumentProblemModal:ki,FindDocuments:mc,PocketLawDownload:{name:"PocketLawDownload",props:{repo:String},data:()=>({info:null}),async mounted(){if(this.repo){const e=`https://api.github.com/repos/${this.repo}/releases/latest`;let t;try{const n=await fetch(e);t=await n.json()}catch(e){return void console.error(e)}this.info={version:t.name,date:t.created_at.split("T")[0]},this.info.windows_asset=t.assets.find((e=>e.name.endsWith(".exe"))),this.info.mac_asset=t.assets.find((e=>e.name.endsWith(".dmg")))}},methods:{size:e=>Math.trunc(e/1024/1024)},render:function(e,t){return(0,r.wg)(),(0,r.iD)("div",null,[this.repo?((0,r.wg)(),(0,r.iD)("div",gc,[e.info?((0,r.wg)(),(0,r.iD)("div",vc,[yc,e.info.windows_asset?((0,r.wg)(),(0,r.iD)("div",_c,[(0,r._)("a",{href:e.info.windows_asset.browser_download_url,class:"btn btn-lg btn-outline-primary"},"Pocket Law for Windows ("+(0,a.zw)(e.size(e.info.windows_asset.size))+" MB)",9,kc)])):(0,r.kq)("v-if",!0),e.info.mac_asset?((0,r.wg)(),(0,r.iD)("div",xc,[(0,r._)("a",{href:e.info.mac_asset.browser_download_url,class:"btn btn-lg btn-outline-primary"},"Pocket Law for Mac OS ("+(0,a.zw)(e.size(e.info.mac_asset.size))+" MB)",9,wc)])):(0,r.kq)("v-if",!0),(0,r._)("dl",null,[Sc,(0,r._)("dd",null,(0,a.zw)(e.info.version),1),Ac,(0,r._)("dd",null,(0,a.zw)(e.info.date),1)])])):((0,r.wg)(),(0,r.iD)("div",bc," Loading... "))])):(0,r.kq)("v-if",!0)])}}};var Ec=Object.defineProperty,Tc=new WeakMap,Oc=e=>Tc.get(e),Pc=(e,t)=>t in e,Dc=(e,t)=>(0,console.error)(e,t),Rc=new Map,Lc="http://www.w3.org/1999/xlink",Ic="undefined"!=typeof window?window:{},Mc=Ic.document||{head:{}},Fc=Ic.HTMLElement||class{},Nc={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,r)=>e.addEventListener(t,n,r),rel:(e,t,n,r)=>e.removeEventListener(t,n,r),ce:(e,t)=>new CustomEvent(e,t)},jc=(()=>{let e=!1;try{Mc.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch(e){}return e})(),$c=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),Hc=!1,qc=[],Uc=[],Bc=(e,t)=>n=>{e.push(n),Hc||(Hc=!0,t&&4&Nc.$flags$?Wc(zc):Nc.raf(zc))},Vc=e=>{for(let t=0;t{Vc(qc),Vc(Uc),(Hc=qc.length>0)&&Nc.raf(zc)},Wc=e=>Promise.resolve(undefined).then(e),Gc=Bc(Uc,!0),Yc={},Xc=e=>"object"==(e=typeof e)||"function"===e;((e,t)=>{for(var n in t)Ec(e,n,{get:t[n],enumerable:!0})})({},{err:()=>Zc,map:()=>Kc,ok:()=>Jc,unwrap:()=>tu,unwrapErr:()=>nu});var Jc=e=>({isOk:!0,isErr:!1,value:e}),Zc=e=>({isOk:!1,isErr:!0,value:e});function Kc(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>Jc(e))):Jc(n)}if(e.isErr){const t=e.value;return Zc(t)}throw"should never get here"}var Qc,eu,tu=e=>{if(e.isOk)return e.value;throw e.value},nu=e=>{if(e.isErr)return e.value;throw e.value},ru=(e,t,...n)=>{let r=null,o=null,a=null,i=!1,s=!1;const l=[],c=t=>{for(let n=0;ne[t])).join(" "))}}const u=ou(e,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=o,u.$name$=a,u},ou=(e,t)=>({$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),au={},iu=(e,t,n)=>{const r=e;return{emit:e=>su(r,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},su=(e,t,n)=>{const r=Nc.ce(t,n);return e.dispatchEvent(r),r},lu=new WeakMap,cu=(e,t)=>"sc-"+e.$tagName$,uu=(e,t,n,r,o,a)=>{if(n!==r){let i=Pc(e,t),s=t.toLowerCase();if("class"===t){const t=e.classList,o=pu(n),a=pu(r);t.remove(...o.filter((e=>e&&!a.includes(e)))),t.add(...a.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)r&&null!=r[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in r)n&&r[t]===n[t]||(t.includes("-")?e.style.setProperty(t,r[t]):e.style[t]=r[t])}else if("key"===t);else if("ref"===t)r&&r(e);else if(e.__lookupSetter__(t)||"o"!==t[0]||"n"!==t[1]){const l=Xc(r);if((i||l&&null!==r)&&!o)try{if(e.tagName.includes("-"))e[t]=r;else{const o=null==r?"":r;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let c=!1;s!==(s=s.replace(/^xlink\:?/,""))&&(t=s,c=!0),null==r||!1===r?!1===r&&""!==e.getAttribute(t)||(c?e.removeAttributeNS(Lc,t):e.removeAttribute(t)):(!i||4&a||o)&&!l&&(r=!0===r?"":r,c?e.setAttributeNS(Lc,t,r):e.setAttribute(t,r))}else if(t="-"===t[2]?t.slice(3):Pc(Ic,s)?s.slice(2):s[2]+t.slice(3),n||r){const o=t.endsWith(hu);t=t.replace(fu,""),n&&Nc.rel(e,t,n,o),r&&Nc.ael(e,t,r,o)}}},du=/\s/,pu=e=>e?e.split(du):[],hu="Capture",fu=new RegExp(hu+"$"),mu=(e,t,n)=>{const r=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||Yc,a=t.$attrs$||Yc;for(const e of gu(Object.keys(o)))e in a||uu(r,e,o[e],void 0,n,t.$flags$);for(const e of gu(Object.keys(a)))uu(r,e,o[e],a[e],n,t.$flags$)};function gu(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var bu=!1,vu=!1,yu=!1,_u=(e,t,n,r)=>{var o;const a=t.$children$[n];let i,s,l,c=0;if(bu||(yu=!0,"slot"===a.$tag$&&(a.$flags$|=a.$children$?2:1)),null!==a.$text$)i=a.$elm$=Mc.createTextNode(a.$text$);else if(1&a.$flags$)i=a.$elm$=Mc.createTextNode("");else if(i=a.$elm$=Mc.createElement(!bu&&2&a.$flags$?"slot-fb":a.$tag$),mu(null,a,!1),a.$children$)for(c=0;c{Nc.$flags$|=1;const n=Array.from(e.childNodes);e["s-sr"];for(let e=n.length-1;e>=0;e--){const r=n[e];r["s-hn"]!==eu&&r["s-ol"]&&(Lu(Cu(r),r,Au(r)),r["s-ol"].remove(),r["s-ol"]=void 0,r["s-sh"]=void 0,yu=!0),t&&ku(r,t)}Nc.$flags$&=-2},xu=(e,t,n,r,o,a)=>{let i,s=e["s-cr"]&&e["s-cr"].parentNode||e;for(;o<=a;++o)r[o]&&(i=_u(null,n,o),i&&(r[o].$elm$=i,Lu(s,i,Au(t))))},wu=(e,t,n)=>{for(let r=t;r<=n;++r){const t=e[r];if(t){const e=t.$elm$;Ru(t),e&&(vu=!0,e["s-ol"]?e["s-ol"].remove():ku(e,!0),e.remove())}}},Su=(e,t,n=!1)=>e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:!!n||e.$key$===t.$key$),Au=e=>e&&e["s-ol"]||e,Cu=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,Eu=(e,t,n=!1)=>{const r=t.$elm$=e.$elm$,o=e.$children$,a=t.$children$,i=t.$tag$,s=t.$text$;let l;null===s?(("slot"!==i||bu)&&mu(e,t,!1),null!==o&&null!==a?((e,t,n,r,o=!1)=>{let a,i,s=0,l=0,c=0,u=0,d=t.length-1,p=t[0],h=t[d],f=r.length-1,m=r[0],g=r[f];for(;s<=d&&l<=f;)if(null==p)p=t[++s];else if(null==h)h=t[--d];else if(null==m)m=r[++l];else if(null==g)g=r[--f];else if(Su(p,m,o))Eu(p,m,o),p=t[++s],m=r[++l];else if(Su(h,g,o))Eu(h,g,o),h=t[--d],g=r[--f];else if(Su(p,g,o))"slot"!==p.$tag$&&"slot"!==g.$tag$||ku(p.$elm$.parentNode,!1),Eu(p,g,o),Lu(e,p.$elm$,h.$elm$.nextSibling),p=t[++s],g=r[--f];else if(Su(h,m,o))"slot"!==p.$tag$&&"slot"!==g.$tag$||ku(h.$elm$.parentNode,!1),Eu(h,m,o),Lu(e,h.$elm$,p.$elm$),h=t[--d],m=r[++l];else{for(c=-1,u=s;u<=d;++u)if(t[u]&&null!==t[u].$key$&&t[u].$key$===m.$key$){c=u;break}c>=0?(i=t[c],i.$tag$!==m.$tag$?a=_u(t&&t[l],n,c):(Eu(i,m,o),t[c]=void 0,a=i.$elm$),m=r[++l]):(a=_u(t&&t[l],n,l),m=r[++l]),a&&Lu(Cu(p.$elm$),a,Au(p.$elm$))}s>d?xu(e,null==r[f+1]?null:r[f+1].$elm$,n,r,l,f):l>f&&wu(t,s,d)})(r,o,t,a,n):null!==a?(null!==e.$text$&&(r.textContent=""),xu(r,null,t,a,0,a.length-1)):null!==o&&wu(o,0,o.length-1)):(l=r["s-cr"])?l.parentNode.textContent=s:e.$text$!==s&&(r.data=s)},Tu=e=>{const t=e.childNodes;for(const e of t)if(1===e.nodeType){if(e["s-sr"]){const n=e["s-sn"];e.hidden=!1;for(const r of t)if(r!==e)if(r["s-hn"]!==e["s-hn"]||""!==n){if(1===r.nodeType&&(n===r.getAttribute("slot")||n===r["s-sn"])||3===r.nodeType&&n===r["s-sn"]){e.hidden=!0;break}}else if(1===r.nodeType||3===r.nodeType&&""!==r.textContent.trim()){e.hidden=!0;break}}Tu(e)}},Ou=[],Pu=e=>{let t,n,r;for(const o of e.childNodes){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){n=t.parentNode.childNodes;const e=o["s-sn"];for(r=n.length-1;r>=0;r--)if(t=n[r],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==o["s-hn"])if(Du(t,e)){let n=Ou.find((e=>e.$nodeToRelocate$===t));vu=!0,t["s-sn"]=t["s-sn"]||e,n?(n.$nodeToRelocate$["s-sh"]=o["s-hn"],n.$slotRefNode$=o):(t["s-sh"]=o["s-hn"],Ou.push({$slotRefNode$:o,$nodeToRelocate$:t})),t["s-sr"]&&Ou.map((e=>{Du(e.$nodeToRelocate$,t["s-sn"])&&(n=Ou.find((e=>e.$nodeToRelocate$===t)),n&&!e.$slotRefNode$&&(e.$slotRefNode$=n.$slotRefNode$))}))}else Ou.some((e=>e.$nodeToRelocate$===t))||Ou.push({$nodeToRelocate$:t})}1===o.nodeType&&Pu(o)}},Du=(e,t)=>1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t,Ru=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(Ru)},Lu=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),Iu=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.$onRenderResolve$=t)))},Mu=(e,t)=>{if(e.$flags$|=16,!(4&e.$flags$))return Iu(e,e.$ancestorComponent$),Gc((()=>Fu(e,t)));e.$flags$|=512},Fu=(e,t)=>{const n=e.$hostElement$,r=(e.$cmpMeta$.$tagName$,()=>{}),o=n;if(!o)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let a;return t&&(a=Bu(o,"componentWillLoad")),r(),Nu(a,(()=>$u(e,o,t)))},Nu=(e,t)=>ju(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ju=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,$u=async(e,t,n)=>{var r;const o=e.$hostElement$,a=(e.$cmpMeta$.$tagName$,()=>{}),i=o["s-rc"];n&&(e=>{const t=e.$cmpMeta$,n=e.$hostElement$,r=(t.$tagName$,()=>{});((e,t,n)=>{var r;const o=e,a=cu(t),i=Rc.get(a);if(e=11===e.nodeType?e:Mc,i)if("string"==typeof i){e=o.head||e;let n,s=lu.get(e);if(s||lu.set(e,s=new Set),!s.has(a)){{n=Mc.createElement("style"),n.innerHTML=i;const t=null!=(r=Nc.$nonce$)?r:function(e){var t,n,r;return null!=(r=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?r:void 0}(Mc);null!=t&&n.setAttribute("nonce",t),e.insertBefore(n,e.querySelector("link"))}4&t.$flags$&&(n.innerHTML+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),s&&s.add(a)}}else o.adoptedStyleSheets.includes(i)||(o.adoptedStyleSheets=[...o.adoptedStyleSheets,i])})(n.getRootNode(),t),r()})(e);const s=(e.$cmpMeta$.$tagName$,()=>{});Hu(e,t,o,n),i&&(i.map((e=>e())),o["s-rc"]=void 0),s(),a();{const t=null!=(r=o["s-p"])?r:[],n=()=>qu(e);0===t.length?n():(Promise.all(t).then(n),e.$flags$|=4,t.length=0)}},Hu=(e,t,n,r)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,((e,t,n=!1)=>{var r,o,a,i;const s=e.$hostElement$,l=e.$cmpMeta$,c=e.$vnode$||ou(null,null),u=(d=t)&&d.$tag$===au?t:ru(null,null,t);var d;if(eu=s.tagName,l.$attrsToReflect$&&(u.$attrs$=u.$attrs$||{},l.$attrsToReflect$.map((([e,t])=>u.$attrs$[t]=s[e]))),n&&u.$attrs$)for(const e of Object.keys(u.$attrs$))s.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(u.$attrs$[e]=s[e]);if(u.$tag$=null,u.$flags$|=4,e.$vnode$=u,u.$elm$=c.$elm$=s,bu=!1,Qc=s["s-cr"],vu=!1,Eu(c,u,n),Nc.$flags$|=1,yu){Pu(u.$elm$);for(const e of Ou){const t=e.$nodeToRelocate$;if(!t["s-ol"]){const e=Mc.createTextNode("");e["s-nr"]=t,Lu(t.parentNode,t["s-ol"]=e,t)}}for(const e of Ou){const t=e.$nodeToRelocate$,s=e.$slotRefNode$;if(s){const e=s.parentNode;let n=s.nextSibling;{let a=null==(r=t["s-ol"])?void 0:r.previousSibling;for(;a;){let r=null!=(o=a["s-nr"])?o:null;if(r&&r["s-sn"]===t["s-sn"]&&e===r.parentNode){for(r=r.nextSibling;r===t||(null==r?void 0:r["s-sr"]);)r=null==r?void 0:r.nextSibling;if(!r||!r["s-nr"]){n=r;break}}a=a.previousSibling}}(!n&&e!==t.parentNode||t.nextSibling!==n)&&t!==n&&(!t["s-hn"]&&t["s-ol"]&&(t["s-hn"]=t["s-ol"].parentNode.nodeName),Lu(e,t,n),1===t.nodeType&&(t.hidden=null!=(a=t["s-ih"])&&a)),t&&"function"==typeof s["s-rf"]&&s["s-rf"](t)}else 1===t.nodeType&&(n&&(t["s-ih"]=null!=(i=t.hidden)&&i),t.hidden=!0)}}vu&&Tu(u.$elm$),Nc.$flags$&=-2,Ou.length=0,Qc=void 0})(e,t,r)}catch(t){Dc(t,e.$hostElement$)}return null},qu=e=>{e.$cmpMeta$.$tagName$;const t=e.$hostElement$,n=t,r=e.$ancestorComponent$;Bu(n,"componentDidRender"),64&e.$flags$||(e.$flags$|=64,Vu(t),Bu(n,"componentDidLoad"),e.$onReadyResolve$(t),r||Uu()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&Wc((()=>Mu(e,!1))),e.$flags$&=-517},Uu=e=>{Vu(Mc.documentElement),Wc((()=>su(Ic,"appload",{detail:{namespace:"lawwidgets"}})))},Bu=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){Dc(e)}},Vu=e=>e.classList.add(("hydrated","hydrated")),zu=(e,t,n)=>{var r,o;const a=e.prototype;if(t.$members$||t.$watchers$||e.watchers){e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);const n=Object.entries(null!=(r=t.$members$)?r:{});n.map((([e,[n]])=>{(31&n||32&n)&&Object.defineProperty(a,e,{get(){return t=e,Oc(this).$instanceValues$.get(t);var t},set(n){((e,t,n,r)=>{const o=Oc(e),a=e,i=o.$instanceValues$.get(t),s=o.$flags$,l=a;var c,u;c=n,u=r.$members$[t][0],n=null==c||Xc(c)?c:4&u?"false"!==c&&(""===c||!!c):1&u?String(c):c;const d=Number.isNaN(i)&&Number.isNaN(n);if(n!==i&&!d){if(o.$instanceValues$.set(t,n),r.$watchers$&&128&s){const e=r.$watchers$[t];e&&e.map((e=>{try{l[e](n,i,t)}catch(e){Dc(e,a)}}))}2==(18&s)&&Mu(o,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0})}));{const r=new Map;a.attributeChangedCallback=function(e,n,o){Nc.jmp((()=>{var i;const s=r.get(e);if(this.hasOwnProperty(s))o=this[s],delete this[s];else{if(a.hasOwnProperty(s)&&"number"==typeof this[s]&&this[s]==o)return;if(null==s){const r=Oc(this),a=null==r?void 0:r.$flags$;if(a&&!(8&a)&&128&a&&o!==n){const r=this,a=null==(i=t.$watchers$)?void 0:i[e];null==a||a.forEach((t=>{null!=r[t]&&r[t].call(r,o,n,e)}))}return}}this[s]=(null!==o||"boolean"!=typeof this[s])&&o}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(o=t.$watchers$)?o:{}),...n.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const a=n[1]||e;return r.set(a,e),512&n[0]&&(null==(o=t.$attrsToReflect$)||o.push([e,a])),a}))]))}}return e},Wu=(e,t)=>{const n={$flags$:t[0],$tagName$:t[1]};n.$members$=t[2],n.$listeners$=t[3],n.$watchers$=e.$watchers$,n.$attrsToReflect$=[];const r=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){((e,t)=>{const n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};n.$onReadyPromise$=new Promise((e=>n.$onReadyResolve$=e)),e["s-p"]=[],e["s-rc"]=[],Tc.set(e,n)})(this,n)},connectedCallback(){const e=Oc(this);Gu(this,e,n.$listeners$),(e=>{if(0==(1&Nc.$flags$)){const t=Oc(e),n=t.$cmpMeta$,r=(n.$tagName$,()=>{});if(1&t.$flags$)Gu(e,t,n.$listeners$),(null==t?void 0:t.$lazyInstance$)||(null==t?void 0:t.$onReadyPromise$)&&t.$onReadyPromise$.then((()=>{}));else{t.$flags$|=1,12&n.$flags$&&(e=>{const t=e["s-cr"]=Mc.createComment("");t["s-cn"]=!0,Lu(e,t,e.firstChild)})(e);{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){Iu(t,t.$ancestorComponent$=n);break}}n.$members$&&Object.entries(n.$members$).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,r)=>{let o;if(0==(32&t.$flags$)){t.$flags$|=32;{o=e.constructor;const n=e.localName;customElements.whenDefined(n).then((()=>t.$flags$|=128))}if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=cu(n);if(!Rc.has(t)){const r=(n.$tagName$,()=>{});((e,t,n)=>{let r=Rc.get(e);$c&&n?(r=r||new CSSStyleSheet,"string"==typeof r?r=t:r.replaceSync(t)):r=t,Rc.set(e,r)})(t,e,!!(1&n.$flags$)),r()}}}const a=t.$ancestorComponent$,i=()=>Mu(t,!0);a&&a["s-rc"]?a["s-rc"].push(i):i()})(e,t,n)}r()}})(this)},disconnectedCallback(){(async e=>{if(0==(1&Nc.$flags$)){const t=Oc(e);t.$rmListeners$&&(t.$rmListeners$.map((e=>e())),t.$rmListeners$=void 0)}})(this),r&&r.call(this)},__attachShadow(){this.shadowRoot=this}}),e.is=n.$tagName$,zu(e,n)},Gu=(e,t,n,r)=>{n&&n.map((([n,r,o])=>{const a=e,i=Yu(t,o),s=Xu(n);Nc.ael(a,r,i,s),(t.$rmListeners$=t.$rmListeners$||[]).push((()=>Nc.rel(a,r,i,s)))}))},Yu=(e,t)=>n=>{try{e.$hostElement$[t](n)}catch(e){Dc(e)}},Xu=e=>jc?{passive:0!=(1&e),capture:0!=(2&e)}:0!=(2&e);function Ju(){return document.location.hostname.replace(/^www\./,"")}const Zu="https://services.lawsafrica.com/v1",Ku=Wu(class extends Fc{constructor(){super(),this.__registerHost(),this.frbrExpressionUri=void 0,this.frbrCountry=void 0,this.frbrType=void 0,this.frbrSubtype=void 0,this.frbrAuthor=void 0,this.frbrDate=void 0,this.frbrNumber=void 0,this.frbrExpressionDate=void 0,this.frbrLanguage=void 0,this.fetch=!1,this.partner=void 0,this.provider=Zu}refetch(){this.fetchContent()}parseFrbrExpressionUri(e){const t=new RegExp("^(/(?akn))/(?[a-z]{2})(-(?[^/]+))?/(?[^/]+)(/(?[^0-9][^/]*))?(/(?[^0-9][^/]*))?/(?[0-9]{4}(-[0-9]{2}(-[0-9]{2})?)?)/(?[^/]+)(/(((?[a-z]{3})(?[@:][^/]*)?(/!?(?[^/]+?)?(/(?[^.]+))?)?(.(?[a-z0-9]+))?)|!?(?[^/]+)))?$","g").exec(e);(null==t?void 0:t.groups)&&Object.keys(t.groups).forEach((e=>{var n;if(null===(n=t.groups)||void 0===n?void 0:n[e])switch(e){case"country":this.frbrCountry||(this.frbrCountry=t.groups[e]);break;case"doctype":this.frbrType||(this.frbrType=t.groups[e]);break;case"subtype":this.frbrSubtype||(this.frbrSubtype=t.groups[e]);break;case"actor":this.frbrAuthor||(this.frbrAuthor=t.groups[e]);break;case"date":this.frbrDate||(this.frbrDate=t.groups[e]);break;case"number":this.frbrNumber||(this.frbrNumber=t.groups[e]);break;case"expression_date":this.frbrExpressionDate||(this.frbrExpressionDate=t.groups[e].replace("@","").replace(":",""));break;case"language":this.frbrLanguage||(this.frbrLanguage=t.groups[e])}})),this.fetchContent()}async fetchContent(){if(this.ensurePartner(),this.fetch&&this.frbrExpressionUri&&this.provider){const e=this.provider+"/p/"+this.partner+"/e/portion"+this.frbrExpressionUri;try{const t=await fetch(e);t.ok&&(this.el.innerHTML=await t.text())}catch(e){}}}ensurePartner(){this.partner||(this.partner=Ju())}componentWillLoad(){this.frbrExpressionUri&&this.parseFrbrExpressionUri(this.frbrExpressionUri)}get el(){return this}static get watchers(){return{provider:["refetch"],fetch:["refetch"],frbrExpressionUri:["parseFrbrExpressionUri"]}}static get style(){return'@import url("https://fonts.googleapis.com/css?family=PT+Serif:400,400i,700,700i");@import url("https://fonts.googleapis.com/css?family=PT+Serif:400,400i,700,700i");la-akoma-ntoso{display:block;font-family:Palatino, "Book Antiqua", "PT Serif", Georgia, serif;font-size:15px;line-height:1.35;}@-webkit-keyframes fadeout{from{background-color:yellow}to{background-color:unset}}@keyframes fadeout{from{background-color:yellow}to{background-color:unset}}la-akoma-ntoso.flash-target :target{-webkit-animation:fadeout 2s;animation:fadeout 2s}la-akoma-ntoso .akn-blockContainer{display:block}la-akoma-ntoso .akn-block{display:block}la-akoma-ntoso .akn-blockList{display:block}la-akoma-ntoso .akn-conclusions{display:block}la-akoma-ntoso .akn-coverPage{display:block}la-akoma-ntoso .akn-foreign{display:block}la-akoma-ntoso .akn-intro{display:block}la-akoma-ntoso .akn-item{display:block}la-akoma-ntoso .akn-listIntroduction{display:block}la-akoma-ntoso .akn-listWrapUp{display:block}la-akoma-ntoso .akn-ol{display:block}la-akoma-ntoso .akn-p{display:block}la-akoma-ntoso .akn-preamble{display:block}la-akoma-ntoso .akn-preface{display:block}la-akoma-ntoso .akn-tblock{display:block}la-akoma-ntoso .akn-toc{display:block}la-akoma-ntoso .akn-ul{display:block}la-akoma-ntoso .akn-wrapUp{display:block}la-akoma-ntoso .akn-from{display:block}la-akoma-ntoso .akn-narrative{display:block}la-akoma-ntoso .akn-scene{display:block}la-akoma-ntoso .akn-summary{display:block}la-akoma-ntoso .akn-preface,la-akoma-ntoso .akn-preamble{margin-bottom:1.6em}la-akoma-ntoso .akn-preface>.akn-p,la-akoma-ntoso .akn-preamble>.akn-p{margin-bottom:0.8em}la-akoma-ntoso .akn-listIntroduction,la-akoma-ntoso .akn-listWrapUp,la-akoma-ntoso .akn-p{margin-bottom:0.8em}la-akoma-ntoso .akn-blockList>.akn-item{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-blockList>.akn-item>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-ul,la-akoma-ntoso .akn-ol{list-style-position:outside;padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-ul{list-style-type:disc}la-akoma-ntoso .akn-ol{list-style-type:arabic}la-akoma-ntoso .akn-li{display:list-item;margin-bottom:0.8em}la-akoma-ntoso .akn-akomaNtoso{display:block}la-akoma-ntoso .akn-act{display:block}la-akoma-ntoso .akn-amendment{display:block}la-akoma-ntoso .akn-amendmentList{display:block}la-akoma-ntoso .akn-bill{display:block}la-akoma-ntoso .akn-components{display:block}la-akoma-ntoso .akn-debate{display:block}la-akoma-ntoso .akn-debateReport{display:block}la-akoma-ntoso .akn-doc{display:block}la-akoma-ntoso .akn-documentCollection{display:block}la-akoma-ntoso .akn-judgment{display:block}la-akoma-ntoso .akn-officialGazette{display:block}la-akoma-ntoso .akn-portion{display:block}la-akoma-ntoso .akn-statement{display:block}la-akoma-ntoso .coverpage{text-align:center;margin-bottom:1.6em}la-akoma-ntoso .coverpage .notice-list{margin:0px;padding:0px}la-akoma-ntoso .coverpage .notice-list li{list-style:none}la-akoma-ntoso .coverpage .place-name,la-akoma-ntoso .coverpage .parent-work{font-size:19px;line-height:1.2;margin-bottom:0.8em;font-weight:bold}la-akoma-ntoso .coverpage .assent-date,la-akoma-ntoso .coverpage .commencement-date{margin-bottom:0.8em;font-weight:bold}la-akoma-ntoso .coverpage .commencement-date-list{margin-bottom:0.8em}la-akoma-ntoso .coverpage .commencement-date-uncommenced{margin-bottom:0.8em;font-weight:bold}la-akoma-ntoso .coverpage .commencements-table{margin:auto;max-width:80%}la-akoma-ntoso .coverpage .amendment-list{margin-top:1.6em;padding:0px}la-akoma-ntoso .coverpage .amendment{list-style:none;margin-bottom:0.8em;font-style:italic}la-akoma-ntoso .coverpage .commencement-note,la-akoma-ntoso .coverpage .verification-notice,la-akoma-ntoso .coverpage .as-at-date-notice{margin-top:0.8em;font-style:italic}la-akoma-ntoso .akn-from{float:left;margin-right:0.5em;font-weight:bold}la-akoma-ntoso h1,la-akoma-ntoso h2,la-akoma-ntoso h3,la-akoma-ntoso h4,la-akoma-ntoso h5,la-akoma-ntoso .akn-heading{margin-top:0px;margin-bottom:0.8em;font-family:Palatino, "Book Antiqua", "PT Serif", Georgia, serif;font-weight:bold}la-akoma-ntoso h1{font-size:26px;line-height:1.2}la-akoma-ntoso h2,la-akoma-ntoso .akn-heading{text-align:center;font-size:19px;line-height:1.2}la-akoma-ntoso h3{font-size:18px;line-height:1.35}la-akoma-ntoso h4{font-size:15px;line-height:1.35}la-akoma-ntoso .akn-subheading,la-akoma-ntoso .akn-crossHeading{text-align:center;font-style:italic}la-akoma-ntoso .akn-attachment>.akn-subheading{font-style:normal}la-akoma-ntoso .akn-alinea{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-article{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-book{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-chapter{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-clause{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-division{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-hcontainer{display:block;margin-bottom:0.8em}la-akoma-ntoso .akn-indent{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-level{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-list{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-paragraph{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-part{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-point{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-proviso{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-rule{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-section{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subchapter{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subclause{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subdivision{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-sublist{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subparagraph{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subpart{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subrule{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subsection{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-subtitle{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-title{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-tome{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-transitional{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-address{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-adjournment{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-administrationOfOath{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-answer{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-communication{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-debateSection{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-declarationOfVote{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-ministerialStatements{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-nationalInterest{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-noticesOfMotion{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-oralStatements{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-papers{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-personalStatements{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-petitions{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-pointOfOrder{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-prayers{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-proceduralMotions{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-question{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-questions{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-resolutions{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-rollCall{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-speech{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-speechGroup{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-writtenStatements{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-crossHeading{display:block;margin-bottom:1.6em}la-akoma-ntoso .akn-alinea{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-alinea.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-alinea>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-alinea>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-alinea>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-indent{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-indent.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-indent>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-indent>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-indent>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-level{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-level.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-level>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-level>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-level>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-list{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-list.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-list>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-list>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-list>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-paragraph{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-paragraph.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-paragraph>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-paragraph>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-paragraph>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-point{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-point.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-point>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-point>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-point>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-proviso{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-proviso.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-proviso>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-proviso>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-proviso>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-rule{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-rule.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-rule>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-rule>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-rule>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-sublist{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-sublist.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-sublist>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-sublist>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-sublist>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-subparagraph{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-subparagraph.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-subparagraph>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-subparagraph>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-subparagraph>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-subrule{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-subrule.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-subrule>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-subrule>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-subrule>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-subsection{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-subsection.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-subsection>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-subsection>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-subsection>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-transitional{padding-left:3em;margin-bottom:0.8em}la-akoma-ntoso .akn-transitional.akn--no-indent{padding-left:0px}la-akoma-ntoso .akn-transitional>.akn-num{display:block;float:left;margin-left:-3em;margin-right:0.25em}la-akoma-ntoso .akn-transitional>.akn-heading{font-size:inherit;text-align:inherit;line-height:inherit}la-akoma-ntoso .akn-transitional>.akn-subheading{text-align:start;font-style:normal;font-weight:bold}la-akoma-ntoso .akn-br{display:block}la-akoma-ntoso .akn-def{font-weight:bold}la-akoma-ntoso .akn-longTitle{display:block;font-weight:bold;margin-bottom:0.8em}la-akoma-ntoso .akn-remark{font-style:italic}la-akoma-ntoso img{max-width:100%}la-akoma-ntoso .akn-ins{text-decoration:underline}la-akoma-ntoso .akn-del{text-decoration:line-through}la-akoma-ntoso .akn-authorialNote{display:-ms-flexbox;display:flex;font-size:small;margin-top:0.4em;padding:0.25em 0.25em 0 0.25em;position:relative;background-color:rgba(0, 0, 0, 0.07)}la-akoma-ntoso .akn-authorialNote::before{content:" ";position:absolute;top:0;left:0;border-top:1px solid black;width:15%}la-akoma-ntoso .akn-authorialNote+.akn-authorialNote{margin-top:0px}la-akoma-ntoso .akn-authorialNote+.akn-authorialNote::before{border-top:0px}la-akoma-ntoso .akn-authorialNote>.akn-authorialNote--marker{margin-right:0.5em}la-akoma-ntoso .akn-embeddedStructure{display:block;margin-left:2em}la-akoma-ntoso .akn-embeddedStructure .akn-embeddedStructure--startQuote{margin-left:-0.5em;float:left}la-akoma-ntoso .akn--table-container{max-width:100%;overflow-y:auto;margin-bottom:1.6em}la-akoma-ntoso table{width:100%;border:1px solid #ddd;border-collapse:collapse}la-akoma-ntoso table.akn--no-border{border-width:0px}la-akoma-ntoso table.akn--no-border th,la-akoma-ntoso table.akn--no-border td{border-width:0px}la-akoma-ntoso table th,la-akoma-ntoso table td{border-top:1px solid #ddd;border-left:1px solid #ddd;padding:5px;text-align:left;vertical-align:top}la-akoma-ntoso table th{font-weight:bold}la-akoma-ntoso table th>:last-child,la-akoma-ntoso table td>:last-child{margin-bottom:0px}la-akoma-ntoso table thead th{vertical-align:bottom}la-akoma-ntoso table caption+thead tr:first-child th,la-akoma-ntoso table caption+thead tr:first-child td,la-akoma-ntoso table colgroup+thead tr:first-child th,la-akoma-ntoso table colgroup+thead tr:first-child td,la-akoma-ntoso table thead:first-child tr:first-child th,la-akoma-ntoso table thead:first-child tr:first-child td{border-top:0}la-akoma-ntoso table tbody+tbody{border-top:2px solid #ddd}la-akoma-ntoso .akn--text-left{text-align:left}la-akoma-ntoso .akn--text-center{text-align:center}la-akoma-ntoso .akn--text-right{text-align:right}la-akoma-ntoso[frbr-country^=ke]{}la-akoma-ntoso[frbr-country^=ke] .akn-remark,la-akoma-ntoso[frbr-country^=ke] .akn-crossHeading{font-style:normal}la-akoma-ntoso[frbr-country^=ke] .coverpage .amendment,la-akoma-ntoso[frbr-country^=ke] .coverpage .verification-notice,la-akoma-ntoso[frbr-country^=ke] .coverpage .as-at-date-notice{font-style:normal}la-akoma-ntoso[frbr-country^=ke] .akn-listIntroduction>.akn-remark:only-child,la-akoma-ntoso[frbr-country^=ke] .akn-p>.akn-remark:only-child{display:block;margin-top:0.8em;text-align:center}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-division .akn-heading,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-paragraph .akn-heading{text-align:start;font-size:15px;line-height:1.35}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-heading,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-subheading{margin-bottom:0.8em}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-judgmentBody .akn-p,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-attachments .akn-p{text-align:justify}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-remark,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-ref,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-term{font-style:italic}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] em{font-style:normal;text-decoration:underline}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .akn-header{padding-top:1.6em;padding-bottom:3.2em}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header{width:80%;margin-left:auto;margin-right:auto;margin-bottom:1.6em;font-weight:bold;text-align:center}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .doc-title,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .neutral-citation{margin-bottom:0.8em}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .doc-date,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .judges,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .docket-number,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .extra-text,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .doc-authority{margin-bottom:0.8em;text-transform:uppercase}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .legacy-citation{margin-bottom:0.8em;font-weight:normal;font-style:italic}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .republic-head,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .parties-separator{margin-top:1.6em;margin-bottom:0.8em;text-transform:uppercase}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .party-listing{margin-bottom:0.8em;text-transform:uppercase;display:-ms-flexbox;display:flex;-ms-flex-line-pack:end;align-content:flex-end}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .party-listing .party-name{text-align:left;max-width:60%}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .party-listing .dotted{-ms-flex-positive:1;flex-grow:1;border-bottom:dotted 1px;margin:6px}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .tausi-header .header-note{margin-top:1.6em;margin-bottom:0.8em;font-style:italic}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary{text-align:justify}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary .summary-title,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary .author{margin-bottom:0.8em}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary .catchwords,la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary .outcome{font-style:italic}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .summary .akn-h4{font-weight:bold;font-style:normal}la-akoma-ntoso[frbr-country^=ke][frbr-type=judgment] .introduction .decision-action{text-align:center;margin-top:2.4em;text-transform:uppercase;font-weight:bold}la-akoma-ntoso[frbr-country^=na] .coverpage .amendment-list,la-akoma-ntoso[frbr-country^=na] .coverpage .commencement-date,la-akoma-ntoso[frbr-country^=na] .coverpage .verification-notice,la-akoma-ntoso[frbr-country^=na] .coverpage .as-at-date-notice,la-akoma-ntoso[frbr-country^=na] .coverpage .assent-date{font-style:normal;font-weight:bold;color:#00b156}la-akoma-ntoso[frbr-country^=na] .coverpage .as-at-date-notice,la-akoma-ntoso[frbr-country^=na] .coverpage .amendment,la-akoma-ntoso[frbr-country^=na] .coverpage .commencement-note,la-akoma-ntoso[frbr-country^=na] .coverpage .verification-notice{font-style:normal}la-akoma-ntoso[frbr-country^=na] .akn-remark{font-style:normal;font-weight:bold;color:#00b156}la-akoma-ntoso[frbr-country^=na] .akn-p>.akn-remark:only-child,la-akoma-ntoso[frbr-country^=na] .akn-listIntroduction>.akn-remark:only-child{display:block;margin-top:0.8em;text-align:center}la-akoma-ntoso[frbr-country^=pl]{}la-akoma-ntoso[frbr-country^=pl] .coverpage .doctype{text-transform:uppercase}la-akoma-ntoso[frbr-country^=pl] .akn-intro,la-akoma-ntoso[frbr-country^=pl] .akn-list,la-akoma-ntoso[frbr-country^=pl] .akn-paragraph,la-akoma-ntoso[frbr-country^=pl] .akn-point{margin-bottom:0.8em}la-akoma-ntoso[frbr-country^=pl] .akn-alinea,la-akoma-ntoso[frbr-country^=pl] .akn-indent,la-akoma-ntoso[frbr-country^=pl] .akn-paragraph,la-akoma-ntoso[frbr-country^=pl] .akn-point{margin-left:3em}la-akoma-ntoso[frbr-country^=pl] .akn-alinea>.akn-num,la-akoma-ntoso[frbr-country^=pl] .akn-alinea>.akn-indent-num,la-akoma-ntoso[frbr-country^=pl] .akn-indent>.akn-num,la-akoma-ntoso[frbr-country^=pl] .akn-indent>.akn-indent-num,la-akoma-ntoso[frbr-country^=pl] .akn-paragraph>.akn-num,la-akoma-ntoso[frbr-country^=pl] .akn-paragraph>.akn-indent-num,la-akoma-ntoso[frbr-country^=pl] .akn-point>.akn-num,la-akoma-ntoso[frbr-country^=pl] .akn-point>.akn-indent-num{display:block;float:left;margin-left:-3em}la-akoma-ntoso.show-structure .akn-alinea,la-akoma-ntoso.show-structure-hier .akn-alinea{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9a9a}la-akoma-ntoso.show-structure .akn-alinea::before,la-akoma-ntoso.show-structure-hier .akn-alinea::before{content:"alinea";position:absolute;top:0px;left:0px;color:white;background-color:#ef9a9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-article,la-akoma-ntoso.show-structure-hier .akn-article{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efa89a}la-akoma-ntoso.show-structure .akn-article::before,la-akoma-ntoso.show-structure-hier .akn-article::before{content:"article";position:absolute;top:0px;left:0px;color:white;background-color:#efa89a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-book,la-akoma-ntoso.show-structure-hier .akn-book{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efb69a}la-akoma-ntoso.show-structure .akn-book::before,la-akoma-ntoso.show-structure-hier .akn-book::before{content:"book";position:absolute;top:0px;left:0px;color:black;background-color:#efb69a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-chapter,la-akoma-ntoso.show-structure-hier .akn-chapter{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efc59a}la-akoma-ntoso.show-structure .akn-chapter::before,la-akoma-ntoso.show-structure-hier .akn-chapter::before{content:"chapter";position:absolute;top:0px;left:0px;color:black;background-color:#efc59a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-clause,la-akoma-ntoso.show-structure-hier .akn-clause{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efd39a}la-akoma-ntoso.show-structure .akn-clause::before,la-akoma-ntoso.show-structure-hier .akn-clause::before{content:"clause";position:absolute;top:0px;left:0px;color:black;background-color:#efd39a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-division,la-akoma-ntoso.show-structure-hier .akn-division{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efe19a}la-akoma-ntoso.show-structure .akn-division::before,la-akoma-ntoso.show-structure-hier .akn-division::before{content:"division";position:absolute;top:0px;left:0px;color:black;background-color:#efe19a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-hcontainer,la-akoma-ntoso.show-structure-hier .akn-hcontainer{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efef9a}la-akoma-ntoso.show-structure .akn-hcontainer::before,la-akoma-ntoso.show-structure-hier .akn-hcontainer::before{content:"hcontainer";position:absolute;top:0px;left:0px;color:black;background-color:#efef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-indent,la-akoma-ntoso.show-structure-hier .akn-indent{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #e1ef9a}la-akoma-ntoso.show-structure .akn-indent::before,la-akoma-ntoso.show-structure-hier .akn-indent::before{content:"indent";position:absolute;top:0px;left:0px;color:black;background-color:#e1ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-level,la-akoma-ntoso.show-structure-hier .akn-level{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #d3ef9a}la-akoma-ntoso.show-structure .akn-level::before,la-akoma-ntoso.show-structure-hier .akn-level::before{content:"level";position:absolute;top:0px;left:0px;color:black;background-color:#d3ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-list,la-akoma-ntoso.show-structure-hier .akn-list{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #c5ef9a}la-akoma-ntoso.show-structure .akn-list::before,la-akoma-ntoso.show-structure-hier .akn-list::before{content:"list";position:absolute;top:0px;left:0px;color:black;background-color:#c5ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-paragraph,la-akoma-ntoso.show-structure-hier .akn-paragraph{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #b6ef9a}la-akoma-ntoso.show-structure .akn-paragraph::before,la-akoma-ntoso.show-structure-hier .akn-paragraph::before{content:"para";position:absolute;top:0px;left:0px;color:black;background-color:#b6ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-part,la-akoma-ntoso.show-structure-hier .akn-part{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #a8ef9a}la-akoma-ntoso.show-structure .akn-part::before,la-akoma-ntoso.show-structure-hier .akn-part::before{content:"part";position:absolute;top:0px;left:0px;color:black;background-color:#a8ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-point,la-akoma-ntoso.show-structure-hier .akn-point{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aef9a}la-akoma-ntoso.show-structure .akn-point::before,la-akoma-ntoso.show-structure-hier .akn-point::before{content:"point";position:absolute;top:0px;left:0px;color:black;background-color:#9aef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-proviso,la-akoma-ntoso.show-structure-hier .akn-proviso{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefa8}la-akoma-ntoso.show-structure .akn-proviso::before,la-akoma-ntoso.show-structure-hier .akn-proviso::before{content:"proviso";position:absolute;top:0px;left:0px;color:black;background-color:#9aefa8;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-rule,la-akoma-ntoso.show-structure-hier .akn-rule{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefb6}la-akoma-ntoso.show-structure .akn-rule::before,la-akoma-ntoso.show-structure-hier .akn-rule::before{content:"rule";position:absolute;top:0px;left:0px;color:black;background-color:#9aefb6;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-section,la-akoma-ntoso.show-structure-hier .akn-section{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefc5}la-akoma-ntoso.show-structure .akn-section::before,la-akoma-ntoso.show-structure-hier .akn-section::before{content:"section";position:absolute;top:0px;left:0px;color:black;background-color:#9aefc5;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subchapter,la-akoma-ntoso.show-structure-hier .akn-subchapter{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefd3}la-akoma-ntoso.show-structure .akn-subchapter::before,la-akoma-ntoso.show-structure-hier .akn-subchapter::before{content:"subchapter";position:absolute;top:0px;left:0px;color:black;background-color:#9aefd3;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subclause,la-akoma-ntoso.show-structure-hier .akn-subclause{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefe1}la-akoma-ntoso.show-structure .akn-subclause::before,la-akoma-ntoso.show-structure-hier .akn-subclause::before{content:"subclause";position:absolute;top:0px;left:0px;color:black;background-color:#9aefe1;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subdivision,la-akoma-ntoso.show-structure-hier .akn-subdivision{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefef}la-akoma-ntoso.show-structure .akn-subdivision::before,la-akoma-ntoso.show-structure-hier .akn-subdivision::before{content:"subdivision";position:absolute;top:0px;left:0px;color:black;background-color:#9aefef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-sublist,la-akoma-ntoso.show-structure-hier .akn-sublist{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9ae1ef}la-akoma-ntoso.show-structure .akn-sublist::before,la-akoma-ntoso.show-structure-hier .akn-sublist::before{content:"sublist";position:absolute;top:0px;left:0px;color:black;background-color:#9ae1ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subparagraph,la-akoma-ntoso.show-structure-hier .akn-subparagraph{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9ad3ef}la-akoma-ntoso.show-structure .akn-subparagraph::before,la-akoma-ntoso.show-structure-hier .akn-subparagraph::before{content:"subpara";position:absolute;top:0px;left:0px;color:black;background-color:#9ad3ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subpart,la-akoma-ntoso.show-structure-hier .akn-subpart{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9ac5ef}la-akoma-ntoso.show-structure .akn-subpart::before,la-akoma-ntoso.show-structure-hier .akn-subpart::before{content:"subpart";position:absolute;top:0px;left:0px;color:white;background-color:#9ac5ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subrule,la-akoma-ntoso.show-structure-hier .akn-subrule{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9ab6ef}la-akoma-ntoso.show-structure .akn-subrule::before,la-akoma-ntoso.show-structure-hier .akn-subrule::before{content:"subrule";position:absolute;top:0px;left:0px;color:white;background-color:#9ab6ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subsection,la-akoma-ntoso.show-structure-hier .akn-subsection{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aa8ef}la-akoma-ntoso.show-structure .akn-subsection::before,la-akoma-ntoso.show-structure-hier .akn-subsection::before{content:"subsection";position:absolute;top:0px;left:0px;color:white;background-color:#9aa8ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-subtitle,la-akoma-ntoso.show-structure-hier .akn-subtitle{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9a9aef}la-akoma-ntoso.show-structure .akn-subtitle::before,la-akoma-ntoso.show-structure-hier .akn-subtitle::before{content:"subtitle";position:absolute;top:0px;left:0px;color:white;background-color:#9a9aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-title,la-akoma-ntoso.show-structure-hier .akn-title{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #a89aef}la-akoma-ntoso.show-structure .akn-title::before,la-akoma-ntoso.show-structure-hier .akn-title::before{content:"title";position:absolute;top:0px;left:0px;color:white;background-color:#a89aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-tome,la-akoma-ntoso.show-structure-hier .akn-tome{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #b69aef}la-akoma-ntoso.show-structure .akn-tome::before,la-akoma-ntoso.show-structure-hier .akn-tome::before{content:"tome";position:absolute;top:0px;left:0px;color:white;background-color:#b69aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-transitional,la-akoma-ntoso.show-structure-hier .akn-transitional{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #c59aef}la-akoma-ntoso.show-structure .akn-transitional::before,la-akoma-ntoso.show-structure-hier .akn-transitional::before{content:"transitional";position:absolute;top:0px;left:0px;color:white;background-color:#c59aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-address,la-akoma-ntoso.show-structure-hier .akn-address{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #d39aef}la-akoma-ntoso.show-structure .akn-address::before,la-akoma-ntoso.show-structure-hier .akn-address::before{content:"address";position:absolute;top:0px;left:0px;color:white;background-color:#d39aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-adjournment,la-akoma-ntoso.show-structure-hier .akn-adjournment{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #e19aef}la-akoma-ntoso.show-structure .akn-adjournment::before,la-akoma-ntoso.show-structure-hier .akn-adjournment::before{content:"adjournment";position:absolute;top:0px;left:0px;color:white;background-color:#e19aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-administrationOfOath,la-akoma-ntoso.show-structure-hier .akn-administrationOfOath{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9aef}la-akoma-ntoso.show-structure .akn-administrationOfOath::before,la-akoma-ntoso.show-structure-hier .akn-administrationOfOath::before{content:"administrationOfOath";position:absolute;top:0px;left:0px;color:white;background-color:#ef9aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-answer,la-akoma-ntoso.show-structure-hier .akn-answer{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9ae1}la-akoma-ntoso.show-structure .akn-answer::before,la-akoma-ntoso.show-structure-hier .akn-answer::before{content:"answer";position:absolute;top:0px;left:0px;color:white;background-color:#ef9ae1;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-communication,la-akoma-ntoso.show-structure-hier .akn-communication{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9ad3}la-akoma-ntoso.show-structure .akn-communication::before,la-akoma-ntoso.show-structure-hier .akn-communication::before{content:"communication";position:absolute;top:0px;left:0px;color:white;background-color:#ef9ad3;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-debateSection,la-akoma-ntoso.show-structure-hier .akn-debateSection{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9ac5}la-akoma-ntoso.show-structure .akn-debateSection::before,la-akoma-ntoso.show-structure-hier .akn-debateSection::before{content:"debateSection";position:absolute;top:0px;left:0px;color:white;background-color:#ef9ac5;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-declarationOfVote,la-akoma-ntoso.show-structure-hier .akn-declarationOfVote{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9ab6}la-akoma-ntoso.show-structure .akn-declarationOfVote::before,la-akoma-ntoso.show-structure-hier .akn-declarationOfVote::before{content:"declarationOfVote";position:absolute;top:0px;left:0px;color:white;background-color:#ef9ab6;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-ministerialStatements,la-akoma-ntoso.show-structure-hier .akn-ministerialStatements{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9aa8}la-akoma-ntoso.show-structure .akn-ministerialStatements::before,la-akoma-ntoso.show-structure-hier .akn-ministerialStatements::before{content:"ministerialStatements";position:absolute;top:0px;left:0px;color:white;background-color:#ef9aa8;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-nationalInterest,la-akoma-ntoso.show-structure-hier .akn-nationalInterest{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ef9a9a}la-akoma-ntoso.show-structure .akn-nationalInterest::before,la-akoma-ntoso.show-structure-hier .akn-nationalInterest::before{content:"nationalInterest";position:absolute;top:0px;left:0px;color:white;background-color:#ef9a9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-noticesOfMotion,la-akoma-ntoso.show-structure-hier .akn-noticesOfMotion{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efa89a}la-akoma-ntoso.show-structure .akn-noticesOfMotion::before,la-akoma-ntoso.show-structure-hier .akn-noticesOfMotion::before{content:"noticesOfMotion";position:absolute;top:0px;left:0px;color:white;background-color:#efa89a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-oralStatements,la-akoma-ntoso.show-structure-hier .akn-oralStatements{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efb69a}la-akoma-ntoso.show-structure .akn-oralStatements::before,la-akoma-ntoso.show-structure-hier .akn-oralStatements::before{content:"oralStatements";position:absolute;top:0px;left:0px;color:black;background-color:#efb69a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-papers,la-akoma-ntoso.show-structure-hier .akn-papers{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efc59a}la-akoma-ntoso.show-structure .akn-papers::before,la-akoma-ntoso.show-structure-hier .akn-papers::before{content:"papers";position:absolute;top:0px;left:0px;color:black;background-color:#efc59a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-personalStatements,la-akoma-ntoso.show-structure-hier .akn-personalStatements{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efd39a}la-akoma-ntoso.show-structure .akn-personalStatements::before,la-akoma-ntoso.show-structure-hier .akn-personalStatements::before{content:"personalStatements";position:absolute;top:0px;left:0px;color:black;background-color:#efd39a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-petitions,la-akoma-ntoso.show-structure-hier .akn-petitions{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efe19a}la-akoma-ntoso.show-structure .akn-petitions::before,la-akoma-ntoso.show-structure-hier .akn-petitions::before{content:"petitions";position:absolute;top:0px;left:0px;color:black;background-color:#efe19a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-pointOfOrder,la-akoma-ntoso.show-structure-hier .akn-pointOfOrder{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efef9a}la-akoma-ntoso.show-structure .akn-pointOfOrder::before,la-akoma-ntoso.show-structure-hier .akn-pointOfOrder::before{content:"pointOfOrder";position:absolute;top:0px;left:0px;color:black;background-color:#efef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-prayers,la-akoma-ntoso.show-structure-hier .akn-prayers{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #e1ef9a}la-akoma-ntoso.show-structure .akn-prayers::before,la-akoma-ntoso.show-structure-hier .akn-prayers::before{content:"prayers";position:absolute;top:0px;left:0px;color:black;background-color:#e1ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-proceduralMotions,la-akoma-ntoso.show-structure-hier .akn-proceduralMotions{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #d3ef9a}la-akoma-ntoso.show-structure .akn-proceduralMotions::before,la-akoma-ntoso.show-structure-hier .akn-proceduralMotions::before{content:"proceduralMotions";position:absolute;top:0px;left:0px;color:black;background-color:#d3ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-question,la-akoma-ntoso.show-structure-hier .akn-question{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #c5ef9a}la-akoma-ntoso.show-structure .akn-question::before,la-akoma-ntoso.show-structure-hier .akn-question::before{content:"question";position:absolute;top:0px;left:0px;color:black;background-color:#c5ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-questions,la-akoma-ntoso.show-structure-hier .akn-questions{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #b6ef9a}la-akoma-ntoso.show-structure .akn-questions::before,la-akoma-ntoso.show-structure-hier .akn-questions::before{content:"questions";position:absolute;top:0px;left:0px;color:black;background-color:#b6ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-resolutions,la-akoma-ntoso.show-structure-hier .akn-resolutions{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #a8ef9a}la-akoma-ntoso.show-structure .akn-resolutions::before,la-akoma-ntoso.show-structure-hier .akn-resolutions::before{content:"resolutions";position:absolute;top:0px;left:0px;color:black;background-color:#a8ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-rollCall,la-akoma-ntoso.show-structure-hier .akn-rollCall{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aef9a}la-akoma-ntoso.show-structure .akn-rollCall::before,la-akoma-ntoso.show-structure-hier .akn-rollCall::before{content:"rollCall";position:absolute;top:0px;left:0px;color:black;background-color:#9aef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-speech,la-akoma-ntoso.show-structure-hier .akn-speech{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefa8}la-akoma-ntoso.show-structure .akn-speech::before,la-akoma-ntoso.show-structure-hier .akn-speech::before{content:"speech";position:absolute;top:0px;left:0px;color:black;background-color:#9aefa8;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-speechGroup,la-akoma-ntoso.show-structure-hier .akn-speechGroup{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefb6}la-akoma-ntoso.show-structure .akn-speechGroup::before,la-akoma-ntoso.show-structure-hier .akn-speechGroup::before{content:"speechGroup";position:absolute;top:0px;left:0px;color:black;background-color:#9aefb6;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-writtenStatements,la-akoma-ntoso.show-structure-hier .akn-writtenStatements{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefc5}la-akoma-ntoso.show-structure .akn-writtenStatements::before,la-akoma-ntoso.show-structure-hier .akn-writtenStatements::before{content:"writtenStatements";position:absolute;top:0px;left:0px;color:black;background-color:#9aefc5;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-crossHeading,la-akoma-ntoso.show-structure-hier .akn-crossHeading{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefd3}la-akoma-ntoso.show-structure .akn-crossHeading::before,la-akoma-ntoso.show-structure-hier .akn-crossHeading::before{content:"crossHeading";position:absolute;top:0px;left:0px;color:black;background-color:#9aefd3;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-hcontainer:not([data-name=hcontainer])::before,la-akoma-ntoso.show-structure-hier .akn-hcontainer:not([data-name=hcontainer])::before{content:"HCONTAINER - " attr(data-name) !important}la-akoma-ntoso.show-structure .akn-subsection:not(.akn--no-indent),la-akoma-ntoso.show-structure .akn-paragraph:not(.akn--no-indent),la-akoma-ntoso.show-structure .akn-subparagraph:not(.akn--no-indent),la-akoma-ntoso.show-structure .akn-blockList>.akn-item:not(.akn--no-indent),la-akoma-ntoso.show-structure-hier .akn-subsection:not(.akn--no-indent),la-akoma-ntoso.show-structure-hier .akn-paragraph:not(.akn--no-indent),la-akoma-ntoso.show-structure-hier .akn-subparagraph:not(.akn--no-indent),la-akoma-ntoso.show-structure-hier .akn-blockList>.akn-item:not(.akn--no-indent){padding-left:calc(3em + 3px)}la-akoma-ntoso.show-structure .akn-blockContainer,la-akoma-ntoso.show-structure-block .akn-blockContainer{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efe89a}la-akoma-ntoso.show-structure .akn-blockContainer::before,la-akoma-ntoso.show-structure-block .akn-blockContainer::before{position:absolute;top:0px;left:0px;color:black;background-color:#efe89a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-block,la-akoma-ntoso.show-structure-block .akn-block{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #e8ef9a}la-akoma-ntoso.show-structure .akn-block::before,la-akoma-ntoso.show-structure-block .akn-block::before{position:absolute;top:0px;left:0px;color:black;background-color:#e8ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-blockList,la-akoma-ntoso.show-structure-block .akn-blockList{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #daef9a}la-akoma-ntoso.show-structure .akn-blockList::before,la-akoma-ntoso.show-structure-block .akn-blockList::before{content:"items";position:absolute;top:0px;left:0px;color:black;background-color:#daef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-conclusions,la-akoma-ntoso.show-structure-block .akn-conclusions{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ccef9a}la-akoma-ntoso.show-structure .akn-conclusions::before,la-akoma-ntoso.show-structure-block .akn-conclusions::before{position:absolute;top:0px;left:0px;color:black;background-color:#ccef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-coverPage,la-akoma-ntoso.show-structure-block .akn-coverPage{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #bdef9a}la-akoma-ntoso.show-structure .akn-coverPage::before,la-akoma-ntoso.show-structure-block .akn-coverPage::before{position:absolute;top:0px;left:0px;color:black;background-color:#bdef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-foreign,la-akoma-ntoso.show-structure-block .akn-foreign{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #afef9a}la-akoma-ntoso.show-structure .akn-foreign::before,la-akoma-ntoso.show-structure-block .akn-foreign::before{position:absolute;top:0px;left:0px;color:black;background-color:#afef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-intro,la-akoma-ntoso.show-structure-block .akn-intro{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #a1ef9a}la-akoma-ntoso.show-structure .akn-intro::before,la-akoma-ntoso.show-structure-block .akn-intro::before{content:"intro";position:absolute;top:0px;left:0px;color:black;background-color:#a1ef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-item,la-akoma-ntoso.show-structure-block .akn-item{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefa1}la-akoma-ntoso.show-structure .akn-item::before,la-akoma-ntoso.show-structure-block .akn-item::before{content:"item";position:absolute;top:0px;left:0px;color:black;background-color:#9aefa1;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-listIntroduction,la-akoma-ntoso.show-structure-block .akn-listIntroduction{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefaf}la-akoma-ntoso.show-structure .akn-listIntroduction::before,la-akoma-ntoso.show-structure-block .akn-listIntroduction::before{content:"listIntro";position:absolute;top:0px;left:0px;color:black;background-color:#9aefaf;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-listWrapUp,la-akoma-ntoso.show-structure-block .akn-listWrapUp{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefbd}la-akoma-ntoso.show-structure .akn-listWrapUp::before,la-akoma-ntoso.show-structure-block .akn-listWrapUp::before{content:"listWrapUp";position:absolute;top:0px;left:0px;color:black;background-color:#9aefbd;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-ol,la-akoma-ntoso.show-structure-block .akn-ol{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefcc}la-akoma-ntoso.show-structure .akn-ol::before,la-akoma-ntoso.show-structure-block .akn-ol::before{position:absolute;top:0px;left:0px;color:black;background-color:#9aefcc;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-preamble,la-akoma-ntoso.show-structure-block .akn-preamble{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aefe8}la-akoma-ntoso.show-structure .akn-preamble::before,la-akoma-ntoso.show-structure-block .akn-preamble::before{content:"preamble";position:absolute;top:0px;left:0px;color:black;background-color:#9aefe8;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-preface,la-akoma-ntoso.show-structure-block .akn-preface{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9ae8ef}la-akoma-ntoso.show-structure .akn-preface::before,la-akoma-ntoso.show-structure-block .akn-preface::before{content:"preface";position:absolute;top:0px;left:0px;color:black;background-color:#9ae8ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-tblock,la-akoma-ntoso.show-structure-block .akn-tblock{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9adaef}la-akoma-ntoso.show-structure .akn-tblock::before,la-akoma-ntoso.show-structure-block .akn-tblock::before{position:absolute;top:0px;left:0px;color:black;background-color:#9adaef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-toc,la-akoma-ntoso.show-structure-block .akn-toc{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9accef}la-akoma-ntoso.show-structure .akn-toc::before,la-akoma-ntoso.show-structure-block .akn-toc::before{position:absolute;top:0px;left:0px;color:black;background-color:#9accef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-ul,la-akoma-ntoso.show-structure-block .akn-ul{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9abdef}la-akoma-ntoso.show-structure .akn-ul::before,la-akoma-ntoso.show-structure-block .akn-ul::before{content:"bullets";position:absolute;top:0px;left:0px;color:white;background-color:#9abdef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-wrapUp,la-akoma-ntoso.show-structure-block .akn-wrapUp{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aafef}la-akoma-ntoso.show-structure .akn-wrapUp::before,la-akoma-ntoso.show-structure-block .akn-wrapUp::before{content:"wrapUp";position:absolute;top:0px;left:0px;color:white;background-color:#9aafef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-from,la-akoma-ntoso.show-structure-block .akn-from{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #9aa1ef}la-akoma-ntoso.show-structure .akn-from::before,la-akoma-ntoso.show-structure-block .akn-from::before{content:"from";position:absolute;top:0px;left:0px;color:white;background-color:#9aa1ef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-narrative,la-akoma-ntoso.show-structure-block .akn-narrative{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #a19aef}la-akoma-ntoso.show-structure .akn-narrative::before,la-akoma-ntoso.show-structure-block .akn-narrative::before{content:"narrative";position:absolute;top:0px;left:0px;color:white;background-color:#a19aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-scene,la-akoma-ntoso.show-structure-block .akn-scene{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #af9aef}la-akoma-ntoso.show-structure .akn-scene::before,la-akoma-ntoso.show-structure-block .akn-scene::before{content:"scene";position:absolute;top:0px;left:0px;color:white;background-color:#af9aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-summary,la-akoma-ntoso.show-structure-block .akn-summary{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #bd9aef}la-akoma-ntoso.show-structure .akn-summary::before,la-akoma-ntoso.show-structure-block .akn-summary::before{content:"summary";position:absolute;top:0px;left:0px;color:white;background-color:#bd9aef;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn--table-container,la-akoma-ntoso.show-structure-block .akn--table-container{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efe89a}la-akoma-ntoso.show-structure .akn--table-container::before,la-akoma-ntoso.show-structure-block .akn--table-container::before{content:"table";position:absolute;top:0px;left:0px;color:black;background-color:#efe89a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-abbr,la-akoma-ntoso.show-structure-inline .akn-abbr{background-color:rgba(175, 239, 154, 0.4);position:relative}la-akoma-ntoso.show-structure .akn-abbr:hover::before,la-akoma-ntoso.show-structure-inline .akn-abbr:hover::before{content:"abbr";color:black;background-color:#afef9a;position:absolute;top:-1.4em;left:0px;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase;white-space:nowrap}la-akoma-ntoso.show-structure .akn-remark,la-akoma-ntoso.show-structure-inline .akn-remark{background-color:rgba(161, 239, 154, 0.4);position:relative}la-akoma-ntoso.show-structure .akn-remark:hover::before,la-akoma-ntoso.show-structure-inline .akn-remark:hover::before{content:"remark";color:black;background-color:#a1ef9a;position:absolute;top:-1.4em;left:0px;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase;white-space:nowrap}la-akoma-ntoso.show-structure .akn-abbr:hover::before,la-akoma-ntoso.show-structure-inline .akn-abbr:hover::before{content:"ABBR - " attr(title);text-transform:none}la-akoma-ntoso.show-structure .akn-authorialNote,la-akoma-ntoso.show-structure-subflow .akn-authorialNote{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efbd9a}la-akoma-ntoso.show-structure .akn-authorialNote::before,la-akoma-ntoso.show-structure-subflow .akn-authorialNote::before{content:"footnote";position:absolute;top:0px;left:0px;color:black;background-color:#efbd9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-embeddedStructure,la-akoma-ntoso.show-structure-subflow .akn-embeddedStructure{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #ccef9a}la-akoma-ntoso.show-structure .akn-embeddedStructure::before,la-akoma-ntoso.show-structure-subflow .akn-embeddedStructure::before{content:"quote";position:absolute;top:0px;left:0px;color:black;background-color:#ccef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-attachment,la-akoma-ntoso.show-structure-doc-container .akn-attachment{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #efcc9a}la-akoma-ntoso.show-structure .akn-attachment::before,la-akoma-ntoso.show-structure-doc-container .akn-attachment::before{content:"attachment";position:absolute;top:0px;left:0px;color:black;background-color:#efcc9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}la-akoma-ntoso.show-structure .akn-component,la-akoma-ntoso.show-structure-doc-container .akn-component{position:relative;padding-top:1.2em;padding-left:3px;border-left:2px solid #bdef9a}la-akoma-ntoso.show-structure .akn-component::before,la-akoma-ntoso.show-structure-doc-container .akn-component::before{content:"component";position:absolute;top:0px;left:0px;color:black;background-color:#bdef9a;border-top-right-radius:5px;padding:0px 4px;font-family:sans-serif;font-weight:normal;font-style:normal;font-size:11px;text-transform:uppercase}'}},[0,"la-akoma-ntoso",{frbrExpressionUri:[1537,"frbr-expression-uri"],frbrCountry:[1537,"frbr-country"],frbrType:[1537,"frbr-type"],frbrSubtype:[1537,"frbr-subtype"],frbrAuthor:[1537,"frbr-author"],frbrDate:[1537,"frbr-date"],frbrNumber:[1537,"frbr-number"],frbrExpressionDate:[1537,"frbr-expression-date"],frbrLanguage:[1537,"frbr-language"],fetch:[1540],partner:[1537],provider:[1]},void 0,{provider:["refetch"],fetch:["refetch"],frbrExpressionUri:["parseFrbrExpressionUri"]}]);"undefined"!=typeof customElements&&["la-akoma-ntoso"].forEach((e=>{"la-akoma-ntoso"===e&&(customElements.get(e)||customElements.define(e,Ku))}));var Qu="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==__webpack_require__.g?__webpack_require__.g:"undefined"!=typeof self?self:{},ed=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},td="object"==typeof Qu&&Qu&&Qu.Object===Object&&Qu,nd="object"==typeof self&&self&&self.Object===Object&&self,rd=td||nd||Function("return this")(),od=rd,ad=/\s/,id=/^\s+/,sd=rd.Symbol,ld=sd,cd=Object.prototype,ud=cd.hasOwnProperty,dd=cd.toString,pd=ld?ld.toStringTag:void 0,hd=Object.prototype.toString,fd=function(e){var t=ud.call(e,pd),n=e[pd];try{e[pd]=void 0;var r=!0}catch(e){}var o=dd.call(e);return r&&(t?e[pd]=n:delete e[pd]),o},md=sd?sd.toStringTag:void 0,gd=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":md&&md in Object(e)?fd(e):function(e){return hd.call(e)}(e)},bd=function(e){return e?e.slice(0,function(e){for(var t=e.length;t--&&ad.test(e.charAt(t)););return t}(e)+1).replace(id,""):e},vd=ed,yd=/^[-+]0x[0-9a-f]+$/i,_d=/^0b[01]+$/i,kd=/^0o[0-7]+$/i,xd=parseInt,wd=ed,Sd=function(){return od.Date.now()},Ad=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return null!=e&&"object"==typeof e}(e)&&"[object Symbol]"==gd(e)}(e))return NaN;if(vd(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=vd(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=bd(e);var n=_d.test(e);return n||kd.test(e)?xd(e.slice(2),n?2:8):yd.test(e)?NaN:+e},Cd=Math.max,Ed=Math.min,Td=function(e,t,n){var r,o,a,i,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var n=r,a=o;return r=o=void 0,c=t,i=e.apply(a,n)}function f(e){return c=e,s=setTimeout(g,t),u?h(e):i}function m(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=a}function g(){var e=Sd();if(m(e))return b(e);s=setTimeout(g,function(e){var n=t-(e-l);return d?Ed(n,a-(e-c)):n}(e))}function b(e){return s=void 0,p&&r?h(e):(r=o=void 0,i)}function v(){var e=Sd(),n=m(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return f(l);if(d)return clearTimeout(s),s=setTimeout(g,t),h(l)}return void 0===s&&(s=setTimeout(g,t)),i}return t=Ad(t)||0,wd(n)&&(u=!!n.leading,a=(d="maxWait"in n)?Cd(Ad(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},v.flush=function(){return void 0===s?i:b(Sd())},v};class Od{constructor(e,t,n){this.component=e,this.selector=t,this.callback=n,this.target=this.findElement(),this.target&&window.MutationObserver?(this.observer=new MutationObserver((()=>{this.targetDomChanged()})),this.observer.observe(this.target,{childList:!0})):this.observer=null}getElement(){return this.target}findElement(){if(this.selector)try{return this.selector instanceof HTMLElement?this.selector:this.component.ownerDocument.querySelector(this.selector)}catch(e){return console.log(e),null}let e=this.component.closest("la-akoma-ntoso");return e||(e=this.component.ownerDocument.querySelector("la-akoma-ntoso")),e}targetDomChanged(){this.callback&&this.callback()}}class Pd{constructor(e){this.root=e,this.buffer=10,this.tops=new WeakMap,this.anchors=new WeakMap}layout(e){this.updateAnchorsAndItems(e),this.updateTops(e);const t=(e=this.sortItems(e)).find((e=>e.active));if(t){const n=e.indexOf(t);if(n>-1){const r=this.anchors.get(t);if(r){const o=this.tops.get(r);if(o)return t.style.top=`${o}px`,this.layoutUpwards(e,n-1,o-this.buffer),void this.layoutDownwards(e,n+1,o+t.clientHeight+this.buffer)}}}this.layoutDownwards(e,0,0)}sortItems(e){return[...e].sort(this.compareItems.bind(this))}compareItems(e,t){const n=this.anchors.get(e),r=this.anchors.get(t);if(n){if(r){const e=this.tops.get(n),t=this.tops.get(r);return e?t?e-t:1:-1}return 1}return-1}layoutUpwards(e,t,n){for(let r=t;r>=0;r--){const t=e[r],o=this.anchors.get(t);if(o){let e=this.tops.get(o);e&&(e+t.clientHeight>=n&&(e=n-t.clientHeight),t.style.top=`${e}px`,n=e-this.buffer)}}}layoutDownwards(e,t,n){for(let r=t;r{e.active=!1}))}setOtherItemsInactive(e){Array.from(this.items()).forEach((t=>{t!=e&&(t.active=!1)}))}setupLayout(){this.akomaNtosoElement&&(this.layout=new Pd(this.akomaNtosoElement),window.ResizeObserver&&(this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=new ResizeObserver(this.queueLayout),this.resizeObserver.observe(this.akomaNtosoElement)))}async layoutItems(){this.layout&&(this.layout.layout([...this.items()]),this.layoutComplete.emit())}async activateNextItem(){const e=this.layout?this.layout.sortItems(this.getVisibleItems()):[];if(1===e.length)return e[0].active=!0,e[0];if(e.length>1){const t=e.findIndex((e=>e.active)),n=-1===t||t===e.length-1?e[0]:e[t+1];return n.active=!0,n}return null}async activatePrevItem(){const e=this.layout?this.layout.sortItems(this.getVisibleItems()):[];if(1===e.length)return e[0].active=!0,e[0];if(e.length>1){const t=e.findIndex((e=>e.active)),n=-1===t||0===t?e[e.length-1]:e[t-1];return n.active=!0,n}return null}items(){return this.el.querySelectorAll("la-gutter-item")}getVisibleItems(){return[...this.items()].filter((e=>"none"!==e.style.display))}get el(){return this}static get style(){return".la-akoma-ntoso-with-gutter{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.la-akoma-ntoso-with-gutter>la-akoma-ntoso{-ms-flex:80%;flex:80%;max-width:80%;position:relative;padding-right:0.5rem}.la-akoma-ntoso-with-gutter>la-gutter{-ms-flex:20%;flex:20%;max-width:20%;position:relative;overflow-y:hidden;background-color:rgba(0, 0, 0, 0.05);padding-left:0.5rem;padding-right:0.5rem}la-gutter>la-gutter-item{position:absolute;left:1rem;width:calc(100% - 1.5rem);-webkit-transition:top ease-out 100ms, left ease-out 100ms;transition:top ease-out 100ms, left ease-out 100ms;z-index:2}la-gutter>la-gutter-item[active]{left:0.5rem;z-index:3}"}},[0,"la-gutter",{akomaNtoso:[1,"akoma-ntoso"],layoutItems:[64],activateNextItem:[64],activatePrevItem:[64]},[[0,"laItemChanged","itemChanged"],[0,"click","clicked"]]]);"undefined"!=typeof customElements&&["la-gutter"].forEach((e=>{"la-gutter"===e&&(customElements.get(e)||customElements.define(e,Dd))}));const Rd=Wu(class extends Fc{constructor(){super(),this.__registerHost(),this.laItemChanged=iu(this,"laItemChanged",7),this.anchor=void 0,this.active=!1}activeChanged(){this.laItemChanged.emit()}anchorChanged(){this.laItemChanged.emit()}onClick(){this.active=!0}static get watchers(){return{active:["activeChanged"],anchor:["anchorChanged"]}}static get style(){return"la-gutter-item{display:block}"}},[0,"la-gutter-item",{anchor:[1],active:[1540]},[[0,"click","onClick"]],{active:["activeChanged"],anchor:["anchorChanged"]}]);"undefined"!=typeof customElements&&["la-gutter-item"].forEach((e=>{"la-gutter-item"===e&&(customElements.get(e)||customElements.define(e,Rd))}));const Ld=Wu(class extends Fc{constructor(){super(),this.__registerHost(),this.itemRendered=iu(this,"itemRendered",7),this.itemTitleClicked=iu(this,"itemTitleClicked",7),this.onItemTitleClick=e=>{this.itemTitleClicked.emit(e)},this.item={},this.filteredItems=null,this.prependHtml="",this.appendHtml="",this.expandIconHtml="",this.collapseIconHtml="",this.expanded=!0}toggle(){this.expanded=!this.expanded}componentDidRender(){this.itemRendered.emit()}render(){var e;const t=!!(null===(e=this.item.children)||void 0===e?void 0:e.length),n=!this.filteredItems||this.filteredItems.has(this.item),r=this.item.href||`#${this.item.id||""}`;return ru(au,Object.assign({},t?{parent:t}:{},{class:n?"":"excluded"}),ru("div",{class:"indented"},t?ru("div",{class:"indented__toggle-btn",role:"button",onClick:()=>this.toggle()},(()=>this.expanded?this.collapseIconHtml?ru("span",{innerHTML:this.collapseIconHtml}):ru("span",null,"▼"):this.expandIconHtml?ru("span",{innerHTML:this.expandIconHtml}):ru("span",null,"►"))()):null),ru("div",{class:"content"},ru("div",{class:"content__action"},this.prependHtml?ru("div",{class:"content__action__prepend",innerHTML:this.prependHtml}):null,ru("a",{href:r,class:"content__action__title",onClick:this.onItemTitleClick},this.item.title),this.appendHtml?ru("div",{class:"content__action__append",innerHTML:this.appendHtml}):null),ru("div",{class:"content__children"},ru("slot",null))))}static get style(){return"la-toc-item{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%}la-toc-item *{-webkit-box-sizing:border-box;box-sizing:border-box}la-toc-item .indented{width:1.4em;height:1.4em}la-toc-item .content{-ms-flex:1;flex:1}la-toc-item .content__action{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}la-toc-item .content__action__title{-ms-flex-positive:1;flex-grow:1}la-toc-item .content__children{display:none}la-toc-item[expanded]>.content>.content__children{display:inherit}la-toc-item.excluded{display:none}la-toc-item .indented__toggle-btn{cursor:pointer;display:inline-block;font-size:smaller;text-align:center;padding:1px 6px}"}},[4,"la-toc-item",{item:[16],filteredItems:[16],prependHtml:[1,"prepend-html"],appendHtml:[1,"append-html"],expandIconHtml:[1,"expand-icon-html"],collapseIconHtml:[1,"collapse-icon-html"],expanded:[1540]}]);function Id(){"undefined"!=typeof customElements&&["la-toc-item"].forEach((e=>{"la-toc-item"===e&&(customElements.get(e)||customElements.define(e,Ld))}))}Id();const Md=Wu(class extends Fc{constructor(){super(),this.__registerHost(),this.expandIconHtml="",this.collapseIconHtml="",this.items=[],this.titleFilter="",this.expanded=!0,this.frbrExpressionUri=void 0,this.fetch=!1,this.partner=void 0,this.provider=Zu,this.filteredItems=null,this.innerItems=[]}parseItemsProp(e){"string"==typeof e?this.innerItems=JSON.parse(e):Array.isArray(e)&&(this.innerItems=[...e])}refetch(){this.fetchContent()}async fetchContent(){if(this.ensurePartner(),this.fetch&&this.frbrExpressionUri&&this.provider){const e=this.provider+"/p/"+this.partner+"/e/we/toc.json"+this.frbrExpressionUri;try{const t=await fetch(e);t.ok&&(this.innerItems=(await t.json()).toc)}catch(e){}}}ensurePartner(){this.partner||(this.partner=Ju())}getSlotHTML(e){var t;const n=this.el.querySelector(e);return(null==n?void 0:n.querySelector(e))?(null===(t=n.querySelector(e))||void 0===t?void 0:t.innerHTML)||"":(null==n?void 0:n.innerHTML)||""}componentWillLoad(){this.expandIconHtml=this.getSlotHTML("[slot='expand-icon']"),this.collapseIconHtml=this.getSlotHTML("[slot='collapse-icon']"),this.parseItemsProp(this.items),this.titleFilterChanged(this.titleFilter),this.fetchContent()}async expandAll(){Array.from(this.el.querySelectorAll("la-toc-item")).forEach((e=>{e.expanded=!0}))}async collapseAll(){Array.from(this.el.querySelectorAll("la-toc-item")).forEach((e=>{e.expanded=!1}))}titleFilterChanged(e){if(e){const t=e.toLocaleLowerCase().trim(),n=new Set;function r(e){for(const t of e.children||[])n.add(t),r(t)}function o(e){var a;let i=((null===(a=e.title)||void 0===a?void 0:a.toLocaleLowerCase())||"").includes(t);if(i)r(e);else if(e.children)for(const t of e.children)i=o(t)||i;return i&&n.add(e),i}for(const a of this.innerItems)o(a);this.filteredItems=n}else this.filteredItems=null;this.expandAll()}renderItem(e){const t=(e.children||[]).map((e=>this.renderItem(e))),n=void 0===e.expanded?this.expanded:e.expanded;return ru("la-toc-item",{item:e,filteredItems:this.filteredItems,expandIconHtml:this.expandIconHtml,collapseIconHtml:this.collapseIconHtml,expanded:n},t)}render(){return ru(au,{key:"f8b5eaf0e2c359af4eea3b7d6ab3fcad94f393bb"},ru("div",{key:"ddca6abce36c9be705a172c12e833a6f9d088b89",style:{display:"none"}},ru("slot",{key:"6f55f20f2cb614bb7a7519c44a71f2f94ff60b14",name:"expand-icon"}),ru("slot",{key:"9bc755de6658047c64c1c3f5e42a4b6342a883f8",name:"collapse-icon"})),this.innerItems.map((e=>this.renderItem(e))))}get el(){return this}static get watchers(){return{items:["parseItemsProp"],provider:["refetch"],frbrExpressionUri:["refetch"],fetch:["refetch"],titleFilter:["titleFilterChanged"]}}},[4,"la-table-of-contents",{items:[1],titleFilter:[1,"title-filter"],expanded:[4],frbrExpressionUri:[1537,"frbr-expression-uri"],fetch:[1540],partner:[1537],provider:[1],filteredItems:[32],innerItems:[32],expandAll:[64],collapseAll:[64]},void 0,{items:["parseItemsProp"],provider:["refetch"],frbrExpressionUri:["refetch"],fetch:["refetch"],titleFilter:["titleFilterChanged"]}]);function Fd(){"undefined"!=typeof customElements&&["la-table-of-contents","la-toc-item"].forEach((e=>{switch(e){case"la-table-of-contents":customElements.get(e)||customElements.define(e,Md);break;case"la-toc-item":customElements.get(e)||Id()}}))}Fd();const Nd=Wu(class extends Fc{constructor(){super(),this.__registerHost(),this.handleTitleChange=Td((e=>{this.titleFilter=e.target.value}),300),this.items=[],this.titleFilterPlaceholder="Search the table of contents",this.hideClearTitleFilterButton=!1,this.titleFilterClearBtnClasses="",this.expandAllBtnClasses="",this.collapseAllBtnClasses="",this.expandAllBtnText="Expand all",this.collapseAllBtnText="Collapse all",this.expanded=!0,this.titleFilterInputClasses="",this.frbrExpressionUri=void 0,this.fetch=!1,this.partner=void 0,this.provider=Zu,this.titleFilter=""}clearTitleFilter(){this.titleFilter=""}async expandAll(){const e=this.el.querySelector("la-table-of-contents");null==e||e.expandAll()}async collapseAll(){const e=this.el.querySelector("la-table-of-contents");null==e||e.collapseAll()}render(){return ru(au,null,ru("div",{class:"search"},ru("input",{class:`search__input ${this.titleFilterInputClasses}`,value:this.titleFilter,placeholder:this.titleFilterPlaceholder,onInput:e=>this.handleTitleChange(e)}),(()=>this.hideClearTitleFilterButton?null:ru("button",{class:`search__clear-btn ${this.titleFilterClearBtnClasses}`,type:"button",onClick:()=>this.clearTitleFilter(),disabled:!this.titleFilter},ru("slot",{name:"clear-title-filter-icon"},"✕")))()),ru("div",{class:"toggle"},ru("button",{type:"button",class:`toggle__expand-all-btn ${this.expandAllBtnClasses}`,onClick:()=>this.expandAll()},this.expandAllBtnText),ru("button",{type:"button",class:`toggle__collapse-all-btn ${this.collapseAllBtnClasses}`,onClick:()=>this.collapseAll()},this.collapseAllBtnText)),ru("la-table-of-contents",{items:this.items,titleFilter:this.titleFilter,fetch:this.fetch,provider:this.provider,partner:this.partner,"frbr-expression-uri":this.frbrExpressionUri,expanded:this.expanded},ru("span",{slot:"expand-icon"},ru("slot",{name:"expand-icon"})),ru("span",{slot:"collapse-icon"},ru("slot",{name:"collapse-icon"}))))}get el(){return this}static get style(){return"la-table-of-contents-controller *{-webkit-box-sizing:border-box;box-sizing:border-box}la-table-of-contents-controller .search{width:100%;margin-bottom:5px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;position:relative}la-table-of-contents-controller .search__input{-ms-flex:1;flex:1}la-table-of-contents-controller .search__clear-btn{position:absolute;top:0;right:0;height:100%}la-table-of-contents-controller .toggle{margin-bottom:5px}la-table-of-contents-controller .toggle__expand-all-btn{margin-right:5px}"}},[4,"la-table-of-contents-controller",{items:[1],titleFilterPlaceholder:[1,"title-filter-placeholder"],hideClearTitleFilterButton:[4,"hide-clear-title-filter-button"],titleFilterClearBtnClasses:[1,"title-filter-clear-btn-classes"],expandAllBtnClasses:[1,"expand-all-btn-classes"],collapseAllBtnClasses:[1,"collapse-all-btn-classes"],expandAllBtnText:[1,"expand-all-btn-text"],collapseAllBtnText:[1,"collapse-all-btn-text"],expanded:[4],titleFilterInputClasses:[1,"title-filter-input-classes"],frbrExpressionUri:[1537,"frbr-expression-uri"],fetch:[1540],partner:[1537],provider:[1],titleFilter:[32]}]);"undefined"!=typeof customElements&&["la-table-of-contents-controller","la-table-of-contents","la-toc-item"].forEach((e=>{switch(e){case"la-table-of-contents-controller":customElements.get(e)||customElements.define(e,Nd);break;case"la-table-of-contents":customElements.get(e)||Fd();break;case"la-toc-item":customElements.get(e)||Id()}}));var jd="top",$d="bottom",Hd="right",qd="left",Ud="auto",Bd=[jd,$d,Hd,qd],Vd="start",zd="end",Wd="viewport",Gd="popper",Yd=Bd.reduce((function(e,t){return e.concat([t+"-"+Vd,t+"-"+zd])}),[]),Xd=[].concat(Bd,[Ud]).reduce((function(e,t){return e.concat([t,t+"-"+Vd,t+"-"+zd])}),[]),Jd=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Zd(e){return e?(e.nodeName||"").toLowerCase():null}function Kd(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Qd(e){return e instanceof Kd(e).Element||e instanceof Element}function ep(e){return e instanceof Kd(e).HTMLElement||e instanceof HTMLElement}function tp(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Kd(e).ShadowRoot||e instanceof ShadowRoot)}const np={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];ep(o)&&Zd(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});ep(r)&&Zd(r)&&(Object.assign(r.style,a),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function rp(e){return e.split("-")[0]}var op=Math.max,ap=Math.min,ip=Math.round;function sp(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function lp(){return!/^((?!chrome|android).)*safari/i.test(sp())}function cp(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,a=1;t&&ep(e)&&(o=e.offsetWidth>0&&ip(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ip(r.height)/e.offsetHeight||1);var i=(Qd(e)?Kd(e):window).visualViewport,s=!lp()&&n,l=(r.left+(s&&i?i.offsetLeft:0))/o,c=(r.top+(s&&i?i.offsetTop:0))/a,u=r.width/o,d=r.height/a;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function up(e){var t=cp(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function dp(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&tp(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function pp(e){return Kd(e).getComputedStyle(e)}function hp(e){return["table","td","th"].indexOf(Zd(e))>=0}function fp(e){return((Qd(e)?e.ownerDocument:e.document)||window.document).documentElement}function mp(e){return"html"===Zd(e)?e:e.assignedSlot||e.parentNode||(tp(e)?e.host:null)||fp(e)}function gp(e){return ep(e)&&"fixed"!==pp(e).position?e.offsetParent:null}function bp(e){for(var t=Kd(e),n=gp(e);n&&hp(n)&&"static"===pp(n).position;)n=gp(n);return n&&("html"===Zd(n)||"body"===Zd(n)&&"static"===pp(n).position)?t:n||function(e){var t=/firefox/i.test(sp());if(/Trident/i.test(sp())&&ep(e)&&"fixed"===pp(e).position)return null;var n=mp(e);for(tp(n)&&(n=n.host);ep(n)&&["html","body"].indexOf(Zd(n))<0;){var r=pp(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function vp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function yp(e,t,n){return op(e,ap(t,n))}function _p(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function kp(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}const xp={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,a=n.elements.arrow,i=n.modifiersData.popperOffsets,s=rp(n.placement),l=vp(s),c=[qd,Hd].indexOf(s)>=0?"height":"width";if(a&&i){var u=function(e,t){return _p("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:kp(e,Bd))}(o.padding,n),d=up(a),p="y"===l?jd:qd,h="y"===l?$d:Hd,f=n.rects.reference[c]+n.rects.reference[l]-i[l]-n.rects.popper[c],m=i[l]-n.rects.reference[l],g=bp(a),b=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,v=f/2-m/2,y=u[p],_=b-d[c]-u[h],k=b/2-d[c]/2+v,x=yp(y,k,_),w=l;n.modifiersData[r]=((t={})[w]=x,t.centerOffset=x-k,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&dp(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wp(e){return e.split("-")[1]}var Sp={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ap(e){var t,n=e.popper,r=e.popperRect,o=e.placement,a=e.variation,i=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=i.x,h=void 0===p?0:p,f=i.y,m=void 0===f?0:f,g="function"==typeof u?u({x:h,y:m}):{x:h,y:m};h=g.x,m=g.y;var b=i.hasOwnProperty("x"),v=i.hasOwnProperty("y"),y=qd,_=jd,k=window;if(c){var x=bp(n),w="clientHeight",S="clientWidth";x===Kd(n)&&"static"!==pp(x=fp(n)).position&&"absolute"===s&&(w="scrollHeight",S="scrollWidth"),(o===jd||(o===qd||o===Hd)&&a===zd)&&(_=$d,m-=(d&&x===k&&k.visualViewport?k.visualViewport.height:x[w])-r.height,m*=l?1:-1),o!==qd&&(o!==jd&&o!==$d||a!==zd)||(y=Hd,h-=(d&&x===k&&k.visualViewport?k.visualViewport.width:x[S])-r.width,h*=l?1:-1)}var A,C=Object.assign({position:s},c&&Sp),E=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ip(n*o)/o||0,y:ip(r*o)/o||0}}({x:h,y:m},Kd(n)):{x:h,y:m};return h=E.x,m=E.y,l?Object.assign({},C,((A={})[_]=v?"0":"",A[y]=b?"0":"",A.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+m+"px)":"translate3d("+h+"px, "+m+"px, 0)",A)):Object.assign({},C,((t={})[_]=v?m+"px":"",t[y]=b?h+"px":"",t.transform="",t))}var Cp={passive:!0};const Ep={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,a=void 0===o||o,i=r.resize,s=void 0===i||i,l=Kd(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",n.update,Cp)})),s&&l.addEventListener("resize",n.update,Cp),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",n.update,Cp)})),s&&l.removeEventListener("resize",n.update,Cp)}},data:{}};var Tp={left:"right",right:"left",bottom:"top",top:"bottom"};function Op(e){return e.replace(/left|right|bottom|top/g,(function(e){return Tp[e]}))}var Pp={start:"end",end:"start"};function Dp(e){return e.replace(/start|end/g,(function(e){return Pp[e]}))}function Rp(e){var t=Kd(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Lp(e){return cp(fp(e)).left+Rp(e).scrollLeft}function Ip(e){var t=pp(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Mp(e){return["html","body","#document"].indexOf(Zd(e))>=0?e.ownerDocument.body:ep(e)&&Ip(e)?e:Mp(mp(e))}function Fp(e,t){var n;void 0===t&&(t=[]);var r=Mp(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Kd(r),i=o?[a].concat(a.visualViewport||[],Ip(r)?r:[]):r,s=t.concat(i);return o?s:s.concat(Fp(mp(i)))}function Np(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function jp(e,t,n){return t===Wd?Np(function(e,t){var n=Kd(e),r=fp(e),o=n.visualViewport,a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;var c=lp();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:a,height:i,x:s+Lp(e),y:l}}(e,n)):Qd(t)?function(e,t){var n=cp(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Np(function(e){var t,n=fp(e),r=Rp(e),o=null==(t=e.ownerDocument)?void 0:t.body,a=op(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=op(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+Lp(e),l=-r.scrollTop;return"rtl"===pp(o||n).direction&&(s+=op(n.clientWidth,o?o.clientWidth:0)-a),{width:a,height:i,x:s,y:l}}(fp(e)))}function $p(e){var t,n=e.reference,r=e.element,o=e.placement,a=o?rp(o):null,i=o?wp(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case jd:t={x:s,y:n.y-r.height};break;case $d:t={x:s,y:n.y+n.height};break;case Hd:t={x:n.x+n.width,y:l};break;case qd:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=a?vp(a):null;if(null!=c){var u="y"===c?"height":"width";switch(i){case Vd:t[c]=t[c]-(n[u]/2-r[u]/2);break;case zd:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function Hp(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,a=n.strategy,i=void 0===a?e.strategy:a,s=n.boundary,l=void 0===s?"clippingParents":s,c=n.rootBoundary,u=void 0===c?Wd:c,d=n.elementContext,p=void 0===d?Gd:d,h=n.altBoundary,f=void 0!==h&&h,m=n.padding,g=void 0===m?0:m,b=_p("number"!=typeof g?g:kp(g,Bd)),v=p===Gd?"reference":Gd,y=e.rects.popper,_=e.elements[f?v:p],k=function(e,t,n,r){var o="clippingParents"===t?function(e){var t=Fp(mp(e)),n=["absolute","fixed"].indexOf(pp(e).position)>=0&&ep(e)?bp(e):e;return Qd(n)?t.filter((function(e){return Qd(e)&&dp(e,n)&&"body"!==Zd(e)})):[]}(e):[].concat(t),a=[].concat(o,[n]),i=a[0],s=a.reduce((function(t,n){var o=jp(e,n,r);return t.top=op(o.top,t.top),t.right=ap(o.right,t.right),t.bottom=ap(o.bottom,t.bottom),t.left=op(o.left,t.left),t}),jp(e,i,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}(Qd(_)?_:_.contextElement||fp(e.elements.popper),l,u,i),x=cp(e.elements.reference),w=$p({reference:x,element:y,strategy:"absolute",placement:o}),S=Np(Object.assign({},y,w)),A=p===Gd?S:x,C={top:k.top-A.top+b.top,bottom:A.bottom-k.bottom+b.bottom,left:k.left-A.left+b.left,right:A.right-k.right+b.right},E=e.modifiersData.offset;if(p===Gd&&E){var T=E[o];Object.keys(C).forEach((function(e){var t=[Hd,$d].indexOf(e)>=0?1:-1,n=[jd,$d].indexOf(e)>=0?"y":"x";C[e]+=T[n]*t}))}return C}function qp(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,i=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,c=void 0===l?Xd:l,u=wp(r),d=u?s?Yd:Yd.filter((function(e){return wp(e)===u})):Bd,p=d.filter((function(e){return c.indexOf(e)>=0}));0===p.length&&(p=d);var h=p.reduce((function(t,n){return t[n]=Hp(e,{placement:n,boundary:o,rootBoundary:a,padding:i})[rp(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}const Up={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0===i||i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,f=void 0===h||h,m=n.allowedAutoPlacements,g=t.options.placement,b=rp(g),v=l||(b!==g&&f?function(e){if(rp(e)===Ud)return[];var t=Op(e);return[Dp(e),t,Dp(t)]}(g):[Op(g)]),y=[g].concat(v).reduce((function(e,n){return e.concat(rp(n)===Ud?qp(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),_=t.rects.reference,k=t.rects.popper,x=new Map,w=!0,S=y[0],A=0;A=0,P=O?"width":"height",D=Hp(t,{placement:C,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),R=O?T?Hd:qd:T?$d:jd;_[P]>k[P]&&(R=Op(R));var L=Op(R),I=[];if(a&&I.push(D[E]<=0),s&&I.push(D[R]<=0,D[L]<=0),I.every((function(e){return e}))){S=C,w=!1;break}x.set(C,I)}if(w)for(var M=function(e){var t=y.find((function(t){var n=x.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},F=f?3:1;F>0&&"break"!==M(F);F--);t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Bp(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Vp(e){return[jd,Hd,$d,qd].some((function(t){return e[t]>=0}))}function zp(e,t,n){void 0===n&&(n=!1);var r,o,a=ep(t),i=ep(t)&&function(e){var t=e.getBoundingClientRect(),n=ip(t.width)/e.offsetWidth||1,r=ip(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=fp(t),l=cp(e,i,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&(("body"!==Zd(t)||Ip(s))&&(c=(r=t)!==Kd(r)&&ep(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Rp(r)),ep(t)?((u=cp(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=Lp(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Wp(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var Gp={placement:"bottom",modifiers:[],strategy:"absolute"};function Yp(){for(var e=arguments.length,t=new Array(e),n=0;n=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,i=a[0],s=a[1];return i=i||0,s=(s||0)*o,[qd,Hd].indexOf(r)>=0?{x:s,y:i}:{x:i,y:s}}(n,t.rects,a),e}),{}),s=i[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}},Up,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,a=void 0===o||o,i=n.altAxis,s=void 0!==i&&i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,h=void 0===p||p,f=n.tetherOffset,m=void 0===f?0:f,g=Hp(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),b=rp(t.placement),v=wp(t.placement),y=!v,_=vp(b),k="x"===_?"y":"x",x=t.modifiersData.popperOffsets,w=t.rects.reference,S=t.rects.popper,A="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,C="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,T={x:0,y:0};if(x){if(a){var O,P="y"===_?jd:qd,D="y"===_?$d:Hd,R="y"===_?"height":"width",L=x[_],I=L+g[P],M=L-g[D],F=h?-S[R]/2:0,N=v===Vd?w[R]:S[R],j=v===Vd?-S[R]:-w[R],$=t.elements.arrow,H=h&&$?up($):{width:0,height:0},q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=q[P],B=q[D],V=yp(0,w[R],H[R]),z=y?w[R]/2-F-V-U-C.mainAxis:N-V-U-C.mainAxis,W=y?-w[R]/2+F+V+B+C.mainAxis:j+V+B+C.mainAxis,G=t.elements.arrow&&bp(t.elements.arrow),Y=G?"y"===_?G.clientTop||0:G.clientLeft||0:0,X=null!=(O=null==E?void 0:E[_])?O:0,J=L+W-X,Z=yp(h?ap(I,L+z-X-Y):I,L,h?op(M,J):M);x[_]=Z,T[_]=Z-L}if(s){var K,Q="x"===_?jd:qd,ee="x"===_?$d:Hd,te=x[k],ne="y"===k?"height":"width",re=te+g[Q],oe=te-g[ee],ae=-1!==[jd,qd].indexOf(b),ie=null!=(K=null==E?void 0:E[k])?K:0,se=ae?re:te-w[ne]-S[ne]-ie+C.altAxis,le=ae?te+w[ne]+S[ne]-ie-C.altAxis:oe,ce=h&&ae?function(e,t,n){var r=yp(e,t,n);return r>n?n:r}(se,te,le):yp(h?se:re,te,h?le:oe);x[k]=ce,T[k]=ce-te}t.modifiersData[r]=T}},requiresIfExists:["offset"]},xp,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,i=Hp(t,{elementContext:"reference"}),s=Hp(t,{altBoundary:!0}),l=Bp(i,r),c=Bp(s,o,a),u=Vp(l),d=Vp(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]}),Zp="tippy-content",Kp="tippy-arrow",Qp="tippy-svg-arrow",eh={passive:!0,capture:!0},th=function(){return document.body};function nh(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function rh(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function oh(e,t){return"function"==typeof e?e.apply(void 0,t):e}function ah(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function ih(e){return[].concat(e)}function sh(e,t){-1===e.indexOf(t)&&e.push(t)}function lh(e){return[].slice.call(e)}function ch(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function uh(){return document.createElement("div")}function dh(e){return["Element","Fragment"].some((function(t){return rh(e,t)}))}function ph(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function hh(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function fh(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function mh(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var gh={isTouch:!1},bh=0;function vh(){gh.isTouch||(gh.isTouch=!0,window.performance&&document.addEventListener("mousemove",yh))}function yh(){var e=performance.now();e-bh<20&&(gh.isTouch=!1,document.removeEventListener("mousemove",yh)),bh=e}function _h(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var kh=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),xh=Object.assign({appendTo:th,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),wh=Object.keys(xh);function Sh(e){var t=(e.plugins||[]).reduce((function(t,n){var r,o=n.name,a=n.defaultValue;return o&&(t[o]=void 0!==e[o]?e[o]:null!=(r=xh[o])?r:a),t}),{});return Object.assign({},e,t)}function Ah(e,t){var n=Object.assign({},t,{content:oh(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Sh(Object.assign({},xh,{plugins:t}))):wh).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},xh.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Ch(e,t){e.innerHTML=t}function Eh(e){var t=uh();return!0===e?t.className=Kp:(t.className=Qp,dh(e)?t.appendChild(e):Ch(t,e)),t}function Th(e,t){dh(t.content)?(Ch(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Ch(e,t.content):e.textContent=t.content)}function Oh(e){var t=e.firstElementChild,n=lh(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Zp)})),arrow:n.find((function(e){return e.classList.contains(Kp)||e.classList.contains(Qp)})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function Ph(e){var t=uh(),n=uh();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=uh();function o(n,r){var o=Oh(t),a=o.box,i=o.content,s=o.arrow;r.theme?a.setAttribute("data-theme",r.theme):a.removeAttribute("data-theme"),"string"==typeof r.animation?a.setAttribute("data-animation",r.animation):a.removeAttribute("data-animation"),r.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?a.setAttribute("role",r.role):a.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||Th(i,e.props),r.arrow?s?n.arrow!==r.arrow&&(a.removeChild(s),a.appendChild(Eh(r.arrow))):a.appendChild(Eh(r.arrow)):s&&a.removeChild(s)}return r.className=Zp,r.setAttribute("data-state","hidden"),Th(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}Ph.$$tippy=!0;var Dh=1,Rh=[],Lh=[];function Ih(e,t){var n,r,o,a,i,s,l,c,u=Ah(e,Object.assign({},xh,Sh(ch(t)))),d=!1,p=!1,h=!1,f=!1,m=[],g=ah(G,u.interactiveDebounce),b=Dh++,v=(c=u.plugins).filter((function(e,t){return c.indexOf(e)===t})),y={id:b,reference:e,popper:uh(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:v,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(o)},setProps:function(t){if(!y.state.isDestroyed){L("onBeforeUpdate",[y,t]),z();var n=y.props,r=Ah(e,Object.assign({},n,ch(t),{ignoreAttributes:!0}));y.props=r,V(),n.interactiveDebounce!==r.interactiveDebounce&&(F(),g=ah(G,r.interactiveDebounce)),n.triggerTarget&&!r.triggerTarget?ih(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded"),M(),R(),x&&x(n,r),y.popperInstance&&(Z(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),L("onAfterUpdate",[y,t])}},setContent:function(e){y.setProps({content:e})},show:function(){var e=y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,r=gh.isTouch&&!y.props.touch,o=nh(y.props.duration,0,xh.duration);if(!(e||t||n||r||T().hasAttribute("disabled")||(L("onShow",[y],!1),!1===y.props.onShow(y)))){if(y.state.isVisible=!0,E()&&(k.style.visibility="visible"),R(),H(),y.state.isMounted||(k.style.transition="none"),E()){var a=P();ph([a.box,a.content],0)}var i,l,c;s=function(){var e;if(y.state.isVisible&&!f){if(f=!0,k.style.transition=y.props.moveTransition,E()&&y.props.animation){var t=P(),n=t.box,r=t.content;ph([n,r],o),hh([n,r],"visible")}I(),M(),sh(Lh,y),null==(e=y.popperInstance)||e.forceUpdate(),L("onMount",[y]),y.props.animation&&E()&&function(e,t){U(e,(function(){y.state.isShown=!0,L("onShown",[y])}))}(o)}},l=y.props.appendTo,c=T(),(i=y.props.interactive&&l===th||"parent"===l?c.parentNode:oh(l,[c])).contains(k)||i.appendChild(k),y.state.isMounted=!0,Z()}},hide:function(){var e=!y.state.isVisible,t=y.state.isDestroyed,n=!y.state.isEnabled,r=nh(y.props.duration,1,xh.duration);if(!(e||t||n)&&(L("onHide",[y],!1),!1!==y.props.onHide(y))){if(y.state.isVisible=!1,y.state.isShown=!1,f=!1,d=!1,E()&&(k.style.visibility="hidden"),F(),q(),R(!0),E()){var o=P(),a=o.box,i=o.content;y.props.animation&&(ph([a,i],r),hh([a,i],"hidden"))}I(),M(),y.props.animation?E()&&function(e,t){U(e,(function(){!y.state.isVisible&&k.parentNode&&k.parentNode.contains(k)&&t()}))}(r,y.unmount):y.unmount()}},hideWithInteractivity:function(e){O().addEventListener("mousemove",g),sh(Rh,g),g(e)},enable:function(){y.state.isEnabled=!0},disable:function(){y.hide(),y.state.isEnabled=!1},unmount:function(){y.state.isVisible&&y.hide(),y.state.isMounted&&(K(),Q().forEach((function(e){e._tippy.unmount()})),k.parentNode&&k.parentNode.removeChild(k),Lh=Lh.filter((function(e){return e!==y})),y.state.isMounted=!1,L("onHidden",[y]))},destroy:function(){y.state.isDestroyed||(y.clearDelayTimeouts(),y.unmount(),z(),delete e._tippy,y.state.isDestroyed=!0,L("onDestroy",[y]))}};if(!u.render)return y;var _=u.render(y),k=_.popper,x=_.onUpdate;k.setAttribute("data-tippy-root",""),k.id="tippy-"+y.id,y.popper=k,e._tippy=y,k._tippy=y;var w=v.map((function(e){return e.fn(y)})),S=e.hasAttribute("aria-expanded");return V(),M(),R(),L("onCreate",[y]),u.showOnCreate&&ee(),k.addEventListener("mouseenter",(function(){y.props.interactive&&y.state.isVisible&&y.clearDelayTimeouts()})),k.addEventListener("mouseleave",(function(){y.props.interactive&&y.props.trigger.indexOf("mouseenter")>=0&&O().addEventListener("mousemove",g)})),y;function A(){var e=y.props.touch;return Array.isArray(e)?e:[e,0]}function C(){return"hold"===A()[0]}function E(){var e;return!(null==(e=y.props.render)||!e.$$tippy)}function T(){return l||e}function O(){var e,t,n=T().parentNode;return n&&null!=(t=ih(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document}function P(){return Oh(k)}function D(e){return y.state.isMounted&&!y.state.isVisible||gh.isTouch||a&&"focus"===a.type?0:nh(y.props.delay,e?0:1,xh.delay)}function R(e){void 0===e&&(e=!1),k.style.pointerEvents=y.props.interactive&&!e?"":"none",k.style.zIndex=""+y.props.zIndex}function L(e,t,n){var r;void 0===n&&(n=!0),w.forEach((function(n){n[e]&&n[e].apply(n,t)})),n&&(r=y.props)[e].apply(r,t)}function I(){var t=y.props.aria;if(t.content){var n="aria-"+t.content,r=k.id;ih(y.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(y.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function M(){!S&&y.props.aria.expanded&&ih(y.props.triggerTarget||e).forEach((function(e){y.props.interactive?e.setAttribute("aria-expanded",y.state.isVisible&&e===T()?"true":"false"):e.removeAttribute("aria-expanded")}))}function F(){O().removeEventListener("mousemove",g),Rh=Rh.filter((function(e){return e!==g}))}function N(t){if(!gh.isTouch||!h&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!y.props.interactive||!mh(k,n)){if(ih(y.props.triggerTarget||e).some((function(e){return mh(e,n)}))){if(gh.isTouch)return;if(y.state.isVisible&&y.props.trigger.indexOf("click")>=0)return}else L("onClickOutside",[y,t]);!0===y.props.hideOnClick&&(y.clearDelayTimeouts(),y.hide(),p=!0,setTimeout((function(){p=!1})),y.state.isMounted||q())}}}function j(){h=!0}function $(){h=!1}function H(){var e=O();e.addEventListener("mousedown",N,!0),e.addEventListener("touchend",N,eh),e.addEventListener("touchstart",$,eh),e.addEventListener("touchmove",j,eh)}function q(){var e=O();e.removeEventListener("mousedown",N,!0),e.removeEventListener("touchend",N,eh),e.removeEventListener("touchstart",$,eh),e.removeEventListener("touchmove",j,eh)}function U(e,t){var n=P().box;function r(e){e.target===n&&(fh(n,"remove",r),t())}if(0===e)return t();fh(n,"remove",i),fh(n,"add",r),i=r}function B(t,n,r){void 0===r&&(r=!1),ih(y.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),m.push({node:e,eventType:t,handler:n,options:r})}))}function V(){var e;C()&&(B("touchstart",W,{passive:!0}),B("touchend",Y,{passive:!0})),(e=y.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(B(e,W),e){case"mouseenter":B("mouseleave",Y);break;case"focus":B(kh?"focusout":"blur",X);break;case"focusin":B("focusout",X)}}))}function z(){m.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),m=[]}function W(e){var t,n=!1;if(y.state.isEnabled&&!J(e)&&!p){var r="focus"===(null==(t=a)?void 0:t.type);a=e,l=e.currentTarget,M(),!y.state.isVisible&&rh(e,"MouseEvent")&&Rh.forEach((function(t){return t(e)})),"click"===e.type&&(y.props.trigger.indexOf("mouseenter")<0||d)&&!1!==y.props.hideOnClick&&y.state.isVisible?n=!0:ee(e),"click"===e.type&&(d=!n),n&&!r&&te(e)}}function G(e){var t=e.target,n=T().contains(t)||k.contains(t);if("mousemove"!==e.type||!n){var r=Q().concat(k).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:u}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,a=e.props.interactiveBorder,i=o.placement.split("-")[0],s=o.modifiersData.offset;if(!s)return!0;var l="bottom"===i?s.top.y:0,c="top"===i?s.bottom.y:0,u="right"===i?s.left.x:0,d="left"===i?s.right.x:0,p=t.top-r+l>a,h=r-t.bottom-c>a,f=t.left-n+u>a,m=n-t.right-d>a;return p||h||f||m}))})(r,e)&&(F(),te(e))}}function Y(e){J(e)||y.props.trigger.indexOf("click")>=0&&d||(y.props.interactive?y.hideWithInteractivity(e):te(e))}function X(e){y.props.trigger.indexOf("focusin")<0&&e.target!==T()||y.props.interactive&&e.relatedTarget&&k.contains(e.relatedTarget)||te(e)}function J(e){return!!gh.isTouch&&C()!==e.type.indexOf("touch")>=0}function Z(){K();var t=y.props,n=t.popperOptions,r=t.placement,o=t.offset,a=t.getReferenceClientRect,i=t.moveTransition,l=E()?Oh(k).arrow:null,c=a?{getBoundingClientRect:a,contextElement:a.contextElement||T()}:e,u=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!i}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(E()){var n=P().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];E()&&l&&u.push({name:"arrow",options:{element:l,padding:3}}),u.push.apply(u,(null==n?void 0:n.modifiers)||[]),y.popperInstance=Jp(c,k,Object.assign({},n,{placement:r,onFirstUpdate:s,modifiers:u}))}function K(){y.popperInstance&&(y.popperInstance.destroy(),y.popperInstance=null)}function Q(){return lh(k.querySelectorAll("[data-tippy-root]"))}function ee(e){y.clearDelayTimeouts(),e&&L("onTrigger",[y,e]),H();var t=D(!0),r=A(),o=r[0],a=r[1];gh.isTouch&&"hold"===o&&a&&(t=a),t?n=setTimeout((function(){y.show()}),t):y.show()}function te(e){if(y.clearDelayTimeouts(),L("onUntrigger",[y,e]),y.state.isVisible){if(!(y.props.trigger.indexOf("mouseenter")>=0&&y.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=D(!1);t?r=setTimeout((function(){y.state.isVisible&&y.hide()}),t):o=requestAnimationFrame((function(){y.hide()}))}}else q()}}function Mh(e,t){void 0===t&&(t={});var n=xh.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",vh,eh),window.addEventListener("blur",_h);var r,o=Object.assign({},t,{plugins:n}),a=(r=e,dh(r)?[r]:function(e){return rh(e,"NodeList")}(r)?lh(r):Array.isArray(r)?r:lh(document.querySelectorAll(r))).reduce((function(e,t){var n=t&&Ih(t,o);return n&&e.push(n),e}),[]);return dh(e)?a[0]:a}Mh.defaultProps=xh,Mh.setDefaultProps=function(e){Object.keys(e).forEach((function(t){xh[t]=e[t]}))},Mh.currentInput=gh,Object.assign({},np,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),Mh.setDefaultProps({render:Ph});const Fh=Wu(class extends Fc{constructor(){super(),this.__registerHost(),this.tippies=[],this.akomaNtoso=void 0,this.popups=!1,this.partner=void 0,this.provider=Zu}componentWillLoad(){const e=new Od(this.el,this.akomaNtoso,(()=>{this.componentDidLoad()}));this.akomaNtosoElement=e.getElement(),this.tippyContainer=document.createElement("div"),this.tippyContainer.className="la-decorate-external-refs__popup",document.body.appendChild(this.tippyContainer)}componentDidLoad(){this.changePopups(this.popups)}changePopups(e){for(const e of this.tippies)e.destroy();this.tippies=[],this.akomaNtosoElement&&e&&this.createPopups()}createPopups(){this.akomaNtosoElement&&(this.tippies=Mh(this.akomaNtosoElement.querySelectorAll('a.akn-ref[data-href^="/akn/"]'),{appendTo:()=>this.tippyContainer,allowHTML:!0,hideOnClick:!0,interactive:!0,maxWidth:450,onTrigger:this.onTrigger.bind(this),theme:"light-border"}))}async onTrigger(e){const t=e.reference.getAttribute("data-href")||"",n=await this.fetchContent(t);n&&e.setContent(`\n
    \n
    ${n}
    \n
    `)}ensurePartner(){this.partner||(this.partner=Ju())}async fetchContent(e){if(this.ensurePartner(),e&&this.provider){const t=this.provider+"/p/"+this.partner+"/e/popup"+e;try{const e=await fetch(t);if(e.ok)return await e.text()}catch(e){}}return null}get el(){return this}static get watchers(){return{popups:["changePopups"]}}static get style(){return'.la-decorate-external-refs__popup{position:relative}.la-decorate-external-refs__popup .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.la-decorate-external-refs__popup [data-tippy-root]{max-width:calc(100vw - 10px)}.la-decorate-external-refs__popup .tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform}.la-decorate-external-refs__popup .tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.la-decorate-external-refs__popup .tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;-webkit-transform-origin:center top;transform-origin:center top}.la-decorate-external-refs__popup .tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.la-decorate-external-refs__popup .tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;-webkit-transform-origin:center bottom;transform-origin:center bottom}.la-decorate-external-refs__popup .tippy-box[data-placement^=left]>.tippy-arrow{right:0}.la-decorate-external-refs__popup .tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;-webkit-transform-origin:center left;transform-origin:center left}.la-decorate-external-refs__popup .tippy-box[data-placement^=right]>.tippy-arrow{left:0}.la-decorate-external-refs__popup .tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;-webkit-transform-origin:center right;transform-origin:center right}.la-decorate-external-refs__popup .tippy-box[data-inertia][data-state=visible]{-webkit-transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11);transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11)}.la-decorate-external-refs__popup .tippy-arrow{width:16px;height:16px;color:#333}.la-decorate-external-refs__popup .tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.la-decorate-external-refs__popup .tippy-content{position:relative;padding:5px 9px;z-index:1}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]{background-color:#fff;background-clip:padding-box;border:1px solid rgba(0, 8, 16, 0.15);color:#333;-webkit-box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08);box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08)}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-backdrop{background-color:#fff}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after,.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{content:"";position:absolute;z-index:-1}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after{border-color:transparent;border-style:solid}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:after{border-top-color:rgba(0, 8, 16, 0.2);border-width:7px 7px 0;top:17px;left:1px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow>svg{top:16px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow:after{top:17px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff;bottom:16px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:after{border-bottom-color:rgba(0, 8, 16, 0.2);border-width:0 7px 7px;bottom:17px;left:1px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow:after{bottom:17px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:after{border-left-color:rgba(0, 8, 16, 0.2);border-width:7px 0 7px 7px;left:17px;top:1px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow>svg{left:11px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow:after{left:12px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff;right:16px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:after{border-width:7px 7px 7px 0;right:17px;top:1px;border-right-color:rgba(0, 8, 16, 0.2)}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow>svg{right:11px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow:after{right:12px}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow{fill:#fff}.la-decorate-external-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA2czEuNzk2LS4wMTMgNC42Ny0zLjYxNUM1Ljg1MS45IDYuOTMuMDA2IDggMGMxLjA3LS4wMDYgMi4xNDguODg3IDMuMzQzIDIuMzg1QzE0LjIzMyA2LjAwNSAxNiA2IDE2IDZIMHoiIGZpbGw9InJnYmEoMCwgOCwgMTYsIDAuMikiLz48L3N2Zz4=);background-size:16px 6px;width:16px;height:6px}.la-decorate-external-refs__popup .tippy-content{padding:0}.la-decorate-external-refs__popup .tippy-content__title{padding:0.5rem 0.75rem;margin-bottom:0;font-size:1rem;font-weight:bold;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(0.3rem - 1px);border-top-right-radius:calc(0.3rem - 1px);background-color:#f7f7f7}.la-decorate-external-refs__popup .tippy-content__body{padding:0.5rem 0.75rem;background-color:white}.la-decorate-external-refs__popup .tippy-content la-akoma-ntoso{max-height:40vh;overflow-y:auto}'}},[0,"la-decorate-external-refs",{akomaNtoso:[1,"akoma-ntoso"],popups:[4],partner:[1],provider:[1]},void 0,{popups:["changePopups"]}]);"undefined"!=typeof customElements&&["la-decorate-external-refs"].forEach((e=>{"la-decorate-external-refs"===e&&(customElements.get(e)||customElements.define(e,Fh))}));const Nh=Wu(class extends Fc{constructor(){super(),this.__registerHost(),this.tippies=[],this.akomaNtoso=void 0,this.popups=!1,this.flag=!1,this.fetch=!1,this.partner=void 0,this.provider=Zu}componentWillLoad(){const e=new Od(this.el,this.akomaNtoso,(()=>{this.componentDidLoad()}));this.akomaNtosoElement=e.getElement(),this.tippyContainer=document.createElement("div"),this.tippyContainer.className="la-decorate-internal-refs__popup",document.body.appendChild(this.tippyContainer)}componentDidLoad(){this.changeFlag(this.flag),this.changePopups(this.popups)}changeFlag(e){this.akomaNtosoElement&&this.akomaNtosoElement.classList.toggle("flag-internal-refs",e)}changePopups(e){for(const e of this.tippies)e.destroy();this.tippies=[],this.akomaNtosoElement&&e&&this.createPopups()}createPopups(){this.tippies=Mh('a.akn-ref[href^="#"]',{appendTo:()=>this.tippyContainer,allowHTML:!0,hideOnClick:!0,interactive:!0,maxWidth:450,onTrigger:this.onTrigger.bind(this),theme:"light-border"})}async onTrigger(e){if(this.akomaNtosoElement){const t=e.reference.getAttribute("href")||"";let n="",r=null;try{r=this.akomaNtosoElement.querySelector(t)}catch(e){console.log(e)}r?n=r.outerHTML:this.fetch&&(n=await this.fetchContent(t.slice(1))),n&&e.setContent(`\n
    \n
    ${n}
    \n
    `)}}async fetchContent(e){if(this.ensurePartner(),this.provider&&this.akomaNtosoElement){const t=this.akomaNtosoElement.getAttribute("frbr-expression-uri");if(t){const n=this.provider+"/p/"+this.partner+"/e/portion"+function(e,t){const n=e.indexOf("~");return n>-1&&(e=e.slice(0,n)),e.endsWith("/")||(e+="/"),e+t}(t,"~"+e);try{const e=await fetch(n);if(e.ok)return await e.text()}catch(e){}}}return null}ensurePartner(){this.partner||(this.partner=Ju())}get el(){return this}static get watchers(){return{flag:["changeFlag"],popups:["changePopups"]}}static get style(){return'.la-decorate-internal-refs__popup{position:relative}.la-decorate-internal-refs__popup .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.la-decorate-internal-refs__popup [data-tippy-root]{max-width:calc(100vw - 10px)}.la-decorate-internal-refs__popup .tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform}.la-decorate-internal-refs__popup .tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.la-decorate-internal-refs__popup .tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;-webkit-transform-origin:center top;transform-origin:center top}.la-decorate-internal-refs__popup .tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.la-decorate-internal-refs__popup .tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;-webkit-transform-origin:center bottom;transform-origin:center bottom}.la-decorate-internal-refs__popup .tippy-box[data-placement^=left]>.tippy-arrow{right:0}.la-decorate-internal-refs__popup .tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;-webkit-transform-origin:center left;transform-origin:center left}.la-decorate-internal-refs__popup .tippy-box[data-placement^=right]>.tippy-arrow{left:0}.la-decorate-internal-refs__popup .tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;-webkit-transform-origin:center right;transform-origin:center right}.la-decorate-internal-refs__popup .tippy-box[data-inertia][data-state=visible]{-webkit-transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11);transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11)}.la-decorate-internal-refs__popup .tippy-arrow{width:16px;height:16px;color:#333}.la-decorate-internal-refs__popup .tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.la-decorate-internal-refs__popup .tippy-content{position:relative;padding:5px 9px;z-index:1}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]{background-color:#fff;background-clip:padding-box;border:1px solid rgba(0, 8, 16, 0.15);color:#333;-webkit-box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08);box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08)}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-backdrop{background-color:#fff}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after,.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{content:"";position:absolute;z-index:-1}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after{border-color:transparent;border-style:solid}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:after{border-top-color:rgba(0, 8, 16, 0.2);border-width:7px 7px 0;top:17px;left:1px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow>svg{top:16px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow:after{top:17px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff;bottom:16px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:after{border-bottom-color:rgba(0, 8, 16, 0.2);border-width:0 7px 7px;bottom:17px;left:1px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow:after{bottom:17px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:after{border-left-color:rgba(0, 8, 16, 0.2);border-width:7px 0 7px 7px;left:17px;top:1px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow>svg{left:11px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow:after{left:12px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff;right:16px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:after{border-width:7px 7px 7px 0;right:17px;top:1px;border-right-color:rgba(0, 8, 16, 0.2)}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow>svg{right:11px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow:after{right:12px}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow{fill:#fff}.la-decorate-internal-refs__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA2czEuNzk2LS4wMTMgNC42Ny0zLjYxNUM1Ljg1MS45IDYuOTMuMDA2IDggMGMxLjA3LS4wMDYgMi4xNDguODg3IDMuMzQzIDIuMzg1QzE0LjIzMyA2LjAwNSAxNiA2IDE2IDZIMHoiIGZpbGw9InJnYmEoMCwgOCwgMTYsIDAuMikiLz48L3N2Zz4=);background-size:16px 6px;width:16px;height:6px}.la-decorate-internal-refs__popup .tippy-content{padding:0}.la-decorate-internal-refs__popup .tippy-content__title{padding:0.5rem 0.75rem;margin-bottom:0;font-size:1rem;font-weight:bold;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(0.3rem - 1px);border-top-right-radius:calc(0.3rem - 1px);background-color:#f7f7f7}.la-decorate-internal-refs__popup .tippy-content__body{padding:0.5rem 0.75rem;background-color:white}.la-decorate-internal-refs__popup .tippy-content la-akoma-ntoso{max-height:40vh;overflow-y:auto}la-akoma-ntoso.flag-internal-refs .akn-ref[href^="#"]::after{display:inline-block;content:"";vertical-align:-0.125em;background-image:url("data:image/svg+xml,");background-repeat:no-repeat;width:0.8rem;height:0.8rem}'}},[0,"la-decorate-internal-refs",{akomaNtoso:[1,"akoma-ntoso"],popups:[4],flag:[4],fetch:[1540],partner:[1537],provider:[1]},void 0,{flag:["changeFlag"],popups:["changePopups"]}]);"undefined"!=typeof customElements&&["la-decorate-internal-refs"].forEach((e=>{"la-decorate-internal-refs"===e&&(customElements.get(e)||customElements.define(e,Nh))}));const jh=Wu(class extends Fc{constructor(){super(),this.__registerHost(),this.defnContainers=".akn-p, .akn-subsection, .akn-section, .akn-blockList",this.tippies=[],this.akomaNtoso=void 0,this.popupDefinitions=!1,this.linkTerms=!1}componentWillLoad(){const e=new Od(this.el,this.akomaNtoso,(()=>{this.componentDidLoad()}));this.akomaNtosoElement=e.getElement(),this.tippyContainer=document.createElement("div"),this.tippyContainer.className="la-decorate-terms__popup",document.body.appendChild(this.tippyContainer)}componentDidLoad(){this.akomaNtosoElement&&(this.setupDefinitions(),this.linkTerms&&this.makeTermLinks(),this.changePopupDefinitions(this.popupDefinitions))}changePopupDefinitions(e){for(const e of this.tippies)e.destroy();this.tippies=[],this.akomaNtosoElement&&e&&this.createPopups(),this.toggleCssClasses()}changeLinkTerms(){this.toggleCssClasses()}toggleCssClasses(){this.akomaNtosoElement&&(this.akomaNtosoElement.classList.toggle("show-terms",this.linkTerms||this.popupDefinitions),this.akomaNtosoElement.classList.toggle("link-terms",this.linkTerms))}setupDefinitions(){this.akomaNtosoElement&&Array.from(this.akomaNtosoElement.querySelectorAll(".akn-def[data-refersto]")).forEach((e=>{var t;const n=null===(t=e.getAttribute("data-refersto"))||void 0===t?void 0:t.replace("#",""),r=e.closest(this.defnContainers);r&&n&&(r.dataset.defines=e.dataset.refersto,r.setAttribute("id",`defn-${n}`))}))}createPopups(){this.tippies=Mh(this.akomaNtosoElement.querySelectorAll(".akn-term"),{appendTo:()=>this.tippyContainer,allowHTML:!0,content:"",hideOnClick:!0,interactive:!0,maxWidth:450,onTrigger:this.onTrigger.bind(this),theme:"light-border"})}onTrigger(e){const t=e.reference,n=this.getDefinition(t);n&&e.setContent(`\n
    \n
    ${t.innerText}
    \n
    ${n.outerHTML}
    \n
    `)}getDefinition(e){const t=e.getAttribute("data-refersto");if(this.akomaNtosoElement)try{return this.akomaNtosoElement.querySelector(`[data-defines="${t}"]`)}catch(e){console.log(e)}return null}makeTermLinks(){this.akomaNtosoElement&&this.akomaNtosoElement.addEventListener("click",(e=>{if(e.target&&e.target instanceof Fc){const t=e.target;if(t.classList.contains("akn-term")){const e=(t.dataset.refersto||"").replace("#","");e&&(window.location.hash=`#defn-${e}`)}}}))}get el(){return this}static get watchers(){return{popupDefinitions:["changePopupDefinitions"],linkTerms:["changeLinkTerms"]}}static get style(){return'.la-decorate-terms__popup{position:relative}.la-decorate-terms__popup .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.la-decorate-terms__popup [data-tippy-root]{max-width:calc(100vw - 10px)}.la-decorate-terms__popup .tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;-webkit-transition-property:visibility, opacity, -webkit-transform;transition-property:visibility, opacity, -webkit-transform;transition-property:transform, visibility, opacity;transition-property:transform, visibility, opacity, -webkit-transform}.la-decorate-terms__popup .tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.la-decorate-terms__popup .tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;-webkit-transform-origin:center top;transform-origin:center top}.la-decorate-terms__popup .tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.la-decorate-terms__popup .tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;-webkit-transform-origin:center bottom;transform-origin:center bottom}.la-decorate-terms__popup .tippy-box[data-placement^=left]>.tippy-arrow{right:0}.la-decorate-terms__popup .tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;-webkit-transform-origin:center left;transform-origin:center left}.la-decorate-terms__popup .tippy-box[data-placement^=right]>.tippy-arrow{left:0}.la-decorate-terms__popup .tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;-webkit-transform-origin:center right;transform-origin:center right}.la-decorate-terms__popup .tippy-box[data-inertia][data-state=visible]{-webkit-transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11);transition-timing-function:cubic-bezier(0.54, 1.5, 0.38, 1.11)}.la-decorate-terms__popup .tippy-arrow{width:16px;height:16px;color:#333}.la-decorate-terms__popup .tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.la-decorate-terms__popup .tippy-content{position:relative;padding:5px 9px;z-index:1}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]{background-color:#fff;background-clip:padding-box;border:1px solid rgba(0, 8, 16, 0.15);color:#333;-webkit-box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08);box-shadow:0 4px 14px -2px rgba(0, 8, 16, 0.08)}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-backdrop{background-color:#fff}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after,.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{content:"";position:absolute;z-index:-1}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-arrow:after{border-color:transparent;border-style:solid}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-arrow:after{border-top-color:rgba(0, 8, 16, 0.2);border-width:7px 7px 0;top:17px;left:1px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow>svg{top:16px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=top]>.tippy-svg-arrow:after{top:17px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff;bottom:16px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-arrow:after{border-bottom-color:rgba(0, 8, 16, 0.2);border-width:0 7px 7px;bottom:17px;left:1px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=bottom]>.tippy-svg-arrow:after{bottom:17px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-arrow:after{border-left-color:rgba(0, 8, 16, 0.2);border-width:7px 0 7px 7px;left:17px;top:1px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow>svg{left:11px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=left]>.tippy-svg-arrow:after{left:12px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff;right:16px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-arrow:after{border-width:7px 7px 7px 0;right:17px;top:1px;border-right-color:rgba(0, 8, 16, 0.2)}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow>svg{right:11px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border][data-placement^=right]>.tippy-svg-arrow:after{right:12px}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow{fill:#fff}.la-decorate-terms__popup .tippy-box[data-theme~=light-border]>.tippy-svg-arrow:after{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMCA2czEuNzk2LS4wMTMgNC42Ny0zLjYxNUM1Ljg1MS45IDYuOTMuMDA2IDggMGMxLjA3LS4wMDYgMi4xNDguODg3IDMuMzQzIDIuMzg1QzE0LjIzMyA2LjAwNSAxNiA2IDE2IDZIMHoiIGZpbGw9InJnYmEoMCwgOCwgMTYsIDAuMikiLz48L3N2Zz4=);background-size:16px 6px;width:16px;height:6px}.la-decorate-terms__popup .tippy-content{padding:0}.la-decorate-terms__popup .tippy-content__title{padding:0.5rem 0.75rem;margin-bottom:0;font-size:1rem;font-weight:bold;border-bottom:1px solid #ebebeb;border-top-left-radius:calc(0.3rem - 1px);border-top-right-radius:calc(0.3rem - 1px);background-color:#f7f7f7}.la-decorate-terms__popup .tippy-content__body{padding:0.5rem 0.75rem;background-color:white}.la-decorate-terms__popup .tippy-content la-akoma-ntoso{max-height:40vh;overflow-y:auto}la-akoma-ntoso.show-terms .akn-term{-webkit-text-decoration:underline dotted 1px;text-decoration:underline dotted 1px}la-akoma-ntoso.link-terms .akn-term{cursor:pointer}'}},[0,"la-decorate-terms",{akomaNtoso:[1,"akoma-ntoso"],popupDefinitions:[4,"popup-definitions"],linkTerms:[4,"link-terms"]},void 0,{popupDefinitions:["changePopupDefinitions"],linkTerms:["changeLinkTerms"]}]);"undefined"!=typeof customElements&&["la-decorate-terms"].forEach((e=>{"la-decorate-terms"===e&&(customElements.get(e)||customElements.define(e,jh))}));var $h=__webpack_require__(8914),Hh=function(){return Hh=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&t.every((function(e){return""===e.filename})))return null}catch(e){}return e}})},e.prototype.setupTooltips=function(){document.querySelectorAll('[data-bs-toggle="tooltip"]').forEach((function(e){new window.bootstrap.Tooltip(e)}))},e.prototype.setupPopovers=function(){document.querySelectorAll('[data-bs-toggle="help-popover"]').forEach((function(e){var t,n=new window.bootstrap.Popover(e,{html:!0,content:"\n ".concat(e.getAttribute("data-bs-content"),'\n \n "),container:"body"});e.addEventListener("inserted.bs.popover",(function(e){var t=document.querySelector(".popover-body"),r=function(e){(null==t?void 0:t.contains(e.target))||(n.hide(),document.removeEventListener("click",r))};document.addEventListener("click",r)}))}))},e.prototype.scrollNavTabs=function(){document.querySelectorAll(".nav.nav-tabs.scroll-xs > .nav-item > .nav-link.active").forEach((function(e){e.parentElement&&e.parentElement.parentElement&&(e.parentElement.parentElement.scrollLeft=e.offsetLeft)}))},e.prototype.clearGACookies=function(){if(!window.dataLayer){var e=[];try{e=document.cookie.split(";")}catch(e){return}for(var t=0;t-1?n.substring(0,r):n;o.trim().startsWith("_ga")&&(document.cookie="".concat(o,"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=.").concat(window.location.hostname))}}},e}());var Uh=__webpack_require__(7701),Bh=__webpack_require__(7824),Vh=__webpack_require__(6896),zh=__webpack_require__(6531),Wh=__webpack_require__(2372),Gh=__webpack_require__(5228),Yh=__webpack_require__(9892),Xh=__webpack_require__(2122),Jh=__webpack_require__(7421),Zh=__webpack_require__(3920),Kh=__webpack_require__(8240),Qh=__webpack_require__(9966),ef=__webpack_require__(804),tf=[Wh.Z,Jh.Z,zh.Z,Bh.Z],nf=(0,Kh.kZ)({defaultModifiers:tf});const rf=new Map,of={set(e,t,n){rf.has(e)||rf.set(e,new Map);const r=rf.get(e);r.has(t)||0===r.size?r.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(e,t)=>rf.has(e)&&rf.get(e).get(t)||null,remove(e,t){if(!rf.has(e))return;const n=rf.get(e);n.delete(t),0===n.size&&rf.delete(e)}},af="transitionend",sf=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),lf=e=>{e.dispatchEvent(new Event(af))},cf=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),uf=e=>cf(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(sf(e)):null,df=e=>{if(!cf(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const t=e.closest("summary");if(t&&t.parentNode!==n)return!1;if(null===t)return!1}return t},pf=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),hf=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?hf(e.parentNode):null},ff=()=>{},mf=e=>{e.offsetHeight},gf=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,bf=[],vf=()=>"rtl"===document.documentElement.dir,yf=e=>{var t;t=()=>{const t=gf();if(t){const n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}},"loading"===document.readyState?(bf.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of bf)e()})),bf.push(t)):t()},_f=(e,t=[],n=e)=>"function"==typeof e?e(...t):n,kf=(e,t,n=!0)=>{if(!n)return void _f(e);const r=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const r=Number.parseFloat(t),o=Number.parseFloat(n);return r||o?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(t)+5;let o=!1;const a=({target:n})=>{n===t&&(o=!0,t.removeEventListener(af,a),_f(e))};t.addEventListener(af,a),setTimeout((()=>{o||lf(t)}),r)},xf=(e,t,n,r)=>{const o=e.length;let a=e.indexOf(t);return-1===a?!n&&r?e[o-1]:e[0]:(a+=n?1:-1,r&&(a=(a+o)%o),e[Math.max(0,Math.min(a,o-1))])},wf=/[^.]*(?=\..*)\.|.*/,Sf=/\..*/,Af=/::\d+$/,Cf={};let Ef=1;const Tf={mouseenter:"mouseover",mouseleave:"mouseout"},Of=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function Pf(e,t){return t&&`${t}::${Ef++}`||e.uidEvent||Ef++}function Df(e){const t=Pf(e);return e.uidEvent=t,Cf[t]=Cf[t]||{},Cf[t]}function Rf(e,t,n=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===n))}function Lf(e,t,n){const r="string"==typeof t,o=r?n:t||n;let a=Nf(e);return Of.has(a)||(a=e),[r,o,a]}function If(e,t,n,r,o){if("string"!=typeof t||!e)return;let[a,i,s]=Lf(t,n,r);if(t in Tf){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};i=e(i)}const l=Df(e),c=l[s]||(l[s]={}),u=Rf(c,i,a?n:null);if(u)return void(u.oneOff=u.oneOff&&o);const d=Pf(i,t.replace(wf,"")),p=a?function(e,t,n){return function r(o){const a=e.querySelectorAll(t);for(let{target:i}=o;i&&i!==this;i=i.parentNode)for(const s of a)if(s===i)return $f(o,{delegateTarget:i}),r.oneOff&&jf.off(e,o.type,t,n),n.apply(i,[o])}}(e,n,i):function(e,t){return function n(r){return $f(r,{delegateTarget:e}),n.oneOff&&jf.off(e,r.type,t),t.apply(e,[r])}}(e,i);p.delegationSelector=a?n:null,p.callable=i,p.oneOff=o,p.uidEvent=d,c[d]=p,e.addEventListener(s,p,a)}function Mf(e,t,n,r,o){const a=Rf(t[n],r,o);a&&(e.removeEventListener(n,a,Boolean(o)),delete t[n][a.uidEvent])}function Ff(e,t,n,r){const o=t[n]||{};for(const[a,i]of Object.entries(o))a.includes(r)&&Mf(e,t,n,i.callable,i.delegationSelector)}function Nf(e){return e=e.replace(Sf,""),Tf[e]||e}const jf={on(e,t,n,r){If(e,t,n,r,!1)},one(e,t,n,r){If(e,t,n,r,!0)},off(e,t,n,r){if("string"!=typeof t||!e)return;const[o,a,i]=Lf(t,n,r),s=i!==t,l=Df(e),c=l[i]||{},u=t.startsWith(".");if(void 0===a){if(u)for(const n of Object.keys(l))Ff(e,l,n,t.slice(1));for(const[n,r]of Object.entries(c)){const o=n.replace(Af,"");s&&!t.includes(o)||Mf(e,l,i,r.callable,r.delegationSelector)}}else{if(!Object.keys(c).length)return;Mf(e,l,i,a,o?n:null)}},trigger(e,t,n){if("string"!=typeof t||!e)return null;const r=gf();let o=null,a=!0,i=!0,s=!1;t!==Nf(t)&&r&&(o=r.Event(t,n),r(e).trigger(o),a=!o.isPropagationStopped(),i=!o.isImmediatePropagationStopped(),s=o.isDefaultPrevented());const l=$f(new Event(t,{bubbles:a,cancelable:!0}),n);return s&&l.preventDefault(),i&&e.dispatchEvent(l),l.defaultPrevented&&o&&o.preventDefault(),l}};function $f(e,t={}){for(const[n,r]of Object.entries(t))try{e[n]=r}catch(t){Object.defineProperty(e,n,{configurable:!0,get:()=>r})}return e}function Hf(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function qf(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const Uf={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${qf(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${qf(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const r of n){let n=r.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=Hf(e.dataset[r])}return t},getDataAttribute:(e,t)=>Hf(e.getAttribute(`data-bs-${qf(t)}`))};class Bf{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const n=cf(t)?Uf.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...cf(t)?Uf.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[r,o]of Object.entries(t)){const t=e[r],a=cf(t)?"element":null==(n=t)?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(a))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${a}" but expected type "${o}".`)}var n}}class Vf extends Bf{constructor(e,t){super(),(e=uf(e))&&(this._element=e,this._config=this._getConfig(t),of.set(this._element,this.constructor.DATA_KEY,this))}dispose(){of.remove(this._element,this.constructor.DATA_KEY),jf.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){kf(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return of.get(uf(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.1"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const zf=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&"#"!==n?n.trim():null}return sf(t)},Wf={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const n=[];let r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!pf(e)&&df(e)))},getSelectorFromElement(e){const t=zf(e);return t&&Wf.findOne(t)?t:null},getElementFromSelector(e){const t=zf(e);return t?Wf.findOne(t):null},getMultipleElementsFromSelector(e){const t=zf(e);return t?Wf.find(t):[]}},Gf=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;jf.on(document,n,`[data-bs-dismiss="${r}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),pf(this))return;const o=Wf.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(o)[t]()}))};class Yf extends Vf{static get NAME(){return"alert"}close(){if(jf.trigger(this._element,"close.bs.alert").defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),jf.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=Yf.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}Gf(Yf,"close"),yf(Yf);const Xf='[data-bs-toggle="button"]';class Jf extends Vf{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=Jf.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}jf.on(document,"click.bs.button.data-api",Xf,(e=>{e.preventDefault();const t=e.target.closest(Xf);Jf.getOrCreateInstance(t).toggle()})),yf(Jf);const Zf={endCallback:null,leftCallback:null,rightCallback:null},Kf={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Qf extends Bf{constructor(e,t){super(),this._element=e,e&&Qf.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Zf}static get DefaultType(){return Kf}static get NAME(){return"swipe"}dispose(){jf.off(this._element,".bs.swipe")}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),_f(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&_f(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(jf.on(this._element,"pointerdown.bs.swipe",(e=>this._start(e))),jf.on(this._element,"pointerup.bs.swipe",(e=>this._end(e))),this._element.classList.add("pointer-event")):(jf.on(this._element,"touchstart.bs.swipe",(e=>this._start(e))),jf.on(this._element,"touchmove.bs.swipe",(e=>this._move(e))),jf.on(this._element,"touchend.bs.swipe",(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const em="next",tm="prev",nm="left",rm="right",om="slid.bs.carousel",am="carousel",im="active",sm={ArrowLeft:rm,ArrowRight:nm},lm={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},cm={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class um extends Vf{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Wf.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===am&&this.cycle()}static get Default(){return lm}static get DefaultType(){return cm}static get NAME(){return"carousel"}next(){this._slide(em)}nextWhenVisible(){!document.hidden&&df(this._element)&&this.next()}prev(){this._slide(tm)}pause(){this._isSliding&&lf(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?jf.one(this._element,om,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void jf.one(this._element,om,(()=>this.to(e)));const n=this._getItemIndex(this._getActive());if(n===e)return;const r=e>n?em:tm;this._slide(r,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&jf.on(this._element,"keydown.bs.carousel",(e=>this._keydown(e))),"hover"===this._config.pause&&(jf.on(this._element,"mouseenter.bs.carousel",(()=>this.pause())),jf.on(this._element,"mouseleave.bs.carousel",(()=>this._maybeEnableCycle()))),this._config.touch&&Qf.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of Wf.find(".carousel-item img",this._element))jf.on(e,"dragstart.bs.carousel",(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(nm)),rightCallback:()=>this._slide(this._directionToOrder(rm)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new Qf(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=sm[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=Wf.findOne(".active",this._indicatorsElement);t.classList.remove(im),t.removeAttribute("aria-current");const n=Wf.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(im),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const n=this._getActive(),r=e===em,o=t||xf(this._getItems(),n,r,this._config.wrap);if(o===n)return;const a=this._getItemIndex(o),i=t=>jf.trigger(this._element,t,{relatedTarget:o,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:a});if(i("slide.bs.carousel").defaultPrevented)return;if(!n||!o)return;const s=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(a),this._activeElement=o;const l=r?"carousel-item-start":"carousel-item-end",c=r?"carousel-item-next":"carousel-item-prev";o.classList.add(c),mf(o),n.classList.add(l),o.classList.add(l),this._queueCallback((()=>{o.classList.remove(l,c),o.classList.add(im),n.classList.remove(im,c,l),this._isSliding=!1,i(om)}),n,this._isAnimated()),s&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return Wf.findOne(".active.carousel-item",this._element)}_getItems(){return Wf.find(".carousel-item",this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return vf()?e===nm?tm:em:e===nm?em:tm}_orderToDirection(e){return vf()?e===tm?nm:rm:e===tm?rm:nm}static jQueryInterface(e){return this.each((function(){const t=um.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}jf.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",(function(e){const t=Wf.getElementFromSelector(this);if(!t||!t.classList.contains(am))return;e.preventDefault();const n=um.getOrCreateInstance(t),r=this.getAttribute("data-bs-slide-to");return r?(n.to(r),void n._maybeEnableCycle()):"next"===Uf.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())})),jf.on(window,"load.bs.carousel.data-api",(()=>{const e=Wf.find('[data-bs-ride="carousel"]');for(const t of e)um.getOrCreateInstance(t)})),yf(um);const dm="show",pm="collapse",hm="collapsing",fm='[data-bs-toggle="collapse"]',mm={parent:null,toggle:!0},gm={parent:"(null|element)",toggle:"boolean"};class bm extends Vf{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=Wf.find(fm);for(const e of n){const t=Wf.getSelectorFromElement(e),n=Wf.find(t).filter((e=>e===this._element));null!==t&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return mm}static get DefaultType(){return gm}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>bm.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(jf.trigger(this._element,"show.bs.collapse").defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(pm),this._element.classList.add(hm),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(hm),this._element.classList.add(pm,dm),this._element.style[t]="",jf.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[t]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(jf.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,mf(this._element),this._element.classList.add(hm),this._element.classList.remove(pm,dm);for(const e of this._triggerArray){const t=Wf.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0,this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(hm),this._element.classList.add(pm),jf.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(dm)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=uf(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(fm);for(const t of e){const e=Wf.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=Wf.find(":scope .collapse .collapse",this._config.parent);return Wf.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const n=bm.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}))}}jf.on(document,"click.bs.collapse.data-api",fm,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of Wf.getMultipleElementsFromSelector(this))bm.getOrCreateInstance(e,{toggle:!1}).toggle()})),yf(bm);const vm="dropdown",ym="ArrowUp",_m="ArrowDown",km="click.bs.dropdown.data-api",xm="keydown.bs.dropdown.data-api",wm="show",Sm='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Am=`${Sm}.show`,Cm=".dropdown-menu",Em=vf()?"top-end":"top-start",Tm=vf()?"top-start":"top-end",Om=vf()?"bottom-end":"bottom-start",Pm=vf()?"bottom-start":"bottom-end",Dm=vf()?"left-start":"right-start",Rm=vf()?"right-start":"left-start",Lm={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Im={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Mm extends Vf{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=Wf.next(this._element,Cm)[0]||Wf.prev(this._element,Cm)[0]||Wf.findOne(Cm,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Lm}static get DefaultType(){return Im}static get NAME(){return vm}toggle(){return this._isShown()?this.hide():this.show()}show(){if(pf(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!jf.trigger(this._element,"show.bs.dropdown",e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))jf.on(e,"mouseover",ff);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(wm),this._element.classList.add(wm),jf.trigger(this._element,"shown.bs.dropdown",e)}}hide(){if(pf(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!jf.trigger(this._element,"hide.bs.dropdown",e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))jf.off(e,"mouseover",ff);this._popper&&this._popper.destroy(),this._menu.classList.remove(wm),this._element.classList.remove(wm),this._element.setAttribute("aria-expanded","false"),Uf.removeDataAttribute(this._menu,"popper"),jf.trigger(this._element,"hidden.bs.dropdown",e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!cf(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${vm.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===e)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:cf(this._config.reference)?t=uf(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const n=this._getPopperConfig();this._popper=ef.fi(t,this._menu,n)}_isShown(){return this._menu.classList.contains(wm)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Dm;if(e.classList.contains("dropstart"))return Rm;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Tm:Em:t?Pm:Om}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(Uf.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..._f(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const n=Wf.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>df(e)));n.length&&xf(n,t,e===_m,!n.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=Mm.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=Wf.find(Am);for(const n of t){const t=Mm.getInstance(n);if(!t||!1===t._config.autoClose)continue;const r=e.composedPath(),o=r.includes(t._menu);if(r.includes(t._element)||"inside"===t._config.autoClose&&!o||"outside"===t._config.autoClose&&o)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const a={relatedTarget:t._element};"click"===e.type&&(a.clickEvent=e),t._completeHide(a)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,r=[ym,_m].includes(e.key);if(!r&&!n)return;if(t&&!n)return;e.preventDefault();const o=this.matches(Sm)?this:Wf.prev(this,Sm)[0]||Wf.next(this,Sm)[0]||Wf.findOne(Sm,e.delegateTarget.parentNode),a=Mm.getOrCreateInstance(o);if(r)return e.stopPropagation(),a.show(),void a._selectMenuItem(e);a._isShown()&&(e.stopPropagation(),a.hide(),o.focus())}}jf.on(document,xm,Sm,Mm.dataApiKeydownHandler),jf.on(document,xm,Cm,Mm.dataApiKeydownHandler),jf.on(document,km,Mm.clearMenus),jf.on(document,"keyup.bs.dropdown.data-api",Mm.clearMenus),jf.on(document,km,Sm,(function(e){e.preventDefault(),Mm.getOrCreateInstance(this).toggle()})),yf(Mm);const Fm="show",Nm="mousedown.bs.backdrop",jm={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},$m={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Hm extends Bf{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return jm}static get DefaultType(){return $m}static get NAME(){return"backdrop"}show(e){if(!this._config.isVisible)return void _f(e);this._append();const t=this._getElement();this._config.isAnimated&&mf(t),t.classList.add(Fm),this._emulateAnimation((()=>{_f(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(Fm),this._emulateAnimation((()=>{this.dispose(),_f(e)}))):_f(e)}dispose(){this._isAppended&&(jf.off(this._element,Nm),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=uf(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),jf.on(e,Nm,(()=>{_f(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){kf(e,this._getElement(),this._config.isAnimated)}}const qm=".bs.focustrap",Um="backward",Bm={autofocus:!0,trapElement:null},Vm={autofocus:"boolean",trapElement:"element"};class zm extends Bf{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Bm}static get DefaultType(){return Vm}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),jf.off(document,qm),jf.on(document,"focusin.bs.focustrap",(e=>this._handleFocusin(e))),jf.on(document,"keydown.tab.bs.focustrap",(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,jf.off(document,qm))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const n=Wf.focusableChildren(t);0===n.length?t.focus():this._lastTabNavDirection===Um?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?Um:"forward")}}const Wm=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Gm=".sticky-top",Ym="padding-right",Xm="margin-right";class Jm{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,Ym,(t=>t+e)),this._setElementAttributes(Wm,Ym,(t=>t+e)),this._setElementAttributes(Gm,Xm,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,Ym),this._resetElementAttributes(Wm,Ym),this._resetElementAttributes(Gm,Xm)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const r=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);const o=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(o))}px`)}))}_saveInitialAttribute(e,t){const n=e.style.getPropertyValue(t);n&&Uf.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const n=Uf.getDataAttribute(e,t);null!==n?(Uf.removeDataAttribute(e,t),e.style.setProperty(t,n)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(cf(e))t(e);else for(const n of Wf.find(e,this._element))t(n)}}const Zm=".bs.modal",Km="hidden.bs.modal",Qm="show.bs.modal",eg="modal-open",tg="show",ng="modal-static",rg={backdrop:!0,focus:!0,keyboard:!0},og={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class ag extends Vf{constructor(e,t){super(e,t),this._dialog=Wf.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Jm,this._addEventListeners()}static get Default(){return rg}static get DefaultType(){return og}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||jf.trigger(this._element,Qm,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(eg),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){this._isShown&&!this._isTransitioning&&(jf.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(tg),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){jf.off(window,Zm),jf.off(this._dialog,Zm),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Hm({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new zm({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=Wf.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),mf(this._element),this._element.classList.add(tg),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,jf.trigger(this._element,"shown.bs.modal",{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){jf.on(this._element,"keydown.dismiss.bs.modal",(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),jf.on(window,"resize.bs.modal",(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),jf.on(this._element,"mousedown.dismiss.bs.modal",(e=>{jf.one(this._element,"click.dismiss.bs.modal",(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(eg),this._resetAdjustments(),this._scrollBar.reset(),jf.trigger(this._element,Km)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(jf.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(ng)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(ng),this._queueCallback((()=>{this._element.classList.remove(ng),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){const e=vf()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!n&&e){const e=vf()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const n=ag.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}}))}}jf.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(e){const t=Wf.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),jf.one(t,Qm,(e=>{e.defaultPrevented||jf.one(t,Km,(()=>{df(this)&&this.focus()}))}));const n=Wf.findOne(".modal.show");n&&ag.getInstance(n).hide(),ag.getOrCreateInstance(t).toggle(this)})),Gf(ag),yf(ag);const ig="show",sg="showing",lg="hiding",cg=".offcanvas.show",ug="hidePrevented.bs.offcanvas",dg="hidden.bs.offcanvas",pg={backdrop:!0,keyboard:!0,scroll:!1},hg={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class fg extends Vf{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return pg}static get DefaultType(){return hg}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||jf.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new Jm).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(sg),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(ig),this._element.classList.remove(sg),jf.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})}),this._element,!0))}hide(){this._isShown&&(jf.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(lg),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(ig,lg),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new Jm).reset(),jf.trigger(this._element,dg)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Hm({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():jf.trigger(this._element,ug)}:null})}_initializeFocusTrap(){return new zm({trapElement:this._element})}_addEventListeners(){jf.on(this._element,"keydown.dismiss.bs.offcanvas",(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():jf.trigger(this._element,ug))}))}static jQueryInterface(e){return this.each((function(){const t=fg.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}jf.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(e){const t=Wf.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),pf(this))return;jf.one(t,dg,(()=>{df(this)&&this.focus()}));const n=Wf.findOne(cg);n&&n!==t&&fg.getInstance(n).hide(),fg.getOrCreateInstance(t).toggle(this)})),jf.on(window,"load.bs.offcanvas.data-api",(()=>{for(const e of Wf.find(cg))fg.getOrCreateInstance(e).show()})),jf.on(window,"resize.bs.offcanvas",(()=>{for(const e of Wf.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&fg.getOrCreateInstance(e).hide()})),Gf(fg),yf(fg);const mg={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},gg=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),bg=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,vg=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?!gg.has(n)||Boolean(bg.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(n)))},yg={allowList:mg,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
    "},_g={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},kg={entry:"(string|element|function|null)",selector:"(string|element)"};class xg extends Bf{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return yg}static get DefaultType(){return _g}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},kg)}_setContent(e,t,n){const r=Wf.findOne(n,e);r&&((t=this._resolvePossibleFunction(t))?cf(t)?this._putElementInTemplate(uf(t),r):this._config.html?r.innerHTML=this._maybeSanitize(t):r.textContent=t:r.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,n){if(!e.length)return e;if(n&&"function"==typeof n)return n(e);const r=(new window.DOMParser).parseFromString(e,"text/html"),o=[].concat(...r.body.querySelectorAll("*"));for(const e of o){const n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}const r=[].concat(...e.attributes),o=[].concat(t["*"]||[],t[n]||[]);for(const t of r)vg(t,o)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return _f(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const wg=new Set(["sanitize","allowList","sanitizeFn"]),Sg="fade",Ag="show",Cg=".modal",Eg="hide.bs.modal",Tg="hover",Og="focus",Pg={AUTO:"auto",TOP:"top",RIGHT:vf()?"left":"right",BOTTOM:"bottom",LEFT:vf()?"right":"left"},Dg={allowList:mg,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},Rg={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Lg extends Vf{constructor(t,n){if(void 0===e)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,n),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Dg}static get DefaultType(){return Rg}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),jf.off(this._element.closest(Cg),Eg,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=jf.trigger(this._element,this.constructor.eventName("show")),t=(hf(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),jf.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(Ag),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))jf.on(e,"mouseover",ff);this._queueCallback((()=>{jf.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!jf.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(Ag),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))jf.off(e,"mouseover",ff);this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),jf.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(Sg,Ag),t.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(Sg),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new xg({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Sg)}_isShown(){return this.tip&&this.tip.classList.contains(Ag)}_createPopper(e){const t=_f(this._config.placement,[this,e,this._element]),n=Pg[t.toUpperCase()];return ef.fi(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return _f(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,..._f(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)jf.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{this._initializeOnDelegatedTarget(e).toggle()}));else if("manual"!==t){const e=t===Tg?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=t===Tg?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");jf.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?Og:Tg]=!0,t._enter()})),jf.on(this._element,n,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?Og:Tg]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},jf.on(this._element.closest(Cg),Eg,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=Uf.getDataAttributes(this._element);for(const e of Object.keys(t))wg.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:uf(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const t=Lg.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}yf(Lg);const Ig={...Lg.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Mg={...Lg.DefaultType,content:"(null|string|element|function)"};class Fg extends Lg{static get Default(){return Ig}static get DefaultType(){return Mg}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=Fg.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}yf(Fg);const Ng="click.bs.scrollspy",jg="active",$g="[href]",Hg={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},qg={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ug extends Vf{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return Hg}static get DefaultType(){return qg}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=uf(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map((e=>Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(jf.off(this._config.target,Ng),jf.on(this._config.target,Ng,$g,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const n=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:r,behavior:"smooth"});n.scrollTop=r}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,o=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const a of e){if(!a.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(a));continue}const e=a.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&e){if(n(a),!r)return}else o||e||n(a)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=Wf.find($g,this._config.target);for(const t of e){if(!t.hash||pf(t))continue;const e=Wf.findOne(decodeURI(t.hash),this._element);df(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(jg),this._activateParents(e),jf.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))Wf.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(jg);else for(const t of Wf.parents(e,".nav, .list-group"))for(const e of Wf.prev(t,".nav-link, .nav-item > .nav-link, .list-group-item"))e.classList.add(jg)}_clearActiveClass(e){e.classList.remove(jg);const t=Wf.find("[href].active",e);for(const e of t)e.classList.remove(jg)}static jQueryInterface(e){return this.each((function(){const t=Ug.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}jf.on(window,"load.bs.scrollspy.data-api",(()=>{for(const e of Wf.find('[data-bs-spy="scroll"]'))Ug.getOrCreateInstance(e)})),yf(Ug);const Bg="ArrowLeft",Vg="ArrowRight",zg="ArrowUp",Wg="ArrowDown",Gg="Home",Yg="End",Xg="active",Jg="fade",Zg="show",Kg='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Qg=`.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), ${Kg}`;class eb extends Vf{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),jf.on(this._element,"keydown.bs.tab",(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),n=t?jf.trigger(t,"hide.bs.tab",{relatedTarget:e}):null;jf.trigger(e,"show.bs.tab",{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){e&&(e.classList.add(Xg),this._activate(Wf.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),jf.trigger(e,"shown.bs.tab",{relatedTarget:t})):e.classList.add(Zg)}),e,e.classList.contains(Jg)))}_deactivate(e,t){e&&(e.classList.remove(Xg),e.blur(),this._deactivate(Wf.getElementFromSelector(e)),this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),jf.trigger(e,"hidden.bs.tab",{relatedTarget:t})):e.classList.remove(Zg)}),e,e.classList.contains(Jg)))}_keydown(e){if(![Bg,Vg,zg,Wg,Gg,Yg].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=this._getChildren().filter((e=>!pf(e)));let n;if([Gg,Yg].includes(e.key))n=t[e.key===Gg?0:t.length-1];else{const r=[Vg,Wg].includes(e.key);n=xf(t,e.target,r,!0)}n&&(n.focus({preventScroll:!0}),eb.getOrCreateInstance(n).show())}_getChildren(){return Wf.find(Qg,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=Wf.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const n=this._getOuterElement(e);if(!n.classList.contains("dropdown"))return;const r=(e,r)=>{const o=Wf.findOne(e,n);o&&o.classList.toggle(r,t)};r(".dropdown-toggle",Xg),r(".dropdown-menu",Zg),n.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(Xg)}_getInnerElement(e){return e.matches(Qg)?e:Wf.findOne(Qg,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=eb.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}jf.on(document,"click.bs.tab",Kg,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),pf(this)||eb.getOrCreateInstance(this).show()})),jf.on(window,"load.bs.tab",(()=>{for(const e of Wf.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))eb.getOrCreateInstance(e)})),yf(eb);const tb="hide",nb="show",rb="showing",ob={animation:"boolean",autohide:"boolean",delay:"number"},ab={animation:!0,autohide:!0,delay:5e3};class ib extends Vf{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ab}static get DefaultType(){return ob}static get NAME(){return"toast"}show(){jf.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(tb),mf(this._element),this._element.classList.add(nb,rb),this._queueCallback((()=>{this._element.classList.remove(rb),jf.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(jf.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(rb),this._queueCallback((()=>{this._element.classList.add(tb),this._element.classList.remove(rb,nb),jf.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(nb),super.dispose()}isShown(){return this._element.classList.contains(nb)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){jf.on(this._element,"mouseover.bs.toast",(e=>this._onInteraction(e,!0))),jf.on(this._element,"mouseout.bs.toast",(e=>this._onInteraction(e,!1))),jf.on(this._element,"focusin.bs.toast",(e=>this._onInteraction(e,!0))),jf.on(this._element,"focusout.bs.toast",(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=ib.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}Gf(ib),yf(ib),window.bootstrap=t,qh.setup()})()})(); \ No newline at end of file diff --git a/peachjam/static/stylesheets/_global.scss b/peachjam/static/stylesheets/_global.scss index c6927266e..8e4725ac0 100644 --- a/peachjam/static/stylesheets/_global.scss +++ b/peachjam/static/stylesheets/_global.scss @@ -165,7 +165,7 @@ footer { } html[data-user-agent*='pocketlaw'] .pocketlaw-hidden { - display: none; + display: none !important; } // force font size on mobile to 16 px @@ -174,3 +174,8 @@ html[data-user-agent*='pocketlaw'] .pocketlaw-hidden { font-size: 16px !important; } } + +.facets-scrollable { + max-height: 25vh; + overflow-y: auto; +} diff --git a/peachjam/static/stylesheets/components/_loaders.scss b/peachjam/static/stylesheets/components/_loaders.scss index 98fa5c819..44f5d2834 100644 --- a/peachjam/static/stylesheets/components/_loaders.scss +++ b/peachjam/static/stylesheets/components/_loaders.scss @@ -19,3 +19,12 @@ 100% { transform: rotate(360deg); } } + +.htmx-progress { + opacity: 0; + height: 0.3rem; +} + +.htmx-progress.htmx-request { + opacity: 1; +} diff --git a/peachjam/static/stylesheets/components/_tables.scss b/peachjam/static/stylesheets/components/_tables.scss index bb58a5b34..79031e1de 100644 --- a/peachjam/static/stylesheets/components/_tables.scss +++ b/peachjam/static/stylesheets/components/_tables.scss @@ -34,18 +34,12 @@ table.doc-table { } // "child" rows for legislation subleg - .has-children .bi-caret-down-fill { - display: none; + .cell-toggle i::before { + content: "\f229"; } - .has-children.expanded { - .bi-caret-right-fill { - display: none; - } - - .bi-caret-down-fill { - display: inline; - } + .cell-toggle .collapsed i::before { + content: "\f231"; } .doc-table-children { diff --git a/peachjam/templates/peachjam/_count_and_search.html b/peachjam/templates/peachjam/_count_and_search.html new file mode 100644 index 000000000..6a9232acb --- /dev/null +++ b/peachjam/templates/peachjam/_count_and_search.html @@ -0,0 +1,17 @@ +
    +
    + {% block document-count %} + {% include 'peachjam/_document_count.html' %} + {% endblock %} + {% block help %} + {% if help_link %} + {% include "peachjam/_help_button.html" %} + {% endif %} + {% endblock %} +
    +
    + {% block quick-search %} + {% include 'peachjam/_quick_search.html' %} + {% endblock %} +
    +
    diff --git a/peachjam/templates/peachjam/_document_count.html b/peachjam/templates/peachjam/_document_count.html index e79adcfca..ba0e6d911 100644 --- a/peachjam/templates/peachjam/_document_count.html +++ b/peachjam/templates/peachjam/_document_count.html @@ -1,8 +1,8 @@ -{% load i18n %} -

    - {% blocktrans trimmed count doc_count=doc_count %} - {{ doc_count }} document +{% load i18n humanize %} +

    + {% blocktrans trimmed with n_docs=doc_count|intcomma count counter=doc_count %} + {{ n_docs }} document {% plural %} - {{ doc_count }} documents + {{ n_docs }} documents {% endblocktrans %} -

    +
    diff --git a/peachjam/templates/peachjam/_document_table.html b/peachjam/templates/peachjam/_document_table.html index 661c6b5fc..96af54793 100644 --- a/peachjam/templates/peachjam/_document_table.html +++ b/peachjam/templates/peachjam/_document_table.html @@ -1,50 +1,54 @@ {% load i18n peachjam %} -
    - +
    +
    - - {% if MULTIPLE_JURISDICTIONS or MULTIPLE_LOCALITIES %} - + {% if doc_table_toggle %}{% endif %} + + {% if doc_table_citations %}{% endif %} + {% if doc_table_show_jurisdiction %} + {% if MULTIPLE_JURISDICTIONS or MULTIPLE_LOCALITIES %} + + {% endif %} {% endif %} {% if doc_table_show_author %}{% endif %} {% if doc_table_show_court %}{% endif %} {% if doc_table_show_doc_type %}{% endif %} - + - - {% for document in documents %} - - - {% if MULTIPLE_JURISDICTIONS %} - - {% elif MULTIPLE_LOCALITIES %} - - {% endif %} - {% if doc_table_show_author %}{% endif %} - {% if doc_table_show_court %}{% endif %} - {% if doc_table_show_doc_type %}{% endif %} - - - - {% endfor %} - + {% for document in documents %} + {% include 'peachjam/_document_table_row.html' %} + {% if document.children %} + + {% for d in document.children %} + {% include 'peachjam/_document_table_row.html' with document=d %} + {% endfor %} + + {% endif %} + {% endfor %}
    {% trans 'Title' %}{% trans 'Jurisdiction' %} +
    + {% trans 'Title' %} + +
    +
    {% trans 'Jurisdiction' %}{% trans 'Date' %} +
    + {% trans 'Date' %} + +
    +
    - {{ document.title }} - - {% jurisdiction_icon document %} {{ document.jurisdiction|default_if_none:'' }} - {% if document.locality %}· {{ document.locality }}{% endif %} - {{ document.locality|default_if_none:'' }}{{ document.author|default_if_none:'' }}{{ document.court|default_if_none:'' }}{{ document.get_doc_type_display }}{{ document.date }} - {% if document.work.languages|length > 1 %} - - - - {% endif %} -
    + {% if not documents %} +

    {% trans 'No documents found.' %}

    + {% endif %} + {% if documents and not hide_pagination %} + {% include 'peachjam/_pagination.html' %} + {% endif %}
    -{% if not hide_pagination %} - {% include 'peachjam/_pagination.html' %} -{% endif %} diff --git a/peachjam/templates/peachjam/_document_table_form.html b/peachjam/templates/peachjam/_document_table_form.html new file mode 100644 index 000000000..6ed649c5e --- /dev/null +++ b/peachjam/templates/peachjam/_document_table_form.html @@ -0,0 +1,147 @@ +{% load i18n %} +
    + +
    +
    + +
    +
    +
    +
    +
    +
      + {% if taxonomy_tree|length > 0 and not is_leaf_node %} +
      {% include "peachjam/_taxonomy_tree_facet.html" %}
      + {% endif %} +
    • + {% trans 'Filters' %} + {% if show_clear_all %} + + {% endif %} +
    • + {% for facet_name, facet in facet_data.items %} + {% if facet.options %} +
    • +
      + {{ facet.label }} + {% if facet.values %} + + {% endif %} +
      + {% if facet_name == "alphabet" %} +
      +
      + {% for option in facet.options %} + + {% endfor %} +
      +
      + {% else %} +
      + {% for option in facet.options %} +
      +
      + + +
      +
      + {% endfor %} +
      + {% endif %} +
    • + {% endif %} + {% endfor %} +
    +
    +
    +
    + {% block content %} + {% block filter-documents %} +
    +
    + +
    +
    +
    {% trans "Sort by" %}:
    + +
    +
    + +
    +
    + {% endblock %} +
    +
    +
    + {% include 'peachjam/_document_table.html' %} + {% endblock %} +
    +
    +
    +
    diff --git a/peachjam/templates/peachjam/_document_table_row.html b/peachjam/templates/peachjam/_document_table_row.html new file mode 100644 index 000000000..aac3d4499 --- /dev/null +++ b/peachjam/templates/peachjam/_document_table_row.html @@ -0,0 +1,47 @@ +{% load i18n peachjam %} + + {% if doc_table_toggle %} + + {% if document.children %} + + {% endif %} + + {% endif %} + {% if document.is_group %} + {{ document.title }} + {% else %} + + {{ document.title }} + {% if document.work.languages|length > 1 %} + + + + {% endif %} + {% include 'peachjam/_labels.html' with labels=document.labels.all %} + + {% endif %} + {% if doc_table_citations %}{{ document.citation|default_if_none:'' }}{% endif %} + {% if doc_table_show_jurisdiction %} + {% if MULTIPLE_JURISDICTIONS %} + + {% jurisdiction_icon document %} {{ document.jurisdiction|default_if_none:'' }} + {% if document.locality %}· {{ document.locality }}{% endif %} + + {% elif MULTIPLE_LOCALITIES %} + {{ document.locality|default_if_none:'' }} + {% endif %} + {% endif %} + {% if doc_table_show_author %}{{ document.author|default_if_none:'' }}{% endif %} + {% if doc_table_show_court %}{{ document.court|default_if_none:'' }}{% endif %} + {% if doc_table_show_doc_type %}{{ document.get_doc_type_display }}{% endif %} + {{ document.date|default_if_none:'' }} + diff --git a/peachjam/templates/peachjam/_grouped_judgments_table.html b/peachjam/templates/peachjam/_grouped_judgments_table.html deleted file mode 100644 index 8aacfde20..000000000 --- a/peachjam/templates/peachjam/_grouped_judgments_table.html +++ /dev/null @@ -1,21 +0,0 @@ -{% extends 'peachjam/_judgment_table.html' %} -{% block table-body %} - - {% for item in grouped_documents %} - {% if item.judgments %} - - {{ item.key }} - - {% for judgment in item.judgments %} - - - {{ judgment.title }} - {% include 'peachjam/_labels.html' with labels=judgment.labels.all %} - - {{ judgment.date }} - - {% endfor %} - {% endif %} - {% endfor %} - -{% endblock %} diff --git a/peachjam/templates/peachjam/_help_button.html b/peachjam/templates/peachjam/_help_button.html index 62547638f..3980dfbbc 100644 --- a/peachjam/templates/peachjam/_help_button.html +++ b/peachjam/templates/peachjam/_help_button.html @@ -1,7 +1,7 @@ {% load i18n %} {% if PEACHJAM_SETTINGS.user_help_link %} diff --git a/peachjam/templates/peachjam/_judgment_table.html b/peachjam/templates/peachjam/_judgment_table.html deleted file mode 100644 index 88b15509f..000000000 --- a/peachjam/templates/peachjam/_judgment_table.html +++ /dev/null @@ -1,22 +0,0 @@ -{% load i18n %} - - - - - - - - {% block table-body %} - - {% for document in documents %} - - - - - {% endfor %} - - {% endblock %} -
    {% trans 'Title' %}{% trans 'Date' %}
    - {{ document.title }} - {% include 'peachjam/_labels.html' with labels=document.labels.all %} - {{ document.date }}
    diff --git a/peachjam/templates/peachjam/_quick_search.html b/peachjam/templates/peachjam/_quick_search.html index 16521ad1e..1565d60e1 100644 --- a/peachjam/templates/peachjam/_quick_search.html +++ b/peachjam/templates/peachjam/_quick_search.html @@ -1,7 +1,6 @@ -
    + diff --git a/peachjam/templates/peachjam/court_detail.html b/peachjam/templates/peachjam/court_detail.html index 5eed9cbdb..3e9bacefc 100644 --- a/peachjam/templates/peachjam/court_detail.html +++ b/peachjam/templates/peachjam/court_detail.html @@ -38,9 +38,9 @@ {% endif %} {% endwith %} {% endblock %} +{% block page-title %}

    {{ page_title }}

    {% endblock %} {% block page-header %} -

    {{ page_title }}

    - {% include 'peachjam/_document_count.html' %} + {{ block.super }} {% block court_list %} {% include 'peachjam/_registries.html' %} {% endblock %} @@ -51,14 +51,3 @@

    {{ page_title }}

    {% include 'peachjam/_court_months_list.html' %} {% endblock %} {% endblock %} -{% block content %} - {% if grouped_documents %} - {% include 'peachjam/_grouped_judgments_table.html' %} - {% include 'peachjam/_pagination.html' %} - {% elif documents %} - {% include 'peachjam/_judgment_table.html' %} - {% include 'peachjam/_pagination.html' %} - {% else %} -

    {% trans 'No documents found.' %}

    - {% endif %} -{% endblock %} diff --git a/peachjam/templates/peachjam/judgment_list.html b/peachjam/templates/peachjam/judgment_list.html index a2100fe1e..2d7e280ef 100644 --- a/peachjam/templates/peachjam/judgment_list.html +++ b/peachjam/templates/peachjam/judgment_list.html @@ -6,14 +6,14 @@ {% block page-content %}
    -
    - {% block judgment_heading %} -

    {% trans 'Judgments' %}

    + {% block page-header %} + {% block page-title %} +

    {% trans 'Judgments' %}

    {% endblock %} - {% include "peachjam/_document_count.html" %} -
    - {% include "peachjam/_quick_search.html" %} - {% include "peachjam/_help_button.html" with link="judgments/courts" %} + {% block count-and-search %} + {% include 'peachjam/_count_and_search.html' %} + {% endblock %} + {% endblock %} {% include 'peachjam/_court_list.html' %}

    {% if title %} diff --git a/peachjam/templates/peachjam/layouts/document_list.html b/peachjam/templates/peachjam/layouts/document_list.html index f1b235c07..1d935420b 100644 --- a/peachjam/templates/peachjam/layouts/document_list.html +++ b/peachjam/templates/peachjam/layouts/document_list.html @@ -1,70 +1,22 @@ {% extends 'peachjam/layouts/main.html' %} {% load i18n %} -{% block title %}{{ document.title }}{% endblock %} +{% block title %} + {% trans "Documents" %} +{% endblock %} {% block page-content %} {% block breadcrumbs %}{% endblock %} {% block entity-profile %}{% endblock %}
    -
    -
    - -
    -
    -
    - {% block mobile-taxonomy-list %}{% endblock %} -
    -
    -
    -
    {% block page-header %} {% block page-title %}

    {% trans 'Documents' %}

    {% endblock %} - {% block document-count %} - {% include 'peachjam/_document_count.html' %} + {% block count-and-search %} + {% include 'peachjam/_count_and_search.html' %} {% endblock %} {% endblock %} - {% block quick-search %} - {% include 'peachjam/_quick_search.html' %} - {% endblock %} - {% block page-list-facets %} -
    - -
    -
    -
    -
    - {% block desktop-taxonomy-list %}{% endblock %} -
    -
    -
    - {% endblock %} -
    -
    - {% block content %} - {% if documents %} - {% include 'peachjam/_document_table.html' %} - {% else %} -

    {% trans 'No documents found.' %}

    - {% endif %} - {% endblock %} -
    -
    -
    - {{ facet_data|json_script:"facet-data" }} - {{ labels|json_script:"data-labels" }} + {% block nav-tabs %}{% endblock %} + {% include "peachjam/_document_table_form.html" %} {% block taxonomy-json %}{% endblock %}
    {% endblock %} diff --git a/peachjam/templates/peachjam/taxonomy_detail.html b/peachjam/templates/peachjam/taxonomy_detail.html index 3215e8daf..f97f81d1d 100644 --- a/peachjam/templates/peachjam/taxonomy_detail.html +++ b/peachjam/templates/peachjam/taxonomy_detail.html @@ -25,14 +25,4 @@ {% endwith %} {% endif %} {% endblock %} -{% block mobile-taxonomy-list %} - {% if taxonomy_tree|length > 0 and not is_leaf_node %} -
    {% include "peachjam/_taxonomy_tree_facet.html" %}
    - {% endif %} -{% endblock %} -{% block desktop-taxonomy-list %} - {% if taxonomy_tree|length > 0 and not is_leaf_node %} -
    {% include "peachjam/_taxonomy_tree_facet.html" %}
    - {% endif %} -{% endblock %} {% block taxonomy-json %}{{ taxonomy_tree|json_script:"taxonomy_tree" }}{% endblock %} diff --git a/peachjam/templates/peachjam/taxonomy_first_level_detail.html b/peachjam/templates/peachjam/taxonomy_first_level_detail.html index f0d1aa21f..f1eaa6bb5 100644 --- a/peachjam/templates/peachjam/taxonomy_first_level_detail.html +++ b/peachjam/templates/peachjam/taxonomy_first_level_detail.html @@ -17,7 +17,7 @@

    {{ taxonomy }}

    {% if help_link %} - {% include "peachjam/_help_button.html" with link=help_link %} + {% include "peachjam/_help_button.html" %} {% endif %} {% if taxonomy.get_children|length > 0 %}
      diff --git a/peachjam/tests/test_forms.py b/peachjam/tests/test_forms.py index 0ef1f122b..51e2dd54b 100644 --- a/peachjam/tests/test_forms.py +++ b/peachjam/tests/test_forms.py @@ -8,7 +8,7 @@ class BaseDocumentFilterFormTestCase(TestCase): def test_years_filter_with_single_year(self): response = self.client.get("/legal_instruments/?years=2007") self.assertEqual(response.status_code, 200) - self.assertEqual(response.context["facet_data"]["years"], [2007]) + self.assertEqual(response.context["facet_data"]["years"]["options"], ["2007"]) def test_alphabet_filter(self): response = self.client.get("/legal_instruments/?alphabet=a") diff --git a/peachjam/tests/test_views.py b/peachjam/tests/test_views.py index fe91e57b2..0acbd4f5a 100644 --- a/peachjam/tests/test_views.py +++ b/peachjam/tests/test_views.py @@ -101,7 +101,8 @@ def test_legislation_listing(self): documents, ) self.assertEqual( - [1969, 2005, 2010, 2020], sorted(response.context["facet_data"]["years"]) + ["1969", "2005", "2010", "2020"], + sorted(response.context["facet_data"]["years"]["options"]), ) def test_legislation_detail(self): @@ -126,7 +127,7 @@ def test_legal_instrument_listing(self): "African Charter on Democracy, Elections and Governance", documents, ) - self.assertEqual(response.context["facet_data"]["years"], [2007]) + self.assertEqual(response.context["facet_data"]["years"]["options"], ["2007"]) def test_legal_instrument_detail(self): response = self.client.get( @@ -150,7 +151,7 @@ def test_generic_document_listing(self): "Activity Report of the Pan-African Parliament, July 2016 to June 2017", documents, ) - self.assertEqual(response.context["facet_data"]["years"], [2017]) + self.assertEqual(response.context["facet_data"]["years"]["options"], ["2017"]) def test_generic_document_detail(self): response = self.client.get( diff --git a/peachjam/views/courts.py b/peachjam/views/courts.py index 584531aef..ed401338c 100644 --- a/peachjam/views/courts.py +++ b/peachjam/views/courts.py @@ -1,5 +1,4 @@ from functools import cached_property -from itertools import groupby from math import ceil from django.http import Http404 @@ -22,6 +21,7 @@ class FilteredJudgmentView(FilteredDocumentListView): "judges", "labels", "attorneys", "outcomes" ) exclude_facets = [] + group_by_date = "month-year" def base_view_name(self): return _("Judgments") @@ -35,12 +35,13 @@ def get_context_data(self, **kwargs): context["doc_type"] = "Judgment" context["page_title"] = self.page_title() context["labels"].update({"judge": Judge.model_label_plural}) - - if not self.form.cleaned_data.get("alphabet"): - context["grouped_documents"] = self.grouped_judgments(context["documents"]) + context["doc_table_show_jurisdiction"] = False self.populate_years(context) self.populate_facets(context) + self.show_facet_clear_all(context) + + context["documents"] = self.group_documents(context["documents"]) return context @@ -57,7 +58,12 @@ def populate_facets(self, context): .distinct() if judge ) - context["facet_data"]["judges"] = judges + context["facet_data"]["judges"] = { + "label": _("Judges"), + "type": "checkbox", + "options": judges, + "values": self.request.GET.getlist("judges"), + } if "outcomes" not in self.exclude_facets: outcomes = list( @@ -70,7 +76,12 @@ def populate_facets(self, context): .distinct() if outcome ) - context["facet_data"]["outcomes"] = outcomes + context["facet_data"]["outcomes"] = { + "label": _("Outcomes"), + "type": "checkbox", + "options": outcomes, + "values": self.request.GET.getlist("outcomes"), + } if "attorneys" not in self.exclude_facets: attorneys = list( @@ -83,23 +94,26 @@ def populate_facets(self, context): .distinct() if attorney ) - context["facet_data"]["attorneys"] = attorneys + context["facet_data"]["attorneys"] = { + "label": _("Attorneys"), + "type": "checkbox", + "options": attorneys, + "values": self.request.GET.getlist("attorneys"), + } if "alphabet" not in self.exclude_facets: - context["facet_data"]["alphabet"] = lowercase_alphabet() + context["facet_data"]["alphabet"] = { + "label": _("Alphabet"), + "type": "radio", + "options": lowercase_alphabet(), + "values": self.request.GET.get("alphabet"), + } def populate_years(self, context): context["years"] = self.get_base_queryset(exclude=["year", "month"]).dates( "date", "year", order="DESC" ) - def grouped_judgments(self, documents): - """Group the judgments by month and return a list of dicts with the month name and judgments for that month""" - # Group documents by month - groups = groupby(documents, lambda d: f"{MONTHS[d.date.month]} {d.date.year}") - - return [{"key": key, "judgments": list(group)} for key, group in groups] - class CourtDetailView(FilteredJudgmentView): template_name = "peachjam/court_detail.html" diff --git a/peachjam/views/generic_views.py b/peachjam/views/generic_views.py index 772d839bb..f7cb923be 100644 --- a/peachjam/views/generic_views.py +++ b/peachjam/views/generic_views.py @@ -3,6 +3,8 @@ from django.http.response import HttpResponse from django.middleware.csrf import get_token from django.shortcuts import get_object_or_404 +from django.utils.dates import MONTHS +from django.utils.text import gettext_lazy as _ from django.views.generic import DetailView, ListView, View from lxml import html @@ -31,8 +33,14 @@ class DocumentListView(ListView): paginate_by = 50 model = CoreDocument queryset = CoreDocument.objects.select_related( - "nature", "work", "jurisdiction", "locality" - ) + "nature", + "work", + "jurisdiction", + "locality", + ).prefetch_related("labels") + + # when grouping by date, group by year, or month and year? ("year" and "month-year" are the only options) + group_by_date = "year" def get_base_queryset(self, *args, **kwargs): qs = self.queryset if self.queryset is not None else self.model.objects @@ -42,6 +50,44 @@ def get_queryset(self): qs = self.get_base_queryset() return qs.preferred_language(get_language(self.request)) + def get_context_data(self, *args, **kwargs): + return super().get_context_data( + doc_table_show_jurisdiction=True, *args, **kwargs + ) + + def group_documents(self, documents, group_by): + if not group_by: + return documents + + def grouper(d): + if group_by == "date": + if self.group_by_date == "month-year": + return f"{MONTHS[d.date.month]} {d.date.year}" + else: + return d.date.year + elif group_by == "title": + return d.title[0].upper() + + class Group: + is_group = True + + def __init__(self, title): + self.title = title + + docs = [] + for key, group in itertools.groupby(documents, grouper): + docs.append(Group(key)) + docs.extend(group) + + return docs + + def get_template_names(self): + if self.request.htmx: + if self.request.htmx.target == "doc-table": + return ["peachjam/_document_table.html"] + return ["peachjam/_document_table_form.html"] + return super().get_template_names() + class FilteredDocumentListView(DocumentListView): """Generic list view for filtered document lists.""" @@ -51,15 +97,21 @@ class FilteredDocumentListView(DocumentListView): # This is a bit more expensive and so is opt-in. It is only necessary for document types # that have multiple points-in-time (dated expressions), such as Legislation. latest_expression_only = False + # default values to pre-populate the form with + form_defaults = None def get(self, request, *args, **kwargs): - self.form = self.form_class(request.GET) + self.form = self.get_form() self.form.is_valid() return super().get(request, *args, **kwargs) + def get_form(self): + return self.form_class(self.form_defaults, self.request.GET) + def get_queryset(self): qs = super().get_queryset() - filtered_qs = self.filter_queryset(qs) + # filter the queryset, including filtering on the form's query string + filtered_qs = self.filter_queryset(qs, filter_q=True) if self.latest_expression_only: # Getting only the latest expression requires ordering on the work, which breaks the actual ordering @@ -75,13 +127,14 @@ def get_queryset(self): return filtered_qs - def filter_queryset(self, qs): - return self.form.filter_queryset(qs) + def filter_queryset(self, qs, filter_q=False): + return self.form.filter_queryset(qs, filter_q=filter_q) def get_context_data(self, **kwargs): - context = super().get_context_data(**kwargs) + context = super().get_context_data(form=self.form, **kwargs) self.add_facets(context) + self.show_facet_clear_all(context) context["doc_count"] = context["paginator"].count context["labels"] = {"author": Author.model_label} @@ -118,16 +171,63 @@ def add_facets(self, context): .values_list("date__year", flat=True) .distinct() ) + taxonomies = list( + self.form.filter_queryset(self.get_base_queryset(), exclude="taxonomies") + .filter(taxonomies__topic__isnull=False) + .order_by() + .values_list("taxonomies__topic__name", flat=True) + .distinct() + ) context["doc_table_show_author"] = bool(authors) context["doc_table_show_doc_type"] = bool(natures) context["facet_data"] = { - "years": years, - "authors": authors, - "alphabet": lowercase_alphabet(), - "natures": natures, + "years": { + "label": _("Years"), + "type": "checkbox", + "options": [str(y) for y in sorted(years, reverse=True)], + "values": self.request.GET.getlist("years"), + }, + "authors": { + "label": _("Authors"), + "type": "checkbox", + "options": authors, + "values": self.request.GET.getlist("authors"), + }, + "natures": { + "label": _("Document nature"), + "type": "radio", + "options": natures, + "values": self.request.GET.getlist("natures"), + }, + "taxonomies": { + "label": _("Topics"), + "type": "checkbox", + "options": taxonomies, + "values": self.request.GET.getlist("taxonomies"), + }, + "alphabet": { + "label": _("Alphabet"), + "type": "radio", + "options": lowercase_alphabet(), + "values": self.request.GET.get("alphabet"), + }, } + def show_facet_clear_all(self, context): + context["show_clear_all"] = any( + [f["values"] for f in context["facet_data"].values()] + ) + + def group_documents(self, documents, group_by=None): + # determine what to group by + if group_by is None: + group_by = documents.query.order_by[0] + if group_by.startswith("-"): + group_by = group_by[1:] + + return super().group_documents(documents, group_by) + class BaseDocumentDetailView(DetailView): slug_field = "expression_frbr_uri" diff --git a/peachjam/views/home.py b/peachjam/views/home.py index cfe3b27ed..18732bbdf 100644 --- a/peachjam/views/home.py +++ b/peachjam/views/home.py @@ -16,18 +16,26 @@ class HomePageView(TemplateView): def get_context_data(self, **kwargs): context = super().get_context_data(**kwargs) - recent_judgments = Judgment.objects.exclude(published=False).order_by("-date")[ - :5 - ] - recent_documents = GenericDocument.objects.exclude(published=False).order_by( - "-date" - )[:5] - recent_instruments = LegalInstrument.objects.exclude(published=False).order_by( - "-date" - )[:5] - recent_legislation = Legislation.objects.exclude(published=False).order_by( - "-date" - )[:5] + recent_judgments = ( + Judgment.objects.exclude(published=False) + .prefetch_related("labels") + .order_by("-date")[:5] + ) + recent_documents = ( + GenericDocument.objects.exclude(published=False) + .prefetch_related("labels") + .order_by("-date")[:5] + ) + recent_instruments = ( + LegalInstrument.objects.exclude(published=False) + .prefetch_related("labels") + .order_by("-date")[:5] + ) + recent_legislation = ( + Legislation.objects.exclude(published=False) + .prefetch_related("labels") + .order_by("-date")[:5] + ) documents_count = CoreDocument.objects.exclude(published=False).count() authors = Author.objects.exclude( diff --git a/peachjam/views/judgment.py b/peachjam/views/judgment.py index 5549fd6dc..98c49d687 100644 --- a/peachjam/views/judgment.py +++ b/peachjam/views/judgment.py @@ -19,6 +19,7 @@ def get_context_data(self, **kwargs): ).order_by("-date")[:30] context["doc_type"] = "Judgment" context["doc_count"] = Judgment.objects.filter(published=True).count() + context["help_link"] = "judgments/courts" return context diff --git a/peachjam/views/legislation.py b/peachjam/views/legislation.py index 8e3669eeb..b4a399841 100644 --- a/peachjam/views/legislation.py +++ b/peachjam/views/legislation.py @@ -18,7 +18,8 @@ class LegislationListView(FilteredDocumentListView): template_name = "peachjam/legislation_list.html" navbar_link = "legislation" queryset = Legislation.objects.prefetch_related("work") - extra_context = {"legislation_list_sort": "title"} + extra_context = {"doc_type": "legislation"} + form_defaults = {"sort": "title"} @registry.register_doc_type("legislation") diff --git a/pyproject.toml b/pyproject.toml index a4d5fe6e8..67e3ddd71 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,6 +40,7 @@ dependencies = [ "django-elasticsearch-dsl-drf>=0.22.4", "django-extensions>=3.1.5", "django-filter>=22.1", + "django-htmx>=1.18.0", "django-import-export~=3.2.0", "django-jazzmin>=2.5.0", "django-languages-plus>=1.1.1", diff --git a/tanzlii/locale/en/LC_MESSAGES/django.po b/tanzlii/locale/en/LC_MESSAGES/django.po index a2eecb01a..7f19d1bbe 100644 --- a/tanzlii/locale/en/LC_MESSAGES/django.po +++ b/tanzlii/locale/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-06 15:17+0200\n" +"POT-Creation-Date: 2024-07-17 09:40+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/tanzlii/locale/fr/LC_MESSAGES/django.po b/tanzlii/locale/fr/LC_MESSAGES/django.po index 1341de62b..2f976e380 100644 --- a/tanzlii/locale/fr/LC_MESSAGES/django.po +++ b/tanzlii/locale/fr/LC_MESSAGES/django.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: 39b2fd8e1f2e7f60a21a2ff40372741a\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-06 15:17+0200\n" +"POT-Creation-Date: 2024-07-17 09:40+0200\n" "PO-Revision-Date: 2024-06-06 14:41\n" "Last-Translator: \n" "Language-Team: French\n" @@ -92,4 +92,3 @@ msgstr "Contactez-nous" #: templates/peachjam/about.html:30 msgid " " msgstr " " - diff --git a/tanzlii/locale/pt/LC_MESSAGES/django.po b/tanzlii/locale/pt/LC_MESSAGES/django.po index e88e2d89c..a1b1e3969 100644 --- a/tanzlii/locale/pt/LC_MESSAGES/django.po +++ b/tanzlii/locale/pt/LC_MESSAGES/django.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: 39b2fd8e1f2e7f60a21a2ff40372741a\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-06 15:17+0200\n" +"POT-Creation-Date: 2024-07-17 09:40+0200\n" "PO-Revision-Date: 2024-06-06 13:41\n" "Last-Translator: \n" "Language-Team: Portuguese\n" @@ -92,4 +92,3 @@ msgstr "Contate-nos" #: templates/peachjam/about.html:30 msgid " " msgstr " " - diff --git a/tanzlii/locale/sw/LC_MESSAGES/django.po b/tanzlii/locale/sw/LC_MESSAGES/django.po index 953b16005..3af9338d5 100644 --- a/tanzlii/locale/sw/LC_MESSAGES/django.po +++ b/tanzlii/locale/sw/LC_MESSAGES/django.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: 39b2fd8e1f2e7f60a21a2ff40372741a\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-06 15:17+0200\n" +"POT-Creation-Date: 2024-07-17 09:40+0200\n" "PO-Revision-Date: 2024-06-09 09:38\n" "Last-Translator: \n" "Language-Team: Swahili\n" @@ -92,4 +92,3 @@ msgstr "Wasiliana nasi" #: templates/peachjam/about.html:30 msgid " " msgstr " " - diff --git a/zanzibarlii/locale/en/LC_MESSAGES/django.po b/zanzibarlii/locale/en/LC_MESSAGES/django.po index 62905df1a..0f553030b 100644 --- a/zanzibarlii/locale/en/LC_MESSAGES/django.po +++ b/zanzibarlii/locale/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-06 15:17+0200\n" +"POT-Creation-Date: 2024-07-17 09:40+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/zanzibarlii/locale/fr/LC_MESSAGES/django.po b/zanzibarlii/locale/fr/LC_MESSAGES/django.po index f702cdb1a..f85b0ca1d 100644 --- a/zanzibarlii/locale/fr/LC_MESSAGES/django.po +++ b/zanzibarlii/locale/fr/LC_MESSAGES/django.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: 39b2fd8e1f2e7f60a21a2ff40372741a\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-06 15:17+0200\n" +"POT-Creation-Date: 2024-07-17 09:40+0200\n" "PO-Revision-Date: 2024-06-06 13:40\n" "Last-Translator: \n" "Language-Team: French\n" @@ -81,4 +81,3 @@ msgstr "Contactez-nous" #: templates/peachjam/about.html:31 msgid "Contact us on info@zanzibarlii.org for more information." msgstr "Contactez-nous au info@zanzibarlii.org pour plus d'informations." - diff --git a/zanzibarlii/locale/pt/LC_MESSAGES/django.po b/zanzibarlii/locale/pt/LC_MESSAGES/django.po index 0ccd5fd6a..e2c37054f 100644 --- a/zanzibarlii/locale/pt/LC_MESSAGES/django.po +++ b/zanzibarlii/locale/pt/LC_MESSAGES/django.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: 39b2fd8e1f2e7f60a21a2ff40372741a\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-06 15:17+0200\n" +"POT-Creation-Date: 2024-07-17 09:40+0200\n" "PO-Revision-Date: 2024-06-06 13:41\n" "Last-Translator: \n" "Language-Team: Portuguese\n" @@ -81,4 +81,3 @@ msgstr "Contate-nos" #: templates/peachjam/about.html:31 msgid "Contact us on info@zanzibarlii.org for more information." msgstr "Contacte-nos em info@zanzibarlii.org para mais informações." - diff --git a/zanzibarlii/locale/sw/LC_MESSAGES/django.po b/zanzibarlii/locale/sw/LC_MESSAGES/django.po index 87c96975e..b78d898d7 100644 --- a/zanzibarlii/locale/sw/LC_MESSAGES/django.po +++ b/zanzibarlii/locale/sw/LC_MESSAGES/django.po @@ -2,7 +2,7 @@ msgid "" msgstr "" "Project-Id-Version: 39b2fd8e1f2e7f60a21a2ff40372741a\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-06-06 15:17+0200\n" +"POT-Creation-Date: 2024-07-17 09:40+0200\n" "PO-Revision-Date: 2024-06-09 10:56\n" "Last-Translator: \n" "Language-Team: Swahili\n" @@ -81,4 +81,3 @@ msgstr "Wasiliana nasi" #: templates/peachjam/about.html:31 msgid "Contact us on info@zanzibarlii.org for more information." msgstr "Wasiliana nasi kwa info@zanzibarlii.org kwa maelezo zaidi." -