@rqmii_immersive/agent-react-sdk 5.5.0 → 5.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Orb-CbCvyxpF.js → Orb-C2OvroCY.js} +2 -2
- package/dist/{Orb-CbCvyxpF.js.map → Orb-C2OvroCY.js.map} +1 -1
- package/dist/{Orb-Bp5JVO29.cjs → Orb-Cg7CVtJf.cjs} +2 -2
- package/dist/{Orb-Bp5JVO29.cjs.map → Orb-Cg7CVtJf.cjs.map} +1 -1
- package/dist/{highlighted-body-KPVGNVTW-CrTevQPI.js → highlighted-body-KPVGNVTW-C2QA9gNF.js} +2 -2
- package/dist/{highlighted-body-KPVGNVTW-CrTevQPI.js.map → highlighted-body-KPVGNVTW-C2QA9gNF.js.map} +1 -1
- package/dist/{highlighted-body-KPVGNVTW-Dn9YBWAU.cjs → highlighted-body-KPVGNVTW-CWG3bhWV.cjs} +2 -2
- package/dist/{highlighted-body-KPVGNVTW-Dn9YBWAU.cjs.map → highlighted-body-KPVGNVTW-CWG3bhWV.cjs.map} +1 -1
- package/dist/mermaid-HWGCJPDP-BShbjdzs.cjs +2 -0
- package/dist/mermaid-HWGCJPDP-BShbjdzs.cjs.map +1 -0
- package/dist/mermaid-HWGCJPDP-EQ3uOIx_.js +5 -0
- package/dist/mermaid-HWGCJPDP-EQ3uOIx_.js.map +1 -0
- package/dist/{ui-DmDW-9SQ.js → ui-B8OBzf59.js} +6158 -4034
- package/dist/ui-B8OBzf59.js.map +1 -0
- package/dist/{ui-CDXL8Rz9.cjs → ui-DTqk30E0.cjs} +107 -106
- package/dist/ui-DTqk30E0.cjs.map +1 -0
- package/dist/ui.cjs +1 -1
- package/dist/ui.js +1 -1
- package/package.json +1 -1
- package/dist/mermaid-HWGCJPDP-BPrF1ic_.cjs +0 -2
- package/dist/mermaid-HWGCJPDP-BPrF1ic_.cjs.map +0 -1
- package/dist/mermaid-HWGCJPDP-CUvCStGM.js +0 -5
- package/dist/mermaid-HWGCJPDP-CUvCStGM.js.map +0 -1
- package/dist/ui-CDXL8Rz9.cjs.map +0 -1
- package/dist/ui-DmDW-9SQ.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const Te=require("./RqmiiCloudAvatarPlayer-DUQwPcpd.cjs"),m=require("react/jsx-runtime"),b=require("react"),fa=require("react-dom");function pa(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const mh={sendMessage:"Stuur 'n boodskap",send:"Stuur",close:"Sluit",minimize:"Minimaliseer",maximize:"Maksimaliseer",call:"Bel",listening:"Luister",processing:"Verwerk",talkToInterrupt:"Praat om te onderbreek",startVoice:"Begin stem",stopVoice:"Stop stem",endCall:"Beëindig oproep",openChat:"Maak klets oop",connectionFailed:"Verbinding het misluk",retry:"Probeer weer",loading:"Laai",creditsExhausted:"Krediete is opgebruik",creditsExhaustedDetail:"Hierdie sessie se krediete is opgebruik.",consentTitle:"Privaatheidstoestemming",consentBody:"Deur voort te gaan, stem jy in tot die versameling en verwerking van jou data soos beskryf in ons",consentAccept:"Aanvaar",consentDecline:"Weier",consentTermsLink:"Diensbepalings",consentPrivacyLink:"Privaatheidsbeleid",refresh:"Verfris",ratingQuestion:"Hoe was hierdie gesprek?",ratingThankYou:"Dankie vir jou terugvoer!",youEnded:"Jy het die gesprek beëindig",agentEnded:"Die agent het die gesprek beëindig",sessionIdLabel:"ID:",tellUsMore:"Vertel ons meer",feedbackSubtitle:"Jou terugvoer help ons om ons diens te verbeter en jou in die toekoms beter te ondersteun.",feedbackPlaceholder:"Vertel ons meer oor jou ervaring…",submit:"Dien in",leadFormTitle:"Kontakinligting",leadFormSuccess:"Dankie! Jou besonderhede is ingedien.",leadFormRequiredError:"Vul asseblief al die verpligte velde in.",leadFormGenericError:"Iets het verkeerd geloop. Probeer asseblief weer.",leadFormName:"Naam",leadFormEmail:"E-pos",leadFormPhone:"Foon",leadFormMessage:"Jou boodskap",poweredBy:"Aangedryf deur {brand}"},fh={sendMessage:"Dërgo një mesazh",send:"Dërgo",close:"Mbyll",minimize:"Minimizo",maximize:"Maksimizo",call:"Thirr",listening:"Duke dëgjuar",processing:"Duke përpunuar",talkToInterrupt:"Flisni për të ndërprerë",startVoice:"Fillo zërin",stopVoice:"Ndalo zërin",endCall:"Përfundo thirrjen",openChat:"Hap bisedën",connectionFailed:"Lidhja dështoi",retry:"Riprovo",loading:"Duke u ngarkuar",creditsExhausted:"Kreditë e mbaruara",creditsExhaustedDetail:"Kreditë e këtij sesioni kanë mbaruar.",consentTitle:"Pëlqimi për Privatësi",consentBody:"Duke vazhduar, ju pranoni mbledhjen dhe përpunimin e të dhënave tuaja siç përshkruhet në",consentAccept:"Prano",consentDecline:"Refuzo",consentTermsLink:"Kushtet e Shërbimit",consentPrivacyLink:"Rregullat e Privatësisë",refresh:"Rifresko",ratingQuestion:"Si ishte kjo bisedë?",ratingThankYou:"Faleminderit për komentin tuaj!",youEnded:"Ju e përfunduat bisedën",agentEnded:"Agjenti e përfundoi bisedën",sessionIdLabel:"ID:",tellUsMore:"Na tregoni më shumë",feedbackSubtitle:"Komenti juaj na ndihmon të përmirësojmë shërbimin tonë dhe t’ju mbështesim më mirë në të ardhmen.",feedbackPlaceholder:"Na tregoni më shumë rreth përvojës suaj…",submit:"Dërgo",leadFormTitle:"Informacioni i kontaktit",leadFormSuccess:"Faleminderit! Të dhënat tuaja u dërguan.",leadFormRequiredError:"Ju lutemi plotësoni të gjitha fushat e kërkuara.",leadFormGenericError:"Ndodhi një gabim. Ju lutemi provoni përsëri.",leadFormName:"Emri",leadFormEmail:"Email",leadFormPhone:"Telefoni",leadFormMessage:"Mesazhi juaj",poweredBy:"Mundësuar nga {brand}"},ph={sendMessage:"اكتب رسالة",send:"إرسال",close:"إغلاق",minimize:"تصغير",maximize:"تكبير",call:"اتصل",listening:"يستمع",processing:"يعالج",talkToInterrupt:"تحدث للمقاطعة",startVoice:"بدء الصوت",stopVoice:"إيقاف الصوت",endCall:"إنهاء المكالمة",openChat:"فتح المحادثة",connectionFailed:"فشل الاتصال",retry:"إعادة المحاولة",loading:"جار التحميل",creditsExhausted:"نفذ الرصيد",creditsExhaustedDetail:"نفذ رصيد هذه الجلسة.",consentTitle:"الموافقة على الخصوصية",consentBody:"بالمتابعة، أنت توافق على جمع ومعالجة بياناتك كما هو موضح في",consentAccept:"قبول",consentDecline:"رفض",consentTermsLink:"شروط الخدمة",consentPrivacyLink:"سياسة الخصوصية",refresh:"تحديث",ratingQuestion:"كيف كانت هذه المحادثة؟",ratingThankYou:"شكرًا على ملاحظاتك!",youEnded:"لقد أنهيت المحادثة",agentEnded:"أنهى الوكيل المحادثة",sessionIdLabel:"المعرّف:",tellUsMore:"أخبرنا المزيد",feedbackSubtitle:"تساعدنا ملاحظاتك في تحسين خدمتنا ودعمك بشكل أفضل في المستقبل.",feedbackPlaceholder:"أخبرنا المزيد عن تجربتك…",submit:"إرسال",leadFormTitle:"معلومات التواصل",leadFormSuccess:"شكرًا لك! تم إرسال بياناتك.",leadFormRequiredError:"يرجى تعبئة جميع الحقول المطلوبة.",leadFormGenericError:"حدث خطأ ما. حاول مرة أخرى.",leadFormName:"الاسم",leadFormEmail:"البريد الإلكتروني",leadFormPhone:"رقم الهاتف",leadFormMessage:"رسالتك",poweredBy:"بواسطة {brand}"},gh={sendMessage:"اكتب رسالة",send:"إرسال",close:"إغلاق",minimize:"تصغير",maximize:"تكبير",call:"اتصل",listening:"يستمع",processing:"يعالج",talkToInterrupt:"تحدث للمقاطعة",startVoice:"بدء الصوت",stopVoice:"إيقاف الصوت",endCall:"إنهاء المكالمة",openChat:"فتح المحادثة",connectionFailed:"فشل الاتصال",retry:"إعادة المحاولة",loading:"جار التحميل",creditsExhausted:"نفذ الرصيد",creditsExhaustedDetail:"نفذ رصيد هذه الجلسة.",consentTitle:"الموافقة على الخصوصية",consentBody:"بالمتابعة، أنت توافق على جمع ومعالجة بياناتك كما هو موضح في",consentAccept:"قبول",consentDecline:"رفض",consentTermsLink:"شروط الخدمة",consentPrivacyLink:"سياسة الخصوصية",refresh:"تحديث",ratingQuestion:"كيف كانت هذه المحادثة؟",ratingThankYou:"شكرًا على ملاحظاتك!",youEnded:"لقد أنهيت المحادثة",agentEnded:"أنهى الوكيل المحادثة",sessionIdLabel:"المعرّف:",tellUsMore:"أخبرنا المزيد",feedbackSubtitle:"تساعدنا ملاحظاتك في تحسين خدمتنا ودعمك بشكل أفضل في المستقبل.",feedbackPlaceholder:"أخبرنا المزيد عن تجربتك…",submit:"إرسال",leadFormTitle:"معلومات التواصل",leadFormSuccess:"شكرًا لك! تم إرسال بياناتك.",leadFormRequiredError:"يرجى تعبئة جميع الحقول المطلوبة.",leadFormGenericError:"حدث خطأ ما. حاول مرة أخرى.",leadFormName:"الاسم",leadFormEmail:"البريد الإلكتروني",leadFormPhone:"رقم الهاتف",leadFormMessage:"رسالتك",poweredBy:"بواسطة {brand}"},bh={sendMessage:"Mesaj göndər",send:"Göndər",close:"Bağla",minimize:"Kiçilt",maximize:"Böyüt",call:"Zəng et",listening:"Dinləyir",processing:"Emal edilir",talkToInterrupt:"Dayandırmaq üçün danışın",startVoice:"Səsi başlat",stopVoice:"Səsi dayandır",endCall:"Zəngi bitir",openChat:"Çatı aç",connectionFailed:"Əlaqə uğursuz oldu",retry:"Yenidən cəhd et",loading:"Yüklənir",creditsExhausted:"Kreditlər bitdi",creditsExhaustedDetail:"Bu sessiyanın kreditləri bitdi.",consentTitle:"Məxfilik Razılığı",consentBody:"Davam etməklə, məlumatlarınızın toplanması və emalına icazə verdiyinizi təsdiq edirsiniz",consentAccept:"Qəbul et",consentDecline:"Rədd et",consentTermsLink:"Xidmət Şərtləri",consentPrivacyLink:"Məxfilik Siyasəti",refresh:"Yenilə",ratingQuestion:"Bu söhbət necə idi?",ratingThankYou:"Rəyiniz üçün təşəkkür edirik!",youEnded:"Söhbəti siz bitirdiniz",agentEnded:"Agent söhbəti bitirdi",sessionIdLabel:"ID:",tellUsMore:"Bizə daha çox danışın",feedbackSubtitle:"Rəyiniz xidmətimizi təkmilləşdirməyə və gələcəkdə sizə daha yaxşı dəstək olmağa kömək edir.",feedbackPlaceholder:"Təcrübəniz haqqında bizə daha çox danışın…",submit:"Göndər",leadFormTitle:"Əlaqə məlumatları",leadFormSuccess:"Təşəkkürlər! Məlumatlarınız göndərildi.",leadFormRequiredError:"Zəhmət olmasa bütün tələb olunan sahələri doldurun.",leadFormGenericError:"Xəta baş verdi. Zəhmət olmasa yenidən cəhd edin.",leadFormName:"Ad",leadFormEmail:"E-poçt",leadFormPhone:"Telefon",leadFormMessage:"Mesajınız",poweredBy:"Dəstəkləyən {brand}"},Eh={sendMessage:"Bidali mezua",send:"Bidali",close:"Itxi",minimize:"Minimizatu",maximize:"Maximizatu",call:"Deitu",listening:"Entzuten",processing:"Prozesatzen",talkToInterrupt:"Hitz egin eteteko",startVoice:"Hasi ahotsa",stopVoice:"Gelditu ahotsa",endCall:"Amaitu deia",openChat:"Ireki txata",connectionFailed:"Konexioak huts egin du",retry:"Saiatu berriro",loading:"Kargatzen",creditsExhausted:"Kredituak agortuta",creditsExhaustedDetail:"Saio honen kredituak agortu dira.",consentTitle:"Pribatutasunaren Baimena",consentBody:"Jarraitzean, zure datuak biltzea eta prozesatzea onartzen duzu gure deskribatzen den moduan",consentAccept:"Onartu",consentDecline:"Ukatu",consentTermsLink:"Zerbitzu-baldintzak",consentPrivacyLink:"Pribatutasun-politika",refresh:"Freskatu",ratingQuestion:"Nolakoa izan da elkarrizketa hau?",ratingThankYou:"Eskerrik asko zure iritziagatik!",youEnded:"Zuk amaitu duzu elkarrizketa",agentEnded:"Agenteak amaitu du elkarrizketa",sessionIdLabel:"ID:",tellUsMore:"Esan iezaguzu gehiago",feedbackSubtitle:"Zure iritziak gure zerbitzua hobetzen eta etorkizunean hobeto laguntzen laguntzen digu.",feedbackPlaceholder:"Esan iezaguzu gehiago zure esperientziari buruz…",submit:"Bidali",leadFormTitle:"Kontaktu informazioa",leadFormSuccess:"Eskerrik asko! Zure datuak bidali dira.",leadFormRequiredError:"Bete beharrezko eremu guztiak, mesedez.",leadFormGenericError:"Zerbait okerra gertatu da. Saiatu berriro.",leadFormName:"Izena",leadFormEmail:"Helbide elektronikoa",leadFormPhone:"Telefonoa",leadFormMessage:"Zure mezua",poweredBy:"Garapena: {brand}"},Th={sendMessage:"Адправіць паведамленне",send:"Адправіць",close:"Зачыніць",minimize:"Згарнуць",maximize:"Разгарнуць",call:"Патэлефанаваць",listening:"Слухае",processing:"Апрацоўка",talkToInterrupt:"Гаварыце, каб перапыніць",startVoice:"Пачаць голас",stopVoice:"Спыніць голас",endCall:"Завяршыць званок",openChat:"Адкрыць чат",connectionFailed:"Памылка падключэння",retry:"Паўтарыць",loading:"Загрузка",creditsExhausted:"Крэдыты скончыліся",creditsExhaustedDetail:"Крэдыты гэтай сесіі скончыліся.",consentTitle:"Згода на апрацоўку даных",consentBody:"Працягваючы, вы згаджаецеся на збор і апрацоўку вашых даных, як апісана ў нашых",consentAccept:"Прыняць",consentDecline:"Адхіліць",consentTermsLink:"Умовы абслугоўвання",consentPrivacyLink:"Палітыка прыватнасці",refresh:"Абнавіць",ratingQuestion:"Як прайшла гэтая размова?",ratingThankYou:"Дзякуй за ваш водгук!",youEnded:"Вы завяршылі размову",agentEnded:"Агент завяршыў размову",sessionIdLabel:"ID:",tellUsMore:"Раскажыце падрабязней",feedbackSubtitle:"Ваш водгук дапамагае нам паляпшаць сэрвіс і лепш падтрымліваць вас у будучыні.",feedbackPlaceholder:"Раскажыце падрабязней пра ваш вопыт…",submit:"Адправіць",leadFormTitle:"Кантактная інфармацыя",leadFormSuccess:"Дзякуй! Вашы дадзеныя адпраўлены.",leadFormRequiredError:"Калі ласка, запаўніце ўсе абавязковыя палі.",leadFormGenericError:"Нешта пайшло не так. Паспрабуйце зноў.",leadFormName:"Імя",leadFormEmail:"Электронная пошта",leadFormPhone:"Тэлефон",leadFormMessage:"Ваша паведамленне",poweredBy:"Працуе на {brand}"},kh={sendMessage:"একটি বার্তা পাঠান",send:"পাঠান",close:"বন্ধ করুন",minimize:"ছোট করুন",maximize:"বড় করুন",call:"কল করুন",listening:"শুনছে",processing:"প্রক্রিয়া হচ্ছে",talkToInterrupt:"বাধা দিতে কথা বলুন",startVoice:"ভয়েস শুরু করুন",stopVoice:"ভয়েস বন্ধ করুন",endCall:"কল শেষ করুন",openChat:"চ্যাট খুলুন",connectionFailed:"সংযোগ ব্যর্থ হয়েছে",retry:"পুনরায় চেষ্টা করুন",loading:"লোড হচ্ছে",creditsExhausted:"ক্রেডিট শেষ",creditsExhaustedDetail:"এই সেশনের ক্রেডিট শেষ হয়ে গেছে।",consentTitle:"গোপনীয়তা সম্মতি",consentBody:"এগিয়ে গেলে, আপনি আমাদের বর্ণিত হিসাবে আপনার ডেটা সংগ্রহ এবং প্রক্রিয়াকরণে সম্মত হন",consentAccept:"গ্রহণ করুন",consentDecline:"প্রত্যাখ্যান করুন",consentTermsLink:"পরিষেবার শর্তাবলী",consentPrivacyLink:"গোপনীয়তা নীতি",refresh:"রিফ্রেশ করুন",ratingQuestion:"এই কথোপকথনটি কেমন ছিল?",ratingThankYou:"আপনার মতামতের জন্য ধন্যবাদ!",youEnded:"আপনি কথোপকথনটি শেষ করেছেন",agentEnded:"এজেন্ট কথোপকথনটি শেষ করেছে",sessionIdLabel:"আইডি:",tellUsMore:"আরও বলুন",feedbackSubtitle:"আপনার মতামত আমাদের পরিষেবা উন্নত করতে এবং ভবিষ্যতে আপনাকে আরও ভালোভাবে সহায়তা করতে সাহায্য করে।",feedbackPlaceholder:"আপনার অভিজ্ঞতা সম্পর্কে আরও বলুন…",submit:"জমা দিন",leadFormTitle:"যোগাযোগের তথ্য",leadFormSuccess:"ধন্যবাদ! আপনার তথ্য জমা দেওয়া হয়েছে।",leadFormRequiredError:"সমস্ত প্রয়োজনীয় ক্ষেত্র পূরণ করুন।",leadFormGenericError:"কিছু ভুল হয়েছে। আবার চেষ্টা করুন।",leadFormName:"নাম",leadFormEmail:"ইমেইল",leadFormPhone:"ফোন",leadFormMessage:"আপনার বার্তা",poweredBy:"পরিচালিত {brand}"},xh={sendMessage:"Pošalji poruku",send:"Pošalji",close:"Zatvori",minimize:"Minimiziraj",maximize:"Maksimiziraj",call:"Pozovi",listening:"Sluša",processing:"Obrađuje",talkToInterrupt:"Govorite da prekinete",startVoice:"Pokreni glas",stopVoice:"Zaustavi glas",endCall:"Završi poziv",openChat:"Otvori ćaskanje",connectionFailed:"Veza nije uspjela",retry:"Pokušaj ponovo",loading:"Učitavanje",creditsExhausted:"Krediti su potrošeni",creditsExhaustedDetail:"Krediti ove sesije su potrošeni.",consentTitle:"Privatnost Saglasnost",consentBody:"Nastavkom se slažete sa prikupljanjem i obradom vaših podataka kako je opisano u našim",consentAccept:"Prihvati",consentDecline:"Odbij",consentTermsLink:"Uslovi korištenja",consentPrivacyLink:"Politika privatnosti",refresh:"Osvježi",ratingQuestion:"Kako je bio ovaj razgovor?",ratingThankYou:"Hvala na vašoj povratnoj informaciji!",youEnded:"Vi ste završili razgovor",agentEnded:"Agent je završio razgovor",sessionIdLabel:"ID:",tellUsMore:"Recite nam više",feedbackSubtitle:"Vaša povratna informacija nam pomaže da poboljšamo uslugu i bolje vas podržimo u budućnosti.",feedbackPlaceholder:"Recite nam više o svom iskustvu…",submit:"Pošalji",leadFormTitle:"Kontakt informacije",leadFormSuccess:"Hvala! Vaši podaci su poslani.",leadFormRequiredError:"Molimo popunite sva obavezna polja.",leadFormGenericError:"Nešto je pošlo po zlu. Pokušajte ponovo.",leadFormName:"Ime",leadFormEmail:"E-mail",leadFormPhone:"Telefon",leadFormMessage:"Vaša poruka",poweredBy:"Pokreće {brand}"},yh={sendMessage:"Изпрати съобщение",send:"Изпрати",close:"Затвори",minimize:"Минимизирай",maximize:"Максимизирай",call:"Обади се",listening:"Слуша",processing:"Обработва",talkToInterrupt:"Говорете за прекъсване",startVoice:"Започни глас",stopVoice:"Спри гласа",endCall:"Край на разговора",openChat:"Отвори чат",connectionFailed:"Неуспешна връзка",retry:"Опитай отново",loading:"Зареждане",creditsExhausted:"Кредитите са изчерпани",creditsExhaustedDetail:"Кредитите на тази сесия са изчерпани.",consentTitle:"Съгласие за поверителност",consentBody:"Продължавайки, вие се съгласявате със събирането и обработката на вашите данни, както е описано в нашите",consentAccept:"Приемам",consentDecline:"Отказвам",consentTermsLink:"Условия за ползване",consentPrivacyLink:"Политика за поверителност",refresh:"Обнови",ratingQuestion:"Как беше този разговор?",ratingThankYou:"Благодарим за обратната връзка!",youEnded:"Вие приключихте разговора",agentEnded:"Агентът приключи разговора",sessionIdLabel:"ID:",tellUsMore:"Кажете ни повече",feedbackSubtitle:"Вашата обратна връзка ни помага да подобрим услугата си и да ви подкрепяме по-добре в бъдеще.",feedbackPlaceholder:"Кажете ни повече за вашето преживяване…",submit:"Изпрати",leadFormTitle:"Информация за контакт",leadFormSuccess:"Благодарим! Вашите данни бяха изпратени.",leadFormRequiredError:"Моля, попълнете всички задължителни полета.",leadFormGenericError:"Нещо се обърка. Моля, опитайте отново.",leadFormName:"Име",leadFormEmail:"Имейл",leadFormPhone:"Телефон",leadFormMessage:"Вашето съобщение",poweredBy:"Предоставено от {brand}"},Ah={sendMessage:"Enviar un missatge",send:"Enviar",close:"Tancar",minimize:"Minimitzar",maximize:"Maximitzar",call:"Trucar",listening:"Escoltant",processing:"Processant",talkToInterrupt:"Parleu per interrompre",startVoice:"Iniciar veu",stopVoice:"Aturar veu",endCall:"Finalitzar trucada",openChat:"Obrir xat",connectionFailed:"Connexió fallida",retry:"Tornar a intentar",loading:"Carregant",creditsExhausted:"Crèdits esgotats",creditsExhaustedDetail:"Aquesta sessió ha esgotat els crèdits.",consentTitle:"Consentiment de Privacitat",consentBody:"En continuar, accepteu la recollida i el processament de les vostres dades tal com es descriu als nostres",consentAccept:"Acceptar",consentDecline:"Rebutjar",consentTermsLink:"Termes del servei",consentPrivacyLink:"Política de privacitat",refresh:"Actualitza",ratingQuestion:"Com ha anat aquesta conversa?",ratingThankYou:"Gràcies pel teu comentari!",youEnded:"Has finalitzat la conversa",agentEnded:"L’agent ha finalitzat la conversa",sessionIdLabel:"ID:",tellUsMore:"Explica’ns més",feedbackSubtitle:"El teu comentari ens ajuda a millorar el servei i a donar-te un millor suport en el futur.",feedbackPlaceholder:"Explica’ns més sobre la teva experiència…",submit:"Envia",leadFormTitle:"Informació de contacte",leadFormSuccess:"Gràcies! Les teves dades s'han enviat.",leadFormRequiredError:"Si us plau, ompliu tots els camps obligatoris.",leadFormGenericError:"Alguna cosa ha anat malament. Torneu-ho a provar.",leadFormName:"Nom",leadFormEmail:"Correu electrònic",leadFormPhone:"Telèfon",leadFormMessage:"El teu missatge",poweredBy:"Desenvolupat per {brand}"},Ch={sendMessage:"发送消息",send:"发送",close:"关闭",minimize:"最小化",maximize:"最大化",call:"呼叫",listening:"正在聆听",processing:"处理中",talkToInterrupt:"说话以打断",startVoice:"开始语音",stopVoice:"停止语音",endCall:"结束通话",openChat:"打开聊天",connectionFailed:"连接失败",retry:"重试",loading:"正在加载",creditsExhausted:"额度已用完",creditsExhaustedDetail:"此会话的额度已用完。",consentTitle:"隐私同意",consentBody:"继续操作即表示您同意我们按照所述方式收集和处理您的数据",consentAccept:"接受",consentDecline:"拒绝",consentTermsLink:"服务条款",consentPrivacyLink:"隐私政策",refresh:"刷新",ratingQuestion:"这次对话怎么样?",ratingThankYou:"感谢您的反馈!",youEnded:"您结束了对话",agentEnded:"智能体结束了对话",sessionIdLabel:"ID:",tellUsMore:"告诉我们更多",feedbackSubtitle:"您的反馈有助于我们改进服务,并在未来为您提供更好的支持。",feedbackPlaceholder:"告诉我们更多关于您的体验…",submit:"提交",leadFormTitle:"联系信息",leadFormSuccess:"谢谢!您的信息已提交。",leadFormRequiredError:"请填写所有必填字段。",leadFormGenericError:"出现错误,请重试。",leadFormName:"姓名",leadFormEmail:"电子邮箱",leadFormPhone:"电话",leadFormMessage:"您的留言",poweredBy:"技术支持:{brand}"},_h={sendMessage:"Pošalji poruku",send:"Pošalji",close:"Zatvori",minimize:"Minimiziraj",maximize:"Maksimiziraj",call:"Nazovi",listening:"Sluša",processing:"Obrađuje",talkToInterrupt:"Govorite za prekidanje",startVoice:"Pokreni glas",stopVoice:"Zaustavi glas",endCall:"Završi poziv",openChat:"Otvori chat",connectionFailed:"Veza nije uspjela",retry:"Pokušaj ponovno",loading:"Učitavanje",creditsExhausted:"Krediti iscrpljeni",creditsExhaustedDetail:"Krediti ove sesije su iscrpljeni.",consentTitle:"Privola za privatnost",consentBody:"Nastavkom pristajete na prikupljanje i obradu vaših podataka kako je opisano u našim",consentAccept:"Prihvati",consentDecline:"Odbij",consentTermsLink:"Uvjeti korištenja",consentPrivacyLink:"Pravila privatnosti",refresh:"Osvježi",ratingQuestion:"Kakav je bio ovaj razgovor?",ratingThankYou:"Hvala na povratnoj informaciji!",youEnded:"Vi ste završili razgovor",agentEnded:"Agent je završio razgovor",sessionIdLabel:"ID:",tellUsMore:"Recite nam više",feedbackSubtitle:"Vaša povratna informacija pomaže nam poboljšati uslugu i bolje vas podržati u budućnosti.",feedbackPlaceholder:"Recite nam više o svom iskustvu…",submit:"Pošalji",leadFormTitle:"Podaci za kontakt",leadFormSuccess:"Hvala! Vaši podaci su poslani.",leadFormRequiredError:"Ispunite sva obavezna polja.",leadFormGenericError:"Nešto je pošlo po zlu. Pokušajte ponovo.",leadFormName:"Ime",leadFormEmail:"E-mail",leadFormPhone:"Telefon",leadFormMessage:"Vaša poruka",poweredBy:"Pokreće {brand}"},Sh={sendMessage:"Poslat zprávu",send:"Odeslat",close:"Zavřít",minimize:"Minimalizovat",maximize:"Maximalizovat",call:"Volat",listening:"Poslouchá",processing:"Zpracovává",talkToInterrupt:"Mluvte pro přerušení",startVoice:"Spustit hlas",stopVoice:"Zastavit hlas",endCall:"Ukončit hovor",openChat:"Otevřít chat",connectionFailed:"Připojení selhalo",retry:"Zkusit znovu",loading:"Načítání",creditsExhausted:"Kredity vyčerpány",creditsExhaustedDetail:"Kredity této relace byly vyčerpány.",consentTitle:"Souhlas se soukromím",consentBody:"Pokračováním souhlasíte se shromažďováním a zpracováním vašich údajů, jak je popsáno v našich",consentAccept:"Přijmout",consentDecline:"Odmítnout",consentTermsLink:"Podmínky služby",consentPrivacyLink:"Zásady ochrany soukromí",refresh:"Obnovit",ratingQuestion:"Jaká byla tato konverzace?",ratingThankYou:"Děkujeme za vaši zpětnou vazbu!",youEnded:"Konverzaci jste ukončili vy",agentEnded:"Konverzaci ukončil agent",sessionIdLabel:"ID:",tellUsMore:"Řekněte nám více",feedbackSubtitle:"Vaše zpětná vazba nám pomáhá zlepšovat naše služby a lépe vás v budoucnu podporovat.",feedbackPlaceholder:"Řekněte nám více o své zkušenosti…",submit:"Odeslat",leadFormTitle:"Kontaktní údaje",leadFormSuccess:"Děkujeme! Vaše údaje byly odeslány.",leadFormRequiredError:"Vyplňte prosím všechna povinná pole.",leadFormGenericError:"Něco se pokazilo. Zkuste to znovu.",leadFormName:"Jméno",leadFormEmail:"E-mail",leadFormPhone:"Telefon",leadFormMessage:"Vaše zpráva",poweredBy:"Běží na {brand}"},wh={sendMessage:"Send en besked",send:"Send",close:"Luk",minimize:"Minimer",maximize:"Maksimer",call:"Ring",listening:"Lytter",processing:"Behandler",talkToInterrupt:"Tal for at afbryde",startVoice:"Start stemme",stopVoice:"Stop stemme",endCall:"Afslut opkald",openChat:"Åbn chat",connectionFailed:"Forbindelse mislykkedes",retry:"Prøv igen",loading:"Indlæser",creditsExhausted:"Kreditter opbrugt",creditsExhaustedDetail:"Denne sessions kreditter er opbrugt.",consentTitle:"Samtykke til privatliv",consentBody:"Ved at fortsætte accepterer du indsamling og behandling af dine data som beskrevet i vores",consentAccept:"Acceptér",consentDecline:"Afvis",consentTermsLink:"Servicevilkår",consentPrivacyLink:"Privatlivspolitik",refresh:"Opdater",ratingQuestion:"Hvordan var denne samtale?",ratingThankYou:"Tak for din feedback!",youEnded:"Du afsluttede samtalen",agentEnded:"Agenten afsluttede samtalen",sessionIdLabel:"ID:",tellUsMore:"Fortæl os mere",feedbackSubtitle:"Din feedback hjælper os med at forbedre vores service og støtte dig bedre i fremtiden.",feedbackPlaceholder:"Fortæl os mere om din oplevelse…",submit:"Send",leadFormTitle:"Kontaktinfo",leadFormSuccess:"Tak! Dine oplysninger er indsendt.",leadFormRequiredError:"Udfyld venligst alle obligatoriske felter.",leadFormGenericError:"Noget gik galt. Prøv igen.",leadFormName:"Navn",leadFormEmail:"E-mail",leadFormPhone:"Telefon",leadFormMessage:"Din besked",poweredBy:"Drevet af {brand}"},Ih={sendMessage:"Stuur een bericht",send:"Verzenden",close:"Sluiten",minimize:"Minimaliseren",maximize:"Maximaliseren",call:"Bel",listening:"Luistert",processing:"Verwerken",talkToInterrupt:"Praat om te onderbreken",startVoice:"Start spraak",stopVoice:"Stop spraak",endCall:"Gesprek beëindigen",openChat:"Chat openen",connectionFailed:"Verbinding mislukt",retry:"Opnieuw proberen",loading:"Laden",creditsExhausted:"Credits opgebruikt",creditsExhaustedDetail:"De credits van deze sessie zijn opgebruikt.",consentTitle:"Toestemming privacy",consentBody:"Door verder te gaan, gaat u akkoord met het verzamelen en verwerken van uw gegevens zoals beschreven in onze",consentAccept:"Accepteren",consentDecline:"Weigeren",consentTermsLink:"Servicevoorwaarden",consentPrivacyLink:"Privacybeleid",refresh:"Vernieuwen",ratingQuestion:"Hoe was dit gesprek?",ratingThankYou:"Bedankt voor je feedback!",youEnded:"Je hebt het gesprek beëindigd",agentEnded:"De agent heeft het gesprek beëindigd",sessionIdLabel:"ID:",tellUsMore:"Vertel ons meer",feedbackSubtitle:"Je feedback helpt ons onze service te verbeteren en je in de toekomst beter te ondersteunen.",feedbackPlaceholder:"Vertel ons meer over je ervaring…",submit:"Verzenden",leadFormTitle:"Contactgegevens",leadFormSuccess:"Bedankt! Je gegevens zijn verzonden.",leadFormRequiredError:"Vul alle verplichte velden in.",leadFormGenericError:"Er is iets misgegaan. Probeer het opnieuw.",leadFormName:"Naam",leadFormEmail:"E-mail",leadFormPhone:"Telefoon",leadFormMessage:"Uw bericht",poweredBy:"Mogelijk gemaakt door {brand}"},Nh={sendMessage:"Send a message",send:"Send",close:"Close",minimize:"Minimize",maximize:"Maximize",call:"Call",listening:"Listening",processing:"Processing",talkToInterrupt:"Talk to interrupt",startVoice:"Start voice",stopVoice:"Stop voice",endCall:"End call",openChat:"Open chat",connectionFailed:"Connection failed",retry:"Retry",loading:"Loading",creditsExhausted:"Credits Exhausted",creditsExhaustedDetail:"This session has run out of credits.",consentTitle:"Privacy Consent",consentBody:"By proceeding, you agree to the collection and processing of your data as described in our",consentAccept:"Accept",consentDecline:"Decline",consentTermsLink:"Terms of Service",consentPrivacyLink:"Privacy Policy",refresh:"Refresh",ratingQuestion:"How was this conversation?",ratingThankYou:"Thank you for your feedback!",youEnded:"You ended the conversation",agentEnded:"The agent ended the conversation",sessionIdLabel:"ID:",tellUsMore:"Tell us more",feedbackSubtitle:"Your feedback helps us improve our service and better support you in the future.",feedbackPlaceholder:"Tell us more about your experience…",submit:"Submit",leadFormTitle:"Contact info",leadFormSuccess:"Thanks! Your details have been submitted.",leadFormRequiredError:"Please fill in all required fields.",leadFormGenericError:"Something went wrong. Please try again.",leadFormName:"Name",leadFormEmail:"Email",leadFormPhone:"Phone",leadFormMessage:"Your message",poweredBy:"Powered by {brand}"},vh={sendMessage:"Saada sõnum",send:"Saada",close:"Sulge",minimize:"Minimeeri",maximize:"Maksimeeri",call:"Helista",listening:"Kuulab",processing:"Töötleb",talkToInterrupt:"Katkestamiseks räägi",startVoice:"Alusta häält",stopVoice:"Peata hääl",endCall:"Lõpeta kõne",openChat:"Ava vestlus",connectionFailed:"Ühendus ebaõnnestus",retry:"Proovi uuesti",loading:"Laadimine",creditsExhausted:"Krediidid otsas",creditsExhaustedDetail:"Selle seansi krediidid on otsas.",consentTitle:"Privaatsusnõusolek",consentBody:"Jätkates nõustute oma andmete kogumise ja töötlemisega, nagu on kirjeldatud meie",consentAccept:"Nõustu",consentDecline:"Keeldu",consentTermsLink:"Teenusetingimused",consentPrivacyLink:"Privaatsuspoliitika",refresh:"Värskenda",ratingQuestion:"Milline see vestlus oli?",ratingThankYou:"Täname tagasiside eest!",youEnded:"Sina lõpetasid vestluse",agentEnded:"Agent lõpetas vestluse",sessionIdLabel:"ID:",tellUsMore:"Räägi meile rohkem",feedbackSubtitle:"Sinu tagasiside aitab meil teenust parandada ja sind tulevikus paremini toetada.",feedbackPlaceholder:"Räägi meile rohkem oma kogemusest…",submit:"Saada",leadFormTitle:"Kontaktandmed",leadFormSuccess:"Aitäh! Teie andmed on esitatud.",leadFormRequiredError:"Palun täitke kõik kohustuslikud väljad.",leadFormGenericError:"Midagi läks valesti. Palun proovige uuesti.",leadFormName:"Nimi",leadFormEmail:"E-post",leadFormPhone:"Telefon",leadFormMessage:"Teie sõnum",poweredBy:"Toetab {brand}"},Lh={sendMessage:"Lähetä viesti",send:"Lähetä",close:"Sulje",minimize:"Pienennä",maximize:"Suurenna",call:"Soita",listening:"Kuuntelee",processing:"Käsittelee",talkToInterrupt:"Puhu keskeyttääksesi",startVoice:"Aloita puhe",stopVoice:"Lopeta puhe",endCall:"Lopeta puhelu",openChat:"Avaa chat",connectionFailed:"Yhteys epäonnistui",retry:"Yritä uudelleen",loading:"Ladataan",creditsExhausted:"Krediitit loppu",creditsExhaustedDetail:"Tämän istunnon krediitit ovat loppuneet.",consentTitle:"Yksityisyyden suostumus",consentBody:"Jatkamalla hyväksyt tietojesi keräämisen ja käsittelyn kuten on kuvattu",consentAccept:"Hyväksy",consentDecline:"Hylkää",consentTermsLink:"Käyttöehdot",consentPrivacyLink:"Tietosuojakäytäntö",refresh:"Päivitä",ratingQuestion:"Millainen tämä keskustelu oli?",ratingThankYou:"Kiitos palautteestasi!",youEnded:"Sinä lopetit keskustelun",agentEnded:"Agentti lopetti keskustelun",sessionIdLabel:"ID:",tellUsMore:"Kerro lisää",feedbackSubtitle:"Palautteesi auttaa meitä parantamaan palveluamme ja tukemaan sinua paremmin tulevaisuudessa.",feedbackPlaceholder:"Kerro lisää kokemuksestasi…",submit:"Lähetä",leadFormTitle:"Yhteystiedot",leadFormSuccess:"Kiitos! Tietosi on lähetetty.",leadFormRequiredError:"Täytä kaikki pakolliset kentät.",leadFormGenericError:"Jokin menikin pieleen. Yritä uudelleen.",leadFormName:"Nimi",leadFormEmail:"Sähköposti",leadFormPhone:"Puhelin",leadFormMessage:"Viestisi",poweredBy:"Palvelun tarjoaa {brand}"},Rh={sendMessage:"Envoyer un message",send:"Envoyer",close:"Fermer",minimize:"Réduire",maximize:"Agrandir",call:"Appeler",listening:"Écoute",processing:"Traitement",talkToInterrupt:"Parlez pour interrompre",startVoice:"Démarrer la voix",stopVoice:"Arrêter la voix",endCall:"Terminer l'appel",openChat:"Ouvrir le chat",connectionFailed:"Connexion échouée",retry:"Réessayer",loading:"Chargement",creditsExhausted:"Crédits épuisés",creditsExhaustedDetail:"Cette session a épuisé ses crédits.",consentTitle:"Consentement à la confidentialité",consentBody:"En continuant, vous acceptez la collecte et le traitement de vos données comme décrit dans nos",consentAccept:"Accepter",consentDecline:"Refuser",consentTermsLink:"Conditions d'utilisation",consentPrivacyLink:"Politique de confidentialité",refresh:"Actualiser",ratingQuestion:"Comment s’est passée cette conversation ?",ratingThankYou:"Merci pour votre retour !",youEnded:"Vous avez terminé la conversation",agentEnded:"L’agent a terminé la conversation",sessionIdLabel:"ID :",tellUsMore:"Dites-nous en plus",feedbackSubtitle:"Votre retour nous aide à améliorer notre service et à mieux vous accompagner à l’avenir.",feedbackPlaceholder:"Dites-nous en plus sur votre expérience…",submit:"Envoyer",leadFormTitle:"Coordonnées",leadFormSuccess:"Merci ! Vos informations ont été envoyées.",leadFormRequiredError:"Veuillez remplir tous les champs obligatoires.",leadFormGenericError:"Une erreur est survenue. Veuillez réessayer.",leadFormName:"Nom",leadFormEmail:"E-mail",leadFormPhone:"Téléphone",leadFormMessage:"Votre message",poweredBy:"Propulsé par {brand}"},Ph={sendMessage:"Enviar unha mensaxe",send:"Enviar",close:"Pechar",minimize:"Minimizar",maximize:"Maximizar",call:"Chamar",listening:"Escoitando",processing:"Procesando",talkToInterrupt:"Fale para interromper",startVoice:"Iniciar voz",stopVoice:"Deter voz",endCall:"Finalizar chamada",openChat:"Abrir chat",connectionFailed:"Fallou a conexión",retry:"Tentar de novo",loading:"Cargando",creditsExhausted:"Créditos esgotados",creditsExhaustedDetail:"Esta sesión esgotou os seus créditos.",consentTitle:"Consentimento de Privacidade",consentBody:"Ao continuar, acepta a recollida e o procesamento dos seus datos tal como se describe nos nosos",consentAccept:"Aceptar",consentDecline:"Rexeitar",consentTermsLink:"Termos do servizo",consentPrivacyLink:"Política de privacidade",refresh:"Actualizar",ratingQuestion:"Como foi esta conversa?",ratingThankYou:"Grazas polos teus comentarios!",youEnded:"Ti finalizaches a conversa",agentEnded:"O axente finalizou a conversa",sessionIdLabel:"ID:",tellUsMore:"Cóntanos máis",feedbackSubtitle:"Os teus comentarios axúdannos a mellorar o servizo e a apoiarte mellor no futuro.",feedbackPlaceholder:"Cóntanos máis sobre a túa experiencia…",submit:"Enviar",leadFormTitle:"Información de contacto",leadFormSuccess:"Grazas! Os teus datos foron enviados.",leadFormRequiredError:"Cubra todos os campos obrigatorios.",leadFormGenericError:"Algo saíu mal. Téntao de novo.",leadFormName:"Nome",leadFormEmail:"Correo electrónico",leadFormPhone:"Teléfono",leadFormMessage:"A túa mensaxe",poweredBy:"Desenvolvido por {brand}"},Dh={sendMessage:"Nachricht senden",send:"Senden",close:"Schließen",minimize:"Minimieren",maximize:"Maximieren",call:"Anrufen",listening:"Hört zu",processing:"Verarbeitung",talkToInterrupt:"Sprechen zum Unterbrechen",startVoice:"Sprache starten",stopVoice:"Sprache stoppen",endCall:"Anruf beenden",openChat:"Chat öffnen",connectionFailed:"Verbindung fehlgeschlagen",retry:"Erneut versuchen",loading:"Wird geladen",creditsExhausted:"Guthaben aufgebraucht",creditsExhaustedDetail:"Das Guthaben dieser Sitzung ist aufgebraucht.",consentTitle:"Datenschutz-Einwilligung",consentBody:"Wenn Sie fortfahren, stimmen Sie der Erhebung und Verarbeitung Ihrer Daten wie in unseren beschrieben zu",consentAccept:"Akzeptieren",consentDecline:"Ablehnen",consentTermsLink:"Nutzungsbedingungen",consentPrivacyLink:"Datenschutzerklärung",refresh:"Aktualisieren",ratingQuestion:"Wie war dieses Gespräch?",ratingThankYou:"Danke für dein Feedback!",youEnded:"Du hast das Gespräch beendet",agentEnded:"Der Agent hat das Gespräch beendet",sessionIdLabel:"ID:",tellUsMore:"Erzähl uns mehr",feedbackSubtitle:"Dein Feedback hilft uns, unseren Service zu verbessern und dich in Zukunft besser zu unterstützen.",feedbackPlaceholder:"Erzähl uns mehr über deine Erfahrung…",submit:"Senden",leadFormTitle:"Kontaktinformationen",leadFormSuccess:"Danke! Ihre Angaben wurden übermittelt.",leadFormRequiredError:"Bitte füllen Sie alle Pflichtfelder aus.",leadFormGenericError:"Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.",leadFormName:"Name",leadFormEmail:"E-Mail",leadFormPhone:"Telefon",leadFormMessage:"Ihre Nachricht",poweredBy:"Bereitgestellt von {brand}"},Mh={sendMessage:"Αποστολή μηνύματος",send:"Αποστολή",close:"Κλείσιμο",minimize:"Ελαχιστοποίηση",maximize:"Μεγιστοποίηση",call:"Κλήση",listening:"Ακούει",processing:"Επεξεργασία",talkToInterrupt:"Μιλήστε για διακοπή",startVoice:"Έναρξη φωνής",stopVoice:"Διακοπή φωνής",endCall:"Τερματισμός κλήσης",openChat:"Άνοιγμα συνομιλίας",connectionFailed:"Η σύνδεση απέτυχε",retry:"Επανάληψη",loading:"Φόρτωση",creditsExhausted:"Οι πιστώσεις εξαντλήθηκαν",creditsExhaustedDetail:"Οι πιστώσεις αυτής της συνεδρίας εξαντλήθηκαν.",consentTitle:"Συγκατάθεση Απορρήτου",consentBody:"Με τη συνέχιση, συμφωνείτε με τη συλλογή και επεξεργασία των δεδομένων σας όπως περιγράφεται στους",consentAccept:"Αποδοχή",consentDecline:"Απόρριψη",consentTermsLink:"Όροι Υπηρεσίας",consentPrivacyLink:"Πολιτική Απορρήτου",refresh:"Ανανέωση",ratingQuestion:"Πώς ήταν αυτή η συνομιλία;",ratingThankYou:"Ευχαριστούμε για τα σχόλιά σας!",youEnded:"Εσείς τερματίσατε τη συνομιλία",agentEnded:"Ο πράκτορας τερμάτισε τη συνομιλία",sessionIdLabel:"ID:",tellUsMore:"Πείτε μας περισσότερα",feedbackSubtitle:"Τα σχόλιά σας μας βοηθούν να βελτιώσουμε την υπηρεσία μας και να σας υποστηρίξουμε καλύτερα στο μέλλον.",feedbackPlaceholder:"Πείτε μας περισσότερα για την εμπειρία σας…",submit:"Υποβολή",leadFormTitle:"Στοιχεία επικοινωνίας",leadFormSuccess:"Ευχαριστούμε! Τα στοιχεία σας υποβλήθηκαν.",leadFormRequiredError:"Συμπληρώστε όλα τα υποχρεωτικά πεδία.",leadFormGenericError:"Κάτι πήγε στραβά. Δοκιμάστε ξανά.",leadFormName:"Όνομα",leadFormEmail:"E-mail",leadFormPhone:"Τηλέφωνο",leadFormMessage:"Το μήνυμά σας",poweredBy:"Με την υποστήриξη του {brand}"},Oh={sendMessage:"સંદેશ મોકલો",send:"મોકલો",close:"બંધ કરો",minimize:"નાનું કરો",maximize:"મોટું કરો",call:"કૉલ કરો",listening:"સાંભળી રહ્યું છે",processing:"પ્રક્રિયા ચાલુ છે",talkToInterrupt:"રોકવા માટે બોલો",startVoice:"વૉઇસ શરૂ કરો",stopVoice:"વૉઇસ બંધ કરો",endCall:"કૉલ સમાપ્ત કરો",openChat:"ચેટ ખોલો",connectionFailed:"કનેક્શન નિષ્ફળ",retry:"ફરી પ્રયાસ કરો",loading:"લોડ થઈ રહ્યું છે",creditsExhausted:"ક્રેડિટ સમાપ્ત",creditsExhaustedDetail:"આ સત્રની ક્રેડિટ સમાપ્ત થઈ ગઈ છે.",consentTitle:"ગોપનીયતા સંમતિ",consentBody:"આગળ વધીને, તમે અમારા દ્વારા વર્ણવ્યા મુજબ તમારા ડેટાના સંગ્રહ અને પ્રક્રિયા માટે સંમત થાઓ છો",consentAccept:"સ્વીકારો",consentDecline:"નકારો",consentTermsLink:"સેવાની શરતો",consentPrivacyLink:"ગોપનીયતા નીતિ",refresh:"રિફ્રેશ કરો",ratingQuestion:"આ વાતચીત કેવી રહી?",ratingThankYou:"તમારા પ્રતિસાદ બદલ આભાર!",youEnded:"તમે વાતચીત સમાપ્ત કરી",agentEnded:"એજન્ટે વાતચીત સમાપ્ત કરી",sessionIdLabel:"ID:",tellUsMore:"અમને વધુ જણાવો",feedbackSubtitle:"તમારો પ્રતિસાદ અમને અમારી સેવા સુધારવામાં અને ભવિષ્યમાં તમને વધુ સારી રીતે સહાય કરવામાં મદદ કરે છે.",feedbackPlaceholder:"તમારા અનુભવ વિશે અમને વધુ જણાવો…",submit:"સબમિટ કરો",leadFormTitle:"સંપર્ક માહિતી",leadFormSuccess:"આભાર! તમારી વિગતો સબમિટ થઈ ગઈ છે.",leadFormRequiredError:"કૃપા કરીને બધા જરૂરી ફીલ્ડ ભરો.",leadFormGenericError:"કંઈક ખોટું થયું. કૃપા કરી ફરી પ્રયાસ કરો.",leadFormName:"નામ",leadFormEmail:"ઇમેઇલ",leadFormPhone:"ફોન",leadFormMessage:"તમારો સંદેશ",poweredBy:"સંચાલિત {brand}"},Fh={sendMessage:"संदेश भेजें",send:"भेजें",close:"बंद करें",minimize:"छोटा करें",maximize:"बड़ा करें",call:"कॉल करें",listening:"सुन रहा है",processing:"प्रोसेस हो रहा है",talkToInterrupt:"रोकने के लिए बोलें",startVoice:"वॉइस शुरू करें",stopVoice:"वॉइस रोकें",endCall:"कॉल समाप्त करें",openChat:"चैट खोलें",connectionFailed:"कनेक्शन विफल",retry:"फिर कोशिश करें",loading:"लोड हो रहा है",creditsExhausted:"क्रेडिट समाप्त",creditsExhaustedDetail:"इस सत्र के क्रेडिट समाप्त हो गए हैं।",consentTitle:"गोपनीयता सहमति",consentBody:"आगे बढ़ने पर, आप हमारे द्वारा वर्णित अनुसार अपने डेटा के संग्रह और प्रसंस्करण के लिए सहमत होते हैं",consentAccept:"स्वीकार करें",consentDecline:"अस्वीकार करें",consentTermsLink:"सेवा की शर्तें",consentPrivacyLink:"गोपनीयता नीति",refresh:"रिफ्रेश करें",ratingQuestion:"यह बातचीत कैसी रही?",ratingThankYou:"आपकी प्रतिक्रिया के लिए धन्यवाद!",youEnded:"आपने बातचीत समाप्त की",agentEnded:"एजेंट ने बातचीत समाप्त की",sessionIdLabel:"आईडी:",tellUsMore:"हमें और बताएं",feedbackSubtitle:"आपकी प्रतिक्रिया हमें अपनी सेवा बेहतर बनाने और भविष्य में आपकी बेहतर सहायता करने में मदद करती है।",feedbackPlaceholder:"अपने अनुभव के बारे में हमें और बताएं…",submit:"सबमिट करें",leadFormTitle:"संपर्क जानकारी",leadFormSuccess:"धन्यवाद! आपकी जानकारी सबमिट कर दी गई है।",leadFormRequiredError:"कृपया सभी आवश्यक फ़ील्ड भरें।",leadFormGenericError:"कुछ गलत हो गया। कृपया पुनः प्रयास करें।",leadFormName:"नाम",leadFormEmail:"ईमेल",leadFormPhone:"फ़ोन",leadFormMessage:"आपका संदेश",poweredBy:"द्वारा संचालित {brand}"},Bh={sendMessage:"Üzenet küldése",send:"Küldés",close:"Bezárás",minimize:"Kis méret",maximize:"Teljes méret",call:"Hívás",listening:"Figyel",processing:"Feldolgozás",talkToInterrupt:"Beszéljen a megszakításhoz",startVoice:"Hang indítása",stopVoice:"Hang leállítása",endCall:"Hívás befejezése",openChat:"Csevegés megnyitása",connectionFailed:"A kapcsolat sikertelen",retry:"Újrapróbálkozás",loading:"Betöltés",creditsExhausted:"Kreditek elfogytak",creditsExhaustedDetail:"Ennek a munkamenetnek a kreditjei elfogytak.",consentTitle:"Adatvédelmi hozzájárulás",consentBody:"A folytatással Ön hozzájárul adatainak gyűjtéséhez és feldolgozásához a mi",consentAccept:"Elfogadás",consentDecline:"Elutasítás",consentTermsLink:"Szolgáltatási feltételek",consentPrivacyLink:"Adatvédelmi irányelvek",refresh:"Frissítés",ratingQuestion:"Milyen volt ez a beszélgetés?",ratingThankYou:"Köszönjük a visszajelzését!",youEnded:"Ön fejezte be a beszélgetést",agentEnded:"Az ügynök fejezte be a beszélgetést",sessionIdLabel:"ID:",tellUsMore:"Mondjon többet",feedbackSubtitle:"Visszajelzése segít nekünk fejleszteni szolgáltatásunkat, és a jövőben jobban támogatni Önt.",feedbackPlaceholder:"Mondjon többet az élményéről…",submit:"Küldés",leadFormTitle:"Elérhetőségi adatok",leadFormSuccess:"Köszönjük! Az adatait elküldtük.",leadFormRequiredError:"Kérjük, töltse ki az összes kötelező mezőt.",leadFormGenericError:"Valami hiba történt. Kérjük, próbálja újra.",leadFormName:"Név",leadFormEmail:"E-mail",leadFormPhone:"Telefon",leadFormMessage:"Üzenete",poweredBy:"Működteti a(z) {brand}"},zh={sendMessage:"Kirim pesan",send:"Kirim",close:"Tutup",minimize:"Minimalkan",maximize:"Maksimalkan",call:"Panggil",listening:"Mendengarkan",processing:"Memproses",talkToInterrupt:"Bicara untuk menyela",startVoice:"Mulai suara",stopVoice:"Hentikan suara",endCall:"Akhiri panggilan",openChat:"Buka obrolan",connectionFailed:"Koneksi gagal",retry:"Coba lagi",loading:"Memuat",creditsExhausted:"Kredit Habis",creditsExhaustedDetail:"Kredit sesi ini telah habis.",consentTitle:"Persetujuan Privasi",consentBody:"Dengan melanjutkan, Anda menyetujui pengumpulan dan pemrosesan data Anda seperti yang dijelaskan dalam",consentAccept:"Terima",consentDecline:"Tolak",consentTermsLink:"Ketentuan Layanan",consentPrivacyLink:"Kebijakan Privasi",refresh:"Segarkan",ratingQuestion:"Bagaimana percakapan ini?",ratingThankYou:"Terima kasih atas masukan Anda!",youEnded:"Anda mengakhiri percakapan",agentEnded:"Agen mengakhiri percakapan",sessionIdLabel:"ID:",tellUsMore:"Ceritakan lebih banyak",feedbackSubtitle:"Masukan Anda membantu kami meningkatkan layanan dan mendukung Anda lebih baik di masa depan.",feedbackPlaceholder:"Ceritakan lebih banyak tentang pengalaman Anda…",submit:"Kirim",leadFormTitle:"Informasi kontak",leadFormSuccess:"Terima kasih! Detail Anda telah dikirim.",leadFormRequiredError:"Harap isi semua kolom yang wajib diisi.",leadFormGenericError:"Terjadi kesalahan. Silakan coba lagi.",leadFormName:"Nama",leadFormEmail:"Email",leadFormPhone:"Telepon",leadFormMessage:"Pesan Anda",poweredBy:"Didukung oleh {brand}"},jh={sendMessage:"Invia un messaggio",send:"Invia",close:"Chiudi",minimize:"Riduci",maximize:"Ingrandisci",call:"Chiama",listening:"In ascolto",processing:"Elaborazione",talkToInterrupt:"Parla per interrompere",startVoice:"Avvia voce",stopVoice:"Ferma voce",endCall:"Termina chiamata",openChat:"Apri chat",connectionFailed:"Connessione non riuscita",retry:"Riprova",loading:"Caricamento",creditsExhausted:"Crediti esauriti",creditsExhaustedDetail:"Questa sessione ha esaurito i crediti.",consentTitle:"Consenso alla privacy",consentBody:"Proseguendo, accetti la raccolta e il trattamento dei tuoi dati come descritto nei nostri",consentAccept:"Accetta",consentDecline:"Rifiuta",consentTermsLink:"Termini di servizio",consentPrivacyLink:"Informativa sulla privacy",refresh:"Aggiorna",ratingQuestion:"Com’è andata questa conversazione?",ratingThankYou:"Grazie per il tuo feedback!",youEnded:"Hai terminato tu la conversazione",agentEnded:"L’agente ha terminato la conversazione",sessionIdLabel:"ID:",tellUsMore:"Dicci di più",feedbackSubtitle:"Il tuo feedback ci aiuta a migliorare il servizio e a supportarti meglio in futuro.",feedbackPlaceholder:"Raccontaci di più sulla tua esperienza…",submit:"Invia",leadFormTitle:"Informazioni di contatto",leadFormSuccess:"Grazie! I tuoi dati sono stati inviati.",leadFormRequiredError:"Compila tutti i campi obbligatori.",leadFormGenericError:"Qualcosa è andato storto. Riprova.",leadFormName:"Nome",leadFormEmail:"E-mail",leadFormPhone:"Telefono",leadFormMessage:"Il tuo messaggio",poweredBy:"Offerto da {brand}"},Hh={sendMessage:"メッセージを送信",send:"送信",close:"閉じる",minimize:"最小化",maximize:"最大化",call:"通話",listening:"聞き取り中",processing:"処理中",talkToInterrupt:"話して中断",startVoice:"音声を開始",stopVoice:"音声を停止",endCall:"通話終了",openChat:"チャットを開く",connectionFailed:"接続に失敗しました",retry:"再試行",loading:"読み込み中",creditsExhausted:"クレジット切れ",creditsExhaustedDetail:"このセッションのクレジットがなくなりました。",consentTitle:"プライバシー同意",consentBody:"続行すると、当社に記載されているように、お客様のデータの収集と処理に同意したことになります。",consentAccept:"同意する",consentDecline:"拒否する",consentTermsLink:"利用規約",consentPrivacyLink:"プライバシーポリシー",refresh:"リフレッシュ",ratingQuestion:"この会話はいかがでしたか?",ratingThankYou:"フィードバックをありがとうございます!",youEnded:"あなたが会話を終了しました",agentEnded:"エージェントが会話を終了しました",sessionIdLabel:"ID:",tellUsMore:"詳しく教えてください",feedbackSubtitle:"いただいたフィードバックは、サービスの改善と今後のより良いサポートに役立ちます。",feedbackPlaceholder:"ご体験について詳しくお聞かせください…",submit:"送信",leadFormTitle:"連絡先情報",leadFormSuccess:"ありがとうございます!情報が送信されました。",leadFormRequiredError:"必須項目をすべて入力してください。",leadFormGenericError:"問題が発生しました。もう一度お試しください。",leadFormName:"お名前",leadFormEmail:"メールアドレス",leadFormPhone:"電話番号",leadFormMessage:"メッセージ",poweredBy:"提供: {brand}"},Uh={sendMessage:"ಸಂದೇಶ ಕಳುಹಿಸಿ",send:"ಕಳುಹಿಸಿ",close:"ಮುಚ್ಚಿ",minimize:"ಚಿಕ್ಕದಾಗಿಸು",maximize:"ದೊಡ್ಡದಾಗಿಸು",call:"ಕರೆ ಮಾಡಿ",listening:"ಕೇಳುತ್ತಿದೆ",processing:"ಪ್ರಕ್ರಿಯೆಗೊಳಿಸುತ್ತಿದೆ",talkToInterrupt:"ತಡೆಯಲು ಮಾತನಾಡಿ",startVoice:"ಧ್ವನಿ ಪ್ರಾರಂಭಿಸಿ",stopVoice:"ಧ್ವನಿ ನಿಲ್ಲಿಸಿ",endCall:"ಕರೆ ಕೊನೆಗೊಳಿಸಿ",openChat:"ಚಾಟ್ ತೆರೆಯಿರಿ",connectionFailed:"ಸಂಪರ್ಕ ವಿಫಲವಾಗಿದೆ",retry:"ಮತ್ತೆ ಪ್ರಯತ್ನಿಸಿ",loading:"ಲೋಡ್ ಆಗುತ್ತಿದೆ",creditsExhausted:"ಕ್ರೆಡಿಟ್ಗಳು ಮುಗಿದಿವೆ",creditsExhaustedDetail:"ಈ ಸೆಷನ್ನ ಕ್ರೆಡಿಟ್ಗಳು ಮುಗಿದಿವೆ.",consentTitle:"ಗೌಪ್ಯತೆ ಒಪ್ಪಿಗೆ",consentBody:"ಮುಂದುವರಿಯುವ ಮೂಲಕ, ನಮ್ಮಲ್ಲಿ ವಿವರಿಸಿದಂತೆ ನಿಮ್ಮ ಡೇಟಾವನ್ನು ಸಂಗ್ರಹಿಸುವುದು ಮತ್ತು ಸಂಸ್ಕರಿಸುವುದನ್ನು ನೀವು ಒಪ್ಪುತ್ತೀರಿ",consentAccept:"ಸ್ವೀಕರಿಸಿ",consentDecline:"ನಿರಾಕರಿಸಿ",consentTermsLink:"ಸೇವೆಯ ನಿಯಮಗಳು",consentPrivacyLink:"ಗೌಪ್ಯತೆ ನೀತಿ",refresh:"ರಿಫ್ರೆಶ್ ಮಾಡಿ",ratingQuestion:"ಈ ಸಂಭಾಷಣೆ ಹೇಗಿತ್ತು?",ratingThankYou:"ನಿಮ್ಮ ಪ್ರತಿಕ್ರಿಯೆಗೆ ಧನ್ಯವಾದಗಳು!",youEnded:"ನೀವು ಸಂಭಾಷಣೆಯನ್ನು ಕೊನೆಗೊಳಿಸಿದ್ದೀರಿ",agentEnded:"ಏಜೆಂಟ್ ಸಂಭಾಷಣೆಯನ್ನು ಕೊನೆಗೊಳಿಸಿದ್ದಾರೆ",sessionIdLabel:"ID:",tellUsMore:"ನಮಗೆ ಇನ್ನಷ್ಟು ತಿಳಿಸಿ",feedbackSubtitle:"ನಿಮ್ಮ ಪ್ರತಿಕ್ರಿಯೆ ನಮ್ಮ ಸೇವೆಯನ್ನು ಸುಧಾರಿಸಲು ಮತ್ತು ಭವಿಷ್ಯದಲ್ಲಿ ನಿಮಗೆ ಉತ್ತಮ ಬೆಂಬಲ ನೀಡಲು ಸಹಾಯ ಮಾಡುತ್ತದೆ.",feedbackPlaceholder:"ನಿಮ್ಮ ಅನುಭವದ ಬಗ್ಗೆ ನಮಗೆ ಇನ್ನಷ್ಟು ತಿಳಿಸಿ…",submit:"ಸಲ್ಲಿಸಿ",leadFormTitle:"ಸಂಪರ್ಕ ಮಾಹಿತಿ",leadFormSuccess:"ಧನ್ಯವಾದಗಳು! ನಿಮ್ಮ ವಿವರಗಳನ್ನು ಸಲ್ಲಿಸಲಾಗಿದೆ.",leadFormRequiredError:"ದಯವಿಟ್ಟು ಎಲ್ಲಾ ಅಗತ್ಯ ಕ್ಷೇತ್ರಗಳನ್ನು ಭರ್ತಿ ಮಾಡಿ.",leadFormGenericError:"ಏನೋ ತಪ್ಪಾಗಿದೆ. ದಯವಿಟ್ಟು ಮತ್ತೆ ಪ್ರಯತ್ನಿಸಿ.",leadFormName:"ಹೆಸರು",leadFormEmail:"ಇಮೇಲ್",leadFormPhone:"ಫೋನ್",leadFormMessage:"ನಿಮ್ಮ ಸಂದೇಶ",poweredBy:"ನಡೆಸುವವರು {brand}"},qh={sendMessage:"Хабарлама жіберу",send:"Жіберу",close:"Жабу",minimize:"Кішірейту",maximize:"Үлкейту",call:"Қоңырау шалу",listening:"Тыңдауда",processing:"Өңдеу",talkToInterrupt:"Үзу үшін сөйлеңіз",startVoice:"Дауысты бастау",stopVoice:"Дауысты тоқтату",endCall:"Қоңырауды аяқтау",openChat:"Чатты ашу",connectionFailed:"Қосылым сәтсіз аяқталды",retry:"Қайталау",loading:"Жүктелуде",creditsExhausted:"Кредиттер таусылды",creditsExhaustedDetail:"Бұл сессияның кредиттері таусылды.",consentTitle:"Құпиялылық келісімі",consentBody:"Жалғастыру арқылы сіз деректеріңізді жинауға және өңдеуге келісім бересіз",consentAccept:"Қабылдау",consentDecline:"Қабылдамау",consentTermsLink:"Қызмет көрсету шарттары",consentPrivacyLink:"Құпиялылық саясаты",refresh:"Жаңарту",ratingQuestion:"Бұл әңгіме қалай өтті?",ratingThankYou:"Пікіріңіз үшін рахмет!",youEnded:"Әңгімені сіз аяқтадыңыз",agentEnded:"Агент әңгімені аяқтады",sessionIdLabel:"ID:",tellUsMore:"Бізге көбірек айтыңыз",feedbackSubtitle:"Пікіріңіз бізге қызметімізді жақсартуға және болашақта сізге жақсырақ қолдау көрсетуге көмектеседі.",feedbackPlaceholder:"Тәжірибеңіз туралы бізге көбірек айтыңыз…",submit:"Жіберу",leadFormTitle:"Байланыс ақпараты",leadFormSuccess:"Рахмет! Сіздің деректеріңіз жіберілді.",leadFormRequiredError:"Барлық міндетті жолдарды толтырыңыз.",leadFormGenericError:"Бірдеңе қате кетті. Қайталап көріңіз.",leadFormName:"Аты",leadFormEmail:"Электрондық пошта",leadFormPhone:"Телефон",leadFormMessage:"Сіздің хабарламаңыз",poweredBy:"Қолдаушы {brand}"},Vh={sendMessage:"메시지 보내기",send:"보내기",close:"닫기",minimize:"최소화",maximize:"최대화",call:"전화",listening:"듣는 중",processing:"처리 중",talkToInterrupt:"말해서 중단",startVoice:"음성 시작",stopVoice:"음성 중지",endCall:"통화 종료",openChat:"채팅 열기",connectionFailed:"연결 실패",retry:"다시 시도",loading:"로딩 중",creditsExhausted:"크레딧 소진",creditsExhaustedDetail:"이 세션의 크레딧이 모두 소진되었습니다.",consentTitle:"개인정보 동의",consentBody:"계속 진행하면 당사에 설명된 대로 데이터 수집 및 처리에 동의하게 됩니다.",consentAccept:"동의",consentDecline:"거부",consentTermsLink:"서비스 이용약관",consentPrivacyLink:"개인정보 처리방침",refresh:"새로고침",ratingQuestion:"이 대화는 어떠셨나요?",ratingThankYou:"의견 주셔서 감사합니다!",youEnded:"회원님이 대화를 종료했습니다",agentEnded:"상담원이 대화를 종료했습니다",sessionIdLabel:"ID:",tellUsMore:"더 알려주세요",feedbackSubtitle:"의견은 서비스를 개선하고 앞으로 더 나은 지원을 제공하는 데 도움이 됩니다.",feedbackPlaceholder:"경험에 대해 더 알려주세요…",submit:"제출",leadFormTitle:"연락처 정보",leadFormSuccess:"감사합니다! 정보가 제출되었습니다.",leadFormRequiredError:"필수 항목을 모두 입력해 주세요.",leadFormGenericError:"문제가 발생했습니다. 다시 시도해 주세요.",leadFormName:"이름",leadFormEmail:"이메일",leadFormPhone:"전화번호",leadFormMessage:"메시지",poweredBy:"제공: {brand}"},$h={sendMessage:"Sūtīt ziņojumu",send:"Sūtīt",close:"Aizvērt",minimize:"Minimizēt",maximize:"Maksimizēt",call:"Zvanīt",listening:"Klausās",processing:"Apstrādā",talkToInterrupt:"Runājiet, lai pārtrauktu",startVoice:"Sākt balsi",stopVoice:"Pārtraukt balsi",endCall:"Beigt zvanu",openChat:"Atvērt tērzēšanu",connectionFailed:"Savienojums neizdevās",retry:"Mēģināt vēlreiz",loading:"Ielādē",creditsExhausted:"Kredīti izsmelti",creditsExhaustedDetail:"Šīs sesijas kredīti ir izsmelti.",consentTitle:"Piekrišana privātumam",consentBody:"Turpinot, jūs piekrītat savu datu vākšanai un apstrādei, kā aprakstīts mūsu",consentAccept:"Piekrist",consentDecline:"Noraidīt",consentTermsLink:"Pakalpojuma noteikumi",consentPrivacyLink:"Privātuma politika",refresh:"Atjaunot",ratingQuestion:"Kāda bija šī saruna?",ratingThankYou:"Paldies par jūsu atsauksmi!",youEnded:"Jūs pabeidzāt sarunu",agentEnded:"Aģents pabeidza sarunu",sessionIdLabel:"ID:",tellUsMore:"Pastāstiet mums vairāk",feedbackSubtitle:"Jūsu atsauksme palīdz mums uzlabot pakalpojumu un nākotnē jūs labāk atbalstīt.",feedbackPlaceholder:"Pastāstiet mums vairāk par savu pieredzi…",submit:"Iesniegt",leadFormTitle:"Kontaktinformācija",leadFormSuccess:"Paldies! Jūsu dati ir iesniegti.",leadFormRequiredError:"Lūdzu, aizpildiet visus obligātos laukus.",leadFormGenericError:"Kaut kas noticis nepareizi. Lūdzu, mēģiniet vēlreiz.",leadFormName:"Vārds",leadFormEmail:"E-pasts",leadFormPhone:"Tālrunis",leadFormMessage:"Jūsu ziņojums",poweredBy:"Nodrošina {brand}"},Yh={sendMessage:"Siųsti žinutę",send:"Siųsti",close:"Uždaryti",minimize:"Sumažinti",maximize:"Padidinti",call:"Skambinti",listening:"Klausosi",processing:"Apdorojama",talkToInterrupt:"Kalbėkite, kad pertrauktumėte",startVoice:"Pradėti balsą",stopVoice:"Sustabdyti balsą",endCall:"Baigti skambutį",openChat:"Atidaryti pokalbį",connectionFailed:"Ryšys nepavyko",retry:"Bandyti dar kartą",loading:"Įkeliama",creditsExhausted:"Kreditai išnaudoti",creditsExhaustedDetail:"Šios sesijos kreditai išnaudoti.",consentTitle:"Sutikimas dėl privatumo",consentBody:"Tęsdami sutinkate, kad jūsų duomenys būtų renkami ir tvarkomi, kaip aprašyta mūsų",consentAccept:"Sutikti",consentDecline:"Atmesti",consentTermsLink:"Paslaugų teikimo sąlygos",consentPrivacyLink:"Privatumo politika",refresh:"Atnaujinti",ratingQuestion:"Kokie buvo šie pokalbiai?",ratingThankYou:"Ačiū už jūsų atsiliepimą!",youEnded:"Jūs užbaigėte pokalbį",agentEnded:"Agentas užbaigė pokalbį",sessionIdLabel:"ID:",tellUsMore:"Papasakokite daugiau",feedbackSubtitle:"Jūsų atsiliepimas padeda mums tobulinti paslaugą ir ateityje geriau jus aptarnauti.",feedbackPlaceholder:"Papasakokite daugiau apie savo patirtį…",submit:"Pateikti",leadFormTitle:"Kontaktinė informacija",leadFormSuccess:"Dėkojame! Jūsų duomenys buvo pateikti.",leadFormRequiredError:"Užpildykite visus privalomus laukus.",leadFormGenericError:"Kažkas nutiko negerai. Bandykite dar kartą.",leadFormName:"Vardas",leadFormEmail:"El. paštas",leadFormPhone:"Telefonas",leadFormMessage:"Jūsų žinutė",poweredBy:"Palaiko {brand}"},Gh={sendMessage:"Испрати порака",send:"Испрати",close:"Затвори",minimize:"Минимизирај",maximize:"Максимизирај",call:"Повикај",listening:"Слуша",processing:"Обработува",talkToInterrupt:"Зборувајте за прекинување",startVoice:"Започни глас",stopVoice:"Запри глас",endCall:"Заврши повик",openChat:"Отвори чет",connectionFailed:"Поврзувањето не успеа",retry:"Обиди се повторно",loading:"Се вчитува",creditsExhausted:"Кредитите се потрошени",creditsExhaustedDetail:"Кредитите на оваа сесија се потрошени.",consentTitle:"Согласност за приватност",consentBody:"Продолжувајќи, се согласувате со собирањето и обработката на вашите податоци како што е опишано во нашите",consentAccept:"Прифати",consentDecline:"Одбиј",consentTermsLink:"Услови за користење",consentPrivacyLink:"Политика за приватност",refresh:"Обнови",ratingQuestion:"Каков беше овој разговор?",ratingThankYou:"Ви благодариме за вашата повратна информација!",youEnded:"Вие го завршивте разговорот",agentEnded:"Агентот го заврши разговорот",sessionIdLabel:"ID:",tellUsMore:"Кажете ни повеќе",feedbackSubtitle:"Вашата повратна информација ни помага да ја подобриме услугата и подобро да ве поддржиме во иднина.",feedbackPlaceholder:"Кажете ни повеќе за вашето искуство…",submit:"Испрати",leadFormTitle:"Информации за контакт",leadFormSuccess:"Ви благодариме! Вашите податоци се испратени.",leadFormRequiredError:"Пополнете ги сите задолжителни полиња.",leadFormGenericError:"Нешто тргна наопаку. Пробајте повторно.",leadFormName:"Име",leadFormEmail:"Е-пошта",leadFormPhone:"Телефон",leadFormMessage:"Вашата порака",poweredBy:"Овозможено од {brand}"},Wh={sendMessage:"Hantar mesej",send:"Hantar",close:"Tutup",minimize:"Minimumkan",maximize:"Maksimumkan",call:"Panggil",listening:"Mendengar",processing:"Memproses",talkToInterrupt:"Bercakap untuk mengganggu",startVoice:"Mulakan suara",stopVoice:"Hentikan suara",endCall:"Tamatkan panggilan",openChat:"Buka sembang",connectionFailed:"Sambungan gagal",retry:"Cuba lagi",loading:"Memuatkan",creditsExhausted:"Kredit Habis",creditsExhaustedDetail:"Kredit sesi ini telah habis.",consentTitle:"Persetujuan Privasi",consentBody:"Dengan meneruskan, anda bersetuju dengan pengumpulan dan pemprosesan data anda seperti yang diterangkan dalam",consentAccept:"Terima",consentDecline:"Tolak",consentTermsLink:"Terma Perkhidmatan",consentPrivacyLink:"Dasar Privasi",refresh:"Muat semula",ratingQuestion:"Bagaimana perbualan ini?",ratingThankYou:"Terima kasih atas maklum balas anda!",youEnded:"Anda menamatkan perbualan",agentEnded:"Ejen menamatkan perbualan",sessionIdLabel:"ID:",tellUsMore:"Beritahu kami lebih lanjut",feedbackSubtitle:"Maklum balas anda membantu kami menambah baik perkhidmatan dan menyokong anda dengan lebih baik pada masa depan.",feedbackPlaceholder:"Beritahu kami lebih lanjut tentang pengalaman anda…",submit:"Hantar",leadFormTitle:"Maklumat hubungan",leadFormSuccess:"Terima kasih! Butiran anda telah dihantar.",leadFormRequiredError:"Sila isi semua ruangan yang diperlukan.",leadFormGenericError:"Sesuatu tidak kena. Sila cuba lagi.",leadFormName:"Nama",leadFormEmail:"E-mel",leadFormPhone:"Telefon",leadFormMessage:"Mesej anda",poweredBy:"Dikuasakan oleh {brand}"},Kh={sendMessage:"ഒരു സന്ദേശം അയയ്ക്കുക",send:"അയയ്ക്കുക",close:"അടയ്ക്കുക",minimize:"ചെറുതാക്കുക",maximize:"വലുതാക്കുക",call:"വിളിക്കുക",listening:"ശ്രദ്ധിക്കുന്നു",processing:"പ്രോസസ്സ് ചെയ്യുന്നു",talkToInterrupt:"തടസ്സപ്പെടുത്താൻ സംസാരിക്കുക",startVoice:"ശബ്ദം ആരംഭിക്കുക",stopVoice:"ശബ്ദം നിർത്തുക",endCall:"കോൾ അവസാനിപ്പിക്കുക",openChat:"ചാറ്റ് തുറക്കുക",connectionFailed:"കണക്ഷൻ പരാജയപ്പെട്ടു",retry:"വീണ്ടും ശ്രമിക്കുക",loading:"ലോഡുചെയ്യുന്നു",creditsExhausted:"ക്രെഡിറ്റുകൾ തീർന്നു",creditsExhaustedDetail:"ഈ സെഷന്റെ ക്രെഡിറ്റുകൾ തീർന്നിരിക്കുന്നു.",consentTitle:"സ്വകാര്യത സമ്മതം",consentBody:"തുടരുന്നതിലൂടെ, ഞങ്ങളിൽ വിവരിച്ചിരിക്കുന്ന പ്രകാരം നിങ്ങളുടെ ഡാറ്റ ശേഖരിക്കുന്നതിനും പ്രോസസ്സ് ചെയ്യുന്നതിനും നിങ്ങൾ സമ്മതിക്കുന്നു",consentAccept:"സ്വീകരിക്കുക",consentDecline:"നിരസിക്കുക",consentTermsLink:"സേവന നിബന്ധനകൾ",consentPrivacyLink:"സ്വകാര്യതാ നയം",refresh:"പുതുക്കുക",ratingQuestion:"ഈ സംഭാഷണം എങ്ങനെയായിരുന്നു?",ratingThankYou:"നിങ്ങളുടെ പ്രതികരണത്തിന് നന്ദി!",youEnded:"നിങ്ങൾ സംഭാഷണം അവസാനിപ്പിച്ചു",agentEnded:"ഏജന്റ് സംഭാഷണം അവസാനിപ്പിച്ചു",sessionIdLabel:"ID:",tellUsMore:"ഞങ്ങളോട് കൂടുതൽ പറയൂ",feedbackSubtitle:"നിങ്ങളുടെ പ്രതികരണം ഞങ്ങളുടെ സേവനം മെച്ചപ്പെടുത്താനും ഭാവിയിൽ നിങ്ങളെ മികച്ച രീതിയിൽ പിന്തുണയ്ക്കാനും സഹായിക്കുന്നു.",feedbackPlaceholder:"നിങ്ങളുടെ അനുഭവത്തെക്കുറിച്ച് കൂടുതൽ പറയൂ…",submit:"സമർപ്പിക്കുക",leadFormTitle:"ബന്ധപ്പെടാനുള്ള വിവരങ്ങൾ",leadFormSuccess:"നന്ദി! നിങ്ങളുടെ വിവരങ്ങൾ സമർപ്പിച്ചു.",leadFormRequiredError:"ദയവായി എല്ലാ ആവശ്യമായ ഫീൽഡുകളും പൂരിപ്പിക്കുക.",leadFormGenericError:"എന്തോ കുഴപ്പം സംഭവിച്ചു. വീണ്ടും ശ്രമിക്കുക.",leadFormName:"പേര്",leadFormEmail:"ഇമെയിൽ",leadFormPhone:"ഫോൺ",leadFormMessage:"നിങ്ങളുടെ സന്ദേശം",poweredBy:"നൽകുന്നത് {brand}"},Qh={sendMessage:"संदेश पाठवा",send:"पाठवा",close:"बंद करा",minimize:"लहान करा",maximize:"मोठे करा",call:"कॉल करा",listening:"ऐकत आहे",processing:"प्रक्रिया होत आहे",talkToInterrupt:"थांबवण्यासाठी बोला",startVoice:"व्हॉइस सुरू करा",stopVoice:"व्हॉइस थांबवा",endCall:"कॉल समाप्त करा",openChat:"चॅट उघडा",connectionFailed:"कनेक्शन अयशस्वी",retry:"पुन्हा प्रयत्न करा",loading:"लोड होत आहे",creditsExhausted:"क्रेडिट्स संपली",creditsExhaustedDetail:"या सत्राची क्रेडिट्स संपली आहेत.",consentTitle:"गोपनीयता संमती",consentBody:"पुढे जाऊन, आमच्यामध्ये वर्णन केल्याप्रमाणे तुम्ही तुमच्या डेटाच्या संकलन आणि प्रक्रियेस सहमती देता",consentAccept:"स्वीकारा",consentDecline:"नकार द्या",consentTermsLink:"सेवेच्या अटी",consentPrivacyLink:"गोपनीयता धोरण",refresh:"रिफ्रेश करा",ratingQuestion:"हे संभाषण कसे होते?",ratingThankYou:"तुमच्या अभिप्रायाबद्दल धन्यवाद!",youEnded:"तुम्ही संभाषण संपवले",agentEnded:"एजंटने संभाषण संपवले",sessionIdLabel:"ID:",tellUsMore:"आम्हाला अधिक सांगा",feedbackSubtitle:"तुमचा अभिप्राय आम्हाला आमची सेवा सुधारण्यात आणि भविष्यात तुम्हाला अधिक चांगली मदत करण्यात मदत करतो.",feedbackPlaceholder:"तुमच्या अनुभवाबद्दल आम्हाला अधिक सांगा…",submit:"सबमिट करा",leadFormTitle:"संपर्क माहिती",leadFormSuccess:"धन्यवाद! तुमची माहिती सबमिट केली आहे.",leadFormRequiredError:"कृपया सर्व आवश्यक फील्ड भरा.",leadFormGenericError:"काहीतरी चुकले. कृपया पुन्हा प्रयत्न करा.",leadFormName:"नाव",leadFormEmail:"ईमेल",leadFormPhone:"फोन",leadFormMessage:"तुमचा संदेश",poweredBy:"समर्थित {brand}"},Xh={sendMessage:"Send en melding",send:"Send",close:"Lukk",minimize:"Minimer",maximize:"Maksimer",call:"Ring",listening:"Lytter",processing:"Behandler",talkToInterrupt:"Snakk for å avbryte",startVoice:"Start tale",stopVoice:"Stopp tale",endCall:"Avslutt samtale",openChat:"Åpne chat",connectionFailed:"Tilkobling mislyktes",retry:"Prøv igjen",loading:"Laster",creditsExhausted:"Kreditter oppbrukt",creditsExhaustedDetail:"Denne øktens kreditter er oppbrukt.",consentTitle:"Personvernerklæring",consentBody:"Ved å fortsette godtar du innsamling og behandling av dataene dine som beskrevet i våre",consentAccept:"Godta",consentDecline:"Avslå",consentTermsLink:"Vilkår for bruk",consentPrivacyLink:"Personvernpolicy",refresh:"Oppdater",ratingQuestion:"Hvordan var denne samtalen?",ratingThankYou:"Takk for tilbakemeldingen din!",youEnded:"Du avsluttet samtalen",agentEnded:"Agenten avsluttet samtalen",sessionIdLabel:"ID:",tellUsMore:"Fortell oss mer",feedbackSubtitle:"Tilbakemeldingen din hjelper oss med å forbedre tjenesten og støtte deg bedre i fremtiden.",feedbackPlaceholder:"Fortell oss mer om opplevelsen din…",submit:"Send inn",leadFormTitle:"Kontaktinfo",leadFormSuccess:"Takk! Dine opplysninger er sendt.",leadFormRequiredError:"Fyll ut alle obligatoriske felt.",leadFormGenericError:"Noe gikk galt. Prøv igjen.",leadFormName:"Navn",leadFormEmail:"E-post",leadFormPhone:"Telefon",leadFormMessage:"Din melding",poweredBy:"Drevet av {brand}"},Zh={sendMessage:"پیامی بنویسید",send:"ارسال",close:"بستن",minimize:"کوچک کردن",maximize:"بزرگ کردن",call:"تماس بگیر",listening:"در حال شنیدن",processing:"در حال پردازش",talkToInterrupt:"برای قطع کردن صحبت کنید",startVoice:"شروع صدا",stopVoice:"توقف صدا",endCall:"پایان تماس",openChat:"باز کردن گفتگو",connectionFailed:"اتصال ناموفق بود",retry:"تلاش دوباره",loading:"در حال بارگذاری",creditsExhausted:"اعتبار تمام شد",creditsExhaustedDetail:"اعتبار این جلسه تمام شده است.",consentTitle:"رضایت حریم خصوصی",consentBody:"با ادامه، شما با جمعآوری و پردازش دادههای خود همانطور که در شرح داده شده است موافقت میکنید",consentAccept:"پذیرش",consentDecline:"رد",consentTermsLink:"شرایط خدمات",consentPrivacyLink:"سیاست حفظ حریم خصوصی",refresh:"بازنشانی",ratingQuestion:"این گفتگو چطور بود؟",ratingThankYou:"از بازخورد شما سپاسگزاریم!",youEnded:"شما گفتگو را پایان دادید",agentEnded:"دستیار گفتگو را پایان داد",sessionIdLabel:"شناسه:",tellUsMore:"بیشتر بگویید",feedbackSubtitle:"بازخورد شما به ما کمک میکند خدماتمان را بهبود دهیم و در آینده بهتر از شما پشتیبانی کنیم.",feedbackPlaceholder:"درباره تجربه خود بیشتر بگویید…",submit:"ارسال",leadFormTitle:"اطلاعات تماس",leadFormSuccess:"متشکریم! اطلاعات شما ارسال شد.",leadFormRequiredError:"لطفاً همه فیلدهای ضروری را تکمیل کنید.",leadFormGenericError:"مشکلی پیش آمد. لطفاً دوباره تلاش کنید.",leadFormName:"نام",leadFormEmail:"ایمیل",leadFormPhone:"تلفن",leadFormMessage:"پیام شما",poweredBy:"با پشتیبانی {brand}"},Jh={sendMessage:"Wyślij wiadomość",send:"Wyślij",close:"Zamknij",minimize:"Minimalizuj",maximize:"Maksymalizuj",call:"Zadzwoń",listening:"Słucha",processing:"Przetwarzanie",talkToInterrupt:"Mów, aby przerwać",startVoice:"Rozpocznij głos",stopVoice:"Zatrzymaj głos",endCall:"Zakończ połączenie",openChat:"Otwórz chat",connectionFailed:"Połączenie nieudane",retry:"Spróbuj ponownie",loading:"Ładowanie",creditsExhausted:"Kredyty wyczerpane",creditsExhaustedDetail:"Ta sesja wykorzystała wszystkie kredyty.",consentTitle:"Zgoda na prywatność",consentBody:"Kontynuując, wyrażasz zgodę na gromadzenie i przetwarzanie swoich danych, jak opisano w naszych",consentAccept:"Akceptuj",consentDecline:"Odrzuć",consentTermsLink:"Warunki korzystania z usługi",consentPrivacyLink:"Polityka prywatności",refresh:"Odśwież",ratingQuestion:"Jak przebiegła ta rozmowa?",ratingThankYou:"Dziękujemy za opinię!",youEnded:"To Ty zakończyłeś rozmowę",agentEnded:"Agent zakończył rozmowę",sessionIdLabel:"ID:",tellUsMore:"Powiedz nam więcej",feedbackSubtitle:"Twoja opinia pomaga nam ulepszać usługę i lepiej wspierać Cię w przyszłości.",feedbackPlaceholder:"Powiedz nam więcej o swoim doświadczeniu…",submit:"Wyślij",leadFormTitle:"Dane kontaktowe",leadFormSuccess:"Dziękujemy! Twoje dane zostały wysłane.",leadFormRequiredError:"Wypełnij wszystkie wymagane pola.",leadFormGenericError:"Coś poszło nie tak. Spróbuj ponownie.",leadFormName:"Imię",leadFormEmail:"E-mail",leadFormPhone:"Telefon",leadFormMessage:"Twoja wiadomość",poweredBy:"Obsługiwane przez {brand}"},em={sendMessage:"Enviar mensagem",send:"Enviar",close:"Fechar",minimize:"Minimizar",maximize:"Maximizar",call:"Ligar",listening:"Ouvindo",processing:"Processando",talkToInterrupt:"Fale para interromper",startVoice:"Iniciar voz",stopVoice:"Parar voz",endCall:"Encerrar chamada",openChat:"Abrir chat",connectionFailed:"Falha na conexão",retry:"Tentar novamente",loading:"Carregando",creditsExhausted:"Créditos esgotados",creditsExhaustedDetail:"Esta sessão esgotou os créditos.",consentTitle:"Consentimento de Privacidade",consentBody:"Ao prosseguir, você concorda com a coleta e o processamento dos seus dados conforme descrito em nossos",consentAccept:"Aceitar",consentDecline:"Recusar",consentTermsLink:"Termos de Serviço",consentPrivacyLink:"Política de Privacidade",refresh:"Atualizar",ratingQuestion:"Como foi esta conversa?",ratingThankYou:"Obrigado pelo seu feedback!",youEnded:"Você encerrou a conversa",agentEnded:"O agente encerrou a conversa",sessionIdLabel:"ID:",tellUsMore:"Conte-nos mais",feedbackSubtitle:"Seu feedback nos ajuda a melhorar nosso serviço e a apoiar você melhor no futuro.",feedbackPlaceholder:"Conte-nos mais sobre a sua experiência…",submit:"Enviar",leadFormTitle:"Informações de contacto",leadFormSuccess:"Obrigado! Os seus dados foram enviados.",leadFormRequiredError:"Preencha todos os campos obrigatórios.",leadFormGenericError:"Algo correu mal. Tente novamente.",leadFormName:"Nome",leadFormEmail:"E-mail",leadFormPhone:"Telefone",leadFormMessage:"Sua mensagem",poweredBy:"Desenvolvido por {brand}"},tm={sendMessage:"ਇੱਕ ਸੁਨੇਹਾ ਭੇਜੋ",send:"ਭੇਜੋ",close:"ਬੰਦ ਕਰੋ",minimize:"ਛੋਟਾ ਕਰੋ",maximize:"ਵੱਡਾ ਕਰੋ",call:"ਕਾਲ ਕਰੋ",listening:"ਸੁਣ ਰਿਹਾ ਹੈ",processing:"ਪ੍ਰਕਿਰਿਆ ਹੋ ਰਹੀ ਹੈ",talkToInterrupt:"ਰੋਕਣ ਲਈ ਬੋਲੋ",startVoice:"ਵੌਇਸ ਸ਼ੁਰੂ ਕਰੋ",stopVoice:"ਵੌਇਸ ਬੰਦ ਕਰੋ",endCall:"ਕਾਲ ਖਤਮ ਕਰੋ",openChat:"ਚੈਟ ਖੋਲ੍ਹੋ",connectionFailed:"ਕੁਨੈਕਸ਼ਨ ਅਸਫਲ",retry:"ਮੁੜ ਕੋਸ਼ਿਸ਼ ਕਰੋ",loading:"ਲੋਡ ਹੋ ਰਿਹਾ ਹੈ",creditsExhausted:"ਕ੍ਰੈਡਿਟ ਖਤਮ",creditsExhaustedDetail:"ਇਸ ਸੈਸ਼ਨ ਦੇ ਕ੍ਰੈਡਿਟ ਖਤਮ ਹੋ ਗਏ ਹਨ।",consentTitle:"ਗੋਪਨੀਯਤਾ ਸਹਿਮਤੀ",consentBody:"ਅੱਗੇ ਵਧਣ ਨਾਲ, ਤੁਸੀਂ ਸਾਡੇ ਵਿੱਚ ਦੱਸੇ ਅਨੁਸਾਰ ਆਪਣੇ ਡੇਟਾ ਦੇ ਸੰਗ੍ਰਹਿ ਅਤੇ ਪ੍ਰਕਿਰਿਆ ਲਈ ਸਹਿਮਤ ਹੁੰਦੇ ਹੋ",consentAccept:"ਸਵੀਕਾਰ ਕਰੋ",consentDecline:"ਅਸਵੀਕਾਰ ਕਰੋ",consentTermsLink:"ਸੇਵਾ ਦੀਆਂ ਸ਼ਰਤਾਂ",consentPrivacyLink:"ਗੋਪਨੀਯਤਾ ਨੀਤੀ",refresh:"ਰਿਫ੍ਰੈਸ਼ ਕਰੋ",ratingQuestion:"ਇਹ ਗੱਲਬਾਤ ਕਿਵੇਂ ਰਹੀ?",ratingThankYou:"ਤੁਹਾਡੇ ਸੁਝਾਅ ਲਈ ਧੰਨਵਾਦ!",youEnded:"ਤੁਸੀਂ ਗੱਲਬਾਤ ਖ਼ਤਮ ਕੀਤੀ",agentEnded:"ਏਜੰਟ ਨੇ ਗੱਲਬਾਤ ਖ਼ਤਮ ਕੀਤੀ",sessionIdLabel:"ID:",tellUsMore:"ਸਾਨੂੰ ਹੋਰ ਦੱਸੋ",feedbackSubtitle:"ਤੁਹਾਡਾ ਸੁਝਾਅ ਸਾਨੂੰ ਸਾਡੀ ਸੇਵਾ ਸੁਧਾਰਨ ਅਤੇ ਭਵਿੱਖ ਵਿੱਚ ਤੁਹਾਡੀ ਬਿਹਤਰ ਮਦਦ ਕਰਨ ਵਿੱਚ ਸਹਾਇਤਾ ਕਰਦਾ ਹੈ।",feedbackPlaceholder:"ਆਪਣੇ ਅਨੁਭਵ ਬਾਰੇ ਸਾਨੂੰ ਹੋਰ ਦੱਸੋ…",submit:"ਜਮ੍ਹਾਂ ਕਰੋ",leadFormTitle:"ਸੰਪਰਕ ਜਾਣਕਾਰੀ",leadFormSuccess:"ਧੰਨਵਾਦ! ਤੁਹਾਡੀ ਜਾਣਕਾਰੀ ਭੇਜ ਦਿੱਤੀ ਗਈ ਹੈ।",leadFormRequiredError:"ਕਿਰਪਾ ਕਰਕੇ ਸਾਰੇ ਲੋੜੀਂਦੇ ਖੇਤਰ ਭਰੋ।",leadFormGenericError:"ਕੁਝ ਗਲਤ ਹੋ ਗਿਆ। ਕਿਰਪਾ ਕਰਕੇ ਦੁਬਾਰਾ ਕੋਸ਼ਿਸ਼ ਕਰੋ।",leadFormName:"ਨਾਮ",leadFormEmail:"ਈਮੇਲ",leadFormPhone:"ਫ਼ੋਨ",leadFormMessage:"ਤੁਹਾਡਾ ਸੁਨੇਹਾ",poweredBy:"ਦੁਆਰਾ ਸੰਚਾਲਿਤ {brand}"},nm={sendMessage:"Trimite un mesaj",send:"Trimite",close:"Închide",minimize:"Minimizează",maximize:"Maximizează",call:"Apelează",listening:"Ascultă",processing:"Procesare",talkToInterrupt:"Vorbiți pentru a întrerupe",startVoice:"Pornește vocea",stopVoice:"Oprește vocea",endCall:"Încheie apelul",openChat:"Deschide chatul",connectionFailed:"Conexiune eșuată",retry:"Reîncercați",loading:"Se încarcă",creditsExhausted:"Credite epuizate",creditsExhaustedDetail:"Creditele acestei sesiuni s-au epuizat.",consentTitle:"Consimțământ pentru confidențialitate",consentBody:"Continuând, sunteți de acord cu colectarea și procesarea datelor dvs. așa cum este descris în",consentAccept:"Acceptă",consentDecline:"Respinge",consentTermsLink:"Termeni și condiții",consentPrivacyLink:"Politica de confidențialitate",refresh:"Reîmprospătează",ratingQuestion:"Cum a fost această conversație?",ratingThankYou:"Mulțumim pentru feedback!",youEnded:"Tu ai încheiat conversația",agentEnded:"Agentul a încheiat conversația",sessionIdLabel:"ID:",tellUsMore:"Spune-ne mai multe",feedbackSubtitle:"Feedbackul tău ne ajută să ne îmbunătățim serviciul și să te sprijinim mai bine în viitor.",feedbackPlaceholder:"Spune-ne mai multe despre experiența ta…",submit:"Trimite",leadFormTitle:"Informații de contact",leadFormSuccess:"Mulțumim! Datele dumneavoastră au fost trimise.",leadFormRequiredError:"Completați toate câmpurile obligatorii.",leadFormGenericError:"Ceva nu a funcționat. Încercați din nou.",leadFormName:"Nume",leadFormEmail:"E-mail",leadFormPhone:"Telefon",leadFormMessage:"Mesajul dumneavoastră",poweredBy:"Dezvoltat de {brand}"},rm={sendMessage:"Отправить сообщение",send:"Отправить",close:"Закрыть",minimize:"Свернуть",maximize:"Развернуть",call:"Позвонить",listening:"Слушает",processing:"Обработка",talkToInterrupt:"Говорите, чтобы прервать",startVoice:"Начать голос",stopVoice:"Остановить голос",endCall:"Завершить звонок",openChat:"Открыть чат",connectionFailed:"Ошибка подключения",retry:"Повторить",loading:"Загрузка",creditsExhausted:"Кредиты исчерпаны",creditsExhaustedDetail:"В этой сессии закончились кредиты.",consentTitle:"Согласие на обработку данных",consentBody:"Продолжая, вы соглашаетесь на сбор и обработку ваших данных, как описано в наших",consentAccept:"Принять",consentDecline:"Отклонить",consentTermsLink:"Условия обслуживания",consentPrivacyLink:"Политика конфиденциальности",refresh:"Обновить",ratingQuestion:"Как прошёл этот разговор?",ratingThankYou:"Спасибо за ваш отзыв!",youEnded:"Вы завершили разговор",agentEnded:"Агент завершил разговор",sessionIdLabel:"ID:",tellUsMore:"Расскажите подробнее",feedbackSubtitle:"Ваш отзыв помогает нам улучшать сервис и лучше поддерживать вас в будущем.",feedbackPlaceholder:"Расскажите подробнее о вашем опыте…",submit:"Отправить",leadFormTitle:"Контактная информация",leadFormSuccess:"Спасибо! Ваши данные отправлены.",leadFormRequiredError:"Заполните все обязательные поля.",leadFormGenericError:"Что-то пошло не так. Попробуйте снова.",leadFormName:"Имя",leadFormEmail:"Электронная почта",leadFormPhone:"Телефон",leadFormMessage:"Ваше сообщение",poweredBy:"Работает на {brand}"},im={sendMessage:"Пошаљи поруку",send:"Пошаљи",close:"Затвори",minimize:"Минимизуј",maximize:"Максимизуј",call:"Позови",listening:"Слуша",processing:"Обрађује",talkToInterrupt:"Говорите за прекидање",startVoice:"Покрени глас",stopVoice:"Заустави глас",endCall:"Заврши позив",openChat:"Отвори чет",connectionFailed:"Веза није успела",retry:"Покушај поново",loading:"Учитавање",creditsExhausted:"Кредити су потрошени",creditsExhaustedDetail:"Кредити ове сесије су потрошени.",consentTitle:"Пристанак на приватност",consentBody:"Наставком пристајете на прикупљање и обраду ваших података како је описано у нашим",consentAccept:"Прихвати",consentDecline:"Одбиј",consentTermsLink:"Услови коришћења",consentPrivacyLink:"Политика приватности",refresh:"Освежи",ratingQuestion:"Какав је био овај разговор?",ratingThankYou:"Хвала на повратним информацијама!",youEnded:"Ви сте завршили разговор",agentEnded:"Агент је завршио разговор",sessionIdLabel:"ID:",tellUsMore:"Реците нам више",feedbackSubtitle:"Ваше повратне информације нам помажу да побољшамо услугу и боље вас подржимо у будућности.",feedbackPlaceholder:"Реците нам више о свом искуству…",submit:"Пошаљи",leadFormTitle:"Контакт информације",leadFormSuccess:"Хвала! Ваши подаци су послати.",leadFormRequiredError:"Попуните сва обавезна поља.",leadFormGenericError:"Нешто је пошло по злу. Покушајте поново.",leadFormName:"Име",leadFormEmail:"Имејл",leadFormPhone:"Телефон",leadFormMessage:"Ваша порука",poweredBy:"Омогућио {brand}"},am={sendMessage:"Poslať správu",send:"Odoslať",close:"Zavrieť",minimize:"Minimalizovať",maximize:"Maximalizovať",call:"Volaj",listening:"Počúva",processing:"Spracováva",talkToInterrupt:"Hovorte pre prerušenie",startVoice:"Spustiť hlas",stopVoice:"Zastaviť hlas",endCall:"Ukončiť hovor",openChat:"Otvoriť chat",connectionFailed:"Pripojenie zlyhalo",retry:"Skúsiť znova",loading:"Načítava sa",creditsExhausted:"Kredity vyčerpané",creditsExhaustedDetail:"Kredity tejto relácie boli vyčerpané.",consentTitle:"Súhlas so súkromím",consentBody:"Pokračovaním súhlasíte so zhromažďovaním a spracovaním vašich údajov, ako je popísané v našich",consentAccept:"Prijať",consentDecline:"Odmietnuť",consentTermsLink:"Podmienky služby",consentPrivacyLink:"Zásady ochrany súkromia",refresh:"Obnoviť",ratingQuestion:"Aká bola táto konverzácia?",ratingThankYou:"Ďakujeme za vašu spätnú väzbu!",youEnded:"Konverzáciu ste ukončili vy",agentEnded:"Konverzáciu ukončil agent",sessionIdLabel:"ID:",tellUsMore:"Povedzte nám viac",feedbackSubtitle:"Vaša spätná väzba nám pomáha zlepšovať službu a lepšie vás v budúcnosti podporovať.",feedbackPlaceholder:"Povedzte nám viac o svojej skúsenosti…",submit:"Odoslať",leadFormTitle:"Kontaktné údaje",leadFormSuccess:"Ďakujeme! Vaše údaje boli odoslané.",leadFormRequiredError:"Vyplňte všetky povinné polia.",leadFormGenericError:"Niečo sa pokazilo. Skúste znova.",leadFormName:"Meno",leadFormEmail:"E-mail",leadFormPhone:"Telefón",leadFormMessage:"Vaša správa",poweredBy:"Poháňané systémom {brand}"},sm={sendMessage:"Pošlji sporočilo",send:"Pošlji",close:"Zapri",minimize:"Minimiziraj",maximize:"Maksimiziraj",call:"Pokliči",listening:"Posluša",processing:"Obdeluje",talkToInterrupt:"Govorite za prekinitev",startVoice:"Zaženi glas",stopVoice:"Ustavi glas",endCall:"Končaj klic",openChat:"Odpri klepet",connectionFailed:"Povezava ni uspela",retry:"Poskusi znova",loading:"Nalaganje",creditsExhausted:"Krediti so porabljeni",creditsExhaustedDetail:"Krediti te seje so porabljeni.",consentTitle:"Soglasje za zasebnost",consentBody:"Z nadaljevanjem se strinjate z zbiranjem in obdelavo vaših podatkov, kot je opisano v naših",consentAccept:"Sprejmi",consentDecline:"Zavrni",consentTermsLink:"Pogoji storitve",consentPrivacyLink:"Pravilnik o zasebnosti",refresh:"Osveži",ratingQuestion:"Kakšen je bil ta pogovor?",ratingThankYou:"Hvala za vaše mnenje!",youEnded:"Pogovor ste končali vi",agentEnded:"Agent je končal pogovor",sessionIdLabel:"ID:",tellUsMore:"Povejte nam več",feedbackSubtitle:"Vaše mnenje nam pomaga izboljšati storitev in vas v prihodnje bolje podpirati.",feedbackPlaceholder:"Povejte nam več o svoji izkušnji…",submit:"Pošlji",leadFormTitle:"Kontaktni podatki",leadFormSuccess:"Hvala! Vaši podatki so bili posredovani.",leadFormRequiredError:"Izpolnite vsa obvezna polja.",leadFormGenericError:"Nekaj je šlo narobe. Poskusite znova.",leadFormName:"Ime",leadFormEmail:"E-pošta",leadFormPhone:"Telefon",leadFormMessage:"Vaše sporočilo",poweredBy:"Poganja {brand}"},om={sendMessage:"Enviar un mensaje",send:"Enviar",close:"Cerrar",minimize:"Minimizar",maximize:"Maximizar",call:"Llamar",listening:"Escuchando",processing:"Procesando",talkToInterrupt:"Habla para interrumpir",startVoice:"Iniciar voz",stopVoice:"Detener voz",endCall:"Finalizar llamada",openChat:"Abrir chat",connectionFailed:"Error de conexión",retry:"Reintentar",loading:"Cargando",creditsExhausted:"Créditos agotados",creditsExhaustedDetail:"Esta sesión ha agotado sus créditos.",consentTitle:"Consentimiento de Privacidad",consentBody:"Al continuar, acepta la recopilación y el procesamiento de sus datos según se describe en nuestros",consentAccept:"Aceptar",consentDecline:"Rechazar",consentTermsLink:"Términos del servicio",consentPrivacyLink:"Política de privacidad",refresh:"Actualizar",ratingQuestion:"¿Qué tal esta conversación?",ratingThankYou:"¡Gracias por tus comentarios!",youEnded:"Tú finalizaste la conversación",agentEnded:"El agente finalizó la conversación",sessionIdLabel:"ID:",tellUsMore:"Cuéntanos más",feedbackSubtitle:"Tus comentarios nos ayudan a mejorar nuestro servicio y a apoyarte mejor en el futuro.",feedbackPlaceholder:"Cuéntanos más sobre tu experiencia…",submit:"Enviar",leadFormTitle:"Información de contacto",leadFormSuccess:"¡Gracias! Tus datos han sido enviados.",leadFormRequiredError:"Por favor completa todos los campos obligatorios.",leadFormGenericError:"Algo salió mal. Inténtalo de nuevo.",leadFormName:"Nombre",leadFormEmail:"Correo electrónico",leadFormPhone:"Teléfono",leadFormMessage:"Tu mensaje",poweredBy:"Desarrollado por {brand}"},lm={sendMessage:"Tuma ujumbe",send:"Tuma",close:"Funga",minimize:"Punguza",maximize:"Panua",call:"Piga simu",listening:"Anasikiliza",processing:"Inachakata",talkToInterrupt:"Ongea ili kukatiza",startVoice:"Anzisha sauti",stopVoice:"Simamisha sauti",endCall:"Maliza simu",openChat:"Fungua mazungumzo",connectionFailed:"Muunganisho umeshindwa",retry:"Jaribu tena",loading:"Inapakia",creditsExhausted:"Salio limeisha",creditsExhaustedDetail:"Salio la kikao hiki limeisha.",consentTitle:"Idhini ya Faragha",consentBody:"Kwa kuendelea, unakubali ukusanyaji na usindikaji wa data yako kama ilivyoelezwa katika",consentAccept:"Kubali",consentDecline:"Kataa",consentTermsLink:"Sheria na Masharti",consentPrivacyLink:"Sera ya Faragha",refresh:"Onyesha upya",ratingQuestion:"Mazungumzo haya yalikuwaje?",ratingThankYou:"Asante kwa maoni yako!",youEnded:"Wewe ulimaliza mazungumzo",agentEnded:"Wakala alimaliza mazungumzo",sessionIdLabel:"ID:",tellUsMore:"Tuambie zaidi",feedbackSubtitle:"Maoni yako yanatusaidia kuboresha huduma yetu na kukusaidia vizuri zaidi siku zijazo.",feedbackPlaceholder:"Tuambie zaidi kuhusu tajriba yako…",submit:"Wasilisha",leadFormTitle:"Maelezo ya mawasiliano",leadFormSuccess:"Asante! Maelezo yako yamewasilishwa.",leadFormRequiredError:"Tafadhali jaza sehemu zote zinazohitajika.",leadFormGenericError:"Hitilafu imetokea. Tafadhali jaribu tena.",leadFormName:"Jina",leadFormEmail:"Barua pepe",leadFormPhone:"Simu",leadFormMessage:"Ujumbe wako",poweredBy:"Inaendeshwa na {brand}"},um={sendMessage:"Skicka ett meddelande",send:"Skicka",close:"Stäng",minimize:"Minimera",maximize:"Maximera",call:"Ring",listening:"Lyssnar",processing:"Bearbetar",talkToInterrupt:"Prata för att avbryta",startVoice:"Starta röst",stopVoice:"Stoppa röst",endCall:"Avsluta samtal",openChat:"Öppna chatt",connectionFailed:"Anslutning misslyckades",retry:"Försök igen",loading:"Laddar",creditsExhausted:"Krediter slut",creditsExhaustedDetail:"Den här sessionens krediter är slut.",consentTitle:"Samtycke till integritet",consentBody:"Genom att fortsätta godkänner du insamling och behandling av dina uppgifter enligt vad som beskrivs i våra",consentAccept:"Godkänn",consentDecline:"Avvisa",consentTermsLink:"Användarvillkor",consentPrivacyLink:"Integritetspolicy",refresh:"Uppdatera",ratingQuestion:"Hur var det här samtalet?",ratingThankYou:"Tack för din feedback!",youEnded:"Du avslutade samtalet",agentEnded:"Agenten avslutade samtalet",sessionIdLabel:"ID:",tellUsMore:"Berätta mer",feedbackSubtitle:"Din feedback hjälper oss att förbättra vår tjänst och stötta dig bättre i framtiden.",feedbackPlaceholder:"Berätta mer om din upplevelse…",submit:"Skicka",leadFormTitle:"Kontaktinformation",leadFormSuccess:"Tack! Dina uppgifter har skickats.",leadFormRequiredError:"Fyll i alla obligatoriska fält.",leadFormGenericError:"Något gick fel. Försök igen.",leadFormName:"Namn",leadFormEmail:"E-post",leadFormPhone:"Telefon",leadFormMessage:"Ditt meddelande",poweredBy:"Drivs av {brand}"},cm={sendMessage:"Magpadala ng mensahe",send:"Ipadala",close:"Isara",minimize:"Minimize",maximize:"Maximize",call:"Tawag",listening:"Nakikinig",processing:"Pinoproseso",talkToInterrupt:"Magsalita para humadlang",startVoice:"Simulan ang boses",stopVoice:"Itigil ang boses",endCall:"Tapusin ang tawag",openChat:"Buksan ang chat",connectionFailed:"Nabigo ang koneksyon",retry:"Subukan muli",loading:"Naglo-load",creditsExhausted:"Naubos ang Kredito",creditsExhaustedDetail:"Naubos na ang mga kredito ng sesyong ito.",consentTitle:"Pahintulot sa Pagkapribado",consentBody:"Sa pamamagitan ng pagpapatuloy, sumasang-ayon ka sa pagkolekta at pagproseso ng iyong data tulad ng inilarawan sa aming",consentAccept:"Tanggapin",consentDecline:"Tanggihan",consentTermsLink:"Mga Tuntunin ng Serbisyo",consentPrivacyLink:"Patakaran sa Pagkapribado",refresh:"I-refresh",ratingQuestion:"Kumusta ang usapang ito?",ratingThankYou:"Salamat sa iyong feedback!",youEnded:"Ikaw ang nagtapos ng usapan",agentEnded:"Tinapos ng ahente ang usapan",sessionIdLabel:"ID:",tellUsMore:"Magkuwento pa",feedbackSubtitle:"Nakakatulong ang iyong feedback para mapahusay ang aming serbisyo at masuportahan ka nang mas mabuti sa hinaharap.",feedbackPlaceholder:"Magkuwento pa tungkol sa iyong karanasan…",submit:"Ipasa",leadFormTitle:"Impormasyon ng contact",leadFormSuccess:"Salamat! Naisumite na ang iyong mga detalye.",leadFormRequiredError:"Pakipunan ang lahat ng kinakailangang field.",leadFormGenericError:"Nagkaroon ng problema. Pakisubukan ulit.",leadFormName:"Pangalan",leadFormEmail:"Email",leadFormPhone:"Telepono",leadFormMessage:"Ang iyong mensahe",poweredBy:"Pinapagana ng {brand}"},dm={sendMessage:"ஒரு செய்தி அனுப்பவும்",send:"அனுப்பு",close:"மூடு",minimize:"சிறியதாக்கு",maximize:"பெரியதாக்கு",call:"அழை",listening:"கேட்கிறது",processing:"செயலாக்குகிறது",talkToInterrupt:"தடுக்க பேசவும்",startVoice:"குரலைத் தொடங்கு",stopVoice:"குரலை நிறுத்து",endCall:"அழைப்பை முடி",openChat:"அரட்டையைத் திற",connectionFailed:"இணைப்பு தோல்வியடைந்தது",retry:"மீண்டும் முயற்சி செய்",loading:"ஏற்றுகிறது",creditsExhausted:"கிரெடிட்கள் தீர்ந்துவிட்டன",creditsExhaustedDetail:"இந்த அமர்வின் கிரெடிட்கள் தீர்ந்துவிட்டன.",consentTitle:"தனியுரிமை ஒப்புதல்",consentBody:"தொடர்வதன் மூலம், எங்களில் விவரிக்கப்பட்டுள்ளபடி உங்கள் தரவு சேகரிப்பு மற்றும் செயலாக்கத்திற்கு நீங்கள் ஒப்புக்கொள்கிறீர்கள்",consentAccept:"ஏற்க",consentDecline:"நிராகரி",consentTermsLink:"சேவை விதிமுறைகள்",consentPrivacyLink:"தனியுரிமைக் கொள்கை",refresh:"புதுப்பி",ratingQuestion:"இந்த உரையாடல் எப்படி இருந்தது?",ratingThankYou:"உங்கள் கருத்துக்கு நன்றி!",youEnded:"நீங்கள் உரையாடலை முடித்தீர்கள்",agentEnded:"முகவர் உரையாடலை முடித்தார்",sessionIdLabel:"ID:",tellUsMore:"மேலும் சொல்லுங்கள்",feedbackSubtitle:"உங்கள் கருத்து எங்கள் சேவையை மேம்படுத்தவும் எதிர்காலத்தில் உங்களை சிறப்பாக ஆதரிக்கவும் உதவுகிறது.",feedbackPlaceholder:"உங்கள் அனுபவம் குறித்து மேலும் சொல்லுங்கள்…",submit:"சமர்ப்பிக்கவும்",leadFormTitle:"தொடர்பு தகவல்",leadFormSuccess:"நன்றி! உங்கள் விவரங்கள் சமர்ப்பிக்கப்பட்டன.",leadFormRequiredError:"தேவையான அனைத்து புலங்களையும் நிரப்பவும்.",leadFormGenericError:"ஏதோ தவறு ஏற்பட்டது. மீண்டும் முயற்சிக்கவும்.",leadFormName:"பெயர்",leadFormEmail:"மின்னஞ்சல்",leadFormPhone:"தொலைபேசி",leadFormMessage:"உங்கள் செய்தி",poweredBy:"இயக்குபவர் {brand}"},hm={sendMessage:"సందేశం పంపండి",send:"పంపు",close:"మూసివేయండి",minimize:"చిన్నదిగా చేయి",maximize:"పెద్దదిగా చేయి",call:"కాల్ చేయండి",listening:"వింటోంది",processing:"ప్రాసెస్ చేస్తోంది",talkToInterrupt:"అంతరాయం కలిగించడానికి మాట్లాడండి",startVoice:"వాయిస్ ప్రారంభించండి",stopVoice:"వాయిస్ ఆపండి",endCall:"కాల్ను ముగించండి",openChat:"చాట్ తెరవండి",connectionFailed:"కనెక్షన్ విఫలమైంది",retry:"మళ్లీ ప్రయత్నించండి",loading:"లోడ్ అవుతోంది",creditsExhausted:"క్రెడిట్లు ముగిశాయి",creditsExhaustedDetail:"ఈ సెషన్ యొక్క క్రెడిట్లు ముగిశాయి.",consentTitle:"గోప్యతా సమ్మతి",consentBody:"కొనసాగించడం ద్వారా, మాలో వివరించిన విధంగా మీ డేటా సేకరణ మరియు ప్రాసెసింగ్కు మీరు అంగీకరిస్తున్నారు",consentAccept:"అంగీకరించు",consentDecline:"తిరస్కరించు",consentTermsLink:"సేవా నిబంధనలు",consentPrivacyLink:"గోప్యతా విధానం",refresh:"రిఫ్రెష్ చేయండి",ratingQuestion:"ఈ సంభాషణ ఎలా ఉంది?",ratingThankYou:"మీ అభిప్రాయానికి ధన్యవాదాలు!",youEnded:"మీరు సంభాషణను ముగించారు",agentEnded:"ఏజెంట్ సంభాషణను ముగించారు",sessionIdLabel:"ID:",tellUsMore:"మాకు మరింత చెప్పండి",feedbackSubtitle:"మీ అభిప్రాయం మా సేవను మెరుగుపరచడానికి మరియు భవిష్యత్తులో మిమ్మల్ని మెరుగ్గా మద్దతు ఇవ్వడానికి సహాయపడుతుంది.",feedbackPlaceholder:"మీ అనుభవం గురించి మాకు మరింత చెప్పండి…",submit:"సమర్పించండి",leadFormTitle:"సంప్రదింపు సమాచారం",leadFormSuccess:"ధన్యవాదాలు! మీ వివరాలు సమర్పించబడ్డాయి.",leadFormRequiredError:"దయచేసి అన్ని అవసరమైన ఫీల్డ్లను నింపండి.",leadFormGenericError:"ఏదో తప్పు జరిగింది. దయచేసి మళ్లీ ప్రయత్నించండి.",leadFormName:"పేరు",leadFormEmail:"ఇమెయిల్",leadFormPhone:"ఫోన్",leadFormMessage:"మీ సందేశం",poweredBy:"అందించేవారు {brand}"},mm={sendMessage:"ส่งข้อความ",send:"ส่ง",close:"ปิด",minimize:"ย่อ",maximize:"ขยาย",call:"โทร",listening:"กำลังฟัง",processing:"กำลังประมวลผล",talkToInterrupt:"พูดเพื่อขัดจังหวะ",startVoice:"เริ่มเสียง",stopVoice:"หยุดเสียง",endCall:"วางสาย",openChat:"เปิดแชท",connectionFailed:"การเชื่อมต่อล้มเหลว",retry:"ลองอีกครั้ง",loading:"กำลังโหลด",creditsExhausted:"เครดิตหมด",creditsExhaustedDetail:"เครดิตของเซสชันนี้หมดแล้ว",consentTitle:"ความยินยอมด้านความเป็นส่วนตัว",consentBody:"โดยดำเนินการต่อ คุณยินยอมให้มีการรวบรวมและประมวลผลข้อมูลของคุณตามที่อธิบายไว้ใน",consentAccept:"ยอมรับ",consentDecline:"ปฏิเสธ",consentTermsLink:"ข้อกำหนดในการให้บริการ",consentPrivacyLink:"นโยบายความเป็นส่วนตัว",refresh:"รีเฟรช",ratingQuestion:"การสนทนานี้เป็นอย่างไรบ้าง?",ratingThankYou:"ขอบคุณสำหรับความคิดเห็นของคุณ!",youEnded:"คุณเป็นผู้จบการสนทนา",agentEnded:"ตัวแทนจบการสนทนา",sessionIdLabel:"ID:",tellUsMore:"บอกเราเพิ่มเติม",feedbackSubtitle:"ความคิดเห็นของคุณช่วยให้เราปรับปรุงบริการและสนับสนุนคุณได้ดียิ่งขึ้นในอนาคต",feedbackPlaceholder:"บอกเราเพิ่มเติมเกี่ยวกับประสบการณ์ของคุณ…",submit:"ส่ง",leadFormTitle:"ข้อมูลติดต่อ",leadFormSuccess:"ขอบคุณ! ข้อมูลของคุณถูกส่งแล้ว",leadFormRequiredError:"กรุณากรอกข้อมูลในช่องที่จำเป็นทั้งหมด",leadFormGenericError:"เกิดข้อผิดพลาด กรุณาลองใหม่อีกครั้ง",leadFormName:"ชื่อ",leadFormEmail:"อีเมล",leadFormPhone:"โทรศัพท์",leadFormMessage:"ข้อความของคุณ",poweredBy:"ขับเคลื่อนโดย {brand}"},fm={sendMessage:"Mesaj gönder",send:"Gönder",close:"Kapat",minimize:"Küçült",maximize:"Büyüt",call:"Ara",listening:"Dinliyor",processing:"İşleniyor",talkToInterrupt:"Kesmek için konuşun",startVoice:"Sesi başlat",stopVoice:"Sesi durdur",endCall:"Aramayı bitir",openChat:"Sohbeti aç",connectionFailed:"Bağlantı başarısız",retry:"Tekrar dene",loading:"Yükleniyor",creditsExhausted:"Krediler Tükendi",creditsExhaustedDetail:"Bu oturumun kredileri tükendi.",consentTitle:"Gizlilik Onayı",consentBody:"Devam ederek, verilerinizin toplanması ve işlenmesini kabul etmiş olursunuz",consentAccept:"Kabul Et",consentDecline:"Reddet",consentTermsLink:"Hizmet Şartları",consentPrivacyLink:"Gizlilik Politikası",refresh:"Yenile",ratingQuestion:"Bu görüşme nasıldı?",ratingThankYou:"Geri bildiriminiz için teşekkürler!",youEnded:"Görüşmeyi siz sonlandırdınız",agentEnded:"Görüşmeyi temsilci sonlandırdı",sessionIdLabel:"ID:",tellUsMore:"Bize daha fazla anlatın",feedbackSubtitle:"Geri bildiriminiz hizmetimizi geliştirmemize ve gelecekte size daha iyi destek olmamıza yardımcı olur.",feedbackPlaceholder:"Deneyiminiz hakkında bize daha fazla anlatın…",submit:"Gönder",leadFormTitle:"İletişim bilgileri",leadFormSuccess:"Teşekkürler! Bilgileriniz gönderildi.",leadFormRequiredError:"Lütfen tüm zorunlu alanları doldurun.",leadFormGenericError:"Bir sorun oluştu. Lütfen tekrar deneyin.",leadFormName:"Ad",leadFormEmail:"E-posta",leadFormPhone:"Telefon",leadFormMessage:"Mesajınız",poweredBy:"Destekleyen: {brand}"},pm={sendMessage:"Надіслати повідомлення",send:"Надіслати",close:"Закрити",minimize:"Згорнути",maximize:"Розгорнути",call:"Зателефонувати",listening:"Слухає",processing:"Обробка",talkToInterrupt:"Говоріть, щоб перервати",startVoice:"Запустити голос",stopVoice:"Зупинити голос",endCall:"Завершити дзвінок",openChat:"Відкрити чат",connectionFailed:"Помилка підключення",retry:"Повторити",loading:"Завантаження",creditsExhausted:"Кредити вичерпано",creditsExhaustedDetail:"Кредити цієї сесії вичерпано.",consentTitle:"Згода на обробку даних",consentBody:"Продовжуючи, ви погоджуєтеся на збір та обробку ваших даних, як описано в наших",consentAccept:"Прийняти",consentDecline:"Відхилити",consentTermsLink:"Умови обслуговування",consentPrivacyLink:"Політика конфіденційності",refresh:"Оновити",ratingQuestion:"Якою була ця розмова?",ratingThankYou:"Дякуємо за ваш відгук!",youEnded:"Ви завершили розмову",agentEnded:"Агент завершив розмову",sessionIdLabel:"ID:",tellUsMore:"Розкажіть докладніше",feedbackSubtitle:"Ваш відгук допомагає нам покращувати сервіс і краще підтримувати вас у майбутньому.",feedbackPlaceholder:"Розкажіть докладніше про ваш досвід…",submit:"Надіслати",leadFormTitle:"Контактна інформація",leadFormSuccess:"Дякуємо! Ваші дані відправлено.",leadFormRequiredError:"Будь ласка, заповніть усі обов’язкові поля.",leadFormGenericError:"Щось пішло не так. Спробуйте ще раз.",leadFormName:"Ім’я",leadFormEmail:"Електронна пошта",leadFormPhone:"Телефон",leadFormMessage:"Ваше повідомлення",poweredBy:"Працює на базі {brand}"},gm={sendMessage:"پیغام بھیجیں",send:"بھیجیں",close:"بند کریں",minimize:"چھوٹا کریں",maximize:"بڑا کریں",call:"کال کریں",listening:"سن رہا ہے",processing:"پروسیسنگ",talkToInterrupt:"روکنے کے لیے بولیں",startVoice:"آواز شروع کریں",stopVoice:"آواز بند کریں",endCall:"کال ختم کریں",openChat:"چیٹ کھولیں",connectionFailed:"کنکشن ناکام",retry:"دوبارہ کوشش کریں",loading:"لوڈ ہو رہا ہے",creditsExhausted:"کریڈٹس ختم",creditsExhaustedDetail:"اس سیشن کے کریڈٹس ختم ہو گئے ہیں۔",consentTitle:"رازداری کی رضامندی",consentBody:"آگے بڑھ کر، آپ اپنے ڈیٹا کی جمع آوری اور پروسیسنگ سے اتفاق کرتے ہیں جیسا کہ ہماری میں بیان کیا گیا ہے",consentAccept:"قبول کریں",consentDecline:"مسترد کریں",consentTermsLink:"خدمات کی شرائط",consentPrivacyLink:"رازداری کی پالیسی",refresh:"ریفریش کریں",ratingQuestion:"یہ گفتگو کیسی رہی؟",ratingThankYou:"آپ کی رائے کا شکریہ!",youEnded:"آپ نے گفتگو ختم کی",agentEnded:"ایجنٹ نے گفتگو ختم کی",sessionIdLabel:"شناخت:",tellUsMore:"مزید بتائیں",feedbackSubtitle:"آپ کی رائے ہمیں اپنی خدمات بہتر بنانے اور مستقبل میں آپ کی بہتر مدد کرنے میں مدد دیتی ہے۔",feedbackPlaceholder:"اپنے تجربے کے بارے میں مزید بتائیں…",submit:"جمع کرائیں",leadFormTitle:"رابطہ کی معلومات",leadFormSuccess:"شکریہ! آپ کی تفصیلات جمع کر دی گئی ہیں۔",leadFormRequiredError:"براہ کرم تمام ضروری خانے پُر کریں۔",leadFormGenericError:"کچھ غلط ہو گیا۔ براہ کرم دوبارہ کوشش کریں۔",leadFormName:"نام",leadFormEmail:"ای میل",leadFormPhone:"فون",leadFormMessage:"آپ کا پیغام",poweredBy:"بذریعہ {brand}"},bm={sendMessage:"Gửi tin nhắn",send:"Gửi",close:"Đóng",minimize:"Thu nhỏ",maximize:"Phóng to",call:"Gọi",listening:"Đang nghe",processing:"Đang xử lý",talkToInterrupt:"Nói để ngắt",startVoice:"Bắt đầu giọng nói",stopVoice:"Dừng giọng nói",endCall:"Kết thúc cuộc gọi",openChat:"Mở trò chuyện",connectionFailed:"Kết nối thất bại",retry:"Thử lại",loading:"Đang tải",creditsExhausted:"Đã hết tín dụng",creditsExhaustedDetail:"Tín dụng của phiên này đã hết.",consentTitle:"Đồng ý về Quyền riêng tư",consentBody:"Bằng cách tiếp tục, bạn đồng ý với việc thu thập và xử lý dữ liệu của bạn như được mô tả trong",consentAccept:"Chấp nhận",consentDecline:"Từ chối",consentTermsLink:"Điều khoản Dịch vụ",consentPrivacyLink:"Chính sách Bảo mật",refresh:"Làm mới",ratingQuestion:"Cuộc trò chuyện này thế nào?",ratingThankYou:"Cảm ơn phản hồi của bạn!",youEnded:"Bạn đã kết thúc cuộc trò chuyện",agentEnded:"Trợ lý đã kết thúc cuộc trò chuyện",sessionIdLabel:"ID:",tellUsMore:"Cho chúng tôi biết thêm",feedbackSubtitle:"Phản hồi của bạn giúp chúng tôi cải thiện dịch vụ và hỗ trợ bạn tốt hơn trong tương lai.",feedbackPlaceholder:"Cho chúng tôi biết thêm về trải nghiệm của bạn…",submit:"Gửi",leadFormTitle:"Thông tin liên hệ",leadFormSuccess:"Cảm ơn! Thông tin của bạn đã được gửi.",leadFormRequiredError:"Vui lòng điền vào tất cả các trường bắt buộc.",leadFormGenericError:"Đã xảy ra lỗi. Vui lòng thử lại.",leadFormName:"Tên",leadFormEmail:"Email",leadFormPhone:"Điện thoại",leadFormMessage:"Tin nhắn của bạn",poweredBy:"Được cung cấp bởi {brand}"},Em={sendMessage:"Anfon neges",send:"Anfon",close:"Cau",minimize:"Lleihau",maximize:"Mwyhau",call:"Galw",listening:"Gwrando",processing:"Prosesu",talkToInterrupt:"Siaradwch i dorri ar draws",startVoice:"Dechrau llais",stopVoice:"Stopio llais",endCall:"Diweddu galwad",openChat:"Agor sgwrs",connectionFailed:"Methwyd cysylltu",retry:"Ceisio eto",loading:"Llwytho",creditsExhausted:"Credydau wedi dod i ben",creditsExhaustedDetail:"Mae credydau'r sesiwn hon wedi dod i ben.",consentTitle:"Cydsyniad Preifatrwydd",consentBody:"Drwy fynd ymlaen, rydych yn cytuno i gasglu a phrosesu eich data fel y disgrifir yn ein",consentAccept:"Derbyn",consentDecline:"Gwrthod",consentTermsLink:"Telerau Gwasanaeth",consentPrivacyLink:"Polisi Preifatrwydd",refresh:"Adnewyddu",ratingQuestion:"Sut oedd y sgwrs hon?",ratingThankYou:"Diolch am eich adborth!",youEnded:"Chi ddaeth â’r sgwrs i ben",agentEnded:"Daeth yr asiant â’r sgwrs i ben",sessionIdLabel:"ID:",tellUsMore:"Dywedwch fwy wrthym",feedbackSubtitle:"Mae eich adborth yn ein helpu i wella ein gwasanaeth a’ch cefnogi’n well yn y dyfodol.",feedbackPlaceholder:"Dywedwch fwy wrthym am eich profiad…",submit:"Cyflwyno",leadFormTitle:"Manylion cyswllt",leadFormSuccess:"Diolch! Mae eich manylion wedi cael eu cyflwyno.",leadFormRequiredError:"Llenwch bob maes gofynnol.",leadFormGenericError:"Aeth rhywbeth o chwith. Rhowch gynnig arall arni.",leadFormName:"Enw",leadFormEmail:"E-bost",leadFormPhone:"Ffôn",leadFormMessage:"Eich neges",poweredBy:"Wedi'i bweru gan {brand}"},fs={af:mh,sq:fh,"ar-eg":ph,"ar-sa":gh,az:bh,eu:Eh,be:Th,bn:kh,bs:xh,bg:yh,ca:Ah,zh:Ch,hr:_h,cs:Sh,da:wh,nl:Ih,en:Nh,et:vh,fi:Lh,fr:Rh,gl:Ph,de:Dh,el:Mh,gu:Oh,hi:Fh,hu:Bh,id:zh,it:jh,ja:Hh,kn:Uh,kk:qh,ko:Vh,lv:$h,lt:Yh,mk:Gh,ms:Wh,ml:Kh,mr:Qh,no:Xh,fa:Zh,pl:Jh,pt:em,pa:tm,ro:nm,ru:rm,sr:im,sk:am,sl:sm,es:om,sw:lm,sv:um,tl:cm,ta:dm,te:hm,th:mm,tr:fm,uk:pm,ur:gm,vi:bm,cy:Em},wr=[{value:"af",label:"Afrikaans",dir:"ltr"},{value:"sq",label:"Shqip",dir:"ltr"},{value:"ar-eg",label:"العربية (مصر)",dir:"rtl"},{value:"ar-sa",label:"العربية (السعودية)",dir:"rtl"},{value:"az",label:"Azərbaycan",dir:"ltr"},{value:"eu",label:"Euskara",dir:"ltr"},{value:"be",label:"Беларуская",dir:"ltr"},{value:"bn",label:"বাংলা",dir:"ltr"},{value:"bs",label:"Bosanski",dir:"ltr"},{value:"bg",label:"Български",dir:"ltr"},{value:"ca",label:"Català",dir:"ltr"},{value:"zh",label:"中文",dir:"ltr"},{value:"hr",label:"Hrvatski",dir:"ltr"},{value:"cs",label:"Čeština",dir:"ltr"},{value:"da",label:"Dansk",dir:"ltr"},{value:"nl",label:"Nederlands",dir:"ltr"},{value:"en",label:"English",dir:"ltr"},{value:"et",label:"Eesti",dir:"ltr"},{value:"fi",label:"Suomi",dir:"ltr"},{value:"fr",label:"Français",dir:"ltr"},{value:"gl",label:"Galego",dir:"ltr"},{value:"de",label:"Deutsch",dir:"ltr"},{value:"el",label:"Ελληνικά",dir:"ltr"},{value:"gu",label:"ગુજરાતી",dir:"ltr"},{value:"hi",label:"हिन्दी",dir:"ltr"},{value:"hu",label:"Magyar",dir:"ltr"},{value:"id",label:"Bahasa Indonesia",dir:"ltr"},{value:"it",label:"Italiano",dir:"ltr"},{value:"ja",label:"日本語",dir:"ltr"},{value:"kn",label:"ಕನ್ನಡ",dir:"ltr"},{value:"kk",label:"Қазақша",dir:"ltr"},{value:"ko",label:"한국어",dir:"ltr"},{value:"lv",label:"Latviešu",dir:"ltr"},{value:"lt",label:"Lietuvių",dir:"ltr"},{value:"mk",label:"Македонски",dir:"ltr"},{value:"ms",label:"Bahasa Melayu",dir:"ltr"},{value:"ml",label:"മലയാളം",dir:"ltr"},{value:"mr",label:"मराठी",dir:"ltr"},{value:"no",label:"Norsk",dir:"ltr"},{value:"fa",label:"فارسی",dir:"rtl"},{value:"pl",label:"Polski",dir:"ltr"},{value:"pt",label:"Português",dir:"ltr"},{value:"pa",label:"ਪੰਜਾਬੀ",dir:"ltr"},{value:"ro",label:"Română",dir:"ltr"},{value:"ru",label:"Русский",dir:"ltr"},{value:"sr",label:"Српски",dir:"ltr"},{value:"sk",label:"Slovenčina",dir:"ltr"},{value:"sl",label:"Slovenščina",dir:"ltr"},{value:"es",label:"Español",dir:"ltr"},{value:"sw",label:"Kiswahili",dir:"ltr"},{value:"sv",label:"Svenska",dir:"ltr"},{value:"tl",label:"Tagalog",dir:"ltr"},{value:"ta",label:"தமிழ்",dir:"ltr"},{value:"te",label:"తెలుగు",dir:"ltr"},{value:"th",label:"ไทย",dir:"ltr"},{value:"tr",label:"Türkçe",dir:"ltr"},{value:"uk",label:"Українська",dir:"ltr"},{value:"ur",label:"اردو",dir:"rtl"},{value:"vi",label:"Tiếng Việt",dir:"ltr"},{value:"cy",label:"Cymraeg",dir:"ltr"}],Mi=wr.map(e=>e.value);function Oi(e){return wr.find(t=>t.value===e)||wr.find(t=>t.value==="en")}function te(e,t){return fs[e]?.[t]||fs.en[t]||t}function En(e,t="en"){const n=Array.isArray(e)?e.filter(r=>Mi.includes(r)):[];return!n.includes(t)&&Mi.includes(t)&&n.unshift(t),n.length?[...new Set(n)]:["ar-sa"]}const ps={id:null,name:"Agent",agentType:Te.AGENT_TYPES.TEXT,useText:!0,useVoice:!1,faceImage:null,languages:["ar-sa"],defaultLanguage:"ar-sa",allowInterrupt:!0,allowWelcomeMessageInterrupt:!1,welcomeMessages:{},conversation:{default_language:"ar-sa",languages:["ar-sa"],suggested_messages:{}},widget:{appearance:{position:"right",show_branding:!0,show_topbar_avatar_image:!0,font:"Cairo",footer_content:{},theme:{mode:"dark",accent_color:null,end_call_button_color:null}},behavior:{default_open:!1,conversation_ended_screen:{post_chat_rating_enabled:!1,show_conversation_id:!0},welcome_bubble:{enabled:!1,delay_seconds:3,sound_enabled:!1},typing_indicator_enabled:!0,suggested_messages:{}},consent:{enabled:!1,one_time:!0,content:{}}}};function fn(e){if(!e)return ps;const t=e,n=t.agent_type||t.agentType||Te.AGENT_TYPES.TEXT,r=typeof t.use_text=="boolean"?t.use_text:typeof t.useText=="boolean"?t.useText:n!==Te.AGENT_TYPES.VOICE,i=typeof t.use_voice=="boolean"?t.use_voice:typeof t.useVoice=="boolean"?t.useVoice:n===Te.AGENT_TYPES.TEXT_AND_VOICE||n===Te.AGENT_TYPES.CLOUD_AVATAR||n===Te.AGENT_TYPES.DESKTOP_AVATAR,a=t.conversation||t.agent_customization?.conversation||{},s=t.speech||t.agent_customization?.speech||{},o=a.default_language||"ar-sa",l=En(a.languages,o),u=t.widget||t.agent_customization?.widget||t.widget_customization||null,d=u?.appearance,h=u?.behavior,p=u,f=typeof d?.hide_branding=="boolean"?!d.hide_branding:typeof d?.show_branding=="boolean"?d.show_branding:!0,g=typeof d?.show_topbar_avatar_image=="boolean"?d.show_topbar_avatar_image:typeof d?.showTopbarAvatarImage=="boolean"?d.showTopbarAvatarImage:typeof u?.show_topbar_avatar_image=="boolean"?u.show_topbar_avatar_image:typeof u?.showTopbarAvatarImage=="boolean"?u.showTopbarAvatarImage:typeof t.show_topbar_avatar_image=="boolean"?t.show_topbar_avatar_image:typeof t.showTopbarAvatarImage=="boolean"?t.showTopbarAvatarImage:!0,y=h?.suggested_messages||u?.suggested_messages||a.suggested_messages||a.suggestedMessages||{},S=typeof h?.default_open=="boolean"?h.default_open:typeof h?.defaultOpen=="boolean"?h.defaultOpen:typeof u?.default_open=="boolean"?u.default_open:typeof u?.defaultOpen=="boolean"?u.defaultOpen:typeof t.default_open=="boolean"?t.default_open:typeof t.defaultOpen=="boolean"?t.defaultOpen:!1,x=typeof d?.font=="string"?d.font:typeof u?.font=="string"?u.font:typeof t.font=="string"?t.font:"Cairo",_=(()=>{const T=(x||"").trim().toLowerCase().replace(/[-_]/g," ");return T==="readex pro"||T==="readex"?"Readex Pro":T==="noto sans"||T==="noto"||T==="noto sans arabic"?"Noto Sans":"Cairo"})(),A=u?.consent||t.consent||t.consent_config||null,L=typeof A?.enabled=="boolean"?A.enabled:!1,D=typeof A?.one_time=="boolean"?A.one_time:typeof A?.oneTime=="boolean"?A.oneTime:!0,I=A?.content||A?.body||{},P=h?.conversation_ended_screen,R={post_chat_rating_enabled:typeof P?.post_chat_rating_enabled=="boolean"?P.post_chat_rating_enabled:typeof h?.post_chat_rating_enabled=="boolean"?h.post_chat_rating_enabled:!1,show_conversation_id:typeof P?.show_conversation_id=="boolean"?P.show_conversation_id:typeof P?.showConversationId=="boolean"?P.showConversationId:!0},z=h?.welcome_bubble,N={enabled:typeof z?.enabled=="boolean"?z.enabled:!1,delay_seconds:typeof z?.delay_seconds=="number"?z.delay_seconds:3,sound_enabled:typeof z?.sound_enabled=="boolean"?z.sound_enabled:!1},O=d?.theme,j={mode:O?.mode==="light"?"light":"dark",accent_color:typeof O?.accent_color=="string"?O.accent_color:null,end_call_button_color:typeof O?.end_call_button_color=="string"?O.end_call_button_color:null},W=p?{appearance:{position:d?.position||"right",show_branding:f,show_topbar_avatar_image:g,font:_,footer_content:d?.footer_content||{},theme:j},behavior:{default_open:S,conversation_ended_screen:R,welcome_bubble:N,typing_indicator_enabled:typeof h?.typing_indicator_enabled=="boolean"?h.typing_indicator_enabled:!0,suggested_messages:y},consent:{enabled:L,one_time:D,content:I}}:void 0,q=t.consent||t.consent_config||null,F=a.welcome_message||a.welcomeMessage||t.welcome_message||t.welcomeMessage||t.welcomeMessages||{},G=Object.fromEntries(Object.entries(F).filter(([,T])=>typeof T=="string").map(([T,Ee])=>[T,Ee.slice(0,1e3)])),$=typeof t.allow_interrupt=="boolean"?t.allow_interrupt:typeof s.allow_interrupt=="boolean"?s.allow_interrupt:!0,ne=typeof t.allow_welcome_message_interrupt=="boolean"?t.allow_welcome_message_interrupt:typeof s.allow_welcome_message_interrupt=="boolean"?s.allow_welcome_message_interrupt:!1,ue=(typeof t.face_image=="string"?t.face_image:null)||(typeof t.faceImage=="string"?t.faceImage:null)||null;return{id:t.id||null,name:t.name||ps.name,agentType:n,useText:r,useVoice:i,faceImage:ue,allowInterrupt:$,allowWelcomeMessageInterrupt:ne,welcomeMessages:G,languages:l,defaultLanguage:l.includes(o)?o:l[0],conversation:{default_language:o,languages:l,suggested_messages:y,welcome_message:G},widget:W||void 0,consent:q?{enabled:q.enabled??!1,title:q.title||void 0,body:q.body||void 0,acceptLabel:q.accept_label||q.acceptLabel||void 0,declineLabel:q.decline_label||q.declineLabel||void 0,termsUrl:q.terms_url||q.termsUrl||void 0,privacyUrl:q.privacy_url||q.privacyUrl||void 0}:void 0}}async function gl({restUrl:e,identifier:t,withCredentials:n=!1,signal:r}){if(!e)throw new Error("Missing restUrl");if(!t)throw new Error("Missing identifier (agent_id or api_key)");const i=await fetch(`${e}/agent/${t}/customization`,{method:"GET",mode:"cors",credentials:n?"include":"omit",headers:{Accept:"application/json"},signal:r});if(!i.ok)throw new Error(`Failed to load agent customization: ${i.status}`);const a=await i.json();return fn({id:a.id,name:a.name,company_name:a.company_name,agent_type:a.agent_type,use_voice:a.use_voice,use_text:a.use_text,face_image:a.face_image,conversation:a.conversation,widget:a.widget,allow_interrupt:a.allow_interrupt,allow_welcome_message_interrupt:a.allow_welcome_message_interrupt,welcome_message:a.welcome_message})}async function Tm({restUrl:e,apiKey:t,agentId:n,signal:r}){if(!e)throw new Error("Missing restUrl");const i=t||n;if(!i)throw new Error("Provide one of apiKey or agentId");const a=await fetch(`${e}/agent/${i}`,{method:"GET",mode:"cors",credentials:"omit",headers:{Accept:"application/json"},signal:r});if(!a.ok){let s=`HTTP ${a.status}`;try{const l=await a.json();s=l?.detail||l?.message||s}catch{}throw new Error(s)}return fn(await a.json())}function km(e,t){if(!t)return e;let{useVoice:n,useText:r}=e;return typeof t.use_voice=="boolean"&&(n=t.use_voice),typeof t.use_text=="boolean"&&(r=t.use_text),n===e.useVoice&&r===e.useText?e:{...e,useVoice:n,useText:r}}function nr(e){return e.agentType===Te.AGENT_TYPES.CLOUD_AVATAR||e.agentType===Te.AGENT_TYPES.DESKTOP_AVATAR?"avatar":e.useText&&e.useVoice?"text_and_voice":e.useVoice?"voice":"text"}/**
|
|
1
|
+
"use strict";const Te=require("./RqmiiCloudAvatarPlayer-DUQwPcpd.cjs"),m=require("react/jsx-runtime"),b=require("react"),fi=require("react-dom");function pi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const mh={sendMessage:"Stuur 'n boodskap",send:"Stuur",close:"Sluit",minimize:"Minimaliseer",maximize:"Maksimaliseer",call:"Bel",listening:"Luister",processing:"Verwerk",talkToInterrupt:"Praat om te onderbreek",startVoice:"Begin stem",stopVoice:"Stop stem",endCall:"Beëindig oproep",openChat:"Maak klets oop",connectionFailed:"Verbinding het misluk",retry:"Probeer weer",loading:"Laai",creditsExhausted:"Krediete is opgebruik",creditsExhaustedDetail:"Hierdie sessie se krediete is opgebruik.",consentTitle:"Privaatheidstoestemming",consentBody:"Deur voort te gaan, stem jy in tot die versameling en verwerking van jou data soos beskryf in ons",consentAccept:"Aanvaar",consentDecline:"Weier",consentTermsLink:"Diensbepalings",consentPrivacyLink:"Privaatheidsbeleid",refresh:"Verfris",ratingQuestion:"Hoe was hierdie gesprek?",ratingThankYou:"Dankie vir jou terugvoer!",youEnded:"Jy het die gesprek beëindig",agentEnded:"Die agent het die gesprek beëindig",sessionIdLabel:"ID:",tellUsMore:"Vertel ons meer",feedbackSubtitle:"Jou terugvoer help ons om ons diens te verbeter en jou in die toekoms beter te ondersteun.",feedbackPlaceholder:"Vertel ons meer oor jou ervaring…",submit:"Dien in",leadFormTitle:"Kontakinligting",leadFormSuccess:"Dankie! Jou besonderhede is ingedien.",leadFormRequiredError:"Vul asseblief al die verpligte velde in.",leadFormGenericError:"Iets het verkeerd geloop. Probeer asseblief weer.",leadFormName:"Naam",leadFormEmail:"E-pos",leadFormPhone:"Foon",leadFormMessage:"Jou boodskap",poweredBy:"Aangedryf deur {brand}"},fh={sendMessage:"Dërgo një mesazh",send:"Dërgo",close:"Mbyll",minimize:"Minimizo",maximize:"Maksimizo",call:"Thirr",listening:"Duke dëgjuar",processing:"Duke përpunuar",talkToInterrupt:"Flisni për të ndërprerë",startVoice:"Fillo zërin",stopVoice:"Ndalo zërin",endCall:"Përfundo thirrjen",openChat:"Hap bisedën",connectionFailed:"Lidhja dështoi",retry:"Riprovo",loading:"Duke u ngarkuar",creditsExhausted:"Kreditë e mbaruara",creditsExhaustedDetail:"Kreditë e këtij sesioni kanë mbaruar.",consentTitle:"Pëlqimi për Privatësi",consentBody:"Duke vazhduar, ju pranoni mbledhjen dhe përpunimin e të dhënave tuaja siç përshkruhet në",consentAccept:"Prano",consentDecline:"Refuzo",consentTermsLink:"Kushtet e Shërbimit",consentPrivacyLink:"Rregullat e Privatësisë",refresh:"Rifresko",ratingQuestion:"Si ishte kjo bisedë?",ratingThankYou:"Faleminderit për komentin tuaj!",youEnded:"Ju e përfunduat bisedën",agentEnded:"Agjenti e përfundoi bisedën",sessionIdLabel:"ID:",tellUsMore:"Na tregoni më shumë",feedbackSubtitle:"Komenti juaj na ndihmon të përmirësojmë shërbimin tonë dhe t’ju mbështesim më mirë në të ardhmen.",feedbackPlaceholder:"Na tregoni më shumë rreth përvojës suaj…",submit:"Dërgo",leadFormTitle:"Informacioni i kontaktit",leadFormSuccess:"Faleminderit! Të dhënat tuaja u dërguan.",leadFormRequiredError:"Ju lutemi plotësoni të gjitha fushat e kërkuara.",leadFormGenericError:"Ndodhi një gabim. Ju lutemi provoni përsëri.",leadFormName:"Emri",leadFormEmail:"Email",leadFormPhone:"Telefoni",leadFormMessage:"Mesazhi juaj",poweredBy:"Mundësuar nga {brand}"},ph={sendMessage:"اكتب رسالة",send:"إرسال",close:"إغلاق",minimize:"تصغير",maximize:"تكبير",call:"اتصل",listening:"يستمع",processing:"يعالج",talkToInterrupt:"تحدث للمقاطعة",startVoice:"بدء الصوت",stopVoice:"إيقاف الصوت",endCall:"إنهاء المكالمة",openChat:"فتح المحادثة",connectionFailed:"فشل الاتصال",retry:"إعادة المحاولة",loading:"جار التحميل",creditsExhausted:"نفذ الرصيد",creditsExhaustedDetail:"نفذ رصيد هذه الجلسة.",consentTitle:"الموافقة على الخصوصية",consentBody:"بالمتابعة، أنت توافق على جمع ومعالجة بياناتك كما هو موضح في",consentAccept:"قبول",consentDecline:"رفض",consentTermsLink:"شروط الخدمة",consentPrivacyLink:"سياسة الخصوصية",refresh:"تحديث",ratingQuestion:"كيف كانت هذه المحادثة؟",ratingThankYou:"شكرًا على ملاحظاتك!",youEnded:"لقد أنهيت المحادثة",agentEnded:"أنهى الوكيل المحادثة",sessionIdLabel:"المعرّف:",tellUsMore:"أخبرنا المزيد",feedbackSubtitle:"تساعدنا ملاحظاتك في تحسين خدمتنا ودعمك بشكل أفضل في المستقبل.",feedbackPlaceholder:"أخبرنا المزيد عن تجربتك…",submit:"إرسال",leadFormTitle:"معلومات التواصل",leadFormSuccess:"شكرًا لك! تم إرسال بياناتك.",leadFormRequiredError:"يرجى تعبئة جميع الحقول المطلوبة.",leadFormGenericError:"حدث خطأ ما. حاول مرة أخرى.",leadFormName:"الاسم",leadFormEmail:"البريد الإلكتروني",leadFormPhone:"رقم الهاتف",leadFormMessage:"رسالتك",poweredBy:"بواسطة {brand}"},gh={sendMessage:"اكتب رسالة",send:"إرسال",close:"إغلاق",minimize:"تصغير",maximize:"تكبير",call:"اتصل",listening:"يستمع",processing:"يعالج",talkToInterrupt:"تحدث للمقاطعة",startVoice:"بدء الصوت",stopVoice:"إيقاف الصوت",endCall:"إنهاء المكالمة",openChat:"فتح المحادثة",connectionFailed:"فشل الاتصال",retry:"إعادة المحاولة",loading:"جار التحميل",creditsExhausted:"نفذ الرصيد",creditsExhaustedDetail:"نفذ رصيد هذه الجلسة.",consentTitle:"الموافقة على الخصوصية",consentBody:"بالمتابعة، أنت توافق على جمع ومعالجة بياناتك كما هو موضح في",consentAccept:"قبول",consentDecline:"رفض",consentTermsLink:"شروط الخدمة",consentPrivacyLink:"سياسة الخصوصية",refresh:"تحديث",ratingQuestion:"كيف كانت هذه المحادثة؟",ratingThankYou:"شكرًا على ملاحظاتك!",youEnded:"لقد أنهيت المحادثة",agentEnded:"أنهى الوكيل المحادثة",sessionIdLabel:"المعرّف:",tellUsMore:"أخبرنا المزيد",feedbackSubtitle:"تساعدنا ملاحظاتك في تحسين خدمتنا ودعمك بشكل أفضل في المستقبل.",feedbackPlaceholder:"أخبرنا المزيد عن تجربتك…",submit:"إرسال",leadFormTitle:"معلومات التواصل",leadFormSuccess:"شكرًا لك! تم إرسال بياناتك.",leadFormRequiredError:"يرجى تعبئة جميع الحقول المطلوبة.",leadFormGenericError:"حدث خطأ ما. حاول مرة أخرى.",leadFormName:"الاسم",leadFormEmail:"البريد الإلكتروني",leadFormPhone:"رقم الهاتف",leadFormMessage:"رسالتك",poweredBy:"بواسطة {brand}"},bh={sendMessage:"Mesaj göndər",send:"Göndər",close:"Bağla",minimize:"Kiçilt",maximize:"Böyüt",call:"Zəng et",listening:"Dinləyir",processing:"Emal edilir",talkToInterrupt:"Dayandırmaq üçün danışın",startVoice:"Səsi başlat",stopVoice:"Səsi dayandır",endCall:"Zəngi bitir",openChat:"Çatı aç",connectionFailed:"Əlaqə uğursuz oldu",retry:"Yenidən cəhd et",loading:"Yüklənir",creditsExhausted:"Kreditlər bitdi",creditsExhaustedDetail:"Bu sessiyanın kreditləri bitdi.",consentTitle:"Məxfilik Razılığı",consentBody:"Davam etməklə, məlumatlarınızın toplanması və emalına icazə verdiyinizi təsdiq edirsiniz",consentAccept:"Qəbul et",consentDecline:"Rədd et",consentTermsLink:"Xidmət Şərtləri",consentPrivacyLink:"Məxfilik Siyasəti",refresh:"Yenilə",ratingQuestion:"Bu söhbət necə idi?",ratingThankYou:"Rəyiniz üçün təşəkkür edirik!",youEnded:"Söhbəti siz bitirdiniz",agentEnded:"Agent söhbəti bitirdi",sessionIdLabel:"ID:",tellUsMore:"Bizə daha çox danışın",feedbackSubtitle:"Rəyiniz xidmətimizi təkmilləşdirməyə və gələcəkdə sizə daha yaxşı dəstək olmağa kömək edir.",feedbackPlaceholder:"Təcrübəniz haqqında bizə daha çox danışın…",submit:"Göndər",leadFormTitle:"Əlaqə məlumatları",leadFormSuccess:"Təşəkkürlər! Məlumatlarınız göndərildi.",leadFormRequiredError:"Zəhmət olmasa bütün tələb olunan sahələri doldurun.",leadFormGenericError:"Xəta baş verdi. Zəhmət olmasa yenidən cəhd edin.",leadFormName:"Ad",leadFormEmail:"E-poçt",leadFormPhone:"Telefon",leadFormMessage:"Mesajınız",poweredBy:"Dəstəkləyən {brand}"},Eh={sendMessage:"Bidali mezua",send:"Bidali",close:"Itxi",minimize:"Minimizatu",maximize:"Maximizatu",call:"Deitu",listening:"Entzuten",processing:"Prozesatzen",talkToInterrupt:"Hitz egin eteteko",startVoice:"Hasi ahotsa",stopVoice:"Gelditu ahotsa",endCall:"Amaitu deia",openChat:"Ireki txata",connectionFailed:"Konexioak huts egin du",retry:"Saiatu berriro",loading:"Kargatzen",creditsExhausted:"Kredituak agortuta",creditsExhaustedDetail:"Saio honen kredituak agortu dira.",consentTitle:"Pribatutasunaren Baimena",consentBody:"Jarraitzean, zure datuak biltzea eta prozesatzea onartzen duzu gure deskribatzen den moduan",consentAccept:"Onartu",consentDecline:"Ukatu",consentTermsLink:"Zerbitzu-baldintzak",consentPrivacyLink:"Pribatutasun-politika",refresh:"Freskatu",ratingQuestion:"Nolakoa izan da elkarrizketa hau?",ratingThankYou:"Eskerrik asko zure iritziagatik!",youEnded:"Zuk amaitu duzu elkarrizketa",agentEnded:"Agenteak amaitu du elkarrizketa",sessionIdLabel:"ID:",tellUsMore:"Esan iezaguzu gehiago",feedbackSubtitle:"Zure iritziak gure zerbitzua hobetzen eta etorkizunean hobeto laguntzen laguntzen digu.",feedbackPlaceholder:"Esan iezaguzu gehiago zure esperientziari buruz…",submit:"Bidali",leadFormTitle:"Kontaktu informazioa",leadFormSuccess:"Eskerrik asko! Zure datuak bidali dira.",leadFormRequiredError:"Bete beharrezko eremu guztiak, mesedez.",leadFormGenericError:"Zerbait okerra gertatu da. Saiatu berriro.",leadFormName:"Izena",leadFormEmail:"Helbide elektronikoa",leadFormPhone:"Telefonoa",leadFormMessage:"Zure mezua",poweredBy:"Garapena: {brand}"},Th={sendMessage:"Адправіць паведамленне",send:"Адправіць",close:"Зачыніць",minimize:"Згарнуць",maximize:"Разгарнуць",call:"Патэлефанаваць",listening:"Слухае",processing:"Апрацоўка",talkToInterrupt:"Гаварыце, каб перапыніць",startVoice:"Пачаць голас",stopVoice:"Спыніць голас",endCall:"Завяршыць званок",openChat:"Адкрыць чат",connectionFailed:"Памылка падключэння",retry:"Паўтарыць",loading:"Загрузка",creditsExhausted:"Крэдыты скончыліся",creditsExhaustedDetail:"Крэдыты гэтай сесіі скончыліся.",consentTitle:"Згода на апрацоўку даных",consentBody:"Працягваючы, вы згаджаецеся на збор і апрацоўку вашых даных, як апісана ў нашых",consentAccept:"Прыняць",consentDecline:"Адхіліць",consentTermsLink:"Умовы абслугоўвання",consentPrivacyLink:"Палітыка прыватнасці",refresh:"Абнавіць",ratingQuestion:"Як прайшла гэтая размова?",ratingThankYou:"Дзякуй за ваш водгук!",youEnded:"Вы завяршылі размову",agentEnded:"Агент завяршыў размову",sessionIdLabel:"ID:",tellUsMore:"Раскажыце падрабязней",feedbackSubtitle:"Ваш водгук дапамагае нам паляпшаць сэрвіс і лепш падтрымліваць вас у будучыні.",feedbackPlaceholder:"Раскажыце падрабязней пра ваш вопыт…",submit:"Адправіць",leadFormTitle:"Кантактная інфармацыя",leadFormSuccess:"Дзякуй! Вашы дадзеныя адпраўлены.",leadFormRequiredError:"Калі ласка, запаўніце ўсе абавязковыя палі.",leadFormGenericError:"Нешта пайшло не так. Паспрабуйце зноў.",leadFormName:"Імя",leadFormEmail:"Электронная пошта",leadFormPhone:"Тэлефон",leadFormMessage:"Ваша паведамленне",poweredBy:"Працуе на {brand}"},kh={sendMessage:"একটি বার্তা পাঠান",send:"পাঠান",close:"বন্ধ করুন",minimize:"ছোট করুন",maximize:"বড় করুন",call:"কল করুন",listening:"শুনছে",processing:"প্রক্রিয়া হচ্ছে",talkToInterrupt:"বাধা দিতে কথা বলুন",startVoice:"ভয়েস শুরু করুন",stopVoice:"ভয়েস বন্ধ করুন",endCall:"কল শেষ করুন",openChat:"চ্যাট খুলুন",connectionFailed:"সংযোগ ব্যর্থ হয়েছে",retry:"পুনরায় চেষ্টা করুন",loading:"লোড হচ্ছে",creditsExhausted:"ক্রেডিট শেষ",creditsExhaustedDetail:"এই সেশনের ক্রেডিট শেষ হয়ে গেছে।",consentTitle:"গোপনীয়তা সম্মতি",consentBody:"এগিয়ে গেলে, আপনি আমাদের বর্ণিত হিসাবে আপনার ডেটা সংগ্রহ এবং প্রক্রিয়াকরণে সম্মত হন",consentAccept:"গ্রহণ করুন",consentDecline:"প্রত্যাখ্যান করুন",consentTermsLink:"পরিষেবার শর্তাবলী",consentPrivacyLink:"গোপনীয়তা নীতি",refresh:"রিফ্রেশ করুন",ratingQuestion:"এই কথোপকথনটি কেমন ছিল?",ratingThankYou:"আপনার মতামতের জন্য ধন্যবাদ!",youEnded:"আপনি কথোপকথনটি শেষ করেছেন",agentEnded:"এজেন্ট কথোপকথনটি শেষ করেছে",sessionIdLabel:"আইডি:",tellUsMore:"আরও বলুন",feedbackSubtitle:"আপনার মতামত আমাদের পরিষেবা উন্নত করতে এবং ভবিষ্যতে আপনাকে আরও ভালোভাবে সহায়তা করতে সাহায্য করে।",feedbackPlaceholder:"আপনার অভিজ্ঞতা সম্পর্কে আরও বলুন…",submit:"জমা দিন",leadFormTitle:"যোগাযোগের তথ্য",leadFormSuccess:"ধন্যবাদ! আপনার তথ্য জমা দেওয়া হয়েছে।",leadFormRequiredError:"সমস্ত প্রয়োজনীয় ক্ষেত্র পূরণ করুন।",leadFormGenericError:"কিছু ভুল হয়েছে। আবার চেষ্টা করুন।",leadFormName:"নাম",leadFormEmail:"ইমেইল",leadFormPhone:"ফোন",leadFormMessage:"আপনার বার্তা",poweredBy:"পরিচালিত {brand}"},xh={sendMessage:"Pošalji poruku",send:"Pošalji",close:"Zatvori",minimize:"Minimiziraj",maximize:"Maksimiziraj",call:"Pozovi",listening:"Sluša",processing:"Obrađuje",talkToInterrupt:"Govorite da prekinete",startVoice:"Pokreni glas",stopVoice:"Zaustavi glas",endCall:"Završi poziv",openChat:"Otvori ćaskanje",connectionFailed:"Veza nije uspjela",retry:"Pokušaj ponovo",loading:"Učitavanje",creditsExhausted:"Krediti su potrošeni",creditsExhaustedDetail:"Krediti ove sesije su potrošeni.",consentTitle:"Privatnost Saglasnost",consentBody:"Nastavkom se slažete sa prikupljanjem i obradom vaših podataka kako je opisano u našim",consentAccept:"Prihvati",consentDecline:"Odbij",consentTermsLink:"Uslovi korištenja",consentPrivacyLink:"Politika privatnosti",refresh:"Osvježi",ratingQuestion:"Kako je bio ovaj razgovor?",ratingThankYou:"Hvala na vašoj povratnoj informaciji!",youEnded:"Vi ste završili razgovor",agentEnded:"Agent je završio razgovor",sessionIdLabel:"ID:",tellUsMore:"Recite nam više",feedbackSubtitle:"Vaša povratna informacija nam pomaže da poboljšamo uslugu i bolje vas podržimo u budućnosti.",feedbackPlaceholder:"Recite nam više o svom iskustvu…",submit:"Pošalji",leadFormTitle:"Kontakt informacije",leadFormSuccess:"Hvala! Vaši podaci su poslani.",leadFormRequiredError:"Molimo popunite sva obavezna polja.",leadFormGenericError:"Nešto je pošlo po zlu. Pokušajte ponovo.",leadFormName:"Ime",leadFormEmail:"E-mail",leadFormPhone:"Telefon",leadFormMessage:"Vaša poruka",poweredBy:"Pokreće {brand}"},yh={sendMessage:"Изпрати съобщение",send:"Изпрати",close:"Затвори",minimize:"Минимизирай",maximize:"Максимизирай",call:"Обади се",listening:"Слуша",processing:"Обработва",talkToInterrupt:"Говорете за прекъсване",startVoice:"Започни глас",stopVoice:"Спри гласа",endCall:"Край на разговора",openChat:"Отвори чат",connectionFailed:"Неуспешна връзка",retry:"Опитай отново",loading:"Зареждане",creditsExhausted:"Кредитите са изчерпани",creditsExhaustedDetail:"Кредитите на тази сесия са изчерпани.",consentTitle:"Съгласие за поверителност",consentBody:"Продължавайки, вие се съгласявате със събирането и обработката на вашите данни, както е описано в нашите",consentAccept:"Приемам",consentDecline:"Отказвам",consentTermsLink:"Условия за ползване",consentPrivacyLink:"Политика за поверителност",refresh:"Обнови",ratingQuestion:"Как беше този разговор?",ratingThankYou:"Благодарим за обратната връзка!",youEnded:"Вие приключихте разговора",agentEnded:"Агентът приключи разговора",sessionIdLabel:"ID:",tellUsMore:"Кажете ни повече",feedbackSubtitle:"Вашата обратна връзка ни помага да подобрим услугата си и да ви подкрепяме по-добре в бъдеще.",feedbackPlaceholder:"Кажете ни повече за вашето преживяване…",submit:"Изпрати",leadFormTitle:"Информация за контакт",leadFormSuccess:"Благодарим! Вашите данни бяха изпратени.",leadFormRequiredError:"Моля, попълнете всички задължителни полета.",leadFormGenericError:"Нещо се обърка. Моля, опитайте отново.",leadFormName:"Име",leadFormEmail:"Имейл",leadFormPhone:"Телефон",leadFormMessage:"Вашето съобщение",poweredBy:"Предоставено от {brand}"},Ah={sendMessage:"Enviar un missatge",send:"Enviar",close:"Tancar",minimize:"Minimitzar",maximize:"Maximitzar",call:"Trucar",listening:"Escoltant",processing:"Processant",talkToInterrupt:"Parleu per interrompre",startVoice:"Iniciar veu",stopVoice:"Aturar veu",endCall:"Finalitzar trucada",openChat:"Obrir xat",connectionFailed:"Connexió fallida",retry:"Tornar a intentar",loading:"Carregant",creditsExhausted:"Crèdits esgotats",creditsExhaustedDetail:"Aquesta sessió ha esgotat els crèdits.",consentTitle:"Consentiment de Privacitat",consentBody:"En continuar, accepteu la recollida i el processament de les vostres dades tal com es descriu als nostres",consentAccept:"Acceptar",consentDecline:"Rebutjar",consentTermsLink:"Termes del servei",consentPrivacyLink:"Política de privacitat",refresh:"Actualitza",ratingQuestion:"Com ha anat aquesta conversa?",ratingThankYou:"Gràcies pel teu comentari!",youEnded:"Has finalitzat la conversa",agentEnded:"L’agent ha finalitzat la conversa",sessionIdLabel:"ID:",tellUsMore:"Explica’ns més",feedbackSubtitle:"El teu comentari ens ajuda a millorar el servei i a donar-te un millor suport en el futur.",feedbackPlaceholder:"Explica’ns més sobre la teva experiència…",submit:"Envia",leadFormTitle:"Informació de contacte",leadFormSuccess:"Gràcies! Les teves dades s'han enviat.",leadFormRequiredError:"Si us plau, ompliu tots els camps obligatoris.",leadFormGenericError:"Alguna cosa ha anat malament. Torneu-ho a provar.",leadFormName:"Nom",leadFormEmail:"Correu electrònic",leadFormPhone:"Telèfon",leadFormMessage:"El teu missatge",poweredBy:"Desenvolupat per {brand}"},Ch={sendMessage:"发送消息",send:"发送",close:"关闭",minimize:"最小化",maximize:"最大化",call:"呼叫",listening:"正在聆听",processing:"处理中",talkToInterrupt:"说话以打断",startVoice:"开始语音",stopVoice:"停止语音",endCall:"结束通话",openChat:"打开聊天",connectionFailed:"连接失败",retry:"重试",loading:"正在加载",creditsExhausted:"额度已用完",creditsExhaustedDetail:"此会话的额度已用完。",consentTitle:"隐私同意",consentBody:"继续操作即表示您同意我们按照所述方式收集和处理您的数据",consentAccept:"接受",consentDecline:"拒绝",consentTermsLink:"服务条款",consentPrivacyLink:"隐私政策",refresh:"刷新",ratingQuestion:"这次对话怎么样?",ratingThankYou:"感谢您的反馈!",youEnded:"您结束了对话",agentEnded:"智能体结束了对话",sessionIdLabel:"ID:",tellUsMore:"告诉我们更多",feedbackSubtitle:"您的反馈有助于我们改进服务,并在未来为您提供更好的支持。",feedbackPlaceholder:"告诉我们更多关于您的体验…",submit:"提交",leadFormTitle:"联系信息",leadFormSuccess:"谢谢!您的信息已提交。",leadFormRequiredError:"请填写所有必填字段。",leadFormGenericError:"出现错误,请重试。",leadFormName:"姓名",leadFormEmail:"电子邮箱",leadFormPhone:"电话",leadFormMessage:"您的留言",poweredBy:"技术支持:{brand}"},_h={sendMessage:"Pošalji poruku",send:"Pošalji",close:"Zatvori",minimize:"Minimiziraj",maximize:"Maksimiziraj",call:"Nazovi",listening:"Sluša",processing:"Obrađuje",talkToInterrupt:"Govorite za prekidanje",startVoice:"Pokreni glas",stopVoice:"Zaustavi glas",endCall:"Završi poziv",openChat:"Otvori chat",connectionFailed:"Veza nije uspjela",retry:"Pokušaj ponovno",loading:"Učitavanje",creditsExhausted:"Krediti iscrpljeni",creditsExhaustedDetail:"Krediti ove sesije su iscrpljeni.",consentTitle:"Privola za privatnost",consentBody:"Nastavkom pristajete na prikupljanje i obradu vaših podataka kako je opisano u našim",consentAccept:"Prihvati",consentDecline:"Odbij",consentTermsLink:"Uvjeti korištenja",consentPrivacyLink:"Pravila privatnosti",refresh:"Osvježi",ratingQuestion:"Kakav je bio ovaj razgovor?",ratingThankYou:"Hvala na povratnoj informaciji!",youEnded:"Vi ste završili razgovor",agentEnded:"Agent je završio razgovor",sessionIdLabel:"ID:",tellUsMore:"Recite nam više",feedbackSubtitle:"Vaša povratna informacija pomaže nam poboljšati uslugu i bolje vas podržati u budućnosti.",feedbackPlaceholder:"Recite nam više o svom iskustvu…",submit:"Pošalji",leadFormTitle:"Podaci za kontakt",leadFormSuccess:"Hvala! Vaši podaci su poslani.",leadFormRequiredError:"Ispunite sva obavezna polja.",leadFormGenericError:"Nešto je pošlo po zlu. Pokušajte ponovo.",leadFormName:"Ime",leadFormEmail:"E-mail",leadFormPhone:"Telefon",leadFormMessage:"Vaša poruka",poweredBy:"Pokreće {brand}"},wh={sendMessage:"Poslat zprávu",send:"Odeslat",close:"Zavřít",minimize:"Minimalizovat",maximize:"Maximalizovat",call:"Volat",listening:"Poslouchá",processing:"Zpracovává",talkToInterrupt:"Mluvte pro přerušení",startVoice:"Spustit hlas",stopVoice:"Zastavit hlas",endCall:"Ukončit hovor",openChat:"Otevřít chat",connectionFailed:"Připojení selhalo",retry:"Zkusit znovu",loading:"Načítání",creditsExhausted:"Kredity vyčerpány",creditsExhaustedDetail:"Kredity této relace byly vyčerpány.",consentTitle:"Souhlas se soukromím",consentBody:"Pokračováním souhlasíte se shromažďováním a zpracováním vašich údajů, jak je popsáno v našich",consentAccept:"Přijmout",consentDecline:"Odmítnout",consentTermsLink:"Podmínky služby",consentPrivacyLink:"Zásady ochrany soukromí",refresh:"Obnovit",ratingQuestion:"Jaká byla tato konverzace?",ratingThankYou:"Děkujeme za vaši zpětnou vazbu!",youEnded:"Konverzaci jste ukončili vy",agentEnded:"Konverzaci ukončil agent",sessionIdLabel:"ID:",tellUsMore:"Řekněte nám více",feedbackSubtitle:"Vaše zpětná vazba nám pomáhá zlepšovat naše služby a lépe vás v budoucnu podporovat.",feedbackPlaceholder:"Řekněte nám více o své zkušenosti…",submit:"Odeslat",leadFormTitle:"Kontaktní údaje",leadFormSuccess:"Děkujeme! Vaše údaje byly odeslány.",leadFormRequiredError:"Vyplňte prosím všechna povinná pole.",leadFormGenericError:"Něco se pokazilo. Zkuste to znovu.",leadFormName:"Jméno",leadFormEmail:"E-mail",leadFormPhone:"Telefon",leadFormMessage:"Vaše zpráva",poweredBy:"Běží na {brand}"},Sh={sendMessage:"Send en besked",send:"Send",close:"Luk",minimize:"Minimer",maximize:"Maksimer",call:"Ring",listening:"Lytter",processing:"Behandler",talkToInterrupt:"Tal for at afbryde",startVoice:"Start stemme",stopVoice:"Stop stemme",endCall:"Afslut opkald",openChat:"Åbn chat",connectionFailed:"Forbindelse mislykkedes",retry:"Prøv igen",loading:"Indlæser",creditsExhausted:"Kreditter opbrugt",creditsExhaustedDetail:"Denne sessions kreditter er opbrugt.",consentTitle:"Samtykke til privatliv",consentBody:"Ved at fortsætte accepterer du indsamling og behandling af dine data som beskrevet i vores",consentAccept:"Acceptér",consentDecline:"Afvis",consentTermsLink:"Servicevilkår",consentPrivacyLink:"Privatlivspolitik",refresh:"Opdater",ratingQuestion:"Hvordan var denne samtale?",ratingThankYou:"Tak for din feedback!",youEnded:"Du afsluttede samtalen",agentEnded:"Agenten afsluttede samtalen",sessionIdLabel:"ID:",tellUsMore:"Fortæl os mere",feedbackSubtitle:"Din feedback hjælper os med at forbedre vores service og støtte dig bedre i fremtiden.",feedbackPlaceholder:"Fortæl os mere om din oplevelse…",submit:"Send",leadFormTitle:"Kontaktinfo",leadFormSuccess:"Tak! Dine oplysninger er indsendt.",leadFormRequiredError:"Udfyld venligst alle obligatoriske felter.",leadFormGenericError:"Noget gik galt. Prøv igen.",leadFormName:"Navn",leadFormEmail:"E-mail",leadFormPhone:"Telefon",leadFormMessage:"Din besked",poweredBy:"Drevet af {brand}"},Ih={sendMessage:"Stuur een bericht",send:"Verzenden",close:"Sluiten",minimize:"Minimaliseren",maximize:"Maximaliseren",call:"Bel",listening:"Luistert",processing:"Verwerken",talkToInterrupt:"Praat om te onderbreken",startVoice:"Start spraak",stopVoice:"Stop spraak",endCall:"Gesprek beëindigen",openChat:"Chat openen",connectionFailed:"Verbinding mislukt",retry:"Opnieuw proberen",loading:"Laden",creditsExhausted:"Credits opgebruikt",creditsExhaustedDetail:"De credits van deze sessie zijn opgebruikt.",consentTitle:"Toestemming privacy",consentBody:"Door verder te gaan, gaat u akkoord met het verzamelen en verwerken van uw gegevens zoals beschreven in onze",consentAccept:"Accepteren",consentDecline:"Weigeren",consentTermsLink:"Servicevoorwaarden",consentPrivacyLink:"Privacybeleid",refresh:"Vernieuwen",ratingQuestion:"Hoe was dit gesprek?",ratingThankYou:"Bedankt voor je feedback!",youEnded:"Je hebt het gesprek beëindigd",agentEnded:"De agent heeft het gesprek beëindigd",sessionIdLabel:"ID:",tellUsMore:"Vertel ons meer",feedbackSubtitle:"Je feedback helpt ons onze service te verbeteren en je in de toekomst beter te ondersteunen.",feedbackPlaceholder:"Vertel ons meer over je ervaring…",submit:"Verzenden",leadFormTitle:"Contactgegevens",leadFormSuccess:"Bedankt! Je gegevens zijn verzonden.",leadFormRequiredError:"Vul alle verplichte velden in.",leadFormGenericError:"Er is iets misgegaan. Probeer het opnieuw.",leadFormName:"Naam",leadFormEmail:"E-mail",leadFormPhone:"Telefoon",leadFormMessage:"Uw bericht",poweredBy:"Mogelijk gemaakt door {brand}"},vh={sendMessage:"Send a message",send:"Send",close:"Close",minimize:"Minimize",maximize:"Maximize",call:"Call",listening:"Listening",processing:"Processing",talkToInterrupt:"Talk to interrupt",startVoice:"Start voice",stopVoice:"Stop voice",endCall:"End call",openChat:"Open chat",connectionFailed:"Connection failed",retry:"Retry",loading:"Loading",creditsExhausted:"Credits Exhausted",creditsExhaustedDetail:"This session has run out of credits.",consentTitle:"Privacy Consent",consentBody:"By proceeding, you agree to the collection and processing of your data as described in our",consentAccept:"Accept",consentDecline:"Decline",consentTermsLink:"Terms of Service",consentPrivacyLink:"Privacy Policy",refresh:"Refresh",ratingQuestion:"How was this conversation?",ratingThankYou:"Thank you for your feedback!",youEnded:"You ended the conversation",agentEnded:"The agent ended the conversation",sessionIdLabel:"ID:",tellUsMore:"Tell us more",feedbackSubtitle:"Your feedback helps us improve our service and better support you in the future.",feedbackPlaceholder:"Tell us more about your experience…",submit:"Submit",leadFormTitle:"Contact info",leadFormSuccess:"Thanks! Your details have been submitted.",leadFormRequiredError:"Please fill in all required fields.",leadFormGenericError:"Something went wrong. Please try again.",leadFormName:"Name",leadFormEmail:"Email",leadFormPhone:"Phone",leadFormMessage:"Your message",poweredBy:"Powered by {brand}"},Nh={sendMessage:"Saada sõnum",send:"Saada",close:"Sulge",minimize:"Minimeeri",maximize:"Maksimeeri",call:"Helista",listening:"Kuulab",processing:"Töötleb",talkToInterrupt:"Katkestamiseks räägi",startVoice:"Alusta häält",stopVoice:"Peata hääl",endCall:"Lõpeta kõne",openChat:"Ava vestlus",connectionFailed:"Ühendus ebaõnnestus",retry:"Proovi uuesti",loading:"Laadimine",creditsExhausted:"Krediidid otsas",creditsExhaustedDetail:"Selle seansi krediidid on otsas.",consentTitle:"Privaatsusnõusolek",consentBody:"Jätkates nõustute oma andmete kogumise ja töötlemisega, nagu on kirjeldatud meie",consentAccept:"Nõustu",consentDecline:"Keeldu",consentTermsLink:"Teenusetingimused",consentPrivacyLink:"Privaatsuspoliitika",refresh:"Värskenda",ratingQuestion:"Milline see vestlus oli?",ratingThankYou:"Täname tagasiside eest!",youEnded:"Sina lõpetasid vestluse",agentEnded:"Agent lõpetas vestluse",sessionIdLabel:"ID:",tellUsMore:"Räägi meile rohkem",feedbackSubtitle:"Sinu tagasiside aitab meil teenust parandada ja sind tulevikus paremini toetada.",feedbackPlaceholder:"Räägi meile rohkem oma kogemusest…",submit:"Saada",leadFormTitle:"Kontaktandmed",leadFormSuccess:"Aitäh! Teie andmed on esitatud.",leadFormRequiredError:"Palun täitke kõik kohustuslikud väljad.",leadFormGenericError:"Midagi läks valesti. Palun proovige uuesti.",leadFormName:"Nimi",leadFormEmail:"E-post",leadFormPhone:"Telefon",leadFormMessage:"Teie sõnum",poweredBy:"Toetab {brand}"},Lh={sendMessage:"Lähetä viesti",send:"Lähetä",close:"Sulje",minimize:"Pienennä",maximize:"Suurenna",call:"Soita",listening:"Kuuntelee",processing:"Käsittelee",talkToInterrupt:"Puhu keskeyttääksesi",startVoice:"Aloita puhe",stopVoice:"Lopeta puhe",endCall:"Lopeta puhelu",openChat:"Avaa chat",connectionFailed:"Yhteys epäonnistui",retry:"Yritä uudelleen",loading:"Ladataan",creditsExhausted:"Krediitit loppu",creditsExhaustedDetail:"Tämän istunnon krediitit ovat loppuneet.",consentTitle:"Yksityisyyden suostumus",consentBody:"Jatkamalla hyväksyt tietojesi keräämisen ja käsittelyn kuten on kuvattu",consentAccept:"Hyväksy",consentDecline:"Hylkää",consentTermsLink:"Käyttöehdot",consentPrivacyLink:"Tietosuojakäytäntö",refresh:"Päivitä",ratingQuestion:"Millainen tämä keskustelu oli?",ratingThankYou:"Kiitos palautteestasi!",youEnded:"Sinä lopetit keskustelun",agentEnded:"Agentti lopetti keskustelun",sessionIdLabel:"ID:",tellUsMore:"Kerro lisää",feedbackSubtitle:"Palautteesi auttaa meitä parantamaan palveluamme ja tukemaan sinua paremmin tulevaisuudessa.",feedbackPlaceholder:"Kerro lisää kokemuksestasi…",submit:"Lähetä",leadFormTitle:"Yhteystiedot",leadFormSuccess:"Kiitos! Tietosi on lähetetty.",leadFormRequiredError:"Täytä kaikki pakolliset kentät.",leadFormGenericError:"Jokin menikin pieleen. Yritä uudelleen.",leadFormName:"Nimi",leadFormEmail:"Sähköposti",leadFormPhone:"Puhelin",leadFormMessage:"Viestisi",poweredBy:"Palvelun tarjoaa {brand}"},Rh={sendMessage:"Envoyer un message",send:"Envoyer",close:"Fermer",minimize:"Réduire",maximize:"Agrandir",call:"Appeler",listening:"Écoute",processing:"Traitement",talkToInterrupt:"Parlez pour interrompre",startVoice:"Démarrer la voix",stopVoice:"Arrêter la voix",endCall:"Terminer l'appel",openChat:"Ouvrir le chat",connectionFailed:"Connexion échouée",retry:"Réessayer",loading:"Chargement",creditsExhausted:"Crédits épuisés",creditsExhaustedDetail:"Cette session a épuisé ses crédits.",consentTitle:"Consentement à la confidentialité",consentBody:"En continuant, vous acceptez la collecte et le traitement de vos données comme décrit dans nos",consentAccept:"Accepter",consentDecline:"Refuser",consentTermsLink:"Conditions d'utilisation",consentPrivacyLink:"Politique de confidentialité",refresh:"Actualiser",ratingQuestion:"Comment s’est passée cette conversation ?",ratingThankYou:"Merci pour votre retour !",youEnded:"Vous avez terminé la conversation",agentEnded:"L’agent a terminé la conversation",sessionIdLabel:"ID :",tellUsMore:"Dites-nous en plus",feedbackSubtitle:"Votre retour nous aide à améliorer notre service et à mieux vous accompagner à l’avenir.",feedbackPlaceholder:"Dites-nous en plus sur votre expérience…",submit:"Envoyer",leadFormTitle:"Coordonnées",leadFormSuccess:"Merci ! Vos informations ont été envoyées.",leadFormRequiredError:"Veuillez remplir tous les champs obligatoires.",leadFormGenericError:"Une erreur est survenue. Veuillez réessayer.",leadFormName:"Nom",leadFormEmail:"E-mail",leadFormPhone:"Téléphone",leadFormMessage:"Votre message",poweredBy:"Propulsé par {brand}"},Dh={sendMessage:"Enviar unha mensaxe",send:"Enviar",close:"Pechar",minimize:"Minimizar",maximize:"Maximizar",call:"Chamar",listening:"Escoitando",processing:"Procesando",talkToInterrupt:"Fale para interromper",startVoice:"Iniciar voz",stopVoice:"Deter voz",endCall:"Finalizar chamada",openChat:"Abrir chat",connectionFailed:"Fallou a conexión",retry:"Tentar de novo",loading:"Cargando",creditsExhausted:"Créditos esgotados",creditsExhaustedDetail:"Esta sesión esgotou os seus créditos.",consentTitle:"Consentimento de Privacidade",consentBody:"Ao continuar, acepta a recollida e o procesamento dos seus datos tal como se describe nos nosos",consentAccept:"Aceptar",consentDecline:"Rexeitar",consentTermsLink:"Termos do servizo",consentPrivacyLink:"Política de privacidade",refresh:"Actualizar",ratingQuestion:"Como foi esta conversa?",ratingThankYou:"Grazas polos teus comentarios!",youEnded:"Ti finalizaches a conversa",agentEnded:"O axente finalizou a conversa",sessionIdLabel:"ID:",tellUsMore:"Cóntanos máis",feedbackSubtitle:"Os teus comentarios axúdannos a mellorar o servizo e a apoiarte mellor no futuro.",feedbackPlaceholder:"Cóntanos máis sobre a túa experiencia…",submit:"Enviar",leadFormTitle:"Información de contacto",leadFormSuccess:"Grazas! Os teus datos foron enviados.",leadFormRequiredError:"Cubra todos os campos obrigatorios.",leadFormGenericError:"Algo saíu mal. Téntao de novo.",leadFormName:"Nome",leadFormEmail:"Correo electrónico",leadFormPhone:"Teléfono",leadFormMessage:"A túa mensaxe",poweredBy:"Desenvolvido por {brand}"},Ph={sendMessage:"Nachricht senden",send:"Senden",close:"Schließen",minimize:"Minimieren",maximize:"Maximieren",call:"Anrufen",listening:"Hört zu",processing:"Verarbeitung",talkToInterrupt:"Sprechen zum Unterbrechen",startVoice:"Sprache starten",stopVoice:"Sprache stoppen",endCall:"Anruf beenden",openChat:"Chat öffnen",connectionFailed:"Verbindung fehlgeschlagen",retry:"Erneut versuchen",loading:"Wird geladen",creditsExhausted:"Guthaben aufgebraucht",creditsExhaustedDetail:"Das Guthaben dieser Sitzung ist aufgebraucht.",consentTitle:"Datenschutz-Einwilligung",consentBody:"Wenn Sie fortfahren, stimmen Sie der Erhebung und Verarbeitung Ihrer Daten wie in unseren beschrieben zu",consentAccept:"Akzeptieren",consentDecline:"Ablehnen",consentTermsLink:"Nutzungsbedingungen",consentPrivacyLink:"Datenschutzerklärung",refresh:"Aktualisieren",ratingQuestion:"Wie war dieses Gespräch?",ratingThankYou:"Danke für dein Feedback!",youEnded:"Du hast das Gespräch beendet",agentEnded:"Der Agent hat das Gespräch beendet",sessionIdLabel:"ID:",tellUsMore:"Erzähl uns mehr",feedbackSubtitle:"Dein Feedback hilft uns, unseren Service zu verbessern und dich in Zukunft besser zu unterstützen.",feedbackPlaceholder:"Erzähl uns mehr über deine Erfahrung…",submit:"Senden",leadFormTitle:"Kontaktinformationen",leadFormSuccess:"Danke! Ihre Angaben wurden übermittelt.",leadFormRequiredError:"Bitte füllen Sie alle Pflichtfelder aus.",leadFormGenericError:"Etwas ist schiefgelaufen. Bitte versuchen Sie es erneut.",leadFormName:"Name",leadFormEmail:"E-Mail",leadFormPhone:"Telefon",leadFormMessage:"Ihre Nachricht",poweredBy:"Bereitgestellt von {brand}"},Oh={sendMessage:"Αποστολή μηνύματος",send:"Αποστολή",close:"Κλείσιμο",minimize:"Ελαχιστοποίηση",maximize:"Μεγιστοποίηση",call:"Κλήση",listening:"Ακούει",processing:"Επεξεργασία",talkToInterrupt:"Μιλήστε για διακοπή",startVoice:"Έναρξη φωνής",stopVoice:"Διακοπή φωνής",endCall:"Τερματισμός κλήσης",openChat:"Άνοιγμα συνομιλίας",connectionFailed:"Η σύνδεση απέτυχε",retry:"Επανάληψη",loading:"Φόρτωση",creditsExhausted:"Οι πιστώσεις εξαντλήθηκαν",creditsExhaustedDetail:"Οι πιστώσεις αυτής της συνεδρίας εξαντλήθηκαν.",consentTitle:"Συγκατάθεση Απορρήτου",consentBody:"Με τη συνέχιση, συμφωνείτε με τη συλλογή και επεξεργασία των δεδομένων σας όπως περιγράφεται στους",consentAccept:"Αποδοχή",consentDecline:"Απόρριψη",consentTermsLink:"Όροι Υπηρεσίας",consentPrivacyLink:"Πολιτική Απορρήτου",refresh:"Ανανέωση",ratingQuestion:"Πώς ήταν αυτή η συνομιλία;",ratingThankYou:"Ευχαριστούμε για τα σχόλιά σας!",youEnded:"Εσείς τερματίσατε τη συνομιλία",agentEnded:"Ο πράκτορας τερμάτισε τη συνομιλία",sessionIdLabel:"ID:",tellUsMore:"Πείτε μας περισσότερα",feedbackSubtitle:"Τα σχόλιά σας μας βοηθούν να βελτιώσουμε την υπηρεσία μας και να σας υποστηρίξουμε καλύτερα στο μέλλον.",feedbackPlaceholder:"Πείτε μας περισσότερα για την εμπειρία σας…",submit:"Υποβολή",leadFormTitle:"Στοιχεία επικοινωνίας",leadFormSuccess:"Ευχαριστούμε! Τα στοιχεία σας υποβλήθηκαν.",leadFormRequiredError:"Συμπληρώστε όλα τα υποχρεωτικά πεδία.",leadFormGenericError:"Κάτι πήγε στραβά. Δοκιμάστε ξανά.",leadFormName:"Όνομα",leadFormEmail:"E-mail",leadFormPhone:"Τηλέφωνο",leadFormMessage:"Το μήνυμά σας",poweredBy:"Με την υποστήриξη του {brand}"},Mh={sendMessage:"સંદેશ મોકલો",send:"મોકલો",close:"બંધ કરો",minimize:"નાનું કરો",maximize:"મોટું કરો",call:"કૉલ કરો",listening:"સાંભળી રહ્યું છે",processing:"પ્રક્રિયા ચાલુ છે",talkToInterrupt:"રોકવા માટે બોલો",startVoice:"વૉઇસ શરૂ કરો",stopVoice:"વૉઇસ બંધ કરો",endCall:"કૉલ સમાપ્ત કરો",openChat:"ચેટ ખોલો",connectionFailed:"કનેક્શન નિષ્ફળ",retry:"ફરી પ્રયાસ કરો",loading:"લોડ થઈ રહ્યું છે",creditsExhausted:"ક્રેડિટ સમાપ્ત",creditsExhaustedDetail:"આ સત્રની ક્રેડિટ સમાપ્ત થઈ ગઈ છે.",consentTitle:"ગોપનીયતા સંમતિ",consentBody:"આગળ વધીને, તમે અમારા દ્વારા વર્ણવ્યા મુજબ તમારા ડેટાના સંગ્રહ અને પ્રક્રિયા માટે સંમત થાઓ છો",consentAccept:"સ્વીકારો",consentDecline:"નકારો",consentTermsLink:"સેવાની શરતો",consentPrivacyLink:"ગોપનીયતા નીતિ",refresh:"રિફ્રેશ કરો",ratingQuestion:"આ વાતચીત કેવી રહી?",ratingThankYou:"તમારા પ્રતિસાદ બદલ આભાર!",youEnded:"તમે વાતચીત સમાપ્ત કરી",agentEnded:"એજન્ટે વાતચીત સમાપ્ત કરી",sessionIdLabel:"ID:",tellUsMore:"અમને વધુ જણાવો",feedbackSubtitle:"તમારો પ્રતિસાદ અમને અમારી સેવા સુધારવામાં અને ભવિષ્યમાં તમને વધુ સારી રીતે સહાય કરવામાં મદદ કરે છે.",feedbackPlaceholder:"તમારા અનુભવ વિશે અમને વધુ જણાવો…",submit:"સબમિટ કરો",leadFormTitle:"સંપર્ક માહિતી",leadFormSuccess:"આભાર! તમારી વિગતો સબમિટ થઈ ગઈ છે.",leadFormRequiredError:"કૃપા કરીને બધા જરૂરી ફીલ્ડ ભરો.",leadFormGenericError:"કંઈક ખોટું થયું. કૃપા કરી ફરી પ્રયાસ કરો.",leadFormName:"નામ",leadFormEmail:"ઇમેઇલ",leadFormPhone:"ફોન",leadFormMessage:"તમારો સંદેશ",poweredBy:"સંચાલિત {brand}"},Fh={sendMessage:"संदेश भेजें",send:"भेजें",close:"बंद करें",minimize:"छोटा करें",maximize:"बड़ा करें",call:"कॉल करें",listening:"सुन रहा है",processing:"प्रोसेस हो रहा है",talkToInterrupt:"रोकने के लिए बोलें",startVoice:"वॉइस शुरू करें",stopVoice:"वॉइस रोकें",endCall:"कॉल समाप्त करें",openChat:"चैट खोलें",connectionFailed:"कनेक्शन विफल",retry:"फिर कोशिश करें",loading:"लोड हो रहा है",creditsExhausted:"क्रेडिट समाप्त",creditsExhaustedDetail:"इस सत्र के क्रेडिट समाप्त हो गए हैं।",consentTitle:"गोपनीयता सहमति",consentBody:"आगे बढ़ने पर, आप हमारे द्वारा वर्णित अनुसार अपने डेटा के संग्रह और प्रसंस्करण के लिए सहमत होते हैं",consentAccept:"स्वीकार करें",consentDecline:"अस्वीकार करें",consentTermsLink:"सेवा की शर्तें",consentPrivacyLink:"गोपनीयता नीति",refresh:"रिफ्रेश करें",ratingQuestion:"यह बातचीत कैसी रही?",ratingThankYou:"आपकी प्रतिक्रिया के लिए धन्यवाद!",youEnded:"आपने बातचीत समाप्त की",agentEnded:"एजेंट ने बातचीत समाप्त की",sessionIdLabel:"आईडी:",tellUsMore:"हमें और बताएं",feedbackSubtitle:"आपकी प्रतिक्रिया हमें अपनी सेवा बेहतर बनाने और भविष्य में आपकी बेहतर सहायता करने में मदद करती है।",feedbackPlaceholder:"अपने अनुभव के बारे में हमें और बताएं…",submit:"सबमिट करें",leadFormTitle:"संपर्क जानकारी",leadFormSuccess:"धन्यवाद! आपकी जानकारी सबमिट कर दी गई है।",leadFormRequiredError:"कृपया सभी आवश्यक फ़ील्ड भरें।",leadFormGenericError:"कुछ गलत हो गया। कृपया पुनः प्रयास करें।",leadFormName:"नाम",leadFormEmail:"ईमेल",leadFormPhone:"फ़ोन",leadFormMessage:"आपका संदेश",poweredBy:"द्वारा संचालित {brand}"},Bh={sendMessage:"Üzenet küldése",send:"Küldés",close:"Bezárás",minimize:"Kis méret",maximize:"Teljes méret",call:"Hívás",listening:"Figyel",processing:"Feldolgozás",talkToInterrupt:"Beszéljen a megszakításhoz",startVoice:"Hang indítása",stopVoice:"Hang leállítása",endCall:"Hívás befejezése",openChat:"Csevegés megnyitása",connectionFailed:"A kapcsolat sikertelen",retry:"Újrapróbálkozás",loading:"Betöltés",creditsExhausted:"Kreditek elfogytak",creditsExhaustedDetail:"Ennek a munkamenetnek a kreditjei elfogytak.",consentTitle:"Adatvédelmi hozzájárulás",consentBody:"A folytatással Ön hozzájárul adatainak gyűjtéséhez és feldolgozásához a mi",consentAccept:"Elfogadás",consentDecline:"Elutasítás",consentTermsLink:"Szolgáltatási feltételek",consentPrivacyLink:"Adatvédelmi irányelvek",refresh:"Frissítés",ratingQuestion:"Milyen volt ez a beszélgetés?",ratingThankYou:"Köszönjük a visszajelzését!",youEnded:"Ön fejezte be a beszélgetést",agentEnded:"Az ügynök fejezte be a beszélgetést",sessionIdLabel:"ID:",tellUsMore:"Mondjon többet",feedbackSubtitle:"Visszajelzése segít nekünk fejleszteni szolgáltatásunkat, és a jövőben jobban támogatni Önt.",feedbackPlaceholder:"Mondjon többet az élményéről…",submit:"Küldés",leadFormTitle:"Elérhetőségi adatok",leadFormSuccess:"Köszönjük! Az adatait elküldtük.",leadFormRequiredError:"Kérjük, töltse ki az összes kötelező mezőt.",leadFormGenericError:"Valami hiba történt. Kérjük, próbálja újra.",leadFormName:"Név",leadFormEmail:"E-mail",leadFormPhone:"Telefon",leadFormMessage:"Üzenete",poweredBy:"Működteti a(z) {brand}"},zh={sendMessage:"Kirim pesan",send:"Kirim",close:"Tutup",minimize:"Minimalkan",maximize:"Maksimalkan",call:"Panggil",listening:"Mendengarkan",processing:"Memproses",talkToInterrupt:"Bicara untuk menyela",startVoice:"Mulai suara",stopVoice:"Hentikan suara",endCall:"Akhiri panggilan",openChat:"Buka obrolan",connectionFailed:"Koneksi gagal",retry:"Coba lagi",loading:"Memuat",creditsExhausted:"Kredit Habis",creditsExhaustedDetail:"Kredit sesi ini telah habis.",consentTitle:"Persetujuan Privasi",consentBody:"Dengan melanjutkan, Anda menyetujui pengumpulan dan pemrosesan data Anda seperti yang dijelaskan dalam",consentAccept:"Terima",consentDecline:"Tolak",consentTermsLink:"Ketentuan Layanan",consentPrivacyLink:"Kebijakan Privasi",refresh:"Segarkan",ratingQuestion:"Bagaimana percakapan ini?",ratingThankYou:"Terima kasih atas masukan Anda!",youEnded:"Anda mengakhiri percakapan",agentEnded:"Agen mengakhiri percakapan",sessionIdLabel:"ID:",tellUsMore:"Ceritakan lebih banyak",feedbackSubtitle:"Masukan Anda membantu kami meningkatkan layanan dan mendukung Anda lebih baik di masa depan.",feedbackPlaceholder:"Ceritakan lebih banyak tentang pengalaman Anda…",submit:"Kirim",leadFormTitle:"Informasi kontak",leadFormSuccess:"Terima kasih! Detail Anda telah dikirim.",leadFormRequiredError:"Harap isi semua kolom yang wajib diisi.",leadFormGenericError:"Terjadi kesalahan. Silakan coba lagi.",leadFormName:"Nama",leadFormEmail:"Email",leadFormPhone:"Telepon",leadFormMessage:"Pesan Anda",poweredBy:"Didukung oleh {brand}"},jh={sendMessage:"Invia un messaggio",send:"Invia",close:"Chiudi",minimize:"Riduci",maximize:"Ingrandisci",call:"Chiama",listening:"In ascolto",processing:"Elaborazione",talkToInterrupt:"Parla per interrompere",startVoice:"Avvia voce",stopVoice:"Ferma voce",endCall:"Termina chiamata",openChat:"Apri chat",connectionFailed:"Connessione non riuscita",retry:"Riprova",loading:"Caricamento",creditsExhausted:"Crediti esauriti",creditsExhaustedDetail:"Questa sessione ha esaurito i crediti.",consentTitle:"Consenso alla privacy",consentBody:"Proseguendo, accetti la raccolta e il trattamento dei tuoi dati come descritto nei nostri",consentAccept:"Accetta",consentDecline:"Rifiuta",consentTermsLink:"Termini di servizio",consentPrivacyLink:"Informativa sulla privacy",refresh:"Aggiorna",ratingQuestion:"Com’è andata questa conversazione?",ratingThankYou:"Grazie per il tuo feedback!",youEnded:"Hai terminato tu la conversazione",agentEnded:"L’agente ha terminato la conversazione",sessionIdLabel:"ID:",tellUsMore:"Dicci di più",feedbackSubtitle:"Il tuo feedback ci aiuta a migliorare il servizio e a supportarti meglio in futuro.",feedbackPlaceholder:"Raccontaci di più sulla tua esperienza…",submit:"Invia",leadFormTitle:"Informazioni di contatto",leadFormSuccess:"Grazie! I tuoi dati sono stati inviati.",leadFormRequiredError:"Compila tutti i campi obbligatori.",leadFormGenericError:"Qualcosa è andato storto. Riprova.",leadFormName:"Nome",leadFormEmail:"E-mail",leadFormPhone:"Telefono",leadFormMessage:"Il tuo messaggio",poweredBy:"Offerto da {brand}"},Hh={sendMessage:"メッセージを送信",send:"送信",close:"閉じる",minimize:"最小化",maximize:"最大化",call:"通話",listening:"聞き取り中",processing:"処理中",talkToInterrupt:"話して中断",startVoice:"音声を開始",stopVoice:"音声を停止",endCall:"通話終了",openChat:"チャットを開く",connectionFailed:"接続に失敗しました",retry:"再試行",loading:"読み込み中",creditsExhausted:"クレジット切れ",creditsExhaustedDetail:"このセッションのクレジットがなくなりました。",consentTitle:"プライバシー同意",consentBody:"続行すると、当社に記載されているように、お客様のデータの収集と処理に同意したことになります。",consentAccept:"同意する",consentDecline:"拒否する",consentTermsLink:"利用規約",consentPrivacyLink:"プライバシーポリシー",refresh:"リフレッシュ",ratingQuestion:"この会話はいかがでしたか?",ratingThankYou:"フィードバックをありがとうございます!",youEnded:"あなたが会話を終了しました",agentEnded:"エージェントが会話を終了しました",sessionIdLabel:"ID:",tellUsMore:"詳しく教えてください",feedbackSubtitle:"いただいたフィードバックは、サービスの改善と今後のより良いサポートに役立ちます。",feedbackPlaceholder:"ご体験について詳しくお聞かせください…",submit:"送信",leadFormTitle:"連絡先情報",leadFormSuccess:"ありがとうございます!情報が送信されました。",leadFormRequiredError:"必須項目をすべて入力してください。",leadFormGenericError:"問題が発生しました。もう一度お試しください。",leadFormName:"お名前",leadFormEmail:"メールアドレス",leadFormPhone:"電話番号",leadFormMessage:"メッセージ",poweredBy:"提供: {brand}"},Uh={sendMessage:"ಸಂದೇಶ ಕಳುಹಿಸಿ",send:"ಕಳುಹಿಸಿ",close:"ಮುಚ್ಚಿ",minimize:"ಚಿಕ್ಕದಾಗಿಸು",maximize:"ದೊಡ್ಡದಾಗಿಸು",call:"ಕರೆ ಮಾಡಿ",listening:"ಕೇಳುತ್ತಿದೆ",processing:"ಪ್ರಕ್ರಿಯೆಗೊಳಿಸುತ್ತಿದೆ",talkToInterrupt:"ತಡೆಯಲು ಮಾತನಾಡಿ",startVoice:"ಧ್ವನಿ ಪ್ರಾರಂಭಿಸಿ",stopVoice:"ಧ್ವನಿ ನಿಲ್ಲಿಸಿ",endCall:"ಕರೆ ಕೊನೆಗೊಳಿಸಿ",openChat:"ಚಾಟ್ ತೆರೆಯಿರಿ",connectionFailed:"ಸಂಪರ್ಕ ವಿಫಲವಾಗಿದೆ",retry:"ಮತ್ತೆ ಪ್ರಯತ್ನಿಸಿ",loading:"ಲೋಡ್ ಆಗುತ್ತಿದೆ",creditsExhausted:"ಕ್ರೆಡಿಟ್ಗಳು ಮುಗಿದಿವೆ",creditsExhaustedDetail:"ಈ ಸೆಷನ್ನ ಕ್ರೆಡಿಟ್ಗಳು ಮುಗಿದಿವೆ.",consentTitle:"ಗೌಪ್ಯತೆ ಒಪ್ಪಿಗೆ",consentBody:"ಮುಂದುವರಿಯುವ ಮೂಲಕ, ನಮ್ಮಲ್ಲಿ ವಿವರಿಸಿದಂತೆ ನಿಮ್ಮ ಡೇಟಾವನ್ನು ಸಂಗ್ರಹಿಸುವುದು ಮತ್ತು ಸಂಸ್ಕರಿಸುವುದನ್ನು ನೀವು ಒಪ್ಪುತ್ತೀರಿ",consentAccept:"ಸ್ವೀಕರಿಸಿ",consentDecline:"ನಿರಾಕರಿಸಿ",consentTermsLink:"ಸೇವೆಯ ನಿಯಮಗಳು",consentPrivacyLink:"ಗೌಪ್ಯತೆ ನೀತಿ",refresh:"ರಿಫ್ರೆಶ್ ಮಾಡಿ",ratingQuestion:"ಈ ಸಂಭಾಷಣೆ ಹೇಗಿತ್ತು?",ratingThankYou:"ನಿಮ್ಮ ಪ್ರತಿಕ್ರಿಯೆಗೆ ಧನ್ಯವಾದಗಳು!",youEnded:"ನೀವು ಸಂಭಾಷಣೆಯನ್ನು ಕೊನೆಗೊಳಿಸಿದ್ದೀರಿ",agentEnded:"ಏಜೆಂಟ್ ಸಂಭಾಷಣೆಯನ್ನು ಕೊನೆಗೊಳಿಸಿದ್ದಾರೆ",sessionIdLabel:"ID:",tellUsMore:"ನಮಗೆ ಇನ್ನಷ್ಟು ತಿಳಿಸಿ",feedbackSubtitle:"ನಿಮ್ಮ ಪ್ರತಿಕ್ರಿಯೆ ನಮ್ಮ ಸೇವೆಯನ್ನು ಸುಧಾರಿಸಲು ಮತ್ತು ಭವಿಷ್ಯದಲ್ಲಿ ನಿಮಗೆ ಉತ್ತಮ ಬೆಂಬಲ ನೀಡಲು ಸಹಾಯ ಮಾಡುತ್ತದೆ.",feedbackPlaceholder:"ನಿಮ್ಮ ಅನುಭವದ ಬಗ್ಗೆ ನಮಗೆ ಇನ್ನಷ್ಟು ತಿಳಿಸಿ…",submit:"ಸಲ್ಲಿಸಿ",leadFormTitle:"ಸಂಪರ್ಕ ಮಾಹಿತಿ",leadFormSuccess:"ಧನ್ಯವಾದಗಳು! ನಿಮ್ಮ ವಿವರಗಳನ್ನು ಸಲ್ಲಿಸಲಾಗಿದೆ.",leadFormRequiredError:"ದಯವಿಟ್ಟು ಎಲ್ಲಾ ಅಗತ್ಯ ಕ್ಷೇತ್ರಗಳನ್ನು ಭರ್ತಿ ಮಾಡಿ.",leadFormGenericError:"ಏನೋ ತಪ್ಪಾಗಿದೆ. ದಯವಿಟ್ಟು ಮತ್ತೆ ಪ್ರಯತ್ನಿಸಿ.",leadFormName:"ಹೆಸರು",leadFormEmail:"ಇಮೇಲ್",leadFormPhone:"ಫೋನ್",leadFormMessage:"ನಿಮ್ಮ ಸಂದೇಶ",poweredBy:"ನಡೆಸುವವರು {brand}"},qh={sendMessage:"Хабарлама жіберу",send:"Жіберу",close:"Жабу",minimize:"Кішірейту",maximize:"Үлкейту",call:"Қоңырау шалу",listening:"Тыңдауда",processing:"Өңдеу",talkToInterrupt:"Үзу үшін сөйлеңіз",startVoice:"Дауысты бастау",stopVoice:"Дауысты тоқтату",endCall:"Қоңырауды аяқтау",openChat:"Чатты ашу",connectionFailed:"Қосылым сәтсіз аяқталды",retry:"Қайталау",loading:"Жүктелуде",creditsExhausted:"Кредиттер таусылды",creditsExhaustedDetail:"Бұл сессияның кредиттері таусылды.",consentTitle:"Құпиялылық келісімі",consentBody:"Жалғастыру арқылы сіз деректеріңізді жинауға және өңдеуге келісім бересіз",consentAccept:"Қабылдау",consentDecline:"Қабылдамау",consentTermsLink:"Қызмет көрсету шарттары",consentPrivacyLink:"Құпиялылық саясаты",refresh:"Жаңарту",ratingQuestion:"Бұл әңгіме қалай өтті?",ratingThankYou:"Пікіріңіз үшін рахмет!",youEnded:"Әңгімені сіз аяқтадыңыз",agentEnded:"Агент әңгімені аяқтады",sessionIdLabel:"ID:",tellUsMore:"Бізге көбірек айтыңыз",feedbackSubtitle:"Пікіріңіз бізге қызметімізді жақсартуға және болашақта сізге жақсырақ қолдау көрсетуге көмектеседі.",feedbackPlaceholder:"Тәжірибеңіз туралы бізге көбірек айтыңыз…",submit:"Жіберу",leadFormTitle:"Байланыс ақпараты",leadFormSuccess:"Рахмет! Сіздің деректеріңіз жіберілді.",leadFormRequiredError:"Барлық міндетті жолдарды толтырыңыз.",leadFormGenericError:"Бірдеңе қате кетті. Қайталап көріңіз.",leadFormName:"Аты",leadFormEmail:"Электрондық пошта",leadFormPhone:"Телефон",leadFormMessage:"Сіздің хабарламаңыз",poweredBy:"Қолдаушы {brand}"},Vh={sendMessage:"메시지 보내기",send:"보내기",close:"닫기",minimize:"최소화",maximize:"최대화",call:"전화",listening:"듣는 중",processing:"처리 중",talkToInterrupt:"말해서 중단",startVoice:"음성 시작",stopVoice:"음성 중지",endCall:"통화 종료",openChat:"채팅 열기",connectionFailed:"연결 실패",retry:"다시 시도",loading:"로딩 중",creditsExhausted:"크레딧 소진",creditsExhaustedDetail:"이 세션의 크레딧이 모두 소진되었습니다.",consentTitle:"개인정보 동의",consentBody:"계속 진행하면 당사에 설명된 대로 데이터 수집 및 처리에 동의하게 됩니다.",consentAccept:"동의",consentDecline:"거부",consentTermsLink:"서비스 이용약관",consentPrivacyLink:"개인정보 처리방침",refresh:"새로고침",ratingQuestion:"이 대화는 어떠셨나요?",ratingThankYou:"의견 주셔서 감사합니다!",youEnded:"회원님이 대화를 종료했습니다",agentEnded:"상담원이 대화를 종료했습니다",sessionIdLabel:"ID:",tellUsMore:"더 알려주세요",feedbackSubtitle:"의견은 서비스를 개선하고 앞으로 더 나은 지원을 제공하는 데 도움이 됩니다.",feedbackPlaceholder:"경험에 대해 더 알려주세요…",submit:"제출",leadFormTitle:"연락처 정보",leadFormSuccess:"감사합니다! 정보가 제출되었습니다.",leadFormRequiredError:"필수 항목을 모두 입력해 주세요.",leadFormGenericError:"문제가 발생했습니다. 다시 시도해 주세요.",leadFormName:"이름",leadFormEmail:"이메일",leadFormPhone:"전화번호",leadFormMessage:"메시지",poweredBy:"제공: {brand}"},$h={sendMessage:"Sūtīt ziņojumu",send:"Sūtīt",close:"Aizvērt",minimize:"Minimizēt",maximize:"Maksimizēt",call:"Zvanīt",listening:"Klausās",processing:"Apstrādā",talkToInterrupt:"Runājiet, lai pārtrauktu",startVoice:"Sākt balsi",stopVoice:"Pārtraukt balsi",endCall:"Beigt zvanu",openChat:"Atvērt tērzēšanu",connectionFailed:"Savienojums neizdevās",retry:"Mēģināt vēlreiz",loading:"Ielādē",creditsExhausted:"Kredīti izsmelti",creditsExhaustedDetail:"Šīs sesijas kredīti ir izsmelti.",consentTitle:"Piekrišana privātumam",consentBody:"Turpinot, jūs piekrītat savu datu vākšanai un apstrādei, kā aprakstīts mūsu",consentAccept:"Piekrist",consentDecline:"Noraidīt",consentTermsLink:"Pakalpojuma noteikumi",consentPrivacyLink:"Privātuma politika",refresh:"Atjaunot",ratingQuestion:"Kāda bija šī saruna?",ratingThankYou:"Paldies par jūsu atsauksmi!",youEnded:"Jūs pabeidzāt sarunu",agentEnded:"Aģents pabeidza sarunu",sessionIdLabel:"ID:",tellUsMore:"Pastāstiet mums vairāk",feedbackSubtitle:"Jūsu atsauksme palīdz mums uzlabot pakalpojumu un nākotnē jūs labāk atbalstīt.",feedbackPlaceholder:"Pastāstiet mums vairāk par savu pieredzi…",submit:"Iesniegt",leadFormTitle:"Kontaktinformācija",leadFormSuccess:"Paldies! Jūsu dati ir iesniegti.",leadFormRequiredError:"Lūdzu, aizpildiet visus obligātos laukus.",leadFormGenericError:"Kaut kas noticis nepareizi. Lūdzu, mēģiniet vēlreiz.",leadFormName:"Vārds",leadFormEmail:"E-pasts",leadFormPhone:"Tālrunis",leadFormMessage:"Jūsu ziņojums",poweredBy:"Nodrošina {brand}"},Yh={sendMessage:"Siųsti žinutę",send:"Siųsti",close:"Uždaryti",minimize:"Sumažinti",maximize:"Padidinti",call:"Skambinti",listening:"Klausosi",processing:"Apdorojama",talkToInterrupt:"Kalbėkite, kad pertrauktumėte",startVoice:"Pradėti balsą",stopVoice:"Sustabdyti balsą",endCall:"Baigti skambutį",openChat:"Atidaryti pokalbį",connectionFailed:"Ryšys nepavyko",retry:"Bandyti dar kartą",loading:"Įkeliama",creditsExhausted:"Kreditai išnaudoti",creditsExhaustedDetail:"Šios sesijos kreditai išnaudoti.",consentTitle:"Sutikimas dėl privatumo",consentBody:"Tęsdami sutinkate, kad jūsų duomenys būtų renkami ir tvarkomi, kaip aprašyta mūsų",consentAccept:"Sutikti",consentDecline:"Atmesti",consentTermsLink:"Paslaugų teikimo sąlygos",consentPrivacyLink:"Privatumo politika",refresh:"Atnaujinti",ratingQuestion:"Kokie buvo šie pokalbiai?",ratingThankYou:"Ačiū už jūsų atsiliepimą!",youEnded:"Jūs užbaigėte pokalbį",agentEnded:"Agentas užbaigė pokalbį",sessionIdLabel:"ID:",tellUsMore:"Papasakokite daugiau",feedbackSubtitle:"Jūsų atsiliepimas padeda mums tobulinti paslaugą ir ateityje geriau jus aptarnauti.",feedbackPlaceholder:"Papasakokite daugiau apie savo patirtį…",submit:"Pateikti",leadFormTitle:"Kontaktinė informacija",leadFormSuccess:"Dėkojame! Jūsų duomenys buvo pateikti.",leadFormRequiredError:"Užpildykite visus privalomus laukus.",leadFormGenericError:"Kažkas nutiko negerai. Bandykite dar kartą.",leadFormName:"Vardas",leadFormEmail:"El. paštas",leadFormPhone:"Telefonas",leadFormMessage:"Jūsų žinutė",poweredBy:"Palaiko {brand}"},Gh={sendMessage:"Испрати порака",send:"Испрати",close:"Затвори",minimize:"Минимизирај",maximize:"Максимизирај",call:"Повикај",listening:"Слуша",processing:"Обработува",talkToInterrupt:"Зборувајте за прекинување",startVoice:"Започни глас",stopVoice:"Запри глас",endCall:"Заврши повик",openChat:"Отвори чет",connectionFailed:"Поврзувањето не успеа",retry:"Обиди се повторно",loading:"Се вчитува",creditsExhausted:"Кредитите се потрошени",creditsExhaustedDetail:"Кредитите на оваа сесија се потрошени.",consentTitle:"Согласност за приватност",consentBody:"Продолжувајќи, се согласувате со собирањето и обработката на вашите податоци како што е опишано во нашите",consentAccept:"Прифати",consentDecline:"Одбиј",consentTermsLink:"Услови за користење",consentPrivacyLink:"Политика за приватност",refresh:"Обнови",ratingQuestion:"Каков беше овој разговор?",ratingThankYou:"Ви благодариме за вашата повратна информација!",youEnded:"Вие го завршивте разговорот",agentEnded:"Агентот го заврши разговорот",sessionIdLabel:"ID:",tellUsMore:"Кажете ни повеќе",feedbackSubtitle:"Вашата повратна информација ни помага да ја подобриме услугата и подобро да ве поддржиме во иднина.",feedbackPlaceholder:"Кажете ни повеќе за вашето искуство…",submit:"Испрати",leadFormTitle:"Информации за контакт",leadFormSuccess:"Ви благодариме! Вашите податоци се испратени.",leadFormRequiredError:"Пополнете ги сите задолжителни полиња.",leadFormGenericError:"Нешто тргна наопаку. Пробајте повторно.",leadFormName:"Име",leadFormEmail:"Е-пошта",leadFormPhone:"Телефон",leadFormMessage:"Вашата порака",poweredBy:"Овозможено од {brand}"},Wh={sendMessage:"Hantar mesej",send:"Hantar",close:"Tutup",minimize:"Minimumkan",maximize:"Maksimumkan",call:"Panggil",listening:"Mendengar",processing:"Memproses",talkToInterrupt:"Bercakap untuk mengganggu",startVoice:"Mulakan suara",stopVoice:"Hentikan suara",endCall:"Tamatkan panggilan",openChat:"Buka sembang",connectionFailed:"Sambungan gagal",retry:"Cuba lagi",loading:"Memuatkan",creditsExhausted:"Kredit Habis",creditsExhaustedDetail:"Kredit sesi ini telah habis.",consentTitle:"Persetujuan Privasi",consentBody:"Dengan meneruskan, anda bersetuju dengan pengumpulan dan pemprosesan data anda seperti yang diterangkan dalam",consentAccept:"Terima",consentDecline:"Tolak",consentTermsLink:"Terma Perkhidmatan",consentPrivacyLink:"Dasar Privasi",refresh:"Muat semula",ratingQuestion:"Bagaimana perbualan ini?",ratingThankYou:"Terima kasih atas maklum balas anda!",youEnded:"Anda menamatkan perbualan",agentEnded:"Ejen menamatkan perbualan",sessionIdLabel:"ID:",tellUsMore:"Beritahu kami lebih lanjut",feedbackSubtitle:"Maklum balas anda membantu kami menambah baik perkhidmatan dan menyokong anda dengan lebih baik pada masa depan.",feedbackPlaceholder:"Beritahu kami lebih lanjut tentang pengalaman anda…",submit:"Hantar",leadFormTitle:"Maklumat hubungan",leadFormSuccess:"Terima kasih! Butiran anda telah dihantar.",leadFormRequiredError:"Sila isi semua ruangan yang diperlukan.",leadFormGenericError:"Sesuatu tidak kena. Sila cuba lagi.",leadFormName:"Nama",leadFormEmail:"E-mel",leadFormPhone:"Telefon",leadFormMessage:"Mesej anda",poweredBy:"Dikuasakan oleh {brand}"},Kh={sendMessage:"ഒരു സന്ദേശം അയയ്ക്കുക",send:"അയയ്ക്കുക",close:"അടയ്ക്കുക",minimize:"ചെറുതാക്കുക",maximize:"വലുതാക്കുക",call:"വിളിക്കുക",listening:"ശ്രദ്ധിക്കുന്നു",processing:"പ്രോസസ്സ് ചെയ്യുന്നു",talkToInterrupt:"തടസ്സപ്പെടുത്താൻ സംസാരിക്കുക",startVoice:"ശബ്ദം ആരംഭിക്കുക",stopVoice:"ശബ്ദം നിർത്തുക",endCall:"കോൾ അവസാനിപ്പിക്കുക",openChat:"ചാറ്റ് തുറക്കുക",connectionFailed:"കണക്ഷൻ പരാജയപ്പെട്ടു",retry:"വീണ്ടും ശ്രമിക്കുക",loading:"ലോഡുചെയ്യുന്നു",creditsExhausted:"ക്രെഡിറ്റുകൾ തീർന്നു",creditsExhaustedDetail:"ഈ സെഷന്റെ ക്രെഡിറ്റുകൾ തീർന്നിരിക്കുന്നു.",consentTitle:"സ്വകാര്യത സമ്മതം",consentBody:"തുടരുന്നതിലൂടെ, ഞങ്ങളിൽ വിവരിച്ചിരിക്കുന്ന പ്രകാരം നിങ്ങളുടെ ഡാറ്റ ശേഖരിക്കുന്നതിനും പ്രോസസ്സ് ചെയ്യുന്നതിനും നിങ്ങൾ സമ്മതിക്കുന്നു",consentAccept:"സ്വീകരിക്കുക",consentDecline:"നിരസിക്കുക",consentTermsLink:"സേവന നിബന്ധനകൾ",consentPrivacyLink:"സ്വകാര്യതാ നയം",refresh:"പുതുക്കുക",ratingQuestion:"ഈ സംഭാഷണം എങ്ങനെയായിരുന്നു?",ratingThankYou:"നിങ്ങളുടെ പ്രതികരണത്തിന് നന്ദി!",youEnded:"നിങ്ങൾ സംഭാഷണം അവസാനിപ്പിച്ചു",agentEnded:"ഏജന്റ് സംഭാഷണം അവസാനിപ്പിച്ചു",sessionIdLabel:"ID:",tellUsMore:"ഞങ്ങളോട് കൂടുതൽ പറയൂ",feedbackSubtitle:"നിങ്ങളുടെ പ്രതികരണം ഞങ്ങളുടെ സേവനം മെച്ചപ്പെടുത്താനും ഭാവിയിൽ നിങ്ങളെ മികച്ച രീതിയിൽ പിന്തുണയ്ക്കാനും സഹായിക്കുന്നു.",feedbackPlaceholder:"നിങ്ങളുടെ അനുഭവത്തെക്കുറിച്ച് കൂടുതൽ പറയൂ…",submit:"സമർപ്പിക്കുക",leadFormTitle:"ബന്ധപ്പെടാനുള്ള വിവരങ്ങൾ",leadFormSuccess:"നന്ദി! നിങ്ങളുടെ വിവരങ്ങൾ സമർപ്പിച്ചു.",leadFormRequiredError:"ദയവായി എല്ലാ ആവശ്യമായ ഫീൽഡുകളും പൂരിപ്പിക്കുക.",leadFormGenericError:"എന്തോ കുഴപ്പം സംഭവിച്ചു. വീണ്ടും ശ്രമിക്കുക.",leadFormName:"പേര്",leadFormEmail:"ഇമെയിൽ",leadFormPhone:"ഫോൺ",leadFormMessage:"നിങ്ങളുടെ സന്ദേശം",poweredBy:"നൽകുന്നത് {brand}"},Qh={sendMessage:"संदेश पाठवा",send:"पाठवा",close:"बंद करा",minimize:"लहान करा",maximize:"मोठे करा",call:"कॉल करा",listening:"ऐकत आहे",processing:"प्रक्रिया होत आहे",talkToInterrupt:"थांबवण्यासाठी बोला",startVoice:"व्हॉइस सुरू करा",stopVoice:"व्हॉइस थांबवा",endCall:"कॉल समाप्त करा",openChat:"चॅट उघडा",connectionFailed:"कनेक्शन अयशस्वी",retry:"पुन्हा प्रयत्न करा",loading:"लोड होत आहे",creditsExhausted:"क्रेडिट्स संपली",creditsExhaustedDetail:"या सत्राची क्रेडिट्स संपली आहेत.",consentTitle:"गोपनीयता संमती",consentBody:"पुढे जाऊन, आमच्यामध्ये वर्णन केल्याप्रमाणे तुम्ही तुमच्या डेटाच्या संकलन आणि प्रक्रियेस सहमती देता",consentAccept:"स्वीकारा",consentDecline:"नकार द्या",consentTermsLink:"सेवेच्या अटी",consentPrivacyLink:"गोपनीयता धोरण",refresh:"रिफ्रेश करा",ratingQuestion:"हे संभाषण कसे होते?",ratingThankYou:"तुमच्या अभिप्रायाबद्दल धन्यवाद!",youEnded:"तुम्ही संभाषण संपवले",agentEnded:"एजंटने संभाषण संपवले",sessionIdLabel:"ID:",tellUsMore:"आम्हाला अधिक सांगा",feedbackSubtitle:"तुमचा अभिप्राय आम्हाला आमची सेवा सुधारण्यात आणि भविष्यात तुम्हाला अधिक चांगली मदत करण्यात मदत करतो.",feedbackPlaceholder:"तुमच्या अनुभवाबद्दल आम्हाला अधिक सांगा…",submit:"सबमिट करा",leadFormTitle:"संपर्क माहिती",leadFormSuccess:"धन्यवाद! तुमची माहिती सबमिट केली आहे.",leadFormRequiredError:"कृपया सर्व आवश्यक फील्ड भरा.",leadFormGenericError:"काहीतरी चुकले. कृपया पुन्हा प्रयत्न करा.",leadFormName:"नाव",leadFormEmail:"ईमेल",leadFormPhone:"फोन",leadFormMessage:"तुमचा संदेश",poweredBy:"समर्थित {brand}"},Xh={sendMessage:"Send en melding",send:"Send",close:"Lukk",minimize:"Minimer",maximize:"Maksimer",call:"Ring",listening:"Lytter",processing:"Behandler",talkToInterrupt:"Snakk for å avbryte",startVoice:"Start tale",stopVoice:"Stopp tale",endCall:"Avslutt samtale",openChat:"Åpne chat",connectionFailed:"Tilkobling mislyktes",retry:"Prøv igjen",loading:"Laster",creditsExhausted:"Kreditter oppbrukt",creditsExhaustedDetail:"Denne øktens kreditter er oppbrukt.",consentTitle:"Personvernerklæring",consentBody:"Ved å fortsette godtar du innsamling og behandling av dataene dine som beskrevet i våre",consentAccept:"Godta",consentDecline:"Avslå",consentTermsLink:"Vilkår for bruk",consentPrivacyLink:"Personvernpolicy",refresh:"Oppdater",ratingQuestion:"Hvordan var denne samtalen?",ratingThankYou:"Takk for tilbakemeldingen din!",youEnded:"Du avsluttet samtalen",agentEnded:"Agenten avsluttet samtalen",sessionIdLabel:"ID:",tellUsMore:"Fortell oss mer",feedbackSubtitle:"Tilbakemeldingen din hjelper oss med å forbedre tjenesten og støtte deg bedre i fremtiden.",feedbackPlaceholder:"Fortell oss mer om opplevelsen din…",submit:"Send inn",leadFormTitle:"Kontaktinfo",leadFormSuccess:"Takk! Dine opplysninger er sendt.",leadFormRequiredError:"Fyll ut alle obligatoriske felt.",leadFormGenericError:"Noe gikk galt. Prøv igjen.",leadFormName:"Navn",leadFormEmail:"E-post",leadFormPhone:"Telefon",leadFormMessage:"Din melding",poweredBy:"Drevet av {brand}"},Zh={sendMessage:"پیامی بنویسید",send:"ارسال",close:"بستن",minimize:"کوچک کردن",maximize:"بزرگ کردن",call:"تماس بگیر",listening:"در حال شنیدن",processing:"در حال پردازش",talkToInterrupt:"برای قطع کردن صحبت کنید",startVoice:"شروع صدا",stopVoice:"توقف صدا",endCall:"پایان تماس",openChat:"باز کردن گفتگو",connectionFailed:"اتصال ناموفق بود",retry:"تلاش دوباره",loading:"در حال بارگذاری",creditsExhausted:"اعتبار تمام شد",creditsExhaustedDetail:"اعتبار این جلسه تمام شده است.",consentTitle:"رضایت حریم خصوصی",consentBody:"با ادامه، شما با جمعآوری و پردازش دادههای خود همانطور که در شرح داده شده است موافقت میکنید",consentAccept:"پذیرش",consentDecline:"رد",consentTermsLink:"شرایط خدمات",consentPrivacyLink:"سیاست حفظ حریم خصوصی",refresh:"بازنشانی",ratingQuestion:"این گفتگو چطور بود؟",ratingThankYou:"از بازخورد شما سپاسگزاریم!",youEnded:"شما گفتگو را پایان دادید",agentEnded:"دستیار گفتگو را پایان داد",sessionIdLabel:"شناسه:",tellUsMore:"بیشتر بگویید",feedbackSubtitle:"بازخورد شما به ما کمک میکند خدماتمان را بهبود دهیم و در آینده بهتر از شما پشتیبانی کنیم.",feedbackPlaceholder:"درباره تجربه خود بیشتر بگویید…",submit:"ارسال",leadFormTitle:"اطلاعات تماس",leadFormSuccess:"متشکریم! اطلاعات شما ارسال شد.",leadFormRequiredError:"لطفاً همه فیلدهای ضروری را تکمیل کنید.",leadFormGenericError:"مشکلی پیش آمد. لطفاً دوباره تلاش کنید.",leadFormName:"نام",leadFormEmail:"ایمیل",leadFormPhone:"تلفن",leadFormMessage:"پیام شما",poweredBy:"با پشتیبانی {brand}"},Jh={sendMessage:"Wyślij wiadomość",send:"Wyślij",close:"Zamknij",minimize:"Minimalizuj",maximize:"Maksymalizuj",call:"Zadzwoń",listening:"Słucha",processing:"Przetwarzanie",talkToInterrupt:"Mów, aby przerwać",startVoice:"Rozpocznij głos",stopVoice:"Zatrzymaj głos",endCall:"Zakończ połączenie",openChat:"Otwórz chat",connectionFailed:"Połączenie nieudane",retry:"Spróbuj ponownie",loading:"Ładowanie",creditsExhausted:"Kredyty wyczerpane",creditsExhaustedDetail:"Ta sesja wykorzystała wszystkie kredyty.",consentTitle:"Zgoda na prywatność",consentBody:"Kontynuując, wyrażasz zgodę na gromadzenie i przetwarzanie swoich danych, jak opisano w naszych",consentAccept:"Akceptuj",consentDecline:"Odrzuć",consentTermsLink:"Warunki korzystania z usługi",consentPrivacyLink:"Polityka prywatności",refresh:"Odśwież",ratingQuestion:"Jak przebiegła ta rozmowa?",ratingThankYou:"Dziękujemy za opinię!",youEnded:"To Ty zakończyłeś rozmowę",agentEnded:"Agent zakończył rozmowę",sessionIdLabel:"ID:",tellUsMore:"Powiedz nam więcej",feedbackSubtitle:"Twoja opinia pomaga nam ulepszać usługę i lepiej wspierać Cię w przyszłości.",feedbackPlaceholder:"Powiedz nam więcej o swoim doświadczeniu…",submit:"Wyślij",leadFormTitle:"Dane kontaktowe",leadFormSuccess:"Dziękujemy! Twoje dane zostały wysłane.",leadFormRequiredError:"Wypełnij wszystkie wymagane pola.",leadFormGenericError:"Coś poszło nie tak. Spróbuj ponownie.",leadFormName:"Imię",leadFormEmail:"E-mail",leadFormPhone:"Telefon",leadFormMessage:"Twoja wiadomość",poweredBy:"Obsługiwane przez {brand}"},em={sendMessage:"Enviar mensagem",send:"Enviar",close:"Fechar",minimize:"Minimizar",maximize:"Maximizar",call:"Ligar",listening:"Ouvindo",processing:"Processando",talkToInterrupt:"Fale para interromper",startVoice:"Iniciar voz",stopVoice:"Parar voz",endCall:"Encerrar chamada",openChat:"Abrir chat",connectionFailed:"Falha na conexão",retry:"Tentar novamente",loading:"Carregando",creditsExhausted:"Créditos esgotados",creditsExhaustedDetail:"Esta sessão esgotou os créditos.",consentTitle:"Consentimento de Privacidade",consentBody:"Ao prosseguir, você concorda com a coleta e o processamento dos seus dados conforme descrito em nossos",consentAccept:"Aceitar",consentDecline:"Recusar",consentTermsLink:"Termos de Serviço",consentPrivacyLink:"Política de Privacidade",refresh:"Atualizar",ratingQuestion:"Como foi esta conversa?",ratingThankYou:"Obrigado pelo seu feedback!",youEnded:"Você encerrou a conversa",agentEnded:"O agente encerrou a conversa",sessionIdLabel:"ID:",tellUsMore:"Conte-nos mais",feedbackSubtitle:"Seu feedback nos ajuda a melhorar nosso serviço e a apoiar você melhor no futuro.",feedbackPlaceholder:"Conte-nos mais sobre a sua experiência…",submit:"Enviar",leadFormTitle:"Informações de contacto",leadFormSuccess:"Obrigado! Os seus dados foram enviados.",leadFormRequiredError:"Preencha todos os campos obrigatórios.",leadFormGenericError:"Algo correu mal. Tente novamente.",leadFormName:"Nome",leadFormEmail:"E-mail",leadFormPhone:"Telefone",leadFormMessage:"Sua mensagem",poweredBy:"Desenvolvido por {brand}"},tm={sendMessage:"ਇੱਕ ਸੁਨੇਹਾ ਭੇਜੋ",send:"ਭੇਜੋ",close:"ਬੰਦ ਕਰੋ",minimize:"ਛੋਟਾ ਕਰੋ",maximize:"ਵੱਡਾ ਕਰੋ",call:"ਕਾਲ ਕਰੋ",listening:"ਸੁਣ ਰਿਹਾ ਹੈ",processing:"ਪ੍ਰਕਿਰਿਆ ਹੋ ਰਹੀ ਹੈ",talkToInterrupt:"ਰੋਕਣ ਲਈ ਬੋਲੋ",startVoice:"ਵੌਇਸ ਸ਼ੁਰੂ ਕਰੋ",stopVoice:"ਵੌਇਸ ਬੰਦ ਕਰੋ",endCall:"ਕਾਲ ਖਤਮ ਕਰੋ",openChat:"ਚੈਟ ਖੋਲ੍ਹੋ",connectionFailed:"ਕੁਨੈਕਸ਼ਨ ਅਸਫਲ",retry:"ਮੁੜ ਕੋਸ਼ਿਸ਼ ਕਰੋ",loading:"ਲੋਡ ਹੋ ਰਿਹਾ ਹੈ",creditsExhausted:"ਕ੍ਰੈਡਿਟ ਖਤਮ",creditsExhaustedDetail:"ਇਸ ਸੈਸ਼ਨ ਦੇ ਕ੍ਰੈਡਿਟ ਖਤਮ ਹੋ ਗਏ ਹਨ।",consentTitle:"ਗੋਪਨੀਯਤਾ ਸਹਿਮਤੀ",consentBody:"ਅੱਗੇ ਵਧਣ ਨਾਲ, ਤੁਸੀਂ ਸਾਡੇ ਵਿੱਚ ਦੱਸੇ ਅਨੁਸਾਰ ਆਪਣੇ ਡੇਟਾ ਦੇ ਸੰਗ੍ਰਹਿ ਅਤੇ ਪ੍ਰਕਿਰਿਆ ਲਈ ਸਹਿਮਤ ਹੁੰਦੇ ਹੋ",consentAccept:"ਸਵੀਕਾਰ ਕਰੋ",consentDecline:"ਅਸਵੀਕਾਰ ਕਰੋ",consentTermsLink:"ਸੇਵਾ ਦੀਆਂ ਸ਼ਰਤਾਂ",consentPrivacyLink:"ਗੋਪਨੀਯਤਾ ਨੀਤੀ",refresh:"ਰਿਫ੍ਰੈਸ਼ ਕਰੋ",ratingQuestion:"ਇਹ ਗੱਲਬਾਤ ਕਿਵੇਂ ਰਹੀ?",ratingThankYou:"ਤੁਹਾਡੇ ਸੁਝਾਅ ਲਈ ਧੰਨਵਾਦ!",youEnded:"ਤੁਸੀਂ ਗੱਲਬਾਤ ਖ਼ਤਮ ਕੀਤੀ",agentEnded:"ਏਜੰਟ ਨੇ ਗੱਲਬਾਤ ਖ਼ਤਮ ਕੀਤੀ",sessionIdLabel:"ID:",tellUsMore:"ਸਾਨੂੰ ਹੋਰ ਦੱਸੋ",feedbackSubtitle:"ਤੁਹਾਡਾ ਸੁਝਾਅ ਸਾਨੂੰ ਸਾਡੀ ਸੇਵਾ ਸੁਧਾਰਨ ਅਤੇ ਭਵਿੱਖ ਵਿੱਚ ਤੁਹਾਡੀ ਬਿਹਤਰ ਮਦਦ ਕਰਨ ਵਿੱਚ ਸਹਾਇਤਾ ਕਰਦਾ ਹੈ।",feedbackPlaceholder:"ਆਪਣੇ ਅਨੁਭਵ ਬਾਰੇ ਸਾਨੂੰ ਹੋਰ ਦੱਸੋ…",submit:"ਜਮ੍ਹਾਂ ਕਰੋ",leadFormTitle:"ਸੰਪਰਕ ਜਾਣਕਾਰੀ",leadFormSuccess:"ਧੰਨਵਾਦ! ਤੁਹਾਡੀ ਜਾਣਕਾਰੀ ਭੇਜ ਦਿੱਤੀ ਗਈ ਹੈ।",leadFormRequiredError:"ਕਿਰਪਾ ਕਰਕੇ ਸਾਰੇ ਲੋੜੀਂਦੇ ਖੇਤਰ ਭਰੋ।",leadFormGenericError:"ਕੁਝ ਗਲਤ ਹੋ ਗਿਆ। ਕਿਰਪਾ ਕਰਕੇ ਦੁਬਾਰਾ ਕੋਸ਼ਿਸ਼ ਕਰੋ।",leadFormName:"ਨਾਮ",leadFormEmail:"ਈਮੇਲ",leadFormPhone:"ਫ਼ੋਨ",leadFormMessage:"ਤੁਹਾਡਾ ਸੁਨੇਹਾ",poweredBy:"ਦੁਆਰਾ ਸੰਚਾਲਿਤ {brand}"},nm={sendMessage:"Trimite un mesaj",send:"Trimite",close:"Închide",minimize:"Minimizează",maximize:"Maximizează",call:"Apelează",listening:"Ascultă",processing:"Procesare",talkToInterrupt:"Vorbiți pentru a întrerupe",startVoice:"Pornește vocea",stopVoice:"Oprește vocea",endCall:"Încheie apelul",openChat:"Deschide chatul",connectionFailed:"Conexiune eșuată",retry:"Reîncercați",loading:"Se încarcă",creditsExhausted:"Credite epuizate",creditsExhaustedDetail:"Creditele acestei sesiuni s-au epuizat.",consentTitle:"Consimțământ pentru confidențialitate",consentBody:"Continuând, sunteți de acord cu colectarea și procesarea datelor dvs. așa cum este descris în",consentAccept:"Acceptă",consentDecline:"Respinge",consentTermsLink:"Termeni și condiții",consentPrivacyLink:"Politica de confidențialitate",refresh:"Reîmprospătează",ratingQuestion:"Cum a fost această conversație?",ratingThankYou:"Mulțumim pentru feedback!",youEnded:"Tu ai încheiat conversația",agentEnded:"Agentul a încheiat conversația",sessionIdLabel:"ID:",tellUsMore:"Spune-ne mai multe",feedbackSubtitle:"Feedbackul tău ne ajută să ne îmbunătățim serviciul și să te sprijinim mai bine în viitor.",feedbackPlaceholder:"Spune-ne mai multe despre experiența ta…",submit:"Trimite",leadFormTitle:"Informații de contact",leadFormSuccess:"Mulțumim! Datele dumneavoastră au fost trimise.",leadFormRequiredError:"Completați toate câmpurile obligatorii.",leadFormGenericError:"Ceva nu a funcționat. Încercați din nou.",leadFormName:"Nume",leadFormEmail:"E-mail",leadFormPhone:"Telefon",leadFormMessage:"Mesajul dumneavoastră",poweredBy:"Dezvoltat de {brand}"},rm={sendMessage:"Отправить сообщение",send:"Отправить",close:"Закрыть",minimize:"Свернуть",maximize:"Развернуть",call:"Позвонить",listening:"Слушает",processing:"Обработка",talkToInterrupt:"Говорите, чтобы прервать",startVoice:"Начать голос",stopVoice:"Остановить голос",endCall:"Завершить звонок",openChat:"Открыть чат",connectionFailed:"Ошибка подключения",retry:"Повторить",loading:"Загрузка",creditsExhausted:"Кредиты исчерпаны",creditsExhaustedDetail:"В этой сессии закончились кредиты.",consentTitle:"Согласие на обработку данных",consentBody:"Продолжая, вы соглашаетесь на сбор и обработку ваших данных, как описано в наших",consentAccept:"Принять",consentDecline:"Отклонить",consentTermsLink:"Условия обслуживания",consentPrivacyLink:"Политика конфиденциальности",refresh:"Обновить",ratingQuestion:"Как прошёл этот разговор?",ratingThankYou:"Спасибо за ваш отзыв!",youEnded:"Вы завершили разговор",agentEnded:"Агент завершил разговор",sessionIdLabel:"ID:",tellUsMore:"Расскажите подробнее",feedbackSubtitle:"Ваш отзыв помогает нам улучшать сервис и лучше поддерживать вас в будущем.",feedbackPlaceholder:"Расскажите подробнее о вашем опыте…",submit:"Отправить",leadFormTitle:"Контактная информация",leadFormSuccess:"Спасибо! Ваши данные отправлены.",leadFormRequiredError:"Заполните все обязательные поля.",leadFormGenericError:"Что-то пошло не так. Попробуйте снова.",leadFormName:"Имя",leadFormEmail:"Электронная почта",leadFormPhone:"Телефон",leadFormMessage:"Ваше сообщение",poweredBy:"Работает на {brand}"},am={sendMessage:"Пошаљи поруку",send:"Пошаљи",close:"Затвори",minimize:"Минимизуј",maximize:"Максимизуј",call:"Позови",listening:"Слуша",processing:"Обрађује",talkToInterrupt:"Говорите за прекидање",startVoice:"Покрени глас",stopVoice:"Заустави глас",endCall:"Заврши позив",openChat:"Отвори чет",connectionFailed:"Веза није успела",retry:"Покушај поново",loading:"Учитавање",creditsExhausted:"Кредити су потрошени",creditsExhaustedDetail:"Кредити ове сесије су потрошени.",consentTitle:"Пристанак на приватност",consentBody:"Наставком пристајете на прикупљање и обраду ваших података како је описано у нашим",consentAccept:"Прихвати",consentDecline:"Одбиј",consentTermsLink:"Услови коришћења",consentPrivacyLink:"Политика приватности",refresh:"Освежи",ratingQuestion:"Какав је био овај разговор?",ratingThankYou:"Хвала на повратним информацијама!",youEnded:"Ви сте завршили разговор",agentEnded:"Агент је завршио разговор",sessionIdLabel:"ID:",tellUsMore:"Реците нам више",feedbackSubtitle:"Ваше повратне информације нам помажу да побољшамо услугу и боље вас подржимо у будућности.",feedbackPlaceholder:"Реците нам више о свом искуству…",submit:"Пошаљи",leadFormTitle:"Контакт информације",leadFormSuccess:"Хвала! Ваши подаци су послати.",leadFormRequiredError:"Попуните сва обавезна поља.",leadFormGenericError:"Нешто је пошло по злу. Покушајте поново.",leadFormName:"Име",leadFormEmail:"Имејл",leadFormPhone:"Телефон",leadFormMessage:"Ваша порука",poweredBy:"Омогућио {brand}"},im={sendMessage:"Poslať správu",send:"Odoslať",close:"Zavrieť",minimize:"Minimalizovať",maximize:"Maximalizovať",call:"Volaj",listening:"Počúva",processing:"Spracováva",talkToInterrupt:"Hovorte pre prerušenie",startVoice:"Spustiť hlas",stopVoice:"Zastaviť hlas",endCall:"Ukončiť hovor",openChat:"Otvoriť chat",connectionFailed:"Pripojenie zlyhalo",retry:"Skúsiť znova",loading:"Načítava sa",creditsExhausted:"Kredity vyčerpané",creditsExhaustedDetail:"Kredity tejto relácie boli vyčerpané.",consentTitle:"Súhlas so súkromím",consentBody:"Pokračovaním súhlasíte so zhromažďovaním a spracovaním vašich údajov, ako je popísané v našich",consentAccept:"Prijať",consentDecline:"Odmietnuť",consentTermsLink:"Podmienky služby",consentPrivacyLink:"Zásady ochrany súkromia",refresh:"Obnoviť",ratingQuestion:"Aká bola táto konverzácia?",ratingThankYou:"Ďakujeme za vašu spätnú väzbu!",youEnded:"Konverzáciu ste ukončili vy",agentEnded:"Konverzáciu ukončil agent",sessionIdLabel:"ID:",tellUsMore:"Povedzte nám viac",feedbackSubtitle:"Vaša spätná väzba nám pomáha zlepšovať službu a lepšie vás v budúcnosti podporovať.",feedbackPlaceholder:"Povedzte nám viac o svojej skúsenosti…",submit:"Odoslať",leadFormTitle:"Kontaktné údaje",leadFormSuccess:"Ďakujeme! Vaše údaje boli odoslané.",leadFormRequiredError:"Vyplňte všetky povinné polia.",leadFormGenericError:"Niečo sa pokazilo. Skúste znova.",leadFormName:"Meno",leadFormEmail:"E-mail",leadFormPhone:"Telefón",leadFormMessage:"Vaša správa",poweredBy:"Poháňané systémom {brand}"},sm={sendMessage:"Pošlji sporočilo",send:"Pošlji",close:"Zapri",minimize:"Minimiziraj",maximize:"Maksimiziraj",call:"Pokliči",listening:"Posluša",processing:"Obdeluje",talkToInterrupt:"Govorite za prekinitev",startVoice:"Zaženi glas",stopVoice:"Ustavi glas",endCall:"Končaj klic",openChat:"Odpri klepet",connectionFailed:"Povezava ni uspela",retry:"Poskusi znova",loading:"Nalaganje",creditsExhausted:"Krediti so porabljeni",creditsExhaustedDetail:"Krediti te seje so porabljeni.",consentTitle:"Soglasje za zasebnost",consentBody:"Z nadaljevanjem se strinjate z zbiranjem in obdelavo vaših podatkov, kot je opisano v naših",consentAccept:"Sprejmi",consentDecline:"Zavrni",consentTermsLink:"Pogoji storitve",consentPrivacyLink:"Pravilnik o zasebnosti",refresh:"Osveži",ratingQuestion:"Kakšen je bil ta pogovor?",ratingThankYou:"Hvala za vaše mnenje!",youEnded:"Pogovor ste končali vi",agentEnded:"Agent je končal pogovor",sessionIdLabel:"ID:",tellUsMore:"Povejte nam več",feedbackSubtitle:"Vaše mnenje nam pomaga izboljšati storitev in vas v prihodnje bolje podpirati.",feedbackPlaceholder:"Povejte nam več o svoji izkušnji…",submit:"Pošlji",leadFormTitle:"Kontaktni podatki",leadFormSuccess:"Hvala! Vaši podatki so bili posredovani.",leadFormRequiredError:"Izpolnite vsa obvezna polja.",leadFormGenericError:"Nekaj je šlo narobe. Poskusite znova.",leadFormName:"Ime",leadFormEmail:"E-pošta",leadFormPhone:"Telefon",leadFormMessage:"Vaše sporočilo",poweredBy:"Poganja {brand}"},om={sendMessage:"Enviar un mensaje",send:"Enviar",close:"Cerrar",minimize:"Minimizar",maximize:"Maximizar",call:"Llamar",listening:"Escuchando",processing:"Procesando",talkToInterrupt:"Habla para interrumpir",startVoice:"Iniciar voz",stopVoice:"Detener voz",endCall:"Finalizar llamada",openChat:"Abrir chat",connectionFailed:"Error de conexión",retry:"Reintentar",loading:"Cargando",creditsExhausted:"Créditos agotados",creditsExhaustedDetail:"Esta sesión ha agotado sus créditos.",consentTitle:"Consentimiento de Privacidad",consentBody:"Al continuar, acepta la recopilación y el procesamiento de sus datos según se describe en nuestros",consentAccept:"Aceptar",consentDecline:"Rechazar",consentTermsLink:"Términos del servicio",consentPrivacyLink:"Política de privacidad",refresh:"Actualizar",ratingQuestion:"¿Qué tal esta conversación?",ratingThankYou:"¡Gracias por tus comentarios!",youEnded:"Tú finalizaste la conversación",agentEnded:"El agente finalizó la conversación",sessionIdLabel:"ID:",tellUsMore:"Cuéntanos más",feedbackSubtitle:"Tus comentarios nos ayudan a mejorar nuestro servicio y a apoyarte mejor en el futuro.",feedbackPlaceholder:"Cuéntanos más sobre tu experiencia…",submit:"Enviar",leadFormTitle:"Información de contacto",leadFormSuccess:"¡Gracias! Tus datos han sido enviados.",leadFormRequiredError:"Por favor completa todos los campos obligatorios.",leadFormGenericError:"Algo salió mal. Inténtalo de nuevo.",leadFormName:"Nombre",leadFormEmail:"Correo electrónico",leadFormPhone:"Teléfono",leadFormMessage:"Tu mensaje",poweredBy:"Desarrollado por {brand}"},lm={sendMessage:"Tuma ujumbe",send:"Tuma",close:"Funga",minimize:"Punguza",maximize:"Panua",call:"Piga simu",listening:"Anasikiliza",processing:"Inachakata",talkToInterrupt:"Ongea ili kukatiza",startVoice:"Anzisha sauti",stopVoice:"Simamisha sauti",endCall:"Maliza simu",openChat:"Fungua mazungumzo",connectionFailed:"Muunganisho umeshindwa",retry:"Jaribu tena",loading:"Inapakia",creditsExhausted:"Salio limeisha",creditsExhaustedDetail:"Salio la kikao hiki limeisha.",consentTitle:"Idhini ya Faragha",consentBody:"Kwa kuendelea, unakubali ukusanyaji na usindikaji wa data yako kama ilivyoelezwa katika",consentAccept:"Kubali",consentDecline:"Kataa",consentTermsLink:"Sheria na Masharti",consentPrivacyLink:"Sera ya Faragha",refresh:"Onyesha upya",ratingQuestion:"Mazungumzo haya yalikuwaje?",ratingThankYou:"Asante kwa maoni yako!",youEnded:"Wewe ulimaliza mazungumzo",agentEnded:"Wakala alimaliza mazungumzo",sessionIdLabel:"ID:",tellUsMore:"Tuambie zaidi",feedbackSubtitle:"Maoni yako yanatusaidia kuboresha huduma yetu na kukusaidia vizuri zaidi siku zijazo.",feedbackPlaceholder:"Tuambie zaidi kuhusu tajriba yako…",submit:"Wasilisha",leadFormTitle:"Maelezo ya mawasiliano",leadFormSuccess:"Asante! Maelezo yako yamewasilishwa.",leadFormRequiredError:"Tafadhali jaza sehemu zote zinazohitajika.",leadFormGenericError:"Hitilafu imetokea. Tafadhali jaribu tena.",leadFormName:"Jina",leadFormEmail:"Barua pepe",leadFormPhone:"Simu",leadFormMessage:"Ujumbe wako",poweredBy:"Inaendeshwa na {brand}"},um={sendMessage:"Skicka ett meddelande",send:"Skicka",close:"Stäng",minimize:"Minimera",maximize:"Maximera",call:"Ring",listening:"Lyssnar",processing:"Bearbetar",talkToInterrupt:"Prata för att avbryta",startVoice:"Starta röst",stopVoice:"Stoppa röst",endCall:"Avsluta samtal",openChat:"Öppna chatt",connectionFailed:"Anslutning misslyckades",retry:"Försök igen",loading:"Laddar",creditsExhausted:"Krediter slut",creditsExhaustedDetail:"Den här sessionens krediter är slut.",consentTitle:"Samtycke till integritet",consentBody:"Genom att fortsätta godkänner du insamling och behandling av dina uppgifter enligt vad som beskrivs i våra",consentAccept:"Godkänn",consentDecline:"Avvisa",consentTermsLink:"Användarvillkor",consentPrivacyLink:"Integritetspolicy",refresh:"Uppdatera",ratingQuestion:"Hur var det här samtalet?",ratingThankYou:"Tack för din feedback!",youEnded:"Du avslutade samtalet",agentEnded:"Agenten avslutade samtalet",sessionIdLabel:"ID:",tellUsMore:"Berätta mer",feedbackSubtitle:"Din feedback hjälper oss att förbättra vår tjänst och stötta dig bättre i framtiden.",feedbackPlaceholder:"Berätta mer om din upplevelse…",submit:"Skicka",leadFormTitle:"Kontaktinformation",leadFormSuccess:"Tack! Dina uppgifter har skickats.",leadFormRequiredError:"Fyll i alla obligatoriska fält.",leadFormGenericError:"Något gick fel. Försök igen.",leadFormName:"Namn",leadFormEmail:"E-post",leadFormPhone:"Telefon",leadFormMessage:"Ditt meddelande",poweredBy:"Drivs av {brand}"},cm={sendMessage:"Magpadala ng mensahe",send:"Ipadala",close:"Isara",minimize:"Minimize",maximize:"Maximize",call:"Tawag",listening:"Nakikinig",processing:"Pinoproseso",talkToInterrupt:"Magsalita para humadlang",startVoice:"Simulan ang boses",stopVoice:"Itigil ang boses",endCall:"Tapusin ang tawag",openChat:"Buksan ang chat",connectionFailed:"Nabigo ang koneksyon",retry:"Subukan muli",loading:"Naglo-load",creditsExhausted:"Naubos ang Kredito",creditsExhaustedDetail:"Naubos na ang mga kredito ng sesyong ito.",consentTitle:"Pahintulot sa Pagkapribado",consentBody:"Sa pamamagitan ng pagpapatuloy, sumasang-ayon ka sa pagkolekta at pagproseso ng iyong data tulad ng inilarawan sa aming",consentAccept:"Tanggapin",consentDecline:"Tanggihan",consentTermsLink:"Mga Tuntunin ng Serbisyo",consentPrivacyLink:"Patakaran sa Pagkapribado",refresh:"I-refresh",ratingQuestion:"Kumusta ang usapang ito?",ratingThankYou:"Salamat sa iyong feedback!",youEnded:"Ikaw ang nagtapos ng usapan",agentEnded:"Tinapos ng ahente ang usapan",sessionIdLabel:"ID:",tellUsMore:"Magkuwento pa",feedbackSubtitle:"Nakakatulong ang iyong feedback para mapahusay ang aming serbisyo at masuportahan ka nang mas mabuti sa hinaharap.",feedbackPlaceholder:"Magkuwento pa tungkol sa iyong karanasan…",submit:"Ipasa",leadFormTitle:"Impormasyon ng contact",leadFormSuccess:"Salamat! Naisumite na ang iyong mga detalye.",leadFormRequiredError:"Pakipunan ang lahat ng kinakailangang field.",leadFormGenericError:"Nagkaroon ng problema. Pakisubukan ulit.",leadFormName:"Pangalan",leadFormEmail:"Email",leadFormPhone:"Telepono",leadFormMessage:"Ang iyong mensahe",poweredBy:"Pinapagana ng {brand}"},dm={sendMessage:"ஒரு செய்தி அனுப்பவும்",send:"அனுப்பு",close:"மூடு",minimize:"சிறியதாக்கு",maximize:"பெரியதாக்கு",call:"அழை",listening:"கேட்கிறது",processing:"செயலாக்குகிறது",talkToInterrupt:"தடுக்க பேசவும்",startVoice:"குரலைத் தொடங்கு",stopVoice:"குரலை நிறுத்து",endCall:"அழைப்பை முடி",openChat:"அரட்டையைத் திற",connectionFailed:"இணைப்பு தோல்வியடைந்தது",retry:"மீண்டும் முயற்சி செய்",loading:"ஏற்றுகிறது",creditsExhausted:"கிரெடிட்கள் தீர்ந்துவிட்டன",creditsExhaustedDetail:"இந்த அமர்வின் கிரெடிட்கள் தீர்ந்துவிட்டன.",consentTitle:"தனியுரிமை ஒப்புதல்",consentBody:"தொடர்வதன் மூலம், எங்களில் விவரிக்கப்பட்டுள்ளபடி உங்கள் தரவு சேகரிப்பு மற்றும் செயலாக்கத்திற்கு நீங்கள் ஒப்புக்கொள்கிறீர்கள்",consentAccept:"ஏற்க",consentDecline:"நிராகரி",consentTermsLink:"சேவை விதிமுறைகள்",consentPrivacyLink:"தனியுரிமைக் கொள்கை",refresh:"புதுப்பி",ratingQuestion:"இந்த உரையாடல் எப்படி இருந்தது?",ratingThankYou:"உங்கள் கருத்துக்கு நன்றி!",youEnded:"நீங்கள் உரையாடலை முடித்தீர்கள்",agentEnded:"முகவர் உரையாடலை முடித்தார்",sessionIdLabel:"ID:",tellUsMore:"மேலும் சொல்லுங்கள்",feedbackSubtitle:"உங்கள் கருத்து எங்கள் சேவையை மேம்படுத்தவும் எதிர்காலத்தில் உங்களை சிறப்பாக ஆதரிக்கவும் உதவுகிறது.",feedbackPlaceholder:"உங்கள் அனுபவம் குறித்து மேலும் சொல்லுங்கள்…",submit:"சமர்ப்பிக்கவும்",leadFormTitle:"தொடர்பு தகவல்",leadFormSuccess:"நன்றி! உங்கள் விவரங்கள் சமர்ப்பிக்கப்பட்டன.",leadFormRequiredError:"தேவையான அனைத்து புலங்களையும் நிரப்பவும்.",leadFormGenericError:"ஏதோ தவறு ஏற்பட்டது. மீண்டும் முயற்சிக்கவும்.",leadFormName:"பெயர்",leadFormEmail:"மின்னஞ்சல்",leadFormPhone:"தொலைபேசி",leadFormMessage:"உங்கள் செய்தி",poweredBy:"இயக்குபவர் {brand}"},hm={sendMessage:"సందేశం పంపండి",send:"పంపు",close:"మూసివేయండి",minimize:"చిన్నదిగా చేయి",maximize:"పెద్దదిగా చేయి",call:"కాల్ చేయండి",listening:"వింటోంది",processing:"ప్రాసెస్ చేస్తోంది",talkToInterrupt:"అంతరాయం కలిగించడానికి మాట్లాడండి",startVoice:"వాయిస్ ప్రారంభించండి",stopVoice:"వాయిస్ ఆపండి",endCall:"కాల్ను ముగించండి",openChat:"చాట్ తెరవండి",connectionFailed:"కనెక్షన్ విఫలమైంది",retry:"మళ్లీ ప్రయత్నించండి",loading:"లోడ్ అవుతోంది",creditsExhausted:"క్రెడిట్లు ముగిశాయి",creditsExhaustedDetail:"ఈ సెషన్ యొక్క క్రెడిట్లు ముగిశాయి.",consentTitle:"గోప్యతా సమ్మతి",consentBody:"కొనసాగించడం ద్వారా, మాలో వివరించిన విధంగా మీ డేటా సేకరణ మరియు ప్రాసెసింగ్కు మీరు అంగీకరిస్తున్నారు",consentAccept:"అంగీకరించు",consentDecline:"తిరస్కరించు",consentTermsLink:"సేవా నిబంధనలు",consentPrivacyLink:"గోప్యతా విధానం",refresh:"రిఫ్రెష్ చేయండి",ratingQuestion:"ఈ సంభాషణ ఎలా ఉంది?",ratingThankYou:"మీ అభిప్రాయానికి ధన్యవాదాలు!",youEnded:"మీరు సంభాషణను ముగించారు",agentEnded:"ఏజెంట్ సంభాషణను ముగించారు",sessionIdLabel:"ID:",tellUsMore:"మాకు మరింత చెప్పండి",feedbackSubtitle:"మీ అభిప్రాయం మా సేవను మెరుగుపరచడానికి మరియు భవిష్యత్తులో మిమ్మల్ని మెరుగ్గా మద్దతు ఇవ్వడానికి సహాయపడుతుంది.",feedbackPlaceholder:"మీ అనుభవం గురించి మాకు మరింత చెప్పండి…",submit:"సమర్పించండి",leadFormTitle:"సంప్రదింపు సమాచారం",leadFormSuccess:"ధన్యవాదాలు! మీ వివరాలు సమర్పించబడ్డాయి.",leadFormRequiredError:"దయచేసి అన్ని అవసరమైన ఫీల్డ్లను నింపండి.",leadFormGenericError:"ఏదో తప్పు జరిగింది. దయచేసి మళ్లీ ప్రయత్నించండి.",leadFormName:"పేరు",leadFormEmail:"ఇమెయిల్",leadFormPhone:"ఫోన్",leadFormMessage:"మీ సందేశం",poweredBy:"అందించేవారు {brand}"},mm={sendMessage:"ส่งข้อความ",send:"ส่ง",close:"ปิด",minimize:"ย่อ",maximize:"ขยาย",call:"โทร",listening:"กำลังฟัง",processing:"กำลังประมวลผล",talkToInterrupt:"พูดเพื่อขัดจังหวะ",startVoice:"เริ่มเสียง",stopVoice:"หยุดเสียง",endCall:"วางสาย",openChat:"เปิดแชท",connectionFailed:"การเชื่อมต่อล้มเหลว",retry:"ลองอีกครั้ง",loading:"กำลังโหลด",creditsExhausted:"เครดิตหมด",creditsExhaustedDetail:"เครดิตของเซสชันนี้หมดแล้ว",consentTitle:"ความยินยอมด้านความเป็นส่วนตัว",consentBody:"โดยดำเนินการต่อ คุณยินยอมให้มีการรวบรวมและประมวลผลข้อมูลของคุณตามที่อธิบายไว้ใน",consentAccept:"ยอมรับ",consentDecline:"ปฏิเสธ",consentTermsLink:"ข้อกำหนดในการให้บริการ",consentPrivacyLink:"นโยบายความเป็นส่วนตัว",refresh:"รีเฟรช",ratingQuestion:"การสนทนานี้เป็นอย่างไรบ้าง?",ratingThankYou:"ขอบคุณสำหรับความคิดเห็นของคุณ!",youEnded:"คุณเป็นผู้จบการสนทนา",agentEnded:"ตัวแทนจบการสนทนา",sessionIdLabel:"ID:",tellUsMore:"บอกเราเพิ่มเติม",feedbackSubtitle:"ความคิดเห็นของคุณช่วยให้เราปรับปรุงบริการและสนับสนุนคุณได้ดียิ่งขึ้นในอนาคต",feedbackPlaceholder:"บอกเราเพิ่มเติมเกี่ยวกับประสบการณ์ของคุณ…",submit:"ส่ง",leadFormTitle:"ข้อมูลติดต่อ",leadFormSuccess:"ขอบคุณ! ข้อมูลของคุณถูกส่งแล้ว",leadFormRequiredError:"กรุณากรอกข้อมูลในช่องที่จำเป็นทั้งหมด",leadFormGenericError:"เกิดข้อผิดพลาด กรุณาลองใหม่อีกครั้ง",leadFormName:"ชื่อ",leadFormEmail:"อีเมล",leadFormPhone:"โทรศัพท์",leadFormMessage:"ข้อความของคุณ",poweredBy:"ขับเคลื่อนโดย {brand}"},fm={sendMessage:"Mesaj gönder",send:"Gönder",close:"Kapat",minimize:"Küçült",maximize:"Büyüt",call:"Ara",listening:"Dinliyor",processing:"İşleniyor",talkToInterrupt:"Kesmek için konuşun",startVoice:"Sesi başlat",stopVoice:"Sesi durdur",endCall:"Aramayı bitir",openChat:"Sohbeti aç",connectionFailed:"Bağlantı başarısız",retry:"Tekrar dene",loading:"Yükleniyor",creditsExhausted:"Krediler Tükendi",creditsExhaustedDetail:"Bu oturumun kredileri tükendi.",consentTitle:"Gizlilik Onayı",consentBody:"Devam ederek, verilerinizin toplanması ve işlenmesini kabul etmiş olursunuz",consentAccept:"Kabul Et",consentDecline:"Reddet",consentTermsLink:"Hizmet Şartları",consentPrivacyLink:"Gizlilik Politikası",refresh:"Yenile",ratingQuestion:"Bu görüşme nasıldı?",ratingThankYou:"Geri bildiriminiz için teşekkürler!",youEnded:"Görüşmeyi siz sonlandırdınız",agentEnded:"Görüşmeyi temsilci sonlandırdı",sessionIdLabel:"ID:",tellUsMore:"Bize daha fazla anlatın",feedbackSubtitle:"Geri bildiriminiz hizmetimizi geliştirmemize ve gelecekte size daha iyi destek olmamıza yardımcı olur.",feedbackPlaceholder:"Deneyiminiz hakkında bize daha fazla anlatın…",submit:"Gönder",leadFormTitle:"İletişim bilgileri",leadFormSuccess:"Teşekkürler! Bilgileriniz gönderildi.",leadFormRequiredError:"Lütfen tüm zorunlu alanları doldurun.",leadFormGenericError:"Bir sorun oluştu. Lütfen tekrar deneyin.",leadFormName:"Ad",leadFormEmail:"E-posta",leadFormPhone:"Telefon",leadFormMessage:"Mesajınız",poweredBy:"Destekleyen: {brand}"},pm={sendMessage:"Надіслати повідомлення",send:"Надіслати",close:"Закрити",minimize:"Згорнути",maximize:"Розгорнути",call:"Зателефонувати",listening:"Слухає",processing:"Обробка",talkToInterrupt:"Говоріть, щоб перервати",startVoice:"Запустити голос",stopVoice:"Зупинити голос",endCall:"Завершити дзвінок",openChat:"Відкрити чат",connectionFailed:"Помилка підключення",retry:"Повторити",loading:"Завантаження",creditsExhausted:"Кредити вичерпано",creditsExhaustedDetail:"Кредити цієї сесії вичерпано.",consentTitle:"Згода на обробку даних",consentBody:"Продовжуючи, ви погоджуєтеся на збір та обробку ваших даних, як описано в наших",consentAccept:"Прийняти",consentDecline:"Відхилити",consentTermsLink:"Умови обслуговування",consentPrivacyLink:"Політика конфіденційності",refresh:"Оновити",ratingQuestion:"Якою була ця розмова?",ratingThankYou:"Дякуємо за ваш відгук!",youEnded:"Ви завершили розмову",agentEnded:"Агент завершив розмову",sessionIdLabel:"ID:",tellUsMore:"Розкажіть докладніше",feedbackSubtitle:"Ваш відгук допомагає нам покращувати сервіс і краще підтримувати вас у майбутньому.",feedbackPlaceholder:"Розкажіть докладніше про ваш досвід…",submit:"Надіслати",leadFormTitle:"Контактна інформація",leadFormSuccess:"Дякуємо! Ваші дані відправлено.",leadFormRequiredError:"Будь ласка, заповніть усі обов’язкові поля.",leadFormGenericError:"Щось пішло не так. Спробуйте ще раз.",leadFormName:"Ім’я",leadFormEmail:"Електронна пошта",leadFormPhone:"Телефон",leadFormMessage:"Ваше повідомлення",poweredBy:"Працює на базі {brand}"},gm={sendMessage:"پیغام بھیجیں",send:"بھیجیں",close:"بند کریں",minimize:"چھوٹا کریں",maximize:"بڑا کریں",call:"کال کریں",listening:"سن رہا ہے",processing:"پروسیسنگ",talkToInterrupt:"روکنے کے لیے بولیں",startVoice:"آواز شروع کریں",stopVoice:"آواز بند کریں",endCall:"کال ختم کریں",openChat:"چیٹ کھولیں",connectionFailed:"کنکشن ناکام",retry:"دوبارہ کوشش کریں",loading:"لوڈ ہو رہا ہے",creditsExhausted:"کریڈٹس ختم",creditsExhaustedDetail:"اس سیشن کے کریڈٹس ختم ہو گئے ہیں۔",consentTitle:"رازداری کی رضامندی",consentBody:"آگے بڑھ کر، آپ اپنے ڈیٹا کی جمع آوری اور پروسیسنگ سے اتفاق کرتے ہیں جیسا کہ ہماری میں بیان کیا گیا ہے",consentAccept:"قبول کریں",consentDecline:"مسترد کریں",consentTermsLink:"خدمات کی شرائط",consentPrivacyLink:"رازداری کی پالیسی",refresh:"ریفریش کریں",ratingQuestion:"یہ گفتگو کیسی رہی؟",ratingThankYou:"آپ کی رائے کا شکریہ!",youEnded:"آپ نے گفتگو ختم کی",agentEnded:"ایجنٹ نے گفتگو ختم کی",sessionIdLabel:"شناخت:",tellUsMore:"مزید بتائیں",feedbackSubtitle:"آپ کی رائے ہمیں اپنی خدمات بہتر بنانے اور مستقبل میں آپ کی بہتر مدد کرنے میں مدد دیتی ہے۔",feedbackPlaceholder:"اپنے تجربے کے بارے میں مزید بتائیں…",submit:"جمع کرائیں",leadFormTitle:"رابطہ کی معلومات",leadFormSuccess:"شکریہ! آپ کی تفصیلات جمع کر دی گئی ہیں۔",leadFormRequiredError:"براہ کرم تمام ضروری خانے پُر کریں۔",leadFormGenericError:"کچھ غلط ہو گیا۔ براہ کرم دوبارہ کوشش کریں۔",leadFormName:"نام",leadFormEmail:"ای میل",leadFormPhone:"فون",leadFormMessage:"آپ کا پیغام",poweredBy:"بذریعہ {brand}"},bm={sendMessage:"Gửi tin nhắn",send:"Gửi",close:"Đóng",minimize:"Thu nhỏ",maximize:"Phóng to",call:"Gọi",listening:"Đang nghe",processing:"Đang xử lý",talkToInterrupt:"Nói để ngắt",startVoice:"Bắt đầu giọng nói",stopVoice:"Dừng giọng nói",endCall:"Kết thúc cuộc gọi",openChat:"Mở trò chuyện",connectionFailed:"Kết nối thất bại",retry:"Thử lại",loading:"Đang tải",creditsExhausted:"Đã hết tín dụng",creditsExhaustedDetail:"Tín dụng của phiên này đã hết.",consentTitle:"Đồng ý về Quyền riêng tư",consentBody:"Bằng cách tiếp tục, bạn đồng ý với việc thu thập và xử lý dữ liệu của bạn như được mô tả trong",consentAccept:"Chấp nhận",consentDecline:"Từ chối",consentTermsLink:"Điều khoản Dịch vụ",consentPrivacyLink:"Chính sách Bảo mật",refresh:"Làm mới",ratingQuestion:"Cuộc trò chuyện này thế nào?",ratingThankYou:"Cảm ơn phản hồi của bạn!",youEnded:"Bạn đã kết thúc cuộc trò chuyện",agentEnded:"Trợ lý đã kết thúc cuộc trò chuyện",sessionIdLabel:"ID:",tellUsMore:"Cho chúng tôi biết thêm",feedbackSubtitle:"Phản hồi của bạn giúp chúng tôi cải thiện dịch vụ và hỗ trợ bạn tốt hơn trong tương lai.",feedbackPlaceholder:"Cho chúng tôi biết thêm về trải nghiệm của bạn…",submit:"Gửi",leadFormTitle:"Thông tin liên hệ",leadFormSuccess:"Cảm ơn! Thông tin của bạn đã được gửi.",leadFormRequiredError:"Vui lòng điền vào tất cả các trường bắt buộc.",leadFormGenericError:"Đã xảy ra lỗi. Vui lòng thử lại.",leadFormName:"Tên",leadFormEmail:"Email",leadFormPhone:"Điện thoại",leadFormMessage:"Tin nhắn của bạn",poweredBy:"Được cung cấp bởi {brand}"},Em={sendMessage:"Anfon neges",send:"Anfon",close:"Cau",minimize:"Lleihau",maximize:"Mwyhau",call:"Galw",listening:"Gwrando",processing:"Prosesu",talkToInterrupt:"Siaradwch i dorri ar draws",startVoice:"Dechrau llais",stopVoice:"Stopio llais",endCall:"Diweddu galwad",openChat:"Agor sgwrs",connectionFailed:"Methwyd cysylltu",retry:"Ceisio eto",loading:"Llwytho",creditsExhausted:"Credydau wedi dod i ben",creditsExhaustedDetail:"Mae credydau'r sesiwn hon wedi dod i ben.",consentTitle:"Cydsyniad Preifatrwydd",consentBody:"Drwy fynd ymlaen, rydych yn cytuno i gasglu a phrosesu eich data fel y disgrifir yn ein",consentAccept:"Derbyn",consentDecline:"Gwrthod",consentTermsLink:"Telerau Gwasanaeth",consentPrivacyLink:"Polisi Preifatrwydd",refresh:"Adnewyddu",ratingQuestion:"Sut oedd y sgwrs hon?",ratingThankYou:"Diolch am eich adborth!",youEnded:"Chi ddaeth â’r sgwrs i ben",agentEnded:"Daeth yr asiant â’r sgwrs i ben",sessionIdLabel:"ID:",tellUsMore:"Dywedwch fwy wrthym",feedbackSubtitle:"Mae eich adborth yn ein helpu i wella ein gwasanaeth a’ch cefnogi’n well yn y dyfodol.",feedbackPlaceholder:"Dywedwch fwy wrthym am eich profiad…",submit:"Cyflwyno",leadFormTitle:"Manylion cyswllt",leadFormSuccess:"Diolch! Mae eich manylion wedi cael eu cyflwyno.",leadFormRequiredError:"Llenwch bob maes gofynnol.",leadFormGenericError:"Aeth rhywbeth o chwith. Rhowch gynnig arall arni.",leadFormName:"Enw",leadFormEmail:"E-bost",leadFormPhone:"Ffôn",leadFormMessage:"Eich neges",poweredBy:"Wedi'i bweru gan {brand}"},fs={af:mh,sq:fh,"ar-eg":ph,"ar-sa":gh,az:bh,eu:Eh,be:Th,bn:kh,bs:xh,bg:yh,ca:Ah,zh:Ch,hr:_h,cs:wh,da:Sh,nl:Ih,en:vh,et:Nh,fi:Lh,fr:Rh,gl:Dh,de:Ph,el:Oh,gu:Mh,hi:Fh,hu:Bh,id:zh,it:jh,ja:Hh,kn:Uh,kk:qh,ko:Vh,lv:$h,lt:Yh,mk:Gh,ms:Wh,ml:Kh,mr:Qh,no:Xh,fa:Zh,pl:Jh,pt:em,pa:tm,ro:nm,ru:rm,sr:am,sk:im,sl:sm,es:om,sw:lm,sv:um,tl:cm,ta:dm,te:hm,th:mm,tr:fm,uk:pm,ur:gm,vi:bm,cy:Em},Sr=[{value:"af",label:"Afrikaans",dir:"ltr"},{value:"sq",label:"Shqip",dir:"ltr"},{value:"ar-eg",label:"العربية (مصر)",dir:"rtl"},{value:"ar-sa",label:"العربية (السعودية)",dir:"rtl"},{value:"az",label:"Azərbaycan",dir:"ltr"},{value:"eu",label:"Euskara",dir:"ltr"},{value:"be",label:"Беларуская",dir:"ltr"},{value:"bn",label:"বাংলা",dir:"ltr"},{value:"bs",label:"Bosanski",dir:"ltr"},{value:"bg",label:"Български",dir:"ltr"},{value:"ca",label:"Català",dir:"ltr"},{value:"zh",label:"中文",dir:"ltr"},{value:"hr",label:"Hrvatski",dir:"ltr"},{value:"cs",label:"Čeština",dir:"ltr"},{value:"da",label:"Dansk",dir:"ltr"},{value:"nl",label:"Nederlands",dir:"ltr"},{value:"en",label:"English",dir:"ltr"},{value:"et",label:"Eesti",dir:"ltr"},{value:"fi",label:"Suomi",dir:"ltr"},{value:"fr",label:"Français",dir:"ltr"},{value:"gl",label:"Galego",dir:"ltr"},{value:"de",label:"Deutsch",dir:"ltr"},{value:"el",label:"Ελληνικά",dir:"ltr"},{value:"gu",label:"ગુજરાતી",dir:"ltr"},{value:"hi",label:"हिन्दी",dir:"ltr"},{value:"hu",label:"Magyar",dir:"ltr"},{value:"id",label:"Bahasa Indonesia",dir:"ltr"},{value:"it",label:"Italiano",dir:"ltr"},{value:"ja",label:"日本語",dir:"ltr"},{value:"kn",label:"ಕನ್ನಡ",dir:"ltr"},{value:"kk",label:"Қазақша",dir:"ltr"},{value:"ko",label:"한국어",dir:"ltr"},{value:"lv",label:"Latviešu",dir:"ltr"},{value:"lt",label:"Lietuvių",dir:"ltr"},{value:"mk",label:"Македонски",dir:"ltr"},{value:"ms",label:"Bahasa Melayu",dir:"ltr"},{value:"ml",label:"മലയാളം",dir:"ltr"},{value:"mr",label:"मराठी",dir:"ltr"},{value:"no",label:"Norsk",dir:"ltr"},{value:"fa",label:"فارسی",dir:"rtl"},{value:"pl",label:"Polski",dir:"ltr"},{value:"pt",label:"Português",dir:"ltr"},{value:"pa",label:"ਪੰਜਾਬੀ",dir:"ltr"},{value:"ro",label:"Română",dir:"ltr"},{value:"ru",label:"Русский",dir:"ltr"},{value:"sr",label:"Српски",dir:"ltr"},{value:"sk",label:"Slovenčina",dir:"ltr"},{value:"sl",label:"Slovenščina",dir:"ltr"},{value:"es",label:"Español",dir:"ltr"},{value:"sw",label:"Kiswahili",dir:"ltr"},{value:"sv",label:"Svenska",dir:"ltr"},{value:"tl",label:"Tagalog",dir:"ltr"},{value:"ta",label:"தமிழ்",dir:"ltr"},{value:"te",label:"తెలుగు",dir:"ltr"},{value:"th",label:"ไทย",dir:"ltr"},{value:"tr",label:"Türkçe",dir:"ltr"},{value:"uk",label:"Українська",dir:"ltr"},{value:"ur",label:"اردو",dir:"rtl"},{value:"vi",label:"Tiếng Việt",dir:"ltr"},{value:"cy",label:"Cymraeg",dir:"ltr"}],Oa=Sr.map(e=>e.value);function Ma(e){return Sr.find(t=>t.value===e)||Sr.find(t=>t.value==="en")}function te(e,t){return fs[e]?.[t]||fs.en[t]||t}function En(e,t="en"){const n=Array.isArray(e)?e.filter(r=>Oa.includes(r)):[];return!n.includes(t)&&Oa.includes(t)&&n.unshift(t),n.length?[...new Set(n)]:["ar-sa"]}const ps={id:null,name:"Agent",agentType:Te.AGENT_TYPES.TEXT,useText:!0,useVoice:!1,faceImage:null,languages:["ar-sa"],defaultLanguage:"ar-sa",allowInterrupt:!0,allowWelcomeMessageInterrupt:!1,welcomeMessages:{},conversation:{default_language:"ar-sa",languages:["ar-sa"],suggested_messages:{}},widget:{appearance:{position:"right",show_branding:!0,show_topbar_avatar_image:!0,font:"Cairo",footer_content:{},theme:{mode:"dark",accent_color:null,end_call_button_color:null}},behavior:{default_open:!1,conversation_ended_screen:{post_chat_rating_enabled:!1,show_conversation_id:!0},welcome_bubble:{enabled:!1,delay_seconds:3,sound_enabled:!1},typing_indicator_enabled:!0,suggested_messages:{}},consent:{enabled:!1,one_time:!0,content:{}}}};function fn(e){if(!e)return ps;const t=e,n=t.agent_type||t.agentType||Te.AGENT_TYPES.TEXT,r=typeof t.use_text=="boolean"?t.use_text:typeof t.useText=="boolean"?t.useText:n!==Te.AGENT_TYPES.VOICE,a=typeof t.use_voice=="boolean"?t.use_voice:typeof t.useVoice=="boolean"?t.useVoice:n===Te.AGENT_TYPES.TEXT_AND_VOICE||n===Te.AGENT_TYPES.CLOUD_AVATAR||n===Te.AGENT_TYPES.DESKTOP_AVATAR,i=t.conversation||t.agent_customization?.conversation||{},s=t.speech||t.agent_customization?.speech||{},o=i.default_language||"ar-sa",l=En(i.languages,o),u=t.widget||t.agent_customization?.widget||t.widget_customization||null,d=u?.appearance,h=u?.behavior,p=u,f=typeof d?.hide_branding=="boolean"?!d.hide_branding:typeof d?.show_branding=="boolean"?d.show_branding:!0,g=typeof d?.show_topbar_avatar_image=="boolean"?d.show_topbar_avatar_image:typeof d?.showTopbarAvatarImage=="boolean"?d.showTopbarAvatarImage:typeof u?.show_topbar_avatar_image=="boolean"?u.show_topbar_avatar_image:typeof u?.showTopbarAvatarImage=="boolean"?u.showTopbarAvatarImage:typeof t.show_topbar_avatar_image=="boolean"?t.show_topbar_avatar_image:typeof t.showTopbarAvatarImage=="boolean"?t.showTopbarAvatarImage:!0,y=h?.suggested_messages||u?.suggested_messages||i.suggested_messages||i.suggestedMessages||{},w=typeof h?.default_open=="boolean"?h.default_open:typeof h?.defaultOpen=="boolean"?h.defaultOpen:typeof u?.default_open=="boolean"?u.default_open:typeof u?.defaultOpen=="boolean"?u.defaultOpen:typeof t.default_open=="boolean"?t.default_open:typeof t.defaultOpen=="boolean"?t.defaultOpen:!1,x=typeof d?.font=="string"?d.font:typeof u?.font=="string"?u.font:typeof t.font=="string"?t.font:"Cairo",_=(()=>{const T=(x||"").trim().toLowerCase().replace(/[-_]/g," ");return T==="readex pro"||T==="readex"?"Readex Pro":T==="noto sans"||T==="noto"||T==="noto sans arabic"?"Noto Sans":"Cairo"})(),A=u?.consent||t.consent||t.consent_config||null,L=typeof A?.enabled=="boolean"?A.enabled:!1,P=typeof A?.one_time=="boolean"?A.one_time:typeof A?.oneTime=="boolean"?A.oneTime:!0,I=A?.content||A?.body||{},D=h?.conversation_ended_screen,R={post_chat_rating_enabled:typeof D?.post_chat_rating_enabled=="boolean"?D.post_chat_rating_enabled:typeof h?.post_chat_rating_enabled=="boolean"?h.post_chat_rating_enabled:!1,show_conversation_id:typeof D?.show_conversation_id=="boolean"?D.show_conversation_id:typeof D?.showConversationId=="boolean"?D.showConversationId:!0},z=h?.welcome_bubble,v={enabled:typeof z?.enabled=="boolean"?z.enabled:!1,delay_seconds:typeof z?.delay_seconds=="number"?z.delay_seconds:3,sound_enabled:typeof z?.sound_enabled=="boolean"?z.sound_enabled:!1},M=d?.theme,j={mode:M?.mode==="light"?"light":"dark",accent_color:typeof M?.accent_color=="string"?M.accent_color:null,end_call_button_color:typeof M?.end_call_button_color=="string"?M.end_call_button_color:null},W=p?{appearance:{position:d?.position||"right",show_branding:f,show_topbar_avatar_image:g,font:_,footer_content:d?.footer_content||{},theme:j},behavior:{default_open:w,conversation_ended_screen:R,welcome_bubble:v,typing_indicator_enabled:typeof h?.typing_indicator_enabled=="boolean"?h.typing_indicator_enabled:!0,suggested_messages:y},consent:{enabled:L,one_time:P,content:I}}:void 0,q=t.consent||t.consent_config||null,F=i.welcome_message||i.welcomeMessage||t.welcome_message||t.welcomeMessage||t.welcomeMessages||{},G=Object.fromEntries(Object.entries(F).filter(([,T])=>typeof T=="string").map(([T,Ee])=>[T,Ee.slice(0,1e3)])),$=typeof t.allow_interrupt=="boolean"?t.allow_interrupt:typeof s.allow_interrupt=="boolean"?s.allow_interrupt:!0,ne=typeof t.allow_welcome_message_interrupt=="boolean"?t.allow_welcome_message_interrupt:typeof s.allow_welcome_message_interrupt=="boolean"?s.allow_welcome_message_interrupt:!1,ue=(typeof t.face_image=="string"?t.face_image:null)||(typeof t.faceImage=="string"?t.faceImage:null)||null;return{id:t.id||null,name:t.name||ps.name,agentType:n,useText:r,useVoice:a,faceImage:ue,allowInterrupt:$,allowWelcomeMessageInterrupt:ne,welcomeMessages:G,languages:l,defaultLanguage:l.includes(o)?o:l[0],conversation:{default_language:o,languages:l,suggested_messages:y,welcome_message:G},widget:W||void 0,consent:q?{enabled:q.enabled??!1,title:q.title||void 0,body:q.body||void 0,acceptLabel:q.accept_label||q.acceptLabel||void 0,declineLabel:q.decline_label||q.declineLabel||void 0,termsUrl:q.terms_url||q.termsUrl||void 0,privacyUrl:q.privacy_url||q.privacyUrl||void 0}:void 0}}async function gl({restUrl:e,identifier:t,withCredentials:n=!1,signal:r}){if(!e)throw new Error("Missing restUrl");if(!t)throw new Error("Missing identifier (agent_id or api_key)");const a=await fetch(`${e}/agent/${t}/customization`,{method:"GET",mode:"cors",credentials:n?"include":"omit",headers:{Accept:"application/json"},signal:r});if(!a.ok)throw new Error(`Failed to load agent customization: ${a.status}`);const i=await a.json();return fn({id:i.id,name:i.name,company_name:i.company_name,agent_type:i.agent_type,use_voice:i.use_voice,use_text:i.use_text,face_image:i.face_image,conversation:i.conversation,widget:i.widget,allow_interrupt:i.allow_interrupt,allow_welcome_message_interrupt:i.allow_welcome_message_interrupt,welcome_message:i.welcome_message})}async function Tm({restUrl:e,apiKey:t,agentId:n,signal:r}){if(!e)throw new Error("Missing restUrl");const a=t||n;if(!a)throw new Error("Provide one of apiKey or agentId");const i=await fetch(`${e}/agent/${a}`,{method:"GET",mode:"cors",credentials:"omit",headers:{Accept:"application/json"},signal:r});if(!i.ok){let s=`HTTP ${i.status}`;try{const l=await i.json();s=l?.detail||l?.message||s}catch{}throw new Error(s)}return fn(await i.json())}function km(e,t){if(!t)return e;let{useVoice:n,useText:r}=e;return typeof t.use_voice=="boolean"&&(n=t.use_voice),typeof t.use_text=="boolean"&&(r=t.use_text),n===e.useVoice&&r===e.useText?e:{...e,useVoice:n,useText:r}}function nr(e){return e.agentType===Te.AGENT_TYPES.CLOUD_AVATAR||e.agentType===Te.AGENT_TYPES.DESKTOP_AVATAR?"avatar":e.useText&&e.useVoice?"text_and_voice":e.useVoice?"voice":"text"}/**
|
|
2
2
|
* @license lucide-react v1.24.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -23,27 +23,27 @@
|
|
|
23
23
|
*
|
|
24
24
|
* This source code is licensed under the ISC license.
|
|
25
25
|
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var
|
|
26
|
+
*/var ca={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
27
27
|
* @license lucide-react v1.24.0 - ISC
|
|
28
28
|
*
|
|
29
29
|
* This source code is licensed under the ISC license.
|
|
30
30
|
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
-
*/const Am=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Cm=b.createContext({}),_m=()=>b.useContext(Cm),
|
|
31
|
+
*/const Am=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},Cm=b.createContext({}),_m=()=>b.useContext(Cm),wm=b.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:a="",children:i,iconNode:s,...o},l)=>{const{size:u=24,strokeWidth:d=2,absoluteStrokeWidth:h=!1,color:p="currentColor",className:f=""}=_m()??{},g=r??h?Number(n??d)*24/Number(t??u):n??d;return b.createElement("svg",{ref:l,...ca,width:t??u??ca.width,height:t??u??ca.height,stroke:e??p,strokeWidth:g,className:bl("lucide",f,a),...!i&&!Am(o)&&{"aria-hidden":"true"},...o},[...s.map(([y,w])=>b.createElement(y,w)),...Array.isArray(i)?i:[i]])});/**
|
|
32
32
|
* @license lucide-react v1.24.0 - ISC
|
|
33
33
|
*
|
|
34
34
|
* This source code is licensed under the ISC license.
|
|
35
35
|
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
-
*/const Qe=(e,t)=>{const n=b.forwardRef(({className:r,...
|
|
36
|
+
*/const Qe=(e,t)=>{const n=b.forwardRef(({className:r,...a},i)=>b.createElement(wm,{ref:i,iconNode:t,className:bl(`lucide-${xm(gs(e))}`,`lucide-${e}`,r),...a}));return n.displayName=gs(e),n};/**
|
|
37
37
|
* @license lucide-react v1.24.0 - ISC
|
|
38
38
|
*
|
|
39
39
|
* This source code is licensed under the ISC license.
|
|
40
40
|
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/const
|
|
41
|
+
*/const Sm=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],Im=Qe("arrow-up",Sm);/**
|
|
42
42
|
* @license lucide-react v1.24.0 - ISC
|
|
43
43
|
*
|
|
44
44
|
* This source code is licensed under the ISC license.
|
|
45
45
|
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
-
*/const
|
|
46
|
+
*/const vm=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Nm=Qe("chevron-left",vm);/**
|
|
47
47
|
* @license lucide-react v1.24.0 - ISC
|
|
48
48
|
*
|
|
49
49
|
* This source code is licensed under the ISC license.
|
|
@@ -53,22 +53,22 @@
|
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the ISC license.
|
|
55
55
|
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/const Rm=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],
|
|
56
|
+
*/const Rm=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Dm=Qe("chevron-up",Rm);/**
|
|
57
57
|
* @license lucide-react v1.24.0 - ISC
|
|
58
58
|
*
|
|
59
59
|
* This source code is licensed under the ISC license.
|
|
60
60
|
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
-
*/const
|
|
61
|
+
*/const Pm=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],jr=Qe("loader-circle",Pm);/**
|
|
62
62
|
* @license lucide-react v1.24.0 - ISC
|
|
63
63
|
*
|
|
64
64
|
* This source code is licensed under the ISC license.
|
|
65
65
|
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const
|
|
66
|
+
*/const Om=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],Mm=Qe("maximize-2",Om);/**
|
|
67
67
|
* @license lucide-react v1.24.0 - ISC
|
|
68
68
|
*
|
|
69
69
|
* This source code is licensed under the ISC license.
|
|
70
70
|
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const Fm=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]],
|
|
71
|
+
*/const Fm=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]],gi=Qe("mic-off",Fm);/**
|
|
72
72
|
* @license lucide-react v1.24.0 - ISC
|
|
73
73
|
*
|
|
74
74
|
* This source code is licensed under the ISC license.
|
|
@@ -83,12 +83,12 @@
|
|
|
83
83
|
*
|
|
84
84
|
* This source code is licensed under the ISC license.
|
|
85
85
|
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
-
*/const jm=[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",key:"10hv5p"}]],
|
|
86
|
+
*/const jm=[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",key:"10hv5p"}]],bi=Qe("phone-off",jm);/**
|
|
87
87
|
* @license lucide-react v1.24.0 - ISC
|
|
88
88
|
*
|
|
89
89
|
* This source code is licensed under the ISC license.
|
|
90
90
|
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
-
*/const Hm=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],
|
|
91
|
+
*/const Hm=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],Ei=Qe("phone",Hm);/**
|
|
92
92
|
* @license lucide-react v1.24.0 - ISC
|
|
93
93
|
*
|
|
94
94
|
* This source code is licensed under the ISC license.
|
|
@@ -103,148 +103,149 @@
|
|
|
103
103
|
*
|
|
104
104
|
* This source code is licensed under the ISC license.
|
|
105
105
|
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const Ym=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ta=Qe("x",Ym),wt=()=>{},Gm=767;function Fi(){return typeof window<"u"&&window.innerWidth<=Gm}function me(...e){return e.filter(Boolean).join(" ")}function Wm(e){const t=(e||"").trim().toLowerCase().replace(/[-_]/g," ");return t==="readex pro"||t==="readex"?"'Readex Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif":t==="noto sans"||t==="noto"||t==="noto sans arabic"?"'Noto Sans', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif":"'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"}function bs(e){if(!e)return"#ffffff";const t=e.replace("#","").trim();let n=t;if(t.length===3&&(n=t.split("").map(o=>o+o).join("")),n.length<6)return"#ffffff";const r=parseInt(n.substring(0,2),16),i=parseInt(n.substring(2,4),16),a=parseInt(n.substring(4,6),16);return Number.isNaN(r)||Number.isNaN(i)||Number.isNaN(a)?"#ffffff":(r*299+i*587+a*114)/1e3>=128?"#000000":"#ffffff"}function ka(e){const t={"--rqmii-font-family":Wm(e?.font)},n=e?.theme?.accent_color?.trim();if(n){const i=bs(n);t["--rqmii-accent"]=n,t["--rqmii-accent-text"]=i,t["--rqmii-message-user"]=n,t["--rqmii-message-user-text"]=i}const r=e?.theme?.end_call_button_color?.trim();if(r){const i=bs(r);t["--rqmii-end-call-bg"]=r,t["--rqmii-end-call-text"]=i}return t}function Km(e){const t=(e||"").trim().toLowerCase().replace(/[-_]/g," ");return t==="readex pro"||t==="readex"?"https://fonts.googleapis.com/css2?family=Readex+Pro:wght@400;500;600;700&display=swap":t==="noto sans"||t==="noto"||t==="noto sans arabic"?"https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap":"https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&display=swap"}function Tl(e){if(typeof document>"u")return;const t=Km(e);if(document.querySelector(`link[data-rqmii-font="${t}"]`))return;const r=document.createElement("link");r.rel="stylesheet",r.href=t,r.setAttribute("data-rqmii-font",t),document.head.appendChild(r)}function nt(e){return""}function kt(e){return e.startsWith("ar")||["fa","ur","he"].includes(e)?"rtl":"ltr"}function xa(e){const t=Math.floor(e/60).toString().padStart(2,"0"),n=(e%60).toString().padStart(2,"0");return`${t}:${n}`}function Qm(e=!0){const[t,n]=b.useState(0);return b.useEffect(()=>{if(!e)return;const r=setInterval(()=>n(i=>i+1),1e3);return()=>clearInterval(r)},[e]),t}function Xm(){const[e,t]=b.useState(null);return b.useEffect(()=>{const n=window.visualViewport;if(!n)return;const r=()=>t(n.height);return r(),n.addEventListener("resize",r),n.addEventListener("scroll",r),()=>{n.removeEventListener("resize",r),n.removeEventListener("scroll",r)}},[]),e}function Zm(e,t){const n=b.useRef([]);n.current=e.match(/\S+\s*/g)||[e];const[r,i]=b.useState(()=>t?Math.min(1,n.current.length):n.current.length);return b.useEffect(()=>{if(!t||!e){i(n.current.length);return}if(i(s=>Math.max(1,s)),n.current.length<=1)return;const a=setInterval(()=>{i(s=>s>=n.current.length?(clearInterval(a),s):s+1)},50);return()=>clearInterval(a)},[e,t]),n.current.slice(0,r).join("")}const qr=(function(e){if(e==null)return nf;if(typeof e=="function")return Vr(e);if(typeof e=="object")return Array.isArray(e)?Jm(e):ef(e);if(typeof e=="string")return tf(e);throw new Error("Expected function, string, or object as test")});function Jm(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=qr(e[n]);return Vr(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function ef(e){const t=e;return Vr(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function tf(e){return Vr(t);function t(n){return n&&n.type===e}}function Vr(e){return t;function t(n,r,i){return!!(rf(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function nf(){return!0}function rf(e){return e!==null&&typeof e=="object"&&"type"in e}const kl=[],Bn=!0,Bi=!1,Kt="skip";function $r(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=qr(i),s=r?-1:1;o(e,void 0,[])();function o(l,u,d){const h=l&&typeof l=="object"?l:{};if(typeof h.type=="string"){const f=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=kl,g,y,S;if((!t||a(l,u,d[d.length-1]||void 0))&&(f=af(n(l,d)),f[0]===Bi))return f;if("children"in l&&l.children){const x=l;if(x.children&&f[0]!==Kt)for(y=(r?x.children.length:-1)+s,S=d.concat(x);y>-1&&y<x.children.length;){const _=x.children[y];if(g=o(_,y,S)(),g[0]===Bi)return g;y=typeof g[1]=="number"?g[1]:y+s}}return f}}}function af(e){return Array.isArray(e)?e:typeof e=="number"?[Bn,e]:e==null?kl:[e]}function dt(e,t,n,r){let i,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,i=n):(a=t,s=n,i=r),$r(e,a,o,i);function o(l,u){const d=u[u.length-1],h=d?d.children.indexOf(l):void 0;return s(l,h,d)}}const pn={indicator:"indicator",textOnly:"text-only",remove:"remove"};function sf({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,allowedProtocols:i=[],blockedImageClass:a="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:s="text-gray-500",linkBlockPolicy:o=pn.indicator,imageBlockPolicy:l=pn.indicator}){const u=t.length&&!t.every(h=>h==="*"),d=n.length&&!n.every(h=>h==="*");if(!e&&(u||d))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return h=>{const p=hf(e,t,n,r,i,a,s,o,l);xl(h),dt(h,p)}}function Es(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function of(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}const lf=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),uf=new Set(["javascript:","data:","file:","vbscript:"]);function Ts(e,t,n,r=!1,i=!1,a=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!i)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return i&&r&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const d=e.substring(5);if(d&&d.length>0&&d!=="invalid")return e}}catch{return null}return null}const s=Es(e,n);if(!s||uf.has(s.protocol)||!(lf.has(s.protocol)||a.includes(s.protocol)||a.includes("*")))return null;if(s.protocol==="mailto:"||!s.protocol.match(/^https?:$/))return s.href;const l=of(e);return s&&t.some(u=>{const d=Es(u,n);return!d||d.origin!==s.origin?!1:s.href.startsWith(d.href)})?l?s.pathname+s.search+s.hash:s.href:t.includes("*")?s.protocol!=="https:"&&s.protocol!=="http:"?null:l?s.pathname+s.search+s.hash:s.href:null}function xl(e){if("children"in e&&Array.isArray(e.children)){e.children=e.children.filter(t=>t!=null);for(const t of e.children)xl(t)}}const di=Symbol("node-seen");function cf(e,t,n){return t===pn.remove?{type:"remove"}:t===pn.textOnly?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:n},children:[...e.children,{type:"text",value:" [blocked]"}]}}}function df(e,t,n){if(t===pn.remove)return{type:"remove"};if(t===pn.textOnly){const r=String(e.properties.alt||"");return r?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:r}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:n},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}const hf=(e,t,n,r,i,a,s,o,l)=>{const u=(d,h,p)=>{if(d.type!=="element"||d[di])return Bn;if(d.tagName==="a"){const f=Ts(d.properties.href,t,e,!1,!1,i);if(f===null){if(d[di]=!0,dt(d,u),p&&typeof h=="number"){const g=cf(d,o,s);if(g.type==="remove")return p.children.splice(h,1),[Kt,h];p.children[h]=g.element}return Kt}else return d.properties.href=f,d.properties.target="_blank",d.properties.rel="noopener noreferrer",Bn}if(d.tagName==="img"){const f=Ts(d.properties.src,n,e,r,!0,i);if(f===null){if(d[di]=!0,dt(d,u),p&&typeof h=="number"){const g=df(d,l,a);if(g.type==="remove")return p.children.splice(h,1),[Kt,h];p.children[h]=g.element}return Kt}else return d.properties.src=f,Bn}return Bn};return u},yl=-1,Yr=0,qn=1,Ir=2,ya=3,Aa=4,Ca=5,_a=6,Al=7,Cl=8,{defineProperty:mf}=Object,_l=typeof self=="object"?self:globalThis,ks=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new _l[e](t)},ff=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case Yr:case yl:return n(s,i);case qn:{const o=n([],i);for(const l of s)o.push(r(l));return o}case Ir:{const o=n({},i);for(const[l,u]of s){const d=r(l),h=r(u);d==="__proto__"?mf(o,d,{value:h,configurable:!0,enumerable:!0,writable:!0}):o[d]=h}return o}case ya:return n(new Date(s),i);case Aa:{const{source:o,flags:l}=s;return n(new RegExp(o,l),i)}case Ca:{const o=n(new Map,i);for(const[l,u]of s)o.set(r(l),r(u));return o}case _a:{const o=n(new Set,i);for(const l of s)o.add(r(l));return o}case Al:{const{name:o,message:l}=s;return n(typeof _l[o]=="function"?ks(o,l):new Error(l),i)}case Cl:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}case"-0":return-0}return n(ks(a,s),i)};return r},xs=e=>ff(new Map,e)(0),Yt="",{toString:pf}={},{keys:gf,is:bf}=Object,Nn=e=>{const t=typeof e;if(t!=="object"||!e)return[Yr,t];const n=pf.call(e).slice(8,-1);switch(n){case"Array":return[qn,Yt];case"Object":return[Ir,Yt];case"Date":return[ya,Yt];case"RegExp":return[Aa,Yt];case"Map":return[Ca,Yt];case"Set":return[_a,Yt];case"DataView":return[qn,n]}return n.includes("Array")?[qn,n]:e instanceof Error?[Al,e.name||"Error"]:[Ir,n]},mr=([e,t])=>e===Yr&&(t==="function"||t==="symbol"),Ef=(e,t,n,r)=>{const i=(s,o)=>{const l=r.push(s)-1;return n.set(o,l),l},a=s=>{if(n.has(s))return n.get(s);let[o,l]=Nn(s);switch(o){case Yr:{let d=s;switch(l){case"bigint":o=Cl,d=s.toString();break;case"number":if(!s&&bf(s,-0))return r.push(["-0"])-1;break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return i([yl],s)}return i([o,d],s)}case qn:{if(l){let p=s;return l==="DataView"?p=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(s)),i([l,[...p]],s)}const d=[],h=i([o,d],s);for(const p of s)d.push(a(p));return h}case Ir:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const d=[],h=i([o,d],s);for(const p of gf(s))(e||!mr(Nn(s[p])))&&d.push([a(p),a(s[p])]);return h}case ya:return i([o,isNaN(s.getTime())?Yt:s.toISOString()],s);case Aa:{const{source:d,flags:h}=s;return i([o,{source:d,flags:h}],s)}case Ca:{const d=[],h=i([o,d],s);for(const[p,f]of s)(e||!(mr(Nn(p))||mr(Nn(f))))&&d.push([a(p),a(f)]);return h}case _a:{const d=[],h=i([o,d],s);for(const p of s)(e||!mr(Nn(p)))&&d.push(a(p));return h}}const{message:u}=s;return i([o,{name:l,message:u}],s)};return a},ys=(e,{json:t,lossy:n}={})=>{const r=[];return Ef(!(t||n),!!t,new Map,r)(e),r},Jt=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?xs(ys(e,t)):structuredClone(e):(e,t)=>xs(ys(e,t));class rr{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}rr.prototype.normal={};rr.prototype.property={};rr.prototype.space=void 0;function Sl(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new rr(n,r,t)}function Zn(e){return e.toLowerCase()}class Xe{constructor(t,n){this.attribute=n,this.property=t}}Xe.prototype.attribute="";Xe.prototype.booleanish=!1;Xe.prototype.boolean=!1;Xe.prototype.commaOrSpaceSeparated=!1;Xe.prototype.commaSeparated=!1;Xe.prototype.defined=!1;Xe.prototype.mustUseProperty=!1;Xe.prototype.number=!1;Xe.prototype.overloadedBoolean=!1;Xe.prototype.property="";Xe.prototype.spaceSeparated=!1;Xe.prototype.space=void 0;let Tf=0;const re=nn(),Pe=nn(),zi=nn(),V=nn(),Se=nn(),Xt=nn(),et=nn();function nn(){return 2**++Tf}const ji=Object.freeze(Object.defineProperty({__proto__:null,boolean:re,booleanish:Pe,commaOrSpaceSeparated:et,commaSeparated:Xt,number:V,overloadedBoolean:zi,spaceSeparated:Se},Symbol.toStringTag,{value:"Module"})),hi=Object.keys(ji);class Sa extends Xe{constructor(t,n,r,i){let a=-1;if(super(t,n),As(this,"space",i),typeof r=="number")for(;++a<hi.length;){const s=hi[a];As(this,hi[a],(r&ji[s])===ji[s])}}}Sa.prototype.defined=!0;function As(e,t,n){n&&(e[t]=n)}function Tn(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new Sa(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Zn(r)]=r,n[Zn(a.attribute)]=r}return new rr(t,n,e.space)}const wl=Tn({properties:{ariaActiveDescendant:null,ariaAtomic:Pe,ariaAutoComplete:null,ariaBusy:Pe,ariaChecked:Pe,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:Se,ariaCurrent:null,ariaDescribedBy:Se,ariaDetails:null,ariaDisabled:Pe,ariaDropEffect:Se,ariaErrorMessage:null,ariaExpanded:Pe,ariaFlowTo:Se,ariaGrabbed:Pe,ariaHasPopup:null,ariaHidden:Pe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Se,ariaLevel:V,ariaLive:null,ariaModal:Pe,ariaMultiLine:Pe,ariaMultiSelectable:Pe,ariaOrientation:null,ariaOwns:Se,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:Pe,ariaReadOnly:Pe,ariaRelevant:null,ariaRequired:Pe,ariaRoleDescription:Se,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:Pe,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Il(e,t){return t in e?e[t]:t}function Nl(e,t){return Il(e,t.toLowerCase())}const kf=Tn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xt,acceptCharset:Se,accessKey:Se,action:null,allow:null,allowFullScreen:re,allowPaymentRequest:re,allowUserMedia:re,alpha:re,alt:null,as:null,async:re,autoCapitalize:null,autoComplete:Se,autoFocus:re,autoPlay:re,blocking:Se,capture:null,charSet:null,checked:re,cite:null,className:Se,closedBy:null,colorSpace:null,cols:V,colSpan:V,command:null,commandFor:null,content:null,contentEditable:Pe,controls:re,controlsList:Se,coords:V|Xt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:re,defer:re,dir:null,dirName:null,disabled:re,download:zi,draggable:Pe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:re,formTarget:null,headers:Se,height:V,hidden:zi,high:V,href:null,hrefLang:null,htmlFor:Se,httpEquiv:Se,id:null,imageSizes:null,imageSrcSet:null,inert:re,inputMode:null,integrity:null,is:null,isMap:re,itemId:null,itemProp:Se,itemRef:Se,itemScope:re,itemType:Se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:re,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,multiple:re,muted:re,name:null,nonce:null,noModule:re,noValidate:re,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:re,optimum:V,pattern:null,ping:Se,placeholder:null,playsInline:re,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:re,referrerPolicy:null,rel:Se,required:re,reversed:re,rows:V,rowSpan:V,sandbox:Se,scope:null,scoped:re,seamless:re,selected:re,shadowRootClonable:re,shadowRootCustomElementRegistry:re,shadowRootDelegatesFocus:re,shadowRootMode:null,shadowRootSerializable:re,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:Pe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:re,useMap:null,value:Pe,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Se,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:re,declare:re,event:null,face:null,frame:null,frameBorder:null,hSpace:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:re,noHref:re,noShade:re,noWrap:re,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:Pe,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:re,disablePictureInPicture:re,disableRemotePlayback:re,exportParts:Xt,part:Se,prefix:null,property:null,results:V,security:null,unselectable:null},space:"html",transform:Nl}),xf=Tn({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:et,accentHeight:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:Se,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:re,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Xt,g2:Xt,glyphName:Xt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:et,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:V,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:et,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:et,rev:et,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:et,requiredFeatures:et,requiredFonts:et,requiredFormats:et,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:et,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:et,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:et,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Il}),vl=Tn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Ll=Tn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Nl}),Rl=Tn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),yf={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Af=/[A-Z]/g,Cs=/-[a-z]/g,Cf=/^data[-\w.:]+$/i;function Gr(e,t){const n=Zn(t);let r=t,i=Xe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Cf.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(Cs,Sf);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!Cs.test(a)){let s=a.replace(Af,_f);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Sa}return new i(r,t)}function _f(e){return"-"+e.toLowerCase()}function Sf(e){return e.charAt(1).toUpperCase()}const ir=Sl([wl,kf,vl,Ll,Rl],"html"),zt=Sl([wl,xf,vl,Ll,Rl],"svg");function _s(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function Pl(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ss=/[#.]/g;function wf(e,t){const n=e||"",r={};let i=0,a,s;for(;i<n.length;){Ss.lastIndex=i;const o=Ss.exec(n),l=n.slice(i,o?o.index:n.length);l&&(a?a==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:s=l,i+=l.length),o&&(a=o[0],i++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function ws(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Dl(e){return e.join(" ").trim()}function Ml(e,t,n){const r=n?Lf(n):void 0;function i(a,s,...o){let l;if(a==null){l={type:"root",children:[]};const u=s;o.unshift(u)}else{l=wf(a,t);const u=l.tagName.toLowerCase(),d=r?r.get(u):void 0;if(l.tagName=d||u,If(s))o.unshift(s);else for(const[h,p]of Object.entries(s))Nf(e,l.properties,h,p)}for(const u of o)Hi(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function If(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Nf(e,t,n,r){const i=Gr(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=ws(r):i.commaSeparated?a=_s(r):i.commaOrSpaceSeparated?a=ws(_s(r).join(" ")):a=Is(i,i.property,r):Array.isArray(r)?a=[...r]:a=i.property==="style"?vf(r):String(r);if(Array.isArray(a)){const s=[];for(const o of a)s.push(Is(i,i.property,o));a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function Hi(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Hi(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Hi(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Is(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Zn(n)===Zn(t)))return!0}return n}function vf(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Lf(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Rf=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Pf=Ml(ir,"div"),Df=Ml(zt,"g",Rf);function Mf(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const l=Ns(t,n[s-1]);o=l===-1?t.length+1:l+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const o=n[n.length-1],l=Ns(t,o),u=l===-1?t.length+1:l+1;if(o===u)break;n.push(u)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function Ns(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
107
|
-
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Qt={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Ol={}.hasOwnProperty,Of=Object.prototype;function Ff(e,t){const n=t||{};return wa({file:n.file||void 0,location:!1,schema:n.space==="svg"?zt:ir,verbose:n.verbose||!1},e)}function wa(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Ar(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Fl(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const a=String(e.file),s=Mf(a),o=s.toPoint(0),l=s.toPoint(a.length);n.position={start:o,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Ar(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Ar(e,r,n),n}default:return n=Bf(e,t),n}}function Fl(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=wa(e,t[n]);r.push(i)}return r}function Bf(e,t){const n=e.schema;e.schema=t.namespaceURI===Qt.svg?zt:ir;let r=-1;const i={};for(;++r<t.attrs.length;){const o=t.attrs[r],l=(o.prefix?o.prefix+":":"")+o.name;Ol.call(Of,l)||(i[l]=o.value)}const s=(e.schema.space==="svg"?Df:Pf)(t.tagName,i,Fl(e,t.childNodes));if(Ar(e,t,s),s.tagName==="template"){const o=t,l=o.sourceCodeLocation,u=l&&l.startTag&&hn(l.startTag),d=l&&l.endTag&&hn(l.endTag),h=wa(e,o.content);u&&d&&e.file&&(h.position={start:u.end,end:d.start}),s.content=h}return e.schema=n,s}function Ar(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=zf(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function zf(e,t,n){const r=hn(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const a={};let s;if(n.attrs)for(s in n.attrs)Ol.call(n.attrs,s)&&(a[Gr(e.schema,s).property]=hn(n.attrs[s]));n.startTag;const o=hn(n.startTag),l=n.endTag?hn(n.endTag):void 0,u={opening:o};l&&(u.closing=l),u.properties=a,t.data={position:u}}}return r}function hn(e){const t=vs({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=vs({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function vs(e){return e.line&&e.column?e:void 0}const Ls={}.hasOwnProperty;function Bl(e,t){const n=t||{};function r(i,...a){let s=r.invalid;const o=r.handlers;if(i&&Ls.call(i,e)){const l=String(i[e]);s=Ls.call(o,l)?o[l]:r.unknown}if(s)return s.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const jf={},Hf={}.hasOwnProperty,zl=Bl("type",{handlers:{root:qf,element:Wf,text:Yf,comment:Gf,doctype:$f}});function Uf(e,t){const r=(t||jf).space;return zl(e,r==="svg"?zt:ir)}function qf(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Ia(e.children,n,t),kn(e,n),n}function Vf(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Ia(e.children,n,t),kn(e,n),n}function $f(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return kn(e,t),t}function Yf(e){const t={nodeName:"#text",value:e.value,parentNode:null};return kn(e,t),t}function Gf(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return kn(e,t),t}function Wf(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=zt);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&Hf.call(e.properties,a)){const l=Kf(r,a,e.properties[a]);l&&i.push(l)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:Qt[s],childNodes:[],parentNode:null};return o.childNodes=Ia(e.children,o,r),kn(e,o),e.tagName==="template"&&e.content&&(o.content=Vf(e.content,r)),o}function Kf(e,t,n){const r=Gr(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Pl(n):Dl(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=Qt[r.space]}return i}function Ia(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const a=zl(e[r],n);a.parentNode=t,i.push(a)}return i}function kn(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const Qf=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Xf=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Ne="�";var E;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(E||(E={}));const We={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function jl(e){return e>=55296&&e<=57343}function Zf(e){return e>=56320&&e<=57343}function Jf(e,t){return(e-55296)*1024+9216+t}function Hl(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Ul(e){return e>=64976&&e<=65007||Xf.has(e)}var M;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(M||(M={}));const ep=65536;class tp{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=ep,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:a}=this,s=i+n,o=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Zf(n))return this.pos++,this._addGap(),Jf(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,E.EOF;return this._err(M.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,E.EOF;const r=this.html.charCodeAt(n);return r===E.CARRIAGE_RETURN?E.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,E.EOF;let t=this.html.charCodeAt(this.pos);return t===E.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,E.LINE_FEED):t===E.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,jl(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===E.LINE_FEED||t===E.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Hl(t)?this._err(M.controlCharacterInInputStream):Ul(t)&&this._err(M.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var oe;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(oe||(oe={}));function ql(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const np=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),rp=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function ip(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=rp.get(e))!==null&&t!==void 0?t:e}var Fe;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Fe||(Fe={}));const ap=32;var Ft;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ft||(Ft={}));function Ui(e){return e>=Fe.ZERO&&e<=Fe.NINE}function sp(e){return e>=Fe.UPPER_A&&e<=Fe.UPPER_F||e>=Fe.LOWER_A&&e<=Fe.LOWER_F}function op(e){return e>=Fe.UPPER_A&&e<=Fe.UPPER_Z||e>=Fe.LOWER_A&&e<=Fe.LOWER_Z||Ui(e)}function lp(e){return e===Fe.EQUALS||op(e)}var Oe;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Oe||(Oe={}));var It;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(It||(It={}));class up{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Oe.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=It.Strict}startEntity(t){this.decodeMode=t,this.state=Oe.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Oe.EntityStart:return t.charCodeAt(n)===Fe.NUM?(this.state=Oe.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Oe.NamedEntity,this.stateNamedEntity(t,n));case Oe.NumericStart:return this.stateNumericStart(t,n);case Oe.NumericDecimal:return this.stateNumericDecimal(t,n);case Oe.NumericHex:return this.stateNumericHex(t,n);case Oe.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|ap)===Fe.LOWER_X?(this.state=Oe.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Oe.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Ui(i)||sp(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if(Ui(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Fe.SEMI)this.consumed+=1;else if(this.decodeMode===It.Strict)return 0;return this.emitCodePoint(ip(this.result),this.consumed),this.errors&&(t!==Fe.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],a=(i&Ft.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=cp(r,i,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===It.Attribute&&(a===0||lp(s))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],a=(i&Ft.VALUE_LENGTH)>>14,a!==0){if(s===Fe.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==It.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&Ft.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~Ft.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Oe.NamedEntity:return this.result!==0&&(this.decodeMode!==It.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Oe.NumericDecimal:return this.emitNumericEntity(0,2);case Oe.NumericHex:return this.emitNumericEntity(0,3);case Oe.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Oe.EntityStart:return 0}}}function cp(e,t,n,r){const i=(t&Ft.BRANCH_LENGTH)>>7,a=t&Ft.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const l=r-a;return l<0||l>=i?-1:e[n+l]-1}let s=n,o=s+i-1;for(;s<=o;){const l=s+o>>>1,u=e[l];if(u<r)s=l+1;else if(u>r)o=l-1;else return e[l+i]}return-1}var H;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(H||(H={}));var Zt;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Zt||(Zt={}));var it;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(it||(it={}));var v;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(v||(v={}));var c;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(c||(c={}));const dp=new Map([[v.A,c.A],[v.ADDRESS,c.ADDRESS],[v.ANNOTATION_XML,c.ANNOTATION_XML],[v.APPLET,c.APPLET],[v.AREA,c.AREA],[v.ARTICLE,c.ARTICLE],[v.ASIDE,c.ASIDE],[v.B,c.B],[v.BASE,c.BASE],[v.BASEFONT,c.BASEFONT],[v.BGSOUND,c.BGSOUND],[v.BIG,c.BIG],[v.BLOCKQUOTE,c.BLOCKQUOTE],[v.BODY,c.BODY],[v.BR,c.BR],[v.BUTTON,c.BUTTON],[v.CAPTION,c.CAPTION],[v.CENTER,c.CENTER],[v.CODE,c.CODE],[v.COL,c.COL],[v.COLGROUP,c.COLGROUP],[v.DD,c.DD],[v.DESC,c.DESC],[v.DETAILS,c.DETAILS],[v.DIALOG,c.DIALOG],[v.DIR,c.DIR],[v.DIV,c.DIV],[v.DL,c.DL],[v.DT,c.DT],[v.EM,c.EM],[v.EMBED,c.EMBED],[v.FIELDSET,c.FIELDSET],[v.FIGCAPTION,c.FIGCAPTION],[v.FIGURE,c.FIGURE],[v.FONT,c.FONT],[v.FOOTER,c.FOOTER],[v.FOREIGN_OBJECT,c.FOREIGN_OBJECT],[v.FORM,c.FORM],[v.FRAME,c.FRAME],[v.FRAMESET,c.FRAMESET],[v.H1,c.H1],[v.H2,c.H2],[v.H3,c.H3],[v.H4,c.H4],[v.H5,c.H5],[v.H6,c.H6],[v.HEAD,c.HEAD],[v.HEADER,c.HEADER],[v.HGROUP,c.HGROUP],[v.HR,c.HR],[v.HTML,c.HTML],[v.I,c.I],[v.IMG,c.IMG],[v.IMAGE,c.IMAGE],[v.INPUT,c.INPUT],[v.IFRAME,c.IFRAME],[v.KEYGEN,c.KEYGEN],[v.LABEL,c.LABEL],[v.LI,c.LI],[v.LINK,c.LINK],[v.LISTING,c.LISTING],[v.MAIN,c.MAIN],[v.MALIGNMARK,c.MALIGNMARK],[v.MARQUEE,c.MARQUEE],[v.MATH,c.MATH],[v.MENU,c.MENU],[v.META,c.META],[v.MGLYPH,c.MGLYPH],[v.MI,c.MI],[v.MO,c.MO],[v.MN,c.MN],[v.MS,c.MS],[v.MTEXT,c.MTEXT],[v.NAV,c.NAV],[v.NOBR,c.NOBR],[v.NOFRAMES,c.NOFRAMES],[v.NOEMBED,c.NOEMBED],[v.NOSCRIPT,c.NOSCRIPT],[v.OBJECT,c.OBJECT],[v.OL,c.OL],[v.OPTGROUP,c.OPTGROUP],[v.OPTION,c.OPTION],[v.P,c.P],[v.PARAM,c.PARAM],[v.PLAINTEXT,c.PLAINTEXT],[v.PRE,c.PRE],[v.RB,c.RB],[v.RP,c.RP],[v.RT,c.RT],[v.RTC,c.RTC],[v.RUBY,c.RUBY],[v.S,c.S],[v.SCRIPT,c.SCRIPT],[v.SEARCH,c.SEARCH],[v.SECTION,c.SECTION],[v.SELECT,c.SELECT],[v.SOURCE,c.SOURCE],[v.SMALL,c.SMALL],[v.SPAN,c.SPAN],[v.STRIKE,c.STRIKE],[v.STRONG,c.STRONG],[v.STYLE,c.STYLE],[v.SUB,c.SUB],[v.SUMMARY,c.SUMMARY],[v.SUP,c.SUP],[v.TABLE,c.TABLE],[v.TBODY,c.TBODY],[v.TEMPLATE,c.TEMPLATE],[v.TEXTAREA,c.TEXTAREA],[v.TFOOT,c.TFOOT],[v.TD,c.TD],[v.TH,c.TH],[v.THEAD,c.THEAD],[v.TITLE,c.TITLE],[v.TR,c.TR],[v.TRACK,c.TRACK],[v.TT,c.TT],[v.U,c.U],[v.UL,c.UL],[v.SVG,c.SVG],[v.VAR,c.VAR],[v.WBR,c.WBR],[v.XMP,c.XMP]]);function xn(e){var t;return(t=dp.get(e))!==null&&t!==void 0?t:c.UNKNOWN}const U=c,hp={[H.HTML]:new Set([U.ADDRESS,U.APPLET,U.AREA,U.ARTICLE,U.ASIDE,U.BASE,U.BASEFONT,U.BGSOUND,U.BLOCKQUOTE,U.BODY,U.BR,U.BUTTON,U.CAPTION,U.CENTER,U.COL,U.COLGROUP,U.DD,U.DETAILS,U.DIR,U.DIV,U.DL,U.DT,U.EMBED,U.FIELDSET,U.FIGCAPTION,U.FIGURE,U.FOOTER,U.FORM,U.FRAME,U.FRAMESET,U.H1,U.H2,U.H3,U.H4,U.H5,U.H6,U.HEAD,U.HEADER,U.HGROUP,U.HR,U.HTML,U.IFRAME,U.IMG,U.INPUT,U.LI,U.LINK,U.LISTING,U.MAIN,U.MARQUEE,U.MENU,U.META,U.NAV,U.NOEMBED,U.NOFRAMES,U.NOSCRIPT,U.OBJECT,U.OL,U.P,U.PARAM,U.PLAINTEXT,U.PRE,U.SCRIPT,U.SECTION,U.SELECT,U.SOURCE,U.STYLE,U.SUMMARY,U.TABLE,U.TBODY,U.TD,U.TEMPLATE,U.TEXTAREA,U.TFOOT,U.TH,U.THEAD,U.TITLE,U.TR,U.TRACK,U.UL,U.WBR,U.XMP]),[H.MATHML]:new Set([U.MI,U.MO,U.MN,U.MS,U.MTEXT,U.ANNOTATION_XML]),[H.SVG]:new Set([U.TITLE,U.FOREIGN_OBJECT,U.DESC]),[H.XLINK]:new Set,[H.XML]:new Set,[H.XMLNS]:new Set},qi=new Set([U.H1,U.H2,U.H3,U.H4,U.H5,U.H6]);v.STYLE,v.SCRIPT,v.XMP,v.IFRAME,v.NOEMBED,v.NOFRAMES,v.PLAINTEXT;var k;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(k||(k={}));const Re={DATA:k.DATA,RCDATA:k.RCDATA,RAWTEXT:k.RAWTEXT,SCRIPT_DATA:k.SCRIPT_DATA,PLAINTEXT:k.PLAINTEXT,CDATA_SECTION:k.CDATA_SECTION};function mp(e){return e>=E.DIGIT_0&&e<=E.DIGIT_9}function zn(e){return e>=E.LATIN_CAPITAL_A&&e<=E.LATIN_CAPITAL_Z}function fp(e){return e>=E.LATIN_SMALL_A&&e<=E.LATIN_SMALL_Z}function Dt(e){return fp(e)||zn(e)}function Rs(e){return Dt(e)||mp(e)}function fr(e){return e+32}function Vl(e){return e===E.SPACE||e===E.LINE_FEED||e===E.TABULATION||e===E.FORM_FEED}function Ps(e){return Vl(e)||e===E.SOLIDUS||e===E.GREATER_THAN_SIGN}function pp(e){return e===E.NULL?M.nullCharacterReference:e>1114111?M.characterReferenceOutsideUnicodeRange:jl(e)?M.surrogateCharacterReference:Ul(e)?M.noncharacterCharacterReference:Hl(e)||e===E.CARRIAGE_RETURN?M.controlCharacterReference:null}class gp{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=k.DATA,this.returnState=k.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new tp(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new up(np,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(M.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(M.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=pp(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:oe.START_TAG,tagName:"",tagID:c.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:oe.END_TAG,tagName:"",tagID:c.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:oe.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:oe.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(ql(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(M.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=xn(t.tagName),t.type===oe.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(M.endTagWithAttributes),t.selfClosing&&this._err(M.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case oe.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case oe.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case oe.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:oe.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=Vl(t)?oe.WHITESPACE_CHARACTER:t===E.NULL?oe.NULL_CHARACTER:oe.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(oe.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=k.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?It.Attribute:It.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===k.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===k.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===k.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case k.DATA:{this._stateData(t);break}case k.RCDATA:{this._stateRcdata(t);break}case k.RAWTEXT:{this._stateRawtext(t);break}case k.SCRIPT_DATA:{this._stateScriptData(t);break}case k.PLAINTEXT:{this._statePlaintext(t);break}case k.TAG_OPEN:{this._stateTagOpen(t);break}case k.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case k.TAG_NAME:{this._stateTagName(t);break}case k.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case k.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case k.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case k.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case k.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case k.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case k.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case k.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case k.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case k.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case k.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case k.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case k.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case k.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case k.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case k.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case k.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case k.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case k.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case k.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case k.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case k.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case k.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case k.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case k.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case k.BOGUS_COMMENT:{this._stateBogusComment(t);break}case k.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case k.COMMENT_START:{this._stateCommentStart(t);break}case k.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case k.COMMENT:{this._stateComment(t);break}case k.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case k.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case k.COMMENT_END:{this._stateCommentEnd(t);break}case k.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case k.DOCTYPE:{this._stateDoctype(t);break}case k.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case k.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case k.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case k.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case k.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case k.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case k.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case k.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case k.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case k.CDATA_SECTION:{this._stateCdataSection(t);break}case k.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case k.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case k.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case k.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case E.LESS_THAN_SIGN:{this.state=k.TAG_OPEN;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.NULL:{this._err(M.unexpectedNullCharacter),this._emitCodePoint(t);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case E.AMPERSAND:{this._startCharacterReference();break}case E.LESS_THAN_SIGN:{this.state=k.RCDATA_LESS_THAN_SIGN;break}case E.NULL:{this._err(M.unexpectedNullCharacter),this._emitChars(Ne);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case E.LESS_THAN_SIGN:{this.state=k.RAWTEXT_LESS_THAN_SIGN;break}case E.NULL:{this._err(M.unexpectedNullCharacter),this._emitChars(Ne);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case E.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_LESS_THAN_SIGN;break}case E.NULL:{this._err(M.unexpectedNullCharacter),this._emitChars(Ne);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case E.NULL:{this._err(M.unexpectedNullCharacter),this._emitChars(Ne);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Dt(t))this._createStartTagToken(),this.state=k.TAG_NAME,this._stateTagName(t);else switch(t){case E.EXCLAMATION_MARK:{this.state=k.MARKUP_DECLARATION_OPEN;break}case E.SOLIDUS:{this.state=k.END_TAG_OPEN;break}case E.QUESTION_MARK:{this._err(M.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t);break}case E.EOF:{this._err(M.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(M.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=k.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Dt(t))this._createEndTagToken(),this.state=k.TAG_NAME,this._stateTagName(t);else switch(t){case E.GREATER_THAN_SIGN:{this._err(M.missingEndTagName),this.state=k.DATA;break}case E.EOF:{this._err(M.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(M.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=k.BEFORE_ATTRIBUTE_NAME;break}case E.SOLIDUS:{this.state=k.SELF_CLOSING_START_TAG;break}case E.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentTagToken();break}case E.NULL:{this._err(M.unexpectedNullCharacter),n.tagName+=Ne;break}case E.EOF:{this._err(M.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(zn(t)?fr(t):t)}}_stateRcdataLessThanSign(t){t===E.SOLIDUS?this.state=k.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=k.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Dt(t)?(this.state=k.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=k.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=k.BEFORE_ATTRIBUTE_NAME,!1;case E.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=k.SELF_CLOSING_START_TAG,!1;case E.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=k.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===E.SOLIDUS?this.state=k.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Dt(t)?(this.state=k.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case E.SOLIDUS:{this.state=k.SCRIPT_DATA_END_TAG_OPEN;break}case E.EXCLAMATION_MARK:{this.state=k.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=k.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Dt(t)?(this.state=k.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===E.HYPHEN_MINUS?(this.state=k.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===E.HYPHEN_MINUS?(this.state=k.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case E.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case E.NULL:{this._err(M.unexpectedNullCharacter),this._emitChars(Ne);break}case E.EOF:{this._err(M.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case E.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case E.NULL:{this._err(M.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_ESCAPED,this._emitChars(Ne);break}case E.EOF:{this._err(M.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case E.HYPHEN_MINUS:{this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case E.GREATER_THAN_SIGN:{this.state=k.SCRIPT_DATA,this._emitChars(">");break}case E.NULL:{this._err(M.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_ESCAPED,this._emitChars(Ne);break}case E.EOF:{this._err(M.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===E.SOLIDUS?this.state=k.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Dt(t)?(this._emitChars("<"),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Dt(t)?(this.state=k.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(We.SCRIPT,!1)&&Ps(this.preprocessor.peek(We.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<We.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case E.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case E.NULL:{this._err(M.unexpectedNullCharacter),this._emitChars(Ne);break}case E.EOF:{this._err(M.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case E.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case E.NULL:{this._err(M.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ne);break}case E.EOF:{this._err(M.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case E.HYPHEN_MINUS:{this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case E.GREATER_THAN_SIGN:{this.state=k.SCRIPT_DATA,this._emitChars(">");break}case E.NULL:{this._err(M.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Ne);break}case E.EOF:{this._err(M.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===E.SOLIDUS?(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(We.SCRIPT,!1)&&Ps(this.preprocessor.peek(We.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<We.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=k.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.SOLIDUS:case E.GREATER_THAN_SIGN:case E.EOF:{this.state=k.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case E.EQUALS_SIGN:{this._err(M.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=k.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=k.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:case E.SOLIDUS:case E.GREATER_THAN_SIGN:case E.EOF:{this._leaveAttrName(),this.state=k.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case E.EQUALS_SIGN:{this._leaveAttrName(),this.state=k.BEFORE_ATTRIBUTE_VALUE;break}case E.QUOTATION_MARK:case E.APOSTROPHE:case E.LESS_THAN_SIGN:{this._err(M.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case E.NULL:{this._err(M.unexpectedNullCharacter),this.currentAttr.name+=Ne;break}default:this.currentAttr.name+=String.fromCodePoint(zn(t)?fr(t):t)}}_stateAfterAttributeName(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.SOLIDUS:{this.state=k.SELF_CLOSING_START_TAG;break}case E.EQUALS_SIGN:{this.state=k.BEFORE_ATTRIBUTE_VALUE;break}case E.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentTagToken();break}case E.EOF:{this._err(M.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=k.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:{this.state=k.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this.state=k.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(M.missingAttributeValue),this.state=k.DATA,this.emitCurrentTagToken();break}default:this.state=k.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case E.QUOTATION_MARK:{this.state=k.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.NULL:{this._err(M.unexpectedNullCharacter),this.currentAttr.value+=Ne;break}case E.EOF:{this._err(M.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case E.APOSTROPHE:{this.state=k.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.NULL:{this._err(M.unexpectedNullCharacter),this.currentAttr.value+=Ne;break}case E.EOF:{this._err(M.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this._leaveAttrValue(),this.state=k.BEFORE_ATTRIBUTE_NAME;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=k.DATA,this.emitCurrentTagToken();break}case E.NULL:{this._err(M.unexpectedNullCharacter),this.currentAttr.value+=Ne;break}case E.QUOTATION_MARK:case E.APOSTROPHE:case E.LESS_THAN_SIGN:case E.EQUALS_SIGN:case E.GRAVE_ACCENT:{this._err(M.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case E.EOF:{this._err(M.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this._leaveAttrValue(),this.state=k.BEFORE_ATTRIBUTE_NAME;break}case E.SOLIDUS:{this._leaveAttrValue(),this.state=k.SELF_CLOSING_START_TAG;break}case E.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=k.DATA,this.emitCurrentTagToken();break}case E.EOF:{this._err(M.eofInTag),this._emitEOFToken();break}default:this._err(M.missingWhitespaceBetweenAttributes),this.state=k.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case E.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=k.DATA,this.emitCurrentTagToken();break}case E.EOF:{this._err(M.eofInTag),this._emitEOFToken();break}default:this._err(M.unexpectedSolidusInTag),this.state=k.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case E.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentComment(n);break}case E.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case E.NULL:{this._err(M.unexpectedNullCharacter),n.data+=Ne;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(We.DASH_DASH,!0)?(this._createCommentToken(We.DASH_DASH.length+1),this.state=k.COMMENT_START):this._consumeSequenceIfMatch(We.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(We.DOCTYPE.length+1),this.state=k.DOCTYPE):this._consumeSequenceIfMatch(We.CDATA_START,!0)?this.inForeignNode?this.state=k.CDATA_SECTION:(this._err(M.cdataInHtmlContent),this._createCommentToken(We.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=k.BOGUS_COMMENT):this._ensureHibernation()||(this._err(M.incorrectlyOpenedComment),this._createCommentToken(2),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case E.HYPHEN_MINUS:{this.state=k.COMMENT_START_DASH;break}case E.GREATER_THAN_SIGN:{this._err(M.abruptClosingOfEmptyComment),this.state=k.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=k.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{this.state=k.COMMENT_END;break}case E.GREATER_THAN_SIGN:{this._err(M.abruptClosingOfEmptyComment),this.state=k.DATA,this.emitCurrentComment(n);break}case E.EOF:{this._err(M.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=k.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{this.state=k.COMMENT_END_DASH;break}case E.LESS_THAN_SIGN:{n.data+="<",this.state=k.COMMENT_LESS_THAN_SIGN;break}case E.NULL:{this._err(M.unexpectedNullCharacter),n.data+=Ne;break}case E.EOF:{this._err(M.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case E.EXCLAMATION_MARK:{n.data+="!",this.state=k.COMMENT_LESS_THAN_SIGN_BANG;break}case E.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=k.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===E.HYPHEN_MINUS?this.state=k.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=k.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===E.HYPHEN_MINUS?this.state=k.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=k.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==E.GREATER_THAN_SIGN&&t!==E.EOF&&this._err(M.nestedComment),this.state=k.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{this.state=k.COMMENT_END;break}case E.EOF:{this._err(M.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=k.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case E.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentComment(n);break}case E.EXCLAMATION_MARK:{this.state=k.COMMENT_END_BANG;break}case E.HYPHEN_MINUS:{n.data+="-";break}case E.EOF:{this._err(M.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=k.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{n.data+="--!",this.state=k.COMMENT_END_DASH;break}case E.GREATER_THAN_SIGN:{this._err(M.incorrectlyClosedComment),this.state=k.DATA,this.emitCurrentComment(n);break}case E.EOF:{this._err(M.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=k.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_NAME;break}case E.GREATER_THAN_SIGN:{this.state=k.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case E.EOF:{this._err(M.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(M.missingWhitespaceBeforeDoctypeName),this.state=k.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(zn(t))this._createDoctypeToken(String.fromCharCode(fr(t))),this.state=k.DOCTYPE_NAME;else switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.NULL:{this._err(M.unexpectedNullCharacter),this._createDoctypeToken(Ne),this.state=k.DOCTYPE_NAME;break}case E.GREATER_THAN_SIGN:{this._err(M.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case E.EOF:{this._err(M.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=k.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=k.AFTER_DOCTYPE_NAME;break}case E.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case E.NULL:{this._err(M.unexpectedNullCharacter),n.name+=Ne;break}case E.EOF:{this._err(M.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(zn(t)?fr(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(M.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(We.PUBLIC,!1)?this.state=k.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(We.SYSTEM,!1)?this.state=k.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(M.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case E.QUOTATION_MARK:{this._err(M.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this._err(M.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(M.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(M.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(M.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:{n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(M.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(M.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(M.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case E.QUOTATION_MARK:{this.state=k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case E.NULL:{this._err(M.unexpectedNullCharacter),n.publicId+=Ne;break}case E.GREATER_THAN_SIGN:{this._err(M.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case E.EOF:{this._err(M.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case E.APOSTROPHE:{this.state=k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case E.NULL:{this._err(M.unexpectedNullCharacter),n.publicId+=Ne;break}case E.GREATER_THAN_SIGN:{this._err(M.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case E.EOF:{this._err(M.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=k.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case E.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case E.QUOTATION_MARK:{this._err(M.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this._err(M.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.EOF:{this._err(M.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(M.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case E.QUOTATION_MARK:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.EOF:{this._err(M.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(M.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case E.QUOTATION_MARK:{this._err(M.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this._err(M.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(M.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(M.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(M.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(M.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(M.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(M.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case E.QUOTATION_MARK:{this.state=k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case E.NULL:{this._err(M.unexpectedNullCharacter),n.systemId+=Ne;break}case E.GREATER_THAN_SIGN:{this._err(M.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case E.EOF:{this._err(M.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case E.APOSTROPHE:{this.state=k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case E.NULL:{this._err(M.unexpectedNullCharacter),n.systemId+=Ne;break}case E.GREATER_THAN_SIGN:{this._err(M.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case E.EOF:{this._err(M.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case E.EOF:{this._err(M.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(M.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case E.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case E.NULL:{this._err(M.unexpectedNullCharacter);break}case E.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case E.RIGHT_SQUARE_BRACKET:{this.state=k.CDATA_SECTION_BRACKET;break}case E.EOF:{this._err(M.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===E.RIGHT_SQUARE_BRACKET?this.state=k.CDATA_SECTION_END:(this._emitChars("]"),this.state=k.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case E.GREATER_THAN_SIGN:{this.state=k.DATA;break}case E.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=k.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(E.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Rs(this.preprocessor.peek(1))?k.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Rs(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===E.SEMICOLON&&this._err(M.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const $l=new Set([c.DD,c.DT,c.LI,c.OPTGROUP,c.OPTION,c.P,c.RB,c.RP,c.RT,c.RTC]),Ds=new Set([...$l,c.CAPTION,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR]),Nr=new Set([c.APPLET,c.CAPTION,c.HTML,c.MARQUEE,c.OBJECT,c.TABLE,c.TD,c.TEMPLATE,c.TH]),bp=new Set([...Nr,c.OL,c.UL]),Ep=new Set([...Nr,c.BUTTON]),Ms=new Set([c.ANNOTATION_XML,c.MI,c.MN,c.MO,c.MS,c.MTEXT]),Os=new Set([c.DESC,c.FOREIGN_OBJECT,c.TITLE]),Tp=new Set([c.TR,c.TEMPLATE,c.HTML]),kp=new Set([c.TBODY,c.TFOOT,c.THEAD,c.TEMPLATE,c.HTML]),xp=new Set([c.TABLE,c.TEMPLATE,c.HTML]),yp=new Set([c.TD,c.TH]);class Ap{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=c.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===c.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===H.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==H.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(qi,H.HTML)}popUntilTableCellPopped(){this.popUntilPopped(yp,H.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(xp,H.HTML)}clearBackToTableBodyContext(){this.clearBackTo(kp,H.HTML)}clearBackToTableRowContext(){this.clearBackTo(Tp,H.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===c.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===c.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case H.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case H.SVG:{if(Os.has(i))return!1;break}case H.MATHML:{if(Ms.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Nr)}hasInListItemScope(t){return this.hasInDynamicScope(t,bp)}hasInButtonScope(t){return this.hasInDynamicScope(t,Ep)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case H.HTML:{if(qi.has(n))return!0;if(Nr.has(n))return!1;break}case H.SVG:{if(Os.has(n))return!1;break}case H.MATHML:{if(Ms.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===H.HTML)switch(this.tagIDs[n]){case t:return!0;case c.TABLE:case c.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===H.HTML)switch(this.tagIDs[t]){case c.TBODY:case c.THEAD:case c.TFOOT:return!0;case c.TABLE:case c.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===H.HTML)switch(this.tagIDs[n]){case t:return!0;case c.OPTION:case c.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&$l.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Ds.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Ds.has(this.currentTagId);)this.pop()}}const mi=3;var Tt;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Tt||(Tt={}));const Fs={type:Tt.Marker};class Cp{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const l=this.entries[o];if(l.type===Tt.Marker)break;const{element:u}=l;if(this.treeAdapter.getTagName(u)===a&&this.treeAdapter.getNamespaceURI(u)===s){const d=this.treeAdapter.getAttrList(u);d.length===i&&r.push({idx:o,attrs:d})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<mi)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<mi)return;const i=new Map(n.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(l=>i.get(l.name)===l.value)&&(a+=1,a>=mi&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Fs)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Tt.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Tt.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Fs);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Tt.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Tt.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Tt.Element&&n.element===t)}}const Mt={createDocument(){return{nodeName:"#document",mode:it.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Mt.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Mt.isTextNode(n)){n.value+=t;return}}Mt.appendChild(e,Mt.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Mt.isTextNode(r)?r.value+=t:Mt.insertBefore(e,Mt.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Yl="html",_p="about:legacy-compat",Sp="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Gl=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],wp=[...Gl,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Ip=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Wl=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Np=[...Wl,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Bs(e,t){return t.some(n=>e.startsWith(n))}function vp(e){return e.name===Yl&&e.publicId===null&&(e.systemId===null||e.systemId===_p)}function Lp(e){if(e.name!==Yl)return it.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Sp)return it.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Ip.has(n))return it.QUIRKS;let r=t===null?wp:Gl;if(Bs(n,r))return it.QUIRKS;if(r=t===null?Wl:Np,Bs(n,r))return it.LIMITED_QUIRKS}return it.NO_QUIRKS}const zs={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Rp="definitionurl",Pp="definitionURL",Dp=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Mp=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:H.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:H.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:H.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:H.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:H.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:H.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:H.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:H.XML}],["xml:space",{prefix:"xml",name:"space",namespace:H.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:H.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:H.XMLNS}]]),Op=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Fp=new Set([c.B,c.BIG,c.BLOCKQUOTE,c.BODY,c.BR,c.CENTER,c.CODE,c.DD,c.DIV,c.DL,c.DT,c.EM,c.EMBED,c.H1,c.H2,c.H3,c.H4,c.H5,c.H6,c.HEAD,c.HR,c.I,c.IMG,c.LI,c.LISTING,c.MENU,c.META,c.NOBR,c.OL,c.P,c.PRE,c.RUBY,c.S,c.SMALL,c.SPAN,c.STRONG,c.STRIKE,c.SUB,c.SUP,c.TABLE,c.TT,c.U,c.UL,c.VAR]);function Bp(e){const t=e.tagID;return t===c.FONT&&e.attrs.some(({name:r})=>r===Zt.COLOR||r===Zt.SIZE||r===Zt.FACE)||Fp.has(t)}function Kl(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Rp){e.attrs[t].name=Pp;break}}function Ql(e){for(let t=0;t<e.attrs.length;t++){const n=Dp.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Na(e){for(let t=0;t<e.attrs.length;t++){const n=Mp.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function zp(e){const t=Op.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=xn(e.tagName))}function jp(e,t){return t===H.MATHML&&(e===c.MI||e===c.MO||e===c.MN||e===c.MS||e===c.MTEXT)}function Hp(e,t,n){if(t===H.MATHML&&e===c.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Zt.ENCODING){const i=n[r].value.toLowerCase();return i===zs.TEXT_HTML||i===zs.APPLICATION_XML}}return t===H.SVG&&(e===c.FOREIGN_OBJECT||e===c.DESC||e===c.TITLE)}function Up(e,t,n,r){return(!r||r===H.HTML)&&Hp(e,t,n)||(!r||r===H.MATHML)&&jp(e,t)}const qp="hidden",Vp=8,$p=3;var C;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(C||(C={}));const Yp={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Xl=new Set([c.TABLE,c.TBODY,c.TFOOT,c.THEAD,c.TR]),js={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Mt,onParseError:null};class Hs{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=C.INITIAL,this.originalInsertionMode=C.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...js,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new gp(this.options,this),this.activeFormattingElements=new Cp(this.treeAdapter),this.fragmentContextID=r?xn(this.treeAdapter.getTagName(r)):c.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Ap(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...js,...n};t??(t=r.treeAdapter.createElement(v.TEMPLATE,H.HTML,[]));const i=r.treeAdapter.createElement("documentmock",H.HTML,[]),a=new this(r,i,t);return a.fragmentContextID===c.TEMPLATE&&a.tmplInsertionModeStack.unshift(C.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const a=(i=t.location)!==null&&i!==void 0?i:Yp,s={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(t,n,r){var i,a;(a=(i=this.treeAdapter).onItemPush)===null||a===void 0||a.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===H.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,H.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=C.TEXT}switchToPlaintextParsing(){this.insertionMode=C.TEXT,this.originalInsertionMode=C.IN_BODY,this.tokenizer.state=Re.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===v.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==H.HTML))switch(this.fragmentContextID){case c.TITLE:case c.TEXTAREA:{this.tokenizer.state=Re.RCDATA;break}case c.STYLE:case c.XMP:case c.IFRAME:case c.NOEMBED:case c.NOFRAMES:case c.NOSCRIPT:{this.tokenizer.state=Re.RAWTEXT;break}case c.SCRIPT:{this.tokenizer.state=Re.SCRIPT_DATA;break}case c.PLAINTEXT:{this.tokenizer.state=Re.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,H.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,H.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(v.HTML,H.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,c.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:u,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:u,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===oe.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===c.SVG&&this.treeAdapter.getTagName(n)===v.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===H.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===c.MGLYPH||t.tagID===c.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,H.HTML)}_processToken(t){switch(t.type){case oe.CHARACTER:{this.onCharacter(t);break}case oe.NULL_CHARACTER:{this.onNullCharacter(t);break}case oe.COMMENT:{this.onComment(t);break}case oe.DOCTYPE:{this.onDoctype(t);break}case oe.START_TAG:{this._processStartTag(t);break}case oe.END_TAG:{this.onEndTag(t);break}case oe.EOF:{this.onEof(t);break}case oe.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return Up(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Tt.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=C.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(c.P),this.openElements.popUntilTagNamePopped(c.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case c.TR:{this.insertionMode=C.IN_ROW;return}case c.TBODY:case c.THEAD:case c.TFOOT:{this.insertionMode=C.IN_TABLE_BODY;return}case c.CAPTION:{this.insertionMode=C.IN_CAPTION;return}case c.COLGROUP:{this.insertionMode=C.IN_COLUMN_GROUP;return}case c.TABLE:{this.insertionMode=C.IN_TABLE;return}case c.BODY:{this.insertionMode=C.IN_BODY;return}case c.FRAMESET:{this.insertionMode=C.IN_FRAMESET;return}case c.SELECT:{this._resetInsertionModeForSelect(t);return}case c.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case c.HTML:{this.insertionMode=this.headElement?C.AFTER_HEAD:C.BEFORE_HEAD;return}case c.TD:case c.TH:{if(t>0){this.insertionMode=C.IN_CELL;return}break}case c.HEAD:{if(t>0){this.insertionMode=C.IN_HEAD;return}break}}this.insertionMode=C.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===c.TEMPLATE)break;if(r===c.TABLE){this.insertionMode=C.IN_SELECT_IN_TABLE;return}}this.insertionMode=C.IN_SELECT}_isElementCausesFosterParenting(t){return Xl.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case c.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===H.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case c.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return hp[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){yg(this,t);return}switch(this.insertionMode){case C.INITIAL:{vn(this,t);break}case C.BEFORE_HTML:{Vn(this,t);break}case C.BEFORE_HEAD:{$n(this,t);break}case C.IN_HEAD:{Yn(this,t);break}case C.IN_HEAD_NO_SCRIPT:{Gn(this,t);break}case C.AFTER_HEAD:{Wn(this,t);break}case C.IN_BODY:case C.IN_CAPTION:case C.IN_CELL:case C.IN_TEMPLATE:{Jl(this,t);break}case C.TEXT:case C.IN_SELECT:case C.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case C.IN_TABLE:case C.IN_TABLE_BODY:case C.IN_ROW:{fi(this,t);break}case C.IN_TABLE_TEXT:{au(this,t);break}case C.IN_COLUMN_GROUP:{vr(this,t);break}case C.AFTER_BODY:{Lr(this,t);break}case C.AFTER_AFTER_BODY:{Cr(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){xg(this,t);return}switch(this.insertionMode){case C.INITIAL:{vn(this,t);break}case C.BEFORE_HTML:{Vn(this,t);break}case C.BEFORE_HEAD:{$n(this,t);break}case C.IN_HEAD:{Yn(this,t);break}case C.IN_HEAD_NO_SCRIPT:{Gn(this,t);break}case C.AFTER_HEAD:{Wn(this,t);break}case C.TEXT:{this._insertCharacters(t);break}case C.IN_TABLE:case C.IN_TABLE_BODY:case C.IN_ROW:{fi(this,t);break}case C.IN_COLUMN_GROUP:{vr(this,t);break}case C.AFTER_BODY:{Lr(this,t);break}case C.AFTER_AFTER_BODY:{Cr(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Vi(this,t);return}switch(this.insertionMode){case C.INITIAL:case C.BEFORE_HTML:case C.BEFORE_HEAD:case C.IN_HEAD:case C.IN_HEAD_NO_SCRIPT:case C.AFTER_HEAD:case C.IN_BODY:case C.IN_TABLE:case C.IN_CAPTION:case C.IN_COLUMN_GROUP:case C.IN_TABLE_BODY:case C.IN_ROW:case C.IN_CELL:case C.IN_SELECT:case C.IN_SELECT_IN_TABLE:case C.IN_TEMPLATE:case C.IN_FRAMESET:case C.AFTER_FRAMESET:{Vi(this,t);break}case C.IN_TABLE_TEXT:{Ln(this,t);break}case C.AFTER_BODY:{Jp(this,t);break}case C.AFTER_AFTER_BODY:case C.AFTER_AFTER_FRAMESET:{e0(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case C.INITIAL:{t0(this,t);break}case C.BEFORE_HEAD:case C.IN_HEAD:case C.IN_HEAD_NO_SCRIPT:case C.AFTER_HEAD:{this._err(t,M.misplacedDoctype);break}case C.IN_TABLE_TEXT:{Ln(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,M.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Ag(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case C.INITIAL:{vn(this,t);break}case C.BEFORE_HTML:{n0(this,t);break}case C.BEFORE_HEAD:{i0(this,t);break}case C.IN_HEAD:{ht(this,t);break}case C.IN_HEAD_NO_SCRIPT:{o0(this,t);break}case C.AFTER_HEAD:{u0(this,t);break}case C.IN_BODY:{je(this,t);break}case C.IN_TABLE:{gn(this,t);break}case C.IN_TABLE_TEXT:{Ln(this,t);break}case C.IN_CAPTION:{ag(this,t);break}case C.IN_COLUMN_GROUP:{Ra(this,t);break}case C.IN_TABLE_BODY:{Qr(this,t);break}case C.IN_ROW:{Xr(this,t);break}case C.IN_CELL:{lg(this,t);break}case C.IN_SELECT:{lu(this,t);break}case C.IN_SELECT_IN_TABLE:{cg(this,t);break}case C.IN_TEMPLATE:{hg(this,t);break}case C.AFTER_BODY:{fg(this,t);break}case C.IN_FRAMESET:{pg(this,t);break}case C.AFTER_FRAMESET:{bg(this,t);break}case C.AFTER_AFTER_BODY:{Tg(this,t);break}case C.AFTER_AFTER_FRAMESET:{kg(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Cg(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case C.INITIAL:{vn(this,t);break}case C.BEFORE_HTML:{r0(this,t);break}case C.BEFORE_HEAD:{a0(this,t);break}case C.IN_HEAD:{s0(this,t);break}case C.IN_HEAD_NO_SCRIPT:{l0(this,t);break}case C.AFTER_HEAD:{c0(this,t);break}case C.IN_BODY:{Kr(this,t);break}case C.TEXT:{K0(this,t);break}case C.IN_TABLE:{Jn(this,t);break}case C.IN_TABLE_TEXT:{Ln(this,t);break}case C.IN_CAPTION:{sg(this,t);break}case C.IN_COLUMN_GROUP:{og(this,t);break}case C.IN_TABLE_BODY:{$i(this,t);break}case C.IN_ROW:{ou(this,t);break}case C.IN_CELL:{ug(this,t);break}case C.IN_SELECT:{uu(this,t);break}case C.IN_SELECT_IN_TABLE:{dg(this,t);break}case C.IN_TEMPLATE:{mg(this,t);break}case C.AFTER_BODY:{du(this,t);break}case C.IN_FRAMESET:{gg(this,t);break}case C.AFTER_FRAMESET:{Eg(this,t);break}case C.AFTER_AFTER_BODY:{Cr(this,t);break}}}onEof(t){switch(this.insertionMode){case C.INITIAL:{vn(this,t);break}case C.BEFORE_HTML:{Vn(this,t);break}case C.BEFORE_HEAD:{$n(this,t);break}case C.IN_HEAD:{Yn(this,t);break}case C.IN_HEAD_NO_SCRIPT:{Gn(this,t);break}case C.AFTER_HEAD:{Wn(this,t);break}case C.IN_BODY:case C.IN_TABLE:case C.IN_CAPTION:case C.IN_COLUMN_GROUP:case C.IN_TABLE_BODY:case C.IN_ROW:case C.IN_CELL:case C.IN_SELECT:case C.IN_SELECT_IN_TABLE:{ru(this,t);break}case C.TEXT:{Q0(this,t);break}case C.IN_TABLE_TEXT:{Ln(this,t);break}case C.IN_TEMPLATE:{cu(this,t);break}case C.AFTER_BODY:case C.IN_FRAMESET:case C.AFTER_FRAMESET:case C.AFTER_AFTER_BODY:case C.AFTER_AFTER_FRAMESET:{La(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===E.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case C.IN_HEAD:case C.IN_HEAD_NO_SCRIPT:case C.AFTER_HEAD:case C.TEXT:case C.IN_COLUMN_GROUP:case C.IN_SELECT:case C.IN_SELECT_IN_TABLE:case C.IN_FRAMESET:case C.AFTER_FRAMESET:{this._insertCharacters(t);break}case C.IN_BODY:case C.IN_CAPTION:case C.IN_CELL:case C.IN_TEMPLATE:case C.AFTER_BODY:case C.AFTER_AFTER_BODY:case C.AFTER_AFTER_FRAMESET:{Zl(this,t);break}case C.IN_TABLE:case C.IN_TABLE_BODY:case C.IN_ROW:{fi(this,t);break}case C.IN_TABLE_TEXT:{iu(this,t);break}}}}function Gp(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):nu(e,t),n}function Wp(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function Kp(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),l=o&&a>=$p;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=Qp(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Qp(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Xp(e,t,n){const r=e.treeAdapter.getTagName(t),i=xn(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===c.TEMPLATE&&a===H.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Zp(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function va(e,t){for(let n=0;n<Vp;n++){const r=Gp(e,t);if(!r)break;const i=Wp(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const a=Kp(e,i,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&Xp(e,s,a),Zp(e,i,r)}}function Vi(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Jp(e,t){e._appendCommentNode(t,e.openElements.items[0])}function e0(e,t){e._appendCommentNode(t,e.document)}function La(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function t0(e,t){e._setDocumentType(t);const n=t.forceQuirks?it.QUIRKS:Lp(t);vp(t)||e._err(t,M.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=C.BEFORE_HTML}function vn(e,t){e._err(t,M.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,it.QUIRKS),e.insertionMode=C.BEFORE_HTML,e._processToken(t)}function n0(e,t){t.tagID===c.HTML?(e._insertElement(t,H.HTML),e.insertionMode=C.BEFORE_HEAD):Vn(e,t)}function r0(e,t){const n=t.tagID;(n===c.HTML||n===c.HEAD||n===c.BODY||n===c.BR)&&Vn(e,t)}function Vn(e,t){e._insertFakeRootElement(),e.insertionMode=C.BEFORE_HEAD,e._processToken(t)}function i0(e,t){switch(t.tagID){case c.HTML:{je(e,t);break}case c.HEAD:{e._insertElement(t,H.HTML),e.headElement=e.openElements.current,e.insertionMode=C.IN_HEAD;break}default:$n(e,t)}}function a0(e,t){const n=t.tagID;n===c.HEAD||n===c.BODY||n===c.HTML||n===c.BR?$n(e,t):e._err(t,M.endTagWithoutMatchingOpenElement)}function $n(e,t){e._insertFakeElement(v.HEAD,c.HEAD),e.headElement=e.openElements.current,e.insertionMode=C.IN_HEAD,e._processToken(t)}function ht(e,t){switch(t.tagID){case c.HTML:{je(e,t);break}case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:{e._appendElement(t,H.HTML),t.ackSelfClosing=!0;break}case c.TITLE:{e._switchToTextParsing(t,Re.RCDATA);break}case c.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Re.RAWTEXT):(e._insertElement(t,H.HTML),e.insertionMode=C.IN_HEAD_NO_SCRIPT);break}case c.NOFRAMES:case c.STYLE:{e._switchToTextParsing(t,Re.RAWTEXT);break}case c.SCRIPT:{e._switchToTextParsing(t,Re.SCRIPT_DATA);break}case c.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=C.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(C.IN_TEMPLATE);break}case c.HEAD:{e._err(t,M.misplacedStartTagForHeadElement);break}default:Yn(e,t)}}function s0(e,t){switch(t.tagID){case c.HEAD:{e.openElements.pop(),e.insertionMode=C.AFTER_HEAD;break}case c.BODY:case c.BR:case c.HTML:{Yn(e,t);break}case c.TEMPLATE:{rn(e,t);break}default:e._err(t,M.endTagWithoutMatchingOpenElement)}}function rn(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==c.TEMPLATE&&e._err(t,M.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,M.endTagWithoutMatchingOpenElement)}function Yn(e,t){e.openElements.pop(),e.insertionMode=C.AFTER_HEAD,e._processToken(t)}function o0(e,t){switch(t.tagID){case c.HTML:{je(e,t);break}case c.BASEFONT:case c.BGSOUND:case c.HEAD:case c.LINK:case c.META:case c.NOFRAMES:case c.STYLE:{ht(e,t);break}case c.NOSCRIPT:{e._err(t,M.nestedNoscriptInHead);break}default:Gn(e,t)}}function l0(e,t){switch(t.tagID){case c.NOSCRIPT:{e.openElements.pop(),e.insertionMode=C.IN_HEAD;break}case c.BR:{Gn(e,t);break}default:e._err(t,M.endTagWithoutMatchingOpenElement)}}function Gn(e,t){const n=t.type===oe.EOF?M.openElementsLeftAfterEof:M.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=C.IN_HEAD,e._processToken(t)}function u0(e,t){switch(t.tagID){case c.HTML:{je(e,t);break}case c.BODY:{e._insertElement(t,H.HTML),e.framesetOk=!1,e.insertionMode=C.IN_BODY;break}case c.FRAMESET:{e._insertElement(t,H.HTML),e.insertionMode=C.IN_FRAMESET;break}case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:{e._err(t,M.abandonedHeadElementChild),e.openElements.push(e.headElement,c.HEAD),ht(e,t),e.openElements.remove(e.headElement);break}case c.HEAD:{e._err(t,M.misplacedStartTagForHeadElement);break}default:Wn(e,t)}}function c0(e,t){switch(t.tagID){case c.BODY:case c.HTML:case c.BR:{Wn(e,t);break}case c.TEMPLATE:{rn(e,t);break}default:e._err(t,M.endTagWithoutMatchingOpenElement)}}function Wn(e,t){e._insertFakeElement(v.BODY,c.BODY),e.insertionMode=C.IN_BODY,Wr(e,t)}function Wr(e,t){switch(t.type){case oe.CHARACTER:{Jl(e,t);break}case oe.WHITESPACE_CHARACTER:{Zl(e,t);break}case oe.COMMENT:{Vi(e,t);break}case oe.START_TAG:{je(e,t);break}case oe.END_TAG:{Kr(e,t);break}case oe.EOF:{ru(e,t);break}}}function Zl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Jl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function d0(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function h0(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function m0(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,H.HTML),e.insertionMode=C.IN_FRAMESET)}function f0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,H.HTML)}function p0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&qi.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,H.HTML)}function g0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,H.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function b0(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,H.HTML),n||(e.formElement=e.openElements.current))}function E0(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===c.LI&&i===c.LI||(n===c.DD||n===c.DT)&&(i===c.DD||i===c.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==c.ADDRESS&&i!==c.DIV&&i!==c.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,H.HTML)}function T0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,H.HTML),e.tokenizer.state=Re.PLAINTEXT}function k0(e,t){e.openElements.hasInScope(c.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,H.HTML),e.framesetOk=!1}function x0(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(v.A);n&&(va(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,H.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function y0(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,H.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function A0(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(c.NOBR)&&(va(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,H.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function C0(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,H.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function _0(e,t){e.treeAdapter.getDocumentMode(e.document)!==it.QUIRKS&&e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,H.HTML),e.framesetOk=!1,e.insertionMode=C.IN_TABLE}function eu(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,H.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function tu(e){const t=ql(e,Zt.TYPE);return t!=null&&t.toLowerCase()===qp}function S0(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,H.HTML),tu(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function w0(e,t){e._appendElement(t,H.HTML),t.ackSelfClosing=!0}function I0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._appendElement(t,H.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function N0(e,t){t.tagName=v.IMG,t.tagID=c.IMG,eu(e,t)}function v0(e,t){e._insertElement(t,H.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Re.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=C.TEXT}function L0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Re.RAWTEXT)}function R0(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Re.RAWTEXT)}function Us(e,t){e._switchToTextParsing(t,Re.RAWTEXT)}function P0(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,H.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===C.IN_TABLE||e.insertionMode===C.IN_CAPTION||e.insertionMode===C.IN_TABLE_BODY||e.insertionMode===C.IN_ROW||e.insertionMode===C.IN_CELL?C.IN_SELECT_IN_TABLE:C.IN_SELECT}function D0(e,t){e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,H.HTML)}function M0(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,H.HTML)}function O0(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(c.RTC),e._insertElement(t,H.HTML)}function F0(e,t){e._reconstructActiveFormattingElements(),Kl(t),Na(t),t.selfClosing?e._appendElement(t,H.MATHML):e._insertElement(t,H.MATHML),t.ackSelfClosing=!0}function B0(e,t){e._reconstructActiveFormattingElements(),Ql(t),Na(t),t.selfClosing?e._appendElement(t,H.SVG):e._insertElement(t,H.SVG),t.ackSelfClosing=!0}function qs(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,H.HTML)}function je(e,t){switch(t.tagID){case c.I:case c.S:case c.B:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.SMALL:case c.STRIKE:case c.STRONG:{y0(e,t);break}case c.A:{x0(e,t);break}case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:{p0(e,t);break}case c.P:case c.DL:case c.OL:case c.UL:case c.DIV:case c.DIR:case c.NAV:case c.MAIN:case c.MENU:case c.ASIDE:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.DETAILS:case c.ADDRESS:case c.ARTICLE:case c.SEARCH:case c.SECTION:case c.SUMMARY:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:{f0(e,t);break}case c.LI:case c.DD:case c.DT:{E0(e,t);break}case c.BR:case c.IMG:case c.WBR:case c.AREA:case c.EMBED:case c.KEYGEN:{eu(e,t);break}case c.HR:{I0(e,t);break}case c.RB:case c.RTC:{M0(e,t);break}case c.RT:case c.RP:{O0(e,t);break}case c.PRE:case c.LISTING:{g0(e,t);break}case c.XMP:{L0(e,t);break}case c.SVG:{B0(e,t);break}case c.HTML:{d0(e,t);break}case c.BASE:case c.LINK:case c.META:case c.STYLE:case c.TITLE:case c.SCRIPT:case c.BGSOUND:case c.BASEFONT:case c.TEMPLATE:{ht(e,t);break}case c.BODY:{h0(e,t);break}case c.FORM:{b0(e,t);break}case c.NOBR:{A0(e,t);break}case c.MATH:{F0(e,t);break}case c.TABLE:{_0(e,t);break}case c.INPUT:{S0(e,t);break}case c.PARAM:case c.TRACK:case c.SOURCE:{w0(e,t);break}case c.IMAGE:{N0(e,t);break}case c.BUTTON:{k0(e,t);break}case c.APPLET:case c.OBJECT:case c.MARQUEE:{C0(e,t);break}case c.IFRAME:{R0(e,t);break}case c.SELECT:{P0(e,t);break}case c.OPTION:case c.OPTGROUP:{D0(e,t);break}case c.NOEMBED:case c.NOFRAMES:{Us(e,t);break}case c.FRAMESET:{m0(e,t);break}case c.TEXTAREA:{v0(e,t);break}case c.NOSCRIPT:{e.options.scriptingEnabled?Us(e,t):qs(e,t);break}case c.PLAINTEXT:{T0(e,t);break}case c.COL:case c.TH:case c.TD:case c.TR:case c.HEAD:case c.FRAME:case c.TBODY:case c.TFOOT:case c.THEAD:case c.CAPTION:case c.COLGROUP:break;default:qs(e,t)}}function z0(e,t){if(e.openElements.hasInScope(c.BODY)&&(e.insertionMode=C.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function j0(e,t){e.openElements.hasInScope(c.BODY)&&(e.insertionMode=C.AFTER_BODY,du(e,t))}function H0(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function U0(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(c.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(c.FORM):n&&e.openElements.remove(n))}function q0(e){e.openElements.hasInButtonScope(c.P)||e._insertFakeElement(v.P,c.P),e._closePElement()}function V0(e){e.openElements.hasInListItemScope(c.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(c.LI),e.openElements.popUntilTagNamePopped(c.LI))}function $0(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Y0(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function G0(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function W0(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(v.BR,c.BR),e.openElements.pop(),e.framesetOk=!1}function nu(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==c.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function Kr(e,t){switch(t.tagID){case c.A:case c.B:case c.I:case c.S:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.NOBR:case c.SMALL:case c.STRIKE:case c.STRONG:{va(e,t);break}case c.P:{q0(e);break}case c.DL:case c.UL:case c.OL:case c.DIR:case c.DIV:case c.NAV:case c.PRE:case c.MAIN:case c.MENU:case c.ASIDE:case c.BUTTON:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.ADDRESS:case c.ARTICLE:case c.DETAILS:case c.SEARCH:case c.SECTION:case c.SUMMARY:case c.LISTING:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:{H0(e,t);break}case c.LI:{V0(e);break}case c.DD:case c.DT:{$0(e,t);break}case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:{Y0(e);break}case c.BR:{W0(e);break}case c.BODY:{z0(e,t);break}case c.HTML:{j0(e,t);break}case c.FORM:{U0(e);break}case c.APPLET:case c.OBJECT:case c.MARQUEE:{G0(e,t);break}case c.TEMPLATE:{rn(e,t);break}default:nu(e,t)}}function ru(e,t){e.tmplInsertionModeStack.length>0?cu(e,t):La(e,t)}function K0(e,t){var n;t.tagID===c.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Q0(e,t){e._err(t,M.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function fi(e,t){if(e.openElements.currentTagId!==void 0&&Xl.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=C.IN_TABLE_TEXT,t.type){case oe.CHARACTER:{au(e,t);break}case oe.WHITESPACE_CHARACTER:{iu(e,t);break}}else ar(e,t)}function X0(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,H.HTML),e.insertionMode=C.IN_CAPTION}function Z0(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,H.HTML),e.insertionMode=C.IN_COLUMN_GROUP}function J0(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(v.COLGROUP,c.COLGROUP),e.insertionMode=C.IN_COLUMN_GROUP,Ra(e,t)}function eg(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,H.HTML),e.insertionMode=C.IN_TABLE_BODY}function tg(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(v.TBODY,c.TBODY),e.insertionMode=C.IN_TABLE_BODY,Qr(e,t)}function ng(e,t){e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function rg(e,t){tu(t)?e._appendElement(t,H.HTML):ar(e,t),t.ackSelfClosing=!0}function ig(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,H.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function gn(e,t){switch(t.tagID){case c.TD:case c.TH:case c.TR:{tg(e,t);break}case c.STYLE:case c.SCRIPT:case c.TEMPLATE:{ht(e,t);break}case c.COL:{J0(e,t);break}case c.FORM:{ig(e,t);break}case c.TABLE:{ng(e,t);break}case c.TBODY:case c.TFOOT:case c.THEAD:{eg(e,t);break}case c.INPUT:{rg(e,t);break}case c.CAPTION:{X0(e,t);break}case c.COLGROUP:{Z0(e,t);break}default:ar(e,t)}}function Jn(e,t){switch(t.tagID){case c.TABLE:{e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode());break}case c.TEMPLATE:{rn(e,t);break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:ar(e,t)}}function ar(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Wr(e,t),e.fosterParentingEnabled=n}function iu(e,t){e.pendingCharacterTokens.push(t)}function au(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Ln(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)ar(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const su=new Set([c.CAPTION,c.COL,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR]);function ag(e,t){const n=t.tagID;su.has(n)?e.openElements.hasInTableScope(c.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=C.IN_TABLE,gn(e,t)):je(e,t)}function sg(e,t){const n=t.tagID;switch(n){case c.CAPTION:case c.TABLE:{e.openElements.hasInTableScope(c.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=C.IN_TABLE,n===c.TABLE&&Jn(e,t));break}case c.BODY:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:Kr(e,t)}}function Ra(e,t){switch(t.tagID){case c.HTML:{je(e,t);break}case c.COL:{e._appendElement(t,H.HTML),t.ackSelfClosing=!0;break}case c.TEMPLATE:{ht(e,t);break}default:vr(e,t)}}function og(e,t){switch(t.tagID){case c.COLGROUP:{e.openElements.currentTagId===c.COLGROUP&&(e.openElements.pop(),e.insertionMode=C.IN_TABLE);break}case c.TEMPLATE:{rn(e,t);break}case c.COL:break;default:vr(e,t)}}function vr(e,t){e.openElements.currentTagId===c.COLGROUP&&(e.openElements.pop(),e.insertionMode=C.IN_TABLE,e._processToken(t))}function Qr(e,t){switch(t.tagID){case c.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,H.HTML),e.insertionMode=C.IN_ROW;break}case c.TH:case c.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(v.TR,c.TR),e.insertionMode=C.IN_ROW,Xr(e,t);break}case c.CAPTION:case c.COL:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE,gn(e,t));break}default:gn(e,t)}}function $i(e,t){const n=t.tagID;switch(t.tagID){case c.TBODY:case c.TFOOT:case c.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE);break}case c.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE,Jn(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TD:case c.TH:case c.TR:break;default:Jn(e,t)}}function Xr(e,t){switch(t.tagID){case c.TH:case c.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,H.HTML),e.insertionMode=C.IN_CELL,e.activeFormattingElements.insertMarker();break}case c.CAPTION:case c.COL:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:case c.TR:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE_BODY,Qr(e,t));break}default:gn(e,t)}}function ou(e,t){switch(t.tagID){case c.TR:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE_BODY);break}case c.TABLE:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE_BODY,$i(e,t));break}case c.TBODY:case c.TFOOT:case c.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(c.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE_BODY,$i(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TD:case c.TH:break;default:Jn(e,t)}}function lg(e,t){const n=t.tagID;su.has(n)?(e.openElements.hasInTableScope(c.TD)||e.openElements.hasInTableScope(c.TH))&&(e._closeTableCell(),Xr(e,t)):je(e,t)}function ug(e,t){const n=t.tagID;switch(n){case c.TD:case c.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=C.IN_ROW);break}case c.TABLE:case c.TBODY:case c.TFOOT:case c.THEAD:case c.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),ou(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:break;default:Kr(e,t)}}function lu(e,t){switch(t.tagID){case c.HTML:{je(e,t);break}case c.OPTION:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._insertElement(t,H.HTML);break}case c.OPTGROUP:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop(),e._insertElement(t,H.HTML);break}case c.HR:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop(),e._appendElement(t,H.HTML),t.ackSelfClosing=!0;break}case c.INPUT:case c.KEYGEN:case c.TEXTAREA:case c.SELECT:{e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),t.tagID!==c.SELECT&&e._processStartTag(t));break}case c.SCRIPT:case c.TEMPLATE:{ht(e,t);break}}}function uu(e,t){switch(t.tagID){case c.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===c.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===c.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop();break}case c.OPTION:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop();break}case c.SELECT:{e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode());break}case c.TEMPLATE:{rn(e,t);break}}}function cg(e,t){const n=t.tagID;n===c.CAPTION||n===c.TABLE||n===c.TBODY||n===c.TFOOT||n===c.THEAD||n===c.TR||n===c.TD||n===c.TH?(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e._processStartTag(t)):lu(e,t)}function dg(e,t){const n=t.tagID;n===c.CAPTION||n===c.TABLE||n===c.TBODY||n===c.TFOOT||n===c.THEAD||n===c.TR||n===c.TD||n===c.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e.onEndTag(t)):uu(e,t)}function hg(e,t){switch(t.tagID){case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:{ht(e,t);break}case c.CAPTION:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:{e.tmplInsertionModeStack[0]=C.IN_TABLE,e.insertionMode=C.IN_TABLE,gn(e,t);break}case c.COL:{e.tmplInsertionModeStack[0]=C.IN_COLUMN_GROUP,e.insertionMode=C.IN_COLUMN_GROUP,Ra(e,t);break}case c.TR:{e.tmplInsertionModeStack[0]=C.IN_TABLE_BODY,e.insertionMode=C.IN_TABLE_BODY,Qr(e,t);break}case c.TD:case c.TH:{e.tmplInsertionModeStack[0]=C.IN_ROW,e.insertionMode=C.IN_ROW,Xr(e,t);break}default:e.tmplInsertionModeStack[0]=C.IN_BODY,e.insertionMode=C.IN_BODY,je(e,t)}}function mg(e,t){t.tagID===c.TEMPLATE&&rn(e,t)}function cu(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):La(e,t)}function fg(e,t){t.tagID===c.HTML?je(e,t):Lr(e,t)}function du(e,t){var n;if(t.tagID===c.HTML){if(e.fragmentContext||(e.insertionMode=C.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===c.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Lr(e,t)}function Lr(e,t){e.insertionMode=C.IN_BODY,Wr(e,t)}function pg(e,t){switch(t.tagID){case c.HTML:{je(e,t);break}case c.FRAMESET:{e._insertElement(t,H.HTML);break}case c.FRAME:{e._appendElement(t,H.HTML),t.ackSelfClosing=!0;break}case c.NOFRAMES:{ht(e,t);break}}}function gg(e,t){t.tagID===c.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==c.FRAMESET&&(e.insertionMode=C.AFTER_FRAMESET))}function bg(e,t){switch(t.tagID){case c.HTML:{je(e,t);break}case c.NOFRAMES:{ht(e,t);break}}}function Eg(e,t){t.tagID===c.HTML&&(e.insertionMode=C.AFTER_AFTER_FRAMESET)}function Tg(e,t){t.tagID===c.HTML?je(e,t):Cr(e,t)}function Cr(e,t){e.insertionMode=C.IN_BODY,Wr(e,t)}function kg(e,t){switch(t.tagID){case c.HTML:{je(e,t);break}case c.NOFRAMES:{ht(e,t);break}}}function xg(e,t){t.chars=Ne,e._insertCharacters(t)}function yg(e,t){e._insertCharacters(t),e.framesetOk=!1}function hu(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==H.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Ag(e,t){if(Bp(t))hu(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===H.MATHML?Kl(t):r===H.SVG&&(zp(t),Ql(t)),Na(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Cg(e,t){if(t.tagID===c.P||t.tagID===c.BR){hu(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===H.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}v.AREA,v.BASE,v.BASEFONT,v.BGSOUND,v.BR,v.COL,v.EMBED,v.FRAME,v.HR,v.IMG,v.INPUT,v.KEYGEN,v.LINK,v.META,v.PARAM,v.SOURCE,v.TRACK,v.WBR;const Zr=mu("end"),xt=mu("start");function mu(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function fu(e){const t=xt(e),n=Zr(e);if(t&&n)return{start:t,end:n}}const _g=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Sg=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Vs={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function pu(e,t){const n=Og(e),r=Bl("type",{handlers:{root:wg,element:Ig,text:Ng,comment:bu,doctype:vg,raw:Rg},unknown:Pg}),i={parser:n?new Hs(Vs):Hs.getFragmentParser(void 0,Vs),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),yn(i,xt());const a=n?i.parser.document:i.parser.getFragment(),s=Ff(a,{file:i.options.file});return i.stitches&&dt(s,"comment",function(o,l,u){const d=o;if(d.value.stitch&&u&&l!==void 0){const h=u.children;return h[l]=d.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function gu(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function wg(e,t){gu(e.children,t)}function Ig(e,t){Dg(e,t),gu(e.children,t),Mg(e,t)}function Ng(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:oe.CHARACTER,chars:e.value,location:sr(e)};yn(t,xt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function vg(e,t){const n={type:oe.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:sr(e)};yn(t,xt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Lg(e,t){t.stitches=!0;const n=Fg(e);if("children"in e&&"children"in n){const r=pu({type:"root",children:e.children},t.options);n.children=r.children}bu({type:"comment",value:{stitch:n}},t)}function bu(e,t){const n=e.value,r={type:oe.COMMENT,data:n,location:sr(e)};yn(t,xt(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Rg(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Eu(t,xt(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(_g,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function Pg(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))Lg(n,t);else{let r="";throw Sg.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function yn(e,t){Eu(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Re.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Eu(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function Dg(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Re.PLAINTEXT)return;yn(t,xt(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:Qt.html;i===Qt.html&&n==="svg"&&(i=Qt.svg);const a=Uf({...e,children:[]},{space:i===Qt.svg?"svg":"html"}),s={type:oe.START_TAG,tagName:n,tagID:xn(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:sr(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Mg(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Qf.includes(n)||t.parser.tokenizer.state===Re.PLAINTEXT)return;yn(t,Zr(e));const r={type:oe.END_TAG,tagName:n,tagID:xn(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:sr(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Re.RCDATA||t.parser.tokenizer.state===Re.RAWTEXT||t.parser.tokenizer.state===Re.SCRIPT_DATA)&&(t.parser.tokenizer.state=Re.DATA)}function Og(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function sr(e){const t=xt(e)||{line:void 0,column:void 0,offset:void 0},n=Zr(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Fg(e){return"children"in e?Jt({...e,children:[]}):Jt(e)}function Yi(e){return function(t,n){return pu(t,{...e,file:n})}}const qt=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Gt={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...qt,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...qt],h2:[["className","sr-only"]],img:[...qt,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...qt,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...qt],table:[...qt],ul:[...qt,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Ot={}.hasOwnProperty;function Bg(e,t){let n={type:"root",children:[]};const r={schema:t?{...Gt,...t}:Gt,stack:[]},i=Tu(r,e);return i&&(Array.isArray(i)?i.length===1?n=i[0]:n.children=i:n=i),n}function Tu(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return zg(e,n);case"doctype":return jg(e,n);case"element":return Hg(e,n);case"root":return Ug(e,n);case"text":return qg(e,n)}}}function zg(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),a={type:"comment",value:r<0?n:n.slice(0,r)};return or(a,t),a}}function jg(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return or(n,t),n}}function Hg(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=ku(e,t.children),i=Vg(e,t.properties);e.stack.pop();let a=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(a=!0,e.schema.ancestors&&Ot.call(e.schema.ancestors,n))){const o=e.schema.ancestors[n];let l=-1;for(a=!1;++l<o.length;)e.stack.includes(o[l])&&(a=!0)}if(!a)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const s={type:"element",tagName:n,properties:i,children:r};return or(s,t),s}function Ug(e,t){const r={type:"root",children:ku(e,t.children)};return or(r,t),r}function qg(e,t){const r={type:"text",value:typeof t.value=="string"?t.value:""};return or(r,t),r}function ku(e,t){const n=[];if(Array.isArray(t)){const r=t;let i=-1;for(;++i<r.length;){const a=Tu(e,r[i]);a&&(Array.isArray(a)?n.push(...a):n.push(a))}}return n}function Vg(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,i=e.schema.required,a=r&&Ot.call(r,n)?r[n]:void 0,s=r&&Ot.call(r,"*")?r["*"]:void 0,o=t&&typeof t=="object"?t:{},l={};let u;for(u in o)if(Ot.call(o,u)){const d=o[u];let h=$s(e,Ys(a,u),u,d);h==null&&(h=$s(e,Ys(s,u),u,d)),h!=null&&(l[u]=h)}if(i&&Ot.call(i,n)){const d=i[n];for(u in d)Ot.call(d,u)&&!Ot.call(l,u)&&(l[u]=d[u])}return l}function $s(e,t,n,r){return t?Array.isArray(r)?$g(e,t,n,r):xu(e,t,n,r):void 0}function $g(e,t,n,r){let i=-1;const a=[];for(;++i<r.length;){const s=xu(e,t,n,r[i]);(typeof s=="number"||typeof s=="string")&&a.push(s)}return a}function xu(e,t,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&Yg(e,n,r)){if(typeof t=="object"&&t.length>1){let i=!1,a=0;for(;++a<t.length;){const s=t[a];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(r))){i=!0;break}}else if(s===r){i=!0;break}}if(!i)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function Yg(e,t,n){const r=e.schema.protocols&&Ot.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;const i=String(n),a=i.indexOf(":"),s=i.indexOf("?"),o=i.indexOf("#"),l=i.indexOf("/");if(a<0||l>-1&&a>l||s>-1&&a>s||o>-1&&a>o)return!0;let u=-1;for(;++u<r.length;){const d=r[u];if(a===d.length&&i.slice(0,d.length)===d)return!0}return!1}function or(e,t){const n=fu(t);t.data&&(e.data=Jt(t.data)),n&&(e.position=n)}function Ys(e,t){let n,r=-1;if(e)for(;++r<e.length;){const i=e[r],a=typeof i=="string"?i:i[0];if(a===t)return i;a==="data*"&&(n=i)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function yu(e){return function(t){return Bg(t,e)}}function Gs(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const qe=jt(/[A-Za-z]/),ze=jt(/[\dA-Za-z]/),Gg=jt(/[#-'*+\--9=?A-Z^-~]/);function Rr(e){return e!==null&&(e<32||e===127)}const Gi=jt(/\d/),Wg=jt(/[\dA-Fa-f]/),Kg=jt(/[!-/:-@[-`{-~]/);function ee(e){return e!==null&&e<-2}function we(e){return e!==null&&(e<0||e===32)}function de(e){return e===-2||e===-1||e===32}const Jr=jt(/\p{P}|\p{S}/u),en=jt(/\s/);function jt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Qg(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Xg(e,t,n){const i=qr((n||{}).ignore||[]),a=Zg(t);let s=-1;for(;++s<a.length;)$r(e,"text",o);function o(u,d){let h=-1,p;for(;++h<d.length;){const f=d[h],g=p?p.children:void 0;if(i(f,g?g.indexOf(f):void 0,p))return;p=f}if(p)return l(u,d)}function l(u,d){const h=d[d.length-1],p=a[s][0],f=a[s][1];let g=0;const S=h.children.indexOf(u);let x=!1,_=[];p.lastIndex=0;let A=p.exec(u.value);for(;A;){const L=A.index,D={index:A.index,input:A.input,stack:[...d,u]};let I=f(...A,D);if(typeof I=="string"&&(I=I.length>0?{type:"text",value:I}:void 0),I===!1?p.lastIndex=L+1:(g!==L&&_.push({type:"text",value:u.value.slice(g,L)}),Array.isArray(I)?_.push(...I):I&&_.push(I),g=L+A[0].length,x=!0),!p.global)break;A=p.exec(u.value)}return x?(g<u.value.length&&_.push({type:"text",value:u.value.slice(g)}),h.children.splice(S,1,..._)):_=[u],S+_.length}}function Zg(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([Jg(i[0]),eb(i[1])])}return t}function Jg(e){return typeof e=="string"?new RegExp(Qg(e),"g"):e}function eb(e){return typeof e=="function"?e:function(){return e}}const pi="phrasing",gi=["autolink","link","image","label"];function tb(){return{transforms:[lb],enter:{literalAutolink:rb,literalAutolinkEmail:bi,literalAutolinkHttp:bi,literalAutolinkWww:bi},exit:{literalAutolink:ob,literalAutolinkEmail:sb,literalAutolinkHttp:ib,literalAutolinkWww:ab}}}function nb(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:pi,notInConstruct:gi},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:pi,notInConstruct:gi},{character:":",before:"[ps]",after:"\\/",inConstruct:pi,notInConstruct:gi}]}}function rb(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function bi(e){this.config.enter.autolinkProtocol.call(this,e)}function ib(e){this.config.exit.autolinkProtocol.call(this,e)}function ab(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function sb(e){this.config.exit.autolinkEmail.call(this,e)}function ob(e){this.exit(e)}function lb(e){Xg(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ub],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,cb]],{ignore:["link","linkReference"]})}function ub(e,t,n,r,i){let a="";if(!Au(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!db(n)))return!1;const s=hb(n+r);if(!s[0])return!1;const o={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function cb(e,t,n,r){return!Au(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function db(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function hb(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Gs(e,"(");let a=Gs(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function Au(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||en(n)||Jr(n))&&(!t||n!==47)}function ct(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Cu.peek=xb;function mb(){this.buffer()}function fb(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function pb(){this.buffer()}function gb(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function bb(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ct(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Eb(e){this.exit(e)}function Tb(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ct(this.sliceSerialize(e)).toLowerCase(),n.label=t}function kb(e){this.exit(e)}function xb(){return"["}function Cu(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]"),a}function yb(){return{enter:{gfmFootnoteCallString:mb,gfmFootnoteCall:fb,gfmFootnoteDefinitionLabelString:pb,gfmFootnoteDefinition:gb},exit:{gfmFootnoteCallString:bb,gfmFootnoteCall:Eb,gfmFootnoteDefinitionLabelString:Tb,gfmFootnoteDefinition:kb}}}function Ab(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Cu},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,s){const o=a.createTracker(s);let l=o.move("[^");const u=a.enter("footnoteDefinition"),d=a.enter("label");return l+=o.move(a.safe(a.associationId(r),{before:l,after:"]"})),d(),l+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),l+=o.move((t?`
|
|
108
|
-
`:" ")+
|
|
109
|
-
`)}function
|
|
110
|
-
`&&
|
|
111
|
-
`}function Fb(e,t){const n=String(e);let r=n.indexOf(t),
|
|
106
|
+
*/const Ym=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ti=Qe("x",Ym),St=()=>{},Gm=767;function Fa(){return typeof window<"u"&&window.innerWidth<=Gm}function me(...e){return e.filter(Boolean).join(" ")}function Wm(e){const t=(e||"").trim().toLowerCase().replace(/[-_]/g," ");return t==="readex pro"||t==="readex"?"'Readex Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif":t==="noto sans"||t==="noto"||t==="noto sans arabic"?"'Noto Sans', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif":"'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"}function bs(e){if(!e)return"#ffffff";const t=e.replace("#","").trim();let n=t;if(t.length===3&&(n=t.split("").map(o=>o+o).join("")),n.length<6)return"#ffffff";const r=parseInt(n.substring(0,2),16),a=parseInt(n.substring(2,4),16),i=parseInt(n.substring(4,6),16);return Number.isNaN(r)||Number.isNaN(a)||Number.isNaN(i)?"#ffffff":(r*299+a*587+i*114)/1e3>=128?"#000000":"#ffffff"}function ki(e){const t={"--rqmii-font-family":Wm(e?.font)},n=e?.theme?.accent_color?.trim();if(n){const a=bs(n);t["--rqmii-accent"]=n,t["--rqmii-accent-text"]=a,t["--rqmii-message-user"]=n,t["--rqmii-message-user-text"]=a}const r=e?.theme?.end_call_button_color?.trim();if(r){const a=bs(r);t["--rqmii-end-call-bg"]=r,t["--rqmii-end-call-text"]=a}return t}function Km(e){const t=(e||"").trim().toLowerCase().replace(/[-_]/g," ");return t==="readex pro"||t==="readex"?"https://fonts.googleapis.com/css2?family=Readex+Pro:wght@400;500;600;700&display=swap":t==="noto sans"||t==="noto"||t==="noto sans arabic"?"https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;500;600;700&family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap":"https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&display=swap"}function Tl(e){if(typeof document>"u")return;const t=Km(e);if(document.querySelector(`link[data-rqmii-font="${t}"]`))return;const r=document.createElement("link");r.rel="stylesheet",r.href=t,r.setAttribute("data-rqmii-font",t),document.head.appendChild(r)}function nt(e){return""}function kt(e){return e.startsWith("ar")||["fa","ur","he"].includes(e)?"rtl":"ltr"}function xi(e){const t=Math.floor(e/60).toString().padStart(2,"0"),n=(e%60).toString().padStart(2,"0");return`${t}:${n}`}function Qm(e=!0){const[t,n]=b.useState(0);return b.useEffect(()=>{if(!e)return;const r=setInterval(()=>n(a=>a+1),1e3);return()=>clearInterval(r)},[e]),t}function Xm(){const[e,t]=b.useState(null);return b.useEffect(()=>{const n=window.visualViewport;if(!n)return;const r=()=>t(n.height);return r(),n.addEventListener("resize",r),n.addEventListener("scroll",r),()=>{n.removeEventListener("resize",r),n.removeEventListener("scroll",r)}},[]),e}function Zm(e,t){const n=b.useRef([]);n.current=e.match(/\S+\s*/g)||[e];const[r,a]=b.useState(()=>t?Math.min(1,n.current.length):n.current.length);return b.useEffect(()=>{if(!t||!e){a(n.current.length);return}if(a(s=>Math.max(1,s)),n.current.length<=1)return;const i=setInterval(()=>{a(s=>s>=n.current.length?(clearInterval(i),s):s+1)},50);return()=>clearInterval(i)},[e,t]),n.current.slice(0,r).join("")}const qr=(function(e){if(e==null)return nf;if(typeof e=="function")return Vr(e);if(typeof e=="object")return Array.isArray(e)?Jm(e):ef(e);if(typeof e=="string")return tf(e);throw new Error("Expected function, string, or object as test")});function Jm(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=qr(e[n]);return Vr(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function ef(e){const t=e;return Vr(n);function n(r){const a=r;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function tf(e){return Vr(t);function t(n){return n&&n.type===e}}function Vr(e){return t;function t(n,r,a){return!!(rf(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function nf(){return!0}function rf(e){return e!==null&&typeof e=="object"&&"type"in e}const kl=[],Bn=!0,Ba=!1,Kt="skip";function $r(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const i=qr(a),s=r?-1:1;o(e,void 0,[])();function o(l,u,d){const h=l&&typeof l=="object"?l:{};if(typeof h.type=="string"){const f=typeof h.tagName=="string"?h.tagName:typeof h.name=="string"?h.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(f?"<"+f+">":""))+")"})}return p;function p(){let f=kl,g,y,w;if((!t||i(l,u,d[d.length-1]||void 0))&&(f=af(n(l,d)),f[0]===Ba))return f;if("children"in l&&l.children){const x=l;if(x.children&&f[0]!==Kt)for(y=(r?x.children.length:-1)+s,w=d.concat(x);y>-1&&y<x.children.length;){const _=x.children[y];if(g=o(_,y,w)(),g[0]===Ba)return g;y=typeof g[1]=="number"?g[1]:y+s}}return f}}}function af(e){return Array.isArray(e)?e:typeof e=="number"?[Bn,e]:e==null?kl:[e]}function dt(e,t,n,r){let a,i,s;typeof t=="function"&&typeof n!="function"?(i=void 0,s=t,a=n):(i=t,s=n,a=r),$r(e,i,o,a);function o(l,u){const d=u[u.length-1],h=d?d.children.indexOf(l):void 0;return s(l,h,d)}}const pn={indicator:"indicator",textOnly:"text-only",remove:"remove"};function sf({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:r=!1,allowedProtocols:a=[],blockedImageClass:i="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:s="text-gray-500",linkBlockPolicy:o=pn.indicator,imageBlockPolicy:l=pn.indicator}){const u=t.length&&!t.every(h=>h==="*"),d=n.length&&!n.every(h=>h==="*");if(!e&&(u||d))throw new Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return h=>{const p=hf(e,t,n,r,a,i,s,o,l);xl(h),dt(h,p)}}function Es(e,t){if(typeof e!="string")return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{return null}return null}}function of(e){return typeof e!="string"?!1:e.startsWith("/")||e.startsWith("./")||e.startsWith("../")}const lf=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),uf=new Set(["javascript:","data:","file:","vbscript:"]);function Ts(e,t,n,r=!1,a=!1,i=[]){if(!e)return null;if(typeof e=="string"&&e.startsWith("#")&&!a)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if(typeof e=="string"&&e.startsWith("data:"))return a&&r&&e.startsWith("data:image/")?e:null;if(typeof e=="string"&&e.startsWith("blob:")){try{if(new URL(e).protocol==="blob:"&&e.length>5){const d=e.substring(5);if(d&&d.length>0&&d!=="invalid")return e}}catch{return null}return null}const s=Es(e,n);if(!s||uf.has(s.protocol)||!(lf.has(s.protocol)||i.includes(s.protocol)||i.includes("*")))return null;if(s.protocol==="mailto:"||!s.protocol.match(/^https?:$/))return s.href;const l=of(e);return s&&t.some(u=>{const d=Es(u,n);return!d||d.origin!==s.origin?!1:s.href.startsWith(d.href)})?l?s.pathname+s.search+s.hash:s.href:t.includes("*")?s.protocol!=="https:"&&s.protocol!=="http:"?null:l?s.pathname+s.search+s.hash:s.href:null}function xl(e){if("children"in e&&Array.isArray(e.children)){e.children=e.children.filter(t=>t!=null);for(const t of e.children)xl(t)}}const da=Symbol("node-seen");function cf(e,t,n){return t===pn.remove?{type:"remove"}:t===pn.textOnly?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[...e.children]}}:{type:"replace",element:{type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(e.properties.href),class:n},children:[...e.children,{type:"text",value:" [blocked]"}]}}}function df(e,t,n){if(t===pn.remove)return{type:"remove"};if(t===pn.textOnly){const r=String(e.properties.alt||"");return r?{type:"replace",element:{type:"element",tagName:"span",properties:{},children:[{type:"text",value:r}]}}:{type:"remove"}}return{type:"replace",element:{type:"element",tagName:"span",properties:{class:n},children:[{type:"text",value:"[Image blocked: "+String(e.properties.alt||"No description")+"]"}]}}}const hf=(e,t,n,r,a,i,s,o,l)=>{const u=(d,h,p)=>{if(d.type!=="element"||d[da])return Bn;if(d.tagName==="a"){const f=Ts(d.properties.href,t,e,!1,!1,a);if(f===null){if(d[da]=!0,dt(d,u),p&&typeof h=="number"){const g=cf(d,o,s);if(g.type==="remove")return p.children.splice(h,1),[Kt,h];p.children[h]=g.element}return Kt}else return d.properties.href=f,d.properties.target="_blank",d.properties.rel="noopener noreferrer",Bn}if(d.tagName==="img"){const f=Ts(d.properties.src,n,e,r,!0,a);if(f===null){if(d[da]=!0,dt(d,u),p&&typeof h=="number"){const g=df(d,l,i);if(g.type==="remove")return p.children.splice(h,1),[Kt,h];p.children[h]=g.element}return Kt}else return d.properties.src=f,Bn}return Bn};return u},yl=-1,Yr=0,qn=1,Ir=2,yi=3,Ai=4,Ci=5,_i=6,Al=7,Cl=8,{defineProperty:mf}=Object,_l=typeof self=="object"?self:globalThis,ks=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new _l[e](t)},ff=(e,t)=>{const n=(a,i)=>(e.set(i,a),a),r=a=>{if(e.has(a))return e.get(a);const[i,s]=t[a];switch(i){case Yr:case yl:return n(s,a);case qn:{const o=n([],a);for(const l of s)o.push(r(l));return o}case Ir:{const o=n({},a);for(const[l,u]of s){const d=r(l),h=r(u);d==="__proto__"?mf(o,d,{value:h,configurable:!0,enumerable:!0,writable:!0}):o[d]=h}return o}case yi:return n(new Date(s),a);case Ai:{const{source:o,flags:l}=s;return n(new RegExp(o,l),a)}case Ci:{const o=n(new Map,a);for(const[l,u]of s)o.set(r(l),r(u));return o}case _i:{const o=n(new Set,a);for(const l of s)o.add(r(l));return o}case Al:{const{name:o,message:l}=s;return n(typeof _l[o]=="function"?ks(o,l):new Error(l),a)}case Cl:return n(BigInt(s),a);case"BigInt":return n(Object(BigInt(s)),a);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}case"-0":return-0}return n(ks(i,s),a)};return r},xs=e=>ff(new Map,e)(0),Yt="",{toString:pf}={},{keys:gf,is:bf}=Object,vn=e=>{const t=typeof e;if(t!=="object"||!e)return[Yr,t];const n=pf.call(e).slice(8,-1);switch(n){case"Array":return[qn,Yt];case"Object":return[Ir,Yt];case"Date":return[yi,Yt];case"RegExp":return[Ai,Yt];case"Map":return[Ci,Yt];case"Set":return[_i,Yt];case"DataView":return[qn,n]}return n.includes("Array")?[qn,n]:e instanceof Error?[Al,e.name||"Error"]:[Ir,n]},mr=([e,t])=>e===Yr&&(t==="function"||t==="symbol"),Ef=(e,t,n,r)=>{const a=(s,o)=>{const l=r.push(s)-1;return n.set(o,l),l},i=s=>{if(n.has(s))return n.get(s);let[o,l]=vn(s);switch(o){case Yr:{let d=s;switch(l){case"bigint":o=Cl,d=s.toString();break;case"number":if(!s&&bf(s,-0))return r.push(["-0"])-1;break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return a([yl],s)}return a([o,d],s)}case qn:{if(l){let p=s;return l==="DataView"?p=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(s)),a([l,[...p]],s)}const d=[],h=a([o,d],s);for(const p of s)d.push(i(p));return h}case Ir:{if(l)switch(l){case"BigInt":return a([l,s.toString()],s);case"Boolean":case"Number":case"String":return a([l,s.valueOf()],s)}if(t&&"toJSON"in s)return i(s.toJSON());const d=[],h=a([o,d],s);for(const p of gf(s))(e||!mr(vn(s[p])))&&d.push([i(p),i(s[p])]);return h}case yi:return a([o,isNaN(s.getTime())?Yt:s.toISOString()],s);case Ai:{const{source:d,flags:h}=s;return a([o,{source:d,flags:h}],s)}case Ci:{const d=[],h=a([o,d],s);for(const[p,f]of s)(e||!(mr(vn(p))||mr(vn(f))))&&d.push([i(p),i(f)]);return h}case _i:{const d=[],h=a([o,d],s);for(const p of s)(e||!mr(vn(p)))&&d.push(i(p));return h}}const{message:u}=s;return a([o,{name:l,message:u}],s)};return i},ys=(e,{json:t,lossy:n}={})=>{const r=[];return Ef(!(t||n),!!t,new Map,r)(e),r},Jt=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?xs(ys(e,t)):structuredClone(e):(e,t)=>xs(ys(e,t));class rr{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}rr.prototype.normal={};rr.prototype.property={};rr.prototype.space=void 0;function wl(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new rr(n,r,t)}function Zn(e){return e.toLowerCase()}class Xe{constructor(t,n){this.attribute=n,this.property=t}}Xe.prototype.attribute="";Xe.prototype.booleanish=!1;Xe.prototype.boolean=!1;Xe.prototype.commaOrSpaceSeparated=!1;Xe.prototype.commaSeparated=!1;Xe.prototype.defined=!1;Xe.prototype.mustUseProperty=!1;Xe.prototype.number=!1;Xe.prototype.overloadedBoolean=!1;Xe.prototype.property="";Xe.prototype.spaceSeparated=!1;Xe.prototype.space=void 0;let Tf=0;const re=nn(),De=nn(),za=nn(),V=nn(),we=nn(),Xt=nn(),et=nn();function nn(){return 2**++Tf}const ja=Object.freeze(Object.defineProperty({__proto__:null,boolean:re,booleanish:De,commaOrSpaceSeparated:et,commaSeparated:Xt,number:V,overloadedBoolean:za,spaceSeparated:we},Symbol.toStringTag,{value:"Module"})),ha=Object.keys(ja);class wi extends Xe{constructor(t,n,r,a){let i=-1;if(super(t,n),As(this,"space",a),typeof r=="number")for(;++i<ha.length;){const s=ha[i];As(this,ha[i],(r&ja[s])===ja[s])}}}wi.prototype.defined=!0;function As(e,t,n){n&&(e[t]=n)}function Tn(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new wi(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Zn(r)]=r,n[Zn(i.attribute)]=r}return new rr(t,n,e.space)}const Sl=Tn({properties:{ariaActiveDescendant:null,ariaAtomic:De,ariaAutoComplete:null,ariaBusy:De,ariaChecked:De,ariaColCount:V,ariaColIndex:V,ariaColSpan:V,ariaControls:we,ariaCurrent:null,ariaDescribedBy:we,ariaDetails:null,ariaDisabled:De,ariaDropEffect:we,ariaErrorMessage:null,ariaExpanded:De,ariaFlowTo:we,ariaGrabbed:De,ariaHasPopup:null,ariaHidden:De,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:we,ariaLevel:V,ariaLive:null,ariaModal:De,ariaMultiLine:De,ariaMultiSelectable:De,ariaOrientation:null,ariaOwns:we,ariaPlaceholder:null,ariaPosInSet:V,ariaPressed:De,ariaReadOnly:De,ariaRelevant:null,ariaRequired:De,ariaRoleDescription:we,ariaRowCount:V,ariaRowIndex:V,ariaRowSpan:V,ariaSelected:De,ariaSetSize:V,ariaSort:null,ariaValueMax:V,ariaValueMin:V,ariaValueNow:V,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Il(e,t){return t in e?e[t]:t}function vl(e,t){return Il(e,t.toLowerCase())}const kf=Tn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xt,acceptCharset:we,accessKey:we,action:null,allow:null,allowFullScreen:re,allowPaymentRequest:re,allowUserMedia:re,alpha:re,alt:null,as:null,async:re,autoCapitalize:null,autoComplete:we,autoFocus:re,autoPlay:re,blocking:we,capture:null,charSet:null,checked:re,cite:null,className:we,closedBy:null,colorSpace:null,cols:V,colSpan:V,command:null,commandFor:null,content:null,contentEditable:De,controls:re,controlsList:we,coords:V|Xt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:re,defer:re,dir:null,dirName:null,disabled:re,download:za,draggable:De,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:re,formTarget:null,headers:we,height:V,hidden:za,high:V,href:null,hrefLang:null,htmlFor:we,httpEquiv:we,id:null,imageSizes:null,imageSrcSet:null,inert:re,inputMode:null,integrity:null,is:null,isMap:re,itemId:null,itemProp:we,itemRef:we,itemScope:re,itemType:we,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:re,low:V,manifest:null,max:null,maxLength:V,media:null,method:null,min:null,minLength:V,multiple:re,muted:re,name:null,nonce:null,noModule:re,noValidate:re,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:re,optimum:V,pattern:null,ping:we,placeholder:null,playsInline:re,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:re,referrerPolicy:null,rel:we,required:re,reversed:re,rows:V,rowSpan:V,sandbox:we,scope:null,scoped:re,seamless:re,selected:re,shadowRootClonable:re,shadowRootCustomElementRegistry:re,shadowRootDelegatesFocus:re,shadowRootMode:null,shadowRootSerializable:re,shape:null,size:V,sizes:null,slot:null,span:V,spellCheck:De,src:null,srcDoc:null,srcLang:null,srcSet:null,start:V,step:null,style:null,tabIndex:V,target:null,title:null,translate:null,type:null,typeMustMatch:re,useMap:null,value:De,width:V,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:we,axis:null,background:null,bgColor:null,border:V,borderColor:null,bottomMargin:V,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:re,declare:re,event:null,face:null,frame:null,frameBorder:null,hSpace:V,leftMargin:V,link:null,longDesc:null,lowSrc:null,marginHeight:V,marginWidth:V,noResize:re,noHref:re,noShade:re,noWrap:re,object:null,profile:null,prompt:null,rev:null,rightMargin:V,rules:null,scheme:null,scrolling:De,standby:null,summary:null,text:null,topMargin:V,valueType:null,version:null,vAlign:null,vLink:null,vSpace:V,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:re,disablePictureInPicture:re,disableRemotePlayback:re,exportParts:Xt,part:we,prefix:null,property:null,results:V,security:null,unselectable:null},space:"html",transform:vl}),xf=Tn({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:et,accentHeight:V,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:V,amplitude:V,arabicForm:null,ascent:V,attributeName:null,attributeType:null,azimuth:V,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:V,by:null,calcMode:null,capHeight:V,className:we,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:V,diffuseConstant:V,direction:null,display:null,dur:null,divisor:V,dominantBaseline:null,download:re,dx:null,dy:null,edgeMode:null,editable:null,elevation:V,enableBackground:null,end:null,event:null,exponent:V,externalResourcesRequired:null,fill:null,fillOpacity:V,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Xt,g2:Xt,glyphName:Xt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:V,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:V,horizOriginX:V,horizOriginY:V,id:null,ideographic:V,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:V,k:V,k1:V,k2:V,k3:V,k4:V,kernelMatrix:et,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:V,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:V,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:V,overlineThickness:V,paintOrder:null,panose1:null,path:null,pathLength:V,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:we,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:V,pointsAtY:V,pointsAtZ:V,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:et,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:et,rev:et,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:et,requiredFeatures:et,requiredFonts:et,requiredFormats:et,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:V,specularExponent:V,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:V,strikethroughThickness:V,string:null,stroke:null,strokeDashArray:et,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:V,strokeOpacity:V,strokeWidth:null,style:null,surfaceScale:V,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:et,tabIndex:V,tableValues:null,target:null,targetX:V,targetY:V,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:et,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:V,underlineThickness:V,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:V,values:null,vAlphabetic:V,vMathematical:V,vectorEffect:null,vHanging:V,vIdeographic:V,version:null,vertAdvY:V,vertOriginX:V,vertOriginY:V,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:V,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Il}),Nl=Tn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Ll=Tn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vl}),Rl=Tn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),yf={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Af=/[A-Z]/g,Cs=/-[a-z]/g,Cf=/^data[-\w.:]+$/i;function Gr(e,t){const n=Zn(t);let r=t,a=Xe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Cf.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Cs,wf);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Cs.test(i)){let s=i.replace(Af,_f);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=wi}return new a(r,t)}function _f(e){return"-"+e.toLowerCase()}function wf(e){return e.charAt(1).toUpperCase()}const ar=wl([Sl,kf,Nl,Ll,Rl],"html"),zt=wl([Sl,xf,Nl,Ll,Rl],"svg");function _s(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const s=n.slice(a,r).trim();(s||!i)&&t.push(s),a=r+1,r=n.indexOf(",",a)}return t}function Dl(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const ws=/[#.]/g;function Sf(e,t){const n=e||"",r={};let a=0,i,s;for(;a<n.length;){ws.lastIndex=a;const o=ws.exec(n),l=n.slice(a,o?o.index:n.length);l&&(i?i==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:s=l,a+=l.length),o&&(i=o[0],a++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function Ss(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Pl(e){return e.join(" ").trim()}function Ol(e,t,n){const r=n?Lf(n):void 0;function a(i,s,...o){let l;if(i==null){l={type:"root",children:[]};const u=s;o.unshift(u)}else{l=Sf(i,t);const u=l.tagName.toLowerCase(),d=r?r.get(u):void 0;if(l.tagName=d||u,If(s))o.unshift(s);else for(const[h,p]of Object.entries(s))vf(e,l.properties,h,p)}for(const u of o)Ha(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return a}function If(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const i=a;for(const s of i)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function vf(e,t,n,r){const a=Gr(e,n);let i;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;i=r}else typeof r=="boolean"?i=r:typeof r=="string"?a.spaceSeparated?i=Ss(r):a.commaSeparated?i=_s(r):a.commaOrSpaceSeparated?i=Ss(_s(r).join(" ")):i=Is(a,a.property,r):Array.isArray(r)?i=[...r]:i=a.property==="style"?Nf(r):String(r);if(Array.isArray(i)){const s=[];for(const o of i)s.push(Is(a,a.property,o));i=s}a.property==="className"&&Array.isArray(t.className)&&(i=t.className.concat(i)),t[a.property]=i}}function Ha(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)Ha(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?Ha(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Is(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Zn(n)===Zn(t)))return!0}return n}function Nf(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function Lf(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Rf=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Df=Ol(ar,"div"),Pf=Ol(zt,"g",Rf);function Of(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(i){if(typeof i=="number"&&i>-1&&i<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const l=vs(t,n[s-1]);o=l===-1?t.length+1:l+1,n[s]=o}if(o>i)return{line:s+1,column:i-(s>0?n[s-1]:0)+1,offset:i};s++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const o=n[n.length-1],l=vs(t,o),u=l===-1?t.length+1:l+1;if(o===u)break;n.push(u)}const s=(i.line>1?n[i.line-2]:0)+i.column-1;if(s<n[i.line-1])return s}}}function vs(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
107
|
+
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Qt={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Ml={}.hasOwnProperty,Mf=Object.prototype;function Ff(e,t){const n=t||{};return Si({file:n.file||void 0,location:!1,schema:n.space==="svg"?zt:ar,verbose:n.verbose||!1},e)}function Si(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Ar(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Fl(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),s=Of(i),o=s.toPoint(0),l=s.toPoint(i.length);n.position={start:o,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Ar(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Ar(e,r,n),n}default:return n=Bf(e,t),n}}function Fl(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=Si(e,t[n]);r.push(a)}return r}function Bf(e,t){const n=e.schema;e.schema=t.namespaceURI===Qt.svg?zt:ar;let r=-1;const a={};for(;++r<t.attrs.length;){const o=t.attrs[r],l=(o.prefix?o.prefix+":":"")+o.name;Ml.call(Mf,l)||(a[l]=o.value)}const s=(e.schema.space==="svg"?Pf:Df)(t.tagName,a,Fl(e,t.childNodes));if(Ar(e,t,s),s.tagName==="template"){const o=t,l=o.sourceCodeLocation,u=l&&l.startTag&&hn(l.startTag),d=l&&l.endTag&&hn(l.endTag),h=Si(e,o.content);u&&d&&e.file&&(h.position={start:u.end,end:d.start}),s.content=h}return e.schema=n,s}function Ar(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=zf(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function zf(e,t,n){const r=hn(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const i={};let s;if(n.attrs)for(s in n.attrs)Ml.call(n.attrs,s)&&(i[Gr(e.schema,s).property]=hn(n.attrs[s]));n.startTag;const o=hn(n.startTag),l=n.endTag?hn(n.endTag):void 0,u={opening:o};l&&(u.closing=l),u.properties=i,t.data={position:u}}}return r}function hn(e){const t=Ns({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Ns({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Ns(e){return e.line&&e.column?e:void 0}const Ls={}.hasOwnProperty;function Bl(e,t){const n=t||{};function r(a,...i){let s=r.invalid;const o=r.handlers;if(a&&Ls.call(a,e)){const l=String(a[e]);s=Ls.call(o,l)?o[l]:r.unknown}if(s)return s.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const jf={},Hf={}.hasOwnProperty,zl=Bl("type",{handlers:{root:qf,element:Wf,text:Yf,comment:Gf,doctype:$f}});function Uf(e,t){const r=(t||jf).space;return zl(e,r==="svg"?zt:ar)}function qf(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Ii(e.children,n,t),kn(e,n),n}function Vf(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Ii(e.children,n,t),kn(e,n),n}function $f(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return kn(e,t),t}function Yf(e){const t={nodeName:"#text",value:e.value,parentNode:null};return kn(e,t),t}function Gf(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return kn(e,t),t}function Wf(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=zt);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&Hf.call(e.properties,i)){const l=Kf(r,i,e.properties[i]);l&&a.push(l)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Qt[s],childNodes:[],parentNode:null};return o.childNodes=Ii(e.children,o,r),kn(e,o),e.tagName==="template"&&e.content&&(o.content=Vf(e.content,r)),o}function Kf(e,t,n){const r=Gr(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Dl(n):Pl(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=r.attribute.slice(0,i)),a.namespace=Qt[r.space]}return a}function Ii(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const i=zl(e[r],n);i.parentNode=t,a.push(i)}return a}function kn(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const Qf=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Xf=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ve="�";var E;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(E||(E={}));const We={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function jl(e){return e>=55296&&e<=57343}function Zf(e){return e>=56320&&e<=57343}function Jf(e,t){return(e-55296)*1024+9216+t}function Hl(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Ul(e){return e>=64976&&e<=65007||Xf.has(e)}var O;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(O||(O={}));const ep=65536;class tp{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=ep,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:i}=this,s=a+n,o=i+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Zf(n))return this.pos++,this._addGap(),Jf(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,E.EOF;return this._err(O.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,E.EOF;const r=this.html.charCodeAt(n);return r===E.CARRIAGE_RETURN?E.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,E.EOF;let t=this.html.charCodeAt(this.pos);return t===E.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,E.LINE_FEED):t===E.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,jl(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===E.LINE_FEED||t===E.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Hl(t)?this._err(O.controlCharacterInInputStream):Ul(t)&&this._err(O.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var oe;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(oe||(oe={}));function ql(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const np=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),rp=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function ap(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=rp.get(e))!==null&&t!==void 0?t:e}var Fe;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Fe||(Fe={}));const ip=32;var Ft;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ft||(Ft={}));function Ua(e){return e>=Fe.ZERO&&e<=Fe.NINE}function sp(e){return e>=Fe.UPPER_A&&e<=Fe.UPPER_F||e>=Fe.LOWER_A&&e<=Fe.LOWER_F}function op(e){return e>=Fe.UPPER_A&&e<=Fe.UPPER_Z||e>=Fe.LOWER_A&&e<=Fe.LOWER_Z||Ua(e)}function lp(e){return e===Fe.EQUALS||op(e)}var Me;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Me||(Me={}));var It;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(It||(It={}));class up{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Me.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=It.Strict}startEntity(t){this.decodeMode=t,this.state=Me.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Me.EntityStart:return t.charCodeAt(n)===Fe.NUM?(this.state=Me.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Me.NamedEntity,this.stateNamedEntity(t,n));case Me.NumericStart:return this.stateNumericStart(t,n);case Me.NumericDecimal:return this.stateNumericDecimal(t,n);case Me.NumericHex:return this.stateNumericHex(t,n);case Me.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|ip)===Fe.LOWER_X?(this.state=Me.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Me.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const i=r-n;this.result=this.result*Math.pow(a,i)+Number.parseInt(t.substr(n,i),a),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(Ua(a)||sp(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(Ua(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Fe.SEMI)this.consumed+=1;else if(this.decodeMode===It.Strict)return 0;return this.emitCodePoint(ap(this.result),this.consumed),this.errors&&(t!==Fe.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],i=(a&Ft.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=cp(r,a,this.treeIndex+Math.max(1,i),s),this.treeIndex<0)return this.result===0||this.decodeMode===It.Attribute&&(i===0||lp(s))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&Ft.VALUE_LENGTH)>>14,i!==0){if(s===Fe.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==It.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&Ft.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~Ft.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case Me.NamedEntity:return this.result!==0&&(this.decodeMode!==It.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Me.NumericDecimal:return this.emitNumericEntity(0,2);case Me.NumericHex:return this.emitNumericEntity(0,3);case Me.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Me.EntityStart:return 0}}}function cp(e,t,n,r){const a=(t&Ft.BRANCH_LENGTH)>>7,i=t&Ft.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const l=r-i;return l<0||l>=a?-1:e[n+l]-1}let s=n,o=s+a-1;for(;s<=o;){const l=s+o>>>1,u=e[l];if(u<r)s=l+1;else if(u>r)o=l-1;else return e[l+a]}return-1}var H;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(H||(H={}));var Zt;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Zt||(Zt={}));var at;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(at||(at={}));var N;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(N||(N={}));var c;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(c||(c={}));const dp=new Map([[N.A,c.A],[N.ADDRESS,c.ADDRESS],[N.ANNOTATION_XML,c.ANNOTATION_XML],[N.APPLET,c.APPLET],[N.AREA,c.AREA],[N.ARTICLE,c.ARTICLE],[N.ASIDE,c.ASIDE],[N.B,c.B],[N.BASE,c.BASE],[N.BASEFONT,c.BASEFONT],[N.BGSOUND,c.BGSOUND],[N.BIG,c.BIG],[N.BLOCKQUOTE,c.BLOCKQUOTE],[N.BODY,c.BODY],[N.BR,c.BR],[N.BUTTON,c.BUTTON],[N.CAPTION,c.CAPTION],[N.CENTER,c.CENTER],[N.CODE,c.CODE],[N.COL,c.COL],[N.COLGROUP,c.COLGROUP],[N.DD,c.DD],[N.DESC,c.DESC],[N.DETAILS,c.DETAILS],[N.DIALOG,c.DIALOG],[N.DIR,c.DIR],[N.DIV,c.DIV],[N.DL,c.DL],[N.DT,c.DT],[N.EM,c.EM],[N.EMBED,c.EMBED],[N.FIELDSET,c.FIELDSET],[N.FIGCAPTION,c.FIGCAPTION],[N.FIGURE,c.FIGURE],[N.FONT,c.FONT],[N.FOOTER,c.FOOTER],[N.FOREIGN_OBJECT,c.FOREIGN_OBJECT],[N.FORM,c.FORM],[N.FRAME,c.FRAME],[N.FRAMESET,c.FRAMESET],[N.H1,c.H1],[N.H2,c.H2],[N.H3,c.H3],[N.H4,c.H4],[N.H5,c.H5],[N.H6,c.H6],[N.HEAD,c.HEAD],[N.HEADER,c.HEADER],[N.HGROUP,c.HGROUP],[N.HR,c.HR],[N.HTML,c.HTML],[N.I,c.I],[N.IMG,c.IMG],[N.IMAGE,c.IMAGE],[N.INPUT,c.INPUT],[N.IFRAME,c.IFRAME],[N.KEYGEN,c.KEYGEN],[N.LABEL,c.LABEL],[N.LI,c.LI],[N.LINK,c.LINK],[N.LISTING,c.LISTING],[N.MAIN,c.MAIN],[N.MALIGNMARK,c.MALIGNMARK],[N.MARQUEE,c.MARQUEE],[N.MATH,c.MATH],[N.MENU,c.MENU],[N.META,c.META],[N.MGLYPH,c.MGLYPH],[N.MI,c.MI],[N.MO,c.MO],[N.MN,c.MN],[N.MS,c.MS],[N.MTEXT,c.MTEXT],[N.NAV,c.NAV],[N.NOBR,c.NOBR],[N.NOFRAMES,c.NOFRAMES],[N.NOEMBED,c.NOEMBED],[N.NOSCRIPT,c.NOSCRIPT],[N.OBJECT,c.OBJECT],[N.OL,c.OL],[N.OPTGROUP,c.OPTGROUP],[N.OPTION,c.OPTION],[N.P,c.P],[N.PARAM,c.PARAM],[N.PLAINTEXT,c.PLAINTEXT],[N.PRE,c.PRE],[N.RB,c.RB],[N.RP,c.RP],[N.RT,c.RT],[N.RTC,c.RTC],[N.RUBY,c.RUBY],[N.S,c.S],[N.SCRIPT,c.SCRIPT],[N.SEARCH,c.SEARCH],[N.SECTION,c.SECTION],[N.SELECT,c.SELECT],[N.SOURCE,c.SOURCE],[N.SMALL,c.SMALL],[N.SPAN,c.SPAN],[N.STRIKE,c.STRIKE],[N.STRONG,c.STRONG],[N.STYLE,c.STYLE],[N.SUB,c.SUB],[N.SUMMARY,c.SUMMARY],[N.SUP,c.SUP],[N.TABLE,c.TABLE],[N.TBODY,c.TBODY],[N.TEMPLATE,c.TEMPLATE],[N.TEXTAREA,c.TEXTAREA],[N.TFOOT,c.TFOOT],[N.TD,c.TD],[N.TH,c.TH],[N.THEAD,c.THEAD],[N.TITLE,c.TITLE],[N.TR,c.TR],[N.TRACK,c.TRACK],[N.TT,c.TT],[N.U,c.U],[N.UL,c.UL],[N.SVG,c.SVG],[N.VAR,c.VAR],[N.WBR,c.WBR],[N.XMP,c.XMP]]);function xn(e){var t;return(t=dp.get(e))!==null&&t!==void 0?t:c.UNKNOWN}const U=c,hp={[H.HTML]:new Set([U.ADDRESS,U.APPLET,U.AREA,U.ARTICLE,U.ASIDE,U.BASE,U.BASEFONT,U.BGSOUND,U.BLOCKQUOTE,U.BODY,U.BR,U.BUTTON,U.CAPTION,U.CENTER,U.COL,U.COLGROUP,U.DD,U.DETAILS,U.DIR,U.DIV,U.DL,U.DT,U.EMBED,U.FIELDSET,U.FIGCAPTION,U.FIGURE,U.FOOTER,U.FORM,U.FRAME,U.FRAMESET,U.H1,U.H2,U.H3,U.H4,U.H5,U.H6,U.HEAD,U.HEADER,U.HGROUP,U.HR,U.HTML,U.IFRAME,U.IMG,U.INPUT,U.LI,U.LINK,U.LISTING,U.MAIN,U.MARQUEE,U.MENU,U.META,U.NAV,U.NOEMBED,U.NOFRAMES,U.NOSCRIPT,U.OBJECT,U.OL,U.P,U.PARAM,U.PLAINTEXT,U.PRE,U.SCRIPT,U.SECTION,U.SELECT,U.SOURCE,U.STYLE,U.SUMMARY,U.TABLE,U.TBODY,U.TD,U.TEMPLATE,U.TEXTAREA,U.TFOOT,U.TH,U.THEAD,U.TITLE,U.TR,U.TRACK,U.UL,U.WBR,U.XMP]),[H.MATHML]:new Set([U.MI,U.MO,U.MN,U.MS,U.MTEXT,U.ANNOTATION_XML]),[H.SVG]:new Set([U.TITLE,U.FOREIGN_OBJECT,U.DESC]),[H.XLINK]:new Set,[H.XML]:new Set,[H.XMLNS]:new Set},qa=new Set([U.H1,U.H2,U.H3,U.H4,U.H5,U.H6]);N.STYLE,N.SCRIPT,N.XMP,N.IFRAME,N.NOEMBED,N.NOFRAMES,N.PLAINTEXT;var k;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(k||(k={}));const Re={DATA:k.DATA,RCDATA:k.RCDATA,RAWTEXT:k.RAWTEXT,SCRIPT_DATA:k.SCRIPT_DATA,PLAINTEXT:k.PLAINTEXT,CDATA_SECTION:k.CDATA_SECTION};function mp(e){return e>=E.DIGIT_0&&e<=E.DIGIT_9}function zn(e){return e>=E.LATIN_CAPITAL_A&&e<=E.LATIN_CAPITAL_Z}function fp(e){return e>=E.LATIN_SMALL_A&&e<=E.LATIN_SMALL_Z}function Pt(e){return fp(e)||zn(e)}function Rs(e){return Pt(e)||mp(e)}function fr(e){return e+32}function Vl(e){return e===E.SPACE||e===E.LINE_FEED||e===E.TABULATION||e===E.FORM_FEED}function Ds(e){return Vl(e)||e===E.SOLIDUS||e===E.GREATER_THAN_SIGN}function pp(e){return e===E.NULL?O.nullCharacterReference:e>1114111?O.characterReferenceOutsideUnicodeRange:jl(e)?O.surrogateCharacterReference:Ul(e)?O.noncharacterCharacterReference:Hl(e)||e===E.CARRIAGE_RETURN?O.controlCharacterReference:null}class gp{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=k.DATA,this.returnState=k.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new tp(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new up(np,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(O.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(O.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=pp(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:oe.START_TAG,tagName:"",tagID:c.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:oe.END_TAG,tagName:"",tagID:c.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:oe.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:oe.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(ql(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(O.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=xn(t.tagName),t.type===oe.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(O.endTagWithAttributes),t.selfClosing&&this._err(O.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case oe.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case oe.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case oe.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:oe.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=Vl(t)?oe.WHITESPACE_CHARACTER:t===E.NULL?oe.NULL_CHARACTER:oe.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(oe.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=k.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?It.Attribute:It.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===k.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===k.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===k.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case k.DATA:{this._stateData(t);break}case k.RCDATA:{this._stateRcdata(t);break}case k.RAWTEXT:{this._stateRawtext(t);break}case k.SCRIPT_DATA:{this._stateScriptData(t);break}case k.PLAINTEXT:{this._statePlaintext(t);break}case k.TAG_OPEN:{this._stateTagOpen(t);break}case k.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case k.TAG_NAME:{this._stateTagName(t);break}case k.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case k.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case k.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case k.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case k.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case k.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case k.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case k.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case k.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case k.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case k.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case k.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case k.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case k.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case k.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case k.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case k.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case k.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case k.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case k.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case k.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case k.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case k.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case k.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case k.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case k.BOGUS_COMMENT:{this._stateBogusComment(t);break}case k.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case k.COMMENT_START:{this._stateCommentStart(t);break}case k.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case k.COMMENT:{this._stateComment(t);break}case k.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case k.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case k.COMMENT_END:{this._stateCommentEnd(t);break}case k.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case k.DOCTYPE:{this._stateDoctype(t);break}case k.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case k.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case k.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case k.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case k.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case k.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case k.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case k.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case k.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case k.CDATA_SECTION:{this._stateCdataSection(t);break}case k.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case k.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case k.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case k.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case E.LESS_THAN_SIGN:{this.state=k.TAG_OPEN;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.NULL:{this._err(O.unexpectedNullCharacter),this._emitCodePoint(t);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case E.AMPERSAND:{this._startCharacterReference();break}case E.LESS_THAN_SIGN:{this.state=k.RCDATA_LESS_THAN_SIGN;break}case E.NULL:{this._err(O.unexpectedNullCharacter),this._emitChars(ve);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case E.LESS_THAN_SIGN:{this.state=k.RAWTEXT_LESS_THAN_SIGN;break}case E.NULL:{this._err(O.unexpectedNullCharacter),this._emitChars(ve);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case E.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_LESS_THAN_SIGN;break}case E.NULL:{this._err(O.unexpectedNullCharacter),this._emitChars(ve);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case E.NULL:{this._err(O.unexpectedNullCharacter),this._emitChars(ve);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Pt(t))this._createStartTagToken(),this.state=k.TAG_NAME,this._stateTagName(t);else switch(t){case E.EXCLAMATION_MARK:{this.state=k.MARKUP_DECLARATION_OPEN;break}case E.SOLIDUS:{this.state=k.END_TAG_OPEN;break}case E.QUESTION_MARK:{this._err(O.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t);break}case E.EOF:{this._err(O.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(O.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=k.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Pt(t))this._createEndTagToken(),this.state=k.TAG_NAME,this._stateTagName(t);else switch(t){case E.GREATER_THAN_SIGN:{this._err(O.missingEndTagName),this.state=k.DATA;break}case E.EOF:{this._err(O.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(O.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=k.BEFORE_ATTRIBUTE_NAME;break}case E.SOLIDUS:{this.state=k.SELF_CLOSING_START_TAG;break}case E.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentTagToken();break}case E.NULL:{this._err(O.unexpectedNullCharacter),n.tagName+=ve;break}case E.EOF:{this._err(O.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(zn(t)?fr(t):t)}}_stateRcdataLessThanSign(t){t===E.SOLIDUS?this.state=k.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=k.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Pt(t)?(this.state=k.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=k.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=k.BEFORE_ATTRIBUTE_NAME,!1;case E.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=k.SELF_CLOSING_START_TAG,!1;case E.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=k.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===E.SOLIDUS?this.state=k.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Pt(t)?(this.state=k.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case E.SOLIDUS:{this.state=k.SCRIPT_DATA_END_TAG_OPEN;break}case E.EXCLAMATION_MARK:{this.state=k.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=k.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Pt(t)?(this.state=k.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===E.HYPHEN_MINUS?(this.state=k.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===E.HYPHEN_MINUS?(this.state=k.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case E.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case E.NULL:{this._err(O.unexpectedNullCharacter),this._emitChars(ve);break}case E.EOF:{this._err(O.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case E.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case E.NULL:{this._err(O.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_ESCAPED,this._emitChars(ve);break}case E.EOF:{this._err(O.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case E.HYPHEN_MINUS:{this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case E.GREATER_THAN_SIGN:{this.state=k.SCRIPT_DATA,this._emitChars(">");break}case E.NULL:{this._err(O.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_ESCAPED,this._emitChars(ve);break}case E.EOF:{this._err(O.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===E.SOLIDUS?this.state=k.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Pt(t)?(this._emitChars("<"),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Pt(t)?(this.state=k.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(We.SCRIPT,!1)&&Ds(this.preprocessor.peek(We.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<We.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case E.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case E.NULL:{this._err(O.unexpectedNullCharacter),this._emitChars(ve);break}case E.EOF:{this._err(O.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case E.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case E.NULL:{this._err(O.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ve);break}case E.EOF:{this._err(O.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case E.HYPHEN_MINUS:{this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case E.GREATER_THAN_SIGN:{this.state=k.SCRIPT_DATA,this._emitChars(">");break}case E.NULL:{this._err(O.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(ve);break}case E.EOF:{this._err(O.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===E.SOLIDUS?(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(We.SCRIPT,!1)&&Ds(this.preprocessor.peek(We.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<We.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=k.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.SOLIDUS:case E.GREATER_THAN_SIGN:case E.EOF:{this.state=k.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case E.EQUALS_SIGN:{this._err(O.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=k.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=k.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:case E.SOLIDUS:case E.GREATER_THAN_SIGN:case E.EOF:{this._leaveAttrName(),this.state=k.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case E.EQUALS_SIGN:{this._leaveAttrName(),this.state=k.BEFORE_ATTRIBUTE_VALUE;break}case E.QUOTATION_MARK:case E.APOSTROPHE:case E.LESS_THAN_SIGN:{this._err(O.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case E.NULL:{this._err(O.unexpectedNullCharacter),this.currentAttr.name+=ve;break}default:this.currentAttr.name+=String.fromCodePoint(zn(t)?fr(t):t)}}_stateAfterAttributeName(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.SOLIDUS:{this.state=k.SELF_CLOSING_START_TAG;break}case E.EQUALS_SIGN:{this.state=k.BEFORE_ATTRIBUTE_VALUE;break}case E.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentTagToken();break}case E.EOF:{this._err(O.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=k.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:{this.state=k.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this.state=k.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(O.missingAttributeValue),this.state=k.DATA,this.emitCurrentTagToken();break}default:this.state=k.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case E.QUOTATION_MARK:{this.state=k.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.NULL:{this._err(O.unexpectedNullCharacter),this.currentAttr.value+=ve;break}case E.EOF:{this._err(O.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case E.APOSTROPHE:{this.state=k.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.NULL:{this._err(O.unexpectedNullCharacter),this.currentAttr.value+=ve;break}case E.EOF:{this._err(O.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this._leaveAttrValue(),this.state=k.BEFORE_ATTRIBUTE_NAME;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=k.DATA,this.emitCurrentTagToken();break}case E.NULL:{this._err(O.unexpectedNullCharacter),this.currentAttr.value+=ve;break}case E.QUOTATION_MARK:case E.APOSTROPHE:case E.LESS_THAN_SIGN:case E.EQUALS_SIGN:case E.GRAVE_ACCENT:{this._err(O.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case E.EOF:{this._err(O.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this._leaveAttrValue(),this.state=k.BEFORE_ATTRIBUTE_NAME;break}case E.SOLIDUS:{this._leaveAttrValue(),this.state=k.SELF_CLOSING_START_TAG;break}case E.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=k.DATA,this.emitCurrentTagToken();break}case E.EOF:{this._err(O.eofInTag),this._emitEOFToken();break}default:this._err(O.missingWhitespaceBetweenAttributes),this.state=k.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case E.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=k.DATA,this.emitCurrentTagToken();break}case E.EOF:{this._err(O.eofInTag),this._emitEOFToken();break}default:this._err(O.unexpectedSolidusInTag),this.state=k.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case E.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentComment(n);break}case E.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case E.NULL:{this._err(O.unexpectedNullCharacter),n.data+=ve;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(We.DASH_DASH,!0)?(this._createCommentToken(We.DASH_DASH.length+1),this.state=k.COMMENT_START):this._consumeSequenceIfMatch(We.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(We.DOCTYPE.length+1),this.state=k.DOCTYPE):this._consumeSequenceIfMatch(We.CDATA_START,!0)?this.inForeignNode?this.state=k.CDATA_SECTION:(this._err(O.cdataInHtmlContent),this._createCommentToken(We.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=k.BOGUS_COMMENT):this._ensureHibernation()||(this._err(O.incorrectlyOpenedComment),this._createCommentToken(2),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case E.HYPHEN_MINUS:{this.state=k.COMMENT_START_DASH;break}case E.GREATER_THAN_SIGN:{this._err(O.abruptClosingOfEmptyComment),this.state=k.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=k.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{this.state=k.COMMENT_END;break}case E.GREATER_THAN_SIGN:{this._err(O.abruptClosingOfEmptyComment),this.state=k.DATA,this.emitCurrentComment(n);break}case E.EOF:{this._err(O.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=k.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{this.state=k.COMMENT_END_DASH;break}case E.LESS_THAN_SIGN:{n.data+="<",this.state=k.COMMENT_LESS_THAN_SIGN;break}case E.NULL:{this._err(O.unexpectedNullCharacter),n.data+=ve;break}case E.EOF:{this._err(O.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case E.EXCLAMATION_MARK:{n.data+="!",this.state=k.COMMENT_LESS_THAN_SIGN_BANG;break}case E.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=k.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===E.HYPHEN_MINUS?this.state=k.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=k.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===E.HYPHEN_MINUS?this.state=k.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=k.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==E.GREATER_THAN_SIGN&&t!==E.EOF&&this._err(O.nestedComment),this.state=k.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{this.state=k.COMMENT_END;break}case E.EOF:{this._err(O.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=k.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case E.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentComment(n);break}case E.EXCLAMATION_MARK:{this.state=k.COMMENT_END_BANG;break}case E.HYPHEN_MINUS:{n.data+="-";break}case E.EOF:{this._err(O.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=k.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{n.data+="--!",this.state=k.COMMENT_END_DASH;break}case E.GREATER_THAN_SIGN:{this._err(O.incorrectlyClosedComment),this.state=k.DATA,this.emitCurrentComment(n);break}case E.EOF:{this._err(O.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=k.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_NAME;break}case E.GREATER_THAN_SIGN:{this.state=k.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case E.EOF:{this._err(O.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(O.missingWhitespaceBeforeDoctypeName),this.state=k.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(zn(t))this._createDoctypeToken(String.fromCharCode(fr(t))),this.state=k.DOCTYPE_NAME;else switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.NULL:{this._err(O.unexpectedNullCharacter),this._createDoctypeToken(ve),this.state=k.DOCTYPE_NAME;break}case E.GREATER_THAN_SIGN:{this._err(O.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case E.EOF:{this._err(O.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=k.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=k.AFTER_DOCTYPE_NAME;break}case E.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case E.NULL:{this._err(O.unexpectedNullCharacter),n.name+=ve;break}case E.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(zn(t)?fr(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(We.PUBLIC,!1)?this.state=k.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(We.SYSTEM,!1)?this.state=k.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(O.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case E.QUOTATION_MARK:{this._err(O.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this._err(O.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(O.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(O.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:{n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(O.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(O.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case E.QUOTATION_MARK:{this.state=k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case E.NULL:{this._err(O.unexpectedNullCharacter),n.publicId+=ve;break}case E.GREATER_THAN_SIGN:{this._err(O.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case E.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case E.APOSTROPHE:{this.state=k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case E.NULL:{this._err(O.unexpectedNullCharacter),n.publicId+=ve;break}case E.GREATER_THAN_SIGN:{this._err(O.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case E.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=k.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case E.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case E.QUOTATION_MARK:{this._err(O.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this._err(O.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(O.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case E.QUOTATION_MARK:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(O.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case E.QUOTATION_MARK:{this._err(O.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this._err(O.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(O.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(O.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(O.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(O.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case E.QUOTATION_MARK:{this.state=k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case E.NULL:{this._err(O.unexpectedNullCharacter),n.systemId+=ve;break}case E.GREATER_THAN_SIGN:{this._err(O.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case E.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case E.APOSTROPHE:{this.state=k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case E.NULL:{this._err(O.unexpectedNullCharacter),n.systemId+=ve;break}case E.GREATER_THAN_SIGN:{this._err(O.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case E.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case E.EOF:{this._err(O.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(O.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case E.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case E.NULL:{this._err(O.unexpectedNullCharacter);break}case E.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case E.RIGHT_SQUARE_BRACKET:{this.state=k.CDATA_SECTION_BRACKET;break}case E.EOF:{this._err(O.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===E.RIGHT_SQUARE_BRACKET?this.state=k.CDATA_SECTION_END:(this._emitChars("]"),this.state=k.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case E.GREATER_THAN_SIGN:{this.state=k.DATA;break}case E.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=k.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(E.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Rs(this.preprocessor.peek(1))?k.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Rs(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===E.SEMICOLON&&this._err(O.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const $l=new Set([c.DD,c.DT,c.LI,c.OPTGROUP,c.OPTION,c.P,c.RB,c.RP,c.RT,c.RTC]),Ps=new Set([...$l,c.CAPTION,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR]),vr=new Set([c.APPLET,c.CAPTION,c.HTML,c.MARQUEE,c.OBJECT,c.TABLE,c.TD,c.TEMPLATE,c.TH]),bp=new Set([...vr,c.OL,c.UL]),Ep=new Set([...vr,c.BUTTON]),Os=new Set([c.ANNOTATION_XML,c.MI,c.MN,c.MO,c.MS,c.MTEXT]),Ms=new Set([c.DESC,c.FOREIGN_OBJECT,c.TITLE]),Tp=new Set([c.TR,c.TEMPLATE,c.HTML]),kp=new Set([c.TBODY,c.TFOOT,c.THEAD,c.TEMPLATE,c.HTML]),xp=new Set([c.TABLE,c.TEMPLATE,c.HTML]),yp=new Set([c.TD,c.TH]);class Ap{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=c.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===c.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===H.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==H.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(qa,H.HTML)}popUntilTableCellPopped(){this.popUntilPopped(yp,H.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(xp,H.HTML)}clearBackToTableBodyContext(){this.clearBackTo(kp,H.HTML)}clearBackToTableRowContext(){this.clearBackTo(Tp,H.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===c.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===c.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case H.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case H.SVG:{if(Ms.has(a))return!1;break}case H.MATHML:{if(Os.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,vr)}hasInListItemScope(t){return this.hasInDynamicScope(t,bp)}hasInButtonScope(t){return this.hasInDynamicScope(t,Ep)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case H.HTML:{if(qa.has(n))return!0;if(vr.has(n))return!1;break}case H.SVG:{if(Ms.has(n))return!1;break}case H.MATHML:{if(Os.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===H.HTML)switch(this.tagIDs[n]){case t:return!0;case c.TABLE:case c.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===H.HTML)switch(this.tagIDs[t]){case c.TBODY:case c.THEAD:case c.TFOOT:return!0;case c.TABLE:case c.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===H.HTML)switch(this.tagIDs[n]){case t:return!0;case c.OPTION:case c.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&$l.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Ps.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Ps.has(this.currentTagId);)this.pop()}}const ma=3;var Tt;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Tt||(Tt={}));const Fs={type:Tt.Marker};class Cp{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,i=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const l=this.entries[o];if(l.type===Tt.Marker)break;const{element:u}=l;if(this.treeAdapter.getTagName(u)===i&&this.treeAdapter.getNamespaceURI(u)===s){const d=this.treeAdapter.getAttrList(u);d.length===a&&r.push({idx:o,attrs:d})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<ma)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<ma)return;const a=new Map(n.map(s=>[s.name,s.value]));let i=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(l=>a.get(l.name)===l.value)&&(i+=1,i>=ma&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Fs)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Tt.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Tt.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Fs);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Tt.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Tt.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Tt.Element&&n.element===t)}}const Ot={createDocument(){return{nodeName:"#document",mode:at.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Ot.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Ot.isTextNode(n)){n.value+=t;return}}Ot.appendChild(e,Ot.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Ot.isTextNode(r)?r.value+=t:Ot.insertBefore(e,Ot.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Yl="html",_p="about:legacy-compat",wp="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Gl=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Sp=[...Gl,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],Ip=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Wl=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],vp=[...Wl,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Bs(e,t){return t.some(n=>e.startsWith(n))}function Np(e){return e.name===Yl&&e.publicId===null&&(e.systemId===null||e.systemId===_p)}function Lp(e){if(e.name!==Yl)return at.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===wp)return at.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),Ip.has(n))return at.QUIRKS;let r=t===null?Sp:Gl;if(Bs(n,r))return at.QUIRKS;if(r=t===null?Wl:vp,Bs(n,r))return at.LIMITED_QUIRKS}return at.NO_QUIRKS}const zs={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Rp="definitionurl",Dp="definitionURL",Pp=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),Op=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:H.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:H.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:H.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:H.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:H.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:H.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:H.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:H.XML}],["xml:space",{prefix:"xml",name:"space",namespace:H.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:H.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:H.XMLNS}]]),Mp=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Fp=new Set([c.B,c.BIG,c.BLOCKQUOTE,c.BODY,c.BR,c.CENTER,c.CODE,c.DD,c.DIV,c.DL,c.DT,c.EM,c.EMBED,c.H1,c.H2,c.H3,c.H4,c.H5,c.H6,c.HEAD,c.HR,c.I,c.IMG,c.LI,c.LISTING,c.MENU,c.META,c.NOBR,c.OL,c.P,c.PRE,c.RUBY,c.S,c.SMALL,c.SPAN,c.STRONG,c.STRIKE,c.SUB,c.SUP,c.TABLE,c.TT,c.U,c.UL,c.VAR]);function Bp(e){const t=e.tagID;return t===c.FONT&&e.attrs.some(({name:r})=>r===Zt.COLOR||r===Zt.SIZE||r===Zt.FACE)||Fp.has(t)}function Kl(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Rp){e.attrs[t].name=Dp;break}}function Ql(e){for(let t=0;t<e.attrs.length;t++){const n=Pp.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function vi(e){for(let t=0;t<e.attrs.length;t++){const n=Op.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function zp(e){const t=Mp.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=xn(e.tagName))}function jp(e,t){return t===H.MATHML&&(e===c.MI||e===c.MO||e===c.MN||e===c.MS||e===c.MTEXT)}function Hp(e,t,n){if(t===H.MATHML&&e===c.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Zt.ENCODING){const a=n[r].value.toLowerCase();return a===zs.TEXT_HTML||a===zs.APPLICATION_XML}}return t===H.SVG&&(e===c.FOREIGN_OBJECT||e===c.DESC||e===c.TITLE)}function Up(e,t,n,r){return(!r||r===H.HTML)&&Hp(e,t,n)||(!r||r===H.MATHML)&&jp(e,t)}const qp="hidden",Vp=8,$p=3;var C;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(C||(C={}));const Yp={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},Xl=new Set([c.TABLE,c.TBODY,c.TFOOT,c.THEAD,c.TR]),js={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Ot,onParseError:null};class Hs{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=C.INITIAL,this.originalInsertionMode=C.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...js,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new gp(this.options,this),this.activeFormattingElements=new Cp(this.treeAdapter),this.fragmentContextID=r?xn(this.treeAdapter.getTagName(r)):c.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Ap(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...js,...n};t??(t=r.treeAdapter.createElement(N.TEMPLATE,H.HTML,[]));const a=r.treeAdapter.createElement("documentmock",H.HTML,[]),i=new this(r,a,t);return i.fragmentContextID===c.TEMPLATE&&i.tmplInsertionModeStack.unshift(C.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const i=(a=t.location)!==null&&a!==void 0?a:Yp,s={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(s)}onItemPush(t,n,r){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let i,s;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,s=this.fragmentContextID):{current:i,currentTagId:s}=this.openElements,this._setContextModes(i,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===H.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,H.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=C.TEXT}switchToPlaintextParsing(){this.insertionMode=C.TEXT,this.originalInsertionMode=C.IN_BODY,this.tokenizer.state=Re.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===N.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==H.HTML))switch(this.fragmentContextID){case c.TITLE:case c.TEXTAREA:{this.tokenizer.state=Re.RCDATA;break}case c.STYLE:case c.XMP:case c.IFRAME:case c.NOEMBED:case c.NOFRAMES:case c.NOSCRIPT:{this.tokenizer.state=Re.RAWTEXT;break}case c.SCRIPT:{this.tokenizer.state=Re.SCRIPT_DATA;break}case c.PLAINTEXT:{this.tokenizer.state=Re.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,H.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,H.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(N.HTML,H.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,c.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),i=r?a.lastIndexOf(r):a.length,s=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:u,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:u,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),i=n.type===oe.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===c.SVG&&this.treeAdapter.getTagName(n)===N.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===H.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===c.MGLYPH||t.tagID===c.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,H.HTML)}_processToken(t){switch(t.type){case oe.CHARACTER:{this.onCharacter(t);break}case oe.NULL_CHARACTER:{this.onNullCharacter(t);break}case oe.COMMENT:{this.onComment(t);break}case oe.DOCTYPE:{this.onDoctype(t);break}case oe.START_TAG:{this._processStartTag(t);break}case oe.END_TAG:{this.onEndTag(t);break}case oe.EOF:{this.onEof(t);break}case oe.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return Up(t,a,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===Tt.Marker||this.openElements.contains(a.element)),r=n===-1?t-1:n-1;for(let a=r;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=C.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(c.P),this.openElements.popUntilTagNamePopped(c.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case c.TR:{this.insertionMode=C.IN_ROW;return}case c.TBODY:case c.THEAD:case c.TFOOT:{this.insertionMode=C.IN_TABLE_BODY;return}case c.CAPTION:{this.insertionMode=C.IN_CAPTION;return}case c.COLGROUP:{this.insertionMode=C.IN_COLUMN_GROUP;return}case c.TABLE:{this.insertionMode=C.IN_TABLE;return}case c.BODY:{this.insertionMode=C.IN_BODY;return}case c.FRAMESET:{this.insertionMode=C.IN_FRAMESET;return}case c.SELECT:{this._resetInsertionModeForSelect(t);return}case c.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case c.HTML:{this.insertionMode=this.headElement?C.AFTER_HEAD:C.BEFORE_HEAD;return}case c.TD:case c.TH:{if(t>0){this.insertionMode=C.IN_CELL;return}break}case c.HEAD:{if(t>0){this.insertionMode=C.IN_HEAD;return}break}}this.insertionMode=C.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===c.TEMPLATE)break;if(r===c.TABLE){this.insertionMode=C.IN_SELECT_IN_TABLE;return}}this.insertionMode=C.IN_SELECT}_isElementCausesFosterParenting(t){return Xl.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case c.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===H.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case c.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return hp[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){yg(this,t);return}switch(this.insertionMode){case C.INITIAL:{Nn(this,t);break}case C.BEFORE_HTML:{Vn(this,t);break}case C.BEFORE_HEAD:{$n(this,t);break}case C.IN_HEAD:{Yn(this,t);break}case C.IN_HEAD_NO_SCRIPT:{Gn(this,t);break}case C.AFTER_HEAD:{Wn(this,t);break}case C.IN_BODY:case C.IN_CAPTION:case C.IN_CELL:case C.IN_TEMPLATE:{Jl(this,t);break}case C.TEXT:case C.IN_SELECT:case C.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case C.IN_TABLE:case C.IN_TABLE_BODY:case C.IN_ROW:{fa(this,t);break}case C.IN_TABLE_TEXT:{iu(this,t);break}case C.IN_COLUMN_GROUP:{Nr(this,t);break}case C.AFTER_BODY:{Lr(this,t);break}case C.AFTER_AFTER_BODY:{Cr(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){xg(this,t);return}switch(this.insertionMode){case C.INITIAL:{Nn(this,t);break}case C.BEFORE_HTML:{Vn(this,t);break}case C.BEFORE_HEAD:{$n(this,t);break}case C.IN_HEAD:{Yn(this,t);break}case C.IN_HEAD_NO_SCRIPT:{Gn(this,t);break}case C.AFTER_HEAD:{Wn(this,t);break}case C.TEXT:{this._insertCharacters(t);break}case C.IN_TABLE:case C.IN_TABLE_BODY:case C.IN_ROW:{fa(this,t);break}case C.IN_COLUMN_GROUP:{Nr(this,t);break}case C.AFTER_BODY:{Lr(this,t);break}case C.AFTER_AFTER_BODY:{Cr(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Va(this,t);return}switch(this.insertionMode){case C.INITIAL:case C.BEFORE_HTML:case C.BEFORE_HEAD:case C.IN_HEAD:case C.IN_HEAD_NO_SCRIPT:case C.AFTER_HEAD:case C.IN_BODY:case C.IN_TABLE:case C.IN_CAPTION:case C.IN_COLUMN_GROUP:case C.IN_TABLE_BODY:case C.IN_ROW:case C.IN_CELL:case C.IN_SELECT:case C.IN_SELECT_IN_TABLE:case C.IN_TEMPLATE:case C.IN_FRAMESET:case C.AFTER_FRAMESET:{Va(this,t);break}case C.IN_TABLE_TEXT:{Ln(this,t);break}case C.AFTER_BODY:{Jp(this,t);break}case C.AFTER_AFTER_BODY:case C.AFTER_AFTER_FRAMESET:{e0(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case C.INITIAL:{t0(this,t);break}case C.BEFORE_HEAD:case C.IN_HEAD:case C.IN_HEAD_NO_SCRIPT:case C.AFTER_HEAD:{this._err(t,O.misplacedDoctype);break}case C.IN_TABLE_TEXT:{Ln(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,O.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?Ag(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case C.INITIAL:{Nn(this,t);break}case C.BEFORE_HTML:{n0(this,t);break}case C.BEFORE_HEAD:{a0(this,t);break}case C.IN_HEAD:{ht(this,t);break}case C.IN_HEAD_NO_SCRIPT:{o0(this,t);break}case C.AFTER_HEAD:{u0(this,t);break}case C.IN_BODY:{je(this,t);break}case C.IN_TABLE:{gn(this,t);break}case C.IN_TABLE_TEXT:{Ln(this,t);break}case C.IN_CAPTION:{ig(this,t);break}case C.IN_COLUMN_GROUP:{Ri(this,t);break}case C.IN_TABLE_BODY:{Qr(this,t);break}case C.IN_ROW:{Xr(this,t);break}case C.IN_CELL:{lg(this,t);break}case C.IN_SELECT:{lu(this,t);break}case C.IN_SELECT_IN_TABLE:{cg(this,t);break}case C.IN_TEMPLATE:{hg(this,t);break}case C.AFTER_BODY:{fg(this,t);break}case C.IN_FRAMESET:{pg(this,t);break}case C.AFTER_FRAMESET:{bg(this,t);break}case C.AFTER_AFTER_BODY:{Tg(this,t);break}case C.AFTER_AFTER_FRAMESET:{kg(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Cg(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case C.INITIAL:{Nn(this,t);break}case C.BEFORE_HTML:{r0(this,t);break}case C.BEFORE_HEAD:{i0(this,t);break}case C.IN_HEAD:{s0(this,t);break}case C.IN_HEAD_NO_SCRIPT:{l0(this,t);break}case C.AFTER_HEAD:{c0(this,t);break}case C.IN_BODY:{Kr(this,t);break}case C.TEXT:{K0(this,t);break}case C.IN_TABLE:{Jn(this,t);break}case C.IN_TABLE_TEXT:{Ln(this,t);break}case C.IN_CAPTION:{sg(this,t);break}case C.IN_COLUMN_GROUP:{og(this,t);break}case C.IN_TABLE_BODY:{$a(this,t);break}case C.IN_ROW:{ou(this,t);break}case C.IN_CELL:{ug(this,t);break}case C.IN_SELECT:{uu(this,t);break}case C.IN_SELECT_IN_TABLE:{dg(this,t);break}case C.IN_TEMPLATE:{mg(this,t);break}case C.AFTER_BODY:{du(this,t);break}case C.IN_FRAMESET:{gg(this,t);break}case C.AFTER_FRAMESET:{Eg(this,t);break}case C.AFTER_AFTER_BODY:{Cr(this,t);break}}}onEof(t){switch(this.insertionMode){case C.INITIAL:{Nn(this,t);break}case C.BEFORE_HTML:{Vn(this,t);break}case C.BEFORE_HEAD:{$n(this,t);break}case C.IN_HEAD:{Yn(this,t);break}case C.IN_HEAD_NO_SCRIPT:{Gn(this,t);break}case C.AFTER_HEAD:{Wn(this,t);break}case C.IN_BODY:case C.IN_TABLE:case C.IN_CAPTION:case C.IN_COLUMN_GROUP:case C.IN_TABLE_BODY:case C.IN_ROW:case C.IN_CELL:case C.IN_SELECT:case C.IN_SELECT_IN_TABLE:{ru(this,t);break}case C.TEXT:{Q0(this,t);break}case C.IN_TABLE_TEXT:{Ln(this,t);break}case C.IN_TEMPLATE:{cu(this,t);break}case C.AFTER_BODY:case C.IN_FRAMESET:case C.AFTER_FRAMESET:case C.AFTER_AFTER_BODY:case C.AFTER_AFTER_FRAMESET:{Li(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===E.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case C.IN_HEAD:case C.IN_HEAD_NO_SCRIPT:case C.AFTER_HEAD:case C.TEXT:case C.IN_COLUMN_GROUP:case C.IN_SELECT:case C.IN_SELECT_IN_TABLE:case C.IN_FRAMESET:case C.AFTER_FRAMESET:{this._insertCharacters(t);break}case C.IN_BODY:case C.IN_CAPTION:case C.IN_CELL:case C.IN_TEMPLATE:case C.AFTER_BODY:case C.AFTER_AFTER_BODY:case C.AFTER_AFTER_FRAMESET:{Zl(this,t);break}case C.IN_TABLE:case C.IN_TABLE_BODY:case C.IN_ROW:{fa(this,t);break}case C.IN_TABLE_TEXT:{au(this,t);break}}}}function Gp(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):nu(e,t),n}function Wp(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function Kp(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,s=a;s!==n;i++,s=a){a=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),l=o&&i>=$p;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=Qp(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Qp(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function Xp(e,t,n){const r=e.treeAdapter.getTagName(t),a=xn(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);a===c.TEMPLATE&&i===H.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Zp(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,a.tagID)}function Ni(e,t){for(let n=0;n<Vp;n++){const r=Gp(e,t);if(!r)break;const a=Wp(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const i=Kp(e,a,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),s&&Xp(e,s,i),Zp(e,a,r)}}function Va(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function Jp(e,t){e._appendCommentNode(t,e.openElements.items[0])}function e0(e,t){e._appendCommentNode(t,e.document)}function Li(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(i);s&&!s.endTag&&e._setEndLocation(i,t)}}}}function t0(e,t){e._setDocumentType(t);const n=t.forceQuirks?at.QUIRKS:Lp(t);Np(t)||e._err(t,O.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=C.BEFORE_HTML}function Nn(e,t){e._err(t,O.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,at.QUIRKS),e.insertionMode=C.BEFORE_HTML,e._processToken(t)}function n0(e,t){t.tagID===c.HTML?(e._insertElement(t,H.HTML),e.insertionMode=C.BEFORE_HEAD):Vn(e,t)}function r0(e,t){const n=t.tagID;(n===c.HTML||n===c.HEAD||n===c.BODY||n===c.BR)&&Vn(e,t)}function Vn(e,t){e._insertFakeRootElement(),e.insertionMode=C.BEFORE_HEAD,e._processToken(t)}function a0(e,t){switch(t.tagID){case c.HTML:{je(e,t);break}case c.HEAD:{e._insertElement(t,H.HTML),e.headElement=e.openElements.current,e.insertionMode=C.IN_HEAD;break}default:$n(e,t)}}function i0(e,t){const n=t.tagID;n===c.HEAD||n===c.BODY||n===c.HTML||n===c.BR?$n(e,t):e._err(t,O.endTagWithoutMatchingOpenElement)}function $n(e,t){e._insertFakeElement(N.HEAD,c.HEAD),e.headElement=e.openElements.current,e.insertionMode=C.IN_HEAD,e._processToken(t)}function ht(e,t){switch(t.tagID){case c.HTML:{je(e,t);break}case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:{e._appendElement(t,H.HTML),t.ackSelfClosing=!0;break}case c.TITLE:{e._switchToTextParsing(t,Re.RCDATA);break}case c.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Re.RAWTEXT):(e._insertElement(t,H.HTML),e.insertionMode=C.IN_HEAD_NO_SCRIPT);break}case c.NOFRAMES:case c.STYLE:{e._switchToTextParsing(t,Re.RAWTEXT);break}case c.SCRIPT:{e._switchToTextParsing(t,Re.SCRIPT_DATA);break}case c.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=C.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(C.IN_TEMPLATE);break}case c.HEAD:{e._err(t,O.misplacedStartTagForHeadElement);break}default:Yn(e,t)}}function s0(e,t){switch(t.tagID){case c.HEAD:{e.openElements.pop(),e.insertionMode=C.AFTER_HEAD;break}case c.BODY:case c.BR:case c.HTML:{Yn(e,t);break}case c.TEMPLATE:{rn(e,t);break}default:e._err(t,O.endTagWithoutMatchingOpenElement)}}function rn(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==c.TEMPLATE&&e._err(t,O.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,O.endTagWithoutMatchingOpenElement)}function Yn(e,t){e.openElements.pop(),e.insertionMode=C.AFTER_HEAD,e._processToken(t)}function o0(e,t){switch(t.tagID){case c.HTML:{je(e,t);break}case c.BASEFONT:case c.BGSOUND:case c.HEAD:case c.LINK:case c.META:case c.NOFRAMES:case c.STYLE:{ht(e,t);break}case c.NOSCRIPT:{e._err(t,O.nestedNoscriptInHead);break}default:Gn(e,t)}}function l0(e,t){switch(t.tagID){case c.NOSCRIPT:{e.openElements.pop(),e.insertionMode=C.IN_HEAD;break}case c.BR:{Gn(e,t);break}default:e._err(t,O.endTagWithoutMatchingOpenElement)}}function Gn(e,t){const n=t.type===oe.EOF?O.openElementsLeftAfterEof:O.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=C.IN_HEAD,e._processToken(t)}function u0(e,t){switch(t.tagID){case c.HTML:{je(e,t);break}case c.BODY:{e._insertElement(t,H.HTML),e.framesetOk=!1,e.insertionMode=C.IN_BODY;break}case c.FRAMESET:{e._insertElement(t,H.HTML),e.insertionMode=C.IN_FRAMESET;break}case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:{e._err(t,O.abandonedHeadElementChild),e.openElements.push(e.headElement,c.HEAD),ht(e,t),e.openElements.remove(e.headElement);break}case c.HEAD:{e._err(t,O.misplacedStartTagForHeadElement);break}default:Wn(e,t)}}function c0(e,t){switch(t.tagID){case c.BODY:case c.HTML:case c.BR:{Wn(e,t);break}case c.TEMPLATE:{rn(e,t);break}default:e._err(t,O.endTagWithoutMatchingOpenElement)}}function Wn(e,t){e._insertFakeElement(N.BODY,c.BODY),e.insertionMode=C.IN_BODY,Wr(e,t)}function Wr(e,t){switch(t.type){case oe.CHARACTER:{Jl(e,t);break}case oe.WHITESPACE_CHARACTER:{Zl(e,t);break}case oe.COMMENT:{Va(e,t);break}case oe.START_TAG:{je(e,t);break}case oe.END_TAG:{Kr(e,t);break}case oe.EOF:{ru(e,t);break}}}function Zl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Jl(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function d0(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function h0(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function m0(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,H.HTML),e.insertionMode=C.IN_FRAMESET)}function f0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,H.HTML)}function p0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&qa.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,H.HTML)}function g0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,H.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function b0(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,H.HTML),n||(e.formElement=e.openElements.current))}function E0(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===c.LI&&a===c.LI||(n===c.DD||n===c.DT)&&(a===c.DD||a===c.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==c.ADDRESS&&a!==c.DIV&&a!==c.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,H.HTML)}function T0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,H.HTML),e.tokenizer.state=Re.PLAINTEXT}function k0(e,t){e.openElements.hasInScope(c.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,H.HTML),e.framesetOk=!1}function x0(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(N.A);n&&(Ni(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,H.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function y0(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,H.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function A0(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(c.NOBR)&&(Ni(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,H.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function C0(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,H.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function _0(e,t){e.treeAdapter.getDocumentMode(e.document)!==at.QUIRKS&&e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._insertElement(t,H.HTML),e.framesetOk=!1,e.insertionMode=C.IN_TABLE}function eu(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,H.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function tu(e){const t=ql(e,Zt.TYPE);return t!=null&&t.toLowerCase()===qp}function w0(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,H.HTML),tu(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function S0(e,t){e._appendElement(t,H.HTML),t.ackSelfClosing=!0}function I0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._appendElement(t,H.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function v0(e,t){t.tagName=N.IMG,t.tagID=c.IMG,eu(e,t)}function N0(e,t){e._insertElement(t,H.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Re.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=C.TEXT}function L0(e,t){e.openElements.hasInButtonScope(c.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Re.RAWTEXT)}function R0(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Re.RAWTEXT)}function Us(e,t){e._switchToTextParsing(t,Re.RAWTEXT)}function D0(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,H.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===C.IN_TABLE||e.insertionMode===C.IN_CAPTION||e.insertionMode===C.IN_TABLE_BODY||e.insertionMode===C.IN_ROW||e.insertionMode===C.IN_CELL?C.IN_SELECT_IN_TABLE:C.IN_SELECT}function P0(e,t){e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,H.HTML)}function O0(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,H.HTML)}function M0(e,t){e.openElements.hasInScope(c.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(c.RTC),e._insertElement(t,H.HTML)}function F0(e,t){e._reconstructActiveFormattingElements(),Kl(t),vi(t),t.selfClosing?e._appendElement(t,H.MATHML):e._insertElement(t,H.MATHML),t.ackSelfClosing=!0}function B0(e,t){e._reconstructActiveFormattingElements(),Ql(t),vi(t),t.selfClosing?e._appendElement(t,H.SVG):e._insertElement(t,H.SVG),t.ackSelfClosing=!0}function qs(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,H.HTML)}function je(e,t){switch(t.tagID){case c.I:case c.S:case c.B:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.SMALL:case c.STRIKE:case c.STRONG:{y0(e,t);break}case c.A:{x0(e,t);break}case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:{p0(e,t);break}case c.P:case c.DL:case c.OL:case c.UL:case c.DIV:case c.DIR:case c.NAV:case c.MAIN:case c.MENU:case c.ASIDE:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.DETAILS:case c.ADDRESS:case c.ARTICLE:case c.SEARCH:case c.SECTION:case c.SUMMARY:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:{f0(e,t);break}case c.LI:case c.DD:case c.DT:{E0(e,t);break}case c.BR:case c.IMG:case c.WBR:case c.AREA:case c.EMBED:case c.KEYGEN:{eu(e,t);break}case c.HR:{I0(e,t);break}case c.RB:case c.RTC:{O0(e,t);break}case c.RT:case c.RP:{M0(e,t);break}case c.PRE:case c.LISTING:{g0(e,t);break}case c.XMP:{L0(e,t);break}case c.SVG:{B0(e,t);break}case c.HTML:{d0(e,t);break}case c.BASE:case c.LINK:case c.META:case c.STYLE:case c.TITLE:case c.SCRIPT:case c.BGSOUND:case c.BASEFONT:case c.TEMPLATE:{ht(e,t);break}case c.BODY:{h0(e,t);break}case c.FORM:{b0(e,t);break}case c.NOBR:{A0(e,t);break}case c.MATH:{F0(e,t);break}case c.TABLE:{_0(e,t);break}case c.INPUT:{w0(e,t);break}case c.PARAM:case c.TRACK:case c.SOURCE:{S0(e,t);break}case c.IMAGE:{v0(e,t);break}case c.BUTTON:{k0(e,t);break}case c.APPLET:case c.OBJECT:case c.MARQUEE:{C0(e,t);break}case c.IFRAME:{R0(e,t);break}case c.SELECT:{D0(e,t);break}case c.OPTION:case c.OPTGROUP:{P0(e,t);break}case c.NOEMBED:case c.NOFRAMES:{Us(e,t);break}case c.FRAMESET:{m0(e,t);break}case c.TEXTAREA:{N0(e,t);break}case c.NOSCRIPT:{e.options.scriptingEnabled?Us(e,t):qs(e,t);break}case c.PLAINTEXT:{T0(e,t);break}case c.COL:case c.TH:case c.TD:case c.TR:case c.HEAD:case c.FRAME:case c.TBODY:case c.TFOOT:case c.THEAD:case c.CAPTION:case c.COLGROUP:break;default:qs(e,t)}}function z0(e,t){if(e.openElements.hasInScope(c.BODY)&&(e.insertionMode=C.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function j0(e,t){e.openElements.hasInScope(c.BODY)&&(e.insertionMode=C.AFTER_BODY,du(e,t))}function H0(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function U0(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(c.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(c.FORM):n&&e.openElements.remove(n))}function q0(e){e.openElements.hasInButtonScope(c.P)||e._insertFakeElement(N.P,c.P),e._closePElement()}function V0(e){e.openElements.hasInListItemScope(c.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(c.LI),e.openElements.popUntilTagNamePopped(c.LI))}function $0(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Y0(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function G0(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function W0(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(N.BR,c.BR),e.openElements.pop(),e.framesetOk=!1}function nu(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],s=e.openElements.tagIDs[a];if(r===s&&(r!==c.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,s))break}}function Kr(e,t){switch(t.tagID){case c.A:case c.B:case c.I:case c.S:case c.U:case c.EM:case c.TT:case c.BIG:case c.CODE:case c.FONT:case c.NOBR:case c.SMALL:case c.STRIKE:case c.STRONG:{Ni(e,t);break}case c.P:{q0(e);break}case c.DL:case c.UL:case c.OL:case c.DIR:case c.DIV:case c.NAV:case c.PRE:case c.MAIN:case c.MENU:case c.ASIDE:case c.BUTTON:case c.CENTER:case c.FIGURE:case c.FOOTER:case c.HEADER:case c.HGROUP:case c.DIALOG:case c.ADDRESS:case c.ARTICLE:case c.DETAILS:case c.SEARCH:case c.SECTION:case c.SUMMARY:case c.LISTING:case c.FIELDSET:case c.BLOCKQUOTE:case c.FIGCAPTION:{H0(e,t);break}case c.LI:{V0(e);break}case c.DD:case c.DT:{$0(e,t);break}case c.H1:case c.H2:case c.H3:case c.H4:case c.H5:case c.H6:{Y0(e);break}case c.BR:{W0(e);break}case c.BODY:{z0(e,t);break}case c.HTML:{j0(e,t);break}case c.FORM:{U0(e);break}case c.APPLET:case c.OBJECT:case c.MARQUEE:{G0(e,t);break}case c.TEMPLATE:{rn(e,t);break}default:nu(e,t)}}function ru(e,t){e.tmplInsertionModeStack.length>0?cu(e,t):Li(e,t)}function K0(e,t){var n;t.tagID===c.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Q0(e,t){e._err(t,O.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function fa(e,t){if(e.openElements.currentTagId!==void 0&&Xl.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=C.IN_TABLE_TEXT,t.type){case oe.CHARACTER:{iu(e,t);break}case oe.WHITESPACE_CHARACTER:{au(e,t);break}}else ir(e,t)}function X0(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,H.HTML),e.insertionMode=C.IN_CAPTION}function Z0(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,H.HTML),e.insertionMode=C.IN_COLUMN_GROUP}function J0(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(N.COLGROUP,c.COLGROUP),e.insertionMode=C.IN_COLUMN_GROUP,Ri(e,t)}function eg(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,H.HTML),e.insertionMode=C.IN_TABLE_BODY}function tg(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(N.TBODY,c.TBODY),e.insertionMode=C.IN_TABLE_BODY,Qr(e,t)}function ng(e,t){e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function rg(e,t){tu(t)?e._appendElement(t,H.HTML):ir(e,t),t.ackSelfClosing=!0}function ag(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,H.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function gn(e,t){switch(t.tagID){case c.TD:case c.TH:case c.TR:{tg(e,t);break}case c.STYLE:case c.SCRIPT:case c.TEMPLATE:{ht(e,t);break}case c.COL:{J0(e,t);break}case c.FORM:{ag(e,t);break}case c.TABLE:{ng(e,t);break}case c.TBODY:case c.TFOOT:case c.THEAD:{eg(e,t);break}case c.INPUT:{rg(e,t);break}case c.CAPTION:{X0(e,t);break}case c.COLGROUP:{Z0(e,t);break}default:ir(e,t)}}function Jn(e,t){switch(t.tagID){case c.TABLE:{e.openElements.hasInTableScope(c.TABLE)&&(e.openElements.popUntilTagNamePopped(c.TABLE),e._resetInsertionMode());break}case c.TEMPLATE:{rn(e,t);break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:ir(e,t)}}function ir(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Wr(e,t),e.fosterParentingEnabled=n}function au(e,t){e.pendingCharacterTokens.push(t)}function iu(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Ln(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)ir(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const su=new Set([c.CAPTION,c.COL,c.COLGROUP,c.TBODY,c.TD,c.TFOOT,c.TH,c.THEAD,c.TR]);function ig(e,t){const n=t.tagID;su.has(n)?e.openElements.hasInTableScope(c.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=C.IN_TABLE,gn(e,t)):je(e,t)}function sg(e,t){const n=t.tagID;switch(n){case c.CAPTION:case c.TABLE:{e.openElements.hasInTableScope(c.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(c.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=C.IN_TABLE,n===c.TABLE&&Jn(e,t));break}case c.BODY:case c.COL:case c.COLGROUP:case c.HTML:case c.TBODY:case c.TD:case c.TFOOT:case c.TH:case c.THEAD:case c.TR:break;default:Kr(e,t)}}function Ri(e,t){switch(t.tagID){case c.HTML:{je(e,t);break}case c.COL:{e._appendElement(t,H.HTML),t.ackSelfClosing=!0;break}case c.TEMPLATE:{ht(e,t);break}default:Nr(e,t)}}function og(e,t){switch(t.tagID){case c.COLGROUP:{e.openElements.currentTagId===c.COLGROUP&&(e.openElements.pop(),e.insertionMode=C.IN_TABLE);break}case c.TEMPLATE:{rn(e,t);break}case c.COL:break;default:Nr(e,t)}}function Nr(e,t){e.openElements.currentTagId===c.COLGROUP&&(e.openElements.pop(),e.insertionMode=C.IN_TABLE,e._processToken(t))}function Qr(e,t){switch(t.tagID){case c.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,H.HTML),e.insertionMode=C.IN_ROW;break}case c.TH:case c.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(N.TR,c.TR),e.insertionMode=C.IN_ROW,Xr(e,t);break}case c.CAPTION:case c.COL:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE,gn(e,t));break}default:gn(e,t)}}function $a(e,t){const n=t.tagID;switch(t.tagID){case c.TBODY:case c.TFOOT:case c.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE);break}case c.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE,Jn(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TD:case c.TH:case c.TR:break;default:Jn(e,t)}}function Xr(e,t){switch(t.tagID){case c.TH:case c.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,H.HTML),e.insertionMode=C.IN_CELL,e.activeFormattingElements.insertMarker();break}case c.CAPTION:case c.COL:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:case c.TR:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE_BODY,Qr(e,t));break}default:gn(e,t)}}function ou(e,t){switch(t.tagID){case c.TR:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE_BODY);break}case c.TABLE:{e.openElements.hasInTableScope(c.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE_BODY,$a(e,t));break}case c.TBODY:case c.TFOOT:case c.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(c.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=C.IN_TABLE_BODY,$a(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:case c.TD:case c.TH:break;default:Jn(e,t)}}function lg(e,t){const n=t.tagID;su.has(n)?(e.openElements.hasInTableScope(c.TD)||e.openElements.hasInTableScope(c.TH))&&(e._closeTableCell(),Xr(e,t)):je(e,t)}function ug(e,t){const n=t.tagID;switch(n){case c.TD:case c.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=C.IN_ROW);break}case c.TABLE:case c.TBODY:case c.TFOOT:case c.THEAD:case c.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),ou(e,t));break}case c.BODY:case c.CAPTION:case c.COL:case c.COLGROUP:case c.HTML:break;default:Kr(e,t)}}function lu(e,t){switch(t.tagID){case c.HTML:{je(e,t);break}case c.OPTION:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e._insertElement(t,H.HTML);break}case c.OPTGROUP:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop(),e._insertElement(t,H.HTML);break}case c.HR:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop(),e._appendElement(t,H.HTML),t.ackSelfClosing=!0;break}case c.INPUT:case c.KEYGEN:case c.TEXTAREA:case c.SELECT:{e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),t.tagID!==c.SELECT&&e._processStartTag(t));break}case c.SCRIPT:case c.TEMPLATE:{ht(e,t);break}}}function uu(e,t){switch(t.tagID){case c.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===c.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===c.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===c.OPTGROUP&&e.openElements.pop();break}case c.OPTION:{e.openElements.currentTagId===c.OPTION&&e.openElements.pop();break}case c.SELECT:{e.openElements.hasInSelectScope(c.SELECT)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode());break}case c.TEMPLATE:{rn(e,t);break}}}function cg(e,t){const n=t.tagID;n===c.CAPTION||n===c.TABLE||n===c.TBODY||n===c.TFOOT||n===c.THEAD||n===c.TR||n===c.TD||n===c.TH?(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e._processStartTag(t)):lu(e,t)}function dg(e,t){const n=t.tagID;n===c.CAPTION||n===c.TABLE||n===c.TBODY||n===c.TFOOT||n===c.THEAD||n===c.TR||n===c.TD||n===c.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(c.SELECT),e._resetInsertionMode(),e.onEndTag(t)):uu(e,t)}function hg(e,t){switch(t.tagID){case c.BASE:case c.BASEFONT:case c.BGSOUND:case c.LINK:case c.META:case c.NOFRAMES:case c.SCRIPT:case c.STYLE:case c.TEMPLATE:case c.TITLE:{ht(e,t);break}case c.CAPTION:case c.COLGROUP:case c.TBODY:case c.TFOOT:case c.THEAD:{e.tmplInsertionModeStack[0]=C.IN_TABLE,e.insertionMode=C.IN_TABLE,gn(e,t);break}case c.COL:{e.tmplInsertionModeStack[0]=C.IN_COLUMN_GROUP,e.insertionMode=C.IN_COLUMN_GROUP,Ri(e,t);break}case c.TR:{e.tmplInsertionModeStack[0]=C.IN_TABLE_BODY,e.insertionMode=C.IN_TABLE_BODY,Qr(e,t);break}case c.TD:case c.TH:{e.tmplInsertionModeStack[0]=C.IN_ROW,e.insertionMode=C.IN_ROW,Xr(e,t);break}default:e.tmplInsertionModeStack[0]=C.IN_BODY,e.insertionMode=C.IN_BODY,je(e,t)}}function mg(e,t){t.tagID===c.TEMPLATE&&rn(e,t)}function cu(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(c.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Li(e,t)}function fg(e,t){t.tagID===c.HTML?je(e,t):Lr(e,t)}function du(e,t){var n;if(t.tagID===c.HTML){if(e.fragmentContext||(e.insertionMode=C.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===c.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Lr(e,t)}function Lr(e,t){e.insertionMode=C.IN_BODY,Wr(e,t)}function pg(e,t){switch(t.tagID){case c.HTML:{je(e,t);break}case c.FRAMESET:{e._insertElement(t,H.HTML);break}case c.FRAME:{e._appendElement(t,H.HTML),t.ackSelfClosing=!0;break}case c.NOFRAMES:{ht(e,t);break}}}function gg(e,t){t.tagID===c.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==c.FRAMESET&&(e.insertionMode=C.AFTER_FRAMESET))}function bg(e,t){switch(t.tagID){case c.HTML:{je(e,t);break}case c.NOFRAMES:{ht(e,t);break}}}function Eg(e,t){t.tagID===c.HTML&&(e.insertionMode=C.AFTER_AFTER_FRAMESET)}function Tg(e,t){t.tagID===c.HTML?je(e,t):Cr(e,t)}function Cr(e,t){e.insertionMode=C.IN_BODY,Wr(e,t)}function kg(e,t){switch(t.tagID){case c.HTML:{je(e,t);break}case c.NOFRAMES:{ht(e,t);break}}}function xg(e,t){t.chars=ve,e._insertCharacters(t)}function yg(e,t){e._insertCharacters(t),e.framesetOk=!1}function hu(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==H.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function Ag(e,t){if(Bp(t))hu(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===H.MATHML?Kl(t):r===H.SVG&&(zp(t),Ql(t)),vi(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Cg(e,t){if(t.tagID===c.P||t.tagID===c.BR){hu(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===H.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}N.AREA,N.BASE,N.BASEFONT,N.BGSOUND,N.BR,N.COL,N.EMBED,N.FRAME,N.HR,N.IMG,N.INPUT,N.KEYGEN,N.LINK,N.META,N.PARAM,N.SOURCE,N.TRACK,N.WBR;const Zr=mu("end"),xt=mu("start");function mu(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function fu(e){const t=xt(e),n=Zr(e);if(t&&n)return{start:t,end:n}}const _g=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,wg=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Vs={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function pu(e,t){const n=Mg(e),r=Bl("type",{handlers:{root:Sg,element:Ig,text:vg,comment:bu,doctype:Ng,raw:Rg},unknown:Dg}),a={parser:n?new Hs(Vs):Hs.getFragmentParser(void 0,Vs),handle(o){r(o,a)},stitches:!1,options:t||{}};r(e,a),yn(a,xt());const i=n?a.parser.document:a.parser.getFragment(),s=Ff(i,{file:a.options.file});return a.stitches&&dt(s,"comment",function(o,l,u){const d=o;if(d.value.stitch&&u&&l!==void 0){const h=u.children;return h[l]=d.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function gu(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function Sg(e,t){gu(e.children,t)}function Ig(e,t){Pg(e,t),gu(e.children,t),Og(e,t)}function vg(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:oe.CHARACTER,chars:e.value,location:sr(e)};yn(t,xt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Ng(e,t){const n={type:oe.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:sr(e)};yn(t,xt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Lg(e,t){t.stitches=!0;const n=Fg(e);if("children"in e&&"children"in n){const r=pu({type:"root",children:e.children},t.options);n.children=r.children}bu({type:"comment",value:{stitch:n}},t)}function bu(e,t){const n=e.value,r={type:oe.COMMENT,data:n,location:sr(e)};yn(t,xt(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Rg(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,Eu(t,xt(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(_g,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function Dg(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))Lg(n,t);else{let r="";throw wg.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function yn(e,t){Eu(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Re.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Eu(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function Pg(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Re.PLAINTEXT)return;yn(t,xt(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:Qt.html;a===Qt.html&&n==="svg"&&(a=Qt.svg);const i=Uf({...e,children:[]},{space:a===Qt.svg?"svg":"html"}),s={type:oe.START_TAG,tagName:n,tagID:xn(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:sr(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Og(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Qf.includes(n)||t.parser.tokenizer.state===Re.PLAINTEXT)return;yn(t,Zr(e));const r={type:oe.END_TAG,tagName:n,tagID:xn(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:sr(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Re.RCDATA||t.parser.tokenizer.state===Re.RAWTEXT||t.parser.tokenizer.state===Re.SCRIPT_DATA)&&(t.parser.tokenizer.state=Re.DATA)}function Mg(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function sr(e){const t=xt(e)||{line:void 0,column:void 0,offset:void 0},n=Zr(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Fg(e){return"children"in e?Jt({...e,children:[]}):Jt(e)}function Ya(e){return function(t,n){return pu(t,{...e,file:n})}}const qt=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Gt={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...qt,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...qt],h2:[["className","sr-only"]],img:[...qt,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...qt,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...qt],table:[...qt],ul:[...qt,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Mt={}.hasOwnProperty;function Bg(e,t){let n={type:"root",children:[]};const r={schema:t?{...Gt,...t}:Gt,stack:[]},a=Tu(r,e);return a&&(Array.isArray(a)?a.length===1?n=a[0]:n.children=a:n=a),n}function Tu(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return zg(e,n);case"doctype":return jg(e,n);case"element":return Hg(e,n);case"root":return Ug(e,n);case"text":return qg(e,n)}}}function zg(e,t){if(e.schema.allowComments){const n=typeof t.value=="string"?t.value:"",r=n.indexOf("-->"),i={type:"comment",value:r<0?n:n.slice(0,r)};return or(i,t),i}}function jg(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return or(n,t),n}}function Hg(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const r=ku(e,t.children),a=Vg(e,t.properties);e.stack.pop();let i=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(i=!0,e.schema.ancestors&&Mt.call(e.schema.ancestors,n))){const o=e.schema.ancestors[n];let l=-1;for(i=!1;++l<o.length;)e.stack.includes(o[l])&&(i=!0)}if(!i)return e.schema.strip&&!e.schema.strip.includes(n)?r:void 0;const s={type:"element",tagName:n,properties:a,children:r};return or(s,t),s}function Ug(e,t){const r={type:"root",children:ku(e,t.children)};return or(r,t),r}function qg(e,t){const r={type:"text",value:typeof t.value=="string"?t.value:""};return or(r,t),r}function ku(e,t){const n=[];if(Array.isArray(t)){const r=t;let a=-1;for(;++a<r.length;){const i=Tu(e,r[a]);i&&(Array.isArray(i)?n.push(...i):n.push(i))}}return n}function Vg(e,t){const n=e.stack[e.stack.length-1],r=e.schema.attributes,a=e.schema.required,i=r&&Mt.call(r,n)?r[n]:void 0,s=r&&Mt.call(r,"*")?r["*"]:void 0,o=t&&typeof t=="object"?t:{},l={};let u;for(u in o)if(Mt.call(o,u)){const d=o[u];let h=$s(e,Ys(i,u),u,d);h==null&&(h=$s(e,Ys(s,u),u,d)),h!=null&&(l[u]=h)}if(a&&Mt.call(a,n)){const d=a[n];for(u in d)Mt.call(d,u)&&!Mt.call(l,u)&&(l[u]=d[u])}return l}function $s(e,t,n,r){return t?Array.isArray(r)?$g(e,t,n,r):xu(e,t,n,r):void 0}function $g(e,t,n,r){let a=-1;const i=[];for(;++a<r.length;){const s=xu(e,t,n,r[a]);(typeof s=="number"||typeof s=="string")&&i.push(s)}return i}function xu(e,t,n,r){if(!(typeof r!="boolean"&&typeof r!="number"&&typeof r!="string")&&Yg(e,n,r)){if(typeof t=="object"&&t.length>1){let a=!1,i=0;for(;++i<t.length;){const s=t[i];if(s&&typeof s=="object"&&"flags"in s){if(s.test(String(r))){a=!0;break}}else if(s===r){a=!0;break}}if(!a)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+r:r}}function Yg(e,t,n){const r=e.schema.protocols&&Mt.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!r||r.length===0)return!0;const a=String(n),i=a.indexOf(":"),s=a.indexOf("?"),o=a.indexOf("#"),l=a.indexOf("/");if(i<0||l>-1&&i>l||s>-1&&i>s||o>-1&&i>o)return!0;let u=-1;for(;++u<r.length;){const d=r[u];if(i===d.length&&a.slice(0,d.length)===d)return!0}return!1}function or(e,t){const n=fu(t);t.data&&(e.data=Jt(t.data)),n&&(e.position=n)}function Ys(e,t){let n,r=-1;if(e)for(;++r<e.length;){const a=e[r],i=typeof a=="string"?a:a[0];if(i===t)return a;i==="data*"&&(n=a)}if(t.length>4&&t.slice(0,4).toLowerCase()==="data")return n}function yu(e){return function(t){return Bg(t,e)}}function Gs(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}const qe=jt(/[A-Za-z]/),ze=jt(/[\dA-Za-z]/),Gg=jt(/[#-'*+\--9=?A-Z^-~]/);function Rr(e){return e!==null&&(e<32||e===127)}const Ga=jt(/\d/),Wg=jt(/[\dA-Fa-f]/),Kg=jt(/[!-/:-@[-`{-~]/);function ee(e){return e!==null&&e<-2}function Se(e){return e!==null&&(e<0||e===32)}function de(e){return e===-2||e===-1||e===32}const Jr=jt(/\p{P}|\p{S}/u),en=jt(/\s/);function jt(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Qg(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Xg(e,t,n){const a=qr((n||{}).ignore||[]),i=Zg(t);let s=-1;for(;++s<i.length;)$r(e,"text",o);function o(u,d){let h=-1,p;for(;++h<d.length;){const f=d[h],g=p?p.children:void 0;if(a(f,g?g.indexOf(f):void 0,p))return;p=f}if(p)return l(u,d)}function l(u,d){const h=d[d.length-1],p=i[s][0],f=i[s][1];let g=0;const w=h.children.indexOf(u);let x=!1,_=[];p.lastIndex=0;let A=p.exec(u.value);for(;A;){const L=A.index,P={index:A.index,input:A.input,stack:[...d,u]};let I=f(...A,P);if(typeof I=="string"&&(I=I.length>0?{type:"text",value:I}:void 0),I===!1?p.lastIndex=L+1:(g!==L&&_.push({type:"text",value:u.value.slice(g,L)}),Array.isArray(I)?_.push(...I):I&&_.push(I),g=L+A[0].length,x=!0),!p.global)break;A=p.exec(u.value)}return x?(g<u.value.length&&_.push({type:"text",value:u.value.slice(g)}),h.children.splice(w,1,..._)):_=[u],w+_.length}}function Zg(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([Jg(a[0]),eb(a[1])])}return t}function Jg(e){return typeof e=="string"?new RegExp(Qg(e),"g"):e}function eb(e){return typeof e=="function"?e:function(){return e}}const pa="phrasing",ga=["autolink","link","image","label"];function tb(){return{transforms:[lb],enter:{literalAutolink:rb,literalAutolinkEmail:ba,literalAutolinkHttp:ba,literalAutolinkWww:ba},exit:{literalAutolink:ob,literalAutolinkEmail:sb,literalAutolinkHttp:ab,literalAutolinkWww:ib}}}function nb(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:pa,notInConstruct:ga},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:pa,notInConstruct:ga},{character:":",before:"[ps]",after:"\\/",inConstruct:pa,notInConstruct:ga}]}}function rb(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ba(e){this.config.enter.autolinkProtocol.call(this,e)}function ab(e){this.config.exit.autolinkProtocol.call(this,e)}function ib(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function sb(e){this.config.exit.autolinkEmail.call(this,e)}function ob(e){this.exit(e)}function lb(e){Xg(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ub],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,cb]],{ignore:["link","linkReference"]})}function ub(e,t,n,r,a){let i="";if(!Au(a)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!db(n)))return!1;const s=hb(n+r);if(!s[0])return!1;const o={type:"link",title:null,url:i+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function cb(e,t,n,r){return!Au(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function db(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function hb(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=Gs(e,"(");let i=Gs(e,")");for(;r!==-1&&a>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}function Au(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||en(n)||Jr(n))&&(!t||n!==47)}function ct(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Cu.peek=xb;function mb(){this.buffer()}function fb(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function pb(){this.buffer()}function gb(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function bb(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ct(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Eb(e){this.exit(e)}function Tb(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ct(this.sliceSerialize(e)).toLowerCase(),n.label=t}function kb(e){this.exit(e)}function xb(){return"["}function Cu(e,t,n,r){const a=n.createTracker(r);let i=a.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{after:"]",before:i})),o(),s(),i+=a.move("]"),i}function yb(){return{enter:{gfmFootnoteCallString:mb,gfmFootnoteCall:fb,gfmFootnoteDefinitionLabelString:pb,gfmFootnoteDefinition:gb},exit:{gfmFootnoteCallString:bb,gfmFootnoteCall:Eb,gfmFootnoteDefinitionLabelString:Tb,gfmFootnoteDefinition:kb}}}function Ab(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Cu},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,i,s){const o=i.createTracker(s);let l=o.move("[^");const u=i.enter("footnoteDefinition"),d=i.enter("label");return l+=o.move(i.safe(i.associationId(r),{before:l,after:"]"})),d(),l+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),l+=o.move((t?`
|
|
108
|
+
`:" ")+i.indentLines(i.containerFlow(r,o.current()),t?_u:Cb))),u(),l}}function Cb(e,t,n){return t===0?e:_u(e,t,n)}function _u(e,t,n){return(n?"":" ")+e}const _b=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];wu.peek=Nb;function wb(){return{canContainEols:["delete"],enter:{strikethrough:Ib},exit:{strikethrough:vb}}}function Sb(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:_b}],handlers:{delete:wu}}}function Ib(e){this.enter({type:"delete",children:[]},e)}function vb(e){this.exit(e)}function wu(e,t,n,r){const a=n.createTracker(r),i=n.enter("strikethrough");let s=a.move("~~");return s+=n.containerPhrasing(e,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),i(),s}function Nb(){return"~"}function Lb(e){return e.length}function Rb(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||Lb,i=[],s=[],o=[],l=[];let u=0,d=-1;for(;++d<e.length;){const y=[],w=[];let x=-1;for(e[d].length>u&&(u=e[d].length);++x<e[d].length;){const _=Db(e[d][x]);if(n.alignDelimiters!==!1){const A=a(_);w[x]=A,(l[x]===void 0||A>l[x])&&(l[x]=A)}y.push(_)}s[d]=y,o[d]=w}let h=-1;if(typeof r=="object"&&"length"in r)for(;++h<u;)i[h]=Ws(r[h]);else{const y=Ws(r);for(;++h<u;)i[h]=y}h=-1;const p=[],f=[];for(;++h<u;){const y=i[h];let w="",x="";y===99?(w=":",x=":"):y===108?w=":":y===114&&(x=":");let _=n.alignDelimiters===!1?1:Math.max(1,l[h]-w.length-x.length);const A=w+"-".repeat(_)+x;n.alignDelimiters!==!1&&(_=w.length+_+x.length,_>l[h]&&(l[h]=_),f[h]=_),p[h]=A}s.splice(1,0,p),o.splice(1,0,f),d=-1;const g=[];for(;++d<s.length;){const y=s[d],w=o[d];h=-1;const x=[];for(;++h<u;){const _=y[h]||"";let A="",L="";if(n.alignDelimiters!==!1){const P=l[h]-(w[h]||0),I=i[h];I===114?A=" ".repeat(P):I===99?P%2?(A=" ".repeat(P/2+.5),L=" ".repeat(P/2-.5)):(A=" ".repeat(P/2),L=A):L=" ".repeat(P)}n.delimiterStart!==!1&&!h&&x.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&_==="")&&(n.delimiterStart!==!1||h)&&x.push(" "),n.alignDelimiters!==!1&&x.push(A),x.push(_),n.alignDelimiters!==!1&&x.push(L),n.padding!==!1&&x.push(" "),(n.delimiterEnd!==!1||h!==u-1)&&x.push("|")}g.push(n.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return g.join(`
|
|
109
|
+
`)}function Db(e){return e==null?"":String(e)}function Ws(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Pb(e,t,n,r){const a=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const s=n.indentLines(n.containerFlow(e,i.current()),Ob);return a(),s}function Ob(e,t,n){return">"+(n?"":" ")+e}function Mb(e,t){return Ks(e,t.inConstruct,!0)&&!Ks(e,t.notInConstruct,!1)}function Ks(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Qs(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
|
|
110
|
+
`&&Mb(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
111
|
+
`}function Fb(e,t){const n=String(e);let r=n.indexOf(t),a=r,i=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++i>s&&(s=i):i=1,a=r+t.length,r=n.indexOf(t,a);return s}function Bb(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function zb(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function jb(e,t,n,r){const a=zb(n),i=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(Bb(e,n)){const h=n.enter("codeIndented"),p=n.indentLines(i,Hb);return h(),p}const o=n.createTracker(r),l=a.repeat(Math.max(Fb(i,a)+1,3)),u=n.enter("codeFenced");let d=o.move(l);if(e.lang){const h=n.enter(`codeFencedLang${s}`);d+=o.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...o.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${s}`);d+=o.move(" "),d+=o.move(n.safe(e.meta,{before:d,after:`
|
|
112
112
|
`,encode:["`"],...o.current()})),h()}return d+=o.move(`
|
|
113
|
-
`),
|
|
114
|
-
`)),d+=o.move(l),u(),d}function Hb(e,t,n){return(n?"":" ")+e}function
|
|
115
|
-
`,...l.current()}))),o(),e.title&&(o=n.enter(`title${
|
|
113
|
+
`),i&&(d+=o.move(i+`
|
|
114
|
+
`)),d+=o.move(l),u(),d}function Hb(e,t,n){return(n?"":" ")+e}function Di(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Ub(e,t,n,r){const a=Di(n),i=a==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":`
|
|
115
|
+
`,...l.current()}))),o(),e.title&&(o=n.enter(`title${i}`),u+=l.move(" "+a),u+=l.move(n.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),o()),s(),u}function qb(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function er(e){return"&#x"+e.toString(16).toUpperCase()+";"}function bn(e){if(e===null||Se(e)||en(e))return 1;if(Jr(e))return 2}function Dr(e,t,n){const r=bn(e),a=bn(t);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Su.peek=Vb;function Su(e,t,n,r){const a=qb(n),i=n.enter("emphasis"),s=n.createTracker(r),o=s.move(a);let l=s.move(n.containerPhrasing(e,{after:a,before:o,...s.current()}));const u=l.charCodeAt(0),d=Dr(r.before.charCodeAt(r.before.length-1),u,a);d.inside&&(l=er(u)+l.slice(1));const h=l.charCodeAt(l.length-1),p=Dr(r.after.charCodeAt(0),h,a);p.inside&&(l=l.slice(0,-1)+er(h));const f=s.move(a);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:d.outside},o+l+f}function Vb(e,t,n){return n.options.emphasis||"*"}const $b={};function Pi(e,t){const n=$b,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Iu(e,r,a)}function Iu(e,t,n){if(Yb(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Xs(e.children,t,n)}return Array.isArray(e)?Xs(e,t,n):""}function Xs(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=Iu(e[a],t,n);return r.join("")}function Yb(e){return!!(e&&typeof e=="object")}function Gb(e,t){let n=!1;return dt(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Ba}),!!((!e.depth||e.depth<3)&&Pi(e)&&(t.options.setext||n))}function Wb(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(Gb(e,n)){const d=n.enter("headingSetext"),h=n.enter("phrasing"),p=n.containerPhrasing(e,{...i.current(),before:`
|
|
116
116
|
`,after:`
|
|
117
117
|
`});return h(),d(),p+`
|
|
118
|
-
`+(
|
|
119
|
-
`))+1))}const s="#".repeat(
|
|
120
|
-
`,...a.current()});return/^[\t ]/.test(u)&&(u=er(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),o(),u}Nu.peek=Kb;function Nu(e){return e.value||""}function Kb(){return"<"}vu.peek=Qb;function vu(e,t,n,r){const i=Pa(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),u+=l.move(")"),s(),u}function Qb(){return"!"}Lu.peek=Xb;function Lu(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("![");const u=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=d,a(),i==="full"||!u||u!==h?l+=o.move(h+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function Xb(){return"!"}Ru.peek=Zb;function Ru(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a<n.unsafe.length;){const s=n.unsafe[a],o=n.compilePattern(s);let l;if(s.atBreak)for(;l=o.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return i+r+i}function Zb(){return"`"}function Pu(e,t){const n=Da(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Du.peek=Jb;function Du(e,t,n,r){const i=Pa(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,l;if(Pu(e,n)){const d=n.stack;n.stack=[],o=n.enter("autolink");let h=s.move("<");return h+=s.move(n.containerPhrasing(e,{before:h,after:">",...s.current()})),h+=s.move(">"),o(),n.stack=d,h}o=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${a}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),l()),u+=s.move(")"),o(),u}function Jb(e,t,n){return Pu(e,n)?"<":"["}Mu.peek=e1;function Mu(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=d,a(),i==="full"||!u||u!==h?l+=o.move(h+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function e1(){return"["}function Ma(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function t1(e){const t=Ma(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function n1(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Ou(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function r1(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?n1(n):Ma(n);const o=e.ordered?s==="."?")":".":t1(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),Ou(n)===s&&d){let h=-1;for(;++h<e.children.length;){const p=e.children[h];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=o),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=a,i(),u}function i1(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function a1(e,t,n,r){const i=i1(n);let a=n.bulletCurrent||Ma(n);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),d);return l(),u;function d(h,p,f){return p?(f?"":" ".repeat(s))+h:(f?a:a+" ".repeat(s-a.length))+h}}function s1(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const o1=qr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function l1(e,t,n,r){return(e.children.some(function(s){return o1(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function u1(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Fu.peek=c1;function Fu(e,t,n,r){const i=u1(n),a=n.enter("strong"),s=n.createTracker(r),o=s.move(i+i);let l=s.move(n.containerPhrasing(e,{after:i,before:o,...s.current()}));const u=l.charCodeAt(0),d=Pr(r.before.charCodeAt(r.before.length-1),u,i);d.inside&&(l=er(u)+l.slice(1));const h=l.charCodeAt(l.length-1),p=Pr(r.after.charCodeAt(0),h,i);p.inside&&(l=l.slice(0,-1)+er(h));const f=s.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:p.outside,before:d.outside},o+l+f}function c1(e,t,n){return n.options.strong||"*"}function d1(e,t,n,r){return n.safe(e.value,r)}function h1(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function m1(e,t,n){const r=(Ou(n)+(n.options.ruleSpaces?" ":"")).repeat(h1(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Bu={blockquote:Db,break:Qs,code:jb,definition:Ub,emphasis:wu,hardBreak:Qs,heading:Wb,html:Nu,image:vu,imageReference:Lu,inlineCode:Ru,link:Du,linkReference:Mu,list:r1,listItem:a1,paragraph:s1,root:l1,strong:Fu,text:d1,thematicBreak:m1},Zs=document.createElement("i");function Oa(e){const t="&"+e+";";Zs.innerHTML=t;const n=Zs.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function zu(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const f1=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function p1(e){return e.replace(f1,g1)}function g1(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),a=i===120||i===88;return zu(n.slice(a?2:1),a?16:10)}return Oa(n)||e}function b1(){return{enter:{table:E1,tableData:Js,tableHeader:Js,tableRow:k1},exit:{codeText:x1,table:T1,tableData:Ei,tableHeader:Ei,tableRow:Ei}}}function E1(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function T1(e){this.exit(e),this.data.inTable=void 0}function k1(e){this.enter({type:"tableRow",children:[]},e)}function Ei(e){this.exit(e)}function Js(e){this.enter({type:"tableCell",children:[]},e)}function x1(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,y1));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function y1(e,t){return t==="|"?t:e}function A1(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
121
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:l,tableRow:o}};function s(f,g,y,S){return u(d(f,y,S),f.align)}function o(f,g,y,S){const x=h(f,y,S),_=u([x]);return _.slice(0,_.indexOf(`
|
|
122
|
-
`))}function l(f,g,y,S){const x=y.enter("tableCell"),_=y.enter("phrasing"),A=y.containerPhrasing(f,{...S,before:a,after:a});return _(),x(),A}function u(f,g){return Rb(f,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function d(f,g,y){const S=f.children;let x=-1;const _=[],A=g.enter("table");for(;++x<S.length;)_[x]=h(S[x],g,y);return A(),_}function h(f,g,y){const S=f.children;let x=-1;const _=[],A=g.enter("tableRow");for(;++x<S.length;)_[x]=l(S[x],f,g,y);return A(),_}function p(f,g,y){let S=Bu.inlineCode(f,g,y);return y.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function C1(){return{exit:{taskListCheckValueChecked:eo,taskListCheckValueUnchecked:eo,paragraph:S1}}}function _1(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:w1}}}function eo(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function S1(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let a=-1,s;for(;++a<i.length;){const o=i[a];if(o.type==="paragraph"){s=o;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function w1(e,t,n,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);a&&o.move(s);let l=Bu.listItem(e,t,n,{...r,...o.current()});return a&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(d){return d+s}}function I1(){return[tb(),yb(),Sb(),b1(),C1()]}function N1(e){return{extensions:[nb(),Ab(e),wb(),A1(e),_1()]}}function tt(e,t,n,r){const i=e.length;let a=0,s;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a<r.length;)s=r.slice(a,a+1e4),s.unshift(t,0),e.splice(...s),a+=1e4,t+=1e4}function at(e,t){return e.length>0?(tt(e,e.length,0,t),e):t}const to={}.hasOwnProperty;function ju(e){const t={};let n=-1;for(;++n<e.length;)v1(t,e[n]);return t}function v1(e,t){let n;for(n in t){const i=(to.call(e,n)?e[n]:void 0)||(e[n]={}),a=t[n];let s;if(a)for(s in a){to.call(i,s)||(i[s]=[]);const o=a[s];L1(i[s],Array.isArray(o)?o:o?[o]:[])}}}function L1(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);tt(e,0,0,r)}const R1={tokenize:B1,partial:!0},Hu={tokenize:z1,partial:!0},Uu={tokenize:j1,partial:!0},qu={tokenize:H1,partial:!0},P1={tokenize:U1,partial:!0},Vu={name:"wwwAutolink",tokenize:O1,previous:Yu},$u={name:"protocolAutolink",tokenize:F1,previous:Gu},Lt={name:"emailAutolink",tokenize:M1,previous:Wu},yt={};function D1(){return{text:yt}}let Vt=48;for(;Vt<123;)yt[Vt]=Lt,Vt++,Vt===58?Vt=65:Vt===91&&(Vt=97);yt[43]=Lt;yt[45]=Lt;yt[46]=Lt;yt[95]=Lt;yt[72]=[Lt,$u];yt[104]=[Lt,$u];yt[87]=[Lt,Vu];yt[119]=[Lt,Vu];function M1(e,t,n){const r=this;let i,a;return s;function s(h){return!Wi(h)||!Wu.call(r,r.previous)||Fa(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(h))}function o(h){return Wi(h)?(e.consume(h),o):h===64?(e.consume(h),l):n(h)}function l(h){return h===46?e.check(P1,d,u)(h):h===45||h===95||ze(h)?(a=!0,e.consume(h),l):d(h)}function u(h){return e.consume(h),i=!0,l}function d(h){return a&&i&&qe(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function O1(e,t,n){const r=this;return i;function i(s){return s!==87&&s!==119||!Yu.call(r,r.previous)||Fa(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(R1,e.attempt(Hu,e.attempt(Uu,a),n),n)(s))}function a(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function F1(e,t,n){const r=this;let i="",a=!1;return s;function s(h){return(h===72||h===104)&&Gu.call(r,r.previous)&&!Fa(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(h),e.consume(h),o):n(h)}function o(h){if(qe(h)&&i.length<5)return i+=String.fromCodePoint(h),e.consume(h),o;if(h===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(h),l}return n(h)}function l(h){return h===47?(e.consume(h),a?u:(a=!0,l)):n(h)}function u(h){return h===null||Rr(h)||we(h)||en(h)||Jr(h)?n(h):e.attempt(Hu,e.attempt(Uu,d),n)(h)}function d(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function B1(e,t,n){let r=0;return i;function i(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),i):s===46&&r===3?(e.consume(s),a):n(s)}function a(s){return s===null?n(s):t(s)}}function z1(e,t,n){let r,i,a;return s;function s(u){return u===46||u===95?e.check(qu,l,o)(u):u===null||we(u)||en(u)||u!==45&&Jr(u)?l(u):(a=!0,e.consume(u),s)}function o(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),s}function l(u){return i||r||!a?n(u):t(u)}}function j1(e,t){let n=0,r=0;return i;function i(s){return s===40?(n++,e.consume(s),i):s===41&&r<n?a(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(qu,t,a)(s):s===null||we(s)||en(s)?t(s):(e.consume(s),i)}function a(s){return s===41&&r++,e.consume(s),i}}function H1(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||we(o)||en(o)?t(o):n(o)}function i(o){return o===null||o===40||o===91||we(o)||en(o)?t(o):r(o)}function a(o){return qe(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),r):qe(o)?(e.consume(o),s):n(o)}}function U1(e,t,n){return r;function r(a){return e.consume(a),i}function i(a){return ze(a)?n(a):t(a)}}function Yu(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||we(e)}function Gu(e){return!qe(e)}function Wu(e){return!(e===47||Wi(e))}function Wi(e){return e===43||e===45||e===46||e===95||ze(e)}function Fa(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function An(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const a=e.charCodeAt(n);let s="";if(a===37&&ze(e.charCodeAt(n+1))&&ze(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(s=String.fromCharCode(a));else if(a>55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ei(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}const Ki={name:"attention",resolveAll:q1,tokenize:V1};function q1(e,t){let n=-1,r,i,a,s,o,l,u,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},p={...e[n][1].start};no(h,-l),no(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},a={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=at(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=at(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),u=at(u,ei(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=at(u,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=at(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,tt(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function V1(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=bn(r);let a;return s;function s(l){return a=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===a)return e.consume(l),o;const u=e.exit("attentionSequence"),d=bn(l),h=!d||d===2&&i||n.includes(l),p=!i||i===2&&d||n.includes(r);return u._open=!!(a===42?h:h&&(i||!p)),u._close=!!(a===42?p:p&&(d||!h)),t(l)}}function no(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const $1={name:"autolink",tokenize:Y1};function Y1(e,t,n){let r=0;return i;function i(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(f){return qe(f)?(e.consume(f),s):f===64?n(f):u(f)}function s(f){return f===43||f===45||f===46||ze(f)?(r=1,o(f)):u(f)}function o(f){return f===58?(e.consume(f),r=0,l):(f===43||f===45||f===46||ze(f))&&r++<32?(e.consume(f),o):(r=0,u(f))}function l(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||Rr(f)?n(f):(e.consume(f),l)}function u(f){return f===64?(e.consume(f),d):Gg(f)?(e.consume(f),u):n(f)}function d(f){return ze(f)?h(f):n(f)}function h(f){return f===46?(e.consume(f),r=0,d):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||ze(f))&&r++<63){const g=f===45?p:h;return e.consume(f),g}return n(f)}}function ge(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(l){return de(l)?(e.enter(n),o(l)):t(l)}function o(l){return de(l)&&a++<i?(e.consume(l),o):(e.exit(n),t(l))}}const lr={partial:!0,tokenize:G1};function G1(e,t,n){return r;function r(a){return de(a)?ge(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||ee(a)?t(a):n(a)}}const Ku={continuation:{tokenize:K1},exit:Q1,name:"blockQuote",tokenize:W1};function W1(e,t,n){const r=this;return i;function i(s){if(s===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),a}return n(s)}function a(s){return de(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function K1(e,t,n){const r=this;return i;function i(s){return de(s)?ge(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):a(s)}function a(s){return e.attempt(Ku,t,n)(s)}}function Q1(e){e.exit("blockQuote")}const Qu={name:"characterEscape",tokenize:X1};function X1(e,t,n){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return Kg(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(a)}}const Xu={name:"characterReference",tokenize:Z1};function Z1(e,t,n){const r=this;let i=0,a,s;return o;function o(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),l}function l(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,s=ze,d(h))}function u(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,s=Wg,d):(e.enter("characterReferenceValue"),a=7,s=Gi,d(h))}function d(h){if(h===59&&i){const p=e.exit("characterReferenceValue");return s===ze&&!Oa(r.sliceSerialize(p))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(h)&&i++<a?(e.consume(h),d):n(h)}}const ro={partial:!0,tokenize:eE},io={concrete:!0,name:"codeFenced",tokenize:J1};function J1(e,t,n){const r=this,i={partial:!0,tokenize:D};let a=0,s=0,o;return l;function l(I){return u(I)}function u(I){const P=r.events[r.events.length-1];return a=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,o=I,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(I)}function d(I){return I===o?(s++,e.consume(I),d):s<3?n(I):(e.exit("codeFencedFenceSequence"),de(I)?ge(e,h,"whitespace")(I):h(I))}function h(I){return I===null||ee(I)?(e.exit("codeFencedFence"),r.interrupt?t(I):e.check(ro,y,L)(I)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(I))}function p(I){return I===null||ee(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(I)):de(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ge(e,f,"whitespace")(I)):I===96&&I===o?n(I):(e.consume(I),p)}function f(I){return I===null||ee(I)?h(I):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(I))}function g(I){return I===null||ee(I)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(I)):I===96&&I===o?n(I):(e.consume(I),g)}function y(I){return e.attempt(i,L,S)(I)}function S(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),x}function x(I){return a>0&&de(I)?ge(e,_,"linePrefix",a+1)(I):_(I)}function _(I){return I===null||ee(I)?e.check(ro,y,L)(I):(e.enter("codeFlowValue"),A(I))}function A(I){return I===null||ee(I)?(e.exit("codeFlowValue"),_(I)):(e.consume(I),A)}function L(I){return e.exit("codeFenced"),t(I)}function D(I,P,R){let z=0;return N;function N(F){return I.enter("lineEnding"),I.consume(F),I.exit("lineEnding"),O}function O(F){return I.enter("codeFencedFence"),de(F)?ge(I,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):j(F)}function j(F){return F===o?(I.enter("codeFencedFenceSequence"),W(F)):R(F)}function W(F){return F===o?(z++,I.consume(F),W):z>=s?(I.exit("codeFencedFenceSequence"),de(F)?ge(I,q,"whitespace")(F):q(F)):R(F)}function q(F){return F===null||ee(F)?(I.exit("codeFencedFence"),P(F)):R(F)}}}function eE(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Ti={name:"codeIndented",tokenize:nE},tE={partial:!0,tokenize:rE};function nE(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),ge(e,a,"linePrefix",5)(u)}function a(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):ee(u)?e.attempt(tE,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||ee(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function rE(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):ee(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):ge(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):ee(s)?i(s):n(s)}}const iE={name:"codeText",previous:sE,resolve:aE,tokenize:oE};function aE(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function sE(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function oE(e,t,n){let r=0,i,a;return s;function s(h){return e.enter("codeText"),e.enter("codeTextSequence"),o(h)}function o(h){return h===96?(e.consume(h),r++,o):(e.exit("codeTextSequence"),l(h))}function l(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),l):h===96?(a=e.enter("codeTextSequence"),i=0,d(h)):ee(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(h))}function u(h){return h===null||h===32||h===96||ee(h)?(e.exit("codeTextData"),l(h)):(e.consume(h),u)}function d(h){return h===96?(e.consume(h),i++,d):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(a.type="codeTextData",u(h))}}class lE{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Rn(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Rn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Rn(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Rn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Rn(this.left,n.reverse())}}}function Rn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Zu(e){const t={};let n=-1,r,i,a,s,o,l,u;const d=new lE(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,uE(d,n)),n=t[n],u=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(s=d.get(a),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(i&&(d.get(i)[1].type="lineEndingBlank"),s[1].type="lineEnding",i=a);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;i&&(r[1].end={...d.get(i)[1].start},o=d.slice(i,n),o.unshift(r),d.splice(i,n-i+1,o))}}return tt(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function uE(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const a=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,l=[],u={};let d,h,p=-1,f=n,g=0,y=0;const S=[y];for(;f;){for(;e.get(++i)[1]!==f;);a.push(i),f._tokenizer||(d=r.sliceStream(f),f.next||d.push(null),h&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(d),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=f,f=f.next}for(f=n;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(y=p+1,S.push(y),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):S.pop(),p=S.length;p--;){const x=o.slice(S[p],S[p+1]),_=a.pop();l.push([_,_+x.length-1]),e.splice(_,2,x)}for(l.reverse(),p=-1;++p<l.length;)u[g+l[p][0]]=g+l[p][1],g+=l[p][1]-l[p][0]-1;return u}const cE={resolve:hE,tokenize:mE},dE={partial:!0,tokenize:fE};function hE(e){return Zu(e),e}function mE(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?a(o):ee(o)?e.check(dE,s,a)(o):(e.consume(o),i)}function a(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function fE(e,t,n){const r=this;return i;function i(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ge(e,a,"linePrefix")}function a(s){if(s===null||ee(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Ju(e,t,n,r,i,a,s,o,l){const u=l||Number.POSITIVE_INFINITY;let d=0;return h;function h(x){return x===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(x),e.exit(a),p):x===null||x===32||x===41||Rr(x)?n(x):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),y(x))}function p(x){return x===62?(e.enter(a),e.consume(x),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),f(x))}function f(x){return x===62?(e.exit("chunkString"),e.exit(o),p(x)):x===null||x===60||ee(x)?n(x):(e.consume(x),x===92?g:f)}function g(x){return x===60||x===62||x===92?(e.consume(x),f):f(x)}function y(x){return!d&&(x===null||x===41||we(x))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(x)):d<u&&x===40?(e.consume(x),d++,y):x===41?(e.consume(x),d--,y):x===null||x===32||x===40||Rr(x)?n(x):(e.consume(x),x===92?S:y)}function S(x){return x===40||x===41||x===92?(e.consume(x),y):y(x)}}function ec(e,t,n,r,i,a){const s=this;let o=0,l;return u;function u(f){return e.enter(r),e.enter(i),e.consume(f),e.exit(i),e.enter(a),d}function d(f){return o>999||f===null||f===91||f===93&&!l||f===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(f):f===93?(e.exit(a),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):ee(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),h(f))}function h(f){return f===null||f===91||f===93||ee(f)||o++>999?(e.exit("chunkString"),d(f)):(e.consume(f),l||(l=!de(f)),f===92?p:h)}function p(f){return f===91||f===92||f===93?(e.consume(f),o++,h):h(f)}}function tc(e,t,n,r,i,a){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,l):n(p)}function l(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),u(p))}function u(p){return p===s?(e.exit(a),l(s)):p===null?n(p):ee(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),ge(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===s||p===null||ee(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?h:d)}function h(p){return p===s||p===92?(e.consume(p),d):d(p)}}function Kn(e,t){let n;return r;function r(i){return ee(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):de(i)?ge(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const pE={name:"definition",tokenize:bE},gE={partial:!0,tokenize:EE};function bE(e,t,n){const r=this;let i;return a;function a(f){return e.enter("definition"),s(f)}function s(f){return ec.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function o(f){return i=ct(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),l):n(f)}function l(f){return we(f)?Kn(e,u)(f):u(f)}function u(f){return Ju(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function d(f){return e.attempt(gE,h,h)(f)}function h(f){return de(f)?ge(e,p,"whitespace")(f):p(f)}function p(f){return f===null||ee(f)?(e.exit("definition"),r.parser.defined.push(i),t(f)):n(f)}}function EE(e,t,n){return r;function r(o){return we(o)?Kn(e,i)(o):n(o)}function i(o){return tc(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return de(o)?ge(e,s,"whitespace")(o):s(o)}function s(o){return o===null||ee(o)?t(o):n(o)}}const TE={name:"hardBreakEscape",tokenize:kE};function kE(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return ee(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const xE={name:"headingAtx",resolve:yE,tokenize:AE};function yE(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},tt(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function AE(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&r++<6?(e.consume(d),s):d===null||we(d)?(e.exit("atxHeadingSequence"),o(d)):n(d)}function o(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||ee(d)?(e.exit("atxHeading"),t(d)):de(d)?ge(e,o,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),o(d))}function u(d){return d===null||d===35||we(d)?(e.exit("atxHeadingText"),o(d)):(e.consume(d),u)}}const CE=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ao=["pre","script","style","textarea"],_E={concrete:!0,name:"htmlFlow",resolveTo:IE,tokenize:NE},SE={partial:!0,tokenize:LE},wE={partial:!0,tokenize:vE};function IE(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function NE(e,t,n){const r=this;let i,a,s,o,l;return u;function u(w){return d(w)}function d(w){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(w),h}function h(w){return w===33?(e.consume(w),p):w===47?(e.consume(w),a=!0,y):w===63?(e.consume(w),i=3,r.interrupt?t:T):qe(w)?(e.consume(w),s=String.fromCharCode(w),S):n(w)}function p(w){return w===45?(e.consume(w),i=2,f):w===91?(e.consume(w),i=5,o=0,g):qe(w)?(e.consume(w),i=4,r.interrupt?t:T):n(w)}function f(w){return w===45?(e.consume(w),r.interrupt?t:T):n(w)}function g(w){const ke="CDATA[";return w===ke.charCodeAt(o++)?(e.consume(w),o===ke.length?r.interrupt?t:j:g):n(w)}function y(w){return qe(w)?(e.consume(w),s=String.fromCharCode(w),S):n(w)}function S(w){if(w===null||w===47||w===62||we(w)){const ke=w===47,Z=s.toLowerCase();return!ke&&!a&&ao.includes(Z)?(i=1,r.interrupt?t(w):j(w)):CE.includes(s.toLowerCase())?(i=6,ke?(e.consume(w),x):r.interrupt?t(w):j(w)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(w):a?_(w):A(w))}return w===45||ze(w)?(e.consume(w),s+=String.fromCharCode(w),S):n(w)}function x(w){return w===62?(e.consume(w),r.interrupt?t:j):n(w)}function _(w){return de(w)?(e.consume(w),_):N(w)}function A(w){return w===47?(e.consume(w),N):w===58||w===95||qe(w)?(e.consume(w),L):de(w)?(e.consume(w),A):N(w)}function L(w){return w===45||w===46||w===58||w===95||ze(w)?(e.consume(w),L):D(w)}function D(w){return w===61?(e.consume(w),I):de(w)?(e.consume(w),D):A(w)}function I(w){return w===null||w===60||w===61||w===62||w===96?n(w):w===34||w===39?(e.consume(w),l=w,P):de(w)?(e.consume(w),I):R(w)}function P(w){return w===l?(e.consume(w),l=null,z):w===null||ee(w)?n(w):(e.consume(w),P)}function R(w){return w===null||w===34||w===39||w===47||w===60||w===61||w===62||w===96||we(w)?D(w):(e.consume(w),R)}function z(w){return w===47||w===62||de(w)?A(w):n(w)}function N(w){return w===62?(e.consume(w),O):n(w)}function O(w){return w===null||ee(w)?j(w):de(w)?(e.consume(w),O):n(w)}function j(w){return w===45&&i===2?(e.consume(w),G):w===60&&i===1?(e.consume(w),$):w===62&&i===4?(e.consume(w),Ee):w===63&&i===3?(e.consume(w),T):w===93&&i===5?(e.consume(w),ue):ee(w)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(SE,he,W)(w)):w===null||ee(w)?(e.exit("htmlFlowData"),W(w)):(e.consume(w),j)}function W(w){return e.check(wE,q,he)(w)}function q(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),F}function F(w){return w===null||ee(w)?W(w):(e.enter("htmlFlowData"),j(w))}function G(w){return w===45?(e.consume(w),T):j(w)}function $(w){return w===47?(e.consume(w),s="",ne):j(w)}function ne(w){if(w===62){const ke=s.toLowerCase();return ao.includes(ke)?(e.consume(w),Ee):j(w)}return qe(w)&&s.length<8?(e.consume(w),s+=String.fromCharCode(w),ne):j(w)}function ue(w){return w===93?(e.consume(w),T):j(w)}function T(w){return w===62?(e.consume(w),Ee):w===45&&i===2?(e.consume(w),T):j(w)}function Ee(w){return w===null||ee(w)?(e.exit("htmlFlowData"),he(w)):(e.consume(w),Ee)}function he(w){return e.exit("htmlFlow"),t(w)}}function vE(e,t,n){const r=this;return i;function i(s){return ee(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function LE(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(lr,t,n)}}const RE={name:"htmlText",tokenize:PE};function PE(e,t,n){const r=this;let i,a,s;return o;function o(T){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(T),l}function l(T){return T===33?(e.consume(T),u):T===47?(e.consume(T),D):T===63?(e.consume(T),A):qe(T)?(e.consume(T),R):n(T)}function u(T){return T===45?(e.consume(T),d):T===91?(e.consume(T),a=0,g):qe(T)?(e.consume(T),_):n(T)}function d(T){return T===45?(e.consume(T),f):n(T)}function h(T){return T===null?n(T):T===45?(e.consume(T),p):ee(T)?(s=h,$(T)):(e.consume(T),h)}function p(T){return T===45?(e.consume(T),f):h(T)}function f(T){return T===62?G(T):T===45?p(T):h(T)}function g(T){const Ee="CDATA[";return T===Ee.charCodeAt(a++)?(e.consume(T),a===Ee.length?y:g):n(T)}function y(T){return T===null?n(T):T===93?(e.consume(T),S):ee(T)?(s=y,$(T)):(e.consume(T),y)}function S(T){return T===93?(e.consume(T),x):y(T)}function x(T){return T===62?G(T):T===93?(e.consume(T),x):y(T)}function _(T){return T===null||T===62?G(T):ee(T)?(s=_,$(T)):(e.consume(T),_)}function A(T){return T===null?n(T):T===63?(e.consume(T),L):ee(T)?(s=A,$(T)):(e.consume(T),A)}function L(T){return T===62?G(T):A(T)}function D(T){return qe(T)?(e.consume(T),I):n(T)}function I(T){return T===45||ze(T)?(e.consume(T),I):P(T)}function P(T){return ee(T)?(s=P,$(T)):de(T)?(e.consume(T),P):G(T)}function R(T){return T===45||ze(T)?(e.consume(T),R):T===47||T===62||we(T)?z(T):n(T)}function z(T){return T===47?(e.consume(T),G):T===58||T===95||qe(T)?(e.consume(T),N):ee(T)?(s=z,$(T)):de(T)?(e.consume(T),z):G(T)}function N(T){return T===45||T===46||T===58||T===95||ze(T)?(e.consume(T),N):O(T)}function O(T){return T===61?(e.consume(T),j):ee(T)?(s=O,$(T)):de(T)?(e.consume(T),O):z(T)}function j(T){return T===null||T===60||T===61||T===62||T===96?n(T):T===34||T===39?(e.consume(T),i=T,W):ee(T)?(s=j,$(T)):de(T)?(e.consume(T),j):(e.consume(T),q)}function W(T){return T===i?(e.consume(T),i=void 0,F):T===null?n(T):ee(T)?(s=W,$(T)):(e.consume(T),W)}function q(T){return T===null||T===34||T===39||T===60||T===61||T===96?n(T):T===47||T===62||we(T)?z(T):(e.consume(T),q)}function F(T){return T===47||T===62||we(T)?z(T):n(T)}function G(T){return T===62?(e.consume(T),e.exit("htmlTextData"),e.exit("htmlText"),t):n(T)}function $(T){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),ne}function ne(T){return de(T)?ge(e,ue,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):ue(T)}function ue(T){return e.enter("htmlTextData"),s(T)}}const Ba={name:"labelEnd",resolveAll:FE,resolveTo:BE,tokenize:zE},DE={tokenize:jE},ME={tokenize:HE},OE={tokenize:UE};function FE(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&tt(e,0,e.length,n),e}function BE(e,t){let n=e.length,r=0,i,a,s,o;for(;n--;)if(i=e[n][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(s=n);const l={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[a][1].start},end:{...e[s][1].end}},d={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",l,t],["enter",u,t]],o=at(o,e.slice(a+1,a+r+3)),o=at(o,[["enter",d,t]]),o=at(o,ei(t.parser.constructs.insideSpan.null,e.slice(a+r+4,s-3),t)),o=at(o,[["exit",d,t],e[s-2],e[s-1],["exit",u,t]]),o=at(o,e.slice(s+1)),o=at(o,[["exit",l,t]]),tt(e,a,e.length,o),e}function zE(e,t,n){const r=this;let i=r.events.length,a,s;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return o;function o(p){return a?a._inactive?h(p):(s=r.parser.defined.includes(ct(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):n(p)}function l(p){return p===40?e.attempt(DE,d,s?d:h)(p):p===91?e.attempt(ME,d,s?u:h)(p):s?d(p):h(p)}function u(p){return e.attempt(OE,d,h)(p)}function d(p){return t(p)}function h(p){return a._balanced=!0,n(p)}}function jE(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),i}function i(h){return we(h)?Kn(e,a)(h):a(h)}function a(h){return h===41?d(h):Ju(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function s(h){return we(h)?Kn(e,l)(h):d(h)}function o(h){return n(h)}function l(h){return h===34||h===39||h===40?tc(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):d(h)}function u(h){return we(h)?Kn(e,d)(h):d(h)}function d(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function HE(e,t,n){const r=this;return i;function i(o){return ec.call(r,e,a,s,"reference","referenceMarker","referenceString")(o)}function a(o){return r.parser.defined.includes(ct(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function UE(e,t,n){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):n(a)}}const qE={name:"labelStartImage",resolveAll:Ba.resolveAll,tokenize:VE};function VE(e,t,n){const r=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),a}function a(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const $E={name:"labelStartLink",resolveAll:Ba.resolveAll,tokenize:YE};function YE(e,t,n){const r=this;return i;function i(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),a}function a(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const ki={name:"lineEnding",tokenize:GE};function GE(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ge(e,t,"linePrefix")}}const _r={name:"thematicBreak",tokenize:WE};function WE(e,t,n){let r=0,i;return a;function a(u){return e.enter("thematicBreak"),s(u)}function s(u){return i=u,o(u)}function o(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||ee(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),de(u)?ge(e,o,"whitespace")(u):o(u))}}const Ke={continuation:{tokenize:ZE},exit:eT,name:"list",tokenize:XE},KE={partial:!0,tokenize:tT},QE={partial:!0,tokenize:JE};function XE(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(f){const g=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:Gi(f)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(_r,n,u)(f):u(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return n(f)}function l(f){return Gi(f)&&++s<10?(e.consume(f),l):(!r.interrupt||s<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),u(f)):n(f)}function u(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(lr,r.interrupt?n:d,e.attempt(KE,p,h))}function d(f){return r.containerState.initialBlankLine=!0,a++,p(f)}function h(f){return de(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function ZE(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(lr,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ge(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!de(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(QE,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ge(e,e.attempt(Ke,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function JE(e,t,n){const r=this;return ge(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function eT(e){e.exit(this.containerState.type)}function tT(e,t,n){const r=this;return ge(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!de(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const so={name:"setextUnderline",resolveTo:nT,tokenize:rT};function nT(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function rT(e,t,n){const r=this;let i;return a;function a(u){let d=r.events.length,h;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){h=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),de(u)?ge(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||ee(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const iT={tokenize:hT,partial:!0};function aT(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:uT,continuation:{tokenize:cT},exit:dT}},text:{91:{name:"gfmFootnoteCall",tokenize:lT},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:sT,resolveTo:oT}}}}function sT(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return n(l);const u=ct(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function oT(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function lT(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),l}function l(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(h){if(a>999||h===93&&!s||h===null||h===91||we(h))return n(h);if(h===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(ct(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return we(h)||(s=!0),a++,e.consume(h),h===92?d:u}function d(h){return h===91||h===92||h===93?(e.consume(h),a++,u):u(h)}}function uT(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(g)}function d(g){if(s>999||g===93&&!o||g===null||g===91||we(g))return n(g);if(g===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return a=ct(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return we(g)||(o=!0),s++,e.consume(g),g===92?h:d}function h(g){return g===91||g===92||g===93?(e.consume(g),s++,d):d(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(a)||i.push(a),ge(e,f,"gfmFootnoteDefinitionWhitespace")):n(g)}function f(g){return t(g)}}function cT(e,t,n){return e.check(lr,t,e.attempt(iT,t,n))}function dT(e){e.exit("gfmFootnoteDefinition")}function hT(e,t,n){const r=this;return ge(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function mT(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},h={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},p=[["enter",d,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",h,o]],f=o.parser.constructs.insideSpan.null;f&&tt(p,p.length,0,ei(f,s.slice(u+1,l),o)),tt(p,p.length,0,[["exit",h,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",d,o]]),tt(s,u-1,l-u+3,p),l=u+p.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function a(s,o,l){const u=this.previous,d=this.events;let h=0;return p;function p(g){return u===126&&d[d.length-1][1].type!=="characterEscape"?l(g):(s.enter("strikethroughSequenceTemporary"),f(g))}function f(g){const y=bn(u);if(g===126)return h>1?l(g):(s.consume(g),h++,f);if(h<2&&!n)return l(g);const S=s.exit("strikethroughSequenceTemporary"),x=bn(g);return S._open=!x||x===2&&!!y,S._close=!y||y===2&&!!x,o(g)}}}class fT{constructor(){this.map=[]}add(t,n,r){pT(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const a of i)t.push(a);i=r.pop()}this.map.length=0}}function pT(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function gT(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function bT(){return{flow:{null:{name:"table",tokenize:ET,resolveAll:TT}}}}function ET(e,t,n){const r=this;let i=0,a=0,s;return o;function o(N){let O=r.events.length-1;for(;O>-1;){const q=r.events[O][1].type;if(q==="lineEnding"||q==="linePrefix")O--;else break}const j=O>-1?r.events[O][1].type:null,W=j==="tableHead"||j==="tableRow"?I:l;return W===I&&r.parser.lazy[r.now().line]?n(N):W(N)}function l(N){return e.enter("tableHead"),e.enter("tableRow"),u(N)}function u(N){return N===124||(s=!0,a+=1),d(N)}function d(N){return N===null?n(N):ee(N)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),f):n(N):de(N)?ge(e,d,"whitespace")(N):(a+=1,s&&(s=!1,i+=1),N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),s=!0,d):(e.enter("data"),h(N)))}function h(N){return N===null||N===124||we(N)?(e.exit("data"),d(N)):(e.consume(N),N===92?p:h)}function p(N){return N===92||N===124?(e.consume(N),h):h(N)}function f(N){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(N):(e.enter("tableDelimiterRow"),s=!1,de(N)?ge(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):g(N))}function g(N){return N===45||N===58?S(N):N===124?(s=!0,e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),y):D(N)}function y(N){return de(N)?ge(e,S,"whitespace")(N):S(N)}function S(N){return N===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),x):N===45?(a+=1,x(N)):N===null||ee(N)?L(N):D(N)}function x(N){return N===45?(e.enter("tableDelimiterFiller"),_(N)):D(N)}function _(N){return N===45?(e.consume(N),_):N===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(N),e.exit("tableDelimiterMarker"),A):(e.exit("tableDelimiterFiller"),A(N))}function A(N){return de(N)?ge(e,L,"whitespace")(N):L(N)}function L(N){return N===124?g(N):N===null||ee(N)?!s||i!==a?D(N):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(N)):D(N)}function D(N){return n(N)}function I(N){return e.enter("tableRow"),P(N)}function P(N){return N===124?(e.enter("tableCellDivider"),e.consume(N),e.exit("tableCellDivider"),P):N===null||ee(N)?(e.exit("tableRow"),t(N)):de(N)?ge(e,P,"whitespace")(N):(e.enter("data"),R(N))}function R(N){return N===null||N===124||we(N)?(e.exit("data"),P(N)):(e.consume(N),N===92?z:R)}function z(N){return N===92||N===124?(e.consume(N),R):R(N)}}function TT(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,d,h;const p=new fT;for(;++n<e.length;){const f=e[n],g=f[1];f[0]==="enter"?g.type==="tableHead"?(o=!1,l!==0&&(oo(p,t,l,u,d),d=void 0,l=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",u,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,h=void 0,a=[0,0,0,0],s=[0,n+1,0,0],o&&(o=!1,d={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",d,t]])),i=g.type==="tableDelimiterRow"?2:d?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(a[1]!==0&&(s[0]=s[1],h=pr(p,t,a,i,void 0,h),a=[0,0,0,0]),s[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(s[0]=s[1],h=pr(p,t,a,i,void 0,h)),a=s,s=[a[1],n,0,0])):g.type==="tableHead"?(o=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,a[1]!==0?(s[0]=s[1],h=pr(p,t,a,i,n,h)):s[1]!==0&&(h=pr(p,t,s,i,n,h)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&oo(p,t,l,u,d),p.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=gT(t.events,n))}return e}function pr(e,t,n,r,i,a){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(a.end=Object.assign({},dn(t.events,n[0])),e.add(n[0],0,[["exit",a,t]]));const l=dn(t.events,n[1]);if(a={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",a,t]]),n[2]!==0){const u=dn(t.events,n[2]),d=dn(t.events,n[3]),h={type:o,start:Object.assign({},u),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",h,t]]),r!==2){const p=t.events[n[2]],f=t.events[n[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,y=n[3]-n[2]-1;e.add(g,y,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return i!==void 0&&(a.end=Object.assign({},dn(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function oo(e,t,n,r,i){const a=[],s=dn(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function dn(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const kT={name:"tasklistCheck",tokenize:yT};function xT(){return{text:{91:kT}}}function yT(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return we(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(l)}function o(l){return ee(l)?t(l):de(l)?e.check({tokenize:AT},t,n)(l):n(l)}}function AT(e,t,n){return ge(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function CT(e){return ju([D1(),aT(),mT(e),bT(),xT()])}const _T={};function ST(e){const t=this,n=e||_T,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(CT(n)),a.push(I1()),s.push(N1(n))}var wT=Object.defineProperty,IT=Object.defineProperties,NT=Object.getOwnPropertyDescriptors,lo=Object.getOwnPropertySymbols,vT=Object.prototype.hasOwnProperty,LT=Object.prototype.propertyIsEnumerable,uo=(e,t,n)=>t in e?wT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nc=(e,t)=>{for(var n in t||(t={}))vT.call(t,n)&&uo(e,n,t[n]);if(lo)for(var n of lo(t))LT.call(t,n)&&uo(e,n,t[n]);return e},rc=(e,t)=>IT(e,NT(t)),RT=e=>{let t=new Uint8Array(e.length+1),n=!1,r=!1,i=0;for(;i<e.length;){if(e[i]==="\\"&&i+1<e.length&&e[i+1]==="`"){let a=n||r?1:0;t[i+1]=a,t[i+2]=a,i+=2;continue}if(e.substring(i,i+3)==="```"){r=!r;let a=n||r?1:0,s=Math.min(i+3,e.length);for(let o=i+1;o<=s;o+=1)t[o]=a;i=s;continue}!r&&e[i]==="`"&&(n=!n),t[i+1]=n||r?1:0,i+=1}return t},co=null,$e=(e,t)=>{let n=co;return(n===null||n.text!==e)&&(n={text:e,lookup:RT(e)},co=n),n.lookup[Math.min(t,e.length)]===1},PT=(e,t)=>{let n=e.substring(t,t+3)==="```",r=t>0&&e.substring(t-1,t+2)==="```",i=t>1&&e.substring(t-2,t+1)==="```";return n||r||i},DT=e=>{let t=0;for(let n=0;n<e.length;n+=1){if(e[n]==="\\"&&n+1<e.length&&e[n+1]==="`"){n+=1;continue}e[n]==="`"&&!PT(e,n)&&(t+=1)}return t},Bt=(e,t)=>{let n=!1,r=!1,i=-1;for(let a=0;a<e.length;a+=1){if(e[a]==="\\"&&a+1<e.length&&e[a+1]==="`"){a+=1;continue}if(e.substring(a,a+3)==="```"){r=!r,a+=2;continue}if(!r&&e[a]==="`")if(n){if(i<t&&t<a)return!0;n=!1,i=-1}else n=!0,i=a}return!1},MT=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,OT=e=>!e||typeof e!="string"||!e.includes(">")?e:e.replace(MT,(t,n,r,i)=>$e(e,i)?t:`${n}\\>${r}`),FT=/(\*\*)([^*]*\*?)$/,BT=/(__)([^_]*?)$/,zT=/(\*\*\*)([^*]*?)$/,jT=/(\*)([^*]*?)$/,HT=/(_)([^_]*?)$/,UT=/(`)([^`]*?)$/,qT=/(~~)([^~]*?)$/,an=/^[\s_~*`]*$/,ic=/^[\s]*[-*+][\s]+$/,VT=/[\p{L}\p{N}_]/u,$T=/^```[^`\n]*```?$/,YT=/^\*{4,}$/,GT=/(__)([^_]+)_$/,WT=/(~~)([^~]+)~$/,ho=/~~/g,Nt=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:VT.test(e)},KT=(e,t)=>{let n=1;for(let r=t-1;r>=0;r-=1)if(e[r]==="]")n+=1;else if(e[r]==="["&&(n-=1,n===0))return r;return-1},ac=(e,t)=>{let n=1;for(let r=t+1;r<e.length;r+=1)if(e[r]==="[")n+=1;else if(e[r]==="]"&&(n-=1,n===0))return r;return-1},QT=e=>e==="inlineLatex"||e==="blockLatex",XT=(e,t)=>t==="["&&e==="none"?"blockLatex":t==="]"&&e==="blockLatex"?"none":t==="("&&e==="none"?"inlineLatex":t===")"&&e==="inlineLatex"?"none":null,ZT=(e,t)=>t?e==="blockDollar"?"none":"blockDollar":e==="blockDollar"?e:e==="inlineDollar"?"none":"inlineDollar",ti=(e,t)=>{let n="none";for(let r=0;r<e.length&&r<t;r+=1){if(e[r]==="\\"&&e[r+1]==="$"){r+=1;continue}if(e[r]==="\\"){let i=XT(n,e[r+1]);if(i!==null){n=i,r+=1;continue}}if(e[r]==="$"&&!QT(n)){let i=e[r+1]==="$";n=ZT(n,i),i&&(r+=1)}}return n!=="none"},JT=(e,t)=>{for(let n=t;n<e.length;n+=1){if(e[n]===")")return!0;if(e[n]===`
|
|
123
|
-
`)return!1}return!1},sc=(e,t)=>{for(let n=t-1;n>=0;n-=1){if(e[n]===")")return!1;if(e[n]==="(")return n>0&&e[n-1]==="]"?JT(e,t):!1;if(e[n]===`
|
|
124
|
-
`)return!1}return!1},
|
|
125
|
-
`)return!1}return!1},
|
|
126
|
-
`)
|
|
127
|
-
`){
|
|
118
|
+
`+(a===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
119
|
+
`))+1))}const s="#".repeat(a),o=n.enter("headingAtx"),l=n.enter("phrasing");i.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
|
|
120
|
+
`,...i.current()});return/^[\t ]/.test(u)&&(u=er(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),o(),u}vu.peek=Kb;function vu(e){return e.value||""}function Kb(){return"<"}Nu.peek=Qb;function Nu(e,t,n,r){const a=Di(n),i=a==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${i}`),u+=l.move(" "+a),u+=l.move(n.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),o()),u+=l.move(")"),s(),u}function Qb(){return"!"}Lu.peek=Xb;function Lu(e,t,n,r){const a=e.referenceType,i=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("![");const u=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=d,i(),a==="full"||!u||u!==h?l+=o.move(h+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function Xb(){return"!"}Ru.peek=Zb;function Ru(e,t,n){let r=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const s=n.unsafe[i],o=n.compilePattern(s);let l;if(s.atBreak)for(;l=o.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return a+r+a}function Zb(){return"`"}function Du(e,t){const n=Pi(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Pu.peek=Jb;function Pu(e,t,n,r){const a=Di(n),i=a==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,l;if(Du(e,n)){const d=n.stack;n.stack=[],o=n.enter("autolink");let h=s.move("<");return h+=s.move(n.containerPhrasing(e,{before:h,after:">",...s.current()})),h+=s.move(">"),o(),n.stack=d,h}o=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${i}`),u+=s.move(" "+a),u+=s.move(n.safe(e.title,{before:u,after:a,...s.current()})),u+=s.move(a),l()),u+=s.move(")"),o(),u}function Jb(e,t,n){return Du(e,n)?"<":"["}Ou.peek=e1;function Ou(e,t,n,r){const a=e.referenceType,i=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=d,i(),a==="full"||!u||u!==h?l+=o.move(h+"]"):a==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function e1(){return"["}function Oi(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function t1(e){const t=Oi(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function n1(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Mu(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function r1(e,t,n,r){const a=n.enter("list"),i=n.bulletCurrent;let s=e.ordered?n1(n):Oi(n);const o=e.ordered?s==="."?")":".":t1(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),Mu(n)===s&&d){let h=-1;for(;++h<e.children.length;){const p=e.children[h];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=o),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=i,a(),u}function a1(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function i1(e,t,n,r){const a=a1(n);let i=n.bulletCurrent||Oi(n);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let s=i.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(i+" ".repeat(s-i.length)),o.shift(s);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),d);return l(),u;function d(h,p,f){return p?(f?"":" ".repeat(s))+h:(f?i:i+" ".repeat(s-i.length))+h}}function s1(e,t,n,r){const a=n.enter("paragraph"),i=n.enter("phrasing"),s=n.containerPhrasing(e,r);return i(),a(),s}const o1=qr(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function l1(e,t,n,r){return(e.children.some(function(s){return o1(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function u1(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Fu.peek=c1;function Fu(e,t,n,r){const a=u1(n),i=n.enter("strong"),s=n.createTracker(r),o=s.move(a+a);let l=s.move(n.containerPhrasing(e,{after:a,before:o,...s.current()}));const u=l.charCodeAt(0),d=Dr(r.before.charCodeAt(r.before.length-1),u,a);d.inside&&(l=er(u)+l.slice(1));const h=l.charCodeAt(l.length-1),p=Dr(r.after.charCodeAt(0),h,a);p.inside&&(l=l.slice(0,-1)+er(h));const f=s.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:p.outside,before:d.outside},o+l+f}function c1(e,t,n){return n.options.strong||"*"}function d1(e,t,n,r){return n.safe(e.value,r)}function h1(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function m1(e,t,n){const r=(Mu(n)+(n.options.ruleSpaces?" ":"")).repeat(h1(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Bu={blockquote:Pb,break:Qs,code:jb,definition:Ub,emphasis:Su,hardBreak:Qs,heading:Wb,html:vu,image:Nu,imageReference:Lu,inlineCode:Ru,link:Pu,linkReference:Ou,list:r1,listItem:i1,paragraph:s1,root:l1,strong:Fu,text:d1,thematicBreak:m1},Zs={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
121
|
+
`,Nfr:"𝔑",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"",zwnj:""},f1={}.hasOwnProperty;function Mi(e){return f1.call(Zs,e)?Zs[e]:!1}function zu(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const p1=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function g1(e){return e.replace(p1,b1)}function b1(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return zu(n.slice(i?2:1),i?16:10)}return Mi(n)||e}function E1(){return{enter:{table:T1,tableData:Js,tableHeader:Js,tableRow:x1},exit:{codeText:y1,table:k1,tableData:Ea,tableHeader:Ea,tableRow:Ea}}}function T1(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function k1(e){this.exit(e),this.data.inTable=void 0}function x1(e){this.enter({type:"tableRow",children:[]},e)}function Ea(e){this.exit(e)}function Js(e){this.enter({type:"tableCell",children:[]},e)}function y1(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,A1));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function A1(e,t){return t==="|"?t:e}function C1(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
122
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:l,tableRow:o}};function s(f,g,y,w){return u(d(f,y,w),f.align)}function o(f,g,y,w){const x=h(f,y,w),_=u([x]);return _.slice(0,_.indexOf(`
|
|
123
|
+
`))}function l(f,g,y,w){const x=y.enter("tableCell"),_=y.enter("phrasing"),A=y.containerPhrasing(f,{...w,before:i,after:i});return _(),x(),A}function u(f,g){return Rb(f,{align:g,alignDelimiters:r,padding:n,stringLength:a})}function d(f,g,y){const w=f.children;let x=-1;const _=[],A=g.enter("table");for(;++x<w.length;)_[x]=h(w[x],g,y);return A(),_}function h(f,g,y){const w=f.children;let x=-1;const _=[],A=g.enter("tableRow");for(;++x<w.length;)_[x]=l(w[x],f,g,y);return A(),_}function p(f,g,y){let w=Bu.inlineCode(f,g,y);return y.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function _1(){return{exit:{taskListCheckValueChecked:eo,taskListCheckValueUnchecked:eo,paragraph:S1}}}function w1(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:I1}}}function eo(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function S1(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let i=-1,s;for(;++i<a.length;){const o=a[i];if(o.type==="paragraph"){s=o;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function I1(e,t,n,r){const a=e.children[0],i=typeof e.checked=="boolean"&&a&&a.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",o=n.createTracker(r);i&&o.move(s);let l=Bu.listItem(e,t,n,{...r,...o.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(d){return d+s}}function v1(){return[tb(),yb(),wb(),E1(),_1()]}function N1(e){return{extensions:[nb(),Ab(e),Sb(),C1(e),w1()]}}function tt(e,t,n,r){const a=e.length;let i=0,s;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);i<r.length;)s=r.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function it(e,t){return e.length>0?(tt(e,e.length,0,t),e):t}const to={}.hasOwnProperty;function ju(e){const t={};let n=-1;for(;++n<e.length;)L1(t,e[n]);return t}function L1(e,t){let n;for(n in t){const a=(to.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let s;if(i)for(s in i){to.call(a,s)||(a[s]=[]);const o=i[s];R1(a[s],Array.isArray(o)?o:o?[o]:[])}}}function R1(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);tt(e,0,0,r)}const D1={tokenize:z1,partial:!0},Hu={tokenize:j1,partial:!0},Uu={tokenize:H1,partial:!0},qu={tokenize:U1,partial:!0},P1={tokenize:q1,partial:!0},Vu={name:"wwwAutolink",tokenize:F1,previous:Yu},$u={name:"protocolAutolink",tokenize:B1,previous:Gu},Lt={name:"emailAutolink",tokenize:M1,previous:Wu},yt={};function O1(){return{text:yt}}let Vt=48;for(;Vt<123;)yt[Vt]=Lt,Vt++,Vt===58?Vt=65:Vt===91&&(Vt=97);yt[43]=Lt;yt[45]=Lt;yt[46]=Lt;yt[95]=Lt;yt[72]=[Lt,$u];yt[104]=[Lt,$u];yt[87]=[Lt,Vu];yt[119]=[Lt,Vu];function M1(e,t,n){const r=this;let a,i;return s;function s(h){return!Wa(h)||!Wu.call(r,r.previous)||Fi(r.events)?n(h):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(h))}function o(h){return Wa(h)?(e.consume(h),o):h===64?(e.consume(h),l):n(h)}function l(h){return h===46?e.check(P1,d,u)(h):h===45||h===95||ze(h)?(i=!0,e.consume(h),l):d(h)}function u(h){return e.consume(h),a=!0,l}function d(h){return i&&a&&qe(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(h)):n(h)}}function F1(e,t,n){const r=this;return a;function a(s){return s!==87&&s!==119||!Yu.call(r,r.previous)||Fi(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(D1,e.attempt(Hu,e.attempt(Uu,i),n),n)(s))}function i(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function B1(e,t,n){const r=this;let a="",i=!1;return s;function s(h){return(h===72||h===104)&&Gu.call(r,r.previous)&&!Fi(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(h),e.consume(h),o):n(h)}function o(h){if(qe(h)&&a.length<5)return a+=String.fromCodePoint(h),e.consume(h),o;if(h===58){const p=a.toLowerCase();if(p==="http"||p==="https")return e.consume(h),l}return n(h)}function l(h){return h===47?(e.consume(h),i?u:(i=!0,l)):n(h)}function u(h){return h===null||Rr(h)||Se(h)||en(h)||Jr(h)?n(h):e.attempt(Hu,e.attempt(Uu,d),n)(h)}function d(h){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(h)}}function z1(e,t,n){let r=0;return a;function a(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),a):s===46&&r===3?(e.consume(s),i):n(s)}function i(s){return s===null?n(s):t(s)}}function j1(e,t,n){let r,a,i;return s;function s(u){return u===46||u===95?e.check(qu,l,o)(u):u===null||Se(u)||en(u)||u!==45&&Jr(u)?l(u):(i=!0,e.consume(u),s)}function o(u){return u===95?r=!0:(a=r,r=void 0),e.consume(u),s}function l(u){return a||r||!i?n(u):t(u)}}function H1(e,t){let n=0,r=0;return a;function a(s){return s===40?(n++,e.consume(s),a):s===41&&r<n?i(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(qu,t,i)(s):s===null||Se(s)||en(s)?t(s):(e.consume(s),a)}function i(s){return s===41&&r++,e.consume(s),a}}function U1(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),i):o===93?(e.consume(o),a):o===60||o===null||Se(o)||en(o)?t(o):n(o)}function a(o){return o===null||o===40||o===91||Se(o)||en(o)?t(o):r(o)}function i(o){return qe(o)?s(o):n(o)}function s(o){return o===59?(e.consume(o),r):qe(o)?(e.consume(o),s):n(o)}}function q1(e,t,n){return r;function r(i){return e.consume(i),a}function a(i){return ze(i)?n(i):t(i)}}function Yu(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Se(e)}function Gu(e){return!qe(e)}function Wu(e){return!(e===47||Wa(e))}function Wa(e){return e===43||e===45||e===46||e===95||ze(e)}function Fi(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function An(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(i===37&&ze(e.charCodeAt(n+1))&&ze(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const o=e.charCodeAt(n+1);i<56320&&o>56319&&o<57344?(s=String.fromCharCode(i,o),a=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+a+1,s=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function ea(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Ka={name:"attention",resolveAll:V1,tokenize:$1};function V1(e,t){let n=-1,r,a,i,s,o,l,u,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[r][1].end},p={...e[n][1].start};no(h,-l),no(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:h,end:{...e[r][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},i={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[r][1].end={...s.start},e[n][1].start={...o.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=it(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=it(u,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",i,t]]),u=it(u,ea(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=it(u,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=it(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,tt(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function $1(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=bn(r);let i;return s;function s(l){return i=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===i)return e.consume(l),o;const u=e.exit("attentionSequence"),d=bn(l),h=!d||d===2&&a||n.includes(l),p=!a||a===2&&d||n.includes(r);return u._open=!!(i===42?h:h&&(a||!p)),u._close=!!(i===42?p:p&&(d||!h)),t(l)}}function no(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Y1={name:"autolink",tokenize:G1};function G1(e,t,n){let r=0;return a;function a(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(f){return qe(f)?(e.consume(f),s):f===64?n(f):u(f)}function s(f){return f===43||f===45||f===46||ze(f)?(r=1,o(f)):u(f)}function o(f){return f===58?(e.consume(f),r=0,l):(f===43||f===45||f===46||ze(f))&&r++<32?(e.consume(f),o):(r=0,u(f))}function l(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||Rr(f)?n(f):(e.consume(f),l)}function u(f){return f===64?(e.consume(f),d):Gg(f)?(e.consume(f),u):n(f)}function d(f){return ze(f)?h(f):n(f)}function h(f){return f===46?(e.consume(f),r=0,d):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):p(f)}function p(f){if((f===45||ze(f))&&r++<63){const g=f===45?p:h;return e.consume(f),g}return n(f)}}function ge(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(l){return de(l)?(e.enter(n),o(l)):t(l)}function o(l){return de(l)&&i++<a?(e.consume(l),o):(e.exit(n),t(l))}}const lr={partial:!0,tokenize:W1};function W1(e,t,n){return r;function r(i){return de(i)?ge(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||ee(i)?t(i):n(i)}}const Ku={continuation:{tokenize:Q1},exit:X1,name:"blockQuote",tokenize:K1};function K1(e,t,n){const r=this;return a;function a(s){if(s===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),i}return n(s)}function i(s){return de(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function Q1(e,t,n){const r=this;return a;function a(s){return de(s)?ge(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(Ku,t,n)(s)}}function X1(e){e.exit("blockQuote")}const Qu={name:"characterEscape",tokenize:Z1};function Z1(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return Kg(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const Xu={name:"characterReference",tokenize:J1};function J1(e,t,n){const r=this;let a=0,i,s;return o;function o(h){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),l}function l(h){return h===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(h),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,s=ze,d(h))}function u(h){return h===88||h===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(h),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=Wg,d):(e.enter("characterReferenceValue"),i=7,s=Ga,d(h))}function d(h){if(h===59&&a){const p=e.exit("characterReferenceValue");return s===ze&&!Mi(r.sliceSerialize(p))?n(h):(e.enter("characterReferenceMarker"),e.consume(h),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(h)&&a++<i?(e.consume(h),d):n(h)}}const ro={partial:!0,tokenize:tE},ao={concrete:!0,name:"codeFenced",tokenize:eE};function eE(e,t,n){const r=this,a={partial:!0,tokenize:P};let i=0,s=0,o;return l;function l(I){return u(I)}function u(I){const D=r.events[r.events.length-1];return i=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,o=I,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(I)}function d(I){return I===o?(s++,e.consume(I),d):s<3?n(I):(e.exit("codeFencedFenceSequence"),de(I)?ge(e,h,"whitespace")(I):h(I))}function h(I){return I===null||ee(I)?(e.exit("codeFencedFence"),r.interrupt?t(I):e.check(ro,y,L)(I)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(I))}function p(I){return I===null||ee(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),h(I)):de(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ge(e,f,"whitespace")(I)):I===96&&I===o?n(I):(e.consume(I),p)}function f(I){return I===null||ee(I)?h(I):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(I))}function g(I){return I===null||ee(I)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),h(I)):I===96&&I===o?n(I):(e.consume(I),g)}function y(I){return e.attempt(a,L,w)(I)}function w(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),x}function x(I){return i>0&&de(I)?ge(e,_,"linePrefix",i+1)(I):_(I)}function _(I){return I===null||ee(I)?e.check(ro,y,L)(I):(e.enter("codeFlowValue"),A(I))}function A(I){return I===null||ee(I)?(e.exit("codeFlowValue"),_(I)):(e.consume(I),A)}function L(I){return e.exit("codeFenced"),t(I)}function P(I,D,R){let z=0;return v;function v(F){return I.enter("lineEnding"),I.consume(F),I.exit("lineEnding"),M}function M(F){return I.enter("codeFencedFence"),de(F)?ge(I,j,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):j(F)}function j(F){return F===o?(I.enter("codeFencedFenceSequence"),W(F)):R(F)}function W(F){return F===o?(z++,I.consume(F),W):z>=s?(I.exit("codeFencedFenceSequence"),de(F)?ge(I,q,"whitespace")(F):q(F)):R(F)}function q(F){return F===null||ee(F)?(I.exit("codeFencedFence"),D(F)):R(F)}}}function tE(e,t,n){const r=this;return a;function a(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const Ta={name:"codeIndented",tokenize:rE},nE={partial:!0,tokenize:aE};function rE(e,t,n){const r=this;return a;function a(u){return e.enter("codeIndented"),ge(e,i,"linePrefix",5)(u)}function i(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):ee(u)?e.attempt(nE,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||ee(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function aE(e,t,n){const r=this;return a;function a(s){return r.parser.lazy[r.now().line]?n(s):ee(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):ge(e,i,"linePrefix",5)(s)}function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):ee(s)?a(s):n(s)}}const iE={name:"codeText",previous:oE,resolve:sE,tokenize:lE};function sE(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function oE(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function lE(e,t,n){let r=0,a,i;return s;function s(h){return e.enter("codeText"),e.enter("codeTextSequence"),o(h)}function o(h){return h===96?(e.consume(h),r++,o):(e.exit("codeTextSequence"),l(h))}function l(h){return h===null?n(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),l):h===96?(i=e.enter("codeTextSequence"),a=0,d(h)):ee(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(h))}function u(h){return h===null||h===32||h===96||ee(h)?(e.exit("codeTextData"),l(h)):(e.consume(h),u)}function d(h){return h===96?(e.consume(h),a++,d):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(h)):(i.type="codeTextData",u(h))}}class uE{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&Rn(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Rn(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Rn(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Rn(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Rn(this.left,n.reverse())}}}function Rn(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Zu(e){const t={};let n=-1,r,a,i,s,o,l,u;const d=new uE(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,cE(d,n)),n=t[n],u=!0);else if(r[1]._container){for(i=n,a=void 0;i--;)if(s=d.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(d.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=i);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;a&&(r[1].end={...d.get(a)[1].start},o=d.slice(a,n),o.unshift(r),d.splice(a,n-a+1,o))}}return tt(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function cE(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const o=s.events,l=[],u={};let d,h,p=-1,f=n,g=0,y=0;const w=[y];for(;f;){for(;e.get(++a)[1]!==f;);i.push(a),f._tokenizer||(d=r.sliceStream(f),f.next||d.push(null),h&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(d),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),h=f,f=f.next}for(f=n;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(y=p+1,w.push(y),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):w.pop(),p=w.length;p--;){const x=o.slice(w[p],w[p+1]),_=i.pop();l.push([_,_+x.length-1]),e.splice(_,2,x)}for(l.reverse(),p=-1;++p<l.length;)u[g+l[p][0]]=g+l[p][1],g+=l[p][1]-l[p][0]-1;return u}const dE={resolve:mE,tokenize:fE},hE={partial:!0,tokenize:pE};function mE(e){return Zu(e),e}function fE(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?i(o):ee(o)?e.check(hE,s,i)(o):(e.consume(o),a)}function i(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function s(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function pE(e,t,n){const r=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ge(e,i,"linePrefix")}function i(s){if(s===null||ee(s))return n(s);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Ju(e,t,n,r,a,i,s,o,l){const u=l||Number.POSITIVE_INFINITY;let d=0;return h;function h(x){return x===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(x),e.exit(i),p):x===null||x===32||x===41||Rr(x)?n(x):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),y(x))}function p(x){return x===62?(e.enter(i),e.consume(x),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),f(x))}function f(x){return x===62?(e.exit("chunkString"),e.exit(o),p(x)):x===null||x===60||ee(x)?n(x):(e.consume(x),x===92?g:f)}function g(x){return x===60||x===62||x===92?(e.consume(x),f):f(x)}function y(x){return!d&&(x===null||x===41||Se(x))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(x)):d<u&&x===40?(e.consume(x),d++,y):x===41?(e.consume(x),d--,y):x===null||x===32||x===40||Rr(x)?n(x):(e.consume(x),x===92?w:y)}function w(x){return x===40||x===41||x===92?(e.consume(x),y):y(x)}}function ec(e,t,n,r,a,i){const s=this;let o=0,l;return u;function u(f){return e.enter(r),e.enter(a),e.consume(f),e.exit(a),e.enter(i),d}function d(f){return o>999||f===null||f===91||f===93&&!l||f===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(f):f===93?(e.exit(i),e.enter(a),e.consume(f),e.exit(a),e.exit(r),t):ee(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),h(f))}function h(f){return f===null||f===91||f===93||ee(f)||o++>999?(e.exit("chunkString"),d(f)):(e.consume(f),l||(l=!de(f)),f===92?p:h)}function p(f){return f===91||f===92||f===93?(e.consume(f),o++,h):h(f)}}function tc(e,t,n,r,a,i){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(a),e.consume(p),e.exit(a),s=p===40?41:p,l):n(p)}function l(p){return p===s?(e.enter(a),e.consume(p),e.exit(a),e.exit(r),t):(e.enter(i),u(p))}function u(p){return p===s?(e.exit(i),l(s)):p===null?n(p):ee(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),ge(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===s||p===null||ee(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?h:d)}function h(p){return p===s||p===92?(e.consume(p),d):d(p)}}function Kn(e,t){let n;return r;function r(a){return ee(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):de(a)?ge(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const gE={name:"definition",tokenize:EE},bE={partial:!0,tokenize:TE};function EE(e,t,n){const r=this;let a;return i;function i(f){return e.enter("definition"),s(f)}function s(f){return ec.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function o(f){return a=ct(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),l):n(f)}function l(f){return Se(f)?Kn(e,u)(f):u(f)}function u(f){return Ju(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function d(f){return e.attempt(bE,h,h)(f)}function h(f){return de(f)?ge(e,p,"whitespace")(f):p(f)}function p(f){return f===null||ee(f)?(e.exit("definition"),r.parser.defined.push(a),t(f)):n(f)}}function TE(e,t,n){return r;function r(o){return Se(o)?Kn(e,a)(o):n(o)}function a(o){return tc(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function i(o){return de(o)?ge(e,s,"whitespace")(o):s(o)}function s(o){return o===null||ee(o)?t(o):n(o)}}const kE={name:"hardBreakEscape",tokenize:xE};function xE(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return ee(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const yE={name:"headingAtx",resolve:AE,tokenize:CE};function AE(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},tt(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function CE(e,t,n){let r=0;return a;function a(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&r++<6?(e.consume(d),s):d===null||Se(d)?(e.exit("atxHeadingSequence"),o(d)):n(d)}function o(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||ee(d)?(e.exit("atxHeading"),t(d)):de(d)?ge(e,o,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),o(d))}function u(d){return d===null||d===35||Se(d)?(e.exit("atxHeadingText"),o(d)):(e.consume(d),u)}}const _E=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],io=["pre","script","style","textarea"],wE={concrete:!0,name:"htmlFlow",resolveTo:vE,tokenize:NE},SE={partial:!0,tokenize:RE},IE={partial:!0,tokenize:LE};function vE(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function NE(e,t,n){const r=this;let a,i,s,o,l;return u;function u(S){return d(S)}function d(S){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(S),h}function h(S){return S===33?(e.consume(S),p):S===47?(e.consume(S),i=!0,y):S===63?(e.consume(S),a=3,r.interrupt?t:T):qe(S)?(e.consume(S),s=String.fromCharCode(S),w):n(S)}function p(S){return S===45?(e.consume(S),a=2,f):S===91?(e.consume(S),a=5,o=0,g):qe(S)?(e.consume(S),a=4,r.interrupt?t:T):n(S)}function f(S){return S===45?(e.consume(S),r.interrupt?t:T):n(S)}function g(S){const ke="CDATA[";return S===ke.charCodeAt(o++)?(e.consume(S),o===ke.length?r.interrupt?t:j:g):n(S)}function y(S){return qe(S)?(e.consume(S),s=String.fromCharCode(S),w):n(S)}function w(S){if(S===null||S===47||S===62||Se(S)){const ke=S===47,Z=s.toLowerCase();return!ke&&!i&&io.includes(Z)?(a=1,r.interrupt?t(S):j(S)):_E.includes(s.toLowerCase())?(a=6,ke?(e.consume(S),x):r.interrupt?t(S):j(S)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(S):i?_(S):A(S))}return S===45||ze(S)?(e.consume(S),s+=String.fromCharCode(S),w):n(S)}function x(S){return S===62?(e.consume(S),r.interrupt?t:j):n(S)}function _(S){return de(S)?(e.consume(S),_):v(S)}function A(S){return S===47?(e.consume(S),v):S===58||S===95||qe(S)?(e.consume(S),L):de(S)?(e.consume(S),A):v(S)}function L(S){return S===45||S===46||S===58||S===95||ze(S)?(e.consume(S),L):P(S)}function P(S){return S===61?(e.consume(S),I):de(S)?(e.consume(S),P):A(S)}function I(S){return S===null||S===60||S===61||S===62||S===96?n(S):S===34||S===39?(e.consume(S),l=S,D):de(S)?(e.consume(S),I):R(S)}function D(S){return S===l?(e.consume(S),l=null,z):S===null||ee(S)?n(S):(e.consume(S),D)}function R(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||Se(S)?P(S):(e.consume(S),R)}function z(S){return S===47||S===62||de(S)?A(S):n(S)}function v(S){return S===62?(e.consume(S),M):n(S)}function M(S){return S===null||ee(S)?j(S):de(S)?(e.consume(S),M):n(S)}function j(S){return S===45&&a===2?(e.consume(S),G):S===60&&a===1?(e.consume(S),$):S===62&&a===4?(e.consume(S),Ee):S===63&&a===3?(e.consume(S),T):S===93&&a===5?(e.consume(S),ue):ee(S)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(SE,he,W)(S)):S===null||ee(S)?(e.exit("htmlFlowData"),W(S)):(e.consume(S),j)}function W(S){return e.check(IE,q,he)(S)}function q(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),F}function F(S){return S===null||ee(S)?W(S):(e.enter("htmlFlowData"),j(S))}function G(S){return S===45?(e.consume(S),T):j(S)}function $(S){return S===47?(e.consume(S),s="",ne):j(S)}function ne(S){if(S===62){const ke=s.toLowerCase();return io.includes(ke)?(e.consume(S),Ee):j(S)}return qe(S)&&s.length<8?(e.consume(S),s+=String.fromCharCode(S),ne):j(S)}function ue(S){return S===93?(e.consume(S),T):j(S)}function T(S){return S===62?(e.consume(S),Ee):S===45&&a===2?(e.consume(S),T):j(S)}function Ee(S){return S===null||ee(S)?(e.exit("htmlFlowData"),he(S)):(e.consume(S),Ee)}function he(S){return e.exit("htmlFlow"),t(S)}}function LE(e,t,n){const r=this;return a;function a(s){return ee(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):n(s)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function RE(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(lr,t,n)}}const DE={name:"htmlText",tokenize:PE};function PE(e,t,n){const r=this;let a,i,s;return o;function o(T){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(T),l}function l(T){return T===33?(e.consume(T),u):T===47?(e.consume(T),P):T===63?(e.consume(T),A):qe(T)?(e.consume(T),R):n(T)}function u(T){return T===45?(e.consume(T),d):T===91?(e.consume(T),i=0,g):qe(T)?(e.consume(T),_):n(T)}function d(T){return T===45?(e.consume(T),f):n(T)}function h(T){return T===null?n(T):T===45?(e.consume(T),p):ee(T)?(s=h,$(T)):(e.consume(T),h)}function p(T){return T===45?(e.consume(T),f):h(T)}function f(T){return T===62?G(T):T===45?p(T):h(T)}function g(T){const Ee="CDATA[";return T===Ee.charCodeAt(i++)?(e.consume(T),i===Ee.length?y:g):n(T)}function y(T){return T===null?n(T):T===93?(e.consume(T),w):ee(T)?(s=y,$(T)):(e.consume(T),y)}function w(T){return T===93?(e.consume(T),x):y(T)}function x(T){return T===62?G(T):T===93?(e.consume(T),x):y(T)}function _(T){return T===null||T===62?G(T):ee(T)?(s=_,$(T)):(e.consume(T),_)}function A(T){return T===null?n(T):T===63?(e.consume(T),L):ee(T)?(s=A,$(T)):(e.consume(T),A)}function L(T){return T===62?G(T):A(T)}function P(T){return qe(T)?(e.consume(T),I):n(T)}function I(T){return T===45||ze(T)?(e.consume(T),I):D(T)}function D(T){return ee(T)?(s=D,$(T)):de(T)?(e.consume(T),D):G(T)}function R(T){return T===45||ze(T)?(e.consume(T),R):T===47||T===62||Se(T)?z(T):n(T)}function z(T){return T===47?(e.consume(T),G):T===58||T===95||qe(T)?(e.consume(T),v):ee(T)?(s=z,$(T)):de(T)?(e.consume(T),z):G(T)}function v(T){return T===45||T===46||T===58||T===95||ze(T)?(e.consume(T),v):M(T)}function M(T){return T===61?(e.consume(T),j):ee(T)?(s=M,$(T)):de(T)?(e.consume(T),M):z(T)}function j(T){return T===null||T===60||T===61||T===62||T===96?n(T):T===34||T===39?(e.consume(T),a=T,W):ee(T)?(s=j,$(T)):de(T)?(e.consume(T),j):(e.consume(T),q)}function W(T){return T===a?(e.consume(T),a=void 0,F):T===null?n(T):ee(T)?(s=W,$(T)):(e.consume(T),W)}function q(T){return T===null||T===34||T===39||T===60||T===61||T===96?n(T):T===47||T===62||Se(T)?z(T):(e.consume(T),q)}function F(T){return T===47||T===62||Se(T)?z(T):n(T)}function G(T){return T===62?(e.consume(T),e.exit("htmlTextData"),e.exit("htmlText"),t):n(T)}function $(T){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),ne}function ne(T){return de(T)?ge(e,ue,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):ue(T)}function ue(T){return e.enter("htmlTextData"),s(T)}}const Bi={name:"labelEnd",resolveAll:BE,resolveTo:zE,tokenize:jE},OE={tokenize:HE},ME={tokenize:UE},FE={tokenize:qE};function BE(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&tt(e,0,e.length,n),e}function zE(e,t){let n=e.length,r=0,a,i,s,o;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(s=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},d={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[s-2][1].start}};return o=[["enter",l,t],["enter",u,t]],o=it(o,e.slice(i+1,i+r+3)),o=it(o,[["enter",d,t]]),o=it(o,ea(t.parser.constructs.insideSpan.null,e.slice(i+r+4,s-3),t)),o=it(o,[["exit",d,t],e[s-2],e[s-1],["exit",u,t]]),o=it(o,e.slice(s+1)),o=it(o,[["exit",l,t]]),tt(e,i,e.length,o),e}function jE(e,t,n){const r=this;let a=r.events.length,i,s;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return o;function o(p){return i?i._inactive?h(p):(s=r.parser.defined.includes(ct(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):n(p)}function l(p){return p===40?e.attempt(OE,d,s?d:h)(p):p===91?e.attempt(ME,d,s?u:h)(p):s?d(p):h(p)}function u(p){return e.attempt(FE,d,h)(p)}function d(p){return t(p)}function h(p){return i._balanced=!0,n(p)}}function HE(e,t,n){return r;function r(h){return e.enter("resource"),e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),a}function a(h){return Se(h)?Kn(e,i)(h):i(h)}function i(h){return h===41?d(h):Ju(e,s,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(h)}function s(h){return Se(h)?Kn(e,l)(h):d(h)}function o(h){return n(h)}function l(h){return h===34||h===39||h===40?tc(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(h):d(h)}function u(h){return Se(h)?Kn(e,d)(h):d(h)}function d(h){return h===41?(e.enter("resourceMarker"),e.consume(h),e.exit("resourceMarker"),e.exit("resource"),t):n(h)}}function UE(e,t,n){const r=this;return a;function a(o){return ec.call(r,e,i,s,"reference","referenceMarker","referenceString")(o)}function i(o){return r.parser.defined.includes(ct(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function s(o){return n(o)}}function qE(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const VE={name:"labelStartImage",resolveAll:Bi.resolveAll,tokenize:$E};function $E(e,t,n){const r=this;return a;function a(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),i}function i(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),s):n(o)}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const YE={name:"labelStartLink",resolveAll:Bi.resolveAll,tokenize:GE};function GE(e,t,n){const r=this;return a;function a(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const ka={name:"lineEnding",tokenize:WE};function WE(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ge(e,t,"linePrefix")}}const _r={name:"thematicBreak",tokenize:KE};function KE(e,t,n){let r=0,a;return i;function i(u){return e.enter("thematicBreak"),s(u)}function s(u){return a=u,o(u)}function o(u){return u===a?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||ee(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===a?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),de(u)?ge(e,o,"whitespace")(u):o(u))}}const Ke={continuation:{tokenize:JE},exit:tT,name:"list",tokenize:ZE},QE={partial:!0,tokenize:nT},XE={partial:!0,tokenize:eT};function ZE(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,s=0;return o;function o(f){const g=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:Ga(f)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(_r,n,u)(f):u(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return n(f)}function l(f){return Ga(f)&&++s<10?(e.consume(f),l):(!r.interrupt||s<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),u(f)):n(f)}function u(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(lr,r.interrupt?n:d,e.attempt(QE,p,h))}function d(f){return r.containerState.initialBlankLine=!0,i++,p(f)}function h(f){return de(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),p):n(f)}function p(f){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function JE(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(lr,a,i);function a(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ge(e,t,"listItemIndent",r.containerState.size+1)(o)}function i(o){return r.containerState.furtherBlankLines||!de(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(XE,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ge(e,e.attempt(Ke,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function eT(e,t,n){const r=this;return ge(e,a,"listItemIndent",r.containerState.size+1);function a(i){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(i):n(i)}}function tT(e){e.exit(this.containerState.type)}function nT(e,t,n){const r=this;return ge(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const s=r.events[r.events.length-1];return!de(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const so={name:"setextUnderline",resolveTo:rT,tokenize:aT};function rT(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",s,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function aT(e,t,n){const r=this;let a;return i;function i(u){let d=r.events.length,h;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){h=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||h)?(e.enter("setextHeadingLine"),a=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===a?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),de(u)?ge(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||ee(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const iT={tokenize:mT,partial:!0};function sT(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:cT,continuation:{tokenize:dT},exit:hT}},text:{91:{name:"gfmFootnoteCall",tokenize:uT},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:oT,resolveTo:lT}}}}function oT(e,t,n){const r=this;let a=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;a--;){const l=r.events[a][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return n(l);const u=ct(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!i.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function lT(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function uT(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,s;return o;function o(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),l}function l(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(h){if(i>999||h===93&&!s||h===null||h===91||Se(h))return n(h);if(h===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return a.includes(ct(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(h)}return Se(h)||(s=!0),i++,e.consume(h),h===92?d:u}function d(h){return h===91||h===92||h===93?(e.consume(h),i++,u):u(h)}}function cT(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,s=0,o;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(g)}function d(g){if(s>999||g===93&&!o||g===null||g===91||Se(g))return n(g);if(g===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return i=ct(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Se(g)||(o=!0),s++,e.consume(g),g===92?h:d}function h(g){return g===91||g===92||g===93?(e.consume(g),s++,d):d(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),a.includes(i)||a.push(i),ge(e,f,"gfmFootnoteDefinitionWhitespace")):n(g)}function f(g){return t(g)}}function dT(e,t,n){return e.check(lr,t,e.attempt(iT,t,n))}function hT(e){e.exit("gfmFootnoteDefinition")}function mT(e,t,n){const r=this;return ge(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(i):n(i)}}function fT(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(s,o){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const d={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},h={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},p=[["enter",d,o],["enter",s[u][1],o],["exit",s[u][1],o],["enter",h,o]],f=o.parser.constructs.insideSpan.null;f&&tt(p,p.length,0,ea(f,s.slice(u+1,l),o)),tt(p,p.length,0,[["exit",h,o],["enter",s[l][1],o],["exit",s[l][1],o],["exit",d,o]]),tt(s,u-1,l-u+3,p),l=u+p.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function i(s,o,l){const u=this.previous,d=this.events;let h=0;return p;function p(g){return u===126&&d[d.length-1][1].type!=="characterEscape"?l(g):(s.enter("strikethroughSequenceTemporary"),f(g))}function f(g){const y=bn(u);if(g===126)return h>1?l(g):(s.consume(g),h++,f);if(h<2&&!n)return l(g);const w=s.exit("strikethroughSequenceTemporary"),x=bn(g);return w._open=!x||x===2&&!!y,w._close=!y||y===2&&!!x,o(g)}}}class pT{constructor(){this.map=[]}add(t,n,r){gT(this,t,n,r)}consume(t){if(this.map.sort(function(i,s){return i[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const i of a)t.push(i);a=r.pop()}this.map.length=0}}function gT(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function bT(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function ET(){return{flow:{null:{name:"table",tokenize:TT,resolveAll:kT}}}}function TT(e,t,n){const r=this;let a=0,i=0,s;return o;function o(v){let M=r.events.length-1;for(;M>-1;){const q=r.events[M][1].type;if(q==="lineEnding"||q==="linePrefix")M--;else break}const j=M>-1?r.events[M][1].type:null,W=j==="tableHead"||j==="tableRow"?I:l;return W===I&&r.parser.lazy[r.now().line]?n(v):W(v)}function l(v){return e.enter("tableHead"),e.enter("tableRow"),u(v)}function u(v){return v===124||(s=!0,i+=1),d(v)}function d(v){return v===null?n(v):ee(v)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),f):n(v):de(v)?ge(e,d,"whitespace")(v):(i+=1,s&&(s=!1,a+=1),v===124?(e.enter("tableCellDivider"),e.consume(v),e.exit("tableCellDivider"),s=!0,d):(e.enter("data"),h(v)))}function h(v){return v===null||v===124||Se(v)?(e.exit("data"),d(v)):(e.consume(v),v===92?p:h)}function p(v){return v===92||v===124?(e.consume(v),h):h(v)}function f(v){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(v):(e.enter("tableDelimiterRow"),s=!1,de(v)?ge(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(v):g(v))}function g(v){return v===45||v===58?w(v):v===124?(s=!0,e.enter("tableCellDivider"),e.consume(v),e.exit("tableCellDivider"),y):P(v)}function y(v){return de(v)?ge(e,w,"whitespace")(v):w(v)}function w(v){return v===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(v),e.exit("tableDelimiterMarker"),x):v===45?(i+=1,x(v)):v===null||ee(v)?L(v):P(v)}function x(v){return v===45?(e.enter("tableDelimiterFiller"),_(v)):P(v)}function _(v){return v===45?(e.consume(v),_):v===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(v),e.exit("tableDelimiterMarker"),A):(e.exit("tableDelimiterFiller"),A(v))}function A(v){return de(v)?ge(e,L,"whitespace")(v):L(v)}function L(v){return v===124?g(v):v===null||ee(v)?!s||a!==i?P(v):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(v)):P(v)}function P(v){return n(v)}function I(v){return e.enter("tableRow"),D(v)}function D(v){return v===124?(e.enter("tableCellDivider"),e.consume(v),e.exit("tableCellDivider"),D):v===null||ee(v)?(e.exit("tableRow"),t(v)):de(v)?ge(e,D,"whitespace")(v):(e.enter("data"),R(v))}function R(v){return v===null||v===124||Se(v)?(e.exit("data"),D(v)):(e.consume(v),v===92?z:R)}function z(v){return v===92||v===124?(e.consume(v),R):R(v)}}function kT(e,t){let n=-1,r=!0,a=0,i=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,d,h;const p=new pT;for(;++n<e.length;){const f=e[n],g=f[1];f[0]==="enter"?g.type==="tableHead"?(o=!1,l!==0&&(oo(p,t,l,u,d),d=void 0,l=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",u,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,h=void 0,i=[0,0,0,0],s=[0,n+1,0,0],o&&(o=!1,d={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",d,t]])),a=g.type==="tableDelimiterRow"?2:d?3:1):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(i[1]!==0&&(s[0]=s[1],h=pr(p,t,i,a,void 0,h),i=[0,0,0,0]),s[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(s[0]=s[1],h=pr(p,t,i,a,void 0,h)),i=s,s=[i[1],n,0,0])):g.type==="tableHead"?(o=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,i[1]!==0?(s[0]=s[1],h=pr(p,t,i,a,n,h)):s[1]!==0&&(h=pr(p,t,s,a,n,h)),a=0):a&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&oo(p,t,l,u,d),p.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=bT(t.events,n))}return e}function pr(e,t,n,r,a,i){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";n[0]!==0&&(i.end=Object.assign({},dn(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const l=dn(t.events,n[1]);if(i={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const u=dn(t.events,n[2]),d=dn(t.events,n[3]),h={type:o,start:Object.assign({},u),end:Object.assign({},d)};if(e.add(n[2],0,[["enter",h,t]]),r!==2){const p=t.events[n[2]],f=t.events[n[3]];if(p[1].end=Object.assign({},f[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,y=n[3]-n[2]-1;e.add(g,y,[])}}e.add(n[3]+1,0,[["exit",h,t]])}return a!==void 0&&(i.end=Object.assign({},dn(t.events,a)),e.add(a,0,[["exit",i,t]]),i=void 0),i}function oo(e,t,n,r,a){const i=[],s=dn(t.events,n);a&&(a.end=Object.assign({},s),i.push(["exit",a,t])),r.end=Object.assign({},s),i.push(["exit",r,t]),e.add(n+1,0,i)}function dn(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const xT={name:"tasklistCheck",tokenize:AT};function yT(){return{text:{91:xT}}}function AT(e,t,n){const r=this;return a;function a(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return Se(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(l)}function o(l){return ee(l)?t(l):de(l)?e.check({tokenize:CT},t,n)(l):n(l)}}function CT(e,t,n){return ge(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function _T(e){return ju([O1(),sT(),fT(e),ET(),yT()])}const wT={};function ST(e){const t=this,n=e||wT,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(_T(n)),i.push(v1()),s.push(N1(n))}var IT=Object.defineProperty,vT=Object.defineProperties,NT=Object.getOwnPropertyDescriptors,lo=Object.getOwnPropertySymbols,LT=Object.prototype.hasOwnProperty,RT=Object.prototype.propertyIsEnumerable,uo=(e,t,n)=>t in e?IT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nc=(e,t)=>{for(var n in t||(t={}))LT.call(t,n)&&uo(e,n,t[n]);if(lo)for(var n of lo(t))RT.call(t,n)&&uo(e,n,t[n]);return e},rc=(e,t)=>vT(e,NT(t)),DT=e=>{let t=new Uint8Array(e.length+1),n=!1,r=!1,a=0;for(;a<e.length;){if(e[a]==="\\"&&a+1<e.length&&e[a+1]==="`"){let i=n||r?1:0;t[a+1]=i,t[a+2]=i,a+=2;continue}if(e.substring(a,a+3)==="```"){r=!r;let i=n||r?1:0,s=Math.min(a+3,e.length);for(let o=a+1;o<=s;o+=1)t[o]=i;a=s;continue}!r&&e[a]==="`"&&(n=!n),t[a+1]=n||r?1:0,a+=1}return t},co=null,$e=(e,t)=>{let n=co;return(n===null||n.text!==e)&&(n={text:e,lookup:DT(e)},co=n),n.lookup[Math.min(t,e.length)]===1},PT=(e,t)=>{let n=e.substring(t,t+3)==="```",r=t>0&&e.substring(t-1,t+2)==="```",a=t>1&&e.substring(t-2,t+1)==="```";return n||r||a},OT=e=>{let t=0;for(let n=0;n<e.length;n+=1){if(e[n]==="\\"&&n+1<e.length&&e[n+1]==="`"){n+=1;continue}e[n]==="`"&&!PT(e,n)&&(t+=1)}return t},Bt=(e,t)=>{let n=!1,r=!1,a=-1;for(let i=0;i<e.length;i+=1){if(e[i]==="\\"&&i+1<e.length&&e[i+1]==="`"){i+=1;continue}if(e.substring(i,i+3)==="```"){r=!r,i+=2;continue}if(!r&&e[i]==="`")if(n){if(a<t&&t<i)return!0;n=!1,a=-1}else n=!0,a=i}return!1},MT=/^(\s*(?:[-*+]|\d+[.)]) +)>(=?\s*[$]?\d)/gm,FT=e=>!e||typeof e!="string"||!e.includes(">")?e:e.replace(MT,(t,n,r,a)=>$e(e,a)?t:`${n}\\>${r}`),BT=/(\*\*)([^*]*\*?)$/,zT=/(__)([^_]*?)$/,jT=/(\*\*\*)([^*]*?)$/,HT=/(\*)([^*]*?)$/,UT=/(_)([^_]*?)$/,qT=/(`)([^`]*?)$/,VT=/(~~)([^~]*?)$/,an=/^[\s_~*`]*$/,ac=/^[\s]*[-*+][\s]+$/,$T=/[\p{L}\p{N}_]/u,YT=/^```[^`\n]*```?$/,GT=/^\*{4,}$/,WT=/(__)([^_]+)_$/,KT=/(~~)([^~]+)~$/,ho=/~~/g,vt=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===95?!0:$T.test(e)},QT=(e,t)=>{let n=1;for(let r=t-1;r>=0;r-=1)if(e[r]==="]")n+=1;else if(e[r]==="["&&(n-=1,n===0))return r;return-1},ic=(e,t)=>{let n=1;for(let r=t+1;r<e.length;r+=1)if(e[r]==="[")n+=1;else if(e[r]==="]"&&(n-=1,n===0))return r;return-1},XT=e=>e==="inlineLatex"||e==="blockLatex",ZT=(e,t)=>t==="["&&e==="none"?"blockLatex":t==="]"&&e==="blockLatex"?"none":t==="("&&e==="none"?"inlineLatex":t===")"&&e==="inlineLatex"?"none":null,JT=(e,t)=>t?e==="blockDollar"?"none":"blockDollar":e==="blockDollar"?e:e==="inlineDollar"?"none":"inlineDollar",ta=(e,t)=>{let n="none";for(let r=0;r<e.length&&r<t;r+=1){if(e[r]==="\\"&&e[r+1]==="$"){r+=1;continue}if(e[r]==="\\"){let a=ZT(n,e[r+1]);if(a!==null){n=a,r+=1;continue}}if(e[r]==="$"&&!XT(n)){let a=e[r+1]==="$";n=JT(n,a),a&&(r+=1)}}return n!=="none"},ek=(e,t)=>{for(let n=t;n<e.length;n+=1){if(e[n]===")")return!0;if(e[n]===`
|
|
124
|
+
`)return!1}return!1},sc=(e,t)=>{for(let n=t-1;n>=0;n-=1){if(e[n]===")")return!1;if(e[n]==="(")return n>0&&e[n-1]==="]"?ek(e,t):!1;if(e[n]===`
|
|
125
|
+
`)return!1}return!1},tk=(e,t)=>{for(let n=t-1;n>=0;n-=1){if(e[n]===">")return!1;if(e[n]==="<"){let r=n+1<e.length?e[n+1]:"";return r>="a"&&r<="z"||r>="A"&&r<="Z"||r==="/"}if(e[n]===`
|
|
126
|
+
`)return!1}return!1},zi=(e,t,n)=>{let r=0;for(let l=t-1;l>=0;l-=1)if(e[l]===`
|
|
127
|
+
`){r=l+1;break}let a=e.length;for(let l=t;l<e.length;l+=1)if(e[l]===`
|
|
128
|
+
`){a=l;break}let i=e.substring(r,a),s=0,o=!1;for(let l of i)if(l===n)s+=1;else if(l!==" "&&l!==" "){o=!0;break}return s>=3&&!o},oc=e=>e.includes("$")||e.includes("\\(")||e.includes("\\["),nk=(e,t,n,r)=>n==="\\"||oc(e)&&ta(e,t)?!0:n!=="*"&&r==="*"?(t<e.length-2?e[t+2]:"")!=="*":n==="*"||(!n||n===" "||n===" "||n===`
|
|
128
129
|
`)&&(!r||r===" "||r===" "||r===`
|
|
129
|
-
`),
|
|
130
|
-
`,
|
|
131
|
-
`),
|
|
132
|
-
`)?!0:
|
|
133
|
-
`),
|
|
134
|
-
`)?!0:
|
|
135
|
-
`;)t-=1;if(t<e.length){let n=e.slice(0,t),r=e.slice(t);return`${n}_${r}`}return`${e}_`},
|
|
136
|
-
`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,
|
|
130
|
+
`),Pr=e=>e===" "||e===" "||e===`
|
|
131
|
+
`,rk=(e,t)=>!!(e&&t&&vt(e)&&vt(t)),ak=(e,t,n,r)=>{let a=rk(e,t),i=!!t&&!Pr(t),s=!!e&&!Pr(e);return a&&n%2===0&&!r?{count:!1}:s&&n%2===1||i?{count:!0,inWordAsteriskChain:a}:{count:!1}},lc=e=>{let t=0,n=!1,r=!1,a=e.length;for(let i=0;i<a;i+=1){if(e[i]==="`"&&i+2<a&&e[i+1]==="`"&&e[i+2]==="`"){n=!n,i+=2;continue}if(n)continue;if(e[i]!=="*"){vt(e[i])||(r=!1);continue}let s=i>0?e[i-1]:"",o=i<a-1?e[i+1]:"";if(nk(e,i,s,o))continue;let l=ak(s,o,t,r);l.count&&(t+=1,r=l.inWordAsteriskChain)}return t},ik=(e,t,n,r)=>!!(n==="\\"||oc(e)&&ta(e,t)||sc(e,t)||tk(e,t)||n==="_"||r==="_"||n&&r&&vt(n)&&vt(r)),sk=e=>{let t=0,n=!1,r=e.length;for(let a=0;a<r;a+=1){if(e[a]==="`"&&a+2<r&&e[a+1]==="`"&&e[a+2]==="`"){n=!n,a+=2;continue}if(n||e[a]!=="_")continue;let i=a>0?e[a-1]:"",s=a<r-1?e[a+1]:"";ik(e,a,i,s)||(t+=1)}return t},ok=e=>{let t=0,n=0,r=!1;for(let a=0;a<e.length;a+=1){if(e[a]==="`"&&a+2<e.length&&e[a+1]==="`"&&e[a+2]==="`"){n>=3&&(t+=Math.floor(n/3)),n=0,r=!r,a+=2;continue}r||(e[a]==="*"?n+=1:(n>=3&&(t+=Math.floor(n/3)),n=0))}return n>=3&&(t+=Math.floor(n/3)),t},ji=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if(e[r]==="`"&&r+2<e.length&&e[r+1]==="`"&&e[r+2]==="`"){n=!n,r+=2;continue}n||e[r]==="*"&&r+1<e.length&&e[r+1]==="*"&&(t+=1,r+=1)}return t},mo=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if(e[r]==="`"&&r+2<e.length&&e[r+1]==="`"&&e[r+2]==="`"){n=!n,r+=2;continue}n||e[r]==="_"&&r+1<e.length&&e[r+1]==="_"&&(t+=1,r+=1)}return t},lk=(e,t,n)=>{if(!t||an.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
|
|
132
|
+
`),a=r===-1?0:r+1,i=e.substring(a,n);return ac.test(i)&&t.includes(`
|
|
133
|
+
`)?!0:zi(e,n,"*")},uk=e=>{let t=e.match(BT);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return $e(e,r)||Bt(e,r)||lk(e,n,r)?e:ji(e)%2===1?n.endsWith("*")?`${e}*`:`${e}**`:e},ck=(e,t,n)=>{if(!t||an.test(t))return!0;let r=e.substring(0,n).lastIndexOf(`
|
|
134
|
+
`),a=r===-1?0:r+1,i=e.substring(a,n);return ac.test(i)&&t.includes(`
|
|
135
|
+
`)?!0:zi(e,n,"_")},dk=e=>{let t=e.match(zT);if(!t){let a=e.match(WT);if(a){let i=e.lastIndexOf(a[1]);if(!($e(e,i)||Bt(e,i))&&mo(e)%2===1)return`${e}_`}return e}let n=t[2],r=e.lastIndexOf(t[1]);return $e(e,r)||Bt(e,r)||ck(e,n,r)?e:mo(e)%2===1?`${e}__`:e},hk=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){t=!t,n+=2;continue}if(!t&&e[n]==="*"&&e[n-1]!=="*"&&e[n+1]!=="*"&&e[n-1]!=="\\"&&!ta(e,n)){let r=n>0?e[n-1]:"",a=n<e.length-1?e[n+1]:"",i=!r||Pr(r),s=!a||Pr(a);if(i&&s||r&&a&&vt(r)&&vt(a)||s)continue;return n}}return-1},mk=e=>{if(!e.match(HT))return e;let t=hk(e);if(t===-1||$e(e,t)||Bt(e,t))return e;let n=e.substring(t+1);return!n||an.test(n)?e:lc(e)%2===1?`${e}*`:e},uc=e=>{let t=!1;for(let n=0;n<e.length;n+=1){if(e[n]==="`"&&n+2<e.length&&e[n+1]==="`"&&e[n+2]==="`"){t=!t,n+=2;continue}if(!t&&e[n]==="_"&&e[n-1]!=="_"&&e[n+1]!=="_"&&e[n-1]!=="\\"&&!ta(e,n)&&!sc(e,n)){let r=n>0?e[n-1]:"",a=n<e.length-1?e[n+1]:"";if(r&&a&&vt(r)&&vt(a))continue;return n}}return-1},fk=e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
136
|
+
`;)t-=1;if(t<e.length){let n=e.slice(0,t),r=e.slice(t);return`${n}_${r}`}return`${e}_`},pk=e=>{if(!e.endsWith("**"))return null;let t=e.slice(0,-2);if(ji(t)%2!==1)return null;let n=t.indexOf("**"),r=uc(t);return n!==-1&&r!==-1&&n<r?`${t}_**`:null},gk=e=>{if(!e.match(UT))return e;let t=uc(e);if(t===-1)return e;let n=e.substring(t+1);if(!n||an.test(n)||$e(e,t)||Bt(e,t))return e;if(sk(e)%2===1){let r=pk(e);return r!==null?r:fk(e)}return e},bk=e=>{let t=ji(e),n=lc(e);return t%2===0&&n%2===0},Ek=(e,t,n)=>!t||an.test(t)||$e(e,n)||Bt(e,n)?!0:zi(e,n,"*"),Tk=e=>{if(GT.test(e))return e;let t=e.match(jT);if(!t)return e;let n=t[2],r=e.lastIndexOf(t[1]);return Ek(e,n,r)?e:ok(e)%2===1?bk(e)?e:`${e}***`:e},kk=/<[a-zA-Z/][^>]*$/,xk=e=>{let t=e.match(kk);return!t||t.index===void 0||$e(e,t.index)?e:e.substring(0,t.index).trimEnd()},yk=e=>!e.match(YT)||e.includes(`
|
|
137
|
+
`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,Ak=e=>(e.match(/```/g)||[]).length%2===1,Ck=e=>{let t=yk(e);if(t!==null)return t;let n=e.match(qT);if(n&&!Ak(e)){let r=n[2];if(!r||an.test(r))return e;if(OT(e)%2===1)return`${e}\``}return e},cc=(e,t)=>t>=2&&e.substring(t-2,t+1)==="```"||t>=1&&e.substring(t-1,t+2)==="```"||t<=e.length-3&&e.substring(t,t+3)==="```",_k=e=>{let t=0,n=!1;for(let r=0;r<e.length-1;r+=1)e[r]==="`"&&!cc(e,r)&&(n=!n),!n&&e[r]==="$"&&e[r+1]==="$"&&(t+=1,r+=1);return t},wk=e=>{let t=0,n=!1;for(let r=0;r<e.length;r+=1){if(e[r]==="\\"){r+=1;continue}if(e[r]==="`"&&!cc(e,r)){n=!n;continue}!n&&e[r]==="$"&&(r+1<e.length&&e[r+1]==="$"?r+=1:t+=1)}return t},Sk=e=>{if(e.endsWith("$")&&!e.endsWith("$$"))return`${e}$`;let t=e.indexOf("$$");return t!==-1&&e.indexOf(`
|
|
137
138
|
`,t)!==-1&&!e.endsWith(`
|
|
138
139
|
`)?`${e}
|
|
139
|
-
$$`:`${e}$$`},
|
|
140
|
-
`);if(t===-1)return e;let n=e.substring(t+1),r=e.substring(0,t),
|
|
141
|
-
`).at(-1);if(
|
|
142
|
-
`).at(-1);if(a&&a.trim().length>0)return`${e}`}return e},Ok=/([\p{L}\p{N}_])~(?!~)(?=[\p{L}\p{N}_])/gu,Fk=e=>!e||typeof e!="string"||!e.includes("~")?e:e.replace(Ok,(t,n,r)=>{let i=r+n.length;return $e(e,i)?t:`${n}\\~`}),Bk=e=>{var t,n;let r=e.match(qT);if(r){let i=r[2];if(!i||an.test(i))return e;let a=e.lastIndexOf(r[1]);if($e(e,a)||Bt(e,a))return e;if(((t=e.match(ho))==null?void 0:t.length)%2===1)return`${e}~~`}else{let i=e.match(WT);if(i){let a=e.lastIndexOf(i[0].slice(0,2));if($e(e,a)||Bt(e,a))return e;if(((n=e.match(ho))==null?void 0:n.length)%2===1)return`${e}~`}}return e},xi=e=>e!==!1,zk=e=>e===!0,Ue={SINGLE_TILDE:0,COMPARISON_OPERATORS:5,HTML_TAGS:10,SETEXT_HEADINGS:15,LINKS:20,BOLD_ITALIC:30,BOLD:35,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,INLINE_KATEX:75,DEFAULT:100},jk=[{handler:{name:"singleTilde",handle:Fk,priority:Ue.SINGLE_TILDE},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:OT,priority:Ue.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:kk,priority:Ue.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:Mk,priority:Ue.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:dc,priority:Ue.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:Ek,priority:Ue.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:lk,priority:Ue.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:ck,priority:Ue.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:hk,priority:Ue.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:pk,priority:Ue.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:Ak,priority:Ue.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:Bk,priority:Ue.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:wk,priority:Ue.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:Ik,priority:Ue.INLINE_KATEX},optionKey:"inlineKatex"}],Hk=e=>{var t;let n=(t=e?.linkMode)!=null?t:"protocol";return jk.filter(({handler:r,optionKey:i})=>r.name==="links"?xi(e?.links)||xi(e?.images):r.name==="inlineKatex"?zk(e?.inlineKatex):xi(e?.[i])).map(({handler:r,earlyReturn:i})=>r.name==="links"?{handler:rc(nc({},r),{handle:a=>dc(a,n)}),earlyReturn:n==="protocol"?i:void 0}:{handler:r,earlyReturn:i})},Uk=(e,t)=>{var n;if(!e||typeof e!="string")return e;let r=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,i=Hk(t),a=((n=t?.handlers)!=null?n:[]).map(o=>{var l;return{handler:rc(nc({},o),{priority:(l=o.priority)!=null?l:Ue.DEFAULT}),earlyReturn:void 0}}),s=[...i,...a].sort((o,l)=>{var u,d;return((u=o.handler.priority)!=null?u:0)-((d=l.handler.priority)!=null?d:0)});for(let{handler:o,earlyReturn:l}of s)if(r=o.handle(r),l!=null&&l(r))return r;return r},qk=Uk;function hc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=hc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function mc(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=hc(e))&&(r&&(r+=" "),r+=t);return r}const Vk=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},$k=(e,t)=>({classGroupId:e,validator:t}),fc=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Mr="-",po=[],Yk="arbitrary..",Gk=e=>{const t=Kk(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Wk(s);const o=s.split(Mr),l=o[0]===""&&o.length>1?1:0;return pc(o,l,t)},getConflictingClassGroupIds:(s,o)=>{if(o){const l=r[s],u=n[s];return l?u?Vk(u,l):l:u||po}return n[s]||po}}},pc=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],a=n.nextPart.get(i);if(a){const u=pc(e,t+1,a);if(u)return u}const s=n.validators;if(s===null)return;const o=t===0?e.join(Mr):e.slice(t).join(Mr),l=s.length;for(let u=0;u<l;u++){const d=s[u];if(d.validator(o))return d.classGroupId}},Wk=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Yk+r:void 0})(),Kk=e=>{const{theme:t,classGroups:n}=e;return Qk(n,t)},Qk=(e,t)=>{const n=fc();for(const r in e){const i=e[r];Ha(i,n,r,t)}return n},Ha=(e,t,n,r)=>{const i=e.length;for(let a=0;a<i;a++){const s=e[a];Xk(s,t,n,r)}},Xk=(e,t,n,r)=>{if(typeof e=="string"){Zk(e,t,n);return}if(typeof e=="function"){Jk(e,t,n,r);return}ex(e,t,n,r)},Zk=(e,t,n)=>{const r=e===""?t:gc(t,e);r.classGroupId=n},Jk=(e,t,n,r)=>{if(tx(e)){Ha(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push($k(n,e))},ex=(e,t,n,r)=>{const i=Object.entries(e),a=i.length;for(let s=0;s<a;s++){const[o,l]=i[s];Ha(l,gc(t,o),n,r)}},gc=(e,t)=>{let n=e;const r=t.split(Mr),i=r.length;for(let a=0;a<i;a++){const s=r[a];let o=n.nextPart.get(s);o||(o=fc(),n.nextPart.set(s,o)),n=o}return n},tx=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,nx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(a,s)=>{n[a]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(a){let s=n[a];if(s!==void 0)return s;if((s=r[a])!==void 0)return i(a,s),s},set(a,s){a in n?n[a]=s:i(a,s)}}},Qi="!",go=":",rx=[],bo=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),ix=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const a=[];let s=0,o=0,l=0,u;const d=i.length;for(let y=0;y<d;y++){const S=i[y];if(s===0&&o===0){if(S===go){a.push(i.slice(l,y)),l=y+1;continue}if(S==="/"){u=y;continue}}S==="["?s++:S==="]"?s--:S==="("?o++:S===")"&&o--}const h=a.length===0?i:i.slice(l);let p=h,f=!1;h.endsWith(Qi)?(p=h.slice(0,-1),f=!0):h.startsWith(Qi)&&(p=h.slice(1),f=!0);const g=u&&u>l?u-l:void 0;return bo(a,f,p,g)};if(t){const i=t+go,a=r;r=s=>s.startsWith(i)?a(s.slice(i.length)):bo(rx,!1,s,void 0,!0)}if(n){const i=r;r=a=>n({className:a,parseClassName:i})}return r},ax=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let a=0;a<n.length;a++){const s=n[a],o=s[0]==="[",l=t.has(s);o||l?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(s)):i.push(s)}return i.length>0&&(i.sort(),r.push(...i)),r}},sx=e=>({cache:nx(e.cacheSize),parseClassName:ix(e),sortModifiers:ax(e),postfixLookupClassGroupIds:ox(e),...Gk(e)}),ox=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},lx=/\s+/,ux=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:s}=t,o=[],l=e.trim().split(lx);let u="";for(let d=l.length-1;d>=0;d-=1){const h=l[d],{isExternal:p,modifiers:f,hasImportantModifier:g,baseClassName:y,maybePostfixModifierPosition:S}=n(h);if(p){u=h+(u.length>0?" "+u:u);continue}let x=!!S,_;if(x){const P=y.substring(0,S);_=r(P);const R=_&&s[_]?r(y):void 0;R&&R!==_&&(_=R,x=!1)}else _=r(y);if(!_){if(!x){u=h+(u.length>0?" "+u:u);continue}if(_=r(y),!_){u=h+(u.length>0?" "+u:u);continue}x=!1}const A=f.length===0?"":f.length===1?f[0]:a(f).join(":"),L=g?A+Qi:A,D=L+_;if(o.indexOf(D)>-1)continue;o.push(D);const I=i(_,x);for(let P=0;P<I.length;++P){const R=I[P];o.push(L+R)}u=h+(u.length>0?" "+u:u)}return u},cx=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=bc(n))&&(i&&(i+=" "),i+=r);return i},bc=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=bc(e[r]))&&(n&&(n+=" "),n+=t);return n},dx=(e,...t)=>{let n,r,i,a;const s=l=>{const u=t.reduce((d,h)=>h(d),e());return n=sx(u),r=n.cache.get,i=n.cache.set,a=o,o(l)},o=l=>{const u=r(l);if(u)return u;const d=ux(l,n);return i(l,d),d};return a=s,(...l)=>a(cx(...l))},hx=[],Me=e=>{const t=n=>n[e]||hx;return t.isThemeGetter=!0,t},Ec=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Tc=/^\((?:(\w[\w-]*):)?(.+)\)$/i,mx=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,fx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,px=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,gx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,bx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ex=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Rt=e=>mx.test(e),ae=e=>!!e&&!Number.isNaN(Number(e)),gt=e=>!!e&&Number.isInteger(Number(e)),yi=e=>e.endsWith("%")&&ae(e.slice(0,-1)),St=e=>fx.test(e),kc=()=>!0,Tx=e=>px.test(e)&&!gx.test(e),Ua=()=>!1,kx=e=>bx.test(e),xx=e=>Ex.test(e),yx=e=>!K(e)&&!Q(e),Ax=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Cx=e=>Ht(e,Ac,Ua),K=e=>Ec.test(e),$t=e=>Ht(e,Cc,Tx),Eo=e=>Ht(e,Rx,ae),_x=e=>Ht(e,Sc,kc),Sx=e=>Ht(e,_c,Ua),To=e=>Ht(e,xc,Ua),wx=e=>Ht(e,yc,xx),gr=e=>Ht(e,wc,kx),Q=e=>Tc.test(e),Pn=e=>sn(e,Cc),Ix=e=>sn(e,_c),ko=e=>sn(e,xc),Nx=e=>sn(e,Ac),vx=e=>sn(e,yc),br=e=>sn(e,wc,!0),Lx=e=>sn(e,Sc,!0),Ht=(e,t,n)=>{const r=Ec.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},sn=(e,t,n=!1)=>{const r=Tc.exec(e);return r?r[1]?t(r[1]):n:!1},xc=e=>e==="position"||e==="percentage",yc=e=>e==="image"||e==="url",Ac=e=>e==="length"||e==="size"||e==="bg-size",Cc=e=>e==="length",Rx=e=>e==="number",_c=e=>e==="family-name",Sc=e=>e==="number"||e==="weight",wc=e=>e==="shadow",Px=()=>{const e=Me("color"),t=Me("font"),n=Me("text"),r=Me("font-weight"),i=Me("tracking"),a=Me("leading"),s=Me("breakpoint"),o=Me("container"),l=Me("spacing"),u=Me("radius"),d=Me("shadow"),h=Me("inset-shadow"),p=Me("text-shadow"),f=Me("drop-shadow"),g=Me("blur"),y=Me("perspective"),S=Me("aspect"),x=Me("ease"),_=Me("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],D=()=>[...L(),Q,K],I=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],R=()=>[Q,K,l],z=()=>[Rt,"full","auto",...R()],N=()=>[gt,"none","subgrid",Q,K],O=()=>["auto",{span:["full",gt,Q,K]},gt,Q,K],j=()=>[gt,"auto",Q,K],W=()=>["auto","min","max","fr",Q,K],q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],F=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...R()],$=()=>[Rt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],ne=()=>[Rt,"screen","full","dvw","lvw","svw","min","max","fit",...R()],ue=()=>[Rt,"screen","full","lh","dvh","lvh","svh","min","max","fit",...R()],T=()=>[e,Q,K],Ee=()=>[...L(),ko,To,{position:[Q,K]}],he=()=>["no-repeat",{repeat:["","x","y","space","round"]}],w=()=>["auto","cover","contain",Nx,Cx,{size:[Q,K]}],ke=()=>[yi,Pn,$t],Z=()=>["","none","full",u,Q,K],J=()=>["",ae,Pn,$t],xe=()=>["solid","dashed","dotted","double"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[ae,yi,ko,To],ve=()=>["","none",g,Q,K],Ce=()=>["none",ae,Q,K],Ye=()=>["none",ae,Q,K],ot=()=>[ae,Q,K],Ze=()=>[Rt,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[St],breakpoint:[St],color:[kc],container:[St],"drop-shadow":[St],ease:["in","out","in-out"],font:[yx],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[St],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[St],shadow:[St],spacing:["px",ae],text:[St],"text-shadow":[St],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Rt,K,Q,S]}],container:["container"],"container-type":[{"@container":["","normal","size",Q,K]}],"container-named":[Ax],columns:[{columns:[ae,K,Q,o]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:D()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[gt,"auto",Q,K]}],basis:[{basis:[Rt,"full","auto",o,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ae,Rt,"auto","initial","none",K]}],grow:[{grow:["",ae,Q,K]}],shrink:[{shrink:["",ae,Q,K]}],order:[{order:[gt,"first","last","none",Q,K]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...q(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...q()]}],"align-items":[{items:[...F(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...F(),{baseline:["","last"]}]}],"place-content":[{"place-content":q()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pbs:[{pbs:R()}],pbe:[{pbe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mbs:[{mbs:G()}],mbe:[{mbe:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],"inline-size":[{inline:["auto",...ne()]}],"min-inline-size":[{"min-inline":["auto",...ne()]}],"max-inline-size":[{"max-inline":["none",...ne()]}],"block-size":[{block:["auto",...ue()]}],"min-block-size":[{"min-block":["auto",...ue()]}],"max-block-size":[{"max-block":["none",...ue()]}],w:[{w:[o,"screen",...$()]}],"min-w":[{"min-w":[o,"screen","none",...$()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[s]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",n,Pn,$t]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Lx,_x]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",yi,K]}],"font-family":[{font:[Ix,Sx,t]}],"font-features":[{"font-features":[K]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,Q,K]}],"line-clamp":[{"line-clamp":[ae,"none",Q,Eo]}],leading:[{leading:[a,...R()]}],"list-image":[{"list-image":["none",Q,K]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Q,K]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...xe(),"wavy"]}],"text-decoration-thickness":[{decoration:[ae,"from-font","auto",Q,$t]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[ae,"auto",Q,K]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"tab-size":[{tab:[gt,Q,K]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q,K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Q,K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ee()}],"bg-repeat":[{bg:he()}],"bg-size":[{bg:w()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},gt,Q,K],radial:["",Q,K],conic:[gt,Q,K]},vx,wx]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:ke()}],"gradient-via-pos":[{via:ke()}],"gradient-to-pos":[{to:ke()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:Z()}],"rounded-s":[{"rounded-s":Z()}],"rounded-e":[{"rounded-e":Z()}],"rounded-t":[{"rounded-t":Z()}],"rounded-r":[{"rounded-r":Z()}],"rounded-b":[{"rounded-b":Z()}],"rounded-l":[{"rounded-l":Z()}],"rounded-ss":[{"rounded-ss":Z()}],"rounded-se":[{"rounded-se":Z()}],"rounded-ee":[{"rounded-ee":Z()}],"rounded-es":[{"rounded-es":Z()}],"rounded-tl":[{"rounded-tl":Z()}],"rounded-tr":[{"rounded-tr":Z()}],"rounded-br":[{"rounded-br":Z()}],"rounded-bl":[{"rounded-bl":Z()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-bs":[{"border-bs":J()}],"border-w-be":[{"border-be":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...xe(),"hidden","none"]}],"divide-style":[{divide:[...xe(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...xe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ae,Q,K]}],"outline-w":[{outline:["",ae,Pn,$t]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",d,br,gr]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",h,br,gr]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[ae,$t]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",p,br,gr]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[ae,Q,K]}],"mix-blend":[{"mix-blend":[...ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ae]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[Q,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":L()}],"mask-image-conic-pos":[{"mask-conic":[ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ee()}],"mask-repeat":[{mask:he()}],"mask-size":[{mask:w()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Q,K]}],filter:[{filter:["","none",Q,K]}],blur:[{blur:ve()}],brightness:[{brightness:[ae,Q,K]}],contrast:[{contrast:[ae,Q,K]}],"drop-shadow":[{"drop-shadow":["","none",f,br,gr]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",ae,Q,K]}],"hue-rotate":[{"hue-rotate":[ae,Q,K]}],invert:[{invert:["",ae,Q,K]}],saturate:[{saturate:[ae,Q,K]}],sepia:[{sepia:["",ae,Q,K]}],"backdrop-filter":[{"backdrop-filter":["","none",Q,K]}],"backdrop-blur":[{"backdrop-blur":ve()}],"backdrop-brightness":[{"backdrop-brightness":[ae,Q,K]}],"backdrop-contrast":[{"backdrop-contrast":[ae,Q,K]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ae,Q,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ae,Q,K]}],"backdrop-invert":[{"backdrop-invert":["",ae,Q,K]}],"backdrop-opacity":[{"backdrop-opacity":[ae,Q,K]}],"backdrop-saturate":[{"backdrop-saturate":[ae,Q,K]}],"backdrop-sepia":[{"backdrop-sepia":["",ae,Q,K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Q,K]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ae,"initial",Q,K]}],ease:[{ease:["linear","initial",x,Q,K]}],delay:[{delay:[ae,Q,K]}],animate:[{animate:["none",_,Q,K]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,Q,K]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:Ce()}],"rotate-x":[{"rotate-x":Ce()}],"rotate-y":[{"rotate-y":Ce()}],"rotate-z":[{"rotate-z":Ce()}],scale:[{scale:Ye()}],"scale-x":[{"scale-x":Ye()}],"scale-y":[{"scale-y":Ye()}],"scale-z":[{"scale-z":Ye()}],"scale-3d":["scale-3d"],skew:[{skew:ot()}],"skew-x":[{"skew-x":ot()}],"skew-y":[{"skew-y":ot()}],transform:[{transform:[Q,K,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ze()}],"translate-x":[{"translate-x":Ze()}],"translate-y":[{"translate-y":Ze()}],"translate-z":[{"translate-z":Ze()}],"translate-none":["translate-none"],zoom:[{zoom:[gt,Q,K]}],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Q,K]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mbs":[{"scroll-mbs":R()}],"scroll-mbe":[{"scroll-mbe":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pbs":[{"scroll-pbs":R()}],"scroll-pbe":[{"scroll-pbe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Q,K]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[ae,Pn,$t,Eo]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ic=dx(Px),Dx=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Mx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ox={};function xo(e,t){return(Ox.jsx?Mx:Dx).test(e)}const Fx=/[ \t\n\f\r]/g;function Bx(e){return typeof e=="object"?e.type==="text"?yo(e.value):!1:yo(e)}function yo(e){return e.replace(Fx,"")===""}var cn={},Ai,Ao;function zx(){if(Ao)return Ai;Ao=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
|
|
143
|
-
`,u="/",d="*",h="",p="comment",f="declaration";function g(S,x){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];x=x||{};var _=1,A=1;function L(q){var F=q.match(t);F&&(_+=F.length);var G=q.lastIndexOf(l);A=~G?q.length-G:A+q.length}function D(){var q={line:_,column:A};return function(F){return F.position=new I(q),z(),F}}function I(q){this.start=q,this.end={line:_,column:A},this.source=x.source}I.prototype.content=S;function P(q){var F=new Error(x.source+":"+_+":"+A+": "+q);if(F.reason=q,F.filename=x.source,F.line=_,F.column=A,F.source=S,!x.silent)throw F}function R(q){var F=q.exec(S);if(F){var G=F[0];return L(G),S=S.slice(G.length),F}}function z(){R(n)}function N(q){var F;for(q=q||[];F=O();)F!==!1&&q.push(F);return q}function O(){var q=D();if(!(u!=S.charAt(0)||d!=S.charAt(1))){for(var F=2;h!=S.charAt(F)&&(d!=S.charAt(F)||u!=S.charAt(F+1));)++F;if(F+=2,h===S.charAt(F-1))return P("End of comment missing");var G=S.slice(2,F-2);return A+=2,L(G),S=S.slice(F),A+=2,q({type:p,comment:G})}}function j(){var q=D(),F=R(r);if(F){if(O(),!R(i))return P("property missing ':'");var G=R(a),$=q({type:f,property:y(F[0].replace(e,h)),value:G?y(G[0].replace(e,h)):h});return R(s),$}}function W(){var q=[];N(q);for(var F;F=j();)F!==!1&&(q.push(F),N(q));return q}return z(),W()}function y(S){return S?S.replace(o,h):h}return Ai=g,Ai}var Co;function jx(){if(Co)return cn;Co=1;var e=cn&&cn.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(cn,"__esModule",{value:!0}),cn.default=n;const t=e(zx());function n(r,i){let a=null;if(!r||typeof r!="string")return a;const s=(0,t.default)(r),o=typeof i=="function";return s.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:d}=l;o?i(u,d,l):d&&(a=a||{},a[u]=d)}),a}return cn}var Dn={},_o;function Hx(){if(_o)return Dn;_o=1,Object.defineProperty(Dn,"__esModule",{value:!0}),Dn.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,a=function(u){return!u||n.test(u)||e.test(u)},s=function(u,d){return d.toUpperCase()},o=function(u,d){return"".concat(d,"-")},l=function(u,d){return d===void 0&&(d={}),a(u)?u:(u=u.toLowerCase(),d.reactCompat?u=u.replace(i,o):u=u.replace(r,o),u.replace(t,s))};return Dn.camelCase=l,Dn}var Mn,So;function Ux(){if(So)return Mn;So=1;var e=Mn&&Mn.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(jx()),n=Hx();function r(i,a){var s={};return!i||typeof i!="string"||(0,t.default)(i,function(o,l){o&&l&&(s[(0,n.camelCase)(o,a)]=l)}),s}return r.default=r,Mn=r,Mn}var qx=Ux();const Vx=pa(qx);function Qn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?wo(e.position):"start"in e||"end"in e?wo(e):"line"in e||"column"in e?Xi(e):""}function Xi(e){return Io(e&&e.line)+":"+Io(e&&e.column)}function wo(e){return Xi(e&&e.start)+"-"+Xi(e&&e.end)}function Io(e){return e&&typeof e=="number"?e:1}class He extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=Qn(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}He.prototype.file="";He.prototype.name="";He.prototype.reason="";He.prototype.message="";He.prototype.stack="";He.prototype.column=void 0;He.prototype.line=void 0;He.prototype.ancestors=void 0;He.prototype.cause=void 0;He.prototype.fatal=void 0;He.prototype.place=void 0;He.prototype.ruleId=void 0;He.prototype.source=void 0;const qa={}.hasOwnProperty,$x=new Map,Yx=/[A-Z]/g,Gx=new Set(["table","tbody","thead","tfoot","tr"]),Wx=new Set(["td","th"]),Nc="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Kx(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ry(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=ny(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?zt:ir,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=vc(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function vc(e,t,n){if(t.type==="element")return Qx(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Xx(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Jx(e,t,n);if(t.type==="mdxjsEsm")return Zx(e,t);if(t.type==="root")return ey(e,t,n);if(t.type==="text")return ty(e,t)}function Qx(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=zt,e.schema=i),e.ancestors.push(t);const a=Rc(e,t.tagName,!1),s=iy(e,t);let o=$a(e,t);return Gx.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!Bx(l):!0})),Lc(e,s,a,t),Va(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function Xx(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}tr(e,t.position)}function Zx(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);tr(e,t.position)}function Jx(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=zt,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:Rc(e,t.name,!0),s=ay(e,t),o=$a(e,t);return Lc(e,s,a,t),Va(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function ey(e,t,n){const r={};return Va(r,$a(e,t)),e.create(t,e.Fragment,r,n)}function ty(e,t){return t.value}function Lc(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Va(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function ny(e,t,n){return r;function r(i,a,s,o){const u=Array.isArray(s.children)?n:t;return o?u(a,s,o):u(a,s)}}function ry(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),l=xt(r);return t(i,a,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function iy(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&qa.call(t.properties,i)){const a=sy(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&Wx.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function ay(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else tr(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else tr(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function $a(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:$x;for(;++r<t.children.length;){const a=t.children[r];let s;if(e.passKeys){const l=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(l){const u=i.get(l)||0;s=l+"-"+u,i.set(l,u+1)}}const o=vc(e,a,s);o!==void 0&&n.push(o)}return n}function sy(e,t,n){const r=Gr(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Pl(n):Dl(n)),r.property==="style"){let i=typeof n=="object"?n:oy(e,String(n));return e.stylePropertyNameCase==="css"&&(i=ly(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?yf[r.property]||r.property:r.attribute,n]}}function oy(e,t){try{return Vx(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new He("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Nc+"#cannot-parse-style-attribute",i}}function Rc(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let a=-1,s;for(;++a<i.length;){const o=xo(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(a&&o.type==="Literal"),optional:!1}:o}r=s}else r=xo(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return qa.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);tr(e)}function tr(e,t){const n=new He("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Nc+"#cannot-handle-mdx-estrees-without-createevaluater",n}function ly(e){const t={};let n;for(n in e)qa.call(e,n)&&(t[uy(n)]=e[n]);return t}function uy(e){let t=e.replace(Yx,cy);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function cy(e){return"-"+e.toLowerCase()}const Ci={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},dy={tokenize:hy};function hy(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ge(e,t,"linePrefix")}function i(o){return e.enter("paragraph"),a(o)}function a(o){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return ee(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),s)}}const my={tokenize:fy},No={tokenize:py};function fy(e){const t=this,n=[];let r=0,i,a,s;return o;function o(A){if(r<n.length){const L=n[r];return t.containerState=L[1],e.attempt(L[0].continuation,l,u)(A)}return u(A)}function l(A){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&_();const L=t.events.length;let D=L,I;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){I=t.events[D][1].end;break}x(r);let P=L;for(;P<t.events.length;)t.events[P][1].end={...I},P++;return tt(t.events,D+1,0,t.events.slice(L)),t.events.length=P,u(A)}return o(A)}function u(A){if(r===n.length){if(!i)return p(A);if(i.currentConstruct&&i.currentConstruct.concrete)return g(A);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(No,d,h)(A)}function d(A){return i&&_(),x(r),p(A)}function h(A){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,g(A)}function p(A){return t.containerState={},e.attempt(No,f,g)(A)}function f(A){return r++,n.push([t.currentConstruct,t.containerState]),p(A)}function g(A){if(A===null){i&&_(),x(0),e.consume(A);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),y(A)}function y(A){if(A===null){S(e.exit("chunkFlow"),!0),x(0),e.consume(A);return}return ee(A)?(e.consume(A),S(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(A),y)}function S(A,L){const D=t.sliceStream(A);if(L&&D.push(null),A.previous=a,a&&(a.next=A),a=A,i.defineSkip(A.start),i.write(D),t.parser.lazy[A.start.line]){let I=i.events.length;for(;I--;)if(i.events[I][1].start.offset<s&&(!i.events[I][1].end||i.events[I][1].end.offset>s))return;const P=t.events.length;let R=P,z,N;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(z){N=t.events[R][1].end;break}z=!0}for(x(r),I=P;I<t.events.length;)t.events[I][1].end={...N},I++;tt(t.events,R+1,0,t.events.slice(P)),t.events.length=I}}function x(A){let L=n.length;for(;L-- >A;){const D=n[L];t.containerState=D[1],D[0].exit.call(t,e)}n.length=A}function _(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function py(e,t,n){return ge(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const gy={tokenize:by};function by(e){const t=this,n=e.attempt(lr,r,e.attempt(this.parser.constructs.flowInitial,i,ge(e,e.attempt(this.parser.constructs.flow,i,e.attempt(cE,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Ey={resolveAll:Dc()},Ty=Pc("string"),ky=Pc("text");function Pc(e){return{resolveAll:Dc(e==="text"?xy:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(d){return u(d)?a(d):o(d)}function o(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return u(d)?(n.exit("data"),a(d)):(n.consume(d),l)}function u(d){if(d===null)return!0;const h=i[d];let p=-1;if(h)for(;++p<h.length;){const f=h[p];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function Dc(e){return t;function t(n,r){let i=-1,a;for(;++i<=n.length;)a===void 0?n[i]&&n[i][1].type==="data"&&(a=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==a+2&&(n[a][1].end=n[i-1][1].end,n.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(n,r):n}}function xy(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let a=i.length,s=-1,o=0,l;for(;a--;){const u=i[a];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(u===-2)l=!0,o++;else if(u!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const u={type:n===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?s:r.start._bufferIndex+s,_index:r.start._index+a,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const yy={42:Ke,43:Ke,45:Ke,48:Ke,49:Ke,50:Ke,51:Ke,52:Ke,53:Ke,54:Ke,55:Ke,56:Ke,57:Ke,62:Ku},Ay={91:pE},Cy={[-2]:Ti,[-1]:Ti,32:Ti},_y={35:xE,42:_r,45:[so,_r],60:_E,61:so,95:_r,96:io,126:io},Sy={38:Xu,92:Qu},wy={[-5]:ki,[-4]:ki,[-3]:ki,33:qE,38:Xu,42:Ki,60:[$1,RE],91:$E,92:[TE,Qu],93:Ba,95:Ki,96:iE},Iy={null:[Ki,Ey]},Ny={null:[42,95]},vy={null:[]},Ly=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Ny,contentInitial:Ay,disable:vy,document:yy,flow:_y,flowInitial:Cy,insideSpan:Iy,string:Sy,text:wy},Symbol.toStringTag,{value:"Module"}));function Ry(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},a=[];let s=[],o=[];const l={attempt:P(D),check:P(I),consume:_,enter:A,exit:L,interrupt:P(I,{interrupt:!0})},u={code:null,containerState:{},defineSkip:y,events:[],now:g,parser:e,previous:null,sliceSerialize:p,sliceStream:f,write:h};let d=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function h(O){return s=at(s,O),S(),s[s.length-1]!==null?[]:(R(t,0),u.events=ei(a,u.events,u),u.events)}function p(O,j){return Dy(f(O),j)}function f(O){return Py(s,O)}function g(){const{_bufferIndex:O,_index:j,line:W,column:q,offset:F}=r;return{_bufferIndex:O,_index:j,line:W,column:q,offset:F}}function y(O){i[O.line]=O.column,N()}function S(){let O;for(;r._index<s.length;){const j=s[r._index];if(typeof j=="string")for(O=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===O&&r._bufferIndex<j.length;)x(j.charCodeAt(r._bufferIndex));else x(j)}}function x(O){d=d(O)}function _(O){ee(O)?(r.line++,r.column=1,r.offset+=O===-3?2:1,N()):O!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=O}function A(O,j){const W=j||{};return W.type=O,W.start=g(),u.events.push(["enter",W,u]),o.push(W),W}function L(O){const j=o.pop();return j.end=g(),u.events.push(["exit",j,u]),j}function D(O,j){R(O,j.from)}function I(O,j){j.restore()}function P(O,j){return W;function W(q,F,G){let $,ne,ue,T;return Array.isArray(q)?he(q):"tokenize"in q?he([q]):Ee(q);function Ee(J){return xe;function xe(ye){const ce=ye!==null&&J[ye],ve=ye!==null&&J.null,Ce=[...Array.isArray(ce)?ce:ce?[ce]:[],...Array.isArray(ve)?ve:ve?[ve]:[]];return he(Ce)(ye)}}function he(J){return $=J,ne=0,J.length===0?G:w(J[ne])}function w(J){return xe;function xe(ye){return T=z(),ue=J,J.partial||(u.currentConstruct=J),J.name&&u.parser.constructs.disable.null.includes(J.name)?Z():J.tokenize.call(j?Object.assign(Object.create(u),j):u,l,ke,Z)(ye)}}function ke(J){return O(ue,T),F}function Z(J){return T.restore(),++ne<$.length?w($[ne]):G}}}function R(O,j){O.resolveAll&&!a.includes(O)&&a.push(O),O.resolve&&tt(u.events,j,u.events.length-j,O.resolve(u.events.slice(j),u)),O.resolveTo&&(u.events=O.resolveTo(u.events,u))}function z(){const O=g(),j=u.previous,W=u.currentConstruct,q=u.events.length,F=Array.from(o);return{from:q,restore:G};function G(){r=O,u.previous=j,u.currentConstruct=W,u.events.length=q,o=F,N()}}function N(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Py(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let s;if(n===i)s=[e[n].slice(r,a)];else{if(s=e.slice(n,i),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function Dy(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const a=e[n];let s;if(typeof a=="string")s=a;else switch(a){case-5:{s="\r";break}case-4:{s=`
|
|
140
|
+
$$`:`${e}$$`},Ik=e=>_k(e)%2===0?e:Sk(e),vk=e=>wk(e)%2===1?`${e}$`:e,Nk=(e,t,n)=>{if(e.substring(t+2).includes(")"))return null;let r=QT(e,t);if(r===-1||$e(e,r))return null;let a=r>0&&e[r-1]==="!",i=a?r-1:r,s=e.substring(0,i);if(a)return s;let o=e.substring(r+1,t);return n==="text-only"?`${s}${o}`:`${s}[${o}](streamdown:incomplete-link)`},fo=(e,t)=>{for(let n=0;n<t;n++)if(e[n]==="["&&!$e(e,n)){if(n>0&&e[n-1]==="!")continue;let r=ic(e,n);if(r===-1)return n;if(r+1<e.length&&e[r+1]==="("){let a=e.indexOf(")",r+2);a!==-1&&(n=a)}}return t},Lk=(e,t,n)=>{let r=t>0&&e[t-1]==="!",a=r?t-1:t;if(!e.substring(t+1).includes("]")){let i=e.substring(0,a);if(r)return i;if(n==="text-only"){let s=fo(e,t);return e.substring(0,s)+e.substring(s+1)}return`${e}](streamdown:incomplete-link)`}if(ic(e,t)===-1){let i=e.substring(0,a);if(r)return i;if(n==="text-only"){let s=fo(e,t);return e.substring(0,s)+e.substring(s+1)}return`${e}](streamdown:incomplete-link)`}return null},dc=(e,t="protocol")=>{let n=e.lastIndexOf("](");if(n!==-1&&!$e(e,n)){let r=Nk(e,n,t);if(r!==null)return r}for(let r=e.length-1;r>=0;r-=1)if(e[r]==="["&&!$e(e,r)){let a=Lk(e,r,t);if(a!==null)return a}return e},Rk=/^-{1,2}$/,Dk=/^[\s]*-{1,2}[\s]+$/,Pk=/^={1,2}$/,Ok=/^[\s]*={1,2}[\s]+$/,Mk=e=>{if(!e||typeof e!="string")return e;let t=e.lastIndexOf(`
|
|
141
|
+
`);if(t===-1)return e;let n=e.substring(t+1),r=e.substring(0,t),a=n.trim();if(Rk.test(a)&&!n.match(Dk)){let i=r.split(`
|
|
142
|
+
`).at(-1);if(i&&i.trim().length>0)return`${e}`}if(Pk.test(a)&&!n.match(Ok)){let i=r.split(`
|
|
143
|
+
`).at(-1);if(i&&i.trim().length>0)return`${e}`}return e},Fk=/([\p{L}\p{N}_])~(?!~)(?=[\p{L}\p{N}_])/gu,Bk=e=>!e||typeof e!="string"||!e.includes("~")?e:e.replace(Fk,(t,n,r)=>{let a=r+n.length;return $e(e,a)?t:`${n}\\~`}),zk=e=>{var t,n;let r=e.match(VT);if(r){let a=r[2];if(!a||an.test(a))return e;let i=e.lastIndexOf(r[1]);if($e(e,i)||Bt(e,i))return e;if(((t=e.match(ho))==null?void 0:t.length)%2===1)return`${e}~~`}else{let a=e.match(KT);if(a){let i=e.lastIndexOf(a[0].slice(0,2));if($e(e,i)||Bt(e,i))return e;if(((n=e.match(ho))==null?void 0:n.length)%2===1)return`${e}~`}}return e},xa=e=>e!==!1,jk=e=>e===!0,Ue={SINGLE_TILDE:0,COMPARISON_OPERATORS:5,HTML_TAGS:10,SETEXT_HEADINGS:15,LINKS:20,BOLD_ITALIC:30,BOLD:35,ITALIC_DOUBLE_UNDERSCORE:40,ITALIC_SINGLE_ASTERISK:41,ITALIC_SINGLE_UNDERSCORE:42,INLINE_CODE:50,STRIKETHROUGH:60,KATEX:70,INLINE_KATEX:75,DEFAULT:100},Hk=[{handler:{name:"singleTilde",handle:Bk,priority:Ue.SINGLE_TILDE},optionKey:"singleTilde"},{handler:{name:"comparisonOperators",handle:FT,priority:Ue.COMPARISON_OPERATORS},optionKey:"comparisonOperators"},{handler:{name:"htmlTags",handle:xk,priority:Ue.HTML_TAGS},optionKey:"htmlTags"},{handler:{name:"setextHeadings",handle:Mk,priority:Ue.SETEXT_HEADINGS},optionKey:"setextHeadings"},{handler:{name:"links",handle:dc,priority:Ue.LINKS},optionKey:"links",earlyReturn:e=>e.endsWith("](streamdown:incomplete-link)")},{handler:{name:"boldItalic",handle:Tk,priority:Ue.BOLD_ITALIC},optionKey:"boldItalic"},{handler:{name:"bold",handle:uk,priority:Ue.BOLD},optionKey:"bold"},{handler:{name:"italicDoubleUnderscore",handle:dk,priority:Ue.ITALIC_DOUBLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"italicSingleAsterisk",handle:mk,priority:Ue.ITALIC_SINGLE_ASTERISK},optionKey:"italic"},{handler:{name:"italicSingleUnderscore",handle:gk,priority:Ue.ITALIC_SINGLE_UNDERSCORE},optionKey:"italic"},{handler:{name:"inlineCode",handle:Ck,priority:Ue.INLINE_CODE},optionKey:"inlineCode"},{handler:{name:"strikethrough",handle:zk,priority:Ue.STRIKETHROUGH},optionKey:"strikethrough"},{handler:{name:"katex",handle:Ik,priority:Ue.KATEX},optionKey:"katex"},{handler:{name:"inlineKatex",handle:vk,priority:Ue.INLINE_KATEX},optionKey:"inlineKatex"}],Uk=e=>{var t;let n=(t=e?.linkMode)!=null?t:"protocol";return Hk.filter(({handler:r,optionKey:a})=>r.name==="links"?xa(e?.links)||xa(e?.images):r.name==="inlineKatex"?jk(e?.inlineKatex):xa(e?.[a])).map(({handler:r,earlyReturn:a})=>r.name==="links"?{handler:rc(nc({},r),{handle:i=>dc(i,n)}),earlyReturn:n==="protocol"?a:void 0}:{handler:r,earlyReturn:a})},qk=(e,t)=>{var n;if(!e||typeof e!="string")return e;let r=e.endsWith(" ")&&!e.endsWith(" ")?e.slice(0,-1):e,a=Uk(t),i=((n=t?.handlers)!=null?n:[]).map(o=>{var l;return{handler:rc(nc({},o),{priority:(l=o.priority)!=null?l:Ue.DEFAULT}),earlyReturn:void 0}}),s=[...a,...i].sort((o,l)=>{var u,d;return((u=o.handler.priority)!=null?u:0)-((d=l.handler.priority)!=null?d:0)});for(let{handler:o,earlyReturn:l}of s)if(r=o.handle(r),l!=null&&l(r))return r;return r},Vk=qk;function hc(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=hc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function mc(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=hc(e))&&(r&&(r+=" "),r+=t);return r}const $k=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},Yk=(e,t)=>({classGroupId:e,validator:t}),fc=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Or="-",po=[],Gk="arbitrary..",Wk=e=>{const t=Qk(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return Kk(s);const o=s.split(Or),l=o[0]===""&&o.length>1?1:0;return pc(o,l,t)},getConflictingClassGroupIds:(s,o)=>{if(o){const l=r[s],u=n[s];return l?u?$k(u,l):l:u||po}return n[s]||po}}},pc=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const a=e[t],i=n.nextPart.get(a);if(i){const u=pc(e,t+1,i);if(u)return u}const s=n.validators;if(s===null)return;const o=t===0?e.join(Or):e.slice(t).join(Or),l=s.length;for(let u=0;u<l;u++){const d=s[u];if(d.validator(o))return d.classGroupId}},Kk=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?Gk+r:void 0})(),Qk=e=>{const{theme:t,classGroups:n}=e;return Xk(n,t)},Xk=(e,t)=>{const n=fc();for(const r in e){const a=e[r];Hi(a,n,r,t)}return n},Hi=(e,t,n,r)=>{const a=e.length;for(let i=0;i<a;i++){const s=e[i];Zk(s,t,n,r)}},Zk=(e,t,n,r)=>{if(typeof e=="string"){Jk(e,t,n);return}if(typeof e=="function"){ex(e,t,n,r);return}tx(e,t,n,r)},Jk=(e,t,n)=>{const r=e===""?t:gc(t,e);r.classGroupId=n},ex=(e,t,n,r)=>{if(nx(e)){Hi(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Yk(n,e))},tx=(e,t,n,r)=>{const a=Object.entries(e),i=a.length;for(let s=0;s<i;s++){const[o,l]=a[s];Hi(l,gc(t,o),n,r)}},gc=(e,t)=>{let n=e;const r=t.split(Or),a=r.length;for(let i=0;i<a;i++){const s=r[i];let o=n.nextPart.get(s);o||(o=fc(),n.nextPart.set(s,o)),n=o}return n},nx=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,rx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const a=(i,s)=>{n[i]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(i){let s=n[i];if(s!==void 0)return s;if((s=r[i])!==void 0)return a(i,s),s},set(i,s){i in n?n[i]=s:a(i,s)}}},Qa="!",go=":",ax=[],bo=(e,t,n,r,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:a}),ix=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const i=[];let s=0,o=0,l=0,u;const d=a.length;for(let y=0;y<d;y++){const w=a[y];if(s===0&&o===0){if(w===go){i.push(a.slice(l,y)),l=y+1;continue}if(w==="/"){u=y;continue}}w==="["?s++:w==="]"?s--:w==="("?o++:w===")"&&o--}const h=i.length===0?a:a.slice(l);let p=h,f=!1;h.endsWith(Qa)?(p=h.slice(0,-1),f=!0):h.startsWith(Qa)&&(p=h.slice(1),f=!0);const g=u&&u>l?u-l:void 0;return bo(i,f,p,g)};if(t){const a=t+go,i=r;r=s=>s.startsWith(a)?i(s.slice(a.length)):bo(ax,!1,s,void 0,!0)}if(n){const a=r;r=i=>n({className:i,parseClassName:a})}return r},sx=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let a=[];for(let i=0;i<n.length;i++){const s=n[i],o=s[0]==="[",l=t.has(s);o||l?(a.length>0&&(a.sort(),r.push(...a),a=[]),r.push(s)):a.push(s)}return a.length>0&&(a.sort(),r.push(...a)),r}},ox=e=>({cache:rx(e.cacheSize),parseClassName:ix(e),sortModifiers:sx(e),postfixLookupClassGroupIds:lx(e),...Wk(e)}),lx=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)t[n[r]]=!0;return t},ux=/\s+/,cx=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:i,postfixLookupClassGroupIds:s}=t,o=[],l=e.trim().split(ux);let u="";for(let d=l.length-1;d>=0;d-=1){const h=l[d],{isExternal:p,modifiers:f,hasImportantModifier:g,baseClassName:y,maybePostfixModifierPosition:w}=n(h);if(p){u=h+(u.length>0?" "+u:u);continue}let x=!!w,_;if(x){const D=y.substring(0,w);_=r(D);const R=_&&s[_]?r(y):void 0;R&&R!==_&&(_=R,x=!1)}else _=r(y);if(!_){if(!x){u=h+(u.length>0?" "+u:u);continue}if(_=r(y),!_){u=h+(u.length>0?" "+u:u);continue}x=!1}const A=f.length===0?"":f.length===1?f[0]:i(f).join(":"),L=g?A+Qa:A,P=L+_;if(o.indexOf(P)>-1)continue;o.push(P);const I=a(_,x);for(let D=0;D<I.length;++D){const R=I[D];o.push(L+R)}u=h+(u.length>0?" "+u:u)}return u},dx=(...e)=>{let t=0,n,r,a="";for(;t<e.length;)(n=e[t++])&&(r=bc(n))&&(a&&(a+=" "),a+=r);return a},bc=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=bc(e[r]))&&(n&&(n+=" "),n+=t);return n},hx=(e,...t)=>{let n,r,a,i;const s=l=>{const u=t.reduce((d,h)=>h(d),e());return n=ox(u),r=n.cache.get,a=n.cache.set,i=o,o(l)},o=l=>{const u=r(l);if(u)return u;const d=cx(l,n);return a(l,d),d};return i=s,(...l)=>i(dx(...l))},mx=[],Oe=e=>{const t=n=>n[e]||mx;return t.isThemeGetter=!0,t},Ec=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Tc=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fx=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,px=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gx=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ex=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Tx=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Rt=e=>fx.test(e),ie=e=>!!e&&!Number.isNaN(Number(e)),gt=e=>!!e&&Number.isInteger(Number(e)),ya=e=>e.endsWith("%")&&ie(e.slice(0,-1)),wt=e=>px.test(e),kc=()=>!0,kx=e=>gx.test(e)&&!bx.test(e),Ui=()=>!1,xx=e=>Ex.test(e),yx=e=>Tx.test(e),Ax=e=>!K(e)&&!Q(e),Cx=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),_x=e=>Ht(e,Ac,Ui),K=e=>Ec.test(e),$t=e=>Ht(e,Cc,kx),Eo=e=>Ht(e,Dx,ie),wx=e=>Ht(e,wc,kc),Sx=e=>Ht(e,_c,Ui),To=e=>Ht(e,xc,Ui),Ix=e=>Ht(e,yc,yx),gr=e=>Ht(e,Sc,xx),Q=e=>Tc.test(e),Dn=e=>sn(e,Cc),vx=e=>sn(e,_c),ko=e=>sn(e,xc),Nx=e=>sn(e,Ac),Lx=e=>sn(e,yc),br=e=>sn(e,Sc,!0),Rx=e=>sn(e,wc,!0),Ht=(e,t,n)=>{const r=Ec.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},sn=(e,t,n=!1)=>{const r=Tc.exec(e);return r?r[1]?t(r[1]):n:!1},xc=e=>e==="position"||e==="percentage",yc=e=>e==="image"||e==="url",Ac=e=>e==="length"||e==="size"||e==="bg-size",Cc=e=>e==="length",Dx=e=>e==="number",_c=e=>e==="family-name",wc=e=>e==="number"||e==="weight",Sc=e=>e==="shadow",Px=()=>{const e=Oe("color"),t=Oe("font"),n=Oe("text"),r=Oe("font-weight"),a=Oe("tracking"),i=Oe("leading"),s=Oe("breakpoint"),o=Oe("container"),l=Oe("spacing"),u=Oe("radius"),d=Oe("shadow"),h=Oe("inset-shadow"),p=Oe("text-shadow"),f=Oe("drop-shadow"),g=Oe("blur"),y=Oe("perspective"),w=Oe("aspect"),x=Oe("ease"),_=Oe("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...L(),Q,K],I=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],R=()=>[Q,K,l],z=()=>[Rt,"full","auto",...R()],v=()=>[gt,"none","subgrid",Q,K],M=()=>["auto",{span:["full",gt,Q,K]},gt,Q,K],j=()=>[gt,"auto",Q,K],W=()=>["auto","min","max","fr",Q,K],q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],F=()=>["start","end","center","stretch","center-safe","end-safe"],G=()=>["auto",...R()],$=()=>[Rt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...R()],ne=()=>[Rt,"screen","full","dvw","lvw","svw","min","max","fit",...R()],ue=()=>[Rt,"screen","full","lh","dvh","lvh","svh","min","max","fit",...R()],T=()=>[e,Q,K],Ee=()=>[...L(),ko,To,{position:[Q,K]}],he=()=>["no-repeat",{repeat:["","x","y","space","round"]}],S=()=>["auto","cover","contain",Nx,_x,{size:[Q,K]}],ke=()=>[ya,Dn,$t],Z=()=>["","none","full",u,Q,K],J=()=>["",ie,Dn,$t],xe=()=>["solid","dashed","dotted","double"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[ie,ya,ko,To],Ne=()=>["","none",g,Q,K],Ce=()=>["none",ie,Q,K],Ye=()=>["none",ie,Q,K],ot=()=>[ie,Q,K],Ze=()=>[Rt,"full",...R()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[wt],breakpoint:[wt],color:[kc],container:[wt],"drop-shadow":[wt],ease:["in","out","in-out"],font:[Ax],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[wt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[wt],shadow:[wt],spacing:["px",ie],text:[wt],"text-shadow":[wt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Rt,K,Q,w]}],container:["container"],"container-type":[{"@container":["","normal","size",Q,K]}],"container-named":[Cx],columns:[{columns:[ie,K,Q,o]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[gt,"auto",Q,K]}],basis:[{basis:[Rt,"full","auto",o,...R()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ie,Rt,"auto","initial","none",K]}],grow:[{grow:["",ie,Q,K]}],shrink:[{shrink:["",ie,Q,K]}],order:[{order:[gt,"first","last","none",Q,K]}],"grid-cols":[{"grid-cols":v()}],"col-start-end":[{col:M()}],"col-start":[{"col-start":j()}],"col-end":[{"col-end":j()}],"grid-rows":[{"grid-rows":v()}],"row-start-end":[{row:M()}],"row-start":[{"row-start":j()}],"row-end":[{"row-end":j()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],gap:[{gap:R()}],"gap-x":[{"gap-x":R()}],"gap-y":[{"gap-y":R()}],"justify-content":[{justify:[...q(),"normal"]}],"justify-items":[{"justify-items":[...F(),"normal"]}],"justify-self":[{"justify-self":["auto",...F()]}],"align-content":[{content:["normal",...q()]}],"align-items":[{items:[...F(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...F(),{baseline:["","last"]}]}],"place-content":[{"place-content":q()}],"place-items":[{"place-items":[...F(),"baseline"]}],"place-self":[{"place-self":["auto",...F()]}],p:[{p:R()}],px:[{px:R()}],py:[{py:R()}],ps:[{ps:R()}],pe:[{pe:R()}],pbs:[{pbs:R()}],pbe:[{pbe:R()}],pt:[{pt:R()}],pr:[{pr:R()}],pb:[{pb:R()}],pl:[{pl:R()}],m:[{m:G()}],mx:[{mx:G()}],my:[{my:G()}],ms:[{ms:G()}],me:[{me:G()}],mbs:[{mbs:G()}],mbe:[{mbe:G()}],mt:[{mt:G()}],mr:[{mr:G()}],mb:[{mb:G()}],ml:[{ml:G()}],"space-x":[{"space-x":R()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":R()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],"inline-size":[{inline:["auto",...ne()]}],"min-inline-size":[{"min-inline":["auto",...ne()]}],"max-inline-size":[{"max-inline":["none",...ne()]}],"block-size":[{block:["auto",...ue()]}],"min-block-size":[{"min-block":["auto",...ue()]}],"max-block-size":[{"max-block":["none",...ue()]}],w:[{w:[o,"screen",...$()]}],"min-w":[{"min-w":[o,"screen","none",...$()]}],"max-w":[{"max-w":[o,"screen","none","prose",{screen:[s]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",n,Dn,$t]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Rx,wx]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ya,K]}],"font-family":[{font:[vx,Sx,t]}],"font-features":[{"font-features":[K]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[a,Q,K]}],"line-clamp":[{"line-clamp":[ie,"none",Q,Eo]}],leading:[{leading:[i,...R()]}],"list-image":[{"list-image":["none",Q,K]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Q,K]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...xe(),"wavy"]}],"text-decoration-thickness":[{decoration:[ie,"from-font","auto",Q,$t]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[ie,"auto",Q,K]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:R()}],"tab-size":[{tab:[gt,Q,K]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q,K]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Q,K]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Ee()}],"bg-repeat":[{bg:he()}],"bg-size":[{bg:S()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},gt,Q,K],radial:["",Q,K],conic:[gt,Q,K]},Lx,Ix]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:ke()}],"gradient-via-pos":[{via:ke()}],"gradient-to-pos":[{to:ke()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:Z()}],"rounded-s":[{"rounded-s":Z()}],"rounded-e":[{"rounded-e":Z()}],"rounded-t":[{"rounded-t":Z()}],"rounded-r":[{"rounded-r":Z()}],"rounded-b":[{"rounded-b":Z()}],"rounded-l":[{"rounded-l":Z()}],"rounded-ss":[{"rounded-ss":Z()}],"rounded-se":[{"rounded-se":Z()}],"rounded-ee":[{"rounded-ee":Z()}],"rounded-es":[{"rounded-es":Z()}],"rounded-tl":[{"rounded-tl":Z()}],"rounded-tr":[{"rounded-tr":Z()}],"rounded-br":[{"rounded-br":Z()}],"rounded-bl":[{"rounded-bl":Z()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-bs":[{"border-bs":J()}],"border-w-be":[{"border-be":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...xe(),"hidden","none"]}],"divide-style":[{divide:[...xe(),"hidden","none"]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[...xe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ie,Q,K]}],"outline-w":[{outline:["",ie,Dn,$t]}],"outline-color":[{outline:T()}],shadow:[{shadow:["","none",d,br,gr]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":["none",h,br,gr]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[ie,$t]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":["none",p,br,gr]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[ie,Q,K]}],"mix-blend":[{"mix-blend":[...ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ie]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[Q,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":L()}],"mask-image-conic-pos":[{"mask-conic":[ie]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Ee()}],"mask-repeat":[{mask:he()}],"mask-size":[{mask:S()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Q,K]}],filter:[{filter:["","none",Q,K]}],blur:[{blur:Ne()}],brightness:[{brightness:[ie,Q,K]}],contrast:[{contrast:[ie,Q,K]}],"drop-shadow":[{"drop-shadow":["","none",f,br,gr]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:["",ie,Q,K]}],"hue-rotate":[{"hue-rotate":[ie,Q,K]}],invert:[{invert:["",ie,Q,K]}],saturate:[{saturate:[ie,Q,K]}],sepia:[{sepia:["",ie,Q,K]}],"backdrop-filter":[{"backdrop-filter":["","none",Q,K]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[ie,Q,K]}],"backdrop-contrast":[{"backdrop-contrast":[ie,Q,K]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ie,Q,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ie,Q,K]}],"backdrop-invert":[{"backdrop-invert":["",ie,Q,K]}],"backdrop-opacity":[{"backdrop-opacity":[ie,Q,K]}],"backdrop-saturate":[{"backdrop-saturate":[ie,Q,K]}],"backdrop-sepia":[{"backdrop-sepia":["",ie,Q,K]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":R()}],"border-spacing-x":[{"border-spacing-x":R()}],"border-spacing-y":[{"border-spacing-y":R()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Q,K]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ie,"initial",Q,K]}],ease:[{ease:["linear","initial",x,Q,K]}],delay:[{delay:[ie,Q,K]}],animate:[{animate:["none",_,Q,K]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,Q,K]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:Ce()}],"rotate-x":[{"rotate-x":Ce()}],"rotate-y":[{"rotate-y":Ce()}],"rotate-z":[{"rotate-z":Ce()}],scale:[{scale:Ye()}],"scale-x":[{"scale-x":Ye()}],"scale-y":[{"scale-y":Ye()}],"scale-z":[{"scale-z":Ye()}],"scale-3d":["scale-3d"],skew:[{skew:ot()}],"skew-x":[{"skew-x":ot()}],"skew-y":[{"skew-y":ot()}],transform:[{transform:[Q,K,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ze()}],"translate-x":[{"translate-x":Ze()}],"translate-y":[{"translate-y":Ze()}],"translate-z":[{"translate-z":Ze()}],"translate-none":["translate-none"],zoom:[{zoom:[gt,Q,K]}],accent:[{accent:T()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Q,K]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":R()}],"scroll-mx":[{"scroll-mx":R()}],"scroll-my":[{"scroll-my":R()}],"scroll-ms":[{"scroll-ms":R()}],"scroll-me":[{"scroll-me":R()}],"scroll-mbs":[{"scroll-mbs":R()}],"scroll-mbe":[{"scroll-mbe":R()}],"scroll-mt":[{"scroll-mt":R()}],"scroll-mr":[{"scroll-mr":R()}],"scroll-mb":[{"scroll-mb":R()}],"scroll-ml":[{"scroll-ml":R()}],"scroll-p":[{"scroll-p":R()}],"scroll-px":[{"scroll-px":R()}],"scroll-py":[{"scroll-py":R()}],"scroll-ps":[{"scroll-ps":R()}],"scroll-pe":[{"scroll-pe":R()}],"scroll-pbs":[{"scroll-pbs":R()}],"scroll-pbe":[{"scroll-pbe":R()}],"scroll-pt":[{"scroll-pt":R()}],"scroll-pr":[{"scroll-pr":R()}],"scroll-pb":[{"scroll-pb":R()}],"scroll-pl":[{"scroll-pl":R()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Q,K]}],fill:[{fill:["none",...T()]}],"stroke-w":[{stroke:[ie,Dn,$t,Eo]}],stroke:[{stroke:["none",...T()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ic=hx(Px),Ox=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Mx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Fx={};function xo(e,t){return(Fx.jsx?Mx:Ox).test(e)}const Bx=/[ \t\n\f\r]/g;function zx(e){return typeof e=="object"?e.type==="text"?yo(e.value):!1:yo(e)}function yo(e){return e.replace(Bx,"")===""}var cn={},Aa,Ao;function jx(){if(Ao)return Aa;Ao=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
|
|
144
|
+
`,u="/",d="*",h="",p="comment",f="declaration";function g(w,x){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];x=x||{};var _=1,A=1;function L(q){var F=q.match(t);F&&(_+=F.length);var G=q.lastIndexOf(l);A=~G?q.length-G:A+q.length}function P(){var q={line:_,column:A};return function(F){return F.position=new I(q),z(),F}}function I(q){this.start=q,this.end={line:_,column:A},this.source=x.source}I.prototype.content=w;function D(q){var F=new Error(x.source+":"+_+":"+A+": "+q);if(F.reason=q,F.filename=x.source,F.line=_,F.column=A,F.source=w,!x.silent)throw F}function R(q){var F=q.exec(w);if(F){var G=F[0];return L(G),w=w.slice(G.length),F}}function z(){R(n)}function v(q){var F;for(q=q||[];F=M();)F!==!1&&q.push(F);return q}function M(){var q=P();if(!(u!=w.charAt(0)||d!=w.charAt(1))){for(var F=2;h!=w.charAt(F)&&(d!=w.charAt(F)||u!=w.charAt(F+1));)++F;if(F+=2,h===w.charAt(F-1))return D("End of comment missing");var G=w.slice(2,F-2);return A+=2,L(G),w=w.slice(F),A+=2,q({type:p,comment:G})}}function j(){var q=P(),F=R(r);if(F){if(M(),!R(a))return D("property missing ':'");var G=R(i),$=q({type:f,property:y(F[0].replace(e,h)),value:G?y(G[0].replace(e,h)):h});return R(s),$}}function W(){var q=[];v(q);for(var F;F=j();)F!==!1&&(q.push(F),v(q));return q}return z(),W()}function y(w){return w?w.replace(o,h):h}return Aa=g,Aa}var Co;function Hx(){if(Co)return cn;Co=1;var e=cn&&cn.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(cn,"__esModule",{value:!0}),cn.default=n;const t=e(jx());function n(r,a){let i=null;if(!r||typeof r!="string")return i;const s=(0,t.default)(r),o=typeof a=="function";return s.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:d}=l;o?a(u,d,l):d&&(i=i||{},i[u]=d)}),i}return cn}var Pn={},_o;function Ux(){if(_o)return Pn;_o=1,Object.defineProperty(Pn,"__esModule",{value:!0}),Pn.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(u){return!u||n.test(u)||e.test(u)},s=function(u,d){return d.toUpperCase()},o=function(u,d){return"".concat(d,"-")},l=function(u,d){return d===void 0&&(d={}),i(u)?u:(u=u.toLowerCase(),d.reactCompat?u=u.replace(a,o):u=u.replace(r,o),u.replace(t,s))};return Pn.camelCase=l,Pn}var On,wo;function qx(){if(wo)return On;wo=1;var e=On&&On.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(Hx()),n=Ux();function r(a,i){var s={};return!a||typeof a!="string"||(0,t.default)(a,function(o,l){o&&l&&(s[(0,n.camelCase)(o,i)]=l)}),s}return r.default=r,On=r,On}var Vx=qx();const $x=pi(Vx);function Qn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?So(e.position):"start"in e||"end"in e?So(e):"line"in e||"column"in e?Xa(e):""}function Xa(e){return Io(e&&e.line)+":"+Io(e&&e.column)}function So(e){return Xa(e&&e.start)+"-"+Xa(e&&e.end)}function Io(e){return e&&typeof e=="number"?e:1}class He extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},s=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(s=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=o?o.line:void 0,this.name=Qn(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}He.prototype.file="";He.prototype.name="";He.prototype.reason="";He.prototype.message="";He.prototype.stack="";He.prototype.column=void 0;He.prototype.line=void 0;He.prototype.ancestors=void 0;He.prototype.cause=void 0;He.prototype.fatal=void 0;He.prototype.place=void 0;He.prototype.ruleId=void 0;He.prototype.source=void 0;const qi={}.hasOwnProperty,Yx=new Map,Gx=/[A-Z]/g,Wx=new Set(["table","tbody","thead","tfoot","tr"]),Kx=new Set(["td","th"]),vc="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Qx(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ay(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=ry(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?zt:ar,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=Nc(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function Nc(e,t,n){if(t.type==="element")return Xx(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Zx(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return ey(e,t,n);if(t.type==="mdxjsEsm")return Jx(e,t);if(t.type==="root")return ty(e,t,n);if(t.type==="text")return ny(e,t)}function Xx(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=zt,e.schema=a),e.ancestors.push(t);const i=Rc(e,t.tagName,!1),s=iy(e,t);let o=$i(e,t);return Wx.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!zx(l):!0})),Lc(e,s,i,t),Vi(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function Zx(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}tr(e,t.position)}function Jx(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);tr(e,t.position)}function ey(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=zt,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:Rc(e,t.name,!0),s=sy(e,t),o=$i(e,t);return Lc(e,s,i,t),Vi(s,o),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function ty(e,t,n){const r={};return Vi(r,$i(e,t)),e.create(t,e.Fragment,r,n)}function ny(e,t){return t.value}function Lc(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Vi(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function ry(e,t,n){return r;function r(a,i,s,o){const u=Array.isArray(s.children)?n:t;return o?u(i,s,o):u(i,s)}}function ay(e,t){return n;function n(r,a,i,s){const o=Array.isArray(i.children),l=xt(r);return t(a,i,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function iy(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&qi.call(t.properties,a)){const i=oy(e,a,t.properties[a]);if(i){const[s,o]=i;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&Kx.has(t.tagName)?r=o:n[s]=o}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function sy(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const s=i.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else tr(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,i=e.evaluater.evaluateExpression(o.expression)}else tr(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function $i(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:Yx;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const u=a.get(l)||0;s=l+"-"+u,a.set(l,u+1)}}const o=Nc(e,i,s);o!==void 0&&n.push(o)}return n}function oy(e,t,n){const r=Gr(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Dl(n):Pl(n)),r.property==="style"){let a=typeof n=="object"?n:ly(e,String(n));return e.stylePropertyNameCase==="css"&&(a=uy(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?yf[r.property]||r.property:r.attribute,n]}}function ly(e,t){try{return $x(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new He("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=vc+"#cannot-parse-style-attribute",a}}function Rc(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,s;for(;++i<a.length;){const o=xo(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};s=s?{type:"MemberExpression",object:s,property:o,computed:!!(i&&o.type==="Literal"),optional:!1}:o}r=s}else r=xo(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return qi.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);tr(e)}function tr(e,t){const n=new He("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=vc+"#cannot-handle-mdx-estrees-without-createevaluater",n}function uy(e){const t={};let n;for(n in e)qi.call(e,n)&&(t[cy(n)]=e[n]);return t}function cy(e){let t=e.replace(Gx,dy);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function dy(e){return"-"+e.toLowerCase()}const Ca={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},hy={tokenize:my};function my(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ge(e,t,"linePrefix")}function a(o){return e.enter("paragraph"),i(o)}function i(o){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(o)}function s(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return ee(o)?(e.consume(o),e.exit("chunkText"),i):(e.consume(o),s)}}const fy={tokenize:py},vo={tokenize:gy};function py(e){const t=this,n=[];let r=0,a,i,s;return o;function o(A){if(r<n.length){const L=n[r];return t.containerState=L[1],e.attempt(L[0].continuation,l,u)(A)}return u(A)}function l(A){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&_();const L=t.events.length;let P=L,I;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){I=t.events[P][1].end;break}x(r);let D=L;for(;D<t.events.length;)t.events[D][1].end={...I},D++;return tt(t.events,P+1,0,t.events.slice(L)),t.events.length=D,u(A)}return o(A)}function u(A){if(r===n.length){if(!a)return p(A);if(a.currentConstruct&&a.currentConstruct.concrete)return g(A);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(vo,d,h)(A)}function d(A){return a&&_(),x(r),p(A)}function h(A){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,g(A)}function p(A){return t.containerState={},e.attempt(vo,f,g)(A)}function f(A){return r++,n.push([t.currentConstruct,t.containerState]),p(A)}function g(A){if(A===null){a&&_(),x(0),e.consume(A);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),y(A)}function y(A){if(A===null){w(e.exit("chunkFlow"),!0),x(0),e.consume(A);return}return ee(A)?(e.consume(A),w(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(A),y)}function w(A,L){const P=t.sliceStream(A);if(L&&P.push(null),A.previous=i,i&&(i.next=A),i=A,a.defineSkip(A.start),a.write(P),t.parser.lazy[A.start.line]){let I=a.events.length;for(;I--;)if(a.events[I][1].start.offset<s&&(!a.events[I][1].end||a.events[I][1].end.offset>s))return;const D=t.events.length;let R=D,z,v;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(z){v=t.events[R][1].end;break}z=!0}for(x(r),I=D;I<t.events.length;)t.events[I][1].end={...v},I++;tt(t.events,R+1,0,t.events.slice(D)),t.events.length=I}}function x(A){let L=n.length;for(;L-- >A;){const P=n[L];t.containerState=P[1],P[0].exit.call(t,e)}n.length=A}function _(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function gy(e,t,n){return ge(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const by={tokenize:Ey};function Ey(e){const t=this,n=e.attempt(lr,r,e.attempt(this.parser.constructs.flowInitial,a,ge(e,e.attempt(this.parser.constructs.flow,a,e.attempt(dE,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Ty={resolveAll:Pc()},ky=Dc("string"),xy=Dc("text");function Dc(e){return{resolveAll:Pc(e==="text"?yy:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,s,o);return s;function s(d){return u(d)?i(d):o(d)}function o(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return u(d)?(n.exit("data"),i(d)):(n.consume(d),l)}function u(d){if(d===null)return!0;const h=a[d];let p=-1;if(h)for(;++p<h.length;){const f=h[p];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function Pc(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function yy(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let i=a.length,s=-1,o=0,l;for(;i--;){const u=a[i];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)o++,s--;if(s)break;s=-1}else if(u===-2)l=!0,o++;else if(u!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(o=0),o){const u={type:n===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const Ay={42:Ke,43:Ke,45:Ke,48:Ke,49:Ke,50:Ke,51:Ke,52:Ke,53:Ke,54:Ke,55:Ke,56:Ke,57:Ke,62:Ku},Cy={91:gE},_y={[-2]:Ta,[-1]:Ta,32:Ta},wy={35:yE,42:_r,45:[so,_r],60:wE,61:so,95:_r,96:ao,126:ao},Sy={38:Xu,92:Qu},Iy={[-5]:ka,[-4]:ka,[-3]:ka,33:VE,38:Xu,42:Ka,60:[Y1,DE],91:YE,92:[kE,Qu],93:Bi,95:Ka,96:iE},vy={null:[Ka,Ty]},Ny={null:[42,95]},Ly={null:[]},Ry=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Ny,contentInitial:Cy,disable:Ly,document:Ay,flow:wy,flowInitial:_y,insideSpan:vy,string:Sy,text:Iy},Symbol.toStringTag,{value:"Module"}));function Dy(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},i=[];let s=[],o=[];const l={attempt:D(P),check:D(I),consume:_,enter:A,exit:L,interrupt:D(I,{interrupt:!0})},u={code:null,containerState:{},defineSkip:y,events:[],now:g,parser:e,previous:null,sliceSerialize:p,sliceStream:f,write:h};let d=t.tokenize.call(u,l);return t.resolveAll&&i.push(t),u;function h(M){return s=it(s,M),w(),s[s.length-1]!==null?[]:(R(t,0),u.events=ea(i,u.events,u),u.events)}function p(M,j){return Oy(f(M),j)}function f(M){return Py(s,M)}function g(){const{_bufferIndex:M,_index:j,line:W,column:q,offset:F}=r;return{_bufferIndex:M,_index:j,line:W,column:q,offset:F}}function y(M){a[M.line]=M.column,v()}function w(){let M;for(;r._index<s.length;){const j=s[r._index];if(typeof j=="string")for(M=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===M&&r._bufferIndex<j.length;)x(j.charCodeAt(r._bufferIndex));else x(j)}}function x(M){d=d(M)}function _(M){ee(M)?(r.line++,r.column=1,r.offset+=M===-3?2:1,v()):M!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=M}function A(M,j){const W=j||{};return W.type=M,W.start=g(),u.events.push(["enter",W,u]),o.push(W),W}function L(M){const j=o.pop();return j.end=g(),u.events.push(["exit",j,u]),j}function P(M,j){R(M,j.from)}function I(M,j){j.restore()}function D(M,j){return W;function W(q,F,G){let $,ne,ue,T;return Array.isArray(q)?he(q):"tokenize"in q?he([q]):Ee(q);function Ee(J){return xe;function xe(ye){const ce=ye!==null&&J[ye],Ne=ye!==null&&J.null,Ce=[...Array.isArray(ce)?ce:ce?[ce]:[],...Array.isArray(Ne)?Ne:Ne?[Ne]:[]];return he(Ce)(ye)}}function he(J){return $=J,ne=0,J.length===0?G:S(J[ne])}function S(J){return xe;function xe(ye){return T=z(),ue=J,J.partial||(u.currentConstruct=J),J.name&&u.parser.constructs.disable.null.includes(J.name)?Z():J.tokenize.call(j?Object.assign(Object.create(u),j):u,l,ke,Z)(ye)}}function ke(J){return M(ue,T),F}function Z(J){return T.restore(),++ne<$.length?S($[ne]):G}}}function R(M,j){M.resolveAll&&!i.includes(M)&&i.push(M),M.resolve&&tt(u.events,j,u.events.length-j,M.resolve(u.events.slice(j),u)),M.resolveTo&&(u.events=M.resolveTo(u.events,u))}function z(){const M=g(),j=u.previous,W=u.currentConstruct,q=u.events.length,F=Array.from(o);return{from:q,restore:G};function G(){r=M,u.previous=j,u.currentConstruct=W,u.events.length=q,o=F,v()}}function v(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function Py(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let s;if(n===a)s=[e[n].slice(r,i)];else{if(s=e.slice(n,a),r>-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}i>0&&s.push(e[a].slice(0,i))}return s}function Oy(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
|
|
144
145
|
`;break}case-3:{s=`\r
|
|
145
|
-
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&i)continue;s=" ";break}default:s=String.fromCharCode(a)}i=a===-2,r.push(s)}return r.join("")}function My(e){const r={constructs:ju([Ly,...(e||{}).extensions||[]]),content:i(dy),defined:[],document:i(my),flow:i(gy),lazy:{},string:i(Ty),text:i(ky)};return r;function i(a){return s;function s(o){return Ry(r,a,o)}}}function Oy(e){for(;!Zu(e););return e}const vo=/[\0\t\n\r]/g;function Fy(){let e=1,t="",n=!0,r;return i;function i(a,s,o){const l=[];let u,d,h,p,f;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(s||void 0).decode(a)),h=0,t="",n&&(a.charCodeAt(0)===65279&&h++,n=void 0);h<a.length;){if(vo.lastIndex=h,u=vo.exec(a),p=u&&u.index!==void 0?u.index:a.length,f=a.charCodeAt(p),!u){t=a.slice(h);break}if(f===10&&h===p&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),h<p&&(l.push(a.slice(h,p)),e+=p-h),f){case 0:{l.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,l.push(-2);e++<d;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}h=p+1}return o&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Mc={}.hasOwnProperty;function By(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),zy(n)(Oy(My(n).document().write(Fy()(e,t,!0))))}function zy(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ln),autolinkProtocol:z,autolinkEmail:z,atxHeading:a(se),blockQuote:a(ve),characterEscape:z,characterReference:z,codeFenced:a(Ce),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:a(Ce,s),codeText:a(Ye,s),codeTextData:z,data:z,codeFlowValue:z,definition:a(ot),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:a(Ze),hardBreakEscape:a(De),hardBreakTrailing:a(De),htmlFlow:a(ft,s),htmlFlowData:z,htmlText:a(ft,s),htmlTextData:z,image:a(_n),label:s,link:a(ln),listItem:a(pe),listItemValue:p,listOrdered:a(X,h),listUnordered:a(X),paragraph:a(Le),reference:w,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:a(se),strong:a(Ge),thematicBreak:a(Sn)},exit:{atxHeading:l(),atxHeadingSequence:D,autolink:l(),autolinkEmail:ce,autolinkProtocol:ye,blockQuote:l(),characterEscapeValue:N,characterReferenceMarkerHexadecimal:Z,characterReferenceMarkerNumeric:Z,characterReferenceValue:J,characterReference:xe,codeFenced:l(S),codeFencedFence:y,codeFencedFenceInfo:f,codeFencedFenceMeta:g,codeFlowValue:N,codeIndented:l(x),codeText:l(F),codeTextData:N,data:N,definition:l(),definitionDestinationString:L,definitionLabelString:_,definitionTitleString:A,emphasis:l(),hardBreakEscape:l(j),hardBreakTrailing:l(j),htmlFlow:l(W),htmlFlowData:N,htmlText:l(q),htmlTextData:N,image:l($),label:ue,labelText:ne,lineEnding:O,link:l(G),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ke,resourceDestinationString:T,resourceTitleString:Ee,resource:he,setextHeading:l(R),setextHeadingLineSequence:P,setextHeadingText:I,strong:l(),thematicBreak:l()}};Oc(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(B){let Y={type:"root",children:[]};const ie={stack:[Y],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:d,data:n},fe=[];let _e=-1;for(;++_e<B.length;)if(B[_e][1].type==="listOrdered"||B[_e][1].type==="listUnordered")if(B[_e][0]==="enter")fe.push(_e);else{const lt=fe.pop();_e=i(B,lt,_e)}for(_e=-1;++_e<B.length;){const lt=t[B[_e][0]];Mc.call(lt,B[_e][1].type)&<[B[_e][1].type].call(Object.assign({sliceSerialize:B[_e][2].sliceSerialize},ie),B[_e][1])}if(ie.tokenStack.length>0){const lt=ie.tokenStack[ie.tokenStack.length-1];(lt[1]||Lo).call(ie,void 0,lt[0])}for(Y.position={start:Pt(B.length>0?B[0][1].start:{line:1,column:1,offset:0}),end:Pt(B.length>0?B[B.length-2][1].end:{line:1,column:1,offset:0})},_e=-1;++_e<t.transforms.length;)Y=t.transforms[_e](Y)||Y;return Y}function i(B,Y,ie){let fe=Y-1,_e=-1,lt=!1,Ut,Ct,wn,In;for(;++fe<=ie;){const Je=B[fe];switch(Je[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Je[0]==="enter"?_e++:_e--,In=void 0;break}case"lineEndingBlank":{Je[0]==="enter"&&(Ut&&!In&&!_e&&!wn&&(wn=fe),In=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:In=void 0}if(!_e&&Je[0]==="enter"&&Je[1].type==="listItemPrefix"||_e===-1&&Je[0]==="exit"&&(Je[1].type==="listUnordered"||Je[1].type==="listOrdered")){if(Ut){let un=fe;for(Ct=void 0;un--;){const _t=B[un];if(_t[1].type==="lineEnding"||_t[1].type==="lineEndingBlank"){if(_t[0]==="exit")continue;Ct&&(B[Ct][1].type="lineEndingBlank",lt=!0),_t[1].type="lineEnding",Ct=un}else if(!(_t[1].type==="linePrefix"||_t[1].type==="blockQuotePrefix"||_t[1].type==="blockQuotePrefixWhitespace"||_t[1].type==="blockQuoteMarker"||_t[1].type==="listItemIndent"))break}wn&&(!Ct||wn<Ct)&&(Ut._spread=!0),Ut.end=Object.assign({},Ct?B[Ct][1].start:Je[1].end),B.splice(Ct||fe,0,["exit",Ut,Je[2]]),fe++,ie++}if(Je[1].type==="listItemPrefix"){const un={type:"listItem",_spread:!1,start:Object.assign({},Je[1].start),end:void 0};Ut=un,B.splice(fe,0,["enter",un,Je[2]]),fe++,ie++,wn=void 0,In=!0}}}return B[Y][1]._spread=lt,ie}function a(B,Y){return ie;function ie(fe){o.call(this,B(fe),fe),Y&&Y.call(this,fe)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(B,Y,ie){this.stack[this.stack.length-1].children.push(B),this.stack.push(B),this.tokenStack.push([Y,ie||void 0]),B.position={start:Pt(Y.start),end:void 0}}function l(B){return Y;function Y(ie){B&&B.call(this,ie),u.call(this,ie)}}function u(B,Y){const ie=this.stack.pop(),fe=this.tokenStack.pop();if(fe)fe[0].type!==B.type&&(Y?Y.call(this,B,fe[0]):(fe[1]||Lo).call(this,B,fe[0]));else throw new Error("Cannot close `"+B.type+"` ("+Qn({start:B.start,end:B.end})+"): it’s not open");ie.position.end=Pt(B.end)}function d(){return Da(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function p(B){if(this.data.expectingFirstListItemValue){const Y=this.stack[this.stack.length-2];Y.start=Number.parseInt(this.sliceSerialize(B),10),this.data.expectingFirstListItemValue=void 0}}function f(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.lang=B}function g(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.meta=B}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.value=B.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.value=B.replace(/(\r?\n|\r)$/g,"")}function _(B){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.label=Y,ie.identifier=ct(this.sliceSerialize(B)).toLowerCase()}function A(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.title=B}function L(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.url=B}function D(B){const Y=this.stack[this.stack.length-1];if(!Y.depth){const ie=this.sliceSerialize(B).length;Y.depth=ie}}function I(){this.data.setextHeadingSlurpLineEnding=!0}function P(B){const Y=this.stack[this.stack.length-1];Y.depth=this.sliceSerialize(B).codePointAt(0)===61?1:2}function R(){this.data.setextHeadingSlurpLineEnding=void 0}function z(B){const ie=this.stack[this.stack.length-1].children;let fe=ie[ie.length-1];(!fe||fe.type!=="text")&&(fe=pt(),fe.position={start:Pt(B.start),end:void 0},ie.push(fe)),this.stack.push(fe)}function N(B){const Y=this.stack.pop();Y.value+=this.sliceSerialize(B),Y.position.end=Pt(B.end)}function O(B){const Y=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ie=Y.children[Y.children.length-1];ie.position.end=Pt(B.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Y.type)&&(z.call(this,B),N.call(this,B))}function j(){this.data.atHardBreak=!0}function W(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.value=B}function q(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.value=B}function F(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.value=B}function G(){const B=this.stack[this.stack.length-1];if(this.data.inReference){const Y=this.data.referenceType||"shortcut";B.type+="Reference",B.referenceType=Y,delete B.url,delete B.title}else delete B.identifier,delete B.label;this.data.referenceType=void 0}function $(){const B=this.stack[this.stack.length-1];if(this.data.inReference){const Y=this.data.referenceType||"shortcut";B.type+="Reference",B.referenceType=Y,delete B.url,delete B.title}else delete B.identifier,delete B.label;this.data.referenceType=void 0}function ne(B){const Y=this.sliceSerialize(B),ie=this.stack[this.stack.length-2];ie.label=p1(Y),ie.identifier=ct(Y).toLowerCase()}function ue(){const B=this.stack[this.stack.length-1],Y=this.resume(),ie=this.stack[this.stack.length-1];if(this.data.inReference=!0,ie.type==="link"){const fe=B.children;ie.children=fe}else ie.alt=Y}function T(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.url=B}function Ee(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.title=B}function he(){this.data.inReference=void 0}function w(){this.data.referenceType="collapsed"}function ke(B){const Y=this.resume(),ie=this.stack[this.stack.length-1];ie.label=Y,ie.identifier=ct(this.sliceSerialize(B)).toLowerCase(),this.data.referenceType="full"}function Z(B){this.data.characterReferenceType=B.type}function J(B){const Y=this.sliceSerialize(B),ie=this.data.characterReferenceType;let fe;ie?(fe=zu(Y,ie==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):fe=Oa(Y);const _e=this.stack[this.stack.length-1];_e.value+=fe}function xe(B){const Y=this.stack.pop();Y.position.end=Pt(B.end)}function ye(B){N.call(this,B);const Y=this.stack[this.stack.length-1];Y.url=this.sliceSerialize(B)}function ce(B){N.call(this,B);const Y=this.stack[this.stack.length-1];Y.url="mailto:"+this.sliceSerialize(B)}function ve(){return{type:"blockquote",children:[]}}function Ce(){return{type:"code",lang:null,meta:null,value:""}}function Ye(){return{type:"inlineCode",value:""}}function ot(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ze(){return{type:"emphasis",children:[]}}function se(){return{type:"heading",depth:0,children:[]}}function De(){return{type:"break"}}function ft(){return{type:"html",value:""}}function _n(){return{type:"image",title:null,url:"",alt:null}}function ln(){return{type:"link",title:null,url:"",children:[]}}function X(B){return{type:"list",ordered:B.type==="listOrdered",start:null,spread:B._spread,children:[]}}function pe(B){return{type:"listItem",spread:B._spread,checked:null,children:[]}}function Le(){return{type:"paragraph",children:[]}}function Ge(){return{type:"strong",children:[]}}function pt(){return{type:"text",value:""}}function Sn(){return{type:"thematicBreak"}}}function Pt(e){return{line:e.line,column:e.column,offset:e.offset}}function Oc(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Oc(e,r):jy(e,r)}}function jy(e,t){let n;for(n in t)if(Mc.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Lo(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Qn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Qn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Qn({start:t.start,end:t.end})+") is still open")}function Hy(e){const t=this;t.parser=n;function n(r){return By(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Uy(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function qy(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
146
|
-
`}]}function
|
|
147
|
-
`:"",r={},
|
|
148
|
-
`}),d.type==="element"&&d.tagName==="p"&&!
|
|
149
|
-
`});const u={type:"element",tagName:"li",properties:
|
|
146
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&a)continue;s=" ";break}default:s=String.fromCharCode(i)}a=i===-2,r.push(s)}return r.join("")}function My(e){const r={constructs:ju([Ry,...(e||{}).extensions||[]]),content:a(hy),defined:[],document:a(fy),flow:a(by),lazy:{},string:a(ky),text:a(xy)};return r;function a(i){return s;function s(o){return Dy(r,i,o)}}}function Fy(e){for(;!Zu(e););return e}const No=/[\0\t\n\r]/g;function By(){let e=1,t="",n=!0,r;return a;function a(i,s,o){const l=[];let u,d,h,p,f;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),h=0,t="",n&&(i.charCodeAt(0)===65279&&h++,n=void 0);h<i.length;){if(No.lastIndex=h,u=No.exec(i),p=u&&u.index!==void 0?u.index:i.length,f=i.charCodeAt(p),!u){t=i.slice(h);break}if(f===10&&h===p&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),h<p&&(l.push(i.slice(h,p)),e+=p-h),f){case 0:{l.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,l.push(-2);e++<d;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}h=p+1}return o&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Oc={}.hasOwnProperty;function zy(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),jy(n)(Fy(My(n).document().write(By()(e,t,!0))))}function jy(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(ln),autolinkProtocol:z,autolinkEmail:z,atxHeading:i(se),blockQuote:i(Ne),characterEscape:z,characterReference:z,codeFenced:i(Ce),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(Ce,s),codeText:i(Ye,s),codeTextData:z,data:z,codeFlowValue:z,definition:i(ot),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(Ze),hardBreakEscape:i(Pe),hardBreakTrailing:i(Pe),htmlFlow:i(ft,s),htmlFlowData:z,htmlText:i(ft,s),htmlTextData:z,image:i(_n),label:s,link:i(ln),listItem:i(pe),listItemValue:p,listOrdered:i(X,h),listUnordered:i(X),paragraph:i(Le),reference:S,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(se),strong:i(Ge),thematicBreak:i(wn)},exit:{atxHeading:l(),atxHeadingSequence:P,autolink:l(),autolinkEmail:ce,autolinkProtocol:ye,blockQuote:l(),characterEscapeValue:v,characterReferenceMarkerHexadecimal:Z,characterReferenceMarkerNumeric:Z,characterReferenceValue:J,characterReference:xe,codeFenced:l(w),codeFencedFence:y,codeFencedFenceInfo:f,codeFencedFenceMeta:g,codeFlowValue:v,codeIndented:l(x),codeText:l(F),codeTextData:v,data:v,definition:l(),definitionDestinationString:L,definitionLabelString:_,definitionTitleString:A,emphasis:l(),hardBreakEscape:l(j),hardBreakTrailing:l(j),htmlFlow:l(W),htmlFlowData:v,htmlText:l(q),htmlTextData:v,image:l($),label:ue,labelText:ne,lineEnding:M,link:l(G),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:ke,resourceDestinationString:T,resourceTitleString:Ee,resource:he,setextHeading:l(R),setextHeadingLineSequence:D,setextHeadingText:I,strong:l(),thematicBreak:l()}};Mc(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(B){let Y={type:"root",children:[]};const ae={stack:[Y],tokenStack:[],config:t,enter:o,exit:u,buffer:s,resume:d,data:n},fe=[];let _e=-1;for(;++_e<B.length;)if(B[_e][1].type==="listOrdered"||B[_e][1].type==="listUnordered")if(B[_e][0]==="enter")fe.push(_e);else{const lt=fe.pop();_e=a(B,lt,_e)}for(_e=-1;++_e<B.length;){const lt=t[B[_e][0]];Oc.call(lt,B[_e][1].type)&<[B[_e][1].type].call(Object.assign({sliceSerialize:B[_e][2].sliceSerialize},ae),B[_e][1])}if(ae.tokenStack.length>0){const lt=ae.tokenStack[ae.tokenStack.length-1];(lt[1]||Lo).call(ae,void 0,lt[0])}for(Y.position={start:Dt(B.length>0?B[0][1].start:{line:1,column:1,offset:0}),end:Dt(B.length>0?B[B.length-2][1].end:{line:1,column:1,offset:0})},_e=-1;++_e<t.transforms.length;)Y=t.transforms[_e](Y)||Y;return Y}function a(B,Y,ae){let fe=Y-1,_e=-1,lt=!1,Ut,Ct,Sn,In;for(;++fe<=ae;){const Je=B[fe];switch(Je[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Je[0]==="enter"?_e++:_e--,In=void 0;break}case"lineEndingBlank":{Je[0]==="enter"&&(Ut&&!In&&!_e&&!Sn&&(Sn=fe),In=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:In=void 0}if(!_e&&Je[0]==="enter"&&Je[1].type==="listItemPrefix"||_e===-1&&Je[0]==="exit"&&(Je[1].type==="listUnordered"||Je[1].type==="listOrdered")){if(Ut){let un=fe;for(Ct=void 0;un--;){const _t=B[un];if(_t[1].type==="lineEnding"||_t[1].type==="lineEndingBlank"){if(_t[0]==="exit")continue;Ct&&(B[Ct][1].type="lineEndingBlank",lt=!0),_t[1].type="lineEnding",Ct=un}else if(!(_t[1].type==="linePrefix"||_t[1].type==="blockQuotePrefix"||_t[1].type==="blockQuotePrefixWhitespace"||_t[1].type==="blockQuoteMarker"||_t[1].type==="listItemIndent"))break}Sn&&(!Ct||Sn<Ct)&&(Ut._spread=!0),Ut.end=Object.assign({},Ct?B[Ct][1].start:Je[1].end),B.splice(Ct||fe,0,["exit",Ut,Je[2]]),fe++,ae++}if(Je[1].type==="listItemPrefix"){const un={type:"listItem",_spread:!1,start:Object.assign({},Je[1].start),end:void 0};Ut=un,B.splice(fe,0,["enter",un,Je[2]]),fe++,ae++,Sn=void 0,In=!0}}}return B[Y][1]._spread=lt,ae}function i(B,Y){return ae;function ae(fe){o.call(this,B(fe),fe),Y&&Y.call(this,fe)}}function s(){this.stack.push({type:"fragment",children:[]})}function o(B,Y,ae){this.stack[this.stack.length-1].children.push(B),this.stack.push(B),this.tokenStack.push([Y,ae||void 0]),B.position={start:Dt(Y.start),end:void 0}}function l(B){return Y;function Y(ae){B&&B.call(this,ae),u.call(this,ae)}}function u(B,Y){const ae=this.stack.pop(),fe=this.tokenStack.pop();if(fe)fe[0].type!==B.type&&(Y?Y.call(this,B,fe[0]):(fe[1]||Lo).call(this,B,fe[0]));else throw new Error("Cannot close `"+B.type+"` ("+Qn({start:B.start,end:B.end})+"): it’s not open");ae.position.end=Dt(B.end)}function d(){return Pi(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function p(B){if(this.data.expectingFirstListItemValue){const Y=this.stack[this.stack.length-2];Y.start=Number.parseInt(this.sliceSerialize(B),10),this.data.expectingFirstListItemValue=void 0}}function f(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.lang=B}function g(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.meta=B}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.value=B.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.value=B.replace(/(\r?\n|\r)$/g,"")}function _(B){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.label=Y,ae.identifier=ct(this.sliceSerialize(B)).toLowerCase()}function A(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.title=B}function L(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.url=B}function P(B){const Y=this.stack[this.stack.length-1];if(!Y.depth){const ae=this.sliceSerialize(B).length;Y.depth=ae}}function I(){this.data.setextHeadingSlurpLineEnding=!0}function D(B){const Y=this.stack[this.stack.length-1];Y.depth=this.sliceSerialize(B).codePointAt(0)===61?1:2}function R(){this.data.setextHeadingSlurpLineEnding=void 0}function z(B){const ae=this.stack[this.stack.length-1].children;let fe=ae[ae.length-1];(!fe||fe.type!=="text")&&(fe=pt(),fe.position={start:Dt(B.start),end:void 0},ae.push(fe)),this.stack.push(fe)}function v(B){const Y=this.stack.pop();Y.value+=this.sliceSerialize(B),Y.position.end=Dt(B.end)}function M(B){const Y=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ae=Y.children[Y.children.length-1];ae.position.end=Dt(B.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Y.type)&&(z.call(this,B),v.call(this,B))}function j(){this.data.atHardBreak=!0}function W(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.value=B}function q(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.value=B}function F(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.value=B}function G(){const B=this.stack[this.stack.length-1];if(this.data.inReference){const Y=this.data.referenceType||"shortcut";B.type+="Reference",B.referenceType=Y,delete B.url,delete B.title}else delete B.identifier,delete B.label;this.data.referenceType=void 0}function $(){const B=this.stack[this.stack.length-1];if(this.data.inReference){const Y=this.data.referenceType||"shortcut";B.type+="Reference",B.referenceType=Y,delete B.url,delete B.title}else delete B.identifier,delete B.label;this.data.referenceType=void 0}function ne(B){const Y=this.sliceSerialize(B),ae=this.stack[this.stack.length-2];ae.label=g1(Y),ae.identifier=ct(Y).toLowerCase()}function ue(){const B=this.stack[this.stack.length-1],Y=this.resume(),ae=this.stack[this.stack.length-1];if(this.data.inReference=!0,ae.type==="link"){const fe=B.children;ae.children=fe}else ae.alt=Y}function T(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.url=B}function Ee(){const B=this.resume(),Y=this.stack[this.stack.length-1];Y.title=B}function he(){this.data.inReference=void 0}function S(){this.data.referenceType="collapsed"}function ke(B){const Y=this.resume(),ae=this.stack[this.stack.length-1];ae.label=Y,ae.identifier=ct(this.sliceSerialize(B)).toLowerCase(),this.data.referenceType="full"}function Z(B){this.data.characterReferenceType=B.type}function J(B){const Y=this.sliceSerialize(B),ae=this.data.characterReferenceType;let fe;ae?(fe=zu(Y,ae==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):fe=Mi(Y);const _e=this.stack[this.stack.length-1];_e.value+=fe}function xe(B){const Y=this.stack.pop();Y.position.end=Dt(B.end)}function ye(B){v.call(this,B);const Y=this.stack[this.stack.length-1];Y.url=this.sliceSerialize(B)}function ce(B){v.call(this,B);const Y=this.stack[this.stack.length-1];Y.url="mailto:"+this.sliceSerialize(B)}function Ne(){return{type:"blockquote",children:[]}}function Ce(){return{type:"code",lang:null,meta:null,value:""}}function Ye(){return{type:"inlineCode",value:""}}function ot(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ze(){return{type:"emphasis",children:[]}}function se(){return{type:"heading",depth:0,children:[]}}function Pe(){return{type:"break"}}function ft(){return{type:"html",value:""}}function _n(){return{type:"image",title:null,url:"",alt:null}}function ln(){return{type:"link",title:null,url:"",children:[]}}function X(B){return{type:"list",ordered:B.type==="listOrdered",start:null,spread:B._spread,children:[]}}function pe(B){return{type:"listItem",spread:B._spread,checked:null,children:[]}}function Le(){return{type:"paragraph",children:[]}}function Ge(){return{type:"strong",children:[]}}function pt(){return{type:"text",value:""}}function wn(){return{type:"thematicBreak"}}}function Dt(e){return{line:e.line,column:e.column,offset:e.offset}}function Mc(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Mc(e,r):Hy(e,r)}}function Hy(e,t){let n;for(n in t)if(Oc.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Lo(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Qn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Qn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Qn({start:t.start,end:t.end})+") is still open")}function Uy(e){const t=this;t.parser=n;function n(r){return zy(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function qy(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Vy(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
147
|
+
`}]}function $y(e,t){const n=t.value?t.value+`
|
|
148
|
+
`:"",r={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(r.className=["language-"+a[0]]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function Yy(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Gy(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Wy(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=An(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let s,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=i+1,o+=1,e.footnoteCounts.set(r,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function Ky(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Qy(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Fc(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const s=a[a.length-1];return s&&s.type==="text"?s.value+=r:a.push({type:"text",value:r}),a}function Xy(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Fc(e,t);const a={src:An(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function Zy(e,t){const n={src:An(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Jy(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function e2(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Fc(e,t);const a={href:An(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function t2(e,t){const n={href:An(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function n2(e,t,n){const r=e.all(t),a=n?r2(n):Bc(t),i={},s=[];if(typeof t.checked=="boolean"){const d=r[0];let h;d&&d.type==="element"&&d.tagName==="p"?h=d:(h={type:"element",tagName:"p",properties:{},children:[]},r.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const d=r[o];(a||o!==0||d.type!=="element"||d.tagName!=="p")&&s.push({type:"text",value:`
|
|
149
|
+
`}),d.type==="element"&&d.tagName==="p"&&!a?s.push(...d.children):s.push(d)}const l=r[r.length-1];l&&(a||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
|
|
150
|
+
`});const u={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,u),e.applyData(t,u)}function r2(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Bc(n[r])}return t}function Bc(e){const t=e.spread;return t??e.children.length>1}function a2(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const s=r[a];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function i2(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function s2(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function o2(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function l2(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),a.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=xt(t.children[1]),l=Zr(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),a.push(s)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function u2(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let l=-1;const u=[];for(;++l<o;){const h=t.children[l],p={},f=s?s[l]:void 0;f&&(p.align=f);let g={type:"element",tagName:i,properties:p,children:[]};h&&(g.children=e.all(h),e.patch(h,g),g=e.applyData(h,g)),u.push(g)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,d),e.applyData(t,d)}function c2(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Ro=9,Do=32;function d2(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const i=[];for(;r;)i.push(Po(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(Po(t.slice(a),a>0,!1)),i.join("")}function Po(e,t,n){let r=0,a=e.length;if(t){let i=e.codePointAt(r);for(;i===Ro||i===Do;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(a-1);for(;i===Ro||i===Do;)a--,i=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function h2(e,t){const n={type:"text",value:d2(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function m2(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const f2={blockquote:qy,break:Vy,code:$y,delete:Yy,emphasis:Gy,footnoteReference:Wy,heading:Ky,html:Qy,imageReference:Xy,image:Zy,inlineCode:Jy,linkReference:e2,link:t2,listItem:n2,list:a2,paragraph:i2,root:s2,strong:o2,table:l2,tableCell:c2,tableRow:u2,text:h2,thematicBreak:m2,toml:Er,yaml:Er,definition:Er,footnoteDefinition:Er};function Er(){}function p2(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function g2(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function b2(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||p2,r=e.options.footnoteBackLabel||g2,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const d=e.all(u),h=String(u.identifier).toUpperCase(),p=An(h.toLowerCase());let f=0;const g=[],y=e.footnoteCounts.get(h);for(;y!==void 0&&++f<=y;){g.length>0&&g.push({type:"text",value:" "});let _=typeof n=="string"?n:n(l,f);typeof _=="string"&&(_={type:"text",value:_}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,f),className:["data-footnote-backref"]},children:Array.isArray(_)?_:[_]})}const w=d[d.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const _=w.children[w.children.length-1];_&&_.type==="text"?_.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...g)}else d.push(...g);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(d,!0)};e.patch(u,x),o.push(x)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Jt(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
|
|
150
151
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
|
|
151
|
-
`}]}}const
|
|
152
|
+
`}]}}const Za={}.hasOwnProperty,E2={};function T2(e,t){const n=t||E2,r=new Map,a=new Map,i=new Map,s={...f2,...n.handlers},o={all:u,applyData:x2,definitionById:r,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:s,one:l,options:n,patch:k2,wrap:A2};return dt(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const h=d.type==="definition"?r:a,p=String(d.identifier).toUpperCase();h.has(p)||h.set(p,d)}}),o;function l(d,h){const p=d.type,f=o.handlers[p];if(Za.call(o.handlers,p)&&f)return f(o,d,h);if(o.options.passThrough&&o.options.passThrough.includes(p)){if("children"in d){const{children:y,...w}=d,x=Jt(w);return x.children=o.all(d),x}return Jt(d)}return(o.options.unknownHandler||y2)(o,d,h)}function u(d){const h=[];if("children"in d){const p=d.children;let f=-1;for(;++f<p.length;){const g=o.one(p[f],d);if(g){if(f&&p[f-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=Oo(g.value)),!Array.isArray(g)&&g.type==="element")){const y=g.children[0];y&&y.type==="text"&&(y.value=Oo(y.value))}Array.isArray(g)?h.push(...g):h.push(g)}}}return h}}function k2(e,t){e.position&&(t.position=fu(e))}function x2(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&i&&Object.assign(n.properties,Jt(i)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function y2(e,t){const n=t.data||{},r="value"in t&&!(Za.call(n,"hProperties")||Za.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function A2(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
152
153
|
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
153
154
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
154
|
-
`}),n}function
|
|
155
|
-
`},i),a}function A2(e,t){return e&&"run"in e?async function(n,r){const i=Oo(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Oo(n,{file:r,...e||t})}}function Fo(e){if(e)throw e}var _i,Bo;function C2(){if(Bo)return _i;Bo=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},a=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var d=e.call(u,"constructor"),h=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!d&&!h)return!1;var p;for(p in u);return typeof p>"u"||e.call(u,p)},s=function(u,d){n&&d.name==="__proto__"?n(u,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):u[d.name]=d.newValue},o=function(u,d){if(d==="__proto__")if(e.call(u,d)){if(r)return r(u,d).value}else return;return u[d]};return _i=function l(){var u,d,h,p,f,g,y=arguments[0],S=1,x=arguments.length,_=!1;for(typeof y=="boolean"&&(_=y,y=arguments[1]||{},S=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});S<x;++S)if(u=arguments[S],u!=null)for(d in u)h=o(y,d),p=o(u,d),y!==p&&(_&&p&&(a(p)||(f=i(p)))?(f?(f=!1,g=h&&i(h)?h:[]):g=h&&a(h)?h:{},s(y,{name:d,newValue:l(_,g,p)})):typeof p<"u"&&s(y,{name:d,newValue:p}));return y},_i}var _2=C2();const Si=pa(_2);function Ji(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function S2(){const e=[],t={run:n,use:r};return t;function n(...i){let a=-1;const s=i.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...i);function o(l,...u){const d=e[++a];let h=-1;if(l){s(l);return}for(;++h<i.length;)(u[h]===null||u[h]===void 0)&&(u[h]=i[h]);i=u,d?w2(d,o)(...u):s(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function w2(e,t){let n;return r;function r(...s){const o=e.length>s.length;let l;o&&s.push(i);try{l=e.apply(this,s)}catch(u){const d=u;if(o&&n)throw d;return i(d)}o||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const Et={basename:I2,dirname:N2,extname:v2,join:L2,sep:"/"};function I2(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ur(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function N2(e){if(ur(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function v2(e){ur(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function L2(...e){let t=-1,n;for(;++t<e.length;)ur(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":R2(n)}function R2(e){ur(e);const t=e.codePointAt(0)===47;let n=P2(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function P2(e,t){let n="",r=0,i=-1,a=0,s=-1,o,l;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(i===s-1||a===1))if(i!==s-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function ur(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const D2={cwd:M2};function M2(){return"/"}function ea(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function O2(e){if(typeof e=="string")e=new URL(e);else if(!ea(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return F2(e)}function F2(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const wi=["history","path","basename","stem","extname","dirname"];class B2{constructor(t){let n;t?ea(t)?n={path:t}:typeof t=="string"||z2(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":D2.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<wi.length;){const a=wi[r];a in n&&n[a]!==void 0&&n[a]!==null&&(this[a]=a==="history"?[...n[a]]:n[a])}let i;for(i in n)wi.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Et.basename(this.path):void 0}set basename(t){Ni(t,"basename"),Ii(t,"basename"),this.path=Et.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Et.dirname(this.path):void 0}set dirname(t){zo(this.basename,"dirname"),this.path=Et.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Et.extname(this.path):void 0}set extname(t){if(Ii(t,"extname"),zo(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Et.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ea(t)&&(t=O2(t)),Ni(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Et.basename(this.path,this.extname):void 0}set stem(t){Ni(t,"stem"),Ii(t,"stem"),this.path=Et.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new He(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Ii(e,t){if(e&&e.includes(Et.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Et.sep+"`")}function Ni(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function zo(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function z2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const j2=(function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a}),H2={}.hasOwnProperty;class Ya extends j2{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=S2()}copy(){const t=new Ya;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Si(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ri("data",this.frozen),this.namespace[t]=n,this):H2.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ri("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Tr(t),r=this.parser||this.Parser;return vi("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),vi("process",this.parser||this.Parser),Li("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(a,s){const o=Tr(t),l=r.parse(o);r.run(l,o,function(d,h,p){if(d||!h||!p)return u(d);const f=h,g=r.stringify(f,p);V2(g)?p.value=g:p.result=g,u(d,p)});function u(d,h){d||!h?s(d):a?a(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),vi("processSync",this.parser||this.Parser),Li("processSync",this.compiler||this.Compiler),this.process(t,i),Ho("processSync","process",n),r;function i(a,s){n=!0,Fo(a),r=s}}run(t,n,r){jo(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?a(void 0,r):new Promise(a);function a(s,o){const l=Tr(n);i.run(t,l,u);function u(d,h,p){const f=h||t;d?o(d):s?s(f):r(void 0,f,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,a),Ho("runSync","run",r),i;function a(s,o){Fo(s),i=o,r=!0}}stringify(t,n){this.freeze();const r=Tr(n),i=this.compiler||this.Compiler;return Li("stringify",i),jo(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Ri("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...h]=u;l(d,h)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(u.plugins),u.settings&&(i.settings=Si(!0,i.settings,u.settings))}function o(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const h=u[d];a(h)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,d){let h=-1,p=-1;for(;++h<r.length;)if(r[h][0]===u){p=h;break}if(p===-1)r.push([u,...d]);else if(d.length>0){let[f,...g]=d;const y=r[p][1];Ji(y)&&Ji(f)&&(f=Si(!0,y,f)),r[p]=[u,f,...g]}}}}const U2=new Ya().freeze();function vi(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Li(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ri(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function jo(e){if(!Ji(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ho(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Tr(e){return q2(e)?e:new B2(e)}function q2(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function V2(e){return typeof e=="string"||$2(e)}function $2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function Ga(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var on=Ga();function zc(e){on=e}var Wt={exec:()=>null};function be(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(i,a)=>{let s=typeof a=="string"?a:a.source;return s=s.replace(Ve.caret,"$1"),n=n.replace(i,s),r},getRegex:()=>new RegExp(n,t)};return r}var Y2=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Ve={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},G2=/^(?:[ \t]*(?:\n|$))+/,W2=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,K2=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,cr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Q2=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Wa=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,jc=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Hc=be(jc).replace(/bull/g,Wa).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),X2=be(jc).replace(/bull/g,Wa).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ka=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Z2=/^[^\n]+/,Qa=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,J2=be(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Qa).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),eA=be(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Wa).getRegex(),ni="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Xa=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,tA=be("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Xa).replace("tag",ni).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Uc=be(Ka).replace("hr",cr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ni).getRegex(),nA=be(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Uc).getRegex(),Za={blockquote:nA,code:W2,def:J2,fences:K2,heading:Q2,hr:cr,html:tA,lheading:Hc,list:eA,newline:G2,paragraph:Uc,table:Wt,text:Z2},Uo=be("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",cr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ni).getRegex(),rA={...Za,lheading:X2,table:Uo,paragraph:be(Ka).replace("hr",cr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Uo).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",ni).getRegex()},iA={...Za,html:be(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Xa).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Wt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:be(Ka).replace("hr",cr).replace("heading",` *#{1,6} *[^
|
|
156
|
-
]`).replace("lheading",Hc).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},
|
|
157
|
-
`).map(
|
|
155
|
+
`}),n}function Oo(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Mo(e,t){const n=T2(e,t),r=n.one(e,void 0),a=b2(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
|
|
156
|
+
`},a),i}function C2(e,t){return e&&"run"in e?async function(n,r){const a=Mo(n,{file:r,...t});await e.run(a,r)}:function(n,r){return Mo(n,{file:r,...e||t})}}function Fo(e){if(e)throw e}var _a,Bo;function _2(){if(Bo)return _a;Bo=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},i=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var d=e.call(u,"constructor"),h=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!d&&!h)return!1;var p;for(p in u);return typeof p>"u"||e.call(u,p)},s=function(u,d){n&&d.name==="__proto__"?n(u,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):u[d.name]=d.newValue},o=function(u,d){if(d==="__proto__")if(e.call(u,d)){if(r)return r(u,d).value}else return;return u[d]};return _a=function l(){var u,d,h,p,f,g,y=arguments[0],w=1,x=arguments.length,_=!1;for(typeof y=="boolean"&&(_=y,y=arguments[1]||{},w=2),(y==null||typeof y!="object"&&typeof y!="function")&&(y={});w<x;++w)if(u=arguments[w],u!=null)for(d in u)h=o(y,d),p=o(u,d),y!==p&&(_&&p&&(i(p)||(f=a(p)))?(f?(f=!1,g=h&&a(h)?h:[]):g=h&&i(h)?h:{},s(y,{name:d,newValue:l(_,g,p)})):typeof p<"u"&&s(y,{name:d,newValue:p}));return y},_a}var w2=_2();const wa=pi(w2);function Ja(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function S2(){const e=[],t={run:n,use:r};return t;function n(...a){let i=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);o(null,...a);function o(l,...u){const d=e[++i];let h=-1;if(l){s(l);return}for(;++h<a.length;)(u[h]===null||u[h]===void 0)&&(u[h]=a[h]);a=u,d?I2(d,o)(...u):s(null,...u)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function I2(e,t){let n;return r;function r(...s){const o=e.length>s.length;let l;o&&s.push(a);try{l=e.apply(this,s)}catch(u){const d=u;if(o&&n)throw d;return a(d)}o||(l&&l.then&&typeof l.then=="function"?l.then(i,a):l instanceof Error?a(l):i(l))}function a(s,...o){n||(n=!0,t(s,...o))}function i(s){a(null,s)}}const Et={basename:v2,dirname:N2,extname:L2,join:R2,sep:"/"};function v2(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');ur(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else s<0&&(i=!0,s=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(r=a):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function N2(e){if(ur(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function L2(e){ur(e);let t=e.length,n=-1,r=0,a=-1,i=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function R2(...e){let t=-1,n;for(;++t<e.length;)ur(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":D2(n)}function D2(e){ur(e);const t=e.codePointAt(0)===47;let n=P2(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function P2(e,t){let n="",r=0,a=-1,i=0,s=-1,o,l;for(;++s<=e.length;){if(s<e.length)o=e.codePointAt(s);else{if(o===47)break;o=47}if(o===47){if(!(a===s-1||i===1))if(a!==s-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),a=s,i=0;continue}}else if(n.length>0){n="",r=0,a=s,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),r=s-a-1;a=s,i=0}else o===46&&i>-1?i++:i=-1}return n}function ur(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const O2={cwd:M2};function M2(){return"/"}function ei(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function F2(e){if(typeof e=="string")e=new URL(e);else if(!ei(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return B2(e)}function B2(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const Sa=["history","path","basename","stem","extname","dirname"];class z2{constructor(t){let n;t?ei(t)?n={path:t}:typeof t=="string"||j2(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":O2.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Sa.length;){const i=Sa[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)Sa.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?Et.basename(this.path):void 0}set basename(t){va(t,"basename"),Ia(t,"basename"),this.path=Et.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Et.dirname(this.path):void 0}set dirname(t){zo(this.basename,"dirname"),this.path=Et.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Et.extname(this.path):void 0}set extname(t){if(Ia(t,"extname"),zo(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Et.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){ei(t)&&(t=F2(t)),va(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Et.basename(this.path,this.extname):void 0}set stem(t){va(t,"stem"),Ia(t,"stem"),this.path=Et.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new He(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Ia(e,t){if(e&&e.includes(Et.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Et.sep+"`")}function va(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function zo(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function j2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const H2=(function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,r),i}),U2={}.hasOwnProperty;class Yi extends H2{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=S2()}copy(){const t=new Yi;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(wa(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ra("data",this.frozen),this.namespace[t]=n,this):U2.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ra("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Tr(t),r=this.parser||this.Parser;return Na("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Na("process",this.parser||this.Parser),La("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,s){const o=Tr(t),l=r.parse(o);r.run(l,o,function(d,h,p){if(d||!h||!p)return u(d);const f=h,g=r.stringify(f,p);$2(g)?p.value=g:p.result=g,u(d,p)});function u(d,h){d||!h?s(d):i?i(h):n(void 0,h)}}}processSync(t){let n=!1,r;return this.freeze(),Na("processSync",this.parser||this.Parser),La("processSync",this.compiler||this.Compiler),this.process(t,a),Ho("processSync","process",n),r;function a(i,s){n=!0,Fo(i),r=s}}run(t,n,r){jo(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(s,o){const l=Tr(n);a.run(t,l,u);function u(d,h,p){const f=h||t;d?o(d):s?s(f):r(void 0,f,p)}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),Ho("runSync","run",r),a;function i(s,o){Fo(s),a=o,r=!0}}stringify(t,n){this.freeze();const r=Tr(n),a=this.compiler||this.Compiler;return La("stringify",a),jo(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(Ra("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[d,...h]=u;l(d,h)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(u.plugins),u.settings&&(a.settings=wa(!0,a.settings,u.settings))}function o(u){let d=-1;if(u!=null)if(Array.isArray(u))for(;++d<u.length;){const h=u[d];i(h)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,d){let h=-1,p=-1;for(;++h<r.length;)if(r[h][0]===u){p=h;break}if(p===-1)r.push([u,...d]);else if(d.length>0){let[f,...g]=d;const y=r[p][1];Ja(y)&&Ja(f)&&(f=wa(!0,y,f)),r[p]=[u,f,...g]}}}}const q2=new Yi().freeze();function Na(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function La(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ra(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function jo(e){if(!Ja(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ho(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Tr(e){return V2(e)?e:new z2(e)}function V2(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function $2(e){return typeof e=="string"||Y2(e)}function Y2(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function Gi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var on=Gi();function zc(e){on=e}var Wt={exec:()=>null};function be(e,t=""){let n=typeof e=="string"?e:e.source,r={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Ve.caret,"$1"),n=n.replace(a,s),r},getRegex:()=>new RegExp(n,t)};return r}var G2=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),Ve={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}>`)},W2=/^(?:[ \t]*(?:\n|$))+/,K2=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Q2=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,cr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,X2=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Wi=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,jc=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Hc=be(jc).replace(/bull/g,Wi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Z2=be(jc).replace(/bull/g,Wi).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Ki=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,J2=/^[^\n]+/,Qi=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,eA=be(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Qi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),tA=be(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Wi).getRegex(),na="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Xi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,nA=be("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Xi).replace("tag",na).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Uc=be(Ki).replace("hr",cr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",na).getRegex(),rA=be(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Uc).getRegex(),Zi={blockquote:rA,code:K2,def:eA,fences:Q2,heading:X2,hr:cr,html:nA,lheading:Hc,list:tA,newline:W2,paragraph:Uc,table:Wt,text:J2},Uo=be("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",cr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",na).getRegex(),aA={...Zi,lheading:Z2,table:Uo,paragraph:be(Ki).replace("hr",cr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Uo).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",na).getRegex()},iA={...Zi,html:be(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Xi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Wt,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:be(Ki).replace("hr",cr).replace("heading",` *#{1,6} *[^
|
|
157
|
+
]`).replace("lheading",Hc).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},sA=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,oA=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,qc=/^( {2,}|\\)\n(?!\s*$)/,lA=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Cn=/[\p{P}\p{S}]/u,ra=/[\s\p{P}\p{S}]/u,Ji=/[^\s\p{P}\p{S}]/u,uA=be(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ra).getRegex(),Vc=/(?!~)[\p{P}\p{S}]/u,cA=/(?!~)[\s\p{P}\p{S}]/u,dA=/(?:[^\s\p{P}\p{S}]|~)/u,hA=be(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",G2?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),$c=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,mA=be($c,"u").replace(/punct/g,Cn).getRegex(),fA=be($c,"u").replace(/punct/g,Vc).getRegex(),Yc="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",pA=be(Yc,"gu").replace(/notPunctSpace/g,Ji).replace(/punctSpace/g,ra).replace(/punct/g,Cn).getRegex(),gA=be(Yc,"gu").replace(/notPunctSpace/g,dA).replace(/punctSpace/g,cA).replace(/punct/g,Vc).getRegex(),bA=be("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ji).replace(/punctSpace/g,ra).replace(/punct/g,Cn).getRegex(),EA=be(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Cn).getRegex(),TA="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",kA=be(TA,"gu").replace(/notPunctSpace/g,Ji).replace(/punctSpace/g,ra).replace(/punct/g,Cn).getRegex(),xA=be(/\\(punct)/,"gu").replace(/punct/g,Cn).getRegex(),yA=be(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),AA=be(Xi).replace("(?:-->|$)","-->").getRegex(),CA=be("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",AA).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Mr=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,_A=be(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Mr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Gc=be(/^!?\[(label)\]\[(ref)\]/).replace("label",Mr).replace("ref",Qi).getRegex(),Wc=be(/^!?\[(ref)\](?:\[\])?/).replace("ref",Qi).getRegex(),wA=be("reflink|nolink(?!\\()","g").replace("reflink",Gc).replace("nolink",Wc).getRegex(),qo=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,es={_backpedal:Wt,anyPunctuation:xA,autolink:yA,blockSkip:hA,br:qc,code:oA,del:Wt,delLDelim:Wt,delRDelim:Wt,emStrongLDelim:mA,emStrongRDelimAst:pA,emStrongRDelimUnd:bA,escape:sA,link:_A,nolink:Wc,punctuation:uA,reflink:Gc,reflinkSearch:wA,tag:CA,text:lA,url:Wt},SA={...es,link:be(/^!?\[(label)\]\((.*?)\)/).replace("label",Mr).getRegex(),reflink:be(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Mr).getRegex()},ti={...es,emStrongRDelimAst:gA,emStrongLDelim:fA,delLDelim:EA,delRDelim:kA,url:be(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",qo).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:be(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",qo).getRegex()},IA={...ti,br:be(qc).replace("{2,}","*").getRegex(),text:be(ti.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},kr={normal:Zi,gfm:aA,pedantic:iA},Mn={normal:es,gfm:ti,breaks:IA,pedantic:SA},vA={"&":"&","<":"<",">":">",'"':""","'":"'"},Vo=e=>vA[e];function bt(e,t){if(t){if(Ve.escapeTest.test(e))return e.replace(Ve.escapeReplace,Vo)}else if(Ve.escapeTestNoEncode.test(e))return e.replace(Ve.escapeReplaceNoEncode,Vo);return e}function $o(e){try{e=encodeURI(e).replace(Ve.percentDecode,"%")}catch{return null}return e}function Yo(e,t){let n=e.replace(Ve.findPipe,(i,s,o)=>{let l=!1,u=s;for(;--u>=0&&o[u]==="\\";)l=!l;return l?"|":" |"}),r=n.split(Ve.splitPipe),a=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;a<r.length;a++)r[a]=r[a].trim().replace(Ve.slashPipe,"|");return r}function Fn(e,t,n){let r=e.length;if(r===0)return"";let a=0;for(;a<r&&e.charAt(r-a-1)===t;)a++;return e.slice(0,r-a)}function NA(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]==="\\")r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function LA(e,t=0){let n=t,r="";for(let a of e)if(a===" "){let i=4-n%4;r+=" ".repeat(i),n+=i}else r+=a,n++;return r}function Go(e,t,n,r,a){let i=t.href,s=t.title||null,o=e[1].replace(a.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:e[0].charAt(0)==="!"?"image":"link",raw:n,href:i,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,l}function RA(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let a=r[1];return t.split(`
|
|
158
|
+
`).map(i=>{let s=i.match(n.other.beginningSpace);if(s===null)return i;let[o]=s;return o.length>=a.length?i.slice(a.length):i}).join(`
|
|
158
159
|
`)}var Fr=class{options;rules;lexer;constructor(e){this.options=e||on}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let n=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Fn(n,`
|
|
159
|
-
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=
|
|
160
|
+
`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let n=t[0],r=RA(n,t[3]||"",this.rules);return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(this.rules.other.endingHash.test(n)){let r=Fn(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:Fn(t[0],`
|
|
160
161
|
`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let n=Fn(t[0],`
|
|
161
162
|
`).split(`
|
|
162
|
-
`),r="",
|
|
163
|
+
`),r="",a="",i=[];for(;n.length>0;){let s=!1,o=[],l;for(l=0;l<n.length;l++)if(this.rules.other.blockquoteStart.test(n[l]))o.push(n[l]),s=!0;else if(!s)o.push(n[l]);else break;n=n.slice(l);let u=o.join(`
|
|
163
164
|
`),d=u.replace(this.rules.other.blockquoteSetextReplace,`
|
|
164
165
|
$1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
|
|
165
|
-
${u}`:u,
|
|
166
|
-
${d}`:d;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,
|
|
166
|
+
${u}`:u,a=a?`${a}
|
|
167
|
+
${d}`:d;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,i,!0),this.lexer.state.top=h,n.length===0)break;let p=i.at(-1);if(p?.type==="code")break;if(p?.type==="blockquote"){let f=p,g=f.raw+`
|
|
167
168
|
`+n.join(`
|
|
168
|
-
`),y=this.blockquote(g);
|
|
169
|
+
`),y=this.blockquote(g);i[i.length-1]=y,r=r.substring(0,r.length-f.raw.length)+y.raw,a=a.substring(0,a.length-f.text.length)+y.text;break}else if(p?.type==="list"){let f=p,g=f.raw+`
|
|
169
170
|
`+n.join(`
|
|
170
|
-
`),y=this.list(g);
|
|
171
|
-
`);continue}}return{type:"blockquote",raw:r,tokens:
|
|
171
|
+
`),y=this.list(g);i[i.length-1]=y,r=r.substring(0,r.length-p.raw.length)+y.raw,a=a.substring(0,a.length-f.raw.length)+y.raw,n=g.substring(i.at(-1).raw.length).split(`
|
|
172
|
+
`);continue}}return{type:"blockquote",raw:r,tokens:i,text:a}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,a={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let i=this.rules.other.listItemRegex(n),s=!1;for(;e;){let l=!1,u="",d="";if(!(t=i.exec(e))||this.rules.block.hr.test(e))break;u=t[0],e=e.substring(u.length);let h=LA(t[2].split(`
|
|
172
173
|
`,1)[0],t[1].length),p=e.split(`
|
|
173
174
|
`,1)[0],f=!h.trim(),g=0;if(this.options.pedantic?(g=2,d=h.trimStart()):f?g=t[1].length+1:(g=h.search(this.rules.other.nonSpaceChar),g=g>4?1:g,d=h.slice(g),g+=t[1].length),f&&this.rules.other.blankLine.test(p)&&(u+=p+`
|
|
174
|
-
`,e=e.substring(p.length+1),l=!0),!l){let y=this.rules.other.nextBulletRegex(g),
|
|
175
|
-
`,1)[0],I;if(p=
|
|
176
|
-
`+I.slice(g);else{if(f||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||x.test(h)||_.test(h)||
|
|
177
|
-
`+p}f=!p.trim(),u+=
|
|
178
|
-
`,e=e.substring(
|
|
179
|
-
`):[],
|
|
180
|
-
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let
|
|
181
|
-
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(Ve.tabCharGlobal," ").replace(Ve.spaceLine,""));t;){let
|
|
182
|
-
`:n.push(
|
|
175
|
+
`,e=e.substring(p.length+1),l=!0),!l){let y=this.rules.other.nextBulletRegex(g),w=this.rules.other.hrRegex(g),x=this.rules.other.fencesBeginRegex(g),_=this.rules.other.headingBeginRegex(g),A=this.rules.other.htmlBeginRegex(g),L=this.rules.other.blockquoteBeginRegex(g);for(;e;){let P=e.split(`
|
|
176
|
+
`,1)[0],I;if(p=P,this.options.pedantic?(p=p.replace(this.rules.other.listReplaceNesting," "),I=p):I=p.replace(this.rules.other.tabCharGlobal," "),x.test(p)||_.test(p)||A.test(p)||L.test(p)||y.test(p)||w.test(p))break;if(I.search(this.rules.other.nonSpaceChar)>=g||!p.trim())d+=`
|
|
177
|
+
`+I.slice(g);else{if(f||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||x.test(h)||_.test(h)||w.test(h))break;d+=`
|
|
178
|
+
`+p}f=!p.trim(),u+=P+`
|
|
179
|
+
`,e=e.substring(P.length+1),h=I.slice(g)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(s=!0)),a.items.push({type:"list_item",raw:u,task:!!this.options.gfm&&this.rules.other.listIsTask.test(d),loose:!1,text:d,tokens:[]}),a.raw+=u}let o=a.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let l of a.items){if(this.lexer.state.top=!1,l.tokens=this.lexer.blockTokens(l.text,[]),l.task){if(l.text=l.text.replace(this.rules.other.listReplaceTask,""),l.tokens[0]?.type==="text"||l.tokens[0]?.type==="paragraph"){l.tokens[0].raw=l.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),l.tokens[0].text=l.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let d=this.lexer.inlineQueue.length-1;d>=0;d--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[d].src)){this.lexer.inlineQueue[d].src=this.lexer.inlineQueue[d].src.replace(this.rules.other.listReplaceTask,"");break}}let u=this.rules.other.listTaskCheckbox.exec(l.raw);if(u){let d={type:"checkbox",raw:u[0]+" ",checked:u[0]!=="[ ]"};l.checked=d.checked,a.loose?l.tokens[0]&&["paragraph","text"].includes(l.tokens[0].type)&&"tokens"in l.tokens[0]&&l.tokens[0].tokens?(l.tokens[0].raw=d.raw+l.tokens[0].raw,l.tokens[0].text=d.raw+l.tokens[0].text,l.tokens[0].tokens.unshift(d)):l.tokens.unshift({type:"paragraph",raw:d.raw,text:d.raw,tokens:[d]}):l.tokens.unshift(d)}}if(!a.loose){let u=l.tokens.filter(h=>h.type==="space"),d=u.length>0&&u.some(h=>this.rules.other.anyLine.test(h.raw));a.loose=d}}if(a.loose)for(let l of a.items){l.loose=!0;for(let u of l.tokens)u.type==="text"&&(u.type="paragraph")}return a}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let n=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:a}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Yo(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(`
|
|
180
|
+
`):[],i={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let s of r)this.rules.other.tableAlignRight.test(s)?i.align.push("right"):this.rules.other.tableAlignCenter.test(s)?i.align.push("center"):this.rules.other.tableAlignLeft.test(s)?i.align.push("left"):i.align.push(null);for(let s=0;s<n.length;s++)i.header.push({text:n[s],tokens:this.lexer.inline(n[s]),header:!0,align:i.align[s]});for(let s of a)i.rows.push(Yo(s,i.header.length).map((o,l)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:i.align[l]})));return i}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let n=t[1].trim();return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let n=t[1].charAt(t[1].length-1)===`
|
|
181
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let n=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let i=Fn(n.slice(0,-1),"\\");if((n.length-i.length)%2===0)return}else{let i=NA(t[2],"()");if(i===-2)return;if(i>-1){let s=(t[0].indexOf("!")===0?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,s).trim(),t[3]=""}}let r=t[2],a="";if(this.options.pedantic){let i=this.rules.other.pedanticHrefTitle.exec(r);i&&(r=i[1],a=i[3])}else a=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),Go(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=t[r.toLowerCase()];if(!a){let i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return Go(n,a,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let a=[...r[0]].length-1,i,s,o=a,l=0,u=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+a);(r=u.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(s=[...i].length,r[3]||r[4]){o+=s;continue}else if((r[5]||r[6])&&a%3&&!((a+s)%3)){l+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o+l);let d=[...r[0]][0].length,h=e.slice(0,a+r.index+d+s);if(Math.min(a,s)%2){let f=h.slice(1,-1);return{type:"em",raw:h,text:f,tokens:this.lexer.inlineTokens(f)}}let p=h.slice(2,-2);return{type:"strong",raw:h,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),a=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&a&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:t[0],text:n}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let a=[...r[0]].length-1,i,s,o=a,l=this.rules.inline.delRDelim;for(l.lastIndex=0,t=t.slice(-1*e.length+a);(r=l.exec(t))!==null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i||(s=[...i].length,s!==a))continue;if(r[3]||r[4]){o+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o);let u=[...r[0]][0].length,d=e.slice(0,a+r.index+u+s),h=d.slice(a,-a);return{type:"del",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let n,r;return t[2]==="@"?(n=t[1],r="mailto:"+n):(n=t[1],r=n),{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let n,r;if(t[2]==="@")n=t[0],r="mailto:"+n;else{let a;do a=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(a!==t[0]);n=t[0],t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let n=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:n}}}},st=class ni{tokens;options;state;inlineQueue;tokenizer;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||on,this.options.tokenizer=this.options.tokenizer||new Fr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:Ve,block:kr.normal,inline:Mn.normal};this.options.pedantic?(n.block=kr.pedantic,n.inline=Mn.pedantic):this.options.gfm&&(n.block=kr.gfm,this.options.breaks?n.inline=Mn.breaks:n.inline=Mn.gfm),this.tokenizer.rules=n}static get rules(){return{block:kr,inline:Mn}}static lex(t,n){return new ni(n).lex(t)}static lexInline(t,n){return new ni(n).inlineTokens(t)}lex(t){t=t.replace(Ve.carriageReturn,`
|
|
182
|
+
`),this.blockTokens(t,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,n=[],r=!1){for(this.tokenizer.lexer=this,this.options.pedantic&&(t=t.replace(Ve.tabCharGlobal," ").replace(Ve.spaceLine,""));t;){let a;if(this.options.extensions?.block?.some(s=>(a=s.call({lexer:this},t,n))?(t=t.substring(a.raw.length),n.push(a),!0):!1))continue;if(a=this.tokenizer.space(t)){t=t.substring(a.raw.length);let s=n.at(-1);a.raw.length===1&&s!==void 0?s.raw+=`
|
|
183
|
+
`:n.push(a);continue}if(a=this.tokenizer.code(t)){t=t.substring(a.raw.length);let s=n.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
183
184
|
`)?"":`
|
|
184
|
-
`)+
|
|
185
|
-
`+
|
|
185
|
+
`)+a.raw,s.text+=`
|
|
186
|
+
`+a.text,this.inlineQueue.at(-1).src=s.text):n.push(a);continue}if(a=this.tokenizer.fences(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.heading(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.hr(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.blockquote(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.list(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.html(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.def(t)){t=t.substring(a.raw.length);let s=n.at(-1);s?.type==="paragraph"||s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
186
187
|
`)?"":`
|
|
187
|
-
`)+
|
|
188
|
-
`+
|
|
188
|
+
`)+a.raw,s.text+=`
|
|
189
|
+
`+a.raw,this.inlineQueue.at(-1).src=s.text):this.tokens.links[a.tag]||(this.tokens.links[a.tag]={href:a.href,title:a.title},n.push(a));continue}if(a=this.tokenizer.table(t)){t=t.substring(a.raw.length),n.push(a);continue}if(a=this.tokenizer.lheading(t)){t=t.substring(a.raw.length),n.push(a);continue}let i=t;if(this.options.extensions?.startBlock){let s=1/0,o=t.slice(1),l;this.options.extensions.startBlock.forEach(u=>{l=u.call({lexer:this},o),typeof l=="number"&&l>=0&&(s=Math.min(s,l))}),s<1/0&&s>=0&&(i=t.substring(0,s+1))}if(this.state.top&&(a=this.tokenizer.paragraph(i))){let s=n.at(-1);r&&s?.type==="paragraph"?(s.raw+=(s.raw.endsWith(`
|
|
189
190
|
`)?"":`
|
|
190
|
-
`)+
|
|
191
|
-
`+
|
|
191
|
+
`)+a.raw,s.text+=`
|
|
192
|
+
`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.push(a),r=i.length!==t.length,t=t.substring(a.raw.length);continue}if(a=this.tokenizer.text(t)){t=t.substring(a.raw.length);let s=n.at(-1);s?.type==="text"?(s.raw+=(s.raw.endsWith(`
|
|
192
193
|
`)?"":`
|
|
193
|
-
`)+
|
|
194
|
-
`+
|
|
195
|
-
`;return r?'<pre><code class="language-'+bt(r)+'">'+(n?
|
|
196
|
-
`:"<pre><code>"+(n?
|
|
194
|
+
`)+a.raw,s.text+=`
|
|
195
|
+
`+a.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=s.text):n.push(a);continue}if(t){let s="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(s);break}else throw new Error(s)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){this.tokenizer.lexer=this;let r=t,a=null;if(this.tokens.links){let l=Object.keys(this.tokens.links);if(l.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(r))!==null;)l.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,a.index)+"["+"a".repeat(a[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.anyPunctuation.exec(r))!==null;)r=r.slice(0,a.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(a=this.tokenizer.rules.inline.blockSkip.exec(r))!==null;)i=a[2]?a[2].length:0,r=r.slice(0,a.index+i)+"["+"a".repeat(a[0].length-i-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let s=!1,o="";for(;t;){s||(o=""),s=!1;let l;if(this.options.extensions?.inline?.some(d=>(l=d.call({lexer:this},t,n))?(t=t.substring(l.raw.length),n.push(l),!0):!1))continue;if(l=this.tokenizer.escape(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.tag(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.link(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(l.raw.length);let d=n.at(-1);l.type==="text"&&d?.type==="text"?(d.raw+=l.raw,d.text+=l.text):n.push(l);continue}if(l=this.tokenizer.emStrong(t,r,o)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.codespan(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.br(t)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.del(t,r,o)){t=t.substring(l.raw.length),n.push(l);continue}if(l=this.tokenizer.autolink(t)){t=t.substring(l.raw.length),n.push(l);continue}if(!this.state.inLink&&(l=this.tokenizer.url(t))){t=t.substring(l.raw.length),n.push(l);continue}let u=t;if(this.options.extensions?.startInline){let d=1/0,h=t.slice(1),p;this.options.extensions.startInline.forEach(f=>{p=f.call({lexer:this},h),typeof p=="number"&&p>=0&&(d=Math.min(d,p))}),d<1/0&&d>=0&&(u=t.substring(0,d+1))}if(l=this.tokenizer.inlineText(u)){t=t.substring(l.raw.length),l.raw.slice(-1)!=="_"&&(o=l.raw.slice(-1)),s=!0;let d=n.at(-1);d?.type==="text"?(d.raw+=l.raw,d.text+=l.text):n.push(l);continue}if(t){let d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return n}},Br=class{options;parser;constructor(e){this.options=e||on}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(Ve.notSpaceStart)?.[0],a=e.replace(Ve.endingNewline,"")+`
|
|
196
|
+
`;return r?'<pre><code class="language-'+bt(r)+'">'+(n?a:bt(a,!0))+`</code></pre>
|
|
197
|
+
`:"<pre><code>"+(n?a:bt(a,!0))+`</code></pre>
|
|
197
198
|
`}blockquote({tokens:e}){return`<blockquote>
|
|
198
199
|
${this.parser.parse(e)}</blockquote>
|
|
199
200
|
`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
|
|
200
201
|
`}hr(e){return`<hr>
|
|
201
|
-
`}list(e){let t=e.ordered,n=e.start,r="";for(let s=0;s<e.items.length;s++){let o=e.items[s];r+=this.listitem(o)}let
|
|
202
|
-
`+r+"</"+
|
|
202
|
+
`}list(e){let t=e.ordered,n=e.start,r="";for(let s=0;s<e.items.length;s++){let o=e.items[s];r+=this.listitem(o)}let a=t?"ol":"ul",i=t&&n!==1?' start="'+n+'"':"";return"<"+a+i+`>
|
|
203
|
+
`+r+"</"+a+`>
|
|
203
204
|
`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>
|
|
204
205
|
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
|
|
205
|
-
`}table(e){let t="",n="";for(let
|
|
206
|
+
`}table(e){let t="",n="";for(let a=0;a<e.header.length;a++)n+=this.tablecell(e.header[a]);t+=this.tablerow({text:n});let r="";for(let a=0;a<e.rows.length;a++){let i=e.rows[a];n="";for(let s=0;s<i.length;s++)n+=this.tablecell(i[s]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
|
|
206
207
|
<thead>
|
|
207
208
|
`+t+`</thead>
|
|
208
209
|
`+r+`</table>
|
|
209
210
|
`}tablerow({text:e}){return`<tr>
|
|
210
211
|
${e}</tr>
|
|
211
212
|
`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
212
|
-
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${bt(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),
|
|
213
|
-
Please report this to https://github.com/markedjs/marked.`,t){let
|
|
214
|
-
`:y.map((x,_)=>{let A={},L=!!x.bgColor;if(x.color&&(A["--sdm-c"]=x.color),x.bgColor&&(A["--sdm-tbg"]=x.bgColor),x.htmlStyle)for(let[
|
|
215
|
-
`;)t--;return e.slice(0,t)},
|
|
216
|
-
`).map(p=>[{content:p,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[d]);return m.jsx(sd.Provider,{value:{code:e},children:m.jsxs(iC,{dir:"ltr",isIncomplete:i,language:t,children:[m.jsx(aC,{language:t}),r?m.jsx("div",{className:l("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:m.jsx("div",{className:l("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"code-block-actions",children:r})}):null,m.jsx(b.Suspense,{fallback:m.jsx(ad,{className:n,language:t,lineNumbers:s,maxHeight:u,result:h,startLine:a,...o}),children:m.jsx(oC,{className:n,code:d,language:t,lineNumbers:s,maxHeight:u,raw:h,startLine:a,...o})})]})})},uC=e=>m.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:m.jsx("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),cC=e=>m.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:m.jsx("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),dC=e=>m.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:m.jsx("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),hC=e=>m.jsxs("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[m.jsx("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),mC=e=>m.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:m.jsx("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),fC=e=>m.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:m.jsx("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),pC=e=>m.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:m.jsx("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),gC=e=>m.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:m.jsx("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),bC=e=>m.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:m.jsx("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),EC=e=>m.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:m.jsx("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),Hn={CheckIcon:uC,CopyIcon:cC,DownloadIcon:dC,ExternalLinkIcon:gC,Loader2Icon:hC,Maximize2Icon:mC,RotateCcwIcon:fC,XIcon:pC,ZoomInIcon:bC,ZoomOutIcon:EC},ld=b.createContext(Hn),TC=(e,t)=>{if(e===t)return!0;if(!(e&&t))return e===t;let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(i=>e[i]===t[i])},Qo=({icons:e,children:t})=>{let n=b.useRef(e),r=b.useRef(e?{...Hn,...e}:Hn);TC(n.current,e)||(n.current=e,r.current=e?{...Hn,...e}:Hn);let i=r.current;return m.jsx(ld.Provider,{value:i,children:t})},mt=()=>b.useContext(ld),ud={copyCode:"Copy Code",downloadFile:"Download file",downloadDiagram:"Download diagram",downloadDiagramAsSvg:"Download diagram as SVG",downloadDiagramAsPng:"Download diagram as PNG",downloadDiagramAsMmd:"Download diagram as MMD",viewFullscreen:"View fullscreen",exitFullscreen:"Exit fullscreen",mermaidFormatSvg:"SVG",mermaidFormatPng:"PNG",mermaidFormatMmd:"MMD",zoomIn:"Zoom in",zoomOut:"Zoom out",resetView:"Reset zoom and pan",copyTable:"Copy table",copyTableAsMarkdown:"Copy table as Markdown",copyTableAsCsv:"Copy table as CSV",copyTableAsTsv:"Copy table as TSV",downloadTable:"Download table",downloadTableAsCsv:"Download table as CSV",downloadTableAsMarkdown:"Download table as Markdown",tableFormatMarkdown:"Markdown",tableFormatCsv:"CSV",tableFormatTsv:"TSV",imageNotAvailable:"Image not available",downloadImage:"Download image",openExternalLink:"Open external link?",externalLinkWarning:"You're about to visit an external website.",close:"Close",copyLink:"Copy link",copied:"Copied",openLink:"Open link"},sa=b.createContext(ud),At=()=>b.useContext(sa),oa=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:i,code:a,...s})=>{let o=le(),[l,u]=b.useState(!1),d=b.useRef(0),{code:h}=od(),{isAnimating:p}=b.useContext(Be),f=At(),g=a??h,y=async()=>{var _;if(typeof window>"u"||!((_=navigator?.clipboard)!=null&&_.writeText)){t?.(new Error("Clipboard API not available"));return}try{l||(await navigator.clipboard.writeText(g),u(!0),e?.(),d.current=window.setTimeout(()=>u(!1),n))}catch(A){t?.(A)}};b.useEffect(()=>()=>{window.clearTimeout(d.current)},[]);let S=mt(),x=l?S.CheckIcon:S.CopyIcon;return m.jsxs(m.Fragment,{children:[m.jsx("button",{"aria-label":f.copyCode,className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-copy-button",disabled:p,onClick:y,title:f.copyCode,type:"button",...s,children:r??m.jsx(x,{"aria-hidden":"true",size:14})}),l&&m.jsx("output",{"aria-live":"polite",className:"sr-only",children:f.copied})]})},is=(e,t,n)=>{if(typeof e=="boolean")return n;let r=e[t];if(typeof r!="object")return n;let i=r.download;return typeof i!="object"?n:i.filename||n},Xo={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},kC=({onDownload:e,onError:t,language:n,children:r,className:i,code:a,...s})=>{let o=le(),{code:l}=od(),{isAnimating:u,controls:d}=b.useContext(Be),h=At(),p=mt(),f=a??l,g=n&&n in Xo?Xo[n]:"txt",y=`${is(d,"code","file")}.${g}`,S="text/plain",x=()=>{try{mn(y,f,S),e?.()}catch(_){t?.(_)}};return m.jsx("button",{"aria-label":h.downloadFile,className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),"data-streamdown":"code-block-download-button",disabled:u,onClick:x,title:h.downloadFile,type:"button",...s,children:r??m.jsx(p.DownloadIcon,{size:14})})},Zo=()=>{let{Loader2Icon:e}=mt(),t=le();return m.jsxs("div",{className:t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),children:[m.jsx("div",{className:t("h-[46px] w-full bg-muted/80")}),m.jsx("div",{className:t("flex w-full items-center justify-center p-4"),children:m.jsx(e,{className:t("size-4 animate-spin")})})]})},xC=/\.[^/.]+$/,yC=({node:e,className:t,src:n,alt:r,onLoad:i,onError:a,showControls:s=!0,showDownloadControl:o=!0,...l})=>{let{DownloadIcon:u}=mt(),d=le(),h=b.useRef(null),[p,f]=b.useState(!1),[g,y]=b.useState(!1),S=At(),x=l.width!=null||l.height!=null,_=(p||x)&&!g&&s&&o,A=g&&!x;b.useEffect(()=>{let P=h.current;if(P!=null&&P.complete){let R=P.naturalWidth>0;f(R),y(!R)}},[]);let L=b.useCallback(P=>{f(!0),y(!1),i?.(P)},[i]),D=b.useCallback(P=>{f(!1),y(!0),a?.(P)},[a]),I=async()=>{if(n)try{let P=await(await fetch(n)).blob(),R=new URL(n,window.location.origin).pathname.split("/").pop()||"",z=R.split(".").pop(),N=R.includes(".")&&z!==void 0&&z.length<=4,O="";if(N)O=R;else{let j=P.type,W="png";j.includes("jpeg")||j.includes("jpg")?W="jpg":j.includes("png")?W="png":j.includes("svg")?W="svg":j.includes("gif")?W="gif":j.includes("webp")&&(W="webp"),O=`${(r||R||"image").replace(xC,"")}.${W}`}mn(O,P,P.type)}catch{window.open(n,"_blank")}};return n?m.jsxs("div",{className:d("group relative my-4 inline-block"),"data-streamdown":"image-wrapper",children:[m.jsx("img",{alt:r,className:d("max-w-full rounded-lg",A&&"hidden",t),"data-streamdown":"image",onError:D,onLoad:L,ref:h,src:n,...l}),A&&m.jsx("span",{className:d("text-muted-foreground text-xs italic"),"data-streamdown":"image-fallback",children:S.imageNotAvailable}),s&&m.jsx("div",{className:d("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"),"data-streamdown":"image-overlay"}),_&&m.jsx("button",{className:d("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:I,title:S.downloadImage,type:"button",children:m.jsx(u,{size:14})})]}):null},Xn=0,as=()=>{Xn+=1,Xn===1&&(document.body.style.overflow="hidden")},ss=()=>{Xn=Math.max(0,Xn-1),Xn===0&&(document.body.style.overflow="")},AC=({url:e,isOpen:t,onClose:n,onConfirm:r})=>{let{CheckIcon:i,CopyIcon:a,ExternalLinkIcon:s,XIcon:o}=mt(),l=le(),[u,d]=b.useState(!1),h=At(),p=b.useCallback(async()=>{try{await navigator.clipboard.writeText(e),d(!0),setTimeout(()=>d(!1),2e3)}catch{}},[e]),f=b.useCallback(()=>{r(),n()},[r,n]);if(b.useEffect(()=>{if(t){as();let y=S=>{S.key==="Escape"&&n()};return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y),ss()}}},[t,n]),!t||typeof document>"u")return null;let g=m.jsx("div",{className:l("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),"data-streamdown":"link-safety-modal",onClick:n,onKeyDown:y=>{y.key==="Escape"&&n()},role:"button",tabIndex:0,children:m.jsxs("div",{className:l("relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg"),onClick:y=>y.stopPropagation(),onKeyDown:y=>y.stopPropagation(),role:"presentation",children:[m.jsx("button",{className:l("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:n,title:h.close,type:"button",children:m.jsx(o,{size:16})}),m.jsxs("div",{className:l("flex flex-col gap-2"),children:[m.jsxs("div",{className:l("flex items-center gap-2 font-semibold text-lg"),children:[m.jsx(s,{size:20}),m.jsx("span",{children:h.openExternalLink})]}),m.jsx("p",{className:l("text-muted-foreground text-sm"),children:h.externalLinkWarning})]}),m.jsx("div",{className:l("break-all rounded-md bg-muted p-3 font-mono text-sm",e.length>100&&"max-h-32 overflow-y-auto"),children:e}),m.jsxs("div",{className:l("flex gap-2"),children:[m.jsx("button",{className:l("flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted"),onClick:p,type:"button",children:u?m.jsxs(m.Fragment,{children:[m.jsx(i,{size:14}),m.jsx("span",{children:h.copied})]}):m.jsxs(m.Fragment,{children:[m.jsx(a,{size:14}),m.jsx("span",{children:h.copyLink})]})}),m.jsxs("button",{className:l("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90"),onClick:f,type:"button",children:[m.jsx(s,{size:14}),m.jsx("span",{children:h.openLink})]})]})]})});return fa.createPortal(g,document.body)},la=b.createContext(null),os=()=>b.useContext(la),CC=()=>{var e;let t=os();return(e=t?.code)!=null?e:null},ls=()=>{var e;let t=os();return(e=t?.mermaid)!=null?e:null},_C=e=>{var t;let n=os();return n!=null&&n.renderers&&e&&(t=n.renderers.find(r=>Array.isArray(r.language)?r.language.includes(e):r.language===e))!=null?t:null},SC=e=>{if(typeof DOMParser>"u"||typeof XMLSerializer>"u")return e;let t=new DOMParser().parseFromString(e,"text/html").querySelector("svg");return t?new XMLSerializer().serializeToString(t):e},wC=(e,t)=>{var n;let r=(n=void 0)!=null?n:5;return new Promise((i,a)=>{let s="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),o=new Image;o.crossOrigin="anonymous",o.onload=()=>{let l=document.createElement("canvas"),u=o.width*r,d=o.height*r;l.width=u,l.height=d;let h=l.getContext("2d");if(!h){a(new Error("Failed to create 2D canvas context for PNG export"));return}h.drawImage(o,0,0,u,d),l.toBlob(p=>{if(!p){a(new Error("Failed to create PNG blob"));return}i(p)},"image/png")},o.onerror=()=>a(new Error("Failed to load SVG image")),o.src=s})},cd=({chart:e,children:t,className:n,onDownload:r,config:i,onError:a})=>{let s=le(),[o,l]=b.useState(!1),u=b.useRef(null),{isAnimating:d,controls:h}=b.useContext(Be),p=mt(),f=ls(),g=At(),y=is(h,"mermaid","diagram"),S=async x=>{try{if(x==="mmd"){let P=`${y}.mmd`;mn(P,e,"text/plain"),l(!1),r?.(x);return}if(!f){a?.(new Error("Mermaid plugin not available"));return}let _=f.getMermaid(i),A=e.split("").reduce((P,R)=>(P<<5)-P+R.charCodeAt(0)|0,0),L=`mermaid-${Math.abs(A)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:D}=await _.render(L,e);if(!D){a?.(new Error("SVG not found. Please wait for the diagram to render."));return}let I=SC(D);if(x==="svg"){let P=`${y}.svg`;mn(P,I,"image/svg+xml"),l(!1),r?.(x);return}if(x==="png"){let P=await wC(I);mn(`${y}.png`,P,"image/png"),r?.(x),l(!1);return}}catch(_){a?.(_)}};return b.useEffect(()=>{let x=_=>{let A=_.composedPath();u.current&&!A.includes(u.current)&&l(!1)};return document.addEventListener("mousedown",x),()=>{document.removeEventListener("mousedown",x)}},[]),m.jsxs("div",{className:s("relative"),ref:u,children:[m.jsx("button",{"aria-label":g.downloadDiagram,className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:d,onClick:()=>l(!o),title:g.downloadDiagram,type:"button",children:t??m.jsx(p.DownloadIcon,{"aria-hidden":"true",size:14})}),o?m.jsxs("div",{className:s("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[m.jsx("button",{"aria-label":g.downloadDiagramAsSvg,className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>S("svg"),title:g.downloadDiagramAsSvg,type:"button",children:g.mermaidFormatSvg}),m.jsx("button",{"aria-label":g.downloadDiagramAsPng,className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>S("png"),title:g.downloadDiagramAsPng,type:"button",children:g.mermaidFormatPng}),m.jsx("button",{"aria-label":g.downloadDiagramAsMmd,className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>S("mmd"),title:g.downloadDiagramAsMmd,type:"button",children:g.mermaidFormatMmd})]}):null]})},IC=({chart:e,config:t,onFullscreen:n,onExit:r,className:i,...a})=>{let{Maximize2Icon:s,XIcon:o}=mt(),l=le(),[u,d]=b.useState(!1),{isAnimating:h,controls:p}=b.useContext(Be),f=At(),g=(()=>{if(typeof p=="boolean")return p;let _=p.mermaid;return _===!1?!1:_===!0||_===void 0?!0:_.panZoom!==!1})(),y=(()=>{if(typeof p=="boolean")return p;let _=p.mermaid;return _===!1?!1:_===!0||_===void 0?!0:_.download!==!1})(),S=(()=>{if(typeof p=="boolean")return p;let _=p.mermaid;return _===!1?!1:_===!0||_===void 0?!0:_.copy!==!1})(),x=()=>{d(!u)};return b.useEffect(()=>{if(u){as();let _=A=>{A.key==="Escape"&&d(!1)};return document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_),ss()}}},[u]),b.useEffect(()=>{u?n?.():r&&r()},[u,n,r]),m.jsxs(m.Fragment,{children:[m.jsx("button",{className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",i),disabled:h,onClick:x,title:f.viewFullscreen,type:"button",...a,"aria-label":f.viewFullscreen,children:m.jsx(s,{"aria-hidden":"true",size:14})}),u?fa.createPortal(m.jsxs("div",{"aria-label":f.viewFullscreen,"aria-modal":"true",className:l("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),"data-streamdown":"mermaid-fullscreen",onClick:x,onKeyDown:_=>{_.key==="Escape"&&x()},role:"dialog",children:[m.jsxs("div",{className:l("absolute top-4 right-4 z-10 flex items-center gap-1"),onClick:_=>_.stopPropagation(),onKeyDown:_=>_.stopPropagation(),role:"presentation",children:[y?m.jsx(cd,{chart:e,config:t}):null,S?m.jsx(oa,{code:e}):null,m.jsx("button",{"aria-label":f.exitFullscreen,className:l("rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:x,title:f.exitFullscreen,type:"button",children:m.jsx(o,{"aria-hidden":"true",size:20})})]}),m.jsx("div",{className:l("flex size-full items-center justify-center p-4"),onClick:_=>_.stopPropagation(),onKeyDown:_=>_.stopPropagation(),role:"presentation",children:m.jsx(Qd,{chart:e,className:l("size-full [&_svg]:h-auto [&_svg]:w-auto"),config:t,fullscreen:!0,showControls:g})})]}),document.body):null]})};function ua(e){var t;if(e.nodeType===Node.TEXT_NODE)return(t=e.textContent)!=null?t:"";if(e.nodeType!==Node.ELEMENT_NODE)return"";let n=e;return n.tagName==="BR"?`
|
|
217
|
-
`:Array.from(n.childNodes).map(
|
|
218
|
-
`||h==="\r"){d=!0;break}return d?`"${u.replace(/"/g,'""')}"`:u},s=r.length>0?
|
|
213
|
+
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${bt(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),a=$o(e);if(a===null)return r;e=a;let i='<a href="'+e+'"';return t&&(i+=' title="'+bt(t)+'"'),i+=">"+r+"</a>",i}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let a=$o(e);if(a===null)return bt(n);e=a;let i=`<img src="${e}" alt="${bt(n)}"`;return t&&(i+=` title="${bt(t)}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:bt(e.text)}},ts=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},ut=class ri{options;renderer;textRenderer;constructor(t){this.options=t||on,this.options.renderer=this.options.renderer||new Br,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ts}static parse(t,n){return new ri(n).parse(t)}static parseInline(t,n){return new ri(n).parseInline(t)}parse(t){this.renderer.parser=this;let n="";for(let r=0;r<t.length;r++){let a=t[r];if(this.options.extensions?.renderers?.[a.type]){let s=a,o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){n+=o||"";continue}}let i=a;switch(i.type){case"space":{n+=this.renderer.space(i);break}case"hr":{n+=this.renderer.hr(i);break}case"heading":{n+=this.renderer.heading(i);break}case"code":{n+=this.renderer.code(i);break}case"table":{n+=this.renderer.table(i);break}case"blockquote":{n+=this.renderer.blockquote(i);break}case"list":{n+=this.renderer.list(i);break}case"checkbox":{n+=this.renderer.checkbox(i);break}case"html":{n+=this.renderer.html(i);break}case"def":{n+=this.renderer.def(i);break}case"paragraph":{n+=this.renderer.paragraph(i);break}case"text":{n+=this.renderer.text(i);break}default:{let s='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(t,n=this.renderer){this.renderer.parser=this;let r="";for(let a=0;a<t.length;a++){let i=t[a];if(this.options.extensions?.renderers?.[i.type]){let o=this.options.extensions.renderers[i.type].call({parser:this},i);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=o||"";continue}}let s=i;switch(s.type){case"escape":{r+=n.text(s);break}case"html":{r+=n.html(s);break}case"link":{r+=n.link(s);break}case"image":{r+=n.image(s);break}case"checkbox":{r+=n.checkbox(s);break}case"strong":{r+=n.strong(s);break}case"em":{r+=n.em(s);break}case"codespan":{r+=n.codespan(s);break}case"br":{r+=n.br(s);break}case"del":{r+=n.del(s);break}case"text":{r+=n.text(s);break}default:{let o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}},jn=class{options;block;constructor(e){this.options=e||on}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?st.lex:st.lexInline}provideParser(e=this.block){return e?ut.parse:ut.parseInline}},DA=class{defaults=Gi();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ut;Renderer=Br;TextRenderer=ts;Lexer=st;Tokenizer=Fr;Hooks=jn;constructor(...t){this.use(...t)}walkTokens(t,n){let r=[];for(let a of t)switch(r=r.concat(n.call(this,a)),a.type){case"table":{let i=a;for(let s of i.header)r=r.concat(this.walkTokens(s.tokens,n));for(let s of i.rows)for(let o of s)r=r.concat(this.walkTokens(o.tokens,n));break}case"list":{let i=a;r=r.concat(this.walkTokens(i.items,n));break}default:{let i=a;this.defaults.extensions?.childTokens?.[i.type]?this.defaults.extensions.childTokens[i.type].forEach(s=>{let o=i[s].flat(1/0);r=r.concat(this.walkTokens(o,n))}):i.tokens&&(r=r.concat(this.walkTokens(i.tokens,n)))}}return r}use(...t){let n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{let a={...r};if(a.async=this.defaults.async||a.async||!1,r.extensions&&(r.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){let s=n.renderers[i.name];s?n.renderers[i.name]=function(...o){let l=i.renderer.apply(this,o);return l===!1&&(l=s.apply(this,o)),l}:n.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let s=n[i.level];s?s.unshift(i.tokenizer):n[i.level]=[i.tokenizer],i.start&&(i.level==="block"?n.startBlock?n.startBlock.push(i.start):n.startBlock=[i.start]:i.level==="inline"&&(n.startInline?n.startInline.push(i.start):n.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(n.childTokens[i.name]=i.childTokens)}),a.extensions=n),r.renderer){let i=this.defaults.renderer||new Br(this.defaults);for(let s in r.renderer){if(!(s in i))throw new Error(`renderer '${s}' does not exist`);if(["options","parser"].includes(s))continue;let o=s,l=r.renderer[o],u=i[o];i[o]=(...d)=>{let h=l.apply(i,d);return h===!1&&(h=u.apply(i,d)),h||""}}a.renderer=i}if(r.tokenizer){let i=this.defaults.tokenizer||new Fr(this.defaults);for(let s in r.tokenizer){if(!(s in i))throw new Error(`tokenizer '${s}' does not exist`);if(["options","rules","lexer"].includes(s))continue;let o=s,l=r.tokenizer[o],u=i[o];i[o]=(...d)=>{let h=l.apply(i,d);return h===!1&&(h=u.apply(i,d)),h}}a.tokenizer=i}if(r.hooks){let i=this.defaults.hooks||new jn;for(let s in r.hooks){if(!(s in i))throw new Error(`hook '${s}' does not exist`);if(["options","block"].includes(s))continue;let o=s,l=r.hooks[o],u=i[o];jn.passThroughHooks.has(s)?i[o]=d=>{if(this.defaults.async&&jn.passThroughHooksRespectAsync.has(s))return(async()=>{let p=await l.call(i,d);return u.call(i,p)})();let h=l.call(i,d);return u.call(i,h)}:i[o]=(...d)=>{if(this.defaults.async)return(async()=>{let p=await l.apply(i,d);return p===!1&&(p=await u.apply(i,d)),p})();let h=l.apply(i,d);return h===!1&&(h=u.apply(i,d)),h}}a.hooks=i}if(r.walkTokens){let i=this.defaults.walkTokens,s=r.walkTokens;a.walkTokens=function(o){let l=[];return l.push(s.call(this,o)),i&&(l=l.concat(i.call(this,o))),l}}this.defaults={...this.defaults,...a}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return st.lex(t,n??this.defaults)}parser(t,n){return ut.parse(t,n??this.defaults)}parseMarkdown(t){return(n,r)=>{let a={...r},i={...this.defaults,...a},s=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&a.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=t),i.async)return(async()=>{let o=i.hooks?await i.hooks.preprocess(n):n,l=await(i.hooks?await i.hooks.provideLexer(t):t?st.lex:st.lexInline)(o,i),u=i.hooks?await i.hooks.processAllTokens(l):l;i.walkTokens&&await Promise.all(this.walkTokens(u,i.walkTokens));let d=await(i.hooks?await i.hooks.provideParser(t):t?ut.parse:ut.parseInline)(u,i);return i.hooks?await i.hooks.postprocess(d):d})().catch(s);try{i.hooks&&(n=i.hooks.preprocess(n));let o=(i.hooks?i.hooks.provideLexer(t):t?st.lex:st.lexInline)(n,i);i.hooks&&(o=i.hooks.processAllTokens(o)),i.walkTokens&&this.walkTokens(o,i.walkTokens);let l=(i.hooks?i.hooks.provideParser(t):t?ut.parse:ut.parseInline)(o,i);return i.hooks&&(l=i.hooks.postprocess(l)),l}catch(o){return s(o)}}}onError(t,n){return r=>{if(r.message+=`
|
|
214
|
+
Please report this to https://github.com/markedjs/marked.`,t){let a="<p>An error occurred:</p><pre>"+bt(r.message+"",!0)+"</pre>";return n?Promise.resolve(a):a}if(n)return Promise.reject(r);throw r}}},tn=new DA;function Ae(e,t){return tn.parse(e,t)}Ae.options=Ae.setOptions=function(e){return tn.setOptions(e),Ae.defaults=tn.defaults,zc(Ae.defaults),Ae};Ae.getDefaults=Gi;Ae.defaults=on;Ae.use=function(...e){return tn.use(...e),Ae.defaults=tn.defaults,zc(Ae.defaults),Ae};Ae.walkTokens=function(e,t){return tn.walkTokens(e,t)};Ae.parseInline=tn.parseInline;Ae.Parser=ut;Ae.parser=ut.parse;Ae.Renderer=Br;Ae.TextRenderer=ts;Ae.Lexer=st;Ae.lexer=st.lex;Ae.Tokenizer=Fr;Ae.Hooks=jn;Ae.parse=Ae;Ae.options;Ae.setOptions;Ae.use;Ae.walkTokens;Ae.parseInline;ut.parse;st.lex;var PA=300,OA="300px",MA=500;function FA(e={}){let{immediate:t=!1,debounceDelay:n=PA,rootMargin:r=OA,idleTimeout:a=MA}=e,[i,s]=b.useState(!1),o=b.useRef(null),l=b.useRef(null),u=b.useRef(null),d=b.useMemo(()=>f=>{let g=Date.now();return window.setTimeout(()=>{f({didTimeout:!1,timeRemaining:()=>Math.max(0,50-(Date.now()-g))})},1)},[]),h=b.useMemo(()=>typeof window<"u"&&window.requestIdleCallback?(f,g)=>window.requestIdleCallback(f,g):d,[d]),p=b.useMemo(()=>typeof window<"u"&&window.cancelIdleCallback?f=>window.cancelIdleCallback(f):f=>{clearTimeout(f)},[]);return b.useEffect(()=>{if(t){s(!0);return}let f=o.current;if(!f)return;l.current&&(clearTimeout(l.current),l.current=null),u.current&&(p(u.current),u.current=null);let g=()=>{l.current&&(clearTimeout(l.current),l.current=null),u.current&&(p(u.current),u.current=null)},y=A=>{u.current=h(L=>{L.timeRemaining()>0||L.didTimeout?(s(!0),A.disconnect()):u.current=h(()=>{s(!0),A.disconnect()},{timeout:a/2})},{timeout:a})},w=A=>{g(),l.current=window.setTimeout(()=>{var L,P;let I=A.takeRecords();(I.length===0||(P=(L=I.at(-1))==null?void 0:L.isIntersecting)!=null&&P)&&y(A)},n)},x=(A,L)=>{A.isIntersecting?w(L):g()},_=new IntersectionObserver(A=>{for(let L of A)x(L,_)},{rootMargin:r,threshold:0});return _.observe(f),()=>{l.current&&clearTimeout(l.current),u.current&&p(u.current),_.disconnect()}},[t,n,r,a,p,h]),{shouldRender:i,containerRef:o}}var BA=320,zA=4,Kc=()=>typeof performance>"u"?Date.now():performance.now();function Wo(e){var t,n;let r=(t=e?.now)!=null?t:Kc,a=(n=e?.maxBacklogMs)!=null?n:BA,i=0,s=0;return{now:r,beginPass(o){s=Math.min(Math.max(i,o),o+a)},mark(){return s},rewind(o){s=o},take(o,l,u){if(o<=0)return{baseDelay:0,step:Math.max(0,l)};let d=Math.max(0,l),h=d===0?0:Math.min(d,zA),p=Math.max(s,u),f=u+a,g=p+Math.max(0,o-1)*d,y=d;if(g>f&&o>1)if(p<f){let x=f-p;y=Math.max(h,x/(o-1))}else y=h;let w=Math.max(0,Math.round(p-u));return s=p+o*y,{baseDelay:w,step:y}},commitPass(){i=s}}}var Qc=/\s/,ns=/^\s+$/,jA=new Set(["pre","svg","math","annotation"]),HA=new Set(["img","hr"]),dr=e=>typeof e=="object"&&e!==null&&"type"in e&&e.type==="element",rs=e=>e.some(t=>dr(t)&&jA.has(t.tagName)),UA=e=>{for(let t=e.length-1;t>=0;t--){let n=e[t];if(dr(n)&&n.tagName==="li")return n}},qA=(e,t,n,r)=>{e.properties!=null||(e.properties={}),e.properties["data-sd-animate-marker"]=!0;let a=typeof e.properties.style=="string"?`${e.properties.style};`:"";e.properties.style=`${a}--sd-marker-duration:${t}ms;--sd-marker-delay:${Math.round(n)}ms;--sd-marker-easing:${r}`},VA=new Set(["ul","ol","li"]),Xc=e=>{for(let t of e.children)if(dr(t)){if(t.tagName==="input")return t;if(VA.has(t.tagName))continue;let n=Xc(t);if(n)return n}},Zc=(e,t,n,r)=>{e.properties!=null||(e.properties={}),e.properties["data-sd-animate"]=!0;let a=typeof e.properties.style=="string"?`${e.properties.style};`:"";e.properties.style=`${a}--sd-animation:sd-${t.animation};--sd-duration:${n}ms;--sd-easing:${t.easing};--sd-delay:${Math.round(r)}ms`},$A=(e,t,n,r)=>{let a=Xc(e);a&&Zc(a,t,n,r)},YA=(e,t,n,r,a,i)=>{if(rs(t))return;let s=r.prevContentLength,o=a.count;a.count+=1;let l=s>0&&o<s,u=l?0:i.baseDelay+a.newIndex++*i.step;Zc(e,n,l?0:n.duration,u)},GA=e=>{var t;for(let n=e.length-1;n>=0;n-=1){let r=e[n];if(dr(r)){if((t=r.properties)!=null&&t["data-sd-animated"])break;r.properties={...r.properties,"data-sd-animated":!0}}}},Jc=e=>{let t=[],n="",r=!1;for(let a of e){let i=Qc.test(a);if(i!==r&&n){if(i){n+=a,r=!0;continue}t.push(n),n=""}n+=a,r=i}return n&&t.push(n),t},ed=e=>{let t=[],n="";for(let r of e)Qc.test(r)?t.length>0&&!ns.test(t.at(-1))?t[t.length-1]+=r:n+=r:(n&&(t.push(n),n=""),t.push(r));return n&&(t.length>0?t[t.length-1]+=n:t.push(n)),t},WA=(e,t,n,r,a,i)=>{let s=`--sd-animation:sd-${t};--sd-duration:${a?0:n}ms;--sd-easing:${r}`;return i&&(s+=`;--sd-delay:${Math.round(i)}ms`),{type:"element",tagName:"span",properties:{"data-sd-animate":!0,style:s},children:[{type:"text",value:e}]}},Ko=(e,t)=>!(e>0&&t<e),ai=e=>dr(e)&&HA.has(e.tagName),KA=(e,t,n)=>{let r=0,a=0;return $r(e,i=>i.type==="text"||ai(i),(i,s)=>{if(rs(s))return Kt;if(ai(i)){Ko(n,a)&&(r+=1),a+=1;return}let o=i.value;if(!o.trim()){a+=o.length;return}let l=t.sep==="char"?ed(o):Jc(o);for(let u of l){let d=a;a+=u.length,!ns.test(u)&&Ko(n,d)&&(r+=1)}}),r},QA=(e,t,n,r,a,i)=>{var s;let o=t.at(-1);if(!(o&&"children"in o))return;if(rs(t))return Kt;let l=o,u=l.children.indexOf(e);if(u===-1)return;let d=e.value;if(!d.trim()){a.count+=d.length;return}let h=n.sep==="char"?ed(d):Jc(d),p=r.prevContentLength,f=!1,g=UA(t),y=!!(g&&!((s=g.properties)!=null&&s["data-sd-animate-marker"])),w=!1,x=h.map(_=>{let A=a.count;if(a.count+=_.length,ns.test(_))return{type:"text",value:_};let L=p>0&&A<p,P=L?0:i.baseDelay+a.newIndex++*i.step;if(f=!0,g&&y&&!w){let I=L?0:n.duration;qA(g,I,P,n.easing),$A(g,n,I,P),w=!0}return WA(_,n.animation,n.duration,n.easing,L,P)});return f&&GA(t),l.children.splice(u,1,...x),u+x.length},XA=0;function td(e){var t,n,r,a,i;let s={animation:(t=e?.animation)!=null?t:"fadeIn",duration:(n=e?.duration)!=null?n:150,easing:(r=e?.easing)!=null?r:"ease",sep:(a=e?.sep)!=null?a:"word",stagger:(i=e?.stagger)!=null?i:40,timeline:e?.timeline},o={committedCharCount:0,prevContentLength:0,lastRenderCharCount:0,pendingMark:null},l=XA++,u=()=>d=>{var h;let p={count:0,newIndex:0};o.prevContentLength=o.committedCharCount;let f=s.timeline,g=(h=f?.now())!=null?h:Kc();f&&(o.pendingMark===null?o.pendingMark=f.mark():f.rewind(o.pendingMark));let y=f?f.take(KA(d,s,o.prevContentLength),s.stagger,g):{baseDelay:0,step:s.stagger};$r(d,w=>w.type==="text"||ai(w),(w,x)=>{if(w.type==="text")return QA(w,x,s,o,p,y);YA(w,x,s,o,p,y)}),o.lastRenderCharCount=p.count,o.prevContentLength=0};return Object.defineProperty(u,"name",{value:`rehypeAnimate$${l}`}),{name:"animate",type:"animate",rehypePlugin:u,setPrevContentLength(d){o.committedCharCount=d,o.prevContentLength=d},getLastRenderCharCount(){return o.lastRenderCharCount},commit(){o.committedCharCount=o.lastRenderCharCount,o.pendingMark=null}}}td();var nd=b.createContext(!1),ZA=()=>b.useContext(nd),aa=(...e)=>Ic(mc(e)),JA=(e,t)=>{if(!e||!t)return t;let n=`${e}:`;return t.split(/\s+/).filter(Boolean).map(r=>r.startsWith(n)?r:`${e}:${r}`).join(" ")},eC=e=>e?(...t)=>JA(e,Ic(mc(t))):aa,mn=(e,t,n)=>{let r=typeof t=="string"&&n.startsWith("text/csv")?"\uFEFF":"",a=typeof t=="string"?new Blob([r+t],{type:n}):t,i=URL.createObjectURL(a),s=document.createElement("a");s.href=i,s.download=e,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(i)},ii=b.createContext(aa),le=()=>b.useContext(ii),tC=8,rd=e=>{if(!(e===void 0||e===0||e===Number.POSITIVE_INFINITY)){if(typeof e=="number")return Number.isFinite(e)&&e>0?`${e}px`:void 0;if(!(e==="0"||e==="none"||e==="Infinity"))return e}},ad=(e,t,n)=>{let r=b.useRef(null),a=b.useRef(!0),i=b.useRef(!1);return b.useEffect(()=>{let s=r.current;if(!(s&&t))return;let o=()=>{let l=s.scrollHeight-s.scrollTop-s.clientHeight<tC;a.current=l};return s.addEventListener("scroll",o,{passive:!0}),()=>s.removeEventListener("scroll",o)},[t]),b.useEffect(()=>{e&&!i.current&&(a.current=!0),e||(a.current=!0),i.current=e},[e]),b.useEffect(()=>{let s=r.current;s&&t&&e&&a.current&&s.scrollTo({top:s.scrollHeight,behavior:"instant"})},[e,t,n]),r},nC=aa("block"),rC=aa("block","before:content-[counter(line)]","before:inline-block","before:[counter-increment:line]","before:w-6","before:mr-4","before:text-[13px]","before:text-right","before:text-muted-foreground/50","before:font-mono","before:select-none"),aC=e=>{let t={};for(let n of e.split(";")){let r=n.indexOf(":");if(r>0){let a=n.slice(0,r).trim(),i=n.slice(r+1).trim();a&&i&&(t[a]=i)}}return t},id=b.memo(({children:e,result:t,language:n,className:r,maxHeight:a,startLine:i,lineNumbers:s=!0,...o})=>{let l=le(),{isAnimating:u}=b.useContext(Be),d=rd(a),h=ad(u,!!d,t),p=b.useMemo(()=>l(rC),[l]),f=b.useMemo(()=>l(nC),[l]),g=b.useMemo(()=>{let y={};return t.bg&&(y["--sdm-bg"]=t.bg),t.fg&&(y["--sdm-fg"]=t.fg),t.rootStyle&&Object.assign(y,aC(t.rootStyle)),y},[t.bg,t.fg,t.rootStyle]);return m.jsx("div",{className:l(r,d?"overflow-y-auto":null,"overflow-x-auto rounded-md border border-border bg-background p-4 text-sm"),"data-language":n,"data-streamdown":"code-block-body",ref:h,style:d?{maxHeight:d}:void 0,...o,children:m.jsx("pre",{className:l(r,"bg-[var(--sdm-bg,inherit)]","dark:bg-[var(--shiki-dark-bg,var(--sdm-bg,inherit))]"),style:g,children:m.jsx("code",{className:s?l("[counter-increment:line_0] [counter-reset:line]"):void 0,style:s&&i&&i>1?{counterReset:`line ${i-1}`}:void 0,children:t.tokens.map((y,w)=>m.jsx("span",{className:s?p:f,children:y.length===0||y.length===1&&y[0].content===""?`
|
|
215
|
+
`:y.map((x,_)=>{let A={},L=!!x.bgColor;if(x.color&&(A["--sdm-c"]=x.color),x.bgColor&&(A["--sdm-tbg"]=x.bgColor),x.htmlStyle)for(let[P,I]of Object.entries(x.htmlStyle))P==="color"?A["--sdm-c"]=I:P==="background-color"?(A["--sdm-tbg"]=I,L=!0):A[P]=I;return m.jsx("span",{className:l("text-[var(--sdm-c,inherit)]","dark:text-[var(--shiki-dark,var(--sdm-c,inherit))]",L&&"bg-[var(--sdm-tbg)]",L&&"dark:bg-[var(--shiki-dark-bg,var(--sdm-tbg))]"),style:A,...x.htmlAttrs,children:x.content},_)})},w))})})})}),iC=({className:e,language:t,style:n,isIncomplete:r,...a})=>{let i=le();return m.jsx("div",{className:i("my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",e),"data-incomplete":r||void 0,"data-language":t,"data-streamdown":"code-block",style:{contentVisibility:"auto",containIntrinsicSize:"auto 200px",...n},...a})},sd=b.createContext({code:""}),od=()=>b.useContext(sd),sC=({language:e})=>{let t=le();return m.jsx("div",{className:t("flex h-8 items-center text-muted-foreground text-xs"),"data-language":e,"data-streamdown":"code-block-header",children:m.jsx("span",{className:t("ml-1 font-mono lowercase"),children:e})})},oC=e=>{let t=e.length;for(;t>0&&e[t-1]===`
|
|
216
|
+
`;)t--;return e.slice(0,t)},lC=b.lazy(()=>Promise.resolve().then(()=>require("./highlighted-body-KPVGNVTW-CWG3bhWV.cjs")).then(e=>({default:e.HighlightedCodeBlockBody}))),uC=({code:e,language:t,className:n,children:r,isIncomplete:a=!1,startLine:i,lineNumbers:s,...o})=>{let l=le(),{codeBlockMaxHeight:u}=b.useContext(Be),d=b.useMemo(()=>oC(e),[e]),h=b.useMemo(()=>({bg:"transparent",fg:"inherit",tokens:d.split(`
|
|
217
|
+
`).map(p=>[{content:p,color:"inherit",bgColor:"transparent",htmlStyle:{},offset:0}])}),[d]);return m.jsx(sd.Provider,{value:{code:e},children:m.jsxs(iC,{dir:"ltr",isIncomplete:a,language:t,children:[m.jsx(sC,{language:t}),r?m.jsx("div",{className:l("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:m.jsx("div",{className:l("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"code-block-actions",children:r})}):null,m.jsx(b.Suspense,{fallback:m.jsx(id,{className:n,language:t,lineNumbers:s,maxHeight:u,result:h,startLine:i,...o}),children:m.jsx(lC,{className:n,code:d,language:t,lineNumbers:s,maxHeight:u,raw:h,startLine:i,...o})})]})})},cC=e=>m.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:m.jsx("path",{clipRule:"evenodd",d:"M15.5607 3.99999L15.0303 4.53032L6.23744 13.3232C5.55403 14.0066 4.44599 14.0066 3.76257 13.3232L4.2929 12.7929L3.76257 13.3232L0.969676 10.5303L0.439346 9.99999L1.50001 8.93933L2.03034 9.46966L4.82323 12.2626C4.92086 12.3602 5.07915 12.3602 5.17678 12.2626L13.9697 3.46966L14.5 2.93933L15.5607 3.99999Z",fill:"currentColor",fillRule:"evenodd"})}),dC=e=>m.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:m.jsx("path",{clipRule:"evenodd",d:"M2.75 0.5C1.7835 0.5 1 1.2835 1 2.25V9.75C1 10.7165 1.7835 11.5 2.75 11.5H3.75H4.5V10H3.75H2.75C2.61193 10 2.5 9.88807 2.5 9.75V2.25C2.5 2.11193 2.61193 2 2.75 2H8.25C8.38807 2 8.5 2.11193 8.5 2.25V3H10V2.25C10 1.2835 9.2165 0.5 8.25 0.5H2.75ZM7.75 4.5C6.7835 4.5 6 5.2835 6 6.25V13.75C6 14.7165 6.7835 15.5 7.75 15.5H13.25C14.2165 15.5 15 14.7165 15 13.75V6.25C15 5.2835 14.2165 4.5 13.25 4.5H7.75ZM7.5 6.25C7.5 6.11193 7.61193 6 7.75 6H13.25C13.3881 6 13.5 6.11193 13.5 6.25V13.75C13.5 13.8881 13.3881 14 13.25 14H7.75C7.61193 14 7.5 13.8881 7.5 13.75V6.25Z",fill:"currentColor",fillRule:"evenodd"})}),hC=e=>m.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:m.jsx("path",{clipRule:"evenodd",d:"M8.75 1V1.75V8.68934L10.7197 6.71967L11.25 6.18934L12.3107 7.25L11.7803 7.78033L8.70711 10.8536C8.31658 11.2441 7.68342 11.2441 7.29289 10.8536L4.21967 7.78033L3.68934 7.25L4.75 6.18934L5.28033 6.71967L7.25 8.68934V1.75V1H8.75ZM13.5 9.25V13.5H2.5V9.25V8.5H1V9.25V14C1 14.5523 1.44771 15 2 15H14C14.5523 15 15 14.5523 15 14V9.25V8.5H13.5V9.25Z",fill:"currentColor",fillRule:"evenodd"})}),mC=e=>m.jsxs("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:[m.jsx("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),m.jsx("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),fC=e=>m.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:m.jsx("path",{clipRule:"evenodd",d:"M1 5.25V6H2.5V5.25V2.5H5.25H6V1H5.25H2C1.44772 1 1 1.44772 1 2V5.25ZM5.25 14.9994H6V13.4994H5.25H2.5V10.7494V9.99939H1V10.7494V13.9994C1 14.5517 1.44772 14.9994 2 14.9994H5.25ZM15 10V10.75V14C15 14.5523 14.5523 15 14 15H10.75H10V13.5H10.75H13.5V10.75V10H15ZM10.75 1H10V2.5H10.75H13.5V5.25V6H15V5.25V2C15 1.44772 14.5523 1 14 1H10.75Z",fill:"currentColor",fillRule:"evenodd"})}),pC=e=>m.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:m.jsx("path",{clipRule:"evenodd",d:"M13.5 8C13.5 4.96643 11.0257 2.5 7.96452 2.5C5.42843 2.5 3.29365 4.19393 2.63724 6.5H5.25H6V8H5.25H0.75C0.335787 8 0 7.66421 0 7.25V2.75V2H1.5V2.75V5.23347C2.57851 2.74164 5.06835 1 7.96452 1C11.8461 1 15 4.13001 15 8C15 11.87 11.8461 15 7.96452 15C5.62368 15 3.54872 13.8617 2.27046 12.1122L1.828 11.5066L3.03915 10.6217L3.48161 11.2273C4.48831 12.6051 6.12055 13.5 7.96452 13.5C11.0257 13.5 13.5 11.0336 13.5 8Z",fill:"currentColor",fillRule:"evenodd"})}),gC=e=>m.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:m.jsx("path",{clipRule:"evenodd",d:"M12.4697 13.5303L13 14.0607L14.0607 13L13.5303 12.4697L9.06065 7.99999L13.5303 3.53032L14.0607 2.99999L13 1.93933L12.4697 2.46966L7.99999 6.93933L3.53032 2.46966L2.99999 1.93933L1.93933 2.99999L2.46966 3.53032L6.93933 7.99999L2.46966 12.4697L1.93933 13L2.99999 14.0607L3.53032 13.5303L7.99999 9.06065L12.4697 13.5303Z",fill:"currentColor",fillRule:"evenodd"})}),bC=e=>m.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:m.jsx("path",{clipRule:"evenodd",d:"M13.5 10.25V13.25C13.5 13.3881 13.3881 13.5 13.25 13.5H2.75C2.61193 13.5 2.5 13.3881 2.5 13.25L2.5 2.75C2.5 2.61193 2.61193 2.5 2.75 2.5H5.75H6.5V1H5.75H2.75C1.7835 1 1 1.7835 1 2.75V13.25C1 14.2165 1.7835 15 2.75 15H13.25C14.2165 15 15 14.2165 15 13.25V10.25V9.5H13.5V10.25ZM9 1H9.75H14.2495C14.6637 1 14.9995 1.33579 14.9995 1.75V6.25V7H13.4995V6.25V3.56066L8.53033 8.52978L8 9.06011L6.93934 7.99945L7.46967 7.46912L12.4388 2.5H9.75H9V1Z",fill:"currentColor",fillRule:"evenodd"})}),EC=e=>m.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:m.jsx("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H5.875V4.75V4.125H7.125V4.75V5.875H8.25H8.875V7.125H8.25H7.125V8.25V8.875H5.875V8.25V7.125H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),TC=e=>m.jsx("svg",{"aria-hidden":"true",color:"currentColor",height:16,strokeLinejoin:"round",viewBox:"0 0 16 16",width:16,...e,children:m.jsx("path",{clipRule:"evenodd",d:"M1.5 6.5C1.5 3.73858 3.73858 1.5 6.5 1.5C9.26142 1.5 11.5 3.73858 11.5 6.5C11.5 9.26142 9.26142 11.5 6.5 11.5C3.73858 11.5 1.5 9.26142 1.5 6.5ZM6.5 0C2.91015 0 0 2.91015 0 6.5C0 10.0899 2.91015 13 6.5 13C8.02469 13 9.42677 12.475 10.5353 11.596L13.9697 15.0303L14.5 15.5607L15.5607 14.5L15.0303 13.9697L11.596 10.5353C12.475 9.42677 13 8.02469 13 6.5C13 2.91015 10.0899 0 6.5 0ZM4.125 5.875H4.75H8.25H8.875V7.125H8.25H4.75H4.125V5.875Z",fill:"currentColor",fillRule:"evenodd"})}),Hn={CheckIcon:cC,CopyIcon:dC,DownloadIcon:hC,ExternalLinkIcon:bC,Loader2Icon:mC,Maximize2Icon:fC,RotateCcwIcon:pC,XIcon:gC,ZoomInIcon:EC,ZoomOutIcon:TC},ld=b.createContext(Hn),kC=(e,t)=>{if(e===t)return!0;if(!(e&&t))return e===t;let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(a=>e[a]===t[a])},Qo=({icons:e,children:t})=>{let n=b.useRef(e),r=b.useRef(e?{...Hn,...e}:Hn);kC(n.current,e)||(n.current=e,r.current=e?{...Hn,...e}:Hn);let a=r.current;return m.jsx(ld.Provider,{value:a,children:t})},mt=()=>b.useContext(ld),ud={copyCode:"Copy Code",downloadFile:"Download file",downloadDiagram:"Download diagram",downloadDiagramAsSvg:"Download diagram as SVG",downloadDiagramAsPng:"Download diagram as PNG",downloadDiagramAsMmd:"Download diagram as MMD",viewFullscreen:"View fullscreen",exitFullscreen:"Exit fullscreen",mermaidFormatSvg:"SVG",mermaidFormatPng:"PNG",mermaidFormatMmd:"MMD",zoomIn:"Zoom in",zoomOut:"Zoom out",resetView:"Reset zoom and pan",copyTable:"Copy table",copyTableAsMarkdown:"Copy table as Markdown",copyTableAsCsv:"Copy table as CSV",copyTableAsTsv:"Copy table as TSV",downloadTable:"Download table",downloadTableAsCsv:"Download table as CSV",downloadTableAsMarkdown:"Download table as Markdown",tableFormatMarkdown:"Markdown",tableFormatCsv:"CSV",tableFormatTsv:"TSV",imageNotAvailable:"Image not available",downloadImage:"Download image",openExternalLink:"Open external link?",externalLinkWarning:"You're about to visit an external website.",close:"Close",copyLink:"Copy link",copied:"Copied",openLink:"Open link"},si=b.createContext(ud),At=()=>b.useContext(si),oi=({onCopy:e,onError:t,timeout:n=2e3,children:r,className:a,code:i,...s})=>{let o=le(),[l,u]=b.useState(!1),d=b.useRef(0),{code:h}=od(),{isAnimating:p}=b.useContext(Be),f=At(),g=i??h,y=async()=>{var _;if(typeof window>"u"||!((_=navigator?.clipboard)!=null&&_.writeText)){t?.(new Error("Clipboard API not available"));return}try{l||(await navigator.clipboard.writeText(g),u(!0),e?.(),d.current=window.setTimeout(()=>u(!1),n))}catch(A){t?.(A)}};b.useEffect(()=>()=>{window.clearTimeout(d.current)},[]);let w=mt(),x=l?w.CheckIcon:w.CopyIcon;return m.jsxs(m.Fragment,{children:[m.jsx("button",{"aria-label":f.copyCode,className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),"data-streamdown":"code-block-copy-button",disabled:p,onClick:y,title:f.copyCode,type:"button",...s,children:r??m.jsx(x,{"aria-hidden":"true",size:14})}),l&&m.jsx("output",{"aria-live":"polite",className:"sr-only",children:f.copied})]})},as=(e,t,n)=>{if(typeof e=="boolean")return n;let r=e[t];if(typeof r!="object")return n;let a=r.download;return typeof a!="object"?n:a.filename||n},Xo={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",dax:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},xC=({onDownload:e,onError:t,language:n,children:r,className:a,code:i,...s})=>{let o=le(),{code:l}=od(),{isAnimating:u,controls:d}=b.useContext(Be),h=At(),p=mt(),f=i??l,g=n&&n in Xo?Xo[n]:"txt",y=`${as(d,"code","file")}.${g}`,w="text/plain",x=()=>{try{mn(y,f,w),e?.()}catch(_){t?.(_)}};return m.jsx("button",{"aria-label":h.downloadFile,className:o("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),"data-streamdown":"code-block-download-button",disabled:u,onClick:x,title:h.downloadFile,type:"button",...s,children:r??m.jsx(p.DownloadIcon,{size:14})})},Zo=()=>{let{Loader2Icon:e}=mt(),t=le();return m.jsxs("div",{className:t("w-full divide-y divide-border overflow-hidden rounded-xl border border-border"),children:[m.jsx("div",{className:t("h-[46px] w-full bg-muted/80")}),m.jsx("div",{className:t("flex w-full items-center justify-center p-4"),children:m.jsx(e,{className:t("size-4 animate-spin")})})]})},yC=/\.[^/.]+$/,AC=({node:e,className:t,src:n,alt:r,onLoad:a,onError:i,showControls:s=!0,showDownloadControl:o=!0,...l})=>{let{DownloadIcon:u}=mt(),d=le(),h=b.useRef(null),[p,f]=b.useState(!1),[g,y]=b.useState(!1),w=At(),x=l.width!=null||l.height!=null,_=(p||x)&&!g&&s&&o,A=g&&!x;b.useEffect(()=>{let D=h.current;if(D!=null&&D.complete){let R=D.naturalWidth>0;f(R),y(!R)}},[]);let L=b.useCallback(D=>{f(!0),y(!1),a?.(D)},[a]),P=b.useCallback(D=>{f(!1),y(!0),i?.(D)},[i]),I=async()=>{if(n)try{let D=await(await fetch(n)).blob(),R=new URL(n,window.location.origin).pathname.split("/").pop()||"",z=R.split(".").pop(),v=R.includes(".")&&z!==void 0&&z.length<=4,M="";if(v)M=R;else{let j=D.type,W="png";j.includes("jpeg")||j.includes("jpg")?W="jpg":j.includes("png")?W="png":j.includes("svg")?W="svg":j.includes("gif")?W="gif":j.includes("webp")&&(W="webp"),M=`${(r||R||"image").replace(yC,"")}.${W}`}mn(M,D,D.type)}catch{window.open(n,"_blank")}};return n?m.jsxs("div",{className:d("group relative my-4 inline-block"),"data-streamdown":"image-wrapper",children:[m.jsx("img",{alt:r,className:d("max-w-full rounded-lg",A&&"hidden",t),"data-streamdown":"image",onError:P,onLoad:L,ref:h,src:n,...l}),A&&m.jsx("span",{className:d("text-muted-foreground text-xs italic"),"data-streamdown":"image-fallback",children:w.imageNotAvailable}),s&&m.jsx("div",{className:d("pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"),"data-streamdown":"image-overlay"}),_&&m.jsx("button",{className:d("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:I,title:w.downloadImage,type:"button",children:m.jsx(u,{size:14})})]}):null},Xn=0,is=()=>{Xn+=1,Xn===1&&(document.body.style.overflow="hidden")},ss=()=>{Xn=Math.max(0,Xn-1),Xn===0&&(document.body.style.overflow="")},CC=({url:e,isOpen:t,onClose:n,onConfirm:r})=>{let{CheckIcon:a,CopyIcon:i,ExternalLinkIcon:s,XIcon:o}=mt(),l=le(),[u,d]=b.useState(!1),h=At(),p=b.useCallback(async()=>{try{await navigator.clipboard.writeText(e),d(!0),setTimeout(()=>d(!1),2e3)}catch{}},[e]),f=b.useCallback(()=>{r(),n()},[r,n]);if(b.useEffect(()=>{if(t){is();let y=w=>{w.key==="Escape"&&n()};return document.addEventListener("keydown",y),()=>{document.removeEventListener("keydown",y),ss()}}},[t,n]),!t||typeof document>"u")return null;let g=m.jsx("div",{className:l("fixed inset-0 z-50 flex items-center justify-center bg-background/50 backdrop-blur-sm"),"data-streamdown":"link-safety-modal",onClick:n,onKeyDown:y=>{y.key==="Escape"&&n()},role:"button",tabIndex:0,children:m.jsxs("div",{className:l("relative mx-4 flex w-full max-w-md flex-col gap-4 rounded-xl border bg-background p-6 shadow-lg"),onClick:y=>y.stopPropagation(),onKeyDown:y=>y.stopPropagation(),role:"presentation",children:[m.jsx("button",{className:l("absolute top-4 right-4 rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:n,title:h.close,type:"button",children:m.jsx(o,{size:16})}),m.jsxs("div",{className:l("flex flex-col gap-2"),children:[m.jsxs("div",{className:l("flex items-center gap-2 font-semibold text-lg"),children:[m.jsx(s,{size:20}),m.jsx("span",{children:h.openExternalLink})]}),m.jsx("p",{className:l("text-muted-foreground text-sm"),children:h.externalLinkWarning})]}),m.jsx("div",{className:l("break-all rounded-md bg-muted p-3 font-mono text-sm",e.length>100&&"max-h-32 overflow-y-auto"),children:e}),m.jsxs("div",{className:l("flex gap-2"),children:[m.jsx("button",{className:l("flex flex-1 items-center justify-center gap-2 rounded-md border bg-background px-4 py-2 font-medium text-sm transition-all hover:bg-muted"),onClick:p,type:"button",children:u?m.jsxs(m.Fragment,{children:[m.jsx(a,{size:14}),m.jsx("span",{children:h.copied})]}):m.jsxs(m.Fragment,{children:[m.jsx(i,{size:14}),m.jsx("span",{children:h.copyLink})]})}),m.jsxs("button",{className:l("flex flex-1 items-center justify-center gap-2 rounded-md bg-primary px-4 py-2 font-medium text-primary-foreground text-sm transition-all hover:bg-primary/90"),onClick:f,type:"button",children:[m.jsx(s,{size:14}),m.jsx("span",{children:h.openLink})]})]})]})});return fi.createPortal(g,document.body)},li=b.createContext(null),os=()=>b.useContext(li),_C=()=>{var e;let t=os();return(e=t?.code)!=null?e:null},ls=()=>{var e;let t=os();return(e=t?.mermaid)!=null?e:null},wC=e=>{var t;let n=os();return n!=null&&n.renderers&&e&&(t=n.renderers.find(r=>Array.isArray(r.language)?r.language.includes(e):r.language===e))!=null?t:null},SC=e=>{if(typeof DOMParser>"u"||typeof XMLSerializer>"u")return e;let t=new DOMParser().parseFromString(e,"text/html").querySelector("svg");return t?new XMLSerializer().serializeToString(t):e},IC=(e,t)=>{var n;let r=(n=void 0)!=null?n:5;return new Promise((a,i)=>{let s="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),o=new Image;o.crossOrigin="anonymous",o.onload=()=>{let l=document.createElement("canvas"),u=o.width*r,d=o.height*r;l.width=u,l.height=d;let h=l.getContext("2d");if(!h){i(new Error("Failed to create 2D canvas context for PNG export"));return}h.drawImage(o,0,0,u,d),l.toBlob(p=>{if(!p){i(new Error("Failed to create PNG blob"));return}a(p)},"image/png")},o.onerror=()=>i(new Error("Failed to load SVG image")),o.src=s})},cd=({chart:e,children:t,className:n,onDownload:r,config:a,onError:i})=>{let s=le(),[o,l]=b.useState(!1),u=b.useRef(null),{isAnimating:d,controls:h}=b.useContext(Be),p=mt(),f=ls(),g=At(),y=as(h,"mermaid","diagram"),w=async x=>{try{if(x==="mmd"){let D=`${y}.mmd`;mn(D,e,"text/plain"),l(!1),r?.(x);return}if(!f){i?.(new Error("Mermaid plugin not available"));return}let _=f.getMermaid(a),A=e.split("").reduce((D,R)=>(D<<5)-D+R.charCodeAt(0)|0,0),L=`mermaid-${Math.abs(A)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:P}=await _.render(L,e);if(!P){i?.(new Error("SVG not found. Please wait for the diagram to render."));return}let I=SC(P);if(x==="svg"){let D=`${y}.svg`;mn(D,I,"image/svg+xml"),l(!1),r?.(x);return}if(x==="png"){let D=await IC(I);mn(`${y}.png`,D,"image/png"),r?.(x),l(!1);return}}catch(_){i?.(_)}};return b.useEffect(()=>{let x=_=>{let A=_.composedPath();u.current&&!A.includes(u.current)&&l(!1)};return document.addEventListener("mousedown",x),()=>{document.removeEventListener("mousedown",x)}},[]),m.jsxs("div",{className:s("relative"),ref:u,children:[m.jsx("button",{"aria-label":g.downloadDiagram,className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:d,onClick:()=>l(!o),title:g.downloadDiagram,type:"button",children:t??m.jsx(p.DownloadIcon,{"aria-hidden":"true",size:14})}),o?m.jsxs("div",{className:s("absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[m.jsx("button",{"aria-label":g.downloadDiagramAsSvg,className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>w("svg"),title:g.downloadDiagramAsSvg,type:"button",children:g.mermaidFormatSvg}),m.jsx("button",{"aria-label":g.downloadDiagramAsPng,className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>w("png"),title:g.downloadDiagramAsPng,type:"button",children:g.mermaidFormatPng}),m.jsx("button",{"aria-label":g.downloadDiagramAsMmd,className:s("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>w("mmd"),title:g.downloadDiagramAsMmd,type:"button",children:g.mermaidFormatMmd})]}):null]})},vC=({chart:e,config:t,onFullscreen:n,onExit:r,className:a,...i})=>{let{Maximize2Icon:s,XIcon:o}=mt(),l=le(),[u,d]=b.useState(!1),{isAnimating:h,controls:p}=b.useContext(Be),f=At(),g=(()=>{if(typeof p=="boolean")return p;let _=p.mermaid;return _===!1?!1:_===!0||_===void 0?!0:_.panZoom!==!1})(),y=(()=>{if(typeof p=="boolean")return p;let _=p.mermaid;return _===!1?!1:_===!0||_===void 0?!0:_.download!==!1})(),w=(()=>{if(typeof p=="boolean")return p;let _=p.mermaid;return _===!1?!1:_===!0||_===void 0?!0:_.copy!==!1})(),x=()=>{d(!u)};return b.useEffect(()=>{if(u){is();let _=A=>{A.key==="Escape"&&d(!1)};return document.addEventListener("keydown",_),()=>{document.removeEventListener("keydown",_),ss()}}},[u]),b.useEffect(()=>{u?n?.():r&&r()},[u,n,r]),m.jsxs(m.Fragment,{children:[m.jsx("button",{className:l("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),disabled:h,onClick:x,title:f.viewFullscreen,type:"button",...i,"aria-label":f.viewFullscreen,children:m.jsx(s,{"aria-hidden":"true",size:14})}),u?fi.createPortal(m.jsxs("div",{"aria-label":f.viewFullscreen,"aria-modal":"true",className:l("fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm"),"data-streamdown":"mermaid-fullscreen",onClick:x,onKeyDown:_=>{_.key==="Escape"&&x()},role:"dialog",children:[m.jsxs("div",{className:l("absolute top-4 right-4 z-10 flex items-center gap-1"),onClick:_=>_.stopPropagation(),onKeyDown:_=>_.stopPropagation(),role:"presentation",children:[y?m.jsx(cd,{chart:e,config:t}):null,w?m.jsx(oi,{code:e}):null,m.jsx("button",{"aria-label":f.exitFullscreen,className:l("rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:x,title:f.exitFullscreen,type:"button",children:m.jsx(o,{"aria-hidden":"true",size:20})})]}),m.jsx("div",{className:l("flex size-full items-center justify-center p-4"),onClick:_=>_.stopPropagation(),onKeyDown:_=>_.stopPropagation(),role:"presentation",children:m.jsx(Qd,{chart:e,className:l("size-full [&_svg]:h-auto [&_svg]:w-auto"),config:t,fullscreen:!0,showControls:g})})]}),document.body):null]})};function ui(e){var t;if(e.nodeType===Node.TEXT_NODE)return(t=e.textContent)!=null?t:"";if(e.nodeType!==Node.ELEMENT_NODE)return"";let n=e;return n.tagName==="BR"?`
|
|
218
|
+
`:Array.from(n.childNodes).map(ui).join("")}var dd=e=>{let t=[],n=[],r=e.querySelectorAll("thead th");for(let i of r)t.push(ui(i).trim());let a=e.querySelectorAll("tbody tr");for(let i of a){let s=[],o=i.querySelectorAll("td");for(let l of o)s.push(ui(l).trim());n.push(s)}return{headers:t,rows:n}},hd=e=>{var t;if(typeof e!="object")return",";let n=e.table;return typeof n!="object"?",":(t=n.csvSeparator)!=null?t:","},md=(e,t=",")=>{let n;t==="auto"?Intl.NumberFormat().format(1.1).includes(",")?n=";":n=",":n=t;let{headers:r,rows:a}=e,i=u=>{let d=!1;for(let h of u)if(h===n||h==='"'||h===`
|
|
219
|
+
`||h==="\r"){d=!0;break}return d?`"${u.replace(/"/g,'""')}"`:u},s=r.length>0?a.length+1:a.length,o=new Array(s),l=0;r.length>0&&(o[l]=r.map(i).join(n),l+=1);for(let u of a)o[l]=u.map(i).join(n),l+=1;return o.join(`
|
|
219
220
|
`)},NC=e=>{let{headers:t,rows:n}=e,r=o=>{let l=!1;for(let d of o)if(d===" "||d===`
|
|
220
221
|
`||d==="\r"){l=!0;break}if(!l)return o;let u=[];for(let d of o)d===" "?u.push("\\t"):d===`
|
|
221
|
-
`?u.push("\\n"):d==="\r"?u.push("\\r"):u.push(d);return u.join("")},
|
|
222
|
-
`)},
|
|
222
|
+
`?u.push("\\n"):d==="\r"?u.push("\\r"):u.push(d);return u.join("")},a=t.length>0?n.length+1:n.length,i=new Array(a),s=0;t.length>0&&(i[s]=t.map(r).join(" "),s+=1);for(let o of n)i[s]=o.map(r).join(" "),s+=1;return i.join(`
|
|
223
|
+
`)},Da=e=>{let t=!1;for(let r of e)if(r==="\\"||r==="|"||r===`
|
|
223
224
|
`){t=!0;break}if(!t)return e;let n=[];for(let r of e)r==="\\"?n.push("\\\\"):r==="|"?n.push("\\|"):r===`
|
|
224
|
-
`?n.push("<br>"):n.push(r);return n.join("")},fd=e=>{let{headers:t,rows:n}=e;if(t.length===0)return"";let r=new Array(n.length+2),
|
|
225
|
-
`)},pd=({children:e,className:t,onCopy:n,onError:r,timeout:i=2e3})=>{let a=le(),[s,o]=b.useState(!1),[l,u]=b.useState(!1),d=b.useRef(null),h=b.useRef(0),{isAnimating:p,controls:f}=b.useContext(Be),g=At(),y=hd(f),S=async A=>{var L,D;if(typeof window>"u"||!((L=navigator?.clipboard)!=null&&L.write)){r?.(new Error("Clipboard API not available"));return}try{let I=(D=d.current)==null?void 0:D.closest('[data-streamdown="table-wrapper"]'),P=I?.querySelector("table");if(!P){r?.(new Error("Table not found"));return}let R=dd(P),z="";A==="csv"?z=md(R,y):A==="tsv"?z=NC(R):z=fd(R);let N=new ClipboardItem({"text/plain":new Blob([z],{type:"text/plain"}),"text/html":new Blob([P.outerHTML],{type:"text/html"})});await navigator.clipboard.write([N]),u(!0),o(!1),n?.(A),h.current=window.setTimeout(()=>u(!1),i)}catch(I){r?.(I)}};b.useEffect(()=>{let A=L=>{let D=L.composedPath();d.current&&!D.includes(d.current)&&o(!1)};return document.addEventListener("mousedown",A),()=>{document.removeEventListener("mousedown",A),window.clearTimeout(h.current)}},[]);let x=mt(),_=l?x.CheckIcon:x.CopyIcon;return m.jsxs("div",{className:a("relative"),ref:d,children:[m.jsx("button",{className:a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:p,onClick:()=>o(!s),title:g.copyTable,type:"button",children:e??m.jsx(_,{height:14,width:14})}),s?m.jsxs("div",{className:a("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[m.jsx("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>S("md"),title:g.copyTableAsMarkdown,type:"button",children:g.tableFormatMarkdown}),m.jsx("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>S("csv"),title:g.copyTableAsCsv,type:"button",children:g.tableFormatCsv}),m.jsx("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>S("tsv"),title:g.copyTableAsTsv,type:"button",children:g.tableFormatTsv})]}):null]})},gd=({children:e,className:t,onDownload:n,onError:r})=>{let i=le(),[a,s]=b.useState(!1),o=b.useRef(null),{isAnimating:l,controls:u}=b.useContext(Be),d=At(),h=mt(),p=hd(u),f=g=>{var y;try{let S=(y=o.current)==null?void 0:y.closest('[data-streamdown="table-wrapper"]'),x=S?.querySelector("table");if(!x){r?.(new Error("Table not found"));return}let _=dd(x),A=g==="csv"?md(_,p):fd(_),L=g==="csv"?"csv":"md",D=`${is(u,"table","table")}.${L}`;mn(D,A,g==="csv"?"text/csv":"text/markdown"),s(!1),n?.(g)}catch(S){r?.(S)}};return b.useEffect(()=>{let g=y=>{let S=y.composedPath();o.current&&!S.includes(o.current)&&s(!1)};return document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[]),m.jsxs("div",{className:i("relative"),ref:o,children:[m.jsx("button",{className:i("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:l,onClick:()=>s(!a),title:d.downloadTable,type:"button",children:e??m.jsx(h.DownloadIcon,{size:14})}),a?m.jsxs("div",{className:i("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[m.jsx("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>f("csv"),title:d.downloadTableAsCsv,type:"button",children:d.tableFormatCsv}),m.jsx("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>f("markdown"),title:d.downloadTableAsMarkdown,type:"button",children:d.tableFormatMarkdown})]}):null]})},vC=({children:e,className:t,showCopy:n=!0,showDownload:r=!0})=>{let{Maximize2Icon:i,XIcon:a}=mt(),s=le(),[o,l]=b.useState(!1),{isAnimating:u}=b.useContext(Be),d=At(),h=()=>{l(!0)},p=()=>{l(!1)};return b.useEffect(()=>{if(o){as();let f=g=>{g.key==="Escape"&&l(!1)};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f),ss()}}},[o]),m.jsxs(m.Fragment,{children:[m.jsx("button",{className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:u,onClick:h,title:d.viewFullscreen,type:"button",children:m.jsx(i,{size:14})}),o?fa.createPortal(m.jsx("div",{"aria-label":d.viewFullscreen,"aria-modal":"true",className:s("fixed inset-0 z-50 flex flex-col bg-background"),"data-streamdown":"table-fullscreen",onClick:p,onKeyDown:f=>{f.key==="Escape"&&p()},role:"dialog",children:m.jsxs("div",{className:s("flex h-full flex-col"),"data-streamdown":"table-wrapper",onClick:f=>f.stopPropagation(),onKeyDown:f=>f.stopPropagation(),role:"presentation",children:[m.jsxs("div",{className:s("flex items-center justify-end gap-1 p-4"),children:[n?m.jsx(pd,{}):null,r?m.jsx(gd,{}):null,m.jsx("button",{className:s("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:p,title:d.exitFullscreen,type:"button",children:m.jsx(a,{size:20})})]}),m.jsx("div",{className:s("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:m.jsx("table",{className:s("w-full border-collapse border border-border"),"data-streamdown":"table",children:e})})]})}),document.body):null]})},LC=({children:e,className:t,maxHeight:n,showControls:r,showCopy:i=!0,showDownload:a=!0,showFullscreen:s=!0,...o})=>{let l=le(),{isAnimating:u}=b.useContext(Be),d=rd(n),h=id(u,!!d,e),p=r&&i,f=r&&a,g=r&&s,y=p||f||g;return m.jsxs("div",{className:l("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),"data-streamdown":"table-wrapper",children:[y?m.jsxs("div",{className:l("flex items-center justify-end gap-1"),children:[p?m.jsx(pd,{}):null,f?m.jsx(gd,{}):null,g?m.jsx(vC,{showCopy:p,showDownload:f,children:e}):null]}):null,m.jsx("div",{className:l("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),ref:h,style:d?{maxHeight:d}:void 0,children:m.jsx("table",{className:l("w-full divide-y divide-border",t),"data-streamdown":"table",...o,children:e})})]})},RC=/startLine=(\d+)/,PC=/\bnoLineNumbers\b/,DC=b.lazy(()=>Promise.resolve().then(()=>require("./mermaid-HWGCJPDP-BPrF1ic_.cjs")).then(e=>({default:e.Mermaid}))),MC=/language-([^\s]+)/,OC="node";function Ie(e,t){let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;let r=e,i=t;for(let a of n)if(a!==OC&&!Object.is(r[a],i[a]))return!1;return!0}function FC(e,t){var n,r;return((n=e?.properties)==null?void 0:n.metastring)===((r=t?.properties)==null?void 0:r.metastring)}var zr=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,Di=(e,t)=>{if(typeof e=="boolean")return e;let n=e.table;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},Jo=(e,t)=>{if(typeof e=="boolean")return e;let n=e.code;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},xr=(e,t)=>{if(typeof e=="boolean")return e;let n=e.mermaid;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},BC=(e,t)=>{if(typeof e=="boolean")return e;let n=e.image;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},us=b.memo(({children:e,className:t,node:n,...r})=>{let i=le();return m.jsx("ol",{className:i("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...r,children:e})},(e,t)=>Ie(e,t));us.displayName="MarkdownOl";var bd=b.memo(({children:e,className:t,node:n,...r})=>{let i=le();return m.jsx("li",{className:i("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...r,children:e})},(e,t)=>Ie(e,t));bd.displayName="MarkdownLi";var Ed=b.memo(({children:e,className:t,node:n,...r})=>{let i=le();return m.jsx("ul",{className:i("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...r,children:e})},(e,t)=>Ie(e,t));Ed.displayName="MarkdownUl";var Td=b.memo(({className:e,node:t,...n})=>{let r=le();return m.jsx("hr",{className:r("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n})},(e,t)=>Ie(e,t));Td.displayName="MarkdownHr";var kd=b.memo(({children:e,className:t,node:n,...r})=>{let i=le();return m.jsx("span",{className:i("font-semibold",t),"data-streamdown":"strong",...r,children:e})},(e,t)=>Ie(e,t));kd.displayName="MarkdownStrong";var zC=({children:e,className:t,href:n,node:r,...i})=>{let a=le(),{linkSafety:s}=b.useContext(Be),[o,l]=b.useState(!1),u=n==="streamdown:incomplete-link",d=b.useCallback(async g=>{if(!(!(s!=null&&s.enabled&&n)||u)){if(g.preventDefault(),s.onLinkCheck&&await s.onLinkCheck(n)){window.open(n,"_blank","noreferrer");return}l(!0)}},[s,n,u]),h=b.useCallback(()=>{n&&window.open(n,"_blank","noreferrer")},[n]),p=b.useCallback(()=>{l(!1)},[]),f={url:n??"",isOpen:o,onClose:p,onConfirm:h};return s!=null&&s.enabled&&n?m.jsxs(m.Fragment,{children:[m.jsx("button",{className:a("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",onClick:d,type:"button",children:e}),s.renderModal?s.renderModal(f):m.jsx(AC,{...f})]}):m.jsx("a",{className:a("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...i,children:e})},xd=b.memo(zC,(e,t)=>Ie(e,t));xd.displayName="MarkdownA";var yd=b.memo(({children:e,className:t,node:n,...r})=>{let i=le();return m.jsx("h1",{className:i("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...r,children:e})},(e,t)=>Ie(e,t));yd.displayName="MarkdownH1";var Ad=b.memo(({children:e,className:t,node:n,...r})=>{let i=le();return m.jsx("h2",{className:i("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...r,children:e})},(e,t)=>Ie(e,t));Ad.displayName="MarkdownH2";var Cd=b.memo(({children:e,className:t,node:n,...r})=>{let i=le();return m.jsx("h3",{className:i("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...r,children:e})},(e,t)=>Ie(e,t));Cd.displayName="MarkdownH3";var _d=b.memo(({children:e,className:t,node:n,...r})=>{let i=le();return m.jsx("h4",{className:i("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...r,children:e})},(e,t)=>Ie(e,t));_d.displayName="MarkdownH4";var Sd=b.memo(({children:e,className:t,node:n,...r})=>{let i=le();return m.jsx("h5",{className:i("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...r,children:e})},(e,t)=>Ie(e,t));Sd.displayName="MarkdownH5";var wd=b.memo(({children:e,className:t,node:n,...r})=>{let i=le();return m.jsx("h6",{className:i("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...r,children:e})},(e,t)=>Ie(e,t));wd.displayName="MarkdownH6";var Id=b.memo(({children:e,className:t,node:n,...r})=>{let{controls:i,tableMaxHeight:a}=b.useContext(Be),s=zr(i,"table"),o=Di(i,"copy"),l=Di(i,"download"),u=Di(i,"fullscreen");return m.jsx(LC,{className:t,maxHeight:a,showControls:s,showCopy:o,showDownload:l,showFullscreen:u,...r,children:e})},(e,t)=>Ie(e,t));Id.displayName="MarkdownTable";var Nd=b.memo(({children:e,className:t,node:n,...r})=>{let i=le();return m.jsx("thead",{className:i("bg-muted/80",t),"data-streamdown":"table-header",...r,children:e})},(e,t)=>Ie(e,t));Nd.displayName="MarkdownThead";var vd=b.memo(({children:e,className:t,node:n,...r})=>{let i=le();return m.jsx("tbody",{className:i("divide-y divide-border",t),"data-streamdown":"table-body",...r,children:e})},(e,t)=>Ie(e,t));vd.displayName="MarkdownTbody";var Ld=b.memo(({children:e,className:t,node:n,...r})=>{let i=le();return m.jsx("tr",{className:i("border-border",t),"data-streamdown":"table-row",...r,children:e})},(e,t)=>Ie(e,t));Ld.displayName="MarkdownTr";var Rd=b.memo(({children:e,className:t,node:n,...r})=>{let i=le();return m.jsx("th",{className:i("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...r,children:e})},(e,t)=>Ie(e,t));Rd.displayName="MarkdownTh";var Pd=b.memo(({children:e,className:t,node:n,...r})=>{let i=le();return m.jsx("td",{className:i("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...r,children:e})},(e,t)=>Ie(e,t));Pd.displayName="MarkdownTd";var Dd=b.memo(({children:e,className:t,node:n,...r})=>{let i=le();return m.jsx("blockquote",{className:i("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...r,children:e})},(e,t)=>Ie(e,t));Dd.displayName="MarkdownBlockquote";var Md=b.memo(({children:e,className:t,node:n,...r})=>{let i=le();return m.jsx("sup",{className:i("text-sm",t),"data-streamdown":"superscript",...r,children:e})},(e,t)=>Ie(e,t));Md.displayName="MarkdownSup";var Od=b.memo(({children:e,className:t,node:n,...r})=>{let i=le();return m.jsx("sub",{className:i("text-sm",t),"data-streamdown":"subscript",...r,children:e})},(e,t)=>Ie(e,t));Od.displayName="MarkdownSub";var Fd=b.memo(({children:e,className:t,node:n,...r})=>{if("data-footnotes"in r){let i=s=>{var o,l;if(!b.isValidElement(s))return!1;let u=Array.isArray(s.props.children)?s.props.children:[s.props.children],d=!1,h=!1;for(let p of u)if(p){if(typeof p=="string")p.trim()!==""&&(d=!0);else if(b.isValidElement(p))if(((o=p.props)==null?void 0:o["data-footnote-backref"])!==void 0)h=!0;else{let f=Array.isArray(p.props.children)?p.props.children:[p.props.children];for(let g of f){if(typeof g=="string"&&g.trim()!==""){d=!0;break}if(b.isValidElement(g)&&((l=g.props)==null?void 0:l["data-footnote-backref"])===void 0){d=!0;break}}}}return h&&!d},a=Array.isArray(e)?e.map(s=>{if(!b.isValidElement(s))return s;if(s.type===us){let o=(Array.isArray(s.props.children)?s.props.children:[s.props.children]).filter(l=>!i(l));return o.length===0?null:{...s,props:{...s.props,children:o}}}return s}):e;return(Array.isArray(a)?a.some(s=>s!==null):a!==null)?m.jsx("section",{className:t,...r,children:a}):null}return m.jsx("section",{className:t,...r,children:e})},(e,t)=>Ie(e,t));Fd.displayName="MarkdownSection";var jC=({node:e,className:t,children:n,...r})=>{var i,a;let s=le(),o=!("data-block"in r),{mermaid:l,controls:u,lineNumbers:d}=b.useContext(Be),h=ls(),p=XA(),f=t?.match(MC),g=(i=f?.at(1))!=null?i:"",y=_C(g);if(o)return m.jsx("code",{className:s("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...r,children:n});let S=(a=e?.properties)==null?void 0:a.metastring,x=S?.match(RC),_=x?Number.parseInt(x[1],10):void 0,A=_!==void 0&&_>=1?_:void 0,L=!(S&&PC.test(S))&&d!==!1,D="";if(b.isValidElement(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?D=n.props.children:typeof n=="string"&&(D=n),y){let O=y.component;return m.jsx(b.Suspense,{fallback:m.jsx(Zo,{}),children:m.jsx(O,{code:D,isIncomplete:p,language:g,meta:S})})}if(g==="mermaid"&&h){let O=zr(u,"mermaid"),j=xr(u,"download"),W=xr(u,"copy"),q=xr(u,"fullscreen"),F=xr(u,"panZoom"),G=O&&(j||W||q);return m.jsx(b.Suspense,{fallback:m.jsx(Zo,{}),children:m.jsxs("div",{className:s("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",t),"data-streamdown":"mermaid-block",children:[m.jsx("div",{className:s("flex h-8 items-center text-muted-foreground text-xs"),children:m.jsx("span",{className:s("ml-1 font-mono lowercase"),children:"mermaid"})}),G?m.jsx("div",{className:s("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:m.jsxs("div",{className:s("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"mermaid-block-actions",children:[j?m.jsx(cd,{chart:D,config:l?.config}):null,W?m.jsx(oa,{code:D}):null,q?m.jsx(IC,{chart:D,config:l?.config}):null]})}):null,m.jsx("div",{className:s("rounded-md border border-border bg-background"),children:m.jsx(DC,{chart:D,config:l?.config,showControls:F})})]})})}let I=zr(u,"code"),P=Jo(u,"download"),R=Jo(u,"copy"),{"data-block":z,...N}=r;return m.jsx(lC,{className:t,code:D,isIncomplete:p,language:g,lineNumbers:L,startLine:A,...N,children:I?m.jsxs(m.Fragment,{children:[P?m.jsx(kC,{code:D,language:g}):null,R?m.jsx(oa,{}):null]}):null})},Bd=b.memo(jC,(e,t)=>Ie(e,t)&&FC(e.node,t.node));Bd.displayName="MarkdownCode";var HC=({node:e,className:t,...n})=>{let{controls:r}=b.useContext(Be),i=zr(r,"image"),a=i&&BC(r,"download");return m.jsx(yC,{className:t,node:e,showControls:i,showDownloadControl:a,...n})},zd=b.memo(HC,(e,t)=>Ie(e,t));zd.displayName="MarkdownImg";var jd=b.memo(({children:e,node:t,...n})=>{let r=(Array.isArray(e)?e:[e]).filter(i=>i!=null&&i!=="");if(r.length===1&&b.isValidElement(r[0])){let i=r[0].props.node,a=i?.tagName;if(a==="img")return m.jsx(m.Fragment,{children:e});if(a==="code"&&"data-block"in r[0].props)return m.jsx(m.Fragment,{children:e})}return m.jsx("p",{...n,children:e})},(e,t)=>Ie(e,t));jd.displayName="MarkdownParagraph";var UC={ol:us,li:bd,ul:Ed,hr:Td,strong:kd,a:xd,h1:yd,h2:Ad,h3:Cd,h4:_d,h5:Sd,h6:wd,table:Id,thead:Nd,tbody:vd,tr:Ld,th:Rd,td:Pd,blockquote:Dd,code:Bd,img:zd,pre:({children:e})=>b.isValidElement(e)?b.cloneElement(e,{"data-block":"true"}):e,sup:Md,sub:Od,p:jd,section:Fd},qC=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,VC=/\p{L}/u;function Hd(e){let t=e.replace(/(```|~~~)[\s\S]*?\1/g,"").replace(/^#{1,6}\s+/gm,"").replace(/(\*{1,3}|_{1,3})/g,"").replace(/`[^`]*`/g,"").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^[\s>*\-+\d.]+/gm,""),n,r=0,i=0;for(let a of t){if(qC.test(a)){n!=null||(n="rtl"),i+=1;continue}VC.test(a)&&(n!=null||(n="ltr"),r+=1)}return i>r?"rtl":r>i?"ltr":n??"ltr"}var $C=/^[ \t]{0,3}(`{3,}|~{3,})/,YC=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,el=e=>{let t=e.split(`
|
|
226
|
-
`),n=null,r=0;for(let
|
|
227
|
-
`);for(let n of t){let r=n.trim();if(r.length>0&&r.includes("|")&&
|
|
228
|
-
`))return e+t+n;let r=t.replace(
|
|
225
|
+
`?n.push("<br>"):n.push(r);return n.join("")},fd=e=>{let{headers:t,rows:n}=e;if(t.length===0)return"";let r=new Array(n.length+2),a=0,i=t.map(o=>Da(o));r[a]=`| ${i.join(" | ")} |`,a+=1;let s=new Array(t.length);for(let o=0;o<t.length;o+=1)s[o]="---";r[a]=`| ${s.join(" | ")} |`,a+=1;for(let o of n)if(o.length<t.length){let l=new Array(t.length);for(let u=0;u<t.length;u+=1)l[u]=u<o.length?Da(o[u]):"";r[a]=`| ${l.join(" | ")} |`,a+=1}else{let l=o.map(u=>Da(u));r[a]=`| ${l.join(" | ")} |`,a+=1}return r.join(`
|
|
226
|
+
`)},pd=({children:e,className:t,onCopy:n,onError:r,timeout:a=2e3})=>{let i=le(),[s,o]=b.useState(!1),[l,u]=b.useState(!1),d=b.useRef(null),h=b.useRef(0),{isAnimating:p,controls:f}=b.useContext(Be),g=At(),y=hd(f),w=async A=>{var L,P;if(typeof window>"u"||!((L=navigator?.clipboard)!=null&&L.write)){r?.(new Error("Clipboard API not available"));return}try{let I=(P=d.current)==null?void 0:P.closest('[data-streamdown="table-wrapper"]'),D=I?.querySelector("table");if(!D){r?.(new Error("Table not found"));return}let R=dd(D),z="";A==="csv"?z=md(R,y):A==="tsv"?z=NC(R):z=fd(R);let v=new ClipboardItem({"text/plain":new Blob([z],{type:"text/plain"}),"text/html":new Blob([D.outerHTML],{type:"text/html"})});await navigator.clipboard.write([v]),u(!0),o(!1),n?.(A),h.current=window.setTimeout(()=>u(!1),a)}catch(I){r?.(I)}};b.useEffect(()=>{let A=L=>{let P=L.composedPath();d.current&&!P.includes(d.current)&&o(!1)};return document.addEventListener("mousedown",A),()=>{document.removeEventListener("mousedown",A),window.clearTimeout(h.current)}},[]);let x=mt(),_=l?x.CheckIcon:x.CopyIcon;return m.jsxs("div",{className:i("relative"),ref:d,children:[m.jsx("button",{className:i("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:p,onClick:()=>o(!s),title:g.copyTable,type:"button",children:e??m.jsx(_,{height:14,width:14})}),s?m.jsxs("div",{className:i("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[m.jsx("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>w("md"),title:g.copyTableAsMarkdown,type:"button",children:g.tableFormatMarkdown}),m.jsx("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>w("csv"),title:g.copyTableAsCsv,type:"button",children:g.tableFormatCsv}),m.jsx("button",{className:i("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>w("tsv"),title:g.copyTableAsTsv,type:"button",children:g.tableFormatTsv})]}):null]})},gd=({children:e,className:t,onDownload:n,onError:r})=>{let a=le(),[i,s]=b.useState(!1),o=b.useRef(null),{isAnimating:l,controls:u}=b.useContext(Be),d=At(),h=mt(),p=hd(u),f=g=>{var y;try{let w=(y=o.current)==null?void 0:y.closest('[data-streamdown="table-wrapper"]'),x=w?.querySelector("table");if(!x){r?.(new Error("Table not found"));return}let _=dd(x),A=g==="csv"?md(_,p):fd(_),L=g==="csv"?"csv":"md",P=`${as(u,"table","table")}.${L}`;mn(P,A,g==="csv"?"text/csv":"text/markdown"),s(!1),n?.(g)}catch(w){r?.(w)}};return b.useEffect(()=>{let g=y=>{let w=y.composedPath();o.current&&!w.includes(o.current)&&s(!1)};return document.addEventListener("mousedown",g),()=>{document.removeEventListener("mousedown",g)}},[]),m.jsxs("div",{className:a("relative"),ref:o,children:[m.jsx("button",{className:a("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:l,onClick:()=>s(!i),title:d.downloadTable,type:"button",children:e??m.jsx(h.DownloadIcon,{size:14})}),i?m.jsxs("div",{className:a("absolute top-full right-0 z-20 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg"),children:[m.jsx("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>f("csv"),title:d.downloadTableAsCsv,type:"button",children:d.tableFormatCsv}),m.jsx("button",{className:a("w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40"),onClick:()=>f("markdown"),title:d.downloadTableAsMarkdown,type:"button",children:d.tableFormatMarkdown})]}):null]})},LC=({children:e,className:t,showCopy:n=!0,showDownload:r=!0})=>{let{Maximize2Icon:a,XIcon:i}=mt(),s=le(),[o,l]=b.useState(!1),{isAnimating:u}=b.useContext(Be),d=At(),h=()=>{l(!0)},p=()=>{l(!1)};return b.useEffect(()=>{if(o){is();let f=g=>{g.key==="Escape"&&l(!1)};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f),ss()}}},[o]),m.jsxs(m.Fragment,{children:[m.jsx("button",{className:s("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:u,onClick:h,title:d.viewFullscreen,type:"button",children:m.jsx(a,{size:14})}),o?fi.createPortal(m.jsx("div",{"aria-label":d.viewFullscreen,"aria-modal":"true",className:s("fixed inset-0 z-50 flex flex-col bg-background"),"data-streamdown":"table-fullscreen",onClick:p,onKeyDown:f=>{f.key==="Escape"&&p()},role:"dialog",children:m.jsxs("div",{className:s("flex h-full flex-col"),"data-streamdown":"table-wrapper",onClick:f=>f.stopPropagation(),onKeyDown:f=>f.stopPropagation(),role:"presentation",children:[m.jsxs("div",{className:s("flex items-center justify-end gap-1 p-4"),children:[n?m.jsx(pd,{}):null,r?m.jsx(gd,{}):null,m.jsx("button",{className:s("rounded-md p-1 text-muted-foreground transition-all hover:bg-muted hover:text-foreground"),onClick:p,title:d.exitFullscreen,type:"button",children:m.jsx(i,{size:20})})]}),m.jsx("div",{className:s("flex-1 overflow-auto p-4 pt-0 [&_thead]:sticky [&_thead]:top-0 [&_thead]:z-10"),children:m.jsx("table",{className:s("w-full border-collapse border border-border"),"data-streamdown":"table",children:e})})]})}),document.body):null]})},RC=({children:e,className:t,maxHeight:n,showControls:r,showCopy:a=!0,showDownload:i=!0,showFullscreen:s=!0,...o})=>{let l=le(),{isAnimating:u}=b.useContext(Be),d=rd(n),h=ad(u,!!d,e),p=r&&a,f=r&&i,g=r&&s,y=p||f||g;return m.jsxs("div",{className:l("my-4 flex flex-col gap-2 rounded-lg border border-border bg-sidebar p-2"),"data-streamdown":"table-wrapper",children:[y?m.jsxs("div",{className:l("flex items-center justify-end gap-1"),children:[p?m.jsx(pd,{}):null,f?m.jsx(gd,{}):null,g?m.jsx(LC,{showCopy:p,showDownload:f,children:e}):null]}):null,m.jsx("div",{className:l("border-collapse overflow-x-auto overflow-y-auto rounded-md border border-border bg-background"),ref:h,style:d?{maxHeight:d}:void 0,children:m.jsx("table",{className:l("w-full divide-y divide-border",t),"data-streamdown":"table",...o,children:e})})]})},DC=/startLine=(\d+)/,PC=/\bnoLineNumbers\b/,OC=b.lazy(()=>Promise.resolve().then(()=>require("./mermaid-HWGCJPDP-BShbjdzs.cjs")).then(e=>({default:e.Mermaid}))),MC=/language-([^\s]+)/,FC="node";function Ie(e,t){let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;let r=e,a=t;for(let i of n)if(i!==FC&&!Object.is(r[i],a[i]))return!1;return!0}function BC(e,t){var n,r;return((n=e?.properties)==null?void 0:n.metastring)===((r=t?.properties)==null?void 0:r.metastring)}var zr=(e,t)=>typeof e=="boolean"?e:e[t]!==!1,Pa=(e,t)=>{if(typeof e=="boolean")return e;let n=e.table;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},Jo=(e,t)=>{if(typeof e=="boolean")return e;let n=e.code;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},xr=(e,t)=>{if(typeof e=="boolean")return e;let n=e.mermaid;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},zC=(e,t)=>{if(typeof e=="boolean")return e;let n=e.image;return n===!1?!1:n===!0||n===void 0?!0:n[t]!==!1},us=b.memo(({children:e,className:t,node:n,...r})=>{let a=le();return m.jsx("ol",{className:a("list-inside list-decimal whitespace-normal [li_&]:pl-6",t),"data-streamdown":"ordered-list",...r,children:e})},(e,t)=>Ie(e,t));us.displayName="MarkdownOl";var bd=b.memo(({children:e,className:t,node:n,...r})=>{let a=le();return m.jsx("li",{className:a("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...r,children:e})},(e,t)=>Ie(e,t));bd.displayName="MarkdownLi";var Ed=b.memo(({children:e,className:t,node:n,...r})=>{let a=le();return m.jsx("ul",{className:a("list-inside list-disc whitespace-normal [li_&]:pl-6",t),"data-streamdown":"unordered-list",...r,children:e})},(e,t)=>Ie(e,t));Ed.displayName="MarkdownUl";var Td=b.memo(({className:e,node:t,...n})=>{let r=le();return m.jsx("hr",{className:r("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n})},(e,t)=>Ie(e,t));Td.displayName="MarkdownHr";var kd=b.memo(({children:e,className:t,node:n,...r})=>{let a=le();return m.jsx("span",{className:a("font-semibold",t),"data-streamdown":"strong",...r,children:e})},(e,t)=>Ie(e,t));kd.displayName="MarkdownStrong";var jC=({children:e,className:t,href:n,node:r,...a})=>{let i=le(),{linkSafety:s}=b.useContext(Be),[o,l]=b.useState(!1),u=n==="streamdown:incomplete-link",d=b.useCallback(async g=>{if(!(!(s!=null&&s.enabled&&n)||u)){if(g.preventDefault(),s.onLinkCheck&&await s.onLinkCheck(n)){window.open(n,"_blank","noreferrer");return}l(!0)}},[s,n,u]),h=b.useCallback(()=>{n&&window.open(n,"_blank","noreferrer")},[n]),p=b.useCallback(()=>{l(!1)},[]),f={url:n??"",isOpen:o,onClose:p,onConfirm:h};return s!=null&&s.enabled&&n?m.jsxs(m.Fragment,{children:[m.jsx("button",{className:i("wrap-anywhere appearance-none text-left font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",onClick:d,type:"button",children:e}),s.renderModal?s.renderModal(f):m.jsx(CC,{...f})]}):m.jsx("a",{className:i("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":u,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...a,children:e})},xd=b.memo(jC,(e,t)=>Ie(e,t));xd.displayName="MarkdownA";var yd=b.memo(({children:e,className:t,node:n,...r})=>{let a=le();return m.jsx("h1",{className:a("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...r,children:e})},(e,t)=>Ie(e,t));yd.displayName="MarkdownH1";var Ad=b.memo(({children:e,className:t,node:n,...r})=>{let a=le();return m.jsx("h2",{className:a("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...r,children:e})},(e,t)=>Ie(e,t));Ad.displayName="MarkdownH2";var Cd=b.memo(({children:e,className:t,node:n,...r})=>{let a=le();return m.jsx("h3",{className:a("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...r,children:e})},(e,t)=>Ie(e,t));Cd.displayName="MarkdownH3";var _d=b.memo(({children:e,className:t,node:n,...r})=>{let a=le();return m.jsx("h4",{className:a("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...r,children:e})},(e,t)=>Ie(e,t));_d.displayName="MarkdownH4";var wd=b.memo(({children:e,className:t,node:n,...r})=>{let a=le();return m.jsx("h5",{className:a("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...r,children:e})},(e,t)=>Ie(e,t));wd.displayName="MarkdownH5";var Sd=b.memo(({children:e,className:t,node:n,...r})=>{let a=le();return m.jsx("h6",{className:a("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...r,children:e})},(e,t)=>Ie(e,t));Sd.displayName="MarkdownH6";var Id=b.memo(({children:e,className:t,node:n,...r})=>{let{controls:a,tableMaxHeight:i}=b.useContext(Be),s=zr(a,"table"),o=Pa(a,"copy"),l=Pa(a,"download"),u=Pa(a,"fullscreen");return m.jsx(RC,{className:t,maxHeight:i,showControls:s,showCopy:o,showDownload:l,showFullscreen:u,...r,children:e})},(e,t)=>Ie(e,t));Id.displayName="MarkdownTable";var vd=b.memo(({children:e,className:t,node:n,...r})=>{let a=le();return m.jsx("thead",{className:a("bg-muted/80",t),"data-streamdown":"table-header",...r,children:e})},(e,t)=>Ie(e,t));vd.displayName="MarkdownThead";var Nd=b.memo(({children:e,className:t,node:n,...r})=>{let a=le();return m.jsx("tbody",{className:a("divide-y divide-border",t),"data-streamdown":"table-body",...r,children:e})},(e,t)=>Ie(e,t));Nd.displayName="MarkdownTbody";var Ld=b.memo(({children:e,className:t,node:n,...r})=>{let a=le();return m.jsx("tr",{className:a("border-border",t),"data-streamdown":"table-row",...r,children:e})},(e,t)=>Ie(e,t));Ld.displayName="MarkdownTr";var Rd=b.memo(({children:e,className:t,node:n,...r})=>{let a=le();return m.jsx("th",{className:a("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...r,children:e})},(e,t)=>Ie(e,t));Rd.displayName="MarkdownTh";var Dd=b.memo(({children:e,className:t,node:n,...r})=>{let a=le();return m.jsx("td",{className:a("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...r,children:e})},(e,t)=>Ie(e,t));Dd.displayName="MarkdownTd";var Pd=b.memo(({children:e,className:t,node:n,...r})=>{let a=le();return m.jsx("blockquote",{className:a("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...r,children:e})},(e,t)=>Ie(e,t));Pd.displayName="MarkdownBlockquote";var Od=b.memo(({children:e,className:t,node:n,...r})=>{let a=le();return m.jsx("sup",{className:a("text-sm",t),"data-streamdown":"superscript",...r,children:e})},(e,t)=>Ie(e,t));Od.displayName="MarkdownSup";var Md=b.memo(({children:e,className:t,node:n,...r})=>{let a=le();return m.jsx("sub",{className:a("text-sm",t),"data-streamdown":"subscript",...r,children:e})},(e,t)=>Ie(e,t));Md.displayName="MarkdownSub";var Fd=b.memo(({children:e,className:t,node:n,...r})=>{if("data-footnotes"in r){let a=s=>{var o,l;if(!b.isValidElement(s))return!1;let u=Array.isArray(s.props.children)?s.props.children:[s.props.children],d=!1,h=!1;for(let p of u)if(p){if(typeof p=="string")p.trim()!==""&&(d=!0);else if(b.isValidElement(p))if(((o=p.props)==null?void 0:o["data-footnote-backref"])!==void 0)h=!0;else{let f=Array.isArray(p.props.children)?p.props.children:[p.props.children];for(let g of f){if(typeof g=="string"&&g.trim()!==""){d=!0;break}if(b.isValidElement(g)&&((l=g.props)==null?void 0:l["data-footnote-backref"])===void 0){d=!0;break}}}}return h&&!d},i=Array.isArray(e)?e.map(s=>{if(!b.isValidElement(s))return s;if(s.type===us){let o=(Array.isArray(s.props.children)?s.props.children:[s.props.children]).filter(l=>!a(l));return o.length===0?null:{...s,props:{...s.props,children:o}}}return s}):e;return(Array.isArray(i)?i.some(s=>s!==null):i!==null)?m.jsx("section",{className:t,...r,children:i}):null}return m.jsx("section",{className:t,...r,children:e})},(e,t)=>Ie(e,t));Fd.displayName="MarkdownSection";var HC=({node:e,className:t,children:n,...r})=>{var a,i;let s=le(),o=!("data-block"in r),{mermaid:l,controls:u,lineNumbers:d}=b.useContext(Be),h=ls(),p=ZA(),f=t?.match(MC),g=(a=f?.at(1))!=null?a:"",y=wC(g);if(o)return m.jsx("code",{className:s("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...r,children:n});let w=(i=e?.properties)==null?void 0:i.metastring,x=w?.match(DC),_=x?Number.parseInt(x[1],10):void 0,A=_!==void 0&&_>=1?_:void 0,L=!(w&&PC.test(w))&&d!==!1,P="";if(b.isValidElement(n)&&n.props&&typeof n.props=="object"&&"children"in n.props&&typeof n.props.children=="string"?P=n.props.children:typeof n=="string"&&(P=n),y){let M=y.component;return m.jsx(b.Suspense,{fallback:m.jsx(Zo,{}),children:m.jsx(M,{code:P,isIncomplete:p,language:g,meta:w})})}if(g==="mermaid"&&h){let M=zr(u,"mermaid"),j=xr(u,"download"),W=xr(u,"copy"),q=xr(u,"fullscreen"),F=xr(u,"panZoom"),G=M&&(j||W||q);return m.jsx(b.Suspense,{fallback:m.jsx(Zo,{}),children:m.jsxs("div",{className:s("group relative my-4 flex w-full flex-col gap-2 rounded-xl border border-border bg-sidebar p-2",t),"data-streamdown":"mermaid-block",children:[m.jsx("div",{className:s("flex h-8 items-center text-muted-foreground text-xs"),children:m.jsx("span",{className:s("ml-1 font-mono lowercase"),children:"mermaid"})}),G?m.jsx("div",{className:s("pointer-events-none sticky top-2 z-10 -mt-10 flex h-8 items-center justify-end"),children:m.jsxs("div",{className:s("pointer-events-auto flex shrink-0 items-center gap-2 rounded-md border border-sidebar bg-sidebar/80 px-1.5 py-1 supports-[backdrop-filter]:bg-sidebar/70 supports-[backdrop-filter]:backdrop-blur"),"data-streamdown":"mermaid-block-actions",children:[j?m.jsx(cd,{chart:P,config:l?.config}):null,W?m.jsx(oi,{code:P}):null,q?m.jsx(vC,{chart:P,config:l?.config}):null]})}):null,m.jsx("div",{className:s("rounded-md border border-border bg-background"),children:m.jsx(OC,{chart:P,config:l?.config,showControls:F})})]})})}let I=zr(u,"code"),D=Jo(u,"download"),R=Jo(u,"copy"),{"data-block":z,...v}=r;return m.jsx(uC,{className:t,code:P,isIncomplete:p,language:g,lineNumbers:L,startLine:A,...v,children:I?m.jsxs(m.Fragment,{children:[D?m.jsx(xC,{code:P,language:g}):null,R?m.jsx(oi,{}):null]}):null})},Bd=b.memo(HC,(e,t)=>Ie(e,t)&&BC(e.node,t.node));Bd.displayName="MarkdownCode";var UC=({node:e,className:t,...n})=>{let{controls:r}=b.useContext(Be),a=zr(r,"image"),i=a&&zC(r,"download");return m.jsx(AC,{className:t,node:e,showControls:a,showDownloadControl:i,...n})},zd=b.memo(UC,(e,t)=>Ie(e,t));zd.displayName="MarkdownImg";var jd=b.memo(({children:e,node:t,...n})=>{let r=(Array.isArray(e)?e:[e]).filter(a=>a!=null&&a!=="");if(r.length===1&&b.isValidElement(r[0])){let a=r[0].props.node,i=a?.tagName;if(i==="img")return m.jsx(m.Fragment,{children:e});if(i==="code"&&"data-block"in r[0].props)return m.jsx(m.Fragment,{children:e})}return m.jsx("p",{...n,children:e})},(e,t)=>Ie(e,t));jd.displayName="MarkdownParagraph";var qC={ol:us,li:bd,ul:Ed,hr:Td,strong:kd,a:xd,h1:yd,h2:Ad,h3:Cd,h4:_d,h5:wd,h6:Sd,table:Id,thead:vd,tbody:Nd,tr:Ld,th:Rd,td:Dd,blockquote:Pd,code:Bd,img:zd,pre:({children:e})=>b.isValidElement(e)?b.cloneElement(e,{"data-block":"true"}):e,sup:Od,sub:Md,p:jd,section:Fd},VC=/[\u0590-\u08FF\uFB1D-\uFDFF\uFE70-\uFEFF]/,$C=/\p{L}/u;function Hd(e){let t=e.replace(/(```|~~~)[\s\S]*?\1/g,"").replace(/^#{1,6}\s+/gm,"").replace(/(\*{1,3}|_{1,3})/g,"").replace(/`[^`]*`/g,"").replace(/\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/^[\s>*\-+\d.]+/gm,""),n,r=0,a=0;for(let i of t){if(VC.test(i)){n!=null||(n="rtl"),a+=1;continue}$C.test(i)&&(n!=null||(n="ltr"),r+=1)}return a>r?"rtl":r>a?"ltr":n??"ltr"}var YC=/^[ \t]{0,3}(`{3,}|~{3,})/,GC=/^\|?[ \t]*:?-{1,}:?[ \t]*(\|[ \t]*:?-{1,}:?[ \t]*)*\|?$/,el=e=>{let t=e.split(`
|
|
227
|
+
`),n=null,r=0;for(let a of t){let i=YC.exec(a);if(n===null){if(i){let s=i[1];n=s[0],r=s.length}}else if(i){let s=i[1],o=s[0],l=s.length;o===n&&l>=r&&(n=null,r=0)}}return n!==null},WC=e=>{let t=e.split(`
|
|
228
|
+
`);for(let n of t){let r=n.trim();if(r.length>0&&r.includes("|")&&GC.test(r))return!0}return!1},KC=()=>e=>{dt(e,"html",(t,n,r)=>{!r||typeof n!="number"||(r.children[n]={type:"text",value:t.value})})},tl=[],nl={allowDangerousHtml:!0},yr=new WeakMap,QC=class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,r=e.remarkPlugins,a=e.remarkRehypeOptions;if(!(n||r||a)){let d="default";return this.keyCache.set(e,d),d}let i=d=>{if(!d||d.length===0)return"";let h="";for(let p=0;p<d.length;p+=1){let f=d[p];if(p>0&&(h+=","),Array.isArray(f)){let[g,y]=f;if(typeof g=="function"){let w=yr.get(g);w||(w=g.name,yr.set(g,w)),h+=w}else h+=String(g);h+=":",h+=JSON.stringify(y)}else if(typeof f=="function"){let g=yr.get(f);g||(g=f.name,yr.set(f,g)),h+=g}else h+=String(f)}return h},s=i(n),o=i(r),l=a?JSON.stringify(a):"",u=`${o}::${s}::${l}`;return this.keyCache.set(e,u),u}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let r=this.cache.keys().next().value;r&&this.cache.delete(r)}this.cache.set(n,t)}clear(){this.cache.clear()}},rl=new QC,Ud=e=>{let t=XC(e),n=e.children||"",r=t.runSync(t.parse(n),n);return a_(r,e)},XC=e=>{let t=rl.get(e);if(t)return t;let n=JC(e);return rl.set(e,n),n},ZC=e=>e.some(t=>Array.isArray(t)?t[0]===Ya:t===Ya),JC=e=>{let t=e.rehypePlugins||tl,n=e.remarkPlugins||tl,r=ZC(t)?n:[...n,KC],a=e.remarkRehypeOptions?{...nl,...e.remarkRehypeOptions}:nl;return q2().use(Uy).use(r).use(C2,a).use(t)},e_=e=>e,t_=(e,t,n,r)=>{n?e.children.splice(t,1):e.children[t]={type:"text",value:r}},n_=(e,t)=>{var n;for(let r in Ca)if(Object.hasOwn(Ca,r)&&Object.hasOwn(e.properties,r)){let a=e.properties[r],i=Ca[r];(i===null||i.includes(e.tagName))&&(e.properties[r]=(n=t(String(a||""),r,e))!=null?n:void 0)}},r_=(e,t,n,r,a,i)=>{let s=!1;return r?s=!r.includes(e.tagName):a&&(s=a.includes(e.tagName)),!s&&i&&typeof t=="number"&&(s=!i(e,t,n)),s},a_=(e,t)=>{let{allowElement:n,allowedElements:r,disallowedElements:a,skipHtml:i,unwrapDisallowed:s,urlTransform:o}=t;if(n||r||a||i||o){let l=o||e_;dt(e,(u,d,h)=>{if(u.type==="raw"&&h&&typeof d=="number")return t_(h,d,i,u.value),d;if(u.type==="element"&&(n_(u,l),r_(u,d,h,r,a,n)&&h&&typeof d=="number"))return s&&u.children?h.children.splice(d,1,...u.children):h.children.splice(d,1),d})}return Qx(e,{Fragment:m.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:m.jsx,jsxs:m.jsxs,passKeys:!0,passNode:!0})},i_=/\[\^[\w-]{1,200}\](?!:)/,s_=/\[\^[\w-]{1,200}\]:/,o_=/<([A-Za-z][\w:-]*)[\s>/]/,l_=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),al=new Map,il=new Map,u_=e=>{let t=e.toLowerCase(),n=al.get(t);if(n)return n;let r=new RegExp(`<${t}(?=[\\s>/])[^>]*>`,"gi");return al.set(t,r),r},c_=e=>{let t=e.toLowerCase(),n=il.get(t);if(n)return n;let r=new RegExp(`</${t}(?=[\\s>])[^>]*>`,"gi");return il.set(t,r),r},sl=(e,t)=>{if(l_.has(t.toLowerCase()))return 0;let n=e.match(u_(t));if(!n)return 0;let r=0;for(let a of n)a.trimEnd().endsWith("/>")||(r+=1);return r},ol=(e,t)=>{let n=e.match(c_(t));return n?n.length:0},d_=e=>{let t=0;for(let n=0;n<e.length-1;n+=1)e[n]==="$"&&e[n+1]==="$"&&(t+=1,n+=1);return t},h_=e=>{let t=i_.test(e),n=s_.test(e);if(t||n)return[e];let r=st.lex(e,{gfm:!0}),a=[],i=[],s=!1;for(let o of r){let l=o.raw,u=a.length;if(i.length>0){a[u-1]+=l;let d=i.at(-1),h=sl(l,d),p=ol(l,d);for(let f=0;f<h;f+=1)i.push(d);for(let f=0;f<p;f+=1)i.length>0&&i.at(-1)===d&&i.pop();continue}if(o.type==="html"&&o.block){let d=l.match(o_);if(d){let h=d[1],p=sl(l,h),f=ol(l,h);p>f&&i.push(h)}}if(u>0&&!s){let d=a[u-1];if(d_(d)%2===1){a[u-1]=d+l;continue}}a.push(l),o.type!=="space"&&(s=o.type==="code")}return a},m_=/^\n*/,f_=/\n*$/,ci=/\n\n/g,p_=(e,t,n)=>{if(!t.includes(`
|
|
229
|
+
`))return e+t+n;let r=t.replace(ci,`
|
|
229
230
|
<!---->
|
|
230
|
-
`).replace(h_,`
|
|
231
|
-
|
|
232
231
|
`).replace(m_,`
|
|
233
232
|
|
|
233
|
+
`).replace(f_,`
|
|
234
|
+
|
|
234
235
|
`);return`${e}${r}${n}
|
|
235
236
|
|
|
236
|
-
`},
|
|
237
|
+
`},g_=(e,t)=>{let n=new RegExp(`<(${t})(?=[\\s>/])([^>]*)>`,"gi"),r="",a=0,i=n.exec(e);for(;i;){let s=i[0],o=i[1],l=i.index+s.length,u=e.slice(l);if(new RegExp(`</${o}\\s*>`,"i").test(u)){i=n.exec(e);continue}if(r+=e.slice(a,i.index),u.length===0){r+=s,a=l,i=n.exec(e);continue}if(u.startsWith(`
|
|
237
238
|
|
|
238
|
-
`)){let p=u.slice(2).replace(
|
|
239
|
+
`)){let p=u.slice(2).replace(ci,`
|
|
239
240
|
<!---->
|
|
240
241
|
`);r+=`${s}
|
|
241
242
|
|
|
242
|
-
${p}`,
|
|
243
|
-
`)){r+=s,
|
|
243
|
+
${p}`,a=e.length;break}if(!u.startsWith(`
|
|
244
|
+
`)){r+=s,a=l,i=n.exec(e);continue}let d=u.slice(1);if(d.trim().length===0){r+=s,a=l,i=n.exec(e);continue}let h=d.replace(ci,`
|
|
244
245
|
<!---->
|
|
245
246
|
`);r+=`${s}
|
|
246
247
|
|
|
247
|
-
${h}`,i=e.length;break}return i===0?e:r+e.slice(i)},g_=(e,t)=>{if(!t.length)return e;let n=e;for(let r of t){let i=new RegExp(`(<${r}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${r}\\s*>)`,"gi");n=n.replace(i,(a,s,o,l)=>f_(s,o,l)),n=p_(n,r)}return n},b_=/([\\`*_~[\]|])/g,E_=e=>e.replace(b_,"\\$1"),T_=(e,t)=>{if(!t.length)return e;let n=e;for(let r of t){let i=new RegExp(`(<${r}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${r}\\s*>)`,"gi");n=n.replace(i,(a,s,o,l)=>{let u=E_(o).replace(/\n\n/g," ");return s+u+l})}return n},k_=new Set(["blockquote","dd","dt","figcaption","h1","h2","h3","h4","h5","h6","li","p","td","th"]),qd=new Set(["code","kbd","pre","samp","var"]);function Vd(e){return e.children.map(t=>t.type==="text"?t.value:t.type==="element"&&!qd.has(t.tagName)?Vd(t):"").join("")}function x_(){return e=>{dt(e,"element",t=>{if(qd.has(t.tagName)){t.properties!=null||(t.properties={}),t.properties.dir="ltr";return}k_.has(t.tagName)&&(t.properties!=null||(t.properties={}),typeof t.properties.dir!="string"&&(t.properties.dir=Hd(Vd(t))))})}}var $d=e=>e.type==="text"?e.value:"children"in e&&Array.isArray(e.children)?e.children.map($d).join(""):"",y_=e=>t=>{if(!e||e.length===0)return;let n=new Set(e.map(r=>r.toLowerCase()));dt(t,"element",r=>{if(n.has(r.tagName.toLowerCase())){let i=$d(r);r.children=i?[{type:"text",value:i}]:[]}})},A_=()=>e=>{dt(e,"code",t=>{var n,r;t.meta&&(t.data=(n=t.data)!=null?n:{},t.data.hProperties={...(r=t.data.hProperties)!=null?r:{},metastring:t.meta})})},C_=/^[ \t]*<[\w!/?-]/,__=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,S_=e=>typeof e!="string"||e.length===0||!C_.test(e)?e:e.replace(__,"$1"),ll,ul,cl,dl,Sr={...Gt,clobberPrefix:"",protocols:{...Gt.protocols,href:[...(ul=(ll=Gt.protocols)==null?void 0:ll.href)!=null?ul:[],"tel","streamdown"]},attributes:{...Gt.attributes,code:[...(dl=(cl=Gt.attributes)==null?void 0:cl.code)!=null?dl:[],"metastring"]}},da={raw:Yi,sanitize:[yu,Sr],harden:[sf,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},w_={gfm:[ST,{}],codeMeta:A_},hl=Object.values(da),I_=Object.values(w_),N_={block:" ▋",circle:" ●"},Yd=["github-light","github-dark"],Gd={enabled:!0},v_={codeBlockMaxHeight:400,shikiTheme:Yd,controls:!0,isAnimating:!1,lineNumbers:!0,mode:"streaming",mermaid:void 0,linkSafety:Gd,tableMaxHeight:300},Be=b.createContext(v_),Wd=b.memo(({content:e,shouldParseIncompleteMarkdown:t,shouldNormalizeHtmlIndentation:n,index:r,isIncomplete:i,dir:a,animatePlugin:s,...o})=>{b.useLayoutEffect(()=>{s?.commit()});let l=typeof e=="string"&&n?S_(e):e,u=m.jsx(Ud,{...o,children:l});return m.jsx(nd.Provider,{value:i,children:a?m.jsx("div",{dir:a,style:{display:"contents"},children:u}):u})},(e,t)=>{if(e.content!==t.content||e.shouldNormalizeHtmlIndentation!==t.shouldNormalizeHtmlIndentation||e.index!==t.index||e.isIncomplete!==t.isIncomplete||e.dir!==t.dir)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),r=Object.keys(t.components||{});if(n.length!==r.length||n.some(i=>{var a,s;return((a=e.components)==null?void 0:a[i])!==((s=t.components)==null?void 0:s[i])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins||!!e.animatePlugin!=!!t.animatePlugin)});Wd.displayName="Block";var Kd=b.memo(({children:e,mode:t="streaming",dir:n,parseIncompleteMarkdown:r=!0,normalizeHtmlIndentation:i=!1,components:a,rehypePlugins:s=hl,remarkPlugins:o=I_,className:l,shikiTheme:u,mermaid:d,codeBlockMaxHeight:h=400,controls:p=!0,isAnimating:f=!1,tableMaxHeight:g=300,animated:y,BlockComponent:S=Wd,parseMarkdownIntoBlocksFn:x=d_,caret:_,plugins:A,remend:L,linkSafety:D=Gd,lineNumbers:I=!0,allowedTags:P,literalTagContent:R,translations:z,icons:N,prefix:O,onAnimationStart:j,onAnimationEnd:W,...q})=>{let F=b.useId(),G=b.useMemo(()=>JA(O),[O]),$=b.useRef(null),ne=b.useRef(j),ue=b.useRef(W);ne.current=j,ue.current=W,b.useEffect(()=>{var X,pe,Le;if(t==="static")return;let Ge=$.current;if($.current=f,Ge===null){f&&((X=ne.current)==null||X.call(ne));return}f&&!Ge?(pe=ne.current)==null||pe.call(ne):!f&&Ge&&((Le=ue.current)==null||Le.call(ue))},[f,t]);let T=b.useMemo(()=>P?Object.keys(P):[],[P]),Ee=b.useMemo(()=>{if(typeof e!="string")return"";let X=t==="streaming"&&r?qk(e,L):e;return R&&R.length>0&&(X=T_(X,R)),T.length>0&&(X=g_(X,T)),X},[e,t,r,L,T,R]),he=b.useMemo(()=>x(Ee),[Ee,x]),w=b.useMemo(()=>n==="auto"?he.map(Hd):void 0,[he,n]),ke=b.useMemo(()=>he.map((X,pe)=>`${F}-${pe}`),[he.length,F]),Z=b.useMemo(()=>y===!0?"true":y?JSON.stringify(y):"",[y]),J=b.useRef(null),xe=b.useRef([]),ye=b.useRef([]),ce=b.useRef(null),ve=b.useRef("");if(Z){if(ve.current!==Z){ve.current=Z;let X=Z!=="true"?y.maxBacklogMs:void 0;J.current=Wo({maxBacklogMs:X}),xe.current=[],ye.current=[]}else J.current||(J.current=Wo());f&&J.current&&J.current.beginPass(J.current.now())}else J.current=null,xe.current=[],ye.current=[],ve.current="";b.useLayoutEffect(()=>{var X;f&&((X=J.current)==null||X.commitPass())});let Ce=b.useMemo(()=>{var X,pe;return{codeBlockMaxHeight:h,shikiTheme:(pe=u??((X=A?.code)==null?void 0:X.getThemes()))!=null?pe:Yd,controls:p,isAnimating:f,lineNumbers:I,mode:t,mermaid:d,linkSafety:D,tableMaxHeight:g}},[h,u,p,f,I,t,d,D,A?.code,g]),Ye=b.useMemo(()=>z?JSON.stringify(z):"",[z]),ot=b.useMemo(()=>({...ud,...z}),[Ye]),Ze=b.useMemo(()=>{let{inlineCode:X,...pe}=a??{},Le={...UC,...pe};if(X){let Ge=Le.code;Le.code=pt=>"data-block"in pt?Ge?b.createElement(Ge,pt):null:b.createElement(X,pt)}return Le},[a]),se=b.useMemo(()=>{let X=[];return A!=null&&A.cjk&&(X=[...X,...A.cjk.remarkPluginsBefore]),X=[...X,...o],A!=null&&A.cjk&&(X=[...X,...A.cjk.remarkPluginsAfter]),A!=null&&A.math&&(X=[...X,A.math.remarkPlugin]),X},[o,A?.math,A?.cjk]),De=b.useMemo(()=>{var X;let pe=s;if(P&&Object.keys(P).length>0&&s===hl){let Le={...Sr,tagNames:[...(X=Sr.tagNames)!=null?X:[],...Object.keys(P)],attributes:{...Sr.attributes,...P}};pe=[da.raw,[yu,Le],da.harden]}return R&&R.length>0&&(pe=[...pe,[y_,R]]),A!=null&&A.math&&(pe=[...pe,A.math.rehypePlugin]),n==="auto"&&t==="static"&&(pe=[...pe,x_]),pe},[s,A?.math,P,R,n,t]),ft=b.useMemo(()=>{if(!f||he.length===0)return!1;let X=he.at(-1);return el(X)||GC(X)},[f,he]),_n=b.useMemo(()=>_&&f&&!ft?{"--streamdown-caret":`"${N_[_]}"`}:void 0,[_,f,ft]),ln=X=>{let pe=null;if(J.current&&f){if(!xe.current[X]){let Ge=Z&&Z!=="true"?y:{},{maxBacklogMs:pt,...Sn}=Ge;xe.current[X]=td({...Sn,timeline:J.current})}pe=xe.current[X]}ce.current!==De&&(ye.current=[],ce.current=De),pe&&!ye.current[X]&&(ye.current[X]=[...De,pe.rehypePlugin]);let Le=pe&&ye.current[X]?ye.current[X]:De;return{blockAnimatePlugin:pe,blockRehypePlugins:Le}};return t==="static"?m.jsx(sa.Provider,{value:ot,children:m.jsx(la.Provider,{value:A??null,children:m.jsx(Be.Provider,{value:Ce,children:m.jsx(Qo,{icons:N,children:m.jsx(aa.Provider,{value:G,children:m.jsx("div",{className:G("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",l),dir:n==="auto"?void 0:n,children:m.jsx(Ud,{components:Ze,rehypePlugins:De,remarkPlugins:se,...q,children:Ee})})})})})})}):m.jsx(sa.Provider,{value:ot,children:m.jsx(la.Provider,{value:A??null,children:m.jsx(Be.Provider,{value:Ce,children:m.jsx(Qo,{icons:N,children:m.jsx(aa.Provider,{value:G,children:m.jsxs("div",{className:G("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",_&&!ft?"[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]":null,l),style:_n,children:[he.length===0&&_&&f&&m.jsx("span",{}),he.map((X,pe)=>{var Le;let Ge=pe===he.length-1,pt=f&&Ge&&el(X),{blockAnimatePlugin:Sn,blockRehypePlugins:B}=ln(pe);return m.jsx(S,{animatePlugin:Sn,components:Ze,content:X,dir:(Le=w?.[pe])!=null?Le:n!=="auto"?n:void 0,index:pe,isIncomplete:pt,rehypePlugins:B,remarkPlugins:se,shouldNormalizeHtmlIndentation:i,shouldParseIncompleteMarkdown:r,...q},ke[pe])})]})})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.lineNumbers===t.lineNumbers&&e.codeBlockMaxHeight===t.codeBlockMaxHeight&&e.tableMaxHeight===t.tableMaxHeight&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation&&e.literalTagContent===t.literalTagContent&&JSON.stringify(e.translations)===JSON.stringify(t.translations)&&e.prefix===t.prefix&&e.dir===t.dir);Kd.displayName="Streamdown";var L_=({children:e,className:t,minZoom:n=.5,maxZoom:r=3,zoomStep:i=.1,showControls:a=!0,initialZoom:s=1,fullscreen:o=!1})=>{let{RotateCcwIcon:l,ZoomInIcon:u,ZoomOutIcon:d}=mt(),h=le(),p=At(),f=b.useRef(null),g=b.useRef(null),[y,S]=b.useState(s),[x,_]=b.useState({x:0,y:0}),[A,L]=b.useState(!1),[D,I]=b.useState({x:0,y:0}),[P,R]=b.useState({x:0,y:0}),z=b.useCallback($=>{S(ne=>Math.max(n,Math.min(r,ne+$)))},[n,r]),N=b.useCallback(()=>{z(i)},[z,i]),O=b.useCallback(()=>{z(-i)},[z,i]),j=b.useCallback(()=>{S(s),_({x:0,y:0})},[s]),W=b.useCallback($=>{$.preventDefault();let ne=$.deltaY>0?-i:i;z(ne)},[z,i]),q=b.useCallback($=>{if($.button!==0||$.isPrimary===!1)return;L(!0),I({x:$.clientX,y:$.clientY}),R(x);let ne=$.currentTarget;ne instanceof HTMLElement&&ne.setPointerCapture($.pointerId)},[x]),F=b.useCallback($=>{if(!A)return;$.preventDefault();let ne=$.clientX-D.x,ue=$.clientY-D.y;_({x:P.x+ne,y:P.y+ue})},[A,D,P]),G=b.useCallback($=>{L(!1);let ne=$.currentTarget;ne instanceof HTMLElement&&ne.releasePointerCapture($.pointerId)},[]);return b.useEffect(()=>{let $=f.current;if($)return $.addEventListener("wheel",W,{passive:!1}),()=>{$.removeEventListener("wheel",W)}},[W]),b.useEffect(()=>{let $=g.current;if($&&A)return document.body.style.userSelect="none",$.addEventListener("pointermove",F,{passive:!1}),$.addEventListener("pointerup",G),$.addEventListener("pointercancel",G),()=>{document.body.style.userSelect="",$.removeEventListener("pointermove",F),$.removeEventListener("pointerup",G),$.removeEventListener("pointercancel",G)}},[A,F,G]),m.jsxs("div",{className:h("relative flex flex-col",o?"h-full w-full":"min-h-28 w-full",t),ref:f,style:{cursor:A?"grabbing":"grab"},children:[a?m.jsxs("div",{className:h("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm",o?"bottom-4 left-4":"bottom-2 left-2"),children:[m.jsx("button",{"aria-label":p.zoomIn,className:h("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:y>=r,onClick:N,title:p.zoomIn,type:"button",children:m.jsx(u,{"aria-hidden":"true",size:16})}),m.jsx("button",{"aria-label":p.zoomOut,className:h("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:y<=n,onClick:O,title:p.zoomOut,type:"button",children:m.jsx(d,{"aria-hidden":"true",size:16})}),m.jsx("button",{"aria-label":p.resetView,className:h("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),onClick:j,title:p.resetView,type:"button",children:m.jsx(l,{"aria-hidden":"true",size:16})})]}):null,m.jsx("div",{className:h("flex-1 origin-center transition-transform duration-150 ease-out",o?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:q,ref:g,role:"application",style:{transform:`translate(${x.x}px, ${x.y}px) scale(${y})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},Qd=({chart:e,className:t,config:n,fullscreen:r=!1,showControls:i=!0})=>{let a=le(),[s,o]=b.useState(null),[l,u]=b.useState(!1),[d,h]=b.useState(""),[p,f]=b.useState(""),[g,y]=b.useState(0),{mermaid:S}=b.useContext(Be),x=ls(),_=S?.errorComponent,{shouldRender:A,containerRef:L}=OA({immediate:r});if(b.useEffect(()=>{if(A){if(!x){o("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");return}(async()=>{try{o(null),u(!0);let I=x.getMermaid(n),P=e.split("").reduce((N,O)=>(N<<5)-N+O.charCodeAt(0)|0,0),R=`mermaid-${Math.abs(P)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:z}=await I.render(R,e);h(z),f(z)}catch(I){if(!(p||d)){let P=I instanceof Error?I.message:"Failed to render Mermaid chart";o(P)}}finally{u(!1)}})()}},[e,n,g,A,x]),!(A||d||p))return m.jsx("div",{className:a("my-4 min-h-[200px]",t),ref:L});if(l&&!d&&!p)return m.jsx("div",{className:a("my-4 flex justify-center p-4",t),ref:L,children:m.jsxs("div",{className:a("flex items-center space-x-2 text-muted-foreground"),children:[m.jsx("div",{className:a("h-4 w-4 animate-spin rounded-full border-current border-b-2")}),m.jsx("span",{className:a("text-sm"),children:"Loading diagram..."})]})});if(s&&!d&&!p){let I=()=>y(P=>P+1);return _?m.jsx("div",{ref:L,children:m.jsx(_,{chart:e,error:s,retry:I})}):m.jsxs("div",{className:a("rounded-md bg-red-50 p-4",t),ref:L,children:[m.jsxs("p",{className:a("font-mono text-red-700 text-sm"),children:["Mermaid Error: ",s]}),m.jsxs("details",{className:a("mt-2"),children:[m.jsx("summary",{className:a("cursor-pointer text-red-600 text-xs"),children:"Show Code"}),m.jsx("pre",{className:a("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),children:e})]})]})}let D=d||p;return m.jsx("div",{className:a("size-full",t),"data-streamdown":"mermaid",ref:L,children:m.jsx(L_,{className:a(r?"size-full overflow-hidden":"overflow-hidden",t),fullscreen:r,maxZoom:3,minZoom:.5,showControls:i,zoomStep:.1,children:m.jsx("div",{"aria-label":"Mermaid chart",className:a("flex justify-center",r?"size-full items-center":null),dangerouslySetInnerHTML:{__html:D},role:"img"})})})};function R_(e){if(!e)return"";let t=e;return t.includes("\\n")&&!t.includes(`
|
|
248
|
+
${h}`,a=e.length;break}return a===0?e:r+e.slice(a)},b_=(e,t)=>{if(!t.length)return e;let n=e;for(let r of t){let a=new RegExp(`(<${r}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${r}\\s*>)`,"gi");n=n.replace(a,(i,s,o,l)=>p_(s,o,l)),n=g_(n,r)}return n},E_=/([\\`*_~[\]|])/g,T_=e=>e.replace(E_,"\\$1"),k_=(e,t)=>{if(!t.length)return e;let n=e;for(let r of t){let a=new RegExp(`(<${r}(?=[\\s>/])[^>]*>)([\\s\\S]*?)(</${r}\\s*>)`,"gi");n=n.replace(a,(i,s,o,l)=>{let u=T_(o).replace(/\n\n/g," ");return s+u+l})}return n},x_=new Set(["blockquote","dd","dt","figcaption","h1","h2","h3","h4","h5","h6","li","p","td","th"]),qd=new Set(["code","kbd","pre","samp","var"]);function Vd(e){return e.children.map(t=>t.type==="text"?t.value:t.type==="element"&&!qd.has(t.tagName)?Vd(t):"").join("")}function y_(){return e=>{dt(e,"element",t=>{if(qd.has(t.tagName)){t.properties!=null||(t.properties={}),t.properties.dir="ltr";return}x_.has(t.tagName)&&(t.properties!=null||(t.properties={}),typeof t.properties.dir!="string"&&(t.properties.dir=Hd(Vd(t))))})}}var $d=e=>e.type==="text"?e.value:"children"in e&&Array.isArray(e.children)?e.children.map($d).join(""):"",A_=e=>t=>{if(!e||e.length===0)return;let n=new Set(e.map(r=>r.toLowerCase()));dt(t,"element",r=>{if(n.has(r.tagName.toLowerCase())){let a=$d(r);r.children=a?[{type:"text",value:a}]:[]}})},C_=()=>e=>{dt(e,"code",t=>{var n,r;t.meta&&(t.data=(n=t.data)!=null?n:{},t.data.hProperties={...(r=t.data.hProperties)!=null?r:{},metastring:t.meta})})},__=/^[ \t]*<[\w!/?-]/,w_=/(^|\n)[ \t]{4,}(?=<[\w!/?-])/g,S_=e=>typeof e!="string"||e.length===0||!__.test(e)?e:e.replace(w_,"$1"),ll,ul,cl,dl,wr={...Gt,clobberPrefix:"",protocols:{...Gt.protocols,href:[...(ul=(ll=Gt.protocols)==null?void 0:ll.href)!=null?ul:[],"tel","streamdown"]},attributes:{...Gt.attributes,code:[...(dl=(cl=Gt.attributes)==null?void 0:cl.code)!=null?dl:[],"metastring"]}},di={raw:Ya,sanitize:[yu,wr],harden:[sf,{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]},I_={gfm:[ST,{}],codeMeta:C_},hl=Object.values(di),v_=Object.values(I_),N_={block:" ▋",circle:" ●"},Yd=["github-light","github-dark"],Gd={enabled:!0},L_={codeBlockMaxHeight:400,shikiTheme:Yd,controls:!0,isAnimating:!1,lineNumbers:!0,mode:"streaming",mermaid:void 0,linkSafety:Gd,tableMaxHeight:300},Be=b.createContext(L_),Wd=b.memo(({content:e,shouldParseIncompleteMarkdown:t,shouldNormalizeHtmlIndentation:n,index:r,isIncomplete:a,dir:i,animatePlugin:s,...o})=>{b.useLayoutEffect(()=>{s?.commit()});let l=typeof e=="string"&&n?S_(e):e,u=m.jsx(Ud,{...o,children:l});return m.jsx(nd.Provider,{value:a,children:i?m.jsx("div",{dir:i,style:{display:"contents"},children:u}):u})},(e,t)=>{if(e.content!==t.content||e.shouldNormalizeHtmlIndentation!==t.shouldNormalizeHtmlIndentation||e.index!==t.index||e.isIncomplete!==t.isIncomplete||e.dir!==t.dir)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),r=Object.keys(t.components||{});if(n.length!==r.length||n.some(a=>{var i,s;return((i=e.components)==null?void 0:i[a])!==((s=t.components)==null?void 0:s[a])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins||!!e.animatePlugin!=!!t.animatePlugin)});Wd.displayName="Block";var Kd=b.memo(({children:e,mode:t="streaming",dir:n,parseIncompleteMarkdown:r=!0,normalizeHtmlIndentation:a=!1,components:i,rehypePlugins:s=hl,remarkPlugins:o=v_,className:l,shikiTheme:u,mermaid:d,codeBlockMaxHeight:h=400,controls:p=!0,isAnimating:f=!1,tableMaxHeight:g=300,animated:y,BlockComponent:w=Wd,parseMarkdownIntoBlocksFn:x=h_,caret:_,plugins:A,remend:L,linkSafety:P=Gd,lineNumbers:I=!0,allowedTags:D,literalTagContent:R,translations:z,icons:v,prefix:M,onAnimationStart:j,onAnimationEnd:W,...q})=>{let F=b.useId(),G=b.useMemo(()=>eC(M),[M]),$=b.useRef(null),ne=b.useRef(j),ue=b.useRef(W);ne.current=j,ue.current=W,b.useEffect(()=>{var X,pe,Le;if(t==="static")return;let Ge=$.current;if($.current=f,Ge===null){f&&((X=ne.current)==null||X.call(ne));return}f&&!Ge?(pe=ne.current)==null||pe.call(ne):!f&&Ge&&((Le=ue.current)==null||Le.call(ue))},[f,t]);let T=b.useMemo(()=>D?Object.keys(D):[],[D]),Ee=b.useMemo(()=>{if(typeof e!="string")return"";let X=t==="streaming"&&r?Vk(e,L):e;return R&&R.length>0&&(X=k_(X,R)),T.length>0&&(X=b_(X,T)),X},[e,t,r,L,T,R]),he=b.useMemo(()=>x(Ee),[Ee,x]),S=b.useMemo(()=>n==="auto"?he.map(Hd):void 0,[he,n]),ke=b.useMemo(()=>he.map((X,pe)=>`${F}-${pe}`),[he.length,F]),Z=b.useMemo(()=>y===!0?"true":y?JSON.stringify(y):"",[y]),J=b.useRef(null),xe=b.useRef([]),ye=b.useRef([]),ce=b.useRef(null),Ne=b.useRef("");if(Z){if(Ne.current!==Z){Ne.current=Z;let X=Z!=="true"?y.maxBacklogMs:void 0;J.current=Wo({maxBacklogMs:X}),xe.current=[],ye.current=[]}else J.current||(J.current=Wo());f&&J.current&&J.current.beginPass(J.current.now())}else J.current=null,xe.current=[],ye.current=[],Ne.current="";b.useLayoutEffect(()=>{var X;f&&((X=J.current)==null||X.commitPass())});let Ce=b.useMemo(()=>{var X,pe;return{codeBlockMaxHeight:h,shikiTheme:(pe=u??((X=A?.code)==null?void 0:X.getThemes()))!=null?pe:Yd,controls:p,isAnimating:f,lineNumbers:I,mode:t,mermaid:d,linkSafety:P,tableMaxHeight:g}},[h,u,p,f,I,t,d,P,A?.code,g]),Ye=b.useMemo(()=>z?JSON.stringify(z):"",[z]),ot=b.useMemo(()=>({...ud,...z}),[Ye]),Ze=b.useMemo(()=>{let{inlineCode:X,...pe}=i??{},Le={...qC,...pe};if(X){let Ge=Le.code;Le.code=pt=>"data-block"in pt?Ge?b.createElement(Ge,pt):null:b.createElement(X,pt)}return Le},[i]),se=b.useMemo(()=>{let X=[];return A!=null&&A.cjk&&(X=[...X,...A.cjk.remarkPluginsBefore]),X=[...X,...o],A!=null&&A.cjk&&(X=[...X,...A.cjk.remarkPluginsAfter]),A!=null&&A.math&&(X=[...X,A.math.remarkPlugin]),X},[o,A?.math,A?.cjk]),Pe=b.useMemo(()=>{var X;let pe=s;if(D&&Object.keys(D).length>0&&s===hl){let Le={...wr,tagNames:[...(X=wr.tagNames)!=null?X:[],...Object.keys(D)],attributes:{...wr.attributes,...D}};pe=[di.raw,[yu,Le],di.harden]}return R&&R.length>0&&(pe=[...pe,[A_,R]]),A!=null&&A.math&&(pe=[...pe,A.math.rehypePlugin]),n==="auto"&&t==="static"&&(pe=[...pe,y_]),pe},[s,A?.math,D,R,n,t]),ft=b.useMemo(()=>{if(!f||he.length===0)return!1;let X=he.at(-1);return el(X)||WC(X)},[f,he]),_n=b.useMemo(()=>_&&f&&!ft?{"--streamdown-caret":`"${N_[_]}"`}:void 0,[_,f,ft]),ln=X=>{let pe=null;if(J.current&&f){if(!xe.current[X]){let Ge=Z&&Z!=="true"?y:{},{maxBacklogMs:pt,...wn}=Ge;xe.current[X]=td({...wn,timeline:J.current})}pe=xe.current[X]}ce.current!==Pe&&(ye.current=[],ce.current=Pe),pe&&!ye.current[X]&&(ye.current[X]=[...Pe,pe.rehypePlugin]);let Le=pe&&ye.current[X]?ye.current[X]:Pe;return{blockAnimatePlugin:pe,blockRehypePlugins:Le}};return t==="static"?m.jsx(si.Provider,{value:ot,children:m.jsx(li.Provider,{value:A??null,children:m.jsx(Be.Provider,{value:Ce,children:m.jsx(Qo,{icons:v,children:m.jsx(ii.Provider,{value:G,children:m.jsx("div",{className:G("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",l),dir:n==="auto"?void 0:n,children:m.jsx(Ud,{components:Ze,rehypePlugins:Pe,remarkPlugins:se,...q,children:Ee})})})})})})}):m.jsx(si.Provider,{value:ot,children:m.jsx(li.Provider,{value:A??null,children:m.jsx(Be.Provider,{value:Ce,children:m.jsx(Qo,{icons:v,children:m.jsx(ii.Provider,{value:G,children:m.jsxs("div",{className:G("space-y-4 whitespace-normal [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",_&&!ft?"[&>*:last-child]:after:inline [&>*:last-child]:after:align-baseline [&>*:last-child]:after:content-[var(--streamdown-caret)]":null,l),style:_n,children:[he.length===0&&_&&f&&m.jsx("span",{}),he.map((X,pe)=>{var Le;let Ge=pe===he.length-1,pt=f&&Ge&&el(X),{blockAnimatePlugin:wn,blockRehypePlugins:B}=ln(pe);return m.jsx(w,{animatePlugin:wn,components:Ze,content:X,dir:(Le=S?.[pe])!=null?Le:n!=="auto"?n:void 0,index:pe,isIncomplete:pt,rehypePlugins:B,remarkPlugins:se,shouldNormalizeHtmlIndentation:a,shouldParseIncompleteMarkdown:r,...q},ke[pe])})]})})})})})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.animated===t.animated&&e.mode===t.mode&&e.plugins===t.plugins&&e.className===t.className&&e.linkSafety===t.linkSafety&&e.lineNumbers===t.lineNumbers&&e.codeBlockMaxHeight===t.codeBlockMaxHeight&&e.tableMaxHeight===t.tableMaxHeight&&e.normalizeHtmlIndentation===t.normalizeHtmlIndentation&&e.literalTagContent===t.literalTagContent&&JSON.stringify(e.translations)===JSON.stringify(t.translations)&&e.prefix===t.prefix&&e.dir===t.dir);Kd.displayName="Streamdown";var R_=({children:e,className:t,minZoom:n=.5,maxZoom:r=3,zoomStep:a=.1,showControls:i=!0,initialZoom:s=1,fullscreen:o=!1})=>{let{RotateCcwIcon:l,ZoomInIcon:u,ZoomOutIcon:d}=mt(),h=le(),p=At(),f=b.useRef(null),g=b.useRef(null),[y,w]=b.useState(s),[x,_]=b.useState({x:0,y:0}),[A,L]=b.useState(!1),[P,I]=b.useState({x:0,y:0}),[D,R]=b.useState({x:0,y:0}),z=b.useCallback($=>{w(ne=>Math.max(n,Math.min(r,ne+$)))},[n,r]),v=b.useCallback(()=>{z(a)},[z,a]),M=b.useCallback(()=>{z(-a)},[z,a]),j=b.useCallback(()=>{w(s),_({x:0,y:0})},[s]),W=b.useCallback($=>{$.preventDefault();let ne=$.deltaY>0?-a:a;z(ne)},[z,a]),q=b.useCallback($=>{if($.button!==0||$.isPrimary===!1)return;L(!0),I({x:$.clientX,y:$.clientY}),R(x);let ne=$.currentTarget;ne instanceof HTMLElement&&ne.setPointerCapture($.pointerId)},[x]),F=b.useCallback($=>{if(!A)return;$.preventDefault();let ne=$.clientX-P.x,ue=$.clientY-P.y;_({x:D.x+ne,y:D.y+ue})},[A,P,D]),G=b.useCallback($=>{L(!1);let ne=$.currentTarget;ne instanceof HTMLElement&&ne.releasePointerCapture($.pointerId)},[]);return b.useEffect(()=>{let $=f.current;if($)return $.addEventListener("wheel",W,{passive:!1}),()=>{$.removeEventListener("wheel",W)}},[W]),b.useEffect(()=>{let $=g.current;if($&&A)return document.body.style.userSelect="none",$.addEventListener("pointermove",F,{passive:!1}),$.addEventListener("pointerup",G),$.addEventListener("pointercancel",G),()=>{document.body.style.userSelect="",$.removeEventListener("pointermove",F),$.removeEventListener("pointerup",G),$.removeEventListener("pointercancel",G)}},[A,F,G]),m.jsxs("div",{className:h("relative flex flex-col",o?"h-full w-full":"min-h-28 w-full",t),ref:f,style:{cursor:A?"grabbing":"grab"},children:[i?m.jsxs("div",{className:h("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/80 p-1 supports-[backdrop-filter]:bg-background/70 supports-[backdrop-filter]:backdrop-blur-sm",o?"bottom-4 left-4":"bottom-2 left-2"),children:[m.jsx("button",{"aria-label":p.zoomIn,className:h("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:y>=r,onClick:v,title:p.zoomIn,type:"button",children:m.jsx(u,{"aria-hidden":"true",size:16})}),m.jsx("button",{"aria-label":p.zoomOut,className:h("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50"),disabled:y<=n,onClick:M,title:p.zoomOut,type:"button",children:m.jsx(d,{"aria-hidden":"true",size:16})}),m.jsx("button",{"aria-label":p.resetView,className:h("flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground"),onClick:j,title:p.resetView,type:"button",children:m.jsx(l,{"aria-hidden":"true",size:16})})]}):null,m.jsx("div",{className:h("flex-1 origin-center transition-transform duration-150 ease-out",o?"flex h-full w-full items-center justify-center":"flex w-full items-center justify-center"),onPointerDown:q,ref:g,role:"application",style:{transform:`translate(${x.x}px, ${x.y}px) scale(${y})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},Qd=({chart:e,className:t,config:n,fullscreen:r=!1,showControls:a=!0})=>{let i=le(),[s,o]=b.useState(null),[l,u]=b.useState(!1),[d,h]=b.useState(""),[p,f]=b.useState(""),[g,y]=b.useState(0),{mermaid:w}=b.useContext(Be),x=ls(),_=w?.errorComponent,{shouldRender:A,containerRef:L}=FA({immediate:r});if(b.useEffect(()=>{if(A){if(!x){o("Mermaid plugin not available. Please add the mermaid plugin to enable diagram rendering.");return}(async()=>{try{o(null),u(!0);let I=x.getMermaid(n),D=e.split("").reduce((v,M)=>(v<<5)-v+M.charCodeAt(0)|0,0),R=`mermaid-${Math.abs(D)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:z}=await I.render(R,e);h(z),f(z)}catch(I){if(!(p||d)){let D=I instanceof Error?I.message:"Failed to render Mermaid chart";o(D)}}finally{u(!1)}})()}},[e,n,g,A,x]),!(A||d||p))return m.jsx("div",{className:i("my-4 min-h-[200px]",t),ref:L});if(l&&!d&&!p)return m.jsx("div",{className:i("my-4 flex justify-center p-4",t),ref:L,children:m.jsxs("div",{className:i("flex items-center space-x-2 text-muted-foreground"),children:[m.jsx("div",{className:i("h-4 w-4 animate-spin rounded-full border-current border-b-2")}),m.jsx("span",{className:i("text-sm"),children:"Loading diagram..."})]})});if(s&&!d&&!p){let I=()=>y(D=>D+1);return _?m.jsx("div",{ref:L,children:m.jsx(_,{chart:e,error:s,retry:I})}):m.jsxs("div",{className:i("rounded-md bg-red-50 p-4",t),ref:L,children:[m.jsxs("p",{className:i("font-mono text-red-700 text-sm"),children:["Mermaid Error: ",s]}),m.jsxs("details",{className:i("mt-2"),children:[m.jsx("summary",{className:i("cursor-pointer text-red-600 text-xs"),children:"Show Code"}),m.jsx("pre",{className:i("mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs"),children:e})]})]})}let P=d||p;return m.jsx("div",{className:i("size-full",t),"data-streamdown":"mermaid",ref:L,children:m.jsx(R_,{className:i(r?"size-full overflow-hidden":"overflow-hidden",t),fullscreen:r,maxZoom:3,minZoom:.5,showControls:a,zoomStep:.1,children:m.jsx("div",{"aria-label":"Mermaid chart",className:i("flex justify-center",r?"size-full items-center":null),dangerouslySetInnerHTML:{__html:P},role:"img"})})})};function D_(e){if(!e)return"";let t=e;return t.includes("\\n")&&!t.includes(`
|
|
248
249
|
`)&&(t=t.replace(/\\n/g,`
|
|
249
|
-
`).replace(/\\r/g,"\r").replace(/\\t/g," ")),t=t.replace(/```([a-zA-Z0-9_-]+)[ \t]+([^\n`]+)/g,"```$1\n$2"),t}const ml={a:({href:e,children:t,target:n="_blank",rel:r="noopener noreferrer",node:i,...a})=>m.jsx("a",{href:e,target:n,rel:r,...a,children:t})};function P_({content:e,children:t,className:n="",isAnimating:r,mode:i,dir:a,lineNumbers:s=!1,codeBlockMaxHeight:o=320,animated:l=!0,controls:u={code:{copy:!0},table:{copy:!0}},linkSafety:d={enabled:!1},components:h,...p}){const f=(e!==void 0?e:t)||"";if(!f||!f.trim())return null;const g=R_(f),y=i??(r?"streaming":"static"),S=h?{...ml,...h}:ml;return m.jsx("div",{className:me("rqmii-response",n),children:m.jsx(Kd,{mode:y,isAnimating:r,animated:l,dir:a,lineNumbers:s,codeBlockMaxHeight:o,controls:u,linkSafety:d,components:S,...p,children:g})})}const ai=b.memo(P_),D_=ai;function M_({role:e,from:t,variant:n="contained",dir:r,isPartial:i=!1,className:a="",children:s}){const o=t||e||"assistant",l=o==="user";return m.jsx("div",{className:me("rqmii-chat-message-row","rqmii-message",l?"is-user rqmii-message--user":"rqmii-message--assistant",n==="flat"&&"rqmii-message--flat",i&&"is-partial",a),"data-role":o,dir:r,children:s})}const si=b.memo(M_),O_=si;function F_({variant:e="contained",dir:t,className:n="",children:r}){return m.jsx("div",{className:me("rqmii-chat-message","rqmii-message-content",e==="flat"&&"rqmii-message-content--flat",n),dir:t,children:r})}const oi=b.memo(F_),B_=oi;function z_({agent:e,src:t,name:n,size:r="small",active:i=!1,className:a=""}){if(e)return m.jsx(rt,{agent:e,size:r,active:i,className:a});if(t)return m.jsx("div",{className:me("rqmii-agent-avatar",`rqmii-agent-avatar--${r}`,i&&"is-active",a),children:m.jsx("img",{src:t,alt:n||"Avatar"})});if(n){const s=n.split(" ").map(o=>o[0]).slice(0,2).join("").toUpperCase();return m.jsx("div",{className:me("rqmii-agent-avatar",`rqmii-agent-avatar--${r}`,"rqmii-avatar-fallback",a),children:m.jsx("span",{children:s})})}return null}const Xd=b.memo(z_),j_=Xd,H_=b.lazy(()=>Promise.resolve().then(()=>require("./Orb-Bp5JVO29.cjs")).then(e=>({default:e.RqmiiOrb}))),cs=b.memo(function({language:t,languages:n,onChange:r}){const[i,a]=b.useState(!1),s=b.useRef(null),o=Oi(t),l=En(n,t).map(u=>Oi(u)).filter(Boolean);return b.useEffect(()=>{if(!i)return;const u=d=>{s.current?.contains(d.target)||a(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[i]),m.jsxs("div",{className:"rqmii-chat-language",ref:s,children:[m.jsxs("button",{type:"button",className:"rqmii-chat-pill",onClick:()=>a(u=>!u),children:[m.jsx("span",{children:o?.label||t}),m.jsx(El,{size:16})]}),i&&l.length>1&&m.jsx("div",{className:"rqmii-chat-language-menu",children:l.map(u=>m.jsx("button",{type:"button",className:me("rqmii-chat-language-item",u.value===t&&"is-selected"),onClick:()=>{r(u.value),a(!1)},children:u.label},u.value))})]})}),vt=b.memo(function({language:t="en",brand:n="rqmii",agent:r}){const i=r?.widget?.appearance,a=i?.show_branding!==!1,s=i?.footer_content?.[t],o=!!s?.trim();if(!a&&!o)return m.jsx("div",{style:{padding:11}});const l=te(t,"poweredBy"),u=kt(t),d=()=>{if(l.includes("{brand}")){const h=l.split("{brand}");return m.jsxs("p",{dir:u,children:[h[0],m.jsx("strong",{children:n}),h[1]]})}return m.jsxs("p",{dir:u,children:[l," ",m.jsx("strong",{children:n})]})};return m.jsxs("div",{className:"rqmii-chat-footer",dir:u,children:[a&&d(),o&&m.jsx("p",{dir:u,children:s})]})}),rt=b.memo(function({agent:t,size:n="large",active:r=!1,className:i=""}){const a=t?.faceImage,s=!a||a==="orb";return m.jsx("div",{className:me("rqmii-agent-avatar",`rqmii-agent-avatar--${n}`,r&&"is-active",s&&"is-orb",i),children:s?m.jsx(b.Suspense,{fallback:null,children:m.jsx(H_,{className:"rqmii-agent-avatar-orb"})}):m.jsx("img",{src:a,alt:t?.name||"Agent"})})}),ds=b.memo(function({agent:t,onClick:n,className:r="",position:i="fixed",active:a=!1}){return m.jsx("button",{type:"button",className:me("rqmii-chat-open-button",i==="fixed"&&"is-fixed",r),onClick:n,"aria-label":"Open chat",children:m.jsx(rt,{agent:t,size:"button",active:a})})});function U_(){try{const e=window.AudioContext||window.webkitAudioContext;if(!e)return;const t=new e,n=t.currentTime,r=t.createOscillator(),i=t.createGain();r.type="sine",r.frequency.setValueAtTime(880,n),r.frequency.setValueAtTime(1180,n+.12),i.gain.setValueAtTime(1e-4,n),i.gain.exponentialRampToValueAtTime(.18,n+.02),i.gain.exponentialRampToValueAtTime(1e-4,n+.32),r.connect(i),i.connect(t.destination),r.start(n),r.stop(n+.34),r.onended=()=>{t.close()}}catch{}}const q_=b.memo(function({message:t,delaySeconds:n,soundEnabled:r,language:i,buttonPosition:a="right",onClick:s}){const[o,l]=b.useState(!1),u=t.trim();if(b.useEffect(()=>{if(!u)return;const h=setTimeout(()=>{l(!0),r&&U_()},Math.max(0,n)*1e3);return()=>clearTimeout(h)},[u,n,r]),!o||!u)return null;const d=a==="right"?"is-right":"is-left";return m.jsx("button",{type:"button",className:me("rqmii-chat-welcome-bubble",d,nt()),dir:kt(i),onClick:s,"aria-label":u,children:u})}),li=b.memo(function({language:t,placeholder:n,onSend:r,disabled:i=!1,variant:a="text"}){const[s,o]=b.useState(""),l=b.useRef(null),u=168,d=()=>{const h=s.trim();!h||i||(r(h),o(""),l.current&&(l.current.style.height="auto"))};return m.jsxs("div",{className:me("rqmii-chat-input",nt(),a==="voice"&&"is-voice"),children:[m.jsx("textarea",{ref:l,value:s,disabled:i,rows:a==="compact"?2:3,dir:kt(t),placeholder:n||te(t,"sendMessage"),onChange:h=>{o(h.target.value);const p=l.current;p&&(p.style.height="auto",p.style.height=`${Math.min(p.scrollHeight,u)}px`)},onKeyDown:h=>{h.key==="Enter"&&!h.shiftKey&&(h.preventDefault(),d())}}),m.jsx("button",{type:"button",onClick:d,disabled:!s.trim()||i,"aria-label":te(t,"send"),children:m.jsx(Im,{size:20})})]})});b.memo(function({text:t,streaming:n}){const r=Zm(t,n);return m.jsx(m.Fragment,{children:r})});const ha=133,V_=ha+44,$_=767,Un=36,Y_=8,fl=Un+Y_;function G_(){return typeof window>"u"?ha:window.innerWidth<=$_?V_:ha}function W_(e){return e==="rtl"?"right":"left"}function K_(e,t,n,r){if(!e.length)return null;const i=Math.max(...e.map(s=>s.offsetTop)),a=e.filter(s=>s.offsetTop>=i-.5);return n==="right"?a.find(s=>s.offsetLeft+s.offsetWidth>t-r)||null:a.find(s=>s.offsetLeft<r)||null}function pl(e,t,n,r){for(let i=0;i<2;i++){const a=K_(e,t,n,r);if(!a)break;n==="right"?a.style.marginRight=`${r}px`:a.style.marginLeft=`${r}px`,a.style.maxWidth=`calc(100% - ${r}px)`}}const Q_=b.memo(function({suggestions:t,language:n,onClick:r}){const[i,a]=b.useState(!1),[s,o]=b.useState(!1),[l,u]=b.useState(null),[d,h]=b.useState(null),p=b.useRef(null),f=b.useRef([]),g=kt(n||"en"),y=W_(g),S=x=>{x.forEach(_=>{_&&(_.style.maxWidth="",_.style.marginRight="",_.style.marginLeft="")})};return b.useLayoutEffect(()=>{const x=p.current;if(!x||i)return;const _=()=>{const L=f.current;S(L);const D=x.clientWidth,I=G_(),P=()=>{for(let z=0;z<L.length;z++){const N=L[z];if(N&&N.offsetTop+N.offsetHeight>I+.5)return z}return null};let R=P();if(R!==null)for(let z=0;z<=L.length;z++){S(L);const N=L.slice(0,R).filter(j=>!!j);pl(N,D,y,fl);const O=P();if(O===null||O>=R)break;R=O}if(u(R),o(R!==null),R!==null){const z=L.slice(0,R).filter(O=>!!O),N=z.length?Math.max(...z.map(O=>O.offsetTop+O.offsetHeight)):Un;h(N-Un)}else h(null)};_();const A=typeof ResizeObserver<"u"?new ResizeObserver(_):null;return A?.observe(x),()=>{A?.disconnect(),S(f.current)}},[t,i,y]),b.useLayoutEffect(()=>{const x=p.current;if(!x||!i)return;const _=f.current.filter(L=>!!L);S(f.current),pl(_,x.clientWidth,y,fl);const A=_.length?Math.max(..._.map(L=>L.offsetTop+L.offsetHeight)):Un;return h(A-Un),()=>{S(f.current)}},[i,t,y]),t.length?m.jsx("div",{className:me("rqmii-suggested-messages",i&&"is-expanded",s&&"has-overflow"),dir:g,children:m.jsxs("div",{ref:p,className:me("rqmii-suggested-messages-inner",i?"is-expanded":"is-collapsed"),children:[t.map((x,_)=>{const A=!i&&l!==null&&_>=l;return m.jsx("button",{ref:L=>{f.current[_]=L},type:"button",className:"rqmii-suggested-message",onClick:()=>r(x),style:A?{visibility:"hidden"}:void 0,"aria-hidden":A||void 0,tabIndex:A?-1:void 0,children:x},_)}),s&&m.jsx("button",{type:"button",className:me("rqmii-suggested-messages-toggle",y==="left"&&"is-start-left"),style:d!=null?{top:d,bottom:"auto"}:void 0,onClick:()=>a(x=>(x&&p.current&&(p.current.scrollTop=0),!x)),"aria-label":i?"Show less":"Show more","aria-expanded":i,children:i?m.jsx(Pm,{size:14}):m.jsx(El,{size:14})})]})}):null}),X_=b.memo(function({language:t}){const n=kt(t||"en");return m.jsx("div",{className:"rqmii-chat-message-row",children:m.jsxs("div",{className:"rqmii-chat-message rqmii-chat-typing-indicator",dir:n,children:[m.jsx("span",{className:"rqmii-chat-typing-dot"}),m.jsx("span",{className:"rqmii-chat-typing-dot"}),m.jsx("span",{className:"rqmii-chat-typing-dot"})]})})});function Z_(e){return e==="message"}const J_={name:"leadFormName",email:"leadFormEmail",phone:"leadFormPhone",message:"leadFormMessage"},e3=b.memo(function({messageId:t,form:n,language:r,textDirection:i,formSubmitted:a}){const s=Te.useRqmiiAgentContext(),[o,l]=b.useState({}),[u,d]=b.useState(!1),[h,p]=b.useState(!!a),[f,g]=b.useState(null),y=n.title||te(r,"leadFormTitle"),S=A=>{const L=J_[A.key];return`${L?te(r,L):A.label}${A.required?"*":""}`},x=(A,L)=>{l(D=>({...D,[A]:L})),f&&g(null)},_=async A=>{if(A.preventDefault(),u||h)return;if(n.fields.some(I=>I.required&&!o[I.key]?.trim())){g(te(r,"leadFormRequiredError"));return}const D={};for(const I of n.fields){const P=o[I.key]?.trim();P&&(D[I.key]=P)}d(!0),g(null);try{await s.submitLead({agentId:n.agentId,collectedData:D}),p(!0),s.setMessages(s.messages.map(I=>I.id===t?{...I,formSubmitted:!0}:I))}catch(I){g(I?.message||te(r,"leadFormGenericError"))}finally{d(!1)}};return h?m.jsx("div",{className:"rqmii-chat-message-row rqmii-chat-lead-form-row",children:m.jsx("div",{className:"rqmii-chat-lead-form rqmii-chat-lead-form--done",dir:i,children:m.jsx("div",{className:"rqmii-chat-lead-form-success",children:te(r,"leadFormSuccess")})})}):m.jsx("div",{className:"rqmii-chat-message-row rqmii-chat-lead-form-row",children:m.jsxs("form",{className:"rqmii-chat-lead-form",dir:i,onSubmit:_,children:[m.jsx("div",{className:"rqmii-chat-lead-form-title",children:y}),n.fields.map(A=>{const L=S(A),D=A.type==="email"?"email":A.type==="date"?"date":"text";return Z_(A.key)?m.jsx("textarea",{className:"rqmii-chat-lead-form-input rqmii-chat-lead-form-textarea",placeholder:L,value:o[A.key]||"",onChange:I=>x(A.key,I.target.value),disabled:u,rows:4},A.key):m.jsx("input",{className:"rqmii-chat-lead-form-input",type:D,placeholder:L,value:o[A.key]||"",onChange:I=>x(A.key,I.target.value),disabled:u},A.key)}),f&&m.jsx("div",{className:"rqmii-chat-lead-form-error",children:f}),m.jsx("button",{type:"submit",className:"rqmii-chat-lead-form-submit",disabled:u,children:u?te(r,"loading"):te(r,"submit")})]})})}),t3=b.memo(function({message:t,textDirection:n,language:r}){if(t.role==="lead_form"&&t.form)return m.jsx(e3,{messageId:t.id,form:t.form,language:r,textDirection:n,formSubmitted:t.formSubmitted});const i=t.role==="user"||t.sender==="user";return m.jsx(si,{role:i?"user":t.role||"assistant",children:m.jsx(oi,{dir:n,children:i?t.text:m.jsx(ai,{content:t.text,isAnimating:!!t.streaming,mode:t.streaming?"streaming":"static",dir:n})})})}),ui=b.memo(function({messages:t,partialTranscript:n,language:r,showTypingIndicator:i}){const a=b.useRef(null),s=kt(r||"en"),o=b.useRef(t.length);return b.useEffect(()=>{if(!a.current)return;const l=t.length!==o.current;o.current=t.length,a.current.scrollIntoView({behavior:l?"smooth":"instant",block:"end"})},[t,n]),m.jsxs("div",{className:"rqmii-chat-messages",children:[t.map(l=>m.jsx(t3,{message:l,textDirection:s,language:r||"en"},l.id||`${l.role}-${l.text}`)),i&&m.jsx(X_,{language:r}),n&&m.jsx(si,{role:"user",isPartial:!0,children:m.jsx(oi,{dir:s,children:n})}),m.jsx("div",{ref:a})]})}),Zd=b.memo(function({message:t,onRetry:n,onClose:r,language:i="en"}){return m.jsxs("div",{className:"rqmii-chat-panel rqmii-chat-panel--error",children:[r&&m.jsx("button",{type:"button",className:"rqmii-error-close",onClick:r,children:"×"}),m.jsx("p",{children:t||te(i,"connectionFailed")}),n&&m.jsxs("button",{type:"button",className:"rqmii-chat-retry",onClick:n,children:[m.jsx(qm,{size:16}),m.jsx("span",{children:te(i,"retry")})]})]})}),n3=5;function Jd({rating:e,onRate:t,readonly:n,size:r=28}){const[i,a]=b.useState(0),s=i||e;return m.jsx("div",{className:"rqmii-chat-rating-stars",role:"radiogroup",children:Array.from({length:n3},(o,l)=>{const u=l+1,d=u<=s;return m.jsx("button",{type:"button",className:me("rqmii-chat-star",d&&"is-filled",n&&"is-readonly"),disabled:n,"aria-label":`${u}`,"aria-checked":u===e,role:"radio",onMouseEnter:()=>!n&&a(u),onMouseLeave:()=>!n&&a(0),onClick:()=>!n&&t?.(u),children:m.jsx($m,{size:r,fill:d?"currentColor":"none"})},u)})})}function eh({language:e,rating:t,endedBy:n,sessionId:r,interactive:i,showTellUsMore:a,showRating:s=!0,showConversationId:o=!0,onRate:l,onTellUsMore:u}){const d=t>0?te(e,"ratingThankYou"):te(e,"ratingQuestion"),h=n==="user"?te(e,"youEnded"):te(e,"agentEnded");return m.jsxs("div",{className:me("rqmii-chat-rating",!s&&"rqmii-chat-rating--unrated",nt()),dir:kt(e),children:[s&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"rqmii-chat-rating-header",children:d}),m.jsx(Jd,{rating:t,onRate:l,readonly:!i}),a&&m.jsx("button",{type:"button",className:"rqmii-chat-rating-more",onClick:u,children:te(e,"tellUsMore")})]}),m.jsxs("div",{className:"rqmii-chat-rating-meta",children:[m.jsx("div",{children:h}),o&&r&&m.jsxs("div",{children:[te(e,"sessionIdLabel")," ",m.jsx("span",{children:r})]})]})]})}function th({agent:e,language:t,rating:n,onBack:r,onMinimize:i,onSubmit:a}){const[s,o]=b.useState(""),[l,u]=b.useState(!1),d=s.trim().length>0&&!l,h=async()=>{if(d){u(!0);try{await a(s.trim())}finally{u(!1)}}};return m.jsxs("div",{className:me("rqmii-chat-panel rqmii-chat-panel--feedback",nt()),dir:kt(t),children:[m.jsxs("div",{className:"rqmii-chat-topbar",children:[m.jsx("button",{type:"button",className:"rqmii-chat-circle-button",onClick:r,"aria-label":"Back",children:m.jsx(vm,{size:20})}),m.jsx("button",{type:"button",className:"rqmii-chat-circle-button",onClick:i,"aria-label":te(t,"minimize"),children:m.jsx(Ur,{size:20})})]}),m.jsxs("div",{className:"rqmii-chat-feedback-body",children:[m.jsx(rt,{agent:e,size:"hero"}),m.jsx(Jd,{rating:n,readonly:!0}),m.jsx("div",{className:"rqmii-chat-feedback-title",children:te(t,"ratingThankYou")}),m.jsx("div",{className:"rqmii-chat-feedback-subtitle",children:te(t,"feedbackSubtitle")}),m.jsx("textarea",{className:"rqmii-chat-feedback-input",value:s,dir:kt(t),placeholder:te(t,"feedbackPlaceholder"),onChange:p=>o(p.target.value)}),m.jsx("div",{className:"rqmii-chat-feedback-actions",children:m.jsx("button",{type:"button",className:"rqmii-chat-feedback-submit",onClick:h,disabled:!d,children:l?m.jsx(jr,{className:"rqmii-chat-spin",size:18}):te(t,"submit")})})]}),m.jsx(vt,{language:t,agent:e})]})}const r3=b.lazy(()=>Promise.resolve().then(()=>require("./RqmiiCloudAvatarPlayer-DUQwPcpd.cjs")).then(e=>e.RqmiiCloudAvatarPlayer$1).then(e=>({default:e.RqmiiCloudAvatarPlayer})));function hr(e){if(!(e==null||typeof window>"u"||window.innerWidth>=768))return{top:`${window.innerHeight-e}px`,bottom:0}}const i3=b.memo(function({agent:t,language:n,languages:r,onLanguageChange:i,onClose:a,onSend:s,isVoiceEnabled:o=!1,isAudioPlaying:l=!1,isVoiceSetupLoading:u=!1,onStartVoice:d,visualViewportHeight:h,disabled:p=!1,error:f,suggestions:g,onSuggestionClick:y,compact:S=!1}){const x=hr(h),[_,A]=b.useState(Fi);b.useEffect(()=>{const P=()=>A(Fi());return window.addEventListener("resize",P),()=>window.removeEventListener("resize",P)},[]);const L=S&&!_,D=L?"start":"hero",I=g&&g.length>0;return m.jsxs("div",{className:me("rqmii-chat-panel rqmii-chat-panel--start",L&&"rqmii-chat-panel--start-compact",nt()),style:x,children:[m.jsxs("div",{className:"rqmii-chat-topbar",children:[m.jsx("span",{}),m.jsxs("div",{className:"rqmii-chat-topbar-actions",children:[m.jsx(cs,{language:n,languages:r,onChange:i}),m.jsx("button",{type:"button",className:"rqmii-chat-circle-button",onClick:a,children:m.jsx(Ta,{size:20})})]})]}),m.jsxs("div",{className:"rqmii-chat-start-body",children:[o?m.jsxs("div",{className:me("rqmii-chat-call-avatar-wrap",L&&"is-compact"),children:[m.jsx(rt,{agent:t,size:D,active:l}),m.jsx("button",{type:"button",className:me("rqmii-chat-call-button",L&&"is-compact"),onClick:d,disabled:u,"aria-label":te(n,"startVoice"),children:u?m.jsx(jr,{className:"rqmii-chat-spin",size:L?18:24}):m.jsx(Ea,{size:L?18:24})})]}):m.jsx(rt,{agent:t,size:D}),m.jsx("div",{className:"rqmii-chat-agent-name",children:t.name}),f&&m.jsx("div",{className:"rqmii-chat-error-text",children:f})]}),I&&m.jsx("div",{className:"rqmii-chat-start-suggestions",children:m.jsx(Q_,{suggestions:g,language:n,onClick:P=>y?.(P)})}),m.jsx(li,{language:n,onSend:s,disabled:p}),m.jsx(vt,{language:n,agent:t})]})}),a3=b.memo(function({agent:t,language:n,languages:r,onLanguageChange:i,onClose:a,onStartVoice:s,isVoiceSetupLoading:o=!1,isAudioPlaying:l,visualViewportHeight:u}){const d=hr(u);return m.jsxs("div",{className:me("rqmii-chat-panel rqmii-chat-panel--voice-start",nt()),style:d,children:[m.jsxs("div",{className:"rqmii-chat-topbar",children:[m.jsx("span",{}),m.jsxs("div",{className:"rqmii-chat-topbar-actions",children:[m.jsx(cs,{language:n,languages:r,onChange:i}),m.jsx("button",{type:"button",className:"rqmii-chat-circle-button",onClick:a,children:m.jsx(Ta,{size:20})})]})]}),m.jsxs("div",{className:"rqmii-chat-call-body",children:[m.jsxs("div",{className:"rqmii-chat-call-avatar-wrap",children:[m.jsx(rt,{agent:t,size:"hero",active:l}),m.jsx("button",{type:"button",className:"rqmii-chat-call-button",onClick:s,disabled:o,"aria-label":te(n,"startVoice"),children:o?m.jsx(jr,{className:"rqmii-chat-spin",size:24}):m.jsx(Ea,{size:24})})]}),m.jsxs("div",{className:"rqmii-chat-agent-name",children:[te(n,"call")," ",t.name]})]}),m.jsx(vt,{language:n,agent:t})]})}),s3=b.memo(function({agent:t,language:n,onEndSession:r,onMinimize:i,messages:a,partialTranscript:s,onSend:o,isAudioPlaying:l,isVoiceEnabled:u,onToggleVoice:d,isListening:h,isSpeaking:p,isLoading:f,isAgentThinking:g,isAgentSpeaking:y,onStartVoice:S,elapsed:x,visualViewportHeight:_,waitingForResponse:A}){const L=nh({language:n,isListening:h,isLoading:f,isSpeaking:p,isAudioPlaying:l,isAgentThinking:g,isAgentSpeaking:y,persistentListening:!1}),D=hr(_),I=t.widget?.appearance?.show_topbar_avatar_image!==!1;return m.jsxs("div",{className:me("rqmii-chat-panel rqmii-chat-panel--conversation",nt()),style:D,children:[m.jsxs("div",{className:"rqmii-chat-header",children:[I&&m.jsx(rt,{agent:t,size:"header",active:l}),u&&L&&m.jsx("div",{className:me("rqmii-chat-header-status",!I&&"is-expanded"),children:m.jsx("span",{children:L})}),m.jsx("div",{className:"rqmii-chat-header-spacer"}),m.jsxs("div",{className:"rqmii-chat-header-actions",children:[i&&m.jsx("button",{type:"button",className:"rqmii-chat-circle-button",onClick:i,"aria-label":te(n,"minimize"),children:m.jsx(Ur,{size:20})}),u&&m.jsx("button",{type:"button",className:me("rqmii-chat-circle-button",p&&"is-active"),onClick:d,"aria-label":h?te(n,"stopVoice"):te(n,"startVoice"),children:h?m.jsx(Hr,{size:20}):m.jsx(ga,{size:20})}),m.jsx("button",{type:"button",className:"rqmii-chat-circle-button is-danger",onClick:r,"aria-label":te(n,"endCall"),children:m.jsx(ba,{size:20})})]})]}),m.jsx(ui,{messages:a,partialTranscript:s,language:n,showTypingIndicator:A}),u&&m.jsx("div",{className:"rqmii-chat-session-counter",children:xa(x)}),m.jsx(li,{language:n,onSend:o}),m.jsx(vt,{language:n,agent:t})]})}),o3=b.memo(function({agent:t,language:n,onEndSession:r,onMinimize:i,isListening:a,isLoading:s,isSpeaking:o,isAudioPlaying:l,isAgentThinking:u,isAgentSpeaking:d,onToggleVoice:h,elapsed:p,visualViewportHeight:f}){const g=nh({language:n,isListening:a,isLoading:s,isSpeaking:o,isAudioPlaying:l,isAgentThinking:u,isAgentSpeaking:d,persistentListening:!0}),y=hr(f);return m.jsxs("div",{className:me("rqmii-chat-panel rqmii-chat-panel--voice-call",nt()),style:y,children:[m.jsxs("div",{className:"rqmii-chat-call-status",children:[m.jsx("span",{className:me("rqmii-chat-live-dot",a&&"is-live")}),m.jsx("span",{children:xa(p)}),m.jsx("button",{type:"button",className:"rqmii-chat-circle-button",onClick:i,children:m.jsx(Ur,{size:20})})]}),m.jsxs("div",{className:"rqmii-chat-voice-frame",children:[m.jsx(rt,{agent:t,size:"hero",active:l}),m.jsx("div",{className:"rqmii-chat-agent-name",children:t.name}),m.jsx("div",{className:me("rqmii-chat-status-pill",!g&&"is-empty"),children:g||te(n,"listening")}),m.jsxs("div",{className:"rqmii-chat-voice-actions",children:[m.jsx("button",{type:"button",className:me("rqmii-chat-circle-button",o&&"is-active"),onClick:h,children:a?m.jsx(Hr,{size:20}):m.jsx(ga,{size:20})}),m.jsx("button",{type:"button",className:"rqmii-chat-circle-button is-danger",onClick:r,"aria-label":te(n,"endCall"),children:m.jsx(ba,{size:20})})]})]}),m.jsx(vt,{language:n,agent:t})]})});function nh({language:e,isListening:t,isLoading:n,isSpeaking:r,isAudioPlaying:i,isAgentThinking:a,isAgentSpeaking:s,persistentListening:o=!1}){return n?te(e,"loading"):r?te(e,"listening"):i||s?te(e,"talkToInterrupt"):a?te(e,"processing"):t&&o?te(e,"listening"):null}const l3=b.memo(function({agent:t,language:n,onRestore:r,onClose:i,isListening:a,isAudioPlaying:s,isSpeaking:o,onToggleVoice:l,elapsed:u,variant:d="voice"}){const h=d==="text";return m.jsxs("div",{className:me("rqmii-chat-minimized",nt()),children:[m.jsx(rt,{agent:t,size:"minimized",active:s}),!h&&m.jsx("span",{className:"rqmii-chat-minimized-time",children:xa(u)}),m.jsxs("div",{className:"rqmii-chat-minimized-actions",children:[m.jsx("button",{type:"button",className:"rqmii-chat-circle-button",onClick:r,"aria-label":te(n,"maximize"),children:m.jsx(Om,{size:20})}),!h&&m.jsx("button",{type:"button",className:me("rqmii-chat-circle-button",o&&"is-active"),onClick:l,"aria-label":a?te(n,"stopVoice"):te(n,"startVoice"),children:a?m.jsx(Hr,{size:20}):m.jsx(ga,{size:20})}),m.jsx("button",{type:"button",className:"rqmii-chat-circle-button is-danger",onClick:i,"aria-label":te(n,"endCall"),children:m.jsx(ba,{size:20})})]})]})}),rh=b.memo(function({agent:t,language:n,languages:r,chatKind:i,messages:a,onLanguageChange:s,onMinimize:o,onStartNewVoice:l,onStartNewText:u,isVoiceSetupLoading:d=!1,visualViewportHeight:h,rating:p,endedBy:f,sessionId:g,ratingInteractive:y,showTellUsMore:S,onRate:x,onTellUsMore:_}){const A=hr(h),L=t.widget?.behavior?.conversation_ended_screen,D=!!L?.post_chat_rating_enabled,I=L?.show_conversation_id??!0,P=m.jsx(eh,{language:n,rating:p,endedBy:f,sessionId:g,interactive:y,showTellUsMore:S,showRating:D,showConversationId:I,onRate:x,onTellUsMore:_}),R=i==="voice"||i==="text_and_voice",z=i==="text"||i==="text_and_voice",N=m.jsxs("div",{className:"rqmii-chat-topbar-actions rqmii-chat-topbar-actions--ended",children:[m.jsx(cs,{language:n,languages:r,onChange:s}),m.jsx("button",{type:"button",className:"rqmii-chat-circle-button",onClick:o,"aria-label":te(n,"minimize"),children:m.jsx(Ur,{size:20})}),R&&m.jsx("button",{type:"button",className:"rqmii-chat-circle-button rqmii-chat-circle-button--call-start",onClick:l,disabled:d,"aria-label":te(n,"startVoice"),children:d?m.jsx(jr,{className:"rqmii-chat-spin",size:20}):m.jsx(Ea,{size:20})})]});if(i==="voice")return m.jsxs("div",{className:me("rqmii-chat-panel rqmii-chat-panel--voice-call",nt()),style:A,children:[m.jsxs("div",{className:"rqmii-chat-topbar",children:[m.jsx("span",{}),N]}),m.jsxs("div",{className:"rqmii-chat-voice-frame",children:[m.jsx(rt,{agent:t,size:"hero"}),m.jsx("div",{className:"rqmii-chat-agent-name",children:t.name}),P]}),m.jsx(vt,{language:n,agent:t})]});const O=t.widget?.appearance?.show_topbar_avatar_image!==!1;return m.jsxs("div",{className:me("rqmii-chat-panel rqmii-chat-panel--conversation",nt()),style:A,children:[m.jsxs("div",{className:"rqmii-chat-topbar",children:[O?m.jsx(rt,{agent:t,size:"header"}):m.jsx("span",{}),N]}),m.jsx(ui,{messages:a,language:n}),P,z&&m.jsx(li,{language:n,onSend:u}),m.jsx(vt,{language:n,agent:t})]})}),ih=b.memo(function({agent:t,language:n,onClose:r}){const{streamingUrl:i,isCloudStreamConnected:a,cloudStreamError:s}=Te.useRqmiiAvatar(),{isAvatarSpeaking:o}=Te.useRqmiiAvatar(),{messages:l,sendTextMessage:u}=Te.useRqmiiMessages();return m.jsxs("div",{className:me("rqmii-avatar-panel",nt()),children:[m.jsxs("div",{className:"rqmii-avatar-stream",children:[m.jsx(b.Suspense,{fallback:m.jsx("div",{className:"rqmii-avatar-overlay",children:te(n,"loading")}),children:m.jsx(r3,{autoConnect:!0,muted:!1})}),!i&&m.jsx("div",{className:"rqmii-avatar-overlay",children:te(n,"loading")}),s&&m.jsx("div",{className:"rqmii-avatar-overlay",children:te(n,"connectionFailed")}),m.jsxs("div",{className:"rqmii-avatar-controls",children:[m.jsx(rt,{agent:t,size:"header",active:o}),m.jsx("div",{className:"rqmii-chat-header-spacer"}),m.jsx("button",{type:"button",className:"rqmii-chat-circle-button",disabled:!a,children:m.jsx(Hr,{size:20})}),m.jsx("button",{type:"button",className:"rqmii-chat-circle-button is-danger",onClick:r,children:m.jsx(Ta,{size:20})})]})]}),t.useText&&m.jsxs("div",{className:"rqmii-avatar-sidebar",children:[m.jsx(ui,{messages:l,language:n}),m.jsx(li,{language:n,onSend:u,variant:"compact"}),m.jsx(vt,{language:n,agent:t})]})]})});function ah({content:e,children:t,className:n="",...r}){const i=(e!==void 0?e:t)||"";return!i||!i.trim()?null:m.jsx(ai,{className:`rqmii-markdown ${n}`.trim(),content:i,...r})}const sh=b.memo(ah);function oh({language:e,content:t,config:n,agent:r,onAccept:i,onDecline:a}){const s=t||n?.body?.[e]||te(e,"consentBody")||"",o=n?.acceptLabel?.[e]||te(e,"consentAccept"),l=n?.declineLabel?.[e]||te(e,"consentDecline");return m.jsxs("div",{className:me("rqmii-chat-panel rqmii-chat-panel--consent",nt()),dir:kt(e),children:[m.jsx("div",{className:"rqmii-chat-consent-body",children:m.jsx(sh,{content:s})}),m.jsxs("div",{className:"rqmii-chat-consent-actions",children:[m.jsx("button",{type:"button",className:"rqmii-chat-consent-button rqmii-chat-consent-button--decline",onClick:a,children:l}),m.jsx("button",{type:"button",className:"rqmii-chat-consent-button rqmii-chat-consent-button--accept",onClick:i,children:o})]})]})}function u3(e){return e?typeof e=="string"?e:typeof e=="object"&&typeof e.text=="string"?e.text:"":""}function c3(e){return e==="text"||e==="voice"||e==="text_and_voice"}const hs=b.memo(function({agent:t,language:n,languages:r,onLanguageChange:i=wt,onEndSession:a=wt,onMinimize:s,messages:o,onSendMessage:l,isPreview:u=!1,chatKind:d,sdk:h,renderPanel:p,messagesRef:f,initialText:g,autoStartVoice:y}){const S=t.widget?.consent||t.consent,x=!!S?.enabled,_=S?.content?.[n]||S?.body?.[n]||"",A=S?.one_time!==!1,L=t.id?`rqmii_consent_${t.id}`:null,[D,I]=b.useState(()=>{if(!x||!_)return!0;if(A&&L&&typeof window<"u")try{return window.localStorage.getItem(L)==="true"}catch{return!1}return!1}),P=d||nr(t),[R,z]=b.useState(()=>P==="voice"&&h.isSessionReady||P==="voice"&&!!y),[N,O]=b.useState(()=>(P==="text"||P==="text_and_voice")&&h.isSessionReady||!!g||P==="text_and_voice"&&!!y),[j,W]=b.useState(!1),[q,F]=b.useState(!1),[G,$]=b.useState(null),ue=Qm(P==="voice"&&R||P==="text_and_voice"&&N),T=Xm(),Ee=x&&!!_&&!D&&!u,he=c3(P),{events:w}=Te.useRqmiiConnection();b.useEffect(()=>{if(!w)return;const Ce=()=>{he&&Fi()&&W(!0)},Ye=()=>{he&&W(!1)};return w.on("minimize_chat",Ce),w.on("maximize_chat",Ye),()=>{w.off("minimize_chat",Ce),w.off("maximize_chat",Ye)}},[w,he]);const ke=b.useCallback(()=>{if(A&&L&&typeof window<"u")try{window.localStorage.setItem(L,"true")}catch{}I(!0)},[A,L]),Z=b.useCallback(()=>{s?s():a()},[s,a]),J=Ce=>{i(Ce),u||h.changeSessionLanguage(Ce)},xe=b.useCallback(Ce=>{if($(null),F(!0),l){l(Ce);return}h.sendTextMessage(Ce)},[l,h]);b.useEffect(()=>{f&&(f.current=h.messages)});const ye=b.useRef(!1);b.useEffect(()=>{ye.current||(g?(ye.current=!0,xe(g)):y&&(ye.current=!0,$(null),F(!0),h.isVoiceActive||h.startVoice()))},[]),b.useEffect(()=>{q&&h.isSessionReady&&(F(!1),P==="voice"?z(!0):O(!0))},[q,h.isSessionReady,P]),b.useEffect(()=>{q&&h.error&&(F(!1),$(h.error))},[q,h.error]);const ce=b.useCallback(()=>{$(null),F(!0),h.isVoiceActive||h.startVoice()},[h]);if(h.error&&!u&&(N||R))return m.jsx(Zd,{message:h.error,language:n,onClose:a});if(Ee)return m.jsx(oh,{language:n,content:_,config:t.consent,agent:t,onAccept:ke,onDecline:Z});const ve={agent:t,language:n,languages:r,chatKind:P,sdk:h,isPreview:u,onLanguageChange:J,onClose:a,onMinimize:he?()=>W(!0):void 0,onRestore:he?()=>W(!1):void 0,onSend:xe,voiceStarted:R,conversationStarted:N,isMinimized:j,elapsed:ue,setVoiceStarted:z,setConversationStarted:O};return p?m.jsx(m.Fragment,{children:p(ve)}):m.jsx(d3,{...ve,connecting:q,connectError:G,visualViewportHeight:T,onCloseWidget:s??a,initiateVoice:ce,onSendSuggestion:Ce=>{$(null),F(!0),h.sendSuggestion?.(Ce)}})}),d3=b.memo(function({agent:t,language:n,languages:r,chatKind:i,sdk:a,onLanguageChange:s,onClose:o,onMinimize:l,onRestore:u,onSend:d,voiceStarted:h,conversationStarted:p,isMinimized:f,elapsed:g,setVoiceStarted:y,setConversationStarted:S,visualViewportHeight:x,connecting:_=!1,connectError:A=null,onCloseWidget:L,initiateVoice:D,onSendSuggestion:I}){const P=t.widget?.behavior?.typing_indicator_enabled??!0,R=i==="text"?a.waitingForResponse&&P:!1,z=a.messages;if(i==="avatar")return m.jsx(ih,{agent:t,language:n,onClose:o});if(f)return m.jsx(l3,{agent:t,language:n,onRestore:u,onClose:o,isListening:a.isVoiceActive,isAudioPlaying:a.isAudioPlaying,isSpeaking:a.vad.isSpeaking,onToggleVoice:a.toggleVoice,elapsed:g,variant:i==="text"?"text":"voice"});if(i==="voice"&&h)return m.jsx(o3,{agent:t,language:n,onEndSession:o,onMinimize:l,isListening:a.isVoiceActive,isLoading:a.vad.isLoading,isSpeaking:a.vad.isSpeaking,isAudioPlaying:a.isAudioPlaying,isAgentThinking:a.isAgentThinking,isAgentSpeaking:a.isAgentSpeaking,onToggleVoice:a.toggleVoice,elapsed:g,visualViewportHeight:x});if(i==="voice")return m.jsx(a3,{agent:t,language:n,languages:r,onLanguageChange:s,onClose:L,isAudioPlaying:a.isAudioPlaying,isVoiceSetupLoading:a.isVoiceSetupLoading||_,onStartVoice:D,visualViewportHeight:x});if(!p&&(a.messages.length===0||_)){const N=(t.widget?.behavior?.suggested_messages?.[n]||t.conversation?.suggested_messages?.[n])?.filter(W=>W.trim())||void 0,O=W=>{a.sendSuggestion?I(W):d?.(W)},j=i==="text_and_voice"||nr(t)==="text_and_voice";return m.jsx(i3,{agent:t,language:n,languages:r,onLanguageChange:s,onClose:L,onSend:d,isVoiceEnabled:j,isAudioPlaying:a.isAudioPlaying,isVoiceSetupLoading:a.isVoiceSetupLoading||_,onStartVoice:D,visualViewportHeight:x,disabled:_,error:A||void 0,suggestions:N,onSuggestionClick:O,compact:!!N})}return m.jsx(s3,{agent:t,language:n,onEndSession:o,messages:z,partialTranscript:u3(a.partialTranscript),onSend:d,isAudioPlaying:a.isAudioPlaying,isVoiceEnabled:i==="text_and_voice",isListening:a.isVoiceActive,isSpeaking:a.vad.isSpeaking,isLoading:a.vad.isLoading,isAgentThinking:a.isAgentThinking,isAgentSpeaking:a.isAgentSpeaking,onToggleVoice:a.toggleVoice,onStartVoice:a.startVoice,onMinimize:l,elapsed:g,visualViewportHeight:x,waitingForResponse:R})}),h3={isListening:!1,isLoading:!1,isSpeaking:!1,toggle:async()=>!1};function lh({isSessionReady:e,sendTextMessage:t,messages:n}){const[r,i]=b.useState(null),[a,s]=b.useState(null),o=b.useCallback(()=>{i(l=>(l&&(e?t(l):s(l)),null))},[e,t]);return b.useEffect(()=>{r&&n.length!==0&&o()},[n,r,o]),b.useEffect(()=>{if(!r)return;const l=setTimeout(o,5e3);return()=>clearTimeout(l)},[r,o]),b.useEffect(()=>{!a||!e||(t(a),s(null))},[e,a,t]),{pendingWelcomeText:r,pendingMessage:a,setPendingWelcomeText:i,setPendingMessage:s,sendPendingWelcomeText:o}}function ms({isSessionReady:e,signalClientReady:t}){const[n,r]=b.useState(!1),[i,a]=b.useState(void 0),s=b.useRef(!1);return b.useEffect(()=>{!e||s.current||!n||(s.current=!0,t(i),r(!1))},[e,n,i,t]),{emitClientReady:b.useCallback(l=>{e?(s.current=!0,t(l)):(a(l),r(!0))},[e,t])}}const m3=300;function uh(e){const{isPreview:t=!1,...n}=e,{messages:r,sendTextMessage:i,emitUserMessage:a,addLocalMessage:s,clearMessages:o}=Te.useRqmiiMessages(),{changeSessionLanguage:l,clearSessionHistory:u,signalClientReady:d,error:h,isSessionReady:p,isAgentThinking:f,isAgentSpeaking:g}=Te.useRqmiiConnection(),y=b.useRef(!1),S=b.useRef(null),x=b.useRef(!1),[_,A]=b.useState(!1),[L,D]=b.useState(null),[I,P]=b.useState(!1),R=b.useRef(r.length);b.useEffect(()=>{if(r.length>R.current){const F=r[r.length-1];F.role==="assistant"&&F.streaming&&P(!1)}R.current=r.length},[r]),Te.useRqmiiEvents("message_rate_limited",b.useCallback(()=>{P(!1)},[])),b.useEffect(()=>{if(!p||!_||x.current)return;const F=S.current;if(F===null)return;x.current=!0,S.current=null,s("user",F),D(null);const G=e.agent.welcomeMessages?.[e.language];d(G?{welcomeMessage:G}:void 0);const $=setTimeout(()=>{a(F),P(!0)},m3);return()=>clearTimeout($)},[p,_,d,a,s]);const z=b.useMemo(()=>L?[{id:"first-user",role:"user",text:L},...r]:r,[L,r]),N=b.useCallback(()=>{D(null),o()},[o]),O={emitClientReady:d,sendMessage:F=>{i(F)},queueForWelcome:wt,enableVoice:wt,disableVoice:wt,language:e.language,isSessionReady:p,supportsVoice:!1,isVoiceActive:!1,chatKind:"text"},j=(F,G)=>{e.onSessionStart?.(),y.current?(P(!0),G.sendMessage(F)):(y.current=!0,D(F),S.current=F,A(!0),P(!0))},W=F=>{e.onTextSend?e.onTextSend(F,O):j(F,O)},q={messages:z,sendTextMessage:W,clearMessages:N,clearSessionHistory:u,isAudioPlaying:!1,partialTranscript:null,changeSessionLanguage:l,error:h,isAgentThinking:f,isAgentSpeaking:g,isVoiceSetupLoading:!1,isVoiceActive:!1,isSessionReady:p,vad:h3,startVoice:wt,prepareVoice:wt,toggleVoice:wt,signalClientReady:d,waitingForResponse:I,sendSuggestion:W};return m.jsx(hs,{...n,isPreview:t,chatKind:"text",sdk:q})}function ch(e){const{isPreview:t=!1,...n}=e,{messages:r,sendTextMessage:i,clearMessages:a}=Te.useRqmiiMessages(),{isAudioPlaying:s,partialTranscript:o}=Te.useRqmiiVoice(),{changeSessionLanguage:l,clearSessionHistory:u,signalClientReady:d,error:h,isSessionReady:p,isAgentThinking:f,isAgentSpeaking:g}=Te.useRqmiiConnection(),{setPendingWelcomeText:y,setPendingMessage:S}=lh({isSessionReady:p,sendTextMessage:i,messages:r}),{emitClientReady:x}=ms({isSessionReady:p,signalClientReady:d}),[_,A]=b.useState(!1),L=Te.useRqmiiVAD({enabled:!0,preloadStream:!1}),{isLoading:D,isListening:I,toggle:P}=L,R=D,z=I||_;b.useEffect(()=>{!_||!p||D||I||P()},[_,p,D,I,P]);const N=()=>{e.onSessionStart?.()},O={emitClientReady:x,sendMessage:$=>{p?i($):S($)},queueForWelcome:$=>y($),enableVoice:()=>A(!0),disableVoice:()=>{A(!1),I&&P()},language:e.language,isSessionReady:p,supportsVoice:!0,isVoiceActive:z,chatKind:"voice"},j=$=>{N(),$.enableVoice();const ne=e.agent.welcomeMessages?.[e.language];$.emitClientReady(ne?{welcomeMessage:ne}:void 0)},W=$=>{$.isVoiceActive?$.disableVoice():$.enableVoice()},G={messages:r,sendTextMessage:()=>{},clearMessages:a,clearSessionHistory:u,isAudioPlaying:s,partialTranscript:o,changeSessionLanguage:l,error:h,isAgentThinking:f,isAgentSpeaking:g,isVoiceSetupLoading:R,isVoiceActive:z,isSessionReady:p,vad:L,startVoice:()=>{e.onVoiceStart?e.onVoiceStart(O):j(O)},prepareVoice:()=>{},toggleVoice:()=>{e.onVoiceToggle?e.onVoiceToggle(O):W(O)},signalClientReady:d};return m.jsx(hs,{...n,isPreview:t,chatKind:"voice",sdk:G})}const f3=300;function dh(e){const{isPreview:t=!1,...n}=e,{messages:r,sendTextMessage:i,emitUserMessage:a,addLocalMessage:s,clearMessages:o}=Te.useRqmiiMessages(),{isAudioPlaying:l,partialTranscript:u}=Te.useRqmiiVoice(),{changeSessionLanguage:d,clearSessionHistory:h,signalClientReady:p,error:f,isSessionReady:g,isAgentThinking:y,isAgentSpeaking:S}=Te.useRqmiiConnection(),{emitClientReady:x}=ms({isSessionReady:g,signalClientReady:p}),[_,A]=b.useState(!1),L=b.useRef(null),[D,I]=b.useState(!1),P=b.useRef(null),[R,z]=b.useState(!1),N=b.useRef(!1),O=b.useRef(!1),j=b.useRef(!1),[W,q]=b.useState(null),[F,G]=b.useState(!1),$=b.useRef(r.length);b.useEffect(()=>{if(r.length>$.current){const se=r[r.length-1];se.role==="assistant"&&se.streaming&&G(!1)}$.current=r.length},[r]),Te.useRqmiiEvents("message_rate_limited",b.useCallback(()=>{G(!1)},[]));const ne=Te.useRqmiiVAD({enabled:!0,preloadStream:!1}),{isLoading:ue,isListening:T,toggle:Ee}=ne,he=ue,w=T||_;b.useEffect(()=>{!_||!g||ue||T||Ee()},[_,g,ue,T,Ee]),b.useEffect(()=>{if(!g||!D||j.current)return;const se=L.current;if(se===null)return;j.current=!0,L.current=null,s("user",se),q(null);const De=e.agent.welcomeMessages?.[e.language];p(De?{welcomeMessage:De}:void 0);const ft=setTimeout(()=>{a(se),G(!0)},f3);return()=>clearTimeout(ft)},[g,D,p,a,s]),b.useEffect(()=>{if(!g||!R||N.current)return;const se=P.current;se!==null&&(N.current=!0,P.current=null,s("user",se),a(se),G(!0),z(!1))},[g,R,a,s]);const ke=b.useMemo(()=>W?[{id:"first-user",role:"user",text:W},...r]:r,[W,r]),Z=b.useCallback(()=>{q(null),O.current=!1,j.current=!1,o()},[o]),J=()=>{e.onSessionStart?.()},xe={emitClientReady:se=>{j.current=!0,O.current=!0,x(se)},sendMessage:se=>{i(se)},queueForWelcome:()=>{},enableVoice:()=>A(!0),disableVoice:()=>{A(!1),T&&Ee()},language:e.language,isSessionReady:g,supportsVoice:!0,isVoiceActive:w,chatKind:"text_and_voice"},ye=(se,De)=>{J(),!O.current&&!j.current?(O.current=!0,e.onStartText?.(),q(se),L.current=se,I(!0),G(!0)):(O.current=!0,G(!0),De.sendMessage(se))},ce=se=>{J(),O.current=!0,j.current=!0,e.onStartVoice?.(),se.enableVoice();const De=e.agent.welcomeMessages?.[e.language];se.emitClientReady(De?{welcomeMessage:De}:void 0)},ve=se=>{se.isVoiceActive?se.disableVoice():se.enableVoice()},Ze={messages:ke,sendTextMessage:se=>{e.onTextSend?e.onTextSend(se,xe):ye(se,xe)},clearMessages:Z,clearSessionHistory:h,isAudioPlaying:l,partialTranscript:u,changeSessionLanguage:d,error:f,isAgentThinking:y,isAgentSpeaking:S,isVoiceSetupLoading:he,isVoiceActive:w,isSessionReady:g,vad:ne,startVoice:()=>{e.onVoiceStart?e.onVoiceStart(xe):ce(xe)},prepareVoice:()=>{},toggleVoice:()=>{e.onVoiceToggle?e.onVoiceToggle(xe):ve(xe)},signalClientReady:p,waitingForResponse:F,sendSuggestion:se=>{J(),O.current=!0,j.current=!0,e.onStartVoice?.(),A(!0),P.current=se,z(!0)}};return m.jsx(hs,{...n,isPreview:t,chatKind:e.textOnly?"text":"text_and_voice",sdk:Ze})}function hh(e){const{isPreview:t=!1,agent:n,language:r,languages:i,onLanguageChange:a,onEndSession:s,onMinimize:o,messages:l,onSendMessage:u}=e,d=s||o||wt,{messages:h,sendTextMessage:p,clearMessages:f}=Te.useRqmiiMessages(),{changeSessionLanguage:g,clearSessionHistory:y,signalClientReady:S,error:x,isSessionReady:_,isAgentThinking:A,isAgentSpeaking:L}=Te.useRqmiiConnection();return lh({isSessionReady:_,sendTextMessage:p,messages:h}),ms({isSessionReady:_,signalClientReady:S}),x&&!t?m.jsx(Zd,{message:x,language:r,onClose:d}):m.jsx(ih,{agent:n,language:r,onClose:d})}function p3({agent:e,defaultOpen:t,className:n="",preview:r=!1,ChatBoxComponent:i}){const a=t!==void 0?t:e.widget?.behavior?.default_open??!1,[s,o]=b.useState(a),[l,u]=b.useState(e.defaultLanguage),d=b.useMemo(()=>En(e.languages,e.defaultLanguage),[e.defaultLanguage,e.languages]);b.useEffect(()=>{u(e.defaultLanguage)},[e.defaultLanguage]),b.useEffect(()=>{o(a)},[a]);const h=e.widget?.appearance?.theme?.mode==="light"?"light":"dark",p=b.useMemo(()=>ka(e.widget?.appearance),[e.widget?.appearance]);return m.jsxs("div",{className:me("rqmii-chat-surface",`rqmii-theme-${h}`,r&&"is-preview",n),"data-theme":h,style:p,children:[!s&&m.jsx(ds,{agent:e,onClick:()=>o(!0),position:r?"static":"fixed"}),s&&m.jsx(i,{agent:e,language:l,languages:d,onLanguageChange:u,onClose:()=>o(!1),isPreview:r})]})}function g3({restUrl:e,identifier:t,fallbackAgent:n,withCredentials:r=!1,children:i,onError:a}){const[s,o]=b.useState(()=>n?fn(n):null),[l,u]=b.useState(null);return b.useEffect(()=>{n&&(o(fn(n)),u(null))},[n]),b.useEffect(()=>{if(!t||n)return;const d=new AbortController;return u(null),gl({restUrl:e,identifier:t,withCredentials:r,signal:d.signal}).then(o).catch(h=>{d.signal.aborted||(n||u(h),a?.(h))}),()=>d.abort()},[n,t,a,e,r]),l?m.jsx("div",{className:"rqmii-chat-panel rqmii-chat-panel--error",children:l.message||"Could not load agent"}):s?m.jsx(m.Fragment,{children:i(s)}):m.jsx("div",{className:"rqmii-chat-panel rqmii-chat-panel--error",children:"Loading"})}function ma({agent:e,language:t,languages:n,onLanguageChange:r,onEndSession:i,onMinimize:a,onStartText:s,onStartVoice:o,textOnly:l,messages:u,onSendMessage:d,isPreview:h,onSessionStart:p,initialText:f,autoStartVoice:g}){const y=nr(e),S={agent:e,language:t,languages:n,onLanguageChange:r,onEndSession:i,onMinimize:a,messages:u,onSendMessage:d,isPreview:h,onSessionStart:p,initialText:f,autoStartVoice:g};switch(y){case"avatar":return m.jsx(hh,{...S});case"voice":return m.jsx(ch,{...S});case"text_and_voice":return m.jsx(dh,{...S,onStartText:s,onStartVoice:o,textOnly:l});case"text":default:return m.jsx(uh,{...S})}}function b3({agent:e,language:t,languages:n,startMode:r,directive:i,open:a,onOpen:s,onLanguageChange:o,onMinimize:l,onStartNewSession:u,onSessionStart:d,onStartText:h,onStartVoice:p}){const{connectionState:f,isConnected:g,isSessionTerminated:y,creditExhausted:S,session:x,endSession:_,submitFeedback:A,interrupt:L}=Te.useRqmiiConnection(),{messages:D}=Te.useRqmiiMessages(),I=b.useRef(!1),P=b.useRef(null),[R,z]=b.useState(null),[N,O]=b.useState(0),[j,W]=b.useState(!1),[q,F]=b.useState(!1),[G,$]=b.useState(!1);b.useEffect(()=>{g&&(I.current=!0)},[g]),b.useEffect(()=>{if(R)return;let Z=null;y||f==="ended"?Z=P.current==="user"?"user_ended":"terminated":f==="failed"?S?Z="credits_exhausted":I.current?Z="connection_lost":Z="failed":S&&(Z="credits_exhausted"),Z&&z({sessionId:x.sessionId,endedBy:P.current??"agent",reason:Z})},[y,f,S,x.sessionId,R]);const ne=()=>{P.current="user",L(),_()},ue=R?.sessionId??null,T=Z=>{j||(O(Z),ue&&A({sessionId:ue,rating:Z,endedBy:R?.endedBy}).catch(()=>{}),G||($(!0),F(!0)))},Ee=async Z=>{if(ue)try{await A({sessionId:ue,feedback:Z,endedBy:R?.endedBy})}catch{}W(!0),F(!1)};if(!a)return m.jsx(ds,{agent:e,onClick:s,active:f==="connected"});const he=nr(e),w=e.agentType==="cloud_avatar"||e.agentType==="desktop_avatar",ke=r==="text";return w?m.jsx(ma,{agent:e,language:t,languages:n,onLanguageChange:o,onEndSession:ne,onMinimize:l,onSessionStart:d,onStartText:h,onStartVoice:p,textOnly:ke}):R?q&&ue?m.jsx(th,{agent:e,language:t,rating:N,onBack:()=>F(!1),onMinimize:l,onSubmit:Ee}):m.jsx(rh,{agent:e,language:t,languages:n,chatKind:he==="avatar"?"text":he,messages:D,onLanguageChange:o,onMinimize:l,onStartNewVoice:()=>u("voice"),onStartNewText:Z=>u("text",Z),rating:N,endedBy:R.endedBy,sessionId:ue,ratingInteractive:!j,showTellUsMore:G&&!j,onRate:T,onTellUsMore:()=>F(!0)}):m.jsx(ma,{agent:e,language:t,languages:n,onLanguageChange:o,onEndSession:ne,onMinimize:l,onSessionStart:d,onStartText:h,onStartVoice:p,textOnly:ke,initialText:i?.mode==="text"?i.text:void 0,autoStartVoice:i?.mode==="voice"})}function E3(e){const{wsUrl:t,restUrl:n,apiKey:r,agentId:i,agent:a,language:s,defaultOpen:o,open:l,className:u="",debug:d=!1,withCredentials:h=!1,onError:p,onInitialized:f,config:g,promptOverrides:y,clientTools:S,onMinimize:x,onOpen:_}=e;if([!!r,!!i].filter(Boolean).length>1)throw new Error("RqmiiAgentChat: only one of apiKey, or agentId may be provided");const L=r||i;return m.jsx(g3,{restUrl:n,identifier:L,fallbackAgent:a,withCredentials:h,onError:p,children:D=>m.jsx(T3,{wsUrl:t,restUrl:n,apiKey:r,agentId:i,agent:D,language:s,defaultOpen:o,open:l,className:u,debug:d,withCredentials:h,onError:p,onInitialized:f,config:g,promptOverrides:y,clientTools:S,onMinimize:x,onOpen:_})})}function T3({wsUrl:e,restUrl:t,apiKey:n,agentId:r,agent:i,language:a,defaultOpen:s,open:o,className:l,debug:u,withCredentials:d,onError:h,onInitialized:p,config:f,promptOverrides:g,clientTools:y,onMinimize:S,onOpen:x}){const _=s!==void 0?s:i.widget?.behavior?.default_open??!1,[A,L]=b.useState(_),D=o!==void 0?o:A;b.useEffect(()=>{o===void 0&&L(_)},[_,o]);const[I,P]=b.useState(!1),[R,z]=b.useState(a||i.defaultLanguage),[N,O]=b.useState("idle"),[j,W]=b.useState(0),[q,F]=b.useState(null),[G,$]=b.useState(!1),ne=i.agentType==="cloud_avatar"||i.agentType==="desktop_avatar",ue=ne,T=i.widget?.behavior?.welcome_bubble,Ee=i.welcomeMessages?.[R]||"",he=!D&&!G&&!ue&&!!T?.enabled&&!!Ee.trim(),w=b.useMemo(()=>En(i.languages,i.defaultLanguage),[i.defaultLanguage,i.languages]);b.useEffect(()=>{Tl(i.widget?.appearance?.font)},[i.widget?.appearance?.font]);const ke=b.useMemo(()=>N==="text"?{...f??{},use_voice:!1,use_text:!0}:f,[f,N]),Z=b.useMemo(()=>km(i,ke),[i,ke]),J=!ue&&Z.useVoice,xe=ne?D:I,ye=b.useMemo(()=>({...n?{apiKey:n}:{},...r?{agentId:r}:{},language:R,config:ke,...g?{promptOverrides:g}:{}}),[r,n,R,ke,g]),ce=b.useRef(null),ve=b.useRef(!1),Ce=b.useRef(j),Ye=Ce.current!==j;Ce.current=j,I&&(!ve.current||Ye)&&(ce.current=ye),ve.current=I,I||(ce.current=null);const ot=I&&ce.current?ce.current:ye;b.useEffect(()=>{z(a||i.defaultLanguage)},[i.defaultLanguage,a]);const Ze=b.useMemo(()=>h?Le=>{O("idle"),h(Le)}:Le=>{O("idle")},[h]),se=()=>{O("text"),P(!0)},De=()=>{O("voice"),P(!0)},ft=()=>{o===void 0&&L(!1),S?.()},_n=()=>{o===void 0&&L(!0),$(!0),x?.()},ln=(Le,Ge)=>{F(Le==="text"?{mode:"text",text:Ge??""}:{mode:"voice"}),O(Le),P(!0),W(pt=>pt+1)},X=i.widget?.appearance?.theme?.mode==="light"?"light":"dark",pe=b.useMemo(()=>ka(i.widget?.appearance),[i.widget?.appearance]);return m.jsx(Te.RqmiiAgentRoom,{wsUrl:e,restUrl:t,session:ot,connect:xe,enableAudio:J,debug:u,withCredentials:d,onError:Ze,onInitialized:p,clientTools:y,children:m.jsxs("div",{className:me("rqmii-chat-surface",`rqmii-theme-${X}`,i.widget?.appearance?.position==="left"&&"rqmii-position-left",l),"data-theme":X,style:pe,dir:"ltr",children:[he&&m.jsx(q_,{message:Ee,delaySeconds:T?.delay_seconds??3,soundEnabled:!!T?.sound_enabled,language:R,buttonPosition:i.widget?.appearance?.position==="left"?"left":"right",onClick:()=>$(!0)}),m.jsx(b3,{agent:i,language:R,languages:w,startMode:N,directive:q,open:D,onOpen:_n,onLanguageChange:z,onMinimize:ft,onStartNewSession:ln,onSessionStart:()=>P(!0),onStartText:se,onStartVoice:De})]})},j)}function k3(e){const{agent:t,language:n,open:r=!0,className:i="",messages:a,onSendMessage:s,onClose:o}=e,l=b.useMemo(()=>fn(t),[t]),[u,d]=b.useState(r),[h,p]=b.useState(n||l.defaultLanguage),f=b.useMemo(()=>En(l.languages,l.defaultLanguage),[l.defaultLanguage,l.languages]),g=l.widget?.appearance?.theme?.mode==="light"?"light":"dark",y=b.useMemo(()=>ka(l.widget?.appearance),[l.widget?.appearance]);return b.useEffect(()=>{n&&p(n)},[n]),b.useEffect(()=>{d(r)},[r]),b.useEffect(()=>{Tl(l.widget?.appearance?.font)},[l.widget?.appearance?.font]),m.jsx(Te.RqmiiAgentProvider,{wsUrl:"",restUrl:"",enableAudio:!1,children:m.jsx("div",{className:me("rqmii-chat-surface is-preview",`rqmii-theme-${g}`,l.widget?.appearance?.position==="left"&&"rqmii-position-left",i),"data-theme":g,style:y,dir:"ltr",children:u?m.jsx(ma,{agent:l,language:h,languages:f,onLanguageChange:p,onEndSession:()=>{d(!1),o?.()},onMinimize:()=>{d(!1),o?.()},messages:a,onSendMessage:s,isPreview:!0}):null})})}exports.ConsentDialog=oh;exports.El=CC;exports.EndedChatPanel=rh;exports.FeedbackPanel=th;exports.Message=O_;exports.MessageAvatar=j_;exports.MessageContent=B_;exports.MessageList=ui;exports.RQMII_CHAT_LANGUAGES=wr;exports.RQMII_CHAT_LANGUAGE_VALUES=Mi;exports.RatingBar=eh;exports.Response=D_;exports.RqmiiAgentAvatar=rt;exports.RqmiiAgentChat=E3;exports.RqmiiAgentChatPreview=k3;exports.RqmiiAvatarChatBox=hh;exports.RqmiiChatFooter=vt;exports.RqmiiChatOpenButton=ds;exports.RqmiiChatSurface=p3;exports.RqmiiMarkdown=sh;exports.RqmiiMarkdownComponent=ah;exports.RqmiiMessage=si;exports.RqmiiMessageAvatar=Xd;exports.RqmiiMessageContent=oi;exports.RqmiiResponse=ai;exports.RqmiiTextAndVoiceChatBox=dh;exports.RqmiiTextChatBox=uh;exports.RqmiiVoiceChatBox=ch;exports.S=Be;exports.Vo=Qd;exports.co=ad;exports.fetchAgentConfig=Tm;exports.fetchAgentCustomization=gl;exports.getChatLanguage=Oi;exports.getChatText=te;exports.getDefaultExportFromCjs=pa;exports.normalizeChatLanguages=En;exports.normalizePublicAgent=fn;exports.resolveChatKind=nr;
|
|
250
|
-
//# sourceMappingURL=ui-
|
|
250
|
+
`).replace(/\\r/g,"\r").replace(/\\t/g," ")),t=t.replace(/```([a-zA-Z0-9_-]+)[ \t]+([^\n`]+)/g,"```$1\n$2"),t}const ml={a:({href:e,children:t,target:n="_blank",rel:r="noopener noreferrer",node:a,...i})=>m.jsx("a",{href:e,target:n,rel:r,...i,children:t})};function P_({content:e,children:t,className:n="",isAnimating:r,mode:a,dir:i,lineNumbers:s=!1,codeBlockMaxHeight:o=320,animated:l=!0,controls:u={code:{copy:!0},table:{copy:!0}},linkSafety:d={enabled:!1},components:h,...p}){const f=(e!==void 0?e:t)||"";if(!f||!f.trim())return null;const g=D_(f),y=a??(r?"streaming":"static"),w=h?{...ml,...h}:ml;return m.jsx("div",{className:me("rqmii-response",n),children:m.jsx(Kd,{mode:y,isAnimating:r,animated:l,dir:i,lineNumbers:s,codeBlockMaxHeight:o,controls:u,linkSafety:d,components:w,...p,children:g})})}const ia=b.memo(P_),O_=ia;function M_({role:e,from:t,variant:n="contained",dir:r,isPartial:a=!1,className:i="",children:s}){const o=t||e||"assistant",l=o==="user";return m.jsx("div",{className:me("rqmii-chat-message-row","rqmii-message",l?"is-user rqmii-message--user":"rqmii-message--assistant",n==="flat"&&"rqmii-message--flat",a&&"is-partial",i),"data-role":o,dir:r,children:s})}const sa=b.memo(M_),F_=sa;function B_({variant:e="contained",dir:t,className:n="",children:r}){return m.jsx("div",{className:me("rqmii-chat-message","rqmii-message-content",e==="flat"&&"rqmii-message-content--flat",n),dir:t,children:r})}const oa=b.memo(B_),z_=oa;function j_({agent:e,src:t,name:n,size:r="small",active:a=!1,className:i=""}){if(e)return m.jsx(rt,{agent:e,size:r,active:a,className:i});if(t)return m.jsx("div",{className:me("rqmii-agent-avatar",`rqmii-agent-avatar--${r}`,a&&"is-active",i),children:m.jsx("img",{src:t,alt:n||"Avatar"})});if(n){const s=n.split(" ").map(o=>o[0]).slice(0,2).join("").toUpperCase();return m.jsx("div",{className:me("rqmii-agent-avatar",`rqmii-agent-avatar--${r}`,"rqmii-avatar-fallback",i),children:m.jsx("span",{children:s})})}return null}const Xd=b.memo(j_),H_=Xd,U_=b.lazy(()=>Promise.resolve().then(()=>require("./Orb-Cg7CVtJf.cjs")).then(e=>({default:e.RqmiiOrb}))),cs=b.memo(function({language:t,languages:n,onChange:r}){const[a,i]=b.useState(!1),s=b.useRef(null),o=Ma(t),l=En(n,t).map(u=>Ma(u)).filter(Boolean);return b.useEffect(()=>{if(!a)return;const u=d=>{s.current?.contains(d.target)||i(!1)};return document.addEventListener("mousedown",u),()=>document.removeEventListener("mousedown",u)},[a]),m.jsxs("div",{className:"rqmii-chat-language",ref:s,children:[m.jsxs("button",{type:"button",className:"rqmii-chat-pill",onClick:()=>i(u=>!u),children:[m.jsx("span",{children:o?.label||t}),m.jsx(El,{size:16})]}),a&&l.length>1&&m.jsx("div",{className:"rqmii-chat-language-menu",children:l.map(u=>m.jsx("button",{type:"button",className:me("rqmii-chat-language-item",u.value===t&&"is-selected"),onClick:()=>{r(u.value),i(!1)},children:u.label},u.value))})]})}),Nt=b.memo(function({language:t="en",brand:n="rqmii",agent:r}){const a=r?.widget?.appearance,i=a?.show_branding!==!1,s=a?.footer_content?.[t],o=!!s?.trim();if(!i&&!o)return m.jsx("div",{style:{padding:11}});const l=te(t,"poweredBy"),u=kt(t),d=()=>{if(l.includes("{brand}")){const h=l.split("{brand}");return m.jsxs("p",{dir:u,children:[h[0],m.jsx("strong",{children:n}),h[1]]})}return m.jsxs("p",{dir:u,children:[l," ",m.jsx("strong",{children:n})]})};return m.jsxs("div",{className:"rqmii-chat-footer",dir:u,children:[i&&d(),o&&m.jsx("p",{dir:u,children:s})]})}),rt=b.memo(function({agent:t,size:n="large",active:r=!1,className:a=""}){const i=t?.faceImage,s=!i||i==="orb";return m.jsx("div",{className:me("rqmii-agent-avatar",`rqmii-agent-avatar--${n}`,r&&"is-active",s&&"is-orb",a),children:s?m.jsx(b.Suspense,{fallback:null,children:m.jsx(U_,{className:"rqmii-agent-avatar-orb"})}):m.jsx("img",{src:i,alt:t?.name||"Agent"})})}),ds=b.memo(function({agent:t,onClick:n,className:r="",position:a="fixed",active:i=!1}){return m.jsx("button",{type:"button",className:me("rqmii-chat-open-button",a==="fixed"&&"is-fixed",r),onClick:n,"aria-label":"Open chat",children:m.jsx(rt,{agent:t,size:"button",active:i})})});function q_(){try{const e=window.AudioContext||window.webkitAudioContext;if(!e)return;const t=new e,n=t.currentTime,r=t.createOscillator(),a=t.createGain();r.type="sine",r.frequency.setValueAtTime(880,n),r.frequency.setValueAtTime(1180,n+.12),a.gain.setValueAtTime(1e-4,n),a.gain.exponentialRampToValueAtTime(.18,n+.02),a.gain.exponentialRampToValueAtTime(1e-4,n+.32),r.connect(a),a.connect(t.destination),r.start(n),r.stop(n+.34),r.onended=()=>{t.close()}}catch{}}const V_=b.memo(function({message:t,delaySeconds:n,soundEnabled:r,language:a,buttonPosition:i="right",onClick:s}){const[o,l]=b.useState(!1),u=t.trim();if(b.useEffect(()=>{if(!u)return;const h=setTimeout(()=>{l(!0),r&&q_()},Math.max(0,n)*1e3);return()=>clearTimeout(h)},[u,n,r]),!o||!u)return null;const d=i==="right"?"is-right":"is-left";return m.jsx("button",{type:"button",className:me("rqmii-chat-welcome-bubble",d,nt()),dir:kt(a),onClick:s,"aria-label":u,children:u})}),la=b.memo(function({language:t,placeholder:n,onSend:r,disabled:a=!1,variant:i="text"}){const[s,o]=b.useState(""),l=b.useRef(null),u=168,d=()=>{const h=s.trim();!h||a||(r(h),o(""),l.current&&(l.current.style.height="auto"))};return m.jsxs("div",{className:me("rqmii-chat-input",nt(),i==="voice"&&"is-voice"),children:[m.jsx("textarea",{ref:l,value:s,disabled:a,rows:i==="compact"?2:3,dir:kt(t),placeholder:n||te(t,"sendMessage"),onChange:h=>{o(h.target.value);const p=l.current;p&&(p.style.height="auto",p.style.height=`${Math.min(p.scrollHeight,u)}px`)},onKeyDown:h=>{h.key==="Enter"&&!h.shiftKey&&(h.preventDefault(),d())}}),m.jsx("button",{type:"button",onClick:d,disabled:!s.trim()||a,"aria-label":te(t,"send"),children:m.jsx(Im,{size:20})})]})});b.memo(function({text:t,streaming:n}){const r=Zm(t,n);return m.jsx(m.Fragment,{children:r})});const hi=133,$_=hi+44,Y_=767,Un=36,G_=8,fl=Un+G_;function W_(){return typeof window>"u"?hi:window.innerWidth<=Y_?$_:hi}function K_(e){return e==="rtl"?"right":"left"}function Q_(e,t,n,r){if(!e.length)return null;const a=Math.max(...e.map(s=>s.offsetTop)),i=e.filter(s=>s.offsetTop>=a-.5);return n==="right"?i.find(s=>s.offsetLeft+s.offsetWidth>t-r)||null:i.find(s=>s.offsetLeft<r)||null}function pl(e,t,n,r){for(let a=0;a<2;a++){const i=Q_(e,t,n,r);if(!i)break;n==="right"?i.style.marginRight=`${r}px`:i.style.marginLeft=`${r}px`,i.style.maxWidth=`calc(100% - ${r}px)`}}const X_=b.memo(function({suggestions:t,language:n,onClick:r}){const[a,i]=b.useState(!1),[s,o]=b.useState(!1),[l,u]=b.useState(null),[d,h]=b.useState(null),p=b.useRef(null),f=b.useRef([]),g=kt(n||"en"),y=K_(g),w=x=>{x.forEach(_=>{_&&(_.style.maxWidth="",_.style.marginRight="",_.style.marginLeft="")})};return b.useLayoutEffect(()=>{const x=p.current;if(!x||a)return;const _=()=>{const L=f.current;w(L);const P=x.clientWidth,I=W_(),D=()=>{for(let z=0;z<L.length;z++){const v=L[z];if(v&&v.offsetTop+v.offsetHeight>I+.5)return z}return null};let R=D();if(R!==null)for(let z=0;z<=L.length;z++){w(L);const v=L.slice(0,R).filter(j=>!!j);pl(v,P,y,fl);const M=D();if(M===null||M>=R)break;R=M}if(u(R),o(R!==null),R!==null){const z=L.slice(0,R).filter(M=>!!M),v=z.length?Math.max(...z.map(M=>M.offsetTop+M.offsetHeight)):Un;h(v-Un)}else h(null)};_();const A=typeof ResizeObserver<"u"?new ResizeObserver(_):null;return A?.observe(x),()=>{A?.disconnect(),w(f.current)}},[t,a,y]),b.useLayoutEffect(()=>{const x=p.current;if(!x||!a)return;const _=f.current.filter(L=>!!L);w(f.current),pl(_,x.clientWidth,y,fl);const A=_.length?Math.max(..._.map(L=>L.offsetTop+L.offsetHeight)):Un;return h(A-Un),()=>{w(f.current)}},[a,t,y]),t.length?m.jsx("div",{className:me("rqmii-suggested-messages",a&&"is-expanded",s&&"has-overflow"),dir:g,children:m.jsxs("div",{ref:p,className:me("rqmii-suggested-messages-inner",a?"is-expanded":"is-collapsed"),children:[t.map((x,_)=>{const A=!a&&l!==null&&_>=l;return m.jsx("button",{ref:L=>{f.current[_]=L},type:"button",className:"rqmii-suggested-message",onClick:()=>r(x),style:A?{visibility:"hidden"}:void 0,"aria-hidden":A||void 0,tabIndex:A?-1:void 0,children:x},_)}),s&&m.jsx("button",{type:"button",className:me("rqmii-suggested-messages-toggle",y==="left"&&"is-start-left"),style:d!=null?{top:d,bottom:"auto"}:void 0,onClick:()=>i(x=>(x&&p.current&&(p.current.scrollTop=0),!x)),"aria-label":a?"Show less":"Show more","aria-expanded":a,children:a?m.jsx(Dm,{size:14}):m.jsx(El,{size:14})})]})}):null}),Z_=b.memo(function({language:t}){const n=kt(t||"en");return m.jsx("div",{className:"rqmii-chat-message-row",children:m.jsxs("div",{className:"rqmii-chat-message rqmii-chat-typing-indicator",dir:n,children:[m.jsx("span",{className:"rqmii-chat-typing-dot"}),m.jsx("span",{className:"rqmii-chat-typing-dot"}),m.jsx("span",{className:"rqmii-chat-typing-dot"})]})})});function J_(e){return e==="message"}const e3={name:"leadFormName",email:"leadFormEmail",phone:"leadFormPhone",message:"leadFormMessage"},t3=b.memo(function({messageId:t,form:n,language:r,textDirection:a,formSubmitted:i}){const s=Te.useRqmiiAgentContext(),[o,l]=b.useState({}),[u,d]=b.useState(!1),[h,p]=b.useState(!!i),[f,g]=b.useState(null),y=n.title||te(r,"leadFormTitle"),w=A=>{const L=e3[A.key];return`${L?te(r,L):A.label}${A.required?"*":""}`},x=(A,L)=>{l(P=>({...P,[A]:L})),f&&g(null)},_=async A=>{if(A.preventDefault(),u||h)return;if(n.fields.some(I=>I.required&&!o[I.key]?.trim())){g(te(r,"leadFormRequiredError"));return}const P={};for(const I of n.fields){const D=o[I.key]?.trim();D&&(P[I.key]=D)}d(!0),g(null);try{await s.submitLead({agentId:n.agentId,collectedData:P}),p(!0),s.setMessages(s.messages.map(I=>I.id===t?{...I,formSubmitted:!0}:I))}catch(I){g(I?.message||te(r,"leadFormGenericError"))}finally{d(!1)}};return h?m.jsx("div",{className:"rqmii-chat-message-row rqmii-chat-lead-form-row",children:m.jsx("div",{className:"rqmii-chat-lead-form rqmii-chat-lead-form--done",dir:a,children:m.jsx("div",{className:"rqmii-chat-lead-form-success",children:te(r,"leadFormSuccess")})})}):m.jsx("div",{className:"rqmii-chat-message-row rqmii-chat-lead-form-row",children:m.jsxs("form",{className:"rqmii-chat-lead-form",dir:a,onSubmit:_,children:[m.jsx("div",{className:"rqmii-chat-lead-form-title",children:y}),n.fields.map(A=>{const L=w(A),P=A.type==="email"?"email":A.type==="date"?"date":"text";return J_(A.key)?m.jsx("textarea",{className:"rqmii-chat-lead-form-input rqmii-chat-lead-form-textarea",placeholder:L,value:o[A.key]||"",onChange:I=>x(A.key,I.target.value),disabled:u,rows:4},A.key):m.jsx("input",{className:"rqmii-chat-lead-form-input",type:P,placeholder:L,value:o[A.key]||"",onChange:I=>x(A.key,I.target.value),disabled:u},A.key)}),f&&m.jsx("div",{className:"rqmii-chat-lead-form-error",children:f}),m.jsx("button",{type:"submit",className:"rqmii-chat-lead-form-submit",disabled:u,children:u?te(r,"loading"):te(r,"submit")})]})})}),n3=b.memo(function({message:t,textDirection:n,language:r}){if(t.role==="lead_form"&&t.form)return m.jsx(t3,{messageId:t.id,form:t.form,language:r,textDirection:n,formSubmitted:t.formSubmitted});const a=t.role==="user"||t.sender==="user";return m.jsx(sa,{role:a?"user":t.role||"assistant",children:m.jsx(oa,{dir:n,children:a?t.text:m.jsx(ia,{content:t.text,isAnimating:!!t.streaming,mode:t.streaming?"streaming":"static",dir:n})})})}),ua=b.memo(function({messages:t,partialTranscript:n,language:r,showTypingIndicator:a}){const i=b.useRef(null),s=kt(r||"en"),o=b.useRef(t.length);return b.useEffect(()=>{if(!i.current)return;const l=t.length!==o.current;o.current=t.length,i.current.scrollIntoView({behavior:l?"smooth":"instant",block:"end"})},[t,n]),m.jsxs("div",{className:"rqmii-chat-messages",children:[t.map(l=>m.jsx(n3,{message:l,textDirection:s,language:r||"en"},l.id||`${l.role}-${l.text}`)),a&&m.jsx(Z_,{language:r}),n&&m.jsx(sa,{role:"user",isPartial:!0,children:m.jsx(oa,{dir:s,children:n})}),m.jsx("div",{ref:i})]})}),Zd=b.memo(function({message:t,onRetry:n,onClose:r,language:a="en"}){return m.jsxs("div",{className:"rqmii-chat-panel rqmii-chat-panel--error",children:[r&&m.jsx("button",{type:"button",className:"rqmii-error-close",onClick:r,children:"×"}),m.jsx("p",{children:t||te(a,"connectionFailed")}),n&&m.jsxs("button",{type:"button",className:"rqmii-chat-retry",onClick:n,children:[m.jsx(qm,{size:16}),m.jsx("span",{children:te(a,"retry")})]})]})}),r3=5;function Jd({rating:e,onRate:t,readonly:n,size:r=28}){const[a,i]=b.useState(0),s=a||e;return m.jsx("div",{className:"rqmii-chat-rating-stars",role:"radiogroup",children:Array.from({length:r3},(o,l)=>{const u=l+1,d=u<=s;return m.jsx("button",{type:"button",className:me("rqmii-chat-star",d&&"is-filled",n&&"is-readonly"),disabled:n,"aria-label":`${u}`,"aria-checked":u===e,role:"radio",onMouseEnter:()=>!n&&i(u),onMouseLeave:()=>!n&&i(0),onClick:()=>!n&&t?.(u),children:m.jsx($m,{size:r,fill:d?"currentColor":"none"})},u)})})}function eh({language:e,rating:t,endedBy:n,sessionId:r,interactive:a,showTellUsMore:i,showRating:s=!0,showConversationId:o=!0,onRate:l,onTellUsMore:u}){const d=t>0?te(e,"ratingThankYou"):te(e,"ratingQuestion"),h=n==="user"?te(e,"youEnded"):te(e,"agentEnded");return m.jsxs("div",{className:me("rqmii-chat-rating",!s&&"rqmii-chat-rating--unrated",nt()),dir:kt(e),children:[s&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"rqmii-chat-rating-header",children:d}),m.jsx(Jd,{rating:t,onRate:l,readonly:!a}),i&&m.jsx("button",{type:"button",className:"rqmii-chat-rating-more",onClick:u,children:te(e,"tellUsMore")})]}),m.jsxs("div",{className:"rqmii-chat-rating-meta",children:[m.jsx("div",{children:h}),o&&r&&m.jsxs("div",{children:[te(e,"sessionIdLabel")," ",m.jsx("span",{children:r})]})]})]})}function th({agent:e,language:t,rating:n,onBack:r,onMinimize:a,onSubmit:i}){const[s,o]=b.useState(""),[l,u]=b.useState(!1),d=s.trim().length>0&&!l,h=async()=>{if(d){u(!0);try{await i(s.trim())}finally{u(!1)}}};return m.jsxs("div",{className:me("rqmii-chat-panel rqmii-chat-panel--feedback",nt()),dir:kt(t),children:[m.jsxs("div",{className:"rqmii-chat-topbar",children:[m.jsx("button",{type:"button",className:"rqmii-chat-circle-button",onClick:r,"aria-label":"Back",children:m.jsx(Nm,{size:20})}),m.jsx("button",{type:"button",className:"rqmii-chat-circle-button",onClick:a,"aria-label":te(t,"minimize"),children:m.jsx(Ur,{size:20})})]}),m.jsxs("div",{className:"rqmii-chat-feedback-body",children:[m.jsx(rt,{agent:e,size:"hero"}),m.jsx(Jd,{rating:n,readonly:!0}),m.jsx("div",{className:"rqmii-chat-feedback-title",children:te(t,"ratingThankYou")}),m.jsx("div",{className:"rqmii-chat-feedback-subtitle",children:te(t,"feedbackSubtitle")}),m.jsx("textarea",{className:"rqmii-chat-feedback-input",value:s,dir:kt(t),placeholder:te(t,"feedbackPlaceholder"),onChange:p=>o(p.target.value)}),m.jsx("div",{className:"rqmii-chat-feedback-actions",children:m.jsx("button",{type:"button",className:"rqmii-chat-feedback-submit",onClick:h,disabled:!d,children:l?m.jsx(jr,{className:"rqmii-chat-spin",size:18}):te(t,"submit")})})]}),m.jsx(Nt,{language:t,agent:e})]})}const a3=b.lazy(()=>Promise.resolve().then(()=>require("./RqmiiCloudAvatarPlayer-DUQwPcpd.cjs")).then(e=>e.RqmiiCloudAvatarPlayer$1).then(e=>({default:e.RqmiiCloudAvatarPlayer})));function hr(e){if(!(e==null||typeof window>"u"||window.innerWidth>=768))return{top:`${window.innerHeight-e}px`,bottom:0}}const i3=b.memo(function({agent:t,language:n,languages:r,onLanguageChange:a,onClose:i,onSend:s,isVoiceEnabled:o=!1,isAudioPlaying:l=!1,isVoiceSetupLoading:u=!1,onStartVoice:d,visualViewportHeight:h,disabled:p=!1,error:f,suggestions:g,onSuggestionClick:y,compact:w=!1}){const x=hr(h),[_,A]=b.useState(Fa);b.useEffect(()=>{const D=()=>A(Fa());return window.addEventListener("resize",D),()=>window.removeEventListener("resize",D)},[]);const L=w&&!_,P=L?"start":"hero",I=g&&g.length>0;return m.jsxs("div",{className:me("rqmii-chat-panel rqmii-chat-panel--start",L&&"rqmii-chat-panel--start-compact",nt()),style:x,children:[m.jsxs("div",{className:"rqmii-chat-topbar",children:[m.jsx("span",{}),m.jsxs("div",{className:"rqmii-chat-topbar-actions",children:[m.jsx(cs,{language:n,languages:r,onChange:a}),m.jsx("button",{type:"button",className:"rqmii-chat-circle-button",onClick:i,children:m.jsx(Ti,{size:20})})]})]}),m.jsxs("div",{className:"rqmii-chat-start-body",children:[o?m.jsxs("div",{className:me("rqmii-chat-call-avatar-wrap",L&&"is-compact"),children:[m.jsx(rt,{agent:t,size:P,active:l}),m.jsx("button",{type:"button",className:me("rqmii-chat-call-button",L&&"is-compact"),onClick:d,disabled:u,"aria-label":te(n,"startVoice"),children:u?m.jsx(jr,{className:"rqmii-chat-spin",size:L?18:24}):m.jsx(Ei,{size:L?18:24})})]}):m.jsx(rt,{agent:t,size:P}),m.jsx("div",{className:"rqmii-chat-agent-name",children:t.name}),f&&m.jsx("div",{className:"rqmii-chat-error-text",children:f})]}),I&&m.jsx("div",{className:"rqmii-chat-start-suggestions",children:m.jsx(X_,{suggestions:g,language:n,onClick:D=>y?.(D)})}),m.jsx(la,{language:n,onSend:s,disabled:p}),m.jsx(Nt,{language:n,agent:t})]})}),s3=b.memo(function({agent:t,language:n,languages:r,onLanguageChange:a,onClose:i,onStartVoice:s,isVoiceSetupLoading:o=!1,isAudioPlaying:l,visualViewportHeight:u}){const d=hr(u);return m.jsxs("div",{className:me("rqmii-chat-panel rqmii-chat-panel--voice-start",nt()),style:d,children:[m.jsxs("div",{className:"rqmii-chat-topbar",children:[m.jsx("span",{}),m.jsxs("div",{className:"rqmii-chat-topbar-actions",children:[m.jsx(cs,{language:n,languages:r,onChange:a}),m.jsx("button",{type:"button",className:"rqmii-chat-circle-button",onClick:i,children:m.jsx(Ti,{size:20})})]})]}),m.jsxs("div",{className:"rqmii-chat-call-body",children:[m.jsxs("div",{className:"rqmii-chat-call-avatar-wrap",children:[m.jsx(rt,{agent:t,size:"hero",active:l}),m.jsx("button",{type:"button",className:"rqmii-chat-call-button",onClick:s,disabled:o,"aria-label":te(n,"startVoice"),children:o?m.jsx(jr,{className:"rqmii-chat-spin",size:24}):m.jsx(Ei,{size:24})})]}),m.jsxs("div",{className:"rqmii-chat-agent-name",children:[te(n,"call")," ",t.name]})]}),m.jsx(Nt,{language:n,agent:t})]})}),o3=b.memo(function({agent:t,language:n,onEndSession:r,onMinimize:a,messages:i,partialTranscript:s,onSend:o,isAudioPlaying:l,isVoiceEnabled:u,onToggleVoice:d,isListening:h,isSpeaking:p,isLoading:f,isAgentThinking:g,isAgentSpeaking:y,onStartVoice:w,elapsed:x,visualViewportHeight:_,waitingForResponse:A}){const L=nh({language:n,isListening:h,isLoading:f,isSpeaking:p,isAudioPlaying:l,isAgentThinking:g,isAgentSpeaking:y,persistentListening:!1}),P=hr(_),I=t.widget?.appearance?.show_topbar_avatar_image!==!1;return m.jsxs("div",{className:me("rqmii-chat-panel rqmii-chat-panel--conversation",nt()),style:P,children:[m.jsxs("div",{className:"rqmii-chat-header",children:[I&&m.jsx(rt,{agent:t,size:"header",active:l}),u&&L&&m.jsx("div",{className:me("rqmii-chat-header-status",!I&&"is-expanded"),children:m.jsx("span",{children:L})}),m.jsx("div",{className:"rqmii-chat-header-spacer"}),m.jsxs("div",{className:"rqmii-chat-header-actions",children:[a&&m.jsx("button",{type:"button",className:"rqmii-chat-circle-button",onClick:a,"aria-label":te(n,"minimize"),children:m.jsx(Ur,{size:20})}),u&&m.jsx("button",{type:"button",className:me("rqmii-chat-circle-button",p&&"is-active"),onClick:d,"aria-label":h?te(n,"stopVoice"):te(n,"startVoice"),children:h?m.jsx(Hr,{size:20}):m.jsx(gi,{size:20})}),m.jsx("button",{type:"button",className:"rqmii-chat-circle-button is-danger",onClick:r,"aria-label":te(n,"endCall"),children:m.jsx(bi,{size:20})})]})]}),m.jsx(ua,{messages:i,partialTranscript:s,language:n,showTypingIndicator:A}),u&&m.jsx("div",{className:"rqmii-chat-session-counter",children:xi(x)}),m.jsx(la,{language:n,onSend:o}),m.jsx(Nt,{language:n,agent:t})]})}),l3=b.memo(function({agent:t,language:n,onEndSession:r,onMinimize:a,isListening:i,isLoading:s,isSpeaking:o,isAudioPlaying:l,isAgentThinking:u,isAgentSpeaking:d,onToggleVoice:h,elapsed:p,visualViewportHeight:f}){const g=nh({language:n,isListening:i,isLoading:s,isSpeaking:o,isAudioPlaying:l,isAgentThinking:u,isAgentSpeaking:d,persistentListening:!0}),y=hr(f);return m.jsxs("div",{className:me("rqmii-chat-panel rqmii-chat-panel--voice-call",nt()),style:y,children:[m.jsxs("div",{className:"rqmii-chat-call-status",children:[m.jsx("span",{className:me("rqmii-chat-live-dot",i&&"is-live")}),m.jsx("span",{children:xi(p)}),m.jsx("button",{type:"button",className:"rqmii-chat-circle-button",onClick:a,children:m.jsx(Ur,{size:20})})]}),m.jsxs("div",{className:"rqmii-chat-voice-frame",children:[m.jsx(rt,{agent:t,size:"hero",active:l}),m.jsx("div",{className:"rqmii-chat-agent-name",children:t.name}),m.jsx("div",{className:me("rqmii-chat-status-pill",!g&&"is-empty"),children:g||te(n,"listening")}),m.jsxs("div",{className:"rqmii-chat-voice-actions",children:[m.jsx("button",{type:"button",className:me("rqmii-chat-circle-button",o&&"is-active"),onClick:h,children:i?m.jsx(Hr,{size:20}):m.jsx(gi,{size:20})}),m.jsx("button",{type:"button",className:"rqmii-chat-circle-button is-danger",onClick:r,"aria-label":te(n,"endCall"),children:m.jsx(bi,{size:20})})]})]}),m.jsx(Nt,{language:n,agent:t})]})});function nh({language:e,isListening:t,isLoading:n,isSpeaking:r,isAudioPlaying:a,isAgentThinking:i,isAgentSpeaking:s,persistentListening:o=!1}){return n?te(e,"loading"):r?te(e,"listening"):a||s?te(e,"talkToInterrupt"):i?te(e,"processing"):t&&o?te(e,"listening"):null}const u3=b.memo(function({agent:t,language:n,onRestore:r,onClose:a,isListening:i,isAudioPlaying:s,isSpeaking:o,onToggleVoice:l,elapsed:u,variant:d="voice"}){const h=d==="text";return m.jsxs("div",{className:me("rqmii-chat-minimized",nt()),children:[m.jsx(rt,{agent:t,size:"minimized",active:s}),!h&&m.jsx("span",{className:"rqmii-chat-minimized-time",children:xi(u)}),m.jsxs("div",{className:"rqmii-chat-minimized-actions",children:[m.jsx("button",{type:"button",className:"rqmii-chat-circle-button",onClick:r,"aria-label":te(n,"maximize"),children:m.jsx(Mm,{size:20})}),!h&&m.jsx("button",{type:"button",className:me("rqmii-chat-circle-button",o&&"is-active"),onClick:l,"aria-label":i?te(n,"stopVoice"):te(n,"startVoice"),children:i?m.jsx(Hr,{size:20}):m.jsx(gi,{size:20})}),m.jsx("button",{type:"button",className:"rqmii-chat-circle-button is-danger",onClick:a,"aria-label":te(n,"endCall"),children:m.jsx(bi,{size:20})})]})]})}),rh=b.memo(function({agent:t,language:n,languages:r,chatKind:a,messages:i,onLanguageChange:s,onMinimize:o,onStartNewVoice:l,onStartNewText:u,isVoiceSetupLoading:d=!1,visualViewportHeight:h,rating:p,endedBy:f,sessionId:g,ratingInteractive:y,showTellUsMore:w,onRate:x,onTellUsMore:_}){const A=hr(h),L=t.widget?.behavior?.conversation_ended_screen,P=!!L?.post_chat_rating_enabled,I=L?.show_conversation_id??!0,D=m.jsx(eh,{language:n,rating:p,endedBy:f,sessionId:g,interactive:y,showTellUsMore:w,showRating:P,showConversationId:I,onRate:x,onTellUsMore:_}),R=a==="voice"||a==="text_and_voice",z=a==="text"||a==="text_and_voice",v=m.jsxs("div",{className:"rqmii-chat-topbar-actions rqmii-chat-topbar-actions--ended",children:[m.jsx(cs,{language:n,languages:r,onChange:s}),m.jsx("button",{type:"button",className:"rqmii-chat-circle-button",onClick:o,"aria-label":te(n,"minimize"),children:m.jsx(Ur,{size:20})}),R&&m.jsx("button",{type:"button",className:"rqmii-chat-circle-button rqmii-chat-circle-button--call-start",onClick:l,disabled:d,"aria-label":te(n,"startVoice"),children:d?m.jsx(jr,{className:"rqmii-chat-spin",size:20}):m.jsx(Ei,{size:20})})]});if(a==="voice")return m.jsxs("div",{className:me("rqmii-chat-panel rqmii-chat-panel--voice-call",nt()),style:A,children:[m.jsxs("div",{className:"rqmii-chat-topbar",children:[m.jsx("span",{}),v]}),m.jsxs("div",{className:"rqmii-chat-voice-frame",children:[m.jsx(rt,{agent:t,size:"hero"}),m.jsx("div",{className:"rqmii-chat-agent-name",children:t.name}),D]}),m.jsx(Nt,{language:n,agent:t})]});const M=t.widget?.appearance?.show_topbar_avatar_image!==!1;return m.jsxs("div",{className:me("rqmii-chat-panel rqmii-chat-panel--conversation",nt()),style:A,children:[m.jsxs("div",{className:"rqmii-chat-topbar",children:[M?m.jsx(rt,{agent:t,size:"header"}):m.jsx("span",{}),v]}),m.jsx(ua,{messages:i,language:n}),D,z&&m.jsx(la,{language:n,onSend:u}),m.jsx(Nt,{language:n,agent:t})]})}),ah=b.memo(function({agent:t,language:n,onClose:r}){const{streamingUrl:a,isCloudStreamConnected:i,cloudStreamError:s}=Te.useRqmiiAvatar(),{isAvatarSpeaking:o}=Te.useRqmiiAvatar(),{messages:l,sendTextMessage:u}=Te.useRqmiiMessages();return m.jsxs("div",{className:me("rqmii-avatar-panel",nt()),children:[m.jsxs("div",{className:"rqmii-avatar-stream",children:[m.jsx(b.Suspense,{fallback:m.jsx("div",{className:"rqmii-avatar-overlay",children:te(n,"loading")}),children:m.jsx(a3,{autoConnect:!0,muted:!1})}),!a&&m.jsx("div",{className:"rqmii-avatar-overlay",children:te(n,"loading")}),s&&m.jsx("div",{className:"rqmii-avatar-overlay",children:te(n,"connectionFailed")}),m.jsxs("div",{className:"rqmii-avatar-controls",children:[m.jsx(rt,{agent:t,size:"header",active:o}),m.jsx("div",{className:"rqmii-chat-header-spacer"}),m.jsx("button",{type:"button",className:"rqmii-chat-circle-button",disabled:!i,children:m.jsx(Hr,{size:20})}),m.jsx("button",{type:"button",className:"rqmii-chat-circle-button is-danger",onClick:r,children:m.jsx(Ti,{size:20})})]})]}),t.useText&&m.jsxs("div",{className:"rqmii-avatar-sidebar",children:[m.jsx(ua,{messages:l,language:n}),m.jsx(la,{language:n,onSend:u,variant:"compact"}),m.jsx(Nt,{language:n,agent:t})]})]})});function ih({content:e,children:t,className:n="",...r}){const a=(e!==void 0?e:t)||"";return!a||!a.trim()?null:m.jsx(ia,{className:`rqmii-markdown ${n}`.trim(),content:a,...r})}const sh=b.memo(ih);function oh({language:e,content:t,config:n,agent:r,onAccept:a,onDecline:i}){const s=t||n?.body?.[e]||te(e,"consentBody")||"",o=n?.acceptLabel?.[e]||te(e,"consentAccept"),l=n?.declineLabel?.[e]||te(e,"consentDecline");return m.jsxs("div",{className:me("rqmii-chat-panel rqmii-chat-panel--consent",nt()),dir:kt(e),children:[m.jsx("div",{className:"rqmii-chat-consent-body",children:m.jsx(sh,{content:s})}),m.jsxs("div",{className:"rqmii-chat-consent-actions",children:[m.jsx("button",{type:"button",className:"rqmii-chat-consent-button rqmii-chat-consent-button--decline",onClick:i,children:l}),m.jsx("button",{type:"button",className:"rqmii-chat-consent-button rqmii-chat-consent-button--accept",onClick:a,children:o})]})]})}function c3(e){return e?typeof e=="string"?e:typeof e=="object"&&typeof e.text=="string"?e.text:"":""}function d3(e){return e==="text"||e==="voice"||e==="text_and_voice"}const hs=b.memo(function({agent:t,language:n,languages:r,onLanguageChange:a=St,onEndSession:i=St,onMinimize:s,messages:o,onSendMessage:l,isPreview:u=!1,chatKind:d,sdk:h,renderPanel:p,messagesRef:f,initialText:g,autoStartVoice:y}){const w=t.widget?.consent||t.consent,x=!!w?.enabled,_=w?.content?.[n]||w?.body?.[n]||"",A=w?.one_time!==!1,L=t.id?`rqmii_consent_${t.id}`:null,[P,I]=b.useState(()=>{if(!x||!_)return!0;if(A&&L&&typeof window<"u")try{return window.localStorage.getItem(L)==="true"}catch{return!1}return!1}),D=d||nr(t),[R,z]=b.useState(()=>D==="voice"&&h.isSessionReady||D==="voice"&&!!y),[v,M]=b.useState(()=>(D==="text"||D==="text_and_voice")&&h.isSessionReady||!!g||D==="text_and_voice"&&!!y),[j,W]=b.useState(!1),[q,F]=b.useState(!1),[G,$]=b.useState(null),ue=Qm(D==="voice"&&R||D==="text_and_voice"&&v),T=Xm(),Ee=x&&!!_&&!P&&!u,he=d3(D),{events:S}=Te.useRqmiiConnection();b.useEffect(()=>{if(!S)return;const Ce=()=>{he&&Fa()&&W(!0)},Ye=()=>{he&&W(!1)};return S.on("minimize_chat",Ce),S.on("maximize_chat",Ye),()=>{S.off("minimize_chat",Ce),S.off("maximize_chat",Ye)}},[S,he]);const ke=b.useCallback(()=>{if(A&&L&&typeof window<"u")try{window.localStorage.setItem(L,"true")}catch{}I(!0)},[A,L]),Z=b.useCallback(()=>{s?s():i()},[s,i]),J=Ce=>{a(Ce),u||h.changeSessionLanguage(Ce)},xe=b.useCallback(Ce=>{if($(null),F(!0),l){l(Ce);return}h.sendTextMessage(Ce)},[l,h]);b.useEffect(()=>{f&&(f.current=h.messages)});const ye=b.useRef(!1);b.useEffect(()=>{ye.current||(g?(ye.current=!0,xe(g)):y&&(ye.current=!0,$(null),F(!0),h.isVoiceActive||h.startVoice()))},[]),b.useEffect(()=>{q&&h.isSessionReady&&(F(!1),D==="voice"?z(!0):M(!0))},[q,h.isSessionReady,D]),b.useEffect(()=>{q&&h.error&&(F(!1),$(h.error))},[q,h.error]);const ce=b.useCallback(()=>{$(null),F(!0),h.isVoiceActive||h.startVoice()},[h]);if(h.error&&!u&&(v||R))return m.jsx(Zd,{message:h.error,language:n,onClose:i});if(Ee)return m.jsx(oh,{language:n,content:_,config:t.consent,agent:t,onAccept:ke,onDecline:Z});const Ne={agent:t,language:n,languages:r,chatKind:D,sdk:h,isPreview:u,onLanguageChange:J,onClose:i,onMinimize:he?()=>W(!0):void 0,onRestore:he?()=>W(!1):void 0,onSend:xe,voiceStarted:R,conversationStarted:v,isMinimized:j,elapsed:ue,setVoiceStarted:z,setConversationStarted:M};return p?m.jsx(m.Fragment,{children:p(Ne)}):m.jsx(h3,{...Ne,connecting:q,connectError:G,visualViewportHeight:T,onCloseWidget:s??i,initiateVoice:ce,onSendSuggestion:Ce=>{$(null),F(!0),h.sendSuggestion?.(Ce)}})}),h3=b.memo(function({agent:t,language:n,languages:r,chatKind:a,sdk:i,onLanguageChange:s,onClose:o,onMinimize:l,onRestore:u,onSend:d,voiceStarted:h,conversationStarted:p,isMinimized:f,elapsed:g,setVoiceStarted:y,setConversationStarted:w,visualViewportHeight:x,connecting:_=!1,connectError:A=null,onCloseWidget:L,initiateVoice:P,onSendSuggestion:I}){const D=t.widget?.behavior?.typing_indicator_enabled??!0,R=a==="text"?i.waitingForResponse&&D:!1,z=i.messages;if(a==="avatar")return m.jsx(ah,{agent:t,language:n,onClose:o});if(f)return m.jsx(u3,{agent:t,language:n,onRestore:u,onClose:o,isListening:i.isVoiceActive,isAudioPlaying:i.isAudioPlaying,isSpeaking:i.vad.isSpeaking,onToggleVoice:i.toggleVoice,elapsed:g,variant:a==="text"?"text":"voice"});if(a==="voice"&&h)return m.jsx(l3,{agent:t,language:n,onEndSession:o,onMinimize:l,isListening:i.isVoiceActive,isLoading:i.vad.isLoading,isSpeaking:i.vad.isSpeaking,isAudioPlaying:i.isAudioPlaying,isAgentThinking:i.isAgentThinking,isAgentSpeaking:i.isAgentSpeaking,onToggleVoice:i.toggleVoice,elapsed:g,visualViewportHeight:x});if(a==="voice")return m.jsx(s3,{agent:t,language:n,languages:r,onLanguageChange:s,onClose:L,isAudioPlaying:i.isAudioPlaying,isVoiceSetupLoading:i.isVoiceSetupLoading||_,onStartVoice:P,visualViewportHeight:x});if(!p&&(i.messages.length===0||_)){const v=(t.widget?.behavior?.suggested_messages?.[n]||t.conversation?.suggested_messages?.[n])?.filter(W=>W.trim())||void 0,M=W=>{i.sendSuggestion?I(W):d?.(W)},j=a==="text_and_voice"||nr(t)==="text_and_voice";return m.jsx(i3,{agent:t,language:n,languages:r,onLanguageChange:s,onClose:L,onSend:d,isVoiceEnabled:j,isAudioPlaying:i.isAudioPlaying,isVoiceSetupLoading:i.isVoiceSetupLoading||_,onStartVoice:P,visualViewportHeight:x,disabled:_,error:A||void 0,suggestions:v,onSuggestionClick:M,compact:!!v})}return m.jsx(o3,{agent:t,language:n,onEndSession:o,messages:z,partialTranscript:c3(i.partialTranscript),onSend:d,isAudioPlaying:i.isAudioPlaying,isVoiceEnabled:a==="text_and_voice",isListening:i.isVoiceActive,isSpeaking:i.vad.isSpeaking,isLoading:i.vad.isLoading,isAgentThinking:i.isAgentThinking,isAgentSpeaking:i.isAgentSpeaking,onToggleVoice:i.toggleVoice,onStartVoice:i.startVoice,onMinimize:l,elapsed:g,visualViewportHeight:x,waitingForResponse:R})}),m3={isListening:!1,isLoading:!1,isSpeaking:!1,toggle:async()=>!1};function lh({isSessionReady:e,sendTextMessage:t,messages:n}){const[r,a]=b.useState(null),[i,s]=b.useState(null),o=b.useCallback(()=>{a(l=>(l&&(e?t(l):s(l)),null))},[e,t]);return b.useEffect(()=>{r&&n.length!==0&&o()},[n,r,o]),b.useEffect(()=>{if(!r)return;const l=setTimeout(o,5e3);return()=>clearTimeout(l)},[r,o]),b.useEffect(()=>{!i||!e||(t(i),s(null))},[e,i,t]),{pendingWelcomeText:r,pendingMessage:i,setPendingWelcomeText:a,setPendingMessage:s,sendPendingWelcomeText:o}}function ms({isSessionReady:e,signalClientReady:t}){const[n,r]=b.useState(!1),[a,i]=b.useState(void 0),s=b.useRef(!1);return b.useEffect(()=>{!e||s.current||!n||(s.current=!0,t(a),r(!1))},[e,n,a,t]),{emitClientReady:b.useCallback(l=>{e?(s.current=!0,t(l)):(i(l),r(!0))},[e,t])}}const f3=300;function uh(e){const{isPreview:t=!1,...n}=e,{messages:r,sendTextMessage:a,emitUserMessage:i,addLocalMessage:s,clearMessages:o}=Te.useRqmiiMessages(),{changeSessionLanguage:l,clearSessionHistory:u,signalClientReady:d,error:h,isSessionReady:p,isAgentThinking:f,isAgentSpeaking:g}=Te.useRqmiiConnection(),y=b.useRef(!1),w=b.useRef(null),x=b.useRef(!1),[_,A]=b.useState(!1),[L,P]=b.useState(null),[I,D]=b.useState(!1),R=b.useRef(r.length);b.useEffect(()=>{if(r.length>R.current){const F=r[r.length-1];F.role==="assistant"&&F.streaming&&D(!1)}R.current=r.length},[r]),Te.useRqmiiEvents("message_rate_limited",b.useCallback(()=>{D(!1)},[])),b.useEffect(()=>{if(!p||!_||x.current)return;const F=w.current;if(F===null)return;x.current=!0,w.current=null,s("user",F),P(null);const G=e.agent.welcomeMessages?.[e.language];d(G?{welcomeMessage:G}:void 0);const $=setTimeout(()=>{i(F),D(!0)},f3);return()=>clearTimeout($)},[p,_,d,i,s]);const z=b.useMemo(()=>L?[{id:"first-user",role:"user",text:L},...r]:r,[L,r]),v=b.useCallback(()=>{P(null),o()},[o]),M={emitClientReady:d,sendMessage:F=>{a(F)},queueForWelcome:St,enableVoice:St,disableVoice:St,language:e.language,isSessionReady:p,supportsVoice:!1,isVoiceActive:!1,chatKind:"text"},j=(F,G)=>{e.onSessionStart?.(),y.current?(D(!0),G.sendMessage(F)):(y.current=!0,P(F),w.current=F,A(!0),D(!0))},W=F=>{e.onTextSend?e.onTextSend(F,M):j(F,M)},q={messages:z,sendTextMessage:W,clearMessages:v,clearSessionHistory:u,isAudioPlaying:!1,partialTranscript:null,changeSessionLanguage:l,error:h,isAgentThinking:f,isAgentSpeaking:g,isVoiceSetupLoading:!1,isVoiceActive:!1,isSessionReady:p,vad:m3,startVoice:St,prepareVoice:St,toggleVoice:St,signalClientReady:d,waitingForResponse:I,sendSuggestion:W};return m.jsx(hs,{...n,isPreview:t,chatKind:"text",sdk:q})}function ch(e){const{isPreview:t=!1,...n}=e,{messages:r,sendTextMessage:a,clearMessages:i}=Te.useRqmiiMessages(),{isAudioPlaying:s,partialTranscript:o}=Te.useRqmiiVoice(),{changeSessionLanguage:l,clearSessionHistory:u,signalClientReady:d,error:h,isSessionReady:p,isAgentThinking:f,isAgentSpeaking:g}=Te.useRqmiiConnection(),{setPendingWelcomeText:y,setPendingMessage:w}=lh({isSessionReady:p,sendTextMessage:a,messages:r}),{emitClientReady:x}=ms({isSessionReady:p,signalClientReady:d}),[_,A]=b.useState(!1),L=Te.useRqmiiVAD({enabled:!0,preloadStream:!1}),{isLoading:P,isListening:I,toggle:D}=L,R=P,z=I||_;b.useEffect(()=>{!_||!p||P||I||D()},[_,p,P,I,D]);const v=()=>{e.onSessionStart?.()},M={emitClientReady:x,sendMessage:$=>{p?a($):w($)},queueForWelcome:$=>y($),enableVoice:()=>A(!0),disableVoice:()=>{A(!1),I&&D()},language:e.language,isSessionReady:p,supportsVoice:!0,isVoiceActive:z,chatKind:"voice"},j=$=>{v(),$.enableVoice();const ne=e.agent.welcomeMessages?.[e.language];$.emitClientReady(ne?{welcomeMessage:ne}:void 0)},W=$=>{$.isVoiceActive?$.disableVoice():$.enableVoice()},G={messages:r,sendTextMessage:()=>{},clearMessages:i,clearSessionHistory:u,isAudioPlaying:s,partialTranscript:o,changeSessionLanguage:l,error:h,isAgentThinking:f,isAgentSpeaking:g,isVoiceSetupLoading:R,isVoiceActive:z,isSessionReady:p,vad:L,startVoice:()=>{e.onVoiceStart?e.onVoiceStart(M):j(M)},prepareVoice:()=>{},toggleVoice:()=>{e.onVoiceToggle?e.onVoiceToggle(M):W(M)},signalClientReady:d};return m.jsx(hs,{...n,isPreview:t,chatKind:"voice",sdk:G})}const p3=300;function dh(e){const{isPreview:t=!1,...n}=e,{messages:r,sendTextMessage:a,emitUserMessage:i,addLocalMessage:s,clearMessages:o}=Te.useRqmiiMessages(),{isAudioPlaying:l,partialTranscript:u}=Te.useRqmiiVoice(),{changeSessionLanguage:d,clearSessionHistory:h,signalClientReady:p,error:f,isSessionReady:g,isAgentThinking:y,isAgentSpeaking:w}=Te.useRqmiiConnection(),{emitClientReady:x}=ms({isSessionReady:g,signalClientReady:p}),[_,A]=b.useState(!1),L=b.useRef(null),[P,I]=b.useState(!1),D=b.useRef(null),[R,z]=b.useState(!1),v=b.useRef(!1),M=b.useRef(!1),j=b.useRef(!1),[W,q]=b.useState(null),[F,G]=b.useState(!1),$=b.useRef(r.length);b.useEffect(()=>{if(r.length>$.current){const se=r[r.length-1];se.role==="assistant"&&se.streaming&&G(!1)}$.current=r.length},[r]),Te.useRqmiiEvents("message_rate_limited",b.useCallback(()=>{G(!1)},[]));const ne=Te.useRqmiiVAD({enabled:!0,preloadStream:!1}),{isLoading:ue,isListening:T,toggle:Ee}=ne,he=ue,S=T||_;b.useEffect(()=>{!_||!g||ue||T||Ee()},[_,g,ue,T,Ee]),b.useEffect(()=>{if(!g||!P||j.current)return;const se=L.current;if(se===null)return;j.current=!0,L.current=null,s("user",se),q(null);const Pe=e.agent.welcomeMessages?.[e.language];p(Pe?{welcomeMessage:Pe}:void 0);const ft=setTimeout(()=>{i(se),G(!0)},p3);return()=>clearTimeout(ft)},[g,P,p,i,s]),b.useEffect(()=>{if(!g||!R||v.current)return;const se=D.current;se!==null&&(v.current=!0,D.current=null,s("user",se),i(se),G(!0),z(!1))},[g,R,i,s]);const ke=b.useMemo(()=>W?[{id:"first-user",role:"user",text:W},...r]:r,[W,r]),Z=b.useCallback(()=>{q(null),M.current=!1,j.current=!1,o()},[o]),J=()=>{e.onSessionStart?.()},xe={emitClientReady:se=>{j.current=!0,M.current=!0,x(se)},sendMessage:se=>{a(se)},queueForWelcome:()=>{},enableVoice:()=>A(!0),disableVoice:()=>{A(!1),T&&Ee()},language:e.language,isSessionReady:g,supportsVoice:!0,isVoiceActive:S,chatKind:"text_and_voice"},ye=(se,Pe)=>{J(),!M.current&&!j.current?(M.current=!0,e.onStartText?.(),q(se),L.current=se,I(!0),G(!0)):(M.current=!0,G(!0),Pe.sendMessage(se))},ce=se=>{J(),M.current=!0,j.current=!0,e.onStartVoice?.(),se.enableVoice();const Pe=e.agent.welcomeMessages?.[e.language];se.emitClientReady(Pe?{welcomeMessage:Pe}:void 0)},Ne=se=>{se.isVoiceActive?se.disableVoice():se.enableVoice()},Ze={messages:ke,sendTextMessage:se=>{e.onTextSend?e.onTextSend(se,xe):ye(se,xe)},clearMessages:Z,clearSessionHistory:h,isAudioPlaying:l,partialTranscript:u,changeSessionLanguage:d,error:f,isAgentThinking:y,isAgentSpeaking:w,isVoiceSetupLoading:he,isVoiceActive:S,isSessionReady:g,vad:ne,startVoice:()=>{e.onVoiceStart?e.onVoiceStart(xe):ce(xe)},prepareVoice:()=>{},toggleVoice:()=>{e.onVoiceToggle?e.onVoiceToggle(xe):Ne(xe)},signalClientReady:p,waitingForResponse:F,sendSuggestion:se=>{J(),M.current=!0,j.current=!0,e.onStartVoice?.(),A(!0),D.current=se,z(!0)}};return m.jsx(hs,{...n,isPreview:t,chatKind:e.textOnly?"text":"text_and_voice",sdk:Ze})}function hh(e){const{isPreview:t=!1,agent:n,language:r,languages:a,onLanguageChange:i,onEndSession:s,onMinimize:o,messages:l,onSendMessage:u}=e,d=s||o||St,{messages:h,sendTextMessage:p,clearMessages:f}=Te.useRqmiiMessages(),{changeSessionLanguage:g,clearSessionHistory:y,signalClientReady:w,error:x,isSessionReady:_,isAgentThinking:A,isAgentSpeaking:L}=Te.useRqmiiConnection();return lh({isSessionReady:_,sendTextMessage:p,messages:h}),ms({isSessionReady:_,signalClientReady:w}),x&&!t?m.jsx(Zd,{message:x,language:r,onClose:d}):m.jsx(ah,{agent:n,language:r,onClose:d})}function g3({agent:e,defaultOpen:t,className:n="",preview:r=!1,ChatBoxComponent:a}){const i=t!==void 0?t:e.widget?.behavior?.default_open??!1,[s,o]=b.useState(i),[l,u]=b.useState(e.defaultLanguage),d=b.useMemo(()=>En(e.languages,e.defaultLanguage),[e.defaultLanguage,e.languages]);b.useEffect(()=>{u(e.defaultLanguage)},[e.defaultLanguage]),b.useEffect(()=>{o(i)},[i]);const h=e.widget?.appearance?.theme?.mode==="light"?"light":"dark",p=b.useMemo(()=>ki(e.widget?.appearance),[e.widget?.appearance]);return m.jsxs("div",{className:me("rqmii-chat-surface",`rqmii-theme-${h}`,r&&"is-preview",n),"data-theme":h,style:p,children:[!s&&m.jsx(ds,{agent:e,onClick:()=>o(!0),position:r?"static":"fixed"}),s&&m.jsx(a,{agent:e,language:l,languages:d,onLanguageChange:u,onClose:()=>o(!1),isPreview:r})]})}function b3({restUrl:e,identifier:t,fallbackAgent:n,withCredentials:r=!1,children:a,onError:i}){const[s,o]=b.useState(()=>n?fn(n):null),[l,u]=b.useState(null);return b.useEffect(()=>{n&&(o(fn(n)),u(null))},[n]),b.useEffect(()=>{if(!t||n)return;const d=new AbortController;return u(null),gl({restUrl:e,identifier:t,withCredentials:r,signal:d.signal}).then(o).catch(h=>{d.signal.aborted||(n||u(h),i?.(h))}),()=>d.abort()},[n,t,i,e,r]),l?m.jsx("div",{className:"rqmii-chat-panel rqmii-chat-panel--error",children:l.message||"Could not load agent"}):s?m.jsx(m.Fragment,{children:a(s)}):m.jsx("div",{className:"rqmii-chat-panel rqmii-chat-panel--error",children:"Loading"})}function mi({agent:e,language:t,languages:n,onLanguageChange:r,onEndSession:a,onMinimize:i,onStartText:s,onStartVoice:o,textOnly:l,messages:u,onSendMessage:d,isPreview:h,onSessionStart:p,initialText:f,autoStartVoice:g}){const y=nr(e),w={agent:e,language:t,languages:n,onLanguageChange:r,onEndSession:a,onMinimize:i,messages:u,onSendMessage:d,isPreview:h,onSessionStart:p,initialText:f,autoStartVoice:g};switch(y){case"avatar":return m.jsx(hh,{...w});case"voice":return m.jsx(ch,{...w});case"text_and_voice":return m.jsx(dh,{...w,onStartText:s,onStartVoice:o,textOnly:l});case"text":default:return m.jsx(uh,{...w})}}function E3({agent:e,language:t,languages:n,startMode:r,directive:a,open:i,onOpen:s,onLanguageChange:o,onMinimize:l,onStartNewSession:u,onSessionStart:d,onStartText:h,onStartVoice:p}){const{connectionState:f,isConnected:g,isSessionTerminated:y,creditExhausted:w,session:x,endSession:_,submitFeedback:A,interrupt:L}=Te.useRqmiiConnection(),{messages:P}=Te.useRqmiiMessages(),I=b.useRef(!1),D=b.useRef(null),[R,z]=b.useState(null),[v,M]=b.useState(0),[j,W]=b.useState(!1),[q,F]=b.useState(!1),[G,$]=b.useState(!1);b.useEffect(()=>{g&&(I.current=!0)},[g]),b.useEffect(()=>{if(R)return;let Z=null;y||f==="ended"?Z=D.current==="user"?"user_ended":"terminated":f==="failed"?w?Z="credits_exhausted":I.current?Z="connection_lost":Z="failed":w&&(Z="credits_exhausted"),Z&&z({sessionId:x.sessionId,endedBy:D.current??"agent",reason:Z})},[y,f,w,x.sessionId,R]);const ne=()=>{D.current="user",L(),_()},ue=R?.sessionId??null,T=Z=>{j||(M(Z),ue&&A({sessionId:ue,rating:Z,endedBy:R?.endedBy}).catch(()=>{}),G||($(!0),F(!0)))},Ee=async Z=>{if(ue)try{await A({sessionId:ue,feedback:Z,endedBy:R?.endedBy})}catch{}W(!0),F(!1)};if(!i)return m.jsx(ds,{agent:e,onClick:s,active:f==="connected"});const he=nr(e),S=e.agentType==="cloud_avatar"||e.agentType==="desktop_avatar",ke=r==="text";return S?m.jsx(mi,{agent:e,language:t,languages:n,onLanguageChange:o,onEndSession:ne,onMinimize:l,onSessionStart:d,onStartText:h,onStartVoice:p,textOnly:ke}):R?q&&ue?m.jsx(th,{agent:e,language:t,rating:v,onBack:()=>F(!1),onMinimize:l,onSubmit:Ee}):m.jsx(rh,{agent:e,language:t,languages:n,chatKind:he==="avatar"?"text":he,messages:P,onLanguageChange:o,onMinimize:l,onStartNewVoice:()=>u("voice"),onStartNewText:Z=>u("text",Z),rating:v,endedBy:R.endedBy,sessionId:ue,ratingInteractive:!j,showTellUsMore:G&&!j,onRate:T,onTellUsMore:()=>F(!0)}):m.jsx(mi,{agent:e,language:t,languages:n,onLanguageChange:o,onEndSession:ne,onMinimize:l,onSessionStart:d,onStartText:h,onStartVoice:p,textOnly:ke,initialText:a?.mode==="text"?a.text:void 0,autoStartVoice:a?.mode==="voice"})}function T3(e){const{wsUrl:t,restUrl:n,apiKey:r,agentId:a,agent:i,language:s,defaultOpen:o,open:l,className:u="",debug:d=!1,withCredentials:h=!1,onError:p,onInitialized:f,config:g,promptOverrides:y,clientTools:w,onMinimize:x,onOpen:_}=e;if([!!r,!!a].filter(Boolean).length>1)throw new Error("RqmiiAgentChat: only one of apiKey, or agentId may be provided");const L=r||a;return m.jsx(b3,{restUrl:n,identifier:L,fallbackAgent:i,withCredentials:h,onError:p,children:P=>m.jsx(k3,{wsUrl:t,restUrl:n,apiKey:r,agentId:a,agent:P,language:s,defaultOpen:o,open:l,className:u,debug:d,withCredentials:h,onError:p,onInitialized:f,config:g,promptOverrides:y,clientTools:w,onMinimize:x,onOpen:_})})}function k3({wsUrl:e,restUrl:t,apiKey:n,agentId:r,agent:a,language:i,defaultOpen:s,open:o,className:l,debug:u,withCredentials:d,onError:h,onInitialized:p,config:f,promptOverrides:g,clientTools:y,onMinimize:w,onOpen:x}){const _=s!==void 0?s:a.widget?.behavior?.default_open??!1,[A,L]=b.useState(_),P=o!==void 0?o:A;b.useEffect(()=>{o===void 0&&L(_)},[_,o]);const[I,D]=b.useState(!1),[R,z]=b.useState(i||a.defaultLanguage),[v,M]=b.useState("idle"),[j,W]=b.useState(0),[q,F]=b.useState(null),[G,$]=b.useState(!1),ne=a.agentType==="cloud_avatar"||a.agentType==="desktop_avatar",ue=ne,T=a.widget?.behavior?.welcome_bubble,Ee=a.welcomeMessages?.[R]||"",he=!P&&!G&&!ue&&!!T?.enabled&&!!Ee.trim(),S=b.useMemo(()=>En(a.languages,a.defaultLanguage),[a.defaultLanguage,a.languages]);b.useEffect(()=>{Tl(a.widget?.appearance?.font)},[a.widget?.appearance?.font]);const ke=b.useMemo(()=>v==="text"?{...f??{},use_voice:!1,use_text:!0}:f,[f,v]),Z=b.useMemo(()=>km(a,ke),[a,ke]),J=!ue&&Z.useVoice,xe=ne?P:I,ye=b.useMemo(()=>({...n?{apiKey:n}:{},...r?{agentId:r}:{},language:R,config:ke,...g?{promptOverrides:g}:{}}),[r,n,R,ke,g]),ce=b.useRef(null),Ne=b.useRef(!1),Ce=b.useRef(j),Ye=Ce.current!==j;Ce.current=j,I&&(!Ne.current||Ye)&&(ce.current=ye),Ne.current=I,I||(ce.current=null);const ot=I&&ce.current?ce.current:ye;b.useEffect(()=>{z(i||a.defaultLanguage)},[a.defaultLanguage,i]);const Ze=b.useMemo(()=>h?Le=>{M("idle"),h(Le)}:Le=>{M("idle")},[h]),se=()=>{M("text"),D(!0)},Pe=()=>{M("voice"),D(!0)},ft=()=>{o===void 0&&L(!1),w?.()},_n=()=>{o===void 0&&L(!0),$(!0),x?.()},ln=(Le,Ge)=>{F(Le==="text"?{mode:"text",text:Ge??""}:{mode:"voice"}),M(Le),D(!0),W(pt=>pt+1)},X=a.widget?.appearance?.theme?.mode==="light"?"light":"dark",pe=b.useMemo(()=>ki(a.widget?.appearance),[a.widget?.appearance]);return m.jsx(Te.RqmiiAgentRoom,{wsUrl:e,restUrl:t,session:ot,connect:xe,enableAudio:J,debug:u,withCredentials:d,onError:Ze,onInitialized:p,clientTools:y,children:m.jsxs("div",{className:me("rqmii-chat-surface",`rqmii-theme-${X}`,a.widget?.appearance?.position==="left"&&"rqmii-position-left",l),"data-theme":X,style:pe,dir:"ltr",children:[he&&m.jsx(V_,{message:Ee,delaySeconds:T?.delay_seconds??3,soundEnabled:!!T?.sound_enabled,language:R,buttonPosition:a.widget?.appearance?.position==="left"?"left":"right",onClick:()=>$(!0)}),m.jsx(E3,{agent:a,language:R,languages:S,startMode:v,directive:q,open:P,onOpen:_n,onLanguageChange:z,onMinimize:ft,onStartNewSession:ln,onSessionStart:()=>D(!0),onStartText:se,onStartVoice:Pe})]})},j)}function x3(e){const{agent:t,language:n,open:r=!0,className:a="",messages:i,onSendMessage:s,onClose:o}=e,l=b.useMemo(()=>fn(t),[t]),[u,d]=b.useState(r),[h,p]=b.useState(n||l.defaultLanguage),f=b.useMemo(()=>En(l.languages,l.defaultLanguage),[l.defaultLanguage,l.languages]),g=l.widget?.appearance?.theme?.mode==="light"?"light":"dark",y=b.useMemo(()=>ki(l.widget?.appearance),[l.widget?.appearance]);return b.useEffect(()=>{n&&p(n)},[n]),b.useEffect(()=>{d(r)},[r]),b.useEffect(()=>{Tl(l.widget?.appearance?.font)},[l.widget?.appearance?.font]),m.jsx(Te.RqmiiAgentProvider,{wsUrl:"",restUrl:"",enableAudio:!1,children:m.jsx("div",{className:me("rqmii-chat-surface is-preview",`rqmii-theme-${g}`,l.widget?.appearance?.position==="left"&&"rqmii-position-left",a),"data-theme":g,style:y,dir:"ltr",children:u?m.jsx(mi,{agent:l,language:h,languages:f,onLanguageChange:p,onEndSession:()=>{d(!1),o?.()},onMinimize:()=>{d(!1),o?.()},messages:i,onSendMessage:s,isPreview:!0}):null})})}exports.ConsentDialog=oh;exports.El=_C;exports.EndedChatPanel=rh;exports.FeedbackPanel=th;exports.Message=F_;exports.MessageAvatar=H_;exports.MessageContent=z_;exports.MessageList=ua;exports.RQMII_CHAT_LANGUAGES=Sr;exports.RQMII_CHAT_LANGUAGE_VALUES=Oa;exports.RatingBar=eh;exports.Response=O_;exports.RqmiiAgentAvatar=rt;exports.RqmiiAgentChat=T3;exports.RqmiiAgentChatPreview=x3;exports.RqmiiAvatarChatBox=hh;exports.RqmiiChatFooter=Nt;exports.RqmiiChatOpenButton=ds;exports.RqmiiChatSurface=g3;exports.RqmiiMarkdown=sh;exports.RqmiiMarkdownComponent=ih;exports.RqmiiMessage=sa;exports.RqmiiMessageAvatar=Xd;exports.RqmiiMessageContent=oa;exports.RqmiiResponse=ia;exports.RqmiiTextAndVoiceChatBox=dh;exports.RqmiiTextChatBox=uh;exports.RqmiiVoiceChatBox=ch;exports.S=Be;exports.Vo=Qd;exports.co=id;exports.fetchAgentConfig=Tm;exports.fetchAgentCustomization=gl;exports.getChatLanguage=Ma;exports.getChatText=te;exports.getDefaultExportFromCjs=pi;exports.normalizeChatLanguages=En;exports.normalizePublicAgent=fn;exports.resolveChatKind=nr;
|
|
251
|
+
//# sourceMappingURL=ui-DTqk30E0.cjs.map
|