(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[92888],{62182:function(e,t,n){var r={"./ar.json":[70017,70017],"./bn.json":[94149,94149],"./en.json":[69029,69029],"./fa.json":[53557,53557],"./fr.json":[10229,10229],"./id.json":[46833,46833],"./it.json":[23577,23577],"./ms.json":[21492,21492],"./nl.json":[53802,53802],"./pt.json":[74105,74105],"./ru.json":[92390,92390],"./sq.json":[72413,72413],"./th.json":[6383,6383],"./tr.json":[81115,81115],"./ur.json":[92246,92246],"./zh.json":[74482,71119]};function o(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return n.e(t[1]).then((function(){return n.t(o,19)}))}o.keys=function(){return Object.keys(r)},o.id=62182,e.exports=o},30242:function(e,t,n){var r={"./ar/about":[82658,82658],"./ar/about-quran":[66437,66437],"./ar/about-quran.json":[66437,66437],"./ar/about.json":[82658,82658],"./ar/apps":[88452,88452],"./ar/apps.json":[88452,88452],"./ar/chapter":[56832,56832],"./ar/chapter.json":[56832,56832],"./ar/collection":[58376,58376],"./ar/collection.json":[58376,58376],"./ar/common":[11111,11111],"./ar/common.json":[11111,11111],"./ar/developers":[16242,16242],"./ar/developers.json":[16242,16242],"./ar/error":[64196,64196],"./ar/error.json":[64196,64196],"./ar/home":[50609,50609],"./ar/home.json":[50609,50609],"./ar/learn":[50619,50619],"./ar/learn.json":[50619,50619],"./ar/login":[44927,44927],"./ar/login.json":[44927,44927],"./ar/notes":[41382,41382],"./ar/notes.json":[41382,41382],"./ar/notification-settings":[95187,95187],"./ar/notification-settings.json":[95187,95187],"./ar/onboarding":[89181,89181],"./ar/onboarding.json":[89181,89181],"./ar/privacy":[40556,40556],"./ar/privacy.json":[40556,40556],"./ar/product-updates":[51896,51896],"./ar/product-updates.json":[51896,51896],"./ar/profile":[45340,45340],"./ar/profile.json":[45340,45340],"./ar/quick-links":[82937,82937],"./ar/quick-links.json":[82937,82937],"./ar/quran-reader":[61763,61763],"./ar/quran-reader.json":[61763,61763],"./ar/quranic-calendar":[13298,13298],"./ar/quranic-calendar.json":[13298,13298],"./ar/radio":[32772,32772],"./ar/radio.json":[32772,32772],"./ar/ramadan-activities":[30819,30819],"./ar/ramadan-activities.json":[30819,30819],"./ar/reading-goal":[612,612],"./ar/reading-goal.json":[612,612],"./ar/reading-progress":[58536,58536],"./ar/reading-progress.json":[58536,58536],"./ar/reciter":[160,160],"./ar/reciter.json":[160,160],"./ar/search":[93200,54239],"./ar/search.json":[93200,54239],"./ar/support":[19847,19847],"./ar/support.json":[19847,19847],"./ar/surah-info":[4198,4198],"./ar/surah-info.json":[4198,4198],"./ar/tajweed":[72419,72419],"./ar/tajweed.json":[72419,72419],"./bn/about":[43436,96913],"./bn/about-quran":[84124,84124],"./bn/about-quran.json":[84124,84124],"./bn/about.json":[43436,96913],"./bn/apps":[79618,79618],"./bn/apps.json":[79618,79618],"./bn/chapter":[97747,97747],"./bn/chapter.json":[97747,97747],"./bn/collection":[15603,15603],"./bn/collection.json":[15603,15603],"./bn/common":[50371,50371],"./bn/common.json":[50371,50371],"./bn/developers":[32966,32966],"./bn/developers.json":[32966,32966],"./bn/error":[83328,83328],"./bn/error.json":[83328,83328],"./bn/home":[82481,82481],"./bn/home.json":[82481,82481],"./bn/learn":[69635,69635],"./bn/learn.json":[69635,69635],"./bn/login":[81902,81902],"./bn/login.json":[81902,81902],"./bn/notes":[71439,71439],"./bn/notes.json":[71439,71439],"./bn/notification-settings":[99800,99800],"./bn/notification-settings.json":[99800,99800],"./bn/onboarding":[76259,76259],"./bn/onboarding.json":[76259,76259],"./bn/privacy":[34291,34291],"./bn/privacy.json":[34291,34291],"./bn/product-updates":[7596,7596],"./bn/product-updates.json":[7596,7596],"./bn/profile":[10188,10188],"./bn/profile.json":[10188,10188],"./bn/quick-links":[24464,24464],"./bn/quick-links.json":[24464,24464],"./bn/quran-reader":[31260,31260],"./bn/quran-reader.json":[31260,31260],"./bn/quranic-calendar":[87320,87320],"./bn/quranic-calendar.json":[87320,87320],"./bn/radio":[25772,25772],"./bn/radio.json":[25772,25772],"./bn/ramadan-activities":[65062,65062],"./bn/ramadan-activities.json":[65062,65062],"./bn/reading-goal":[82535,82535],"./bn/reading-goal.json":[82535,82535],"./bn/reading-progress":[6706,6706],"./bn/reading-progress.json":[6706,6706],"./bn/reciter":[53695,53695],"./bn/reciter.json":[53695,53695],"./bn/search":[90067,90067],"./bn/search.json":[90067,90067],"./bn/support":[11906,11906],"./bn/support.json":[11906,11906],"./bn/surah-info":[27050,27050],"./bn/surah-info.json":[27050,27050],"./bn/tajweed":[2552,2552],"./bn/tajweed.json":[2552,2552],"./en/about":[49740,49740],"./en/about-quran":[52008,52008],"./en/about-quran.json":[52008,52008],"./en/about.json":[49740,49740],"./en/apps":[46807,46807],"./en/apps.json":[46807,46807],"./en/chapter":[97821,97821],"./en/chapter.json":[97821,97821],"./en/collection":[49421,49421],"./en/collection.json":[49421,49421],"./en/common":[40464,40464],"./en/common.json":[40464,40464],"./en/developers":[44663,44663],"./en/developers.json":[44663,44663],"./en/error":[50394,50394],"./en/error.json":[50394,50394],"./en/home":[12482,12482],"./en/home.json":[12482,12482],"./en/learn":[66694,66694],"./en/learn.json":[66694,66694],"./en/login":[16318,16318],"./en/login.json":[16318,16318],"./en/notes":[23580,23580],"./en/notes.json":[23580,23580],"./en/notification-settings":[53145,53145],"./en/notification-settings.json":[53145,53145],"./en/onboarding":[42002,42002],"./en/onboarding.json":[42002,42002],"./en/privacy":[2297,2297],"./en/privacy.json":[2297,2297],"./en/product-updates":[21924,21924],"./en/product-updates.json":[21924,21924],"./en/profile":[81140,81140],"./en/profile.json":[81140,81140],"./en/quick-links":[36667,36667],"./en/quick-links.json":[36667,36667],"./en/quran-reader":[63151,63151],"./en/quran-reader.json":[63151,63151],"./en/quranic-calendar":[49294,49294],"./en/quranic-calendar.json":[49294,49294],"./en/radio":[40333,40333],"./en/radio.json":[40333,40333],"./en/ramadan-activities":[64007,64007],"./en/ramadan-activities.json":[64007,64007],"./en/reading-goal":[30968,81098],"./en/reading-goal.json":[30968,81098],"./en/reading-progress":[38725,38725],"./en/reading-progress.json":[38725,38725],"./en/reciter":[42121,42121],"./en/reciter.json":[42121,42121],"./en/search":[17842,17842],"./en/search.json":[17842,17842],"./en/support":[69251,69251],"./en/support.json":[69251,69251],"./en/surah-info":[19435,19435],"./en/surah-info.json":[19435,19435],"./en/tajweed":[27848,27848],"./en/tajweed.json":[27848,27848],"./es_US/common":[10603,10603],"./es_US/common.json":[10603,10603],"./fa/about":[62755,62755],"./fa/about-quran":[83331,83331],"./fa/about-quran.json":[83331,83331],"./fa/about.json":[62755,62755],"./fa/apps":[25265,25265],"./fa/apps.json":[25265,25265],"./fa/chapter":[24280,24280],"./fa/chapter.json":[24280,24280],"./fa/collection":[79382,79382],"./fa/collection.json":[79382,79382],"./fa/common":[70512,70512],"./fa/common.json":[70512,70512],"./fa/developers":[62319,62319],"./fa/developers.json":[62319,62319],"./fa/error":[25016,23745],"./fa/error.json":[25016,23745],"./fa/home":[17859,17859],"./fa/home.json":[17859,17859],"./fa/learn":[58586,58586],"./fa/learn.json":[58586,58586],"./fa/login":[18963,18963],"./fa/login.json":[18963,18963],"./fa/notes":[60573,60573],"./fa/notes.json":[60573,60573],"./fa/notification-settings":[86924,86924],"./fa/notification-settings.json":[86924,86924],"./fa/onboarding":[40281,40281],"./fa/onboarding.json":[40281,40281],"./fa/privacy":[98917,98917],"./fa/privacy.json":[98917,98917],"./fa/product-updates":[49264,79891],"./fa/product-updates.json":[49264,79891],"./fa/profile":[92620,92620],"./fa/profile.json":[92620,92620],"./fa/quick-links":[20689,20689],"./fa/quick-links.json":[20689,20689],"./fa/quran-reader":[56847,56847],"./fa/quran-reader.json":[56847,56847],"./fa/quranic-calendar":[59652,59652],"./fa/quranic-calendar.json":[59652,59652],"./fa/radio":[67110,67110],"./fa/radio.json":[67110,67110],"./fa/ramadan-activities":[72898,72898],"./fa/ramadan-activities.json":[72898,72898],"./fa/reading-goal":[16524,16524],"./fa/reading-goal.json":[16524,16524],"./fa/reading-progress":[11139,11139],"./fa/reading-progress.json":[11139,11139],"./fa/reciter":[77097,77097],"./fa/reciter.json":[77097,77097],"./fa/search":[20074,20074],"./fa/search.json":[20074,20074],"./fa/support":[86540,86540],"./fa/support.json":[86540,86540],"./fa/surah-info":[81131,81131],"./fa/surah-info.json":[81131,81131],"./fa/tajweed":[85510,85510],"./fa/tajweed.json":[85510,85510],"./fr/about":[85754,85754],"./fr/about-quran":[36836,36836],"./fr/about-quran.json":[36836,36836],"./fr/about.json":[85754,85754],"./fr/apps":[15582,15582],"./fr/apps.json":[15582,15582],"./fr/chapter":[98010,98010],"./fr/chapter.json":[98010,98010],"./fr/collection":[15926,15926],"./fr/collection.json":[15926,15926],"./fr/common":[45167,45167],"./fr/common.json":[45167,45167],"./fr/developers":[36538,36538],"./fr/developers.json":[36538,36538],"./fr/error":[82716,82716],"./fr/error.json":[82716,82716],"./fr/home":[31660,31660],"./fr/home.json":[31660,31660],"./fr/learn":[56415,56415],"./fr/learn.json":[56415,56415],"./fr/login":[76626,76626],"./fr/login.json":[76626,76626],"./fr/notes":[37650,37650],"./fr/notes.json":[37650,37650],"./fr/notification-settings":[15528,15528],"./fr/notification-settings.json":[15528,15528],"./fr/onboarding":[92408,92408],"./fr/onboarding.json":[92408,92408],"./fr/privacy":[26906,26906],"./fr/privacy.json":[26906,26906],"./fr/product-updates":[98750,98750],"./fr/product-updates.json":[98750,98750],"./fr/profile":[51763,51763],"./fr/profile.json":[51763,51763],"./fr/quick-links":[54833,54833],"./fr/quick-links.json":[54833,54833],"./fr/quran-reader":[55274,55274],"./fr/quran-reader.json":[55274,55274],"./fr/quranic-calendar":[99416,99416],"./fr/quranic-calendar.json":[99416,99416],"./fr/radio":[17325,17325],"./fr/radio.json":[17325,17325],"./fr/ramadan-activities":[36247,36247],"./fr/ramadan-activities.json":[36247,36247],"./fr/reading-goal":[95581,95581],"./fr/reading-goal.json":[95581,95581],"./fr/reading-progress":[58464,58464],"./fr/reading-progress.json":[58464,58464],"./fr/reciter":[24777,24777],"./fr/reciter.json":[24777,24777],"./fr/search":[77194,77194],"./fr/search.json":[77194,77194],"./fr/support":[51517,51517],"./fr/support.json":[51517,51517],"./fr/surah-info":[70203,70203],"./fr/surah-info.json":[70203,70203],"./fr/tajweed":[39419,39419],"./fr/tajweed.json":[39419,39419],"./id/about":[49146,49146],"./id/about-quran":[58554,58554],"./id/about-quran.json":[58554,58554],"./id/about.json":[49146,49146],"./id/apps":[88816,88816],"./id/apps.json":[88816,88816],"./id/chapter":[11888,11888],"./id/chapter.json":[11888,11888],"./id/collection":[49451,49451],"./id/collection.json":[49451,49451],"./id/common":[81610,81610],"./id/common.json":[81610,81610],"./id/developers":[61597,61597],"./id/developers.json":[61597,61597],"./id/error":[72819,72819],"./id/error.json":[72819,72819],"./id/home":[96903,96903],"./id/home.json":[96903,96903],"./id/learn":[76593,76593],"./id/learn.json":[76593,76593],"./id/login":[74675,74675],"./id/login.json":[74675,74675],"./id/notes":[66176,66176],"./id/notes.json":[66176,66176],"./id/notification-settings":[43707,43707],"./id/notification-settings.json":[43707,43707],"./id/onboarding":[61471,61471],"./id/onboarding.json":[61471,61471],"./id/privacy":[10399,10399],"./id/privacy.json":[10399,10399],"./id/product-updates":[71573,71573],"./id/product-updates.json":[71573,71573],"./id/profile":[51702,51702],"./id/profile.json":[51702,51702],"./id/quick-links":[23168,23168],"./id/quick-links.json":[23168,23168],"./id/quran-reader":[93981,93981],"./id/quran-reader.json":[93981,93981],"./id/quranic-calendar":[33814,33814],"./id/quranic-calendar.json":[33814,33814],"./id/radio":[86174,86174],"./id/radio.json":[86174,86174],"./id/ramadan-activities":[65927,65927],"./id/ramadan-activities.json":[65927,65927],"./id/reading-goal":[16448,16448],"./id/reading-goal.json":[16448,16448],"./id/reading-progress":[81892,81892],"./id/reading-progress.json":[81892,81892],"./id/reciter":[56576,56576],"./id/reciter.json":[56576,56576],"./id/search":[20794,20794],"./id/search.json":[20794,20794],"./id/support":[18974,18974],"./id/support.json":[18974,18974],"./id/surah-info":[77717,77717],"./id/surah-info.json":[77717,77717],"./id/tajweed":[46233,46233],"./id/tajweed.json":[46233,46233],"./it/about":[216,216],"./it/about-quran":[63782,63782],"./it/about-quran.json":[63782,63782],"./it/about.json":[216,216],"./it/apps":[65396,65396],"./it/apps.json":[65396,65396],"./it/chapter":[47097,47097],"./it/chapter.json":[47097,47097],"./it/collection":[95656,95656],"./it/collection.json":[95656,95656],"./it/common":[9486,9486],"./it/common.json":[9486,9486],"./it/developers":[10626,10626],"./it/developers.json":[10626,10626],"./it/error":[91259,91259],"./it/error.json":[91259,91259],"./it/home":[53765,53765],"./it/home.json":[53765,53765],"./it/learn":[36629,36629],"./it/learn.json":[36629,36629],"./it/login":[91153,91153],"./it/login.json":[91153,91153],"./it/notes":[25457,25457],"./it/notes.json":[25457,25457],"./it/notification-settings":[93529,93529],"./it/notification-settings.json":[93529,93529],"./it/onboarding":[83818,83818],"./it/onboarding.json":[83818,83818],"./it/privacy":[94987,94987],"./it/privacy.json":[94987,94987],"./it/product-updates":[53558,53558],"./it/product-updates.json":[53558,53558],"./it/profile":[21618,21618],"./it/profile.json":[21618,21618],"./it/quick-links":[86406,86406],"./it/quick-links.json":[86406,86406],"./it/quran-reader":[95016,95016],"./it/quran-reader.json":[95016,95016],"./it/quranic-calendar":[98849,98849],"./it/quranic-calendar.json":[98849,98849],"./it/radio":[55570,55570],"./it/radio.json":[55570,55570],"./it/ramadan-activities":[38796,38796],"./it/ramadan-activities.json":[38796,38796],"./it/reading-goal":[98503,98503],"./it/reading-goal.json":[98503,98503],"./it/reading-progress":[90188,90188],"./it/reading-progress.json":[90188,90188],"./it/reciter":[39905,39905],"./it/reciter.json":[39905,39905],"./it/search":[5175,5175],"./it/search.json":[5175,5175],"./it/support":[88600,88600],"./it/support.json":[88600,88600],"./it/surah-info":[93771,90940],"./it/surah-info.json":[93771,90940],"./it/tajweed":[23442,23442],"./it/tajweed.json":[23442,23442],"./ms/about":[50029,50029],"./ms/about-quran":[30999,30999],"./ms/about-quran.json":[30999,30999],"./ms/about.json":[50029,50029],"./ms/apps":[96282,96282],"./ms/apps.json":[96282,96282],"./ms/chapter":[41641,41641],"./ms/chapter.json":[41641,41641],"./ms/collection":[73218,73218],"./ms/collection.json":[73218,73218],"./ms/common":[85223,85223],"./ms/common.json":[85223,85223],"./ms/developers":[6259,6259],"./ms/developers.json":[6259,6259],"./ms/error":[29620,29620],"./ms/error.json":[29620,29620],"./ms/home":[98950,98950],"./ms/home.json":[98950,98950],"./ms/learn":[10132,10132],"./ms/learn.json":[10132,10132],"./ms/login":[128,128],"./ms/login.json":[128,128],"./ms/notes":[5008,5008],"./ms/notes.json":[5008,5008],"./ms/notification-settings":[77016,77016],"./ms/notification-settings.json":[77016,77016],"./ms/onboarding":[63085,63085],"./ms/onboarding.json":[63085,63085],"./ms/privacy":[39746,39746],"./ms/privacy.json":[39746,39746],"./ms/product-updates":[56495,56495],"./ms/product-updates.json":[56495,56495],"./ms/profile":[83461,83461],"./ms/profile.json":[83461,83461],"./ms/quick-links":[1017,1017],"./ms/quick-links.json":[1017,1017],"./ms/quran-reader":[11242,11242],"./ms/quran-reader.json":[11242,11242],"./ms/quranic-calendar":[46584,46584],"./ms/quranic-calendar.json":[46584,46584],"./ms/radio":[3787,3787],"./ms/radio.json":[3787,3787],"./ms/ramadan-activities":[9590,9590],"./ms/ramadan-activities.json":[9590,9590],"./ms/reading-goal":[85582,85582],"./ms/reading-goal.json":[85582,85582],"./ms/reading-progress":[61484,61484],"./ms/reading-progress.json":[61484,61484],"./ms/reciter":[83546,83546],"./ms/reciter.json":[83546,83546],"./ms/search":[80561,80561],"./ms/search.json":[80561,80561],"./ms/support":[91036,91036],"./ms/support.json":[91036,91036],"./ms/surah-info":[89413,89413],"./ms/surah-info.json":[89413,89413],"./ms/tajweed":[71501,71501],"./ms/tajweed.json":[71501,71501],"./nl/about":[63113,63113],"./nl/about-quran":[29687,29687],"./nl/about-quran.json":[29687,29687],"./nl/about.json":[63113,63113],"./nl/apps":[30496,30496],"./nl/apps.json":[30496,30496],"./nl/chapter":[7451,7451],"./nl/chapter.json":[7451,7451],"./nl/collection":[75147,49409],"./nl/collection.json":[75147,49409],"./nl/common":[1211,1211],"./nl/common.json":[1211,1211],"./nl/developers":[96780,96780],"./nl/developers.json":[96780,96780],"./nl/error":[57744,57744],"./nl/error.json":[57744,57744],"./nl/home":[86385,86385],"./nl/home.json":[86385,86385],"./nl/learn":[15632,15632],"./nl/learn.json":[15632,15632],"./nl/login":[75083,75083],"./nl/login.json":[75083,75083],"./nl/notes":[83002,83002],"./nl/notes.json":[83002,83002],"./nl/notification-settings":[4939,4939],"./nl/notification-settings.json":[4939,4939],"./nl/onboarding":[67565,67565],"./nl/onboarding.json":[67565,67565],"./nl/privacy":[80100,80100],"./nl/privacy.json":[80100,80100],"./nl/product-updates":[29175,29175],"./nl/product-updates.json":[29175,29175],"./nl/profile":[86583,86583],"./nl/profile.json":[86583,86583],"./nl/quick-links":[45960,45960],"./nl/quick-links.json":[45960,45960],"./nl/quran-reader":[8322,8322],"./nl/quran-reader.json":[8322,8322],"./nl/quranic-calendar":[50642,50642],"./nl/quranic-calendar.json":[50642,50642],"./nl/radio":[13878,13878],"./nl/radio.json":[13878,13878],"./nl/ramadan-activities":[46633,46633],"./nl/ramadan-activities.json":[46633,46633],"./nl/reading-goal":[80279,80279],"./nl/reading-goal.json":[80279,80279],"./nl/reading-progress":[43990,43990],"./nl/reading-progress.json":[43990,43990],"./nl/reciter":[95073,95073],"./nl/reciter.json":[95073,95073],"./nl/search":[10308,10308],"./nl/search.json":[10308,10308],"./nl/support":[76263,76263],"./nl/support.json":[76263,76263],"./nl/surah-info":[48168,48168],"./nl/surah-info.json":[48168,48168],"./nl/tajweed":[7999,7999],"./nl/tajweed.json":[7999,7999],"./pt/about":[5891,5891],"./pt/about-quran":[50657,50657],"./pt/about-quran.json":[50657,50657],"./pt/about.json":[5891,5891],"./pt/apps":[1787,1787],"./pt/apps.json":[1787,1787],"./pt/chapter":[20833,20833],"./pt/chapter.json":[20833,20833],"./pt/collection":[99625,99625],"./pt/collection.json":[99625,99625],"./pt/common":[41400,41400],"./pt/common.json":[41400,41400],"./pt/developers":[21378,21378],"./pt/developers.json":[21378,21378],"./pt/error":[31374,31374],"./pt/error.json":[31374,31374],"./pt/home":[44766,44766],"./pt/home.json":[44766,44766],"./pt/learn":[86561,86561],"./pt/learn.json":[86561,86561],"./pt/login":[13192,13192],"./pt/login.json":[13192,13192],"./pt/notes":[92342,92342],"./pt/notes.json":[92342,92342],"./pt/notification-settings":[28007,28007],"./pt/notification-settings.json":[28007,28007],"./pt/onboarding":[25232,25232],"./pt/onboarding.json":[25232,25232],"./pt/privacy":[25283,25283],"./pt/privacy.json":[25283,25283],"./pt/product-updates":[13850,13850],"./pt/product-updates.json":[13850,13850],"./pt/profile":[22854,22854],"./pt/profile.json":[22854,22854],"./pt/quick-links":[64394,64394],"./pt/quick-links.json":[64394,64394],"./pt/quran-reader":[22527,22527],"./pt/quran-reader.json":[22527,22527],"./pt/quranic-calendar":[79732,79732],"./pt/quranic-calendar.json":[79732,79732],"./pt/radio":[72575,72575],"./pt/radio.json":[72575,72575],"./pt/ramadan-activities":[10477,10477],"./pt/ramadan-activities.json":[10477,10477],"./pt/reading-goal":[12171,12171],"./pt/reading-goal.json":[12171,12171],"./pt/reading-progress":[22360,22360],"./pt/reading-progress.json":[22360,22360],"./pt/reciter":[76804,76804],"./pt/reciter.json":[76804,76804],"./pt/search":[8302,8302],"./pt/search.json":[8302,8302],"./pt/support":[94109,94109],"./pt/support.json":[94109,94109],"./pt/surah-info":[48580,48580],"./pt/surah-info.json":[48580,48580],"./pt/tajweed":[89925,89925],"./pt/tajweed.json":[89925,89925],"./ru/about":[6217,6217],"./ru/about-quran":[68779,68779],"./ru/about-quran.json":[68779,68779],"./ru/about.json":[6217,6217],"./ru/apps":[95147,95147],"./ru/apps.json":[95147,95147],"./ru/chapter":[25758,25758],"./ru/chapter.json":[25758,25758],"./ru/collection":[2735,2735],"./ru/collection.json":[2735,2735],"./ru/common":[77247,77247],"./ru/common.json":[77247,77247],"./ru/developers":[57132,57132],"./ru/developers.json":[57132,57132],"./ru/error":[8104,8104],"./ru/error.json":[8104,8104],"./ru/home":[32503,32503],"./ru/home.json":[32503,32503],"./ru/learn":[86058,86058],"./ru/learn.json":[86058,86058],"./ru/login":[87653,87653],"./ru/login.json":[87653,87653],"./ru/notes":[15965,15965],"./ru/notes.json":[15965,15965],"./ru/notification-settings":[67975,67975],"./ru/notification-settings.json":[67975,67975],"./ru/onboarding":[25024,25024],"./ru/onboarding.json":[25024,25024],"./ru/privacy":[28771,28771],"./ru/privacy.json":[28771,28771],"./ru/product-updates":[45111,45111],"./ru/product-updates.json":[45111,45111],"./ru/profile":[87157,87157],"./ru/profile.json":[87157,87157],"./ru/quick-links":[69373,69373],"./ru/quick-links.json":[69373,69373],"./ru/quran-reader":[88041,88041],"./ru/quran-reader.json":[88041,88041],"./ru/quranic-calendar":[67606,67606],"./ru/quranic-calendar.json":[67606,67606],"./ru/radio":[69511,69511],"./ru/radio.json":[69511,69511],"./ru/ramadan-activities":[59974,59974],"./ru/ramadan-activities.json":[59974,59974],"./ru/reading-goal":[57535,43156],"./ru/reading-goal.json":[57535,43156],"./ru/reading-progress":[87089,87089],"./ru/reading-progress.json":[87089,87089],"./ru/reciter":[82554,82554],"./ru/reciter.json":[82554,82554],"./ru/search":[77193,77193],"./ru/search.json":[77193,77193],"./ru/support":[52074,52074],"./ru/support.json":[52074,52074],"./ru/surah-info":[84967,84967],"./ru/surah-info.json":[84967,84967],"./ru/tajweed":[42932,42932],"./ru/tajweed.json":[42932,42932],"./sq/about":[1471,1471],"./sq/about-quran":[49361,49361],"./sq/about-quran.json":[49361,49361],"./sq/about.json":[1471,1471],"./sq/apps":[75248,75248],"./sq/apps.json":[75248,75248],"./sq/chapter":[9636,9636],"./sq/chapter.json":[9636,9636],"./sq/collection":[38326,38326],"./sq/collection.json":[38326,38326],"./sq/common":[22937,22937],"./sq/common.json":[22937,22937],"./sq/developers":[86418,86418],"./sq/developers.json":[86418,86418],"./sq/error":[62322,62322],"./sq/error.json":[62322,62322],"./sq/home":[8951,8951],"./sq/home.json":[8951,8951],"./sq/learn":[96543,96543],"./sq/learn.json":[96543,96543],"./sq/login":[39725,39725],"./sq/login.json":[39725,39725],"./sq/notes":[36464,36464],"./sq/notes.json":[36464,36464],"./sq/notification-settings":[5781,5781],"./sq/notification-settings.json":[5781,5781],"./sq/onboarding":[72873,72873],"./sq/onboarding.json":[72873,72873],"./sq/privacy":[46448,46448],"./sq/privacy.json":[46448,46448],"./sq/product-updates":[90650,90650],"./sq/product-updates.json":[90650,90650],"./sq/profile":[96682,96682],"./sq/profile.json":[96682,96682],"./sq/quick-links":[36048,36048],"./sq/quick-links.json":[36048,36048],"./sq/quran-reader":[10476,10476],"./sq/quran-reader.json":[10476,10476],"./sq/quranic-calendar":[89274,89274],"./sq/quranic-calendar.json":[89274,89274],"./sq/radio":[705,705],"./sq/radio.json":[705,705],"./sq/ramadan-activities":[70957,70957],"./sq/ramadan-activities.json":[70957,70957],"./sq/reading-goal":[67332,67332],"./sq/reading-goal.json":[67332,67332],"./sq/reading-progress":[8288,8288],"./sq/reading-progress.json":[8288,8288],"./sq/reciter":[37257,37257],"./sq/reciter.json":[37257,37257],"./sq/search":[86609,86609],"./sq/search.json":[86609,86609],"./sq/support":[20801,20801],"./sq/support.json":[20801,20801],"./sq/surah-info":[16726,16726],"./sq/surah-info.json":[16726,16726],"./sq/tajweed":[24733,24733],"./sq/tajweed.json":[24733,24733],"./th/about":[47030,47030],"./th/about-quran":[59288,59288],"./th/about-quran.json":[59288,59288],"./th/about.json":[47030,47030],"./th/apps":[50249,50249],"./th/apps.json":[50249,50249],"./th/chapter":[6735,6735],"./th/chapter.json":[6735,6735],"./th/collection":[78294,78294],"./th/collection.json":[78294,78294],"./th/common":[63303,63303],"./th/common.json":[63303,63303],"./th/developers":[42529,42529],"./th/developers.json":[42529,42529],"./th/error":[75496,75496],"./th/error.json":[75496,75496],"./th/home":[61686,61686],"./th/home.json":[61686,61686],"./th/learn":[38984,38984],"./th/learn.json":[38984,38984],"./th/login":[98915,98915],"./th/login.json":[98915,98915],"./th/notes":[30741,30741],"./th/notes.json":[30741,30741],"./th/notification-settings":[29802,29802],"./th/notification-settings.json":[29802,29802],"./th/onboarding":[99442,99442],"./th/onboarding.json":[99442,99442],"./th/privacy":[51890,51890],"./th/privacy.json":[51890,51890],"./th/product-updates":[11329,11329],"./th/product-updates.json":[11329,11329],"./th/profile":[43671,43671],"./th/profile.json":[43671,43671],"./th/quick-links":[82010,82010],"./th/quick-links.json":[82010,82010],"./th/quran-reader":[31301,31301],"./th/quran-reader.json":[31301,31301],"./th/quranic-calendar":[76792,76792],"./th/quranic-calendar.json":[76792,76792],"./th/radio":[20364,20364],"./th/radio.json":[20364,20364],"./th/ramadan-activities":[37595,37595],"./th/ramadan-activities.json":[37595,37595],"./th/reading-goal":[56927,56927],"./th/reading-goal.json":[56927,56927],"./th/reading-progress":[44444,44444],"./th/reading-progress.json":[44444,44444],"./th/reciter":[95142,95142],"./th/reciter.json":[95142,95142],"./th/search":[15178,15178],"./th/search.json":[15178,15178],"./th/support":[90933,90933],"./th/support.json":[90933,90933],"./th/surah-info":[57855,57855],"./th/surah-info.json":[57855,57855],"./th/tajweed":[87880,87880],"./th/tajweed.json":[87880,87880],"./tr/about":[84602,84602],"./tr/about-quran":[98213,98213],"./tr/about-quran.json":[98213,98213],"./tr/about.json":[84602,84602],"./tr/apps":[12445,12445],"./tr/apps.json":[12445,12445],"./tr/chapter":[51528,51528],"./tr/chapter.json":[51528,51528],"./tr/collection":[38104,38104],"./tr/collection.json":[38104,38104],"./tr/common":[72973,72973],"./tr/common.json":[72973,72973],"./tr/developers":[60417,60417],"./tr/developers.json":[60417,60417],"./tr/error":[47328,47328],"./tr/error.json":[47328,47328],"./tr/home":[27646,27646],"./tr/home.json":[27646,27646],"./tr/learn":[29940,29940],"./tr/learn.json":[29940,29940],"./tr/login":[99237,99237],"./tr/login.json":[99237,99237],"./tr/notes":[1639,1639],"./tr/notes.json":[1639,1639],"./tr/notification-settings":[65673,65673],"./tr/notification-settings.json":[65673,65673],"./tr/onboarding":[126,126],"./tr/onboarding.json":[126,126],"./tr/privacy":[25937,25937],"./tr/privacy.json":[25937,25937],"./tr/product-updates":[22771,22771],"./tr/product-updates.json":[22771,22771],"./tr/profile":[74440,52140],"./tr/profile.json":[74440,52140],"./tr/quick-links":[44202,44202],"./tr/quick-links.json":[44202,44202],"./tr/quran-reader":[21552,21552],"./tr/quran-reader.json":[21552,21552],"./tr/quranic-calendar":[49934,49934],"./tr/quranic-calendar.json":[49934,49934],"./tr/radio":[64431,64431],"./tr/radio.json":[64431,64431],"./tr/ramadan-activities":[35058,35058],"./tr/ramadan-activities.json":[35058,35058],"./tr/reading-goal":[71990,71990],"./tr/reading-goal.json":[71990,71990],"./tr/reading-progress":[22768,22768],"./tr/reading-progress.json":[22768,22768],"./tr/reciter":[59535,59535],"./tr/reciter.json":[59535,59535],"./tr/search":[64171,64171],"./tr/search.json":[64171,64171],"./tr/support":[86015,86015],"./tr/support.json":[86015,86015],"./tr/surah-info":[55983,55983],"./tr/surah-info.json":[55983,55983],"./tr/tajweed":[40754,40754],"./tr/tajweed.json":[40754,40754],"./ur/about":[92239,92239],"./ur/about-quran":[14729,14729],"./ur/about-quran.json":[14729,14729],"./ur/about.json":[92239,92239],"./ur/apps":[54847,54847],"./ur/apps.json":[54847,54847],"./ur/chapter":[98510,98510],"./ur/chapter.json":[98510,98510],"./ur/collection":[22084,22084],"./ur/collection.json":[22084,22084],"./ur/common":[45597,45597],"./ur/common.json":[45597,45597],"./ur/developers":[57171,57171],"./ur/developers.json":[57171,57171],"./ur/error":[77140,77140],"./ur/error.json":[77140,77140],"./ur/home":[5321,5321],"./ur/home.json":[5321,5321],"./ur/learn":[44856,44856],"./ur/learn.json":[44856,44856],"./ur/login":[36602,36602],"./ur/login.json":[36602,36602],"./ur/notes":[92339,92339],"./ur/notes.json":[92339,92339],"./ur/notification-settings":[45877,45877],"./ur/notification-settings.json":[45877,45877],"./ur/onboarding":[89069,89069],"./ur/onboarding.json":[89069,89069],"./ur/privacy":[21419,21419],"./ur/privacy.json":[21419,21419],"./ur/product-updates":[83821,83821],"./ur/product-updates.json":[83821,83821],"./ur/profile":[58438,58438],"./ur/profile.json":[58438,58438],"./ur/quick-links":[73201,73201],"./ur/quick-links.json":[73201,73201],"./ur/quran-reader":[49639,49639],"./ur/quran-reader.json":[49639,49639],"./ur/quranic-calendar":[14523,14523],"./ur/quranic-calendar.json":[14523,14523],"./ur/radio":[10621,10621],"./ur/radio.json":[10621,10621],"./ur/ramadan-activities":[54338,54338],"./ur/ramadan-activities.json":[54338,54338],"./ur/reading-goal":[45023,45023],"./ur/reading-goal.json":[45023,45023],"./ur/reading-progress":[34987,34987],"./ur/reading-progress.json":[34987,34987],"./ur/reciter":[75279,75279],"./ur/reciter.json":[75279,75279],"./ur/search":[16037,16037],"./ur/search.json":[16037,16037],"./ur/support":[84183,84183],"./ur/support.json":[84183,84183],"./ur/surah-info":[506,506],"./ur/surah-info.json":[506,506],"./ur/tajweed":[44526,44526],"./ur/tajweed.json":[44526,44526],"./zh/about":[23318,23318],"./zh/about-quran":[65627,65627],"./zh/about-quran.json":[65627,65627],"./zh/about.json":[23318,23318],"./zh/apps":[33007,33007],"./zh/apps.json":[33007,33007],"./zh/chapter":[7503,7503],"./zh/chapter.json":[7503,7503],"./zh/collection":[11602,11602],"./zh/collection.json":[11602,11602],"./zh/common":[66671,66671],"./zh/common.json":[66671,66671],"./zh/developers":[53328,53328],"./zh/developers.json":[53328,53328],"./zh/error":[19846,19846],"./zh/error.json":[19846,19846],"./zh/home":[93056,93056],"./zh/home.json":[93056,93056],"./zh/learn":[6842,6842],"./zh/learn.json":[6842,6842],"./zh/login":[20292,20292],"./zh/login.json":[20292,20292],"./zh/notes":[13421,13421],"./zh/notes.json":[13421,13421],"./zh/notification-settings":[59604,59604],"./zh/notification-settings.json":[59604,59604],"./zh/onboarding":[46079,46079],"./zh/onboarding.json":[46079,46079],"./zh/privacy":[94699,94699],"./zh/privacy.json":[94699,94699],"./zh/product-updates":[65869,65869],"./zh/product-updates.json":[65869,65869],"./zh/profile":[98382,98382],"./zh/profile.json":[98382,98382],"./zh/quick-links":[85571,85571],"./zh/quick-links.json":[85571,85571],"./zh/quran-reader":[72056,72056],"./zh/quran-reader.json":[72056,72056],"./zh/quranic-calendar":[91418,91418],"./zh/quranic-calendar.json":[91418,91418],"./zh/radio":[21103,21103],"./zh/radio.json":[21103,21103],"./zh/ramadan-activities":[27986,27986],"./zh/ramadan-activities.json":[27986,27986],"./zh/reading-goal":[65474,65474],"./zh/reading-goal.json":[65474,65474],"./zh/reading-progress":[9315,9315],"./zh/reading-progress.json":[9315,9315],"./zh/reciter":[1454,1454],"./zh/reciter.json":[1454,1454],"./zh/search":[58020,58020],"./zh/search.json":[58020,58020],"./zh/support":[79306,79306],"./zh/support.json":[79306,79306],"./zh/surah-info":[62199,62199],"./zh/surah-info.json":[62199,62199],"./zh/tajweed":[40651,40651],"./zh/tajweed.json":[40651,40651]};function o(e){if(!n.o(r,e))return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return n.e(t[1]).then((function(){return n.t(o,19)}))}o.keys=function(){return Object.keys(r)},o.id=30242,e.exports=o},89932:function(e,t,n){"use strict";var r,o=n(67597);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t1?t-1:0),r=1;r3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:p(e)?3:0}function c(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function u(e,t){return 2===s(e)?e.get(t):e[t]}function l(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function f(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return V&&e instanceof Map}function p(e){return H&&e instanceof Set}function h(e){return e.o||e.t}function m(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=K(e);delete t[z];for(var n=Y(t),r=0;r1&&(e.set=e.add=e.clear=e.delete=v),Object.freeze(e),t&&a(e,(function(e,t){return g(t,!0)}),!0)),e}function v(){r(2)}function y(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function b(e){var t=X[e];return t||r(18,e),t}function _(e,t){X[e]||(X[e]=t)}function E(){return B}function w(e,t){t&&(b("Patches"),e.u=[],e.s=[],e.v=t)}function S(e){T(e),e.p.forEach(A),e.p=null}function T(e){e===B&&(B=e.l)}function x(e){return B={p:[],l:B,h:e,m:!0,_:0}}function A(e){var t=e[z];0===t.i||1===t.i?t.j():t.g=!0}function O(e,t){t._=t.p.length;var n=t.p[0],o=void 0!==e&&e!==n;return t.h.O||b("ES5").S(t,e,o),o?(n[z].P&&(S(t),r(4)),i(e)&&(e=C(t,e),t.l||P(t,e)),t.u&&b("Patches").M(n[z].t,e,t.u,t.s)):e=C(t,n,[]),S(t),t.u&&t.v(t.u,t.s),e!==G?e:void 0}function C(e,t,n){if(y(t))return t;var r=t[z];if(!r)return a(t,(function(o,i){return I(e,r,t,o,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return P(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=4===r.i||5===r.i?r.o=m(r.k):r.o,i=o,s=!1;3===r.i&&(i=new Set(o),o.clear(),s=!0),a(i,(function(t,i){return I(e,r,o,t,i,n,s)})),P(e,o,!1),n&&e.u&&b("Patches").N(r,n,e.u,e.s)}return r.o}function I(e,t,n,r,a,s,u){if(o(a)){var f=C(e,a,s&&t&&3!==t.i&&!c(t.R,r)?s.concat(r):void 0);if(l(n,r,f),!o(f))return;e.m=!1}else u&&n.add(a);if(i(a)&&!y(a)){if(!e.h.D&&e._<1)return;C(e,a),t&&t.A.l||P(e,a)}}function P(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&g(t,n)}function k(e,t){var n=e[z];return(n?h(n):e)[t]}function j(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function R(e){e.P||(e.P=!0,e.l&&R(e.l))}function N(e){e.o||(e.o=m(e.t))}function D(e,t,n){var r=d(t)?b("MapSet").F(t,n):p(t)?b("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:E(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},o=r,i=J;n&&(o=[r],i=Q);var a=Proxy.revocable(o,i),s=a.revoke,c=a.proxy;return r.k=c,r.j=s,c}(t,n):b("ES5").J(t,n);return(n?n.A:E()).p.push(r),r}function Z(e){return o(e)||r(22,e),function e(t){if(!i(t))return t;var n,r=t[z],o=s(t);if(r){if(!r.P&&(r.i<4||!b("ES5").K(r)))return r.t;r.I=!0,n=L(t,o),r.I=!1}else n=L(t,o);return a(n,(function(t,o){r&&u(r.t,t)===o||l(n,t,e(o))})),3===o?new Set(n):n}(e)}function L(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return m(e)}function M(){function e(e,t){var n=i[e];return n?n.enumerable=t:i[e]=n={configurable:!0,enumerable:t,get:function(){var t=this[z];return J.get(t,e)},set:function(t){var n=this[z];J.set(n,e,t)}},n}function t(e){for(var t=e.length-1;t>=0;t--){var o=e[t][z];if(!o.P)switch(o.i){case 5:r(o)&&R(o);break;case 4:n(o)&&R(o)}}}function n(e){for(var t=e.t,n=e.k,r=Y(n),o=r.length-1;o>=0;o--){var i=r[o];if(i!==z){var a=t[i];if(void 0===a&&!c(t,i))return!0;var s=n[i],u=s&&s[z];if(u?u.t!==a:!f(s,a))return!0}}var l=!!t[z];return r.length!==Y(t).length+(l?0:1)}function r(e){var t=e.k;if(t.length!==e.t.length)return!0;var n=Object.getOwnPropertyDescriptor(t,t.length-1);if(n&&!n.get)return!0;for(var r=0;r1?r-1:0),i=1;i1?r-1:0),i=1;i=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=b("Patches").$;return o(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),te=new ee,ne=te.produce,re=(te.produceWithPatches.bind(te),te.setAutoFreeze.bind(te),te.setUseProxies.bind(te),te.applyPatches.bind(te),te.createDraft.bind(te),te.finishDraft.bind(te),ne),oe=n(94990);function ie(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"===typeof o?o(n,r,e):t(o)}}}}var ae=ie();ae.withExtraArgument=ie;var se=ae,ce=(n(25620),function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}()),ue=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1][]))}function u(e){c().push(e)}function l(e,t,n,r=0){return new o.cW(((o,c)=>{const u=e[r];if(null===t||"function"!==typeof u)o(t);else{const f=u({...t},n);s.X&&u.id&&null===f&&i.kg.log(`Event processor "${u.id}" dropped event`),(0,a.J8)(f)?f.then((t=>l(e,t,n,r+1).then(o))).then(null,c):l(e,f,n,r+1).then(o).then(null,c)}}))}},74961:function(e,t,n){"use strict";n.d(t,{$e:function(){return f},Tb:function(){return c},cg:function(){return v},eN:function(){return u},nZ:function(){return p},n_:function(){return l},s3:function(){return d},yj:function(){return h}});var r=n(71950),o=n(52940),i=n(10164),a=n(64903),s=n(61173);function c(e,t){return(0,i.Gd)().captureException(e,(0,s.U0)(t))}function u(e,t){return(0,i.Gd)().captureEvent(e,t)}function l(e,t){(0,i.Gd)().addBreadcrumb(e,t)}function f(...e){const t=(0,i.Gd)();if(2===e.length){const[n,r]=e;return n?t.withScope((()=>(t.getStackTop().scope=n,r(n)))):t.withScope(r)}return t.withScope(e[0])}function d(){return(0,i.Gd)().getClient()}function p(){return(0,i.Gd)().getScope()}function h(e){const t=d(),n=(0,i.aF)(),s=p(),{release:c,environment:u=o.J}=t&&t.getOptions()||{},{userAgent:l}=r.n2.navigator||{},f=(0,a.Hv)({release:c,environment:u,user:s.getUser()||n.getUser(),...l&&{userAgent:l},...e}),h=n.getSession();return h&&"ok"===h.status&&(0,a.CT)(h,{status:"exited"}),m(),n.setSession(f),s.setSession(f),f}function m(){const e=(0,i.aF)(),t=p(),n=t.getSession()||e.getSession();n&&(0,a.RJ)(n),g(),e.setSession(),t.setSession()}function g(){const e=(0,i.aF)(),t=p(),n=d(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function v(e=!1){e?m():g()}},10164:function(e,t,n){"use strict";n.d(t,{Gd:function(){return y},aF:function(){return b},cu:function(){return g}});var r=n(61943),o=n(41610),i=n(94370),a=n(65527),s=n(71950),c=n(52940),u=n(77932),l=n(30729),f=n(64903),d=n(5077);const p=parseFloat(d.J),h=100;class m{constructor(e,t,n,r=p){let o,i;this._version=r,t?o=t:(o=new l.sX,o.setClient(e)),n?i=n:(i=new l.sX,i.setClient(e)),this._stack=[{scope:o}],e&&this.bindClient(e),this._isolationScope=i}isOlderThan(e){return this._version(this.popScope(),e)),(e=>{throw this.popScope(),e})):(this.popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:(0,o.DM)(),r=new Error("Sentry syntheticException");return this.getScope().captureException(e,{originalException:e,syntheticException:r,...t,event_id:n}),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:(0,o.DM)(),i=new Error(e);return this.getScope().captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r}),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:(0,o.DM)();return e.type||(this._lastEventId=n),this.getScope().captureEvent(e,{...t,event_id:n}),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:o=null,maxBreadcrumbs:s=h}=r.getOptions&&r.getOptions()||{};if(s<=0)return;const c={timestamp:(0,i.yW)(),...e},u=o?(0,a.Cf)((()=>o(c,t))):c;null!==u&&(r.emit&&r.emit("beforeAddBreadcrumb",u,t),n.addBreadcrumb(u,s))}setUser(e){this.getScope().setUser(e),this.getIsolationScope().setUser(e)}setTags(e){this.getScope().setTags(e),this.getIsolationScope().setTags(e)}setExtras(e){this.getScope().setExtras(e),this.getIsolationScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t),this.getIsolationScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t),this.getIsolationScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t),this.getIsolationScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=v(this);try{e(this)}finally{v(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return u.X&&a.kg.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);if(u.X&&!n){this.getClient()?a.kg.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):a.kg.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")}return n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(e=!1){if(e)return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&(0,f.RJ)(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:r,environment:o=c.J}=n&&n.getOptions()||{},{userAgent:i}=s.n2.navigator||{},a=(0,f.Hv)({release:r,environment:o,user:t.getUser(),...i&&{userAgent:i},...e}),u=t.getSession&&t.getSession();return u&&"ok"===u.status&&(0,f.CT)(u,{status:"exited"}),this.endSession(),t.setSession(a),a}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_callExtensionMethod(e,...t){const n=g().__SENTRY__;if(n&&n.extensions&&"function"===typeof n.extensions[e])return n.extensions[e].apply(this,t);u.X&&a.kg.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function g(){return s.n2.__SENTRY__=s.n2.__SENTRY__||{extensions:{},hub:void 0},s.n2}function v(e){const t=g(),n=w(t);return S(t,e),n}function y(){const e=g();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return _(e)}function b(){return y().getIsolationScope()}function _(e=g()){return E(e)&&!w(e).isOlderThan(p)||S(e,new m),w(e)}function E(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function w(e){return(0,s.YO)("hub",(()=>new m),e)}function S(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}},30729:function(e,t,n){"use strict";n.d(t,{lW:function(){return d},sX:function(){return f}});var r=n(61943),o=n(94370),i=n(41610),a=n(65527),s=n(18576),c=n(64903),u=n(99784);let l;class f{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=p()}static clone(e){return e?e.clone():new f}clone(){const e=new f;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._extra={...this._extra},e._contexts={...this._contexts},e._user=this._user,e._level=this._level,e._span=this._span,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._requestSession=this._requestSession,e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e}setClient(e){this._client=e}getClient(){return this._client}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&(0,c.CT)(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this._span;return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;const t="function"===typeof e?e(this):e;if(t instanceof f){const e=t.getScopeData();this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&Object.keys(e.user).length&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint.length&&(this._fingerprint=e.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),e.propagationContext&&(this._propagationContext=e.propagationContext)}else if((0,r.PO)(t)){const t=e;this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=p(),this}addBreadcrumb(e,t){const n="number"===typeof t?t:100;if(n<=0)return this;const r={timestamp:(0,o.yW)(),...e},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:e,_attachments:t,_contexts:n,_tags:r,_extra:o,_user:i,_level:a,_fingerprint:s,_eventProcessors:c,_propagationContext:u,_sdkProcessingMetadata:l,_transactionName:f,_span:d}=this;return{breadcrumbs:e,attachments:t,contexts:n,tags:r,extra:o,user:i,level:a,fingerprint:s||[],eventProcessors:c,propagationContext:u,sdkProcessingMetadata:l,transactionName:f,span:d}}applyToEvent(e,t={},n=[]){(0,u.gi)(e,this.getScopeData());const r=[...n,...(0,s.fH)(),...this._eventProcessors];return(0,s.RP)(r,e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,t){const n=t&&t.event_id?t.event_id:(0,i.DM)();if(!this._client)return a.kg.warn("No client configured on scope - will not capture exception!"),n;const r=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},this),n}captureMessage(e,t,n){const r=n&&n.event_id?n.event_id:(0,i.DM)();if(!this._client)return a.kg.warn("No client configured on scope - will not capture message!"),r;const o=new Error(e);return this._client.captureMessage(e,t,{originalException:e,syntheticException:o,...n,event_id:r},this),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:(0,i.DM)();return this._client?(this._client.captureEvent(e,{...t,event_id:n},this),n):(a.kg.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}}function d(){return l||(l=new f),l}function p(){return{traceId:(0,i.DM)(),spanId:(0,i.DM)().substring(16)}}},64903:function(e,t,n){"use strict";n.d(t,{CT:function(){return s},Hv:function(){return a},RJ:function(){return c}});var r=n(94370),o=n(41610),i=n(438);function a(e){const t=(0,r.ph)(),n={sid:(0,o.DM)(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return(0,i.Jr)({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"===typeof e.did||"string"===typeof e.did?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&s(n,e),n}function s(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,r.ph)(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:(0,o.DM)()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"===typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"===typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"===typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function c(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),s(e,n)}},83444:function(e,t,n){"use strict";n.d(t,{_:function(){return c},j:function(){return u}});var r=n(438),o=n(52940),i=n(74961),a=n(52538),s=n(53023);function c(e,t,n){const i=t.getOptions(),{publicKey:a}=t.getDsn()||{},{segment:s}=n&&n.getUser()||{},c=(0,r.Jr)({environment:i.environment||o.J,release:i.release,user_segment:s,public_key:a,trace_id:e});return t.emit&&t.emit("createDsc",c),c}function u(e){const t=(0,i.s3)();if(!t)return{};const n=c((0,s.XU)(e).trace_id||"",t,(0,i.nZ)()),r=(0,a.G)(e);if(!r)return n;const o=r&&r._frozenDynamicSamplingContext;if(o)return o;const{sampleRate:u,source:l}=r.metadata;null!=u&&(n.sample_rate=`${u}`);const f=(0,s.XU)(r);return l&&"url"!==l&&(n.transaction=f.description),n.sampled=String((0,s.Tt)(r)),t.emit&&t.emit("createDsc",n),n}},99784:function(e,t,n){"use strict";n.d(t,{gi:function(){return c},yo:function(){return u}});var r=n(438),o=n(41610),i=n(83444),a=n(52538),s=n(53023);function c(e,t){const{fingerprint:n,span:c,breadcrumbs:u,sdkProcessingMetadata:l}=t;!function(e,t){const{extra:n,tags:o,user:i,contexts:a,level:s,transactionName:c}=t,u=(0,r.Jr)(n);u&&Object.keys(u).length&&(e.extra={...u,...e.extra});const l=(0,r.Jr)(o);l&&Object.keys(l).length&&(e.tags={...l,...e.tags});const f=(0,r.Jr)(i);f&&Object.keys(f).length&&(e.user={...f,...e.user});const d=(0,r.Jr)(a);d&&Object.keys(d).length&&(e.contexts={...d,...e.contexts});s&&(e.level=s);c&&(e.transaction=c)}(e,t),c&&function(e,t){e.contexts={trace:(0,s.wy)(t),...e.contexts};const n=(0,a.G)(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:(0,i.j)(t),...e.sdkProcessingMetadata};const r=(0,s.XU)(n).description;r&&(e.tags={transaction:r,...e.tags})}}(e,c),function(e,t){e.fingerprint=e.fingerprint?(0,o.lE)(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t));e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}(e,u),function(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}(e,l)}function u(e,t){const{extra:n,tags:r,user:o,contexts:i,level:a,sdkProcessingMetadata:s,breadcrumbs:c,fingerprint:u,eventProcessors:f,attachments:d,propagationContext:p,transactionName:h,span:m}=t;l(e,"extra",n),l(e,"tags",r),l(e,"user",o),l(e,"contexts",i),l(e,"sdkProcessingMetadata",s),a&&(e.level=a),h&&(e.transactionName=h),m&&(e.span=m),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),f.length&&(e.eventProcessors=[...e.eventProcessors,...f]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function l(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}},52538:function(e,t,n){"use strict";function r(e){return e.transaction}n.d(t,{G:function(){return r}})},61173:function(e,t,n){"use strict";n.d(t,{R:function(){return p},U0:function(){return m}});var r=n(41610),o=n(94370),i=n(94492),a=n(71950),s=n(83204),c=n(52940),u=n(18576),l=n(30729),f=n(99784),d=n(53023);function p(e,t,n,p,m,g){const{normalizeDepth:v=3,normalizeMaxBreadth:y=1e3}=e,b={...t,event_id:t.event_id||n.event_id||(0,r.DM)(),timestamp:t.timestamp||(0,o.yW)()},_=n.integrations||e.integrations.map((e=>e.name));!function(e,t){const{environment:n,release:r,dist:o,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:c.J);void 0===e.release&&void 0!==r&&(e.release=r);void 0===e.dist&&void 0!==o&&(e.dist=o);e.message&&(e.message=(0,i.$G)(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=(0,i.$G)(s.value,a));const u=e.request;u&&u.url&&(u.url=(0,i.$G)(u.url,a))}(b,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}(b,_),void 0===t.type&&function(e,t){const n=a.n2._sentryDebugIds;if(!n)return;let r;const o=h.get(t);o?r=o:(r=new Map,h.set(t,r));const i=Object.keys(n).reduce(((e,o)=>{let i;const a=r.get(o);a?i=a:(i=t(o),r.set(o,i));for(let t=i.length-1;t>=0;t--){const r=i[t];if(r.filename){e[r.filename]=n[o];break}}return e}),{});try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.filename&&(e.debug_id=i[e.filename])}))}))}catch(s){}}(b,e.stackParser);const E=function(e,t){if(!t)return e;const n=e?e.clone():new l.sX;return n.update(t),n}(p,n.captureContext);n.mechanism&&(0,r.EG)(b,n.mechanism);const w=m&&m.getEventProcessors?m.getEventProcessors():[],S=(0,l.lW)().getScopeData();if(g){const e=g.getScopeData();(0,f.yo)(S,e)}if(E){const e=E.getScopeData();(0,f.yo)(S,e)}const T=[...n.attachments||[],...S.attachments];T.length&&(n.attachments=T),(0,f.gi)(b,S);const x=[...w,...(0,u.fH)(),...S.eventProcessors];return(0,u.RP)(x,b,n).then((e=>(e&&function(e){const t={};try{e.exception.values.forEach((e=>{e.stacktrace.frames.forEach((e=>{e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(r){}if(0===Object.keys(t).length)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach((e=>{n.push({type:"sourcemap",code_file:e,debug_id:t[e]})}))}(e),"number"===typeof v&&v>0?function(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((e=>({...e,...e.data&&{data:(0,s.Fv)(e.data,t,n)}})))},...e.user&&{user:(0,s.Fv)(e.user,t,n)},...e.contexts&&{contexts:(0,s.Fv)(e.contexts,t,n)},...e.extra&&{extra:(0,s.Fv)(e.extra,t,n)}};e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=(0,s.Fv)(e.contexts.trace.data,t,n)));e.spans&&(r.spans=e.spans.map((e=>{const r=(0,d.XU)(e).data;return r&&(e.data=(0,s.Fv)(r,t,n)),e})));return r}(e,v,y):e)))}const h=new WeakMap;function m(e){if(e)return function(e){return e instanceof l.sX||"function"===typeof e}(e)||function(e){return Object.keys(e).some((e=>g.includes(e)))}(e)?{captureContext:e}:e}const g=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"]},53023:function(e,t,n){"use strict";n.d(t,{$k:function(){return l},Hb:function(){return u},Tt:function(){return p},XU:function(){return d},i0:function(){return s},ve:function(){return a},wy:function(){return c}});var r=n(438),o=n(35547),i=n(94370);const a=0,s=1;function c(e){const{spanId:t,traceId:n}=e.spanContext(),{data:o,op:i,parent_span_id:a,status:s,tags:c,origin:u}=d(e);return(0,r.Jr)({data:o,op:i,parent_span_id:a,span_id:t,status:s,tags:c,trace_id:n,origin:u})}function u(e){const{traceId:t,spanId:n}=e.spanContext(),r=p(e);return(0,o.$p)(t,n,r)}function l(e){return"number"===typeof e?f(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?f(e.getTime()):(0,i.ph)()}function f(e){return e>9999999999?e/1e3:e}function d(e){return function(e){return"function"===typeof e.getSpanJSON}(e)?e.getSpanJSON():"function"===typeof e.toJSON?e.toJSON():{}}function p(e){const{traceFlags:t}=e.spanContext();return Boolean(t&s)}},5077:function(e,t,n){"use strict";n.d(t,{J:function(){return r}});const r="7.102.0"},73461:function(e,t,n){"use strict";n.d(t,{EN:function(){return u},IQ:function(){return l},bU:function(){return a}});var r=n(53429),o=n(61943),i=n(65527);const a="baggage",s="sentry-",c=/^sentry-/;function u(e){if(!(0,o.HD)(e)&&!Array.isArray(e))return;let t={};if(Array.isArray(e))t=e.reduce(((e,t)=>{const n=f(t);for(const r of Object.keys(n))e[r]=n[r];return e}),{});else{if(!e)return;t=f(e)}const n=Object.entries(t).reduce(((e,[t,n])=>{if(t.match(c)){e[t.slice(s.length)]=n}return e}),{});return Object.keys(n).length>0?n:void 0}function l(e){if(!e)return;return function(e){if(0===Object.keys(e).length)return;return Object.entries(e).reduce(((e,[t,n],o)=>{const a=`${encodeURIComponent(t)}=${encodeURIComponent(n)}`,s=0===o?a:`${e},${a}`;return s.length>8192?(r.X&&i.kg.warn(`Not adding key: ${t} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):s}),"")}(Object.entries(e).reduce(((e,[t,n])=>(n&&(e[`sentry-${t}`]=n),e)),{}))}function f(e){return e.split(",").map((e=>e.split("=").map((e=>decodeURIComponent(e.trim()))))).reduce(((e,[t,n])=>(e[t]=n,e)),{})}},53618:function(e,t,n){"use strict";n.d(t,{Rt:function(){return i},iY:function(){return u},l4:function(){return s},qT:function(){return c}});var r=n(61943);const o=(0,n(71950).Rf)();function i(e,t={}){if(!e)return"";try{let n=e;const r=5,o=[];let i=0,s=0;const c=" > ",u=c.length;let l;const f=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||80;for(;n&&i++1&&s+o.length*u+l.length>=d));)o.push(l),s+=l.length,n=n.parentNode;return o.reverse().join(c)}catch(n){return""}}function a(e,t){const n=e,i=[];let a,s,c,u,l;if(!n||!n.tagName)return"";if(o.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;i.push(n.tagName.toLowerCase());const f=t&&t.length?t.filter((e=>n.getAttribute(e))).map((e=>[e,n.getAttribute(e)])):null;if(f&&f.length)f.forEach((e=>{i.push(`[${e[0]}="${e[1]}"]`)}));else if(n.id&&i.push(`#${n.id}`),a=n.className,a&&(0,r.HD)(a))for(s=a.split(/\s+/),l=0;l{const r=a[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((e=>{t[e]=n[e]}))}}const c=function(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return r.X?i.forEach((n=>{t[n]=(...t)=>{e&&s((()=>{o.n2.console[n](`Sentry Logger [${n}]:`,...t)}))}})):i.forEach((e=>{t[e]=()=>{}})),t}()},41610:function(e,t,n){"use strict";n.d(t,{DM:function(){return i},Db:function(){return c},EG:function(){return u},YO:function(){return l},jH:function(){return s},lE:function(){return f}});var r=n(438),o=n(71950);function i(){const e=o.n2,t=e.crypto||e.msCrypto;let n=()=>16*Math.random();try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(r){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}function a(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function s(e){const{message:t,event_id:n}=e;if(t)return t;const r=a(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function c(e,t,n){const r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function u(e,t){const n=a(e);if(!n)return;const r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...t},t&&"data"in t){const e={...r&&r.data,...t.data};n.mechanism.data=e}}function l(e){if(e&&e.__sentry_captured__)return!0;try{(0,r.xp)(e,"__sentry_captured__",!0)}catch(t){}return!1}function f(e){return Array.isArray(e)?e:[e]}},83204:function(e,t,n){"use strict";n.d(t,{Fv:function(){return a},Qy:function(){return s}});var r=n(61943);var o=n(438),i=n(55013);function a(e,t=100,n=1/0){try{return c("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function s(e,t=3,n=102400){const r=a(e,t);return o=r,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(o))>n?s(e,t-1,n):r;var o}function c(e,t,a=1/0,s=1/0,u=function(){const e="function"===typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(let e=0;e=s){m[n]="[MaxProperties ~]";break}const e=v[n];m[n]=c(n,e,p-1,s,u),g++}return f(t),m}},438:function(e,t,n){"use strict";n.d(t,{$Q:function(){return l},HK:function(){return f},Jr:function(){return v},Sh:function(){return p},_j:function(){return d},hl:function(){return c},xp:function(){return u},zf:function(){return g}});var r=n(53618),o=n(53429),i=n(61943),a=n(65527),s=n(94492);function c(e,t,n){if(!(t in e))return;const r=e[t],o=n(r);"function"===typeof o&&l(o,r),e[t]=o}function u(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(r){o.X&&a.kg.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function l(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,u(e,"__sentry_original__",t)}catch(n){}}function f(e){return e.__sentry_original__}function d(e){return Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}function p(e){if((0,i.VZ)(e))return{message:e.message,name:e.name,stack:e.stack,...m(e)};if((0,i.cO)(e)){const t={type:e.type,target:h(e.target),currentTarget:h(e.currentTarget),...m(e)};return"undefined"!==typeof CustomEvent&&(0,i.V9)(e,CustomEvent)&&(t.detail=e.detail),t}return e}function h(e){try{return(0,i.kK)(e)?(0,r.Rt)(e):Object.prototype.toString.call(e)}catch(t){return""}}function m(e){if("object"===typeof e&&null!==e){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function g(e,t=40){const n=Object.keys(p(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return(0,s.$G)(n[0],t);for(let r=n.length;r>0;r--){const e=n.slice(0,r).join(", ");if(!(e.length>t))return r===n.length?e:(0,s.$G)(e,t)}return""}function v(e){return y(e,new Map)}function y(e,t){if(function(e){if(!(0,i.PO)(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(t){return!0}}(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const o of Object.keys(e))"undefined"!==typeof e[o]&&(r[o]=y(e[o],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(y(e,t))})),r}return e}},55013:function(e,t,n){"use strict";n.d(t,{$P:function(){return c},Sq:function(){return a},pE:function(){return i}});const r=/\(error: (.*)\)/,o=/captureMessage|captureException/;function i(...e){const t=e.sort(((e,t)=>e[0]-t[0])).map((e=>e[1]));return(e,n=0)=>{const i=[],a=e.split("\n");for(let o=n;o1024)continue;const n=r.test(e)?e.replace(r,"$1"):e;if(!n.match(/\S*Error: /)){for(const e of t){const t=e(n);if(t){i.push(t);break}}if(i.length>=50)break}}return function(e){if(!e.length)return[];const t=Array.from(e);/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop();t.reverse(),o.test(t[t.length-1].function||"")&&(t.pop(),o.test(t[t.length-1].function||"")&&t.pop());return t.slice(0,50).map((e=>({...e,filename:e.filename||t[t.length-1].filename,function:e.function||"?"})))}(i)}}function a(e){return Array.isArray(e)?i(...e):e}const s="";function c(e){try{return e&&"function"===typeof e&&e.name||s}catch(t){return s}}},94492:function(e,t,n){"use strict";n.d(t,{$G:function(){return o},U0:function(){return a},nK:function(){return i}});var r=n(61943);function o(e,t=0){return"string"!==typeof e||0===t||e.length<=t?e:`${e.slice(0,t)}...`}function i(e,t){if(!Array.isArray(e))return"";const n=[];for(let i=0;ifunction(e,t,n=!1){return!!(0,r.HD)(e)&&((0,r.Kj)(t)?t.test(e):!!(0,r.HD)(t)&&(n?e===t:e.includes(t)))}(e,t,n)))}},75679:function(e,t,n){"use strict";n.d(t,{$2:function(){return a},WD:function(){return i},cW:function(){return s}});var r,o=n(61943);function i(e){return new s((t=>{t(e)}))}function a(e){return new s(((t,n)=>{n(e)}))}!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(r||(r={}));class s{constructor(e){s.prototype.__init.call(this),s.prototype.__init2.call(this),s.prototype.__init3.call(this),s.prototype.__init4.call(this),this._state=r.PENDING,this._handlers=[];try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new s(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(o){r(o)}else n(t)},e=>{if(t)try{n(t(e))}catch(o){r(o)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new s(((t,n)=>{let r,o;return this.then((t=>{o=!1,r=t,e&&e()}),(t=>{o=!0,r=t,e&&e()})).then((()=>{o?n(r):t(r)}))}))}__init(){this._resolve=e=>{this._setResult(r.RESOLVED,e)}}__init2(){this._reject=e=>{this._setResult(r.REJECTED,e)}}__init3(){this._setResult=(e,t)=>{this._state===r.PENDING&&((0,o.J8)(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init4(){this._executeHandlers=()=>{if(this._state===r.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===r.RESOLVED&&e[1](this._value),this._state===r.REJECTED&&e[2](this._value),e[0]=!0)}))}}}},94370:function(e,t,n){"use strict";n.d(t,{Z1:function(){return s},ph:function(){return i},yW:function(){return o}});var r=n(71950);function o(){return Date.now()/1e3}const i=function(){const{performance:e}=r.n2;if(!e||!e.now)return o;const t=Date.now()-e.now(),n=void 0==e.timeOrigin?t:e.timeOrigin;return()=>(n+e.now())/1e3}();let a;const s=(()=>{const{performance:e}=r.n2;if(!e||!e.now)return void(a="none");const t=36e5,n=e.now(),o=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-o):t,s=i0;){var t=u.current.shift();e.send(t)}}),[e]),[m,g]}},8199:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(67597);function o(e){var t=r.useRef();return t.current||(t.current={v:e()}),t.current.v}},21594:function(e,t,n){"use strict";n.d(t,{v:function(){return c}});var r=n(67597),o=n(38931),i=n(35090),a=n(23609),s=function(e,t){return e===t};function c(e,t,n,c){void 0===n&&(n=s);var u=(0,r.useRef)(null),l=(0,r.useCallback)((function(t){return e.subscribe(t).unsubscribe}),[e]),f=(0,r.useCallback)((function(){return c?c(e):function(e,t){if((0,a.cs)(e)){if(0===e.status&&t.current)return t.current;var n=(0,a.Uz)(e);return t.current=0===e.status?n:null,n}return(0,i.Y)(e)?e.state:void 0}(e,u)}),[e,c]);return(0,o.useSyncExternalStoreWithSelector)(l,f,f,t,n)}},23609:function(e,t,n){"use strict";n.d(t,{AM:function(){return a},Uz:function(){return o},cs:function(){return i}});var r=n(73977);function o(e){return 0!==e.status?e.getSnapshot():e.machine.initialState}function i(e){return"state"in e&&"machine"in e}function a(e,t,n){if(e.status===r.TM.NotStarted)return!0;var o=void 0===n.changed&&(Object.keys(n.children).length>0||"boolean"===typeof t.changed);return!(n.changed||o)}},78440:function(e,t,n){"use strict";n.d(t,{Ry:function(){return l}});var r=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},o=new WeakMap,i=new WeakMap,a={},s=0,c=function(e){return e&&(e.host||c(e.parentNode))},u=function(e,t,n,r){var u=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=c(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);a[n]||(a[n]=new WeakMap);var l=a[n],f=[],d=new Set,p=new Set(u),h=function(e){e&&!d.has(e)&&(d.add(e),h(e.parentNode))};u.forEach(h);var m=function(e){e&&!p.has(e)&&Array.prototype.forEach.call(e.children,(function(e){if(d.has(e))m(e);else{var t=e.getAttribute(r),a=null!==t&&"false"!==t,s=(o.get(e)||0)+1,c=(l.get(e)||0)+1;o.set(e,s),l.set(e,c),f.push(e),1===s&&a&&i.set(e,!0),1===c&&e.setAttribute(n,"true"),a||e.setAttribute(r,"true")}}))};return m(t),d.clear(),s++,function(){f.forEach((function(e){var t=o.get(e)-1,a=l.get(e)-1;o.set(e,t),l.set(e,a),t||(i.has(e)||e.removeAttribute(r),i.delete(e)),a||e.removeAttribute(n)})),--s||(o=new WeakMap,o=new WeakMap,i=new WeakMap,a={})}},l=function(e,t,n){void 0===n&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),i=t||r(e);return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live]"))),u(o,i,n,"aria-hidden")):function(){return null}}},36252:function(e){"use strict";var t=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)};var n="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function r(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function o(e,t,n){return e.concat(t).map((function(e){return r(e,n)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function a(e,t){try{return t in e}catch(n){return!1}}function s(e,t,n){var o={};return n.isMergeableObject(e)&&i(e).forEach((function(t){o[t]=r(e[t],n)})),i(t).forEach((function(i){(function(e,t){return a(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(a(e,i)&&n.isMergeableObject(t[i])?o[i]=function(e,t){if(!t.customMerge)return c;var n=t.customMerge(e);return"function"===typeof n?n:c}(i,n)(e[i],t[i],n):o[i]=r(t[i],n))})),o}function c(e,n,i){(i=i||{}).arrayMerge=i.arrayMerge||o,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=r;var a=Array.isArray(n);return a===Array.isArray(e)?a?i.arrayMerge(e,n,i):s(e,n,i):r(n,i)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return c(e,n,t)}),{})};var u=c;e.exports=u},30130:function(e,t,n){"use strict";var r=n(80820),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function c(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var s=c(t),m=c(n),g=0;g1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++rl))return!1;var d=c.get(e),p=c.get(t);if(d&&p)return d==t&&p==e;var h=-1,m=!0,g=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++h-1&&e%1==0&&e-1}},54008:function(e,t,n){var r=n(40575);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},44771:function(e,t,n){var r=n(62662),o=n(80272),i=n(48797);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},76620:function(e,t,n){var r=n(72774);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},38693:function(e,t,n){var r=n(72774);e.exports=function(e){return r(this,e).get(e)}},35601:function(e,t,n){var r=n(72774);e.exports=function(e){return r(this,e).has(e)}},84853:function(e,t,n){var r=n(72774);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},93520:function(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},89409:function(e){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},95826:function(e,t,n){var r=n(28353);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},18162:function(e,t,n){var r=n(93047)(Object,"create");e.exports=r},11166:function(e,t,n){var r=n(90161)(Object.keys,Object);e.exports=r},7092:function(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},17585:function(e,t,n){e=n.nmd(e);var r=n(16638),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=s},4252:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},90161:function(e){e.exports=function(e,t){return function(n){return e(t(n))}}},19812:function(e,t,n){var r=n(7430),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),c=Array(s);++a0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},97385:function(e,t,n){var r=n(80272);e.exports=function(){this.__data__=new r,this.size=0}},9454:function(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7113:function(e){e.exports=function(e){return this.__data__.get(e)}},86195:function(e){e.exports=function(e){return this.__data__.has(e)}},51442:function(e,t,n){var r=n(80272),o=n(48797),i=n(25936);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},80875:function(e,t,n){var r=n(95826),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},22658:function(e,t,n){var r=n(59896);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},58947:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},4357:function(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},55507:function(e){e.exports=function(e){return function(){return e}}},66224:function(e,t,n){var r=n(38760),o=n(8402),i=n(11039),a=Math.max,s=Math.min;e.exports=function(e,t,n){var c,u,l,f,d,p,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=c,r=u;return c=u=void 0,h=t,f=e.apply(r,n)}function b(e){return h=e,d=setTimeout(E,t),m?y(e):f}function _(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-h>=l}function E(){var e=o();if(_(e))return w(e);d=setTimeout(E,function(e){var n=t-(e-p);return g?s(n,l-(e-h)):n}(e))}function w(e){return d=void 0,v&&c?y(e):(c=u=void 0,f)}function S(){var e=o(),n=_(e);if(c=arguments,u=this,p=e,n){if(void 0===d)return b(p);if(g)return clearTimeout(d),d=setTimeout(E,t),y(p)}return void 0===d&&(d=setTimeout(E,t)),f}return t=i(t)||0,r(n)&&(m=!!n.leading,l=(g="maxWait"in n)?a(i(n.maxWait)||0,t):l,v="trailing"in n?!!n.trailing:v),S.cancel=function(){void 0!==d&&clearTimeout(d),h=0,c=p=u=d=void 0},S.flush=function(){return void 0===d?f:w(o())},S}},4001:function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},8734:function(e,t,n){var r=n(43938),o=n(36962),i=n(63244);e.exports=function(e,t){return r(e,i(t,3),o)}},4078:function(e,t,n){var r=n(68059);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},85378:function(e,t,n){var r=n(44197),o=n(1833),i=Object.prototype.hasOwnProperty,a=o((function(e,t,n){i.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=a},22340:function(e,t,n){var r=n(4090),o=n(95370);e.exports=function(e,t){return null!=e&&o(e,t,r)}},51367:function(e){e.exports=function(e){return e}},57287:function(e,t,n){var r=n(71447),o=n(44182),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},87874:function(e){var t=Array.isArray;e.exports=t},68714:function(e,t,n){var r=n(79015),o=n(99616);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},79891:function(e,t,n){var r=n(68714),o=n(44182);e.exports=function(e){return o(e)&&r(e)}},13231:function(e,t,n){e=n.nmd(e);var r=n(52954),o=n(15416),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||o;e.exports=c},79015:function(e,t,n){var r=n(61799),o=n(38760);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},99616:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},38760:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},44182:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},32896:function(e,t,n){var r=n(61799),o=n(293),i=n(44182),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==l}},59896:function(e,t,n){var r=n(61799),o=n(44182);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},96912:function(e,t,n){var r=n(78515),o=n(20141),i=n(17585),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},60831:function(e,t,n){var r=n(88498),o=n(35113),i=n(68714);e.exports=function(e){return i(e)?r(e):o(e)}},88922:function(e,t,n){var r=n(88498),o=n(19549),i=n(68714);e.exports=function(e){return i(e)?r(e,!0):o(e)}},28353:function(e,t,n){var r=n(25936);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},20100:function(e,t,n){var r=n(65813),o=n(9730)((function(e,t,n){r(e,t,n)}));e.exports=o},8402:function(e,t,n){var r=n(52954);e.exports=function(){return r.Date.now()}},52203:function(e,t,n){var r=n(22691),o=n(36248),i=n(91727),a=n(22658);e.exports=function(e){return i(e)?r(a(e)):o(e)}},67711:function(e,t,n){var r=n(30175),o=n(91298),i=n(84052),a=parseFloat,s=Math.min,c=Math.random;e.exports=function(e,t,n){if(n&&"boolean"!=typeof n&&o(e,t,n)&&(t=n=void 0),void 0===n&&("boolean"==typeof t?(n=t,t=void 0):"boolean"==typeof e&&(n=e,e=void 0)),void 0===e&&void 0===t?(e=0,t=1):(e=i(e),void 0===t?(t=e,e=0):t=i(t)),e>t){var u=e;e=t,t=u}if(n||e%1||t%1){var l=c();return s(e+l*(t-e+a("1e-"+((l+"").length-1))),t)}return r(e,t)}},57065:function(e,t,n){var r=n(80890)();e.exports=r},54678:function(e,t,n){var r=n(41978),o=n(75937),i=n(87874);e.exports=function(e){return(i(e)?r:o)(e)}},53280:function(e){e.exports=function(){return[]}},15416:function(e){e.exports=function(){return!1}},20918:function(e,t,n){var r=n(66224),o=n(38760);e.exports=function(e,t,n){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),r(e,t,{leading:i,maxWait:t,trailing:a})}},84052:function(e,t,n){var r=n(11039),o=1/0;e.exports=function(e){return e?(e=r(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},11039:function(e,t,n){var r=n(20246),o=n(38760),i=n(59896),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||c.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},23138:function(e,t,n){var r=n(26951),o=n(88922);e.exports=function(e){return r(e,o(e))}},46235:function(e,t,n){var r=n(35423);e.exports=function(e){return null==e?"":r(e)}},32591:function(e,t,n){var r=n(90629),o=n(60831);e.exports=function(e){return null==e?[]:r(e,o(e))}},41801:function(e,t,n){"use strict";n.d(t,{PB:function(){return h},lX:function(){return p}});var r=n(67597),o=n(9605),i=n.n(o);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(o[n]=e[n]);return o}var c=["keyOverride"],u={templateTitle:"",noindex:!1,nofollow:!1,defaultOpenGraphImageWidth:0,defaultOpenGraphImageHeight:0,defaultOpenGraphVideoWidth:0,defaultOpenGraphVideoHeight:0},l=function(e,t,n){void 0===t&&(t=[]);var o=void 0===n?{}:n,i=o.defaultWidth,a=o.defaultHeight;return t.reduce((function(t,n,o){return t.push(r.createElement("meta",{key:"og:"+e+":0"+o,property:"og:"+e,content:n.url})),n.alt&&t.push(r.createElement("meta",{key:"og:"+e+":alt0"+o,property:"og:"+e+":alt",content:n.alt})),n.secureUrl&&t.push(r.createElement("meta",{key:"og:"+e+":secure_url0"+o,property:"og:"+e+":secure_url",content:n.secureUrl.toString()})),n.type&&t.push(r.createElement("meta",{key:"og:"+e+":type0"+o,property:"og:"+e+":type",content:n.type.toString()})),n.width?t.push(r.createElement("meta",{key:"og:"+e+":width0"+o,property:"og:"+e+":width",content:n.width.toString()})):i&&t.push(r.createElement("meta",{key:"og:"+e+":width0"+o,property:"og:"+e+":width",content:i.toString()})),n.height?t.push(r.createElement("meta",{key:"og:"+e+":height"+o,property:"og:"+e+":height",content:n.height.toString()})):a&&t.push(r.createElement("meta",{key:"og:"+e+":height"+o,property:"og:"+e+":height",content:a.toString()})),t}),[])},f=function(e){var t,n,o,i=[];e.titleTemplate&&(u.templateTitle=e.titleTemplate);var f="";e.title?(f=e.title,u.templateTitle&&(f=u.templateTitle.replace(/%s/g,(function(){return f})))):e.defaultTitle&&(f=e.defaultTitle),f&&i.push(r.createElement("title",{key:"title"},f));var d,p,h=e.noindex||u.noindex||e.dangerouslySetAllPagesToNoIndex,m=e.nofollow||u.nofollow||e.dangerouslySetAllPagesToNoFollow,g="";if(e.robotsProps){var v=e.robotsProps,y=v.nosnippet,b=v.maxSnippet,_=v.maxImagePreview,E=v.maxVideoPreview,w=v.noarchive,S=v.noimageindex,T=v.notranslate,x=v.unavailableAfter;g=(y?",nosnippet":"")+(b?",max-snippet:"+b:"")+(_?",max-image-preview:"+_:"")+(w?",noarchive":"")+(x?",unavailable_after:"+x:"")+(S?",noimageindex":"")+(E?",max-video-preview:"+E:"")+(T?",notranslate":"")}(h||m?(e.dangerouslySetAllPagesToNoIndex&&(u.noindex=!0),e.dangerouslySetAllPagesToNoFollow&&(u.nofollow=!0),i.push(r.createElement("meta",{key:"robots",name:"robots",content:(h?"noindex":"index")+","+(m?"nofollow":"follow")+g}))):i.push(r.createElement("meta",{key:"robots",name:"robots",content:"index,follow"+g})),e.description&&i.push(r.createElement("meta",{key:"description",name:"description",content:e.description})),e.themeColor&&i.push(r.createElement("meta",{key:"theme-color",name:"theme-color",content:e.themeColor})),e.mobileAlternate&&i.push(r.createElement("link",{rel:"alternate",key:"mobileAlternate",media:e.mobileAlternate.media,href:e.mobileAlternate.href})),e.languageAlternates&&e.languageAlternates.length>0&&e.languageAlternates.forEach((function(e){i.push(r.createElement("link",{rel:"alternate",key:"languageAlternate-"+e.hrefLang,hrefLang:e.hrefLang,href:e.href}))})),e.twitter&&(e.twitter.cardType&&i.push(r.createElement("meta",{key:"twitter:card",name:"twitter:card",content:e.twitter.cardType})),e.twitter.site&&i.push(r.createElement("meta",{key:"twitter:site",name:"twitter:site",content:e.twitter.site})),e.twitter.handle&&i.push(r.createElement("meta",{key:"twitter:creator",name:"twitter:creator",content:e.twitter.handle}))),e.facebook&&e.facebook.appId&&i.push(r.createElement("meta",{key:"fb:app_id",property:"fb:app_id",content:e.facebook.appId})),null!=(t=e.openGraph)&&t.title||f)&&i.push(r.createElement("meta",{key:"og:title",property:"og:title",content:(null==(d=e.openGraph)?void 0:d.title)||f}));(null!=(n=e.openGraph)&&n.description||e.description)&&i.push(r.createElement("meta",{key:"og:description",property:"og:description",content:(null==(p=e.openGraph)?void 0:p.description)||e.description}));if(e.openGraph){if((e.openGraph.url||e.canonical)&&i.push(r.createElement("meta",{key:"og:url",property:"og:url",content:e.openGraph.url||e.canonical})),e.openGraph.type){var A=e.openGraph.type.toLowerCase();i.push(r.createElement("meta",{key:"og:type",property:"og:type",content:A})),"profile"===A&&e.openGraph.profile?(e.openGraph.profile.firstName&&i.push(r.createElement("meta",{key:"profile:first_name",property:"profile:first_name",content:e.openGraph.profile.firstName})),e.openGraph.profile.lastName&&i.push(r.createElement("meta",{key:"profile:last_name",property:"profile:last_name",content:e.openGraph.profile.lastName})),e.openGraph.profile.username&&i.push(r.createElement("meta",{key:"profile:username",property:"profile:username",content:e.openGraph.profile.username})),e.openGraph.profile.gender&&i.push(r.createElement("meta",{key:"profile:gender",property:"profile:gender",content:e.openGraph.profile.gender}))):"book"===A&&e.openGraph.book?(e.openGraph.book.authors&&e.openGraph.book.authors.length&&e.openGraph.book.authors.forEach((function(e,t){i.push(r.createElement("meta",{key:"book:author:0"+t,property:"book:author",content:e}))})),e.openGraph.book.isbn&&i.push(r.createElement("meta",{key:"book:isbn",property:"book:isbn",content:e.openGraph.book.isbn})),e.openGraph.book.releaseDate&&i.push(r.createElement("meta",{key:"book:release_date",property:"book:release_date",content:e.openGraph.book.releaseDate})),e.openGraph.book.tags&&e.openGraph.book.tags.length&&e.openGraph.book.tags.forEach((function(e,t){i.push(r.createElement("meta",{key:"book:tag:0"+t,property:"book:tag",content:e}))}))):"article"===A&&e.openGraph.article?(e.openGraph.article.publishedTime&&i.push(r.createElement("meta",{key:"article:published_time",property:"article:published_time",content:e.openGraph.article.publishedTime})),e.openGraph.article.modifiedTime&&i.push(r.createElement("meta",{key:"article:modified_time",property:"article:modified_time",content:e.openGraph.article.modifiedTime})),e.openGraph.article.expirationTime&&i.push(r.createElement("meta",{key:"article:expiration_time",property:"article:expiration_time",content:e.openGraph.article.expirationTime})),e.openGraph.article.authors&&e.openGraph.article.authors.length&&e.openGraph.article.authors.forEach((function(e,t){i.push(r.createElement("meta",{key:"article:author:0"+t,property:"article:author",content:e}))})),e.openGraph.article.section&&i.push(r.createElement("meta",{key:"article:section",property:"article:section",content:e.openGraph.article.section})),e.openGraph.article.tags&&e.openGraph.article.tags.length&&e.openGraph.article.tags.forEach((function(e,t){i.push(r.createElement("meta",{key:"article:tag:0"+t,property:"article:tag",content:e}))}))):"video.movie"!==A&&"video.episode"!==A&&"video.tv_show"!==A&&"video.other"!==A||!e.openGraph.video||(e.openGraph.video.actors&&e.openGraph.video.actors.length&&e.openGraph.video.actors.forEach((function(e,t){e.profile&&i.push(r.createElement("meta",{key:"video:actor:0"+t,property:"video:actor",content:e.profile})),e.role&&i.push(r.createElement("meta",{key:"video:actor:role:0"+t,property:"video:actor:role",content:e.role}))})),e.openGraph.video.directors&&e.openGraph.video.directors.length&&e.openGraph.video.directors.forEach((function(e,t){i.push(r.createElement("meta",{key:"video:director:0"+t,property:"video:director",content:e}))})),e.openGraph.video.writers&&e.openGraph.video.writers.length&&e.openGraph.video.writers.forEach((function(e,t){i.push(r.createElement("meta",{key:"video:writer:0"+t,property:"video:writer",content:e}))})),e.openGraph.video.duration&&i.push(r.createElement("meta",{key:"video:duration",property:"video:duration",content:e.openGraph.video.duration.toString()})),e.openGraph.video.releaseDate&&i.push(r.createElement("meta",{key:"video:release_date",property:"video:release_date",content:e.openGraph.video.releaseDate})),e.openGraph.video.tags&&e.openGraph.video.tags.length&&e.openGraph.video.tags.forEach((function(e,t){i.push(r.createElement("meta",{key:"video:tag:0"+t,property:"video:tag",content:e}))})),e.openGraph.video.series&&i.push(r.createElement("meta",{key:"video:series",property:"video:series",content:e.openGraph.video.series})))}e.defaultOpenGraphImageWidth&&(u.defaultOpenGraphImageWidth=e.defaultOpenGraphImageWidth),e.defaultOpenGraphImageHeight&&(u.defaultOpenGraphImageHeight=e.defaultOpenGraphImageHeight),e.openGraph.images&&e.openGraph.images.length&&i.push.apply(i,l("image",e.openGraph.images,{defaultWidth:u.defaultOpenGraphImageWidth,defaultHeight:u.defaultOpenGraphImageHeight})),e.defaultOpenGraphVideoWidth&&(u.defaultOpenGraphVideoWidth=e.defaultOpenGraphVideoWidth),e.defaultOpenGraphVideoHeight&&(u.defaultOpenGraphVideoHeight=e.defaultOpenGraphVideoHeight),e.openGraph.videos&&e.openGraph.videos.length&&i.push.apply(i,l("video",e.openGraph.videos,{defaultWidth:u.defaultOpenGraphVideoWidth,defaultHeight:u.defaultOpenGraphVideoHeight})),e.openGraph.audio&&i.push.apply(i,l("audio",e.openGraph.audio)),e.openGraph.locale&&i.push(r.createElement("meta",{key:"og:locale",property:"og:locale",content:e.openGraph.locale})),(e.openGraph.siteName||e.openGraph.site_name)&&i.push(r.createElement("meta",{key:"og:site_name",property:"og:site_name",content:e.openGraph.siteName||e.openGraph.site_name}))}return e.canonical&&i.push(r.createElement("link",{rel:"canonical",href:e.canonical,key:"canonical"})),e.additionalMetaTags&&e.additionalMetaTags.length>0&&e.additionalMetaTags.forEach((function(e){var t,n,o=e.keyOverride,u=s(e,c);i.push(r.createElement("meta",a({key:"meta:"+(null!=(t=null!=(n=null!=o?o:u.name)?n:u.property)?t:u.httpEquiv)},u)))})),null!=(o=e.additionalLinkTags)&&o.length&&e.additionalLinkTags.forEach((function(e){var t;i.push(r.createElement("link",a({key:"link"+(null!=(t=e.keyOverride)?t:e.href)+e.rel},e)))})),i},d=function(e){return r.createElement(i(),null,f(e))},p=function(e){var t=e.title,n=e.titleTemplate,o=e.defaultTitle,i=e.themeColor,a=e.dangerouslySetAllPagesToNoIndex,s=void 0!==a&&a,c=e.dangerouslySetAllPagesToNoFollow,u=void 0!==c&&c,l=e.description,f=e.canonical,p=e.facebook,h=e.openGraph,m=e.additionalMetaTags,g=e.twitter,v=e.defaultOpenGraphImageWidth,y=e.defaultOpenGraphImageHeight,b=e.defaultOpenGraphVideoWidth,_=e.defaultOpenGraphVideoHeight,E=e.mobileAlternate,w=e.languageAlternates,S=e.additionalLinkTags,T=e.robotsProps;return r.createElement(d,{title:t,titleTemplate:n,defaultTitle:o,themeColor:i,dangerouslySetAllPagesToNoIndex:s,dangerouslySetAllPagesToNoFollow:u,description:l,canonical:f,facebook:p,openGraph:h,additionalMetaTags:m,twitter:g,defaultOpenGraphImageWidth:v,defaultOpenGraphImageHeight:y,defaultOpenGraphVideoWidth:b,defaultOpenGraphVideoHeight:_,mobileAlternate:E,languageAlternates:w,additionalLinkTags:S,robotsProps:T})},h=function(e){var t=e.title,n=e.themeColor,o=e.noindex,i=void 0!==o&&o,a=e.nofollow,s=e.robotsProps,c=e.description,u=e.canonical,l=e.openGraph,p=e.facebook,h=e.twitter,m=e.additionalMetaTags,g=e.titleTemplate,v=e.defaultTitle,y=e.mobileAlternate,b=e.languageAlternates,_=e.additionalLinkTags,E=e.useAppDir,w=void 0!==E&&E;return r.createElement(r.Fragment,null,w?f({title:t,themeColor:n,noindex:i,nofollow:a,robotsProps:s,description:c,canonical:u,facebook:p,openGraph:l,additionalMetaTags:m,twitter:h,titleTemplate:g,defaultTitle:v,mobileAlternate:y,languageAlternates:b,additionalLinkTags:_}):r.createElement(d,{title:t,themeColor:n,noindex:i,nofollow:a,robotsProps:s,description:c,canonical:u,facebook:p,openGraph:l,additionalMetaTags:m,twitter:h,titleTemplate:g,defaultTitle:v,mobileAlternate:y,languageAlternates:b,additionalLinkTags:_}))},m=Object.freeze({"&":"&","<":"<",">":">",'"':""","'":"'"});new RegExp("["+Object.keys(m).join("")+"]","g")},35007:function(e,t,n){"use strict";var r=n(67597);t.Z=(0,r.createContext)({t:function(e){return Array.isArray(e)?e[0]:e},lang:""})},61395:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(67597),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&u>c&&(u=c);for(var l=0;l=0?(f=m.substr(0,g),d=m.substr(g+1)):(f=m,d=""),p=decodeURIComponent(f),h=decodeURIComponent(d),t(a,p)?n(a[p])?a[p].push(h):a[p]=[a[p],h]:a[p]=h}return a};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,i,a,s){return i=i||"&",a=a||"=",null===e&&(e=void 0),"object"===typeof e?r(o(e),(function(o){var s=encodeURIComponent(t(o))+a;return n(e[o])?r(e[o],(function(e){return s+encodeURIComponent(t(e))})).join(i):s+encodeURIComponent(t(e[o]))})).join(i):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r1)for(var n=1;n0;function o(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function i(e,t){for(var n=t.slice(0,t.length-1),r=0;r=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var s={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"\u21ea":20,",":188,".":190,"/":191,"`":192,"-":r?173:189,"=":r?61:187,";":r?59:186,"'":222,"[":219,"]":221,"\\":220},c={"\u21e7":16,shift:16,"\u2325":18,alt:18,option:18,"\u2303":17,ctrl:17,control:17,"\u2318":91,cmd:91,command:91},u={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},l={16:!1,18:!1,17:!1,91:!1},f={},d=1;d<20;d++)s["f".concat(d)]=111+d;var p=[],h=!1,m="all",g=[],v=function(e){return s[e.toLowerCase()]||c[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function y(e){m=e||"all"}function b(){return m||"all"}var _=function(e){var t=e.key,n=e.scope,r=e.method,o=e.splitKey,s=void 0===o?"+":o;a(t).forEach((function(e){var t=e.split(s),o=t.length,a=t[o-1],u="*"===a?"*":v(a);if(f[u]){n||(n=b());var l=o>1?i(c,t):[];f[u]=f[u].filter((function(e){return!((!r||e.method===r)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,i=0;i0,l)Object.prototype.hasOwnProperty.call(l,i)&&(!l[i]&&t.mods.indexOf(+i)>-1||l[i]&&-1===t.mods.indexOf(+i))&&(o=!1);(0!==t.mods.length||l[16]||l[18]||l[17]||l[91])&&!o&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function w(e,t){var n=f["*"],r=e.keyCode||e.which||e.charCode;if(S.filter.call(this,e)){if(93!==r&&224!==r||(r=91),-1===p.indexOf(r)&&229!==r&&p.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=u[t];e[t]&&-1===p.indexOf(n)?p.push(n):!e[t]&&p.indexOf(n)>-1?p.splice(p.indexOf(n),1):"metaKey"===t&&e[t]&&3===p.length&&(e.ctrlKey||e.shiftKey||e.altKey||(p=p.slice(p.indexOf(n))))})),r in l){for(var o in l[r]=!0,c)c[o]===r&&(S[o]=!0);if(!n)return}for(var i in l)Object.prototype.hasOwnProperty.call(l,i)&&(l[i]=e[u[i]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===p.indexOf(17)&&p.push(17),-1===p.indexOf(18)&&p.push(18),l[17]=!0,l[18]=!0);var a=b();if(n)for(var s=0;s1&&(s=i(c,e)),(e="*"===(e=e[e.length-1])?"*":v(e))in f||(f[e]=[]),f[e].push({keyup:y,keydown:b,scope:u,mods:s,shortcut:r[m],method:n,key:r[m],splitKey:_,element:d});"undefined"!==typeof d&&!function(e){return g.indexOf(e)>-1}(d)&&window&&(g.push(d),o(d,"keydown",(function(e){w(e,d)}),E),h||(h=!0,o(window,"focus",(function(){p=[]}),E)),o(d,"keyup",(function(e){w(e,d),function(e){var t=e.keyCode||e.which||e.charCode,n=p.indexOf(t);if(n>=0&&p.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&p.splice(0,p.length),93!==t&&224!==t||(t=91),t in l)for(var r in l[t]=!1,c)c[r]===t&&(S[r]=!1)}(e)}),E))}var T={setScope:y,getScope:b,deleteScope:function(e,t){var n,r;for(var o in e||(e=b()),f)if(Object.prototype.hasOwnProperty.call(f,o))for(n=f[o],r=0;r1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(f).forEach((function(n){var r=f[n].find((function(n){return n.scope===t&&n.shortcut===e}));r&&r.method&&r.method()}))},unbind:function(e){if("undefined"===typeof e)Object.keys(f).forEach((function(e){return delete f[e]}));else if(Array.isArray(e))e.forEach((function(e){e.key&&_(e)}));else if("object"===typeof e)e.key&&_(e);else if("string"===typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;ra;var c=n(67597);const u=Symbol.for("react-redux-context"),l="undefined"!==typeof globalThis?globalThis:{};function f(){var e;if(!c.createContext)return{};const t=null!=(e=l[u])?e:l[u]=new Map;let n=t.get(c.createContext);return n||(n=c.createContext(null),t.set(c.createContext,n)),n}const d=f();function p(e=d){return function(){return(0,c.useContext)(e)}}const h=p();let m=()=>{throw new Error("uSES not initialized!")};const g=(e,t)=>e===t;function v(e=d){const t=e===d?h:p(e);return function(e,n={}){const{equalityFn:r=g,stabilityCheck:o,noopCheck:i}="function"===typeof n?{equalityFn:n}:n;const{store:a,subscription:s,getServerState:u,stabilityCheck:l,noopCheck:f}=t(),d=((0,c.useRef)(!0),(0,c.useCallback)({[e.name]:t=>e(t)}[e.name],[e,l,o])),p=m(s.addNestedSub,a.getState,u||a.getState,d,r);return(0,c.useDebugValue)(p),p}}const y=v();n(30130),n(73788);const b={notify(){},get:()=>[]};function _(e,t){let n,r=b,o=0,i=!1;function a(){l.onStateChange&&l.onStateChange()}function c(){o++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){const e=s();let t=null,n=null;return{clear(){t=null,n=null},notify(){e((()=>{let e=t;for(;e;)e.callback(),e=e.next}))},get(){let e=[],n=t;for(;n;)e.push(n),n=n.next;return e},subscribe(e){let r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}function u(){o--,n&&0===o&&(n(),n=void 0,r.clear(),r=b)}const l={addNestedSub:function(e){c();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),u())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return i},trySubscribe:function(){i||(i=!0,c())},tryUnsubscribe:function(){i&&(i=!1,u())},getListeners:()=>r};return l}const E=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement)?c.useLayoutEffect:c.useEffect;let w=null;var S=function({store:e,context:t,children:n,serverState:r,stabilityCheck:o="once",noopCheck:i="once"}){const a=c.useMemo((()=>{const t=_(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:o,noopCheck:i}}),[e,r,o,i]),s=c.useMemo((()=>e.getState()),[e]);E((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]);const u=t||d;return c.createElement(u.Provider,{value:a},n)};function T(e=d){const t=e===d?h:p(e);return function(){const{store:e}=t();return e}}const x=T();function A(e=d){const t=e===d?x:T(e);return function(){return t().dispatch}}const O=A();function C(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function I(e,t){if(C(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o{w=e})(r.useSyncExternalStore),k=i.unstable_batchedUpdates,a=k},65930:function(e,t){"use strict";var n,r=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case i:case s:case a:case d:case p:return e;default:switch(e=e&&e.$$typeof){case l:case u:case f:case m:case h:case c:return e;default:return t}}case o:return t}}}n=Symbol.for("react.module.reference")},73788:function(e,t,n){"use strict";n(65930)},76444:function(e,t,n){"use strict";n.d(t,{Z:function(){return H}});var r=n(51726),o=n(67597),i="right-scroll-bar-position",a="width-before-scroll-bar";function s(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}var c=new WeakMap;function u(e,t){var n=function(e,t){var n=(0,o.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t||null,(function(t){return e.forEach((function(e){return s(e,t)}))}));return o.useLayoutEffect((function(){var t=c.get(n);if(t){var r=new Set(t),o=new Set(e),i=n.current;r.forEach((function(e){o.has(e)||s(e,null)})),o.forEach((function(e){r.has(e)||s(e,i)}))}c.set(n,e)}),[e]),n}function l(e){return e}function f(e,t){void 0===t&&(t=l);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}}}var d=function(e){void 0===e&&(e={});var t=f(null);return t.options=(0,r.__assign)({async:!0,ssr:!1},e),t}(),p=function(){},h=o.forwardRef((function(e,t){var n=o.useRef(null),i=o.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),a=i[0],s=i[1],c=e.forwardProps,l=e.children,f=e.className,h=e.removeScrollBar,m=e.enabled,g=e.shards,v=e.sideCar,y=e.noIsolation,b=e.inert,_=e.allowPinchZoom,E=e.as,w=void 0===E?"div":E,S=(0,r.__rest)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),T=v,x=u([n,t]),A=(0,r.__assign)((0,r.__assign)({},S),a);return o.createElement(o.Fragment,null,m&&o.createElement(T,{sideCar:d,removeScrollBar:h,shards:g,noIsolation:y,inert:b,setCallbacks:s,allowPinchZoom:!!_,lockRef:n}),c?o.cloneElement(o.Children.only(l),(0,r.__assign)((0,r.__assign)({},A),{ref:x})):o.createElement(w,(0,r.__assign)({},A,{className:f,ref:x}),l))}));h.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},h.classNames={fullWidth:a,zeroRight:i};var m,g=function(e){var t=e.sideCar,n=(0,r.__rest)(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return o.createElement(i,(0,r.__assign)({},n))};g.isSideCarExport=!0;function v(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=m||n.nc;return t&&e.setAttribute("nonce",t),e}var y=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=v())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},b=function(){var e=function(){var e=y();return function(t,n){o.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}}();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},_={left:0,top:0,right:0,gap:0},E=function(e){return parseInt(e||"",10)||0},w=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return _;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[E(n),E(r),E(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},S=b(),T="data-scroll-locked",x=function(e,t,n,r){var o=e.left,s=e.top,c=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body[").concat(T,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(s,"px;\n padding-right: ").concat(c,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(i," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(a," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(i," .").concat(i," {\n right: 0 ").concat(r,";\n }\n \n .").concat(a," .").concat(a," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(T,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},A=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r,a=o.useMemo((function(){return w(i)}),[i]);return o.useEffect((function(){return document.body.setAttribute(T,""),function(){document.body.removeAttribute(T)}}),[]),o.createElement(S,{styles:x(a,!t,i,n?"":"!important")})},O=!1;if("undefined"!==typeof window)try{var C=Object.defineProperty({},"passive",{get:function(){return O=!0,!0}});window.addEventListener("test",C,C),window.removeEventListener("test",C,C)}catch(q){O=!1}var I=!!O&&{passive:!1},P=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},k=function(e,t){var n=t;do{if("undefined"!==typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),j(e,n)){var r=R(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},j=function(e,t){return"v"===e?function(e){return P(e,"overflowY")}(t):function(e){return P(e,"overflowX")}(t)},R=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},N=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},D=function(e){return[e.deltaX,e.deltaY]},Z=function(e){return e&&"current"in e?e.current:e},L=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},M=0,F=[];var B,U=(B=function(e){var t=o.useRef([]),n=o.useRef([0,0]),i=o.useRef(),a=o.useState(M++)[0],s=o.useState((function(){return b()}))[0],c=o.useRef(e);o.useEffect((function(){c.current=e}),[e]),o.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(0,r.__spreadArray)([e.lockRef.current],(e.shards||[]).map(Z),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var u=o.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!c.current.allowPinchZoom;var r,o=N(e),a=n.current,s="deltaX"in e?e.deltaX:a[0]-o[0],u="deltaY"in e?e.deltaY:a[1]-o[1],l=e.target,f=Math.abs(s)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===f&&"range"===l.type)return!1;var d=k(f,l);if(!d)return!0;if(d?r=f:(r="v"===f?"h":"v",d=k(f,l)),!d)return!1;if(!i.current&&"changedTouches"in e&&(s||u)&&(i.current=r),!r)return!0;var p=i.current||r;return function(e,t,n,r,o){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),a=i*r,s=n.target,c=t.contains(s),u=!1,l=a>0,f=0,d=0;do{var p=R(e,s),h=p[0],m=p[1]-p[2]-i*h;(h||m)&&j(e,s)&&(f+=m,d+=h),s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(l&&(o&&0===f||!o&&a>f)||!l&&(o&&0===d||!o&&-a>d))&&(u=!0),u}(p,t,e,"h"===p?s:u,!0)}),[]),l=o.useCallback((function(e){var n=e;if(F.length&&F[F.length-1]===s){var r="deltaY"in n?D(n):N(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var i=(c.current.shards||[]).map(Z).filter(Boolean).filter((function(e){return e.contains(n.target)}));(i.length>0?u(n,i[0]):!c.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),f=o.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),d=o.useCallback((function(e){n.current=N(e),i.current=void 0}),[]),p=o.useCallback((function(t){f(t.type,D(t),t.target,u(t,e.lockRef.current))}),[]),h=o.useCallback((function(t){f(t.type,N(t),t.target,u(t,e.lockRef.current))}),[]);o.useEffect((function(){return F.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",l,I),document.addEventListener("touchmove",l,I),document.addEventListener("touchstart",d,I),function(){F=F.filter((function(e){return e!==s})),document.removeEventListener("wheel",l,I),document.removeEventListener("touchmove",l,I),document.removeEventListener("touchstart",d,I)}}),[]);var m=e.removeScrollBar,g=e.inert;return o.createElement(o.Fragment,null,g?o.createElement(s,{styles:L(a)}):null,m?o.createElement(A,{gapMode:"margin"}):null)},d.useMedium(B),g),V=o.forwardRef((function(e,t){return o.createElement(h,(0,r.__assign)({},e,{ref:t,sideCar:U}))}));V.classNames=h.classNames;var H=V},11399:function(e,t,n){"use strict";n.d(t,{_P:function(){return o},E7:function(){return a},ex:function(){return s},e:function(){return c},Nz:function(){return u},I2:function(){return i},yv:function(){return j},OJ:function(){return S},p5:function(){return k}});var r="persist:",o="persist/FLUSH",i="persist/REHYDRATE",a="persist/PAUSE",s="persist/PERSIST",c="persist/PURGE",u="persist/REGISTER";function l(e){return l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t,n,r){r.debug;var o=function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function S(e,t){var n=void 0!==e.version?e.version:-1,u=(e.debug,void 0===e.stateReconciler?p:e.stateReconciler),l=e.getStoredState||g,f=void 0!==e.timeout?e.timeout:5e3,d=null,m=!1,v=!0,b=function(e){return e._persist.rehydrated&&d&&!v&&d.update(e),e};return function(p,g){var E=p||{},S=E._persist,T=w(E,["_persist"]);if(g.type===s){var x=!1,A=function(t,n){x||(g.rehydrate(e.key,t,n),x=!0)};if(f&&setTimeout((function(){!x&&A(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))}),f),v=!1,d||(d=h(e)),S)return _({},t(T,g),{_persist:S});if("function"!==typeof g.rehydrate||"function"!==typeof g.register)throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return g.register(e.key),l(e).then((function(t){(e.migrate||function(e,t){return Promise.resolve(e)})(t,n).then((function(e){A(e)}),(function(e){A(void 0,e)}))}),(function(e){A(void 0,e)})),_({},t(T,g),{_persist:{version:n,rehydrated:!1}})}if(g.type===c)return m=!0,g.result(function(e){var t=e.storage,n="".concat(void 0!==e.keyPrefix?e.keyPrefix:r).concat(e.key);return t.removeItem(n,y)}(e)),_({},t(T,g),{_persist:S});if(g.type===o)return g.result(d&&d.flush()),_({},t(T,g),{_persist:S});if(g.type===a)v=!0;else if(g.type===i){if(m)return _({},T,{_persist:_({},S,{rehydrated:!0})});if(g.key===e.key){var O=t(T,g),C=g.payload,I=_({},!1!==u&&void 0!==C?u(C,p,O,e):O,{_persist:_({},S,{rehydrated:!0})});return b(I)}}if(!S)return t(p,g);var P=t(T,g);return P===T?p:b(_({},P,{_persist:S}))}}var T=n(94990);function x(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:I,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case u:return O({},e,{registry:[].concat(x(e.registry),[t.key])});case i:var n=e.registry.indexOf(t.key),r=x(e.registry);return r.splice(n,1),O({},e,{registry:r,bootstrapped:0===r.length});default:return e}};function k(e,t,n){var r=n||!1,l=(0,T.MT)(P,I,t&&t.enhancer?t.enhancer:void 0),f=function(e){l.dispatch({type:u,key:e})},d=function(t,n,o){var a={type:i,payload:n,err:o,key:t};e.dispatch(a),l.dispatch(a),r&&p.getState().bootstrapped&&(r(),r=!1)},p=O({},l,{purge:function(){var t=[];return e.dispatch({type:c,result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:o,result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:a})},persist:function(){e.dispatch({type:s,register:f,rehydrate:d})}});return t&&t.manualPersist||p.persist(),p}function j(e,t){(t||{}).debug;return function(t,n){if(!t)return Promise.resolve(void 0);var r=t._persist&&void 0!==t._persist.version?t._persist.version:-1;if(r===n)return Promise.resolve(t);if(r>n)return Promise.resolve(t);var o=Object.keys(e).map((function(e){return parseInt(e)})).filter((function(e){return n>=e&&e>r})).sort((function(e,t){return e-t}));try{var i=o.reduce((function(t,n){return e[n](t)}),t);return Promise.resolve(i)}catch(a){return Promise.reject(a)}}}},67484:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,o.default)(e);return{getItem:function(e){return new Promise((function(n,r){n(t.getItem(e))}))},setItem:function(e,n){return new Promise((function(r,o){r(t.setItem(e,n))}))},removeItem:function(e){return new Promise((function(n,r){n(t.removeItem(e))}))}}};var r,o=(r=n(40720))&&r.__esModule?r:{default:r}},40720:function(e,t){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(){}t.__esModule=!0,t.default=function(e){var t="".concat(e,"Storage");return function(e){if("object"!==("undefined"===typeof self?"undefined":n(self))||!(e in self))return!1;try{var t=self[e],r="redux-persist ".concat(e," test");t.setItem(r,"test"),t.getItem(r),t.removeItem(r)}catch(o){return!1}return!0}(t)?self[t]:o};var o={getItem:r,setItem:r,removeItem:r}},26097:function(e,t,n){"use strict";var r;t.Z=void 0;var o=(0,((r=n(67484))&&r.__esModule?r:{default:r}).default)("local");t.Z=o},94990:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:String(t)}function i(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t=0?e.clone().text().then(a):e.clone().text()},a=function(e){if(!e)return null;try{return JSON.parse(e)}catch(t){throw new Error("Failed to parse unexpected JSON response: ".concat(e))}};function s(e,t,n){this.name="ResponseError",this.status=e,this.response=t,this.body=n}s.prototype=Error.prototype;var c=function(e){var t=e.response,n=e.body;if(t.ok)return{response:t,body:n};throw new s(t.status,t,n)},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="undefined"===typeof t.body?t:(0,o.default)({headers:{"Content-Type":"application/json"}},t);return fetch(e,n).then((function(e){return i(e).then((function(t){return{response:e,body:t}}))})).then(c)};t.default=u},29125:function(e,t,n){"use strict";Object.defineProperty(t,"gA",{enumerable:!0,get:function(){return r.default}});var r=i(n(63587)),o=i(n(53981));function i(e){return e&&e.__esModule?e:{default:e}}},13635:function(e){var t=new Error("Element already at target scroll position"),n=new Error("Scroll cancelled"),r=Math.min,o=Date.now;function i(e){return function(i,c,u,l){"function"==typeof(u=u||{})&&(l=u,u={}),"function"!=typeof l&&(l=s);var f=o(),d=i[e],p=u.ease||a,h=isNaN(u.duration)?350:+u.duration,m=!1;return d===c?l(t,i[e]):requestAnimationFrame((function t(a){if(m)return l(n,i[e]);var s=o(),u=r(1,(s-f)/h),g=p(u);i[e]=g*(c-d)+d,u<1?requestAnimationFrame(t):requestAnimationFrame((function(){l(null,i[e])}))})),function(){m=!0}}}function a(e){return.5*(1-Math.cos(Math.PI*e))}function s(){}e.exports={left:i("scrollLeft"),top:i("scrollTop")}},69061:function(e,t){var n,r,o;r=[],void 0===(o="function"===typeof(n=function(){function e(e){var t=getComputedStyle(e,null).getPropertyValue("overflow");return t.indexOf("scroll")>-1||t.indexOf("auto")>-1}function t(t){if(t instanceof HTMLElement||t instanceof SVGElement){for(var n=t.parentNode;n.parentNode;){if(e(n))return n;n=n.parentNode}return document.scrollingElement||document.documentElement}}return t})?n.apply(t,r):n)||(e.exports=o)},48521:function(e,t,n){"use strict";var r=n(67597).useLayoutEffect;t.Z=r},29089:function(e,t,n){"use strict";var r=n(67597);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=r.useState,a=r.useEffect,s=r.useLayoutEffect,c=r.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(r){return!0}}var l="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),o=r[0].inst,l=r[1];return s((function(){o.value=n,o.getSnapshot=t,u(o)&&l({inst:o})}),[e,n,t]),a((function(){return u(o)&&l({inst:o}),e((function(){u(o)&&l({inst:o})}))}),[e]),c(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},47239:function(e,t,n){"use strict";var r=n(67597),o=n(34588);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},a=o.useSyncExternalStore,s=r.useRef,c=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var f=s(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;f=u((function(){function e(e){if(!c){if(c=!0,a=e,e=r(e),void 0!==o&&d.hasValue){var t=d.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,s=n)}var a,s,c=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var p=a(e,f[0],f[1]);return c((function(){d.hasValue=!0,d.value=p}),[p]),l(p),p}},34588:function(e,t,n){"use strict";e.exports=n(29089)},38931:function(e,t,n){"use strict";e.exports=n(47239)},93283:function(e,t,n){"use strict";n.d(t,{Xg:function(){return c},f3:function(){return u},mu:function(){return s},vk:function(){return l}});var r=n(88864),o=n(6898),i=n(97680);function a(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[o.L$]=function(){return this},t}function s(e,t,n,r){var i,s=(0,o.j)(e.src),u=null===(i=null===t||void 0===t?void 0:t.options.services)||void 0===i?void 0:i[s.type],l=e.data?(0,o.QX)(e.data,n,r):void 0,f=u?c(u,e.id,l):a(e.id);return f.meta=e,f}function c(e,t,n){var r=a(t);if(r.deferred=!0,(0,o.O4)(e)){var s=r.state=(0,i.J)(void 0,(function(){return(n?e.withContext(n):e).initialState}));r.getSnapshot=function(){return s}}return r}function u(e){return function(e){try{return"function"===typeof e.send}catch(t){return!1}}(e)&&"id"in e}function l(e){var t;return(0,r.pi)(((t={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[o.L$]=function(){return this},t),e)}},34521:function(e,t,n){"use strict";n.d(t,{TL:function(){return l},ZM:function(){return d},j1:function(){return f},j_:function(){return u}});var r=n(88864),o=n(42094),i=n(6898),a=n(89159),s=n(79139),c=n(32819);function u(e,t){if(e===t)return!0;if(void 0===e||void 0===t)return!1;if((0,i.HD)(e)||(0,i.HD)(t))return e===t;var n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((function(n){return u(e[n],t[n])}))}function l(e){return"object"===typeof e&&null!==e&&("value"in e&&"_event"in e)}function f(e,t){var n=e.exec;return(0,r.pi)((0,r.pi)({},e),{exec:void 0!==n?function(){return n(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})}var d=function(){function e(e){var t,n=this;this.actions=[],this.activities=o.qP,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||o.qP,this.meta=(0,a.xZ)(e.configuration),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=null!==(t=Array.isArray(e.tags)?new Set(e.tags):e.tags)&&void 0!==t?t:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return(0,a.nJ)(n.configuration)}})}return e.from=function(t,n){return t instanceof e?t.context!==n?new e({value:t.value,context:n,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t:new e({value:t,context:n,_event:s.bf,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,n){if(t instanceof e){if(!t.actions.length)return t;var r=s.bf;return new e({value:t.value,context:n,_event:r,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}})}return e.from(t,n)},e.prototype.toStrings=function(e,t){var n=this;if(void 0===e&&(e=this.value),void 0===t&&(t="."),(0,i.HD)(e))return[e];var o=Object.keys(e);return o.concat.apply(o,(0,r.ev)([],(0,r.CR)(o.map((function(r){return n.toStrings(e[r],t).map((function(e){return r+t+e}))}))),!1))},e.prototype.toJSON=function(){var e=this;e.configuration,e.transitions;var t=e.tags;e.machine;var n=(0,r._T)(e,["configuration","transitions","tags","machine"]);return(0,r.pi)((0,r.pi)({},n),{tags:Array.from(t)})},e.prototype.matches=function(e){return(0,i.W)(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){var t;c.M&&(0,i.ZK)(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var n=null===(t=this.machine)||void 0===t?void 0:t.getTransitionData(this,e);return!!(null===n||void 0===n?void 0:n.transitions.length)&&n.transitions.some((function(e){return void 0!==e.target||e.actions.length}))},e}()},88864:function(e,t,n){"use strict";n.d(t,{CR:function(){return a},XA:function(){return i},_T:function(){return o},ev:function(){return s},pi:function(){return r}});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function a(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function s(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o0;){var t=o.shift();n=e.transition(n,t,s),r.forEach((function(e){return e.next(n)}))}i=!1}}()},getSnapshot:function(){return n},subscribe:function(e,t,o){var i=(0,u.zM)(e,t,o);return r.add(i),i.next(n),{unsubscribe:function(){r.delete(i)}}}}),s={parent:t.parent,self:a,id:t.id||"anonymous",observers:r};return n=e.start?e.start(s):n,a}var S,T={sync:!1,autoForward:!1};!function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(S||(S={}));var x=function(){function e(t,n){void 0===n&&(n=e.defaultOptions);var i=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=S.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if((0,u.kJ)(e))return i.batch(e),i.state;var n=(0,u.g5)((0,u._v)(e,t));if(i.status===S.Stopped)return c.M||(0,u.ZK)(!1,'Event "'.concat(n.name,'" was sent to stopped service "').concat(i.machine.id,'". This service has already reached its final state, and will not transition.\nEvent: ').concat(JSON.stringify(n.data))),i.state;if(i.status!==S.Running&&!i.options.deferEvents)throw new Error('Event "'.concat(n.name,'" was sent to uninitialized service "').concat(i.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(n.data)));return i.scheduler.schedule((function(){i.forward(n);var e=i._nextState(n);i.update(e,n)})),i._state},this.sendTo=function(e,t,n){var l=i.parent&&(t===o.K.Parent||i.parent.id===t),f=l?i.parent:(0,u.HD)(t)?t===o.K.Internal?i:i.children.get(t)||v(t):(0,u.Bc)(t)?t:void 0;if(f)if("machine"in f){if(i.status!==S.Stopped||i.parent!==f||i.state.done){var d=(0,r.pi)((0,r.pi)({},e),{name:e.name===a.vU?"".concat((0,s.vU)(i.id)):e.name,origin:i.sessionId});!n&&i.machine.config.predictableActionArguments?i._outgoingQueue.push([f,d]):f.send(d)}}else!n&&i.machine.config.predictableActionArguments?i._outgoingQueue.push([f,e.data]):f.send(e.data);else{if(!l)throw new Error("Unable to send event to child '".concat(t,"' from service '").concat(i.id,"'."));c.M||(0,u.ZK)(!1,"Service '".concat(i.id,"' has no parent: unable to send event ").concat(e.type))}},this._exec=function(e,t,n,r){void 0===r&&(r=i.machine.options.actions);var l=e.exec||(0,s.o$)(e.type,r),f=(0,u.mf)(l)?l:l?l.exec:e.exec;if(f)try{return f(t,n.data,i.machine.config.predictableActionArguments?{action:e,_event:n}:{action:e,state:i.state,_event:n})}catch(O){throw i.parent&&i.parent.send({type:"xstate.error",data:O}),O}switch(e.type){case a.OU:var d=e;i.defer(d);break;case a.lW:var p=e;if("number"===typeof p.delay)return void i.defer(p);p.to?i.sendTo(p._event,p.to,n===s.bf):i.send(p._event);break;case a.al:i.cancel(e.sendId);break;case a.BL:if(i.status!==S.Running)return;var h=e.activity;if(!i.machine.config.predictableActionArguments&&!i.state.activities[h.id||h.type])break;if(h.type===o.M.Invoke){var m=(0,u.j)(h.src),g=i.machine.options.services?i.machine.options.services[m.type]:void 0,v=h.id,y=h.data;c.M||(0,u.ZK)(!("forward"in h),"`forward` property is deprecated (found in invocation of '".concat(h.src,"' in in machine '").concat(i.machine.id,"'). ")+"Please use `autoForward` instead.");var b="autoForward"in h?h.autoForward:!!h.forward;if(!g)return void(c.M||(0,u.ZK)(!1,"No service found for invocation '".concat(h.src,"' in machine '").concat(i.machine.id,"'.")));var _=y?(0,u.QX)(y,t,n):void 0;if("string"===typeof g)return;var E=(0,u.mf)(g)?g(t,n.data,{data:_,src:m,meta:h.meta}):g;if(!E)return;var w=void 0;(0,u.O4)(E)&&(E=_?E.withContext(_):E,w={autoForward:b}),i.spawn(E,v,w)}else i.spawnActivity(h);break;case a.sT:i.stopChild(e.activity.id);break;case a.cM:var T=e,x=T.label,A=T.value;x?i.logger(x,A):i.logger(A);break;default:c.M||(0,u.ZK)(!1,"No implementation found for action type '".concat(e.type,"'"))}};var l=(0,r.pi)((0,r.pi)({},e.defaultOptions),n),d=l.clock,p=l.logger,h=l.parent,g=l.id,y=void 0!==g?g:t.id;this.id=y,this.logger=p,this.clock=d,this.parent=h,this.options=l,this.scheduler=new f({deferEvents:this.options.deferEvents}),this.sessionId=m()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:(0,E.J)(this,(function(){return e._initialState=e.machine.initialState,e._initialState}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return c.M||(0,u.ZK)(this.status!==S.NotStarted,"Attempted to read state from uninitialized service '".concat(this.id,"'. Make sure the service is started first.")),this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(e,t){var n,o;try{for(var i=(0,r.XA)(e.actions),a=i.next();!a.done;a=i.next()){var s=a.value;this.exec(s,e,t)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},e.prototype.update=function(e,t){var n,o,i,a,c,l,f,d,p=this;if(e._sessionid=this.sessionId,this._state=e,this.machine.config.predictableActionArguments&&t!==s.bf||!this.options.execute)for(var h=void 0;h=this._outgoingQueue.shift();)h[0].send(h[1]);else this.execute(this.state);if(this.children.forEach((function(e){p.state.children[e.id]=e})),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var m=(0,r.XA)(this.eventListeners),g=m.next();!g.done;g=m.next()){(0,g.value)(e.event)}}catch(A){n={error:A}}finally{try{g&&!g.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}try{for(var v=(0,r.XA)(this.listeners),b=v.next();!b.done;b=v.next()){(0,b.value)(e,e.event)}}catch(O){i={error:O}}finally{try{b&&!b.done&&(a=v.return)&&a.call(v)}finally{if(i)throw i.error}}try{for(var _=(0,r.XA)(this.contextListeners),E=_.next();!E.done;E=_.next()){(0,E.value)(this.state.context,this.state.history?this.state.history.context:void 0)}}catch(C){c={error:C}}finally{try{E&&!E.done&&(l=_.return)&&l.call(_)}finally{if(c)throw c.error}}if(this.state.done){var w=e.configuration.find((function(e){return"final"===e.type&&e.parent===p.machine})),S=w&&w.doneData?(0,u.QX)(w.doneData,e.context,t):void 0;this._doneEvent=(0,s.Sl)(this.id,S);try{for(var T=(0,r.XA)(this.doneListeners),x=T.next();!x.done;x=T.next()){(0,x.value)(this._doneEvent)}}catch(I){f={error:I}}finally{try{x&&!x.done&&(d=T.return)&&d.call(T)}finally{if(f)throw f.error}}this._stop(),this._stopChildren(),y(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===S.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,n){var r=this,o=(0,u.zM)(e,t,n);this.listeners.add(o.next),this.status!==S.NotStarted&&o.next(this.state);var i=function(){r.doneListeners.delete(i),r.stopListeners.delete(i),o.complete()};return this.status===S.Stopped?o.complete():(this.onDone(i),this.onStop(i)),{unsubscribe:function(){r.listeners.delete(o.next),r.doneListeners.delete(i),r.stopListeners.delete(i)}}},e.prototype.onEvent=function(e){return this.eventListeners.add(e),this},e.prototype.onSend=function(e){return this.sendListeners.add(e),this},e.prototype.onChange=function(e){return this.contextListeners.add(e),this},e.prototype.onStop=function(e){return this.stopListeners.add(e),this},e.prototype.onDone=function(e){return this.status===S.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},e.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},e.prototype.start=function(e){var t=this;if(this.status===S.Running)return this;this.machine._init(),g(this.sessionId,this),this.initialized=!0,this.status=S.Running;var n=void 0===e?this.initialState:(0,E.J)(this,(function(){return(0,i.TL)(e)?t.machine.resolveState(e):t.machine.resolveState(i.ZM.from(e,t.machine.context))}));return this.options.devTools&&this.attachDev(),this.scheduler.initialize((function(){t.update(n,s.bf)})),this},e.prototype._stopChildren=function(){this.children.forEach((function(e){(0,u.mf)(e.stop)&&e.stop()})),this.children.clear()},e.prototype._stop=function(){var e,t,n,o,i,a,s,c,u,l;try{for(var d=(0,r.XA)(this.listeners),p=d.next();!p.done;p=d.next()){var h=p.value;this.listeners.delete(h)}}catch(x){e={error:x}}finally{try{p&&!p.done&&(t=d.return)&&t.call(d)}finally{if(e)throw e.error}}try{for(var m=(0,r.XA)(this.stopListeners),g=m.next();!g.done;g=m.next()){(h=g.value)(),this.stopListeners.delete(h)}}catch(A){n={error:A}}finally{try{g&&!g.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}try{for(var v=(0,r.XA)(this.contextListeners),y=v.next();!y.done;y=v.next()){h=y.value;this.contextListeners.delete(h)}}catch(O){i={error:O}}finally{try{y&&!y.done&&(a=v.return)&&a.call(v)}finally{if(i)throw i.error}}try{for(var b=(0,r.XA)(this.doneListeners),_=b.next();!_.done;_=b.next()){h=_.value;this.doneListeners.delete(h)}}catch(C){s={error:C}}finally{try{_&&!_.done&&(c=b.return)&&c.call(b)}finally{if(s)throw s.error}}if(!this.initialized)return this;this.initialized=!1,this.status=S.Stopped,this._initialState=void 0;try{for(var E=(0,r.XA)(Object.keys(this.delayedEventsMap)),w=E.next();!w.done;w=E.next()){var T=w.value;this.clock.clearTimeout(this.delayedEventsMap[T])}}catch(I){u={error:I}}finally{try{w&&!w.done&&(l=E.return)&&l.call(E)}finally{if(u)throw u.error}}this.scheduler.clear(),this.scheduler=new f({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var e=this,t=this.scheduler;return this._stop(),t.schedule((function(){var t;if(!(null===(t=e._state)||void 0===t?void 0:t.done)){var n=(0,u.g5)({type:"xstate.stop"}),o=(0,E.J)(e,(function(){var t=(0,u.xH)((0,r.ev)([],(0,r.CR)(e.state.configuration),!1).sort((function(e,t){return t.order-e.order})).map((function(t){return(0,s.AE)(t.onExit,e.machine.options.actions)}))),o=(0,r.CR)((0,s.yC)(e.machine,e.state,e.state.context,n,[{type:"exit",actions:t}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),a=o[0],c=o[1],l=new i.ZM({value:e.state.value,context:c,_event:n,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:a.filter((function(e){return!(0,u.vK)(e)})),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return l.changed=!0,l}));e.update(o,n),e._stopChildren(),y(e.sessionId)}})),this},e.prototype.batch=function(e){var t=this;if(this.status===S.NotStarted&&this.options.deferEvents)c.M||(0,u.ZK)(!1,"".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'" and are deferred. Make sure .start() is called for this service.\nEvent: ').concat(JSON.stringify(event)));else if(this.status!==S.Running)throw new Error("".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(e.length){var n=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule((function(){var o,a,s=t.state,c=!1,l=[],f=function(e){var o=(0,u.g5)(e);t.forward(o),s=(0,E.J)(t,(function(){return t.machine.transition(s,o,void 0,n||void 0)})),l.push.apply(l,(0,r.ev)([],(0,r.CR)(t.machine.config.predictableActionArguments?s.actions:s.actions.map((function(e){return(0,i.j1)(e,s)}))),!1)),c=c||!!s.changed};try{for(var d=(0,r.XA)(e),p=d.next();!p.done;p=d.next()){f(p.value)}}catch(h){o={error:h}}finally{try{p&&!p.done&&(a=d.return)&&a.call(d)}finally{if(o)throw o.error}}s.changed=c,s.actions=l,t.update(s,(0,u.g5)(e[e.length-1]))}))}},e.prototype.sender=function(e){return this.send.bind(this,e)},e.prototype._nextState=function(e,t){var n=this;void 0===t&&(t=!!this.machine.config.predictableActionArguments&&this._exec);var r=(0,u.g5)(e);if(0===r.name.indexOf(a.Mg)&&!this.state.nextEvents.some((function(e){return 0===e.indexOf(a.Mg)})))throw r.data.data;return(0,E.J)(this,(function(){return n.machine.transition(n.state,r,void 0,t||void 0)}))},e.prototype.nextState=function(e){return this._nextState(e,!1)},e.prototype.forward=function(e){var t,n;try{for(var o=(0,r.XA)(this.forwardTo),i=o.next();!i.done;i=o.next()){var a=i.value,s=this.children.get(a);if(!s)throw new Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(a,"'."));s.send(e)}}catch(c){t={error:c}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}},e.prototype.defer=function(e){var t=this,n=this.clock.setTimeout((function(){"to"in e&&e.to?t.sendTo(e._event,e.to,!0):t.send(e._event)}),e.delay);e.id&&(this.delayedEventsMap[e.id]=n)},e.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},e.prototype.exec=function(e,t,n){void 0===n&&(n=this.machine.options.actions),this._exec(e,t.context,t._event,n)},e.prototype.removeChild=function(e){var t;this.children.delete(e),this.forwardTo.delete(e),null===(t=this.state)||void 0===t||delete t.children[e]},e.prototype.stopChild=function(e){var t=this.children.get(e);t&&(this.removeChild(e),(0,u.mf)(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,n){if(this.status!==S.Running)return(0,d.Xg)(e,t);if((0,u.y8)(e))return this.spawnPromise(Promise.resolve(e),t);if((0,u.mf)(e))return this.spawnCallback(e,t);if((0,d.f3)(e))return this.spawnActor(e,t);if((0,u.bi)(e))return this.spawnObservable(e,t);if((0,u.O4)(e))return this.spawnMachine(e,(0,r.pi)((0,r.pi)({},n),{id:t}));if((0,u.HV)(e))return this.spawnBehavior(e,t);throw new Error('Unable to spawn entity "'.concat(t,'" of type "').concat(typeof e,'".'))},e.prototype.spawnMachine=function(t,n){var o=this;void 0===n&&(n={});var i=new e(t,(0,r.pi)((0,r.pi)({},this.options),{parent:this,id:n.id||t.id})),s=(0,r.pi)((0,r.pi)({},T),n);s.sync&&i.onTransition((function(e){o.send(a.Vx,{state:e,id:i.id})}));var c=i;return this.children.set(i.id,c),s.autoForward&&this.forwardTo.add(i.id),i.onDone((function(e){o.removeChild(i.id),o.send((0,u.g5)(e,{origin:i.id}))})).start(),c},e.prototype.spawnBehavior=function(e,t){var n=w(e,{id:t,parent:this});return this.children.set(t,n),n},e.prototype.spawnPromise=function(e,t){var n,r,o=this,i=!1;e.then((function(e){i||(r=e,o.removeChild(t),o.send((0,u.g5)((0,s.Sl)(t,e),{origin:t})))}),(function(e){if(!i){o.removeChild(t);var n=(0,s.vU)(t,e);try{o.send((0,u.g5)(n,{origin:t}))}catch(r){(0,u.v4)(e,r,t),o.devTools&&o.devTools.send(n,o.state),o.machine.strict&&o.stop()}}}));var a=((n={id:t,send:function(){},subscribe:function(t,n,r){var o=(0,u.zM)(t,n,r),i=!1;return e.then((function(e){i||(o.next(e),i||o.complete())}),(function(e){i||o.error(e)})),{unsubscribe:function(){return i=!0}}},stop:function(){i=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[u.L$]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnCallback=function(e,t){var n,r,o,i=this,a=!1,c=new Set,l=new Set;try{o=e((function(e){r=e,l.forEach((function(t){return t(e)})),a||i.send((0,u.g5)(e,{origin:t}))}),(function(e){c.add(e)}))}catch(d){this.send((0,s.vU)(t,d))}if((0,u.y8)(o))return this.spawnPromise(o,t);var f=((n={id:t,send:function(e){return c.forEach((function(t){return t(e)}))},subscribe:function(e){var t=(0,u.zM)(e);return l.add(t.next),{unsubscribe:function(){l.delete(t.next)}}},stop:function(){a=!0,(0,u.mf)(o)&&o()},toJSON:function(){return{id:t}},getSnapshot:function(){return r}})[u.L$]=function(){return this},n);return this.children.set(t,f),f},e.prototype.spawnObservable=function(e,t){var n,r,o=this,i=e.subscribe((function(e){r=e,o.send((0,u.g5)(e,{origin:t}))}),(function(e){o.removeChild(t),o.send((0,u.g5)((0,s.vU)(t,e),{origin:t}))}),(function(){o.removeChild(t),o.send((0,u.g5)((0,s.Sl)(t),{origin:t}))})),a=((n={id:t,send:function(){},subscribe:function(t,n,r){return e.subscribe(t,n,r)},stop:function(){return i.unsubscribe()},getSnapshot:function(){return r},toJSON:function(){return{id:t}}})[u.L$]=function(){return this},n);return this.children.set(t,a),a},e.prototype.spawnActor=function(e,t){return this.children.set(t,e),e},e.prototype.spawnActivity=function(e){var t=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(t){var n=t(this.state.context,e);this.spawnEffect(e.id,n)}else c.M||(0,u.ZK)(!1,"No implementation found for activity '".concat(e.type,"'"))},e.prototype.spawnEffect=function(e,t){var n;this.children.set(e,((n={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:t||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}})[u.L$]=function(){return this},n))},e.prototype.attachDev=function(){var e=b();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var t="object"===typeof this.options.devTools?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect((0,r.pi)((0,r.pi)({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:(0,r.pi)({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}_(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[u.L$]=function(){return this},e.prototype.getSnapshot=function(){return this.status===S.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e,t){return setTimeout(e,t)},clearTimeout:function(e){return clearTimeout(e)}},logger:console.log.bind(console),devTools:!1},e.interpret=O,e}();function A(e,t){var n=function(e){return(0,u.HD)(e)?(0,r.pi)((0,r.pi)({},T),{name:e}):(0,r.pi)((0,r.pi)((0,r.pi)({},T),{name:(0,u.EL)()}),e)}(t);return(0,E.F)((function(t){if(!c.M){var r=(0,u.O4)(e)||(0,u.mf)(e);(0,u.ZK)(!!t||r,'Attempted to spawn an Actor (ID: "'.concat((0,u.O4)(e)?e.id:"undefined",'") outside of a service. This will have no effect.'))}return t?t.spawn(e,n.name,n):(0,d.Xg)(e,n.name)}))}function O(e,t){return new x(e,t)}},97680:function(e,t,n){"use strict";n.d(t,{F:function(){return i},J:function(){return o}});var r=[],o=function(e,t){r.push(e);var n=t(e);return r.pop(),n},i=function(e){return e(r[r.length-1])}},89159:function(e,t,n){"use strict";n.d(t,{G:function(){return s},Ij:function(){return m},N9:function(){return i},NA:function(){return d},Oe:function(){return v},P_:function(){return u},ac:function(){return c},e$:function(){return p},nI:function(){return a},nJ:function(){return h},xZ:function(){return g}});var r=n(88864),o=n(6898),i=function(e){return"atomic"===e.type||"final"===e.type};function a(e){return Object.keys(e.states).map((function(t){return e.states[t]}))}function s(e){return a(e).filter((function(e){return"history"!==e.type}))}function c(e){var t=[e];return i(e)?t:t.concat((0,o.xH)(s(e).map(c)))}function u(e,t){var n,o,i,a,c,u,l,d,p=f(new Set(e)),h=new Set(t);try{for(var m=(0,r.XA)(h),g=m.next();!g.done;g=m.next())for(var v=(A=g.value).parent;v&&!h.has(v);)h.add(v),v=v.parent}catch(O){n={error:O}}finally{try{g&&!g.done&&(o=m.return)&&o.call(m)}finally{if(n)throw n.error}}var y=f(h);try{for(var b=(0,r.XA)(h),_=b.next();!_.done;_=b.next()){if("compound"!==(A=_.value).type||y.get(A)&&y.get(A).length){if("parallel"===A.type)try{for(var E=(c=void 0,(0,r.XA)(s(A))),w=E.next();!w.done;w=E.next()){var S=w.value;h.has(S)||(h.add(S),p.get(S)?p.get(S).forEach((function(e){return h.add(e)})):S.initialStateNodes.forEach((function(e){return h.add(e)})))}}catch(C){c={error:C}}finally{try{w&&!w.done&&(u=E.return)&&u.call(E)}finally{if(c)throw c.error}}}else p.get(A)?p.get(A).forEach((function(e){return h.add(e)})):A.initialStateNodes.forEach((function(e){return h.add(e)}))}}catch(I){i={error:I}}finally{try{_&&!_.done&&(a=b.return)&&a.call(b)}finally{if(i)throw i.error}}try{for(var T=(0,r.XA)(h),x=T.next();!x.done;x=T.next()){var A;for(v=(A=x.value).parent;v&&!h.has(v);)h.add(v),v=v.parent}}catch(P){l={error:P}}finally{try{x&&!x.done&&(d=T.return)&&d.call(T)}finally{if(l)throw l.error}}return h}function l(e,t){var n=t.get(e);if(!n)return{};if("compound"===e.type){var r=n[0];if(!r)return{};if(i(r))return r.key}var o={};return n.forEach((function(e){o[e.key]=l(e,t)})),o}function f(e){var t,n,o=new Map;try{for(var i=(0,r.XA)(e),a=i.next();!a.done;a=i.next()){var s=a.value;o.has(s)||o.set(s,[]),s.parent&&(o.has(s.parent)||o.set(s.parent,[]),o.get(s.parent).push(s))}}catch(c){t={error:c}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o}function d(e,t){return l(e,f(u([e],t)))}function p(e,t){return Array.isArray(e)?e.some((function(e){return e===t})):e instanceof Set&&e.has(t)}function h(e){return(0,r.ev)([],(0,r.CR)(new Set((0,o.xH)((0,r.ev)([],(0,r.CR)(e.map((function(e){return e.ownEvents}))),!1)))),!1)}function m(e,t){return"compound"===t.type?s(t).some((function(t){return"final"===t.type&&p(e,t)})):"parallel"===t.type&&s(t).every((function(t){return m(e,t)}))}function g(e){return void 0===e&&(e=[]),e.reduce((function(e,t){return void 0!==t.meta&&(e[t.id]=t.meta),e}),{})}function v(e){return new Set((0,o.xH)(e.map((function(e){return e.tags}))))}},30171:function(e,t,n){"use strict";var r,o;n.d(t,{K:function(){return o},M:function(){return r}}),function(e){e.Start="xstate.start",e.Stop="xstate.stop",e.Raise="xstate.raise",e.Send="xstate.send",e.Cancel="xstate.cancel",e.NullEvent="",e.Assign="xstate.assign",e.After="xstate.after",e.DoneState="done.state",e.DoneInvoke="done.invoke",e.Log="xstate.log",e.Init="xstate.init",e.Invoke="xstate.invoke",e.ErrorExecution="error.execution",e.ErrorCommunication="error.communication",e.ErrorPlatform="error.platform",e.ErrorCustom="xstate.error",e.Update="xstate.update",e.Pure="xstate.pure",e.Choose="xstate.choose"}(r||(r={})),function(e){e.Parent="#_parent",e.Internal="#_internal"}(o||(o={}))},6898:function(e,t,n){"use strict";n.d(t,{Bc:function(){return M},EL:function(){return F},ET:function(){return g},HD:function(){return R},HV:function(){return x},JQ:function(){return S},L$:function(){return Z},O4:function(){return L},Q8:function(){return h},Q9:function(){return f},QX:function(){return w},Qi:function(){return N},SA:function(){return y},W:function(){return u},WM:function(){return d},ZK:function(){return P},_v:function(){return B},bi:function(){return D},bx:function(){return $},dt:function(){return I},g5:function(){return U},gk:function(){return v},ib:function(){return m},j:function(){return W},jh:function(){return V},kJ:function(){return k},mf:function(){return j},on:function(){return p},qo:function(){return E},rg:function(){return H},uK:function(){return A},v4:function(){return q},vK:function(){return Y},vx:function(){return G},x6:function(){return l},xH:function(){return b},y8:function(){return T},yv:function(){return C},zM:function(){return z}});var r,o=n(88864),i=n(30171),a=n(14494),s=n(42094),c=n(32819);function u(e,t,n){void 0===n&&(n=s.iS);var r=d(e,n),o=d(t,n);return R(o)?!!R(r)&&o===r:R(r)?r in o:Object.keys(r).every((function(e){return e in o&&u(r[e],o[e])}))}function l(e){try{return R(e)||"number"===typeof e?"".concat(e):e.type}catch(t){throw new Error("Events must be strings or objects with a string event.type property.")}}function f(e,t){try{return k(e)?e:e.toString().split(t)}catch(n){throw new Error("'".concat(e,"' is not a valid state path."))}}function d(e,t){return"object"===typeof(n=e)&&"value"in n&&"context"in n&&"event"in n&&"_event"in n?e.value:k(e)?p(e):"string"!==typeof e?e:p(f(e,t));var n}function p(e){if(1===e.length)return e[0];for(var t={},n=t,r=0;r0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a},t.__rest=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}},69797:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4585),o=r.ActionTypes.Start,i=r.ActionTypes.Stop,a=r.ActionTypes.Raise,s=r.ActionTypes.Send,c=r.ActionTypes.Cancel,u=r.ActionTypes.NullEvent,l=r.ActionTypes.Assign,f=r.ActionTypes.After,d=r.ActionTypes.DoneState,p=r.ActionTypes.Log,h=r.ActionTypes.Init,m=r.ActionTypes.Invoke,g=r.ActionTypes.ErrorExecution,v=r.ActionTypes.ErrorPlatform,y=r.ActionTypes.ErrorCustom,b=r.ActionTypes.Update,_=r.ActionTypes.Choose,E=r.ActionTypes.Pure;t.after=f,t.assign=l,t.cancel=c,t.choose=_,t.doneState=d,t.error=y,t.errorExecution=g,t.errorPlatform=v,t.init=h,t.invoke=m,t.log=p,t.nullEvent=u,t.pure=E,t.raise=a,t.send=s,t.start=o,t.stop=i,t.update=b},13173:function(e,t,n){"use strict";var r=n(50667),o=n(4585),i=n(69797),a=n(36020),s=n(83670),c=a.toSCXMLEvent({type:i.init});function u(e,t){return t&&t[e]||void 0}function l(e,t){var n;if(a.isString(e)||"number"===typeof e){var o=u(e,t);n=a.isFunction(o)?{type:e,exec:o}:o||{type:e,exec:void 0}}else if(a.isFunction(e))n={type:e.name||e.toString(),exec:e};else{o=u(e.type,t);if(a.isFunction(o))n=r.__assign(r.__assign({},e),{exec:o});else if(o){var i=o.type||e.type;n=r.__assign(r.__assign(r.__assign({},o),e),{type:i})}else n=e}return n}var f=function(e,t){return e?(a.isArray(e)?e:[e]).map((function(e){return l(e,t)})):[]};function d(e){var t=l(e);return r.__assign(r.__assign({id:a.isString(e)?e:t.id},t),{type:t.type})}function p(e,t,n,o){var s,c={_event:n},u=a.toSCXMLEvent(a.isFunction(e.event)?e.event(t,n.data,c):e.event);if(a.isString(e.delay)){var l=o&&o[e.delay];s=a.isFunction(l)?l(t,n.data,c):l}else s=a.isFunction(e.delay)?e.delay(t,n.data,c):e.delay;return r.__assign(r.__assign({},e),{type:i.raise,_event:u,delay:s})}function h(e,t){return{to:t?t.to:void 0,type:i.send,event:a.isFunction(e)?e:a.toEventObject(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:a.isFunction(e)?e.name:a.getEventType(e)}}function m(e,t,n,o){var i,s={_event:n},c=a.toSCXMLEvent(a.isFunction(e.event)?e.event(t,n.data,s):e.event);if(a.isString(e.delay)){var u=o&&o[e.delay];i=a.isFunction(u)?u(t,n.data,s):u}else i=a.isFunction(e.delay)?e.delay(t,n.data,s):e.delay;var l=a.isFunction(e.to)?e.to(t,n.data,s):e.to;return r.__assign(r.__assign({},e),{to:l,_event:c,event:c.data,delay:i})}function g(e,t){return h(e,r.__assign(r.__assign({},t),{to:o.SpecialTargets.Parent}))}var v=function(e,t){return{context:e,event:t}};var y=function(e,t,n){return r.__assign(r.__assign({},e),{value:a.isString(e.expr)?e.expr:e.expr(t,n.data,{_event:n})})};function b(e,t,n){var r=a.isFunction(e.activity)?e.activity(t,n.data):e.activity,i="string"===typeof r?{id:r}:r;return{type:o.ActionTypes.Stop,activity:i}}t.f0=function(e){return{type:i.assign,assignment:e}},t.Tn=function(e,t){if(!s.IS_PRODUCTION&&(!e||"function"===typeof e)){var n=e;e=function(){for(var e=[],t=0;t({name:`${r}:@sentry/${e}`,version:i.J}))),version:i.J}),e._metadata=o}var s=n(74961);function c(e){if("boolean"===typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const t=(0,s.s3)(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}var u=n(438),l=n(41610),f=n(65527),d=n(77932),p=n(18576),h=n(10164);const m=[];function g(e){const t=e.defaultIntegrations||[],n=e.integrations;let r;t.forEach((e=>{e.isDefaultInstance=!0})),r=Array.isArray(n)?[...t,...n]:"function"===typeof n?(0,l.lE)(n(t)):t;const o=function(e){const t={};return e.forEach((e=>{const{name:n}=e,r=t[n];r&&!r.isDefaultInstance&&e.isDefaultInstance||(t[n]=e)})),Object.keys(t).map((e=>t[e]))}(r),i=function(e,t){for(let n=0;n"Debug"===e.name));if(-1!==i){const[e]=o.splice(i,1);o.push(e)}return o}function v(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function y(e,t,n){if(n[t.name])d.X&&f.kg.log(`Integration skipped because it was already installed: ${t.name}`);else{if(n[t.name]=t,-1===m.indexOf(t.name)&&(t.setupOnce(p.cc,h.Gd),m.push(t.name)),t.setup&&"function"===typeof t.setup&&t.setup(e),e.on&&"function"===typeof t.preprocessEvent){const n=t.preprocessEvent.bind(t);e.on("preprocessEvent",((t,r)=>n(t,r,e)))}if(e.addEventProcessor&&"function"===typeof t.processEvent){const n=t.processEvent.bind(t),r=Object.assign(((t,r)=>n(t,r,e)),{id:t.name});e.addEventProcessor(r)}d.X&&f.kg.log(`Integration installed: ${t.name}`)}}function b(e,t){return Object.assign((function(...e){return t(...e)}),{id:e})}let _;const E="FunctionToString",w=new WeakMap,S=()=>({name:E,setupOnce(){_=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=(0,u.HK)(this),n=w.has((0,s.s3)())&&void 0!==t?t:this;return _.apply(n,e)}}catch(e){}},setup(e){w.set(e,!0)}}),T=b(E,S);var x=n(94492);const A=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],O=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],C="InboundFilters",I=(e={})=>({name:C,setupOnce(){},processEvent(t,n,r){const o=r.getOptions(),i=function(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:A],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:O],ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,o);return function(e,t){if(t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(t){}return!1}(e))return d.X&&f.kg.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${(0,l.jH)(e)}`),!0;if(function(e,t){if(e.type||!t||!t.length)return!1;return function(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch(r){}n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`));d.X&&0===t.length&&f.kg.error(`Could not extract message for event ${(0,l.jH)(e)}`);return t}(e).some((e=>(0,x.U0)(e,t)))}(e,t.ignoreErrors))return d.X&&f.kg.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${(0,l.jH)(e)}`),!0;if(function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;const n=e.transaction;return!!n&&(0,x.U0)(n,t)}(e,t.ignoreTransactions))return d.X&&f.kg.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${(0,l.jH)(e)}`),!0;if(function(e,t){if(!t||!t.length)return!1;const n=k(e);return!!n&&(0,x.U0)(n,t)}(e,t.denyUrls))return d.X&&f.kg.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${(0,l.jH)(e)}.\nUrl: ${k(e)}`),!0;if(!function(e,t){if(!t||!t.length)return!0;const n=k(e);return!n||(0,x.U0)(n,t)}(e,t.allowUrls))return d.X&&f.kg.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${(0,l.jH)(e)}.\nUrl: ${k(e)}`),!0;return!1}(t,i)?null:t}}),P=b(C,I);function k(e){try{let n;try{n=e.exception.values[0].stacktrace.frames}catch(t){}return n?function(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&""!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(n):null}catch(n){return d.X&&f.kg.error(`Cannot extract url for event ${(0,l.jH)(e)}`),null}}var j=n(61943);function R(e,t,n=250,r,o,i,a){if(!i.exception||!i.exception.values||!a||!(0,j.V9)(a.originalException,Error))return;const s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;var c,u;s&&(i.exception.values=(c=N(e,t,o,a.originalException,r,i.exception.values,s,0),u=n,c.map((e=>(e.value&&(e.value=(0,x.$G)(e.value,u)),e)))))}function N(e,t,n,r,o,i,a,s){if(i.length>=n+1)return i;let c=[...i];if((0,j.V9)(r[o],Error)){D(a,s);const i=e(t,r[o]),u=c.length;Z(i,o,u,s),c=N(e,t,n,r[o],o,[i,...c],i,u)}return Array.isArray(r.errors)&&r.errors.forEach(((r,i)=>{if((0,j.V9)(r,Error)){D(a,s);const u=e(t,r),l=c.length;Z(u,`errors[${i}]`,l,s),c=N(e,t,n,r,o,[u,...c],u,l)}})),c}function D(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function Z(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function L(e,t){return e(t.stack||"",1)}function M(e,t){const n={type:t.name||t.constructor.name,value:t.message},r=L(e,t);return r.length&&(n.stacktrace={frames:r}),n}const F="LinkedErrors",B=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:F,setupOnce(){},preprocessEvent(e,r,o){const i=o.getOptions();R(M,i.stackParser,i.maxValueLength,n,t,e,r)}}},U=b(F,B),V=r;var H=n(71950);const q=H.n2;let G=0;function W(){return G>0}function z(){G++,setTimeout((()=>{G--}))}function $(e,t={},n){if("function"!==typeof e)return e;try{const t=e.__sentry_wrapped__;if(t)return t;if((0,u.HK)(e))return e}catch(o){return e}const r=function(){const r=Array.prototype.slice.call(arguments);try{n&&"function"===typeof n&&n.apply(this,arguments);const o=r.map((e=>$(e,t)));return e.apply(this,o)}catch(o){throw z(),(0,s.$e)((e=>{e.addEventProcessor((e=>(t.mechanism&&((0,l.Db)(e,void 0,void 0),(0,l.EG)(e,t.mechanism)),e.extra={...e.extra,arguments:r},e))),(0,s.Tb)(o)})),o}};try{for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t])}catch(i){}(0,u.$Q)(r,e),(0,u.xp)(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>e.name})}catch(i){}return r}var Y=n(53429),K=n(55013);const X={},J={};function Q(e,t){X[e]=X[e]||[],X[e].push(t)}function ee(e,t){J[e]||(t(),J[e]=!0)}function te(e,t){const n=e&&X[e];if(n)for(const o of n)try{o(t)}catch(r){Y.X&&f.kg.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,K.$P)(o)}\nError:`,r)}}let ne=null;function re(e){const t="error";Q(t,e),ee(t,oe)}function oe(){ne=H.n2.onerror,H.n2.onerror=function(e,t,n,r,o){const i={column:r,error:o,line:n,msg:e,url:t};return te("error",i),!(!ne||ne.__SENTRY_LOADER__)&&ne.apply(this,arguments)},H.n2.onerror.__SENTRY_INSTRUMENTED__=!0}let ie=null;function ae(e){const t="unhandledrejection";Q(t,e),ee(t,se)}function se(){ie=H.n2.onunhandledrejection,H.n2.onunhandledrejection=function(e){const t=e;return te("unhandledrejection",t),!(ie&&!ie.__SENTRY_LOADER__)||ie.apply(this,arguments)},H.n2.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var ce=n(53618);const ue="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;var le=n(83204),fe=n(75679);function de(e,t){const n=he(e,t),r={type:t&&t.name,value:ge(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function pe(e,t){return{exception:{values:[de(e,t)]}}}function he(e,t){const n=t.stacktrace||t.stack||"",r=function(e){if(e){if("number"===typeof e.framesToPop)return e.framesToPop;if(me.test(e.message))return 1}return 0}(t);try{return e(n,r)}catch(o){}return[]}const me=/Minified React error #\d+;/i;function ge(e){const t=e&&e.message;return t?t.error&&"string"===typeof t.error.message?t.error.message:t:"No error message"}function ve(e,t,n,r,o){let i;if((0,j.VW)(t)&&t.error){return pe(e,t.error)}if((0,j.TX)(t)||(0,j.fm)(t)){const o=t;if("stack"in t)i=pe(e,t);else{const t=o.name||((0,j.TX)(o)?"DOMError":"DOMException"),a=o.message?`${t}: ${o.message}`:t;i=ye(e,a,n,r),(0,l.Db)(i,a)}return"code"in o&&(i.tags={...i.tags,"DOMException.code":`${o.code}`}),i}if((0,j.VZ)(t))return pe(e,t);if((0,j.PO)(t)||(0,j.cO)(t)){return i=function(e,t,n,r){const o=(0,s.s3)(),i=o&&o.getOptions().normalizeDepth,a={exception:{values:[{type:(0,j.cO)(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:be(t,{isUnhandledRejection:r})}]},extra:{__serialized__:(0,le.Qy)(t,i)}};if(n){const t=he(e,n);t.length&&(a.exception.values[0].stacktrace={frames:t})}return a}(e,t,n,o),(0,l.EG)(i,{synthetic:!0}),i}return i=ye(e,t,n,r),(0,l.Db)(i,`${t}`,void 0),(0,l.EG)(i,{synthetic:!0}),i}function ye(e,t,n,r){const o={};if(r&&n){const r=he(e,n);r.length&&(o.exception={values:[{value:t,stacktrace:{frames:r}}]})}if((0,j.Le)(t)){const{__sentry_template_string__:e,__sentry_template_values__:n}=t;return o.logentry={message:e,params:n},o}return o.message=t,o}function be(e,{isUnhandledRejection:t}){const n=(0,u.zf)(e),r=t?"promise rejection":"exception";if((0,j.VW)(e))return`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``;if((0,j.cO)(e)){return`Event \`${function(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(t){}}(e)}\` (type=${e.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}const _e="GlobalHandlers",Ee=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:_e,setupOnce(){Error.stackTraceLimit=50},setup(e){t.onerror&&(!function(e){re((t=>{const{stackParser:n,attachStacktrace:r}=xe();if((0,s.s3)()!==e||W())return;const{msg:o,url:i,line:a,column:c,error:u}=t,l=void 0===u&&(0,j.HD)(o)?function(e,t,n,r){const o=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let i=(0,j.VW)(e)?e.message:e,a="Error";const s=i.match(o);s&&(a=s[1],i=s[2]);return Se({exception:{values:[{type:a,value:i}]}},t,n,r)}(o,i,a,c):Se(ve(n,u||o,void 0,r,!1),i,a,c);l.level="error",(0,s.eN)(l,{originalException:u,mechanism:{handled:!1,type:"onerror"}})}))}(e),Te("onerror")),t.onunhandledrejection&&(!function(e){ae((t=>{const{stackParser:n,attachStacktrace:r}=xe();if((0,s.s3)()!==e||W())return;const o=function(e){if((0,j.pt)(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch(n){}return e}(t),i=(0,j.pt)(o)?{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(o)}`}]}}:ve(n,o,void 0,r,!0);i.level="error",(0,s.eN)(i,{originalException:o,mechanism:{handled:!1,type:"onunhandledrejection"}})}))}(e),Te("onunhandledrejection"))}}},we=b(_e,Ee);function Se(e,t,n,r){const o=e.exception=e.exception||{},i=o.values=o.values||[],a=i[0]=i[0]||{},s=a.stacktrace=a.stacktrace||{},c=s.frames=s.frames||[],u=isNaN(parseInt(r,10))?void 0:r,l=isNaN(parseInt(n,10))?void 0:n,f=(0,j.HD)(t)&&t.length>0?t:(0,ce.l4)();return 0===c.length&&c.push({colno:u,filename:f,function:"?",in_app:!0,lineno:l}),e}function Te(e){ue&&f.kg.log(`Global Handler attached: ${e}`)}function xe(){const e=(0,s.s3)();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Ae=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Oe="TryCatch",Ce=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Oe,setupOnce(){t.setTimeout&&(0,u.hl)(q,"setTimeout",Pe),t.setInterval&&(0,u.hl)(q,"setInterval",Pe),t.requestAnimationFrame&&(0,u.hl)(q,"requestAnimationFrame",ke),t.XMLHttpRequest&&"XMLHttpRequest"in q&&(0,u.hl)(XMLHttpRequest.prototype,"send",je);const e=t.eventTarget;if(e){(Array.isArray(e)?e:Ae).forEach(Re)}}}},Ie=b(Oe,Ce);function Pe(e){return function(...t){const n=t[0];return t[0]=$(n,{mechanism:{data:{function:(0,K.$P)(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function ke(e){return function(t){return e.apply(this,[$(t,{mechanism:{data:{function:"requestAnimationFrame",handler:(0,K.$P)(e)},handled:!1,type:"instrument"}})])}}function je(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach((e=>{e in n&&"function"===typeof n[e]&&(0,u.hl)(n,e,(function(t){const n={mechanism:{data:{function:e,handler:(0,K.$P)(t)},handled:!1,type:"instrument"}},r=(0,u.HK)(t);return r&&(n.mechanism.data.handler=(0,K.$P)(r)),$(t,n)}))})),e.apply(this,t)}}function Re(e){const t=q,n=t[e]&&t[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,u.hl)(n,"addEventListener",(function(t){return function(n,r,o){try{"function"===typeof r.handleEvent&&(r.handleEvent=$(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:(0,K.$P)(r),target:e},handled:!1,type:"instrument"}}))}catch(i){}return t.apply(this,[n,$(r,{mechanism:{data:{function:"addEventListener",handler:(0,K.$P)(r),target:e},handled:!1,type:"instrument"}}),o])}})),(0,u.hl)(n,"removeEventListener",(function(e){return function(t,n,r){const o=n;try{const n=o&&o.__sentry_wrapped__;n&&e.call(this,t,n,r)}catch(i){}return e.call(this,t,o,r)}})))}function Ne(){"console"in H.n2&&f.RU.forEach((function(e){e in H.n2.console&&(0,u.hl)(H.n2.console,e,(function(t){return f.LD[e]=t,function(...t){te("console",{args:t,level:e});const n=f.LD[e];n&&n.apply(H.n2.console,t)}}))}))}const De=H.n2;let Ze,Le,Me;function Fe(){if(!De.document)return;const e=te.bind(null,"dom"),t=Be(e,!0);De.document.addEventListener("click",t,!1),De.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((t=>{const n=De[t]&&De[t].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&((0,u.hl)(n,"addEventListener",(function(t){return function(n,r,o){if("click"===n||"keypress"==n)try{const r=this,i=r.__sentry_instrumentation_handlers__=r.__sentry_instrumentation_handlers__||{},a=i[n]=i[n]||{refCount:0};if(!a.handler){const r=Be(e);a.handler=r,t.call(this,n,r,o)}a.refCount++}catch(i){}return t.call(this,n,r,o)}})),(0,u.hl)(n,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{const n=this,o=n.__sentry_instrumentation_handlers__||{},i=o[t];i&&(i.refCount--,i.refCount<=0&&(e.call(this,t,i.handler,r),i.handler=void 0,delete o[t]),0===Object.keys(o).length&&delete n.__sentry_instrumentation_handlers__)}catch(o){}return e.call(this,t,n,r)}})))}))}function Be(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=function(e){try{return e.target}catch(t){return null}}(n);if(function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}(n.type,r))return;(0,u.xp)(n,"_sentryCaptured",!0),r&&!r._sentryId&&(0,u.xp)(r,"_sentryId",(0,l.DM)());const o="keypress"===n.type?"input":n.type;if(!function(e){if(e.type!==Le)return!1;try{if(!e.target||e.target._sentryId!==Me)return!1}catch(t){}return!0}(n)){e({event:n,name:o,global:t}),Le=n.type,Me=r?r._sentryId:void 0}clearTimeout(Ze),Ze=De.setTimeout((()=>{Me=void 0,Le=void 0}),1e3)}}const Ue=H.n2;function Ve(e){Q("xhr",e),ee("xhr",He)}function He(){if(!Ue.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;(0,u.hl)(e,"open",(function(e){return function(...t){const n=Date.now(),r=(0,j.HD)(t[0])?t[0].toUpperCase():void 0,o=function(e){if((0,j.HD)(e))return e;try{return e.toString()}catch(t){}return}(t[1]);if(!r||!o)return e.apply(this,t);this.__sentry_xhr_v3__={method:r,url:o,request_headers:{}},"POST"===r&&o.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const i=()=>{const e=this.__sentry_xhr_v3__;if(e&&4===this.readyState){try{e.status_code=this.status}catch(t){}te("xhr",{args:[r,o],endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"===typeof this.onreadystatechange?(0,u.hl)(this,"onreadystatechange",(function(e){return function(...t){return i(),e.apply(this,t)}})):this.addEventListener("readystatechange",i),(0,u.hl)(this,"setRequestHeader",(function(e){return function(...t){const[n,r]=t,o=this.__sentry_xhr_v3__;return o&&(0,j.HD)(n)&&(0,j.HD)(r)&&(o.request_headers[n.toLowerCase()]=r),e.apply(this,t)}})),e.apply(this,t)}})),(0,u.hl)(e,"send",(function(e){return function(...t){const n=this.__sentry_xhr_v3__;if(!n)return e.apply(this,t);void 0!==t[0]&&(n.body=t[0]);return te("xhr",{args:[n.method,n.url],startTimestamp:Date.now(),xhr:this}),e.apply(this,t)}}))}const qe=(0,H.Rf)();function Ge(){if(!("fetch"in qe))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}function We(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function ze(e){const t="fetch";Q(t,e),ee(t,$e)}function $e(){(function(){if("string"===typeof EdgeRuntime)return!0;if(!Ge())return!1;if(We(qe.fetch))return!0;let e=!1;const t=qe.document;if(t&&"function"===typeof t.createElement)try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=We(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){Y.X&&f.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e})()&&(0,u.hl)(H.n2,"fetch",(function(e){return function(...t){const{method:n,url:r}=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){const[t,n]=e;return{url:Ke(t),method:Ye(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:Ke(t),method:Ye(t,"method")?String(t.method).toUpperCase():"GET"}}(t),o={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return te("fetch",{...o}),e.apply(H.n2,t).then((e=>(te("fetch",{...o,endTimestamp:Date.now(),response:e}),e)),(e=>{throw te("fetch",{...o,endTimestamp:Date.now(),error:e}),e}))}}))}function Ye(e,t){return!!e&&"object"===typeof e&&!!e[t]}function Ke(e){return"string"===typeof e?e:e?Ye(e,"url")?e.url:e.toString?e.toString():"":""}const Xe=(0,H.Rf)();const Je=H.n2;let Qe;function et(e){const t="history";Q(t,e),ee(t,tt)}function tt(){if(!function(){const e=Xe.chrome,t=e&&e.app&&e.app.runtime,n="history"in Xe&&!!Xe.history.pushState&&!!Xe.history.replaceState;return!t&&n}())return;const e=Je.onpopstate;function t(e){return function(...t){const n=t.length>2?t[2]:void 0;if(n){const e=Qe,t=String(n);Qe=t;te("history",{from:e,to:t})}return e.apply(this,t)}}Je.onpopstate=function(...t){const n=Je.location.href,r=Qe;Qe=n;if(te("history",{from:r,to:n}),e)try{return e.apply(this,t)}catch(o){}},(0,u.hl)(Je.history,"pushState",t),(0,u.hl)(Je.history,"replaceState",t)}const nt=["fatal","error","warning","log","info","debug"];function rt(e){return"warn"===e?"warning":nt.includes(e)?e:"log"}function ot(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const it=1024,at="Breadcrumbs",st=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:at,setupOnce(){},setup(e){var n;t.console&&function(e){const t="console";Q(t,e),ee(t,Ne)}(function(e){return function(t){if((0,s.s3)()!==e)return;const n={category:"console",data:{arguments:t.args,logger:"console"},level:rt(t.level),message:(0,x.nK)(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${(0,x.nK)(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}(0,s.n_)(n,{input:t.args,level:t.level})}}(e)),t.dom&&(n=function(e,t){return function(n){if((0,s.s3)()!==e)return;let r,o,i="object"===typeof t?t.serializeAttribute:void 0,a="object"===typeof t&&"number"===typeof t.maxStringLength?t.maxStringLength:void 0;a&&a>it&&(ue&&f.kg.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${a} was configured. Sentry will use 1024 instead.`),a=it),"string"===typeof i&&(i=[i]);try{const e=n.event,t=function(e){return!!e&&!!e.target}(e)?e.target:e;r=(0,ce.Rt)(t,{keyAttrs:i,maxStringLength:a}),o=(0,ce.iY)(t)}catch(u){r=""}if(0===r.length)return;const c={category:`ui.${n.name}`,message:r};o&&(c.data={"ui.component_name":o}),(0,s.n_)(c,{event:n.event,name:n.name,global:n.global})}}(e,t.dom),Q("dom",n),ee("dom",Fe)),t.xhr&&Ve(function(e){return function(t){if((0,s.s3)()!==e)return;const{startTimestamp:n,endTimestamp:r}=t,o=t.xhr.__sentry_xhr_v3__;if(!n||!r||!o)return;const{method:i,url:a,status_code:c,body:u}=o,l={method:i,url:a,status_code:c},f={xhr:t.xhr,input:u,startTimestamp:n,endTimestamp:r};(0,s.n_)({category:"xhr",data:l,type:"http"},f)}}(e)),t.fetch&&ze(function(e){return function(t){if((0,s.s3)()!==e)return;const{startTimestamp:n,endTimestamp:r}=t;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error){const e=t.fetchData,o={data:t.error,input:t.args,startTimestamp:n,endTimestamp:r};(0,s.n_)({category:"fetch",data:e,level:"error",type:"http"},o)}else{const e=t.response,o={...t.fetchData,status_code:e&&e.status},i={input:t.args,response:e,startTimestamp:n,endTimestamp:r};(0,s.n_)({category:"fetch",data:o,type:"http"},i)}}}(e)),t.history&&et(function(e){return function(t){if((0,s.s3)()!==e)return;let n=t.from,r=t.to;const o=ot(q.location.href);let i=n?ot(n):void 0;const a=ot(r);i&&i.path||(i=o),o.protocol===a.protocol&&o.host===a.host&&(r=a.relative),o.protocol===i.protocol&&o.host===i.host&&(n=i.relative),(0,s.n_)({category:"navigation",data:{from:n,to:r}})}}(e)),t.sentry&&e.on&&e.on("beforeSendEvent",function(e){return function(t){(0,s.s3)()===e&&(0,s.n_)({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:(0,l.jH)(t)},{event:t})}}(e))}}},ct=b(at,st);const ut="LinkedErrors",lt=(e={})=>{const t=e.limit||5,n=e.key||"cause";return{name:ut,setupOnce(){},preprocessEvent(e,r,o){const i=o.getOptions();R(de,i.stackParser,i.maxValueLength,n,t,e,r)}}},ft=b(ut,lt),dt="HttpContext",pt=()=>({name:dt,setupOnce(){},preprocessEvent(e){if(!q.navigator&&!q.location&&!q.document)return;const t=e.request&&e.request.url||q.location&&q.location.href,{referrer:n}=q.document||{},{userAgent:r}=q.navigator||{},o={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},i={...e.request,...t&&{url:t},headers:o};e.request=i}}),ht=b(dt,pt),mt="Dedupe",gt=()=>{let e;return{name:mt,setupOnce(){},processEvent(t){if(t.type)return t;try{if(function(e,t){if(!t)return!1;if(function(e,t){const n=e.message,r=t.message;if(!n&&!r)return!1;if(n&&!r||!n&&r)return!1;if(n!==r)return!1;if(!bt(e,t))return!1;if(!yt(e,t))return!1;return!0}(e,t))return!0;if(function(e,t){const n=_t(t),r=_t(e);if(!n||!r)return!1;if(n.type!==r.type||n.value!==r.value)return!1;if(!bt(e,t))return!1;if(!yt(e,t))return!1;return!0}(e,t))return!0;return!1}(t,e))return ue&&f.kg.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(n){}return e=t}}},vt=b(mt,gt);function yt(e,t){let n=Et(e),r=Et(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(let o=0;o{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})));(0,s.nZ)().update(t.initialScope);const n=new e(t);!function(e){const t=(0,h.Gd)().getStackTop();t.client=e,t.scope.setClient(e)}(n),function(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}(n)}const xt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function At(e,t=!1){const{host:n,path:r,pass:o,port:i,projectId:a,protocol:s,publicKey:c}=e;return`${s}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r?`${r}/`:r}${a}`}function Ot(e){const t=xt.exec(e);if(!t)return void(0,f.Cf)((()=>{console.error(`Invalid Sentry Dsn: ${e}`)}));const[n,r,o="",i,a="",s]=t.slice(1);let c="",u=s;const l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){const e=u.match(/^\d+/);e&&(u=e[0])}return Ct({host:i,pass:o,path:c,projectId:u,port:a,protocol:n,publicKey:r})}function Ct(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function It(e){const t="string"===typeof e?Ot(e):Ct(e);if(t&&function(e){if(!Y.X)return!0;const{port:t,projectId:n,protocol:r}=e;return!["protocol","publicKey","host","projectId"].find((t=>!e[t]&&(f.kg.error(`Invalid Sentry Dsn: ${t} missing`),!0)))&&(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?!t||!isNaN(parseInt(t,10))||(f.kg.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):(f.kg.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(f.kg.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(t))return t}function Pt(e,t=[]){return[e,t]}function kt(e,t){const[n,r]=e;return[n,[...r,t]]}function jt(e,t){const n=e[1];for(const r of n){if(t(r,r[0].type))return!0}return!1}function Rt(e,t){return(t||new TextEncoder).encode(e)}function Nt(e,t){const[n,r]=e;let o=JSON.stringify(n);function i(e){"string"===typeof o?o="string"===typeof e?o+e:[Rt(o,t),e]:o.push("string"===typeof e?Rt(e,t):e)}for(const s of r){const[e,t]=s;if(i(`\n${JSON.stringify(e)}\n`),"string"===typeof t||t instanceof Uint8Array)i(t);else{let e;try{e=JSON.stringify(t)}catch(a){e=JSON.stringify((0,le.Fv)(t))}i(e)}}return"string"===typeof o?o:function(e){const t=e.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(t);let r=0;for(const o of e)n.set(o,r),r+=o.length;return n}(o)}function Dt(e,t){const n="string"===typeof e.data?Rt(e.data,t):e.data;return[(0,u.Jr)({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const Zt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function Lt(e){return Zt[e]}function Mt(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}class Ft extends Error{constructor(e,t="warn"){super(e),this.message=e,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function Bt(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Ut(e,t={}){const n="string"===typeof t?t:t.tunnel,r="string"!==typeof t&&t._metadata?t._metadata.sdk:void 0;return n||`${function(e){return`${Bt(e)}${e.projectId}/envelope/`}(e)}?${function(e,t){return(0,u._j)({sentry_key:e.publicKey,sentry_version:"7",...t&&{sentry_client:`${t.name}/${t.version}`}})}(e,r)}`}function Vt(e,t,n,r){const o=Mt(n),i=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]])}(e,n&&n.sdk);const a=function(e,t,n,r){const o=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:At(r)},...o&&{trace:(0,u.Jr)({...o})}}}(e,o,r,t);delete e.sdkProcessingMetadata;return Pt(a,[[{type:i},e]])}function Ht(e,t,n,r){const o={sent_at:(new Date).toISOString()};n&&n.sdk&&(o.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(o.dsn=At(t));const i=function(e){const t=function(e){let t="";for(const n of e){const e=Object.entries(n.tags),r=e.length>0?`|#${e.map((([e,t])=>`${e}:${t}`)).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${r}|T${n.timestamp}\n`}return t}(e);return[{type:"statsd",length:t.length},t]}(e);return Pt(o,[i])}var qt=n(64903),Gt=n(83444),Wt=n(61173);const zt="Not capturing exception because it's already been captured.";function $t(e){return void 0===e.type}function Yt(e){return"transaction"===e.type}var Kt=n(94370);class Xt extends class{constructor(e){if(this._options=e,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],e.dsn?this._dsn=It(e.dsn):d.X&&f.kg.warn("No DSN provided, client will not send events."),this._dsn){const t=Ut(this._dsn,e);this._transport=e.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:t})}}captureException(e,t,n){if((0,l.YO)(e))return void(d.X&&f.kg.log(zt));let r=t&&t.event_id;return this._process(this.eventFromException(e,t).then((e=>this._captureEvent(e,t,n))).then((e=>{r=e}))),r}captureMessage(e,t,n,r){let o=n&&n.event_id;const i=(0,j.Le)(e)?e:String(e),a=(0,j.pt)(e)?this.eventFromMessage(i,t,n):this.eventFromException(e,n);return this._process(a.then((e=>this._captureEvent(e,n,r))).then((e=>{o=e}))),o}captureEvent(e,t,n){if(t&&t.originalException&&(0,l.YO)(t.originalException))return void(d.X&&f.kg.log(zt));let r=t&&t.event_id;const o=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,t,o||n).then((e=>{r=e}))),r}captureSession(e){"string"!==typeof e.release?d.X&&f.kg.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),(0,qt.CT)(e,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(e){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(e).then((n=>t.flush(e).then((e=>n&&e))))):(0,fe.WD)(!0)}close(e){return this.flush(e).then((e=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),e)))}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}setupIntegrations(e){(e&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(e){return this.getIntegrationByName(e)}getIntegrationByName(e){return this._integrations[e]}getIntegration(e){try{return this._integrations[e.id]||null}catch(t){return d.X&&f.kg.warn(`Cannot retrieve integration ${e.id} from the current Client`),null}}addIntegration(e){const t=this._integrations[e.name];y(this,e,this._integrations),t||v(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);let n=Vt(e,this._dsn,this._options._metadata,this._options.tunnel);for(const o of t.attachments||[])n=kt(n,Dt(o,this._options.transportOptions&&this._options.transportOptions.textEncoder));const r=this._sendEnvelope(n);r&&r.then((t=>this.emit("afterSendEvent",e,t)),null)}sendSession(e){const t=function(e,t,n,r){const o=Mt(n);return Pt({sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:At(t)}},["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(e,t,n){if(this._options.sendClientReports){const n=`${e}:${t}`;d.X&&f.kg.log(`Adding outcome: "${n}"`),this._outcomes[n]=this._outcomes[n]+1||1}}captureAggregateMetrics(e){d.X&&f.kg.log(`Flushing aggregated metrics, number of metrics: ${e.length}`);const t=Ht(e,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(e,t){this._hooks[e]||(this._hooks[e]=[]),this._hooks[e].push(t)}emit(e,...t){this._hooks[e]&&this._hooks[e].forEach((e=>e(...t)))}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=function(e,t){const n={};return t.forEach((t=>{t&&y(e,t,n)})),n}(this,e),v(this,e),this._integrationsInitialized=!0}_updateSessionFromEvent(e,t){let n=!1,r=!1;const o=t.exception&&t.exception.values;if(o){r=!0;for(const e of o){const t=e.mechanism;if(t&&!1===t.handled){n=!0;break}}}const i="ok"===e.status;(i&&0===e.errors||i&&n)&&((0,qt.CT)(e,{...n&&{status:"crashed"},errors:e.errors||Number(r||n)}),this.captureSession(e))}_isClientDoneProcessing(e){return new fe.cW((t=>{let n=0;const r=setInterval((()=>{0==this._numProcessing?(clearInterval(r),t(!0)):(n+=1,e&&n>=e&&(clearInterval(r),t(!1)))}),1)}))}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(e,t,n,r=(0,h.aF)()){const o=this.getOptions(),i=Object.keys(this._integrations);return!t.integrations&&i.length>0&&(t.integrations=i),this.emit("preprocessEvent",e,t),(0,Wt.R)(o,e,t,n,this,r).then((e=>{if(null===e)return e;const t={...r.getPropagationContext(),...n?n.getPropagationContext():void 0};if(!(e.contexts&&e.contexts.trace)&&t){const{traceId:r,spanId:o,parentSpanId:i,dsc:a}=t;e.contexts={trace:{trace_id:r,span_id:o,parent_span_id:i},...e.contexts};const s=a||(0,Gt._)(r,this,n);e.sdkProcessingMetadata={dynamicSamplingContext:s,...e.sdkProcessingMetadata}}return e}))}_captureEvent(e,t={},n){return this._processEvent(e,t,n).then((e=>e.event_id),(e=>{if(d.X){const t=e;"log"===t.logLevel?f.kg.log(t.message):f.kg.warn(t)}}))}_processEvent(e,t,n){const r=this.getOptions(),{sampleRate:o}=r,i=Yt(e),a=$t(e),s=e.type||"error",c=`before send for type \`${s}\``;if(a&&"number"===typeof o&&Math.random()>o)return this.recordDroppedEvent("sample_rate","error",e),(0,fe.$2)(new Ft(`Discarding event because it's not included in the random sample (sampling rate = ${o})`,"log"));const u="replay_event"===s?"replay":s,l=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,l).then((n=>{if(null===n)throw this.recordDroppedEvent("event_processor",u,e),new Ft("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;const o=function(e,t,n){const{beforeSend:r,beforeSendTransaction:o}=e;if($t(t)&&r)return r(t,n);if(Yt(t)&&o)return o(t,n);return t}(r,n,t);return function(e,t){const n=`${t} must return \`null\` or a valid event.`;if((0,j.J8)(e))return e.then((e=>{if(!(0,j.PO)(e)&&null!==e)throw new Ft(n);return e}),(e=>{throw new Ft(`${t} rejected with ${e}`)}));if(!(0,j.PO)(e)&&null!==e)throw new Ft(n);return e}(o,c)})).then((r=>{if(null===r)throw this.recordDroppedEvent("before_send",u,e),new Ft(`${c} returned \`null\`, will not send event.`,"log");const o=n&&n.getSession();!i&&o&&this._updateSessionFromEvent(o,r);const a=r.transaction_info;if(i&&a&&r.transaction!==e.transaction){const e="custom";r.transaction_info={...a,source:e}}return this.sendEvent(r,t),r})).then(null,(e=>{if(e instanceof Ft)throw e;throw this.captureException(e,{data:{__sentry__:!0},originalException:e}),new Ft(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${e}`)}))}_process(e){this._numProcessing++,e.then((e=>(this._numProcessing--,e)),(e=>(this._numProcessing--,e)))}_sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)return this._transport.send(e).then(null,(e=>{d.X&&f.kg.error("Error while sending event:",e)}));d.X&&f.kg.error("Transport disabled")}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.keys(e).map((t=>{const[n,r]=t.split(":");return{reason:n,category:r,quantity:e[t]}}))}}{constructor(e){a(e,"browser",["browser"],q.SENTRY_SDK_SOURCE||"npm"),super(e),e.sendClientReports&&q.document&&q.document.addEventListener("visibilitychange",(()=>{"hidden"===q.document.visibilityState&&this._flushOutcomes()}))}eventFromException(e,t){return function(e,t,n,r){const o=ve(e,t,n&&n.syntheticException||void 0,r);return(0,l.EG)(o),o.level="error",n&&n.event_id&&(o.event_id=n.event_id),(0,fe.WD)(o)}(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return function(e,t,n="info",r,o){const i=ye(e,t,r&&r.syntheticException||void 0,o);return i.level=n,r&&r.event_id&&(i.event_id=r.event_id),(0,fe.WD)(i)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}captureUserFeedback(e){if(!this._isEnabled())return void(ue&&f.kg.warn("SDK not enabled, will not capture user feedback."));const t=function(e,{metadata:t,tunnel:n,dsn:r}){const o={event_id:e.event_id,sent_at:(new Date).toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:At(r)}},i=function(e){return[{type:"user_report"},e]}(e);return Pt(o,[i])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(e,t,n){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n)}_flushOutcomes(){const e=this._clearOutcomes();if(0===e.length)return void(ue&&f.kg.log("No outcomes to send"));if(!this._dsn)return void(ue&&f.kg.log("No dsn provided, will not send outcomes"));ue&&f.kg.log("Sending outcomes:",e);const t=(n=e,Pt((r=this._options.tunnel&&At(this._dsn))?{dsn:r}:{},[[{type:"client_report"},{timestamp:o||(0,Kt.yW)(),discarded_events:n}]]));var n,r,o;this._sendEnvelope(t)}}const Jt="?";function Qt(e,t,n,r){const o={filename:e,function:t,in_app:!0};return void 0!==n&&(o.lineno=n),void 0!==r&&(o.colno=r),o}const en=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,tn=/\((\S*)(?::(\d+))(?::(\d+))\)/,nn=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,rn=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,on=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,an=[[30,e=>{const t=en.exec(e);if(t){if(t[2]&&0===t[2].indexOf("eval")){const e=tn.exec(t[2]);e&&(t[2]=e[1],t[3]=e[2],t[4]=e[3])}const[e,n]=cn(t[1]||Jt,t[2]);return Qt(n,e,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}}],[50,e=>{const t=nn.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const e=rn.exec(t[3]);e&&(t[1]=t[1]||"eval",t[3]=e[1],t[4]=e[2],t[5]="")}let e=t[3],n=t[1]||Jt;return[n,e]=cn(n,e),Qt(e,n,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}],[40,e=>{const t=on.exec(e);return t?Qt(t[2],t[1]||Jt,+t[3],t[4]?+t[4]:void 0):void 0}]],sn=(0,K.pE)(...an),cn=(e,t)=>{const n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Jt,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function un(e){const t=[];function n(e){return t.splice(t.indexOf(e),1)[0]}return{$:t,add:function(r){if(!(void 0===e||t.lengthn(o))).then(null,(()=>n(o).then(null,(()=>{})))),o},drain:function(e){return new fe.cW(((n,r)=>{let o=t.length;if(!o)return n(!0);const i=setTimeout((()=>{e&&e>0&&n(!1)}),e);t.forEach((e=>{(0,fe.WD)(e).then((()=>{--o||(clearTimeout(i),n(!0))}),r)}))}))}}}function ln(e,{statusCode:t,headers:n},r=Date.now()){const o={...e},i=n&&n["x-sentry-rate-limits"],a=n&&n["retry-after"];if(i)for(const s of i.trim().split(",")){const[e,t]=s.split(":",2),n=parseInt(e,10),i=1e3*(isNaN(n)?60:n);if(t)for(const a of t.split(";"))o[a]=r+i;else o.all=r+i}else a?o.all=r+function(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return 1e3*n;const r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}(a,r):429===t&&(o.all=r+6e4);return o}function fn(e,t,n=un(e.bufferSize||30)){let r={};function o(o){const i=[];if(jt(o,((t,n)=>{const o=Lt(n);if(function(e,t,n=Date.now()){return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,o)){const r=dn(t,n);e.recordDroppedEvent("ratelimit_backoff",o,r)}else i.push(t)})),0===i.length)return(0,fe.WD)();const a=Pt(o[0],i),s=t=>{jt(a,((n,r)=>{const o=dn(n,r);e.recordDroppedEvent(t,Lt(r),o)}))};return n.add((()=>t({body:Nt(a,e.textEncoder)}).then((e=>(void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&d.X&&f.kg.warn(`Sentry responded with status code ${e.statusCode} to sent event.`),r=ln(r,e),e)),(e=>{throw s("network_error"),e})))).then((e=>e),(e=>{if(e instanceof Ft)return d.X&&f.kg.error("Skipped sending event because buffer is full."),s("queue_overflow"),(0,fe.WD)();throw e}))}return o.__sentry__baseTransport__=!0,{send:o,flush:e=>n.drain(e)}}function dn(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}let pn;function hn(e,t=function(){if(pn)return pn;if(We(q.fetch))return pn=q.fetch.bind(q);const e=q.document;let t=q.fetch;if(e&&"function"===typeof e.createElement)try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){ue&&f.kg.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return pn=t.bind(q)}()){let n=0,r=0;return fn(e,(function(o){const i=o.body.length;n+=i,r++;const a={body:o.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,a).then((e=>(n-=i,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}})))}catch(s){return pn=void 0,n-=i,r--,(0,fe.$2)(s)}}))}function mn(e){return fn(e,(function(t){return new fe.cW(((n,r)=>{const o=new XMLHttpRequest;o.onerror=r,o.onreadystatechange=()=>{4===o.readyState&&n({statusCode:o.status,headers:{"x-sentry-rate-limits":o.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":o.getResponseHeader("Retry-After")}})},o.open("POST",e.url);for(const t in e.headers)Object.prototype.hasOwnProperty.call(e.headers,t)&&o.setRequestHeader(t,e.headers[t]);o.send(t.body)}))}))}const gn=[I(),S(),Ce(),st(),Ee(),lt(),gt(),pt()];function vn(e){return[...gn]}function yn(e={}){void 0===e.defaultIntegrations&&(e.defaultIntegrations=vn()),void 0===e.release&&("string"===typeof __SENTRY_RELEASE__&&(e.release=__SENTRY_RELEASE__),q.SENTRY_RELEASE&&q.SENTRY_RELEASE.id&&(e.release=q.SENTRY_RELEASE.id)),void 0===e.autoSessionTracking&&(e.autoSessionTracking=!0),void 0===e.sendClientReports&&(e.sendClientReports=!0);const t={...e,stackParser:(0,K.Sq)(e.stackParser||sn),integrations:g(e),transport:e.transport||(Ge()?hn:mn)};Tt(Xt,t),e.autoSessionTracking&&function(){if("undefined"===typeof q.document)return void(ue&&f.kg.warn("Session tracking in non-browser environment with @sentry/browser is not supported."));(0,s.yj)({ignoreDuration:!0}),(0,s.cg)(),et((({from:e,to:t})=>{void 0!==e&&e!==t&&((0,s.yj)({ignoreDuration:!0}),(0,s.cg)())}))}()}var bn=n(25620);function _n(e){const t=e?bn.env.NEXT_PUBLIC_VERCEL_ENV:bn.env.VERCEL_ENV;return t?`vercel-${t}`:void 0}function En(e){let t,n=e[0],r=1;for(;rn.call(t,...e))),t=void 0)}return n}var wn=n(53023);let Sn;function Tn(e){return Sn?Sn.get(e):void 0}function xn(e){const t=Tn(e);if(!t)return;const n={};for(const[,[r,o]]of t)n[r]||(n[r]=[]),n[r].push((0,u.Jr)(o));return n}const An="sentry.source",On="sentry.sample_rate",Cn="sentry.op",In="sentry.origin";var Pn,kn=n(52538);function jn(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}!function(e){e.Ok="ok";e.DeadlineExceeded="deadline_exceeded";e.Unauthenticated="unauthenticated";e.PermissionDenied="permission_denied";e.NotFound="not_found";e.ResourceExhausted="resource_exhausted";e.InvalidArgument="invalid_argument";e.Unimplemented="unimplemented";e.Unavailable="unavailable";e.InternalError="internal_error";e.UnknownError="unknown_error";e.Cancelled="cancelled";e.AlreadyExists="already_exists";e.FailedPrecondition="failed_precondition";e.Aborted="aborted";e.OutOfRange="out_of_range";e.DataLoss="data_loss"}(Pn||(Pn={}));function Rn(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=jn(t);"unknown_error"!==n&&e.setStatus(n)}class Nn{constructor(e=1e3){this._maxlen=e,this.spans=[]}add(e){this.spans.length>this._maxlen?e.spanRecorder=void 0:this.spans.push(e)}}class Dn{constructor(e={}){this._traceId=e.traceId||(0,l.DM)(),this._spanId=e.spanId||(0,l.DM)().substring(16),this._startTime=e.startTimestamp||(0,Kt.ph)(),this.tags=e.tags?{...e.tags}:{},this.data=e.data?{...e.data}:{},this.instrumenter=e.instrumenter||"sentry",this._attributes={},this.setAttributes({[In]:e.origin||"manual",[Cn]:e.op,...e.attributes}),this._name=e.name||e.description,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),e.status&&(this._status=e.status),e.endTimestamp&&(this._endTime=e.endTimestamp)}get name(){return this._name||""}set name(e){this.updateName(e)}get description(){return this._name}set description(e){this._name=e}get traceId(){return this._traceId}set traceId(e){this._traceId=e}get spanId(){return this._spanId}set spanId(e){this._spanId=e}set parentSpanId(e){this._parentSpanId=e}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(e){this._sampled=e}get attributes(){return this._attributes}set attributes(e){this._attributes=e}get startTimestamp(){return this._startTime}set startTimestamp(e){this._startTime=e}get endTimestamp(){return this._endTime}set endTimestamp(e){this._endTime=e}get status(){return this._status}set status(e){this._status=e}get op(){return this._attributes["sentry.op"]}set op(e){this.setAttribute(Cn,e)}get origin(){return this._attributes["sentry.origin"]}set origin(e){this.setAttribute(In,e)}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?wn.i0:wn.ve}}startChild(e){const t=new Dn({...e,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t);const n=(0,kn.G)(this);if(t.transaction=n,d.X&&n){const r=`[Tracing] Starting '${e&&e.op||"< unknown op >"}' span on transaction '${(0,wn.XU)(t).description||"< unknown name >"}' (${n.spanContext().spanId}).`;f.kg.log(r),this._logMessage=r}return t}setTag(e,t){return this.tags={...this.tags,[e]:t},this}setData(e,t){return this.data={...this.data,[e]:t},this}setAttribute(e,t){void 0===t?delete this._attributes[e]:this._attributes[e]=t}setAttributes(e){Object.keys(e).forEach((t=>this.setAttribute(t,e[t])))}setStatus(e){return this._status=e,this}setHttpStatus(e){return Rn(this,e),this}setName(e){this.updateName(e)}updateName(e){return this._name=e,this}isSuccess(){return"ok"===this._status}finish(e){return this.end(e)}end(e){if(this._endTime)return;const t=(0,kn.G)(this);if(d.X&&t&&t.spanContext().spanId!==this._spanId){const e=this._logMessage;e&&f.kg.log(e.replace("Starting","Finishing"))}this._endTime=(0,wn.$k)(e)}toTraceparent(){return(0,wn.Hb)(this)}toContext(){return(0,u.Jr)({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(e){return this.data=e.data||{},this._name=e.name||e.description,this._endTime=e.endTimestamp,this.op=e.op,this._parentSpanId=e.parentSpanId,this._sampled=e.sampled,this._spanId=e.spanId||this._spanId,this._startTime=e.startTimestamp||this._startTime,this._status=e.status,this.tags=e.tags||{},this._traceId=e.traceId||this._traceId,this}getTraceContext(){return(0,wn.wy)(this)}getSpanJSON(){return(0,u.Jr)({data:this._getData(),description:this._name,op:this._attributes["sentry.op"],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes["sentry.origin"],_metrics_summary:xn(this)})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:e,_attributes:t}=this,n=Object.keys(e).length>0,r=Object.keys(t).length>0;if(n||r)return n&&r?{...e,...t}:n?e:t}}function Zn(e){if(!c())return;const t=Mn(e),n=(0,h.Gd)(),r=e.scope?e.scope.getSpan():Ln();if(e.onlyIfParent&&!r)return;const o=(0,h.aF)(),i=(0,s.nZ)();let a;if(r)a=r.startChild(t);else{const{traceId:e,dsc:r,parentSpanId:s,sampled:c}={...o.getPropagationContext(),...i.getPropagationContext()};a=n.startTransaction({traceId:e,parentSpanId:s,parentSampled:c,...t,metadata:{dynamicSamplingContext:r,...t.metadata}})}return Un(a,i,o),a}function Ln(){return(0,s.nZ)().getSpan()}function Mn(e){if(e.startTime){const t={...e};return t.startTimestamp=(0,wn.$k)(e.startTime),delete t.startTime,t}return e}const Fn="_sentryScope",Bn="_sentryIsolationScope";function Un(e,t,n){e&&((0,u.xp)(e,Bn,n),(0,u.xp)(e,Fn,t))}class Vn extends Dn{constructor(e,t){super(e),this._measurements={},this._contexts={},this._hub=t||(0,h.Gd)(),this._name=e.name||"",this._metadata={...e.metadata},this._trimEnd=e.trimEnd,this.transaction=this;const n=this._metadata.dynamicSamplingContext;n&&(this._frozenDynamicSamplingContext={...n})}get name(){return this._name}set name(e){this.setName(e)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes["sentry.source"]&&{source:this._attributes["sentry.source"]},...this._attributes["sentry.sample_rate"]&&{sampleRate:this._attributes["sentry.sample_rate"]}}}set metadata(e){this._metadata=e}setName(e,t="custom"){this._name=e,this.setAttribute(An,t)}updateName(e){return this._name=e,this}initSpanRecorder(e=1e3){this.spanRecorder||(this.spanRecorder=new Nn(e)),this.spanRecorder.add(this)}setContext(e,t){null===t?delete this._contexts[e]:this._contexts[e]=t}setMeasurement(e,t,n=""){this._measurements[e]={value:t,unit:n}}setMetadata(e){this._metadata={...this._metadata,...e}}end(e){const t=(0,wn.$k)(e),n=this._finishTransaction(t);if(n)return this._hub.captureEvent(n)}toContext(){const e=super.toContext();return(0,u.Jr)({...e,name:this._name,trimEnd:this._trimEnd})}updateWithContext(e){return super.updateWithContext(e),this._name=e.name||"",this._trimEnd=e.trimEnd,this}getDynamicSamplingContext(){return(0,Gt.j)(this)}setHub(e){this._hub=e}_finishTransaction(e){if(void 0!==this._endTime)return;this._name||(d.X&&f.kg.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(e);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this._sampled)return d.X&&f.kg.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const n=this.spanRecorder?this.spanRecorder.spans.filter((e=>e!==this&&(0,wn.XU)(e).timestamp)):[];if(this._trimEnd&&n.length>0){const e=n.map((e=>(0,wn.XU)(e).timestamp)).filter(Boolean);this._endTime=e.reduce(((e,t)=>e>t?e:t))}const{scope:r,isolationScope:o}={scope:(i=this)._sentryScope,isolationScope:i._sentryIsolationScope};var i;const{metadata:a}=this,{source:s}=a,c={contexts:{...this._contexts,trace:(0,wn.wy)(this)},spans:n,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...a,capturedSpanScope:r,capturedSpanIsolationScope:o,dynamicSamplingContext:(0,Gt.j)(this)},_metrics_summary:xn(this),...s&&{transaction_info:{source:s}}};return Object.keys(this._measurements).length>0&&(d.X&&f.kg.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),c.measurements=this._measurements),d.X&&f.kg.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),c}}const Hn={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},qn=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Gn extends Nn{constructor(e,t,n,r){super(r),this._pushActivity=e,this._popActivity=t,this.transactionSpanId=n}add(e){if(e.spanContext().spanId!==this.transactionSpanId){const t=e.end;e.end=(...n)=>(this._popActivity(e.spanContext().spanId),t.apply(e,n)),void 0===(0,wn.XU)(e).timestamp&&this._pushActivity(e.spanContext().spanId)}super.add(e)}}class Wn extends Vn{constructor(e,t,n=Hn.idleTimeout,r=Hn.finalTimeout,o=Hn.heartbeatInterval,i=!1,a=!1){super(e,t),this._idleHub=t,this._idleTimeout=n,this._finalTimeout=r,this._heartbeatInterval=o,this._onScope=i,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=qn[4],this._autoFinishAllowed=!a,i&&(d.X&&f.kg.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),t.getScope().setSpan(this)),a||this._restartIdleTimeout(),setTimeout((()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=qn[3],this.end())}),this._finalTimeout)}end(e){const t=(0,wn.$k)(e);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){d.X&&f.kg.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);for(const e of this._beforeFinishCallbacks)e(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter((e=>{if(e.spanContext().spanId===this.spanContext().spanId)return!0;(0,wn.XU)(e).timestamp||(e.setStatus("cancelled"),e.end(t),d.X&&f.kg.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(e,void 0,2)));const{start_timestamp:n,timestamp:r}=(0,wn.XU)(e),o=n&&n{this._finished||this._pushActivity(e)},n=e=>{this._finished||this._popActivity(e)};this.spanRecorder=new Gn(t,n,this.spanContext().spanId,e),d.X&&f.kg.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(e,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=qn[5],this.end(e)))}setFinishReason(e){this._finishReason=e}sendAutoFinishSignal(){this._autoFinishAllowed||(d.X&&f.kg.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(e){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout((()=>{this._finished||0!==Object.keys(this.activities).length||(this._finishReason=qn[1],this.end(e))}),this._idleTimeout)}_pushActivity(e){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),d.X&&f.kg.log(`[Tracing] pushActivity: ${e}`),this.activities[e]=!0,d.X&&f.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(e){if(this.activities[e]&&(d.X&&f.kg.log(`[Tracing] popActivity ${e}`),delete this.activities[e],d.X&&f.kg.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const e=(0,Kt.ph)();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=qn[5],this.end(e)):this._restartIdleTimeout(e+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const e=Object.keys(this.activities).join("");e===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=e,this._heartbeatCounter>=3?this._autoFinishAllowed&&(d.X&&f.kg.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=qn[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){d.X&&f.kg.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout((()=>{this._beat()}),this._heartbeatInterval)}}function zn(e){return(e||(0,h.Gd)()).getScope().getTransaction()}let $n=!1;function Yn(){const e=zn();if(e){const t="internal_error";d.X&&f.kg.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}function Kn(e,t,n){if(!c(t))return e.sampled=!1,e;if(void 0!==e.sampled)return e.setAttribute(On,Number(e.sampled)),e;let r;return"function"===typeof t.tracesSampler?(r=t.tracesSampler(n),e.setAttribute(On,Number(r))):void 0!==n.parentSampled?r=n.parentSampled:"undefined"!==typeof t.tracesSampleRate?(r=t.tracesSampleRate,e.setAttribute(On,Number(r))):(r=1,e.setAttribute(On,r)),function(e){if((0,j.i2)(e)||"number"!==typeof e&&"boolean"!==typeof e)return d.X&&f.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1;if(e<0||e>1)return d.X&&f.kg.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1;return!0}(r)?r?(e.sampled=Math.random(){const e=zn();if(rr.document.hidden&&e){const t="cancelled",{op:n,status:r}=(0,wn.XU)(e);nr&&f.kg.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}})):nr&&f.kg.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const ir=(e,t,n)=>{let r,o;return i=>{t.value>=0&&(i||n)&&(o=t.value-(r||0),(o||void 0===r)&&(r=t.value,t.delta=o,e(t)))}},ar=()=>rr.__WEB_VITALS_POLYFILL__?rr.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const e=rr.performance.timing,t=rr.performance.navigation.type,n={entryType:"navigation",startTime:0,type:2==t?"back_forward":1===t?"reload":"navigate"};for(const r in e)"navigationStart"!==r&&"toJSON"!==r&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n})()):rr.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],sr=()=>{const e=ar();return e&&e.activationStart||0},cr=(e,t)=>{const n=ar();let r="navigate";return n&&(r=rr.document.prerendering||sr()>0?"prerender":n.type.replace(/_/g,"-")),{name:e,value:"undefined"===typeof t?-1:t,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},ur=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver((e=>{t(e.getEntries())}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(r){}},lr=(e,t)=>{const n=r=>{"pagehide"!==r.type&&"hidden"!==rr.document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)};let fr=-1;const dr=()=>(fr<0&&(fr="hidden"!==rr.document.visibilityState||rr.document.prerendering?1/0:0,lr((({timeStamp:e})=>{fr=e}),!0)),{get firstHiddenTime(){return fr}}),pr={},hr={},mr={};let gr,vr,yr;function br(e,t){return xr(e,t),mr[e]||(!function(e){const t={};"event"===e&&(t.durationThreshold=0);ur(e,(t=>{_r(e,{entries:t})}),t)}(e),mr[e]=!0),Ar(e,t)}function _r(e,t){const n=hr[e];if(n&&n.length)for(const o of n)try{o(t)}catch(r){nr&&f.kg.error(`Error while triggering instrumentation handler.\nType: ${e}\nName: ${(0,K.$P)(o)}\nError:`,r)}}function Er(){return(e=>{const t=cr("CLS",0);let n,r=0,o=[];const i=e=>{e.forEach((e=>{if(!e.hadRecentInput){const i=o[0],a=o[o.length-1];r&&0!==o.length&&e.startTime-a.startTime<1e3&&e.startTime-i.startTime<5e3?(r+=e.value,o.push(e)):(r=e.value,o=[e]),r>t.value&&(t.value=r,t.entries=o,n&&n())}}))},a=ur("layout-shift",i);if(a){n=ir(e,t);const r=()=>{i(a.takeRecords()),n(!0)};return lr(r),r}})((e=>{_r("cls",{metric:e}),gr=e}))}function wr(){return(e=>{const t=dr(),n=cr("FID");let r;const o=e=>{e.startTime{e.forEach(o)},a=ur("first-input",i);r=ir(e,n),a&&lr((()=>{i(a.takeRecords()),a.disconnect()}),!0)})((e=>{_r("fid",{metric:e}),vr=e}))}function Sr(){return(e=>{const t=dr(),n=cr("LCP");let r;const o=e=>{const o=e[e.length-1];if(o){const e=Math.max(o.startTime-sr(),0);e{pr[n.id]||(o(i.takeRecords()),i.disconnect(),pr[n.id]=!0,r(!0))};return["keydown","click"].forEach((e=>{addEventListener(e,t,{once:!0,capture:!0})})),lr(t,!0),t}})((e=>{_r("lcp",{metric:e}),yr=e}))}function Tr(e,t,n,r,o=!1){let i;return xr(e,t),mr[e]||(i=n(),mr[e]=!0),r&&t({metric:r}),Ar(e,t,o?i:void 0)}function xr(e,t){hr[e]=hr[e]||[],hr[e].push(t)}function Ar(e,t,n){return()=>{n&&n();const r=hr[e];if(!r)return;const o=r.indexOf(t);-1!==o&&r.splice(o,1)}}function Or(e){return"number"===typeof e&&isFinite(e)}function Cr(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}function Ir(e){return e/1e3}function Pr(){return rr&&rr.addEventListener&&rr.performance}let kr,jr,Rr=0,Nr={};function Dr(){const e=Pr();if(e&&Kt.Z1){e.mark&&rr.performance.mark("sentry-tracing-init");const t=function(){return e=({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=Ir(Kt.Z1),r=Ir(t.startTime);nr&&f.kg.log("[Measurements] Adding FID"),Nr.fid={value:e.value,unit:"millisecond"},Nr["mark.fid"]={value:n+r,unit:"second"}},Tr("fid",e,wr,vr);var e}(),n=function(e,t=!1){return Tr("cls",e,Er,gr,t)}((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(nr&&f.kg.log("[Measurements] Adding CLS"),Nr.cls={value:e.value,unit:""},jr=t)}),!0),r=function(e,t=!1){return Tr("lcp",e,Sr,yr,t)}((({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(nr&&f.kg.log("[Measurements] Adding LCP"),Nr.lcp={value:e.value,unit:"millisecond"},kr=t)}),!0);return()=>{t(),n(),r()}}return()=>{}}function Zr(){br("longtask",(({entries:e})=>{for(const t of e){const e=zn();if(!e)return;const n=Ir(Kt.Z1+t.startTime),r=Ir(t.duration);e.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r})}}))}function Lr(){br("event",(({entries:e})=>{for(const t of e){const e=zn();if(!e)return;if("click"===t.name){const n=Ir(Kt.Z1+t.startTime),r=Ir(t.duration),o={description:(0,ce.Rt)(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:n,endTimestamp:n+r},i=(0,ce.iY)(t.target);i&&(o.attributes={"ui.component_name":i}),e.startChild(o)}}}))}function Mr(e){const t=Pr();if(!t||!rr.performance.getEntries||!Kt.Z1)return;nr&&f.kg.log("[Tracing] Adding & adjusting spans using Performance API");const n=Ir(Kt.Z1),r=t.getEntries();let o,i;const{op:a,start_timestamp:s}=(0,wn.XU)(e);if(r.slice(Rr).forEach((t=>{const r=Ir(t.startTime),a=Ir(t.duration);if(!("navigation"===e.op&&s&&n+r{Fr(e,t,r,n)})),Fr(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),Fr(e,t,"fetch",n,"cache","domainLookupStart"),Fr(e,t,"domainLookup",n,"DNS"),function(e,t,n){t.responseEnd&&(Cr(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+Ir(t.requestStart),endTimestamp:n+Ir(t.responseEnd)}),Cr(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+Ir(t.responseStart),endTimestamp:n+Ir(t.responseEnd)}))}(e,t,n)}(e,t,n),o=n+Ir(t.responseStart),i=n+Ir(t.requestStart);break;case"mark":case"paint":case"measure":{!function(e,t,n,r,o){const i=o+n,a=i+r;Cr(e,{description:t.name,endTimestamp:a,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:i})}(e,t,r,a,n);const o=dr(),i=t.startTime{if(!Nr[e]||!s||n>=s)return;const t=Nr[e].value,r=n+Ir(t),o=Math.abs(1e3*(r-s)),i=o-t;nr&&f.kg.log(`[Measurements] Normalized ${e} from ${t} to ${o} (${i})`),Nr[e].value=o}));const t=Nr["mark.fid"];t&&Nr.fid&&(Cr(e,{description:"first input delay",endTimestamp:t.value+Ir(Nr.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:t.value}),delete Nr["mark.fid"]),"fcp"in Nr||delete Nr.cls,Object.keys(Nr).forEach((e=>{!function(e,t,n){const r=zn();r&&r.setMeasurement(e,t,n)}(e,Nr[e].value,Nr[e].unit)})),function(e){kr&&(nr&&f.kg.log("[Measurements] Adding LCP Data"),kr.element&&e.setTag("lcp.element",(0,ce.Rt)(kr.element)),kr.id&&e.setTag("lcp.id",kr.id),kr.url&&e.setTag("lcp.url",kr.url.trim().slice(0,200)),e.setTag("lcp.size",kr.size));jr&&jr.sources&&(nr&&f.kg.log("[Measurements] Adding CLS Data"),jr.sources.forEach(((t,n)=>e.setTag(`cls.source.${n+1}`,(0,ce.Rt)(t.node)))))}(e)}kr=void 0,jr=void 0,Nr={}}function Fr(e,t,n,r,o,i){const a=i?t[i]:t[`${n}End`],s=t[`${n}Start`];s&&a&&Cr(e,{op:"browser",origin:"auto.browser.browser.metrics",description:o||n,startTimestamp:r+Ir(s),endTimestamp:r+Ir(a)})}function Br(e,t,n,r){const o=t[n];null!=o&&o<2147483647&&(e[r]=o)}var Ur=n(73461);function Vr(e,t,n,r,o="auto.http.browser"){if(!c()||!e.fetchData)return;const i=t(e.fetchData.url);if(e.endTimestamp&&i){const t=e.fetchData.__span;if(!t)return;const n=r[t];if(n){if(e.response){Rn(n,e.response.status);const t=e.response&&e.response.headers&&e.response.headers.get("content-length");if(t){const e=parseInt(t);e>0&&n.setAttribute("http.response_content_length",e)}}else e.error&&n.setStatus("internal_error");n.end(),delete r[t]}return}const a=(0,s.nZ)(),u=(0,s.s3)(),{method:l,url:f}=e.fetchData,d=i?Zn({name:`${l} ${f}`,onlyIfParent:!0,attributes:{url:f,type:"fetch","http.method":l,[In]:o},op:"http.client"}):void 0;if(d&&(e.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d),n(e.fetchData.url)&&u){const t=e.args[0];e.args[1]=e.args[1]||{};const n=e.args[1];n.headers=function(e,t,n,r,o){const i=o||n.getSpan(),a=(0,h.aF)(),{traceId:s,spanId:c,sampled:u,dsc:l}={...a.getPropagationContext(),...n.getPropagationContext()},f=i?(0,wn.Hb)(i):(0,tr.$p)(s,c,u),d=(0,Ur.IQ)(l||(i?(0,Gt.j)(i):(0,Gt._)(s,t,n))),p=r.headers||("undefined"!==typeof Request&&(0,j.V9)(e,Request)?e.headers:void 0);if(p){if("undefined"!==typeof Headers&&(0,j.V9)(p,Headers)){const e=new Headers(p);return e.append("sentry-trace",f),d&&e.append(Ur.bU,d),e}if(Array.isArray(p)){const e=[...p,["sentry-trace",f]];return d&&e.push([Ur.bU,d]),e}{const e="baggage"in p?p.baggage:void 0,t=[];return Array.isArray(e)?t.push(...e):e&&t.push(e),d&&t.push(d),{...p,"sentry-trace":f,baggage:t.length>0?t.join(","):void 0}}}return{"sentry-trace":f,baggage:d}}(t,u,a,n,d)}return d}const Hr=["localhost",/^\/(?!\/)/],qr={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:Hr,tracePropagationTargets:Hr};function Gr(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:o,shouldCreateSpanForRequest:i,enableHTTPTimings:a}={traceFetch:qr.traceFetch,traceXHR:qr.traceXHR,...e},u="function"===typeof i?i:e=>!0,l=e=>function(e,t){return(0,x.U0)(e,t||Hr)}(e,r||o),f={};t&&ze((e=>{const t=Vr(e,u,l,f);a&&t&&Wr(t)})),n&&Ve((e=>{const t=function(e,t,n,r){const o=e.xhr,i=o&&o.__sentry_xhr_v3__;if(!c()||!o||o.__sentry_own_request__||!i)return;const a=t(i.url);if(e.endTimestamp&&a){const e=o.__sentry_xhr_span_id__;if(!e)return;const t=r[e];return void(t&&void 0!==i.status_code&&(Rn(t,i.status_code),t.end(),delete r[e]))}const u=(0,s.nZ)(),l=(0,h.aF)(),f=a?Zn({name:`${i.method} ${i.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":i.method,url:i.url,[In]:"auto.http.browser"},op:"http.client"}):void 0;f&&(o.__sentry_xhr_span_id__=f.spanContext().spanId,r[o.__sentry_xhr_span_id__]=f);const d=(0,s.s3)();if(o.setRequestHeader&&n(i.url)&&d){const{traceId:e,spanId:t,sampled:n,dsc:r}={...l.getPropagationContext(),...u.getPropagationContext()};!function(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(Ur.bU,n)}catch(r){}}(o,f?(0,wn.Hb)(f):(0,tr.$p)(e,t,n),(0,Ur.IQ)(r||(f?(0,Gt.j)(f):(0,Gt._)(e,d,u))))}return f}(e,u,l,f);a&&t&&Wr(t)}))}function Wr(e){const{url:t}=(0,wn.XU)(e).data||{};if(!t||"string"!==typeof t)return;const n=br("resource",(({entries:r})=>{r.forEach((r=>{if(function(e){return"resource"===e.entryType&&"initiatorType"in e&&"string"===typeof e.nextHopProtocol&&("fetch"===e.initiatorType||"xmlhttprequest"===e.initiatorType)}(r)&&r.name.endsWith(t)){const t=function(e){const{name:t,version:n}=function(e){let t="unknown",n="unknown",r="";for(const o of e){if("/"===o){[t,n]=e.split("/");break}if(!isNaN(Number(o))){t="h"===r?"http":r,n=e.split(r)[1];break}r+=o}r===e&&(t=r);return{name:t,version:n}}(e.nextHopProtocol),r=[];if(r.push(["network.protocol.version",n],["network.protocol.name",t]),!Kt.Z1)return r;return[...r,["http.request.redirect_start",zr(e.redirectStart)],["http.request.fetch_start",zr(e.fetchStart)],["http.request.domain_lookup_start",zr(e.domainLookupStart)],["http.request.domain_lookup_end",zr(e.domainLookupEnd)],["http.request.connect_start",zr(e.connectStart)],["http.request.secure_connection_start",zr(e.secureConnectionStart)],["http.request.connection_end",zr(e.connectEnd)],["http.request.request_start",zr(e.requestStart)],["http.request.response_start",zr(e.responseStart)],["http.request.response_end",zr(e.responseEnd)]]}(r);t.forEach((t=>e.setAttribute(...t))),setTimeout(n)}}))}))}function zr(e=0){return((Kt.Z1||performance.timeOrigin)+e)/1e3}const $r={...Hn,markBackgroundTransactions:!0,routingInstrumentation:function(e,t=!0,n=!0){if(!rr||!rr.location)return void(nr&&f.kg.warn("Could not initialize routing instrumentation due to invalid location"));let r,o=rr.location.href;t&&(r=e({name:rr.location.pathname,startTimestamp:Kt.Z1?Kt.Z1/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&et((({to:t,from:n})=>{void 0===n&&o&&-1!==o.indexOf(t)?o=void 0:n!==t&&(o=void 0,r&&(nr&&f.kg.log(`[Tracing] Finishing current transaction with op: ${r.op}`),r.end()),r=e({name:rr.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))}))},startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...qr};function Yr(e){const t=(0,ce.qT)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}const Kr={...Hn,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,_experiments:{},...qr},Xr=(e={})=>{const t=!!nr&&!(!e.tracePropagationTargets&&!e.tracingOrigins);er(),!e.tracePropagationTargets&&e.tracingOrigins&&(e.tracePropagationTargets=e.tracingOrigins);const n={...Kr,...e},r=Dr();let o,i;function a(e){const t=(0,h.Gd)(),{beforeStartSpan:a,idleTimeout:s,finalTimeout:c,heartbeatInterval:u}=n,l="pageload"===e.op;let d;if(l){const t=l?eo("sentry-trace"):"",n=l?eo("baggage"):void 0,{traceId:r,dsc:o,parentSpanId:i,sampled:a}=(0,tr.pT)(t,n);d={traceId:r,parentSpanId:i,parentSampled:a,...e,metadata:{...e.metadata,dynamicSamplingContext:o},trimEnd:!0}}else d={trimEnd:!0,...e};const p=a?a(d):d;p.metadata=p.name!==d.name?{...p.metadata,source:"custom"}:p.metadata,o=p.name,i=function(e){const t=e.attributes&&e.attributes["sentry.source"],n=e.data&&e.data["sentry.source"],r=e.metadata&&e.metadata.source;return t||n||r}(p),!1===p.sampled&&nr&&f.kg.log(`[Tracing] Will not send ${p.op} transaction because of beforeNavigate.`),nr&&f.kg.log(`[Tracing] Starting ${p.op} transaction on scope`);const{location:m}=rr,g=Qn(t,p,s,c,!0,{location:m},u,l);return l&&(rr.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(rr.document.readyState)&&g.sendAutoFinishSignal()})),["interactive","complete"].includes(rr.document.readyState)&&g.sendAutoFinishSignal()),g.registerBeforeFinishCallback((e=>{r(),Mr(e)})),g}return n.enableLongTask&&Zr(),n._experiments.enableInteractions&&Lr(),{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(e){const r=e.getOptions(),{markBackgroundSpan:s,traceFetch:c,traceXHR:u,shouldCreateSpanForRequest:l,enableHTTPTimings:d,_experiments:p}=n,m=r&&r.tracePropagationTargets,g=m||n.tracePropagationTargets;let v;nr&&t&&m&&f.kg.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let y=rr.location.href;if(e.on&&(e.on("startNavigationSpan",(e=>{v&&(nr&&f.kg.log(`[Tracing] Finishing current transaction with op: ${(0,wn.XU)(v).op}`),v.end()),v=a({op:"navigation",...e})})),e.on("startPageLoadSpan",(e=>{v&&(nr&&f.kg.log(`[Tracing] Finishing current transaction with op: ${(0,wn.XU)(v).op}`),v.end()),v=a({op:"pageload",...e})}))),n.instrumentPageLoad&&e.emit){const t={name:rr.location.pathname,startTimestamp:Kt.Z1?Kt.Z1/1e3:void 0,origin:"auto.pageload.browser",attributes:{[An]:"url"}};Jr(e,t)}n.instrumentNavigation&&e.emit&&et((({to:t,from:n})=>{if(void 0===n&&y&&-1!==y.indexOf(t))y=void 0;else if(n!==t){y=void 0;const t={name:rr.location.pathname,origin:"auto.navigation.browser",attributes:{[An]:"url"}};Qr(e,t)}})),s&&or(),p.enableInteractions&&function(e,t,n){let r;const o=()=>{const{idleTimeout:o,finalTimeout:i,heartbeatInterval:a}=e,s="ui.action.click",c=zn();if(c&&c.op&&["navigation","pageload"].includes(c.op))return void(nr&&f.kg.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`));if(r&&(r.setFinishReason("interactionInterrupted"),r.end(),r=void 0),!t)return void(nr&&f.kg.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`));const{location:u}=rr,l={name:t,op:s,trimEnd:!0,data:{[An]:n||"url"}};r=Qn((0,h.Gd)(),l,o,i,!0,{location:u},a)};["click"].forEach((e=>{addEventListener(e,o,{once:!1,capture:!0})}))}(n,o,i),Gr({traceFetch:c,traceXHR:u,tracePropagationTargets:g,shouldCreateSpanForRequest:l,enableHTTPTimings:d})},options:n}};function Jr(e,t){if(!e.emit)return;e.emit("startPageLoadSpan",t);const n=Ln();return"pageload"===(n&&(0,wn.XU)(n).op)?n:void 0}function Qr(e,t){if(!e.emit)return;e.emit("startNavigationSpan",t);const n=Ln();return"navigation"===(n&&(0,wn.XU)(n).op)?n:void 0}function eo(e){const t=(0,ce.qT)(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}const to={"routing.instrumentation":"next-app-router"};function no(e,t=!0,n=!0,r,o){let i,a=q.location.pathname;if(t){const t={name:a,op:"pageload",origin:"auto.pageload.nextjs.app_router_instrumentation",tags:to,startTimestamp:Kt.Z1?Kt.Z1/1e3:void 0,metadata:{source:"url"}};i=e(t),r(t)}n&&ze((t=>{if(void 0!==t.endTimestamp)return;if("GET"!==t.fetchData.method)return;const n=function(e){if(!e[0]||"object"!==typeof e[0]||void 0===e[0].searchParams)return null;if(!e[1]||"object"!==typeof e[1]||!("headers"in e[1]))return null;try{const t=e[0],n=e[1].headers;return"1"!==n.RSC||"1"===n["Next-Router-Prefetch"]?null:{targetPathname:t.pathname}}catch(t){return null}}(t.args);if(null===n)return;const r=n.targetPathname,s={...to,from:a};a=r,i&&i.end();const c={name:r,op:"navigation",origin:"auto.navigation.nextjs.app_router_instrumentation",tags:s,metadata:{source:"url"}};e(c),o(c)}))}var ro=n(15129),oo=n.n(ro);const io="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ao=q;const so={"routing.instrumentation":"next-pages-router"};let co,uo;const lo=(0,s.s3)();function fo(e,t=!0,n=!0,r,o){const{route:i,params:a,sentryTrace:c,baggage:u}=function(){let e;const t=ao.document.getElementById("__NEXT_DATA__");if(t&&t.innerHTML)try{e=JSON.parse(t.innerHTML)}catch(a){io&&f.kg.warn("Could not extract __NEXT_DATA__")}if(!e)return{};const n={},{page:r,query:o,props:i}=e;return n.route=r,n.params=o,i&&i.pageProps&&(n.sentryTrace=i.pageProps._sentryTraceData,n.baggage=i.pageProps._sentryBaggage),n}(),{traceparentData:l,dynamicSamplingContext:d,propagationContext:p}=(0,tr.KA)(c,u);if((0,s.nZ)().setPropagationContext(p),uo=i||ao.location.pathname,t){const t=i?"route":"url",n={name:uo,op:"pageload",origin:"auto.pageload.nextjs.pages_router_instrumentation",tags:so,startTimestamp:Kt.Z1?Kt.Z1/1e3:void 0,...a&&lo&&lo.getOptions().sendDefaultPii&&{data:a},...l,metadata:{source:t,dynamicSamplingContext:l&&!d?{}:d}};co=e(n),r(n)}n&&oo().events.on("routeChangeStart",(t=>{const n=t.split(/[\?#]/,1)[0];const r=function(e){const t=(ao.__BUILD_MANIFEST||{}).sortedPages;if(!t)return;return t.find((t=>{const n=function(e){const t=e.split("/");let n="";t[t.length-1].match(/^\[\[\.\.\..+\]\]$/)&&(t.pop(),n="(?:/(.+?))?");const r=t.map((e=>e.replace(/^\[\.\.\..+\]$/,"(.+?)").replace(/^\[.*\]$/,"([^/]+?)"))).join("/");return new RegExp(`^${r}${n}(?:/)?$`)}(t);return e.match(n)}))}(n);let i,a;r?(i=r,a="route"):(i=n,a="url");const s={...so,from:uo};uo=i,co&&co.end();const c={name:i,op:"navigation",origin:"auto.navigation.nextjs.pages_router_instrumentation",tags:s,metadata:{source:a}},u=e(c);if(o(c),u){const e=u.startChild({op:"ui.nextjs.route-change",origin:"auto.ui.nextjs.pages_router_instrumentation",description:"Next.js Route Change"}),t=()=>{e.end(),oo().events.off("routeChangeComplete",t)};oo().events.on("routeChangeComplete",t)}}))}function po(e,t=!0,n=!0,r,o){!q.document.getElementById("__NEXT_DATA__")?no(e,t,n,r||(()=>{}),o||(()=>{})):fo(e,t,n,r||(()=>{}),o||(()=>{}))}class ho extends class{constructor(e){this.name="BrowserTracing",this._hasSetTracePropagationTargets=!1,er(),nr&&(this._hasSetTracePropagationTargets=!(!e||!e.tracePropagationTargets&&!e.tracingOrigins)),this.options={...$r,...e},void 0!==this.options._experiments.enableLongTask&&(this.options.enableLongTask=this.options._experiments.enableLongTask),e&&!e.tracePropagationTargets&&e.tracingOrigins&&(this.options.tracePropagationTargets=e.tracingOrigins),this._collectWebVitals=Dr(),this.options.enableLongTask&&Zr(),this.options._experiments.enableInteractions&&Lr()}setupOnce(e,t){this._getCurrentHub=t;const n=t().getClient(),r=n&&n.getOptions(),{routingInstrumentation:o,startTransactionOnLocationChange:i,startTransactionOnPageLoad:a,markBackgroundTransactions:s,traceFetch:c,traceXHR:u,shouldCreateSpanForRequest:l,enableHTTPTimings:d,_experiments:p}=this.options,h=r&&r.tracePropagationTargets,m=h||this.options.tracePropagationTargets;nr&&this._hasSetTracePropagationTargets&&h&&f.kg.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),o((e=>{const n=this._createRouteTransaction(e);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(n,e,t),n}),a,i),s&&or(),p.enableInteractions&&this._registerInteractionListener(),Gr({traceFetch:c,traceXHR:u,tracePropagationTargets:m,shouldCreateSpanForRequest:l,enableHTTPTimings:d})}_createRouteTransaction(e){if(!this._getCurrentHub)return void(nr&&f.kg.warn(`[Tracing] Did not create ${e.op} transaction because _getCurrentHub is invalid.`));const t=this._getCurrentHub(),{beforeNavigate:n,idleTimeout:r,finalTimeout:o,heartbeatInterval:i}=this.options,a="pageload"===e.op;let s;if(a){const t=a?Yr("sentry-trace"):"",n=a?Yr("baggage"):void 0,{traceId:r,dsc:o,parentSpanId:i,sampled:c}=(0,tr.pT)(t,n);s={traceId:r,parentSpanId:i,parentSampled:c,...e,metadata:{...e.metadata,dynamicSamplingContext:o},trimEnd:!0}}else s={trimEnd:!0,...e};const c="function"===typeof n?n(s):s,u=void 0===c?{...s,sampled:!1}:c;u.metadata=u.name!==s.name?{...u.metadata,source:"custom"}:u.metadata,this._latestRouteName=u.name,this._latestRouteSource=function(e){const t=e.attributes&&e.attributes["sentry.source"],n=e.data&&e.data["sentry.source"],r=e.metadata&&e.metadata.source;return t||n||r}(u),!1===u.sampled&&nr&&f.kg.log(`[Tracing] Will not send ${u.op} transaction because of beforeNavigate.`),nr&&f.kg.log(`[Tracing] Starting ${u.op} transaction on scope`);const{location:l}=rr,d=Qn(t,u,r,o,!0,{location:l},i,a);return a&&(rr.document.addEventListener("readystatechange",(()=>{["interactive","complete"].includes(rr.document.readyState)&&d.sendAutoFinishSignal()})),["interactive","complete"].includes(rr.document.readyState)&&d.sendAutoFinishSignal()),d.registerBeforeFinishCallback((e=>{this._collectWebVitals(),Mr(e)})),d}_registerInteractionListener(){let e;const t=()=>{const{idleTimeout:t,finalTimeout:n,heartbeatInterval:r}=this.options,o="ui.action.click",i=zn();if(i&&i.op&&["navigation","pageload"].includes(i.op))return void(nr&&f.kg.warn(`[Tracing] Did not create ${o} transaction because a pageload or navigation transaction is in progress.`));if(e&&(e.setFinishReason("interactionInterrupted"),e.end(),e=void 0),!this._getCurrentHub)return void(nr&&f.kg.warn(`[Tracing] Did not create ${o} transaction because _getCurrentHub is invalid.`));if(!this._latestRouteName)return void(nr&&f.kg.warn(`[Tracing] Did not create ${o} transaction because _latestRouteName is missing.`));const a=this._getCurrentHub(),{location:s}=rr,c={name:this._latestRouteName,op:o,trimEnd:!0,data:{[An]:this._latestRouteSource||"url"}};e=Qn(a,c,t,n,!0,{location:s},r)};["click"].forEach((e=>{addEventListener(e,t,{once:!1,capture:!0})}))}}{constructor(e){super({tracingOrigins:[...qr.tracingOrigins,/^(api\/)/],routingInstrumentation:po,...e})}}function mo(e,t){let n=0;for(let r=e.length-1;r>=0;r--){const t=e[r];"."===t?e.splice(r,1):".."===t?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}const go=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function vo(e){const t=e.length>1024?`${e.slice(-1024)}`:e,n=go.exec(t);return n?n.slice(1):[]}function yo(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const o=r>=0?e[r]:"/";o&&(t=`${o}/${t}`,n="/"===o.charAt(0))}return t=mo(t.split("/").filter((e=>!!e)),!n).join("/"),(n?"/":"")+t||"."}function bo(e){let t=0;for(;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}const _o="RewriteFrames",Eo=(e={})=>{const t=e.root,n=e.prefix||"app:///",r=e.iteratee||(e=>{if(!e.filename)return e;const r=/^[a-zA-Z]:\\/.test(e.filename)||e.filename.includes("\\")&&!e.filename.includes("/"),o=/^\//.test(e.filename);if(r||o){const o=r?e.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):e.filename,i=t?function(e,t){e=yo(e).slice(1),t=yo(t).slice(1);const n=bo(e.split("/")),r=bo(t.split("/")),o=Math.min(n.length,r.length);let i=o;for(let s=0;sr(e)))}}return{name:_o,setupOnce(){},processEvent(e){let t=e;return e.exception&&Array.isArray(e.exception.values)&&(t=function(e){try{return{...e,exception:{...e.exception,values:e.exception.values.map((e=>({...e,...e.stacktrace&&{stacktrace:o(e.stacktrace)}})))}}}catch(t){return e}}(t)),t}}},wo=(b(_o,Eo),n.g),So=e=>{const t=wo.__rewriteFramesAssetPrefixPath__||"";return Eo({iteratee:e=>{try{const{origin:n}=new URL(e.filename);e.filename=En([e,"access",e=>e.filename,"optionalAccess",e=>e.replace,"call",e=>e(n,"app://"),"access",e=>e.replace,"call",e=>e(t,"")])}catch(n){}return e.filename&&e.filename.startsWith("app:///_next")&&(e.filename=decodeURI(e.filename)),e.filename&&e.filename.match(/^app:\/\/\/_next\/static\/chunks\/(main-|main-app-|polyfills-|webpack-|framework-|framework\.)[0-9a-f]+\.js$/)&&(e.in_app=!1),e},...e})},To=n.g;function xo(e){const t=e.find((e=>"BrowserTracing"===e.name));if(!t)return e;if((n=t).afterAllSetup&&n.options){const{options:n}=t;e[e.indexOf(t)]=new ho(n)}var n;if(!(t instanceof ho)){const n=t.options;delete n.routingInstrumentation,delete n.tracingOrigins,e[e.indexOf(t)]=new ho(n)}return e}function Ao(e){const t=[...vn(),So()];return("undefined"===typeof __SENTRY_TRACING__||__SENTRY_TRACING__)&&c(e)&&t.push(function(e){const t=Xr({tracingOrigins:[...qr.tracingOrigins,/^(api\/)/],...e,instrumentNavigation:!1,instrumentPageLoad:!1});return{...t,afterAllSetup(n){const r=e=>{Jr(n,e)},o=e=>{Qr(n,e)};po((()=>{}),!1,En([e,"optionalAccess",e=>e.instrumentNavigation]),r,o),t.afterAllSetup(n),po((()=>{}),En([e,"optionalAccess",e=>e.instrumentPageLoad]),!1,r,o)}}}()),t}var Oo=n(25620),Co=window;Co.__sentryRewritesTunnelPath__=void 0,Co.SENTRY_RELEASE={id:"2uV0wUPjuliCZ-54V6Vdd"},Co.__sentryBasePath=void 0,Co.__rewriteFramesAssetPrefixPath__="";var Io=Oo.env.SENTRY_DSN||Oo.env.NEXT_PUBLIC_SENTRY_DSN,Po="true"===Oo.env.NEXT_PUBLIC_CLIENT_SENTRY_ENABLED;!function(e){const t={environment:_n(!0)||"production",defaultIntegrations:Ao(e),...e};!function(e){const{integrations:t}=e;if(!t)return;Array.isArray(t)?e.integrations=xo(t):e.integrations=e=>xo(t(e))}(t),function(e){const t=To.__sentryRewritesTunnelPath__;if(t&&e.dsn){const n=Ot(e.dsn);if(!n)return;const r=n.host.match(/^o(\d+)\.ingest\.sentry\.io$/);if(r){const o=`${t}?o=${r[1]}&p=${n.projectId}`;e.tunnel=o,io&&f.kg.info(`Tunneling events to "${o}"`)}else io&&f.kg.warn("Provided DSN is not a Sentry SaaS DSN. Will not tunnel events.")}}(t),a(t,"nextjs",["nextjs","react"]),function(e){const t={...e};a(t,"react"),yn(t)}(t);const n=(0,s.nZ)();n.setTag("runtime","browser");const r=e=>"transaction"===e.type&&"/404"===e.transaction?null:e;r.id="NextClient404Filter",n.addEventProcessor(r)}({enabled:Po,dsn:Po?Io:null,debug:false,defaultIntegrations:!1,autoSessionTracking:!1,tracesSampleRate:0})},15075:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainLocale=function(e,t,r,o){var i=n(12651).normalizeLocalePath,a=n(62161).detectDomainLocale,s=t||i(e,r).detectedLocale,c=a(o,void 0,s);if(c){var u="http".concat(c.http?"":"s","://"),l=s===c.defaultLocale?"":"/".concat(s);return"".concat(u).concat(c.domain).concat("").concat(l).concat(e)}return!1};("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95119:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(79511).Z;n(10224).default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(63611).Z,i=n(81075).Z,a=o(n(67597)),s=n(51917),c=n(41993),u=n(3162),l=n(73707),f=n(27222),d=n(15075),p=n(28415),h={};function m(e,t,n,r){if(e&&s.isLocalURL(t)){Promise.resolve(e.prefetch(t,n,r)).catch((function(e){0}));var o=r&&"undefined"!==typeof r.locale?r.locale:e&&e.locale;h[t+"%"+n+(o?"%"+o:"")]=!0}}var g=a.default.forwardRef((function(e,t){var n,o=e.href,g=e.as,v=e.children,y=e.prefetch,b=e.passHref,_=e.replace,E=e.shallow,w=e.scroll,S=e.locale,T=e.onClick,x=e.onMouseEnter,A=e.onTouchStart,O=e.legacyBehavior,C=void 0===O?!0!==Boolean(!1):O,I=i(e,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"]);n=v,!C||"string"!==typeof n&&"number"!==typeof n||(n=a.default.createElement("a",null,n));var P=!1!==y,k=a.default.useContext(u.RouterContext),j=a.default.useContext(l.AppRouterContext);j&&(k=j);var R,N=a.default.useMemo((function(){var e=r(s.resolveHref(k,o,!0),2),t=e[0],n=e[1];return{href:t,as:g?s.resolveHref(k,g):n||t}}),[k,o,g]),D=N.href,Z=N.as,L=a.default.useRef(D),M=a.default.useRef(Z);C&&(R=a.default.Children.only(n));var F=C?R&&"object"===typeof R&&R.ref:t,B=r(f.useIntersection({rootMargin:"200px"}),3),U=B[0],V=B[1],H=B[2],q=a.default.useCallback((function(e){M.current===Z&&L.current===D||(H(),M.current=Z,L.current=D),U(e),F&&("function"===typeof F?F(e):"object"===typeof F&&(F.current=e))}),[Z,F,D,H,U]);a.default.useEffect((function(){var e=V&&P&&s.isLocalURL(D),t="undefined"!==typeof S?S:k&&k.locale,n=h[D+"%"+Z+(t?"%"+t:"")];e&&!n&&m(k,D,Z,{locale:t})}),[Z,D,V,S,P,k]);var G={ref:q,onClick:function(e){C||"function"!==typeof T||T(e),C&&R.props&&"function"===typeof R.props.onClick&&R.props.onClick(e),e.defaultPrevented||function(e,t,n,r,o,i,c,u,l,f){if("A"!==e.currentTarget.nodeName.toUpperCase()||!function(e){var t=e.currentTarget.target;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)&&s.isLocalURL(n)){e.preventDefault();var d=function(){"beforePopState"in t?t[o?"replace":"push"](n,r,{shallow:i,locale:u,scroll:c}):t[o?"replace":"push"](n,{forceOptimisticNavigation:!f})};l?a.default.startTransition(d):d()}}(e,k,D,Z,_,E,w,S,Boolean(j),P)},onMouseEnter:function(e){C||"function"!==typeof x||x(e),C&&R.props&&"function"===typeof R.props.onMouseEnter&&R.props.onMouseEnter(e),!P&&j||s.isLocalURL(D)&&m(k,D,Z,{priority:!0})},onTouchStart:function(e){C||"function"!==typeof A||A(e),C&&R.props&&"function"===typeof R.props.onTouchStart&&R.props.onTouchStart(e),!P&&j||s.isLocalURL(D)&&m(k,D,Z,{priority:!0})}};if(!C||b||"a"===R.type&&!("href"in R.props)){var W="undefined"!==typeof S?S:k&&k.locale,z=k&&k.isLocaleDomain&&d.getDomainLocale(Z,W,k.locales,k.domainLocales);G.href=z||p.addBasePath(c.addLocale(Z,W,k&&k.defaultLocale))}return C?a.default.cloneElement(R,G):a.default.createElement("a",Object.assign({},I,G),n)}));t.default=g,("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},12651:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeLocalePath=void 0;t.normalizeLocalePath=function(e,t){return n(41266).normalizeLocalePath(e,t)},("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},27222:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(79511).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function(e){var t=e.rootRef,n=e.rootMargin,u=e.disabled||!a,l=r(o.useState(!1),2),f=l[0],d=l[1],p=r(o.useState(null),2),h=p[0],m=p[1];o.useEffect((function(){if(a){if(u||f)return;if(h&&h.tagName){var e=function(e,t,n){var r=function(e){var t,n={root:e.root||null,margin:e.rootMargin||""},r=c.find((function(e){return e.root===n.root&&e.margin===n.margin}));if(r&&(t=s.get(r)))return t;var o=new Map,i=new IntersectionObserver((function(e){e.forEach((function(e){var t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)}))}),e);return t={id:n,observer:i,elements:o},c.push(n),s.set(n,t),t}(n),o=r.id,i=r.observer,a=r.elements;return a.set(e,t),i.observe(e),function(){if(a.delete(e),i.unobserve(e),0===a.size){i.disconnect(),s.delete(o);var t=c.findIndex((function(e){return e.root===o.root&&e.margin===o.margin}));t>-1&&c.splice(t,1)}}}(h,(function(e){return e&&d(e)}),{root:null==t?void 0:t.current,rootMargin:n});return e}}else if(!f){var r=i.requestIdleCallback((function(){return d(!0)}));return function(){return i.cancelIdleCallback(r)}}}),[h,u,n,t,f]);var g=o.useCallback((function(){d(!1)}),[]);return[m,f,g]};var o=n(67597),i=n(56671),a="function"===typeof IntersectionObserver,s=new Map,c=[];("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},73707:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateContext=t.GlobalLayoutRouterContext=t.LayoutRouterContext=t.AppRouterContext=void 0;var r=(0,n(63611).Z)(n(67597)),o=r.default.createContext(null);t.AppRouterContext=o;var i=r.default.createContext(null);t.LayoutRouterContext=i;var a=r.default.createContext(null);t.GlobalLayoutRouterContext=a;var s=r.default.createContext(null);t.TemplateContext=s},53796:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(41264).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=a.default,i=(null==t?void 0:t.suspense)?{}:{loading:function(e){e.error,e.isLoading;return e.pastDelay,null}};r(e,Promise)?i.loader=function(){return e}:"function"===typeof e?i.loader=e:"object"===typeof e&&(i=o({},i,e));if((i=o({},i,t)).suspense)throw new Error("Invalid suspense option usage in next/dynamic. Read more: https://nextjs.org/docs/messages/invalid-dynamic-suspense");i.suspense&&(delete i.ssr,delete i.loading);i.loadableGenerated&&delete(i=o({},i,i.loadableGenerated)).loadableGenerated;if("boolean"===typeof i.ssr&&!i.suspense){if(!i.ssr)return delete i.ssr,s(n,i);delete i.ssr}return n(i)},t.noSSR=s;var o=n(57638).Z,i=n(63611).Z,a=(i(n(67597)),i(n(77046)));function s(e,t){return delete t.webpack,delete t.modules,e(t)}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},38962:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoadableContext=void 0;var r=(0,n(63611).Z)(n(67597)).default.createContext(null);t.LoadableContext=r},77046:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(63106).Z,o=n(11042).Z;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(57638).Z,a=(0,n(63611).Z)(n(67597)),s=n(38962),c=n(34588).useSyncExternalStore,u=[],l=[],f=!1;function d(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}var p=function(){function e(t,n){r(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return o(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;t.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){e._update({}),e._clearTimeouts()})).catch((function(t){e._update({}),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=i({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks.delete(e)}}}]),e}();function h(e){return function(e,t){var n=function(){if(!u){var t=new p(e,o);u={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return u.promise()},r=function(){n();var e=a.default.useContext(s.LoadableContext);e&&Array.isArray(o.modules)&&o.modules.forEach((function(t){e(t)}))},o=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null,suspense:!1},t);o.suspense&&(o.lazy=a.default.lazy(o.loader));var u=null;if(!f){var d=o.webpack?o.webpack():o.modules;d&&l.push((function(e){var t=!0,r=!1,o=void 0;try{for(var i,a=d[Symbol.iterator]();!(t=(i=a.next()).done);t=!0){var s=i.value;if(-1!==e.indexOf(s))return n()}}catch(c){r=!0,o=c}finally{try{t||null==a.return||a.return()}finally{if(r)throw o}}}))}var h=o.suspense?function(e,t){return r(),a.default.createElement(o.lazy,i({},e,{ref:t}))}:function(e,t){r();var n=c(u.subscribe,u.getCurrentValue,u.getCurrentValue);return a.default.useImperativeHandle(t,(function(){return{retry:u.retry}}),[]),a.default.useMemo((function(){return n.loading||n.error?a.default.createElement(o.loading,{isLoading:n.loading,pastDelay:n.pastDelay,timedOut:n.timedOut,error:n.error,retry:u.retry}):n.loaded?a.default.createElement((t=n.loaded)&&t.__esModule?t.default:t,e):null;var t}),[e,n])};return h.preload=function(){return n()},h.displayName="LoadableComponent",a.default.forwardRef(h)}(d,e)}function m(e,t){for(var n=[];e.length;){var r=e.pop();n.push(r(t))}return Promise.all(n).then((function(){if(e.length)return m(e,t)}))}h.preloadAll=function(){return new Promise((function(e,t){m(u).then(e,t)}))},h.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var n=function(){return f=!0,t()};m(l,e).then(n,n)}))},window.__NEXT_PRELOADREADY=h.preloadReady;var g=h;t.default=g},87739:function(e,t,n){"use strict";n.d(t,{BP:function(){return y},H4:function(){return b},KP:function(){return v},U0:function(){return S},_i:function(){return d},ei:function(){return w},iw:function(){return E},lt:function(){return g},tS:function(){return h},yH:function(){return f},yZ:function(){return p},zm:function(){return m}});var r=n(1997),o=n(57044),i=n(16946),a=n(69976),s=n(51726),c=n(57028),u=n(27967),l={headers:{"x-api-key":n(25620).env.NEXT_PUBLIC_SEARCH_API_KEY}},f="OFFLINE",d=function(){var e=(0,r.Z)((function(e,t){var n,r;return(0,s.__generator)(this,(function(o){switch(o.label){case 0:if(!window.navigator.onLine)throw new Error(f);return[4,fetch(e,t)];case 1:if(!(n=o.sent()).ok||500===n.status||404===n.status)throw n;return[4,n.json()];case 2:return r=o.sent(),[2,(0,c.camelizeKeys)(r)]}}))}));return function(t,n){return e.apply(this,arguments)}}(),p=(function(){var e=(0,r.Z)((function(e,t,n){return(0,s.__generator)(this,(function(r){return[2,d((0,u.ML)(e,t,n))]}))}))}(),function(){var e=(0,r.Z)((function(e,t){return(0,s.__generator)(this,(function(n){return[2,d((0,u.Eo)(e,t))]}))}))}(),function(){var e=(0,r.Z)((function(e){return(0,s.__generator)(this,(function(t){return[2,d((0,u.c7)(e))]}))}));return function(t){return e.apply(this,arguments)}}()),h=(function(){var e=(0,r.Z)((function(e){return(0,s.__generator)(this,(function(t){return[2,d((0,u.u8)(e))]}))}))}(),function(){var e=(0,r.Z)((function(e){return(0,s.__generator)(this,(function(t){return[2,d((0,u.G1)(e))]}))}))}(),function(){var e=(0,r.Z)((function(e,t){return(0,s.__generator)(this,(function(n){return[2,d((0,u.jL)(e,t))]}))}));return function(t,n){return e.apply(this,arguments)}}()),m=function(){var e=(0,r.Z)((function(e,t){return(0,s.__generator)(this,(function(n){return[2,d((0,u.Sn)(e,t))]}))}));return function(t,n){return e.apply(this,arguments)}}(),g=function(){var e=(0,r.Z)((function(e,t){var n,r,c,l,f,p=arguments;return(0,s.__generator)(this,(function(s){switch(s.label){case 0:return n=p.length>2&&void 0!==p[2]&&p[2],[4,d((0,u.$6)(e,t,n))];case 1:if((r=s.sent()).error)throw new Error(r.error);if(500===r.status)throw new Error("server error: fail to get audio file");if(c=r.audioFiles,l=(0,a.Z)(c,1),!(f=l[0]))throw new Error("No audio file found");return[2,(0,i.Z)((0,o.Z)({},f),{reciterId:e})]}}))}));return function(t,n){return e.apply(this,arguments)}}(),v=(function(){var e=(0,r.Z)((function(e,t){return(0,s.__generator)(this,(function(n){return[2,d((0,u.tn)(e,t))]}))}))}(),function(){var e=(0,r.Z)((function(e,t){return(0,s.__generator)(this,(function(n){return[2,d((0,u.I0)(e,t))]}))}))}(),function(){var e=(0,r.Z)((function(e){return(0,s.__generator)(this,(function(t){return[2,d((0,u.uL)(e))]}))}));return function(t){return e.apply(this,arguments)}}()),y=function(){var e=(0,r.Z)((function(e){return(0,s.__generator)(this,(function(t){return[2,d((0,u.do)(e))]}))}));return function(t){return e.apply(this,arguments)}}(),b=function(){var e=(0,r.Z)((function(e){return(0,s.__generator)(this,(function(t){return[2,d((0,u.UC)(e),l)]}))}));return function(t){return e.apply(this,arguments)}}(),_=(function(){var e=(0,r.Z)((function(e){return(0,s.__generator)(this,(function(t){return[2,d((0,u.A9)(e))]}))}))}(),function(){var e=(0,r.Z)((function(e,t){return(0,s.__generator)(this,(function(n){return[2,d((0,u.Iq)(e,t))]}))}))}(),function(){var e=(0,r.Z)((function(e,t){return(0,s.__generator)(this,(function(n){return[2,d((0,u.ME)(e,t))]}))}));return function(t,n){return e.apply(this,arguments)}}()),E=(function(){var e=(0,r.Z)((function(e,t,n){return(0,s.__generator)(this,(function(r){return[2,d((0,u.IC)(e,t,n))]}))}))}(),function(){var e=(0,r.Z)((function(e,t,n){return(0,s.__generator)(this,(function(r){return[2,d((0,u.Im)(e,t,n))]}))}))}(),function(){var e=(0,r.Z)((function(e,t,n){return(0,s.__generator)(this,(function(r){return[2,d((0,u.Y8)(e,t,n))]}))}))}(),function(){var e=(0,r.Z)((function(e,t,n){return(0,s.__generator)(this,(function(r){return[2,d((0,u.K2)(e,t,n))]}))}));return function(t,n,r){return e.apply(this,arguments)}}()),w=function(){var e=(0,r.Z)((function(e){return(0,s.__generator)(this,(function(t){return[2,d((0,u.OT)(e))]}))}));return function(t){return e.apply(this,arguments)}}(),S=(function(){var e=(0,r.Z)((function(e){return(0,s.__generator)(this,(function(t){return[2,d((0,u.I$)(e))]}))}))}(),function(){var e=(0,r.Z)((function(e,t){return(0,s.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,_(encodeURI(e),t)];case 1:return[2,n.sent().chapter.id];case 2:return n.sent(),[2,!1];case 3:return[2]}}))}));return function(t,n){return e.apply(this,arguments)}}())},63424:function(e,t,n){"use strict";var r,o,i=n(45361),a=n(57044),s=n(57611),c=(n(67597),n(9605)),u=n.n(c),l="en",f={type:"font/woff2",location:"/fonts/quran/surah-names/v1/sura_names.woff2"},d=(r={},(0,i.Z)(r,l,[{type:"font/woff2",location:"/fonts/lang/ProximaVara/ProximaVara.woff2"},(0,a.Z)({},f)]),(0,i.Z)(r,"ar",[{type:"font/woff2",location:"/fonts/lang/arabic/NotoNaskhArabic-Regular.woff2"},(0,a.Z)({},f)]),(0,i.Z)(r,"bn",[{type:"font/woff2",location:"/fonts/lang/bengali/NotoSerifBengali-Regular.woff2"},(0,a.Z)({},f)]),(0,i.Z)(r,"ur",[{type:"font/woff2",location:"/fonts/lang/urdu/MehrNastaliqWeb.woff2"},(0,a.Z)({},f)]),r),p={type:"font/woff2",location:"/fonts/quran/hafs/nastaleeq/indopak/indopak-nastaleeq-waqf-lazim-v4.2.1.woff2"},h=(o={},(0,i.Z)(o,l,[{type:"font/woff2",location:"/fonts/quran/hafs/uthmanic_hafs/UthmanicHafs1Ver18.woff2"}]),(0,i.Z)(o,"bn",[p]),(0,i.Z)(o,"ur",[p]),(0,i.Z)(o,"id",[p]),o);t.Z=function(e){var t=e.locale,n=e.isQuranReader,r=function(e,t){return t?h[e]||h.en:d[e]||d.en}(t,void 0!==n&&n);return(0,s.jsx)(u(),{children:r.map((function(e){return(0,s.jsx)("link",{rel:"preload",as:"font",type:e.type,href:e.location,crossOrigin:"anonymous"},e.location)}))})}},47471:function(e,t,n){"use strict";n.d(t,{Z:function(){return O}});var r=n(57044),o=n(16946),i=n(96151),a=n(57611),s=n(45361),c=(n(67597),n(37014)),u=n.n(c),l=n(61411),f=n.n(l),d=function(e){var t=e.children,n=e.visible,r=void 0===n||n;return(0,a.jsx)("div",{className:u()(f().footer,(0,s.Z)({},f().invisible,!r)),children:t})},p=n(2838),h=n.n(p),m=function(e){var t=e.children;return(0,a.jsx)("div",{className:h().label,children:t})},g=n(69240),v=n.n(g),y=function(e){return(0,a.jsx)("div",(0,r.Z)({className:v().row},e))},b=n(70980),_=n.n(b),E=n(55698),w=n.n(E),S=n(39747),T=function(e){var t=e.children,n=e.isLoading,r=void 0!==n&&n;return(0,a.jsx)("div",{className:w().title,children:(0,a.jsx)(S.Z,{isLoading:r,children:t})})},x=n(80665),A=function(e){var t=e.children,n=(0,i.Z)(e,["children"]);return(0,a.jsxs)("div",(0,o.Z)((0,r.Z)({className:_().section},n),{children:[t,(0,a.jsx)("div",{className:_().separator,children:(0,a.jsx)(x.Z,{weight:x.B.Bold})})]}))};A.Title=T,A.Label=m,A.Footer=d,A.Row=y;var O=A},37278:function(e,t,n){"use strict";n.d(t,{Z:function(){return N},j:function(){return R}});var r,o,i=n(1997),a=n(45361),s=n(51726),c=n(57611),u=n(67597),l=n(37014),f=n.n(l),d=n(61395),p=n(648),h=n(47471),m=n(60623),g=n.n(m),v=n(71839),y=n(81787);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:m.Z.HOMEPAGE,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(0,I.tE)((0,r.Z)({group:e,index:t},0!==t&&{indicesToMarkAsCompleted:new Array(t).fill(null).map((function(e,t){return t}))}));e===m.Z.SETTINGS||e===m.Z.READING_EXPERIENCE?(_(),setTimeout((function(){c(!0),b(n)}),400)):(c(!0),b(n))}),[b,_]),j=(0,a.useCallback)((function(){c(!1)}),[]),R=(0,a.useCallback)((function(e,t){var n=E[e].length;(0,w.jl)()&&e===m.Z.PERSONALIZED_FEATURES&&(n-=1),b((0,I.tE)({group:e,index:t,totalSteps:n}))}),[b,E]),N=(0,a.useCallback)((function(){R(p.group,p.index+1)}),[p,R]),D=(0,a.useCallback)((function(){0!==p.index&&R(p.group,p.index-1)}),[p,R]),Z=(0,a.useMemo)((function(){var e=E[p.group].map((function(e){return e.step}));return p.group===m.Z.PERSONALIZED_FEATURES?(0,w.jl)()?e.slice(1):[e[0]]:e}),[E,p.group]),L=Z.length>0,M=s&&L,F=(0,a.useMemo)((function(){return{startTour:S,stopTour:function(){return g.close()},nextStep:function(){return g.next()},prevStep:function(){return g.prev()},activeStepGroup:p.group,activeStepIndex:p.index,isActive:s,allSteps:E,allGroups:Object.keys(E)}}),[S,p,s,g,E]);return(0,i.jsxs)(k.Provider,{value:F,children:[(0,i.jsx)(P,{callback:function(e){var t=e.action,n=e.status,r=e.type;r===l.EVENTS.STEP_AFTER||r===l.EVENTS.TARGET_NOT_FOUND?t===l.ACTIONS.PREV?D():t===l.ACTIONS.NEXT&&(p.index{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:s=!0}=e,c=D(t),[u,l]=(0,i.useState)(null),f=(0,i.useRef)(!1),d=(0,S.W)(a),h=(0,p.gm)(o);return(0,i.useEffect)((()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),(0,i.createElement)(y.fC,c,(0,i.createElement)(L,{scope:t,open:n,onOpenChange:d,content:u,onContentChange:l},(0,i.createElement)(F,{scope:t,onClose:(0,i.useCallback)((()=>d(!1)),[d]),isUsingKeyboardRef:f,dir:h,modal:s},r)))},V=(0,i.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e,o=D(n);return(0,i.createElement)(y.ee,(0,a.Z)({},o,r,{ref:t}))})),H="MenuPortal",[q,G]=R(H,{forceMount:void 0}),W=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=M(H,t);return(0,i.createElement)(q,{scope:t,forceMount:n},(0,i.createElement)(_.z,{present:n||a.open},(0,i.createElement)(b.h,{asChild:!0,container:o},r)))},z="MenuContent",[$,Y]=R(z),K=(0,i.forwardRef)(((e,t)=>{const n=G(z,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=M(z,e.__scopeMenu),c=B(z,e.__scopeMenu);return(0,i.createElement)(P.Provider,{scope:e.__scopeMenu},(0,i.createElement)(_.z,{present:r||s.open},(0,i.createElement)(P.Slot,{scope:e.__scopeMenu},c.modal?(0,i.createElement)(X,(0,a.Z)({},o,{ref:t})):(0,i.createElement)(J,(0,a.Z)({},o,{ref:t})))))})),X=(0,i.forwardRef)(((e,t)=>{const n=M(z,e.__scopeMenu),r=(0,i.useRef)(null),o=(0,c.e)(t,r);return(0,i.useEffect)((()=>{const e=r.current;if(e)return(0,T.Ry)(e)}),[]),(0,i.createElement)(Q,(0,a.Z)({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,s.M)(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),J=(0,i.forwardRef)(((e,t)=>{const n=M(z,e.__scopeMenu);return(0,i.createElement)(Q,(0,a.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),Q=(0,i.forwardRef)(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:u,onCloseAutoFocus:l,disableOutsidePointerEvents:f,onEntryFocus:d,onEscapeKeyDown:p,onPointerDownOutside:v,onFocusOutside:b,onInteractOutside:_,onDismiss:S,disableOutsideScroll:T,...A}=e,I=M(z,n),P=B(z,n),j=D(n),R=Z(n),N=k(n),[L,F]=(0,i.useState)(null),U=(0,i.useRef)(null),V=(0,c.e)(t,U,I.onContentChange),H=(0,i.useRef)(0),q=(0,i.useRef)(""),G=(0,i.useRef)(0),W=(0,i.useRef)(null),Y=(0,i.useRef)("right"),K=(0,i.useRef)(0),X=T?x.Z:i.Fragment,J=T?{as:w.g7,allowPinchZoom:!0}:void 0,Q=e=>{var t,n;const r=q.current+e,o=N().filter((e=>!e.disabled)),i=document.activeElement,a=null===(t=o.find((e=>e.ref.current===i)))||void 0===t?void 0:t.textValue,s=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=(a=e,s=Math.max(o,0),a.map(((e,t)=>a[(s+t)%a.length])));var a,s;1===r.length&&(i=i.filter((e=>e!==n)));const c=i.find((e=>e.toLowerCase().startsWith(r.toLowerCase())));return c!==n?c:void 0}(o.map((e=>e.textValue)),r,a),c=null===(n=o.find((e=>e.textValue===s)))||void 0===n?void 0:n.ref.current;!function e(t){q.current=t,window.clearTimeout(H.current),""!==t&&(H.current=window.setTimeout((()=>e("")),1e3))}(r),c&&setTimeout((()=>c.focus()))};(0,i.useEffect)((()=>()=>window.clearTimeout(H.current)),[]),(0,m.EW)();const ee=(0,i.useCallback)((e=>{var t,n;return Y.current===(null===(t=W.current)||void 0===t?void 0:t.side)&&function(e,t){if(!t)return!1;return function(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;ir!==u>r&&n<(c-e)*(r-s)/(u-s)+e&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null===(n=W.current)||void 0===n?void 0:n.area)}),[]);return(0,i.createElement)($,{scope:n,searchRef:q,onItemEnter:(0,i.useCallback)((e=>{ee(e)&&e.preventDefault()}),[ee]),onItemLeave:(0,i.useCallback)((e=>{var t;ee(e)||(null===(t=U.current)||void 0===t||t.focus(),F(null))}),[ee]),onTriggerLeave:(0,i.useCallback)((e=>{ee(e)&&e.preventDefault()}),[ee]),pointerGraceTimerRef:G,onPointerGraceIntentChange:(0,i.useCallback)((e=>{W.current=e}),[])},(0,i.createElement)(X,J,(0,i.createElement)(g.M,{asChild:!0,trapped:o,onMountAutoFocus:(0,s.M)(u,(e=>{var t;e.preventDefault(),null===(t=U.current)||void 0===t||t.focus()})),onUnmountAutoFocus:l},(0,i.createElement)(h.XB,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:p,onPointerDownOutside:v,onFocusOutside:b,onInteractOutside:_,onDismiss:S},(0,i.createElement)(E.fC,(0,a.Z)({asChild:!0},R,{dir:P.dir,orientation:"vertical",loop:r,currentTabStopId:L,onCurrentTabStopIdChange:F,onEntryFocus:(0,s.M)(d,(e=>{P.isUsingKeyboardRef.current||e.preventDefault()}))}),(0,i.createElement)(y.VY,(0,a.Z)({role:"menu","aria-orientation":"vertical","data-state":he(I.open),"data-radix-menu-content":"",dir:P.dir},j,A,{ref:V,style:{outline:"none",...A.style},onKeyDown:(0,s.M)(A.onKeyDown,(e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&Q(e.key));const o=U.current;if(e.target!==o)return;if(!C.includes(e.key))return;e.preventDefault();const i=N().filter((e=>!e.disabled)).map((e=>e.ref.current));O.includes(e.key)&&i.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(i)})),onBlur:(0,s.M)(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(H.current),q.current="")})),onPointerMove:(0,s.M)(e.onPointerMove,me((e=>{const t=e.target,n=K.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>K.current?"right":"left";Y.current=t,K.current=e.clientX}})))})))))))})),ee="MenuItem",te="menu.itemSelect",ne=(0,i.forwardRef)(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,u=(0,i.useRef)(null),l=B(ee,e.__scopeMenu),d=Y(ee,e.__scopeMenu),p=(0,c.e)(t,u),h=(0,i.useRef)(!1);return(0,i.createElement)(re,(0,a.Z)({},o,{ref:p,disabled:n,onClick:(0,s.M)(e.onClick,(()=>{const e=u.current;if(!n&&e){const t=new CustomEvent(te,{bubbles:!0,cancelable:!0});e.addEventListener(te,(e=>null===r||void 0===r?void 0:r(e)),{once:!0}),(0,f.jH)(e,t),t.defaultPrevented?h.current=!1:l.onClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),h.current=!0},onPointerUp:(0,s.M)(e.onPointerUp,(e=>{var t;h.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:(0,s.M)(e.onKeyDown,(e=>{const t=""!==d.searchRef.current;n||t&&" "===e.key||A.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),re=(0,i.forwardRef)(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...u}=e,l=Y(ee,n),d=Z(n),p=(0,i.useRef)(null),h=(0,c.e)(t,p),[m,g]=(0,i.useState)(!1),[v,y]=(0,i.useState)("");return(0,i.useEffect)((()=>{const e=p.current;var t;e&&y((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[u.children]),(0,i.createElement)(P.ItemSlot,{scope:n,disabled:r,textValue:null!==o&&void 0!==o?o:v},(0,i.createElement)(E.ck,(0,a.Z)({asChild:!0},d,{focusable:!r}),(0,i.createElement)(f.WV.div,(0,a.Z)({role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0},u,{ref:h,onPointerMove:(0,s.M)(e.onPointerMove,me((e=>{if(r)l.onItemLeave(e);else if(l.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus()}}))),onPointerLeave:(0,s.M)(e.onPointerLeave,me((e=>l.onItemLeave(e)))),onFocus:(0,s.M)(e.onFocus,(()=>g(!0))),onBlur:(0,s.M)(e.onBlur,(()=>g(!1)))}))))})),oe="MenuRadioGroup",[ie,ae]=R(oe,{value:void 0,onValueChange:()=>{}}),se="MenuItemIndicator",[ce,ue]=R(se,{checked:!1}),le=(0,i.forwardRef)(((e,t)=>{const{__scopeMenu:n,...r}=e;return(0,i.createElement)(f.WV.div,(0,a.Z)({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),fe="MenuSub",[de,pe]=R(fe);function he(e){return e?"open":"closed"}function me(e){return t=>"mouse"===t.pointerType?e(t):void 0}const ge=U,ve=V,ye=W,be=K,_e=ne,Ee=le,we="DropdownMenu",[Se,Te]=(0,u.b)(we,[N]),xe=N(),[Ae,Oe]=Se(we),Ce=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:c,modal:u=!0}=e,f=xe(t),d=(0,i.useRef)(null),[p=!1,h]=(0,l.T)({prop:o,defaultProp:s,onChange:c});return(0,i.createElement)(Ae,{scope:t,triggerId:(0,v.M)(),triggerRef:d,contentId:(0,v.M)(),open:p,onOpenChange:h,onOpenToggle:(0,i.useCallback)((()=>h((e=>!e))),[h]),modal:u},(0,i.createElement)(ge,(0,a.Z)({},f,{open:p,onOpenChange:h,dir:r,modal:u}),n))},Ie="DropdownMenuTrigger",Pe=(0,i.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,u=Oe(Ie,n),l=xe(n);return(0,i.createElement)(ve,(0,a.Z)({asChild:!0},l),(0,i.createElement)(f.WV.button,(0,a.Z)({type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:(0,c.F)(t,u.triggerRef),onPointerDown:(0,s.M)(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(u.onOpenToggle(),u.open||e.preventDefault())})),onKeyDown:(0,s.M)(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&u.onOpenToggle(),"ArrowDown"===e.key&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())}))})))})),ke=e=>{const{__scopeDropdownMenu:t,...n}=e,r=xe(t);return(0,i.createElement)(ye,(0,a.Z)({},r,n))},je="DropdownMenuContent",Re=(0,i.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Oe(je,n),c=xe(n),u=(0,i.useRef)(!1);return(0,i.createElement)(be,(0,a.Z)({id:o.contentId,"aria-labelledby":o.triggerId},c,r,{ref:t,onCloseAutoFocus:(0,s.M)(e.onCloseAutoFocus,(e=>{var t;u.current||null===(t=o.triggerRef.current)||void 0===t||t.focus(),u.current=!1,e.preventDefault()})),onInteractOutside:(0,s.M)(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;o.modal&&!r||(u.current=!0)})),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}}))})),Ne=(0,i.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return(0,i.createElement)(_e,(0,a.Z)({},o,r,{ref:t}))})),De=(0,i.forwardRef)(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=xe(n);return(0,i.createElement)(Ee,(0,a.Z)({},o,r,{ref:t}))})),Ze=Ce,Le=Pe,Me=ke,Fe=Re,Be=Ne,Ue=De;var Ve,He=n(37014),qe=n.n(He),Ge=n(62892),We=n.n(Ge),ze=n(22209);!function(e){e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left"}(Ve||(Ve={}));var $e=function(e){var t=e.children,n=e.isOpen,r=e.trigger,a=e.isPortalled,s=void 0===a||a,c=e.isModal,u=void 0===c||c,l=e.shouldClose,f=void 0===l||l,d=e.onOpenChange,p=e.expandDirection,h=void 0===p?Ve.BOTTOM:p,m=e.contentClassName,g=(0,i.useState)(n),v=g[0],y=g[1],b=(0,ze.Z)(),_=(0,o.jsx)(Fe,{className:qe()(We().content,m),side:h,children:t});return(0,i.useEffect)((function(){y(n)}),[n]),(0,o.jsxs)(Ze,{dir:b,open:v,modal:u,onOpenChange:function(e){f&&(d&&d(e),y(e))},children:[r&&(0,o.jsx)(Le,{asChild:!0,onClick:function(){return y(!0)},children:(0,o.jsx)("span",{children:r})}),s?(0,o.jsx)(Me,{children:_}):_]})};$e.Item=function(e){var t=e.children,n=e.icon,i=e.onClick,a=e.isDisabled,s=e.shouldCloseMenuAfterClick,c=void 0!==s&&s,u=e.shouldFlipOnRTL,l=void 0!==u&&u,f=e.className,d=e.id,p=e.isSelected,h=e.shouldStopPropagation;return(0,o.jsxs)(Be,{className:qe()(We().item,f,(0,r.Z)({},We().selected,p)),onClick:function(e){h&&e.stopPropagation(),c||e.preventDefault(),i&&i()},disabled:a,id:d,children:[n&&(0,o.jsx)("span",{className:qe()(We().iconWrapper,(0,r.Z)({},We().shouldFlipOnRTL,l)),children:n}),t]})},$e.Divider=function(){return(0,o.jsx)(Ue,{className:We().separator})};var Ye=$e},80665:function(e,t,n){"use strict";n.d(t,{B:function(){return d},Z:function(){return v}});var r=n(45361),o=n(57611),i=n(57384),a=n(67597),s=n(4300);const c="horizontal",u=["horizontal","vertical"],l=(0,a.forwardRef)(((e,t)=>{const{decorative:n,orientation:r=c,...o}=e,u=f(r)?r:c,l=n?{role:"none"}:{"aria-orientation":"vertical"===u?u:void 0,role:"separator"};return(0,a.createElement)(s.WV.div,(0,i.Z)({"data-orientation":u},l,o,{ref:t}))}));function f(e){return u.includes(e)}l.propTypes={orientation(e,t,n){const r=e[t],o=String(r);return r&&!f(r)?new Error(function(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \`${c}\`.`}(o,n)):null}};var d,p=n(37014),h=n.n(p),m=n(64327),g=n.n(m);!function(e){e.Bold="bold",e.SemiBold="semiBold"}(d||(d={}));var v=function(e){var t=e.isVertical,n=void 0!==t&&t,i=e.className,a=e.weight,s=void 0===a?d.SemiBold:a;return(0,o.jsx)(l,{orientation:n?"vertical":"horizontal",className:h()(g().base,g()[s],(0,r.Z)({},i,i))})}},90914:function(e,t,n){"use strict";var r=n(45361),o=n(57611),i=n(37014),a=n.n(i),s=n(94935),c=n.n(s);t.Z=function(e){var t,n=e.children,i=e.isRounded,s=e.isSquared,u=e.isActive,l=void 0===u||u,f=e.className;return(0,o.jsx)("span",{className:a()(c().skeleton,(t={},(0,r.Z)(t,c().baseSize,!n&&!f),(0,r.Z)(t,c().active,l),(0,r.Z)(t,c().rounded,i),(0,r.Z)(t,c().squared,s),(0,r.Z)(t,f,f),t)),children:n&&(0,o.jsx)("span",{className:c().content,children:n})})}},10117:function(e,t,n){"use strict";n.d(t,{E:function(){return r}});var r,o=n(45361),i=n(8522),a=n(57611),s=n(37014),c=n.n(s),u=n(90561),l=n.n(u);!function(e){e.Small="small",e.Medium="medium",e.Large="Large"}(r||(r={}));var f=function(){return(0,i.Z)(new Array(12)).map((function(e,t){return(0,a.jsx)("span",{className:l().span},"spinner-".concat(t))}))};t.Z=function(e){var t,n=e.size,i=void 0===n?r.Medium:n,s=e.isCentered,u=void 0===s||s,d=e.className,p=e.shouldDelayVisibility;return(0,a.jsx)("div",{className:c()(l().spinner,d,(t={},(0,o.Z)(t,l().large,i===r.Large),(0,o.Z)(t,l().normal,i===r.Medium),(0,o.Z)(t,l().small,i===r.Small),(0,o.Z)(t,l().centered,u),(0,o.Z)(t,l().delayVisibility,p),t)),children:(0,a.jsx)("div",{className:l().container,children:f()})})}},39747:function(e,t,n){"use strict";var r=n(57611),o=(n(67597),n(71032)),i=n.n(o),a=n(10117);t.Z=function(e){var t=e.children,n=e.isLoading;return(0,r.jsxs)("div",{className:i().internalContainer,children:[t,n&&(0,r.jsx)(a.Z,{className:i().spinner})]})}},71839:function(e,t,n){"use strict";n.d(t,{E:function(){return r}});var r,o=n(45361),i=n(57611),a=n(37014),s=n.n(a),c=n(57065),u=n.n(c),l=n(15129),f=n(31222),d=n.n(f),p=n(43609);!function(e){e.XSmall="xsmall",e.Small="small",e.Normal="normal",e.Large="large"}(r||(r={}));t.Z=function(e){var t=e.items,n=e.onSelect,a=e.selected,c=e.size,f=void 0===c?r.Normal:c,h=t.findIndex((function(e){return e.value===a})),m=(0,l.useRouter)().locale;return(0,i.jsxs)("div",{className:s()(d().container,(0,o.Z)({},d().xSmallContainer,f===r.XSmall)),children:[t.map((function(e){var t;return(0,i.jsx)("button",{disabled:e.disabled,type:"button",className:s()(d().item,a===e.value&&d().itemSelected,(t={},(0,o.Z)(t,d().itemLarge,f===r.Large),(0,o.Z)(t,d().itemNormal,f===r.Normal),(0,o.Z)(t,d().itemSmall,f===r.Small),(0,o.Z)(t,d().itemXSmall,f===r.XSmall),t)),onClick:function(){return n(e.value)},children:e.name},e.value)})),t.length>2&&u()(1,t.length).map((function(e){return(0,i.jsx)("div",{className:s()(d().separatorLine,(0,o.Z)({},d().separatorLineVisible,h!==e&&h!==e-1)),style:{width:"".concat(100/t.length,"%"),transform:"translateX(".concat(100*e,"%)")}},e)})),(0,i.jsx)("div",{className:d().selectedItemBackgroundContainer,style:{width:"".concat(1/t.length*100,"%"),transform:"translateX(".concat((0,p.iS)(m)?"-":"").concat(100*h,"%)")},children:(0,i.jsx)("div",{className:d().selectedItemBackground})})]})}},85609:function(e,t,n){"use strict";n.r(t),n.d(t,{ToastContainer:function(){return W},ToastStatus:function(){return B},useToast:function(){return z}});var r=n(45361),o=n(57611),i=n(67597),a=n(37014),s=n.n(a);function c(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t"number"==typeof e&&!isNaN(e),f=e=>"string"==typeof e,d=e=>"function"==typeof e,p=e=>f(e)||d(e)?e:null,h=e=>(0,i.isValidElement)(e)||f(e)||d(e)||l(e);function m(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:o=!0,collapseDuration:a=300}=e;return function(e){let{children:s,position:c,preventExitTransition:u,done:l,nodeRef:f,isIn:d}=e;const p=r?`${t}--${c}`:t,h=r?`${n}--${c}`:n,m=(0,i.useRef)(0);return(0,i.useLayoutEffect)((()=>{const e=f.current,t=p.split(" "),n=r=>{r.target===f.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===m.current&&"animationcancel"!==r.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)}),[]),(0,i.useEffect)((()=>{const e=f.current,t=()=>{e.removeEventListener("animationend",t),o?function(e,t,n){void 0===n&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame((()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame((()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)}))}))}(e,l,a):l()};d||(u?t():(m.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))}),[d]),i.createElement(i.Fragment,null,s)}}function g(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const v={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter((e=>e!==t));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const n=setTimeout((()=>{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)}))}},y=e=>{let{theme:t,type:n,...r}=e;return i.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...r})},b={info:function(e){return i.createElement(y,{...e},i.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return i.createElement(y,{...e},i.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return i.createElement(y,{...e},i.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return i.createElement(y,{...e},i.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return i.createElement("div",{className:"Toastify__spinner"})}};function _(e){const[,t]=(0,i.useReducer)((e=>e+1),0),[n,r]=(0,i.useState)([]),o=(0,i.useRef)(null),a=(0,i.useRef)(new Map).current,s=e=>-1!==n.indexOf(e),c=(0,i.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:s,getToast:e=>a.get(e)}).current;function u(e){let{containerId:t}=e;const{limit:n}=c.props;!n||t&&c.containerId!==t||(c.count-=c.queue.length,c.queue=[])}function m(e){r((t=>null==e?[]:t.filter((t=>t!==e))))}function y(){const{toastContent:e,toastProps:t,staleId:n}=c.queue.shift();E(e,t,n)}function _(e,n){let{delay:r,staleId:s,...u}=n;if(!h(e)||function(e){return!o.current||c.props.enableMultiContainer&&e.containerId!==c.props.containerId||a.has(e.toastId)&&null==e.updateId}(u))return;const{toastId:_,updateId:w,data:S}=u,{props:T}=c,x=()=>m(_),A=null==w;A&&c.count++;const O={...T,style:T.toastStyle,key:c.toastKey++,...Object.fromEntries(Object.entries(u).filter((e=>{let[t,n]=e;return null!=n}))),toastId:_,updateId:w,data:S,closeToast:x,isIn:!1,className:p(u.className||T.toastClassName),bodyClassName:p(u.bodyClassName||T.bodyClassName),progressClassName:p(u.progressClassName||T.progressClassName),autoClose:!u.isLoading&&(C=u.autoClose,I=T.autoClose,!1===C||l(C)&&C>0?C:I),deleteToast(){const e=g(a.get(_),"removed");a.delete(_),v.emit(4,e);const n=c.queue.length;if(c.count=null==_?c.count-c.displayedToast:c.count-1,c.count<0&&(c.count=0),n>0){const e=null==_?c.props.limit:1;if(1===n||1===e)c.displayedToast++,y();else{const t=e>n?n:e;c.displayedToast=t;for(let e=0;ee in b)(n)&&(a=b[n](s))),a}(O),d(u.onOpen)&&(O.onOpen=u.onOpen),d(u.onClose)&&(O.onClose=u.onClose),O.closeButton=T.closeButton,!1===u.closeButton||h(u.closeButton)?O.closeButton=u.closeButton:!0===u.closeButton&&(O.closeButton=!h(T.closeButton)||T.closeButton);let P=e;(0,i.isValidElement)(e)&&!f(e.type)?P=(0,i.cloneElement)(e,{closeToast:x,toastProps:O,data:S}):d(e)&&(P=e({closeToast:x,toastProps:O,data:S})),T.limit&&T.limit>0&&c.count>T.limit&&A?c.queue.push({toastContent:P,toastProps:O,staleId:s}):l(r)?setTimeout((()=>{E(P,O,s)}),r):E(P,O,s)}function E(e,t,n){const{toastId:o}=t;n&&a.delete(n);const i={content:e,props:t};a.set(o,i),r((e=>[...e,o].filter((e=>e!==n)))),v.emit(4,g(i,null==i.props.updateId?"added":"updated"))}return(0,i.useEffect)((()=>(c.containerId=e.containerId,v.cancelEmit(3).on(0,_).on(1,(e=>o.current&&m(e))).on(5,u).emit(2,c),()=>{a.clear(),v.emit(3,c)})),[]),(0,i.useEffect)((()=>{c.props=e,c.isToastActive=s,c.displayedToast=n.length})),{getToastToRender:function(t){const n=new Map,r=Array.from(a.values());return e.newestOnTop&&r.reverse(),r.forEach((e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(e=>t(e[0],e[1])))},containerRef:o,isToastActive:s}}function E(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function w(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function S(e){const[t,n]=(0,i.useState)(!1),[r,o]=(0,i.useState)(!1),a=(0,i.useRef)(null),s=(0,i.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,c=(0,i.useRef)(e),{autoClose:u,pauseOnHover:l,closeToast:f,onClick:p,closeOnClick:h}=e;function m(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),s.didMove=!1,document.addEventListener("mousemove",b),document.addEventListener("mouseup",_),document.addEventListener("touchmove",b),document.addEventListener("touchend",_);const n=a.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=n.getBoundingClientRect(),n.style.transition="",s.x=E(t.nativeEvent),s.y=w(t.nativeEvent),"x"===e.draggableDirection?(s.start=s.x,s.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(s.start=s.y,s.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function g(t){if(s.boundingRect){const{top:n,bottom:r,left:o,right:i}=s.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&s.x>=o&&s.x<=i&&s.y>=n&&s.y<=r?y():v()}}function v(){n(!0)}function y(){n(!1)}function b(n){const r=a.current;s.canDrag&&r&&(s.didMove=!0,t&&y(),s.x=E(n),s.y=w(n),s.delta="x"===e.draggableDirection?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),r.style.transform=`translate${e.draggableDirection}(${s.delta}px)`,r.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function _(){document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",_),document.removeEventListener("touchmove",b),document.removeEventListener("touchend",_);const t=a.current;if(s.canDrag&&s.didMove&&t){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return o(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,i.useEffect)((()=>{c.current=e})),(0,i.useEffect)((()=>(a.current&&a.current.addEventListener("d",v,{once:!0}),d(e.onOpen)&&e.onOpen((0,i.isValidElement)(e.children)&&e.children.props),()=>{const e=c.current;d(e.onClose)&&e.onClose((0,i.isValidElement)(e.children)&&e.children.props)})),[]),(0,i.useEffect)((()=>(e.pauseOnFocusLoss&&(document.hasFocus()||y(),window.addEventListener("focus",v),window.addEventListener("blur",y)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",v),window.removeEventListener("blur",y))})),[e.pauseOnFocusLoss]);const S={onMouseDown:m,onTouchStart:m,onMouseUp:g,onTouchEnd:g};return u&&l&&(S.onMouseEnter=y,S.onMouseLeave=v),h&&(S.onClick=e=>{p&&p(e),s.canCloseOnClick&&f()}),{playToast:v,pauseToast:y,isRunning:t,preventExitTransition:r,toastRef:a,eventHandlers:S}}function T(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return i.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":r},i.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},i.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function x(e){let{delay:t,isRunning:n,closeToast:r,type:o="default",hide:a,className:s,style:c,controlledProgress:l,progress:f,rtl:p,isIn:h,theme:m}=e;const g=a||l&&0===f,v={...c,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:g?0:1};l&&(v.transform=`scaleX(${f})`);const y=u("Toastify__progress-bar",l?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":p}),b=d(s)?s({rtl:p,type:o,defaultClassName:y}):u(y,s);return i.createElement("div",{role:"progressbar","aria-hidden":g?"true":"false","aria-label":"notification timer",className:b,style:v,[l&&f>=1?"onTransitionEnd":"onAnimationEnd"]:l&&f<1?null:()=>{h&&r()}})}const A=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o}=S(e),{closeButton:a,children:s,autoClose:c,onClick:l,type:f,hideProgressBar:p,closeToast:h,transition:m,position:g,className:v,style:y,bodyClassName:b,bodyStyle:_,progressClassName:E,progressStyle:w,updateId:A,role:O,progress:C,rtl:I,toastId:P,deleteToast:k,isIn:j,isLoading:R,iconOut:N,closeOnClick:D,theme:Z}=e,L=u("Toastify__toast",`Toastify__toast-theme--${Z}`,`Toastify__toast--${f}`,{"Toastify__toast--rtl":I},{"Toastify__toast--close-on-click":D}),M=d(v)?v({rtl:I,position:g,type:f,defaultClassName:L}):u(L,v),F=!!C||!c,B={closeToast:h,type:f,theme:Z};let U=null;return!1===a||(U=d(a)?a(B):(0,i.isValidElement)(a)?(0,i.cloneElement)(a,B):T(B)),i.createElement(m,{isIn:j,done:k,position:g,preventExitTransition:n,nodeRef:r},i.createElement("div",{id:P,onClick:l,className:M,...o,style:y,ref:r},i.createElement("div",{...j&&{role:O},className:d(b)?b({type:f}):u("Toastify__toast-body",b),style:_},null!=N&&i.createElement("div",{className:u("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!R})},N),i.createElement("div",null,s)),U,i.createElement(x,{...A&&!F?{key:`pb-${A}`}:{},rtl:I,theme:Z,delay:c,isRunning:t,isIn:j,closeToast:h,hide:p,type:f,style:w,className:E,controlledProgress:F,progress:C||0})))},O=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},C=m(O("bounce",!0)),I=(m(O("slide",!0)),m(O("zoom")),m(O("flip")),(0,i.forwardRef)(((e,t)=>{const{getToastToRender:n,containerRef:r,isToastActive:o}=_(e),{className:a,style:s,rtl:c,containerId:l}=e;function f(e){const t=u("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":c});return d(a)?a({position:e,rtl:c,defaultClassName:t}):u(t,p(a))}return(0,i.useEffect)((()=>{t&&(t.current=r.current)}),[]),i.createElement("div",{ref:r,className:"Toastify",id:l},n(((e,t)=>{const n=t.length?{...s}:{...s,pointerEvents:"none"};return i.createElement("div",{className:f(e),style:n,key:`container-${e}`},t.map(((e,n)=>{let{content:r,props:a}=e;return i.createElement(A,{...a,isIn:o(a.toastId),style:{...a.style,"--nth":n+1,"--len":t.length},key:`toast-${a.key}`},r)})))})))})));I.displayName="ToastContainer",I.defaultProps={position:"top-right",transition:C,autoClose:5e3,closeButton:T,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let P,k=new Map,j=[],R=1;function N(){return""+R++}function D(e){return e&&(f(e.toastId)||l(e.toastId))?e.toastId:N()}function Z(e,t){return k.size>0?v.emit(0,e,t):j.push({content:e,options:t}),t.toastId}function L(e,t){return{...t,type:t&&t.type||e,toastId:D(t)}}function M(e){return(t,n)=>Z(t,L(e,n))}function F(e,t){return Z(e,L("default",t))}F.loading=(e,t)=>Z(e,L("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),F.promise=function(e,t,n){let r,{pending:o,error:i,success:a}=t;o&&(r=f(o)?F.loading(o,n):F.loading(o.render,{...n,...o}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},c=(e,t,o)=>{if(null==t)return void F.dismiss(r);const i={type:e,...s,...n,data:o},a=f(t)?{render:t}:t;return r?F.update(r,{...i,...a}):F(a.render,{...i,...a}),o},u=d(e)?e():e;return u.then((e=>c("success",a,e))).catch((e=>c("error",i,e))),u},F.success=M("success"),F.info=M("info"),F.error=M("error"),F.warning=M("warning"),F.warn=F.warning,F.dark=(e,t)=>Z(e,L("default",{theme:"dark",...t})),F.dismiss=e=>{k.size>0?v.emit(1,e):j=j.filter((t=>null!=e&&t.options.toastId!==e))},F.clearWaitingQueue=function(e){return void 0===e&&(e={}),v.emit(5,e)},F.isActive=e=>{let t=!1;return k.forEach((n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},F.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const n=function(e,t){let{containerId:n}=t;const r=k.get(n||P);return r&&r.getToast(e)}(e,t);if(n){const{props:r,content:o}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:N()};i.toastId!==e&&(i.staleId=e);const a=i.render||o;delete i.render,Z(a,i)}}),0)},F.done=e=>{F.update(e,{progress:1})},F.onChange=e=>(v.on(4,e),()=>{v.off(4,e)}),F.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},F.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},v.on(2,(e=>{P=e.containerId||e,k.set(P,e),j.forEach((e=>{v.emit(0,e.content,e.options)})),j=[]})).on(3,(e=>{k.delete(e.containerId||e),0===k.size&&v.off(0).off(1).off(5)}));n(40993);var B,U=n(36731),V=n.n(U),H=n(16748),q=n(85494);!function(e){e.Success="success",e.Error="error",e.Warning="warning"}(B||(B={}));var G=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=F((0,o.jsxs)("div",{className:V().contentContainer,children:[e,n.actions&&(0,o.jsx)("div",{className:V().actionsContainer,children:n.actions.map((function(e,t){return(0,o.jsx)(q.ZP,{type:e.primary?q.L$.Primary:q.L$.Secondary,className:V().action,size:q.qE.Small,onClick:function(){var t;F.dismiss(i),null===(t=e.onClick)||void 0===t||t.call(e)},children:e.text},t)}))})]}),{autoClose:!n.preserve&&3e3,closeButton:!1,className:s()(V().toast,(t={},(0,r.Z)(t,V().errorBody,"error"===n.status),(0,r.Z)(t,V().successBody,"success"===n.status),(0,r.Z)(t,V().warningBody,"warning"===n.status),t))})},W=function(){return(0,o.jsx)(I,{transition:m({enter:"".concat(V().animate," ").concat(V().enter),exit:"".concat(V().animate," ").concat(V().exit)}),className:V().toastContainer,bodyClassName:V().toastBody,toastClassName:V().toast,position:"bottom-right",hideProgressBar:!0,draggableDirection:"y"})},z=function(){var e=(0,i.useContext)(H.Z);return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e(!0),G(t,n)}}},16748:function(e,t,n){"use strict";var r=n(67597).createContext(null);t.Z=r},45077:function(e,t,n){"use strict";n.d(t,{iw:function(){return o}});var r,o,i,a=n(45361),s=n(57044),c=n(16946),u=n(57611),l=(n(67597),n(27754)),f=n(37014),d=n.n(f),p=n(77497),h=n.n(p);!function(e){e.SUCCESS="success",e.ERROR="error",e.WARNING="warning",e.SECONDARY="secondary"}(r||(r={})),function(e){e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left"}(o||(o={})),function(e){e.START="start",e.CENTER="center",e.END="end"}(i||(i={}));t.ZP=function(e){var t,n=e.text,f=e.children,p=e.onOpenChange,m=e.open,g=e.type,v=e.contentSide,y=void 0===v?o.BOTTOM:v,b=e.contentAlign,_=void 0===b?i.CENTER:b,E=e.avoidCollisions,w=void 0===E||E,S=e.delay,T=void 0===S?400:S,x=e.tip,A=void 0===x||x,O=e.invertColors,C=void 0===O||O,I=e.centerText,P=void 0===I||I;return(0,u.jsxs)(l.fC,(0,c.Z)((0,s.Z)({delayDuration:T},"undefined"!==typeof m&&{open:m},p&&{onOpenChange:p}),{children:[(0,u.jsx)(l.xz,{"aria-label":"Open tooltip",asChild:!0,children:(0,u.jsx)("span",{className:h().trigger,children:f})}),(0,u.jsxs)(l.VY,{sideOffset:2,side:y,align:_,avoidCollisions:w,className:d()(h().content,(t={},(0,a.Z)(t,h().noInverse,!1===C),(0,a.Z)(t,h().noCenter,!1===P),(0,a.Z)(t,h().success,g===r.SUCCESS),(0,a.Z)(t,h().warning,g===r.WARNING),(0,a.Z)(t,h().error,g===r.ERROR),(0,a.Z)(t,h().secondary,g===r.SECONDARY),t)),children:[n,A&&(0,u.jsx)(l.Eh,{})]})]}))}},9192:function(e,t,n){"use strict";var r=(0,n(67597).createContext)({});t.Z=r},81787:function(e,t,n){"use strict";var r=n(67597),o=n(61395),i=n(648),a=n(85609),s=n(5330),c=n(15721),u=n(9740),l=n(19226),f=n(70356);t.Z=function(){var e=(0,i.I0)(),t=(0,a.useToast)(),n=(0,o.Z)("common").t,d=(0,r.useState)(!1),p=d[0],h=d[1],m=(0,i.v9)(s.Ho,i.wU),g=(0,i.v9)(s.z$,i.wU),v=(0,r.useCallback)((function(e,t,n){if(e===f.Z.QURAN_READER_STYLES){var r="quranFont"===t?n:m,o="mushafLines"===t?n:g;return(0,c.$P)(r,o).mushaf}}),[m,g]);return{actions:(0,r.useMemo)((function(){return{onSettingsChangeWithoutDispatch:function(e,t,n,r){(0,l.jl)()?(h(!0),(0,u.b9)(e,t,n,v(n,e,t)).then((function(){r()})).finally((function(){h(!1)}))):r()},onXstateSettingsChange:function(e,r,o,i,s,c){(0,l.jl)()?(o(),h(!0),(0,u.b9)(e,r,s,v(s,e,r)).then((function(){c&&c()})).catch((function(){t(n("error.pref-persist-fail"),{status:a.ToastStatus.Warning,actions:[{text:n("undo"),primary:!0,onClick:function(){i()}},{text:n("continue"),primary:!1,onClick:function(){c&&c()}}]})})).finally((function(){h(!1)}))):o()},onSettingsChange:function(r,o,i,s,c,f){(0,l.jl)()?(e(i),h(!0),(0,u.b9)(r,o,c,v(c,r,o)).then((function(){f&&f()})).catch((function(){t(n("error.pref-persist-fail"),{status:a.ToastStatus.Warning,actions:[{text:n("undo"),primary:!0,onClick:function(){e(s)}},{text:n("continue"),primary:!1,onClick:function(){f&&f()}}]})})).finally((function(){h(!1)}))):e(i)}}}),[e,n,t,v]),isLoading:p}}},32190:function(e,t,n){"use strict";var r=n(67597);t.Z=r.useLayoutEffect},62076:function(e,t,n){"use strict";var r=n(67597);t.Z=function(e,t){var n=(0,r.useState)(e),o=n[0],i=n[1];return(0,r.useEffect)((function(){var n=setTimeout((function(){i(e)}),t);return function(){clearTimeout(n)}}),[e,t]),o}},22209:function(e,t,n){"use strict";var r=n(15129),o=n(43609);t.Z=function(){var e=(0,r.useRouter)().locale;return(0,o.XP)(e)}},36830:function(e,t,n){"use strict";var r=n(67597);t.Z=function(e){var t=(0,r.useRef)(null);return[function(){t.current&&t.current.focus(e)},t]}},15104:function(e,t,n){"use strict";var r=n(1997),o=n(51726),i=n(67597),a=n(22582);t.Z=function(e){var t=(0,i.useState)(null),n=t[0],s=t[1];return(0,i.useEffect)((function(){(0,r.Z)((function(){return(0,o.__generator)(this,(function(t){switch(t.label){case 0:return[4,(0,a.T4)(e)];case 1:return s.apply(void 0,[t.sent()]),[2]}}))}))()}),[e]),n}},23516:function(e,t,n){"use strict";var r=n(67597);t.Z=function(e,t,n){(0,r.useEffect)((function(){var r=function(n){e.current&&!e.current.contains(n.target)&&t()};return n&&document.addEventListener("mousedown",r),function(){document.removeEventListener("mousedown",r)}}),[e,t,n])}},58465:function(e,t){"use strict";t.Z=function(){return function(){window.scrollTo(0,0)}}},51232:function(e,t,n){"use strict";n.r(t),n.d(t,{analytics:function(){return Zn},default:function(){return Ln},isFirebaseEnabled:function(){return Dn}});var r={};n.r(r),n.d(r,{FirebaseError:function(){return b},SDK_VERSION:function(){return be},_DEFAULT_ENTRY_NAME:function(){return se},_addComponent:function(){return fe},_addOrOverwriteComponent:function(){return de},_apps:function(){return ue},_clearComponents:function(){return ge},_components:function(){return le},_getProvider:function(){return he},_registerComponent:function(){return pe},_removeServiceInstance:function(){return me},deleteApp:function(){return Se},getApp:function(){return Ee},getApps:function(){return we},initializeApp:function(){return _e},onLog:function(){return xe},registerVersion:function(){return Te},setLogLevel:function(){return Ae}});var o=n(25620);const i=function(e){const t=[];let n=0;for(let r=0;r>6|192,t[n++]=63&o|128):55296===(64512&o)&&r+1>18|240,t[n++]=o>>12&63|128,t[n++]=o>>6&63|128,t[n++]=63&o|128):(t[n++]=o>>12|224,t[n++]=o>>6&63|128,t[n++]=63&o|128)}return t},a={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"===typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let o=0;o>2,l=(3&t)<<4|a>>4;let f=(15&a)<<2|c>>6,d=63&c;s||(d=64,i||(f=64)),r.push(n[u],n[l],n[f],n[d])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(i(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n191&&o<224){const i=e[n++];t[r++]=String.fromCharCode((31&o)<<6|63&i)}else if(o>239&&o<365){const i=((7&o)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(i>>10)),t[r++]=String.fromCharCode(56320+(1023&i))}else{const i=e[n++],a=e[n++];t[r++]=String.fromCharCode((15&o)<<12|(63&i)<<6|63&a)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let o=0;o>4;if(r.push(u),64!==a){const e=i<<4&240|a>>2;if(r.push(e),64!==c){const e=a<<6&192|c;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class s extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const c=function(e){return function(e){const t=i(e);return a.encodeByteArray(t,!0)}(e).replace(/\./g,"")},u=function(e){try{return a.decodeString(e,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};function l(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(const n in t)t.hasOwnProperty(n)&&"__proto__"!==n&&(e[n]=l(e[n],t[n]));return e}const f=()=>function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__,d=()=>{try{return f()||(()=>{if("undefined"===typeof o||"undefined"===typeof o.env)return;const e=o.env.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if("undefined"===typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(n){return}const t=e&&u(e[1]);return t&&JSON.parse(t)})()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}},p=()=>{var e;return null===(e=d())||void 0===e?void 0:e.config};class h{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"===typeof e&&(this.promise.catch((()=>{})),1===e.length?e(t):e(t,n))}}}function m(){const e="object"===typeof chrome?chrome.runtime:"object"===typeof browser?browser.runtime:void 0;return"object"===typeof e&&void 0!==e.id}function g(){try{return"object"===typeof indexedDB}catch(e){return!1}}function v(){return new Promise(((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",o=self.indexedDB.open(r);o.onsuccess=()=>{o.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},o.onupgradeneeded=()=>{n=!1},o.onerror=()=>{var e;t((null===(e=o.error)||void 0===e?void 0:e.message)||"")}}catch(n){t(n)}}))}function y(){return!("undefined"===typeof navigator||!navigator.cookieEnabled)}class b extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,b.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,_.prototype.create)}}class _{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},r=`${this.service}/${e}`,o=this.errors[e],i=o?function(e,t){return e.replace(E,((e,n)=>{const r=t[n];return null!=r?String(r):`<${n}?>`}))}(o,n):"Error",a=`${this.serviceName}: ${i} (${r}).`;return new b(r,a,n)}}const E=/\{\$([^}]+)}/g;function w(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function S(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const o of n){if(!r.includes(o))return!1;const n=e[o],i=t[o];if(T(n)&&T(i)){if(!S(n,i))return!1}else if(n!==i)return!1}for(const o of r)if(!n.includes(o))return!1;return!0}function T(e){return null!==e&&"object"===typeof e}function x(e,t){const n=new A(e,t);return n.subscribe.bind(n)}class A{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then((()=>{e(this)})).catch((e=>{this.error(e)}))}next(e){this.forEachObserver((t=>{t.next(e)}))}error(e){this.forEachObserver((t=>{t.error(e)})),this.close(e)}complete(){this.forEachObserver((e=>{e.complete()})),this.close()}subscribe(e,t,n){let r;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");r=function(e,t){if("object"!==typeof e||null===e)return!1;for(const n of t)if(n in e&&"function"===typeof e[n])return!0;return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n},void 0===r.next&&(r.next=O),void 0===r.error&&(r.error=O),void 0===r.complete&&(r.complete=O);const o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then((()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch(e){}})),this.observers.push(r),o}unsubscribeOne(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t{if(void 0!==this.observers&&void 0!==this.observers[e])try{t(this.observers[e])}catch(n){"undefined"!==typeof console&&console.error&&console.error(n)}}))}close(e){this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then((()=>{this.observers=void 0,this.onNoObservers=void 0})))}}function O(){}function C(e,t=1e3,n=2){const r=t*Math.pow(n,e),o=Math.round(.5*r*(Math.random()-.5)*2);return Math.min(144e5,r+o)}function I(e){return e&&e._delegate?e._delegate:e}class P{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const k="[DEFAULT]";class j{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new h;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(n){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(null===e||void 0===e?void 0:e.identifier),r=null!==(t=null===e||void 0===e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(o){if(r)return null;throw o}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:k})}catch(t){}for(const[e,n]of this.instancesDeferred.entries()){const r=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:r});n.resolve(e)}catch(t){}}}}clearInstance(e="[DEFAULT]"){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter((e=>"INTERNAL"in e)).map((e=>e.INTERNAL.delete())),...e.filter((e=>"_delete"in e)).map((e=>e._delete()))])}isComponentSet(){return null!=this.component}isInitialized(e="[DEFAULT]"){return this.instances.has(e)}getOptions(e="[DEFAULT]"){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[o,i]of this.instancesDeferred.entries()){n===this.normalizeInstanceIdentifier(o)&&i.resolve(r)}return r}onInit(e,t){var n;const r=this.normalizeInstanceIdentifier(t),o=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;o.add(e),this.onInitCallbacks.set(r,o);const i=this.instances.get(r);return i&&e(i,r),()=>{o.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const o of n)try{o(e,t)}catch(r){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:(r=e,r===k?void 0:r),options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch(o){}var r;return n||null}normalizeInstanceIdentifier(e="[DEFAULT]"){return this.component?this.component.multipleInstances?e:k:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class R{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new j(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}const N=[];var D;!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(D||(D={}));const Z={debug:D.DEBUG,verbose:D.VERBOSE,info:D.INFO,warn:D.WARN,error:D.ERROR,silent:D.SILENT},L=D.INFO,M={[D.DEBUG]:"log",[D.VERBOSE]:"log",[D.INFO]:"info",[D.WARN]:"warn",[D.ERROR]:"error"},F=(e,t,...n)=>{if(t(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Y(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(V||(V=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(J(this),t),X(H.get(this))}:function(...t){return X(e.apply(J(this),t))}:function(t,...n){const r=e.call(J(this),t,...n);return G.set(r,t.sort?t.sort():[t]),X(r)}}function K(e){return"function"===typeof e?Y(e):(e instanceof IDBTransaction&&function(e){if(q.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",i),e.removeEventListener("abort",i)},o=()=>{t(),r()},i=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",o),e.addEventListener("error",i),e.addEventListener("abort",i)}));q.set(e,t)}(e),t=e,(U||(U=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((e=>t instanceof e))?new Proxy(e,$):e);var t}function X(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",o),e.removeEventListener("error",i)},o=()=>{t(X(e.result)),r()},i=()=>{n(e.error),r()};e.addEventListener("success",o),e.addEventListener("error",i)}));return t.then((t=>{t instanceof IDBCursor&&H.set(t,e)})).catch((()=>{})),z.set(t,e),t}(e);if(W.has(e))return W.get(e);const t=K(e);return t!==e&&(W.set(e,t),z.set(t,e)),t}const J=e=>z.get(e);const Q=["get","getKey","getAll","getAllKeys","count"],ee=["put","add","delete","clear"],te=new Map;function ne(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(te.get(t))return te.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=ee.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!o&&!Q.includes(n))return;const i=async function(e,...t){const i=this.transaction(e,o?"readwrite":"readonly");let a=i.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[n](...t),o&&i.done]))[0]};return te.set(t,i),i}$=(e=>({...e,get:(t,n,r)=>ne(t,n)||e.get(t,n,r),has:(t,n)=>!!ne(t,n)||e.has(t,n)}))($);class re{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null===t||void 0===t?void 0:t.type)}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}const oe="@firebase/app",ie="0.9.13",ae=new B("@firebase/app"),se="[DEFAULT]",ce={[oe]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},ue=new Map,le=new Map;function fe(e,t){try{e.container.addComponent(t)}catch(n){ae.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function de(e,t){e.container.addOrOverwriteComponent(t)}function pe(e){const t=e.name;if(le.has(t))return ae.debug(`There were multiple attempts to register component ${t}.`),!1;le.set(t,e);for(const n of ue.values())fe(n,e);return!0}function he(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function me(e,t,n=se){he(e,t).clearInstance(n)}function ge(){le.clear()}const ve=new _("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."});class ye{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new P("app",(()=>this),"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw ve.create("app-deleted",{appName:this._name})}}const be="9.23.0";function _e(e,t={}){let n=e;if("object"!==typeof t){t={name:t}}const r=Object.assign({name:se,automaticDataCollectionEnabled:!1},t),o=r.name;if("string"!==typeof o||!o)throw ve.create("bad-app-name",{appName:String(o)});if(n||(n=p()),!n)throw ve.create("no-options");const i=ue.get(o);if(i){if(S(n,i.options)&&S(r,i.config))return i;throw ve.create("duplicate-app",{appName:o})}const a=new R(o);for(const c of le.values())a.addComponent(c);const s=new ye(n,r,a);return ue.set(o,s),s}function Ee(e=se){const t=ue.get(e);if(!t&&e===se&&p())return _e();if(!t)throw ve.create("no-app",{appName:e});return t}function we(){return Array.from(ue.values())}async function Se(e){const t=e.name;ue.has(t)&&(ue.delete(t),await Promise.all(e.container.getProviders().map((e=>e.delete()))),e.isDeleted=!0)}function Te(e,t,n){var r;let o=null!==(r=ce[e])&&void 0!==r?r:e;n&&(o+=`-${n}`);const i=o.match(/\s|\//),a=t.match(/\s|\//);if(i||a){const e=[`Unable to register library "${o}" with version "${t}":`];return i&&e.push(`library name "${o}" contains illegal characters (whitespace or "/")`),i&&a&&e.push("and"),a&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void ae.warn(e.join(" "))}pe(new P(`${o}-version`,(()=>({library:o,version:t})),"VERSION"))}function xe(e,t){if(null!==e&&"function"!==typeof e)throw ve.create("invalid-log-argument");!function(e,t){for(const n of N){let r=null;t&&t.level&&(r=Z[t.level]),n.userLogHandler=null===e?null:(t,n,...o)=>{const i=o.map((e=>{if(null==e)return null;if("string"===typeof e)return e;if("number"===typeof e||"boolean"===typeof e)return e.toString();if(e instanceof Error)return e.message;try{return JSON.stringify(e)}catch(t){return null}})).filter((e=>e)).join(" ");n>=(null!==r&&void 0!==r?r:t.logLevel)&&e({level:D[n].toLowerCase(),message:i,args:o,type:t.name})}}}(e,t)}function Ae(e){var t;t=e,N.forEach((e=>{e.setLogLevel(t)}))}const Oe="firebase-heartbeat-store";let Ce=null;function Ie(){return Ce||(Ce=function(e,t,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){const a=indexedDB.open(e,t),s=X(a);return r&&a.addEventListener("upgradeneeded",(e=>{r(X(a.result),e.oldVersion,e.newVersion,X(a.transaction),e)})),n&&a.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),s.then((e=>{i&&e.addEventListener("close",(()=>i())),o&&e.addEventListener("versionchange",(e=>o(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)e.createObjectStore(Oe)}}).catch((e=>{throw ve.create("idb-open",{originalErrorMessage:e.message})}))),Ce}async function Pe(e,t){try{const n=(await Ie()).transaction(Oe,"readwrite"),r=n.objectStore(Oe);await r.put(t,ke(e)),await n.done}catch(n){if(n instanceof b)ae.warn(n.message);else{const e=ve.create("idb-set",{originalErrorMessage:null===n||void 0===n?void 0:n.message});ae.warn(e.message)}}}function ke(e){return`${e.name}!${e.options.appId}`}class je{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new Ne(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){const e=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),t=Re();if(null===this._heartbeatsCache&&(this._heartbeatsCache=await this._heartbeatsCachePromise),this._heartbeatsCache.lastSentHeartbeatDate!==t&&!this._heartbeatsCache.heartbeats.some((e=>e.date===t)))return this._heartbeatsCache.heartbeats.push({date:t,agent:e}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((e=>{const t=new Date(e.date).valueOf();return Date.now()-t<=2592e6})),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null===this._heartbeatsCache||0===this._heartbeatsCache.heartbeats.length)return"";const e=Re(),{heartbeatsToSend:t,unsentEntries:n}=function(e,t=1024){const n=[];let r=e.slice();for(const o of e){const e=n.find((e=>e.agent===o.agent));if(e){if(e.dates.push(o.date),De(n)>t){e.dates.pop();break}}else if(n.push({agent:o.agent,dates:[o.date]}),De(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),r=c(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),r}}function Re(){return(new Date).toISOString().substring(0,10)}class Ne{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!g()&&v().then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){return await async function(e){try{const t=await Ie();return await t.transaction(Oe).objectStore(Oe).get(ke(e))}catch(t){if(t instanceof b)ae.warn(t.message);else{const e=ve.create("idb-get",{originalErrorMessage:null===t||void 0===t?void 0:t.message});ae.warn(e.message)}}}(this.app)||{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return Pe(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return Pe(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function De(e){return c(JSON.stringify({version:2,heartbeats:e})).length}var Ze;Ze="",pe(new P("platform-logger",(e=>new re(e)),"PRIVATE")),pe(new P("heartbeat",(e=>new je(e)),"PRIVATE")),Te(oe,ie,Ze),Te(oe,ie,"esm2017"),Te("fire-js","");class Le{constructor(e,t){this._delegate=e,this.firebase=t,fe(e,new P("app-compat",(()=>this),"PUBLIC")),this.container=e.container}get automaticDataCollectionEnabled(){return this._delegate.automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this._delegate.automaticDataCollectionEnabled=e}get name(){return this._delegate.name}get options(){return this._delegate.options}delete(){return new Promise((e=>{this._delegate.checkDestroyed(),e()})).then((()=>(this.firebase.INTERNAL.removeApp(this.name),Se(this._delegate))))}_getService(e,t=se){var n;this._delegate.checkDestroyed();const r=this._delegate.container.getProvider(e);return r.isInitialized()||"EXPLICIT"!==(null===(n=r.getComponent())||void 0===n?void 0:n.instantiationMode)||r.initialize(),r.getImmediate({identifier:t})}_removeServiceInstance(e,t=se){this._delegate.container.getProvider(e).clearInstance(t)}_addComponent(e){fe(this._delegate,e)}_addOrOverwriteComponent(e){de(this._delegate,e)}toJSON(){return{name:this.name,automaticDataCollectionEnabled:this.automaticDataCollectionEnabled,options:this.options}}}const Me=new _("app-compat","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance."});const Fe=function e(){const t=function(e){const t={},n={__esModule:!0,initializeApp:function(r,o={}){const i=_e(r,o);if(w(t,i.name))return t[i.name];const a=new e(i,n);return t[i.name]=a,a},app:o,registerVersion:Te,setLogLevel:Ae,onLog:xe,apps:null,SDK_VERSION:be,INTERNAL:{registerComponent:function(t){const r=t.name,i=r.replace("-compat","");if(pe(t)&&"PUBLIC"===t.type){const a=(e=o())=>{if("function"!==typeof e[i])throw Me.create("invalid-app-argument",{appName:r});return e[i]()};void 0!==t.serviceProps&&l(a,t.serviceProps),n[i]=a,e.prototype[i]=function(...e){return this._getService.bind(this,r).apply(this,t.multipleInstances?e:[])}}return"PUBLIC"===t.type?n[i]:null},removeApp:function(e){delete t[e]},useAsService:function(e,t){return"serverAuth"===t?null:t},modularAPIs:r}};function o(e){if(!w(t,e=e||se))throw Me.create("no-app",{appName:e});return t[e]}return n.default=n,Object.defineProperty(n,"apps",{get:function(){return Object.keys(t).map((e=>t[e]))}}),o.App=e,n}(Le);return t.INTERNAL=Object.assign(Object.assign({},t.INTERNAL),{createFirebaseNamespace:e,extendNamespace:function(e){l(t,e)},createSubscribe:x,ErrorFactory:_,deepExtend:l}),t}(),Be=new B("@firebase/app-compat");if("object"===typeof self&&self.self===self&&void 0!==self.firebase){Be.warn("\n Warning: Firebase is already defined in the global scope. Please make sure\n Firebase library is only loaded once.\n ");const e=self.firebase.SDK_VERSION;e&&e.indexOf("LITE")>=0&&Be.warn("\n Warning: You are trying to load Firebase while using Firebase Performance standalone script.\n You should load Firebase Performance with this instance of Firebase to avoid loading duplicate code.\n ")}const Ue=Fe;!function(e){Te("@firebase/app-compat","0.2.13",e)}();Ue.registerVersion("firebase","9.23.0","app-compat");let Ve,He;const qe=new WeakMap,Ge=new WeakMap,We=new WeakMap,ze=new WeakMap,$e=new WeakMap;let Ye={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return Ge.get(e);if("objectStoreNames"===t)return e.objectStoreNames||We.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Je(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Ke(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(He||(He=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(Qe(this),t),Je(qe.get(this))}:function(...t){return Je(e.apply(Qe(this),t))}:function(t,...n){const r=e.call(Qe(this),t,...n);return We.set(r,t.sort?t.sort():[t]),Je(r)}}function Xe(e){return"function"===typeof e?Ke(e):(e instanceof IDBTransaction&&function(e){if(Ge.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",i),e.removeEventListener("abort",i)},o=()=>{t(),r()},i=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",o),e.addEventListener("error",i),e.addEventListener("abort",i)}));Ge.set(e,t)}(e),t=e,(Ve||(Ve=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((e=>t instanceof e))?new Proxy(e,Ye):e);var t}function Je(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",o),e.removeEventListener("error",i)},o=()=>{t(Je(e.result)),r()},i=()=>{n(e.error),r()};e.addEventListener("success",o),e.addEventListener("error",i)}));return t.then((t=>{t instanceof IDBCursor&&qe.set(t,e)})).catch((()=>{})),$e.set(t,e),t}(e);if(ze.has(e))return ze.get(e);const t=Xe(e);return t!==e&&(ze.set(e,t),$e.set(t,e)),t}const Qe=e=>$e.get(e);const et=["get","getKey","getAll","getAllKeys","count"],tt=["put","add","delete","clear"],nt=new Map;function rt(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!==typeof t)return;if(nt.get(t))return nt.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=tt.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!o&&!et.includes(n))return;const i=async function(e,...t){const i=this.transaction(e,o?"readwrite":"readonly");let a=i.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[n](...t),o&&i.done]))[0]};return nt.set(t,i),i}!function(e){Ye=e(Ye)}((e=>({...e,get:(t,n,r)=>rt(t,n)||e.get(t,n,r),has:(t,n)=>!!rt(t,n)||e.has(t,n)})));const ot="@firebase/installations",it="0.6.4",at=1e4,st="w:0.6.4",ct="FIS_v2",ut=36e5,lt=new _("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function ft(e){return e instanceof b&&e.code.includes("request-failed")}function dt({projectId:e}){return`https://firebaseinstallations.googleapis.com/v1/projects/${e}/installations`}function pt(e){return{token:e.token,requestStatus:2,expiresIn:(t=e.expiresIn,Number(t.replace("s","000"))),creationTime:Date.now()};var t}async function ht(e,t){const n=(await t.json()).error;return lt.create("request-failed",{requestName:e,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})}function mt({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function gt(e,{refreshToken:t}){const n=mt(e);return n.append("Authorization",function(e){return`FIS_v2 ${e}`}(t)),n}async function vt(e){const t=await e();return t.status>=500&&t.status<600?e():t}function yt(e){return new Promise((t=>{setTimeout(t,e)}))}const bt=/^[cdef][\w-]{21}$/;function _t(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const t=function(e){return(t=e,btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_")).substr(0,22);var t}(e);return bt.test(t)?t:""}catch(e){return""}}function Et(e){return`${e.appName}!${e.appId}`}const wt=new Map;function St(e,t){const n=Et(e);Tt(n,t),function(e,t){const n=At();n&&n.postMessage({key:e,fid:t});Ot()}(n,t)}function Tt(e,t){const n=wt.get(e);if(n)for(const r of n)r(t)}let xt=null;function At(){return!xt&&"BroadcastChannel"in self&&(xt=new BroadcastChannel("[Firebase] FID Change"),xt.onmessage=e=>{Tt(e.data.key,e.data.fid)}),xt}function Ot(){0===wt.size&&xt&&(xt.close(),xt=null)}const Ct="firebase-installations-store";let It=null;function Pt(){return It||(It=function(e,t,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){const a=indexedDB.open(e,t),s=Je(a);return r&&a.addEventListener("upgradeneeded",(e=>{r(Je(a.result),e.oldVersion,e.newVersion,Je(a.transaction))})),n&&a.addEventListener("blocked",(()=>n())),s.then((e=>{i&&e.addEventListener("close",(()=>i())),o&&e.addEventListener("versionchange",(()=>o()))})).catch((()=>{})),s}("firebase-installations-database",1,{upgrade:(e,t)=>{if(0===t)e.createObjectStore(Ct)}})),It}async function kt(e,t){const n=Et(e),r=(await Pt()).transaction(Ct,"readwrite"),o=r.objectStore(Ct),i=await o.get(n);return await o.put(t,n),await r.done,i&&i.fid===t.fid||St(e,t.fid),t}async function jt(e){const t=Et(e),n=(await Pt()).transaction(Ct,"readwrite");await n.objectStore(Ct).delete(t),await n.done}async function Rt(e,t){const n=Et(e),r=(await Pt()).transaction(Ct,"readwrite"),o=r.objectStore(Ct),i=await o.get(n),a=t(i);return void 0===a?await o.delete(n):await o.put(a,n),await r.done,!a||i&&i.fid===a.fid||St(e,a.fid),a}async function Nt(e){let t;const n=await Rt(e.appConfig,(n=>{const r=function(e){return Lt(e||{fid:_t(),registrationStatus:0})}(n),o=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine){return{installationEntry:t,registrationPromise:Promise.reject(lt.create("app-offline"))}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=async function(e,t){try{const n=await async function({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=dt(e),o=mt(e),i=t.getImmediate({optional:!0});if(i){const e=await i.getHeartbeatsHeader();e&&o.append("x-firebase-client",e)}const a={fid:n,authVersion:ct,appId:e.appId,sdkVersion:st},s={method:"POST",headers:o,body:JSON.stringify(a)},c=await vt((()=>fetch(r,s)));if(c.ok){const e=await c.json();return{fid:e.fid||n,registrationStatus:2,refreshToken:e.refreshToken,authToken:pt(e.authToken)}}throw await ht("Create Installation",c)}(e,t);return kt(e.appConfig,n)}catch(n){throw ft(n)&&409===n.customData.serverCode?await jt(e.appConfig):await kt(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}(e,n);return{installationEntry:n,registrationPromise:r}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:Dt(e)}:{installationEntry:t}}(e,r);return t=o.registrationPromise,o.installationEntry}));return""===n.fid?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}async function Dt(e){let t=await Zt(e.appConfig);for(;1===t.registrationStatus;)await yt(100),t=await Zt(e.appConfig);if(0===t.registrationStatus){const{installationEntry:t,registrationPromise:n}=await Nt(e);return n||t}return t}function Zt(e){return Rt(e,(e=>{if(!e)throw lt.create("installation-not-found");return Lt(e)}))}function Lt(e){return 1===(t=e).registrationStatus&&t.registrationTime+atfetch(r,s)));if(c.ok){return pt(await c.json())}throw await ht("Generate Auth Token",c)}async function Ft(e,t=!1){let n;const r=await Rt(e.appConfig,(r=>{if(!Ut(r))throw lt.create("not-registered");const o=r.authToken;if(!t&&function(e){return 2===e.requestStatus&&!function(e){const t=Date.now();return t{if(!Ut(e))throw lt.create("not-registered");const t=e.authToken;return 1===(n=t).requestStatus&&n.requestTime+at{const t=he(e.getProvider("app").getImmediate(),qt).getImmediate();return{getId:()=>async function(e){const t=e,{installationEntry:n,registrationPromise:r}=await Nt(t);return r?r.catch(console.error):Ft(t).catch(console.error),n.fid}(t),getToken:e=>Vt(t,e)}};pe(new P(qt,(e=>{const t=e.getProvider("app").getImmediate(),n=function(e){if(!e||!e.options)throw Ht("App Configuration");if(!e.name)throw Ht("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw Ht(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t);return{app:t,appConfig:n,heartbeatServiceProvider:he(t,"heartbeat"),_delete:()=>Promise.resolve()}}),"PUBLIC")),pe(new P("installations-internal",Gt,"PRIVATE")),Te(ot,it),Te(ot,it,"esm2017");const Wt="analytics",zt="https://www.googletagmanager.com/gtag/js",$t=new B("@firebase/analytics"),Yt=new _("analytics","Analytics",{"already-exists":"A Firebase Analytics instance with the appId {$id} already exists. Only one Firebase Analytics instance can be created for each appId.","already-initialized":"initializeAnalytics() cannot be called again with different options than those it was initially called with. It can be called again with the same options to return the existing instance, or getAnalytics() can be used to get a reference to the already-intialized instance.","already-initialized-settings":"Firebase Analytics has already been initialized.settings() must be called before initializing any Analytics instanceor it will have no effect.","interop-component-reg-failed":"Firebase Analytics Interop Component failed to instantiate: {$reason}","invalid-analytics-context":"Firebase Analytics is not supported in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","indexeddb-unavailable":"IndexedDB unavailable or restricted in this environment. Wrap initialization of analytics in analytics.isSupported() to prevent initialization in unsupported environments. Details: {$errorInfo}","fetch-throttle":"The config fetch request timed out while in an exponential backoff state. Unix timestamp in milliseconds when fetch request throttling ends: {$throttleEndTimeMillis}.","config-fetch-failed":"Dynamic config fetch failed: [{$httpStatus}] {$responseMessage}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid API key.',"no-app-id":'The "appId" field is empty in the local Firebase config. Firebase Analytics requires this field tocontain a valid app ID.',"no-client-id":'The "client_id" field is empty.',"invalid-gtag-resource":"Trusted Types detected an invalid gtag resource: {$gtagURL}."});function Kt(e){if(!e.startsWith(zt)){const t=Yt.create("invalid-gtag-resource",{gtagURL:e});return $t.warn(t.message),""}return e}function Xt(e){return Promise.all(e.map((e=>e.catch((e=>e)))))}function Jt(e,t){const n=function(e,t){let n;return window.trustedTypes&&(n=window.trustedTypes.createPolicy(e,t)),n}("firebase-js-sdk-policy",{createScriptURL:Kt}),r=document.createElement("script"),o=`${zt}?l=${e}&id=${t}`;r.src=n?null===n||void 0===n?void 0:n.createScriptURL(o):o,r.async=!0,document.head.appendChild(r)}function Qt(e,t,n,r){return async function(o,...i){try{if("event"===o){const[r,o]=i;await async function(e,t,n,r,o){try{let i=[];if(o&&o.send_to){let e=o.send_to;Array.isArray(e)||(e=[e]);const r=await Xt(n);for(const n of e){const e=r.find((e=>e.measurementId===n)),o=e&&t[e.appId];if(!o){i=[];break}i.push(o)}}0===i.length&&(i=Object.values(t)),await Promise.all(i),e("event",r,o||{})}catch(i){$t.error(i)}}(e,t,n,r,o)}else if("config"===o){const[o,a]=i;await async function(e,t,n,r,o,i){const a=r[o];try{if(a)await t[a];else{const e=(await Xt(n)).find((e=>e.measurementId===o));e&&await t[e.appId]}}catch(s){$t.error(s)}e("config",o,i)}(e,t,n,r,o,a)}else if("consent"===o){const[t]=i;e("consent","update",t)}else if("get"===o){const[t,n,r]=i;e("get",t,n,r)}else if("set"===o){const[t]=i;e("set",t)}else e(o,...i)}catch(a){$t.error(a)}}}const en=new class{constructor(e={},t=1e3){this.throttleMetadata=e,this.intervalMillis=t}getThrottleMetadata(e){return this.throttleMetadata[e]}setThrottleMetadata(e,t){this.throttleMetadata[e]=t}deleteThrottleMetadata(e){delete this.throttleMetadata[e]}};function tn(e){return new Headers({Accept:"application/json","x-goog-api-key":e})}async function nn(e,t=en,n){const{appId:r,apiKey:o,measurementId:i}=e.options;if(!r)throw Yt.create("no-app-id");if(!o){if(i)return{measurementId:i,appId:r};throw Yt.create("no-api-key")}const a=t.getThrottleMetadata(r)||{backoffCount:0,throttleEndTimeMillis:Date.now()},s=new on;return setTimeout((async()=>{s.abort()}),void 0!==n?n:6e4),rn({appId:r,apiKey:o,measurementId:i},a,s,t)}async function rn(e,{throttleEndTimeMillis:t,backoffCount:n},r,o=en){var i;const{appId:a,measurementId:s}=e;try{await function(e,t){return new Promise(((n,r)=>{const o=Math.max(t-Date.now(),0),i=setTimeout(n,o);e.addEventListener((()=>{clearTimeout(i),r(Yt.create("fetch-throttle",{throttleEndTimeMillis:t}))}))}))}(r,t)}catch(c){if(s)return $t.warn(`Timed out fetching this Firebase app's measurement ID from the server. Falling back to the measurement ID ${s} provided in the "measurementId" field in the local Firebase config. [${null===c||void 0===c?void 0:c.message}]`),{appId:a,measurementId:s};throw c}try{const t=await async function(e){var t;const{appId:n,apiKey:r}=e,o={method:"GET",headers:tn(r)},i="https://firebase.googleapis.com/v1alpha/projects/-/apps/{app-id}/webConfig".replace("{app-id}",n),a=await fetch(i,o);if(200!==a.status&&304!==a.status){let e="";try{const n=await a.json();(null===(t=n.error)||void 0===t?void 0:t.message)&&(e=n.error.message)}catch(s){}throw Yt.create("config-fetch-failed",{httpStatus:a.status,responseMessage:e})}return a.json()}(e);return o.deleteThrottleMetadata(a),t}catch(c){const t=c;if(!function(e){if(!(e instanceof b)||!e.customData)return!1;const t=Number(e.customData.httpStatus);return 429===t||500===t||503===t||504===t}(t)){if(o.deleteThrottleMetadata(a),s)return $t.warn(`Failed to fetch this Firebase app's measurement ID from the server. Falling back to the measurement ID ${s} provided in the "measurementId" field in the local Firebase config. [${null===t||void 0===t?void 0:t.message}]`),{appId:a,measurementId:s};throw c}const u=503===Number(null===(i=null===t||void 0===t?void 0:t.customData)||void 0===i?void 0:i.httpStatus)?C(n,o.intervalMillis,30):C(n,o.intervalMillis),l={throttleEndTimeMillis:Date.now()+u,backoffCount:n+1};return o.setThrottleMetadata(a,l),$t.debug(`Calling attemptFetch again in ${u} millis`),rn(e,l,r,o)}}class on{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}abort(){this.listeners.forEach((e=>e()))}}let an,sn;function cn(e){sn=e}function un(e){an=e}async function ln(e,t,n,r,o,i,a){var s;const c=nn(e);c.then((t=>{n[t.measurementId]=t.appId,e.options.measurementId&&t.measurementId!==e.options.measurementId&&$t.warn(`The measurement ID in the local Firebase config (${e.options.measurementId}) does not match the measurement ID fetched from the server (${t.measurementId}). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config.`)})).catch((e=>$t.error(e))),t.push(c);const u=async function(){if(!g())return $t.warn(Yt.create("indexeddb-unavailable",{errorInfo:"IndexedDB is not available in this environment."}).message),!1;try{await v()}catch(e){return $t.warn(Yt.create("indexeddb-unavailable",{errorInfo:null===e||void 0===e?void 0:e.toString()}).message),!1}return!0}().then((e=>e?r.getId():void 0)),[l,f]=await Promise.all([c,u]);(function(e){const t=window.document.getElementsByTagName("script");for(const n of Object.values(t))if(n.src&&n.src.includes(zt)&&n.src.includes(e))return n;return null})(i)||Jt(i,l.measurementId),sn&&(o("consent","default",sn),cn(void 0)),o("js",new Date);const d=null!==(s=null===a||void 0===a?void 0:a.config)&&void 0!==s?s:{};return d.origin="firebase",d.update=!0,null!=f&&(d.firebase_id=f),o("config",l.measurementId,d),an&&(o("set",an),un(void 0)),l.measurementId}class fn{constructor(e){this.app=e}_delete(){return delete dn[this.app.options.appId],Promise.resolve()}}let dn={},pn=[];const hn={};let mn,gn,vn="dataLayer",yn="gtag",bn=!1;function _n(e){if(bn)throw Yt.create("already-initialized");e.dataLayerName&&(vn=e.dataLayerName),e.gtagName&&(yn=e.gtagName)}function En(e,t,n){!function(){const e=[];if(m()&&e.push("This is a browser extension environment."),y()||e.push("Cookies are not available."),e.length>0){const t=e.map(((e,t)=>`(${t+1}) ${e}`)).join(" "),n=Yt.create("invalid-analytics-context",{errorInfo:t});$t.warn(n.message)}}();const r=e.options.appId;if(!r)throw Yt.create("no-app-id");if(!e.options.apiKey){if(!e.options.measurementId)throw Yt.create("no-api-key");$t.warn(`The "apiKey" field is empty in the local Firebase config. This is needed to fetch the latest measurement ID for this Firebase app. Falling back to the measurement ID ${e.options.measurementId} provided in the "measurementId" field in the local Firebase config.`)}if(null!=dn[r])throw Yt.create("already-exists",{id:r});if(!bn){!function(e){let t=[];Array.isArray(window[e])?t=window[e]:window[e]=t}(vn);const{wrappedGtag:e,gtagCore:t}=function(e,t,n,r,o){let i=function(...e){window[r].push(arguments)};return window[o]&&"function"===typeof window[o]&&(i=window[o]),window[o]=Qt(i,e,t,n),{gtagCore:i,wrappedGtag:window[o]}}(dn,pn,hn,vn,yn);gn=e,mn=t,bn=!0}dn[r]=ln(e,pn,hn,t,mn,vn,n);return new fn(e)}async function wn(){if(m())return!1;if(!y())return!1;if(!g())return!1;try{return await v()}catch(e){return!1}}function Sn(e,t,n){e=I(e),async function(e,t,n,r){if(r&&r.global)return e("set",{screen_name:n}),Promise.resolve();e("config",await t,{update:!0,screen_name:n})}(gn,dn[e.app.options.appId],t,n).catch((e=>$t.error(e)))}function Tn(e,t,n){e=I(e),async function(e,t,n,r){if(r&&r.global)return e("set",{user_id:n}),Promise.resolve();e("config",await t,{update:!0,user_id:n})}(gn,dn[e.app.options.appId],t,n).catch((e=>$t.error(e)))}function xn(e,t,n){e=I(e),async function(e,t,n,r){if(r&&r.global){const t={};for(const e of Object.keys(n))t[`user_properties.${e}`]=n[e];return e("set",t),Promise.resolve()}e("config",await t,{update:!0,user_properties:n})}(gn,dn[e.app.options.appId],t,n).catch((e=>$t.error(e)))}function An(e,t){e=I(e),async function(e,t){const n=await e;window[`ga-disable-${n}`]=!t}(dn[e.app.options.appId],t).catch((e=>$t.error(e)))}function On(e,t,n,r){e=I(e),async function(e,t,n,r,o){if(o&&o.global)e("event",n,r);else{const o=await t;e("event",n,Object.assign(Object.assign({},r),{send_to:o}))}}(gn,dn[e.app.options.appId],t,n,r).catch((e=>$t.error(e)))}const Cn="@firebase/analytics",In="0.10.0";pe(new P(Wt,((e,{options:t})=>En(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),t)),"PUBLIC")),pe(new P("analytics-internal",(function(e){try{const t=e.getProvider(Wt).getImmediate();return{logEvent:(e,n,r)=>On(t,e,n,r)}}catch(t){throw Yt.create("interop-component-reg-failed",{reason:t})}}),"PRIVATE")),Te(Cn,In),Te(Cn,In,"esm2017");class Pn{constructor(e,t){this.app=e,this._delegate=t}logEvent(e,t,n){On(this._delegate,e,t,n)}setCurrentScreen(e,t){Sn(this._delegate,e,t)}setUserId(e,t){Tn(this._delegate,e,t)}setUserProperties(e,t){xn(this._delegate,e,t)}setAnalyticsCollectionEnabled(e){An(this._delegate,e)}}var kn;!function(e){e.ADD_SHIPPING_INFO="add_shipping_info",e.ADD_PAYMENT_INFO="add_payment_info",e.ADD_TO_CART="add_to_cart",e.ADD_TO_WISHLIST="add_to_wishlist",e.BEGIN_CHECKOUT="begin_checkout",e.CHECKOUT_PROGRESS="checkout_progress",e.EXCEPTION="exception",e.GENERATE_LEAD="generate_lead",e.LOGIN="login",e.PAGE_VIEW="page_view",e.PURCHASE="purchase",e.REFUND="refund",e.REMOVE_FROM_CART="remove_from_cart",e.SCREEN_VIEW="screen_view",e.SEARCH="search",e.SELECT_CONTENT="select_content",e.SELECT_ITEM="select_item",e.SELECT_PROMOTION="select_promotion",e.SET_CHECKOUT_OPTION="set_checkout_option",e.SHARE="share",e.SIGN_UP="sign_up",e.TIMING_COMPLETE="timing_complete",e.VIEW_CART="view_cart",e.VIEW_ITEM="view_item",e.VIEW_ITEM_LIST="view_item_list",e.VIEW_PROMOTION="view_promotion",e.VIEW_SEARCH_RESULTS="view_search_results"}(kn||(kn={}));const jn=e=>{const t=e.getProvider("app-compat").getImmediate(),n=e.getProvider("analytics").getImmediate();return new Pn(t,n)};!function(){const e={Analytics:Pn,settings:_n,isSupported:wn,EventName:kn};Ue.INTERNAL.registerComponent(new P("analytics-compat",jn,"PUBLIC").setServiceProps(e).setMultipleInstances(!0))}(),Ue.registerVersion("@firebase/analytics-compat","0.2.6");var Rn=n(25620),Nn={apiKey:Rn.env.NEXT_PUBLIC_FS_API_KEY,authDomain:Rn.env.NEXT_PUBLIC_FS_AUTH_DOMAIN,projectId:Rn.env.NEXT_PUBLIC_FS_PROJECT_ID,storageBucket:Rn.env.NEXT_PUBLIC_FS_STORAGE_BUCKET,messagingSenderId:Rn.env.NEXT_PUBLIC_FS_MESSAGING_SENDER_ID,appId:Rn.env.NEXT_PUBLIC_FS_APP_ID,measurementId:Rn.env.NEXT_PUBLIC_FS_MEASUREMENT_ID},Dn="true"===Rn.env.NEXT_PUBLIC_ENABLE_FS_LOGGING;Ue.apps.length||Ue.initializeApp(Nn);var Zn=function(){return Dn?Ue.analytics():null},Ln=Ue},32275:function(e,t,n){"use strict";n.d(t,{KT:function(){return i},dJ:function(){return a},oJ:function(){return s},qW:function(){return o}});var r="https://og.qurancdn.com",o=function(e){var t=e.locale;return"".concat(r,"/api/og?lang=").concat(t)},i=function(e){var t=e.locale;return"".concat(r,"/api/og/about-the-quran?lang=").concat(t)},a=function(e){var t=e.locale;return"".concat(r,"/api/og/learning-plans?lang=").concat(t)},s=function(e){var t=e.chapterId,n=e.locale,o=e.verseNumber,i="".concat(r,"/api/og/chapter/").concat(t,"?lang=").concat(n);return o?"".concat(i,"&verse=").concat(o):i}},8794:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return zo}});var r=n(57044),o=n(16946),i=n(57611),a=n(50608),s=n(67597),c=n(15129),u=n.n(c),l=n(35007),f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]1&&e.endsWith("/")?e.slice(0,-1):e}(o.pathname.replace(/\/index$/,""))||"/",[4,x(o,s,o)]):(console.warn('\ud83d\udea8 [next-translate] You forgot to pass the "pathname" inside "loadNamespaces" configuration'),[2,{__lang:a}]);case 1:return c=d.sent(),u=function(){return Promise.resolve({})},[4,Promise.all(c.map((function(e){return"function"===typeof o.loadLocaleFrom?o.loadLocaleFrom(a,e).catch((function(){return{}})):u()})))];case 2:return l=d.sent()||[],!1!==o.logBuild&&"undefined"===typeof window&&(f=function(e){return P?"\x1b[36m".concat(e,"\x1b[0m"):e},console.log(f("next-translate"),"- compiled page:",f(s),"- locale:",f(a),"- namespaces:",f(c.join(", ")),"- used loader:",f(o.loaderName||"-"))),[2,{__lang:a,__namespaces:c.reduce((function(e,t,n){return e[t]=l[n]||null,e}),{})}]}}))}))}var j=function(){return j=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]te(i)-2,c=null===(n=t.getSnapshot().context)||void 0===n||null===(r=n.audioData)||void 0===r?void 0:r.duration;if(c){var u=a>(0,J.Rp)(c)-2;o||!s||u?o&&!s&&t.send({type:"CAN_PLAY"}):t.send({type:"WAITING"})}t.send({type:"UPDATE_TIMING"})},onEnded:function(){t.send({type:"END"})},onSeeking:function(){t.send({type:"SEEKING"})},onSeeked:function(){t.send({type:"SEEKED"})},onError:function(){t.send({type:"FAIL"})},onPlay:function(){t.send({type:"PLAY"})},onPause:function(){t.send({type:"PAUSE"})},onProgress:function(e){t.send({type:"PROGRESS",timestamp:te(e.target)})}}),n&&(0,i.jsx)(ee,{})]})})},re=n(3463),oe=n(69976),ie=n(648),ae=n(99968),se=n(63746),ce=n(88555),ue=n(5330),le=n(15721),fe=n(9740),de=n(37572),pe=n(19226),he=n(20981),me=n(69640);!function(e){e.BOOKMARKS="bookmarks",e.READING_SESSIONS="readingSessions"}(D||(D={}));var ge=D,ve=n(41527),ye=function(){var e=(0,ie.I0)(),t=(0,ae.kY)(),n=t.cache,i=t.mutate,a=(0,ie.v9)(se.it,ie.wU),c=(0,ie.v9)(ce.GF,ie.wU),u=(0,ie.v9)(ue.Pt,ie.wU),l=u.quranFont,f=u.mushafLines,d=(0,le.$P)(l,f).mushaf;(0,s.useEffect)((function(){if((0,pe.jl)()&&!(0,he.Uz)()){var e,t=(e={},(0,V.Z)(e,ge.BOOKMARKS,Object.keys(a).map((function(e){return function(e,t,n){var r=(0,oe.Z)((0,me.bV)(e),2),o=r[0],i=r[1];return{createdAt:new Date(t).toISOString(),type:ve.Z.Ayah,key:Number(o),verseNumber:Number(i),mushaf:n}}(e,a[e],d)}))),(0,V.Z)(e,ge.READING_SESSIONS,Object.entries(c).map((function(e){var t=(0,oe.Z)(e,2);return function(e,t){var n=(0,oe.Z)((0,me.bV)(e),2),r=n[0],o=n[1];return{updatedAt:new Date(t).toISOString(),chapterNumber:Number(r),verseNumber:Number(o)}}(t[0],t[1])}))),e);(0,fe.rs)(t).then((function(e){var t=e.lastSyncAt;i((0,de.bo)(),(function(e){return(0,o.Z)((0,r.Z)({},e),{lastSyncAt:t})})),i((0,de.Tj)()),(0,he.b4)(new Date(t))})).catch((function(){}))}}),[a,n,e,d,i,c])},be=n(65481),_e=n(25620),Ee=z()((function(){return Promise.all([n.e(15240),n.e(47995),n.e(48815)]).then(n.bind(n,71522))}),{loadableGenerated:{webpack:function(){return[71522]}}}),we=z()((function(){return n.e(44462).then(n.bind(n,44462))}),{loadableGenerated:{webpack:function(){return[44462]}}}),Se=z()((function(){return n.e(82526).then(n.bind(n,82526))}),{loadableGenerated:{webpack:function(){return[82526]}}}),Te="true"===_e.env.NEXT_PUBLIC_ENABLE_REQUIRED_CONSENTS,xe=[be.Z.COMMUNICATION],Ae=function(e){var t,n=e.requiredFields,r=e.announcement,o=e.consents;if(ye(),n&&0!==(null===n||void 0===n?void 0:n.length))t=(0,i.jsx)(Ee,{requiredFields:n});else if(r)t=(0,i.jsx)(we,{announcement:r});else if(Te&&o){var a=xe.filter((function(e){return!Object.keys(o).includes(e)}));a.length>0&&(t=(0,i.jsx)(Se,{missingConsents:a}))}var s=!!t;return(0,i.jsx)(re.Z,{isOpen:s,children:t})},Oe=n(99875),Ce=(n(15511),n(32162)),Ie=n(21654),Pe=n(80665);var ke,je=function(){var e=(0,s.useState)(!1);e[0],e[1];return(0,i.jsx)(i.Fragment,{})},Re=n(63424),Ne=n(20849),De=n(11399),Ze=n(40177),Le=(0,Ne.oM)({name:Ze.Z.PERSIST_GATE_HYDRATION,initialState:{isPersistGateHydrationInProgress:!1,isPersistGateHydrationComplete:!1},reducers:{setIsPersistGateHydrationInProgress:function(e,t){return(0,o.Z)((0,r.Z)({},e),{isPersistGateHydrationInProgress:t.payload})},setIsPersistGateHydrationComplete:function(e,t){return(0,o.Z)((0,r.Z)({},e),{isPersistGateHydrationComplete:t.payload})}},extraReducers:function(e){e.addCase(De.I2,(function(e){return(0,o.Z)((0,r.Z)({},e),{isPersistGateHydrationInProgress:!0})}))}}),Me=Le.actions,Fe=Me.setIsPersistGateHydrationInProgress,Be=Me.setIsPersistGateHydrationComplete,Ue=function(e){return e.persistGateHydration.isPersistGateHydrationInProgress},Ve=function(e){return e.persistGateHydration.isPersistGateHydrationComplete},He=Le.reducer,qe=function(){return(0,ie.v9)(Ve)?(0,i.jsx)(i.Fragment,{}):(0,i.jsx)("style",{children:"\n * {\n transition: all 0s !important;\n }\n "})},Ge=function(){var e=(0,ie.I0)(),t=(0,ie.v9)(Ue);return(0,s.useEffect)((function(){t&&setTimeout((function(){e({type:Be.type,payload:!0}),e({type:Fe.type,payload:!1})}),50)}),[e,t]),(0,i.jsx)(i.Fragment,{})},We=n(47189),ze=n(53059),$e=n.n(ze),Ye=n(61794),Ke=n(46481),Xe=n.n(Ke),Je=function(e){var t=e.onClickOutside,n=e.children,r=e.isOpen;return(0,i.jsx)(Ye.fC,{open:r,children:(0,i.jsxs)(Ye.h_,{children:[(0,i.jsx)(Ye.aV,{className:Xe().overlay}),(0,i.jsx)(Ye.VY,{className:Xe().content,onInteractOutside:t,children:n})]})})},Qe=n(82649),et=n(17678),tt=n(12195),nt=z()((function(){return Promise.all([n.e(87373),n.e(13147),n.e(54535),n.e(31274),n.e(96327),n.e(67314)]).then(n.bind(n,67314))}),{loadableGenerated:{webpack:function(){return[67314]}},ssr:!1,loading:function(){return(0,i.jsx)("div",{className:$e().loadingContainer,children:(0,i.jsx)(X.Z,{})})}}),rt=function(e){var t="";return e.metaKey?t="cmd":e.ctrlKey&&(t="ctrl"),"".concat(t,"_").concat(e.key)},ot=function(){var e=(0,ie.I0)(),t=(0,ie.v9)(Qe.fv,ie.wU),n=(0,s.useCallback)((function(n){(0,tt.Kz)("command_bar_".concat(t?"close":"open"),{keyboard_shortcut:rt(n)}),n.preventDefault(),e({type:Qe.VJ.type})}),[e,t]),r=(0,s.useCallback)((function(t){var n=!t;(0,tt.Kz)("command_bar_close_".concat(n?"outside_click":"esc_key")),e({type:Qe.Pn.type,payload:!1}),e({type:et.AO.type})}),[e]);return(0,We.y1)("cmd+k, ctrl+k, cmd+p, ctrl+p",n,{enableOnTags:["INPUT"]},[e]),(0,We.y1)("Escape",r,{enabled:t,enableOnTags:["INPUT"]},[e]),(0,i.jsx)(Je,{isOpen:t,onClickOutside:function(){return r()},children:(0,i.jsx)(nt,{})})},it=function(){return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(ot,{})})},at=n(20918),st=n.n(at);!function(e){e.Down="down",e.Up="up"}(ke||(ke={}));var ct=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:80,n=(0,s.useRef)(0),r=(0,s.useCallback)((function(){var t=window.pageYOffset;e(n.current50&&t===ke.Down?(e({type:Oe.Q7.type,payload:!1}),e({type:Ce.u.type,payload:!1})):o>=0&&t===ke.Up&&(e({type:Oe.Q7.type,payload:!0}),e({type:Ce.u.type,payload:!0})),o>150&&t===ke.Down?e({type:Oe.qk.type,payload:!0}):o<=150&&t===ke.Up&&e({type:Oe.qk.type,payload:!1}))}),[r,e,n]);return ct(o),(0,i.jsx)(i.Fragment,{})},ft=function(){return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(it,{}),(0,i.jsx)(lt,{}),(0,i.jsx)(Ge,{}),(0,i.jsx)(qe,{})]})},dt=n(4257),pt=n.n(dt),ht=n(1997),mt=n(51726),gt=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},vt=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0&&void 0!==arguments[0]&&arguments[0];(0,yn.Z)((function(){if(e){var t=document.body.style.overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=t}}}),[e])};!function(e){e.Navigation="navigation",e.Search="search",e.Settings="settings"}(cn||(cn={})),function(e){e.Left="left",e.Right="right"}(un||(un={}));var _n,En=function(e){return e===cn.Navigation?Ce.Rd.type:e===cn.Settings?Ce.ZY.type:Ce.R$.type},wn=function(e,t){(0,tt.Kz)("drawer_".concat(e,"_close_").concat(t))};!function(e){e.Click="click",e.EscKey="esc_key",e.OutsideClick="outside_click",e.Navigation="navigation"}(_n||(_n={}));var Sn,Tn=function(e){var t=e.type,n=e.side,r=void 0===n?un.Right:n,o=e.header,a=e.children,u=e.hideCloseButton,l=void 0!==u&&u,f=e.closeOnNavigation,d=void 0===f||f,p=e.canCloseDrawer,h=void 0===p||p,m=e.bodyId,g=(0,ie.v9)(Ce.wK,ie.wU).isVisible,v=(0,s.useRef)(null),y=(0,ie.I0)(),b=(0,ie.v9)(Ce.wK,ie.wU),_=function(e,t){var n=t.isNavigationDrawerOpen,r=t.isSettingsDrawerOpen,o=t.isSearchDrawerOpen;return e===cn.Navigation?n:e===cn.Settings?r:o}(t,b);bn(_);var E=(0,c.useRouter)(),w=(0,s.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_n.Click;h&&(y({type:En(t),payload:!1}),t===cn.Search&&y({type:et.Q.type}),wn(t,e))}),[y,t,h]);(0,We.y1)("Escape",(function(){w(_n.EscKey)}),{enabled:_,enableOnTags:["INPUT","SELECT"]}),(0,s.useEffect)((function(){_&&y((0,Ce.u)(!0)),E.events.on("routeChangeComplete",(function(){_&&d&&w(_n.Navigation)}))}),[w,y,E.events,g,_,d]),(0,vn.Z)(v,(function(){w(_n.OutsideClick)}),_);var S,T,x=t===cn.Search;return(0,i.jsxs)("div",{className:G()(hn().container,(S={},(0,V.Z)(S,hn().navbarInvisible,!g),(0,V.Z)(S,hn().containerOpen,_),(0,V.Z)(S,hn().left,r===un.Left),(0,V.Z)(S,hn().right,r===un.Right),S)),ref:v,id:t===cn.Settings?"settings-drawer-container":void 0,children:[(0,i.jsx)("div",{className:G()(hn().header,(0,V.Z)({},hn().hiddenButtonHeader,l)),children:(0,i.jsx)("div",{className:G()(hn().headerContentContainer,(0,V.Z)({},hn().hiddenButtonHeaderContentContainer,l)),children:(0,i.jsxs)("div",{className:hn().headerContent,children:[o,!l&&(0,i.jsx)(gn,{onClick:function(){return w()}})]})})}),(0,i.jsxs)("div",{className:G()(hn().bodyContainer,(T={},(0,V.Z)(T,hn().navigationBodyContainer,t===cn.Navigation),(0,V.Z)(T,hn().bodyWithBottomPadding,!x),(0,V.Z)(T,hn().searchContainer,x),T)),id:m,children:[a,x&&(0,i.jsx)(dn,{})]})]})},xn=n(46945),An=n.n(xn),On=n(90914),Cn=n(72606),In=n.n(Cn),Pn=Array(6).fill(null),kn=function(e){return Pn.map((function(t,n){return(0,i.jsx)(On.Z,{isActive:!0,isSquared:!0,className:In().navRow},"skeleton_".concat(e,"_").concat(n))}))},jn=function(){return(0,i.jsxs)("span",{className:In().skeletonContainer,children:[(0,i.jsx)(On.Z,{isActive:!0,isSquared:!0,className:In().blockRow}),kn(1),kn(2)]})},Rn=z()((function(){return n.e(55849).then(n.bind(n,55849))}),{loadableGenerated:{webpack:function(){return[55849]}},ssr:!1,loading:function(){return(0,i.jsx)(jn,{})}}),Nn=function(){var e=(0,ie.v9)(Ce.wK,ie.wU).isNavigationDrawerOpen;return(0,i.jsx)(Tn,{type:cn.Navigation,side:un.Left,header:(0,i.jsx)("div",{className:An().centerVertically,children:(0,i.jsx)("div",{className:An().leftCTA,children:(0,i.jsx)(Jt,{})})}),children:e&&(0,i.jsx)(Rn,{})})},Dn=n(90150),Zn=n.n(Dn),Ln=n(42366),Mn=function(){return(0,i.jsx)("div",{className:Zn().container,children:(0,i.jsx)(Ln.Z,{})})},Fn=n(3068),Bn=n.n(Fn),Un=n(39001),Vn=n.n(Un),Hn=n(15138),qn=function(e){var t=e.isCommandBar,n=void 0!==t&&t,r=e.onClick,o=(0,v.Z)("common").t,a=(0,s.useRef)(!0),c=(0,ie.I0)(),u=(0,ie.v9)(et.ID,ie.wU),l=(0,ie.v9)(et.EN,ie.wU),f=n&&u||!n&&l;return(0,yn.Z)((function(){var e;a.current=(null===(e=navigator.mediaDevices)||void 0===e?void 0:e.getUserMedia)||navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia}),[]),a.current?(0,i.jsx)(_t.ZP,{onClick:function(){r(!f),c({type:n?et.A4.type:et.ST.type})},shape:_t.jL.Circle,variant:_t.Wu.Ghost,className:Vn().button,tooltip:o("command-bar.search-by-voice"),hasSidePadding:!1,ariaLabel:o("command-bar.search-by-voice"),children:f?(0,i.jsx)(mn.Z,{}):(0,i.jsx)(Hn.Z,{})}):(0,i.jsx)(i.Fragment,{})},Gn=function(e){var t=e.isVoiceFlowStarted,n=e.onSearchQueryChange,r=e.resetQueryAndResults,o=e.inputRef,a=e.isSearching,s=e.searchQuery,c=(0,v.Z)("common").t;return(0,i.jsx)(i.Fragment,{children:t?(0,i.jsx)(qn,{onClick:function(){(0,tt.MY)("search_drawer_voice_search_stop_flow")}}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Mn,{}),(0,i.jsxs)("div",{className:G()(Bn().searchInputContainer),children:[(0,i.jsx)("form",{onSubmit:function(e){e.preventDefault(),o.current.blur()},children:(0,i.jsx)("input",{className:Bn().searchInput,type:"text",ref:o,dir:"auto",placeholder:c("search.title"),onChange:n,value:s,disabled:a})}),s&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("button",{type:"button",className:Bn().clear,onClick:r,children:c("input.clear")}),(0,i.jsx)(Pe.Z,{isVertical:!0,className:Bn().separator})]})]})]})})},Wn=n(62076),zn=n(36830),$n=n(48752),Yn=n(18054),Kn=n(1050),Xn=n(53131),Jn=z()((function(){return Promise.all([n.e(87373),n.e(13147),n.e(54535),n.e(31274),n.e(96327),n.e(60660),n.e(3866)]).then(n.bind(n,60660))}),{loadableGenerated:{webpack:function(){return[60660]}},ssr:!1,loading:function(){return(0,i.jsx)(X.Z,{})}}),Qn=function(){var e=(0,ie.v9)($n.qw,Kn.Hj),t=(0,oe.Z)((0,zn.Z)(),2),n=t[0],r=t[1],o=(0,s.useState)(""),a=o[0],c=o[1],u=(0,ie.v9)(Ce.wK,ie.wU).isSearchDrawerOpen,l=(0,ie.I0)(),f=(0,s.useState)(!1),d=f[0],p=f[1],h=(0,s.useState)(!1),m=h[0],g=h[1],v=(0,s.useState)(null),y=v[0],b=v[1],_=(0,ie.v9)(et.EN,ie.wU),E=(0,Wn.Z)(a,1e3);(0,s.useEffect)((function(){u&&n()}),[u,n]),(0,s.useEffect)((function(){E&&((0,Xn.YA)(l,E,Yn.Z.SearchDrawer),(0,Xn.UC)(Yn.Z.SearchDrawer,E,1,10,p,g,b,null,(null===e||void 0===e?void 0:e.length)&&e.join(",")))}),[E,e,l]);var w=function(){(0,tt.MY)("search_drawer_clear_input"),c(""),b(null),g(!1)};return(0,i.jsx)(Tn,{hideCloseButton:_,type:cn.Search,header:(0,i.jsx)(Gn,{isVoiceFlowStarted:_,onSearchQueryChange:function(e){var t=e.currentTarget.value;t?c(t):w()},resetQueryAndResults:w,inputRef:r,isSearching:d,searchQuery:a}),children:(0,i.jsx)("div",{children:u&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(Jn,{onSearchResultClicked:function(){var e;return null===r||void 0===r||null===(e=r.current)||void 0===e?void 0:e.blur()},onSearchKeywordClicked:function(e){var t=e.length;c(e),r.current.setSelectionRange(t,t),n()},searchQuery:a,searchResult:y,isSearching:d,hasError:m})})})})},er=n(65600),tr=n.n(er),nr=Array(4).fill(null),rr=function(){return(0,i.jsx)("span",{className:tr().skeletonContainer,children:nr.map((function(e,t){return(0,i.jsxs)("span",{className:tr().inputRow,children:[(0,i.jsx)("div",{className:tr().title,children:(0,i.jsx)(On.Z,{isActive:!0,isSquared:!0,className:tr().titleSkeleton})}),(0,i.jsxs)("div",{className:tr().rowSkeleton,children:[(0,i.jsx)(On.Z,{isActive:!0,isSquared:!0,className:tr().label}),(0,i.jsx)(On.Z,{isActive:!0,isSquared:!0,className:tr().input})]})]},"skeleton_".concat(t))}))})},or=n(6675),ir=n.n(or),ar=n(21899),sr=z()((function(){return Promise.all([n.e(13147),n.e(54535),n.e(95225)]).then(n.bind(n,70905))}),{loadableGenerated:{webpack:function(){return[70905]}},ssr:!1,loading:function(){return(0,i.jsx)(rr,{})}}),cr=z()((function(){return Promise.all([n.e(19418),n.e(71801),n.e(44618)]).then(n.bind(n,71801))}),{loadableGenerated:{webpack:function(){return[71801]}},ssr:!1}),ur=z()((function(){return Promise.all([n.e(19418),n.e(44254),n.e(73430)]).then(n.bind(n,12979))}),{loadableGenerated:{webpack:function(){return[12979]}},ssr:!1}),lr=z()((function(){return Promise.all([n.e(19418),n.e(84450)]).then(n.bind(n,84450))}),{loadableGenerated:{webpack:function(){return[84450]}},ssr:!1}),fr=function(){var e,t=(0,v.Z)("common").t,n=(0,ie.I0)(),r=(0,ie.v9)(Ce.wK),o=r.isSettingsDrawerOpen,a=r.settingsView,s=(0,K.P)().isActive;return a===Ce.US.Body&&(e=(0,i.jsx)("div",{children:t("settings.title")})),a!==Ce.US.Body&&(e=(0,i.jsxs)("div",{className:ir().headerContainer,children:[(0,i.jsx)(_t.ZP,{variant:_t.Wu.Ghost,onClick:function(){n((0,Ce.Mi)(Ce.US.Body)),(0,tt.Q8)("settings_view",Ce.US.Body,a)},children:(0,i.jsx)(ar.Z,{})}),a===Ce.US.Translation&&t("translations"),a===Ce.US.Reciter&&t("reciter"),a===Ce.US.Tafsir&&t("tafsir.title")]})),(0,i.jsxs)(Tn,{type:cn.Settings,header:e,closeOnNavigation:!1,canCloseDrawer:!s,bodyId:"settings-drawer-body",children:[o&&a===Ce.US.Body&&(0,i.jsx)(sr,{}),o&&a===Ce.US.Translation&&(0,i.jsx)(ur,{}),o&&a===Ce.US.Reciter&&(0,i.jsx)(cr,{}),o&&a===Ce.US.Tafsir&&(0,i.jsx)(lr,{})]})},dr=n(14972),pr=n.n(dr);function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:new Date;return Object.entries(e).reduce((function(e,n){var o=(0,oe.Z)(n,1)[0];return(0,r.Z)((0,V.Z)({},o,t.getTime()),e)}),{})},mo=n(26803),go={isVisible:!0},vo=(0,Ne.oM)({name:Ze.Z.WELCOME_MESSAGE,initialState:go,reducers:{setIsVisible:function(e,t){return(0,o.Z)((0,r.Z)({},e),{isVisible:t.payload})}}}),yo=(vo.actions.setIsVisible,vo.reducer),bo=n(63747),_o=function(e,t,n){var r=[],o=[];return e&&o.push(bo.Oj.Translation),t&&o.push(bo.Oj.Transliteration),n&&n.length?(o=(0,Kn.sp)(n,o),r.push(bo.PT.TOOLTIP),(e||t)&&r.push(bo.PT.INLINE)):(e||t)&&r.push(bo.PT.INLINE),{wordByWordDisplay:r,wordByWordContentType:o}},Eo={3:function(e){return(0,o.Z)((0,r.Z)({},e),{audioPlayerState:(0,o.Z)((0,r.Z)({},e.audioPlayerState),{visibility:void 0,isExpanded:!1})})},4:function(e){return(0,o.Z)((0,r.Z)({},e),{search:{searchHistory:[]}})},5:function(e){return(0,o.Z)((0,r.Z)({},e),{readingTracker:{lastReadVerse:{verseKey:null,chapterId:null,page:null,hizb:null}}})},6:function(e){return(0,o.Z)((0,r.Z)({},e),{readingTracker:(0,o.Z)((0,r.Z)({},e.readingTracker),{recentReadingSessions:{}})})},7:function(e){return(0,o.Z)((0,r.Z)({},e),{quranReaderStyles:(0,o.Z)((0,r.Z)({},e.quranReaderStyles),{mushafLines:bo.AN.SixteenLines})})},8:function(e){return(0,o.Z)((0,r.Z)({},e),{audioPlayerState:(0,r.Z)({},e.audioPlayerState)})},9:function(e){return(0,o.Z)((0,r.Z)({},e),{commandBar:{isOpen:!1,recentNavigations:[]}})},10:function(e){return(0,o.Z)((0,r.Z)({},e),{commandBar:{isOpen:void 0,recentNavigations:[]}})},11:function(e){return(0,o.Z)((0,r.Z)({},e),{tafsirs:(0,o.Z)((0,r.Z)({},e.tafsirs),{selectedTafsirs:po.j7})})},12:function(e){return(0,o.Z)((0,r.Z)({},e),{welcomeMessage:go})},13:function(e){return(0,o.Z)((0,r.Z)({},e),{audioPlayerState:(0,r.Z)({},e.audioPlayerState)})},14:function(e){return(0,o.Z)((0,r.Z)({},e),{readingPreferences:(0,o.Z)((0,r.Z)({},e.readingPreferences),{wordClickFunctionality:po.ZP.readingPreferences.wordClickFunctionality})})},15:function(e){return(0,o.Z)((0,r.Z)({},e),{defaultSettings:{isUsingDefaultSettings:!0},audioPlayerState:(0,o.Z)((0,r.Z)({},e.audioPlayerState),{isUsingDefaultReciter:!0})})},16:function(e){return(0,o.Z)((0,r.Z)({},e),{readingPreferences:(0,o.Z)((0,r.Z)({},e.readingPreferences),{selectedWordByWordLocale:po.ZP.readingPreferences.selectedWordByWordLocale,isUsingDefaultWordByWordLocale:po.ZP.readingPreferences.isUsingDefaultWordByWordLocale})})},17:function(e){return(0,o.Z)((0,r.Z)({},e),{fontFaces:{loadedFontFaces:[]}})},18:function(e){return(0,o.Z)((0,r.Z)({},e),{audioPlayerState:(0,o.Z)((0,r.Z)({},e.readingPreferences),{showTooltipWhenPlayingAudio:!1})})},19:function(e){return(0,o.Z)((0,r.Z)({},e),{welcomeMessage:(0,o.Z)((0,r.Z)({},e.welcomeMessage),{isVisible:!0})})},20:function(e){return(0,o.Z)((0,r.Z)({},e),{session:{count:0}})},21:function(e){return(0,o.Z)((0,r.Z)({},e),{sidebarNavigation:{isVisible:mo.X1}})},22:function(e){return(0,o.Z)((0,r.Z)({},e),{readingTracker:(0,o.Z)((0,r.Z)({},e.readingTracker),{recentReadingSessions:ho(e.readingTracker.recentReadingSessions)})})},23:function(e){return(0,o.Z)((0,r.Z)({},e),{readingPreferences:(0,o.Z)((0,r.Z)({},e.readingPreferences),{selectedWordByWordTranslation:void 0,selectedWordByWordTransliteration:void 0})})},24:function(e){return(0,o.Z)((0,r.Z)({},e),{readingPreferences:(0,o.Z)((0,r.Z)({},e.readingPreferences,_o(e.readingPreferences.showWordByWordTranslation,e.readingPreferences.showWordByWordTransliteration,e.readingPreferences.showTooltipFor)),{showWordByWordTranslation:void 0,showWordByWordTransliteration:void 0,showTooltipFor:void 0})})},25:function(e){return(0,o.Z)((0,r.Z)({},e),{welcomeMessage:(0,o.Z)((0,r.Z)({},e.welcomeMessage),{isVisible:!0})})},26:function(e){return(0,o.Z)((0,r.Z)({},e),{banner:(0,o.Z)((0,r.Z)({},e.banner),{isBannerVisible:!0})})},27:function(e){return(0,o.Z)((0,r.Z)({},e),{welcomeMessage:(0,o.Z)((0,r.Z)({},e.welcomeMessage),{isVisible:!0})})},28:function(e){return(0,o.Z)((0,r.Z)({},e),{session:{count:0,isDonationPopupVisible:!0}})},29:function(e){return(0,o.Z)((0,r.Z)({},e),{readingPreferences:(0,o.Z)((0,r.Z)({},e.readingPreferences),{wordByWordDisplay:(t=e.readingPreferences.wordByWordDisplay,!t||t&&0===t.length?[bo.PT.TOOLTIP]:t)})});var t},30:function(e){return(0,o.Z)((0,r.Z)({},e),{quranReaderStyles:(0,o.Z)((0,r.Z)({},e.quranReaderStyles),{wordByWordFontScale:po.ZP.quranReaderStyles.wordByWordFontScale})})},31:function(e){return(0,o.Z)((0,r.Z)({},e),{session:(0,o.Z)((0,r.Z)({},e.session),{isDonationPopupVisible:!0})})}},wo={key:Ze.Z.AUDIO_PLAYER_STATE,storage:co.Z,version:3,blacklist:["isDownloadingAudio"]},So=n(33294),To=(0,Ne.oM)({name:Ze.Z.BANNER,initialState:{isBannerVisible:!0},reducers:{setIsBannerVisible:function(e,t){return(0,o.Z)((0,r.Z)({},e),{isBannerVisible:t.payload})}}}),xo=(To.actions.setIsBannerVisible,To.reducer),Ao={key:Ze.Z.COMMAND_BAR,storage:co.Z,version:1,blacklist:["isOpen"]},Oo=n(63427),Co=n(72707),Io=n(49409),Po=n(46581),ko=n(80105),jo=n(5588),Ro=n(74329),No=n(88548),Do=n(25620),Zo={key:"root",version:31,storage:co.Z,migrate:(0,De.yv)(Eo,{debug:"development"===Do.env.NEXT_PUBLIC_VERCEL_ENV}),whitelist:[Ze.Z.QURAN_READER_STYLES,Ze.Z.READING_PREFERENCES,Ze.Z.TRANSLATIONS,Ze.Z.THEME,Ze.Z.TAFSIRS,Ze.Z.SEARCH,Ze.Z.READING_TRACKER,Ze.Z.WELCOME_MESSAGE,Ze.Z.DEFAULT_SETTINGS,Ze.Z.SIDEBAR_NAVIGATION,Ze.Z.BANNER,Ze.Z.SESSION,Ze.Z.BOOKMARKS,Ze.Z.USER_DATA_SYNC,Ze.Z.REVELATION_ORDER,Ze.Z.ONBOARDING]},Lo=(0,so.UY)({audioPlayerState:(0,De.OJ)(wo,So.ZP),contextMenu:Oe.ZP,navbar:Ce.ZP,notes:Ie.ZP,quranReaderStyles:ue.ZP,readingPreferences:Po.ZP,translations:$n.ZP,theme:Ur.ZP,tafsirs:jo.ZP,bookmarks:se.ZP,search:No.ZP,readingTracker:ce.ZP,commandBar:(0,De.OJ)(Ao,Qe.ZP),welcomeMessage:yo,voiceSearch:et.ZP,defaultSettings:jt.ZP,fontFaces:Io.ZP,sidebarNavigation:mo.ZP,readingViewVerse:ko.ZP,banner:xo,session:Ar,persistGateHydration:He,revelationOrder:Ro.ZP,notifications:Oo.ZP,onboarding:Co.ZP}),Mo=(0,De.OJ)(Zo,Lo),Fo=function(e){return(0,Ne.xC)({reducer:Mo,middleware:function(e){return e({serializableCheck:{ignoredActions:[De._P,De.I2,De.E7,De.ex,De.e,De.Nz]}}).concat(fo)},devTools:"production"!==Do.env.NEXT_PUBLIC_VERCEL_ENV,preloadedState:(0,uo.r2)(e)})},Bo=n(91156),Uo=n(16176),Vo=function(e){var t=e.children,n=e.locale,r=(0,s.useMemo)((function(){return Fo(n)}),[n]),o=(0,s.useMemo)((function(){return(0,De.p5)(r)}),[r]),a=(0,s.useContext)(Q.c),c=function(){var e=(0,ht.Z)((function(){var e,t,o,i,s,c,u;return(0,mt.__generator)(this,(function(l){switch(l.label){case 0:if(!Uo.Z||!(0,pe.jl)())return[3,6];l.label=1;case 1:return l.trys.push([1,5,,6]),[4,(0,fe.JM)()];case 2:return o=l.sent(),(i=o[Dt.Z.LANGUAGE])?[4,yt(i[Dt.Z.LANGUAGE])]:[3,4];case 3:l.sent(),Rt(i[Dt.Z.LANGUAGE]),l.label=4;case 4:return r.dispatch((0,Bo.Z)(o,n)),s=a.getSnapshot().context,c=(null===(e=o[Dt.Z.AUDIO])||void 0===e?void 0:e.playbackRate)||s.playbackRate,u=(null===(t=o[Dt.Z.AUDIO])||void 0===t?void 0:t.reciter)||s.reciterId,a.send({type:"SET_INITIAL_CONTEXT",playbackRate:c,reciterId:u,volume:s.volume}),[3,6];case 5:return l.sent(),[3,6];case 6:return[2]}}))}));return function(){return e.apply(this,arguments)}}();return(0,i.jsx)(ie.zt,{store:r,children:(0,i.jsx)(ao,{persistor:o,onBeforeLift:c,children:function(){return(0,i.jsx)(i.Fragment,{children:t})}})})},Ho=n(25620).env.NEXT_PUBLIC_GOOGLE_ANALYTICS_ID,qo=n(49706),Go=n(9192),Wo=function(e){var t=e.children,n=(0,ie.v9)(Ur.Pu,ie.wU);return document.body&&document.body.setAttribute("data-theme",n.type),(0,i.jsx)("div",{children:t})};n(23960),n(24983),n(39788),n(99067),n(74927);var zo=function(e,t){var r=this;function o(n){var r,o,i=t.defaultLocale;return s.createElement(_,{lang:(null===(r=n.pageProps)||void 0===r?void 0:r.__lang)||n.__lang||i,namespaces:(null===(o=n.pageProps)||void 0===o?void 0:o.__namespaces)||n.__namespaces,config:t},s.createElement(e,j({},n)))}return void 0===t&&(t={}),t.isLoader||!1===t.loader||console.warn('\ud83d\udea8 [next-translate] You can remove the "appWithI18n" HoC on the _app.js, unless you set "loader: false" in your i18n config file.'),"function"===typeof t.staticsHoc&&t.staticsHoc(o,e),"undefined"===typeof window?n.g.i18nConfig=t:window.i18nConfig=t,t.skipInitialProps||(o.getInitialProps=function(n){return R(r,void 0,void 0,(function(){var r,o,i;return N(this,(function(a){switch(a.label){case 0:return r=j(j({},n.ctx||{}),n||{}),o={pageProps:{}},e.getInitialProps?[4,e.getInitialProps(n)]:[3,2];case 1:o=a.sent()||{},a.label=2;case 2:return i=[j({},o)],[4,k(j(j(j({},r),t),{loaderName:"getInitialProps"}))];case 3:return[2,j.apply(void 0,i.concat([a.sent()]))]}}))}))}),o}((function(e){var t=e.Component,n=e.pageProps,o=(0,c.useRouter)(),a=o.locale,u=(0,v.Z)("common").t,l=(0,U.Z)((0,pe.jl)()?(0,de.bo)():null,fe.et).data;return(0,s.useEffect)((function(){document.documentElement.dir=(0,Nt.XP)(a),window.CSS&&window.CSS.supports&&(window.CSS.supports("padding-inline","10px")||((0,tt.Kz)("logical_css_un_supported"),window.location.replace("https://previous.quran.com/")))}),[a]),(0,s.useEffect)((function(){var e=function(e){!function(e){window.gtag&&window.gtag("config",Ho,{page_path:e})}(e)};return o.events.on("routeChangeComplete",e),function(){o.events.off("routeChangeComplete",e)}}),[o.events]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(F(),{children:[(0,i.jsx)("link",{rel:"apple-touch-icon",sizes:"192x192",href:"/images/logo/Logo@192x192.png"}),(0,i.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,i.jsx)("link",{rel:"preconnect",href:le.H})]}),(0,i.jsx)(Re.Z,{locale:a}),(0,i.jsx)(Z._9,{dir:(0,Nt.XP)(a),children:(0,i.jsx)(L.pn,{children:(0,i.jsx)(Xr,{children:(0,i.jsx)(Go.Z.Provider,{value:n.chaptersData,children:(0,i.jsx)(Q.P,{children:(0,i.jsxs)(Vo,{locale:a,children:[(0,i.jsx)(Wo,{children:(0,i.jsxs)(K.k,{children:[(0,i.jsx)(Ae,{requiredFields:null===l||void 0===l?void 0:l.requiredFields,announcement:null===l||void 0===l?void 0:l.announcement,consents:null===l||void 0===l?void 0:l.consents}),(0,i.jsx)(B.lX,(0,r.Z)({},(0,qo.WQ)({locale:a,description:u("default-description")}))),(0,i.jsx)(ft,{}),(0,i.jsx)(wr,{}),(0,i.jsx)(je,{}),(0,i.jsx)(t,(0,r.Z)({},n)),(0,i.jsx)(ne,{}),(0,i.jsx)($r,{})]})}),(0,i.jsx)(Cr,{})]})})})})})}),(0,i.jsx)(Dr,{})]})}),(0,o.Z)((0,r.Z)({},a),{isLoader:!0,skipInitialProps:!1,loadLocaleFrom:function(e,t){return n(30242)("./".concat(e,"/").concat(t)).then((function(e){return e.default}))}}))},63264:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(20849),o="resetSettings";t.Z=(0,r.PH)(o,(function(e){return{payload:{locale:e}}}))},91156:function(e,t,n){"use strict";var r=n(20849);t.Z=(0,r.PH)("syncUserPreferences",(function(e,t){return{payload:{userPreferences:e,locale:t}}}))},31887:function(e,t,n){"use strict";n.d(t,{YS:function(){return u},hw:function(){return m},j7:function(){return c}});var r,o=n(45361),i=n(40177),a=n(49315),s=n(63747),c=["en-tafisr-ibn-kathir"],u={id:7,name:"Mishari Rashid al-`Afasy",recitationStyle:"Warsh",relativePath:"mishaari_raashid_al_3afaasee"},l={selectedTafsirs:c,isUsingDefaultTafsirs:!0},f={selectedTranslations:[131],isUsingDefaultTranslations:!0},d={tafsirFontScale:3,quranTextFontScale:3,translationFontScale:3,wordByWordFontScale:3,quranFont:s.fr.MadaniV1,mushafLines:s.AN.SixteenLines,isUsingDefaultFont:!0},p={readingPreference:s.m3.Translation,selectedWordByWordLocale:"en",isUsingDefaultWordByWordLocale:!0,wordByWordContentType:[s.Oj.Translation],wordByWordDisplay:[s.PT.TOOLTIP],wordClickFunctionality:s.MB.PlayAudio},h={type:a.Z.Auto},m={playbackRate:1,reciterId:u.id,volume:1};t.ZP=(r={},(0,o.Z)(r,i.Z.THEME,h),(0,o.Z)(r,i.Z.READING_PREFERENCES,p),(0,o.Z)(r,i.Z.QURAN_READER_STYLES,d),(0,o.Z)(r,i.Z.TRANSLATIONS,f),(0,o.Z)(r,i.Z.TAFSIRS,l),(0,o.Z)(r,i.Z.AUDIO_PLAYER_STATE,{enableAutoScrolling:!0,isDownloadingAudio:!1,showTooltipWhenPlayingAudio:!1}),(0,o.Z)(r,i.Z.NOTIFICATIONS,{notifications:[],paginatedNotifications:{},isFetchingNotifications:!1,isLoadingNotifications:!1,unseenCount:0}),r)},4785:function(e,t,n){"use strict";n.r(t);var r=n(57044),o=n(16946),i=n(31887),a=n(63747);t.default=(0,o.Z)((0,r.Z)({},i.ZP),{tafsirs:(0,o.Z)((0,r.Z)({},i.ZP.tafsirs),{selectedTafsirs:["ar-tafseer-al-qurtubi"]}),translations:(0,o.Z)((0,r.Z)({},i.ZP.translations),{selectedTranslations:[]}),readingPreferences:(0,o.Z)((0,r.Z)({},i.ZP.readingPreferences),{readingPreference:a.m3.Reading})})},55487:function(e,t,n){"use strict";n.r(t);var r=n(57044),o=n(16946),i=n(31887),a=n(63747);t.default=(0,o.Z)((0,r.Z)({},i.ZP),{quranReaderStyles:(0,o.Z)((0,r.Z)({},i.ZP.quranReaderStyles),{quranFont:a.fr.IndoPak}),readingPreferences:(0,o.Z)((0,r.Z)({},i.ZP.readingPreferences),{selectedWordByWordLocale:"bn"}),tafsirs:(0,o.Z)((0,r.Z)({},i.ZP.tafsirs),{selectedTafsirs:["bn-tafsir-ahsanul-bayaan"]}),translations:(0,o.Z)((0,r.Z)({},i.ZP.translations),{selectedTranslations:[161]})})},78931:function(e,t,n){"use strict";n.r(t);var r=n(31887);t.default=r.ZP},83269:function(e,t,n){"use strict";n.r(t);var r=n(57044),o=n(16946),i=n(31887);t.default=(0,o.Z)((0,r.Z)({},i.ZP),{translations:(0,o.Z)((0,r.Z)({},i.ZP.translations),{selectedTranslations:[29]})})},11405:function(e,t,n){"use strict";n.r(t);var r=n(57044),o=n(16946),i=n(31887);t.default=(0,o.Z)((0,r.Z)({},i.ZP),{translations:(0,o.Z)((0,r.Z)({},i.ZP.translations),{selectedTranslations:[31]})})},64362:function(e,t,n){"use strict";n.r(t);var r=n(57044),o=n(16946),i=n(31887),a=n(63747);t.default=(0,o.Z)((0,r.Z)({},i.ZP),{readingPreferences:(0,o.Z)((0,r.Z)({},i.ZP.readingPreferences),{selectedWordByWordLocale:"id"}),quranReaderStyles:(0,o.Z)((0,r.Z)({},i.ZP.quranReaderStyles),{quranFont:a.fr.IndoPak}),translations:(0,o.Z)((0,r.Z)({},i.ZP.translations),{selectedTranslations:[33]})})},75012:function(e,t,n){"use strict";n.r(t);var r=n(57044),o=n(16946),i=n(31887);t.default=(0,o.Z)((0,r.Z)({},i.ZP),{translations:(0,o.Z)((0,r.Z)({},i.ZP.translations),{selectedTranslations:[153]})})},8410:function(e,t,n){"use strict";n.r(t);var r=n(57044),o=n(16946),i=n(31887);t.default=(0,o.Z)((0,r.Z)({},i.ZP),{translations:(0,o.Z)((0,r.Z)({},i.ZP.translations),{selectedTranslations:[39]})})},78610:function(e,t,n){"use strict";n.r(t);var r=n(57044),o=n(16946),i=n(31887);t.default=(0,o.Z)((0,r.Z)({},i.ZP),{translations:(0,o.Z)((0,r.Z)({},i.ZP.translations),{selectedTranslations:[144]})})},97425:function(e,t,n){"use strict";n.r(t);var r=n(57044),o=n(16946),i=n(31887);t.default=(0,o.Z)((0,r.Z)({},i.ZP),{translations:(0,o.Z)((0,r.Z)({},i.ZP.translations),{selectedTranslations:[43]})})},2824:function(e,t,n){"use strict";n.r(t);var r=n(57044),o=n(16946),i=n(31887);t.default=(0,o.Z)((0,r.Z)({},i.ZP),{translations:(0,o.Z)((0,r.Z)({},i.ZP.translations),{selectedTranslations:[45]}),tafsirs:(0,o.Z)((0,r.Z)({},i.ZP.tafsirs),{selectedTafsirs:["ru-tafseer-al-saddi"]})})},38343:function(e,t,n){"use strict";n.r(t);var r=n(57044),o=n(16946),i=n(31887);t.default=(0,o.Z)((0,r.Z)({},i.ZP),{translations:(0,o.Z)((0,r.Z)({},i.ZP.translations),{selectedTranslations:[47]})})},60297:function(e,t,n){"use strict";n.r(t);var r=n(57044),o=n(16946),i=n(31887);t.default=(0,o.Z)((0,r.Z)({},i.ZP),{translations:(0,o.Z)((0,r.Z)({},i.ZP.translations),{selectedTranslations:[230]})})},41437:function(e,t,n){"use strict";n.r(t);var r=n(57044),o=n(16946),i=n(31887);t.default=(0,o.Z)((0,r.Z)({},i.ZP),{translations:(0,o.Z)((0,r.Z)({},i.ZP.translations),{selectedTranslations:[77]})})},69289:function(e,t,n){"use strict";n.r(t);var r=n(57044),o=n(16946),i=n(31887),a=n(63747);t.default=(0,o.Z)((0,r.Z)({},i.ZP),{quranReaderStyles:(0,o.Z)((0,r.Z)({},i.ZP.quranReaderStyles),{quranFont:a.fr.IndoPak}),readingPreferences:(0,o.Z)((0,r.Z)({},i.ZP.readingPreferences),{selectedWordByWordLocale:"ur"}),translations:(0,o.Z)((0,r.Z)({},i.ZP.translations),{selectedTranslations:[158]}),tafsirs:(0,o.Z)((0,r.Z)({},i.ZP.tafsirs),{selectedTafsirs:["tafseer-ibn-e-kaseer-urdu"]})})},43156:function(e,t,n){"use strict";n.r(t);var r=n(57044),o=n(16946),i=n(31887);t.default=(0,o.Z)((0,r.Z)({},i.ZP),{translations:(0,o.Z)((0,r.Z)({},i.ZP.translations),{selectedTranslations:[56]})})},57320:function(e,t,n){"use strict";n.d(t,{$t:function(){return g},Fy:function(){return h},aq:function(){return m},h0:function(){return p},iF:function(){return u},kq:function(){return d},r2:function(){return i},wH:function(){return f},yO:function(){return l}});var r=n(45361),o=n(40177),i=function(e){var t;return t={},(0,r.Z)(t,o.Z.THEME,l(e)),(0,r.Z)(t,o.Z.READING_PREFERENCES,f(e)),(0,r.Z)(t,o.Z.QURAN_READER_STYLES,d(e)),(0,r.Z)(t,o.Z.TRANSLATIONS,p(e)),(0,r.Z)(t,o.Z.TAFSIRS,h(e)),(0,r.Z)(t,o.Z.AUDIO_PLAYER_STATE,m(e)),(0,r.Z)(t,o.Z.DEFAULT_SETTINGS,{isUsingDefaultSettings:!0}),(0,r.Z)(t,o.Z.NOTIFICATIONS,g(e)),t},a="en",s=function(e){return n(70301)("./".concat(e)).default},c=function(e,t){return s(e)[t]},u=function(e){return s(e)},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return c(e,o.Z.THEME)},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return c(e,o.Z.READING_PREFERENCES)},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return c(e,o.Z.QURAN_READER_STYLES)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return c(e,o.Z.TRANSLATIONS)},h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return c(e,o.Z.TAFSIRS)},m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return c(e,o.Z.AUDIO_PLAYER_STATE)},g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return c(e,o.Z.NOTIFICATIONS)}},33294:function(e,t,n){"use strict";n.d(t,{$8:function(){return y},Mj:function(){return p},Wf:function(){return _},eU:function(){return d},f3:function(){return b},iL:function(){return h},ow:function(){return m}});var r=n(57044),o=n(16946),i=n(20849),a=n(11399),s=n(63264),c=n(91156),u=n(57320),l=n(40177),f=n(70356),d=function(e){return e.audioPlayerState},p=function(e){return e.audioPlayerState.enableAutoScrolling},h=function(e){return e.audioPlayerState.isDownloadingAudio},m=function(e){return e.audioPlayerState.showTooltipWhenPlayingAudio},g=(0,i.oM)({name:l.Z.AUDIO_PLAYER_STATE,initialState:(0,u.aq)(),reducers:{setEnableAutoScrolling:function(e,t){return(0,o.Z)((0,r.Z)({},e),{enableAutoScrolling:t.payload})},setIsDownloadingAudio:function(e,t){return(0,o.Z)((0,r.Z)({},e),{isDownloadingAudio:t.payload})},setShowTooltipWhenPlayingAudio:function(e,t){return(0,o.Z)((0,r.Z)({},e),{showTooltipWhenPlayingAudio:t.payload})}},extraReducers:function(e){e.addCase(s.Z,(function(e,t){return(0,r.Z)({},e,(0,u.aq)(t.payload.locale))})),e.addCase(c.Z,(function(e,t){var n=t.payload.userPreferences[f.Z.AUDIO];return n?(0,r.Z)({},e,n):e})),e.addCase(a.I2,(function(e,t){var n,o=t.key,i=t.payload;return o===l.Z.AUDIO_PLAYER_STATE&&(null===i||void 0===i||null===(n=i.repeatSettings)||void 0===n||n.repeatRange),(0,r.Z)({},e,i)}))}}),v=g.actions,y=v.setEnableAutoScrolling,b=v.setIsDownloadingAudio,_=v.setShowTooltipWhenPlayingAudio;t.ZP=g.reducer},82649:function(e,t,n){"use strict";n.d(t,{EK:function(){return d},Pn:function(){return l},VJ:function(){return f},cl:function(){return m},fv:function(){return h},vr:function(){return p}});var r=n(57044),o=n(16946),i=n(8522),a=n(20849),s=n(40177),c=(0,a.oM)({name:s.Z.COMMAND_BAR,initialState:{isOpen:!1,recentNavigations:[]},reducers:{setIsOpen:function(e,t){return(0,o.Z)((0,r.Z)({},e),{isOpen:t.payload})},toggleIsOpen:function(e){return(0,o.Z)((0,r.Z)({},e),{isOpen:!e.isOpen})},addRecentNavigation:function(e,t){var n=(0,i.Z)(e.recentNavigations),a=t.payload;return(n=n.filter((function(e){return e.key!==a.key}))).length>=5&&n.splice(-1),(0,o.Z)((0,r.Z)({},e),{recentNavigations:[a].concat((0,i.Z)(n))})},removeRecentNavigation:function(e,t){var n=(0,i.Z)(e.recentNavigations).filter((function(e){return e.key!==t.payload}));return(0,o.Z)((0,r.Z)({},e),{recentNavigations:n})}}}),u=c.actions,l=u.setIsOpen,f=u.toggleIsOpen,d=u.addRecentNavigation,p=u.removeRecentNavigation,h=function(e){return e.commandBar.isOpen},m=function(e){return e.commandBar.recentNavigations};t.ZP=c.reducer},63746:function(e,t,n){"use strict";n.d(t,{b2:function(){return s},it:function(){return c}});var r=n(45361),o=n(57044),i=n(16946),a=(0,n(20849).oM)({name:"bookmarks",initialState:{bookmarkedVerses:{}},reducers:{toggleVerseBookmark:function(e,t){var n=t.payload;if(e.bookmarkedVerses[n]){var a=(0,o.Z)({},e.bookmarkedVerses);return delete a[n],(0,i.Z)((0,o.Z)({},e),{bookmarkedVerses:a})}return(0,i.Z)((0,o.Z)({},e),{bookmarkedVerses:(0,o.Z)((0,r.Z)({},n,+new Date),e.bookmarkedVerses)})}}}),s=a.actions.toggleVerseBookmark,c=function(e){return e.bookmarks.bookmarkedVerses};t.ZP=a.reducer},99875:function(e,t,n){"use strict";n.d(t,{Q7:function(){return u},nl:function(){return f},qk:function(){return l}});var r=n(57044),o=n(16946),i=n(20849),a=n(40177),s=(0,i.oM)({name:a.Z.CONTEXT_MENU,initialState:{isExpanded:!0,showReadingPreferenceSwitcher:!1},reducers:{setIsExpanded:function(e,t){return(0,o.Z)((0,r.Z)({},e),{isExpanded:t.payload})},setShowReadingPreferenceSwitcher:function(e,t){return(0,o.Z)((0,r.Z)({},e),{showReadingPreferenceSwitcher:t.payload})}}}),c=s.actions,u=c.setIsExpanded,l=c.setShowReadingPreferenceSwitcher,f=function(e){return e.contextMenu};t.ZP=s.reducer},49409:function(e,t,n){"use strict";n.d(t,{$Z:function(){return u},bl:function(){return d},wC:function(){return f}});var r=n(57044),o=n(16946),i=n(8522),a=n(20849),s=n(40177),c=(0,a.oM)({name:s.Z.FONT_FACES,initialState:{loadedFontFaces:[]},reducers:{addLoadedFontFace:function(e,t){return e.loadedFontFaces.includes(t.payload)?e:(0,o.Z)((0,r.Z)({},e),{loadedFontFaces:(0,i.Z)(e.loadedFontFaces).concat([t.payload])})},resetLoadedFontFaces:function(e){return(0,o.Z)((0,r.Z)({},e),{loadedFontFaces:[]})}}}),u=function(e){return e.fontFaces.loadedFontFaces},l=c.actions,f=l.addLoadedFontFace,d=l.resetLoadedFontFaces;t.ZP=c.reducer},21654:function(e,t,n){"use strict";n.d(t,{$p:function(){return u},u:function(){return c}});var r=n(57044),o=n(16946),i=n(20849),a=n(40177),s=(0,i.oM)({name:a.Z.NOTES,initialState:{isVisible:!1},reducers:{setIsVisible:function(e,t){return(0,o.Z)((0,r.Z)({},e),{isVisible:t.payload})}}}),c=s.actions.setIsVisible,u=function(e){return e.notes};t.ZP=s.reducer},46581:function(e,t,n){"use strict";n.d(t,{EA:function(){return S},GW:function(){return h},Hm:function(){return y},N9:function(){return T},O2:function(){return g},SL:function(){return A},SV:function(){return w},Ud:function(){return m},XQ:function(){return _},Xg:function(){return E},eB:function(){return b},lt:function(){return x},zX:function(){return v}});var r=n(57044),o=n(16946),i=n(20849),a=n(63264),s=n(91156),c=n(57320),u=n(40177),l=n(70356),f=n(63747),d=(0,i.oM)({name:u.Z.READING_PREFERENCES,initialState:(0,c.wH)(),reducers:{setReadingPreference:function(e,t){return(0,o.Z)((0,r.Z)({},e),{readingPreference:t.payload})},setSelectedWordByWordLocale:function(e,t){return(0,o.Z)((0,r.Z)({},e),{selectedWordByWordLocale:t.payload.value,isUsingDefaultWordByWordLocale:t.payload.value===(0,c.wH)(t.payload.locale).selectedWordByWordLocale})},setWordClickFunctionality:function(e,t){return(0,o.Z)((0,r.Z)({},e),{wordClickFunctionality:t.payload})},setWordByWordContentType:function(e,t){return(0,o.Z)((0,r.Z)({},e),{wordByWordContentType:t.payload})},setWordByWordDisplay:function(e,t){return(0,o.Z)((0,r.Z)({},e),{wordByWordDisplay:t.payload})}},extraReducers:function(e){e.addCase(a.Z,(function(e,t){return(0,c.wH)(t.payload.locale)})),e.addCase(s.Z,(function(e,t){var n=t.payload,i=n.userPreferences,a=n.locale,s=i[l.Z.READING];if(s){var u=(0,c.wH)(a).selectedWordByWordLocale;return(0,o.Z)((0,r.Z)({},e,s),{isUsingDefaultWordByWordLocale:s.selectedWordByWordLocale===u})}return e}))}}),p=d.actions,h=p.setReadingPreference,m=p.setSelectedWordByWordLocale,g=p.setWordClickFunctionality,v=p.setWordByWordContentType,y=p.setWordByWordDisplay,b=function(e){var t=e.readingPreferences,n=t.wordByWordDisplay,r=t.wordByWordContentType,o=n.includes(f.PT.INLINE);return{showWordByWordTranslation:o&&r.includes(f.Oj.Translation),showWordByWordTransliteration:o&&r.includes(f.Oj.Transliteration)}},_=function(e){var t=e.readingPreferences,n=t.wordByWordContentType;return!!t.wordByWordDisplay.includes(f.PT.TOOLTIP)&&(n.includes(f.Oj.Translation)||n.includes(f.Oj.Transliteration))},E=function(e){return e.readingPreferences},w=function(e){var t=e.readingPreferences,n=t.wordByWordDisplay,r=t.wordByWordContentType;return n&&n.includes(f.PT.TOOLTIP)&&r&&r.length?r:[]},S=function(e){return e.readingPreferences.readingPreference},T=function(e){return e.readingPreferences.wordClickFunctionality},x=function(e){return e.readingPreferences.selectedWordByWordLocale},A=function(e){return e.readingPreferences.isUsingDefaultWordByWordLocale};t.ZP=d.reducer},88555:function(e,t,n){"use strict";n.d(t,{E9:function(){return m},GF:function(){return h},eQ:function(){return p},ge:function(){return d},jM:function(){return g}});var r=n(45361),o=n(57044),i=n(16946),a=n(69976),s=n(20849),c=n(40177),u=n(69640),l=(0,s.oM)({name:c.Z.READING_TRACKER,initialState:{lastReadVerse:{verseKey:null,chapterId:null,page:null,hizb:null},recentReadingSessions:{}},reducers:{setLastReadVerse:function(e,t){var n=t.payload,i=n.lastReadVerse,s=n.chaptersData,c=(0,o.Z)({},e.recentReadingSessions);if(c[i.verseKey])return delete c[i.verseKey],c=(0,o.Z)((0,r.Z)({},i.verseKey,+new Date),c),f(e,i,c);var l=Object.keys(c),d=l.length,p=(0,a.Z)(l,1)[0];if(d&&(0,u.Bo)(s,p,i.verseKey)<=20)return delete c[p],c=(0,o.Z)((0,r.Z)({},i.verseKey,+new Date),c),f(e,i,c);var h=l[d-1];return c=(0,o.Z)((0,r.Z)({},i.verseKey,+new Date),c),d+1>10&&delete c[h],f(e,i,c)}}}),f=function(e,t,n){return(0,i.Z)((0,o.Z)({},e),{lastReadVerse:t,recentReadingSessions:n})},d=l.actions.setLastReadVerse,p=function(e){return e.readingTracker.lastReadVerse},h=function(e){return e.readingTracker.recentReadingSessions},m=function(e){return e.readingTracker.lastReadVerse.page},g=function(e){return function(t){var n=p(t);return e===n.verseKey}};t.ZP=l.reducer},80105:function(e,t,n){"use strict";n.d(t,{AV:function(){return u},E9:function(){return d},Ob:function(){return f},_H:function(){return c}});var r=n(57044),o=n(16946),i=n(20849),a=n(40177),s=(0,i.oM)({name:a.Z.READING_VIEW_HOVERED_VERSE,initialState:{hoveredVerseKey:null,selectedVerseKey:null},reducers:{setReadingViewHoveredVerseKey:function(e,t){var n=t.payload;return(0,o.Z)((0,r.Z)({},e),{hoveredVerseKey:n})},setReadingViewSelectedVerseKey:function(e,t){var n=t.payload;return(0,o.Z)((0,r.Z)({},e),{selectedVerseKey:n})}}}),c=function(e){return e.readingViewVerse.hoveredVerseKey},u=function(e){return e.readingViewVerse.selectedVerseKey},l=s.actions,f=l.setReadingViewHoveredVerseKey,d=l.setReadingViewSelectedVerseKey;t.ZP=s.reducer},26803:function(e,t,n){"use strict";n.d(t,{Dx:function(){return r},X1:function(){return c},eY:function(){return p},rS:function(){return h},tD:function(){return m},u:function(){return d}});var r,o=n(57044),i=n(16946),a=n(20849),s=n(40177);!function(e){e.Surah="surah",e.Juz="juz",e.Page="page",e.RubElHizb="rub_el_hizb",e.Hizb="hizb"}(r||(r={}));var c="auto",u={isVisible:c,selectedNavigationItem:r.Surah},l=(0,a.oM)({name:s.Z.SIDEBAR_NAVIGATION,initialState:u,reducers:{setIsVisible:function(e,t){return(0,i.Z)((0,o.Z)({},e),{isVisible:t.payload})},selectNavigationItem:function(e,t){return(0,i.Z)((0,o.Z)({},e),{selectedNavigationItem:t.payload})}}}),f=l.actions,d=f.setIsVisible,p=f.selectNavigationItem,h=function(e){return e.sidebarNavigation.isVisible},m=function(e){return e.sidebarNavigation.selectedNavigationItem};t.ZP=l.reducer},5330:function(e,t,n){"use strict";n.d(t,{$U:function(){return b},CR:function(){return A},EQ:function(){return O},Ho:function(){return P},I8:function(){return m},Jf:function(){return h},KV:function(){return j},NI:function(){return d},P0:function(){return g},Pt:function(){return I},Q:function(){return E},U1:function(){return p},fT:function(){return _},fZ:function(){return C},i9:function(){return R},iH:function(){return w},ou:function(){return S},rk:function(){return x},xo:function(){return T},z$:function(){return k}});var r=n(57044),o=n(16946),i=n(20849),a=n(63264),s=n(91156),c=n(57320),u=n(40177),l=n(70356),f=n(63747),d=10,p=10,h=10,m=6,g=1,v=(0,i.oM)({name:u.Z.QURAN_READER_STYLES,initialState:(0,c.kq)(),reducers:{increaseQuranTextFontScale:function(e){return(0,o.Z)((0,r.Z)({},e),{quranTextFontScale:e.quranTextFontScale+1})},decreaseQuranTextFontScale:function(e){return(0,o.Z)((0,r.Z)({},e),{quranTextFontScale:e.quranTextFontScale-1})},increaseTranslationFontScale:function(e){return(0,o.Z)((0,r.Z)({},e),{translationFontScale:e.translationFontScale+1})},decreaseTranslationFontScale:function(e){return(0,o.Z)((0,r.Z)({},e),{translationFontScale:e.translationFontScale-1})},increaseTafsirFontScale:function(e){return(0,o.Z)((0,r.Z)({},e),{tafsirFontScale:e.tafsirFontScale+1})},decreaseTafsirFontScale:function(e){return(0,o.Z)((0,r.Z)({},e),{tafsirFontScale:e.tafsirFontScale-1})},increaseWordByWordFontScale:function(e){return(0,o.Z)((0,r.Z)({},e),{wordByWordFontScale:e.wordByWordFontScale+1})},decreaseWordByWordFontScale:function(e){return(0,o.Z)((0,r.Z)({},e),{wordByWordFontScale:e.wordByWordFontScale-1})},setMushafLines:function(e,t){var n=t.payload,i=n.mushafLines,a=n.locale,s=(0,c.kq)(a);return(0,o.Z)((0,r.Z)({},e),{mushafLines:i,isUsingDefaultFont:s.mushafLines===i&&e.quranFont===s.quranFont})},setQuranFont:function(e,t){var n=t.payload,i=n.quranFont,a=n.locale,s=(0,c.kq)(a),u=s.quranFont===i&&e.mushafLines===s.mushafLines;switch(i){case f.fr.MadaniV1:case f.fr.IndoPak:}return(0,o.Z)((0,r.Z)({},e),{quranFont:i,isUsingDefaultFont:u})}},extraReducers:function(e){e.addCase(a.Z,(function(e,t){return(0,c.kq)(t.payload.locale)})),e.addCase(s.Z,(function(e,t){var n=t.payload,i=n.userPreferences,a=n.locale,s=i[l.Z.QURAN_READER_STYLES];if(s){var u=(0,c.kq)(a),f=u.quranFont,d=u.mushafLines;return(0,o.Z)((0,r.Z)({},e,s),{isUsingDefaultFont:f===s.quranFont&&d===s.mushafLines})}return e}))}}),y=v.actions,b=y.increaseTafsirFontScale,_=y.decreaseTafsirFontScale,E=y.setQuranFont,w=y.increaseQuranTextFontScale,S=y.decreaseQuranTextFontScale,T=y.increaseTranslationFontScale,x=y.decreaseTranslationFontScale,A=y.increaseWordByWordFontScale,O=y.decreaseWordByWordFontScale,C=y.setMushafLines,I=function(e){return e.quranReaderStyles},P=function(e){return e.quranReaderStyles.quranFont},k=function(e){return e.quranReaderStyles.mushafLines},j=function(e){return e.quranReaderStyles.wordByWordFontScale},R=function(e){return!!e.quranReaderStyles.isUsingDefaultFont};t.ZP=v.reducer},5588:function(e,t,n){"use strict";n.d(t,{OW:function(){return h},XG:function(){return m},ZY:function(){return p}});var r=n(57044),o=n(16946),i=n(20849),a=n(63264),s=n(91156),c=n(57320),u=n(40177),l=n(1050),f=n(70356),d=(0,i.oM)({name:u.Z.TAFSIRS,initialState:(0,c.Fy)(),reducers:{setSelectedTafsirs:function(e,t){return(0,o.Z)((0,r.Z)({},e),{isUsingDefaultTafsirs:(0,l.Hj)((0,c.Fy)(t.payload.locale).selectedTafsirs,t.payload.tafsirs),selectedTafsirs:t.payload.tafsirs})}},extraReducers:function(e){e.addCase(a.Z,(function(e,t){return(0,c.Fy)(t.payload.locale)})),e.addCase(s.Z,(function(e,t){var n=t.payload,i=n.userPreferences,a=n.locale,s=i[f.Z.TAFSIRS];if(s){var u=(0,c.Fy)(a).selectedTafsirs,d=s.selectedTafsirs;return(0,o.Z)((0,r.Z)({},e,s),{isUsingDefaultTafsirs:(0,l.Hj)(u,d)})}return e}))}}),p=d.actions.setSelectedTafsirs,h=function(e){return e.tafsirs},m=function(e){return e.tafsirs.selectedTafsirs};t.ZP=d.reducer},48752:function(e,t,n){"use strict";n.d(t,{nb:function(){return h},qw:function(){return m},uz:function(){return p},z2:function(){return g}});var r=n(57044),o=n(16946),i=n(20849),a=n(63264),s=n(91156),c=n(57320),u=n(40177),l=n(1050),f=n(70356),d=(0,i.oM)({name:u.Z.TRANSLATIONS,initialState:(0,c.h0)(),reducers:{setSelectedTranslations:function(e,t){return(0,o.Z)((0,r.Z)({},e),{isUsingDefaultTranslations:(0,l.Hj)((0,c.h0)(t.payload.locale).selectedTranslations,t.payload.translations),selectedTranslations:t.payload.translations})}},extraReducers:function(e){e.addCase(a.Z,(function(e,t){return(0,c.h0)(t.payload.locale)})),e.addCase(s.Z,(function(e,t){var n=t.payload,i=n.userPreferences,a=n.locale,s=i[f.Z.TRANSLATIONS];if(s){var u=(0,c.h0)(a).selectedTranslations,d=s.selectedTranslations;return(0,o.Z)((0,r.Z)({},e,s),{isUsingDefaultTranslations:(0,l.Hj)(u,d)})}return e}))}}),p=d.actions.setSelectedTranslations,h=function(e){return e.translations},m=function(e){return e.translations.selectedTranslations},g=function(e){return e.translations.isUsingDefaultTranslations};t.ZP=d.reducer},88548:function(e,t,n){"use strict";n.d(t,{ag:function(){return d},rd:function(){return f},zr:function(){return l}});var r=n(57044),o=n(16946),i=n(8522),a=n(20849),s=n(40177),c=(0,a.oM)({name:s.Z.SEARCH,initialState:{searchHistory:[]},reducers:{addSearchHistoryRecord:function(e,t){var n=(0,i.Z)(e.searchHistory),a=t.payload;return e.searchHistory.length>=5&&n.splice(-1),n=n.filter((function(e){return e!==a})),n=[a].concat((0,i.Z)(n)),(0,o.Z)((0,r.Z)({},e),{searchHistory:n})},removeSearchHistoryRecord:function(e,t){var n=(0,i.Z)(e.searchHistory).filter((function(e){return e!==t.payload}));return(0,o.Z)((0,r.Z)({},e),{searchHistory:n})}}}),u=c.actions,l=u.addSearchHistoryRecord,f=u.removeSearchHistoryRecord,d=function(e){return e.search.searchHistory};t.ZP=c.reducer},24796:function(e,t,n){"use strict";n.d(t,{ZP:function(){return E},UB:function(){return b},zW:function(){return w},jy:function(){return _}});var r,o=n(1997),i=n(45361),a=n(57044),s=n(16946),c=n(51726),u=n(20849),l=n(57320),f=n(40177),d=n(15721),p=n(9740),h=n(31887),m=n(70356),g=(r={},(0,i.Z)(r,f.Z.AUDIO_PLAYER_STATE,m.Z.AUDIO),(0,i.Z)(r,f.Z.LOCALE,m.Z.LANGUAGE),(0,i.Z)(r,f.Z.QURAN_READER_STYLES,m.Z.QURAN_READER_STYLES),(0,i.Z)(r,f.Z.READING_PREFERENCES,m.Z.READING),(0,i.Z)(r,f.Z.TAFSIRS,m.Z.TAFSIRS),(0,i.Z)(r,f.Z.THEME,m.Z.THEME),(0,i.Z)(r,f.Z.TRANSLATIONS,m.Z.TRANSLATIONS),r),v=function(e){var t={};return Object.keys(e).forEach((function(n){var r=g[n];r&&(t[r]=function(e,t){if(e===f.Z.LOCALE)return{language:t};if(e===f.Z.AUDIO_PLAYER_STATE){var n=t.showTooltipWhenPlayingAudio,r=t.enableAutoScrolling;return{reciter:h.hw.reciterId,playbackRate:h.hw.playbackRate,showTooltipWhenPlayingAudio:n,enableAutoScrolling:r}}if(e===f.Z.READING_PREFERENCES){var o=(0,a.Z)({},t);return delete o.isUsingDefaultWordByWordLocale,o}if(e===f.Z.TRANSLATIONS){var i=(0,a.Z)({},t);return delete i.isUsingDefaultTranslations,i}if(e===f.Z.TAFSIRS){var s=(0,a.Z)({},t);return delete s.isUsingDefaultTafsirs,s}if(e===f.Z.QURAN_READER_STYLES){var c=(0,a.Z)({},t);return delete c.isUsingDefaultFont,c}return(0,a.Z)({},t)}(n,e[n]))})),t},y=(0,u.oM)({name:f.Z.DEFAULT_SETTINGS,initialState:{isUsingDefaultSettings:!0},reducers:{setIsUsingDefaultSettings:function(e,t){return(0,s.Z)((0,a.Z)({},e),{isUsingDefaultSettings:t.payload})}}}),b=(0,u.hg)("".concat(f.Z.DEFAULT_SETTINGS,"/persistDefaultSettings"),function(){var e=(0,o.Z)((function(e){var t,n,r;return(0,c.__generator)(this,(function(o){switch(o.label){case 0:return t=v((0,s.Z)((0,a.Z)({},(0,l.iF)(e)),(0,i.Z)({},f.Z.LOCALE,e))),n=t.quranReaderStyles,r=(0,d.$P)(n.quranFont,n.mushafLines).mushaf,[4,(0,p.MQ)(t,r)];case 1:return o.sent(),[2]}}))}));return function(t){return e.apply(this,arguments)}}()),_=y.actions.setIsUsingDefaultSettings,E=y.reducer,w=function(e){return e.defaultSettings.isUsingDefaultSettings}},32162:function(e,t,n){"use strict";n.d(t,{Mi:function(){return m},R$:function(){return p},Rd:function(){return d},US:function(){return r},ZY:function(){return h},u:function(){return f},wK:function(){return g}});var r,o=n(57044),i=n(16946),a=n(20849),s=n(40177);!function(e){e.Body="body",e.Translation="translation",e.Reciter="reciter",e.Tafsir="tafsir",e.RepeatSettings="repeatSettings"}(r||(r={}));var c={isVisible:!0,isNavigationDrawerOpen:!1,isSearchDrawerOpen:!1,isSettingsDrawerOpen:!1,settingsView:r.Body},u=(0,a.oM)({name:s.Z.NAVBAR,initialState:c,reducers:{setIsVisible:function(e,t){return(0,i.Z)((0,o.Z)({},e),{isVisible:t.payload})},setIsNavigationDrawerOpen:function(e,t){return(0,i.Z)((0,o.Z)({},e),{isNavigationDrawerOpen:t.payload})},setIsSearchDrawerOpen:function(e,t){return(0,i.Z)((0,o.Z)({},e),{isSearchDrawerOpen:t.payload})},setIsSettingsDrawerOpen:function(e,t){return(0,i.Z)((0,o.Z)({},e),{isSettingsDrawerOpen:t.payload})},setSettingsView:function(e,t){return(0,i.Z)((0,o.Z)({},e),{settingsView:t.payload})}}}),l=u.actions,f=l.setIsVisible,d=l.setIsNavigationDrawerOpen,p=l.setIsSearchDrawerOpen,h=l.setIsSettingsDrawerOpen,m=l.setSettingsView,g=function(e){return e.navbar};t.ZP=u.reducer},63427:function(e,t,n){"use strict";n.d(t,{Bh:function(){return p},Qw:function(){return m},dq:function(){return g},gC:function(){return h},mv:function(){return v}});var r=n(45361),o=n(57044),i=n(16946),a=n(8522),s=n(20849),c=n(57320),u=n(40177),l=function(e,t){var n={},r=[];return Object.keys(e.paginatedNotifications).forEach((function(s){var c,u=(0,i.Z)((0,o.Z)({},e.paginatedNotifications[s]),{data:(0,a.Z)(e.paginatedNotifications[s].data)}),l=t(u.data);n[s]=(0,i.Z)((0,o.Z)({},u),{data:l}),(c=r).push.apply(c,(0,a.Z)(l))})),{notifications:r,paginatedNotifications:n}},f=(0,s.oM)({name:u.Z.NOTIFICATIONS,initialState:(0,c.$t)(),reducers:{setNotificationsLoading:function(e,t){return(0,o.Z)((0,i.Z)((0,o.Z)({},e),{isLoadingNotifications:t.payload.isLoading,isFetchingNotifications:t.payload.isFetching}),t.payload.shouldResetOldData?{notifications:[],paginatedNotifications:{}}:{})},setNotificationsPageAndFinishLoading:function(e,t){var n=(0,i.Z)((0,o.Z)({},t.payload.shouldResetOldData?{}:e.paginatedNotifications),(0,r.Z)({},t.payload.page,t.payload.data)),s=Object.keys(n).reduce((function(e,t){return(0,a.Z)(e).concat((0,a.Z)(n[t].data))}),[]);return(0,i.Z)((0,o.Z)({},e),{paginatedNotifications:n,notifications:s,isLoadingNotifications:!1,isFetchingNotifications:!1})},setUnseenCount:function(e,t){return(0,i.Z)((0,o.Z)({},e),{unseenCount:t.payload})},setAllAsRead:function(e){return(0,o.Z)({},e,l(e,(function(e){return e.map((function(e){return(0,i.Z)((0,o.Z)({},e),{read:!0})}))})))},setNotificationAsRead:function(e,t){return(0,o.Z)({},e,l(e,(function(e){return e.map((function(e){return e._id===t.payload.messageId?(0,i.Z)((0,o.Z)({},e),{read:!0}):e}))})))},setDeleteNotification:function(e,t){return(0,o.Z)({},e,l(e,(function(e){return e.filter((function(e){return e._id!==t.payload.messageId}))})))}}}),d=f.actions,p=d.setNotificationsLoading,h=d.setNotificationsPageAndFinishLoading,m=d.setUnseenCount,g=(d.setAllAsRead,d.setNotificationAsRead,d.setDeleteNotification,function(e){var t=e.notifications.paginatedNotifications;return Object.keys(t)}),v=function(e){return e.notifications.isFetchingNotifications};t.ZP=f.reducer},72707:function(e,t,n){"use strict";n.d(t,{tE:function(){return d},xg:function(){return p}});var r=n(45361),o=n(57044),i=n(16946),a=n(8522),s=n(20849),c=n(40177),u={isChecklistVisible:!0,checklistDismissals:0,lastChecklistDismissal:null,activeStep:{group:n(96749).Z.HOMEPAGE,index:0},completedGroups:{}},l=(0,s.oM)({name:c.Z.ONBOARDING,initialState:u,reducers:{dismissChecklist:function(e){return(0,i.Z)((0,o.Z)({},e),{isChecklistVisible:!1,checklistDismissals:e.checklistDismissals+1,lastChecklistDismissal:(new Date).getTime()})},setIsChecklistVisible:function(e,t){return(0,i.Z)((0,o.Z)({},e),{isChecklistVisible:t.payload})},setActiveStepIndex:function(e,t){var n=t.payload,s=n.group,c=n.index,u=n.indicesToMarkAsCompleted,l=n.totalSteps,f=e.completedGroups[s],d=(null===f||void 0===f?void 0:f.completedSteps)?(0,a.Z)(f.completedSteps):[];d.includes(c)||d.push(c),u&&u.forEach((function(e){d.includes(e)||d.push(e)}));var p={completedSteps:d,isCompleted:l?d.length===l:null===f||void 0===f?void 0:f.isCompleted};return(0,i.Z)((0,o.Z)({},e),{activeStep:t.payload,completedGroups:(0,i.Z)((0,o.Z)({},e.completedGroups),(0,r.Z)({},s,p))})}}}),f=l.actions,d=(f.dismissChecklist,f.setIsChecklistVisible,f.setActiveStepIndex),p=function(e){return e.onboarding.activeStep};t.ZP=l.reducer},74329:function(e,t,n){"use strict";n.d(t,{N4:function(){return f},kW:function(){return l}});var r=n(57044),o=n(16946),i=n(20849),a=n(91156),s=n(40177),c=n(70356),u=(0,i.oM)({name:s.Z.REVELATION_ORDER,initialState:{isReadingByRevelationOrder:!1},reducers:{setIsReadingByRevelationOrder:function(e,t){return(0,o.Z)((0,r.Z)({},e),{isReadingByRevelationOrder:t.payload})}},extraReducers:function(e){e.addCase(a.Z,(function(e,t){var n=t.payload.userPreferences[c.Z.READING];return n?(0,o.Z)((0,r.Z)({},e),{isReadingByRevelationOrder:!!n.isReadingByRevelationOrder}):e}))}}),l=function(e){return e.revelationOrder.isReadingByRevelationOrder},f=u.actions.setIsReadingByRevelationOrder;t.ZP=u.reducer},30041:function(e,t,n){"use strict";n.d(t,{Dc:function(){return d},Pu:function(){return p}});var r=n(57044),o=n(16946),i=n(20849),a=n(57320),s=n(63264),c=n(91156),u=n(40177),l=n(70356),f=(0,i.oM)({name:u.Z.THEME,initialState:(0,a.yO)(),reducers:{setTheme:function(e,t){return(0,o.Z)((0,r.Z)({},e),{type:t.payload})}},extraReducers:function(e){e.addCase(s.Z,(function(e,t){return(0,a.yO)(t.payload.locale)})),e.addCase(c.Z,(function(e,t){var n=t.payload.userPreferences;return n[l.Z.THEME]?(0,r.Z)({},e,n[l.Z.THEME]):e}))}}),d=f.actions.setTheme,p=function(e){return e.theme};t.ZP=f.reducer},17678:function(e,t,n){"use strict";n.d(t,{A4:function(){return d},AO:function(){return h},EN:function(){return c},ID:function(){return u},Q:function(){return p},ST:function(){return f}});var r=n(57044),o=n(16946),i=n(20849),a=n(40177),s=(0,i.oM)({name:a.Z.VOICE_SEARCH,initialState:{isSearchDrawerVoiceFlowStarted:!1,isCommandBardVoiceFlowStarted:!1},reducers:{toggleIsSearchDrawerVoiceFlowStarted:function(e){return(0,o.Z)((0,r.Z)({},e),{isSearchDrawerVoiceFlowStarted:!e.isSearchDrawerVoiceFlowStarted})},stopSearchDrawerVoiceFlow:function(e){return(0,o.Z)((0,r.Z)({},e),{isSearchDrawerVoiceFlowStarted:!1})},stopCommandBarVoiceFlow:function(e){return(0,o.Z)((0,r.Z)({},e),{isCommandBardVoiceFlowStarted:!1})},toggleIsCommandBarVoiceFlowStarted:function(e){return(0,o.Z)((0,r.Z)({},e),{isCommandBardVoiceFlowStarted:!e.isCommandBardVoiceFlowStarted})}}}),c=function(e){return e.voiceSearch.isSearchDrawerVoiceFlowStarted},u=function(e){return e.voiceSearch.isCommandBardVoiceFlowStarted},l=s.actions,f=l.toggleIsSearchDrawerVoiceFlowStarted,d=l.toggleIsCommandBarVoiceFlowStarted,p=l.stopSearchDrawerVoiceFlow,h=l.stopCommandBarVoiceFlow;t.ZP=s.reducer},40177:function(e,t){"use strict";var n;!function(e){e.THEME="theme",e.READING_PREFERENCES="readingPreferences",e.QURAN_READER_STYLES="quranReaderStyles",e.TRANSLATIONS="translations",e.TAFSIRS="tafsirs",e.AUDIO_PLAYER_STATE="audioPlayerState",e.DEFAULT_SETTINGS="defaultSettings",e.BANNER="banner",e.NAVBAR="navbar",e.SESSION="session",e.BOOKMARKS="bookmarks",e.VOICE_SEARCH="voiceSearch",e.WELCOME_MESSAGE="welcomeMessage",e.COMMAND_BAR="commandBar",e.CONTEXT_MENU="contextMenu",e.FONT_FACES="fontFaces",e.NOTES="notes",e.READING_TRACKER="readingTracker",e.READING_VIEW_HOVERED_VERSE="readingViewHoveredVerse",e.SIDEBAR_NAVIGATION="sidebarNavigation",e.SEARCH="search",e.LOCALE="locale",e.USER_DATA_SYNC="userDataSync",e.PERSIST_GATE_HYDRATION="persistGateHydration",e.REVELATION_ORDER="revelationOrder",e.NOTIFICATIONS="notifications",e.ONBOARDING="onboarding"}(n||(n={})),t.Z=n},49315:function(e,t){"use strict";var n;!function(e){e.Auto="auto",e.Light="light",e.Sepia="sepia",e.Dark="dark"}(n||(n={})),t.Z=n},15721:function(e,t,n){"use strict";n.d(t,{$P:function(){return d},H:function(){return u},bf:function(){return l},gK:function(){return s},hD:function(){return f}});var r=n(57028),o=n(32837),i=n(63747),a=n(25620),s=10,c="/api/qdc",u="production"===a.env.NEXT_PUBLIC_VERCEL_ENV?"https://api.qurancdn.com":"https://staging.quran.com",l=function(e,t){if(!t)return"".concat(u).concat(c).concat(e);var n=(0,r.decamelizeKeys)(t),i="?".concat((0,o.Z)(n));return"".concat(u).concat(c).concat(e).concat(i)},f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.fr.QPCHafs;return{wordFields:"verse_key,verse_id,page_number,location,text_uthmani,".concat(e).concat(e===i.fr.QPCHafs?"":",".concat(i.fr.QPCHafs))}},d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.fr.QPCHafs,t=arguments.length>1?arguments[1]:void 0,n=i.ru[e];return e===i.fr.IndoPak&&t&&(n=t===i.AN.FifteenLines?i.RA.Indopak15Lines:i.RA.Indopak16Lines),{mushaf:n}}},27967:function(e,t,n){"use strict";n.d(t,{$6:function(){return w},A9:function(){return C},Eo:function(){return m},G1:function(){return b},I$:function(){return P},I0:function(){return T},IC:function(){return R},Im:function(){return N},Iq:function(){return k},K2:function(){return L},ME:function(){return j},ML:function(){return h},OT:function(){return M},Sn:function(){return E},UC:function(){return O},Wq:function(){return g},Wy:function(){return I},Y8:function(){return D},c7:function(){return v},do:function(){return A},jL:function(){return _},tn:function(){return S},u8:function(){return y},uL:function(){return x},v2:function(){return Z}});var r=n(57044),o=n(16946),i=n(57028),a=n(15721),s=n(32837),c=n(31887),u=n(57320),l=n(63747),f=n(25620),d={words:!0,translationFields:"resource_name,language_id",perPage:a.gK,fields:"".concat(l.fr.Uthmani,",chapter_id,hizb_number,text_imlaei_simple")},p=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=(0,o.Z)((0,r.Z)({},d),{translations:(0,u.h0)(e).selectedTranslations.join(", "),reciter:c.YS.id,wordTranslationLanguage:(0,u.wH)(e).selectedWordByWordLocale});return n||(delete i.translationFields,delete i.translations),(0,r.Z)({},i,t)},h=function(e,t,n){return(0,a.bf)("/verses/by_chapter/".concat(e),p(t,n))},m=function(e,t){return(0,a.bf)("/verses/by_range",p(e,t))},g=function(e){return(0,a.bf)("/verses/filter",(0,r.Z)({},e))},v=function(e){return(0,a.bf)("/resources/translations",{language:e})},y=function(e){return(0,a.bf)("/resources/word_by_word_translations",{language:e})},b=function(e){return(0,a.bf)("/resources/languages",{language:e})},_=function(e,t){return(0,a.bf)("/audio/reciters",{locale:e,fields:t})},E=function(e,t){return(0,a.bf)("/audio/reciters/".concat(e),{locale:t,fields:["profile_picture","cover_image","bio"]})},w=function(e,t,n){return(0,a.bf)("/audio/reciters/".concat(e,"/audio_files"),{chapter:t,segments:n})},S=function(e,t){return(0,a.bf)("/audio/reciters/".concat(e,"/timestamp?verse_key=").concat(t))},T=function(e,t){return(0,a.bf)("/resources/translations/filter",{locale:e,translations:t.join(", ")})},x=function(e){return(0,a.bf)("/verses/advanced_copy",e)},A=function(e){return(0,a.bf)("/search",e)},O=function(e){return function(e){var t=f.env.NEXT_PUBLIC_SEARCH_BASE_URL;return"".concat(t,"/v1/search?").concat((0,s.Z)((0,i.decamelizeKeys)(e)))}(e)},C=function(e){return(0,a.bf)("/resources/tafsirs",{language:e})},I=function(e,t,n){var o=(0,r.Z)({locale:n.lang,words:!0},(0,a.hD)(n.quranFont),(0,a.$P)(n.quranFont,n.mushafLines));return(0,a.bf)("/tafsirs/".concat(e,"/by_ayah/").concat(t),o)},P=function(e){return(0,a.bf)("/pages/lookup",e)},k=function(e,t){return(0,a.bf)("/chapters/".concat(e,"/info"),{language:t})},j=function(e,t){return(0,a.bf)("/chapters/".concat(e),{language:t})},R=function(e,t,n){return(0,a.bf)("/verses/by_juz/".concat(e),p(t,n))},N=function(e,t,n){return(0,a.bf)("/verses/by_rub_el_hizb/".concat(e),p(t,n))},D=function(e,t,n){return(0,a.bf)("/verses/by_hizb/".concat(e),p(t,n))},Z=function(e,t){return(0,a.bf)("/verses/by_key/".concat(e),t)},L=function(e,t,n){var r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return(0,a.bf)("/verses/by_page/".concat(e),p(t,n,r))},M=function(e){return(0,a.bf)("/foot_notes/".concat(e))}},1050:function(e,t,n){"use strict";n.d(t,{Hj:function(){return r},sj:function(){return o},sp:function(){return i}});var r=function(e,t){if((null===e||void 0===e?void 0:e.length)!==(null===t||void 0===t?void 0:t.length))return!1;var n=new Map;e.map((function(e){return n.set(e,!0)}));for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:"en";return s.includes(e)?new Promise((function(t){n(62182)("./".concat(e,".json")).then((function(e){t(e.default)}))})):new Promise((function(e){n.e(69029).then(n.t.bind(n,69029,19)).then((function(t){e(t.default)}))}))},u=function(e,t){return e[(0,i.XK)(t)]},l=function(e){return new Promise((function(t){n.e(80370).then(n.t.bind(n,80370,19)).then((function(n){t(n.default[e])}))}))},f=function(){var e=(0,r.Z)((function(e){return(0,o.__generator)(this,(function(t){return[2,new Promise((function(t){n.e(19535).then(n.t.bind(n,19535,19)).then((function(n){t(n.default[e])}))}))]}))}));return function(t){return e.apply(this,arguments)}}(),d=function(){return new Promise((function(e){n.e(92447).then(n.t.bind(n,92447,19)).then((function(t){e(t.default)}))}))},p=(function(){var e=(0,r.Z)((function(e){return(0,o.__generator)(this,(function(t){switch(t.label){case 0:return[4,d()];case 1:return[2,t.sent()[e]]}}))}))}(),function(e,t){return t?a.Z[0]===e:1===e}),h=function(e,t){return t?a.Z[a.Z.length-1]===e:114===e},m=function(e,t){return Math.ceil(100*e/t)},g=114},85149:function(e,t,n){"use strict";n.d(t,{Bz:function(){return g},ZC:function(){return b},DN:function(){return l},QH:function(){return m},Cl:function(){return h},Zu:function(){return v},OQ:function(){return w},SV:function(){return S},EP:function(){return p},fR:function(){return E},Rp:function(){return c},S4:function(){return _},I_:function(){return a},pE:function(){return u},by:function(){return s}});var r=n(57044),o=n(43609),i=n(95932),a=function(e,t){return!e||Number.isNaN(e)?"":new Date(1e3*e).toLocaleTimeString((0,o.ic)(t),(0,r.Z)({timeZone:"Etc/UTC",hour12:!1,minute:"2-digit",second:"2-digit"},e>=3600&&{hour:"2-digit"}))},s=function(e,t,n){var r=[],a=e,s=Math.floor(a/60),c=Math.floor(s/60);return c>0&&(r.push(t("reading-goal:x-hours",{count:c,hours:(0,o.rQ)((0,i.uZ)(c),n)})),s%=60,a%=60),s>0&&(r.push(t("reading-goal:x-minutes",{count:s,minutes:(0,o.rQ)((0,i.uZ)(s),n)})),a%=60),(a>0||0===r.length)&&r.push(t("reading-goal:x-seconds",{count:a,seconds:(0,o.rQ)((0,i.uZ)(a),n)})),r.join(", ")},c=function(e){return e/1e3},u=function(e){return 1e3*e},l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Date,r=o._U[t],i=new Intl.RelativeTimeFormat(r,{numeric:"auto"}),a=n.setHours(0,0,0,0),s=e.setHours(0,0,0,0),c=(s-a)/864e5;if(c<-365){var u=Math.round(c/365);return i.format(u,"year")}if(c<-7){var l=Math.round(c/7);return i.format(l,"weeks")}return i.format(c,"day")},f=null,d=null,p=function(){return d||(f||(f=new Intl.DateTimeFormat),d=f.resolvedOptions().timeZone)},h=function(){return(new Date).getMonth()+1},m=function(){return(new Date).getDate()},g=function(e){var t,n,r=(t=e,(null!=(n=Date)&&"undefined"!==typeof Symbol&&n[Symbol.hasInstance]?n[Symbol.hasInstance](t):t instanceof n)?function(e){return{year:e.getFullYear(),month:e.getMonth()+1,day:e.getDate()}}(e):e),o=r.year,i=r.month,a=r.day;return"".concat(o,"-").concat(_(i),"-").concat(_(a))},v=function(e,t){return e.toLocaleDateString(t,{weekday:"long",timeZone:"UTC"})},y=function(e,t){return e.toLocaleDateString(t,{month:"long",timeZone:"UTC"})},b=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i="string"===typeof e?new Date(e):e;return i.toLocaleDateString((0,o.ic)(t),(0,r.Z)({day:"numeric",month:"long",weekday:"long",timeZone:"UTC"},n))},_=function(e){return e.toString().padStart(2,"0")},E=function(e,t){return{from:"".concat(t,"-").concat(_(e),"-01"),to:"".concat(t,"-").concat(_(e),"-").concat(_(new Date(t,e,0).getDate()))}},w=function(e,t){return new Date(e,t,0)},S=function(e,t){for(var n=[],r=1;r<=12;r+=1){var o=w(e,r),i=o.getDate();n.push({id:r,name:y(o,t),daysCount:i})}return n}},12195:function(e,t,n){"use strict";n.d(t,{An:function(){return d},Dy:function(){return h},Io:function(){return v},Kz:function(){return u},MY:function(){return l},Q8:function(){return p},dz:function(){return f},qS:function(){return m},tL:function(){return g},u8:function(){return y}});var r=n(1997),o=n(57044),i=n(51726),a=n(42739),s=n(51232),c=function(e){return e?e.trim():""},u=function(){var e=(0,r.Z)((function(e,t){return(0,i.__generator)(this,(function(r){return s.isFirebaseEnabled&&Promise.resolve().then(n.bind(n,51232)).then((function(n){n.analytics().logEvent(e,t)})),[2]}))}));return function(t,n){return e.apply(this,arguments)}}(),l=function(e,t){u("".concat(e,"_clicked"),t)},f=function(e,t){u("".concat(e,"_form_submitted"),t)},d=function(e,t){u("".concat(e,"_slide_").concat(t,"_completed"))},p=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};u("".concat(e,"_change"),(0,o.Z)({current_value:t,new_value:n},r))},h=function(e){var t=e.query,n=e.source,r=e.type,i=void 0===r?a.Z.Text:r,s=e.service,l=c(t);""!==l&&u("".concat(i,"_search_query_with_no_result"),(0,o.Z)({query:l,source:n},s&&{service:s}))},m=function(e){var t=e.query,n=e.source,r=e.type,i=void 0===r?a.Z.Text:r,s=e.service,l=c(t);""!==l&&u("search_query_with_results",(0,o.Z)({type:i,query:l,source:n},s&&{service:s}))},g=function(e,t){var n=c(e);""!==n&&u("search_query",{query:n,source:t})},v=function(e){u("tarteel_link_click",{type:"".concat(e,"_attribution")})},y=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];u("".concat(e,"_").concat(n?"selected":"unselected"),{value:t})}},16176:function(e,t){"use strict";var n=!(!window.document||!window.document.createElement);t.Z=n},43609:function(e,t,n){"use strict";n.d(t,{A3:function(){return P},Dl:function(){return _},J_:function(){return b},K8:function(){return A},Sj:function(){return I},Tj:function(){return C},XP:function(){return m},_U:function(){return f},iS:function(){return h},ic:function(){return x},j2:function(){return g},qc:function(){return y},rQ:function(){return S},uP:function(){return p},zi:function(){return v}});var r,o=n(8734),i=n.n(o),a=n(50608),s=n(66634),c=["ar","fa","ur"],u={en:"English",ar:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629",bn:"\u09ac\u09be\u0982\u09b2\u09be",fa:"\u0641\u0627\u0631\u0633\u06cc",fr:"Fran\xe7ais",id:"Indonesia",it:"Italiano",nl:"Dutch",pt:"Portugu\xeas",ru:"\u0440\u0443\u0441\u0441\u043a\u0438\u0439",sq:"Shqip",th:"\u0e20\u0e32\u0e29\u0e32\u0e44\u0e17\u0e22",tr:"T\xfcrk\xe7e",ur:"\u0627\u0631\u062f\u0648",zh:"\u7b80\u4f53\u4e2d\u6587",ms:"Melayu",de:"Deutsch",inh:"\u0281\u0259l\u0281\u0251j mot",ta:"\u0ba4\u0bae\u0bbf\u0bb4\u0bcd",hi:"\u0939\u093f\u0928\u094d\u0926\u0940",ku:"Kurd\xee"},l={bengali:"bn",english:"en",arabic:"ar",russian:"ru",urdu:"ur",Kurdish:"ku"},f={en:"en-US",ar:"ar-EG",bn:"bn-BD",fa:"fa-IR",fr:"fr-FR",id:"id-ID",it:"it-IT",nl:"nl-NL",pt:"pt-BR",ru:"ru-RU",sq:"sq-AL",th:"th-TH",tr:"tr-TR",ur:"ur-PK",zh:"zh-CN",ms:"ms-MY"};!function(e){e.LTR="ltr",e.RTL="rtl"}(r||(r={}));var d={9:{dir:r.RTL,locale:"ar"},20:{locale:"bn"},34:{font:"divehi",locale:"dv",dir:r.RTL},38:{locale:"en"},43:{dir:r.RTL,locale:"fa"},49:{locale:"fr"},59:{dir:r.RTL,locale:"he"},67:{locale:"id"},74:{locale:"it"},89:{font:"kurdish",locale:"ku",dir:r.RTL},133:{locale:"pt"},118:{locale:"nl"},138:{locle:"ru"},151:{locale:"sq"},161:{locale:"th"},172:{dir:r.RTL,locale:"ug"},174:{font:"urdu",dir:r.RTL,locale:"ur"},185:{locale:"zh"}},p=function(e){return"ar"===e},h=function(e){return c.includes(e)},m=function(e){return h(e)?r.RTL:r.LTR},g=function(e){var t=d[e];return{font:null===t||void 0===t?void 0:t.font,direction:(null===t||void 0===t?void 0:t.dir)||r.LTR,code:(null===t||void 0===t?void 0:t.locale)||"en"}},v=function(e){return Number(i()(d,{locale:e}))},y=function(e){var t=a.locales,n=(0,s.bv)();return t.map((function(t){return{hrefLang:t,href:"".concat(n,"/").concat(t).concat("/"===e?"":e)}})).concat({hrefLang:"x-default",href:"".concat(n).concat(e)})},b=function(e){return u[e]},_=function(e){return u[l[e]]},E=new Map,w=null,S=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0,o=null!==r&&void 0!==r?r:"DEFAULT_OPTIONS";if(E.has(o)&&w===t)return T(E.get(o),e,n);w=t;var i=f[t],a=new Intl.NumberFormat(i,r);return E.set(o,a),T(a,e,n)},T=function(e,t,n){var r=e.format(t);return!n||t>=10?r:"".concat(e.format(0)).concat(r)},x=function(e){return f[e]},A=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=f[t];return new Intl.DateTimeFormat(r,n).format(e)},O=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:":";return e.split(n).map((function(e){return S(Number(e),t)})).join(n)},C=function(e,t){return O(e,t)},I=function(e,t){return O(e,t,"-")},P=function(e){return"".concat(f[e]).replace("-","_")}},84020:function(e,t,n){"use strict";n.d(t,{AO:function(){return z},AW:function(){return C},CZ:function(){return b},ES:function(){return N},Fk:function(){return q},GK:function(){return w},HT:function(){return x},I8:function(){return T},L$:function(){return V},M1:function(){return I},Mf:function(){return _},P6:function(){return g},So:function(){return S},Wq:function(){return E},Y9:function(){return Z},Z2:function(){return L},Zm:function(){return j},_V:function(){return K},aT:function(){return R},dC:function(){return D},gk:function(){return G},hb:function(){return X},kJ:function(){return F},lj:function(){return $},ly:function(){return Y},nT:function(){return O},oJ:function(){return W},p5:function(){return v},pO:function(){return M},pg:function(){return B},qm:function(){return A},qs:function(){return h},ty:function(){return H},uv:function(){return r},we:function(){return U},xl:function(){return y},zp:function(){return P}});var r,o=n(45361),i=n(69976),a=n(61002),s=n(46818),c=n(53131),u=n(66634),l=n(69640),f=n(89773),d=n(63747),p=n(94292),h=function(e){var t=(0,i.Z)((0,l.bV)(e),2),n=t[0],r=t[1];return"/".concat(n,"/").concat(r)},m=function(e){var t=(0,l.YN)(e),n=t.surah,r=t.from,o=t.to;return"/".concat(n,"/").concat(r,"-").concat(o)},g=function(e){var t=(0,i.Z)((0,l.bV)(e),2),n=t[0],r=t[1];return"/".concat(n,"?").concat(f.Z.STARTING_VERSE,"=").concat(r)},v=function(e,t){return"/".concat(e,"/").concat(t)},y=function(e,t){return"/".concat(e,"-").concat(t)},b=function(e){return"/juz/".concat(e)},_=function(e){return"/rub/".concat(e)},E=function(e){return"/hizb/".concat(e)},w=function(e){return"/page/".concat(e)},S=function(e,t,n){return"/".concat(e,"/").concat(t,"/tafsirs").concat(n?"?".concat((0,a.stringify)({tafsirId:n})):"")},T=function(e,t,n){return"/".concat(e,":").concat(t,"/tafsirs/").concat(n)},x=function(e){return"/".concat(e,"/reflections")},A=function(e){return"/".concat(e)};!function(e){e.EnglishOnly="englishOnly",e.EnglishAndArabic="englishAndArabic",e.DefaultSettings="defaultSettings"}(r||(r={}));var O=function(e,t){var n=(0,o.Z)({},f.Z.FLOW,d.Bc.QURANIC_CALENDER);return t!==r.DefaultSettings&&(n[f.Z.Translations]=85,t===r.EnglishOnly&&(n[f.Z.HIDE_ARABIC]="true")),"".concat(e,"?").concat((0,a.stringify)(n))},C=function(e,t){if(!t)return A(e-1);var n=s.Z.indexOf(e)-1,r=s.Z[n];return A(r)},I=function(e,t){if(!t)return A(e+1);var n=s.Z.indexOf(e)+1,r=s.Z[n];return A(r)},P=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=n?(0,c.Ck)(e,String(t)):String(t);return e===p.H.AYAH?g(r):e===p.H.JUZ?b(r):e===p.H.RUB_EL_HIZB?_(r):e===p.H.HIZB?E(r):e===p.H.PAGE?w(r):e===p.H.SEARCH_PAGE?k(r):e===p.H.RANGE?m(r):A(r)},k=function(e){return"/search".concat(e?"?".concat(f.Z.QUERY,"=").concat(e):"")},j=function(e){return"/surah/".concat(e,"/info")},R=function(e){return"/reciters/".concat(e)},N=function(e){return"/learning-plans/".concat(e)},D=function(e,t){return"/learning-plans/".concat(e,"/lessons/").concat(t)},Z=function(e,t){return"/reciters/".concat(e,"/").concat(t)},L=function(e,t){return"".concat((0,u.bv)()).concat("en"===e?"":"/".concat(e)).concat(t)},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"/product-updates".concat("".concat(e?"/".concat(e):""))},F=function(){return"/profile"},B=function(e){return"/collections/".concat(e)},U=function(){return"/reading-goal"},V=function(){return"/my-learning-plans"},H=function(){return"/learning-plans"},q=function(){return"/ramadan-activities"},G=function(e){return"/login".concat(e?"?".concat(f.Z.REDIRECT_TO,"=").concat(e):"")},W=function(){return"/reading-goal/progress"},z=function(){return"/notes-and-reflections"},$=function(){return"/notification-settings"},Y=function(){return"/calendar"},K=function(e,t){window.history.pushState({},"","".concat("en"===t?"":"/".concat(t)).concat(e))},X=function(){window.scrollTo(0,0)}},95932:function(e,t,n){"use strict";n.d(t,{XK:function(){return r},XN:function(){return a},uZ:function(){return i},xT:function(){return o}});var r=function(e){return String(Number(e))},o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=i(100*Number(e),t);return Math.min(n,100)},i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number(("string"===typeof e?Number(e):e).toFixed(t))},a=function(e,t){return Math.ceil((e+1)/t)}},32837:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(57044),o=n(69976);var i=function(e,t){return t},a={eq:"=",sep:"&",prefix:"",fn:i};var s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=encodeURIComponent(e);return t?"".concat(t,"[").concat(n,"]"):n},c=function(e,t,n){var r=n.eq,o=void 0===r?"=":r,a=n.fn,c=void 0===a?i:a,u=n.prefix,l=void 0===u?"":u,f=encodeURIComponent(c(e,t));return[s(e,l),f].join(o)};function u(e){var t="undefined"===typeof e?"undefined":function(e){return e&&e.constructor===Symbol?"symbol":typeof e}(e);return e&&("object"===t||"function"===t)||!1}var l=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a,i=(0,r.Z)({},a,n),l=i.eq,f=i.sep,d=i.fn,p=i.prefix;return null!=t&&u(t)?Object.entries(t).filter((function(e){return null!==(0,o.Z)(e,2)[1]})).map((function(t){var n=(0,o.Z)(t,2),r=n[0],i=n[1];return Array.isArray(i)?c(r,i.join(","),{eq:l,fn:d,prefix:p}):u(i)?e(i,{eq:l,sep:f,fn:d,prefix:s(r,p)}):c(r,i,{eq:l,fn:d,prefix:p})})).join(f):""}},98913:function(e,t,n){"use strict";n.d(t,{t:function(){return r}});var r=function(){return"undefined"!==typeof document&&document.documentElement.clientWidth<768}},46818:function(e,t){"use strict";t.Z=[96,68,73,74,1,111,81,87,92,89,93,94,103,100,108,102,107,109,105,113,114,112,53,80,97,91,85,95,106,101,75,104,77,50,90,86,54,38,7,72,36,25,35,19,20,56,26,27,28,17,10,11,12,15,6,37,31,34,39,40,41,42,43,44,45,46,51,88,18,16,71,14,21,23,32,52,67,69,70,78,79,82,84,30,29,83,2,8,3,33,60,4,99,57,47,13,55,76,65,98,59,24,22,63,58,49,66,64,61,62,48,5,9,110]},53131:function(e,t,n){"use strict";n.d(t,{YA:function(){return O},Gs:function(){return E},Em:function(){return x},NC:function(){return _},UC:function(){return A},Ck:function(){return w}});var r,o=n(1997),i=n(57044),a=n(16946),s=n(69976),c=n(51726),u=n(85378),l=n.n(u),f=n(12195),d=n(87739),p=n(88548);!function(e){e.Advanced="advanced",e.Quick="quick"}(r||(r={}));var h=n(61388),m=n(22582),g=n(43609),v=n(69640),y=n(94292),b={en:"english",ar:"arabic",bn:"bengali",fa:"persian",fr:"french",id:"indonesian",it:"italian",nl:"dutch",pt:"portuguese",ru:"russian",sq:"albanian",th:"thai",tr:"turkish",ur:"urdu",zh:"chinese",ms:"malay"},_=function(e){return l()(e,(function(e){return e.languageName.toLowerCase()}))},E=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=_(e),o=[];return r[b[t]]&&(o=r[b[t]].map((function(e){return e.id.toString()}))),n?o.join(","):o},w=function(e,t){return e===y.H.JUZ?T(t):e===y.H.PAGE?S(t):t},S=function(e){return e.substring(e.indexOf("p")+1)},T=function(e){return e.substring(e.indexOf("j")+1)},x=function(e,t,n,r){var o=t.key,i=t.resultType;if(i===y.H.JUZ){var a=T(o);return{name:"".concat(n("common:juz")," ").concat((0,g.rQ)(Number(a),r)),key:a,resultType:y.H.JUZ}}if(i===y.H.PAGE){var c=S(o);return{name:"".concat(n("common:page")," ").concat((0,g.rQ)(Number(c),r)),key:c,resultType:y.H.PAGE}}if(i===y.H.RANGE){var u=(0,v.YN)(o),l=u.surah,f=u.from,d=u.to;return{name:"".concat(n("common:surah")," ").concat((0,m.dy)(e,"".concat(l)).transliteratedName," ").concat(n("common:ayah")," ").concat((0,g.rQ)(f,r)," - ").concat((0,g.rQ)(d,r)),key:o,resultType:y.H.RANGE}}if(i===y.H.AYAH){var p=(0,s.Z)((0,v.bV)(o),2),h=p[0],b=p[1];return{name:"".concat(n("common:surah")," ").concat((0,m.dy)(e,"".concat(h)).transliteratedName,", ").concat(n("common:ayah")," ").concat((0,g.rQ)(Number(b),r)),key:o,resultType:y.H.AYAH}}return{name:"".concat(n("common:surah")," ").concat((0,m.dy)(e,o).transliteratedName),key:o,resultType:y.H.SURAH}},A=function(e,t,n,s,u,l,p,m,g){u(!0),(0,f.tL)(t,e),(0,d.BP)((0,i.Z)((0,a.Z)((0,i.Z)({query:t},m&&{filterLanguages:m}),{size:s,page:n}),g&&{filterTranslations:g})).then(function(){var u=(0,o.Z)((function(o){var u;return(0,c.__generator)(this,(function(c){switch(c.label){case 0:return 500!==o.status?[3,1]:(l(!0),[3,3]);case 1:return p((0,a.Z)((0,i.Z)({},o),{service:h.Z.QDC})),0===o.pagination.totalRecords&&!o.result.navigation.length?((0,f.Dy)({query:t,source:e,service:h.Z.QDC}),[4,(0,d.H4)((0,i.Z)({mode:r.Advanced,query:t,size:s,filterLanguages:m,page:n,exactMatchesOnly:0},g&&{filterTranslations:g,translationFields:"resource_name"}))]):[3,3];case 2:u=c.sent(),p((0,a.Z)((0,i.Z)({},u),{service:h.Z.KALIMAT})),0===u.pagination.totalRecords?(0,f.Dy)({query:t,source:e,service:h.Z.KALIMAT}):(0,f.qS)({query:t,source:e,service:h.Z.KALIMAT}),c.label=3;case 3:return[2]}}))}));return function(e){return u.apply(this,arguments)}}()).catch((function(){l(!0)})).finally((function(){u(!1)}))},O=function(e,t,n){e({type:p.zr.type,payload:t}),(0,f.tL)(t,n)}},49706:function(e,t,n){"use strict";n.d(t,{WQ:function(){return d},ig:function(){return p}});var r=n(43609),o=n(32275),i=n(25620),a="Quran.com",s="@app_quran",c="summary_large_image",u="342185219529773",l="603289706669016",f="production"===i.env.NEXT_PUBLIC_VERCEL_ENV;function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,n=e.description,i=e.canonicalUrl,d=e.locale,p=t||"";return{title:p,description:n,titleTemplate:"%s - Quran.com",defaultTitle:a,dangerouslySetAllPagesToNoFollow:!f,dangerouslySetAllPagesToNoIndex:!f,canonical:i,openGraph:{type:"website",locale:(0,r.A3)(d),url:i,title:p,description:n,images:[{url:(0,o.qW)({locale:d}),width:1200,height:630,alt:a}],site_name:a},facebook:{appId:u},twitter:{handle:s,site:s,cardType:c},additionalMetaTags:[{property:"fb:pages",content:l},{name:"Charset",content:"UTF-8"},{name:"Distribution",content:"Global"},{name:"Rating",content:"General"},{name:"theme-color",content:"#fff"},{name:"viewport",content:"width=device-width, initial-scale=1, shrink-to-fit=no"}]}}var p=function(e){return e.verses.slice(0,4).map((function(e){return e.textImlaeiSimple})).join(" - ")}},66634:function(e,t,n){"use strict";n.d(t,{Jz:function(){return o},R:function(){return a},Yj:function(){return i},bv:function(){return s},vv:function(){return c}});var r=n(25620),o=function(){return window.location.href},i=function(e){return"".concat(window.location.origin).concat(function(e){return"en"!==e?"/".concat(e):""}(e))},a=function(e){window.open(e,"_blank")||window.location.replace(e)},s=function(){return"".concat("development"===r.env.NEXT_PUBLIC_VERCEL_ENV?"http":"https","://").concat(r.env.NEXT_PUBLIC_VERCEL_URL)},c=function(e){return"".concat(r.env.NEXT_PUBLIC_AUTH_BASE_URL,"/").concat(e)}},69640:function(e,t,n){"use strict";n.d(t,{Bo:function(){return S},G$:function(){return E},KJ:function(){return T},LQ:function(){return w},TO:function(){return v},Tc:function(){return p},UF:function(){return A},YN:function(){return m},Yx:function(){return C},ZZ:function(){return y},bV:function(){return g},cI:function(){return O},kC:function(){return x},qB:function(){return d},tR:function(){return h},u:function(){return _}});var r=n(57044),o=n(16946),i=n(69976),a=n(57065),s=n.n(a),c=n(22582),u=n(95932),l=n(78056),f=":",d=function(e,t){var n=(0,u.XK)(t);return s()(e[n].versesCount).map((function(e){return"".concat(n,":").concat(e+1)}))},p=function(e){return Number(e.split(f)[0])},h=function(e){return Number(e.split(f)[1])},m=function(e){var t=e.split(f),n=t[0],r=t[1],o=(0,i.Z)(r.split("-"),2),a=o[0],s=o[1];return{surah:Number(n),from:Number(a),to:Number(s||a)}},g=function(e){var t=e.split(f);return[t[0],t[1]]},v=function(e){var t=e.split(f);return[t[0],t[1],t[2]]},y=function(e){var t=v(e);return{chapterId:t[0],isFirstWordOfSurah:"1"===t[1]&&"1"===t[2]}},b=function(e,t){var n=(0,i.Z)(g(e),2),r=n[0],o=n[1],a=(0,i.Z)(g(t),2),s=a[0],c=a[1],u=Number(r),l=Number(s),f=Number(o),d=Number(c);return u>l?1:ud?1:-1},_=function(e,t,n){return n&&t!==n?"".concat(e,":").concat(t,"-").concat(n):"".concat(e,":").concat(t)},E=function(e,t){return"".concat(e,":").concat(t)},w=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];return e.words.forEach((function(i){var a=(0,r.Z)({},e);n.push((0,r.Z)((0,o.Z)((0,r.Z)({},i),{hizbNumber:e.hizbNumber}),t&&{verse:a}))})),n},S=function(e,t,n){var r,o=(0,i.Z)(g(t),2),a=o[0],s=o[1],u=(0,i.Z)(g(n),2),l=u[0],f=u[1],d=Number(a),p=Number(l),h=Number(s),m=Number(f);if(d===p)return h>m?h-m:m-h;d>p&&(h=(r=[m,h,p,d,l])[0],m=r[1],d=r[2],p=r[3],a=r[4]);var v=0;return p-d>1&&(v+=function(e,t,n){for(var r=0,o=t;od.chapter)&&(!(r===f.chapter&&od.verse)))return!0}return!1}},78056:function(e,t,n){"use strict";n.d(t,{h:function(){return s},p:function(){return c}});var r=n(69976),o=n(57065),i=n.n(o),a=n(22582),s=function(e,t,n){var o=[],s=(0,r.Z)(t.split(":"),2),c=s[0],u=s[1],l=(0,r.Z)(n.split(":"),2),f=l[0],d=l[1];return c===f?i()(Number(u),Number(d)+1).forEach((function(e){o.push("".concat(c,":").concat(e))})):i()(Number(c),Number(f)+1).forEach((function(t){if(t===Number(c)){var n=(0,a.dy)(e,c);i()(Number(u),n.versesCount+1).forEach((function(e){o.push("".concat(c,":").concat(e))}))}else if(t===Number(f))i()(1,Number(d)+1).forEach((function(e){o.push("".concat(f,":").concat(e))}));else{var r=(0,a.dy)(e,String(t));i()(1,r.versesCount+1).forEach((function(e){o.push("".concat(t,":").concat(e))}))}})),o},c=function(e,t){var n=e.match(/(\d+):(\d+)-(\d+):(\d+)/);if(!n)return null;var o=(0,r.Z)(n,5),i=o[1],a=o[2],s=o[3],c=o[4];if(!i||!a||!s||!c)return null;var u=function(e){return t?Number(e):e};return[{chapter:u(i),verse:u(a),verseKey:"".concat(i,":").concat(a)},{chapter:u(s),verse:u(c),verseKey:"".concat(s,":").concat(c)}]}},82427:function(e,t,n){"use strict";n.d(t,{c:function(){return X},P:function(){return Q}});var r=n(57044),o=n(57611),i=n(67597),a=n(48521),s=n(73977),c=n(6898),u=n(34521),l=n(8199),f=function(){return f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=i.next()).done;)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a};function h(e,t){var n=(0,l.Z)((function(){return"function"===typeof e?e():e})),r=t.context,o=t.guards,i=t.actions,c=t.activities,u=t.services,p=t.delays,h=(t.state,d(t,["context","guards","actions","activities","services","delays","state"])),m=(0,l.Z)((function(){var e={context:r,guards:o,actions:i,activities:c,services:u,delays:p},t=n.withConfig(e,(function(){return f(f({},n.context),r)}));return(0,s.kJ)(t,h)}));return(0,a.Z)((function(){Object.assign(m.machine.options.actions,i),Object.assign(m.machine.options.guards,o),Object.assign(m.machine.options.activities,c),Object.assign(m.machine.options.services,u),Object.assign(m.machine.options.delays,p)}),[i,o,c,u,p]),m}var m=n(61395),g=n(69976),v=n(67711),y=n.n(v),b=n(88864),_=n(14494),E=n(79139),w=n(32819),S=n(42094),T=n(89159),x=n(93283);function A(e){if("string"===typeof e){var t={type:e,toString:function(){return e}};return t}return e}function O(e){return(0,b.pi)((0,b.pi)({type:_.dw},e),{toJSON:function(){e.onDone,e.onError;var t=(0,b._T)(e,["onDone","onError"]);return(0,b.pi)((0,b.pi)({},t),{type:_.dw,src:A(e.src)})}})}var C="",I="*",P={},k=function(e){return"#"===e[0]},j=function(){function e(t,n,r,o){void 0===r&&(r="context"in t?t.context:void 0);var i,a=this;this.config=t,this._context=r,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},n),this.parent=null===o||void 0===o?void 0:o.parent,this.key=this.config.key||(null===o||void 0===o?void 0:o.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:S.iS),this.id=this.config.id||(0,b.ev)([this.machine.key],(0,b.CR)(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(i=this.config.schema)&&void 0!==i?i:{},this.description=this.config.description,w.M||(0,c.ZK)(!("parallel"in this.config),'The "parallel" property is deprecated and will be removed in version 4.1. '.concat(this.config.parallel?"Replace with `type: 'parallel'`":"Use `type: '".concat(this.type,"'`")," in the config for state node '").concat(this.id,"' instead.")),this.initial=this.config.initial,this.states=this.config.states?(0,c.Q8)(this.config.states,(function(t,n){var r,o=new e(t,{},void 0,{parent:a,key:n});return Object.assign(a.idMap,(0,b.pi)(((r={})[o.id]=o,r),o.idMap)),o})):P;var s=0;!function e(t){var n,r;t.order=s++;try{for(var o=(0,b.XA)((0,T.nI)(t)),i=o.next();!i.done;i=o.next()){e(i.value)}}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some((function(e){return e.event===C})):C in this.config.on),this.strict=!!this.config.strict,this.onEntry=(0,c.qo)(this.config.entry||this.config.onEntry).map((function(e){return(0,E.Q8)(e)})),this.onExit=(0,c.qo)(this.config.exit||this.config.onExit).map((function(e){return(0,E.Q8)(e)})),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=(0,c.qo)(this.config.invoke).map((function(e,t){var n,r;if((0,c.O4)(e)){var o=(0,c.bx)(a.id,t);return a.machine.options.services=(0,b.pi)(((n={})[o]=e,n),a.machine.options.services),O({src:o,id:o})}if((0,c.HD)(e.src)){o=e.id||(0,c.bx)(a.id,t);return O((0,b.pi)((0,b.pi)({},e),{id:o,src:e.src}))}if((0,c.O4)(e.src)||(0,c.mf)(e.src)){o=e.id||(0,c.bx)(a.id,t);return a.machine.options.services=(0,b.pi)(((r={})[o]=e.src,r),a.machine.options.services),O((0,b.pi)((0,b.pi)({id:o},e),{src:o}))}var i=e.src;return O((0,b.pi)((0,b.pi)({id:(0,c.bx)(a.id,t)},e),{src:i}))})),this.activities=(0,c.qo)(this.config.activities).concat(this.invoke).map((function(e){return(0,E.XA)(e)})),this.transition=this.transition.bind(this),this.tags=(0,c.qo)(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||(0,T.ac)(this).forEach((function(e){return e.on}))},e.prototype.withConfig=function(t,n){var r=this.options,o=r.actions,i=r.activities,a=r.guards,s=r.services,c=r.delays;return new e(this.config,{actions:(0,b.pi)((0,b.pi)({},o),t.actions),activities:(0,b.pi)((0,b.pi)({},i),t.activities),guards:(0,b.pi)((0,b.pi)({},a),t.guards),services:(0,b.pi)((0,b.pi)({},s),t.services),delays:(0,b.pi)((0,b.pi)({},c),t.delays)},null!==n&&void 0!==n?n:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return(0,c.mf)(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:(0,c.Q8)(this.states,(function(e){return e.definition})),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce((function(e,t){return e[t.eventType]=e[t.eventType]||[],e[t.eventType].push(t),e}),{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var t=e===C,n=this.transitions.filter((function(n){var r=n.eventType===e;return t?r:r||n.eventType===I}));return this.__cache.candidates[e]=n,n},e.prototype.getDelayedTransitions=function(){var e=this,t=this.config.after;if(!t)return[];var n=function(t,n){var r=(0,c.mf)(t)?"".concat(e.id,":delay[").concat(n,"]"):t,o=(0,E.e4)(r,e.id);return e.onEntry.push((0,E.lW)(o,{delay:t})),e.onExit.push((0,E.al)(o)),o};return((0,c.kJ)(t)?t.map((function(e,t){var r=n(e.delay,t);return(0,b.pi)((0,b.pi)({},e),{event:r})})):(0,c.xH)(Object.keys(t).map((function(e,r){var o=t[e],i=(0,c.HD)(o)?{target:o}:o,a=isNaN(+e)?e:+e,s=n(a,r);return(0,c.qo)(i).map((function(e){return(0,b.pi)((0,b.pi)({},e),{event:s,delay:a})}))})))).map((function(t){var n=t.delay;return(0,b.pi)((0,b.pi)({},e.formatTransition(t)),{delay:n})}))},e.prototype.getStateNodes=function(e){var t,n=this;if(!e)return[];var r=e instanceof u.ZM?e.value:(0,c.WM)(e,this.delimiter);if((0,c.HD)(r)){var o=this.getStateNode(r).initial;return void 0!==o?this.getStateNodes(((t={})[r]=o,t)):[this,this.states[r]]}var i=Object.keys(r),a=[this];return a.push.apply(a,(0,b.ev)([],(0,b.CR)((0,c.xH)(i.map((function(e){return n.getStateNode(e).getStateNodes(r[e])})))),!1)),a},e.prototype.handles=function(e){var t=(0,c.x6)(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof u.ZM?e:u.ZM.create(e),n=Array.from((0,T.P_)([],this.getStateNodes(t.value)));return new u.ZM((0,b.pi)((0,b.pi)({},t),{value:this.resolve(t.value),configuration:n,done:(0,T.Ij)(n,this),tags:(0,T.Oe)(n),machine:this.machine}))},e.prototype.transitionLeafNode=function(e,t,n){var r=this.getStateNode(e).next(t,n);return r&&r.transitions.length?r:this.next(t,n)},e.prototype.transitionCompoundNode=function(e,t,n){var r=Object.keys(e),o=this.getStateNode(r[0])._transition(e[r[0]],t,n);return o&&o.transitions.length?o:this.next(t,n)},e.prototype.transitionParallelNode=function(e,t,n){var r,o,i={};try{for(var a=(0,b.XA)(Object.keys(e)),s=a.next();!s.done;s=a.next()){var u=s.value,l=e[u];if(l){var f=this.getStateNode(u)._transition(l,t,n);f&&(i[u]=f)}}}catch(m){r={error:m}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}var d=Object.keys(i).map((function(e){return i[e]})),p=(0,c.xH)(d.map((function(e){return e.transitions})));if(!d.some((function(e){return e.transitions.length>0})))return this.next(t,n);var h=(0,c.xH)(Object.keys(i).map((function(e){return i[e].configuration})));return{transitions:p,exitSet:(0,c.xH)(d.map((function(e){return e.exitSet}))),configuration:h,source:t,actions:(0,c.xH)(Object.keys(i).map((function(e){return i[e].actions})))}},e.prototype._transition=function(e,t,n){return(0,c.HD)(e)?this.transitionLeafNode(e,t,n):1===Object.keys(e).length?this.transitionCompoundNode(e,t,n):this.transitionParallelNode(e,t,n)},e.prototype.getTransitionData=function(e,t){return this._transition(e.value,e,(0,c.g5)(t))},e.prototype.next=function(e,t){var n,r,o,i=this,a=t.name,s=[],u=[];try{for(var l=(0,b.XA)(this.getCandidates(a)),f=l.next();!f.done;f=l.next()){var d=f.value,p=d.cond,h=d.in,m=e.context,g=!h||((0,c.HD)(h)&&k(h)?e.matches((0,c.WM)(this.getStateNodeById(h).path,this.delimiter)):(0,c.W)((0,c.WM)(h,this.delimiter),(0,c.ET)(this.path.slice(0,-2))(e.value))),v=!1;try{v=!p||(0,c.vx)(this.machine,p,m,t,e)}catch(_){throw new Error("Unable to evaluate guard '".concat(p.name||p.type,"' in transition for event '").concat(a,"' in state node '").concat(this.id,"':\n").concat(_.message))}if(v&&g){void 0!==d.target&&(u=d.target),s.push.apply(s,(0,b.ev)([],(0,b.CR)(d.actions),!1)),o=d;break}}}catch(E){n={error:E}}finally{try{f&&!f.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(o){if(!u.length)return{transitions:[o],exitSet:[],configuration:e.value?[this]:[],source:e,actions:s};var y=(0,c.xH)(u.map((function(t){return i.getRelativeStateNodes(t,e.historyValue)})));return{transitions:[o],exitSet:!!o.internal?[]:(0,c.xH)(u.map((function(e){return i.getPotentiallyReenteringNodes(e)}))),configuration:y,source:e,actions:s}}},e.prototype.getPotentiallyReenteringNodes=function(e){if(this.order0,h=p?e.configuration:t?t.configuration:[],m=(0,T.Ij)(h,this),g=p?(0,T.NA)(this.machine,d):void 0,v=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,y=this.getActions(new Set(h),m,e,n,o,t,r),w=t?(0,b.pi)({},t.activities):{};try{for(var S=(0,b.XA)(y),A=S.next();!A.done;A=S.next()){var O=A.value;try{for(var I=(s=void 0,(0,b.XA)(O.actions)),P=I.next();!P.done;P=I.next()){var k=P.value;k.type===_.BL?w[k.activity.id||k.activity.type]=k:k.type===_.sT&&(w[k.activity.id||k.activity.type]=!1)}}catch(z){s={error:z}}finally{try{P&&!P.done&&(l=I.return)&&l.call(I)}finally{if(s)throw s.error}}}}catch($){i={error:$}}finally{try{A&&!A.done&&(a=S.return)&&a.call(S)}finally{if(i)throw i.error}}var j=(0,b.CR)((0,E.yC)(this,t,n,o,y,r,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),R=j[0],N=j[1],D=(0,b.CR)((0,c.uK)(R,c.vK),2),Z=D[0],L=D[1],M=R.filter((function(e){var t;return e.type===_.BL&&(null===(t=e.activity)||void 0===t?void 0:t.type)===_.dw})),F=M.reduce((function(e,t){return e[t.activity.id]=(0,x.mu)(t.activity,f.machine,N,o),e}),t?(0,b.pi)({},t.children):{}),B=new u.ZM({value:g||t.value,context:N,_event:o,_sessionid:t?t._sessionid:null,historyValue:g?v?(0,c.yv)(v,g):void 0:t?t.historyValue:void 0,history:!g||e.source?t:void 0,actions:g?L:[],activities:g?w:t?t.activities:{},events:[],configuration:h,transitions:e.transitions,children:F,done:m,tags:(0,T.Oe)(h),machine:this}),U=n!==N;B.changed=o.name===_.Vx||U;var V=B.history;V&&delete V.history;var H=!m&&(this._transient||d.some((function(e){return e._transient})));if(!p&&(!H||o.name===C))return B;var q=B;if(!m)for(H&&(q=this.resolveRaisedTransition(q,{type:_.IA},o,r));Z.length;){var G=Z.shift();q=this.resolveRaisedTransition(q,G._event,o,r)}var W=q.changed||(V?!!q.actions.length||U||typeof V.value!==typeof q.value||!(0,u.j_)(q.value,V.value):void 0);return q.changed=W,q.history=V,q},e.prototype.getStateNode=function(e){if(k(e))return this.machine.getStateNodeById(e);if(!this.states)throw new Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var t=this.states[e];if(!t)throw new Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return t},e.prototype.getStateNodeById=function(e){var t=k(e)?e.slice("#".length):e;if(t===this.id)return this;var n=this.machine.idMap[t];if(!n)throw new Error("Child state node '#".concat(t,"' does not exist on machine '").concat(this.id,"'"));return n},e.prototype.getStateNodeByPath=function(e){if("string"===typeof e&&k(e))try{return this.getStateNodeById(e.slice(1))}catch(o){}for(var t=(0,c.Q9)(e,this.delimiter).slice(),n=this;t.length;){var r=t.shift();if(!r.length)break;n=n.getStateNode(r)}return n},e.prototype.resolve=function(e){var t,n=this;if(!e)return this.initialStateValue||P;switch(this.type){case"parallel":return(0,c.Q8)(this.initialStateValue,(function(t,r){return t?n.getStateNode(r).resolve(e[r]||t):P}));case"compound":if((0,c.HD)(e)){var r=this.getStateNode(e);return"parallel"===r.type||"compound"===r.type?((t={})[e]=r.initialStateValue,t):e}return Object.keys(e).length?(0,c.Q8)(e,(function(e,t){return e?n.getStateNode(t).resolve(e):P})):this.initialStateValue||{};default:return e||P}},e.prototype.getResolvedPath=function(e){if(k(e)){var t=this.machine.idMap[e.slice("#".length)];if(!t)throw new Error("Unable to find state node '".concat(e,"'"));return t.path}return(0,c.Q9)(e,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var e,t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)t=(0,c.ib)(this.states,(function(e){return e.initialStateValue||P}),(function(e){return!("history"===e.type)}));else if(void 0!==this.initial){if(!this.states[this.initial])throw new Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));t=(0,T.N9)(this.states[this.initial])?this.initial:((e={})[this.initial]=this.states[this.initial].initialStateValue,e)}else t={};return this.__cache.initialStateValue=t,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(e,t){this._init();var n=this.getStateNodes(e);return this.resolveTransition({configuration:n,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!==t&&void 0!==t?t:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw new Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var e;if("history"===this.type){var t=this.config;e=(0,c.HD)(t.target)&&k(t.target)?(0,c.on)(this.machine.getStateNodeById(t.target).path.slice(this.path.length-1)):t.target}return e},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(e,t,n){return void 0===n&&(n=!0),n?"history"===e.type?e.resolveHistory(t):e.initialStateNodes:[e]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var e=this;if((0,T.N9)(this))return[this];if("compound"===this.type&&!this.initial)return w.M||(0,c.ZK)(!1,"Compound state node '".concat(this.id,"' has no initial state.")),[this];var t=(0,c.SA)(this.initialStateValue);return(0,c.xH)(t.map((function(t){return e.getFromRelativePath(t)})))},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var t=(0,b.CR)(e),n=t[0],r=t.slice(1);if(!this.states)throw new Error("Cannot retrieve subPath '".concat(n,"' from node with no states"));var o=this.getStateNode(n);if("history"===o.type)return o.resolveHistory();if(!this.states[n])throw new Error("Child state '".concat(n,"' does not exist on '").concat(this.id,"'"));return this.states[n].getFromRelativePath(r)},e.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:(0,c.ib)(this.states,(function(t,n){if(!e)return t.historyValue();var r=(0,c.HD)(e)?void 0:e[n];return t.historyValue(r||t.initialStateValue)}),(function(e){return!e.history}))}},e.prototype.resolveHistory=function(e){var t=this;if("history"!==this.type)return[this];var n=this.parent;if(!e){var r=this.target;return r?(0,c.xH)((0,c.SA)(r).map((function(e){return n.getFromRelativePath(e)}))):n.initialStateNodes}var o=(0,c.gk)(n.path,"states")(e).current;return(0,c.HD)(o)?[n.getStateNode(o)]:(0,c.xH)((0,c.SA)(o).map((function(e){return"deep"===t.history?n.getFromRelativePath(e):[n.states[e[0]]]})))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var e=this,t=(0,c.xH)(Object.keys(this.states).map((function(t){return e.states[t].stateIds})));return[this.id].concat(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){var e,t,n,r;if(this.__cache.events)return this.__cache.events;var o=this.states,i=new Set(this.ownEvents);if(o)try{for(var a=(0,b.XA)(Object.keys(o)),s=a.next();!s.done;s=a.next()){var c=o[s.value];if(c.states)try{for(var u=(n=void 0,(0,b.XA)(c.events)),l=u.next();!l.done;l=u.next()){var f=l.value;i.add("".concat(f))}}catch(d){n={error:d}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}}}catch(p){e={error:p}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){var e=new Set(this.transitions.filter((function(e){return!(!e.target&&!e.actions.length&&e.internal)})).map((function(e){return e.eventType})));return Array.from(e)},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(e){var t=this;if(void 0!==e)return e.map((function(e){if(!(0,c.HD)(e))return e;var n=e[0]===t.delimiter;if(n&&!t.parent)return t.getStateNodeByPath(e.slice(1));var r=n?t.key+e:e;if(!t.parent)return t.getStateNodeByPath(r);try{return t.parent.getStateNodeByPath(r)}catch(o){throw new Error("Invalid transition definition for state node '".concat(t.id,"':\n").concat(o.message))}}))},e.prototype.formatTransition=function(e){var t=this,n=(0,c.rg)(e.target),r="internal"in e?e.internal:!n||n.some((function(e){return(0,c.HD)(e)&&e[0]===t.delimiter})),o=this.machine.options.guards,i=this.resolveTarget(n),a=(0,b.pi)((0,b.pi)({},e),{actions:(0,E.AE)((0,c.qo)(e.actions)),cond:(0,c.Qi)(e.cond,o),target:i,source:this,internal:r,eventType:e.event,toJSON:function(){return(0,b.pi)((0,b.pi)({},a),{target:a.target?a.target.map((function(e){return"#".concat(e.id)})):void 0,source:"#".concat(t.id)})}});return a},e.prototype.formatTransitions=function(){var e,t,n,r=this;if(this.config.on)if(Array.isArray(this.config.on))n=this.config.on;else{var o=this.config.on,i=I,a=o[i],s=void 0===a?[]:a,u=(0,b._T)(o,["*"]);n=(0,c.xH)(Object.keys(u).map((function(e){w.M||e!==C||(0,c.ZK)(!1,"Empty string transition configs (e.g., `{ on: { '': ... }}`) for transient transitions are deprecated. Specify the transition in the `{ always: ... }` property instead. "+'Please check the `on` configuration for "#'.concat(r.id,'".'));var t=(0,c.jh)(e,u[e]);return w.M||function(e,t,n){var r=n.slice(0,-1).some((function(e){return!("cond"in e)&&!("in"in e)&&((0,c.HD)(e.target)||(0,c.O4)(e.target))})),o=t===C?"the transient event":"event '".concat(t,"'");(0,c.ZK)(!r,"One or more transitions for ".concat(o," on state '").concat(e.id,"' are unreachable. ")+"Make sure that the default transition is the last one defined.")}(r,e,t),t})).concat((0,c.jh)(I,s)))}else n=[];var l=this.config.always?(0,c.jh)("",this.config.always):[],f=this.config.onDone?(0,c.jh)(String((0,E.aT)(this.id)),this.config.onDone):[];w.M||(0,c.ZK)(!(this.config.onDone&&!this.parent),'Root nodes cannot have an ".onDone" transition. Please check the config of "'.concat(this.id,'".'));var d=(0,c.xH)(this.invoke.map((function(e){var t=[];return e.onDone&&t.push.apply(t,(0,b.ev)([],(0,b.CR)((0,c.jh)(String((0,E.Sl)(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,(0,b.ev)([],(0,b.CR)((0,c.jh)(String((0,E.vU)(e.id)),e.onError)),!1)),t}))),p=this.after,h=(0,c.xH)((0,b.ev)((0,b.ev)((0,b.ev)((0,b.ev)([],(0,b.CR)(f),!1),(0,b.CR)(d),!1),(0,b.CR)(n),!1),(0,b.CR)(l),!1).map((function(e){return(0,c.qo)(e).map((function(e){return r.formatTransition(e)}))})));try{for(var m=(0,b.XA)(p),g=m.next();!g.done;g=m.next()){var v=g.value;h.push(v)}}catch(y){e={error:y}}finally{try{g&&!g.done&&(t=m.return)&&t.call(m)}finally{if(e)throw e.error}}return h},e}(),R=!1;function N(e,t){return w.M||"predictableActionArguments"in e||R||(R=!0,console.warn("It is highly recommended to set `predictableActionArguments` to `true` when using `createMachine`. https://xstate.js.org/docs/guides/actions.html")),new j(e,t)}var D=E.f0,Z=(E.al,E.lW),L=(E.kM,E.lj,E.xc,E.Tn,E.Sl,E.OU,E.cM,E.Le,E.RN,E.sT,n(13173)),M=n(54678),F=n.n(M),B=n(89893),U=n(81403),V=function(){return N({tsTypes:{},schema:{context:{},events:{}},id:"radioMachine",initial:"on",context:{type:U.T.Curated},states:{on:{on:{PLAY_STATION:{actions:["setStation","generateRadioAudioTrack"]},TRACK_ENDED:{actions:"generateNextAudioTrack"}}}}},{actions:{setStation:D({type:function(e,t){return t.stationType},id:function(e,t){return t.id}}),generateNextAudioTrack:(0,L.lj)((function(e){var t,n=e.type,r=e.id;if(n===U.T.Curated){var o=B.Z[r];t=F()(o.audioTracks)}else t={reciterId:r,surah:y()(1,114).toString()};return{type:"PLAY_RADIO_TRACK",shouldPlayFromRandomTimeStamp:!1,reciterId:Number(t.reciterId),surah:Number(t.surah)}})),generateRadioAudioTrack:(0,L.lj)((function(e,t){var n,r=t.stationType,o=t.id;if(r===U.T.Curated){var i=B.Z[o];n=F()(i.audioTracks)}else n={reciterId:o,surah:y()(1,114).toString()};return{type:"PLAY_RADIO_TRACK",shouldPlayFromRandomTimeStamp:!0,reciterId:Number(n.reciterId),surah:Number(n.surah)}}))}})},H=function(e){return N({context:{timestampFrom:e.timestampFrom,timestampTo:e.timestampTo,totalVerseCycle:e.totalVerseCycle,currentVerseCycle:1},tsTypes:{},id:"verseCycleActor",initial:"inProgress",states:{inProgress:{on:{UPDATE_VERSE_TIMING:{actions:"updateVerseTiming"},TIMESTAMP_UPDATED:{cond:"verseEnded",target:"verseEnded"}}},verseEnded:{always:[{actions:"repeatSameAyah",description:"Inc context.currentVerseCycleNumber and sendParent(REPEAT_SAME_AYAH)",cond:"verseRepeatOnProgress",target:"inProgress"},{description:"When repeat cycle is done, transition to finished state",target:"finished"}]},finished:{entry:"sendVerseRepeatFinished",description:"Send VERSE_REPEAT_FINISHED event",type:"final"}}},{guards:{verseEnded:function(e,t){return t.timestamp>=e.timestampTo-200},verseRepeatOnProgress:function(e){return e.currentVerseCyclei}},actions:{repeatSelectedAyah:(0,L.Le)((function(e,t){return(0,L.lW)({type:"REPEAT_SELECTED_AYAH",ayahNumber:t.ayahNumber},{to:e.rangeCycleActor.id})})),repeatNextAyah:(0,L.Le)((function(){return(0,L.lW)({type:"REPEAT_NEXT_AYAH"},{to:function(e){return e.rangeCycleActor}})})),repeatPreviousAyah:(0,L.Le)((function(){return(0,L.lW)({type:"REPEAT_PREV_AYAH"},{to:function(e){return e.rangeCycleActor}})})),sendRepeatFinished:(0,L.lj)({type:"REPEAT_FINISHED"}),repeatAyah:(0,L.Le)((function(e,t){var n=t.verseDuration*e.delayMultiplier;return(0,L.lj)({type:"REPEAT_AYAH",ayahNumber:t.verseNumber,verseDelay:n})})),forwardToRangeCycleActor:(0,L.Tn)((function(e){return e.rangeCycleActor})),updateVerseTimings:(0,L.Le)((function(e,t){return[D({verseTimings:t.verseTimings}),(0,L.lW)({type:"UPDATE_VERSE_TIMINGS",verseTimings:t.verseTimings},{to:e.rangeCycleActor.id})]})),spawnRangeCycleActor:D({rangeCycleActor:function(e){return(0,s.Cs)(function(e){var t=e.totalRangeCycle,n=e.totalVerseCycle,r=e.verseTimings,o=e.fromVerseNumber,i=e.toVerseNumber;return N({context:{verseCycleActor:null,totalVerseCycle:n,totalRangeCycle:t,currentRangeCycle:1,fromVerseNumber:o,toVerseNumber:i,currentVerseNumber:o,verseTimings:r},tsTypes:{},id:"rangeCycleActor",initial:"inProgress",states:{inProgress:{entry:"spawnVerseCycleActor",on:{UPDATE_VERSE_TIMINGS:{actions:"updateVerseTimings"},TIMESTAMP_UPDATED:{actions:"forwardtimestampToVerseActor",description:"Receive TIMESTAMP_UPDATED event from parent. Forward to verseCycleActor"},REPEAT_SAME_AYAH:{actions:"repeatSameAyah",description:"Event from verseCycleActor. forward sendParent(REPEAT_SAME_AYAH)"},REPEAT_NEXT_AYAH:{actions:"repeatNextAyah"},REPEAT_PREV_AYAH:{actions:"repeatPreviousAyah"},REPEAT_SELECTED_AYAH:{actions:"repeatSelectedAyah"},VERSE_REPEAT_FINISHED:[{cond:"rangeEnded",target:"rangeEnded"},{actions:"spawnNextAyahActor"}]}},rangeEnded:{description:"State where we reached the end of the range. Deciding whether to repeat or finish",always:[{actions:"repeatCycle",description:"When range cycle is not finished yet. Inc context.currentRangeCycle, respawn verseCycleActor and sendPlayFromAyah",cond:"rangeCycleOnProgress",target:"inProgress"},{description:"When range cycle is finished, transition to finished state",cond:"rangeCycleFinished",target:"finished"}]},finished:{entry:"sendRangeRepeatFinished",description:"Send RANGE_REPEAT_FINISHED to parent",type:"final"}}},{guards:{rangeEnded:function(e){return e.currentVerseNumber===i},rangeCycleOnProgress:function(e){return e.currentRangeCycle=e.totalRangeCycle}},actions:{repeatSelectedAyah:(0,L.Le)((function(e,t){var n=t.ayahNumber,r=e.verseTimings[n-1];return[(0,L.sT)(e.verseCycleActor.id),(0,L.f0)({currentVerseNumber:n,verseCycleActor:(0,s.Cs)(H({timestampFrom:r.timestampFrom,timestampTo:r.timestampTo,totalVerseCycle:e.totalVerseCycle}))})]})),updateVerseTimings:(0,L.Le)((function(e,t){var n=t.verseTimings[e.currentVerseNumber-1];return[(0,L.f0)({verseTimings:t.verseTimings}),(0,L.lW)({type:"UPDATE_VERSE_TIMING",timestampFrom:n.timestampFrom,timestampTo:n.timestampTo},{to:e.verseCycleActor.id})]})),repeatNextAyah:(0,L.Le)((function(e){var t=e.currentVerseNumber-1,n=e.verseTimings[t+1],r=e.currentVerseNumber+1;return r>i?[(0,L.sT)(e.verseCycleActor.id),(0,L.lj)({type:"RANGE_REPEAT_FINISHED"})]:[(0,L.sT)(e.verseCycleActor.id),(0,L.f0)({currentVerseNumber:r,verseCycleActor:(0,s.Cs)(H({timestampFrom:n.timestampFrom,timestampTo:n.timestampTo,totalVerseCycle:e.totalVerseCycle}))})]})),repeatPreviousAyah:(0,L.Le)((function(e){var t=e.currentVerseNumber-1,n=e.verseTimings[t-1],r=e.currentVerseNumber-1;return[(0,L.sT)(e.verseCycleActor.id),(0,L.f0)({currentVerseNumber:r,verseCycleActor:(0,s.Cs)(H({timestampFrom:n.timestampFrom,timestampTo:n.timestampTo,totalVerseCycle:e.totalVerseCycle}))})]})),spawnNextAyahActor:(0,L.Le)((function(e){var t=e.currentVerseNumber-1,n=e.verseTimings[t],r=e.verseTimings[t+1],o=e.currentVerseNumber+1,i=Math.abs(n.duration);return[(0,L.sT)(e.verseCycleActor.id),(0,L.lj)({type:"REPEAT_AYAH",verseNumber:o,verseDuration:i}),(0,L.f0)({verseCycleActor:(0,s.Cs)(H({timestampFrom:r.timestampFrom,timestampTo:r.timestampTo,totalVerseCycle:e.totalVerseCycle})),currentVerseNumber:o})]})),forwardtimestampToVerseActor:(0,L.Tn)((function(e){return e.verseCycleActor})),repeatSameAyah:(0,L.lj)((function(e){var t=e.verseTimings[e.currentVerseNumber-1].duration;return{type:"REPEAT_AYAH",verseNumber:e.currentVerseNumber,verseDuration:t}})),repeatCycle:(0,L.Le)((function(e){var t=e.verseTimings[o-1],n=t.duration;return[(0,L.sT)(e.verseCycleActor.id),(0,L.f0)({currentRangeCycle:e.currentRangeCycle+1,verseCycleActor:(0,s.Cs)(H({timestampFrom:t.timestampFrom,timestampTo:t.timestampTo,totalVerseCycle:e.totalVerseCycle})),currentVerseNumber:o}),(0,L.lj)({type:"REPEAT_AYAH",verseNumber:e.fromVerseNumber,verseDuration:n})]})),sendRangeRepeatFinished:(0,L.Le)((function(){return(0,L.lj)({type:"RANGE_REPEAT_FINISHED"})})),spawnVerseCycleActor:(0,L.f0)({verseCycleActor:function(e){var t=e.verseTimings[e.currentVerseNumber-1];return(0,s.Cs)(H({timestampFrom:t.timestampFrom,timestampTo:t.timestampTo,totalVerseCycle:e.totalVerseCycle}))}})}})}({totalRangeCycle:e.repeatSettings.totalRangeCycle,totalVerseCycle:e.repeatSettings.totalVerseCycle,verseTimings:e.verseTimings,fromVerseNumber:e.fromVerseNumber,toVerseNumber:e.toVerseNumber}))}})}})},G=n(36365),W=n(85149),z=N({context:{audioPlayer:null,reciterId:7,ayahNumber:1,elapsed:0,downloadProgress:0,duration:0,audioData:void 0,playbackRate:1,shouldPlayFromRandomTimeStamp:!1,surahVersesCount:0,repeatActor:null,radioActor:null,verseDelay:0,volume:1},tsTypes:{},schema:{context:{},events:{},services:{}},id:"audioPlayer",initial:"HIDDEN",states:{HIDDEN:{description:"Audio player is hidden in the UI",on:{PLAY_RADIO:{actions:["stopRepeatActor","forwardPlayToRadioMachine"]},CLOSE_RADIO:{actions:["pauseAudio","exitRadio"]},PLAY_RADIO_TRACK:{actions:"setRadioStationDetails",description:"User opens the audio player to play radio of a certain station",target:"VISIBLE"},PLAY_AYAH:[{actions:["setSurahAndAyahNumbers","exitRadio"],description:"User opens the audio player to play an Ayah",cond:"isUsingCustomReciterId",target:"VISIBLE.LOADING_CUSTOM_RECITER_DATA"},{actions:["setSurahAndAyahNumbers","exitRadio"],description:"User opens the audio player to play an Ayah",target:"VISIBLE"}],PLAY_SURAH:[{actions:["setSurahAndResetAyahNumber","exitRadio"],cond:"isUsingCustomReciterId",target:"VISIBLE.LOADING_CUSTOM_RECITER_DATA"},{actions:["setSurahAndResetAyahNumber","exitRadio"],description:"User opens the audio player to play a Surah",target:"VISIBLE"}],SET_PLAYBACK_SPEED:{actions:"setPlaybackRate",description:"User change the playback speed"},CHANGE_RECITER:[{actions:"setReciterId",description:"User changes the reciter"}]}},VISIBLE:{description:"Audio player is visible in the UI",initial:"LOADING_RECITER_DATA",states:{AUDIO_PLAYER_INITIATED:{description:"File has been loaded and is ready to be played",initial:"PAUSED",invoke:{src:"initMediaSession"},states:{PAUSED:{description:"Default state of the audio player",initial:"ACTIVE",states:{ACTIVE:{on:{TOGGLE:{actions:"setElapsedTime",description:"User either clicks on the play button or presses the space key",target:"#audioPlayer.VISIBLE.AUDIO_PLAYER_INITIATED.PLAYING.ACTIVE"},SEEKING:{description:"When the mouse or keyboard keys are clicked to jump forward/backward 5 or 10 seconds or when the user wants to navigate to a specific time.",target:"LOADING"},WAITING:{description:"Waiting for the buffer to be filled",target:"LOADING"},PLAY:{description:"Play the audio again",target:"#audioPlayer.VISIBLE.AUDIO_PLAYER_INITIATED.PLAYING.ACTIVE"},END:[{cond:"isAudioAlmostEnded",actions:"forwardEndedToRadioMachine",description:"Current file ended playing",target:"#audioPlayer.VISIBLE.AUDIO_PLAYER_INITIATED.ENDED"},{actions:"continueFromLastTimestamp",target:"#audioPlayer.VISIBLE.AUDIO_PLAYER_INITIATED.PLAYING.LOADING"}]}},LOADING:{description:"Audio data is being fetched",tags:"loading",on:{NEXT_AYAH:[{actions:"repeatNextAyah",cond:"canRepeatNextAyah"},{actions:["incrementAyah","setAudioPlayerCurrentTime"],description:"User clicks the next ayah button and it's not the last ayah of the surah already",cond:"isNotLastVerse"}],PREV_AYAH:[{actions:"repeatPreviousAyah",cond:"canRepeatPrevAyah"},{actions:["decrementAyah","setAudioPlayerCurrentTime"],description:"User clicks the previous ayah button and it's not the first ayah of the surah already",cond:"isNotFirstVerse"}],FAIL:{description:"The audio file failed to load",target:"#audioPlayer.VISIBLE.FAILED"},CAN_PLAY:{target:"ACTIVE"},SEEKED:{target:"ACTIVE"},END:{actions:"forwardEndedToRadioMachine",description:"Current file ended playing",target:"#audioPlayer.VISIBLE.AUDIO_PLAYER_INITIATED.ENDED"}}}}},DELAYING:{after:{VERSE_DELAY:{target:"#audioPlayer.VISIBLE.AUDIO_PLAYER_INITIATED.PLAYING.ACTIVE"}},on:{TOGGLE:{target:"#audioPlayer.VISIBLE.AUDIO_PLAYER_INITIATED.PLAYING.ACTIVE"},NEXT_AYAH:[{actions:"repeatNextAyah",cond:"canRepeatNextAyah",target:"#audioPlayer.VISIBLE.AUDIO_PLAYER_INITIATED.PLAYING.ACTIVE"},{actions:["incrementAyah","setAudioPlayerCurrentTime"],description:"User clicks the next ayah button and it's not the last ayah of the surah already",cond:"isNotLastVerse"}],PREV_AYAH:[{actions:"repeatPreviousAyah",cond:"canRepeatPrevAyah",target:"#audioPlayer.VISIBLE.AUDIO_PLAYER_INITIATED.PLAYING.ACTIVE"},{actions:["decrementAyah","setAudioPlayerCurrentTime"],description:"User clicks the previous ayah button and it's not the first ayah of the surah already",cond:"isNotFirstVerse"}]}},PLAYING:{invoke:{id:"playAudio",src:"playAudio",onError:{target:"#audioPlayer.VISIBLE.AUDIO_PLAYER_INITIATED.PAUSED.ACTIVE"}},description:"The audio player is playing the audio",initial:"ACTIVE",on:{PLAY_AYAH:[{actions:["setSurahAndAyahNumbers","exitRadio","stopRepeatActor"],description:"When the user chooses to play an Ayah of another Surah",cond:"isDifferentSurahAndReciter",target:"#audioPlayer.VISIBLE.LOADING_CUSTOM_RECITER_DATA"},{actions:["setSurahAndAyahNumbers","exitRadio","stopRepeatActor"],description:"When the user chooses to play an Ayah of another Surah",cond:"isDifferentSurah",target:"#audioPlayer.VISIBLE.LOADING_RECITER_DATA"},{actions:["setSurahAndAyahNumbers","setAudioPlayerCurrentTime"]}],CHANGE_RECITER:[{actions:["pauseAudio","setReciterId","resetElapsedTime"],description:"User changes the reciter while the audio player is visible and might be playing",target:"#audioPlayer.VISIBLE.LOADING_RECITER_DATA"}]},states:{ACTIVE:{on:{TOGGLE:{actions:["setElapsedTime","pauseAudio"],description:"User either clicks on the pause button or presses the space key",target:"#audioPlayer.VISIBLE.AUDIO_PLAYER_INITIATED.PAUSED.ACTIVE"},REPEAT_AYAH:{actions:[D({ayahNumber:function(e,t){return t.ayahNumber},verseDelay:function(e,t){return t.verseDelay}}),"pauseAudio","setAudioPlayerCurrentTime"],description:"Repeat the current ayah",target:"#audioPlayer.VISIBLE.AUDIO_PLAYER_INITIATED.DELAYING"},SEEKING:{description:"When the mouse or keyboard keys are clicked to jump forward/backward 5 or 10 seconds or when the user wants to navigate to a specific time.",target:"LOADING"},WAITING:{description:"Waiting for the buffer to be filled",target:"LOADING"},END:{actions:"forwardEndedToRadioMachine",description:"The audio finished played",target:"#audioPlayer.VISIBLE.AUDIO_PLAYER_INITIATED.ENDED"},UPDATE_TIMING:{actions:"updateTiming",description:"Update the elapsed time "},PAUSE:{description:"Pause the audio",target:"#audioPlayer.VISIBLE.AUDIO_PLAYER_INITIATED.PAUSED.ACTIVE"}}},LOADING:{description:"Audio data is being fetched",tags:"loading",on:{NEXT_AYAH:[{actions:"repeatNextAyah",cond:"canRepeatNextAyah"},{actions:["incrementAyah","setAudioPlayerCurrentTime"],description:"User clicks the next ayah button and it's not the last ayah of the surah already",cond:"isNotLastVerse"}],PREV_AYAH:[{actions:"repeatPreviousAyah",cond:"canRepeatPrevAyah"},{actions:["decrementAyah","setAudioPlayerCurrentTime"],description:"User clicks the previous ayah button and it's not the first ayah of the surah already",cond:"isNotFirstVerse"}],FAIL:{description:"The audio file failed to load",target:"#audioPlayer.VISIBLE.FAILED"},CAN_PLAY:{target:"ACTIVE"},PAUSE:{description:"Pause the audio",target:"#audioPlayer.VISIBLE.AUDIO_PLAYER_INITIATED.PAUSED.ACTIVE"},SEEKED:{target:"ACTIVE"}}}}},HISTORY:{history:"shallow",type:"history"},ENDED:{on:{SEEKING:{description:"When the mouse or keyboard keys are clicked to jump forward/backward 5 or 10 seconds or when the user wants to navigate to a specific time.",target:"PAUSED"},PLAY:{description:"Play the audio again",target:"PLAYING"},PLAY_AYAH:[{actions:["setSurahAndAyahNumbers","exitRadio","stopRepeatActor"],description:"When the user chooses to play an Ayah of another Surah",cond:"isDifferentSurahAndReciter",target:"#audioPlayer.VISIBLE.LOADING_CUSTOM_RECITER_DATA"},{actions:["setSurahAndAyahNumbers","exitRadio","stopRepeatActor"],description:"When the user chooses to play an Ayah of another Surah",cond:"isDifferentSurah",target:"#audioPlayer.VISIBLE.LOADING_RECITER_DATA"},{actions:["setAyahNumber","setAudioPlayerCurrentTime","exitRadio","updateRepeatAyah"],description:"When the user chooses to play an Ayah of the same Surah. (can be the same Ayah being recited)",cond:"isSameSurahAndReciter",target:"PLAYING"}],PLAY_SURAH:[{actions:["setSurahAndResetAyahNumber","exitRadio","stopRepeatActor"],cond:"isUsingCustomReciterId",target:"#audioPlayer.VISIBLE.LOADING_CUSTOM_RECITER_DATA"},{actions:["setSurahAndResetAyahNumber","exitRadio","stopRepeatActor"],description:"When the user chooses to play another Surah",cond:"isDifferentSurah",target:"#audioPlayer.VISIBLE.LOADING_RECITER_DATA"},{actions:["exitRadio"],description:"When the user chooses to play an Ayah of the same Surah. (can be the same Ayah being recited)",cond:"isSameSurahAndReciter",target:"PLAYING"}],TOGGLE:{description:"User clicks on the play button or presses the space key",target:"PLAYING"},PLAY_RADIO_TRACK:{actions:"setRadioStationDetails",description:"User opens the audio player to play radio of a certain station",target:"#audioPlayer.VISIBLE.LOADING_RECITER_DATA"}}}},on:{PROGRESS:{actions:"updateDownloadProgress"},REPEAT_FINISHED:{actions:["stopRepeatActor","pauseAudio"],target:".PAUSED.ACTIVE"},NEXT_AYAH:[{actions:"repeatNextAyah",cond:"canRepeatNextAyah"},{actions:["incrementAyah","setAudioPlayerCurrentTime"],description:"User clicks the next ayah button and it's not the last ayah of the surah already",cond:"isNotLastVerse"}],NEXT_AUDIO_TRACK:{actions:"nextAudioTrack"},SEEK_TO:[{cond:"isRepeatActive",actions:"seekToAndRepeat"},{actions:"seekTo"}],PREV_AYAH:[{actions:"repeatPreviousAyah",cond:"canRepeatPrevAyah"},{actions:["decrementAyah","setAudioPlayerCurrentTime"],description:"User clicks the previous ayah button and it's not the first ayah of the surah already",cond:"isNotFirstVerse"}]}},FAILED:{description:"Either the audio file failed to load or the API to fetch the reciter + Surah data failed",after:{500:{target:"#audioPlayer.HIDDEN"}}},LOADING_RECITER_DATA:{description:"The reciter + Surah data are being fetched",invoke:{src:"fetchReciter",id:"fetchReciter",onDone:[{actions:["setAudioData","setAudioPlayerSource","setAudioPlayerCurrentTime","updateRepeatVerseTimings"],description:"The API call to get the selected chapter + Surah succeeded",target:"#audioPlayer.VISIBLE.AUDIO_PLAYER_INITIATED.PLAYING.LOADING"}],onError:[{description:"The API call to get the selected chapter + Surah failed",target:"FAILED"}]},tags:"loading"},LOADING_RECITER_DATA_AND_PAUSE:{description:"The reciter + Surah data are being fetched",invoke:{src:"fetchReciter",id:"fetchReciter",onDone:[{actions:["setAudioData","setAudioPlayerSource","setAudioPlayerCurrentTime","updateRepeatVerseTimings"],description:"The API call to get the selected chapter + Surah succeeded",target:"#audioPlayer.VISIBLE.AUDIO_PLAYER_INITIATED.PAUSED.LOADING"}],onError:[{description:"The API call to get the selected chapter + Surah failed",target:"FAILED"}]},tags:"loading"},LOADING_CUSTOM_RECITER_DATA:{description:"The reciter + Surah data are being fetched",invoke:{src:"fetchCustomReciter",id:"fetchCustomReciter",onDone:[{actions:["setAudioData","setAudioPlayerSource","setAudioPlayerCurrentTime","updateRepeatVerseTimings"],description:"The API call to get the selected chapter + Surah succeeded",target:"#audioPlayer.VISIBLE.AUDIO_PLAYER_INITIATED.PLAYING.LOADING"}],onError:[{description:"The API call to get the selected chapter + Surah failed",target:"FAILED"}]},tags:"loading"},LOADING_REPEAT_DATA:{invoke:{src:"fetchRepeatData",id:"fetchRepeatData",onDone:[{actions:["setAudioData","setAudioPlayerSource","setAudioPlayerCurrentTime",D({surah:function(e,t){return t.data.surah},ayahNumber:function(e,t){return t.data.from},repeatActor:function(e,t){return(0,s.Cs)(q({fromVerseNumber:t.data.from,toVerseNumber:t.data.to,totalRangeCycle:t.data.repeatRange,totalVerseCycle:t.data.repeatEachVerse,verseTimings:e.audioData.verseTimings,delayMultiplier:t.data.delayMultiplier}))}})],description:"The API call to get the selected chapter + Surah succeeded",target:"#audioPlayer.VISIBLE.AUDIO_PLAYER_INITIATED.PLAYING.LOADING"}],onError:[{description:"The API call to get the selected chapter + Surah failed",target:"FAILED"}]},tags:"loading"}},on:{CLOSE:{actions:["resetElapsedTime","resetAyahNumber","pauseAudio"],description:"User closes the audio player",target:"HIDDEN"},SET_PLAYBACK_SPEED:{actions:"setPlaybackRate",description:"User change the playback speed"},CHANGE_RECITER:[{cond:"isRadioActive",actions:"forwardChangeReciterToRadioMachine"},{actions:["pauseAudio","setReciterId","resetElapsedTime"],description:"User changes the reciter while the audio player is visible and might be playing",target:".LOADING_RECITER_DATA_AND_PAUSE"}],PLAY_RADIO_TRACK:{actions:"setRadioStationDetails",description:"User opens the audio player to play radio of a certain station",target:".LOADING_RECITER_DATA"},PLAY_AYAH:[{description:"When the user is clicking play ayah. On the currently playing ayah, resume it",cond:"isSameAyah",target:".AUDIO_PLAYER_INITIATED.PLAYING.ACTIVE"},{actions:["setSurahAndAyahNumbers","exitRadio","stopRepeatActor"],description:"When the user chooses to play an Ayah of another Surah",cond:"isDifferentSurah",target:"VISIBLE.LOADING_RECITER_DATA"},{actions:["setAyahNumber","setAudioPlayerCurrentTime","exitRadio","updateRepeatAyah"],description:"When the user chooses to play an Ayah of the same Surah. (can be the same Ayah being recited)",cond:"isSameSurahAndReciter",target:".AUDIO_PLAYER_INITIATED.PLAYING.LOADING"}],PLAY_SURAH:[{description:"When the users is playing the same surah. Just resume it",cond:"isSameSurahAndReciter",target:".AUDIO_PLAYER_INITIATED.PLAYING.ACTIVE"},{actions:["setSurahAndResetAyahNumber","exitRadio","stopRepeatActor"],cond:"isUsingCustomReciterId",target:"VISIBLE.LOADING_CUSTOM_RECITER_DATA"},{actions:["setSurahAndResetAyahNumber","exitRadio","stopRepeatActor"],description:"When the user chooses to play another Surah",cond:"isDifferentSurah",target:"VISIBLE.LOADING_RECITER_DATA"}],PLAY_RADIO:{actions:["stopRepeatActor","forwardPlayToRadioMachine"]},CLOSE_RADIO:{actions:["pauseAudio","exitRadio"],target:"HIDDEN"},UPDATE_VOLUME:{actions:"updateVolume",description:"User updates the volume"}}}},on:{SET_AUDIO_REF:{actions:"setAudioRef"},SET_REPEAT_SETTING:{actions:["exitRadio"],target:".VISIBLE.LOADING_REPEAT_DATA"},SET_INITIAL_CONTEXT:{actions:"setInitialContext"},SET_RECITERS_LIST:{actions:"setRecitersList"}}},{actions:{continueFromLastTimestamp:function(e){e.audioPlayer.currentTime=e.elapsed-1e-4,e.audioPlayer.play()},setRecitersList:D({recitersList:function(e,t){return t.recitersList}}),setInitialContext:D({reciterId:function(e,t){return t.reciterId},playbackRate:function(e,t){return t.playbackRate},volume:function(e,t){return t.volume}}),updateRepeatAyah:(0,L.Le)((function(e,t){return e.repeatActor?Z({type:"REPEAT_SELECTED_AYAH",ayahNumber:t.ayahNumber},{to:e.repeatActor.id}):[]})),exitRadio:(0,L.Le)((function(e){var t=e.radioActor,n=[];return t&&(n=[(0,L.sT)(t),D({radioActor:function(){return null},shouldPlayFromRandomTimeStamp:function(){return!1}})]),n})),forwardEndedToRadioMachine:(0,L.Le)((function(e){var t=[],n=e.radioActor;return n&&(t=[D({ayahNumber:1}),Z({type:"TRACK_ENDED"},{to:n})]),t})),setRadioStationDetails:D({shouldPlayFromRandomTimeStamp:function(e,t){return t.shouldPlayFromRandomTimeStamp},reciterId:function(e,t){return t.reciterId},surah:function(e,t){return t.surah}}),decrementAyah:D({ayahNumber:function(e){return e.ayahNumber-1}}),incrementAyah:D({ayahNumber:function(e){return e.ayahNumber+1}}),setSurahAndResetAyahNumber:D({surah:function(e,t){return t.surah},ayahNumber:function(e){return 1}}),setAyahNumber:D({ayahNumber:function(e,t){return t.ayahNumber}}),setSurahAndAyahNumbers:D({surah:function(e,t){return t.surah},ayahNumber:function(e,t){return t.ayahNumber}}),setAudioRef:D({audioPlayer:function(e,t){return t.audioPlayerRef}}),setAudioData:D({duration:function(e,t){return(0,W.Rp)(t.data.duration)},audioData:function(e,t){return t.data},surahVersesCount:function(e,t){return t.data.verseTimings.length}}),setAudioPlayerSource:function(e){var t=e.audioData.audioUrl;e.audioPlayer.src=t},setAudioPlayerCurrentTime:function(e){var t=e.ayahNumber,n=e.audioData.verseTimings,r=e.duration;if(e.shouldPlayFromRandomTimeStamp){var o=y()(0,r);e.audioPlayer.currentTime=o}else{var i=n[t-1].timestampFrom;e.audioPlayer.currentTime=(0,W.Rp)(i)}},resetElapsedTime:D({elapsed:0}),updateDownloadProgress:D({downloadProgress:function(e,t){return t.timestamp}}),setElapsedTime:(0,L.Le)((function(e){var t=(0,G.yr)(e),n=(0,G.m9)(t),r=(0,G.Mb)(t,1e3*e.audioPlayer.currentTime);return D({elapsed:e.audioPlayer.currentTime,ayahNumber:n,wordLocation:r})})),setReciterId:D({reciterId:function(e,t){return t.reciterId}}),resetAyahNumber:D({ayahNumber:1}),pauseAudio:function(e){e.audioPlayer.pause()},setPlaybackRate:(0,L.Le)((function(e,t){var n=t.playbackRate;return e.audioPlayer.playbackRate=n,D({playbackRate:n})})),updateTiming:(0,L.Le)((function(e){var t=[];return t.push("setElapsedTime"),e.repeatActor&&t.push(Z({type:"TIMESTAMP_UPDATED",timestamp:1e3*e.audioPlayer.currentTime},{to:e.repeatActor.id})),t})),forwardPlayToRadioMachine:(0,L.Le)((function(e,t){var n=[],r=e.radioActor;return r||(r=(0,s.Cs)(V()),n.push(D({radioActor:r}))),n.push(Z({type:"PLAY_STATION",stationType:t.stationType,id:t.stationId},{to:r.id})),n})),forwardChangeReciterToRadioMachine:(0,L.Le)((function(e,t){var n=[],r=e.radioActor;return r||(r=(0,s.Cs)(V()),n.push(D({radioActor:r}))),n.push(Z({type:"PLAY_STATION",stationType:U.T.Reciter,id:t.reciterId},{to:r.id})),n})),stopRepeatActor:(0,L.Le)((function(e){return e.repeatActor?[(0,L.sT)(e.repeatActor.id),D({repeatActor:null})]:[]})),repeatNextAyah:(0,L.Le)((function(e){return[Z({type:"REPEAT_NEXT_AYAH"},{to:e.repeatActor.id}),"incrementAyah","setAudioPlayerCurrentTime"]})),repeatPreviousAyah:(0,L.Le)((function(e){return e.repeatActor?[Z({type:"REPEAT_PREV_AYAH"},{to:e.repeatActor.id}),"decrementAyah","setAudioPlayerCurrentTime"]:[]})),updateRepeatVerseTimings:(0,L.Le)((function(e){var t=[];return e.repeatActor&&t.push(Z({type:"UPDATE_VERSE_TIMINGS",verseTimings:e.audioData.verseTimings},{to:e.repeatActor.id})),t})),nextAudioTrack:(0,L.Le)((function(e){return e.radioActor?Z({type:"TRACK_ENDED"},{to:e.radioActor.id}):[]})),seekTo:(0,L.Le)((function(e,t){return e.audioPlayer.currentTime=t.timestamp,D({elapsed:t.timestamp})})),seekToAndRepeat:(0,L.Le)((function(e,t){var n=[],r=(0,G.SQ)(e.audioData.verseTimings,(0,W.pE)(t.timestamp));return e.repeatActor&&n.push(Z({type:"REPEAT_SELECTED_AYAH",ayahNumber:r},{to:e.repeatActor.id})),n.push("seekTo"),n})),updateVolume:(0,L.Le)((function(e,t){var n=t.volume;return e.audioPlayer.volume=n,D({volume:n})}))},guards:{isRadioActive:function(e){return!!e.radioActor},isNotLastVerse:function(e){return e.ayahNumber(0,W.Rp)(e.audioData.duration)-3}},services:{playAudio:function(e){return e.audioPlayer.playbackRate=e.playbackRate,e.audioPlayer.volume=e.volume,e.audioPlayer.play()},fetchReciter:function(e){return(0,G.B2)(e)},fetchCustomReciter:function(e,t){return(0,G.B2)({surah:t.surah,reciterId:t.reciterId})},fetchRepeatData:function(e,t){return(0,G.aB)(e,t)},initMediaSession:function(e){return function(t){"mediaSession"in navigator&&(0,G.KA)(e).then((function(n){t({type:"SET_RECITERS_LIST",recitersList:n}),(0,G.Gq)(e,n).then((function(e){navigator.mediaSession.metadata=e}))}));var n=[["play",function(){return t("TOGGLE")}],["pause",function(){return t("TOGGLE")}],["previoustrack",function(){e.radioActor&&t("NEXT_AUDIO_TRACK"),t("PREV_AYAH")}],["nexttrack",function(){e.radioActor&&t("NEXT_AUDIO_TRACK"),t("NEXT_AYAH")}],["stop",function(){t("END")}]],r=!0,o=!1,i=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var c=(0,g.Z)(a.value,2),u=c[0],l=c[1];try{navigator.mediaSession.setActionHandler(u,l)}catch(f){console.log('The media session action "'.concat(u,'" is not supported yet.'))}}}catch(d){o=!0,i=d}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}}}},delays:{VERSE_DELAY:function(e){return e.verseDelay}}}),$="audio-player-state",Y=n(85609),K=n(31887),X=(0,i.createContext)({}),J=["CHANGE_RECITER","SET_PLAYBACK_SPEED","UPDATE_VOLUME"],Q=function(e){var t=e.children,n=(0,Y.useToast)(),a=(0,m.Z)("common").t,l=function(){try{var e=localStorage.getItem($);return e&&JSON.parse(e)||{}}catch(t){return{}}}(),f={reciterId:K.YS.id},d=function(e){for(var t=[],n=1;n=t&&e=e.timestampFrom&&t<=e.timestampTo}));return n?(0,c.tR)(n.verseKey):null},f=function(e){var t=e.audioData.verseTimings,n=e.ayahNumber,r=1e3*e.audioPlayer.currentTime,o=t[t.length-1].timestampTo;return r>o-200?t[n-1]:t.find((function(e){return s(r,e.timestampFrom-200,e.timestampTo-200)}))},d=function(e,t){var n=e.segments.find((function(e){var n=(0,i.Z)(e,3),r=n[1],o=n[2];return s(t,r,o)}));return n?n[0]:0},p=function(e,t){var n=e.find((function(e){return e.verseKey===t.verseKey}));if(!n)return null;var r=function(e,t){return e.segments.find((function(e){var n=(0,i.Z)(e,1)[0];return t===n}))}(n,t.position);return r?[r[1],r[2]]:null},h=function(e){var t=(0,i.Z)(e.verseKey.split(":"),2)[1];return Number(t)},m=function(){var e=(0,r.Z)((function(e){var t,n;return(0,a.__generator)(this,(function(r){return t=e.reciterId,n=e.surah,[2,(0,u.lt)(t,n,!0)]}))}));return function(t){return e.apply(this,arguments)}}(),g=function(){var e=(0,r.Z)((function(e,t){var n,r,i;return(0,a.__generator)(this,(function(a){switch(a.label){case 0:return n=t.surah,r=e.reciterId,[4,m({reciterId:r,surah:n})];case 1:return i=a.sent(),[2,(0,o.Z)({},i,t)]}}))}));return function(t,n){return e.apply(this,arguments)}}(),v=function(){var e=(0,r.Z)((function(e,t){var n;return(0,a.__generator)(this,(function(r){return n=t.find((function(t){return t.id===e.audioData.reciterId})).name,[2,new MediaMetadata({title:"Surah ".concat(e.audioData.chapterId),artist:n,album:"Quran.com",artwork:[{src:"https://quran.com/images/logo/Logo@192x192.png",type:"image/png",sizes:"192x192"}]})]}))}));return function(t,n){return e.apply(this,arguments)}}(),y=function(){var e=(0,r.Z)((function(e){var t;return(0,a.__generator)(this,(function(n){return(t=e.recitersList)?[2,t]:[2,(0,u.tS)("en").then((function(e){return e.reciters}))]}))}));return function(t){return e.apply(this,arguments)}}()},41527:function(e,t){"use strict";var n;!function(e){e.Page="page",e.Juz="juz",e.Surah="surah",e.Ayah="ayah"}(n||(n={})),t.Z=n},96749:function(e,t){"use strict";var n;!function(e){e.HOMEPAGE="HOMEPAGE",e.SETTINGS="SETTINGS",e.READING_EXPERIENCE="READING_EXPERIENCE",e.PERSONALIZED_FEATURES="PERSONALIZED_FEATURES"}(n||(n={})),t.Z=n},89773:function(e,t){"use strict";var n;!function(e){e.Translations="translations",e.Reciter="reciter",e.WBW_LOCALE="wbw_locale",e.HIDE_ARABIC="hideArabic",e.FLOW="flow",e.STARTING_VERSE="startingVerse",e.QUERY="query",e.REDIRECT_TO="r"}(n||(n={})),t.Z=n},63747:function(e,t,n){"use strict";n.d(t,{AN:function(){return u},Bc:function(){return h},MB:function(){return i},Oj:function(){return r},PT:function(){return p},Qi:function(){return a},RA:function(){return l},fr:function(){return s},m3:function(){return o},ru:function(){return m},v3:function(){return d}});var r,o,i,a,s,c=n(45361);!function(e){e.Translation="translation",e.Transliteration="transliteration"}(r||(r={})),function(e){e.Translation="translation",e.Reading="reading"}(o||(o={})),function(e){e.PlayAudio="play-audio",e.NoAudio="no-audio"}(i||(i={})),function(e){e.Chapter="chapter",e.Verse="verse",e.ChapterVerseRanges="chapterVerseRanges",e.Ranges="ranges",e.Tafsir="tafsir",e.SelectedTafsir="selectedTafsir",e.Hizb="hizb",e.Juz="juz",e.Rub="rub",e.Page="page"}(a||(a={})),function(e){e.MadaniV1="code_v1",e.MadaniV2="code_v2",e.Uthmani="text_uthmani",e.IndoPak="text_indopak",e.QPCHafs="qpc_uthmani_hafs",e.Tajweed="tajweed"}(s||(s={}));var u,l,f,d=s.QPCHafs;!function(e){e.FifteenLines="15_lines",e.SixteenLines="16_lines"}(u||(u={})),function(e){e[e.QCFV2=1]="QCFV2",e[e.QCFV1=2]="QCFV1",e[e.Indopak=3]="Indopak",e[e.UthmaniHafs=4]="UthmaniHafs",e[e.KFGQPCHAFS=5]="KFGQPCHAFS",e[e.Indopak15Lines=6]="Indopak15Lines",e[e.Indopak16Lines=7]="Indopak16Lines",e[e.Tajweeed=11]="Tajweeed"}(l||(l={}));var p,h,m=(f={},(0,c.Z)(f,s.MadaniV1,l.QCFV1),(0,c.Z)(f,s.MadaniV2,l.QCFV2),(0,c.Z)(f,s.Uthmani,l.UthmaniHafs),(0,c.Z)(f,s.IndoPak,l.Indopak),(0,c.Z)(f,s.QPCHafs,l.KFGQPCHAFS),(0,c.Z)(f,s.Tajweed,l.Tajweeed),f);!function(e){e.INLINE="inline",e.TOOLTIP="tooltip"}(p||(p={})),function(e){e.QURANIC_CALENDER="calendar"}(h||(h={}))},61388:function(e,t){"use strict";var n;!function(e){e.KALIMAT="kalimat",e.QDC="qdc",e.Tarteel="tarteel"}(n||(n={})),t.Z=n},94292:function(e,t,n){"use strict";var r;n.d(t,{H:function(){return r}}),function(e){e.SURAH="surah",e.JUZ="juz",e.HIZB="hizb",e.AYAH="ayah",e.RUB_EL_HIZB="rub_el_hizb",e.SEARCH_PAGE="search_page",e.PAGE="page",e.RANGE="range"}(r||(r={}))},18054:function(e,t){"use strict";var n;!function(e){e.CommandBar="command_bar",e.SearchDrawer="search_drawer",e.SearchPage="search_page",e.TranslationSettingsDrawer="settings_drawer_translation",e.TafsirSettingsDrawer="settings_drawer_tafsir",e.ReciterPageChapterList="reciter_page_chapter_list",e.Tarteel="tarteel",e.SidebarNavigationChaptersList="sidebar_navigation_chapter_list",e.SidebarNavigationVersesList="sidebar_navigation_verse_list",e.SidebarNavigationJuzsList="sidebar_navigation_juz_list",e.SidebarNavigationPagesList="sidebar_navigation_page_list"}(n||(n={})),t.Z=n},42739:function(e,t){"use strict";var n;!function(e){e.Voice="voice",e.Text="text"}(n||(n={})),t.Z=n},22570:function(e,t,n){"use strict";var r;n.d(t,{t:function(){return r}}),function(e){e.QURAN="QURAN",e.LESSON="LESSON"}(r||(r={}))},65481:function(e,t){"use strict";var n;!function(e){e.COMMUNICATION="communication",e.HAS_NOTES="hasNotes"}(n||(n={})),t.Z=n},70356:function(e,t){"use strict";var n;!function(e){e.TAFSIRS="tafsirs",e.TRANSLATIONS="translations",e.AUDIO="audio",e.THEME="theme",e.QURAN_READER_STYLES="quranReaderStyles",e.READING="reading",e.LANGUAGE="language"}(n||(n={})),t.Z=n},27909:function(e){e.exports={container:"AudioPlayer_container__duw1H",containerOnboarding:"AudioPlayer_containerOnboarding__MMay2",containerHidden:"AudioPlayer_containerHidden__lR45m",spinner:"AudioPlayer_spinner__O52Tx"}},53059:function(e){e.exports={loadingContainer:"CommandBar_loadingContainer__Ho4AK"}},46481:function(e){e.exports={content:"CommandBarBase_content__MLd_Z",contentShow:"CommandBarBase_contentShow____izB",contentHide:"CommandBarBase_contentHide__W2CEF",overlay:"CommandBarBase_overlay__mPz8y",overlayShow:"CommandBarBase_overlayShow__H60Ya",overlayHide:"CommandBarBase_overlayHide__UUTn9"}},15511:function(e){e.exports={container:"DeveloperUtility_container__ZIDNB",containerExpanded:"DeveloperUtility_containerExpanded__7zSRc",separator:"DeveloperUtility_separator__VWvy9",closeButton:"DeveloperUtility_closeButton__Lanzi",wrench:"DeveloperUtility_wrench__7DWaV"}},34810:function(e){e.exports={container:"Drawer_container__v4a8e",left:"Drawer_left__V9th2",right:"Drawer_right__kn0O_",containerOpen:"Drawer_containerOpen__pm7AS",searchContainer:"Drawer_searchContainer__bnGvQ",bodyContainer:"Drawer_bodyContainer__OuUzn",bodyWithBottomPadding:"Drawer_bodyWithBottomPadding__vEGtM",navigationBodyContainer:"Drawer_navigationBodyContainer__7xpCz",header:"Drawer_header__fCYmY",headerContentContainer:"Drawer_headerContentContainer__5FDII",headerContent:"Drawer_headerContent__iKT87",hiddenButtonHeader:"Drawer_hiddenButtonHeader__Yc8P_",hiddenButtonHeaderContentContainer:"Drawer_hiddenButtonHeaderContentContainer___sCaH",navbarInvisible:"Drawer_navbarInvisible__sZbVq"}},83711:function(e){e.exports={container:"LanguageSelector_container__3lssG",globeIconWrapper:"LanguageSelector_globeIconWrapper__o7Y_L",triggerButton:"LanguageSelector_triggerButton__HWoIu",triggerSuffixContainer:"LanguageSelector_triggerSuffixContainer__DxIAk"}},307:function(e){e.exports={logoWrapper:"NavbarLogoWrapper_logoWrapper__rxO10"}},4257:function(e){e.exports={emptySpacePlaceholder:"Navbar_emptySpacePlaceholder__azPCk",container:"Navbar_container__vShO1",hiddenNav:"Navbar_hiddenNav__HcefX"}},14972:function(e){e.exports={itemsContainer:"NavbarBody_itemsContainer__Jvm3k",centerVertically:"NavbarBody_centerVertically__zzdjH",leftCTA:"NavbarBody_leftCTA__8Q1o_",rightCTA:"NavbarBody_rightCTA__uEC10"}},46945:function(e){e.exports={leftCTA:"NavigationDrawer_leftCTA__eAYVn",rightCTA:"NavigationDrawer_rightCTA__1G5B9",centerVertically:"NavigationDrawer_centerVertically__fbLww"}},72606:function(e){e.exports={skeletonContainer:"NavigationDrawerBodySkeleton_skeletonContainer__UDFh2",navRow:"NavigationDrawerBodySkeleton_navRow__FjxpA",blockRow:"NavigationDrawerBodySkeleton_blockRow__Pp_oe"}},90150:function(e){e.exports={container:"DrawerSearchIcon_container__CWMPY"}},21519:function(e){e.exports={container:"Footer_container__vU65b",betaContainer:"Footer_betaContainer__xEO7h",uppercase:"Footer_uppercase__vITIn",bold:"Footer_bold___echK",beta:"Footer_beta__A0mLa"}},3068:function(e){e.exports={searchInputContainer:"Header_searchInputContainer__Cf7d_",searchInput:"Header_searchInput__186o1",clear:"Header_clear___c5pB",separator:"Header_separator__KMPF4"}},61411:function(e){e.exports={footer:"Footer_footer__GFxgd",invisible:"Footer_invisible__IE_EH"}},2838:function(e){e.exports={label:"Label_label___fd5P"}},69240:function(e){e.exports={row:"Row_row__TkwmP"}},70980:function(e){e.exports={separator:"Section_separator__TTdQA"}},55698:function(e){e.exports={title:"Title_title__r3AMw"}},65600:function(e){e.exports={skeletonContainer:"SettingsBodySkeleton_skeletonContainer__Jz8AQ",title:"SettingsBodySkeleton_title__DO1db",titleSkeleton:"SettingsBodySkeleton_titleSkeleton__JwHZT",rowSkeleton:"SettingsBodySkeleton_rowSkeleton__zk_sy",inputRow:"SettingsBodySkeleton_inputRow__hJfZ_",label:"SettingsBodySkeleton_label__VgiSI",input:"SettingsBodySkeleton_input__PeLLj"}},6675:function(e){e.exports={headerContainer:"SettingsDrawer_headerContainer__kJY4F"}},60623:function(e){e.exports={container:"ThemeSection_container__SeSjG",themeNameContainer:"ThemeSection_themeNameContainer__eWnBU",iconContainer:"ThemeSection_iconContainer__qARpD",iconActive:"ThemeSection_iconActive__Q_xs9"}},44160:function(e){e.exports={tooltipContainer:"OnboardingStep_tooltipContainer__cLWvX",title:"OnboardingStep_title__QbSkZ",description:"OnboardingStep_description__bkeeG",icon:"OnboardingStep_icon__FEDh3",actionContainer:"OnboardingStep_actionContainer__ovpeY"}},29706:function(e){e.exports={container:"TarteelAttribution_container__pV6Dr",poweredBy:"TarteelAttribution_poweredBy__HGAKn",tarteelTextWrapper:"TarteelAttribution_tarteelTextWrapper__GH8ML"}},39001:function(e){e.exports={button:"Trigger_button__n1L87"}},52781:function(e){e.exports={base:"Button_base__J2n8j",disabled:"Button_disabled__X_sEV",primary:"Button_primary__VBekZ",secondary:"Button_secondary__UbmkS",success:"Button_success__As9HB",warning:"Button_warning__lvS_t",error:"Button_error__FO_OV",inverse:"Button_inverse__UF9r0",ghost:"Button_ghost__pS9ZU",large:"Button_large__JQFA1",normal:"Button_normal__gNVb9",small:"Button_small__DBbNO",square:"Button_square__WerFZ",circle:"Button_circle__ZrzHE",pill:"Button_pill__tSakZ",shadow:"Button_shadow__Epq7b",outlined:"Button_outlined__Axs1Q",compact:"Button_compact__S8Mm9",suffix:"Button_suffix__9V66Z",prefix:"Button_prefix__Y1BE7",content:"Button_content__hmBjB",noSidePadding:"Button_noSidePadding__mIqRQ"}},94152:function(e){e.exports={flowItem:"Footer_flowItem__3L5WX",fullWidth:"Footer_fullWidth__tf_Y4",container:"Footer_container__x4ck_",title:"Footer_title__1ywXt",iconContainer:"Footer_iconContainer__3ir0J",headingContainer:"Footer_headingContainer__Ictyz",copyright:"Footer_copyright__ATOMh",groupListContainer:"Footer_groupListContainer__Uz4au",group:"Footer_group__OfS5x",groupTitle:"Footer_groupTitle__t3ahP",description:"Footer_description__2_brX",linkContainer:"Footer_linkContainer__CmZzC",disabledlinkContainer:"Footer_disabledlinkContainer__wtHc5",titleAndDescriptionContainer:"Footer_titleAndDescriptionContainer__PH327",bottomSectionContainer:"Footer_bottomSectionContainer__rcOBa",actionsSections:"Footer_actionsSections__XeSqT",actionContainer:"Footer_actionContainer__J6w4J",actionLabel:"Footer_actionLabel__9OH8Q",bottomLinks:"Footer_bottomLinks__HX6K_",emptySpacePlaceholder:"Footer_emptySpacePlaceholder__fmAiS",donateButton:"Footer_donateButton__vfsml",hiringAnnouncementContainer:"Footer_hiringAnnouncementContainer__qJuL1"}},52795:function(e){e.exports={triggerContainer:"FooterThemeSwitcher_triggerContainer__KeKf0",iconContainer:"FooterThemeSwitcher_iconContainer__Kwv3S",suffixIconContainer:"FooterThemeSwitcher_suffixIconContainer__2ptZh"}},49413:function(e){e.exports={base:"Link_base__9W8Qs",highlight:"Link_highlight__HdSrf",primary:"Link_primary__rWdtP",secondary:"Link_secondary__m0KtR",blend:"Link_blend___ORVn"}},54236:function(e){e.exports={action:"Action_action__OpoPA",primary:"Action_primary__F1pjz"}},28983:function(e){e.exports={body:"Body_body__8O8H7"}},7172:function(e){e.exports={content:"Content_content__0oYtM",medium:"Content_medium__b1UWo",large:"Content_large__QPh64",topSheetOnMobile:"Content_topSheetOnMobile__q19zW",mobileContentIn:"Content_mobileContentIn__bPrSn",fadeIn:"Content_fadeIn__RPj2O",topSheetOnMobileIn:"Content_topSheetOnMobileIn__08kuC",desktopContentIn:"Content_desktopContentIn___appS",mobileContentOut:"Content_mobileContentOut__N69Up",topSheetOnMobileOut:"Content_topSheetOnMobileOut__m3_Wc",fadeOut:"Content_fadeOut__pgEP2",desktopContentOut:"Content_desktopContentOut__kaueB"}},54760:function(e){e.exports={footer:"Footer_footer__c4RH0"}},84822:function(e){e.exports={header:"Header_header__8L8T7"}},85439:function(e){e.exports={overlay:"Modal_overlay__2OzLW",invertedOverlay:"Modal_invertedOverlay__x1jDG",fadeIn:"Modal_fadeIn__u5qdB",fadeOut:"Modal_fadeOut__y86nu"}},62428:function(e){e.exports={subtitle:"Subtitle_subtitle__eczrb"}},98977:function(e){e.exports={title:"Title_title__O6BTT"}},62892:function(e){e.exports={content:"PopoverMenu_content__xL1VK",slideDownAndFade:"PopoverMenu_slideDownAndFade__pzFg6",slideLeftAndFade:"PopoverMenu_slideLeftAndFade__QgISc",slideUpAndFade:"PopoverMenu_slideUpAndFade__8WPJz",slideRightAndFade:"PopoverMenu_slideRightAndFade__o9TzG",item:"PopoverMenu_item__e4y_f",iconWrapper:"PopoverMenu_iconWrapper__ZzSRV",shouldFlipOnRTL:"PopoverMenu_shouldFlipOnRTL__5sU77",separator:"PopoverMenu_separator__jBJM6",selected:"PopoverMenu_selected__NH0IG"}},64327:function(e){e.exports={base:"Separator_base__2kP0d",semiBold:"Separator_semiBold__9Eu4c",bold:"Separator_bold__412WT"}},94935:function(e){e.exports={baseSize:"Skeleton_baseSize__RsOkc",skeleton:"Skeleton_skeleton__u2Uso",active:"Skeleton_active__5df2K",loading:"Skeleton_loading__iZh50",rounded:"Skeleton_rounded__ftYYr",content:"Skeleton_content__knKtV"}},90561:function(e){e.exports={large:"Spinner_large___jIQL",normal:"Spinner_normal__RzEer",small:"Spinner_small__Yp4tO",spinner:"Spinner_spinner__E67OJ",delayVisibility:"Spinner_delayVisibility__XK8gt",fadeIn:"Spinner_fadeIn__C5hKJ",centered:"Spinner_centered__WjW8H",container:"Spinner_container__cpw6E",span:"Spinner_span__4CLzE"}},71032:function(e){e.exports={internalContainer:"SpinnerContainer_internalContainer__kt2ni",spinner:"SpinnerContainer_spinner__kzDgO"}},31222:function(e){e.exports={container:"Switch_container__sYEUd",xSmallContainer:"Switch_xSmallContainer__CtQzD",item:"Switch_item__ePHkS",separatorLine:"Switch_separatorLine__Jj73_",separatorLineVisible:"Switch_separatorLineVisible__RnZCc",selectedItemBackgroundContainer:"Switch_selectedItemBackgroundContainer__7F_kF",selectedItemBackground:"Switch_selectedItemBackground__VMOBG",itemNormal:"Switch_itemNormal__pDPXy",itemLarge:"Switch_itemLarge__SCzg2",itemSmall:"Switch_itemSmall__gKpF9",itemXSmall:"Switch_itemXSmall__GcCpL"}},36731:function(e){e.exports={animate:"Toast_animate__Tmzfu",enter:"Toast_enter__rE9Mm",slideInUp:"Toast_slideInUp__vGysg",exit:"Toast_exit__oVQ6p",slideOutDown:"Toast_slideOutDown__B6Jc9",toast:"Toast_toast__wngG9",toastContainer:"Toast_toastContainer___t7rD",errorBody:"Toast_errorBody__Ltyof",warningBody:"Toast_warningBody__E9wSE",successBody:"Toast_successBody__Jx1gZ",contentContainer:"Toast_contentContainer__lfumt",actionsContainer:"Toast_actionsContainer__nyh90",action:"Toast_action__z57l_"}},77497:function(e){e.exports={trigger:"Tooltip_trigger__E263W",content:"Tooltip_content__I7VNE",noInverse:"Tooltip_noInverse__cxnCQ",noCenter:"Tooltip_noCenter__dXZMR",secondary:"Tooltip_secondary__AJcKD",success:"Tooltip_success__V_jEF",warning:"Tooltip_warning__xHcqu",error:"Tooltip_error__LuaPY"}},40993:function(){},24983:function(){},99067:function(){},23960:function(){},39788:function(){},74927:function(){},70301:function(e,t,n){var r={"./ar":4785,"./ar.ts":4785,"./bn":55487,"./bn.ts":55487,"./en":78931,"./en.ts":78931,"./fa":83269,"./fa.ts":83269,"./fr":11405,"./fr.ts":11405,"./id":64362,"./id.ts":64362,"./it":75012,"./it.ts":75012,"./ms":8410,"./ms.ts":8410,"./nl":78610,"./nl.ts":78610,"./pt":97425,"./pt.ts":97425,"./ru":2824,"./ru.ts":2824,"./sq":38343,"./sq.ts":38343,"./th":60297,"./th.ts":60297,"./tr":41437,"./tr.ts":41437,"./ur":69289,"./ur.ts":69289,"./zh":43156,"./zh.ts":43156};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=70301},37014:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{const{scope:t,children:n}=e,o=r.useRef(null),i=r.useRef(new Map).current;return r.createElement(c,{scope:t,itemMap:i,collectionRef:o},n)},f=e+"CollectionSlot",d=r.forwardRef(((e,t)=>{const{scope:n,children:o}=e,s=u(f,n),c=(0,i.e)(t,s.collectionRef);return r.createElement(a.g7,{ref:c},o)})),p=e+"CollectionItemSlot",h="data-radix-collection-item",m=r.forwardRef(((e,t)=>{const{scope:n,children:o,...s}=e,c=r.useRef(null),l=(0,i.e)(t,c),f=u(p,n);return r.useEffect((()=>(f.itemMap.set(c,{ref:c,...s}),()=>{f.itemMap.delete(c)}))),r.createElement(a.g7,{[h]:"",ref:l},o)}));return[{Provider:l,Slot:d,ItemSlot:m},function(t){const n=u(e+"CollectionConsumer",t);return r.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},s]}},71641:function(e,t,n){"use strict";n.d(t,{F:function(){return o},e:function(){return i}});var r=n(67597);function o(...e){return t=>e.forEach((e=>function(e,t){"function"===typeof e?e(t):null!==e&&void 0!==e&&(e.current=t)}(e,t)))}function i(...e){return(0,r.useCallback)(o(...e),e)}},61544:function(e,t,n){"use strict";n.d(t,{b:function(){return i},k:function(){return o}});var r=n(67597);function o(e,t){const n=(0,r.createContext)(t);function o(e){const{children:t,...o}=e,i=(0,r.useMemo)((()=>o),Object.values(o));return(0,r.createElement)(n.Provider,{value:i},t)}return o.displayName=e+"Provider",[o,function(o){const i=(0,r.useContext)(n);if(i)return i;if(void 0!==t)return t;throw new Error(`\`${o}\` must be used within \`${e}\``)}]}function i(e,t=[]){let n=[];const o=()=>{const t=n.map((e=>(0,r.createContext)(e)));return function(n){const o=(null===n||void 0===n?void 0:n[e])||t;return(0,r.useMemo)((()=>({[`__scope${e}`]:{...n,[e]:o}})),[n,o])}};return o.scopeName=e,[function(t,o){const i=(0,r.createContext)(o),a=n.length;function s(t){const{scope:n,children:o,...s}=t,c=(null===n||void 0===n?void 0:n[e][a])||i,u=(0,r.useMemo)((()=>s),Object.values(s));return(0,r.createElement)(c.Provider,{value:u},o)}return n=[...n,o],s.displayName=t+"Provider",[s,function(n,s){const c=(null===s||void 0===s?void 0:s[e][a])||i,u=(0,r.useContext)(c);if(u)return u;if(void 0!==o)return o;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},a(o,...t)]}function a(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const o=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return(0,r.useMemo)((()=>({[`__scope${t.scopeName}`]:o})),[o])}};return n.scopeName=t.scopeName,n}},61794:function(e,t,n){"use strict";n.d(t,{Dx:function(){return ee},VY:function(){return Q},aV:function(){return J},dk:function(){return te},fC:function(){return Y},h_:function(){return X},x8:function(){return ne},xz:function(){return K}});var r=n(57384),o=n(67597),i=n(90149),a=n(71641),s=n(61544),c=n(57458),u=n(82305),l=n(30945),f=n(98791),d=n(74431),p=n(8591),h=n(4300),m=n(57565),g=n(76444),v=n(78440),y=n(12189);const b="Dialog",[_,E]=(0,s.b)(b),[w,S]=_(b),T=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:s=!0}=e,l=(0,o.useRef)(null),f=(0,o.useRef)(null),[d=!1,p]=(0,u.T)({prop:r,defaultProp:i,onChange:a});return(0,o.createElement)(w,{scope:t,triggerRef:l,contentRef:f,contentId:(0,c.M)(),titleId:(0,c.M)(),descriptionId:(0,c.M)(),open:d,onOpenChange:p,onOpenToggle:(0,o.useCallback)((()=>p((e=>!e))),[p]),modal:s},n)},x="DialogTrigger",A=(0,o.forwardRef)(((e,t)=>{const{__scopeDialog:n,...s}=e,c=S(x,n),u=(0,a.e)(t,c.triggerRef);return(0,o.createElement)(h.WV.button,(0,r.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":G(c.open)},s,{ref:u,onClick:(0,i.M)(e.onClick,c.onOpenToggle)}))})),O="DialogPortal",[C,I]=_(O,{forceMount:void 0}),P=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=S(O,t);return(0,o.createElement)(C,{scope:t,forceMount:n},o.Children.map(r,(e=>(0,o.createElement)(p.z,{present:n||a.open},(0,o.createElement)(d.h,{asChild:!0,container:i},e)))))},k="DialogOverlay",j=(0,o.forwardRef)(((e,t)=>{const n=I(k,e.__scopeDialog),{forceMount:i=n.forceMount,...a}=e,s=S(k,e.__scopeDialog);return s.modal?(0,o.createElement)(p.z,{present:i||s.open},(0,o.createElement)(R,(0,r.Z)({},a,{ref:t}))):null})),R=(0,o.forwardRef)(((e,t)=>{const{__scopeDialog:n,...i}=e,a=S(k,n);return(0,o.createElement)(g.Z,{as:y.g7,allowPinchZoom:!0,shards:[a.contentRef]},(0,o.createElement)(h.WV.div,(0,r.Z)({"data-state":G(a.open)},i,{ref:t,style:{pointerEvents:"auto",...i.style}})))})),N="DialogContent",D=(0,o.forwardRef)(((e,t)=>{const n=I(N,e.__scopeDialog),{forceMount:i=n.forceMount,...a}=e,s=S(N,e.__scopeDialog);return(0,o.createElement)(p.z,{present:i||s.open},s.modal?(0,o.createElement)(Z,(0,r.Z)({},a,{ref:t})):(0,o.createElement)(L,(0,r.Z)({},a,{ref:t})))})),Z=(0,o.forwardRef)(((e,t)=>{const n=S(N,e.__scopeDialog),s=(0,o.useRef)(null),c=(0,a.e)(t,n.contentRef,s);return(0,o.useEffect)((()=>{const e=s.current;if(e)return(0,v.Ry)(e)}),[]),(0,o.createElement)(M,(0,r.Z)({},e,{ref:c,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.M)(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:(0,i.M)(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:(0,i.M)(e.onFocusOutside,(e=>e.preventDefault()))}))})),L=(0,o.forwardRef)(((e,t)=>{const n=S(N,e.__scopeDialog),i=(0,o.useRef)(!1),a=(0,o.useRef)(!1);return(0,o.createElement)(M,(0,r.Z)({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var r,o;(null===(r=e.onCloseAutoFocus)||void 0===r||r.call(e,t),t.defaultPrevented)||(i.current||null===(o=n.triggerRef.current)||void 0===o||o.focus(),t.preventDefault());i.current=!1,a.current=!1},onInteractOutside:t=>{var r,o;null===(r=e.onInteractOutside)||void 0===r||r.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const s=t.target;(null===(o=n.triggerRef.current)||void 0===o?void 0:o.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}}))})),M=(0,o.forwardRef)(((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:c,...u}=e,d=S(N,n),p=(0,o.useRef)(null),h=(0,a.e)(t,p);return(0,m.EW)(),(0,o.createElement)(o.Fragment,null,(0,o.createElement)(f.M,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:c},(0,o.createElement)(l.XB,(0,r.Z)({role:"dialog",id:d.contentId,"aria-describedby":d.descriptionId,"aria-labelledby":d.titleId,"data-state":G(d.open)},u,{ref:h,onDismiss:()=>d.onOpenChange(!1)}))),!1)})),F="DialogTitle",B=(0,o.forwardRef)(((e,t)=>{const{__scopeDialog:n,...i}=e,a=S(F,n);return(0,o.createElement)(h.WV.h2,(0,r.Z)({id:a.titleId},i,{ref:t}))})),U="DialogDescription",V=(0,o.forwardRef)(((e,t)=>{const{__scopeDialog:n,...i}=e,a=S(U,n);return(0,o.createElement)(h.WV.p,(0,r.Z)({id:a.descriptionId},i,{ref:t}))})),H="DialogClose",q=(0,o.forwardRef)(((e,t)=>{const{__scopeDialog:n,...a}=e,s=S(H,n);return(0,o.createElement)(h.WV.button,(0,r.Z)({type:"button"},a,{ref:t,onClick:(0,i.M)(e.onClick,(()=>s.onOpenChange(!1)))}))}));function G(e){return e?"open":"closed"}const W="DialogTitleWarning",[z,$]=(0,s.k)(W,{contentName:N,titleName:F,docsSlug:"dialog"}),Y=T,K=A,X=P,J=j,Q=D,ee=B,te=V,ne=q},4460:function(e,t,n){"use strict";n.d(t,{_9:function(){return i},gm:function(){return a}});var r=n(67597);const o=(0,r.createContext)(void 0),i=e=>{const{dir:t,children:n}=e;return(0,r.createElement)(o.Provider,{value:t},n)};function a(e){const t=(0,r.useContext)(o);return e||t||"ltr"}},30945:function(e,t,n){"use strict";n.d(t,{XB:function(){return h}});var r=n(57384),o=n(67597),i=n(90149),a=n(4300),s=n(71641),c=n(59235);const u="dismissableLayer.update",l="dismissableLayer.pointerDownOutside",f="dismissableLayer.focusOutside";let d;const p=(0,o.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),h=(0,o.forwardRef)(((e,t)=>{var n;const{disableOutsidePointerEvents:h=!1,onEscapeKeyDown:v,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:_,onDismiss:E,...w}=e,S=(0,o.useContext)(p),[T,x]=(0,o.useState)(null),A=null!==(n=null===T||void 0===T?void 0:T.ownerDocument)&&void 0!==n?n:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,O]=(0,o.useState)({}),C=(0,s.e)(t,(e=>x(e))),I=Array.from(S.layers),[P]=[...S.layersWithOutsidePointerEventsDisabled].slice(-1),k=I.indexOf(P),j=T?I.indexOf(T):-1,R=S.layersWithOutsidePointerEventsDisabled.size>0,N=j>=k,D=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=(0,c.W)(e),r=(0,o.useRef)(!1),i=(0,o.useRef)((()=>{}));return(0,o.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){const o={originalEvent:e};function a(){g(l,n,o,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=a,t.addEventListener("click",i.current,{once:!0})):a()}else t.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}}),[t,n]),{onPointerDownCapture:()=>r.current=!0}}((e=>{const t=e.target,n=[...S.branches].some((e=>e.contains(t)));N&&!n&&(null===y||void 0===y||y(e),null===_||void 0===_||_(e),e.defaultPrevented||null===E||void 0===E||E())}),A),Z=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=(0,c.W)(e),r=(0,o.useRef)(!1);return(0,o.useEffect)((()=>{const e=e=>{if(e.target&&!r.current){g(f,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}((e=>{const t=e.target;[...S.branches].some((e=>e.contains(t)))||(null===b||void 0===b||b(e),null===_||void 0===_||_(e),e.defaultPrevented||null===E||void 0===E||E())}),A);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const n=(0,c.W)(e);(0,o.useEffect)((()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[n,t])}((e=>{j===S.layers.size-1&&(null===v||void 0===v||v(e),!e.defaultPrevented&&E&&(e.preventDefault(),E()))}),A),(0,o.useEffect)((()=>{if(T)return h&&(0===S.layersWithOutsidePointerEventsDisabled.size&&(d=A.body.style.pointerEvents,A.body.style.pointerEvents="none"),S.layersWithOutsidePointerEventsDisabled.add(T)),S.layers.add(T),m(),()=>{h&&1===S.layersWithOutsidePointerEventsDisabled.size&&(A.body.style.pointerEvents=d)}}),[T,A,h,S]),(0,o.useEffect)((()=>()=>{T&&(S.layers.delete(T),S.layersWithOutsidePointerEventsDisabled.delete(T),m())}),[T,S]),(0,o.useEffect)((()=>{const e=()=>O({});return document.addEventListener(u,e),()=>document.removeEventListener(u,e)}),[]),(0,o.createElement)(a.WV.div,(0,r.Z)({},w,{ref:C,style:{pointerEvents:R?N?"auto":"none":void 0,...e.style},onFocusCapture:(0,i.M)(e.onFocusCapture,Z.onFocusCapture),onBlurCapture:(0,i.M)(e.onBlurCapture,Z.onBlurCapture),onPointerDownCapture:(0,i.M)(e.onPointerDownCapture,D.onPointerDownCapture)}))}));function m(){const e=new CustomEvent(u);document.dispatchEvent(e)}function g(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(0,a.jH)(o,i):o.dispatchEvent(i)}},57565:function(e,t,n){"use strict";n.d(t,{EW:function(){return i}});var r=n(67597);let o=0;function i(){(0,r.useEffect)((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:a()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:a()),o++,()=>{1===o&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),o--}}),[])}function a(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}},98791:function(e,t,n){"use strict";n.d(t,{M:function(){return f}});var r=n(57384),o=n(67597),i=n(71641),a=n(4300),s=n(59235);const c="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",l={bubbles:!1,cancelable:!0},f=(0,o.forwardRef)(((e,t)=>{const{loop:n=!1,trapped:f=!1,onMountAutoFocus:h,onUnmountAutoFocus:v,...y}=e,[b,_]=(0,o.useState)(null),E=(0,s.W)(h),w=(0,s.W)(v),S=(0,o.useRef)(null),T=(0,i.e)(t,(e=>_(e))),x=(0,o.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,o.useEffect)((()=>{if(f){function e(e){if(x.paused||!b)return;const t=e.target;b.contains(t)?S.current=t:m(S.current,{select:!0})}function t(e){if(x.paused||!b)return;const t=e.relatedTarget;null!==t&&(b.contains(t)||m(S.current,{select:!0}))}function n(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&m(b)}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return b&&r.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}}),[f,b,x.paused]),(0,o.useEffect)((()=>{if(b){g.add(x);const t=document.activeElement;if(!b.contains(t)){const n=new CustomEvent(c,l);b.addEventListener(c,E),b.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(m(r,{select:t}),document.activeElement!==n)return}((e=d(b),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&m(b))}return()=>{b.removeEventListener(c,E),setTimeout((()=>{const e=new CustomEvent(u,l);b.addEventListener(u,w),b.dispatchEvent(e),e.defaultPrevented||m(null!==t&&void 0!==t?t:document.body,{select:!0}),b.removeEventListener(u,w),g.remove(x)}),0)}}var e}),[b,E,w,x]);const A=(0,o.useCallback)((e=>{if(!n&&!f)return;if(x.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){const t=e.currentTarget,[o,i]=function(e){const t=d(e),n=p(t,e),r=p(t.reverse(),e);return[n,r]}(t);o&&i?e.shiftKey||r!==i?e.shiftKey&&r===o&&(e.preventDefault(),n&&m(i,{select:!0})):(e.preventDefault(),n&&m(o,{select:!0})):r===t&&e.preventDefault()}}),[n,f,x.paused]);return(0,o.createElement)(a.WV.div,(0,r.Z)({tabIndex:-1},y,{ref:T,onKeyDown:A}))}));function d(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(const n of e)if(!h(n,{upTo:t}))return n}function h(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function m(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const g=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null===n||void 0===n||n.pause()),e=v(e,t),e.unshift(t)},remove(t){var n;e=v(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function v(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}},57458:function(e,t,n){"use strict";var r;n.d(t,{M:function(){return c}});var o=n(67597),i=n(65672);const a=(r||(r=n.t(o,2)))["useId".toString()]||(()=>{});let s=0;function c(e){const[t,n]=o.useState(a());return(0,i.b)((()=>{e||n((e=>null!==e&&void 0!==e?e:String(s++)))}),[e]),e||(t?`radix-${t}`:"")}},26550:function(e,t,n){"use strict";n.d(t,{ee:function(){return Ye},Eh:function(){return Xe},VY:function(){return Ke},fC:function(){return $e},D7:function(){return je}});var r=n(57384),o=n(67597);const i=["top","right","bottom","left"],a=Math.min,s=Math.max,c=Math.round,u=Math.floor,l=e=>({x:e,y:e}),f={left:"right",right:"left",bottom:"top",top:"bottom"},d={start:"end",end:"start"};function p(e,t,n){return s(e,a(t,n))}function h(e,t){return"function"===typeof e?e(t):e}function m(e){return e.split("-")[0]}function g(e){return e.split("-")[1]}function v(e){return"x"===e?"y":"x"}function y(e){return"y"===e?"height":"width"}function b(e){return["top","bottom"].includes(m(e))?"y":"x"}function _(e){return v(b(e))}function E(e){return e.replace(/start|end/g,(e=>d[e]))}function w(e){return e.replace(/left|right|bottom|top/g,(e=>f[e]))}function S(e){return"number"!==typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function T(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function x(e,t,n){let{reference:r,floating:o}=e;const i=b(t),a=_(t),s=y(a),c=m(t),u="y"===i,l=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[s]/2-o[s]/2;let p;switch(c){case"top":p={x:l,y:r.y-o.height};break;case"bottom":p={x:l,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(g(t)){case"start":p[a]-=d*(n&&u?-1:1);break;case"end":p[a]+=d*(n&&u?-1:1)}return p}async function A(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:l="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=h(t,e),m=S(p),g=s[d?"floating"===f?"reference":"floating":f],v=T(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:l,strategy:c})),y="floating"===f?{...a.floating,x:r,y:o}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),_=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},E=T(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:b,strategy:c}):y);return{top:(v.top-E.top+m.top)/_.y,bottom:(E.bottom-v.bottom+m.bottom)/_.y,left:(v.left-E.left+m.left)/_.x,right:(E.right-v.right+m.right)/_.x}}function O(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function C(e){return i.some((t=>e[t]>=0))}const I=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,c=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=m(n),s=g(n),c="y"===b(n),u=["left","top"].includes(a)?-1:1,l=i&&c?-1:1,f=h(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:v}="number"===typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return s&&"number"===typeof v&&(p="end"===s?-1*v:v),c?{x:p*l,y:d*u}:{x:d*u,y:p*l}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:a}}}}};function P(e){return R(e)?(e.nodeName||"").toLowerCase():"#document"}function k(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function j(e){var t;return null==(t=(R(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function R(e){return e instanceof Node||e instanceof k(e).Node}function N(e){return e instanceof Element||e instanceof k(e).Element}function D(e){return e instanceof HTMLElement||e instanceof k(e).HTMLElement}function Z(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof k(e).ShadowRoot)}function L(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=V(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function M(e){return["table","td","th"].includes(P(e))}function F(e){const t=B(),n=V(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function B(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function U(e){return["html","body","#document"].includes(P(e))}function V(e){return k(e).getComputedStyle(e)}function H(e){return N(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function q(e){if("html"===P(e))return e;const t=e.assignedSlot||e.parentNode||Z(e)&&e.host||j(e);return Z(t)?t.host:t}function G(e){const t=q(e);return U(t)?e.ownerDocument?e.ownerDocument.body:e.body:D(t)&&L(t)?t:G(t)}function W(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=G(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=k(o);return i?t.concat(a,a.visualViewport||[],L(o)?o:[],a.frameElement&&n?W(a.frameElement):[]):t.concat(o,W(o,[],n))}function z(e){const t=V(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=D(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=c(n)!==i||c(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function $(e){return N(e)?e:e.contextElement}function Y(e){const t=$(e);if(!D(t))return l(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=z(t);let a=(i?c(n.width):n.width)/r,s=(i?c(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const K=l(0);function X(e){const t=k(e);return B()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:K}function J(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=$(e);let a=l(1);t&&(r?N(r)&&(a=Y(r)):a=Y(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==k(e))&&t}(i,n,r)?X(i):l(0);let c=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,f=o.width/a.x,d=o.height/a.y;if(i){const e=k(i),t=r&&N(r)?k(r):r;let n=e,o=n.frameElement;for(;o&&r&&t!==n;){const e=Y(o),t=o.getBoundingClientRect(),r=V(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,u*=e.y,f*=e.x,d*=e.y,c+=i,u+=a,n=k(o),o=n.frameElement}}return T({width:f,height:d,x:c,y:u})}const Q=[":popover-open",":modal"];function ee(e){return Q.some((t=>{try{return e.matches(t)}catch(n){return!1}}))}function te(e){return J(j(e)).left+H(e).scrollLeft}function ne(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=k(e),r=j(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const e=B();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}(e,n);else if("document"===t)r=function(e){const t=j(e),n=H(e),r=e.ownerDocument.body,o=s(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=s(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+te(e);const c=-n.scrollTop;return"rtl"===V(r).direction&&(a+=s(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:c}}(j(e));else if(N(t))r=function(e,t){const n=J(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=D(e)?Y(e):l(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=X(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return T(r)}function re(e,t){const n=q(e);return!(n===t||!N(n)||U(n))&&("fixed"===V(n).position||re(n,t))}function oe(e,t,n){const r=D(t),o=j(t),i="fixed"===n,a=J(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const c=l(0);if(r||!r&&!i)if(("body"!==P(t)||L(o))&&(s=H(t)),r){const e=J(t,!0,i,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else o&&(c.x=te(o));return{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function ie(e,t){return D(e)&&"fixed"!==V(e).position?t?t(e):e.offsetParent:null}function ae(e,t){const n=k(e);if(!D(e)||ee(e))return n;let r=ie(e,t);for(;r&&M(r)&&"static"===V(r).position;)r=ie(r,t);return r&&("html"===P(r)||"body"===P(r)&&"static"===V(r).position&&!F(r))?n:r||function(e){let t=q(e);for(;D(t)&&!U(t);){if(F(t))return t;t=q(t)}return null}(e)||n}const se={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=j(r),s=!!t&&ee(t.floating);if(r===a||s&&i)return n;let c={scrollLeft:0,scrollTop:0},u=l(1);const f=l(0),d=D(r);if((d||!d&&!i)&&(("body"!==P(r)||L(a))&&(c=H(r)),D(r))){const e=J(r);u=Y(r),f.x=e.x+r.clientLeft,f.y=e.y+r.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x,y:n.y*u.y-c.scrollTop*u.y+f.y}},getDocumentElement:j,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i="clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let r=W(e,[],!1).filter((e=>N(e)&&"body"!==P(e))),o=null;const i="fixed"===V(e).position;let a=i?q(e):e;for(;N(a)&&!U(a);){const t=V(a),n=F(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||L(a)&&!n&&re(e,a))?r=r.filter((e=>e!==a)):o=t,a=q(a)}return t.set(e,r),r}(t,this._c):[].concat(n),c=[...i,r],u=c[0],l=c.reduce(((e,n)=>{const r=ne(t,n,o);return e.top=s(r.top,e.top),e.right=a(r.right,e.right),e.bottom=a(r.bottom,e.bottom),e.left=s(r.left,e.left),e}),ne(t,u,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:ae,getElementRects:async function(e){const t=this.getOffsetParent||ae,n=this.getDimensions;return{reference:oe(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=z(e);return{width:t,height:n}},getScale:Y,isElement:N,isRTL:function(e){return"rtl"===V(e).direction}};function ce(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:c="function"===typeof ResizeObserver,layoutShift:l="function"===typeof IntersectionObserver,animationFrame:f=!1}=r,d=$(e),p=o||i?[...d?W(d):[],...W(t)]:[];p.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const h=d&&l?function(e,t){let n,r=null;const o=j(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function c(l,f){void 0===l&&(l=!1),void 0===f&&(f=1),i();const{left:d,top:p,width:h,height:m}=e.getBoundingClientRect();if(l||t(),!h||!m)return;const g={rootMargin:-u(p)+"px "+-u(o.clientWidth-(d+h))+"px "+-u(o.clientHeight-(p+m))+"px "+-u(d)+"px",threshold:s(0,a(1,f))||1};let v=!0;function y(e){const t=e[0].intersectionRatio;if(t!==f){if(!v)return c();t?c(!1,t):n=setTimeout((()=>{c(!1,1e-7)}),100)}v=!1}try{r=new IntersectionObserver(y,{...g,root:o.ownerDocument})}catch(b){r=new IntersectionObserver(y,g)}r.observe(e)}(!0),i}(d,n):null;let m,g=-1,v=null;c&&(v=new ResizeObserver((e=>{let[r]=e;r&&r.target===d&&v&&(v.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var e;null==(e=v)||e.observe(t)}))),n()})),d&&!f&&v.observe(d),v.observe(t));let y=f?J(e):null;return f&&function t(){const r=J(e);!y||r.x===y.x&&r.y===y.y&&r.width===y.width&&r.height===y.height||n();y=r,m=requestAnimationFrame(t)}(),n(),()=>{var e;p.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==h||h(),null==(e=v)||e.disconnect(),v=null,f&&cancelAnimationFrame(m)}}const ue=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=h(e,t),u={x:n,y:r},l=await A(t,c),f=b(m(o)),d=v(f);let g=u[d],y=u[f];if(i){const e="y"===d?"bottom":"right";g=p(g+l["y"===d?"top":"left"],g,g-l[e])}if(a){const e="y"===f?"bottom":"right";y=p(y+l["y"===f?"top":"left"],y,y-l[e])}const _=s.fn({...t,[d]:g,[f]:y});return{..._,data:{x:_.x-n,y:_.y-r}}}}},le=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:b=!0,...S}=h(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const T=m(o),x=m(s)===s,O=await(null==c.isRTL?void 0:c.isRTL(u.floating)),C=d||(x||!b?[w(s)]:function(e){const t=w(e);return[E(e),t,E(t)]}(s));d||"none"===v||C.push(...function(e,t,n,r){const o=g(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(m(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(E)))),i}(s,b,v,O));const I=[s,...C],P=await A(t,S),k=[];let j=(null==(r=i.flip)?void 0:r.overflows)||[];if(l&&k.push(P[T]),f){const e=function(e,t,n){void 0===n&&(n=!1);const r=g(e),o=_(e),i=y(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=w(a)),[a,w(a)]}(o,a,O);k.push(P[e[0]],P[e[1]])}if(j=[...j,{placement:o,overflows:k}],!k.every((e=>e<=0))){var R,N;const e=((null==(R=i.flip)?void 0:R.index)||0)+1,t=I[e];if(t)return{data:{index:e,overflows:j},reset:{placement:t}};let n=null==(N=j.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:N.placement;if(!n)switch(p){case"bestFit":{var D;const e=null==(D=j.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},fe=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:c=(()=>{}),...u}=h(e,t),l=await A(t,u),f=m(n),d=g(n),p="y"===b(n),{width:v,height:y}=r.floating;let _,E;"top"===f||"bottom"===f?(_=f,E=d===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(E=f,_="end"===d?"top":"bottom");const w=y-l[_],S=v-l[E],T=!t.middlewareData.shift;let x=w,O=S;if(p){const e=v-l.left-l.right;O=d||T?a(S,e):e}else{const e=y-l.top-l.bottom;x=d||T?a(w,e):e}if(T&&!d){const e=s(l.left,0),t=s(l.right,0),n=s(l.top,0),r=s(l.bottom,0);p?O=v-2*(0!==e||0!==t?e+t:s(l.left,l.right)):x=y-2*(0!==n||0!==r?n+r:s(l.top,l.bottom))}await c({...t,availableWidth:O,availableHeight:x});const C=await o.getDimensions(i.floating);return v!==C.width||y!==C.height?{reset:{rects:!0}}:{}}}},de=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=h(e,t);switch(r){case"referenceHidden":{const e=O(await A(t,{...o,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:C(e)}}}case"escaped":{const e=O(await A(t,{...o,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:C(e)}}}default:return{}}}}},pe=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:c,middlewareData:u}=t,{element:l,padding:f=0}=h(e,t)||{};if(null==l)return{};const d=S(f),m={x:n,y:r},v=_(o),b=y(v),E=await s.getDimensions(l),w="y"===v,T=w?"top":"left",x=w?"bottom":"right",A=w?"clientHeight":"clientWidth",O=i.reference[b]+i.reference[v]-m[v]-i.floating[b],C=m[v]-i.reference[v],I=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let P=I?I[A]:0;P&&await(null==s.isElement?void 0:s.isElement(I))||(P=c.floating[A]||i.floating[b]);const k=O/2-C/2,j=P/2-E[b]/2-1,R=a(d[T],j),N=a(d[x],j),D=R,Z=P-E[b]-N,L=P/2-E[b]/2+k,M=p(D,L,Z),F=!u.arrow&&null!=g(o)&&L!==M&&i.reference[b]/2-(Ln&&(p=n)}if(u){var E,w;const e="y"===d?"width":"height",t=["top","left"].includes(m(o)),n=i.reference[f]-i.floating[e]+(t&&(null==(E=a.offset)?void 0:E[f])||0)+(t?0:_.crossAxis),r=i.reference[f]+i.reference[e]+(t?0:(null==(w=a.offset)?void 0:w[f])||0)-(t?_.crossAxis:0);gr&&(g=r)}return{[d]:p,[f]:g}}}},me=(e,t,n)=>{const r=new Map,o={platform:se,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),c=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:l,y:f}=x(u,r,c),d=r,p={},h=0;for(let m=0;m{t.current=e})),t}var we=n(4300);const Se=(0,o.forwardRef)(((e,t)=>{const{children:n,width:i=10,height:a=5,...s}=e;return(0,o.createElement)(we.WV.svg,(0,r.Z)({},s,{ref:t,width:i,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:(0,o.createElement)("polygon",{points:"0,0 30,0 15,10"}))})),Te=Se;var xe=n(71641),Ae=n(61544),Oe=n(59235),Ce=n(65672),Ie=n(81319);const Pe="Popper",[ke,je]=(0,Ae.b)(Pe),[Re,Ne]=ke(Pe),De=e=>{const{__scopePopper:t,children:n}=e,[r,i]=(0,o.useState)(null);return(0,o.createElement)(Re,{scope:t,anchor:r,onAnchorChange:i},n)},Ze="PopperAnchor",Le=(0,o.forwardRef)(((e,t)=>{const{__scopePopper:n,virtualRef:i,...a}=e,s=Ne(Ze,n),c=(0,o.useRef)(null),u=(0,xe.e)(t,c);return(0,o.useEffect)((()=>{s.onAnchorChange((null===i||void 0===i?void 0:i.current)||c.current)})),i?null:(0,o.createElement)(we.WV.div,(0,r.Z)({},a,{ref:u}))})),Me="PopperContent",[Fe,Be]=ke(Me),Ue=(0,o.forwardRef)(((e,t)=>{var n,i,a,s,c,u,l,f;const{__scopePopper:d,side:p="bottom",sideOffset:h=0,align:m="center",alignOffset:g=0,arrowPadding:v=0,avoidCollisions:y=!0,collisionBoundary:b=[],collisionPadding:_=0,sticky:E="partial",hideWhenDetached:w=!1,updatePositionStrategy:S="optimized",onPlaced:T,...x}=e,A=Ne(Me,d),[O,C]=(0,o.useState)(null),P=(0,xe.e)(t,(e=>C(e))),[k,j]=(0,o.useState)(null),R=(0,Ie.t)(k),N=null!==(n=null===R||void 0===R?void 0:R.width)&&void 0!==n?n:0,D=null!==(i=null===R||void 0===R?void 0:R.height)&&void 0!==i?i:0,Z=p+("center"!==m?"-"+m:""),L="number"===typeof _?_:{top:0,right:0,bottom:0,left:0,..._},M=Array.isArray(b)?b:[b],F=M.length>0,B={padding:L,boundary:M.filter(Ge),altBoundary:F},{refs:U,floatingStyles:V,placement:H,isPositioned:q,middlewareData:G}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:u,open:l}=e,[f,d]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=o.useState(r);ye(p,r)||h(r);const[m,g]=o.useState(null),[v,y]=o.useState(null),b=o.useCallback((e=>{e!==S.current&&(S.current=e,g(e))}),[]),_=o.useCallback((e=>{e!==T.current&&(T.current=e,y(e))}),[]),E=a||m,w=s||v,S=o.useRef(null),T=o.useRef(null),x=o.useRef(f),A=null!=u,O=Ee(u),C=Ee(i),I=o.useCallback((()=>{if(!S.current||!T.current)return;const e={placement:t,strategy:n,middleware:p};C.current&&(e.platform=C.current),me(S.current,T.current,e).then((e=>{const t={...e,isPositioned:!0};P.current&&!ye(x.current,t)&&(x.current=t,ge.flushSync((()=>{d(t)})))}))}),[p,t,n,C]);ve((()=>{!1===l&&x.current.isPositioned&&(x.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[l]);const P=o.useRef(!1);ve((()=>(P.current=!0,()=>{P.current=!1})),[]),ve((()=>{if(E&&(S.current=E),w&&(T.current=w),E&&w){if(O.current)return O.current(E,w,I);I()}}),[E,w,I,O,A]);const k=o.useMemo((()=>({reference:S,floating:T,setReference:b,setFloating:_})),[b,_]),j=o.useMemo((()=>({reference:E,floating:w})),[E,w]),R=o.useMemo((()=>{const e={position:n,left:0,top:0};if(!j.floating)return e;const t=_e(j.floating,f.x),r=_e(j.floating,f.y);return c?{...e,transform:"translate("+t+"px, "+r+"px)",...be(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,c,j.floating,f.x,f.y]);return o.useMemo((()=>({...f,update:I,refs:k,elements:j,floatingStyles:R})),[f,I,k,j,R])}({strategy:"fixed",placement:Z,whileElementsMounted:(...e)=>ce(...e,{animationFrame:"always"===S}),elements:{reference:A.anchor},middleware:[I({mainAxis:h+D,alignmentAxis:g}),y&&ue({mainAxis:!0,crossAxis:!1,limiter:"partial"===E?he():void 0,...B}),y&&le({...B}),fe({...B,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${o}px`),a.setProperty("--radix-popper-anchor-height",`${i}px`)}}),k&&(W={element:k,padding:v},{name:"arrow",options:W,fn(e){const{element:t,padding:n}="function"===typeof W?W(e):W;return t&&(r=t,{}.hasOwnProperty.call(r,"current"))?null!=t.current?pe({element:t.current,padding:n}).fn(e):{}:t?pe({element:t,padding:n}).fn(e):{};var r}}),We({arrowWidth:N,arrowHeight:D}),w&&de({strategy:"referenceHidden",...B})]});var W;const[z,$]=ze(H),Y=(0,Oe.W)(T);(0,Ce.b)((()=>{q&&(null===Y||void 0===Y||Y())}),[q,Y]);const K=null===(a=G.arrow)||void 0===a?void 0:a.x,X=null===(s=G.arrow)||void 0===s?void 0:s.y,J=0!==(null===(c=G.arrow)||void 0===c?void 0:c.centerOffset),[Q,ee]=(0,o.useState)();return(0,Ce.b)((()=>{O&&ee(window.getComputedStyle(O).zIndex)}),[O]),(0,o.createElement)("div",{ref:U.setFloating,"data-radix-popper-content-wrapper":"",style:{...V,transform:q?V.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Q,"--radix-popper-transform-origin":[null===(u=G.transformOrigin)||void 0===u?void 0:u.x,null===(l=G.transformOrigin)||void 0===l?void 0:l.y].join(" ")},dir:e.dir},(0,o.createElement)(Fe,{scope:d,placedSide:z,onArrowChange:j,arrowX:K,arrowY:X,shouldHideArrow:J},(0,o.createElement)(we.WV.div,(0,r.Z)({"data-side":z,"data-align":$},x,{ref:P,style:{...x.style,animation:q?void 0:"none",opacity:null!==(f=G.hide)&&void 0!==f&&f.referenceHidden?0:void 0}}))))})),Ve="PopperArrow",He={top:"bottom",right:"left",bottom:"top",left:"right"},qe=(0,o.forwardRef)((function(e,t){const{__scopePopper:n,...i}=e,a=Be(Ve,n),s=He[a.placedSide];return(0,o.createElement)("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0}},(0,o.createElement)(Te,(0,r.Z)({},i,{ref:t,style:{...i.style,display:"block"}})))}));function Ge(e){return null!==e}const We=e=>({name:"transformOrigin",options:e,fn(t){var n,r,o,i,a;const{placement:s,rects:c,middlewareData:u}=t,l=0!==(null===(n=u.arrow)||void 0===n?void 0:n.centerOffset),f=l?0:e.arrowWidth,d=l?0:e.arrowHeight,[p,h]=ze(s),m={start:"0%",center:"50%",end:"100%"}[h],g=(null!==(r=null===(o=u.arrow)||void 0===o?void 0:o.x)&&void 0!==r?r:0)+f/2,v=(null!==(i=null===(a=u.arrow)||void 0===a?void 0:a.y)&&void 0!==i?i:0)+d/2;let y="",b="";return"bottom"===p?(y=l?m:`${g}px`,b=-d+"px"):"top"===p?(y=l?m:`${g}px`,b=`${c.floating.height+d}px`):"right"===p?(y=-d+"px",b=l?m:`${v}px`):"left"===p&&(y=`${c.floating.width+d}px`,b=l?m:`${v}px`),{data:{x:y,y:b}}}});function ze(e){const[t,n="center"]=e.split("-");return[t,n]}const $e=De,Ye=Le,Ke=Ue,Xe=qe},74431:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(57384),o=n(67597),i=n(72934),a=n(4300);const s=(0,o.forwardRef)(((e,t)=>{var n;const{container:s=(null===globalThis||void 0===globalThis||null===(n=globalThis.document)||void 0===n?void 0:n.body),...c}=e;return s?i.createPortal((0,o.createElement)(a.WV.div,(0,r.Z)({},c,{ref:t})),s):null}))},8591:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(67597),o=n(72934),i=n(71641),a=n(65672);const s=e=>{const{present:t,children:n}=e,s=function(e){const[t,n]=(0,r.useState)(),i=(0,r.useRef)({}),s=(0,r.useRef)(e),u=(0,r.useRef)("none"),l=e?"mounted":"unmounted",[f,d]=function(e,t){return(0,r.useReducer)(((e,n)=>{const r=t[e][n];return null!==r&&void 0!==r?r:e}),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,r.useEffect)((()=>{const e=c(i.current);u.current="mounted"===f?e:"none"}),[f]),(0,a.b)((()=>{const t=i.current,n=s.current;if(n!==e){const r=u.current,o=c(t);if(e)d("MOUNT");else if("none"===o||"none"===(null===t||void 0===t?void 0:t.display))d("UNMOUNT");else{const e=r!==o;d(n&&e?"ANIMATION_OUT":"UNMOUNT")}s.current=e}}),[e,d]),(0,a.b)((()=>{if(t){const e=e=>{const n=c(i.current).includes(e.animationName);e.target===t&&n&&(0,o.flushSync)((()=>d("ANIMATION_END")))},n=e=>{e.target===t&&(u.current=c(i.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}d("ANIMATION_END")}),[t,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,r.useCallback)((e=>{e&&(i.current=getComputedStyle(e)),n(e)}),[])}}(t),u="function"===typeof n?n({present:s.isPresent}):r.Children.only(n),l=(0,i.e)(s.ref,u.ref);return"function"===typeof n||s.isPresent?(0,r.cloneElement)(u,{ref:l}):null};function c(e){return(null===e||void 0===e?void 0:e.animationName)||"none"}s.displayName="Presence"},4300:function(e,t,n){"use strict";n.d(t,{WV:function(){return s},jH:function(){return c}});var r=n(57384),o=n(67597),i=n(72934),a=n(12189);const s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const n=(0,o.forwardRef)(((e,n)=>{const{asChild:i,...s}=e,c=i?a.g7:t;return(0,o.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,o.createElement)(c,(0,r.Z)({},s,{ref:n}))}));return n.displayName=`Primitive.${t}`,{...e,[t]:n}}),{});function c(e,t){e&&(0,i.flushSync)((()=>e.dispatchEvent(t)))}},46531:function(e,t,n){"use strict";n.d(t,{Pc:function(){return E},ck:function(){return k},fC:function(){return P}});var r=n(57384),o=n(67597),i=n(90149),a=n(67016),s=n(71641),c=n(61544),u=n(57458),l=n(4300),f=n(59235),d=n(82305),p=n(4460);const h="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[v,y,b]=(0,a.B)(g),[_,E]=(0,c.b)(g,[b]),[w,S]=_(g),T=(0,o.forwardRef)(((e,t)=>(0,o.createElement)(v.Provider,{scope:e.__scopeRovingFocusGroup},(0,o.createElement)(v.Slot,{scope:e.__scopeRovingFocusGroup},(0,o.createElement)(x,(0,r.Z)({},e,{ref:t})))))),x=(0,o.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:c=!1,dir:u,currentTabStopId:g,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:b,onEntryFocus:_,...E}=e,S=(0,o.useRef)(null),T=(0,s.e)(t,S),x=(0,p.gm)(u),[A=null,O]=(0,d.T)({prop:g,defaultProp:v,onChange:b}),[C,P]=(0,o.useState)(!1),k=(0,f.W)(_),j=y(n),R=(0,o.useRef)(!1),[N,D]=(0,o.useState)(0);return(0,o.useEffect)((()=>{const e=S.current;if(e)return e.addEventListener(h,k),()=>e.removeEventListener(h,k)}),[k]),(0,o.createElement)(w,{scope:n,orientation:a,dir:x,loop:c,currentTabStopId:A,onItemFocus:(0,o.useCallback)((e=>O(e)),[O]),onItemShiftTab:(0,o.useCallback)((()=>P(!0)),[]),onFocusableItemAdd:(0,o.useCallback)((()=>D((e=>e+1))),[]),onFocusableItemRemove:(0,o.useCallback)((()=>D((e=>e-1))),[])},(0,o.createElement)(l.WV.div,(0,r.Z)({tabIndex:C||0===N?-1:0,"data-orientation":a},E,{ref:T,style:{outline:"none",...e.style},onMouseDown:(0,i.M)(e.onMouseDown,(()=>{R.current=!0})),onFocus:(0,i.M)(e.onFocus,(e=>{const t=!R.current;if(e.target===e.currentTarget&&t&&!C){const t=new CustomEvent(h,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=j().filter((e=>e.focusable));I([e.find((e=>e.active)),e.find((e=>e.id===A)),...e].filter(Boolean).map((e=>e.ref.current)))}}R.current=!1})),onBlur:(0,i.M)(e.onBlur,(()=>P(!1)))})))})),A="RovingFocusGroupItem",O=(0,o.forwardRef)(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:s=!1,tabStopId:c,...f}=e,d=(0,u.M)(),p=c||d,h=S(A,n),m=h.currentTabStopId===p,g=y(n),{onFocusableItemAdd:b,onFocusableItemRemove:_}=h;return(0,o.useEffect)((()=>{if(a)return b(),()=>_()}),[a,b,_]),(0,o.createElement)(v.ItemSlot,{scope:n,id:p,focusable:a,active:s},(0,o.createElement)(l.WV.span,(0,r.Z)({tabIndex:m?0:-1,"data-orientation":h.orientation},f,{ref:t,onMouseDown:(0,i.M)(e.onMouseDown,(e=>{a?h.onItemFocus(p):e.preventDefault()})),onFocus:(0,i.M)(e.onFocus,(()=>h.onItemFocus(p))),onKeyDown:(0,i.M)(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void h.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:C[r]}(e,h.orientation,h.dir);if(void 0!==t){e.preventDefault();let o=g().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=h.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>I(o)))}var n,r}))})))})),C={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function I(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const P=T,k=O},12189:function(e,t,n){"use strict";n.d(t,{A4:function(){return c},g7:function(){return a}});var r=n(57384),o=n(67597),i=n(71641);const a=(0,o.forwardRef)(((e,t)=>{const{children:n,...i}=e,a=o.Children.toArray(n),c=a.find(u);if(c){const e=c.props.children,n=a.map((t=>t===c?o.Children.count(e)>1?o.Children.only(null):(0,o.isValidElement)(e)?e.props.children:null:t));return(0,o.createElement)(s,(0,r.Z)({},i,{ref:t}),(0,o.isValidElement)(e)?(0,o.cloneElement)(e,void 0,n):null)}return(0,o.createElement)(s,(0,r.Z)({},i,{ref:t}),n)}));a.displayName="Slot";const s=(0,o.forwardRef)(((e,t)=>{const{children:n,...r}=e;return(0,o.isValidElement)(n)?(0,o.cloneElement)(n,{...l(r,n.props),ref:t?(0,i.F)(t,n.ref):n.ref}):o.Children.count(n)>1?o.Children.only(null):null}));s.displayName="SlotClone";const c=({children:e})=>(0,o.createElement)(o.Fragment,null,e);function u(e){return(0,o.isValidElement)(e)&&e.type===c}function l(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{i(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}},27754:function(e,t,n){"use strict";n.d(t,{Eh:function(){return G},VY:function(){return q},fC:function(){return V},pn:function(){return T},xz:function(){return H}});var r=n(57384),o=n(67597),i=n(90149),a=n(71641),s=n(61544),c=n(30945),u=n(57458),l=n(26550),f=(n(74431),n(8591)),d=n(4300),p=n(12189),h=n(82305),m=n(41601);const[g,v]=(0,s.b)("Tooltip",[l.D7]),y=(0,l.D7)(),b="TooltipProvider",_=700,E="tooltip.open",[w,S]=g(b),T=e=>{const{__scopeTooltip:t,delayDuration:n=_,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,[s,c]=(0,o.useState)(!0),u=(0,o.useRef)(!1),l=(0,o.useRef)(0);return(0,o.useEffect)((()=>{const e=l.current;return()=>window.clearTimeout(e)}),[]),(0,o.createElement)(w,{scope:t,isOpenDelayed:s,delayDuration:n,onOpen:(0,o.useCallback)((()=>{window.clearTimeout(l.current),c(!1)}),[]),onClose:(0,o.useCallback)((()=>{window.clearTimeout(l.current),l.current=window.setTimeout((()=>c(!0)),r)}),[r]),isPointerInTransitRef:u,onPointerInTransitChange:(0,o.useCallback)((e=>{u.current=e}),[]),disableHoverableContent:i},a)},x="Tooltip",[A,O]=g(x),C=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,f=S(x,e.__scopeTooltip),d=y(t),[p,m]=(0,o.useState)(null),g=(0,u.M)(),v=(0,o.useRef)(0),b=null!==s&&void 0!==s?s:f.disableHoverableContent,_=null!==c&&void 0!==c?c:f.delayDuration,w=(0,o.useRef)(!1),[T=!1,O]=(0,h.T)({prop:r,defaultProp:i,onChange:e=>{e?(f.onOpen(),document.dispatchEvent(new CustomEvent(E))):f.onClose(),null===a||void 0===a||a(e)}}),C=(0,o.useMemo)((()=>T?w.current?"delayed-open":"instant-open":"closed"),[T]),I=(0,o.useCallback)((()=>{window.clearTimeout(v.current),w.current=!1,O(!0)}),[O]),P=(0,o.useCallback)((()=>{window.clearTimeout(v.current),O(!1)}),[O]),k=(0,o.useCallback)((()=>{window.clearTimeout(v.current),v.current=window.setTimeout((()=>{w.current=!0,O(!0)}),_)}),[_,O]);return(0,o.useEffect)((()=>()=>window.clearTimeout(v.current)),[]),(0,o.createElement)(l.fC,d,(0,o.createElement)(A,{scope:t,contentId:g,open:T,stateAttribute:C,trigger:p,onTriggerChange:m,onTriggerEnter:(0,o.useCallback)((()=>{f.isOpenDelayed?k():I()}),[f.isOpenDelayed,k,I]),onTriggerLeave:(0,o.useCallback)((()=>{b?P():window.clearTimeout(v.current)}),[P,b]),onOpen:I,onClose:P,disableHoverableContent:b},n))},I="TooltipTrigger",P=(0,o.forwardRef)(((e,t)=>{const{__scopeTooltip:n,...s}=e,c=O(I,n),u=S(I,n),f=y(n),p=(0,o.useRef)(null),h=(0,a.e)(t,p,c.onTriggerChange),m=(0,o.useRef)(!1),g=(0,o.useRef)(!1),v=(0,o.useCallback)((()=>m.current=!1),[]);return(0,o.useEffect)((()=>()=>document.removeEventListener("pointerup",v)),[v]),(0,o.createElement)(l.ee,(0,r.Z)({asChild:!0},f),(0,o.createElement)(d.WV.button,(0,r.Z)({"aria-describedby":c.open?c.contentId:void 0,"data-state":c.stateAttribute},s,{ref:h,onPointerMove:(0,i.M)(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(g.current||u.isPointerInTransitRef.current||(c.onTriggerEnter(),g.current=!0))})),onPointerLeave:(0,i.M)(e.onPointerLeave,(()=>{c.onTriggerLeave(),g.current=!1})),onPointerDown:(0,i.M)(e.onPointerDown,(()=>{m.current=!0,document.addEventListener("pointerup",v,{once:!0})})),onFocus:(0,i.M)(e.onFocus,(()=>{m.current||c.onOpen()})),onBlur:(0,i.M)(e.onBlur,c.onClose),onClick:(0,i.M)(e.onClick,c.onClose)})))})),k="TooltipPortal",[j,R]=g(k,{forceMount:void 0}),N="TooltipContent",D=(0,o.forwardRef)(((e,t)=>{const n=R(N,e.__scopeTooltip),{forceMount:i=n.forceMount,side:a="top",...s}=e,c=O(N,e.__scopeTooltip);return(0,o.createElement)(f.z,{present:i||c.open},c.disableHoverableContent?(0,o.createElement)(F,(0,r.Z)({side:a},s,{ref:t})):(0,o.createElement)(Z,(0,r.Z)({side:a},s,{ref:t})))})),Z=(0,o.forwardRef)(((e,t)=>{const n=O(N,e.__scopeTooltip),i=S(N,e.__scopeTooltip),s=(0,o.useRef)(null),c=(0,a.e)(t,s),[u,l]=(0,o.useState)(null),{trigger:f,onClose:d}=n,p=s.current,{onPointerInTransitChange:h}=i,m=(0,o.useCallback)((()=>{l(null),h(!1)}),[h]),g=(0,o.useCallback)(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),i=function(e){const t=e.slice();return t.sort(((e,t)=>e.xt.x?1:e.yt.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const e=t[t.length-1],r=t[t.length-2];if(!((e.x-r.x)*(n.y-r.y)>=(e.y-r.y)*(n.x-r.x)))break;t.pop()}t.push(n)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const t=e[r];for(;n.length>=2;){const e=n[n.length-1],r=n[n.length-2];if(!((e.x-r.x)*(t.y-r.y)>=(e.y-r.y)*(t.x-r.x)))break;n.pop()}n.push(t)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);l(i),h(!0)}),[h]);return(0,o.useEffect)((()=>()=>m()),[m]),(0,o.useEffect)((()=>{if(f&&p){const e=e=>g(e,p),t=e=>g(e,f);return f.addEventListener("pointerleave",e),p.addEventListener("pointerleave",t),()=>{f.removeEventListener("pointerleave",e),p.removeEventListener("pointerleave",t)}}}),[f,p,g,m]),(0,o.useEffect)((()=>{if(u){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null===f||void 0===f?void 0:f.contains(t))||(null===p||void 0===p?void 0:p.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,a=t.length-1;ir!==u>r&&n<(c-e)*(r-s)/(u-s)+e&&(o=!o)}return o}(n,u);r?m():o&&(m(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[f,p,u,d,m]),(0,o.createElement)(F,(0,r.Z)({},e,{ref:c}))})),[L,M]=g(x,{isInside:!1}),F=(0,o.forwardRef)(((e,t)=>{const{__scopeTooltip:n,children:i,"aria-label":a,onEscapeKeyDown:s,onPointerDownOutside:u,...f}=e,d=O(N,n),h=y(n),{onClose:g}=d;return(0,o.useEffect)((()=>(document.addEventListener(E,g),()=>document.removeEventListener(E,g))),[g]),(0,o.useEffect)((()=>{if(d.trigger){const e=e=>{const t=e.target;null!==t&&void 0!==t&&t.contains(d.trigger)&&g()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[d.trigger,g]),(0,o.createElement)(c.XB,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:g},(0,o.createElement)(l.VY,(0,r.Z)({"data-state":d.stateAttribute},h,f,{ref:t,style:{...f.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),(0,o.createElement)(p.A4,null,i),(0,o.createElement)(L,{scope:n,isInside:!0},(0,o.createElement)(m.f,{id:d.contentId,role:"tooltip"},a||i))))})),B="TooltipArrow",U=(0,o.forwardRef)(((e,t)=>{const{__scopeTooltip:n,...i}=e,a=y(n);return M(B,n).isInside?null:(0,o.createElement)(l.Eh,(0,r.Z)({},a,i,{ref:t}))}));const V=C,H=P,q=D,G=U},59235:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(67597);function o(e){const t=(0,r.useRef)(e);return(0,r.useEffect)((()=>{t.current=e})),(0,r.useMemo)((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}},82305:function(e,t,n){"use strict";n.d(t,{T:function(){return i}});var r=n(67597),o=n(59235);function i({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[i,a]=function({defaultProp:e,onChange:t}){const n=(0,r.useState)(e),[i]=n,a=(0,r.useRef)(i),s=(0,o.W)(t);return(0,r.useEffect)((()=>{a.current!==i&&(s(i),a.current=i)}),[i,a,s]),n}({defaultProp:t,onChange:n}),s=void 0!==e,c=s?e:i,u=(0,o.W)(n);return[c,(0,r.useCallback)((t=>{if(s){const n=t,r="function"===typeof t?n(e):t;r!==e&&u(r)}else a(t)}),[s,e,a,u])]}},65672:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(67597);const o=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?r.useLayoutEffect:()=>{}},81319:function(e,t,n){"use strict";n.d(t,{t:function(){return i}});var r=n(67597),o=n(65672);function i(e){const[t,n]=(0,r.useState)(void 0);return(0,o.b)((()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}},41601:function(e,t,n){"use strict";n.d(t,{T:function(){return a},f:function(){return s}});var r=n(57384),o=n(67597),i=n(4300);const a=(0,o.forwardRef)(((e,t)=>(0,o.createElement)(i.WV.span,(0,r.Z)({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),s=a},28769:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:function(){return r}})},69976:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(64211);var o=n(43764);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||(0,r.Z)(e,t)||(0,o.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},8522:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(28769);var o=n(64211);var i=n(43764);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,o.Z)(e)||(0,i.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},43764:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(28769);function o(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},78943:function(e,t,n){"use strict";function r(e){for(var t=1;ttypeof t===e}var i=o("function"),a=e=>"RegExp"===Object.prototype.toString.call(e).slice(8,-1),s=e=>!c(e)&&!(e=>null===e)(e)&&(i(e)||"object"===typeof e),c=o("undefined");function u(e,t){if(e===t)return!0;if(e&&s(e)&&t&&s(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return function(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;0!==r--;)if(!u(e[r],t[r]))return!1;return!0}(e,t);if(e instanceof Map&&t instanceof Map)return function(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!u(n[1],t.get(n[0])))return!1;return!0}(e,t);if(e instanceof Set&&t instanceof Set)return function(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return function(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let o=e.byteLength;for(;o--;)if(n.getUint8(o)!==r.getUint8(o))return!1;return!0}(e,t);if(a(e)&&a(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let e=n.length;0!==e--;)if(!Object.prototype.hasOwnProperty.call(t,n[e]))return!1;for(let o=n.length;0!==o--;){const r=n[o];if(("_owner"!==r||!e.$$typeof)&&!u(e[r],t[r]))return!1}return!0}return!(!Number.isNaN(e)||!Number.isNaN(t))||e===t}var l=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],f=["bigint","boolean","null","number","string","symbol","undefined"];function d(e){const t=Object.prototype.toString.call(e).slice(8,-1);return/HTML\w+Element/.test(t)?"HTMLElement":(n=t,l.includes(n)?t:void 0);var n}function p(e){return t=>d(t)===e}function h(e){return t=>typeof t===e}var m=["innerHTML","ownerDocument","style","attributes","nodeValue"];function g(e){if(null===e)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(g.array(e))return"Array";if(g.plainFunction(e))return"Function";const t=d(e);return t||"Object"}g.array=Array.isArray,g.arrayOf=(e,t)=>!(!g.array(e)&&!g.function(t))&&e.every((e=>t(e))),g.asyncGeneratorFunction=e=>"AsyncGeneratorFunction"===d(e),g.asyncFunction=p("AsyncFunction"),g.bigint=h("bigint"),g.boolean=e=>!0===e||!1===e,g.date=p("Date"),g.defined=e=>!g.undefined(e),g.domElement=e=>g.object(e)&&!g.plainObject(e)&&1===e.nodeType&&g.string(e.nodeName)&&m.every((t=>t in e)),g.empty=e=>g.string(e)&&0===e.length||g.array(e)&&0===e.length||g.object(e)&&!g.map(e)&&!g.set(e)&&0===Object.keys(e).length||g.set(e)&&0===e.size||g.map(e)&&0===e.size,g.error=p("Error"),g.function=h("function"),g.generator=e=>g.iterable(e)&&g.function(e.next)&&g.function(e.throw),g.generatorFunction=p("GeneratorFunction"),g.instanceOf=(e,t)=>!(!e||!t)&&Object.getPrototypeOf(e)===t.prototype,g.iterable=e=>!g.nullOrUndefined(e)&&g.function(e[Symbol.iterator]),g.map=p("Map"),g.nan=e=>Number.isNaN(e),g.null=e=>null===e,g.nullOrUndefined=e=>g.null(e)||g.undefined(e),g.number=e=>h("number")(e)&&!g.nan(e),g.numericString=e=>g.string(e)&&e.length>0&&!Number.isNaN(Number(e)),g.object=e=>!g.nullOrUndefined(e)&&(g.function(e)||"object"===typeof e),g.oneOf=(e,t)=>!!g.array(e)&&e.indexOf(t)>-1,g.plainFunction=p("Function"),g.plainObject=e=>{if("Object"!==d(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.getPrototypeOf({})},g.primitive=e=>{return g.null(e)||(t=typeof e,f.includes(t));var t},g.promise=p("Promise"),g.propertyOf=(e,t,n)=>{if(!g.object(e)||!t)return!1;const r=e[t];return g.function(n)?n(r):g.defined(r)},g.regexp=p("RegExp"),g.set=p("Set"),g.string=h("string"),g.symbol=h("symbol"),g.undefined=h("undefined"),g.weakMap=p("WeakMap"),g.weakSet=p("WeakSet");var v=g;function y(e,t,n){const{actual:r,key:o,previous:i,type:a}=n,s=A(e,o),c=A(t,o);let u=[s,c].every(v.number)&&("increased"===a?sc);return v.undefined(r)||(u=u&&c===r),v.undefined(i)||(u=u&&s===i),u}function b(e,t,n){const{key:r,type:o,value:i}=n,a=A(e,r),s=A(t,r),c="added"===o?a:s,l="added"===o?s:a;return v.nullOrUndefined(i)?[a,s].every(v.array)?!l.every(T(c)):[a,s].every(v.plainObject)?function(e,t){return t.some((t=>!e.includes(t)))}(Object.keys(c),Object.keys(l)):![a,s].every((e=>v.primitive(e)&&v.defined(e)))&&("added"===o?!v.defined(a)&&v.defined(s):v.defined(a)&&!v.defined(s)):v.defined(c)?!(!v.array(c)&&!v.plainObject(c))&&function(e,t,n){return!!x(e,t)&&([e,t].every(v.array)?!e.some(w(n))&&t.some(w(n)):[e,t].every(v.plainObject)?!Object.entries(e).some(E(n))&&Object.entries(t).some(E(n)):t===n)}(c,l,i):u(l,i)}function _(e,t,{key:n}={}){let r=A(e,n),o=A(t,n);if(!x(r,o))throw new TypeError("Inputs have different types");if(!function(...e){return e.every((e=>v.string(e)||v.array(e)||v.plainObject(e)))}(r,o))throw new TypeError("Inputs don't have length");return[r,o].every(v.plainObject)&&(r=Object.keys(r),o=Object.keys(o)),[r,o]}function E(e){return([t,n])=>v.array(e)?u(e,n)||e.some((e=>u(e,n)||v.array(n)&&T(n)(e))):v.plainObject(e)&&e[t]?!!e[t]&&u(e[t],n):u(e,n)}function w(e){return t=>v.array(e)?e.some((e=>u(e,t)||v.array(t)&&T(t)(e))):u(e,t)}function S(e,t){return v.array(e)?e.some((e=>u(e,t))):u(e,t)}function T(e){return t=>e.some((e=>u(e,t)))}function x(...e){return e.every(v.array)||e.every(v.number)||e.every(v.plainObject)||e.every(v.string)}function A(e,t){if(v.plainObject(e)||v.array(e)){if(v.string(t)){return t.split(".").reduce(((e,t)=>e&&e[t]),e)}return v.number(t)?e[t]:e}return e}function O(e,t){if([e,t].some(v.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every((e=>v.plainObject(e)||v.array(e))))throw new Error("Expected plain objects or array");return{added:(n,r)=>{try{return b(e,t,{key:n,type:"added",value:r})}catch{return!1}},changed:(n,r,o)=>{try{const i=A(e,n),a=A(t,n),s=v.defined(r),c=v.defined(o);if(s||c){const e=c?S(o,i):!S(r,i),t=S(r,a);return e&&t}return[i,a].every(v.array)||[i,a].every(v.plainObject)?!u(i,a):i!==a}catch{return!1}},changedFrom:(n,r,o)=>{if(!v.defined(n))return!1;try{const i=A(e,n),a=A(t,n),s=v.defined(o);return S(r,i)&&(s?S(o,a):!s)}catch{return!1}},decreased:(n,r,o)=>{if(!v.defined(n))return!1;try{return y(e,t,{key:n,actual:r,previous:o,type:"decreased"})}catch{return!1}},emptied:n=>{try{const[r,o]=_(e,t,{key:n});return!!r.length&&!o.length}catch{return!1}},filled:n=>{try{const[r,o]=_(e,t,{key:n});return!r.length&&!!o.length}catch{return!1}},increased:(n,r,o)=>{if(!v.defined(n))return!1;try{return y(e,t,{key:n,actual:r,previous:o,type:"increased"})}catch{return!1}},removed:(n,r)=>{try{return b(e,t,{key:n,type:"removed",value:r})}catch{return!1}}}}var C=n(13635),I=n(69061),P=n(72934);function k(e,...t){if(!v.plainObject(e))throw new TypeError("Expected an object");const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&(t.includes(r)||(n[r]=e[r]));return n}var j=n(36252),R=n.n(j),N=n(71037),D=n.n(N),Z="undefined"!==typeof window&&"undefined"!==typeof document&&"undefined"!==typeof navigator,L=function(){for(var e=["Edge","Trident","Firefox"],t=0;t=0)return 1;return 0}();var M=Z&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),L))}};function F(e){return e&&"[object Function]"==={}.toString.call(e)}function B(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function U(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function V(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=B(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:V(U(e))}function H(e){return e&&e.referenceNode?e.referenceNode:e}var q=Z&&!(!window.MSInputMethodContext||!document.documentMode),G=Z&&/MSIE 10/.test(navigator.userAgent);function W(e){return 11===e?q:10===e?G:q||G}function z(e){if(!e)return document.documentElement;for(var t=W(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===B(n,"position")?z(n):n:e?e.ownerDocument.documentElement:document.documentElement}function $(e){return null!==e.parentNode?$(e.parentNode):e}function Y(e,t){if(!e||!e.nodeType||!t||!t.nodeType)return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a=i.commonAncestorContainer;if(e!==a&&t!==a||r.contains(o))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||z(e.firstElementChild)===e)}(a)?a:z(a);var s=$(e);return s.host?Y(s.host,t):Y(e,$(t).host)}function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function X(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=K(t,"top"),o=K(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function J(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function Q(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],W(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function ee(e){var t=e.body,n=e.documentElement,r=W(10)&&getComputedStyle(n);return{height:Q("Height",t,n,r),width:Q("Width",t,n,r)}}var te=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ne=function(){function e(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r=W(10),o="HTML"===t.nodeName,i=ae(e),a=ae(t),s=V(e),c=B(t),u=parseFloat(c.borderTopWidth),l=parseFloat(c.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var f=ie({top:i.top-a.top-u,left:i.left-a.left-l,width:i.width,height:i.height});if(f.marginTop=0,f.marginLeft=0,!r&&o){var d=parseFloat(c.marginTop),p=parseFloat(c.marginLeft);f.top-=u-d,f.bottom-=u-d,f.left-=l-p,f.right-=l-p,f.marginTop=d,f.marginLeft=p}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(f=X(f,t)),f}function ce(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=se(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:K(n),s=t?0:K(n,"left"),c={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return ie(c)}function ue(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===B(e,"position"))return!0;var n=U(e);return!!n&&ue(n)}function le(e){if(!e||!e.parentElement||W())return document.documentElement;for(var t=e.parentElement;t&&"none"===B(t,"transform");)t=t.parentElement;return t||document.documentElement}function fe(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?le(e):Y(e,H(t));if("viewport"===r)i=ce(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=V(U(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var c=se(s,a,o);if("HTML"!==s.nodeName||ue(a))i=c;else{var u=ee(e.ownerDocument),l=u.height,f=u.width;i.top+=c.top-c.marginTop,i.bottom=l+c.top,i.left+=c.left-c.marginLeft,i.right=f+c.left}}var d="number"===typeof(n=n||0);return i.left+=d?n:n.left||0,i.top+=d?n:n.top||0,i.right-=d?n:n.right||0,i.bottom-=d?n:n.bottom||0,i}function de(e){return e.width*e.height}function pe(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=fe(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(s).map((function(e){return oe({key:e},s[e],{area:de(s[e])})})).sort((function(e,t){return t.area-e.area})),u=c.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),l=u.length>0?u[0].key:c[0].key,f=e.split("-")[1];return l+(f?"-"+f:"")}function he(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?le(t):Y(t,H(n));return se(n,o,r)}function me(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function ge(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function ve(e,t,n){n=n.split("-")[0];var r=me(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",c=i?"height":"width",u=i?"width":"height";return o[a]=t[a]+t[c]/2-r[c]/2,o[s]=n===s?t[s]-r[u]:t[ge(s)],o}function ye(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function be(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e[t]===n}));var r=ye(e,(function(e){return e[t]===n}));return e.indexOf(r)}(e,"name",n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&F(n)&&(t.offsets.popper=ie(t.offsets.popper),t.offsets.reference=ie(t.offsets.reference),t=n(t,e))})),t}function _e(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=he(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=pe(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=ve(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=be(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function Ee(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function we(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=Ne.indexOf(e),r=Ne.slice(n+1).concat(Ne.slice(0,n));return t?r.reverse():r}var Ze="flip",Le="clockwise",Me="counterclockwise";function Fe(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(ye(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(c)[0]]),[a[s].split(c)[1]].concat(a.slice(s+1))]:[a];return u=u.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];if(!i)return e;if(0===a.indexOf("%")){return ie("%p"===a?n:r)[t]/100*i}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i;return i}(e,o,t,n)}))})),u.forEach((function(e,t){e.forEach((function(n,r){Ie(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}var Be={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",u=s?"width":"height",l={start:re({},c,i[c]),end:re({},c,i[c]+i[u]-a[u])};e.offsets.popper=oe({},a,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n=t.offset,r=e.placement,o=e.offsets,i=o.popper,a=o.reference,s=r.split("-")[0],c=void 0;return c=Ie(+n)?[+n,0]:Fe(n,i,a,s),"left"===s?(i.top+=c[0],i.left-=c[1]):"right"===s?(i.top+=c[0],i.left+=c[1]):"top"===s?(i.left+=c[0],i.top-=c[1]):"bottom"===s&&(i.left+=c[0],i.top+=c[1]),e.popper=i,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||z(e.instance.popper);e.instance.reference===n&&(n=z(n));var r=we("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var c=fe(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=c;var u=t.priority,l=e.offsets.popper,f={primary:function(e){var n=l[e];return l[e]c[e]&&!t.escapeWithReference&&(r=Math.min(l[n],c[e]-("right"===e?l.width:l.height))),re({},n,r)}};return u.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=oe({},l,f[t](e))})),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",c=a?"left":"top",u=a?"width":"height";return n[s]i(r[s])&&(e.offsets.popper[c]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!je(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"===typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,c=-1!==["left","right"].indexOf(o),u=c?"height":"width",l=c?"Top":"Left",f=l.toLowerCase(),d=c?"left":"top",p=c?"bottom":"right",h=me(r)[u];s[p]-ha[p]&&(e.offsets.popper[f]+=s[f]+h-a[p]),e.offsets.popper=ie(e.offsets.popper);var m=s[f]+s[u]/2-h/2,g=B(e.instance.popper),v=parseFloat(g["margin"+l]),y=parseFloat(g["border"+l+"Width"]),b=m-e.offsets.popper[f]-v-y;return b=Math.max(Math.min(a[u]-h,b),0),e.arrowElement=r,e.offsets.arrow=(re(n={},f,Math.round(b)),re(n,d,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Ee(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=fe(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=ge(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case Ze:a=[r,o];break;case Le:a=De(r);break;case Me:a=De(r,!0);break;default:a=t.behavior}return a.forEach((function(s,c){if(r!==s||a.length===c+1)return e;r=e.placement.split("-")[0],o=ge(r);var u=e.offsets.popper,l=e.offsets.reference,f=Math.floor,d="left"===r&&f(u.right)>f(l.left)||"right"===r&&f(u.left)f(l.top)||"bottom"===r&&f(u.top)f(n.right),m=f(u.top)f(n.bottom),v="left"===r&&p||"right"===r&&h||"top"===r&&m||"bottom"===r&&g,y=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(y&&"start"===i&&p||y&&"end"===i&&h||!y&&"start"===i&&m||!y&&"end"===i&&g),_=!!t.flipVariationsByContent&&(y&&"start"===i&&h||y&&"end"===i&&p||!y&&"start"===i&&g||!y&&"end"===i&&m),E=b||_;(d||v||E)&&(e.flipped=!0,(d||v)&&(r=a[c+1]),E&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=oe({},e.offsets.popper,ve(e.instance.popper,e.offsets.reference,e.placement)),e=be(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=ge(t),e.offsets.popper=ie(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!je(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=ye(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};te(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=M(this.update.bind(this)),this.options=oe({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(oe({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=oe({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return oe({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&F(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return ne(e,[{key:"update",value:function(){return _e.call(this)}},{key:"destroy",value:function(){return Se.call(this)}},{key:"enableEventListeners",value:function(){return Oe.call(this)}},{key:"disableEventListeners",value:function(){return Ce.call(this)}}]),e}();Ve.Utils=("undefined"!==typeof window?window:n.g).PopperUtils,Ve.placements=Re,Ve.Defaults=Ue;var He=Ve,qe=["innerHTML","ownerDocument","style","attributes","nodeValue"],Ge=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],We=["bigint","boolean","null","number","string","symbol","undefined"];function ze(e){var t,n=Object.prototype.toString.call(e).slice(8,-1);return/HTML\w+Element/.test(n)?"HTMLElement":(t=n,Ge.includes(t)?n:void 0)}function $e(e){return function(t){return ze(t)===e}}function Ye(e){return function(t){return typeof t===e}}function Ke(e){if(null===e)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(Ke.array(e))return"Array";if(Ke.plainFunction(e))return"Function";var t=ze(e);return t||"Object"}Ke.array=Array.isArray,Ke.arrayOf=function(e,t){return!(!Ke.array(e)&&!Ke.function(t))&&e.every((function(e){return t(e)}))},Ke.asyncGeneratorFunction=function(e){return"AsyncGeneratorFunction"===ze(e)},Ke.asyncFunction=$e("AsyncFunction"),Ke.bigint=Ye("bigint"),Ke.boolean=function(e){return!0===e||!1===e},Ke.date=$e("Date"),Ke.defined=function(e){return!Ke.undefined(e)},Ke.domElement=function(e){return Ke.object(e)&&!Ke.plainObject(e)&&1===e.nodeType&&Ke.string(e.nodeName)&&qe.every((function(t){return t in e}))},Ke.empty=function(e){return Ke.string(e)&&0===e.length||Ke.array(e)&&0===e.length||Ke.object(e)&&!Ke.map(e)&&!Ke.set(e)&&0===Object.keys(e).length||Ke.set(e)&&0===e.size||Ke.map(e)&&0===e.size},Ke.error=$e("Error"),Ke.function=Ye("function"),Ke.generator=function(e){return Ke.iterable(e)&&Ke.function(e.next)&&Ke.function(e.throw)},Ke.generatorFunction=$e("GeneratorFunction"),Ke.instanceOf=function(e,t){return!(!e||!t)&&Object.getPrototypeOf(e)===t.prototype},Ke.iterable=function(e){return!Ke.nullOrUndefined(e)&&Ke.function(e[Symbol.iterator])},Ke.map=$e("Map"),Ke.nan=function(e){return Number.isNaN(e)},Ke.null=function(e){return null===e},Ke.nullOrUndefined=function(e){return Ke.null(e)||Ke.undefined(e)},Ke.number=function(e){return Ye("number")(e)&&!Ke.nan(e)},Ke.numericString=function(e){return Ke.string(e)&&e.length>0&&!Number.isNaN(Number(e))},Ke.object=function(e){return!Ke.nullOrUndefined(e)&&(Ke.function(e)||"object"===typeof e)},Ke.oneOf=function(e,t){return!!Ke.array(e)&&e.indexOf(t)>-1},Ke.plainFunction=$e("Function"),Ke.plainObject=function(e){if("Object"!==ze(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.getPrototypeOf({})},Ke.primitive=function(e){return Ke.null(e)||(t=typeof e,We.includes(t));var t},Ke.promise=$e("Promise"),Ke.propertyOf=function(e,t,n){if(!Ke.object(e)||!t)return!1;var r=e[t];return Ke.function(n)?n(r):Ke.defined(r)},Ke.regexp=$e("RegExp"),Ke.set=$e("Set"),Ke.string=Ye("string"),Ke.symbol=Ye("symbol"),Ke.undefined=Ye("undefined"),Ke.weakMap=$e("WeakMap"),Ke.weakSet=$e("WeakSet");var Xe=Ke;function Je(e){return function(t){return typeof t===e}}var Qe=Je("function"),et=function(e){return"RegExp"===Object.prototype.toString.call(e).slice(8,-1)},tt=function(e){return!nt(e)&&!function(e){return null===e}(e)&&(Qe(e)||"object"===typeof e)},nt=Je("undefined"),rt=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function ot(e,t){if(e===t)return!0;if(e&&tt(e)&&t&&tt(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=n;0!==r--;)if(!ot(e[r],t[r]))return!1;return!0}(e,t);if(e instanceof Map&&t instanceof Map)return function(e,t){var n,r,o,i;if(e.size!==t.size)return!1;try{for(var a=rt(e.entries()),s=a.next();!s.done;s=a.next()){var c=s.value;if(!t.has(c[0]))return!1}}catch(f){n={error:f}}finally{try{s&&!s.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}try{for(var u=rt(e.entries()),l=u.next();!l.done;l=u.next())if(!ot((c=l.value)[1],t.get(c[0])))return!1}catch(d){o={error:d}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}return!0}(e,t);if(e instanceof Set&&t instanceof Set)return function(e,t){var n,r;if(e.size!==t.size)return!1;try{for(var o=rt(e.entries()),i=o.next();!i.done;i=o.next()){var a=i.value;if(!t.has(a[0]))return!1}}catch(s){n={error:s}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!0}(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e.buffer),r=new DataView(t.buffer),o=e.byteLength;o--;)if(n.getUint8(o)!==r.getUint8(o))return!1;return!0}(e,t);if(et(e)&&et(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=n.length;0!==o--;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(o=n.length;0!==o--;){var i=n[o];if(("_owner"!==i||!e.$$typeof)&&!ot(e[i],t[i]))return!1}return!0}return!(!Number.isNaN(e)||!Number.isNaN(t))||e===t}function it(e,t,n){var r=n.actual,o=n.key,i=n.previous,a=n.type,s=pt(e,o),c=pt(t,o),u=[s,c].every(Xe.number)&&("increased"===a?sc);return Xe.undefined(r)||(u=u&&c===r),Xe.undefined(i)||(u=u&&s===i),u}function at(e,t,n){var r=n.key,o=n.type,i=n.value,a=pt(e,r),s=pt(t,r),c="added"===o?a:s,u="added"===o?s:a;return Xe.nullOrUndefined(i)?[a,s].every(Xe.array)?!u.every(ft(c)):[a,s].every(Xe.plainObject)?function(e,t){return t.some((function(t){return!e.includes(t)}))}(Object.keys(c),Object.keys(u)):![a,s].every((function(e){return Xe.primitive(e)&&Xe.defined(e)}))&&("added"===o?!Xe.defined(a)&&Xe.defined(s):Xe.defined(a)&&!Xe.defined(s)):Xe.defined(c)?!(!Xe.array(c)&&!Xe.plainObject(c))&&function(e,t,n){return!!dt(e,t)&&([e,t].every(Xe.array)?!e.some(ut(n))&&t.some(ut(n)):[e,t].every(Xe.plainObject)?!Object.entries(e).some(ct(n))&&Object.entries(t).some(ct(n)):t===n)}(c,u,i):ot(u,i)}function st(e,t,n){var r=(void 0===n?{}:n).key,o=pt(e,r),i=pt(t,r);if(!dt(o,i))throw new TypeError("Inputs have different types");if(!function(){for(var e=[],t=0;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xt(e,t){if(t&&("object"===typeof t||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Tt(e)}function At(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Et(e);if(t){var o=Et(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xt(this,n)}}function Ot(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}var Ct={flip:{padding:20},preventOverflow:{padding:10}};function It(e,t,n,r){return"boolean"===typeof e?e:"function"===typeof e?e(t,n,r):!0===Boolean(e)&&Boolean(e)}function Pt(e,t){return Object.hasOwnProperty.call(e,t)}function kt(e,t,n,r){return r?new Error(r):new Error("Required ".concat(e[t]," `").concat(t,"` was not specified in `").concat(n,"`."))}function jt(e,t,n){return function(e,t){if("function"!==typeof e)throw new TypeError("The typeValidator argument must be a function with the signature function(props, propName, componentName).");if(Boolean(t)&&"string"!==typeof t)throw new TypeError("The error message is optional, but must be a string if provided.")}(e,n),function(r,o,i){for(var a=arguments.length,s=new Array(a>3?a-3:0),c=3;c3&&void 0!==arguments[3]&&arguments[3];e.addEventListener(t,n,r)}function Ft(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];e.removeEventListener(t,n,r)}function Bt(){}var Ut=function(e){_t(n,e);var t=At(n);function n(){return gt(this,n),t.apply(this,arguments)}return yt(n,[{key:"componentDidMount",value:function(){Dt()&&(this.node||this.appendNode(),Nt||this.renderPortal())}},{key:"componentDidUpdate",value:function(){Dt()&&(Nt||this.renderPortal())}},{key:"componentWillUnmount",value:function(){Dt()&&this.node&&(Nt||P.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var e=this.props,t=e.id,n=e.zIndex;this.node||(this.node=document.createElement("div"),t&&(this.node.id=t),n&&(this.node.style.zIndex=n),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!Dt())return null;var e=this.props,t=e.children,n=e.setRef;return this.node||this.appendNode(),Nt?P.createPortal(t,this.node):(n(P.unstable_renderSubtreeIntoContainer(this,t.length>1?r.createElement("div",null,t):t[0],this.node)),null)}},{key:"renderReact16",value:function(){var e=this.props,t=e.hasChildren,n=e.placement,r=e.target;return t||r||"center"===n?this.renderPortal():null}},{key:"render",value:function(){return Nt?this.renderReact16():null}}]),n}(r.Component);bt(Ut,"propTypes",{children:D().oneOfType([D().element,D().array]),hasChildren:D().bool,id:D().oneOfType([D().string,D().number]),placement:D().string,setRef:D().func.isRequired,target:D().oneOfType([D().object,D().string]),zIndex:D().number});var Vt=function(e){_t(n,e);var t=At(n);function n(){return gt(this,n),t.apply(this,arguments)}return yt(n,[{key:"parentStyle",get:function(){var e=this.props,t=e.placement,n=e.styles.arrow.length,r={pointerEvents:"none",position:"absolute",width:"100%"};return t.startsWith("top")?(r.bottom=0,r.left=0,r.right=0,r.height=n):t.startsWith("bottom")?(r.left=0,r.right=0,r.top=0,r.height=n):t.startsWith("left")?(r.right=0,r.top=0,r.bottom=0):t.startsWith("right")&&(r.left=0,r.top=0),r}},{key:"render",value:function(){var e,t=this.props,n=t.placement,o=t.setArrowRef,i=t.styles.arrow,a=i.color,s=i.display,c=i.length,u=i.margin,l=i.position,f=i.spread,d={display:s,position:l},p=f,h=c;return n.startsWith("top")?(e="0,0 ".concat(p/2,",").concat(h," ").concat(p,",0"),d.bottom=0,d.marginLeft=u,d.marginRight=u):n.startsWith("bottom")?(e="".concat(p,",").concat(h," ").concat(p/2,",0 0,").concat(h),d.top=0,d.marginLeft=u,d.marginRight=u):n.startsWith("left")?(h=f,e="0,0 ".concat(p=c,",").concat(h/2," 0,").concat(h),d.right=0,d.marginTop=u,d.marginBottom=u):n.startsWith("right")&&(h=f,e="".concat(p=c,",").concat(h," ").concat(p,",0 0,").concat(h/2),d.left=0,d.marginTop=u,d.marginBottom=u),r.createElement("div",{className:"__floater__arrow",style:this.parentStyle},r.createElement("span",{ref:o,style:d},r.createElement("svg",{width:p,height:h,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},r.createElement("polygon",{points:e,fill:a}))))}}]),n}(r.Component);bt(Vt,"propTypes",{placement:D().string.isRequired,setArrowRef:D().func.isRequired,styles:D().object.isRequired});var Ht=["color","height","width"];function qt(e){var t=e.handleClick,n=e.styles,o=n.color,i=n.height,a=n.width,s=St(n,Ht);return r.createElement("button",{"aria-label":"close",onClick:t,style:s,type:"button"},r.createElement("svg",{width:"".concat(a,"px"),height:"".concat(i,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},r.createElement("g",null,r.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:o}))))}function Gt(e){var t=e.content,n=e.footer,o=e.handleClick,i=e.open,a=e.positionWrapper,s=e.showCloseButton,c=e.title,u=e.styles,l={content:r.isValidElement(t)?t:r.createElement("div",{className:"__floater__content",style:u.content},t)};return c&&(l.title=r.isValidElement(c)?c:r.createElement("div",{className:"__floater__title",style:u.title},c)),n&&(l.footer=r.isValidElement(n)?n:r.createElement("div",{className:"__floater__footer",style:u.footer},n)),!s&&!a||Xe.boolean(i)||(l.close=r.createElement(qt,{styles:u.close,handleClick:o})),r.createElement("div",{className:"__floater__container",style:u.container},l.close,l.title,l.content,l.footer)}qt.propTypes={handleClick:D().func.isRequired,styles:D().object.isRequired},Gt.propTypes={content:D().node.isRequired,footer:D().node,handleClick:D().func.isRequired,open:D().bool,positionWrapper:D().bool.isRequired,showCloseButton:D().bool.isRequired,styles:D().object.isRequired,title:D().node};var Wt=function(e){_t(n,e);var t=At(n);function n(){return gt(this,n),t.apply(this,arguments)}return yt(n,[{key:"style",get:function(){var e=this.props,t=e.disableAnimation,n=e.component,r=e.placement,o=e.hideArrow,i=e.status,a=e.styles,s=a.arrow.length,c=a.floater,u=a.floaterCentered,l=a.floaterClosing,f=a.floaterOpening,d=a.floaterWithAnimation,p=a.floaterWithComponent,h={};return o||(r.startsWith("top")?h.padding="0 0 ".concat(s,"px"):r.startsWith("bottom")?h.padding="".concat(s,"px 0 0"):r.startsWith("left")?h.padding="0 ".concat(s,"px 0 0"):r.startsWith("right")&&(h.padding="0 0 0 ".concat(s,"px"))),-1!==[Rt.OPENING,Rt.OPEN].indexOf(i)&&(h=mt(mt({},h),f)),i===Rt.CLOSING&&(h=mt(mt({},h),l)),i!==Rt.OPEN||t||(h=mt(mt({},h),d)),"center"===r&&(h=mt(mt({},h),u)),n&&(h=mt(mt({},h),p)),mt(mt({},c),h)}},{key:"render",value:function(){var e=this.props,t=e.component,n=e.handleClick,o=e.hideArrow,i=e.setFloaterRef,a=e.status,s={},c=["__floater"];return s.content=t?r.isValidElement(t)?r.cloneElement(t,{closeFn:n}):t({closeFn:n}):r.createElement(Gt,this.props),a===Rt.OPEN&&c.push("__floater__open"),o||(s.arrow=r.createElement(Vt,this.props)),r.createElement("div",{ref:i,className:c.join(" "),style:this.style},r.createElement("div",{className:"__floater__body"},s.content,s.arrow))}}]),n}(r.Component);bt(Wt,"propTypes",{component:D().oneOfType([D().func,D().element]),content:D().node,disableAnimation:D().bool.isRequired,footer:D().node,handleClick:D().func.isRequired,hideArrow:D().bool.isRequired,open:D().bool,placement:D().string.isRequired,positionWrapper:D().bool.isRequired,setArrowRef:D().func.isRequired,setFloaterRef:D().func.isRequired,showCloseButton:D().bool,status:D().string.isRequired,styles:D().object.isRequired,title:D().node});var zt=function(e){_t(n,e);var t=At(n);function n(){return gt(this,n),t.apply(this,arguments)}return yt(n,[{key:"render",value:function(){var e,t=this.props,n=t.children,o=t.handleClick,i=t.handleMouseEnter,a=t.handleMouseLeave,s=t.setChildRef,c=t.setWrapperRef,u=t.style,l=t.styles;if(n)if(1===r.Children.count(n))if(r.isValidElement(n)){var f=Xe.function(n.type)?"innerRef":"ref";e=r.cloneElement(r.Children.only(n),bt({},f,s))}else e=r.createElement("span",null,n);else e=n;return e?r.createElement("span",{ref:c,style:mt(mt({},l),u),onClick:o,onMouseEnter:i,onMouseLeave:a},e):null}}]),n}(r.Component);bt(zt,"propTypes",{children:D().node,handleClick:D().func.isRequired,handleMouseEnter:D().func.isRequired,handleMouseLeave:D().func.isRequired,setChildRef:D().func.isRequired,setWrapperRef:D().func.isRequired,style:D().object,styles:D().object.isRequired});var $t={zIndex:100};var Yt=["arrow","flip","offset"],Kt=["position","top","right","bottom","left"],Xt=function(e){_t(n,e);var t=At(n);function n(e){var r;return gt(this,n),bt(Tt(r=t.call(this,e)),"setArrowRef",(function(e){r.arrowRef=e})),bt(Tt(r),"setChildRef",(function(e){r.childRef=e})),bt(Tt(r),"setFloaterRef",(function(e){r.floaterRef=e})),bt(Tt(r),"setWrapperRef",(function(e){r.wrapperRef=e})),bt(Tt(r),"handleTransitionEnd",(function(){var e=r.state.status,t=r.props.callback;r.wrapperPopper&&r.wrapperPopper.instance.update(),r.setState({status:e===Rt.OPENING?Rt.OPEN:Rt.IDLE},(function(){var e=r.state.status;t(e===Rt.OPEN?"open":"close",r.props)}))})),bt(Tt(r),"handleClick",(function(){var e=r.props,t=e.event,n=e.open;if(!Xe.boolean(n)){var o=r.state,i=o.positionWrapper,a=o.status;("click"===r.event||"hover"===r.event&&i)&&(Lt({title:"click",data:[{event:t,status:a===Rt.OPEN?"closing":"opening"}],debug:r.debug}),r.toggle())}})),bt(Tt(r),"handleMouseEnter",(function(){var e=r.props,t=e.event,n=e.open;if(!Xe.boolean(n)&&!Zt()){var o=r.state.status;"hover"===r.event&&o===Rt.IDLE&&(Lt({title:"mouseEnter",data:[{key:"originalEvent",value:t}],debug:r.debug}),clearTimeout(r.eventDelayTimeout),r.toggle())}})),bt(Tt(r),"handleMouseLeave",(function(){var e=r.props,t=e.event,n=e.eventDelay,o=e.open;if(!Xe.boolean(o)&&!Zt()){var i=r.state,a=i.status,s=i.positionWrapper;"hover"===r.event&&(Lt({title:"mouseLeave",data:[{key:"originalEvent",value:t}],debug:r.debug}),n?-1===[Rt.OPENING,Rt.OPEN].indexOf(a)||s||r.eventDelayTimeout||(r.eventDelayTimeout=setTimeout((function(){delete r.eventDelayTimeout,r.toggle()}),1e3*n)):r.toggle(Rt.IDLE))}})),r.state={currentPlacement:e.placement,needsUpdate:!1,positionWrapper:e.wrapperOptions.position&&!!e.target,status:Rt.INIT,statusWrapper:Rt.INIT},r._isMounted=!1,r.hasMounted=!1,Dt()&&window.addEventListener("load",(function(){r.popper&&r.popper.instance.update(),r.wrapperPopper&&r.wrapperPopper.instance.update()})),r}return yt(n,[{key:"componentDidMount",value:function(){if(Dt()){var e=this.state.positionWrapper,t=this.props,n=t.children,r=t.open,o=t.target;this._isMounted=!0,Lt({title:"init",data:{hasChildren:!!n,hasTarget:!!o,isControlled:Xe.boolean(r),positionWrapper:e,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!n&&o&&Xe.boolean(r)}}},{key:"componentDidUpdate",value:function(e,t){if(Dt()){var n,r=this.props,o=r.autoOpen,i=r.open,a=r.target,s=r.wrapperOptions,c=function(e,t){if([e,t].some(Xe.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every((function(e){return Xe.plainObject(e)||Xe.array(e)})))throw new Error("Expected plain objects or array");var n=function(n,r,o){try{var i=pt(e,n),a=pt(t,n),s=Xe.defined(r),c=Xe.defined(o);if(s||c){var u=c?lt(o,i):!lt(r,i),l=lt(r,a);return u&&l}return[i,a].every(Xe.array)||[i,a].every(Xe.plainObject)?!ot(i,a):i!==a}catch(f){return!1}};return{added:function(n,r){try{return at(e,t,{key:n,type:"added",value:r})}catch(o){return!1}},changed:n,changedFrom:function(n,r,o){if(!Xe.defined(n))return!1;try{var i=pt(e,n),a=pt(t,n),s=Xe.defined(o);return lt(r,i)&&(s?lt(o,a):!s)}catch(c){return!1}},changedTo:function(e,t){return!!Xe.defined(e)&&n(e,t)},decreased:function(n,r,o){if(!Xe.defined(n))return!1;try{return it(e,t,{key:n,actual:r,previous:o,type:"decreased"})}catch(i){return!1}},emptied:function(n){try{var r=st(e,t,{key:n}),o=r[0],i=r[1];return!!o.length&&!i.length}catch(a){return!1}},filled:function(n){try{var r=st(e,t,{key:n}),o=r[0],i=r[1];return!o.length&&!!i.length}catch(a){return!1}},increased:function(n,r,o){if(!Xe.defined(n))return!1;try{return it(e,t,{key:n,actual:r,previous:o,type:"increased"})}catch(i){return!1}},removed:function(n,r){try{return at(e,t,{key:n,type:"removed",value:r})}catch(o){return!1}}}}(t,this.state),u=c.changedFrom,l=c.changed;if(e.open!==i)Xe.boolean(i)&&(n=i?Rt.OPENING:Rt.CLOSING),this.toggle(n);e.wrapperOptions.position===s.position&&e.target===a||this.changeWrapperPosition(this.props),(l("status",Rt.IDLE)&&i||u("status",Rt.INIT,Rt.IDLE)&&o)&&this.toggle(Rt.OPEN),this.popper&&l("status",Rt.OPENING)&&this.popper.instance.update(),this.floaterRef&&(l("status",Rt.OPENING)||l("status",Rt.CLOSING))&&function(e,t,n){var r;Mt(e,t,r=function(o){n(o),Ft(e,t,r)},arguments.length>3&&void 0!==arguments[3]&&arguments[3])}(this.floaterRef,"transitionend",this.handleTransitionEnd),l("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){Dt()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.target,n=this.state.positionWrapper,r=this.props,o=r.disableFlip,i=r.getPopper,a=r.hideArrow,s=r.offset,c=r.placement,u=r.wrapperOptions,l="top"===c||"bottom"===c?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if("center"===c)this.setState({status:Rt.IDLE});else if(t&&this.floaterRef){var f=this.options,d=f.arrow,p=f.flip,h=f.offset,m=St(f,Yt);new He(t,this.floaterRef,{placement:c,modifiers:mt({arrow:mt({enabled:!a,element:this.arrowRef},d),flip:mt({enabled:!o,behavior:l},p),offset:mt({offset:"0, ".concat(s,"px")},h)},m),onCreate:function(t){var n;e.popper=t,null!==(n=e.floaterRef)&&void 0!==n&&n.isConnected?(i(t,"floater"),e._isMounted&&e.setState({currentPlacement:t.placement,status:Rt.IDLE}),c!==t.placement&&setTimeout((function(){t.instance.update()}),1)):e.setState({needsUpdate:!0})},onUpdate:function(t){e.popper=t;var n=e.state.currentPlacement;e._isMounted&&t.placement!==n&&e.setState({currentPlacement:t.placement})}})}if(n){var g=Xe.undefined(u.offset)?0:u.offset;new He(this.target,this.wrapperRef,{placement:u.placement||c,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(g,"px")},flip:{enabled:!1}},onCreate:function(t){e.wrapperPopper=t,e._isMounted&&e.setState({statusWrapper:Rt.IDLE}),i(t,"wrapper"),c!==t.placement&&setTimeout((function(){t.instance.update()}),1)}})}}},{key:"rebuildPopper",value:function(){var e=this;this.floaterRefInterval=setInterval((function(){var t;null!==(t=e.floaterRef)&&void 0!==t&&t.isConnected&&(clearInterval(e.floaterRefInterval),e.setState({needsUpdate:!1}),e.initPopper())}),50)}},{key:"changeWrapperPosition",value:function(e){var t=e.target,n=e.wrapperOptions;this.setState({positionWrapper:n.position&&!!t})}},{key:"toggle",value:function(e){var t=this.state.status===Rt.OPEN?Rt.CLOSING:Rt.OPENING;Xe.undefined(e)||(t=e),this.setState({status:t})}},{key:"debug",get:function(){return this.props.debug||Dt()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var e=this.props,t=e.disableHoverToClick,n=e.event;return"hover"===n&&Zt()&&!t?"click":n}},{key:"options",get:function(){var e=this.props.options;return R()(Ct,e||{})}},{key:"styles",get:function(){var e,t=this,n=this.state,r=n.status,o=n.positionWrapper,i=n.statusWrapper,a=this.props.styles,s=R()(function(e){var t=R()($t,e.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:t.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:t.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:t}}(a),a);o&&(e=-1===[Rt.IDLE].indexOf(r)||-1===[Rt.IDLE].indexOf(i)?s.wrapperPosition:this.wrapperPopper.styles,s.wrapper=mt(mt({},s.wrapper),e));if(this.target){var c=window.getComputedStyle(this.target);this.wrapperStyles?s.wrapper=mt(mt({},s.wrapper),this.wrapperStyles):-1===["relative","static"].indexOf(c.position)&&(this.wrapperStyles={},o||(Kt.forEach((function(e){t.wrapperStyles[e]=c[e]})),s.wrapper=mt(mt({},s.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return s}},{key:"target",get:function(){if(!Dt())return null;var e=this.props.target;return e?Xe.domElement(e)?e:document.querySelector(e):this.childRef||this.wrapperRef}},{key:"render",value:function(){var e=this.state,t=e.currentPlacement,n=e.positionWrapper,o=e.status,i=this.props,a=i.children,s=i.component,c=i.content,u=i.disableAnimation,l=i.footer,f=i.hideArrow,d=i.id,p=i.open,h=i.showCloseButton,m=i.style,g=i.target,v=i.title,y=r.createElement(zt,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:m,styles:this.styles.wrapper},a),b={};return n?b.wrapperInPortal=y:b.wrapperAsChildren=y,r.createElement("span",null,r.createElement(Ut,{hasChildren:!!a,id:d,placement:t,setRef:this.setFloaterRef,target:g,zIndex:this.styles.options.zIndex},r.createElement(Wt,{component:s,content:c,disableAnimation:u,footer:l,handleClick:this.handleClick,hideArrow:f||"center"===t,open:p,placement:t,positionWrapper:n,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:h,status:o,styles:this.styles,title:v}),b.wrapperInPortal),b.wrapperAsChildren)}}]),n}(r.Component);bt(Xt,"propTypes",{autoOpen:D().bool,callback:D().func,children:D().node,component:jt(D().oneOfType([D().func,D().element]),(function(e){return!e.content})),content:jt(D().node,(function(e){return!e.component})),debug:D().bool,disableAnimation:D().bool,disableFlip:D().bool,disableHoverToClick:D().bool,event:D().oneOf(["hover","click"]),eventDelay:D().number,footer:D().node,getPopper:D().func,hideArrow:D().bool,id:D().oneOfType([D().string,D().number]),offset:D().number,open:D().bool,options:D().object,placement:D().oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:D().bool,style:D().object,styles:D().object,target:D().oneOfType([D().object,D().string]),title:D().node,wrapperOptions:D().shape({offset:D().number,placement:D().oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:D().bool})}),bt(Xt,"defaultProps",{autoOpen:!1,callback:Bt,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:Bt,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var Jt=n(93904),Qt=Object.defineProperty,en=(e,t,n)=>(((e,t,n)=>{t in e?Qt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!==typeof t?t+"":t,n),n),tn={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},nn={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found",ERROR:"error"},rn={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},on={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished",ERROR:"error"};function an(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}function sn(e){return e?e.getBoundingClientRect():null}function cn(){const{body:e,documentElement:t}=document;return e&&t?Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight):0}function un(e){return"string"===typeof e?document.querySelector(e):e}function ln(e,t,n){if(!e)return hn();const r=I(e);if(r){if(r.isSameNode(hn()))return n?document:hn();if(!(r.scrollHeight>r.offsetHeight)&&!t)return r.style.overflow="initial",hn()}return r}function fn(e,t){if(!e)return!1;const n=ln(e,t);return!!n&&!n.isSameNode(hn())}function dn(e,t="fixed"){if(!e||!(e instanceof HTMLElement))return!1;const{nodeName:n}=e,r=function(e){return e&&1===e.nodeType?getComputedStyle(e):null}(e);return"BODY"!==n&&"HTML"!==n&&(!(!r||r.position!==t)||!!e.parentNode&&dn(e.parentNode,t))}function pn(e,t,n){var r;if(!e)return 0;const{offsetTop:o=0,scrollTop:i=0}=null!=(r=I(e))?r:{};let a=e.getBoundingClientRect().top+i;o&&(fn(e,n)||function(e){return e.offsetParent!==document.body}(e))&&(a-=o);const s=Math.floor(a-t);return s<0?0:s}function hn(){var e;return null!=(e=document.scrollingElement)?e:document.documentElement}var mn=void 0!==P.createPortal;function gn(e=navigator.userAgent){let t=e;return"undefined"===typeof window?t="node":document.documentMode?t="ie":/Edge/.test(e)?t="edge":Boolean(window.opera)||e.includes(" OPR/")?t="opera":"undefined"!==typeof window.InstallTrigger?t="firefox":window.chrome?t="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(e)&&(t="safari"),t}function vn(e){const t=[],n=e=>{if("string"===typeof e||"number"===typeof e)t.push(e);else if(Array.isArray(e))e.forEach((e=>n(e)));else if((0,r.isValidElement)(e)){const{children:t}=e.props;Array.isArray(t)?t.forEach((e=>n(e))):n(t)}};return n(e),t.join(" ").trim()}function yn(e){const t=e.replace(/^#?([\da-f])([\da-f])([\da-f])$/i,((e,t,n,r)=>t+t+n+n+r+r)),n=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(t);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:[]}function bn(e){return e.disableBeacon||"center"===e.placement}function _n(){return!["chrome","safari","firefox","opera"].includes(gn())}function En({data:e,debug:t=!1,title:n,warn:r=!1}){const o=r?console.warn||console.error:console.log;t&&(n&&e?(console.groupCollapsed(`%creact-joyride: ${n}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(e)?e.forEach((e=>{v.plainObject(e)&&e.key?o.apply(console,[e.key,e.value]):o.apply(console,[e])})):o.apply(console,[e]),console.groupEnd()):console.error("Missing title or data props"))}var wn={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},Sn={back:"Back",close:"Close",last:"Last",next:"Next",open:"Open the dialog",skip:"Skip"},Tn={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:Sn,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},xn={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},An={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},On={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},Cn={borderRadius:4,position:"absolute"};function In(e){return function(e,...t){if(!v.plainObject(e))throw new TypeError("Expected an object");if(!t.length)return e;const n={};for(const r in e)({}).hasOwnProperty.call(e,r)&&t.includes(r)&&(n[r]=e[r]);return n}(e,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function Pn(e,t){var n,r,o,i,a,s;const c=null!=e?e:{},u=j.all([Tn,In(t),c],{isMergeableObject:v.plainObject}),l=function(e,t){const n=j(null!=e?e:{},null!=t?t:{}),r=j(An,n.options||{});let{width:o}=r;window.innerWidth>480&&(o=380),"width"in r&&(o="number"===typeof r.width&&window.innerWidthkn(e,t))):(En({title:"validateSteps",data:"steps must be an array",warn:!0,debug:t}),!1)}var Rn={action:"init",controlled:!1,index:0,lifecycle:rn.INIT,size:0,status:on.IDLE},Nn=["action","index","lifecycle","status"];function Dn(e){return new class{constructor(e){en(this,"beaconPopper"),en(this,"tooltipPopper"),en(this,"data",new Map),en(this,"listener"),en(this,"store",new Map),en(this,"addListener",(e=>{this.listener=e})),en(this,"setSteps",(e=>{const{size:t,status:n}=this.getState(),r={size:e.length,status:n};this.data.set("steps",e),n===on.WAITING&&!t&&e.length&&(r.status=on.RUNNING),this.setState(r)})),en(this,"getPopper",(e=>"beacon"===e?this.beaconPopper:this.tooltipPopper)),en(this,"setPopper",((e,t)=>{"beacon"===e?this.beaconPopper=t:this.tooltipPopper=t})),en(this,"cleanupPoppers",(()=>{this.beaconPopper=null,this.tooltipPopper=null})),en(this,"close",(()=>{const{index:e,status:t}=this.getState();t===on.RUNNING&&this.setState({...this.getNextState({action:tn.CLOSE,index:e+1})})})),en(this,"go",(e=>{const{controlled:t,status:n}=this.getState();if(t||n!==on.RUNNING)return;const r=this.getSteps()[e];this.setState({...this.getNextState({action:tn.GO,index:e}),status:r?n:on.FINISHED})})),en(this,"info",(()=>this.getState())),en(this,"next",(()=>{const{index:e,status:t}=this.getState();t===on.RUNNING&&this.setState(this.getNextState({action:tn.NEXT,index:e+1}))})),en(this,"open",(()=>{const{status:e}=this.getState();e===on.RUNNING&&this.setState({...this.getNextState({action:tn.UPDATE,lifecycle:rn.TOOLTIP})})})),en(this,"prev",(()=>{const{index:e,status:t}=this.getState();t===on.RUNNING&&this.setState({...this.getNextState({action:tn.PREV,index:e-1})})})),en(this,"reset",((e=!1)=>{const{controlled:t}=this.getState();t||this.setState({...this.getNextState({action:tn.RESET,index:0}),status:e?on.RUNNING:on.READY})})),en(this,"skip",(()=>{const{status:e}=this.getState();e===on.RUNNING&&this.setState({action:tn.SKIP,lifecycle:rn.INIT,status:on.SKIPPED})})),en(this,"start",(e=>{const{index:t,size:n}=this.getState();this.setState({...this.getNextState({action:tn.START,index:v.number(e)?e:t},!0),status:n?on.RUNNING:on.WAITING})})),en(this,"stop",((e=!1)=>{const{index:t,status:n}=this.getState();[on.FINISHED,on.SKIPPED].includes(n)||this.setState({...this.getNextState({action:tn.STOP,index:t+(e?1:0)}),status:on.PAUSED})})),en(this,"update",(e=>{var t,n,r;if(n=e,r=Nn,!(v.plainObject(n)&&v.array(r)&&Object.keys(n).every((e=>r.includes(e)))))throw new Error(`State is not valid. Valid keys: ${Nn.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...e,action:null!=(t=e.action)?t:tn.UPDATE},!0)})}));const{continuous:t=!1,stepIndex:n,steps:r=[]}=null!=e?e:{};this.setState({action:tn.INIT,controlled:v.number(n),continuous:t,index:v.number(n)?n:0,lifecycle:rn.INIT,status:r.length?on.READY:on.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",size:this.store.get("size")||0,status:this.store.get("status")||""}:{...Rn}}getNextState(e,t=!1){var n,r,o,i;const{action:a,controlled:s,index:c,size:u,status:l}=this.getState(),f=v.number(e.index)?e.index:c,d=s&&!t?c:Math.min(Math.max(f,0),u);return{action:null!=(n=e.action)?n:a,controlled:s,index:d,lifecycle:null!=(r=e.lifecycle)?r:rn.INIT,size:null!=(o=e.size)?o:u,status:d===u?on.FINISHED:null!=(i=e.status)?i:l}}getSteps(){const e=this.data.get("steps");return Array.isArray(e)?e:[]}hasUpdatedState(e){return JSON.stringify(e)!==JSON.stringify(this.getState())}setState(e,t=!1){const n=this.getState(),{action:r,index:o,lifecycle:i,size:a,status:s}={...n,...e};this.store.set("action",r),this.store.set("index",o),this.store.set("lifecycle",i),this.store.set("size",a),this.store.set("status",s),t&&(this.store.set("controlled",e.controlled),this.store.set("continuous",e.continuous)),this.listener&&this.hasUpdatedState(n)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}}(e)}var Zn=class extends r.Component{constructor(e){if(super(e),en(this,"beacon",null),en(this,"setBeaconRef",(e=>{this.beacon=e})),e.beaconComponent)return;const t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.id="joyride-beacon-animation",e.nonce&&n.setAttribute("nonce",e.nonce);n.appendChild(document.createTextNode("\n @keyframes joyride-beacon-inner {\n 20% {\n opacity: 0.9;\n }\n \n 90% {\n opacity: 0.7;\n }\n }\n \n @keyframes joyride-beacon-outer {\n 0% {\n transform: scale(1);\n }\n \n 45% {\n opacity: 0.7;\n transform: scale(0.75);\n }\n \n 100% {\n opacity: 0.9;\n transform: scale(1);\n }\n }\n ")),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;setTimeout((()=>{v.domElement(this.beacon)&&e&&this.beacon.focus()}),0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");(null==e?void 0:e.parentNode)&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:o,locale:i,onClickOrHover:a,size:s,step:c,styles:u}=this.props,l=v.string(i.open)?i.open:Jt(i.open),f={"aria-label":l,onClick:a,onMouseEnter:a,ref:this.setBeaconRef,title:l};let d;if(e){const i=e;d=r.createElement(i,{continuous:t,index:n,isLastStep:o,size:s,step:c,...f})}else d=r.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:u.beacon,type:"button",...f},r.createElement("span",{style:u.beaconInner}),r.createElement("span",{style:u.beaconOuter}));return d}};var Ln=function({styles:e}){return r.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:e})},Mn=class extends r.Component{constructor(){super(...arguments),en(this,"isActive",!1),en(this,"resizeTimeout"),en(this,"scrollTimeout"),en(this,"scrollParent"),en(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),en(this,"handleMouseMove",(e=>{const{mouseOverSpotlight:t}=this.state,{height:n,left:r,position:o,top:i,width:a}=this.spotlightStyles,s="fixed"===o?e.clientY:e.pageY,c="fixed"===o?e.clientX:e.pageX,u=c>=r&&c<=r+a&&(s>=i&&s<=i+n);u!==t&&this.updateState({mouseOverSpotlight:u})})),en(this,"handleScroll",(()=>{const{target:e}=this.props,t=un(e);if(this.scrollParent!==document){const{isScrolling:e}=this.state;e||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout((()=>{this.updateState({isScrolling:!1,showSpotlight:!0})}),50)}else dn(t,"sticky")&&this.updateState({})})),en(this,"handleResize",(()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout((()=>{this.isActive&&this.forceUpdate()}),100)}))}componentDidMount(){const{debug:e,disableScrolling:t,disableScrollParentFix:n=!1,target:r}=this.props,o=un(r);this.scrollParent=ln(null!=o?o:document.body,n,!0),this.isActive=!0,window.addEventListener("resize",this.handleResize)}componentDidUpdate(e){var t;const{lifecycle:n,spotlightClicks:r}=this.props,{changed:o}=O(e,this.props);o("lifecycle",rn.TOOLTIP)&&(null==(t=this.scrollParent)||t.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout((()=>{const{isScrolling:e}=this.state;e||this.updateState({showSpotlight:!0})}),100)),(o("spotlightClicks")||o("disableOverlay")||o("lifecycle"))&&(r&&n===rn.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):n!==rn.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var e;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),null==(e=this.scrollParent)||e.removeEventListener("scroll",this.handleScroll)}get spotlightStyles(){var e,t,n;const{showSpotlight:r}=this.state,{disableScrollParentFix:o=!1,spotlightClicks:i,spotlightPadding:a=0,styles:s,target:c}=this.props,u=un(c),l=sn(u),f=dn(u),d=function(e,t,n){var r;const o=sn(e),i=ln(e,n),a=fn(e,n);let s=0,c=null!=(r=null==o?void 0:o.top)?r:0;return i instanceof HTMLElement&&(s=i.scrollTop,a||dn(e)||(c+=s),i.isSameNode(hn())||(c+=hn().scrollTop)),Math.floor(c-t)}(u,a,o);return{..._n()?s.spotlightLegacy:s.spotlight,height:Math.round((null!=(e=null==l?void 0:l.height)?e:0)+2*a),left:Math.round((null!=(t=null==l?void 0:l.left)?t:0)-a),opacity:r?1:0,pointerEvents:i?"none":"auto",position:f?"fixed":"absolute",top:d,transition:"opacity 0.2s",width:Math.round((null!=(n=null==l?void 0:l.width)?n:0)+2*a)}}updateState(e){this.isActive&&this.setState((t=>({...t,...e})))}render(){const{mouseOverSpotlight:e,showSpotlight:t}=this.state,{disableOverlay:n,disableOverlayClose:o,lifecycle:i,onClickOverlay:a,placement:s,styles:c}=this.props;if(n||i!==rn.TOOLTIP)return null;let u=c.overlay;_n()&&(u="center"===s?c.overlayLegacyCenter:c.overlayLegacy);const l={cursor:o?"default":"pointer",height:cn(),pointerEvents:e?"none":"auto",...u};let f="center"!==s&&t&&r.createElement(Ln,{styles:this.spotlightStyles});if("safari"===gn()){const{mixBlendMode:e,zIndex:t,...n}=l;f=r.createElement("div",{style:{...n}},f),delete l.backgroundColor}return r.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:a,role:"presentation",style:l},f)}},Fn=class extends r.Component{constructor(){super(...arguments),en(this,"node",null)}componentDidMount(){const{id:e}=this.props;an()&&(this.node=document.createElement("div"),this.node.id=e,document.body.appendChild(this.node),mn||this.renderReact15())}componentDidUpdate(){an()&&(mn||this.renderReact15())}componentWillUnmount(){an()&&this.node&&(mn||P.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!an())return;const{children:e}=this.props;this.node&&P.unstable_renderSubtreeIntoContainer(this,e,this.node)}renderReact16(){if(!an()||!mn)return null;const{children:e}=this.props;return this.node?P.createPortal(e,this.node):null}render(){return mn?this.renderReact16():null}};var Bn=function({styles:e,...t}){const{color:n,height:o,width:i,...a}=e;return r.createElement("button",{style:a,type:"button",...t},r.createElement("svg",{height:"number"===typeof o?`${o}px`:o,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:"number"===typeof i?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},r.createElement("g",null,r.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))};var Un=function(e){const{backProps:t,closeProps:n,continuous:o,index:i,isLastStep:a,primaryProps:s,size:c,skipProps:u,step:l,tooltipProps:f}=e,{content:d,hideBackButton:p,hideCloseButton:h,hideFooter:m,locale:g,showProgress:v,showSkipButton:y,styles:b,title:_}=l,{back:E,close:w,last:S,next:T,skip:x}=g,A={primary:w};return o&&(A.primary=a?S:T,v&&(A.primary=r.createElement("span",null,A.primary," (",i+1,"/",c,")"))),y&&!a&&(A.skip=r.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:b.buttonSkip,type:"button",...u},x)),!p&&i>0&&(A.back=r.createElement("button",{"data-test-id":"button-back",style:b.buttonBack,type:"button",...t},E)),A.close=!h&&r.createElement(Bn,{"data-test-id":"button-close",styles:b.buttonClose,...n}),r.createElement("div",{key:"JoyrideTooltip","aria-label":vn(_)||vn(d),className:"react-joyride__tooltip",style:b.tooltip,...f},r.createElement("div",{style:b.tooltipContainer},_&&r.createElement("h1",{"aria-label":vn(_),style:b.tooltipTitle},_),r.createElement("div",{style:b.tooltipContent},d)),!m&&r.createElement("div",{style:b.tooltipFooter},r.createElement("div",{style:b.tooltipFooterSpacer},A.skip),A.back,r.createElement("button",{"data-test-id":"button-primary",style:b.buttonNext,type:"button",...s},A.primary)),A.close)},Vn=class extends r.Component{constructor(){super(...arguments),en(this,"handleClickBack",(e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()})),en(this,"handleClickClose",(e=>{e.preventDefault();const{helpers:t}=this.props;t.close()})),en(this,"handleClickPrimary",(e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;t?n.next():n.close()})),en(this,"handleClickSkip",(e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()})),en(this,"getElementsProps",(()=>{const{continuous:e,isLastStep:t,setTooltipRef:n,step:r}=this.props,o=vn(r.locale.back),i=vn(r.locale.close),a=vn(r.locale.last),s=vn(r.locale.next),c=vn(r.locale.skip);let u=e?s:i;return t&&(u=a),{backProps:{"aria-label":o,"data-action":"back",onClick:this.handleClickBack,role:"button",title:o},closeProps:{"aria-label":i,"data-action":"close",onClick:this.handleClickClose,role:"button",title:i},primaryProps:{"aria-label":u,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:u},skipProps:{"aria-label":c,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:c},tooltipProps:{"aria-modal":!0,ref:n,role:"alertdialog"}}}))}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:o,size:i,step:a}=this.props,{beaconComponent:s,tooltipComponent:c,...u}=a;let l;if(c){const a={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:u,setTooltipRef:o},s=c;l=r.createElement(s,{...a})}else l=r.createElement(Un,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:a});return l}},Hn=class extends r.Component{constructor(){super(...arguments),en(this,"scope",null),en(this,"tooltip",null),en(this,"handleClickHoverBeacon",(e=>{const{step:t,store:n}=this.props;"mouseenter"===e.type&&"hover"!==t.event||n.update({lifecycle:rn.TOOLTIP})})),en(this,"handleClickOverlay",(()=>{const{helpers:e,step:t}=this.props;t.disableOverlayClose||e.close()})),en(this,"setTooltipRef",(e=>{this.tooltip=e})),en(this,"setPopper",((e,t)=>{var n;const{action:r,step:o,store:i}=this.props;"wrapper"===t?i.setPopper("beacon",e):i.setPopper("tooltip",e),i.getPopper("beacon")&&i.getPopper("tooltip")&&i.update({action:r,lifecycle:rn.READY}),(null==(n=o.floaterProps)?void 0:n.getPopper)&&o.floaterProps.getPopper(e,t)})),en(this,"renderTooltip",(e=>{const{continuous:t,helpers:n,index:o,size:i,step:a}=this.props;return r.createElement(Vn,{continuous:t,helpers:n,index:o,isLastStep:o+1===i,setTooltipRef:this.setTooltipRef,size:i,step:a,...e})}))}componentDidMount(){const{debug:e,index:t}=this.props;En({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:o,controlled:i,debug:a,index:s,lifecycle:c,size:u,status:l,step:f,store:d}=this.props,{changed:p,changedFrom:h}=O(e,this.props),m={action:n,controlled:i,index:s,lifecycle:c,size:u,status:l},g=o&&n!==tn.CLOSE&&(s>0||n===tn.PREV),v=p("action")||p("index")||p("lifecycle")||p("status"),y=h("lifecycle",[rn.TOOLTIP,rn.INIT],rn.INIT),b=p("action",[tn.NEXT,tn.PREV,tn.SKIP,tn.CLOSE]),_=i&&s===e.index;if(b&&(y||_)&&r({...m,index:e.index,lifecycle:rn.COMPLETE,step:e.step,type:nn.STEP_AFTER}),"center"===f.placement&&l===on.RUNNING&&p("index")&&n!==tn.START&&c===rn.INIT&&d.update({lifecycle:rn.READY}),v){const e=un(f.target),t=!!e,o=t&&function(e){var t;if(!e)return!1;let n=e;for(;n&&n!==document.body;){if(n instanceof HTMLElement){const{display:e,visibility:t}=getComputedStyle(n);if("none"===e||"hidden"===t)return!1}n=null!=(t=n.parentElement)?t:null}return!0}(e);o?(h("status",on.READY,on.RUNNING)||h("lifecycle",rn.INIT,rn.READY))&&r({...m,step:f,type:nn.STEP_BEFORE}):(console.warn(t?"Target not visible":"Target not mounted",f),r({...m,type:nn.TARGET_NOT_FOUND,step:f}),i||d.update({index:s+(n===tn.PREV?-1:1)}))}h("lifecycle",rn.INIT,rn.READY)&&d.update({lifecycle:bn(f)||g?rn.TOOLTIP:rn.BEACON}),p("index")&&En({title:`step:${c}`,data:[{key:"props",value:this.props}],debug:a}),p("lifecycle",rn.BEACON)&&r({...m,step:f,type:nn.BEACON}),p("lifecycle",rn.TOOLTIP)&&(r({...m,step:f,type:nn.TOOLTIP}),this.tooltip&&(this.scope=new class{constructor(e,t){if(en(this,"element"),en(this,"options"),en(this,"canBeTabbed",(e=>{const{tabIndex:t}=e;return!(null===t||t<0)&&this.canHaveFocus(e)})),en(this,"canHaveFocus",(e=>{const t=e.nodeName.toLowerCase();return(/input|select|textarea|button|object/.test(t)&&!e.getAttribute("disabled")||"a"===t&&!!e.getAttribute("href"))&&this.isVisible(e)})),en(this,"findValidTabElements",(()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed))),en(this,"handleKeyDown",(e=>{const{code:t="Tab"}=this.options;e.code===t&&this.interceptTab(e)})),en(this,"interceptTab",(e=>{e.preventDefault();const t=this.findValidTabElements(),{shiftKey:n}=e;if(!t.length)return;let r=document.activeElement?t.indexOf(document.activeElement):0;-1===r||!n&&r+1===t.length?r=0:n&&0===r?r=t.length-1:r+=n?-1:1,t[r].focus()})),en(this,"isHidden",(e=>{const t=e.offsetWidth<=0&&e.offsetHeight<=0,n=window.getComputedStyle(e);return!(!t||e.innerHTML)||t&&"visible"!==n.getPropertyValue("overflow")||"none"===n.getPropertyValue("display")})),en(this,"isVisible",(e=>{let t=e;for(;t;)if(t instanceof HTMLElement){if(t===document.body)break;if(this.isHidden(t))return!1;t=t.parentNode}return!0})),en(this,"removeScope",(()=>{window.removeEventListener("keydown",this.handleKeyDown)})),en(this,"checkFocus",(e=>{document.activeElement!==e&&(e.focus(),window.requestAnimationFrame((()=>this.checkFocus(e))))})),en(this,"setFocus",(()=>{const{selector:e}=this.options;if(!e)return;const t=this.element.querySelector(e);t&&window.requestAnimationFrame((()=>this.checkFocus(t)))})),!(e instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=e,this.options=t,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}}(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),h("lifecycle",[rn.TOOLTIP,rn.INIT],rn.INIT)&&(null==(t=this.scope)||t.removeScope(),d.cleanupPoppers())}componentWillUnmount(){var e;null==(e=this.scope)||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return bn(t)||e===rn.TOOLTIP}render(){const{continuous:e,debug:t,index:n,lifecycle:o,nonce:i,shouldScroll:a,size:s,step:c}=this.props,u=un(c.target);return kn(c)&&v.domElement(u)?r.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},r.createElement(Fn,{id:"react-joyride-portal"},r.createElement(Mn,{...c,debug:t,lifecycle:o,onClickOverlay:this.handleClickOverlay})),r.createElement(Xt,{...c.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:c.placement,target:c.target},r.createElement(Zn,{beaconComponent:c.beaconComponent,continuous:e,index:n,isLastStep:n+1===s,locale:c.locale,nonce:i,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:a,size:s,step:c,styles:c.styles}))):null}},qn=class extends r.Component{constructor(e){super(e),en(this,"helpers"),en(this,"store"),en(this,"callback",(e=>{const{callback:t}=this.props;v.function(t)&&t(e)})),en(this,"handleKeyboard",(e=>{const{index:t,lifecycle:n}=this.state,{steps:r}=this.props,o=r[t];n===rn.TOOLTIP&&"Escape"===e.code&&o&&!o.disableCloseOnEsc&&this.store.close()})),en(this,"syncState",(e=>{this.setState(e)}));const{debug:t,getHelpers:n,run:r,stepIndex:o}=e;this.store=Dn({...e,controlled:r&&v.number(o)}),this.helpers=this.store.getHelpers();const{addListener:i}=this.store;En({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),i(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!an())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:o}=this.store;jn(r,e)&&n&&o(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!an())return;const{action:n,controlled:r,index:o,lifecycle:i,status:a}=this.state,{debug:s,run:c,stepIndex:l,steps:f}=this.props,{stepIndex:d,steps:p}=e,{reset:h,setSteps:m,start:g,stop:y,update:b}=this.store,{changed:_}=O(e,this.props),{changed:E,changedFrom:w}=O(t,this.state),S=Pn(f[o],this.props),T=!u(p,f),x=v.number(l)&&_("stepIndex"),A=un(S.target);if(T&&(jn(f,s)?m(f):console.warn("Steps are not valid",f)),_("run")&&(c?g(l):y()),x){let e=v.number(d)&&d=0?u:0,r===on.RUNNING&&function(e,t){const{duration:n,element:r}=t;return new Promise(((t,o)=>{const{scrollTop:i}=r,a=e>i?e-i:i-e;C.top(r,e,{duration:a<100?50:n},(e=>e&&"Element already at target scroll position"!==e.message?o(e):t()))}))}(u,{element:c,duration:a}).then((()=>{setTimeout((()=>{var e;null==(e=this.store.getPopper("tooltip"))||e.instance.update()}),10)}))}}render(){if(!an())return null;const{index:e,status:t}=this.state,{continuous:n=!1,debug:o=!1,nonce:i,scrollToFirstStep:a=!1,steps:s}=this.props;let c;if(t===on.RUNNING&&s[e]){const t=Pn(s[e],this.props);c=r.createElement(Hn,{...this.state,callback:this.callback,continuous:n,debug:o,helpers:this.helpers,nonce:i,shouldScroll:!t.disableScrolling&&(0!==e||a),step:t,store:this.store})}return r.createElement("div",{className:"react-joyride"},c)}};en(qn,"defaultProps",xn);var Gn=qn},99968:function(e,t,n){"use strict";n.d(t,{J$:function(){return K},ZP:function(){return X},kY:function(){return z}});var r=n(67597);function o(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(t){i(t)}}function s(e){try{c(r.throw(e))}catch(t){i(t)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]i||setTimeout(r,s,o)},onDiscarded:s,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:k?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:k?5e3:3e3,compare:function(e,t){return v(e)==v(t)},isPaused:function(){return!1},cache:U,mutate:V,fallback:{}},x),q=function(e,t){var n=d(e,t);if(t){var r=e.use,o=e.fallback,i=t.use,a=t.fallback;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=d(o,a))}return n},G=(0,r.createContext)({}),W=function(e){return f(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},z=function(){return d(H,(0,r.useContext)(G))},$=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},Y={dedupe:!0},K=u.defineProperty((function(e){var t=e.value,n=q((0,r.useContext)(G),t),o=t&&t.provider,i=(0,r.useState)((function(){return o?F(o(n.cache||U),t):c}))[0];return i&&(n.cache=i[0],n.mutate=i[1]),I((function(){return i?i[2]:c}),[]),(0,r.createElement)(G.Provider,d(e,{value:n}))}),"default",{value:H}),X=(a=function(e,t,n){var a=n.cache,s=n.compare,u=n.fallbackData,p=n.suspense,h=n.revalidateOnMount,m=n.refreshInterval,g=n.refreshWhenHidden,v=n.refreshWhenOffline,y=R.get(a),b=y[0],_=y[1],E=y[2],w=y[3],S=j(e),T=S[0],x=S[1],A=S[2],P=(0,r.useRef)(!1),k=(0,r.useRef)(!1),D=(0,r.useRef)(T),M=(0,r.useRef)(t),F=(0,r.useRef)(n),B=function(){return F.current},U=function(){return B().isVisible()&&B().isOnline()},V=function(e){return a.set(A,d(a.get(A),e))},H=a.get(T),q=l(u)?n.fallback[T]:u,G=l(H)?q:H,W=a.get(A)||{},z=W.error,K=function(){return l(h)?!B().isPaused()&&(p?!l(G):l(G)||n.revalidateIfStale):h},X=!(!T||!t)&&(!!W.isValidating||!P.current&&K()),J=function(e,t){var n=(0,r.useState)({})[1],o=(0,r.useRef)(e),i=(0,r.useRef)({data:!1,error:!1,isValidating:!1}),a=(0,r.useCallback)((function(e){var r=!1,a=o.current;for(var s in e){var c=s;a[c]!==e[c]&&(a[c]=e[c],i.current[c]&&(r=!0))}r&&!t.current&&n({})}),[]);return I((function(){o.current=e})),[o,i.current,a]}({data:G,error:z,isValidating:X},k),Q=J[0],ee=J[1],te=J[2],ne=(0,r.useCallback)((function(e){return o(void 0,void 0,void 0,(function(){var t,r,o,u,d,p,h,m,g,v,y,b,_;return i(this,(function(i){switch(i.label){case 0:if(t=M.current,!T||!t||k.current||B().isPaused())return[2,!1];u=!0,d=e||{},p=!w[T]||!d.dedupe,h=function(){return!k.current&&T===D.current&&P.current},m=function(){var e=w[T];e&&e[1]===o&&delete w[T]},g={isValidating:!1},v=function(){V({isValidating:!1}),h()&&te(g)},V({isValidating:!0}),te({isValidating:!0}),i.label=1;case 1:return i.trys.push([1,3,,4]),p&&(N(a,T,Q.current.data,Q.current.error,!0),n.loadingTimeout&&!a.get(T)&&setTimeout((function(){u&&h()&&B().onLoadingSlow(T,n)}),n.loadingTimeout),w[T]=[t.apply(void 0,x),Z()]),_=w[T],r=_[0],o=_[1],[4,r];case 2:return r=i.sent(),p&&setTimeout(m,n.dedupingInterval),w[T]&&w[T][1]===o?(V({error:c}),g.error=c,y=E[T],!l(y)&&(o<=y[0]||o<=y[1]||0===y[1])?(v(),p&&h()&&B().onDiscarded(T),[2,!1]):(s(Q.current.data,r)?g.data=Q.current.data:g.data=r,s(a.get(T),r)||a.set(T,r),p&&h()&&B().onSuccess(r,T,n),[3,4])):(p&&h()&&B().onDiscarded(T),[2,!1]);case 3:return b=i.sent(),m(),B().isPaused()||(V({error:b}),g.error=b,p&&h()&&(B().onError(b,T,n),("boolean"===typeof n.shouldRetryOnError&&n.shouldRetryOnError||f(n.shouldRetryOnError)&&n.shouldRetryOnError(b))&&U()&&B().onErrorRetry(b,T,n,ne,{retryCount:(d.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return u=!1,v(),h()&&p&&N(a,T,g.data,g.error,!1),[2,!0]}}))}))}),[T]),re=(0,r.useCallback)(L.bind(c,a,(function(){return D.current})),[]);if(I((function(){M.current=t,F.current=n})),I((function(){if(T){var e=P.current,t=ne.bind(c,Y),n=0,r=$(T,_,(function(e,t,n){te(d({error:t,isValidating:n},s(Q.current.data,e)?c:{data:e}))})),o=$(T,b,(function(e){if(0==e){var r=Date.now();B().revalidateOnFocus&&r>n&&U()&&(n=r+B().focusThrottleInterval,t())}else if(1==e)B().revalidateOnReconnect&&U()&&t();else if(2==e)return ne()}));return k.current=!1,D.current=T,P.current=!0,e&&te({data:G,error:z,isValidating:X}),K()&&(l(G)||O?t():C(t)),function(){k.current=!0,r(),o()}}}),[T,ne]),I((function(){var e;function t(){var t=f(m)?m(G):m;t&&-1!==e&&(e=setTimeout(n,t))}function n(){Q.current.error||!g&&!B().isVisible()||!v&&!B().isOnline()?t():ne(Y).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[m,g,v,ne]),(0,r.useDebugValue)(G),p&&l(G)&&T)throw M.current=t,F.current=n,l(z)?ne(Y):z;return{mutate:re,get data(){return ee.data=!0,G},get error(){return ee.error=!0,z},get isValidating(){return ee.isValidating=!0,X}}},function(){for(var e=[],t=0;t0;)u=l[f](u);return u(o,i||c.fetcher,c)})},62103:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r,o,i=n(99968),a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n