CoreFiles by mySites.guru
sa11y.esm.min.js5,890 lines, 261,568 bytes, from Joomla_6.2.2-Stable-Full_Package.zip
Raw History Compare with 6.2.1
md5
41e93bf77d9325b7de9b3a1d1cad00d0
sha1
b0ad9994e05ef551b178b27a21fccf1f286bcf64
sha256
dbb5b3fb09dcea2959968d5a530e04671dbcdbb563d2d7c6902b5c5ae8b3257d
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890
/*!
      * Sa11y, the accessibility quality assurance assistant.
      * @version 5.0.9
      * @author Adam Chaboryk
      * @license GPL-2.0-or-later
      * @copyright © 2020 - 2026 Toronto Metropolitan University.
      * @contact [email protected]
      * GitHub: git+https://github.com/ryersondmp/sa11y.git | Website: https://sa11y.netlify.app
      * The above copyright notice shall be included in all copies or substantial portions of the Software.
    **/
const ho = {
  // Target area to check
  checkRoot: "body",
  fixedRoots: !1,
  // Exclusions
  containerIgnore: ".sa11y-ignore",
  contrastIgnore: ".sr-only",
  outlineIgnore: "",
  headerIgnore: "",
  headerIgnoreSpan: "",
  headerIgnoreStrings: "",
  imageIgnore: "",
  linkIgnore: "",
  linkIgnoreSpan: "",
  linkIgnoreStrings: [],
  paragraphIgnore: "table p",
  ignoreContentOutsideRoots: !1,
  ignoreByTest: {
    LABELS_ARIA_LABELS_INPUT: ':is(header, footer) [type="search"]',
    LABELS_PLACEHOLDER: ':is(header, footer) [type="search"]'
  },
  // Control panel settings
  aboutContent: "",
  panelPosition: "right",
  showMovePanelToggle: !0,
  checkAllHideToggles: !1,
  developerChecksOnByDefault: !1,
  // Page outline
  showHinPageOutline: !1,
  showTitleInPageOutline: !0,
  // Image outline
  showImageOutline: !0,
  editImageURLofCMS: "",
  relativePathImageSRC: "",
  relativePathImageID: "",
  ignoreEditImageURL: [],
  ignoreEditImageClass: [],
  // Other features
  delayCheck: 0,
  delayCustomCheck: 500,
  detectSPArouting: !1,
  doNotRun: "",
  headless: !1,
  selectorPath: !1,
  shadowComponents: "",
  autoDetectShadowComponents: !1,
  pepper: window.location.hostname,
  // Provide a string to seed hashes.
  unitTestMode: !1,
  // Annotations
  showGoodImageButton: !0,
  showGoodLinkButton: !0,
  dismissAnnotations: !0,
  dismissAll: !0,
  ignoreHiddenOverflow: "",
  insertAnnotationBefore: "",
  // Readability
  readabilityPlugin: !0,
  readabilityRoot: "body",
  readabilityIgnore: "",
  // Contrast
  contrastPlugin: !0,
  contrastAlgorithm: "AA",
  // AA, AAA, APCA
  // Other plugins
  customChecks: !1,
  formLabelsPlugin: !0,
  embeddedContentPlugin: !0,
  developerPlugin: !0,
  externalDeveloperChecks: !1,
  colourFilterPlugin: !0,
  exportResultsPlugin: !1,
  // Options for accName computation: Ignore ARIA on these elements.
  ignoreAriaOnElements: !1,
  // e.g. 'h1,h2,h3,h4,h5,h6'
  ignoreTextInElements: !1,
  // e.g. '.inner-node-hidden-in-CSS'
  // Shared properties for some checks
  altPlaceholder: [],
  susAltStopWords: "",
  linkStopWords: "",
  extraPlaceholderStopWords: "",
  imageWithinLightbox: "",
  initialHeadingLevel: [],
  // Shared properties for page language detection
  langOfPartsPlugin: !1,
  langOfPartsCache: !0,
  // All checks
  checks: {
    // Heading checks
    HEADING_SKIPPED_LEVEL: !0,
    HEADING_EMPTY_WITH_IMAGE: !0,
    HEADING_EMPTY: !0,
    HEADING_FIRST: !0,
    HEADING_LONG: {
      maxLength: 170
    },
    HEADING_MISSING_ONE: !0,
    HEADING_UNPRONOUNCEABLE: !0,
    // Image checks
    MISSING_ALT_LINK: !0,
    MISSING_ALT_LINK_HAS_TEXT: !0,
    MISSING_ALT: !0,
    IMAGE_DECORATIVE_CAROUSEL: {
      sources: ".carousel"
    },
    LINK_IMAGE_NO_ALT_TEXT: !0,
    LINK_IMAGE_TEXT: !0,
    IMAGE_FIGURE_DECORATIVE: !0,
    IMAGE_DECORATIVE: !0,
    LINK_ALT_FILE_EXT: !0,
    ALT_FILE_EXT: !0,
    LINK_PLACEHOLDER_ALT: !0,
    ALT_PLACEHOLDER: !0,
    LINK_SUS_ALT: !0,
    SUS_ALT: !0,
    LINK_IMAGE_LONG_ALT: {
      maxLength: 250
    },
    IMAGE_ALT_TOO_LONG: {
      maxLength: 250
    },
    LINK_IMAGE_ALT: {
      dismissAll: !0
    },
    LINK_IMAGE_ALT_AND_TEXT: !0,
    IMAGE_FIGURE_DUPLICATE_ALT: !0,
    IMAGE_PASS: {
      dismissAll: !0
    },
    ALT_UNPRONOUNCEABLE: !0,
    LINK_ALT_UNPRONOUNCEABLE: !0,
    ALT_MAYBE_BAD: {
      minLength: 15
    },
    LINK_ALT_MAYBE_BAD: {
      minLength: 15
    },
    ALT_MAYBE_BAD_WARNING: !0,
    LINK_ALT_MAYBE_BAD_WARNING: !0,
    // Link checks
    DUPLICATE_TITLE: {
      dismissAll: !0
    },
    LINK_EMPTY_LABELLEDBY: !0,
    LINK_EMPTY_NO_LABEL: !0,
    LINK_STOPWORD: !0,
    LINK_STOPWORD_ARIA: !0,
    LINK_SYMBOLS: !0,
    LINK_CLICK_HERE: !0,
    LINK_DOI: {
      dismissAll: !0
    },
    LINK_URL: {
      maxLength: 40
    },
    LINK_LABEL: {
      dismissAll: !0
    },
    LINK_EMPTY: !0,
    LINK_IDENTICAL_NAME: {
      dismissAll: !0
    },
    LINK_NEW_TAB: {
      dismissAll: !0
    },
    LINK_FILE_EXT: !0,
    LINK_UNPRONOUNCEABLE: !0,
    // Form labels checks
    LABELS_MISSING_IMAGE_INPUT: !0,
    LABELS_INPUT_RESET: !0,
    LABELS_MISSING_LABEL: !0,
    LABELS_NO_FOR_ATTRIBUTE: !0,
    LABELS_PLACEHOLDER: !0,
    LABELS_ARIA_LABEL_INPUT: !0,
    ARIA_INPUT_FIELD_NAME: !0,
    // Embedded content checks
    EMBED_AUDIO: {
      sources: ""
    },
    EMBED_VIDEO: {
      sources: ""
    },
    EMBED_DATA_VIZ: {
      sources: ""
    },
    EMBED_UNFOCUSABLE: !0,
    EMBED_MISSING_TITLE: !0,
    EMBED_GENERAL: !0,
    // Quality assurance checks
    QA_BAD_LINK: {
      sources: ""
    },
    QA_STRONG_ITALICS: !0,
    QA_IN_PAGE_LINK: !0,
    QA_DOCUMENT: {
      sources: "",
      dismissAll: !0
    },
    QA_PDF: {
      sources: "",
      dismissAll: !0
    },
    QA_BLOCKQUOTE: !0,
    TABLES_MISSING_HEADINGS: !0,
    TABLES_SEMANTIC_HEADING: !0,
    TABLES_EMPTY_HEADING: !0,
    TABLES_INVALID_HEADERS_REF: !0,
    QA_FAKE_HEADING: !0,
    QA_FAKE_LIST: !0,
    QA_UPPERCASE: !0,
    QA_UNDERLINE: !0,
    QA_SUBSCRIPT: !0,
    QA_NESTED_COMPONENTS: {
      sources: ""
    },
    QA_JUSTIFY: {
      dismissAll: !0
    },
    QA_SMALL_TEXT: {
      dismissAll: !0
    },
    // Meta checks
    META_LANG: !0,
    META_LANG_VALID: !0,
    META_LANG_SUGGEST: !0,
    META_SCALABLE: !0,
    META_MAX: !0,
    META_REFRESH: !0,
    PAGE_LANG_CONFIDENCE: {
      confidence: 0.95
    },
    LANG_OF_PARTS: !0,
    LANG_MISMATCH: !0,
    LANG_OF_PARTS_ALT: !0,
    // Developer checks
    DUPLICATE_ID: !0,
    META_TITLE: !0,
    UNCONTAINED_LI: !0,
    TABINDEX_ATTR: !0,
    HIDDEN_FOCUSABLE: !0,
    LABEL_IN_NAME: !0,
    BTN_EMPTY: !0,
    BTN_EMPTY_LABELLEDBY: !0,
    BTN_ROLE_IN_NAME: !0,
    LINK_MAYBE_BUTTON: !0,
    BTN_UNPRONOUNCEABLE: !0,
    // Contrast checks
    CONTRAST_WARNING: {
      dismissAll: !0
    },
    CONTRAST_INPUT: !0,
    CONTRAST_ERROR: !0,
    CONTRAST_PLACEHOLDER: !0,
    CONTRAST_PLACEHOLDER_UNSUPPORTED: !0,
    CONTRAST_ERROR_GRAPHIC: !0,
    CONTRAST_WARNING_GRAPHIC: {
      dismissAll: !0
    },
    CONTRAST_UNSUPPORTED: {
      dismissAll: !0
    }
  }
}, u = {
  option: { ...ho },
  results: [],
  headingOutline: [],
  imageResults: [],
  counts: {
    error: 0,
    warning: 0,
    dismissed: 0
  },
  customChecks: {
    running: !1,
    finished: 0
  },
  dismissedResults: [],
  start: 0
}, bo = () => {
  u.results = [], u.headingOutline = [], u.imageResults = [], u.counts.error = 0, u.counts.warning = 0, u.counts.dismissed = 0, u.customChecks.running = !1, u.customChecks.finished = 0, u.dismissedResults = [], u.start = 0;
}, yo = (e) => {
  u.option = {
    ...u.option,
    ...e,
    checks: {
      ...u.option.checks,
      ...e.checks || {}
    }
  };
}, b = {
  langStrings: {},
  addI18n(e) {
    this.langStrings = e;
  },
  _(e) {
    return this.translate(e);
  },
  sprintf(e, ...t) {
    let o = this._(e);
    o = this.prepHTML(o), t?.length && t.forEach((i, s) => {
      o = o.replace(/%\([a-zA-Z_]+\)/, `<span data-arg='${s}'></span>`);
    });
    const n = document.createElement("div");
    return n.innerHTML = o, t?.length && t.forEach((i, s) => {
      const a = n.querySelector(`[data-arg="${s}"]`);
      !a || i === null || (a.textContent = this.truncateString(String(i), 300));
    }), n;
  },
  translate(e) {
    return this.langStrings[e] || e;
  },
  prepHTML(e) {
    return e.replaceAll(/<hr>/g, '<hr aria-hidden="true">').replaceAll(/<a[\s]href=/g, '<a target="_blank" rel="noopener noreferrer" href=').replaceAll(/<\/a>/g, `<span class="visually-hidden"> (${b._("NEW_TAB")})</span></a>`).replaceAll(/{C}/g, 'class="colour"').replaceAll(/{B}/g, 'class="badge"').replaceAll(/{ALT}/g, `<strong class="badge">${b._("ALT")}</strong>`).replaceAll(
      /{L}/g,
      `<strong class="badge"><span class="link-icon"></span><span class="visually-hidden">${b._("LINKED")}</span></strong>`
    );
  },
  truncateString(e, t) {
    const o = e.substring(0, t).trimEnd();
    return e.length > t ? `${o}...` : e;
  }
};
function Pe() {
  if (u.option.headless) return;
  const e = document.querySelector("sa11y-control-panel").shadowRoot, t = e.getElementById("panel-alert"), o = e.getElementById("panel-alert-text"), n = e.getElementById("panel-alert-preview");
  for (t.classList.remove("active"), n.classList.remove("panel-alert-preview"); o.firstChild; )
    o.removeChild(o.firstChild);
  for (; n.firstChild; )
    n.removeChild(n.firstChild);
}
function Ie(e, t, o, n = !1) {
  if (u.option.headless) return;
  const i = n ? `sa11y-dismissed-alert-${e.textContent.substring(0, 20)}` : "";
  if (n && k.getItem(i)) return;
  Pe();
  const s = document.querySelector("sa11y-control-panel").shadowRoot, a = s.getElementById("panel-alert"), r = s.getElementById("panel-alert-text"), d = s.getElementById("panel-alert-preview"), c = s.getElementById("close-alert"), p = s.getElementById("skip-button");
  if (a.classList.add("active"), typeof e == "string" ? r.textContent = e : r.appendChild(e), d.innerHTML = "", t) {
    if (d.classList.add("panel-alert-preview"), o) {
      const m = document.createElement("div");
      m.className = "element-preview", typeof o == "string" ? m.textContent = o : m.appendChild(o), d.appendChild(m);
    }
    const g = document.createElement("div");
    g.className = "preview-message", typeof t == "string" ? g.textContent = t : g.appendChild(t), d.appendChild(g);
  }
  if (n) {
    const g = document.createElement("button");
    g.setAttribute("type", "button"), g.setAttribute("class", "dismiss-alert"), g.textContent = b._("Dismiss"), g.id = "dismiss-alert", g.setAttribute("aria-labelledby", "dismiss-alert alert-heading"), g.setAttribute("aria-describedby", "panel-alert-text"), g.addEventListener("click", () => {
      k.setItem(i, "true"), l();
    }), r.appendChild(g);
  }
  setTimeout(() => c.focus(), 300);
  function l() {
    Pe(), (p.hasAttribute("disabled") ? s.getElementById("toggle") : p).focus();
  }
  c.addEventListener("click", l), a.onkeydown = (g) => {
    (g || window.event).key === "Escape" && a.classList.contains("active") && l();
  };
}
const f = /* @__PURE__ */ (function() {
  const t = {};
  function o() {
    t.html = document.querySelector("html"), t.shadowDetection = u.option.shadowComponents.length > 0 || u.option.autoDetectShadowComponents === !0;
    const l = /* @__PURE__ */ new Set(["top-left", "top-right", "left", "right"]), g = u.option.panelPosition?.trim().toLowerCase();
    t.panelPosition = l.has(g) ? g : "right", t.contrastAlgorithm = u.option.contrastAlgorithm.toUpperCase();
    let m = !1;
    if (typeof window.matchMedia == "function" && (m = window.matchMedia("(prefers-reduced-motion: reduce)")), t.scrollBehaviour = !m || m.matches ? "auto" : "smooth", t.langDirection = t.html.getAttribute("dir")?.trim()?.toLowerCase() === "rtl" ? "rtl" : "ltr", u.option.checks.QA_DOCUMENT !== !1) {
      const w = 'a[href$=".doc"], a[href$=".docx"], a[href*=".doc?"], a[href*=".docx?"], a[href$=".ppt"], a[href$=".pptx"], a[href*=".ppt?"], a[href*=".pptx?"], a[href^="https://drive.google.com/file"], a[href^="https://docs.google."], a[href^="https://sway."]';
      t.documentSources = u.option.checks.QA_DOCUMENT.sources ? `${w}, ${u.option.checks.QA_DOCUMENT.sources}` : w;
    } else
      t.documentSources = !1;
    u.option.checks.QA_PDF !== !1 ? t.pdfSources = u.option.checks.QA_PDF.sources ? u.option.checks.QA_PDF.sources : 'a[href$=".pdf"], a[href*=".pdf?"], a[href*="/pdf/"], a[href*="/PDF/"]' : t.pdfSources = !1, t.susAltWords = u.option.susAltStopWords ? u.option.susAltStopWords.split(",").map((w) => w.trim().toLowerCase()).filter(Boolean) : b._("SUS_ALT_STOPWORDS"), t.placeholderAltSet = new Set(b._("PLACEHOLDER_ALT_STOPWORDS")), t.altPlaceholderPattern = re(u.option.altPlaceholder, !0), t.linkIgnoreStringPattern = re(u.option.linkIgnoreStrings), t.unpronounceablePattern = /[\p{L}\p{N}\p{Extended_Pictographic}]/u, t.extraPlaceholderStopWords = u.option.extraPlaceholderStopWords.split(",").map((w) => w.trim().toLowerCase()).filter(Boolean), t.headerStringExclusionPattern = re(u.option.headerIgnoreStrings);
    const x = u.option.linkStopWords ? u.option.linkStopWords.split(",").map((w) => w.toLowerCase().trim()) : [];
    t.linkStopWords = /* @__PURE__ */ new Set([...b._("LINK_STOPWORDS"), ...x]), t.linkIgnoreStrings = new Set(
      u.option.linkIgnoreStrings.map((w) => w.toLowerCase())
    ), t.clickRegex = re(b._("CLICK")), t.newWindowRegex = re(b._("NEW_WINDOW_PHRASES"));
    const h = [
      "pdf",
      "doc",
      "docx",
      "word",
      "mp3",
      "ppt",
      "text",
      "pptx",
      "txt",
      "exe",
      "dmg",
      "rtf",
      "windows",
      "macos",
      "csv",
      "xls",
      "xlsx",
      "mp4",
      "mov",
      "avi",
      "zip"
    ];
    t.fileTypeRegex = re(h), t.linkIgnorePattern = re(u.option.linkIgnoreStrings);
    const v = u.option.checks.EMBED_VIDEO.sources, y = 'video, [src*="Video"], [src*="video"], [src*="watch"], [src*="youtube.com"], [src*="vimeo.com"], [src*="panopto.com"], [src*="wistia.com"], [src*="dailymotion.com"], [src*="brightcove.com"], [src*="vidyard.com"]';
    if (v) {
      const w = v.split(/\s*[\s,]\s*/).map((E) => `[src*="${E}"]`);
      t.VideoSources = `${y}, ${w.join(", ")}`;
    } else
      t.VideoSources = y;
    const A = u.option.checks.EMBED_AUDIO.sources, T = 'audio, [src*="soundcloud.com"], [src*="simplecast.com"], [src*="podbean.com"], [src*="buzzsprout.com"], [src*="blubrry.com"], [src*="transistor.fm"], [src*="fusebox.fm"], [src*="libsyn.com"], [src*="spotify.com"], [src*="podcasts.apple.com"], [src*="castbox.fm"], [src*="megaphone.fm"], [src*="spreaker.com"], [src*="anchor.fm"], [src*="rss.com"], [src*="redcircle.com"]';
    if (A) {
      const w = A.split(/\s*[\s,]\s*/).map((E) => `[src*="${E}"]`);
      t.AudioSources = `${T}, ${w.join(", ")}`;
    } else
      t.AudioSources = T;
    const L = u.option.checks.EMBED_DATA_VIZ.sources, I = '[src*="datastudio"], [src*="tableau"], [src*="lookerstudio"], [src*="powerbi"], [src*="qlik"]';
    if (L) {
      const w = L.split(/\s*[\s,]\s*/).map((E) => `[src*="${E}"]`);
      t.VisualizationSources = `${I}, ${w.join(", ")}`;
    } else
      t.VisualizationSources = I;
    t.AllEmbeddedContent = `${t.VideoSources}, ${t.AudioSources}, ${t.VisualizationSources}`;
  }
  const n = {};
  function i(l, g, m) {
    if (n.areaToCheck = [], n.Readability = [], m) {
      n.areaToCheck = m, n.Readability = m;
      return;
    }
    try {
      const x = document.querySelectorAll(l);
      x.length > 0 ? x.forEach((h) => {
        f.Root.areaToCheck.push(h);
      }) : console.error(`Sa11y: The target root (${l}) does not exist.`);
    } catch {
      n.areaToCheck.length = 0;
    }
    n.areaToCheck.length === 0 && t.headless === !1 && (Ie(b.sprintf("MISSING_ROOT", l)), n.areaToCheck.push(document.body));
    try {
      const x = document.querySelectorAll(g);
      x.length > 0 ? x.forEach((h) => {
        f.Root.Readability.push(h);
      }) : (n.Readability = n.areaToCheck, console.error(
        `Sa11y: The target readability root (${g}) does not exist.`
      ), setTimeout(() => {
        const { readabilityDetails: h, readabilityToggle: v } = f.Panel, y = v?.getAttribute("aria-pressed") === "true", A = f.Panel.readability.querySelector("#readability-alert");
        if (h && y && !A) {
          const T = n.areaToCheck.map((w) => w.id ? `#${w.id}` : w.className ? `.${w.className.split(/\s+/).filter(Boolean).join(".")}` : w.tagName.toLowerCase()).join(", "), L = document.createElement("div");
          L.id = "readability-alert", L.appendChild(document.createElement("hr"));
          const I = b.sprintf("MISSING_READABILITY_ROOT", T, g);
          L.appendChild(I), h.insertAdjacentElement("afterend", L);
        }
      }, 100));
    } catch {
      n.Readability.length = 0;
    }
  }
  const s = {};
  function a() {
    const l = document.querySelector("sa11y-control-panel").shadowRoot;
    s.panel = l.getElementById("panel"), s.content = l.getElementById("panel-content"), s.controls = l.getElementById("panel-controls"), s.outline = l.getElementById("outline-panel"), s.outlineContent = l.getElementById("outline-content"), s.outlineList = l.getElementById("outline-list"), s.outlineHeader = l.getElementById("outline-header"), s.images = l.getElementById("images-panel"), s.imagesContent = l.getElementById("images-content"), s.imagesList = l.getElementById("images-list"), s.imagesHeader = l.getElementById("images-header"), s.notifBadge = l.getElementById("notification-badge"), s.notifCount = l.getElementById("notification-count"), s.notifText = l.getElementById("notification-text"), s.status = l.getElementById("status"), s.pageIssues = l.getElementById("page-issues"), s.pageIssuesList = l.getElementById("page-issues-list"), s.pageIssuesHeader = l.getElementById("page-issues-header"), s.pageIssuesContent = l.getElementById("page-issues-content"), s.settings = l.getElementById("settings-panel"), s.settingsHeader = l.getElementById("settings-header"), s.settingsContent = l.getElementById("settings-content"), s.developerToggle = l.getElementById("developer-toggle"), s.readabilityToggle = l.getElementById("readability-toggle"), s.themeToggle = l.getElementById("theme-toggle"), s.developerItem = l.getElementById("developer-item"), s.readabilityItem = l.getElementById("readability-item"), s.darkModeItem = l.getElementById("dark-mode-item"), s.colourPanel = l.getElementById("panel-colour-filters"), s.colourFilterItem = l.getElementById("colour-filter-item"), s.colourFilterSelect = l.getElementById("colour-filter-select"), s.colourFilterIcon = l.getElementById("filter-icon"), s.toggle = l.getElementById("toggle"), s.outlineToggle = l.getElementById("outline-toggle"), s.imagesToggle = l.getElementById("images-toggle"), s.settingsToggle = l.getElementById("settings-toggle"), s.movePanelToggle = l.getElementById("move-panel"), s.skipButton = l.getElementById("skip-button"), s.dismissButton = l.getElementById("dismiss-button"), s.dismissTooltip = l.getElementById("dismiss-tooltip"), s.skipToPageIssues = l.getElementById("skip-to-page-issues"), s.exportHTML = l.getElementById("export-html"), s.exportCSV = l.getElementById("export-csv"), s.alert = l.getElementById("panel-alert"), s.alertText = l.getElementById("panel-alert-text"), s.alertPreview = l.getElementById("panel-alert-preview"), s.alertClose = l.getElementById("close-alert"), s.readability = l.getElementById("readability-panel"), s.readabilityInfo = l.getElementById("readability-info"), s.readabilityDetails = l.getElementById("readability-details");
  }
  const r = {};
  function d() {
    if (u.option.readabilityPlugin) {
      const l = [
        "en",
        "fr",
        "es",
        "de",
        "nl",
        "it",
        "sv",
        "fi",
        "da",
        "no",
        "nb",
        "nn",
        "pt"
      ], g = b._("LANG_CODE").substring(0, 2), m = f.Global.html.getAttribute("lang")?.trim()?.toLowerCase().substring(0, 2);
      r.Lang = g;
      const x = m && l.includes(m) && l.includes(g);
      r.Plugin = !!x;
    }
  }
  const c = {};
  function p() {
    c.Sa11yElements = [
      "sa11y-heading-label",
      "sa11y-heading-anchor",
      "sa11y-annotation",
      "sa11y-tooltips",
      "sa11y-panel-tooltips",
      "sa11y-control-panel",
      "#sa11y-colour-filters",
      "#sa11y-colour-filters *"
    ];
    const l = ["style", "script", "noscript"];
    if (c.Container = ["#wpadminbar", "#wpadminbar *", ...l], u.option.containerIgnore) {
      const g = u.option.containerIgnore.split(",").map((m) => m.trim());
      c.Container = c.Container.concat(
        g.flatMap((m) => [`${m} *`, m])
      );
    }
    c.Contrast = [
      "link",
      "hr",
      "option",
      "audio",
      "audio *",
      "video",
      "video *",
      'input[type="color"]',
      'input[type="range"]',
      "progress",
      "progress *",
      "meter",
      "meter *",
      "iframe",
      "svg",
      "svg *",
      "script",
      "style",
      "noscript",
      "template",
      "head",
      "head *",
      "title",
      "meta",
      "link",
      "base",
      "datalist",
      "datalist *",
      ...l
    ], u.option.contrastIgnore && (c.Contrast = u.option.contrastIgnore.split(",").map((g) => g.trim()).flatMap((g) => [g, `${g} *`]).concat(c.Contrast)), c.Readability = ["nav li", '[role="navigation"] li', ...l], u.option.readabilityIgnore && (c.Readability = u.option.readabilityIgnore.split(",").map((g) => g.trim()).flatMap((g) => [g, `${g} *`]).concat(c.Readability)), c.Headings = u.option.headerIgnore ? u.option.headerIgnore.split(",").map((g) => g.trim()) : [], c.HeaderSpan = u.option.headerIgnoreSpan ? u.option.headerIgnoreSpan.split(",").map((g) => g.trim()) : [], c.Outline = u.option.outlineIgnore ? u.option.outlineIgnore.split(",").map((g) => g.trim()) : [], c.Images = [
      'img[role="presentation"]:not(a img[role="presentation"]), img[aria-hidden="true"]:not(a img[aria-hidden="true"]), img[role="none"]:not(a img[role="none"]), [aria-hidden="true"][role="img"]'
    ], u.option.imageIgnore && (c.Images = u.option.imageIgnore.split(",").map((g) => g.trim()).concat(c.Images)), c.Links = [".anchorjs-link", '[aria-hidden="true"][tabindex^="-"]'], u.option.linkIgnore && (c.Links = u.option.linkIgnore.split(",").map((g) => g.trim()).concat(c.Links)), c.LinkSpan = u.option.linkIgnoreSpan ? u.option.linkIgnoreSpan.split(",").map((g) => g.trim()) : [], c.Paragraphs = u.option.paragraphIgnore ? u.option.paragraphIgnore.split(",").map((g) => g.trim()) : [];
  }
  return {
    initializeRoot: i,
    Root: n,
    initializeGlobal: o,
    Global: t,
    initializePanelSelectors: a,
    Panel: s,
    initializeReadability: d,
    Readability: r,
    initializeExclusions: p,
    Exclusions: c
  };
})();
function z(e, t, o) {
  const n = [];
  t === "document" ? (n.push(document.body), u.option.fixedRoots && n.push(u.option.fixedRoots)) : t === "root" ? n.push(f.Root.areaToCheck) : n.push(document.querySelectorAll(t));
  const i = f.Exclusions.Container.join(", "), s = o?.join(", ") || "", a = s ? `, ${s}` : "";
  let r = [];
  return n.flat().filter(Boolean)?.forEach((d) => {
    const c = d?.querySelectorAll("[data-sa11y-has-shadow-root]"), p = c ? ", [data-sa11y-has-shadow-root]" : "", l = Array.from(
      d.querySelectorAll(`:is(${e}${p}):not(${i}${a})`)
    );
    if (c.length) {
      const g = [];
      if (l.forEach((m, x) => {
        m?.matches?.("[data-sa11y-has-shadow-root]") && m?.shadowRoot && (g[x] = m.shadowRoot.querySelectorAll(
          `:is(${e}):not(${i}${a})`
        ));
      }), g.length > 0)
        for (let m = g.length - 1; m >= 0; m--)
          g[m] && l.splice(m, 1, ...g[m]);
    }
    r = r.concat(l.filter((g) => g.parentNode.tagName !== "SLOT"));
  }), r;
}
function Rn(e) {
  document.readyState === "complete" ? e() : window.addEventListener("load", e);
}
function On(e) {
  const t = U(e);
  if (t.getPropertyValue("clip-path").startsWith("inset(50%)") || t.clip === "rect(1px, 1px, 1px, 1px)" || t.clip === "rect(0px, 0px, 0px, 0px)")
    return !0;
  const o = parseInt(t.textIndent, 10);
  return !Number.isNaN(o) && Math.abs(o) > 5e3 || t.overflow === "hidden" && parseFloat(t.width) < 2 && parseFloat(t.height) < 2 || t.position === "absolute" && ["left", "right", "top", "bottom"].some((n) => Math.abs(parseInt(t[n], 10)) > 5e3) ? !0 : parseFloat(t.fontSize) < 2;
}
function Z(e) {
  if (e.hidden) return !0;
  const t = U(e);
  return t.getPropertyValue("display") === "none" || t.getPropertyValue("visibility") === "hidden";
}
function zt(e) {
  return !e || typeof e.getAttribute != "function" ? !1 : e.getAttribute("aria-hidden")?.trim().toLowerCase() === "true";
}
function De(e) {
  if (!e || typeof e.getAttribute != "function") return !1;
  const t = e.getAttribute("role");
  return t ? t.toLowerCase().split(/\s+/).some((o) => o === "presentation" || o === "none") : !1;
}
function gt(e) {
  return e?.hasAttribute("tabindex") && e.tabIndex < 0;
}
function ge(e) {
  return (De(e) || zt(e)) && gt(e);
}
function le(e) {
  if (!e || typeof e.getAttribute != "function") return !1;
  const t = e.hasAttribute("disabled") || e.disabled === !0, o = e.getAttribute("aria-disabled")?.trim().toLowerCase() === "true";
  return t || o;
}
function ft(e) {
  return e.offsetWidth === 0 && e.offsetHeight === 0 || e.clientHeight === 1 && e.clientWidth === 1 ? !0 : Z(e);
}
function tt(e) {
  return typeof e != "string" && typeof e != "number" ? "" : String(e).replace(/[^\p{L}\p{N}\s]/gu, "").replace(/\s+/g, " ").trim();
}
const xo = /^([^\w]*)(javascript|data|vbscript)/im, Mn = /&#(\w+)(^\w|;)?/g, un = /&(newline|tab);/gi, Pt = (
  // biome-ignore lint/suspicious/noControlCharactersInRegex: original lib.
  /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim
), vo = /^.+(:|&colon;)/gim, pn = /(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g, Ao = [".", "/"], Qe = "about:blank";
function Eo(e) {
  return Ao.indexOf(e[0]) > -1;
}
function wo(e) {
  return e.replace(Pt, "").replace(Mn, (o, n) => String.fromCharCode(n));
}
function To(e) {
  if (typeof URL.canParse == "function")
    return URL.canParse(e);
  try {
    return !!new URL(e);
  } catch {
    return !1;
  }
}
const gn = (e) => {
  try {
    return decodeURIComponent(e);
  } catch {
    return e;
  }
};
function Lo(e) {
  if (typeof e != "string" && typeof e != "number") return "";
  const t = {
    "&": "&amp;",
    "<": "&lt;",
    ">": "&gt;",
    '"': "&quot;",
    "'": "&#039;",
    "`": "&#x60;"
  };
  return String(e).replace(/[&<>"'`]/g, (o) => t[o]);
}
function xe(e) {
  if (!e || typeof e != "string") return Qe;
  if (/^data:([a-z]+\/[a-z0-9-+.]+)?;base64,/i.test(e.trim())) return e.trim();
  let o, n = gn(e.trim());
  do
    n = wo(n).replace(un, "").replace(Pt, "").replace(pn, "").trim(), n = gn(n), o = n.match(Pt) || n.match(Mn) || n.match(un) || n.match(pn);
  while (o && o.length > 0);
  const i = n;
  if (!i) return Qe;
  if (Eo(i)) return i;
  const s = i.trimStart(), a = s.match(vo);
  if (!a) return i;
  const r = a[0].toLowerCase().trim();
  if (xo.test(r)) return Qe;
  const d = s.replace(/\\/g, "/");
  if (r === "mailto:" || r.includes("://")) return d;
  if (r === "http:" || r === "https:") {
    if (!To(d)) return Qe;
    const c = new URL(d);
    return c.protocol = c.protocol.toLowerCase(), c.hostname = c.hostname.toLowerCase(), c.toString();
  }
  return d;
}
const Io = [
  "a",
  "abbr",
  "address",
  "article",
  "aside",
  "audio",
  "b",
  "bdo",
  "blockquote",
  "br",
  "button",
  "canvas",
  "cite",
  "code",
  "data",
  "dd",
  "del",
  "details",
  "dfn",
  "div",
  "dl",
  "dt",
  "em",
  "fieldset",
  "figcaption",
  "figure",
  "footer",
  "form",
  "h1",
  "h2",
  "h3",
  "h4",
  "h5",
  "h6",
  "header",
  "hr",
  "i",
  "iframe",
  "img",
  "input",
  "ins",
  "kbd",
  "label",
  "li",
  "main",
  "mark",
  "meter",
  "nav",
  "noscript",
  "ol",
  "output",
  "p",
  "picture",
  "pre",
  "progress",
  "q",
  "rp",
  "rt",
  "s",
  "samp",
  "section",
  "select",
  "small",
  "source",
  "span",
  "strong",
  "sub",
  "summary",
  "sup",
  "svg",
  "table",
  "tbody",
  "td",
  "textarea",
  "tfoot",
  "th",
  "thead",
  "time",
  "tr",
  "track",
  "u",
  "ul",
  "var",
  "video",
  "wbr",
  "path"
], fn = {
  a: ["href", "title", "target", "rel", "download"],
  img: ["src", "alt", "title", "width", "height", "loading", "srcset", "sizes"],
  iframe: [
    "src",
    "width",
    "height",
    "title",
    "frameborder",
    "allowfullscreen",
    "loading",
    "sandbox"
  ],
  details: ["open"],
  ol: ["start", "type", "reversed"],
  li: ["value"],
  td: ["colspan", "rowspan"],
  th: ["colspan", "rowspan", "scope"],
  global: ["class", "id", "role", "lang", "dir", "name"],
  path: ["d", "fill", "fill-rule"]
};
function Dn(e) {
  const o = new DOMParser().parseFromString(e, "text/html");
  return o.body.querySelectorAll("*").forEach((i) => {
    const s = i.tagName.toLowerCase();
    if (!Io.includes(s)) {
      i.remove();
      return;
    }
    const a = fn[s] || [], r = fn.global;
    [...i.attributes].forEach(({ name: d, value: c }) => {
      const p = d.startsWith("aria-"), l = a.includes(d) || r.includes(d) || p, g = ["src", "href", "srcset"].includes(d);
      if (!l)
        i.removeAttribute(d);
      else if (g) {
        const m = xe(c);
        m ? i.setAttribute(d, m) : i.removeAttribute(d);
      }
    });
  }), o.body.innerHTML;
}
const mn = "noscript,script,style,audio,video,form,iframe";
function de(e, t = []) {
  const o = t.length ? `${mn},${t.join(",")}` : mn;
  if (!e || e.nodeType !== Node.ELEMENT_NODE)
    return e ? e.cloneNode(!0) : null;
  function n(i, s = !1) {
    const a = i.nodeType;
    if (a === Node.ELEMENT_NODE) {
      if (i.matches(o) && !s)
        return null;
      const r = i.cloneNode(!1);
      if (i.matches(o) && s)
        return r;
      let d = i.firstChild;
      for (; d; ) {
        const c = n(d);
        c && r.appendChild(c), d = d.nextSibling;
      }
      return r;
    }
    return a === Node.TEXT_NODE ? i.cloneNode(!0) : null;
  }
  return n(e, !0);
}
let nt = /* @__PURE__ */ new WeakMap();
function G(e) {
  if (nt.has(e))
    return nt.get(e);
  const o = de(e).textContent.replace(/[\r\n]+/g, "").replace(/\s+/g, " ").trim();
  return nt.set(e, o), o;
}
function Bn() {
  nt = /* @__PURE__ */ new WeakMap();
}
let ot = {};
const U = (e, t = null) => {
  if (!e) return null;
  const o = t || "base";
  ot[o] || (ot[o] = /* @__PURE__ */ new WeakMap());
  const n = ot[o];
  return n.has(e) || n.set(e, getComputedStyle(e, t)), n.get(e);
}, Gn = () => {
  ot = {};
};
let it = /* @__PURE__ */ new WeakMap();
function M(e, t) {
  if (e?.nodeType !== 1 || typeof t != "string" || t.trim() === "") return null;
  try {
    it.has(e) || it.set(e, /* @__PURE__ */ new Map());
    const o = it.get(e);
    if (o.has(t))
      return o.get(t);
    const n = e.closest(t);
    return o.set(t, n), n;
  } catch {
    return null;
  }
}
function Fn() {
  it = /* @__PURE__ */ new WeakMap();
}
function V(e) {
  return typeof e != "string" && typeof e != "number" ? "" : String(e).replace(/\s+/g, " ").trim();
}
function $t(e) {
  return typeof e != "string" && typeof e != "number" ? "" : V(String(e).replace(/[\u0000-\u001F\u007F-\u009F]/g, ""));
}
function fe(e, t) {
  if (typeof e != "string" && typeof e != "number") return "";
  const o = String(e).substring(0, t).trimEnd();
  return e.length > t ? `${o}...` : String(e);
}
function Hn(e, t) {
  let o = null;
  return (...n) => {
    window.clearTimeout(o), o = window.setTimeout(() => {
      e(...n);
    }, t);
  };
}
function Be(e, t, o) {
  let n = e;
  for (; n; ) {
    if (U(n).getPropertyValue(t) === o)
      return n;
    n = n.parentElement;
  }
  return null;
}
function st(e) {
  const t = e.getBoundingClientRect(), o = window.pageYOffset || document.documentElement.scrollTop;
  return { top: t.top + o };
}
const k = {
  getItem(e) {
    try {
      return localStorage.getItem(e) === null ? sessionStorage.getItem(e) : localStorage.getItem(e);
    } catch {
      return !1;
    }
  },
  setItem(e, t) {
    try {
      localStorage.setItem(e, t);
    } catch {
      sessionStorage.setItem(e, t);
    }
    return !0;
  },
  removeItem(e) {
    try {
      localStorage.removeItem(e);
    } catch {
      sessionStorage.removeItem(e);
    }
    return !0;
  }
};
function $e(e) {
  const t = "data-sa11y-pulse-border";
  e.setAttribute(t, ""), setTimeout(() => e.removeAttribute(t), 2500);
}
function _o(e, t) {
  let o = e.nextElementSibling;
  if (!t)
    return o;
  for (; o; ) {
    if (o.matches(t))
      return o;
    o = o.nextElementSibling;
  }
  return "";
}
function ke(e) {
  return String(e).replace(/([^0-9a-zA-Z])/g, "").substring(0, 256);
}
function Kt(e) {
  const t = [];
  let o = e;
  for (; o; ) {
    let n = o.localName;
    if (o.id) {
      n += `#${o.id}`, t.unshift(n);
      break;
    } else {
      const s = o.getAttribute ? o.getAttribute("class") : null;
      if (s) {
        const a = s.trim().replace(/\s+/g, ".");
        a && (n += `.${a}`);
      }
    }
    const i = o.parentNode;
    if (i) {
      const s = i.children;
      if (s.length > 1) {
        const a = Array.prototype.indexOf.call(s, o) + 1;
        n += `:nth-child(${a})`;
      }
      t.unshift(n);
    } else
      break;
    o = o.parentNode.host || o.parentNode;
  }
  return t.join(" > ");
}
function Un(e) {
  const t = e.querySelectorAll(
    'a[href]:not([disabled]), button:not([disabled]), input[type="color"]'
  ), o = t[0], n = t[t.length - 1];
  e.addEventListener("keydown", (i) => {
    const s = i.key === "Tab" || i.keyCode === 9, a = e.getRootNode();
    s && (i.shiftKey ? a.activeElement === o && (n.focus(), i.preventDefault()) : a.activeElement === n && (o.focus(), i.preventDefault()));
  });
}
function qt(e, t) {
  e.forEach((o) => {
    z(`[${o}]`, `${t}`).forEach((i) => {
      i.removeAttribute(o);
    });
  });
}
function Vt(e, t) {
  z(`${e}`, `${t}`).forEach((n) => {
    n?.parentNode?.removeChild(n);
  });
}
function Ge(e, t, o) {
  setTimeout(() => {
    e.scrollHeight > t.clientHeight ? (t.classList.add("scrollable"), e.setAttribute("tabindex", "0"), o && (e.setAttribute("aria-label", o), e.setAttribute("role", "region"))) : t.classList.remove("scrollable");
  }, 50);
}
function jt(e) {
  const t = (a) => a?.split(/,\s+/).pop()?.trim()?.split(/\s+/)[0], o = (a) => a ? new URL(a, window.location.href).href : null, n = t(e.getAttribute("data-src") || e.getAttribute("srcset"));
  if (n) return o(n);
  const i = M(e, "picture")?.querySelector("source[srcset]")?.getAttribute("srcset"), s = t(i);
  return o(s || e.getAttribute("src"));
}
const Wn = (e) => new Promise((t, o) => {
  const n = new FileReader();
  n.onloadend = () => {
    let { result: i } = n;
    const s = e?.type?.startsWith("image/") ? e.type : "image/png";
    i.startsWith("data:application/octet-stream") && (i = i.replace("data:application/octet-stream", `data:${s}`)), t(i);
  }, n.onerror = o, n.readAsDataURL(e);
});
function Qt(e, t = !1) {
  const o = e.element, n = () => {
    const a = document.createElement("pre"), r = document.createElement("code");
    return r.textContent = fe(e.htmlPath, 150), a.appendChild(r), a;
  }, s = {
    A: (a) => {
      const r = G(a);
      if (r.length > 1 && a.href && !a.hasAttribute("role")) {
        const d = document.createElement("a");
        return d.href = xe(a.href), d.textContent = fe(r, 150), d;
      }
      return n();
    },
    IMG: (a) => {
      const r = jt(a);
      if (!r) return n();
      const d = M(a, "a[href]"), c = (p) => {
        const l = document.createElement("img");
        if (l.src = p.startsWith("data:image/") ? p : xe(p), a.alt && (l.alt = a.alt), d) {
          const g = document.createElement("a");
          return g.href = xe(d.href), g.rel = "noopener noreferrer", g.appendChild(l), g;
        }
        return l;
      };
      return t ? (async () => {
        try {
          if (new URL(r, window.location.origin).origin !== window.location.origin)
            throw new Error();
          const l = await (await fetch(r)).blob(), g = await Wn(l);
          return c(g);
        } catch {
          return c(r);
        }
      })() : c(r);
    }
  }[o.tagName];
  return s ? s(o) : n();
}
function Xt(e, t, o = [], n) {
  let i = "";
  const s = o?.length ? o.join(",") : "", a = Array.isArray(n) ? n : null, r = (p = "") => a ? a.reduce((l, g) => l.replace(g, ""), p) : p;
  e.childNodes.forEach((p) => {
    p.nodeType === Node.TEXT_NODE && (i += r(p.textContent)), p.nodeType === Node.ELEMENT_NODE && (s && p.matches(s) || ft(p) || (i += r(G(p))));
  });
  const d = /[\p{Emoji_Presentation}\p{Extended_Pictographic}]/gu;
  let c = i.replace(d, "");
  return c = V(c).toLowerCase(), /^[x×✕✖✗✘]$/i.test(c) ? !1 : c.length !== 0 && !t.toLowerCase().includes(c);
}
function zn(e) {
  let t = e.getAttribute("href");
  return t = V(t).toLowerCase(), t.endsWith("/") && (t = t.slice(0, -1)), t = t.replace(/^https?:\/\/(www\.)?/, ""), t = t.replace(/\.(html|php|htm|asp|aspx)$/i, ""), t;
}
function Yt(e, t) {
  let o = 0;
  const n = (i) => {
    if (!["ArrowUp", "ArrowDown", "Space"].includes(i.code))
      return;
    if (i.code === "Space") {
      t[o].click(), i.preventDefault();
      return;
    }
    t[o].setAttribute("tabindex", -1);
    let a;
    i.code === "ArrowDown" ? (a = o + 1, o === t.length - 1 && (a = 0)) : i.code === "ArrowUp" && (a = o - 1, o === 0 && (a = t.length - 1)), t[a].setAttribute("tabindex", 0), t[a].focus(), o = a, i.preventDefault();
  };
  e.addEventListener("focus", () => {
    t.length > 0 && (e.setAttribute("tabindex", -1), t[o].setAttribute("tabindex", 0), t[o].focus()), e.addEventListener("keydown", n);
  }), e.addEventListener("blur", () => {
    e.removeEventListener("keydown", n);
  });
}
function Jt() {
  return CSS.supports("anchor-name: --sa11y") && CSS.supports("position-anchor: --sa11y");
}
function re(e, t = !1) {
  if (!e) return null;
  if (e instanceof RegExp) return e;
  let o = [];
  if (Array.isArray(e))
    o = e;
  else if (typeof e == "string")
    o = e.split(",").map((a) => a.trim());
  else
    return null;
  if (o = o.filter((a) => a && a.length > 0), o.length === 0) return null;
  const n = (a) => a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), i = o.map(n).join("|"), s = t ? `^(?:${i})` : i;
  return new RegExp(s, "i");
}
async function $n(e, t) {
  const o = new TextEncoder().encode(e + t), n = await window.crypto.subtle.digest("SHA-256", o);
  return Uint8Array.prototype.toHex ? new Uint8Array(n).toHex() : Array.from(new Uint8Array(n)).map((s) => s.toString(16).padStart(2, "0")).join("");
}
let Xe;
function lt(e, t) {
  if (typeof e != "string") return { valid: !1 };
  const o = e.trim().replace(/_/g, "-");
  if (!Xe && typeof Intl < "u")
    try {
      Xe = new Intl.DisplayNames([t], { type: "language", fallback: "none" });
    } catch {
    }
  if (Xe) {
    const n = (i) => {
      try {
        return Xe.of(i);
      } catch {
        return !1;
      }
    };
    return n(e) ? { valid: !0 } : n(o) ? { valid: !1, suggest: o } : { valid: !1 };
  }
  return { valid: /^[a-z]{2,3}(-[a-z]{4})?(-[a-z]{2,4})?$/i.test(o) };
}
const So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
  __proto__: null,
  addPulse: $e,
  blobToBase64: Wn,
  debounce: Hn,
  dismissDigest: $n,
  documentLoadingCheck: Rn,
  escapeHTML: Lo,
  findVisibleParent: Be,
  fnIgnore: de,
  generateElementPreview: Qt,
  generateRegexString: re,
  generateSelectorPath: Kt,
  getBestImageSource: jt,
  getCachedClosest: M,
  getCachedStyle: U,
  getNextSibling: _o,
  getText: G,
  initRovingTabindex: Yt,
  isAriaHidden: zt,
  isDisabled: le,
  isElementHidden: Z,
  isElementVisuallyHiddenOrHidden: ft,
  isHiddenAndUnfocusable: ge,
  isNegativeTabindex: gt,
  isPresentational: De,
  isScreenReaderOnly: On,
  isScrollable: Ge,
  isVisibleTextInAccName: Xt,
  normalizeString: $t,
  offsetTop: st,
  prepareDismissal: ke,
  remove: Vt,
  removeWhitespace: V,
  resetAttributes: qt,
  resetGetText: Bn,
  resetParentCache: Fn,
  resetStyleCache: Gn,
  sanitizeHTML: Dn,
  sanitizeURL: xe,
  standardizeHref: zn,
  store: k,
  stripAllSpecialCharacters: tt,
  supportsAnchorPositioning: Jt,
  trapFocus: Un,
  truncateString: fe,
  validateLang: lt
}, Symbol.toStringTag, { value: "Module" })), Co = "[data-sa11y-overflow]{overflow:auto!important}[data-sa11y-error]{outline-offset:2px;outline:5px solid var(--sa11y-error)!important}a[data-sa11y-error]:empty{margin:1px}[data-sa11y-warning]:not([data-sa11y-error]):not([data-sa11y-pulse-border]){outline-offset:2px;outline:5px solid var(--sa11y-warning)!important}[data-sa11y-pulse-border]{box-shadow:0;animation:1s 2 pulse;outline:5px solid var(--sa11y-focus-color)!important}[data-sa11y-pulse-border]:hover,[data-sa11y-pulse-border]:focus{animation:none}@keyframes pulse{0%{box-shadow:0 0 0 5px var(--sa11y-focus-color)}50%{box-shadow:0 0 0 12px var(--sa11y-pulse-color)}to{box-shadow:0 0 0 5px var(--sa11y-pulse-color)}}img[data-sa11y-pulse-border],h1[data-sa11y-pulse-border],h2[data-sa11y-pulse-border],h3[data-sa11y-pulse-border],h4[data-sa11y-pulse-border],h5[data-sa11y-pulse-border],h6[data-sa11y-pulse-border]{animation:1s 2 pulse-scale}@keyframes pulse-scale{0%{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(1.02)}to{opacity:1;transform:scale(1)}}@media(prefers-reduced-motion:reduce){[data-sa11y-pulse-border]{animation:none!important}}@media(forced-colors:active){[data-sa11y-error],[data-sa11y-warning],[data-sa11y-good],[data-sa11y-error-inline],[data-sa11y-warning-inline],[data-sa11y-pulse-border]{forced-color-adjust:none}}", hn = (e) => {
  if (e.shadowRoot.querySelectorAll(".sa11y-css-utilities").length === 0) {
    const o = document.createElement("style");
    o.setAttribute("class", "sa11y-css-utilities"), o.textContent = Co, e.shadowRoot.appendChild(o);
  }
};
function ko() {
  if (u.option.autoDetectShadowComponents) {
    const e = f.Exclusions.Sa11yElements, t = document.querySelector(u.option.checkRoot);
    Array.from(t ? t.querySelectorAll(`*:not(${e})`) : document.body.querySelectorAll(`*:not(${e})`)).forEach((n) => {
      n.shadowRoot && n.shadowRoot.mode === "open" && (n.setAttribute("data-sa11y-has-shadow-root", ""), hn(n));
    });
  } else u.option.shadowComponents && document.querySelectorAll(u.option.shadowComponents).forEach((t) => {
    t.setAttribute("data-sa11y-has-shadow-root", ""), hn(t);
  });
}
const N = (function() {
  const t = {}, o = /* @__PURE__ */ new Set([
    "AUDIO",
    "VIDEO",
    "IFRAME",
    "SVG",
    "SCRIPT",
    "STYLE",
    "NOSCRIPT",
    "TEMPLATE",
    "HEAD",
    "TITLE",
    "META",
    "BASE",
    "DATALIST",
    "PROGRESS",
    "METER",
    "LINK",
    "HR",
    "OPTION"
  ]), n = "audio,video,meter,progress,datalist,head,svg";
  let i = "";
  function s() {
    const v = ['input[type="color"]', 'input[type="range"]'];
    if (u.option.contrastIgnore) {
      const y = u.option.contrastIgnore.split(",").map((A) => A.trim()).flatMap((A) => [A, `${A} *`]);
      v.push(...y);
    }
    i = v.join(",");
  }
  let a = !1, r = null, d = !1, c = null;
  Object.defineProperty(t, "pageText", {
    get() {
      return a || (r = p(), a = !0), r;
    },
    set(v) {
      r = v, a = !0;
    },
    configurable: !0,
    enumerable: !0
  }), Object.defineProperty(t, "Readability", {
    get() {
      return d || (c = l(), d = !0), c;
    },
    set(v) {
      c = v, d = !0;
    },
    configurable: !0,
    enumerable: !0
  });
  function p() {
    const v = new Set(t.Everything);
    return t.Everything.filter((y) => {
      if (y.tagName === "IMG") return !0;
      let A = y.parentElement;
      for (; A; ) {
        if (v.has(A)) return !1;
        A = A.parentElement;
      }
      return !0;
    }).map((y) => {
      let A = "";
      if (y.tagName === "IMG")
        A = y.alt || "";
      else if (y.tagName === "LI")
        A = Array.from(y.childNodes).filter((T) => T.nodeType === 3).map((T) => T.textContent).join(" ");
      else {
        const T = y.cloneNode(!0);
        if (T.querySelectorAll) {
          const L = T.querySelectorAll("[lang]");
          for (const I of L) I.remove();
        }
        A = G(de(T));
      }
      return $t(A);
    }).filter(Boolean);
  }
  function l() {
    const v = (y) => f.Root.Readability.some((A) => A.contains(y)) && !f.Exclusions.Readability.some((A) => y.matches(A));
    return [
      ...t.Paragraphs.filter(v),
      ...t.Lists.filter(v)
    ].map((y) => G(de(y))).filter(Boolean);
  }
  function g() {
    a = !1, r = null, d = !1, c = null, s();
    const v = u.option.checks.QA_BAD_LINK?.sources, y = v?.length ? v.split(",").map((w) => w.trim()) : [], A = u.option.checks.QA_NESTED_COMPONENTS.sources || '[role="tablist"], details';
    t.Everything = z("*", "root", f.Exclusions.Sa11yElements), t.Images = [], t.Links = [], t.Paragraphs = [], t.Lists = [], t.Blockquotes = [], t.Tables = [], t.StrongItalics = [], t.Subscripts = [], t.Buttons = [], t.Inputs = [], t.Labels = [], t.iframes = [], t.Svg = [], t.Contrast = [], t.TabIndex = [], t.NestedComponents = [], t.CustomErrorLinks = [], t.LangTags = [];
    const T = /* @__PURE__ */ new Set(["img", "graphics-document", "graphics-symbol", "graphics-object"]), L = /* @__PURE__ */ new Set([
      "textbox",
      "searchbox",
      "checkbox",
      "radio",
      "switch",
      "slider",
      "spinbutton",
      "combobox",
      "listbox",
      "menuitemcheckbox",
      "menuitemradio",
      "radiogroup"
    ]);
    for (let w = 0; w < t.Everything.length; w++) {
      const E = t.Everything[w];
      if (E?.nodeType !== 1) continue;
      const S = E.tagName, C = E.getAttribute("role")?.trim().toLowerCase();
      let _ = !1;
      if (C && (T.has(C) && !f.Exclusions.Images.some((P) => E.matches(P)) ? (t.Images.push(E), _ = !0) : C === "link" && !f.Exclusions.Links.some((P) => E.matches(P)) ? (t.Links.push(E), _ = !0) : C === "button" ? (t.Buttons.push(E), _ = !0) : L.has(C) && (t.Inputs.push(E), _ = !0)), !_)
        switch (S) {
          case "IMG":
            f.Exclusions.Images.some((P) => E.matches(P)) || t.Images.push(E);
            break;
          case "A":
          // HTML anchor
          case "a":
            E.hasAttribute("href") && !E.matches('[role="button"]') && !f.Exclusions.Links.some((P) => E.matches(P)) && (t.Links.push(E), y.length > 0 && y.some((P) => E.matches(P)) && t.CustomErrorLinks.push(E));
            break;
          case "P":
            f.Exclusions.Paragraphs.some((P) => E.matches(P)) || t.Paragraphs.push(E);
            break;
          case "LI":
            t.Lists.push(E);
            break;
          case "BLOCKQUOTE":
            t.Blockquotes.push(E);
            break;
          case "TABLE":
            E.matches('[role="presentation"],[role="none"]') || t.Tables.push(E);
            break;
          case "STRONG":
          case "EM":
            t.StrongItalics.push(E);
            break;
          case "SUP":
          case "SUB":
            t.Subscripts.push(E);
            break;
          case "BUTTON": {
            t.Buttons.push(E);
            break;
          }
          case "INPUT":
          case "SELECT":
          case "TEXTAREA":
          case "METER":
          case "PROGRESS":
            t.Inputs.push(E);
            break;
          case "LABEL":
            t.Labels.push(E);
            break;
          case "IFRAME":
          case "AUDIO":
          case "VIDEO":
          case "EMBED":
            t.iframes.push(E);
            break;
          case "svg":
            t.Svg.push(E);
            break;
        }
      E.hasAttribute("tabindex") && E.tabIndex >= 0 && t.TabIndex.push(E), E.matches(A) && t.NestedComponents.push(E), o.has(S) || M(E, n) || (!i || !E.matches(i)) && t.Contrast.push(E), E.hasAttribute("lang") && t.LangTags.push(E);
    }
    const I = u.option.ignoreContentOutsideRoots || u.option.fixedRoots ? "root" : "document";
    t.Headings = z(
      'h1, h2, h3, h4, h5, h6, [role="heading"][aria-level]',
      I,
      f.Exclusions.Headings
    ), t.HeadingOne = t.Headings.filter(
      (w) => w.tagName === "H1" || w.matches('[role="heading"]') && w.getAttribute("aria-level") === "1"
    ), t.HeadingOverrideStart = /* @__PURE__ */ new WeakMap(), t.HeadingOverrideEnd = /* @__PURE__ */ new WeakMap(), u.option.initialHeadingLevel && u.option.initialHeadingLevel.forEach((w) => {
      const E = z(
        `${w.selector} :is(h1,h2,h3,h4,h5,h6,[aria-role=heading][aria-level])`,
        I,
        f.Exclusions.Headings
      );
      E.length > 0 && (t.HeadingOverrideStart.set(E[0], w.previousHeading), t.HeadingOverrideEnd.set(E.pop(), w.previousHeading));
    }), t.ExcludedHeadings = [], t.ExcludedOutlineHeadings = [];
    for (const w of t.Headings)
      f.Exclusions.Headings.some((E) => w.matches(E)) && t.ExcludedHeadings.push(w), f.Exclusions.Outline.some((E) => w.matches(E)) && t.ExcludedOutlineHeadings.push(w);
    t.OutlineIgnore = t.ExcludedOutlineHeadings.concat(t.ExcludedHeadings), t.Videos = [], t.Audio = [], t.Visualizations = [], t.EmbeddedContent = [];
    for (const w of t.iframes) {
      let E = !1;
      w.matches(f.Global.VideoSources) && (t.Videos.push(w), E = !0), w.matches(f.Global.AudioSources) && (t.Audio.push(w), E = !0), w.matches(f.Global.VisualizationSources) && (t.Visualizations.push(w), E = !0), E || t.EmbeddedContent.push(w);
    }
    t.html = document.querySelector("html"), t.Language = t.html.getAttribute("lang")?.trim(), t.Focusable = [
      ...N.Found.Links || [],
      ...N.Found.Buttons || [],
      ...N.Found.Inputs || [],
      ...N.Found.TabIndex || []
    ];
  }
  function m() {
    s(), t.Everything = z("*", "root", f.Exclusions.Sa11yElements), t.Images = [], t.Links = [], t.Contrast = [];
    for (let v = 0; v < t.Everything.length; v++) {
      const y = t.Everything[v], A = y.tagName;
      switch (A) {
        case "IMG":
          f.Exclusions.Images.some((T) => y.matches(T)) || t.Images.push(y);
          break;
        case "A":
        case "a":
          y.hasAttribute("href") && !y.matches('[role="button"]') && !f.Exclusions.Links.some((T) => y.matches(T)) && t.Links.push(y);
          break;
      }
      o.has(A) || M(y, n) || (!i || !y.matches(i)) && t.Contrast.push(y);
    }
    t.Headings = z(
      'h1, h2, h3, h4, h5, h6, [role="heading"][aria-level]',
      "root",
      f.Exclusions.Headings
    ), t.ExcludedHeadings = [], t.ExcludedOutlineHeadings = [];
    for (const v of t.Headings)
      f.Exclusions.Headings.some((y) => v.matches(y)) && t.ExcludedHeadings.push(v), f.Exclusions.Outline.some((y) => v.matches(y)) && t.ExcludedOutlineHeadings.push(v);
    t.OutlineIgnore = t.ExcludedOutlineHeadings.concat(t.ExcludedHeadings);
  }
  const x = {};
  function h() {
    x.Array = z("sa11y-annotation", "document"), x.Array.forEach((v, y) => {
      v.setAttribute("data-sa11y-position", y);
    });
  }
  return {
    initializeElements: g,
    initializeFilterElements: m,
    Found: t,
    initializeAnnotations: h,
    Annotations: x
  };
})(), No = ":host{z-index:999999;background:var(--sa11y-panel-bg);border-top:5px solid var(--sa11y-panel-bg-splitter);width:100%;height:fit-content;display:block;position:fixed;bottom:0;left:0;right:0}*{font-size:var(--sa11y-normal-text);color:var(--sa11y-panel-primary);font-family:var(--sa11y-font-face)!important;-webkit-font-smoothing:auto!important;line-height:22px!important}#dialog{max-width:900px;margin:20px auto;padding:20px}h2{font-size:var(--sa11y-large-text);margin-top:0}a{color:var(--sa11y-hyperlink);cursor:pointer;text-decoration:underline}a:hover,a:focus{text-decoration:none}p{margin-top:0}.error{color:var(--sa11y-error-text);background:var(--sa11y-error);border:2px dashed #f08080;max-height:300px;margin-bottom:0;padding:5px;overflow:scroll}", je = '.visually-hidden{clip:rect(1px,1px,1px,1px);white-space:nowrap;clip-path:inset(50%);border:0;width:1px;height:1px;padding:0;display:block;position:absolute;overflow:hidden}[hidden]{display:none!important}h2,.header-text-inline,.header-text{font-size:var(--sa11y-large-text);color:var(--sa11y-panel-primary);margin-bottom:3px;font-weight:600;display:block}.header-text-inline{display:inline-block!important}code{font-size:calc(var(--sa11y-normal-text) - 1px);font-weight:600;font-family:monospace!important}pre code{white-space:pre-wrap;overflow:auto}pre,code,kbd,.kbd{color:var(--sa11y-panel-primary);background-color:var(--sa11y-panel-badge);border-radius:3.2px;padding:1.6px 4.8px}.bold{font-weight:600}.error .colour,.red-text{font-family:var(--sa11y-font-face);color:var(--sa11y-red-text)}.warning .colour,.yellow-text{font-family:var(--sa11y-font-face);color:var(--sa11y-yellow-text)}.normal-badge,.badge{min-width:10px;color:var(--sa11y-panel-primary);text-align:center;white-space:nowrap;vertical-align:baseline;background-color:var(--sa11y-panel-badge);border-radius:10px;outline:1px solid #0000;padding:1px 5px 1.75px;font-size:14px;line-height:1;display:inline;font-weight:700!important}.error .badge{color:var(--sa11y-error-text);background:var(--sa11y-error)}.error-badge{color:var(--sa11y-error-text)!important;background:var(--sa11y-error)!important}.warning .badge{color:var(--sa11y-panel-bg);background:var(--sa11y-yellow-text)}.warning-badge{color:var(--sa11y-panel-bg)!important;background:var(--sa11y-yellow-text)!important}.good-contrast{color:var(--sa11y-good-text)!important;background:var(--sa11y-good)!important}#contrast-preview{overflow-wrap:break-word;border:2px dashed var(--sa11y-panel-bg-splitter);background-color:#e8e8e8;background-image:linear-gradient(45deg,#ccc 25%,#0000 25% 75%,#ccc 75%,#ccc),linear-gradient(45deg,#ccc 25%,#0000 25% 75%,#ccc 75%,#ccc);background-position:0 0,5px 5px;background-size:10px 10px;border-radius:3.2px;max-height:100px;margin-top:10px;padding:5px;line-height:1;overflow:clip}#contrast-preview:empty{display:none}#color-pickers{justify-content:space-between;margin-top:10px;margin-bottom:10px;display:flex}#color-pickers label{align-items:center;display:flex}#color-pickers input{cursor:pointer;margin-inline-start:7px}#fg-color-wrapper.unknown,#bg-color-wrapper.unknown{display:inline-block;position:relative}:is(#fg-color-wrapper.unknown,#bg-color-wrapper.unknown):after{z-index:2;color:#fff;pointer-events:none;content:"?";justify-content:center;align-items:center;width:44px;height:44px;margin:-46px 7px;font-size:22px;display:flex;position:absolute}input[type=color i]{background:var(--sa11y-panel-bg-secondary);border-color:var(--sa11y-button-outline);border-style:solid;border-width:1px;border-radius:50%;block-size:44px;inline-size:44px;padding:2px}input[type=color i]::-webkit-color-swatch-wrapper{padding:1px}input[type=color i]::-webkit-color-swatch{border-color:var(--sa11y-button-outline);border-radius:50%}input[type=color i]::-moz-color-swatch{border-color:var(--sa11y-button-outline);border-radius:50%}input[type=color i].unknown{box-shadow:0 0 0 3px var(--sa11y-yellow-text)}.close-btn{float:var(--sa11y-float-rtl);width:32px;height:32px;font-size:var(--sa11y-normal-text);color:var(--sa11y-panel-primary);cursor:pointer;background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:50%;margin:0;font-weight:400;transition:all .2s ease-in-out;position:relative}.close-btn:hover,.close-btn:focus{background-color:var(--sa11y-shortcut-hover)}.close-btn:after{content:"";background:var(--sa11y-setting-switch-bg-off);-webkit-mask:var(--sa11y-close-btn-svg) center no-repeat;mask:var(--sa11y-close-btn-svg) center no-repeat;position:absolute;inset:-7px}@media screen and (forced-colors:active){.close-btn:after{filter:invert()}}#container [tabindex="0"]:focus,#container [tabindex="-1"]:focus,#container input:focus,#container select:focus,#container button:focus,#container a:focus{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}#container .switch:focus,#container #panel-controls button:focus{box-shadow:inset 0 0 0 4px var(--sa11y-focus-color);outline:0}#container [tabindex="0"]:focus:not(:focus-visible),#container [tabindex="-1"]:focus:not(:focus-visible),#container input:focus:not(:focus-visible),#container button:focus:not(:focus-visible),#container select:focus:not(:focus-visible),#container #panel-controls button:focus:not(:focus-visible){box-shadow:none;outline:0}#container a:focus-visible,#container button:not(#panel-controls button,.switch):focus-visible,#container select:focus-visible,#container input:focus-visible,#container [tabindex="0"]:focus-visible,#container [tabindex="-1"]:focus-visible{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}#container .switch:focus-visible,#container #panel-controls button:focus-visible{box-shadow:inset 0 0 0 4px var(--sa11y-focus-color);outline:0}@media screen and (forced-colors:active){#panel-controls button:focus{border:inset 3px solid transparent}.close-btn:focus{outline:3px solid #0000!important}#container a:focus,#container [tabindex="-1"]:focus,#container [tabindex="0"]:focus,#container select:focus,#container button:focus{outline:3px solid #0000!important}}';
class Kn extends HTMLElement {
  constructor(t) {
    super(), this.error = t;
  }
  connectedCallback() {
    const t = this.attachShadow({ mode: "open" }), o = document.createElement("style");
    o.textContent = No + je, t.appendChild(o);
    const n = document.createElement("div");
    n.setAttribute("id", "dialog"), n.setAttribute("tabindex", "-1");
    const i = xe(window.location.href), s = `## Error description
\`\`\`javascript
${this.error.stack}
\`\`\`

## Configuration options
\`\`\`javascript
${JSON.stringify(u.option)}
\`\`\`

## Details
- **URL:** ${i}
- **Version:** 5.0.9

## Comments
`, a = document.createElement("button");
    a.className = "close-btn", a.setAttribute("aria-label", b._("ALERT_CLOSE"));
    const r = document.createElement("h2");
    r.textContent = b._("ERROR");
    const d = document.createElement("p");
    d.append(b.sprintf("CONSOLE_ERROR"));
    const c = document.createElement("p");
    c.className = "error", c.append(
      this.error.stack,
      document.createElement("br"),
      document.createElement("br"),
      "Version: 5.0.9",
      document.createElement("br"),
      `URL: ${i}`,
      document.createElement("br"),
      document.createElement("br"),
      `Config options: ${JSON.stringify(u.option)}`
    ), n.append(a, r, d, c), t.appendChild(n), setTimeout(() => {
      f.Panel.toggle.style.display = "none";
      const p = document.querySelector("sa11y-console-error");
      p.shadowRoot.getElementById("dialog").focus(), p.shadowRoot.querySelector(".close-btn").addEventListener("click", () => {
        p.remove();
      });
      const m = encodeURIComponent(s), x = p.shadowRoot.querySelector(
        'a[href="https://github.com/ryersondmp/sa11y/issues/new?title=Bug%20report"]'
      ), h = x.getAttribute("href");
      if (h) {
        const v = `${h}&body=${m}`;
        x.setAttribute("href", v);
      }
    }, 10);
  }
}
const Zt = (e) => !!(e?.offsetWidth && e?.offsetHeight), Po = () => {
  const t = document.querySelector("sa11y-tooltips").shadowRoot.querySelector("button");
  t !== null && t.click();
}, Ro = (e) => {
  const t = e.getRootNode().host, o = Be(t, "display", "none");
  if (o !== null) {
    const n = o.previousElementSibling;
    $e(n || o.parentNode);
  }
}, qn = (e, t) => {
  if (Zt(e) === !1) {
    const o = e.getRootNode().host, n = Be(o, "display", "none"), i = parseInt(o.getAttribute("data-sa11y-annotation"), 10), s = t.find((d) => d.id === i), a = Qt(s);
    Ro(e);
    const r = u.results.find((d) => String(d.id) === String(i));
    if (r.content instanceof Element) {
      r.content.setAttribute("lang", b._("LANG_CODE")), r.content.className = r.type;
      let d = r.content.querySelector(".issue-label");
      d || (d = document.createElement("h3"), d.className = "issue-label", r.content.prepend(d)), d.textContent = r.issueLabel;
    }
    if (Ie(`${b._("NOT_VISIBLE")}`, r.finalContent, a), Po(), n) {
      const d = n.previousElementSibling, { parentNode: c } = n;
      return d ? st(d).top - 150 : st(c).top - 150;
    }
  } else
    Pe(), f.Panel.skipButton.focus();
  return st(e).top - 150;
};
let Y = -1;
const Vn = () => {
  const e = k.getItem("sa11y-latest-dismissed");
  e !== null && (Y = parseInt(e, 10) - 1), k.removeItem("sa11y-latest-dismissed");
  const t = z("[data-sa11y-opened]", "root");
  t[0] && (Y = parseInt(t[0].getAttribute("data-sa11y-position"), 10));
}, jn = (e) => {
  Vn();
  const t = N.Annotations.Array;
  Y >= t.length - 1 && (Y = -1);
  const n = t[Y + 1].shadowRoot.querySelector("button"), i = qn(n, e);
  window.scrollTo({
    top: i,
    behavior: `${f.Global.scrollBehaviour}`
  }), Zt(n) && (n.focus(), n.click()), Y += 1;
}, Oo = (e) => {
  Vn();
  const t = N.Annotations.Array;
  Y <= 0 && (Y = t.length);
  const o = N.Annotations.Array[Y - 1].shadowRoot.querySelector("button"), n = qn(o, e);
  window.scrollTo({
    top: n,
    behavior: `${f.Global.scrollBehaviour}`
  }), Zt(o) && (o.focus(), o.click()), Y -= 1, Y === -1 && (Y = N.Annotations.Array.length - 1);
};
function Mo(e, t) {
  N.Annotations.Array.length && !f.Panel.skipButton.hasAttribute("disabled") && (e.altKey && (e.code === "KeyS" || e.code === "Period") ? (e.preventDefault(), jn(t)) : e.altKey && (e.code === "KeyW" || e.code === "Comma") && (e.preventDefault(), Oo(t)));
}
let Rt, Ot;
function Do() {
  Rt = (e) => {
    Mo(e, u.results);
  }, Ot = () => {
    jn(u.results);
  }, document.addEventListener("keydown", Rt), f.Panel.skipButton.addEventListener("click", Ot);
}
function Bo() {
  document.removeEventListener("keydown", Rt), f.Panel.skipButton.removeEventListener("click", Ot);
}
const Go = `:root{--font-primary:system-ui, "Segoe UI", roboto, helvetica, arial, sans-serif;--font-secondary:consolas, monaco, "Ubuntu Mono", "Liberation Mono", "Courier New", courier, monospace;--body-text:#333;--bg-primary:#fff;--bg-secondary:#f6f8fa;--bg-tertiary:#d7d7d7;--link-primary:#004c9b;--red-text:#d30017;--warning-text:#966f0d;--hr:#d7d7d74d;--sa11y-link-icon-svg:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath d='M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z'/%3E%3C/svg%3E")}@media(prefers-color-scheme:dark){:root{--body-text:#dde8ff;--bg-primary:#0a2051;--bg-secondary:#072c7c;--bg-tertiary:#0041c9;--link-primary:#64b2ff;--red-text:#ffa2a2;--warning-text:#ffdb59;--hr:#0041c94d}}*{margin:0;padding:0}article,aside,nav,ol,p,pre,section,ul{margin-bottom:1rem}body{max-width:70ch;font-family:var(--font-primary);color:var(--body-text);word-break:break-word;overflow-wrap:break-word;background:var(--bg-primary);margin:0 auto;padding:2rem;font-size:1rem;line-height:1.5;overflow-x:hidden}h1,h2,h3{color:var(--body-text);margin-bottom:8px;padding-top:.875rem;padding-bottom:2px;line-height:1}h1{font-size:2.25rem}h2{font-size:1.85rem}h3{font-size:1.55rem}a{color:var(--link-primary)}a:hover,a:focus{text-decoration:none}header,footer{background:var(--bg-secondary);padding:2rem calc(50vw - 50%)}header{border-bottom:1px solid var(--bg-tertiary);margin:-2rem calc(-50vw + 50%) 2rem}footer{text-align:center;border-top:1px solid var(--bg-tertiary);margin:3rem calc(-50vw + 50%) -2rem}header>:first-child{margin-top:0;padding-top:0}header>:last-child{margin-bottom:0}hr{background:var(--hr);opacity:1;border:none;height:1px;margin:10px 0;padding:0}code,samp,kbd,pre{font-family:var(--font-secondary);background:var(--bg-secondary);border:1px solid var(--bg-tertiary);border-radius:4px;padding:3px 6px;font-size:.9rem}pre{max-width:100%;padding:1rem 1.4rem;display:block;overflow:auto}pre code{font-size:inherit;color:inherit;background:inherit;border:0;margin:0;padding:0}code pre{font-size:inherit;color:inherit;background:inherit;border:0;margin:0;padding:0;display:inline}details{background:var(--bg-primary);border:2px solid var(--link-primary);border-radius:4px;padding:.6rem 1rem}summary{cursor:pointer;font-weight:700}summary div{display:inline-block}summary p{margin:0}details[open]{padding-bottom:.75rem}details[open] summary{margin-bottom:6px}details[open]>:last-child{margin-bottom:0}.two-columns{display:flex}.column{flex:1;margin-inline-end:20px}.count{max-width:220px}dl{padding-top:10px}.column dl{width:100%}dt{font-weight:700}dd{padding-bottom:10px}ul ul,ol ul,ul ol,ol ol{margin-bottom:0}ul li{margin-bottom:.5rem}ol,ul{padding-left:2rem}ol li:not(li li){margin-bottom:4rem}iframe,img{background:var(--bg-tertiary);border-radius:5px;max-width:50%;padding:5px;display:block}video,audio{border:0;display:block}.red-text{color:var(--red-text)}.visually-hidden{clip:rect(1px,1px,1px,1px);white-space:nowrap;clip-path:inset(50%);border:0;width:1px;height:1px;padding:0;display:block;position:absolute;overflow:hidden}.badge{color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:10px;outline:1px solid #0000;min-width:10px;padding:1px 5px 1.75px;font-size:14px;line-height:1;display:inline;font-weight:700!important}.error .colour{color:var(--red-text)}.error .badge{color:#fff;background:#d30017}.warning .colour{color:var(--warning-text)}.warning .badge{color:#fff;background:#966f0d}.link-icon{width:16px;height:16px;-webkit-mask:var(--sa11y-link-icon-svg) center no-repeat;mask:var(--sa11y-link-icon-svg) center no-repeat;background:#fff;margin-bottom:-3.5px;display:inline-block}li pre,li li pre,li li img,li li iframe,li li video,li li audio{margin-top:1rem}li li{margin-top:1rem;list-style:none}`;
function D(e, t = {}, ...o) {
  const n = typeof e == "string" ? document.createElement(e) : e;
  for (const [i, s] of Object.entries(t))
    i === "textContent" ? n.textContent = s : i === "className" ? n.className = s : n.setAttribute(i, s);
  for (const i of o)
    i != null && (typeof i == "string" ? n.appendChild(document.createTextNode(i)) : n.appendChild(i));
  return n;
}
function en() {
  const e = /* @__PURE__ */ new Date(), t = String(e.getDate()).padStart(2, "0"), o = String(e.getMonth() + 1).padStart(2, "0"), n = e.getFullYear(), i = (/* @__PURE__ */ new Date()).toLocaleString(), s = `${o}-${t}-${n}`, a = document.querySelector("head title"), r = !a || a.textContent.trim().length === 0, d = r ? "" : a.textContent, c = xe(window.location.href);
  return { date: i, numericDate: s, titleCheck: r, metaTitle: d, pageURL: c };
}
function _e(e) {
  const o = String(e ?? "").replaceAll('"', '""');
  return /^[=+\-@\t\r]/.test(o) ? `'${o}` : o;
}
async function Fo(e, t) {
  if (!e.length) return null;
  const o = {
    error: b._("ERRORS"),
    warning: b._("WARNINGS"),
    dismissed: b._("DISMISSED")
  }, n = document.createDocumentFragment();
  n.appendChild(D("h2", { textContent: o[t] }));
  const i = D("ol", { className: t });
  for (const s of e) {
    const a = document.createElement("li"), r = document.createElement("div"), d = document.importNode(s.content, !0);
    r.append(...d.childNodes), a.appendChild(r);
    const c = document.createElement("ul");
    if (s.element) {
      if (["IMG"].includes(s.element.tagName)) {
        const g = document.createElement("li"), m = D("strong", { textContent: `${b._("PREVIEW")}: ` });
        g.appendChild(m);
        const x = await Qt(s, !0), h = document.createElement("div");
        h.appendChild(x), g.appendChild(h), c.appendChild(g);
      }
      const p = document.createElement("li");
      p.appendChild(D("strong", { textContent: `${b._("ELEMENT")}: ` }));
      const l = document.createElement("pre");
      l.appendChild(D("code", { textContent: s.htmlPath })), p.appendChild(l), c.appendChild(p);
    }
    if (s.cssPath) {
      const p = document.createElement("li");
      p.appendChild(D("strong", { textContent: `${b._("PATH")}: ` }));
      const l = document.createElement("pre");
      l.appendChild(D("code", { textContent: s.cssPath })), p.appendChild(l), c.appendChild(p);
    }
    a.appendChild(c), i.appendChild(a);
  }
  if (t === "dismissed") {
    const s = document.createElement("details");
    s.className = "warning", s.appendChild(
      D("summary", {}, b.sprintf("PANEL_DISMISS_BUTTON", u.counts.dismissed))
    ), s.appendChild(i), n.appendChild(s);
  } else
    n.appendChild(i);
  return n;
}
async function Ho() {
  const e = u.results.filter((h) => h.type === "error"), t = u.results.filter((h) => h.type === "warning"), o = en(), n = document.implementation.createHTMLDocument("");
  n.documentElement.setAttribute("lang", b._("LANG_CODE")), D("meta", { charset: "UTF-8" });
  const i = n.querySelector("meta[charset]");
  i ? i.setAttribute("charset", "UTF-8") : n.head.insertBefore(D("meta", { charset: "UTF-8" }), n.head.firstChild), n.head.appendChild(
    D("meta", { name: "viewport", content: "width=device-width, initial-scale=1.0" })
  ), n.title = `${b._("RESULTS")}: ${o.metaTitle}`;
  const s = n.createElement("style");
  s.textContent = Go, n.head.appendChild(s);
  const a = n.createElement("header");
  a.appendChild(D("h1", { textContent: b._("RESULTS") }));
  const r = D("dl", { className: "two-columns" }), d = D("div", { className: "column" });
  o.titleCheck || (d.appendChild(D("dt", { textContent: b._("PAGE_TITLE") })), d.appendChild(D("dd", { textContent: o.metaTitle }))), d.appendChild(D("dt", { textContent: "URL" }));
  const c = D("a", { href: o.pageURL, textContent: o.pageURL });
  d.appendChild(D("dd", {}, c)), d.appendChild(D("dt", { textContent: b._("DATE") })), d.appendChild(D("dd", { textContent: o.date })), r.appendChild(d);
  const p = D("div", { className: "column count" });
  u.counts.error !== 0 && (p.appendChild(D("dt", { textContent: b._("ERRORS") })), p.appendChild(D("dd", { textContent: String(u.counts.error) }))), u.counts.warning !== 0 && (p.appendChild(D("dt", { textContent: b._("WARNINGS") })), p.appendChild(D("dd", { textContent: String(u.counts.warning) }))), u.counts.dismissed !== 0 && (p.appendChild(D("dt", { textContent: b._("DISMISSED") })), p.appendChild(D("dd", { textContent: String(u.counts.dismissed) }))), r.appendChild(p), a.appendChild(r);
  const l = n.createElement("main"), g = [
    [e, "error"],
    [t, "warning"],
    [u.dismissedResults, "dismissed"]
  ];
  for (const [h, v] of g) {
    const y = await Fo(h, v);
    y && l.appendChild(y);
  }
  const m = document.createElement("footer"), x = b.sprintf("GENERATED");
  return m.appendChild(x), n.body.appendChild(a), n.body.appendChild(l), n.body.appendChild(m), new XMLSerializer().serializeToString(n);
}
async function Uo() {
  const e = await Ho(), t = en(), o = new Blob([e], { type: "text/html" }), n = document.createElement("a"), i = t.titleCheck ? "" : `_${t.metaTitle.trim().replace(/ /g, "")}`;
  n.href = window.URL.createObjectURL(o), n.download = `Sa11y_${t.numericDate + i}.html`, document.body.appendChild(n), n.click(), setTimeout(() => {
    document.body.removeChild(n), window.URL.revokeObjectURL(n.href);
  }, 100);
}
function Wo() {
  const e = en(), t = u.results.filter((c) => c.type === "warning" || c.type === "error").map((c) => {
    const { type: p, content: l, htmlPath: g, cssPath: m } = c, x = l.cloneNode(!0);
    x.querySelectorAll(".visually-hidden").forEach((y) => {
      y.remove();
    }), x.querySelectorAll("hr").forEach((y) => {
      y.replaceWith(" | ");
    });
    const h = x.textContent.replaceAll('"', '""'), v = {
      Title: `"${_e(e.metaTitle)}"`,
      URL: `"${_e(e.pageURL)}"`,
      Type: `"${_e(String(p))}"`,
      Issue: `"${_e(h)}"`,
      Element: `"${_e(g)}"`
    };
    return m && (v.Path = `"${_e(m)}"`), v;
  }), o = Object.keys(t[0]), n = `${o.join(",")}
${t.map((c) => o.map((p) => c[p] ?? '""').join(",")).join(`
`)}`, i = new Uint8Array([239, 187, 191]), s = new Blob([i, n], { type: "text/csv;charset=utf-8;" }), a = window.URL.createObjectURL(s), r = document.createElement("a");
  r.href = a;
  const d = e.titleCheck ? "" : `_${e.metaTitle.trim().replace(/ /g, "")}`;
  r.setAttribute("download", `Sa11y_${e.numericDate + d}.csv`), document.body.appendChild(r), r.click(), r.href = "", window.URL.revokeObjectURL(r.href);
}
let Mt, Dt;
function zo() {
  u.option.exportResultsPlugin && (Mt = async () => {
    await Uo();
  }, Dt = () => {
    Wo();
  }, f.Panel.exportHTML.addEventListener("click", Mt), f.Panel.exportCSV.addEventListener("click", Dt));
}
function $o() {
  u.option.exportResultsPlugin && (f.Panel.exportHTML.removeEventListener("click", Mt), f.Panel.exportCSV.removeEventListener("click", Dt));
}
function Ko() {
  if (u.option.colourFilterPlugin && u.option.headless === !1) {
    const e = document.createElement("div");
    e.id = "sa11y-colour-filters", e.innerHTML = `
        <!-- DaltonLens SVG filters to simulate color vision deficiencies -->
        <svg id="sa11y-svg-filters" aria-hidden="true" xmlns="http://www.w3.org/2000/svg">
          <filter id="sa11y-protanopia" color-interpolation-filters="linearRGB">
            <feColorMatrix type="matrix" in="SourceGraphic" values="
                0.10889,0.89111,-0.00000,0,0
                0.10889,0.89111,0.00000,0,0
                0.00447,-0.00447,1.00000,0,0
                0,0,0,1,0"
            />
          </filter>
          <filter id="sa11y-deuteranopia" color-interpolation-filters="linearRGB">
            <feColorMatrix type="matrix" in="SourceGraphic" values="
                0.29031,0.70969,-0.00000,0,0
                0.29031,0.70969,-0.00000,0,0
                -0.02197,0.02197,1.00000,0,0
                0,0,0,1,0"
            />
          </filter>
          <filter id="sa11y-tritanopia" color-interpolation-filters="linearRGB">
            <feColorMatrix type="matrix" in="SourceGraphic" values="
              0.950, 0.050, 0.000, 0, 0
              0.000, 0.433, 0.567, 0, 0
              0.000, 0.475, 0.525, 0, 0
              0.000, 0.000, 0.000, 1, 0
            "/>
          </filter>
          <filter id="sa11y-monochromacy">
            <feColorMatrix values="0.299,0.587,0.114,0,0,0.299,0.587,0.114,0,0,0.299,0.587,0.114,0,0,0,0,0,1,0"></feColorMatrix>
          </filter>
        </svg>`, document.body.appendChild(e);
  }
}
function Qn() {
  u.option.colourFilterPlugin && (document.body.removeAttribute("data-sa11y-filter"), f.Panel.settingsContent.classList.remove("hide-settings-border"), f.Panel.colourFilterSelect.value = 0, f.Panel.colourPanel.removeAttribute("data-colour"), f.Panel.colourPanel.classList.remove("active"), f.Panel.colourFilterSelect.classList.remove("active"), f.Panel.content.hidden = !1, f.Panel.controls.hidden = !1);
}
const qo = '.annotation{display:block;position:relative}.annotation-inline{text-align:end;display:inline-block;position:relative}button{cursor:pointer;border-radius:50%;width:36px;height:36px;padding:0;transition:all .2s ease-in-out;display:block;position:absolute;box-shadow:0 0 16px #0000004f}button:after{content:"";width:36px;height:36px;padding:7px;position:absolute;top:-7px;left:-7px}.error-btn{z-index:9999;background:50% 50% var(--sa11y-error-svg) no-repeat;background-color:var(--sa11y-error);border:1px solid var(--sa11y-error);background-size:22px}.error-btn:hover,.error-btn:focus{background-color:var(--sa11y-error-hover)}.good-btn{z-index:9977;background:50% 50% var(--sa11y-good) var(--sa11y-good-svg) no-repeat;background-color:var(--sa11y-good);border:1px solid var(--sa11y-good);background-size:20px}.good-btn:hover,.good-btn:focus{background-color:var(--sa11y-good-hover)}.warning-btn{z-index:9988;background:50% 50% var(--sa11y-warning) var(--sa11y-warning-svg) no-repeat;background-color:var(--sa11y-warning);border:1px solid var(--sa11y-warning);transform:scaleX(var(--sa11y-icon-direction));background-size:24px}.warning-btn:hover,.warning-btn:focus{background-color:var(--sa11y-warning-hover)}button:active,button:focus{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}@media screen and (forced-colors:active){button{forced-color-adjust:none;border:1px solid #0000!important;outline:3px solid #0000!important}}';
class Vo extends HTMLElement {
  connectedCallback() {
    if (this.shadowRoot) return;
    const t = this.attachShadow({ mode: "open" }), o = document.createElement("style");
    o.textContent = qo + je, t.appendChild(o);
  }
}
const tn = [];
function jo(e) {
  const {
    element: t,
    type: o,
    content: n,
    inline: i = !1,
    position: s = "beforebegin",
    id: a,
    dismiss: r,
    margin: d,
    issueLabel: c
  } = e;
  if (!(!o && !t))
    if (t) {
      if (o === "good" && (!u.option.showGoodImageButton && t?.tagName === "IMG" || !u.option.showGoodLinkButton && t?.tagName === "A"))
        return;
      const p = {
        error: "data-sa11y-error",
        warning: "data-sa11y-warning",
        good: "data-sa11y-good"
      };
      p[o] && t.setAttribute(p[o], "");
      const l = document.createElement("sa11y-annotation");
      if (l.setAttribute("data-sa11y-annotation", a), u.option.unitTestMode && l.setAttribute("data-content", `${c} ${n.textContent}`), Jt()) {
        l.style.position = "absolute", l.style.positionAnchor = `--sa11y-anchor-${a}`, l.style.top = "anchor(top)", l.style.left = "anchor(left)";
        const T = (t.style.anchorName ? t.style.anchorName.split(",").map((L) => L.trim()) : []).filter((L) => !L.startsWith("--sa11y-anchor-"));
        T.push(`--sa11y-anchor-${a}`), t.style.anchorName = T.join(", ");
      }
      const g = document.createElement("div");
      g.classList.add(i ? "annotation-inline" : "annotation");
      const m = document.createElement("button");
      m.type = "button", m.className = `${o}-btn`, m.setAttribute("aria-label", c), m.setAttribute("aria-haspopup", "dialog"), m.style.margin = `${i ? "-10px" : ""} ${d}`, g.appendChild(m), tn.push(m);
      const x = u.option.insertAnnotationBefore ? `, ${u.option.insertAnnotationBefore}` : "";
      (M(t, `a, button, [role="link"], [role="button"] ${x}`) || M(t, "svg") || t).insertAdjacentElement(s, l), l.shadowRoot.appendChild(g);
      const v = u.option.ignoreHiddenOverflow ? u.option.ignoreHiddenOverflow.split(",").flatMap((A) => [...document.querySelectorAll(A)]) : [], y = Be(t, "overflow", "hidden");
      y && !v.includes(y) && y.setAttribute("data-sa11y-overflow", "");
    } else {
      const p = u.option.dismissAnnotations && ["warning", "good"].includes(o) && r ? Object.assign(document.createElement("button"), {
        type: "button",
        textContent: b._("DISMISS")
      }) : null;
      p && (p.dataset.sa11yDismiss = a);
      const l = document.createElement("li");
      l.classList.add([o]);
      const g = document.createElement("h3");
      if (g.textContent = c, l.appendChild(g), l.append(n, p || ""), u.option.unitTestMode) {
        const m = b.sprintf("<hr><strong>Test ID:</strong> <code>%(TEST)</code>", e.test);
        l.append(m);
      }
      f.Panel.pageIssuesList.prepend(l), f.Panel.pageIssues.classList.add("active"), f.Panel.panel.classList.add("has-page-issues");
    }
}
const W = {
  mainTRC: 2.4,
  sRco: 0.2126729,
  sGco: 0.7151522,
  sBco: 0.072175,
  normBG: 0.56,
  normTXT: 0.57,
  revTXT: 0.62,
  revBG: 0.65,
  blkThrs: 0.022,
  blkClmp: 1.414,
  scaleBoW: 1.14,
  scaleWoB: 1.14,
  loBoWoffset: 0.027,
  loWoBoffset: 0.027,
  deltaYmin: 5e-4,
  loClip: 0.1
};
function Xn(e, t, o = -1) {
  const n = [0, 1.1];
  if (isNaN(e) || isNaN(t) || Math.min(e, t) < n[0] || Math.max(e, t) > n[1])
    return 0;
  let i = 0, s = 0, a = "BoW";
  return e = e > W.blkThrs ? e : e + Math.pow(W.blkThrs - e, W.blkClmp), t = t > W.blkThrs ? t : t + Math.pow(W.blkThrs - t, W.blkClmp), Math.abs(t - e) < W.deltaYmin ? 0 : (t > e ? (i = (Math.pow(t, W.normBG) - Math.pow(e, W.normTXT)) * W.scaleBoW, s = i < W.loClip ? 0 : i - W.loBoWoffset) : (a = "WoB", i = (Math.pow(t, W.revBG) - Math.pow(e, W.revTXT)) * W.scaleWoB, s = i > -0.1 ? 0 : i + W.loWoBoffset), o < 0 ? s * 100 : o == 0 ? Math.round(Math.abs(s) * 100) + "<sub>" + a + "</sub>" : Number.isInteger(o) ? (s * 100).toFixed(o) : 0);
}
function mt(e, t = 2) {
  const o = [
    ["Lc", 100, 200, 300, 400, 500, 600, 700, 800, 900],
    [0, 999, 999, 999, 999, 999, 999, 999, 999, 999],
    [10, 999, 999, 999, 999, 999, 999, 999, 999, 999],
    [15, 777, 777, 777, 777, 777, 777, 777, 777, 777],
    [20, 777, 777, 777, 777, 777, 777, 777, 777, 777],
    [25, 777, 777, 777, 120, 120, 108, 96, 96, 96],
    [30, 777, 777, 120, 108, 108, 96, 72, 72, 72],
    [35, 777, 120, 108, 96, 72, 60, 48, 48, 48],
    [40, 120, 108, 96, 60, 48, 42, 32, 32, 32],
    [45, 108, 96, 72, 42, 32, 28, 24, 24, 24],
    [50, 96, 72, 60, 32, 28, 24, 21, 21, 21],
    [55, 80, 60, 48, 28, 24, 21, 18, 18, 18],
    [60, 72, 48, 42, 24, 21, 18, 16, 16, 18],
    [65, 68, 46, 32, 21.75, 19, 17, 15, 16, 18],
    [70, 64, 44, 28, 19.5, 18, 16, 14.5, 16, 18],
    [75, 60, 42, 24, 18, 16, 15, 14, 16, 18],
    [80, 56, 38.25, 23, 17.25, 15.81, 14.81, 14, 16, 18],
    [85, 52, 34.5, 22, 16.5, 15.625, 14.625, 14, 16, 18],
    [90, 48, 32, 21, 16, 15.5, 14.5, 14, 16, 18],
    [95, 45, 28, 19.5, 15.5, 15, 14, 13.5, 16, 18],
    [100, 42, 26.5, 18.5, 15, 14.5, 13.5, 13, 16, 18],
    [105, 39, 25, 18, 14.5, 14, 13, 12, 16, 18],
    [110, 36, 24, 18, 14, 13, 12, 11, 16, 18],
    [115, 34.5, 22.5, 17.25, 12.5, 11.875, 11.25, 10.625, 14.5, 16.5],
    [120, 33, 21, 16.5, 11, 10.75, 10.5, 10.25, 13, 15],
    [125, 32, 20, 16, 10, 10, 10, 10, 12, 14]
  ], n = [
    ["∆Lc", 100, 200, 300, 400, 500, 600, 700, 800, 900],
    [0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
    [10, 0, 0, 0, 0, 0, 0, 0, 0, 0],
    [15, 0, 0, 0, 0, 0, 0, 0, 0, 0],
    [20, 0, 0, 0, 0, 0, 0, 0, 0, 0],
    [25, 0, 0, 0, 12, 12, 12, 24, 24, 24],
    [30, 0, 0, 12, 12, 36, 36, 24, 24, 24],
    [35, 0, 12, 12, 36, 24, 18, 16, 16, 16],
    [40, 12, 12, 24, 18, 16, 14, 8, 8, 8],
    [45, 12, 24, 12, 10, 4, 4, 3, 3, 3],
    [50, 16, 12, 12, 4, 4, 3, 3, 3, 3],
    [55, 8, 12, 6, 4, 3, 3, 2, 2, 0],
    [60, 4, 2, 10, 2.25, 2, 1, 1, 0, 0],
    [65, 4, 2, 4, 2.25, 1, 1, 0.5, 0, 0],
    [70, 4, 2, 4, 1.5, 2, 1, 0.5, 0, 0],
    [75, 4, 3.75, 1, 0.75, 0.188, 0.188, 0, 0, 0],
    [80, 4, 3.75, 1, 0.75, 0.188, 0.188, 0, 0, 0],
    [85, 4, 2.5, 1, 0.5, 0.125, 0.125, 0, 0, 0],
    [90, 3, 4, 1.5, 0.5, 0.5, 0.5, 0.5, 0, 0],
    [95, 3, 1.5, 1, 0.5, 0.5, 0.5, 0.5, 0, 0],
    [100, 3, 1.5, 0.5, 0.5, 0.5, 0.5, 1, 0, 0],
    [105, 3, 1, 0, 0.5, 1, 1, 1, 0, 0],
    [110, 1.5, 1.5, 0.75, 1.5, 1.125, 0.75, 0.375, 1.5, 1.5],
    [115, 1.5, 1.5, 0.75, 1.5, 1.125, 0.75, 0.375, 1.5, 1.5],
    [120, 1, 1, 0.5, 1, 0.75, 0.5, 0.25, 1, 1],
    [125, 0, 0, 0, 0, 0, 0, 0, 0, 0]
  ], s = [0, 100, 200, 300, 400, 500, 600, 700, 800, 900].length;
  let a = [e.toFixed(t), 0, 0, 0, 0, 0, 0, 0, 0, 0];
  a.length;
  let r = 777;
  e = Math.abs(e);
  const d = 0.2, c = e == 0 ? 1 : e * d | 0;
  let p = 0, l = (e - o[c][p]) * d;
  for (p++; p < s; p++)
    r = o[c][p], r > 400 ? a[p] = r : e < 14.5 ? a[p] = 999 : e < 29.5 ? a[p] = 777 : r > 24 ? a[p] = Math.round(r - n[c][p] * l) : a[p] = r - (2 * n[c][p] * l | 0) * 0.5;
  return a;
}
function Ke(e = [0, 0, 0]) {
  function t(o) {
    return Math.pow(o / 255, W.mainTRC);
  }
  return W.sRco * t(e[0]) + W.sGco * t(e[1]) + W.sBco * t(e[2]);
}
function nn(e = [0, 0, 0, 1], t = [0, 0, 0], o = !0) {
  e[3] = Math.max(Math.min(e[3], 1), 0);
  let n = 1 - e[3], i = [0, 0, 0, 1, !0];
  for (let s = 0; s < 3; s++)
    i[s] = t[s] * n + e[s] * e[3], o && (i[s] = Math.min(Math.round(i[s]), 255));
  return i;
}
const Qo = 500, Ce = /* @__PURE__ */ new Map();
let Ye = null;
function Xo(e = "srgb") {
  if (!Ye)
    if (typeof OffscreenCanvas < "u")
      Ye = new OffscreenCanvas(1, 1).getContext("2d", { colorSpace: e, willReadFrequently: !0 });
    else {
      const t = document.createElement("canvas");
      t.width = 1, t.height = 1, Ye = t.getContext("2d", { willReadFrequently: !0 });
    }
  return Ye;
}
function Yo(e, t) {
  if (Ce.size >= Qo) {
    const o = Ce.keys().next().value;
    Ce.delete(o);
  }
  Ce.set(e, t);
}
function te(e, t = 1) {
  const o = `${e}_${t}`;
  if (Ce.has(o))
    return Ce.get(o);
  let n, i, s, a = 1;
  if (e.startsWith("#")) {
    const c = e.slice(1);
    c.length === 3 ? (n = parseInt(c[0] + c[0], 16), i = parseInt(c[1] + c[1], 16), s = parseInt(c[2] + c[2], 16)) : (n = parseInt(c.substring(0, 2), 16), i = parseInt(c.substring(2, 4), 16), s = parseInt(c.substring(4, 6), 16));
  } else if (e.startsWith("rgb")) {
    const c = e.match(/[\d.]+/g);
    c && (n = parseInt(c[0], 10), i = parseInt(c[1], 10), s = parseInt(c[2], 10), a = c[3] !== void 0 ? parseFloat(c[3]) : 1);
  } else {
    const c = e.startsWith("color(display-p3") ? "display-p3" : "srgb", p = Xo(c);
    if (!p || e.startsWith("color(rec2020")) return "unsupported";
    p.fillStyle = e, p.fillRect(0, 0, 1, 1), [n, i, s, a] = p.getImageData(0, 0, 1, 1).data, a = a / 255;
  }
  const r = t < 1 ? Number((a * t).toFixed(2)) : a, d = [n, i, s, r];
  return Yo(o, d), d;
}
function Fe(e, t) {
  const o = /* @__PURE__ */ new Map(), n = (...i) => {
    const s = t ? t(...i) : JSON.stringify(i);
    if (o.has(s))
      return o.get(s);
    const a = e.apply(this, i);
    return o.set(s, a), a;
  };
  return n.clear = () => {
    o.clear();
  }, n;
}
function Jo() {
  Zo(), ve.clear && ve.clear(), Re.clear && Re.clear(), we.clear && we.clear(), Bt.clear && Bt.clear(), Gt.clear && Gt.clear(), Ft.clear && Ft.clear();
}
function bn(e) {
  const t = parseInt(e, 10);
  return Number.isNaN(t) ? {
    lighter: 100,
    normal: 400,
    bold: 700,
    bolder: 900
  }[e] || 400 : t;
}
let at = /* @__PURE__ */ new WeakMap();
function Et(e, t) {
  if (at.has(e))
    return at.get(e);
  const o = (s) => {
    if (!s) return null;
    if (t) {
      if (s.assignedSlot) return s.assignedSlot;
      if (s.nodeType === 11 && s.host) return s.host;
    }
    return s.parentElement || s.parentNode;
  };
  let n = e, i = [255, 255, 255];
  for (; n && (n.nodeType === 1 || n.nodeType === 11); ) {
    if (n.nodeType === 11 && n.host) {
      n = n.host;
      continue;
    }
    const s = U(n), a = s.backgroundImage;
    if (a && a !== "none") {
      i = { type: "image", value: a };
      break;
    }
    const r = te(s.backgroundColor);
    if (r[3] !== 0 && r !== "transparent") {
      if (r[3] < 1) {
        let d = o(n), c = "rgba(255, 255, 255, 1)";
        for (; d && (d.nodeType === 1 || d.nodeType === 11); ) {
          if (d.nodeType === 11 && d.host) {
            d = d.host;
            continue;
          }
          const g = U(d).backgroundColor;
          if (g !== "rgba(0, 0, 0, 0)" && g !== "transparent") {
            c = g;
            break;
          }
          d = o(d);
        }
        (c === "rgba(0, 0, 0, 0)" || c === "transparent") && (c = "rgba(255, 255, 255, 1)");
        const p = te(c);
        i = nn(r, p);
        break;
      }
      i = r;
      break;
    }
    if (n.tagName === "HTML") {
      i = [255, 255, 255];
      break;
    }
    n = o(n);
  }
  return at.set(e, i), i;
}
function Zo() {
  at = /* @__PURE__ */ new WeakMap();
}
const ve = Fe(
  function(t) {
    const o = t.slice(0, 3).map((n) => {
      const i = n / 255;
      return i <= 0.03928 ? i / 12.92 : ((i + 0.055) / 1.055) ** 2.4;
    });
    return 0.2126 * o[0] + 0.7152 * o[1] + 0.0722 * o[2];
  },
  (e) => e.join(",")
  // Key resolver: e.g., "255,255,255,1"
), Re = Fe(
  function(t, o) {
    const n = nn(t, o).slice(0, 4), i = Ke(n), s = Ke(o);
    return { ratio: Xn(i, s), blendedColor: n };
  },
  (e, t) => `${e.join(",")}|${t.join(",")}`
);
function We(e, t) {
  const o = Math.max(e, t), n = Math.min(e, t);
  return (o + 0.05) / (n + 0.05);
}
function Yn(e, t) {
  return e.map((o, n) => {
    if (n < 3) {
      const i = Math.ceil(o + (255 - o) * t);
      return i >= 255 ? 255 : i;
    }
    return o;
  });
}
function Jn(e, t) {
  return e.map((o, n) => {
    if (n < 3) {
      const i = Math.floor(o * (1 - t));
      return i <= 0 ? 0 : i;
    }
    return o;
  });
}
function q(e) {
  const [t, o, n] = e.map((r) => Math.min(255, Math.max(0, r))), i = t.toString(16).padStart(2, "0"), s = o.toString(16).padStart(2, "0"), a = n.toString(16).padStart(2, "0");
  return `#${i}${s}${a}`;
}
function on(e) {
  return Math.abs(Number(e.toFixed(1)));
}
function sn(e) {
  const t = Math.trunc(e * 10) / 10;
  return `${Number.isInteger(t) ? t.toFixed(0) : t}:1`;
}
function ei(e, t) {
  return t === "APCA" ? on(e) : sn(e);
}
const we = Fe(
  function(t, o, n) {
    let i;
    const s = nn(t, o).slice(0, 4);
    if (n === "APCA") {
      const a = Ke(s), r = Ke(o);
      i = Xn(a, r);
    } else {
      const a = ve(s), r = ve(o);
      i = We(a, r);
    }
    return { ratio: i, blendedColor: s };
  },
  (e, t, o) => `${e.join(",")}|${t.join(",")}|${o}`
), Bt = Fe(
  function(t, o, n, i) {
    let s;
    i === "AAA" ? s = n ? 4.5 : 7 : s = n ? 3 : 4.5;
    const a = ve(t), r = ve(o), d = a > r ? We(1, r) > s : We(0, r) < s, c = (L, I, w) => w ? Yn(L, I) : Jn(L, I);
    let p = t, l = p, g = We(a, r), m = g, x = t, h = 0.16;
    const v = 0.5, y = 0.01;
    let A = 0;
    const T = 100;
    for (; h >= y; ) {
      if (A += 1, A > T)
        return { color: null };
      p = c(p, h, d);
      const L = ve(p);
      g = We(L, r), g >= s && (l = g <= m ? p : l, m = g, p = x, h *= v), x = p;
    }
    return { color: q(l) };
  },
  (e, t, o, n) => `${e.join(",")}|${t.join(",")}|${o}|${n}`
), ti = (e, t) => {
  const o = Re(e, [0, 0, 0, 1]), n = Re(e, [255, 255, 255, 1]), i = Math.abs(o.ratio) > Math.abs(n.ratio), s = i ? [0, 0, 0, 1] : [255, 255, 255, 1], a = i ? o.ratio : n.ratio, r = mt(a).slice(1), d = Math.ceil(r[Math.floor(t / 100) - 1]);
  return { suggestedColor: s, size: d };
}, Gt = Fe(
  function(t, o, n, i) {
    const a = n == null || i == null, r = Ke(o), d = (_, P) => r <= 0.179 ? Yn(_, P) : Jn(_, P);
    let c = t, p = Re(c, o), { ratio: l } = p, g = null, m = l, x = null, h, v, y;
    const A = () => (h = mt(l).slice(1), v = Math.min(
      Math.max(Math.floor(n / 100) - 1, 0),
      h.length - 1
    ), y = h[v], y <= i && y !== 999 && y !== 777), T = () => Math.abs(l) >= 45;
    if (a) {
      if (T())
        return { color: q(t), size: null };
    } else {
      if (g = ti(o, n), g.size > i)
        return {
          color: q(g.suggestedColor),
          size: g.size
        };
      if (A())
        return { color: q(t), size: null };
    }
    let L = t, I = 0.16;
    const w = 0.5, E = 0.01;
    let S = 0;
    const C = 50;
    for (; I >= E && S < C; )
      S += 1, c = d(c, I), p = Re(c, o), l = p.ratio, (a ? T() : A()) && ((Math.abs(l) <= Math.abs(m) || !x) && (x = c, m = l), c = L, I *= w), L = c;
    return x ? { color: q(x), size: null } : !a && g ? {
      color: q(g.suggestedColor),
      size: g.size
    } : { color: q(t), size: null };
  },
  (e, t, o, n) => `${e.join(",")}|${t.join(",")}|${o}|${n}`
);
function ni(e, t, o, n, i, s, a) {
  const { ratio: r, blendedColor: d } = we(t, o), c = n >= 24 || n >= 18.67 && i >= 700, p = e.tagName.toLowerCase(), l = /^[x×✕✖✗✘]$/i.test(e.textContent), g = (p === "button" || p === "a") && l;
  let m;
  if (g)
    m = r > 0 && r < 3;
  else if (a === "AAA")
    m = c ? r < 4.5 : r < 7;
  else {
    const x = r > 0 && r < 4.5;
    m = c ? r < 3 : x;
  }
  return m ? {
    $el: e,
    ratio: sn(r),
    color: d,
    background: o,
    fontSize: n,
    fontWeight: i,
    isLargeText: c,
    opacity: s,
    textUnderline: U(e).textDecorationLine
  } : null;
}
function oi(e, t, o, n, i, s, a) {
  const { ratio: r, blendedColor: d } = we(t, o, a), c = mt(r).slice(1), p = Math.floor(i / 100) - 1, l = c[p];
  return n < l ? {
    $el: e,
    ratio: on(r),
    color: d,
    background: o,
    fontWeight: i,
    fontSize: n,
    opacity: s,
    textUnderline: U(e).textDecorationLine
  } : null;
}
function wt(e, t, o, n, i, s, a) {
  return (a === "APCA" ? oi : ni)(e, t, o, n, i, s, a);
}
const ii = /#(?:[\da-f]{3,4}|[\da-f]{6}|[\da-f]{8})\b|\b(?:rgb|hsl|lab|lch|oklab|oklch)a?\([^)]+\)|\b[a-z]+\b/gi, Ft = Fe(
  function(t) {
    const o = t.match(ii);
    if (!o) return [];
    const n = [];
    for (const i of o) {
      if (/^[a-z]+$/i.test(i) && !CSS.supports("color", i)) continue;
      const s = te(i);
      s && n.push(s);
    }
    return n;
  },
  (e) => e
);
async function J(e = !0) {
  if (Bn(), Gn(), Fn(), Jo(), bo(), window.sa11yCheckComplete = null, !u.option.headless) {
    for (f.Global.html.removeAttribute("data-sa11y-active"), Vt(
      [
        "sa11y-annotation",
        "sa11y-heading-label",
        "sa11y-heading-anchor",
        "sa11y-image-anchor",
        "sa11y-tooltips"
      ],
      "document"
    ), tn.length = 0, Jt() && z("[style]", "document").forEach((t) => {
      const o = t, n = (o.style.anchorName || "").split(",").map((i) => i.trim()).filter((i) => i && !i.startsWith("--sa11y-anchor"));
      n.length ? o.style.anchorName = n.join(", ") : (o.style.removeProperty("anchor-name"), o.style.length || o.removeAttribute("style"));
    }), qt(
      [
        "data-sa11y-parent",
        "data-sa11y-error",
        "data-sa11y-warning",
        "data-sa11y-good",
        "data-sa11y-overflow",
        "data-sa11y-image",
        "data-sa11y-pulse-border",
        "data-sa11y-filter",
        "data-sa11y-has-shadow-root"
      ],
      "document"
    ), f.Panel.outlineList.innerHTML = "", u.option.showImageOutline && (f.Panel.imagesList.innerHTML = ""), f.Panel.pageIssuesList.innerHTML = "", f.Panel.readabilityInfo.innerHTML = "", f.Panel.readabilityDetails.innerHTML = "", f.Panel.panel.classList.remove("has-page-issues"), f.Panel.pageIssues.classList.remove("active"), f.Panel.settingsContent.classList.remove("hide-settings-border"), f.Panel.panel.querySelector("#readability-alert")?.remove(), Pe(), Bo(), $o(), ci(), Qn(); f.Panel.status.firstChild; )
      f.Panel.status.removeChild(f.Panel.status.firstChild);
    document.querySelectorAll("[data-sa11y-has-shadow-root]").forEach((t) => {
      t.shadowRoot.querySelectorAll("style.sa11y-css-utilities").forEach((o) => {
        o.remove();
      }), t.removeAttribute("data-sa11y-has-shadow-root");
    }), e && f.Panel.panel.classList.remove("active");
  }
}
function si() {
  u.dismissedIssues = JSON.parse(k.getItem("sa11y-dismissed-digest") || "[]");
  const e = window.location.pathname, t = (a, r) => r.key.includes(a.dismissDigest) && r.href === e && (a.type === "warning" || a.type === "good"), o = (a, r) => typeof r.dismissAll == "string" && a.dismissAll === r.dismissAll && r.href === e, n = u.results.filter(
    (a) => u.dismissedIssues.some((r) => t(a, r))
  ), i = u.results.filter(
    (a) => u.dismissedIssues.some((r) => o(a, r))
  ), s = [...n, ...i];
  u.dismissedResults = [
    ...new Map(s.map((a) => [a.dismiss, a])).values()
  ], u.counts.dismissed = u.dismissedResults.length, u.results = u.results.filter(
    (a) => !u.dismissedResults.some(
      (r) => r.dismiss === a.dismiss && (a.type === "warning" || a.type === "good")
    )
  ), u.counts.dismissed ? (f.Panel.dismissButton.classList.add("active"), f.Panel.dismissTooltip.appendChild(
    b.sprintf("PANEL_DISMISS_BUTTON", u.counts.dismissed)
  )) : f.Panel.dismissButton.classList.remove("active");
}
let Ht, rt;
const ai = async (e) => {
  let t = JSON.parse(k.getItem("sa11y-dismissed-digest"));
  const o = e.target;
  if (o.tagName === "BUTTON" && o.hasAttribute("data-sa11y-dismiss")) {
    const n = parseInt(o.getAttribute("data-sa11y-dismiss"), 10), i = u.results.find((s) => s.id === n);
    if (t === null && (setTimeout(() => Ie(b.sprintf("DISMISS_REMINDER")), 0), t = []), i.dismissDigest) {
      const s = o.hasAttribute("data-sa11y-dismiss-all") ? i.dismissAll : "", a = {
        key: i.dismissDigest,
        href: window.location.pathname,
        ...s ? { dismissAll: s } : {}
      }, r = z(`[data-sa11y-annotation='${i.id}']`, "root"), d = r[0] ? r[0].getAttribute("data-sa11y-position") : 0;
      k.setItem("sa11y-latest-dismissed", d), k.setItem("sa11y-dismiss-item", JSON.stringify(a)), t.push(a), k.setItem("sa11y-dismissed-digest", JSON.stringify(t)), k.removeItem("sa11y-dismiss-item");
      const c = o ? M(o, "[data-tippy-root]") : null;
      c && setTimeout(() => {
        c.remove();
      }, 0), J(!1), await Q();
    }
  }
}, ri = async () => {
  u.panelTooltips.dismissTooltip.hide();
  const e = u.dismissedIssues.filter((t) => t.href !== window.location.pathname);
  k.setItem("sa11y-dismissed-digest", JSON.stringify(e)), f.Panel.dismissButton.classList.remove("active"), J(!1), await Q();
};
function li() {
  u.option.dismissAnnotations && (rt = (t) => ai(t), document.querySelector("sa11y-tooltips").shadowRoot.addEventListener("click", rt), f.Panel.panel.addEventListener("click", rt)), Ht = () => ri(), f.Panel.dismissButton?.addEventListener("click", Ht);
}
function ci() {
  f.Panel.panel?.removeEventListener("click", rt), f.Panel.dismissButton?.removeEventListener("click", Ht);
}
const Zn = document.createElement("template");
Zn.innerHTML = `
  <li>
    <button type="button" tabindex="-1">
      <span class="badge"></span>
      <span class="outline-list-item"></span>
    </button>
  </li>
`;
function di() {
  const e = () => {
    f.Panel.outlineList.textContent = "";
    const t = document.createDocumentFragment();
    if (u.dismissedResults.map((n) => u.headingOutline.find((i) => n.dismiss === i.dismiss)).filter(Boolean).forEach((n) => {
      n.dismissedHeading = !0;
    }), u.option.showTitleInPageOutline && k.getItem("sa11y-developer") === "On") {
      const n = document.querySelector("head title"), i = document.createElement("li");
      if (!n || n.textContent.trim().length === 0)
        i.innerHTML = `
          <div class="badge error-badge"><span aria-hidden="true"><span class="error-icon"></span></span> ${b._("TITLE")}</div>
          <div class="badge error-badge">${b._("MISSING")}</div>
        `;
      else {
        const s = document.createElement("span");
        s.className = "badge", s.textContent = b._("TITLE"), i.appendChild(s), i.appendChild(document.createTextNode(` ${G(n)}`));
      }
      t.appendChild(i);
    }
    if (u.headingOutline.forEach((n, i) => {
      const { element: s, headingLevel: a, text: r, type: d, dismissedHeading: c, isWithinRoot: p } = n, l = ft(s), g = l ? `<span class="hidden-icon"></span><span class="visually-hidden">${b._("HIDDEN")}</span>` : "", m = u.option.showHinPageOutline === !0 || u.option.showHinPageOutline === 1 ? "H" : "", x = Zn.content.cloneNode(!0), h = x.querySelector("li"), v = x.querySelector(".badge"), y = x.querySelector(".outline-list-item");
      if (h.className = `outline-${a}`, y.textContent = r, d === "error" && p === !0) {
        v.className = "badge error-badge", v.innerHTML = `<span aria-hidden="true">${g}<span class="error-icon"></span></span><span class="visually-hidden">${b._("ERROR")}</span>${m}${a}`;
        const I = document.createElement("strong");
        I.className = "outline-list-item red-text", I.textContent = r, y.replaceWith(I);
      } else if (d === "warning" && !c && p === !0) {
        v.className = "badge warning-badge", v.innerHTML = `<span aria-hidden="true">${g} &#x3f;</span><span class="visually-hidden">${b._("WARNING")}</span> ${m}${a}`;
        const I = document.createElement("strong");
        I.className = "outline-list-item yellow-text", I.textContent = r, y.replaceWith(I);
      } else
        v.innerHTML = `${g}${m}${a}`;
      t.appendChild(x);
      const A = document.createElement("sa11y-heading-label");
      A.hidden = !0, s?.insertAdjacentElement("beforeend", A);
      const T = document.createElement("sa11y-heading-anchor");
      if (T.id = `sa11y-h${i}`, l) {
        const I = Be(s, "display", "none"), w = I?.previousElementSibling || I?.parentNode;
        w?.insertAdjacentElement("beforebegin", T), w?.setAttribute("data-sa11y-parent", `h${i}`);
      } else
        A?.insertAdjacentElement("beforebegin", T);
      const L = document.createElement("span");
      L.classList.add("heading-label"), L.textContent = `H${a}`, A.shadowRoot.appendChild(L), k.getItem("sa11y-outline") === "Opened" && (A.hidden = !1);
    }), u.headingOutline.length === 0) {
      const n = document.createElement("li");
      n.textContent = b._("PANEL_NO_HEADINGS"), t.appendChild(n);
    }
    f.Panel.outlineList.appendChild(t), setTimeout(() => {
      const n = f.Panel.outlineList.querySelectorAll("button");
      n.forEach((i, s) => {
        i.addEventListener("click", () => {
          const a = z(
            `#sa11y-h${s}, [data-sa11y-parent="h${s}"]`,
            "document",
            f.Exclusions.Container
          )[0];
          a && (a.scrollIntoView({
            behavior: `${f.Global.scrollBehaviour}`,
            block: "center"
          }), $e(a.parentNode || a)), Pe(), (!a || i.querySelector("span.hidden-icon")) && Ie(b._("NOT_VISIBLE"));
        });
      }), Yt(f.Panel.outlineList, n);
    }, 0), document.removeEventListener("sa11y-build-heading-outline", e);
  };
  k.getItem("sa11y-outline") === "Opened" && e(), document.addEventListener("sa11y-build-heading-outline", e);
}
const be = (e, t) => {
  const o = (s) => {
    if (s === "none")
      return "";
    const a = s.includes("url(") || s.includes("image-set(") ? s.match(/\/\s*"([^"]+)"/) : s.match(/"([^"]+)"/);
    return a ? a[1] : "";
  }, n = o(U(e, ":before").getPropertyValue("content")), i = o(U(e, ":after").getPropertyValue("content"));
  return `${n}${t}${i}`;
}, yn = (e) => {
  for (let t = 0; t < 1e3; t++) {
    if (e.nextSibling())
      return e.previousNode();
    if (!e.parentNode())
      return !1;
  }
  return !1;
}, Ae = (e, t = !1) => {
  if (u.option.ignoreAriaOnElements && e.matches(u.option.ignoreAriaOnElements))
    return "noAria";
  if (u.option.ignoreTextInElements && e.matches(u.option.ignoreTextInElements))
    return "";
  const o = e.getAttribute("aria-labelledby");
  if (!t && o)
    return o.split(/\s+/).filter((i) => i.trim()).map((i) => {
      const s = document.querySelector(`#${CSS.escape(i)}`);
      return s ? oe(s, "", 1) : "";
    }).join(" ");
  const { ariaLabel: n } = e;
  return n && n.trim().length > 0 ? n : "noAria";
}, oe = (e, t = [], o = 0) => {
  const n = Ae(e, o);
  if (n !== "noAria")
    return n;
  let i = "";
  const s = (h) => {
    i += ` ${h}`;
  };
  if (!e.children.length)
    return i = be(e, e.textContent), !i.trim() && e.hasAttribute("title") ? e.getAttribute("title") : i;
  function a(h, v, y) {
    const A = (T) => T.nodeType === Node.ELEMENT_NODE || T.nodeType === Node.TEXT_NODE ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;
    return document.createTreeWalker(h, NodeFilter.SHOW_ALL, { acceptNode: A });
  }
  const r = a(e), d = ["noscript", "style", "script", "video", "audio"], c = [...t, ...d].join(", "), p = c ? e.querySelectorAll(c) : [];
  let l = !1, g = !1, m = 0, x = !0;
  for (; r.nextNode() && x; ) {
    m += 1;
    const h = r.currentNode;
    if (Array.from(p).some((A) => A.contains(h)))
      continue;
    if (h.shadowRoot) {
      const A = h.shadowRoot.querySelectorAll("*");
      for (let T = 0; T < A.length; T++) {
        const L = A[T];
        (!c || !M(L, c)) && s(oe(L, t, o + 1));
      }
    }
    if (h.nodeType === Node.TEXT_NODE) {
      h.parentNode.tagName !== "SLOT" && s(h.nodeValue);
      continue;
    }
    if (l && !M(h, "a") && (g === i && s(l), l = !1, g = !1), h.ariaHidden === "true" && !(o && m < 3)) {
      yn(r) || (x = !1);
      continue;
    }
    const y = Ae(h, o);
    if (y !== "noAria") {
      s(y), yn(r) || (x = !1);
      continue;
    }
    switch (h.tagName) {
      case "IMG": {
        const A = h.getAttribute("role");
        h.hasAttribute("alt") && A !== "presentation" && A !== "none" && s(h.getAttribute("alt"));
        break;
      }
      case "SVG":
        if (h.role === "img" || h.role === "graphics-document")
          s(Ae(h));
        else {
          const A = h.querySelector("title");
          A && s(A.textContent);
        }
        break;
      case "A":
        h.hasAttribute("title") ? (l = h.getAttribute("title"), g = i) : (l = !1, g = !1), s(be(h, ""));
        break;
      case "INPUT":
        s(be(r.currentNode, "")), r.currentNode.hasAttribute("title") && (l = r.currentNode.getAttribute("title"));
        break;
      case "SLOT": {
        const A = h.assignedNodes?.() || [];
        let T = "";
        A.forEach((L) => {
          L.nodeType === Node.ELEMENT_NODE ? T += oe(L) : L.nodeType === Node.TEXT_NODE && (T += L.nodeValue);
        }), s(T), s(be(h, ""));
        break;
      }
      case "SPAN": {
        s(be(r.currentNode, "")), r.currentNode.hasAttribute("title") && (l = r.currentNode.getAttribute("title"));
        break;
      }
      default:
        s(be(h, ""));
        break;
    }
  }
  return l && !g && s(l), i = i.replace(/[\uE000-\uF8FF]/gu, ""), !i.trim() && (i = be(e, ""), !i.trim() && e.hasAttribute("title")) ? e.getAttribute("title") : i;
}, eo = document.createElement("template");
eo.innerHTML = `
  <li>
    <button type="button" tabindex="-1">
      <img alt="" />
      <div class="alt">
        <span class="badges-container"></span>
        <span class="alt-text-container"></span>
      </div>
    </button>
  </li>
`;
const ui = (e) => {
  const { src: t } = e.element;
  if (!t) return;
  const o = u.option.ignoreEditImageURL.some((p) => t.includes(p)), n = u.option.ignoreEditImageClass.some(
    (p) => e.element.classList.contains(p)
  );
  if (o || n)
    return null;
  const i = u.option.relativePathImageSRC || window.location.host, s = t.split(i)[1] || "", a = u.option.relativePathImageID;
  let r;
  a.length && e.element.classList.length && e.element.classList.forEach((p) => {
    if (p.startsWith(a)) {
      const [l] = p.match(/\d+/) || [];
      r = l;
    }
  });
  const d = i && a.length ? u.option.editImageURLofCMS + r : u.option.editImageURLofCMS + s, c = (p) => p.includes(window.location.host) || p.startsWith(i);
  if ((a.length && r !== void 0 || !a) && c(t)) {
    const p = document.createElement("div");
    p.className = "edit-block";
    const l = document.createElement("a");
    return l.href = d, l.tabIndex = -1, l.target = "_blank", l.rel = "noopener noreferrer", l.className = "edit", l.textContent = b._("EDIT"), p.appendChild(l), p;
  }
  return null;
};
function pi() {
  if (!u.option.showImageOutline) return;
  const e = () => {
    f.Panel.imagesList.textContent = "";
    const t = document.createDocumentFragment();
    let o = !1;
    if (u.imageResults.forEach((n, i) => {
      o = !0, u.dismissedResults.some(
        (_) => _.dismissDigest === n.dismissDigest
      ) && Object.assign(n, { dismissedImage: !0 });
      const { element: a, type: r, developer: d, dismissedImage: c } = n, p = Ae(a), l = p === "noAria" ? a.getAttribute("alt") ?? "" : p ?? "", g = ft(a);
      if (g) {
        const _ = Be(a, "display", "none"), P = document.createElement("sa11y-image-anchor");
        P.setAttribute("data-sa11y-parent", `image${i}`), (_?.previousElementSibling || _?.parentNode)?.insertAdjacentElement("beforebegin", P);
      } else
        a.setAttribute("data-sa11y-image", i);
      const m = k.getItem("sa11y-developer"), h = (m === "Off" || m === null) && (r === "error" || r === "warning") && d === !0, v = jt(a);
      let y = l === "";
      if (!y && u.option.altPlaceholder.length) {
        const _ = re(u.option.altPlaceholder, !0);
        y = l.match(_)?.[0];
      }
      const A = eo.content.cloneNode(!0), T = A.querySelector("li"), L = A.querySelector("img"), I = A.querySelector(".badges-container"), w = A.querySelector(".alt-text-container"), E = () => {
        const _ = document.createElement("span");
        _.className = "image-icon", L.replaceWith(_);
      };
      v ? (L.src = v, L.onload = () => {
        (L.naturalWidth <= 1 || L.naturalHeight <= 1) && E();
      }, L.onerror = E) : E();
      let S = "";
      g && (S += `<div class="badge"><span class="hidden-icon"></span><span class="visually-hidden">${b._("HIDDEN")}</span></div> `);
      const C = u.option.imageWithinLightbox ? `a[href]:not(${u.option.imageWithinLightbox})` : "a[href]";
      if (M(a, C) && (S += `<div class="badge"><span class="link-icon"></span><span class="visually-hidden">${b._("LINKED")}</span></div> `), r === "error" && !h) {
        if (T.className = "error", l.length === 0 && (S += `<div class="badge">${b._("MISSING")}</div> `), S += `<div class="badge"><span class="error-icon"></span><span class="visually-hidden">${b._("ERROR")}</span> ${b._("ALT")}</div> `, !y) {
          const _ = document.createElement("strong");
          _.className = "red-text", _.textContent = l, w.replaceWith(_);
        }
      } else if (r === "warning" && !c && !h) {
        if (T.className = "warning", y && (S += `<div class="badge">${b._("DECORATIVE")}</div> `), S += `<div class="badge"><span aria-hidden="true">&#63;</span> <span class="visually-hidden">${b._("WARNING")}</span> ${b._("ALT")}</div> `, !y) {
          const _ = document.createElement("strong");
          _.className = "yellow-text", _.textContent = l, w.replaceWith(_);
        }
      } else
        T.className = "good", y && (S += `<div class="badge">${b._("DECORATIVE")}</div> `), S += `<div class="badge">${b._("ALT")}</div> `, y || (w.textContent = ` ${l}`);
      if (I.innerHTML = S, u.option.editImageURLofCMS) {
        const _ = ui(n);
        _ && T.appendChild(_);
      }
      t.appendChild(A);
    }), !o) {
      const n = document.createElement("li");
      n.className = "no-images", n.textContent = b._("NO_IMAGES"), t.appendChild(n);
    }
    f.Panel.imagesList.appendChild(t), setTimeout(() => {
      f.Panel.imagesList.querySelectorAll("button").forEach((s, a) => {
        s.addEventListener("click", () => {
          const r = z(
            `[data-sa11y-image='${a}'], [data-sa11y-parent='image${a}']`,
            "document",
            f.Exclusions.Container
          )[0];
          r && (r.scrollIntoView({
            behavior: `${f.Global.scrollBehaviour}`,
            block: "center"
          }), $e(r)), Pe(), (!r || s.querySelector("span.hidden-icon")) && Ie(b._("NOT_VISIBLE"));
        });
      });
      const i = f.Panel.imagesList.querySelectorAll("a, button");
      Yt(f.Panel.imagesList, i);
    }, 0), document.removeEventListener("sa11y-build-image-outline", e);
  };
  k.getItem("sa11y-images") === "Opened" && e(), document.addEventListener("sa11y-build-image-outline", e);
}
function gi() {
  f.Panel.skipButton.disabled = !1, f.Panel.panel.classList.add("active"), f.Global.html.setAttribute("data-sa11y-active", "true"), f.Panel.skipButton.classList.add("active"), u.counts.error > 0 && u.counts.warning > 0 ? (f.Panel.content.setAttribute("class", "errors"), f.Panel.status.innerHTML = `${b._("ERRORS")} <span class="panel-count">${u.counts.error}</span> ${b._("WARNINGS")} <span class="panel-count" id="warning-count">${u.counts.warning}</span>`) : u.counts.error > 0 ? (f.Panel.content.setAttribute("class", "errors"), f.Panel.status.innerHTML = `${b._("ERRORS")} <span class="panel-count">${u.counts.error}</span>`) : u.counts.warning > 0 ? (f.Panel.content.setAttribute("class", "warnings"), f.Panel.status.innerHTML = `${b._("WARNINGS")} <span class="panel-count" id="warning-count">${u.counts.warning}</span>`) : u.counts.dismissed > 0 ? (f.Panel.status.innerHTML = `${b._("DISMISSED")} <span class="panel-count">${u.counts.dismissed}</span>`, f.Panel.skipButton.classList.remove("active")) : (f.Panel.content.setAttribute("class", "good"), f.Panel.status.textContent = b._("NO_ERRORS_FOUND")), document.querySelectorAll("sa11y-annotation").length === 0 && (f.Panel.skipButton.disabled = !0);
}
function fi() {
  const e = u.counts.error + u.counts.warning;
  e === 0 ? (f.Panel.notifCount.innerText = "", f.Panel.notifText.innerText = "", f.Panel.notifBadge.style.display = "none") : u.counts.warning > 0 && u.counts.error === 0 ? (f.Panel.notifBadge.classList.add("notification-badge-warning"), f.Panel.notifCount.innerText = `${u.counts.warning}`, f.Panel.notifText.innerText = `${b._("WARNINGS_FOUND")}`) : (f.Panel.notifBadge.classList.remove("notification-badge-warning"), f.Panel.notifCount.innerText = `${e}`, f.Panel.notifText.innerText = b._("TOTAL_FOUND")), k.getItem("sa11y-panel") === "Opened" || e === 0 ? f.Panel.notifBadge.style.display = "none" : f.Panel.notifBadge.style.display = "flex";
}
function mi() {
  u.results.forEach((e, t) => {
    const o = u.results[t].type;
    o === "error" ? u.counts.error += 1 : o === "warning" && (u.counts.warning += 1);
  });
}
function hi() {
  setTimeout(() => {
    k.getItem("sa11y-panel") === "Opened" && f.Panel.toggle?.click(), f.Panel.toggle.disabled = !0;
  }, u.option.delayCheck + 10);
}
function bi() {
  f.Panel.toggle && (f.Panel.toggle.disabled = !1);
}
const to = 'h1,h2,div,p,span,ol,ul,li,a,button,svg,strong,kbd,code{all:unset;box-sizing:border-box!important}div{display:block}:before,:after{all:unset}[data-animation=fade][data-state=hidden]{opacity:0}.sa11y-theme{max-width:375px}@media(forced-colors:active){[role=dialog],[role=tooltip]{border:2px solid #0000;border-radius:5px}}.arrow{background:inherit;visibility:hidden;width:8px;height:8px;position:absolute}.arrow:before{content:"";background:inherit;visibility:visible;width:8px;height:8px;position:absolute;transform:rotate(45deg)}[data-placement^=top]>.arrow{bottom:-4px}[data-placement^=bottom]>.arrow{top:-4px}[data-placement^=left]>.arrow{right:-4px}[data-placement^=right]>.arrow{left:-4px}.content{z-index:1;padding:5px 9px;position:relative}[role=tooltip]{box-sizing:border-box!important}[role=tooltip][data-animation=fade][data-state=hidden]{opacity:0}[role=tooltip][data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}[role=dialog]{text-align:start;word-wrap:break-word;min-width:300px}[role=tooltip]{text-align:center;min-width:185px;max-width:250px}.sa11y-panel{border:1px solid var(--sa11y-panel-bg-splitter);box-shadow:var(--sa11y-box-shadow)}.sa11y-theme:not(.sa11y-panel){box-shadow:0 0 20px 4px #9aa1b126,0 4px 80px -8px #24282f40,0 4px 4px -2px #5b5e6926!important}.sa11y-theme{font-family:var(--sa11y-font-face);font-size:var(--sa11y-normal-text);color:var(--sa11y-panel-primary);letter-spacing:normal;background-color:var(--sa11y-panel-bg);-webkit-font-smoothing:auto;border-radius:4px;outline:0;padding:8px;font-weight:400;line-height:22px;transition-property:transform,visibility,opacity;display:block;position:relative}.sa11y-theme pre code{white-space:pre-wrap;display:block;overflow:auto}.sa11y-theme code{font-family:monospace;font-size:calc(var(--sa11y-normal-text) - 1px);font-weight:500}.sa11y-theme pre,.sa11y-theme code,.sa11y-theme kbd{color:var(--sa11y-panel-primary);letter-spacing:normal;background-color:var(--sa11y-panel-badge);-webkit-font-smoothing:auto;border-radius:3.2px;padding:1.6px 4.8px;line-height:22px}.sa11y-theme sub,.sa11y-theme sup{font-size:var(--sa11y-small-text)}.sa11y-theme ul{margin:0;margin-block:0;padding:0;position:relative}.sa11y-theme li{margin:5px 10px 0 20px;padding-bottom:5px;display:list-item}.sa11y-theme a{color:var(--sa11y-hyperlink);cursor:pointer;font-weight:500;text-decoration:underline}.sa11y-theme a:hover,.sa11y-theme a:focus{text-decoration:none}.sa11y-theme .good .colour{font-weight:400}.sa11y-theme strong{font-weight:600}.sa11y-theme hr{background:var(--sa11y-panel-bg-splitter);opacity:1;border:none;height:1px;margin:10px 0;padding:0}.sa11y-theme button.close-btn{margin-inline-start:10px;margin-bottom:10px}.sa11y-theme button#suggest-size,.sa11y-theme button#suggest{cursor:pointer;padding:.2rem;transition:background-color .2s,color .2s;position:relative}:is(.sa11y-theme button#suggest-size,.sa11y-theme button#suggest):after{content:"";position:absolute;inset:-10px -5px -14px}:is(.sa11y-theme button#suggest-size,.sa11y-theme button#suggest):hover,:is(.sa11y-theme button#suggest-size,.sa11y-theme button#suggest):focus-visible{color:#000!important;background-color:#fff!important}.sa11y-theme .dismiss-group{margin-top:5px}.sa11y-theme .dismiss-group button{margin:10px 5px 5px 0;color:var(--sa11y-panel-primary);cursor:pointer;background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:5px;margin-inline-end:15px;padding:4px 8px;display:inline-block}.sa11y-theme .dismiss-group button:hover,.sa11y-theme .dismiss-group button:focus{background:var(--sa11y-shortcut-hover)}.sa11y-theme .good-icon{background:var(--sa11y-good-text);width:14px;height:14px;-webkit-mask:var(--sa11y-good-svg) center no-repeat;mask:var(--sa11y-good-svg) center no-repeat;margin-bottom:-2.5px;display:inline-block}.sa11y-theme .link-icon{background:var(--sa11y-panel-primary);width:16px;height:16px;-webkit-mask:var(--sa11y-link-icon-svg) center no-repeat;mask:var(--sa11y-link-icon-svg) center no-repeat;margin-bottom:-3.5px;display:inline-block}.sa11y-theme .error .badge{color:var(--sa11y-error-text);background:var(--sa11y-error)}.sa11y-theme .error .colour{color:var(--sa11y-red-text)}.sa11y-theme .error .link-icon{background:var(--sa11y-error-text)}.sa11y-theme .warning .badge{color:var(--sa11y-panel-bg);background:var(--sa11y-yellow-text)}.sa11y-theme .warning .colour{color:var(--sa11y-yellow-text)}.sa11y-theme .warning .link-icon{background:var(--sa11y-panel-bg)}.sa11y-theme[data-placement^=top] .arrow:before{border-top-color:var(--sa11y-panel-bg)}.sa11y-theme[data-placement^=bottom] .arrow:before{border-bottom-color:var(--sa11y-panel-bg)}.sa11y-theme[data-placement^=left] .arrow:before{border-left-color:var(--sa11y-panel-bg)}.sa11y-theme[data-placement^=right] .arrow:before{border-right-color:var(--sa11y-panel-bg)}@media(forced-colors:active){.sa11y-theme[data-placement^=top] .arrow:before,.sa11y-theme[data-placement^=bottom] .arrow:before,.sa11y-theme[data-placement^=left] .arrow:before,.sa11y-theme[data-placement^=right] .arrow:before{forced-color-adjust:none}.sa11y-theme .arrow{z-index:-1}}.sa11y-theme a:focus,.sa11y-theme input:focus,.sa11y-theme button:focus,.sa11y-theme button:active,.sa11y-theme [tabindex="-1"]:focus{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}.sa11y-theme input:focus:not(:focus-visible),.sa11y-theme a:focus:not(:focus-visible),.sa11y-theme button:focus:not(:focus-visible),.sa11y-theme [tabindex="-1"]:focus:not(:focus-visible){box-shadow:none;outline:0}.sa11y-theme a:focus-visible,.sa11y-theme button:focus-visible,.sa11y-theme input:focus-visible,.sa11y-theme [tabindex="-1"]:focus-visible{box-shadow:0 0 0 5px var(--sa11y-focus-color);outline:0}@media screen and (forced-colors:active){.sa11y-theme .error-icon,.sa11y-theme .link-icon,.sa11y-theme .hidden-icon{filter:invert()}.sa11y-theme a:focus,.sa11y-theme button:focus,.sa11y-theme [tabindex="-1"]:focus{outline:3px solid #0000!important}}.sa11y-theme{animation:.15s ease-out forwards fade-in}@keyframes fade-in{0%{opacity:0}to{opacity:1;transform:translateY(0)}}';
function yi(e) {
  const { previewText: t, color: o, background: n, fontWeight: i, fontSize: s, ratio: a, textUnderline: r } = e, d = n && n.type !== "image", c = d ? q(n) : "#000000", p = o ? q(o) : "#000000", l = o ? "" : 'class="unknown"', g = n && n.type !== "image" ? "" : 'class="unknown"', m = o ? "" : `<span id="fg-input-unknown" class="visually-hidden">(${b._("UNKNOWN")})</span>`, x = n ? "" : `<span id="bg-input-unknown" class="visually-hidden">(${b._("UNKNOWN")})</span>`;
  let h;
  f.Global.contrastAlgorithm === "APCA" ? h = Math.abs(a) === 0 ? 0 : Math.abs(a) || b._("UNKNOWN") : h = a || b._("UNKNOWN");
  const v = document.createElement("div");
  v.id = "contrast-tools", v.innerHTML = `
      <hr aria-hidden="true">
      <div id="contrast" class="badge">${b._("CONTRAST")}</div>
      <div id="value" class="badge">${h}</div>
      <div id="good" class="badge good-contrast" hidden>${b._("GOOD")} <span class="good-icon"></span></div>
      <div id="contrast-preview"></div>
      <div id="color-pickers">
        <label for="fg-text">${b._("FG")} ${m}
          <div id="fg-color-wrapper" ${l}>
            <input type="color" id="fg-input" value="${p}" ${l}/>
          </div>
        </label>
        <label for="bg">${b._("BG")} ${x}
          <div id="bg-color-wrapper" ${g}>
            <input type="color" id="bg-input" value="${c}" ${g}/>
          </div>
        </label>
      </div>`;
  const y = v.querySelector("#contrast-preview");
  return y.textContent = t, y.style.color = p, d && (y.style.background = c), i && (y.style.fontWeight = i), s && (y.style.fontSize = `${s}px`), r && (y.style.textDecoration = r), v;
}
function xi(e, t) {
  if (!e?.querySelector("#contrast-tools")) return;
  const { fontSize: n, fontWeight: i, type: s, isLargeText: a } = t, r = e.querySelector("#contrast"), d = e.querySelector("#contrast-preview"), c = e.querySelector("#fg-input"), p = e.querySelector("#bg-input"), l = e.querySelector("#value"), g = e.querySelector("#good"), m = (v, y) => {
    v.forEach((A) => {
      A.classList.toggle("good-contrast", y), A.classList.toggle("error-badge", !y);
    });
  }, x = () => {
    if (d.style.fontSize) {
      const y = d.style.fontSize.match(/([\d.]+)/);
      if (y) return parseFloat(y[1]);
    }
    const v = U(d).fontSize;
    if (v) {
      const y = v.match(/([\d.]+)/);
      if (y) return parseFloat(y[1]);
    }
    return n;
  }, h = (v) => {
    const y = c.value, A = p.value, T = x();
    if (setTimeout(() => {
      const E = c.classList.contains("unknown"), S = p.classList.contains("unknown");
      d.style.color = E ? "" : y, d.style.backgroundColor = S ? "" : A, d.style.backgroundImage = S ? "" : "none";
    }, 0), v?.target && (v.target.classList.remove("unknown"), v.target.parentElement.classList.remove("unknown"), e.querySelector(`#${v.target.id}-unknown`)?.remove()), c.classList.contains("unknown") || p.classList.contains("unknown")) return;
    const L = f.Global.contrastAlgorithm, I = we(
      te(y),
      te(A),
      f.Global.contrastAlgorithm
    ), w = [l, r];
    if (L === "APCA") {
      const E = I.ratio;
      l.textContent = on(E);
      const S = mt(E).slice(1), C = E >= 45 && S[0] >= 0 && S[0] <= 777;
      let _;
      switch (s) {
        case "svg-error":
        case "svg-warning": {
          g.hidden = !C, _ = C, m(w, _);
          break;
        }
        default: {
          const P = S[Math.floor(i / 100) - 1];
          _ = T >= P, m(w, _), g.hidden = !_;
          break;
        }
      }
    } else {
      const E = I.ratio;
      l.textContent = sn(E);
      const S = L === "AAA", C = 3, _ = S ? 7 : 4.5, P = S ? 4.5 : 3, O = E >= C, B = T >= 24 || T >= 18.66 && i >= 700 || a, H = E >= _, F = E >= P;
      switch (s) {
        case "svg-error":
        case "svg-text":
        case "svg-warning": {
          g.hidden = !O, m(w, O);
          break;
        }
        default: {
          B ? (m([l, r], F), g.hidden = !F) : (m([l, r], H), g.hidden = !H);
          break;
        }
      }
    }
  };
  c.addEventListener("input", h), p.addEventListener("input", h), setTimeout(() => {
    const v = (y, A) => {
      const T = e.querySelector(y);
      T && T.addEventListener("click", () => {
        A(T.textContent), h(), navigator.clipboard.writeText(T.textContent).catch(() => {
        });
      });
    };
    v("#suggest", (y) => {
      c.value = y;
    }), v("#suggest-size", (y) => {
      d.style.fontSize = y;
    });
  }, 0);
}
function vi(e) {
  const { color: t, background: o, fontWeight: n, fontSize: i, isLargeText: s, type: a, opacity: r } = e;
  if (!t || !o || o.type === "image" || !(a === "text" || a === "svg-error" || a === "input" || a === "placeholder"))
    return;
  const d = f.Global.contrastAlgorithm === "APCA" ? Gt(t, o, n, i) : Bt(
    t,
    o,
    s,
    f.Global.contrastAlgorithm
  ), c = document.createElement("div");
  c.id = "advice";
  const p = () => {
    const x = document.createElement("hr");
    return x.setAttribute("aria-hidden", "true"), x;
  }, l = (x) => {
    const h = document.createElement("button");
    h.id = "suggest", h.className = "badge";
    const v = q(o);
    return h.style.color = x, h.style.backgroundColor = v, h.textContent = x, h;
  }, g = (x) => {
    const h = document.createElement("button");
    return h.id = "suggest-size", h.className = "normal-badge", h.textContent = `${x}px`, h;
  };
  if (r < 1)
    return c.append(p(), " ", b.sprintf("CONTRAST_OPACITY")), c;
  const m = f.Global.contrastAlgorithm;
  if (m === "AA" || m === "AAA")
    d.color === null ? c.append(p(), " ", b._("NO_SUGGESTION")) : c.append(
      p(),
      " ",
      b._("CONTRAST_COLOR"),
      " ",
      l(d.color)
    );
  else {
    const x = !!d.color, h = !!d.size;
    (x || h) && (c.append(p(), " "), x && h ? c.append(
      b._("CONTRAST_APCA"),
      " ",
      l(d.color),
      " ",
      g(d.size)
    ) : x ? c.append(b._("CONTRAST_COLOR"), " ", l(d.color)) : h && c.append(b._("CONTRAST_SIZE"), " ", g(d.size)));
  }
  return c;
}
const Ai = ["top", "right", "bottom", "left"], xn = ["start", "end"], vn = /* @__PURE__ */ Ai.reduce((e, t) => e.concat(t, t + "-" + xn[0], t + "-" + xn[1]), []), Oe = Math.min, Ee = Math.max, ct = Math.round, Je = Math.floor, ce = (e) => ({
  x: e,
  y: e
}), Ei = {
  left: "right",
  right: "left",
  bottom: "top",
  top: "bottom"
};
function no(e, t, o) {
  return Ee(e, Oe(t, o));
}
function He(e, t) {
  return typeof e == "function" ? e(t) : e;
}
function me(e) {
  return e.split("-")[0];
}
function ne(e) {
  return e.split("-")[1];
}
function oo(e) {
  return e === "x" ? "y" : "x";
}
function an(e) {
  return e === "y" ? "height" : "width";
}
function pe(e) {
  const t = e[0];
  return t === "t" || t === "b" ? "y" : "x";
}
function rn(e) {
  return oo(pe(e));
}
function io(e, t, o) {
  o === void 0 && (o = !1);
  const n = ne(e), i = rn(e), s = an(i);
  let a = i === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
  return t.reference[s] > t.floating[s] && (a = ut(a)), [a, ut(a)];
}
function wi(e) {
  const t = ut(e);
  return [dt(e), t, dt(t)];
}
function dt(e) {
  return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
}
const An = ["left", "right"], En = ["right", "left"], Ti = ["top", "bottom"], Li = ["bottom", "top"];
function Ii(e, t, o) {
  switch (e) {
    case "top":
    case "bottom":
      return o ? t ? En : An : t ? An : En;
    case "left":
    case "right":
      return t ? Ti : Li;
    default:
      return [];
  }
}
function _i(e, t, o, n) {
  const i = ne(e);
  let s = Ii(me(e), o === "start", n);
  return i && (s = s.map((a) => a + "-" + i), t && (s = s.concat(s.map(dt)))), s;
}
function ut(e) {
  const t = me(e);
  return Ei[t] + e.slice(t.length);
}
function Si(e) {
  var t, o, n, i;
  return {
    top: (t = e.top) != null ? t : 0,
    right: (o = e.right) != null ? o : 0,
    bottom: (n = e.bottom) != null ? n : 0,
    left: (i = e.left) != null ? i : 0
  };
}
function so(e) {
  return typeof e != "number" ? Si(e) : {
    top: e,
    right: e,
    bottom: e,
    left: e
  };
}
function pt(e) {
  const {
    x: t,
    y: o,
    width: n,
    height: i
  } = e;
  return {
    width: n,
    height: i,
    top: o,
    left: t,
    right: t + n,
    bottom: o + i,
    x: t,
    y: o
  };
}
function wn(e, t, o) {
  let {
    reference: n,
    floating: i
  } = e;
  const s = pe(t), a = rn(t), r = an(a), d = me(t), c = s === "y", p = n.x + n.width / 2 - i.width / 2, l = n.y + n.height / 2 - i.height / 2, g = n[r] / 2 - i[r] / 2;
  let m;
  switch (d) {
    case "top":
      m = {
        x: p,
        y: n.y - i.height
      };
      break;
    case "bottom":
      m = {
        x: p,
        y: n.y + n.height
      };
      break;
    case "right":
      m = {
        x: n.x + n.width,
        y: l
      };
      break;
    case "left":
      m = {
        x: n.x - i.width,
        y: l
      };
      break;
    default:
      m = {
        x: n.x,
        y: n.y
      };
  }
  const x = ne(t);
  return x && (m[a] += g * (x === "end" ? 1 : -1) * (o && c ? -1 : 1)), m;
}
async function Ci(e, t) {
  var o;
  t === void 0 && (t = {});
  const {
    x: n,
    y: i,
    platform: s,
    rects: a,
    elements: r,
    strategy: d
  } = e, {
    boundary: c = "clippingAncestors",
    rootBoundary: p = "viewport",
    elementContext: l = "floating",
    altBoundary: g = !1,
    padding: m = 0
  } = He(t, e), x = so(m), v = r[g ? l === "floating" ? "reference" : "floating" : l], y = pt(await s.getClippingRect({
    element: (o = await (s.isElement == null ? void 0 : s.isElement(v))) == null || o ? v : v.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(r.floating)),
    boundary: c,
    rootBoundary: p,
    strategy: d
  })), A = l === "floating" ? {
    x: n,
    y: i,
    width: a.floating.width,
    height: a.floating.height
  } : a.reference, T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(r.floating)), L = await (s.isElement == null ? void 0 : s.isElement(T)) && await (s.getScale == null ? void 0 : s.getScale(T)) || {
    x: 1,
    y: 1
  }, I = pt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
    elements: r,
    rect: A,
    offsetParent: T,
    strategy: d
  }) : A);
  return {
    top: (y.top - I.top + x.top) / L.y,
    bottom: (I.bottom - y.bottom + x.bottom) / L.y,
    left: (y.left - I.left + x.left) / L.x,
    right: (I.right - y.right + x.right) / L.x
  };
}
const ki = 50, Ni = async (e, t, o) => {
  const {
    placement: n = "bottom",
    strategy: i = "absolute",
    middleware: s = [],
    platform: a
  } = o, r = a.detectOverflow ? a : {
    ...a,
    detectOverflow: Ci
  }, d = await (a.isRTL == null ? void 0 : a.isRTL(t));
  let c = await a.getElementRects({
    reference: e,
    floating: t,
    strategy: i
  }), {
    x: p,
    y: l
  } = wn(c, n, d), g = n, m = 0;
  const x = {};
  for (let h = 0; h < s.length; h++) {
    const v = s[h];
    if (!v)
      continue;
    const {
      name: y,
      fn: A
    } = v, {
      x: T,
      y: L,
      data: I,
      reset: w
    } = await A({
      x: p,
      y: l,
      initialPlacement: n,
      placement: g,
      strategy: i,
      middlewareData: x,
      rects: c,
      platform: r,
      elements: {
        reference: e,
        floating: t
      }
    });
    p = T ?? p, l = L ?? l, x[y] = {
      ...x[y],
      ...I
    }, w && m < ki && (m++, typeof w == "object" && (w.placement && (g = w.placement), w.rects && (c = w.rects === !0 ? await a.getElementRects({
      reference: e,
      floating: t,
      strategy: i
    }) : w.rects), {
      x: p,
      y: l
    } = wn(c, g, d)), h = -1);
  }
  return {
    x: p,
    y: l,
    placement: g,
    strategy: i,
    middlewareData: x
  };
}, Pi = (e) => ({
  name: "arrow",
  options: e,
  async fn(t) {
    const {
      x: o,
      y: n,
      placement: i,
      rects: s,
      platform: a,
      elements: r,
      middlewareData: d
    } = t, {
      element: c,
      padding: p = 0
    } = He(e, t) || {};
    if (c == null)
      return {};
    const l = so(p), g = {
      x: o,
      y: n
    }, m = rn(i), x = an(m), h = await a.getDimensions(c), v = m === "y", y = v ? "top" : "left", A = v ? "bottom" : "right", T = v ? "clientHeight" : "clientWidth", L = s.reference[x] + s.reference[m] - g[m] - s.floating[x], I = g[m] - s.reference[m], w = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
    let E = w ? w[T] : 0;
    (!E || !await (a.isElement == null ? void 0 : a.isElement(w))) && (E = r.floating[T] || s.floating[x]);
    const S = L / 2 - I / 2, C = E / 2 - h[x] / 2 - 1, _ = Oe(l[y], C), P = Oe(l[A], C), O = E - h[x] - P, B = E / 2 - h[x] / 2 + S, H = no(_, B, O), F = !d.arrow && ne(i) != null && B !== H && s.reference[x] / 2 - (B < _ ? _ : P) - h[x] / 2 < 0, K = F ? B < _ ? B - _ : B - O : 0;
    return {
      [m]: g[m] + K,
      data: {
        [m]: H,
        centerOffset: B - H - K,
        ...F && {
          alignmentOffset: K
        }
      },
      reset: F
    };
  }
});
function Ri(e, t, o) {
  return (e ? [...o.filter((i) => ne(i) === e), ...o.filter((i) => ne(i) !== e)] : o.filter((i) => me(i) === i)).filter((i) => e ? ne(i) === e || (t ? dt(i) !== i : !1) : !0);
}
const Oi = function(e) {
  return e === void 0 && (e = {}), {
    name: "autoPlacement",
    options: e,
    async fn(t) {
      var o, n, i;
      const {
        rects: s,
        middlewareData: a,
        placement: r,
        platform: d,
        elements: c
      } = t, {
        crossAxis: p = !1,
        alignment: l,
        allowedPlacements: g = vn,
        autoAlignment: m = !0,
        ...x
      } = He(e, t), h = l !== void 0 || g === vn ? Ri(l || null, m, g) : g, v = ((o = a.autoPlacement) == null ? void 0 : o.index) || 0, y = h[v];
      if (y == null)
        return {};
      if (r !== y)
        return {
          reset: {
            placement: h[0]
          }
        };
      const A = await d.detectOverflow(t, x), T = io(y, s, await (d.isRTL == null ? void 0 : d.isRTL(c.floating))), L = [A[me(y)], A[T[0]], A[T[1]]], I = [...((n = a.autoPlacement) == null ? void 0 : n.overflows) || [], {
        placement: y,
        overflows: L
      }], w = h[v + 1];
      if (w)
        return {
          data: {
            index: v + 1,
            overflows: I
          },
          reset: {
            placement: w
          }
        };
      const E = I.map((_) => {
        const P = ne(_.placement);
        return [_.placement, P && p ? (
          // Check along the mainAxis and main crossAxis side.
          _.overflows.slice(0, 2).reduce((O, B) => O + B, 0)
        ) : (
          // Check only the mainAxis.
          _.overflows[0]
        ), _.overflows];
      }).sort((_, P) => _[1] - P[1]), C = ((i = E.filter((_) => _[2].slice(
        0,
        // Aligned placements should not check their opposite crossAxis
        // side.
        ne(_[0]) ? 2 : 3
      ).every((P) => P <= 0))[0]) == null ? void 0 : i[0]) || E[0][0];
      return C !== r ? {
        data: {
          index: v + 1,
          overflows: I
        },
        reset: {
          placement: C
        }
      } : {};
    }
  };
}, Mi = function(e) {
  return e === void 0 && (e = {}), {
    name: "flip",
    options: e,
    async fn(t) {
      var o, n;
      const {
        placement: i,
        middlewareData: s,
        rects: a,
        initialPlacement: r,
        platform: d,
        elements: c
      } = t, {
        mainAxis: p = !0,
        crossAxis: l = !0,
        fallbackPlacements: g,
        fallbackStrategy: m = "bestFit",
        fallbackAxisSideDirection: x = "none",
        flipAlignment: h = !0,
        ...v
      } = He(e, t);
      if ((o = s.arrow) != null && o.alignmentOffset)
        return {};
      const y = me(i), A = pe(r), T = me(r) === r, L = await (d.isRTL == null ? void 0 : d.isRTL(c.floating)), I = g || (T || !h ? [ut(r)] : wi(r)), w = x !== "none";
      !g && w && I.push(..._i(r, h, x, L));
      const E = [r, ...I], S = await d.detectOverflow(t, v), C = [];
      let _ = ((n = s.flip) == null ? void 0 : n.overflows) || [];
      if (p && C.push(S[y]), l) {
        const H = io(i, a, L);
        C.push(S[H[0]], S[H[1]]);
      }
      if (_ = [..._, {
        placement: i,
        overflows: C
      }], !C.every((H) => H <= 0)) {
        var P, O;
        const H = (((P = s.flip) == null ? void 0 : P.index) || 0) + 1, F = E[H];
        if (F && (!(l === "alignment" ? A !== pe(F) : !1) || // We leave the current main axis only if every placement on that axis
        // overflows the main axis.
        _.every(($) => pe($.placement) === A ? $.overflows[0] > 0 : !0)))
          return {
            data: {
              index: H,
              overflows: _
            },
            reset: {
              placement: F
            }
          };
        let K = (O = _.filter((X) => X.overflows[0] <= 0).sort((X, $) => X.overflows[1] - $.overflows[1])[0]) == null ? void 0 : O.placement;
        if (!K)
          switch (m) {
            case "bestFit": {
              var B;
              const X = (B = _.filter(($) => {
                if (w) {
                  const ee = pe($.placement);
                  return ee === A || // Create a bias to the `y` side axis due to horizontal
                  // reading directions favoring greater width.
                  ee === "y";
                }
                return !0;
              }).map(($) => [$.placement, $.overflows.filter((ee) => ee > 0).reduce((ee, At) => ee + At, 0)]).sort(($, ee) => $[1] - ee[1])[0]) == null ? void 0 : B[0];
              X && (K = X);
              break;
            }
            case "initialPlacement":
              K = r;
              break;
          }
        if (i !== K)
          return {
            reset: {
              placement: K
            }
          };
      }
      return {};
    }
  };
}, Di = /* @__PURE__ */ new Set(["left", "top"]);
async function Bi(e, t) {
  const {
    placement: o,
    platform: n,
    elements: i
  } = e, s = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), a = me(o), r = ne(o), d = pe(o) === "y", c = Di.has(a) ? -1 : 1, p = s && d ? -1 : 1, l = He(t, e);
  let {
    mainAxis: g,
    crossAxis: m,
    alignmentAxis: x
  } = typeof l == "number" ? {
    mainAxis: l,
    crossAxis: 0,
    alignmentAxis: null
  } : {
    mainAxis: l.mainAxis || 0,
    crossAxis: l.crossAxis || 0,
    alignmentAxis: l.alignmentAxis
  };
  return r && typeof x == "number" && (m = r === "end" ? x * -1 : x), d ? {
    x: m * p,
    y: g * c
  } : {
    x: g * c,
    y: m * p
  };
}
const Gi = function(e) {
  return e === void 0 && (e = 0), {
    name: "offset",
    options: e,
    async fn(t) {
      var o, n;
      const {
        x: i,
        y: s,
        placement: a,
        middlewareData: r
      } = t, d = await Bi(t, e);
      return a === ((o = r.offset) == null ? void 0 : o.placement) && (n = r.arrow) != null && n.alignmentOffset ? {} : {
        x: i + d.x,
        y: s + d.y,
        data: {
          ...d,
          placement: a
        }
      };
    }
  };
}, Fi = function(e) {
  return e === void 0 && (e = {}), {
    name: "shift",
    options: e,
    async fn(t) {
      const {
        x: o,
        y: n,
        placement: i,
        platform: s
      } = t, {
        mainAxis: a = !0,
        crossAxis: r = !1,
        limiter: d = {
          fn: (A) => {
            let {
              x: T,
              y: L
            } = A;
            return {
              x: T,
              y: L
            };
          }
        },
        ...c
      } = He(e, t), p = {
        x: o,
        y: n
      }, l = await s.detectOverflow(t, c), g = pe(i), m = oo(g);
      let x = p[m], h = p[g];
      const v = (A, T) => no(T + l[A === "y" ? "top" : "left"], T, T - l[A === "y" ? "bottom" : "right"]);
      a && (x = v(m, x)), r && (h = v(g, h));
      const y = d.fn({
        ...t,
        [m]: x,
        [g]: h
      });
      return {
        ...y,
        data: {
          x: y.x - o,
          y: y.y - n,
          enabled: {
            [m]: a,
            [g]: r
          }
        }
      };
    }
  };
};
function ht() {
  return typeof window < "u";
}
function Ue(e) {
  return ao(e) ? (e.nodeName || "").toLowerCase() : "#document";
}
function j(e) {
  var t;
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
}
function ue(e) {
  var t;
  return (t = (ao(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
}
function ao(e) {
  return ht() ? e instanceof Node || e instanceof j(e).Node : !1;
}
function ie(e) {
  return ht() ? e instanceof Element || e instanceof j(e).Element : !1;
}
function he(e) {
  return ht() ? e instanceof HTMLElement || e instanceof j(e).HTMLElement : !1;
}
function Tn(e) {
  return !ht() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof j(e).ShadowRoot;
}
function bt(e) {
  const {
    overflow: t,
    overflowX: o,
    overflowY: n,
    display: i
  } = se(e);
  return /auto|scroll|overlay|hidden|clip/.test(t + n + o) && i !== "inline" && i !== "contents";
}
function Hi(e) {
  return /^(table|td|th)$/.test(Ue(e));
}
function yt(e) {
  try {
    if (e.matches(":popover-open"))
      return !0;
  } catch {
  }
  try {
    return e.matches(":modal");
  } catch {
    return !1;
  }
}
const Ui = /transform|translate|scale|rotate|perspective|filter/, Wi = /paint|layout|strict|content/, ye = (e) => !!e && e !== "none";
let Tt;
function ln(e) {
  const t = ie(e) ? se(e) : e;
  return ye(t.transform) || ye(t.translate) || ye(t.scale) || ye(t.rotate) || ye(t.perspective) || !cn() && (ye(t.backdropFilter) || ye(t.filter)) || Ui.test(t.willChange || "") || Wi.test(t.contain || "");
}
function zi(e) {
  let t = Te(e);
  for (; he(t) && !qe(t); ) {
    if (ln(t))
      return t;
    if (yt(t))
      return null;
    t = Te(t);
  }
  return null;
}
function cn() {
  return Tt == null && (Tt = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), Tt;
}
function qe(e) {
  return /^(html|body|#document)$/.test(Ue(e));
}
function se(e) {
  return j(e).getComputedStyle(e);
}
function xt(e) {
  return ie(e) ? {
    scrollLeft: e.scrollLeft,
    scrollTop: e.scrollTop
  } : {
    scrollLeft: e.scrollX,
    scrollTop: e.scrollY
  };
}
function Te(e) {
  if (Ue(e) === "html")
    return e;
  const t = (
    // Step into the shadow DOM of the parent of a slotted node.
    e.assignedSlot || // DOM Element detected.
    e.parentNode || // ShadowRoot detected.
    Tn(e) && e.host || // Fallback.
    ue(e)
  );
  return Tn(t) ? t.host : t;
}
function ro(e) {
  const t = Te(e);
  return qe(t) ? (e.ownerDocument || e).body : he(t) && bt(t) ? t : ro(t);
}
function Ve(e, t, o) {
  var n;
  t === void 0 && (t = []), o === void 0 && (o = !0);
  const i = ro(e), s = i === ((n = e.ownerDocument) == null ? void 0 : n.body), a = j(i);
  if (s) {
    const r = Ut(a);
    return t.concat(a, a.visualViewport || [], bt(i) ? i : [], r && o ? Ve(r) : []);
  } else
    return t.concat(i, Ve(i, [], o));
}
function Ut(e) {
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
}
function lo(e) {
  const t = se(e);
  let o = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
  const i = he(e), s = i ? e.offsetWidth : o, a = i ? e.offsetHeight : n, r = ct(o) !== s || ct(n) !== a;
  return r && (o = s, n = a), {
    width: o,
    height: n,
    $: r
  };
}
function dn(e) {
  return ie(e) ? e : e.contextElement;
}
function Ne(e) {
  const t = dn(e);
  if (!he(t))
    return ce(1);
  const o = t.getBoundingClientRect(), {
    width: n,
    height: i,
    $: s
  } = lo(t);
  let a = (s ? ct(o.width) : o.width) / n, r = (s ? ct(o.height) : o.height) / i;
  return (!a || !Number.isFinite(a)) && (a = 1), (!r || !Number.isFinite(r)) && (r = 1), {
    x: a,
    y: r
  };
}
const $i = /* @__PURE__ */ ce(0);
function co(e) {
  const t = j(e);
  return !cn() || !t.visualViewport ? $i : {
    x: t.visualViewport.offsetLeft,
    y: t.visualViewport.offsetTop
  };
}
function Ki(e, t, o) {
  return t === void 0 && (t = !1), !!o && t && o === j(e);
}
function Le(e, t, o, n) {
  t === void 0 && (t = !1), o === void 0 && (o = !1);
  const i = e.getBoundingClientRect(), s = dn(e);
  let a = ce(1);
  t && (n ? ie(n) && (a = Ne(n)) : a = Ne(e));
  const r = Ki(s, o, n) ? co(s) : ce(0);
  let d = (i.left + r.x) / a.x, c = (i.top + r.y) / a.y, p = i.width / a.x, l = i.height / a.y;
  if (s && n) {
    const g = j(s), m = ie(n) ? j(n) : n;
    let x = g, h = Ut(x);
    for (; h && m !== x; ) {
      const v = Ne(h), y = h.getBoundingClientRect(), A = se(h), T = y.left + (h.clientLeft + parseFloat(A.paddingLeft)) * v.x, L = y.top + (h.clientTop + parseFloat(A.paddingTop)) * v.y;
      d *= v.x, c *= v.y, p *= v.x, l *= v.y, d += T, c += L, x = j(h), h = Ut(x);
    }
  }
  return pt({
    width: p,
    height: l,
    x: d,
    y: c
  });
}
function vt(e, t) {
  const o = xt(e).scrollLeft;
  return t ? t.left + o : Le(ue(e)).left + o;
}
function uo(e, t) {
  const o = e.getBoundingClientRect(), n = o.left + t.scrollLeft - vt(e, o), i = o.top + t.scrollTop;
  return {
    x: n,
    y: i
  };
}
function qi(e) {
  let {
    elements: t,
    rect: o,
    offsetParent: n,
    strategy: i
  } = e;
  const s = i === "fixed", a = ue(n), r = t ? yt(t.floating) : !1;
  if (n === a || r && s)
    return o;
  let d = {
    scrollLeft: 0,
    scrollTop: 0
  }, c = ce(1);
  const p = ce(0), l = he(n);
  if ((l || !s) && ((Ue(n) !== "body" || bt(a)) && (d = xt(n)), l)) {
    const m = Le(n);
    c = Ne(n), p.x = m.x + n.clientLeft, p.y = m.y + n.clientTop;
  }
  const g = a && !l && !s ? uo(a, d) : ce(0);
  return {
    width: o.width * c.x,
    height: o.height * c.y,
    x: o.x * c.x - d.scrollLeft * c.x + p.x + g.x,
    y: o.y * c.y - d.scrollTop * c.y + p.y + g.y
  };
}
function Vi(e) {
  return e.getClientRects ? Array.from(e.getClientRects()) : [];
}
function ji(e) {
  const t = xt(e), o = e.ownerDocument.body, n = Ee(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), i = Ee(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
  let s = -t.scrollLeft + vt(e);
  const a = -t.scrollTop;
  return se(o).direction === "rtl" && (s += Ee(e.clientWidth, o.clientWidth) - n), {
    width: n,
    height: i,
    x: s,
    y: a
  };
}
const Qi = 25;
function Xi(e, t, o) {
  o === void 0 && (o = "viewport");
  const n = o === "layoutViewport", i = j(e), s = ue(e), a = i.visualViewport;
  let r = s.clientWidth, d = s.clientHeight, c = 0, p = 0;
  if (a) {
    const g = !cn() || t === "fixed";
    n ? g || (c = -a.offsetLeft, p = -a.offsetTop) : (r = a.width, d = a.height, g && (c = a.offsetLeft, p = a.offsetTop));
  }
  if (vt(s) <= 0) {
    const g = s.ownerDocument, m = g.body, x = getComputedStyle(m), h = g.compatMode === "CSS1Compat" && parseFloat(x.marginLeft) + parseFloat(x.marginRight) || 0, v = Math.abs(s.clientWidth - m.clientWidth - h), y = getComputedStyle(s).scrollbarGutter === "stable both-edges" ? v / 2 : v;
    y <= Qi && (r -= y);
  }
  return {
    width: r,
    height: d,
    x: c,
    y: p
  };
}
function Yi(e, t) {
  const o = Le(e, !0, t === "fixed"), n = o.top + e.clientTop, i = o.left + e.clientLeft, s = Ne(e), a = e.clientWidth * s.x, r = e.clientHeight * s.y, d = i * s.x, c = n * s.y;
  return {
    width: a,
    height: r,
    x: d,
    y: c
  };
}
function Ln(e, t, o) {
  let n;
  if (t === "viewport" || t === "layoutViewport")
    n = Xi(e, o, t);
  else if (t === "document")
    n = ji(ue(e));
  else if (ie(t))
    n = Yi(t, o);
  else {
    const i = co(e);
    n = {
      x: t.x - i.x,
      y: t.y - i.y,
      width: t.width,
      height: t.height
    };
  }
  return pt(n);
}
function Ji(e, t) {
  const o = t.get(e);
  if (o)
    return o;
  let n = Ve(e, [], !1).filter((r) => ie(r) && Ue(r) !== "body"), i = null;
  const s = se(e).position === "fixed";
  let a = s ? Te(e) : e;
  for (; ie(a) && !qe(a); ) {
    const r = se(a), d = ln(a), c = i ? i.position : s ? "fixed" : "";
    !d && (c === "fixed" || c === "absolute" && r.position === "static") ? n = n.filter((l) => l !== a) : i = r, a = Te(a);
  }
  return t.set(e, n), n;
}
function Zi(e) {
  let {
    element: t,
    boundary: o,
    rootBoundary: n,
    strategy: i
  } = e;
  const a = [...o === "clippingAncestors" ? yt(t) ? [] : Ji(t, this._c) : [].concat(o), n], r = Ln(t, a[0], i);
  let d = r.top, c = r.right, p = r.bottom, l = r.left;
  for (let g = 1; g < a.length; g++) {
    const m = Ln(t, a[g], i);
    d = Ee(m.top, d), c = Oe(m.right, c), p = Oe(m.bottom, p), l = Ee(m.left, l);
  }
  return {
    width: c - l,
    height: p - d,
    x: l,
    y: d
  };
}
function es(e) {
  const {
    width: t,
    height: o
  } = lo(e);
  return {
    width: t,
    height: o
  };
}
function ts(e, t, o) {
  const n = he(t), i = ue(t), s = o === "fixed", a = Le(e, !0, s, t);
  let r = {
    scrollLeft: 0,
    scrollTop: 0
  };
  const d = ce(0);
  if ((n || !s) && ((Ue(t) !== "body" || bt(i)) && (r = xt(t)), n)) {
    const g = Le(t, !0, s, t);
    d.x = g.x + t.clientLeft, d.y = g.y + t.clientTop;
  }
  !n && i && (d.x = vt(i));
  const c = i && !n && !s ? uo(i, r) : ce(0), p = a.left + r.scrollLeft - d.x - c.x, l = a.top + r.scrollTop - d.y - c.y;
  return {
    x: p,
    y: l,
    width: a.width,
    height: a.height
  };
}
function Lt(e) {
  return se(e).position === "static";
}
function In(e, t) {
  if (!he(e) || se(e).position === "fixed")
    return null;
  if (t)
    return t(e);
  let o = e.offsetParent;
  return ue(e) === o && (o = o.ownerDocument.body), o;
}
function po(e, t) {
  const o = j(e);
  if (yt(e))
    return o;
  if (!he(e)) {
    let i = Te(e);
    for (; i && !qe(i); ) {
      if (ie(i) && !Lt(i))
        return i;
      i = Te(i);
    }
    return o;
  }
  let n = In(e, t);
  for (; n && Hi(n) && Lt(n); )
    n = In(n, t);
  return n && qe(n) && Lt(n) && !ln(n) ? o : n || zi(e) || o;
}
const ns = async function(e) {
  const t = this.getOffsetParent || po, o = this.getDimensions, n = await o(e.floating);
  return {
    reference: ts(e.reference, await t(e.floating), e.strategy),
    floating: {
      x: 0,
      y: 0,
      width: n.width,
      height: n.height
    }
  };
};
function os(e) {
  return se(e).direction === "rtl";
}
const is = {
  convertOffsetParentRelativeRectToViewportRelativeRect: qi,
  getDocumentElement: ue,
  getClippingRect: Zi,
  getOffsetParent: po,
  getElementRects: ns,
  getClientRects: Vi,
  getDimensions: es,
  getScale: Ne,
  isElement: ie,
  isRTL: os
};
function go(e, t) {
  return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
}
function ss(e, t, o) {
  let n = null, i;
  const s = ue(e);
  function a() {
    var p;
    clearTimeout(i), (p = n) == null || p.disconnect(), n = null;
  }
  function r(p, l) {
    p === void 0 && (p = !1), l === void 0 && (l = 1), a();
    const g = e.getBoundingClientRect(), {
      left: m,
      top: x,
      width: h,
      height: v
    } = g;
    if (p || t(), !h || !v)
      return;
    const y = Je(x), A = Je(s.clientWidth - (m + h)), T = Je(s.clientHeight - (x + v)), L = Je(m), w = {
      rootMargin: -y + "px " + -A + "px " + -T + "px " + -L + "px",
      threshold: Ee(0, Oe(1, l)) || 1
    };
    let E = !0;
    function S(C) {
      const _ = C[0].intersectionRatio;
      if (!go(g, e.getBoundingClientRect()))
        return r();
      if (_ !== l) {
        if (!E)
          return r();
        _ ? r(!1, _) : i = setTimeout(() => {
          r(!1, 1e-7);
        }, 1e3);
      }
      E = !1;
    }
    try {
      n = new IntersectionObserver(S, {
        ...w,
        // Handle <iframe>s
        root: s.ownerDocument
      });
    } catch {
      n = new IntersectionObserver(S, w);
    }
    n.observe(e);
  }
  const d = j(e), c = () => r(o);
  return d.addEventListener("resize", c), r(!0), () => {
    d.removeEventListener("resize", c), a();
  };
}
function as(e, t, o, n) {
  n === void 0 && (n = {});
  const {
    ancestorScroll: i = !0,
    ancestorResize: s = !0,
    elementResize: a = typeof ResizeObserver == "function",
    layoutShift: r = typeof IntersectionObserver == "function",
    animationFrame: d = !1
  } = n, c = dn(e), p = i || s ? [...c ? Ve(c) : [], ...t ? Ve(t) : []] : [];
  p.forEach((y) => {
    i && y.addEventListener("scroll", o), s && y.addEventListener("resize", o);
  });
  const l = c && r ? ss(c, o, s) : null;
  let g = -1, m = null;
  a && (m = new ResizeObserver((y) => {
    let [A] = y;
    A && A.target === c && m && t && (m.unobserve(t), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
      var T;
      (T = m) == null || T.observe(t);
    })), o();
  }), c && !d && m.observe(c), t && m.observe(t));
  let x, h = d ? Le(e) : null;
  d && v();
  function v() {
    const y = Le(e);
    h && !go(h, y) && o(), h = y, x = requestAnimationFrame(v);
  }
  return o(), () => {
    var y;
    p.forEach((A) => {
      i && A.removeEventListener("scroll", o), s && A.removeEventListener("resize", o);
    }), l?.(), (y = m) == null || y.disconnect(), m = null, d && cancelAnimationFrame(x);
  };
}
const rs = Gi, ls = Oi, cs = Fi, ds = Mi, us = Pi, ps = (e, t, o) => {
  const n = /* @__PURE__ */ new Map(), i = o ?? {}, s = {
    ...is,
    ...i.platform,
    _c: n
  };
  return Ni(e, t, {
    ...i,
    platform: s
  });
};
let Se = null;
function ze(e, t) {
  const {
    appendTo: o,
    content: n,
    onShow: i,
    onHide: s,
    theme: a,
    placement: r,
    offset: d,
    interactive: c,
    allowHTML: p = !1,
    clickTrigger: l = !0,
    role: g
  } = t, m = Array.isArray(e) ? e : [e], x = m[0];
  let h = null, v = null;
  const y = () => {
    h?.parentNode && (v && (v(), v = null), s && s({ reference: x, popper: h }), h.remove(), h = null, Se === y && (Se = null));
  }, A = () => {
    if (!h) return;
    const L = h.querySelector(".arrow"), I = [rs(d)];
    r === "auto" || r === "auto-start" || r === "auto-end" ? I.push(
      ls({
        alignment: r.split("-")[1] || null,
        padding: 5
      })
    ) : I.push(
      ds({
        padding: 5,
        fallbackPlacements: ["bottom", "right", "left"]
      })
    ), I.push(cs({ padding: 5 }), us({ element: L })), ps(x, h, {
      placement: r?.includes("auto") ? void 0 : r,
      middleware: I
    }).then(({ x: w, y: E, placement: S, middlewareData: C }) => {
      if (Object.assign(h.style, { left: `${w}px`, top: `${E}px` }), C.arrow) {
        const { x: _, y: P } = C.arrow, O = { top: "bottom", right: "left", bottom: "top", left: "right" }[S.split("-")[0]];
        Object.assign(L.style, {
          left: _ != null ? `${_}px` : "",
          top: P != null ? `${P}px` : "",
          [O]: "-4px"
        });
      }
      h.setAttribute("data-placement", S);
    });
  }, T = (L) => {
    if (Se && Se !== y && Se(), h) return;
    h = document.createElement("div"), h.className = `${a || ""}`, h.setAttribute("role", g || "tooltip"), h.style.cssText = "position: absolute; z-index: 2147483645; left: 0; top: 0;", h.innerHTML = '<div class="content"></div><div class="arrow"></div>';
    const I = h.querySelector(".content"), w = typeof n == "function" ? n(x) : n;
    w instanceof Node ? I.appendChild(w) : p ? I.innerHTML = w : I.textContent = w, o.appendChild(h), Se = y, v = as(x, h, A), requestAnimationFrame(() => {
      h && h.classList.add("visible");
    }), i && i({ reference: x, popper: h, hide: y, eventType: L });
  };
  return m.forEach((L) => {
    L.addEventListener("mouseenter", () => !h && T("mouseenter")), L.addEventListener("mouseleave", () => {
      const I = l && h?.getAttribute("data-trigger") === "click";
      !h || I || (c ? setTimeout(() => {
        const w = m.some((E) => E.matches(":hover"));
        !h?.matches(":hover") && !w && y();
      }, 100) : y());
    }), l && L.addEventListener("click", (I) => {
      I.stopPropagation(), h && h.getAttribute("data-trigger") === "click" ? y() : (h || T("click"), h.setAttribute("data-trigger", "click"));
    });
  }), { show: T, hide: y, popper: () => h };
}
class fo extends HTMLElement {
  connectedCallback() {
    const t = this.attachShadow({ mode: "open" }), o = document.createElement("style");
    o.textContent = to + je, t.appendChild(o), tn.forEach((n) => {
      ze(n, {
        interactive: !0,
        offset: 8,
        theme: "sa11y-theme",
        placement: "auto-start",
        appendTo: t,
        role: "dialog",
        content: (i) => {
          const a = i.getRootNode().host.getAttribute("data-sa11y-annotation"), r = u.results.find((l) => String(l.id) === String(a));
          if (!r) return null;
          const d = document.createElement("div");
          d.innerHTML = `<button type="button" class="close-btn close-tooltip" aria-label="${b._("ALERT_CLOSE")}"></button><div class="sa11y-content-body"></div>`;
          const c = d.querySelector(".sa11y-content-body");
          r.finalContent instanceof Node ? c.appendChild(r.finalContent) : c.textContent = r.finalContent;
          let p = c.querySelector("[data-sa11y-contrast-details]");
          if (r.contrastDetails && !p) {
            p = document.createElement("div"), p.setAttribute("data-sa11y-contrast-details", "");
            const l = yi(r.contrastDetails);
            p.appendChild(l);
            const g = vi(r.contrastDetails);
            g && p.appendChild(g);
            const m = c.querySelector(".dismiss-group");
            m ? m.before(p) : c.append(p);
          }
          return d;
        },
        onShow: ({ reference: i, popper: s, hide: a, eventType: r }) => {
          const d = i.getRootNode().host;
          d?.setAttribute("data-sa11y-opened", "");
          const c = d?.getAttribute("data-sa11y-annotation"), p = u.results.find((x) => String(x.id) === String(c));
          s.setAttribute("lang", b._("LANG_CODE")), p && s.classList.add(p.type), p?.contrastDetails && !s.hasAttribute("contrast-tools-initialized") && (xi(s, p.contrastDetails), s.setAttribute("contrast-tools-initialized", "true"));
          const l = s.querySelector(".close-btn"), g = () => {
            a(), i.focus();
          };
          l?.addEventListener("click", g);
          const m = (x) => x.key === "Escape" && g();
          document.addEventListener("keydown", m, { once: !0 }), r === "click" && requestAnimationFrame(() => {
            l?.focus(), Un(s);
          });
        },
        onHide: ({ reference: i }) => {
          i.getRootNode().host?.removeAttribute("data-sa11y-opened");
        }
      });
    });
  }
}
class _n extends HTMLElement {
  connectedCallback() {
    const t = this.attachShadow({ mode: "open" }), o = document.createElement("style");
    o.textContent = to + je, t.appendChild(o);
    const n = {
      appendTo: t,
      offset: 8,
      theme: "sa11y-theme sa11y-panel",
      placement: "top",
      clickTrigger: !1,
      allowHTML: !0
      // Safe: No user supplied content here.
    }, i = navigator.userAgent.includes("Mac") ? "Option + S" : "Alt + S";
    ze(f.Panel.skipButton, {
      ...n,
      content: `${b._("SKIP_TO_ISSUE")} &raquo; <br> <span class="kbd">${i}</span>`
    }), this.dismissTooltip = ze(f.Panel.dismissButton, {
      ...n,
      content: () => b.sprintf("PANEL_DISMISS_BUTTON", u.counts.dismissed)
    });
    const s = f.Panel.developerItem?.querySelector(".info-icon");
    u.option.developerPlugin && s && (this.devTooltip = ze([s, f.Panel.developerItem], {
      ...n,
      content: b._("DEVELOPER_DESC")
    }));
    const a = f.Panel.readabilityItem?.querySelector(".info-icon");
    u.option.readabilityPlugin && a && (this.readTooltip = ze([a, f.Panel.readabilityItem], {
      ...n,
      content: b._("READABILITY_DESC")
    }));
  }
}
function R({
  test: e,
  element: t = null,
  type: o = "error",
  args: n = [],
  content: i = null,
  dismiss: s = "",
  dismissAll: a = !1,
  developer: r = !1,
  margin: d = null,
  inline: c = !1,
  position: p = null,
  ...l
}) {
  const g = u.option.checks[e];
  if (!g) return null;
  const m = g.content || i || e, x = typeof m == "string" ? b.sprintf(m, ...n) : m, h = {
    test: e,
    ...t && { element: t },
    type: g.type || o,
    content: x,
    ...n.length && { args: n },
    inline: g.inline || c,
    ...p && { position: p },
    dismiss: ke(e + s),
    dismissAll: g.dismissAll ? e : a,
    developer: g.developer ?? r,
    ...d && { margin: d },
    ...l
  };
  return u.results.push(h), h;
}
const Me = "sa11y-lang-detection", gs = 200;
let Ze = null;
function Wt() {
  return Ze || (Ze = (async () => {
    try {
      return "LanguageDetector" in globalThis ? await globalThis.LanguageDetector.create() : (k.getItem(Me) || (k.setItem(Me, []), console.error(`Sa11y: ${b._("LANG_UNSUPPORTED")}`)), null);
    } catch {
      return console.error(`Sa11y: ${b._("LANG_UNSUPPORTED")}`), null;
    }
  })(), Ze);
}
const ae = (e) => {
  try {
    const t = Intl.getCanonicalLocales(e)[0], o = new Intl.Locale(t).language;
    return new Intl.DisplayNames(b._("LANG_CODE") || navigator.language, {
      type: "language"
    }).of(o);
  } catch {
    return e;
  }
}, et = (e) => String(e).toLowerCase().split("-")[0], mo = () => {
  try {
    const e = k.getItem(Me);
    return e ? JSON.parse(e) : [];
  } catch (e) {
    return console.error("Sa11y: Error loading cache", e), [];
  }
}, It = (e) => {
  if (!u.option.langOfPartsCache) {
    k.removeItem(Me);
    return;
  }
  try {
    const t = mo().filter((o) => o.key !== e.key);
    for (t.push(e); t.length > gs; ) t.shift();
    k.setItem(Me, JSON.stringify(t));
  } catch (t) {
    console.error("Sa11y: Error saving cache.", t);
  }
}, Sn = /[^\p{Script=Latin}\p{M}\p{Z}\p{P}\p{N}\p{S}\p{C}]/u;
async function fs() {
  const e = performance.now();
  if (!u.option.langOfPartsPlugin || !await Wt() || (u.option.langOfPartsCache || k.removeItem(Me), !(N.Found.Language ? lt(N.Found.Language) : null))) return;
  const o = et(N.Found.Language), n = (N.Found.pageText || []).join(" ");
  if (n.length < 100) return;
  const i = window.location.href, s = mo().find((A) => A.key === i), a = s?.declared && s.declared !== o;
  let r = s && (Math.abs(s.textLength - n.length) > 5 || a);
  if (s && !r && s.element) {
    const A = z(s.element, "root")[0];
    A ? A.getAttribute("lang") === s.args[0] && (r = !0) : r = !0;
  }
  if (s && !r) {
    if (s.test) {
      const A = s.element ? z(s.element, "root")[0] : null, T = A ? G(A) : null, I = [...s.args.map((S) => ae(S))];
      T && I.push(T);
      const w = b.sprintf(
        u.option.checks[s.test].content || [s.test],
        ...I
      ), E = document.createElement("div");
      E.append(w), s.element && E.append(" ", b.sprintf("LANG_TIP")), R({
        element: A || null,
        test: s.test,
        type: u.option.checks[s.test].type || s.type,
        content: E,
        dismiss: ke(s.test),
        developer: u.option.checks[s.test].developer ?? !1,
        confidence: s.confidence,
        textLength: s.textLength,
        cached: !0
      });
    }
    return;
  }
  const d = await Wt(), c = await d.detect(n), p = et(c[0].detectedLanguage);
  let l = null, g = null, m = null, x = null, h = null, v = null, y = null;
  if (p !== o && (l = "PAGE_LANG_CONFIDENCE", m = b.sprintf(
    u.option.checks.PAGE_LANG_CONFIDENCE.content || "PAGE_LANG_CONFIDENCE",
    ae(p),
    ae(o)
  ), h = ke(i), g = c[0].confidence >= 0.6 ? "error" : "warning", v = c[0].confidence, y = [p, o], It({
    key: i,
    test: l,
    type: g,
    args: y,
    confidence: v,
    textLength: n.length,
    declared: o
  })), p === o) {
    const A = z("[lang]", "root"), T = u.option.PAGE_LANG_CONFIDENCE?.confidence || 0.95;
    if (c[0].confidence >= T && A.length === 0) {
      It({
        key: i,
        textLength: n.length,
        declared: o,
        confidence: c[0].confidence
      });
      return;
    }
    for (let L = 0; L < N.Found.Everything.length; L++) {
      const I = N.Found.Everything[L], w = I.nodeName === "IMG";
      if (!w) {
        if (!I.textContent) continue;
        const O = I.textContent.length < 30, B = Sn.test(I.textContent);
        if (O && !B)
          continue;
      }
      let E = "";
      w ? E = I.alt || "" : E = Array.from(I.childNodes).filter((O) => O.nodeType === Node.TEXT_NODE).map((O) => O.textContent).join(" ");
      const S = $t(E);
      if (S.length <= 30 && !Sn.test(S)) continue;
      const C = await d.detect(S), _ = et(C[0].detectedLanguage), P = C[0].confidence;
      if (P >= 0.6) {
        const O = I.getAttribute("lang") ? et(I.getAttribute("lang")) : "", B = Kt(I);
        if (O && O !== _)
          l = "LANG_MISMATCH", m = b.sprintf(
            u.option.checks.LANG_MISMATCH.content || "LANG_MISMATCH",
            ae(_),
            ae(O),
            E
          ), y = [_, O];
        else if (!O && _ !== o)
          w && I.alt ? (l = "LANG_OF_PARTS_ALT", m = b.sprintf(
            u.option.checks.LANG_OF_PARTS_ALT.content || "LANG_OF_PARTS_ALT",
            ae(_),
            ae(o),
            I.alt
          ), y = [_, o, I.alt]) : (l = "LANG_OF_PARTS", m = b.sprintf(
            u.option.checks.LANG_OF_PARTS.content || "LANG_OF_PARTS",
            ae(o),
            ae(_),
            E
          ), y = [o, _]);
        else
          continue;
        x = I, g = P >= 0.9 ? "error" : "warning", h = ke(S.slice(0, 256)), v = P, It({
          key: i,
          test: l,
          element: B,
          type: g,
          args: y,
          confidence: P,
          textLength: n.length,
          declared: o
        });
        break;
      }
    }
  }
  if (l) {
    const A = document.createElement("div");
    A.append(m, " ", b.sprintf("LANG_TIP")), R({
      element: x,
      test: l,
      type: u.option.checks[l].type || g,
      content: x ? A : m,
      dismiss: h,
      developer: u.option.checks[l].developer ?? !1,
      cached: !1,
      pageText: n.length,
      confidence: v,
      time: `${(performance.now() - e).toFixed(2)}ms`
    });
  }
}
async function _t() {
  const { option: e } = u, t = e.ignoreByTest || {}, o = k.getItem("sa11y-developer"), n = !o || o === "Off";
  u.results = u.results.filter((a, r, d) => {
    if (a.isWithinRoot === !1 || (n || e.externalDeveloperChecks) && a.developer || n && a.external)
      return !1;
    if (u.option.langOfPartsPlugin && a?.element?.tagName === "IMG" && a.type === "good")
      return !d.some(
        (c) => c.element === a.element && (c.type === "error" || c.type === "warning") && c.element?.alt === a.element?.alt
      );
    if (u.option.langOfPartsPlugin && a.test === "PAGE_LANG_CONFIDENCE")
      return !d.some(
        (c) => c.test === "META_LANG" || c.test === "META_LANG_SUGGEST" || c.test === "META_LANG_VALID"
      );
    if (t[a.test] && a.element)
      try {
        if (a.element.matches(t[a.test])) return !1;
      } catch (c) {
        console.error(`Sa11y: Invalid CSS selector for ignoreByTest prop "${a.test}"`, c);
      }
    return !0;
  }), await Promise.all(
    u.results.map(async (a, r) => {
      if (a.id = r, a.cssPath = e.selectorPath ? Kt(a.element) : "", a.htmlPath = a.element?.outerHTML.replace(/\s{2,}/g, " ").trim() || "", a.dismiss && (a.dismissDigest = await $n(a.dismiss)), typeof a.content == "string") {
        const p = document.createElement("div");
        p.innerHTML = Dn(a.content), a.content = p;
      }
      const d = ["error", "warning", "good"];
      if (a.type && d.indexOf(a.type) === -1)
        throw Error(`Invalid type [${a.type}] for annotation`);
      const c = {
        [d[0]]: b._("ERROR"),
        [d[1]]: b._("WARNING"),
        [d[2]]: b._("GOOD")
      };
      a.issueLabel = c[a.type];
    })
  ), e.headless || ms();
  const i = `${(performance.now() - u.start).toFixed(2)}ms`, s = { results: u.results, page: window.location.pathname, time: i };
  window.sa11yCheckComplete = s, document.dispatchEvent(new CustomEvent("sa11y-check-complete", { detail: s }));
}
async function ms() {
  if (u.imageResults = N.Found.Images.map(
    (e) => u.results.find((t) => t.element === e)
  ).filter(Boolean).map(({ element: e, type: t, dismissDigest: o, developer: n }) => ({
    element: e,
    type: t,
    dismissDigest: o,
    developer: n
  })), si(), mi(), fi(), k.getItem("sa11y-panel") === "Opened") {
    const e = /* @__PURE__ */ new Map();
    u.results.forEach((t) => {
      if (t.element) {
        if (!t.margin) {
          const r = e.get(t.element) || 0;
          e.set(t.element, r + 1), t.margin = `${r * 20 + (t.inline ? 0 : 15)}px`;
        }
        t.finalContent = t?.content?.cloneNode(!0), t.finalContent.setAttribute("lang", b._("LANG_CODE")), t.finalContent.className = t.type;
        const o = t.type === "good" && ["IMAGE_PASS", "LINK_LABEL"].some((r) => t.test.includes(r)) ? b._("REVIEW") : t.issueLabel, n = document.createElement("h2");
        n.textContent = o, t.finalContent?.prepend(n);
        const i = u.option.dismissAnnotations && (t.type === "warning" || t.type === "good"), s = i && u.option.dismissAll && typeof t.dismissAll == "string", a = i && t.dismiss;
        if (a || s) {
          const r = document.createElement("div");
          r.className = "dismiss-group";
          const d = (c, p) => {
            const l = document.createElement("button");
            return l.type = "button", l.textContent = b._(c), l.setAttribute("data-sa11y-dismiss", t.id), p && l.setAttribute("data-sa11y-dismiss-all", ""), l;
          };
          a && r.append(d("DISMISS", !1)), s && r.append(d("DISMISS_ALL", !0)), t.finalContent.append(r);
        }
        if (u.option.unitTestMode) {
          const r = b.sprintf(
            "<hr><strong>Test ID:</strong> <code>%(TEST)</code>",
            t.test
          );
          t.finalContent.append(r);
        }
      }
      jo(t);
    }), N.initializeAnnotations(), document.body.appendChild(new fo()), li(), di(), pi(), gi(), Do(), zo(), u.option.langOfPartsPlugin && await Wt() === null && Ie(b.sprintf("LANG_UNSUPPORTED"), null, null, !0), Ge(f.Panel.pageIssuesList, f.Panel.pageIssuesContent);
  }
  f.Panel.toggle.disabled = !1;
}
const hs = [
  ".avif",
  ".png",
  ".jpg",
  ".jpeg",
  ".webp",
  ".gif",
  ".tiff",
  ".svg",
  ".heif",
  ".heic",
  "http"
], bs = (e) => {
  const t = V(e).toLowerCase(), o = V(t.replace(/[^\p{L}\s]/gu, "")), n = [null, null, null];
  for (const s of hs)
    if (t.includes(s)) {
      n[0] = s;
      break;
    }
  if (!n[0]) {
    const s = t.match(/\b\d{2,6}\s*x\s*\d{2,6}\b/);
    s && (n[0] = s[0]);
  }
  let i = [];
  if (typeof Intl < "u" && Intl.Segmenter) {
    const a = [...new Intl.Segmenter(void 0, { granularity: "word" }).segment(t)].filter((r) => r.isWordLike).map((r) => r.segment);
    i = [...a.slice(0, 2), ...a.slice(-1)];
  } else {
    const a = V(t.replace(/[^\p{L}\s]/gu, "")).split(/\s+/).filter(Boolean);
    i = [...a.slice(0, 2), ...a.slice(-1)];
  }
  for (const s of f.Global.susAltWords)
    if (i.includes(s)) {
      n[1] = s;
      break;
    }
  if ((f.Global.placeholderAltSet.has(t) || f.Global.placeholderAltSet.has(o)) && (n[2] = e), f.Global.extraPlaceholderStopWords.length)
    for (const s of f.Global.extraPlaceholderStopWords) {
      const a = t.indexOf(s);
      if (a > -1 && a < 6) {
        n[2] = s;
        break;
      }
    }
  return n;
};
function ys() {
  N.Found.Images.forEach((e) => {
    const t = Ae(e) === "noAria" ? e.getAttribute("alt") ?? e.getAttribute("title") : Ae(e);
    if (e.height < 2 && e.width < 2 && (Z(e) || t === "")) return;
    const o = M(
      e,
      u.option.imageWithinLightbox ? `a[href]:not(${u.option.imageWithinLightbox})` : "a[href]"
    );
    if (ge(o)) return;
    const n = e.getAttribute("src"), i = n ? n.split("?")[0] : e.getAttribute("srcset"), s = o ? de(o, f.Exclusions.LinkSpan).textContent.replace(
      f.Global.linkIgnoreStringPattern,
      ""
    ) : "", a = V(s).length, r = (E) => R({
      element: e,
      type: E.type || "error",
      dismiss: E.dismiss || i,
      ...E
    });
    let d, c, p;
    if (t === null)
      if (o) {
        if (a > 0 && (De(e) || zt(e))) return;
        d = a === 0 ? "MISSING_ALT_LINK" : "MISSING_ALT_LINK_HAS_TEXT", c = i + a;
      } else
        d = "MISSING_ALT", c = i;
    else if (t === "") {
      const E = e.getAttribute("aria-label") || e.getAttribute("aria-labelledby");
      E && (d = "MISSING_ALT", c = E + i);
    }
    if (d && u.option.checks[d]) {
      r({ test: d, dismiss: c });
      return;
    }
    const l = V(t), g = M(e, "figure"), m = g?.querySelector("figcaption"), x = m ? G(m) : "";
    let h = t === "";
    if (!h && u.option.altPlaceholder.length && (h = !!t.match(f.Global.altPlaceholderPattern)), h) {
      if (M(e, "button, [role='button']")) return;
      const E = u.option.checks.IMAGE_DECORATIVE_CAROUSEL?.sources, S = E ? M(e, E) : null;
      if (S)
        d = S.querySelectorAll("img").length === 1 ? "IMAGE_DECORATIVE" : "IMAGE_DECORATIVE_CAROUSEL", p = "warning";
      else if (o) {
        if (o.getAttribute("aria-label") || o.getAttribute("aria-labelledby")) return;
        d = a === 0 ? "LINK_IMAGE_NO_ALT_TEXT" : "LINK_IMAGE_TEXT", p = a === 0 ? "error" : "good", c = i + a;
      } else g && x.length ? (d = "IMAGE_FIGURE_DECORATIVE", p = "warning", c = i + x) : (d = "IMAGE_DECORATIVE", p = "warning");
      if (d)
        if (u.option.checks[d]) {
          r({ test: d, type: p, dismiss: c || i });
          return;
        } else {
          !M(e, 'button, [role="button"]') && !f.Global.linkIgnoreStringPattern?.test(t) && r({ test: "IMAGE_PASS", type: "good", args: [l], dismiss: i + t });
          return;
        }
    }
    const v = o ? "LINK_ALT_UNPRONOUNCEABLE" : "ALT_UNPRONOUNCEABLE";
    if (u.option.checks[v] && !f.Global.unpronounceablePattern.test(t) && a === 0) {
      r({
        test: v,
        args: [l]
      });
      return;
    }
    const y = bs(l), A = [
      {
        hit: y[0],
        test: o ? "LINK_ALT_FILE_EXT" : "ALT_FILE_EXT",
        type: "error",
        args: [y[0], l]
      },
      {
        hit: y[2],
        test: o ? "LINK_PLACEHOLDER_ALT" : "ALT_PLACEHOLDER",
        type: "error",
        args: [l]
      },
      {
        hit: y[1],
        test: o ? "LINK_SUS_ALT" : "SUS_ALT",
        type: "warning",
        args: [y[1], l]
      }
    ];
    for (const E of A)
      if (E.hit !== null && u.option.checks[E.test] !== !1) {
        r({
          test: E.test,
          type: E.type,
          args: E.args,
          dismiss: i + t
        });
        return;
      }
    const T = o ? "LINK_ALT_MAYBE_BAD" : "ALT_MAYBE_BAD";
    if (u.option.checks[T]) {
      const E = u.option.checks[T]?.minLength || 15, S = new RegExp(`^\\S{${E},}$`), C = /[^\p{L}\p{M}\-,.!? «»—]/u.test(l), _ = new RegExp(`^(?=[^_-]*([_-][^_-]*){3,})\\S{${E},}$`).test(
        l
      ), P = /[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}]/u.test(l);
      if (_ || !P && S.test(t) && C) {
        r({
          test: T,
          args: [l],
          dismiss: i + t
        });
        return;
      }
    }
    const L = o ? "LINK_ALT_MAYBE_BAD_WARNING" : "ALT_MAYBE_BAD_WARNING";
    if (u.option.checks[L]) {
      const E = l.trim().split(/\s+/).length, S = (l.match(/[_-]/g) || []).length;
      if (/^(?:\s*\d){5,}\s*$/.test(l) || S >= 3 && E <= 2) {
        r({
          test: L,
          type: "warning",
          content: T,
          // We re-use this key for the tooltip.
          args: [l],
          dismiss: `WARNING${i + t}`
        });
        return;
      }
    }
    const I = o ? "LINK_IMAGE_LONG_ALT" : "IMAGE_ALT_TOO_LONG";
    if (u.option.checks[I]) {
      const E = u.option.checks[I]?.maxLength || 250;
      if (t.length > E) {
        r({
          test: I,
          type: "warning",
          args: [t.length, l],
          dismiss: i + t
        });
        return;
      }
    }
    if (o && !f.Global.linkIgnoreStringPattern?.test(t)) {
      const E = a === 0 ? "LINK_IMAGE_ALT" : "LINK_IMAGE_ALT_AND_TEXT", S = u.option.checks[E];
      if (S) {
        const C = oe(o, f.Exclusions.LinkSpan), _ = V(
          C.replace(f.Global.linkIgnoreStringPattern, "")
        ), P = b.sprintf(
          a === 0 ? b._("LINK_IMAGE_ALT") : b._("LINK_IMAGE_ALT_AND_TEXT") + b._("ACC_NAME_TIP"),
          l,
          _
        );
        r({
          test: E,
          type: "warning",
          args: [l, _],
          content: S.content ? b.sprintf(S.content, l, _) : P,
          dismiss: i + t
        });
        return;
      }
    }
    if (u.option.checks.IMAGE_FIGURE_DUPLICATE_ALT && g && m && x.toLowerCase() === t.toLowerCase()) {
      r({
        test: "IMAGE_FIGURE_DUPLICATE_ALT",
        type: "warning",
        args: [l]
      });
      return;
    }
    const w = u.option.checks.DUPLICATE_TITLE;
    if (w) {
      const E = (S) => e.getAttribute(S)?.trim().toLowerCase();
      if (e.hasAttribute("title") && E("title") === E("alt")) {
        r({
          test: "DUPLICATE_TITLE",
          type: "warning",
          content: w.content ? b.sprintf(w.content, l) : b.sprintf(`${b._("DUPLICATE_TITLE")}<hr>${b._("IMAGE_PASS")}`, l),
          args: [l],
          inline: !0,
          dismiss: t
        });
        return;
      }
    }
    if (!M(e, 'button, [role="button"]')) {
      if (f.Global.linkIgnoreStringPattern?.test(t)) return;
      r({
        test: "IMAGE_PASS",
        type: "good",
        args: [l],
        dismiss: i + t
      });
    }
  });
}
function xs() {
  let e, t = "";
  N.Found.Headings.forEach((o, n) => {
    const i = oe(o, f.Exclusions.HeaderSpan), s = V(
      i.replace(f.Global.headerStringExclusionPattern, "")
    ), a = f.Root.areaToCheck.some((L) => L.contains(o)), r = f.Root.areaToCheck.some(
      (L) => L.contains(o.getRootNode().host)
    ), d = a || r, c = N.Found.HeadingOverrideStart.get(o);
    c && (e = c);
    const p = parseInt(o.getAttribute("aria-level") || o.tagName.slice(1), 10), l = s.length, g = u.option.checks.HEADING_LONG?.maxLength || 160, m = (L) => R({
      element: o,
      dismiss: p + s,
      ...L
    });
    let x = null;
    const h = o.querySelector("img"), v = h?.getAttribute("alt"), y = h && (!v || v.trim() === "" || i === ""), T = (o.textContent || "")?.trim() !== "" && !f.Global.unpronounceablePattern.test(s);
    l === 0 && y ? x = m({
      test: "HEADING_EMPTY_WITH_IMAGE",
      args: [p],
      margin: "-15px 30px"
    }) : T ? x = m({
      test: "HEADING_UNPRONOUNCEABLE",
      args: [s]
    }) : l === 0 ? x = m({
      test: "HEADING_EMPTY",
      args: [p],
      margin: "0"
    }) : p - e > 1 && (n !== 0 || c) ? x = m({
      test: "HEADING_SKIPPED_LEVEL",
      args: [
        e,
        p,
        fe(s, 60),
        fe(t, 60),
        e + 1
      ]
    }) : n === 0 && p !== 1 && p !== 2 ? x = m({ test: "HEADING_FIRST" }) : l > g && (x = m({
      test: "HEADING_LONG",
      type: "warning",
      args: [g, l, s]
    })), N.Found.OutlineIgnore.includes(o) || u.headingOutline.push({
      element: o,
      headingLevel: p,
      text: s,
      type: x?.type || null,
      dismiss: ke(`${x?.test || ""}${p}${s}`.trim()),
      isWithinRoot: d
    }), e = p, t = s;
  }), u.option.checks.HEADING_MISSING_ONE && N.Found.HeadingOne.length === 0 && R({
    test: "HEADING_MISSING_ONE",
    type: "warning",
    dismiss: "HEADING_MISSING_ONE"
  });
}
const vs = 'a[href$=".pdf"], a[href$=".doc"], a[href$=".docx"], a[href$=".zip"], a[href$=".mp3"], a[href$=".txt"], a[href$=".exe"], a[href$=".dmg"], a[href$=".rtf"], a[href$=".pptx"], a[href$=".ppt"], a[href$=".xls"], a[href$=".xlsx"], a[href$=".csv"], a[href$=".mp4"], a[href$=".mov"], a[href$=".avi"]', As = /(doi\.org\/|dl\.acm\.org\/|link\.springer\.com\/|pubmed\.ncbi\.nlm\.nih\.gov\/|scholar\.google\.com\/|ieeexplore\.ieee\.org\/|researchgate\.net\/publication\/|sciencedirect\.com\/science\/article\/|10\.\d{4,}\/)[a-z0-9/.-]+/i, Es = /\b(?:\.edu\/|\.gob\/|\.gov\/|\.app\/|\.com\/|\.net\/|\.org\/|\.us\/|\.ca\/|\.de\/|\.icu\/|\.uk\/|\.ru\/|\.info\/|\.top\/|\.xyz\/|\.tk\/|\.cn\/|\.ga\/|\.cf\/|\.nl\/|\.io\/|\.fr\/|\.pe\/|\.nz\/|\.pt\/|\.es\/|\.pl\/|\.ua\/)\b/i, ws = /([<>↣↳←→↓«»↴]+)/, St = (e, t, o) => {
  const n = e.replace(o, "").trim();
  return t.has(n) ? n : null;
};
function Ts() {
  const e = {};
  N.Found.Links.forEach((t) => {
    let o = !1, n = null;
    const i = t.href ? zn(t) : "", s = t.getAttribute("title"), a = t.getAttribute("target")?.trim()?.toLowerCase() === "_blank", r = t.getAttribute("aria-label"), d = t.getAttribute("aria-labelledby"), c = d ? null : t.querySelector("[aria-labelledby]"), p = d || c, l = p || r || t.querySelector("[aria-label]"), g = V(
      oe(t, f.Exclusions.LinkSpan)
    ), m = g.replace(f.Global.linkIgnorePattern, ""), x = m.toLowerCase(), h = tt(x), v = G(t), y = v.toLowerCase(), A = G(
      de(t, f.Exclusions.LinkSpan)
    ).replace(f.Global.linkIgnorePattern, ""), T = x.match(f.Global.newWindowRegex)?.[0] || y.match(f.Global.newWindowRegex)?.[0], L = x.match(f.Global.fileTypeRegex)?.[0] || y.match(f.Global.fileTypeRegex)?.[0], I = t.matches(vs), w = (E) => {
      const S = E.type || "warning";
      return (S === "error" || S === "warning") && (o = !0), R({
        element: t,
        type: S,
        dismiss: E.dismiss || i,
        inline: !0,
        ...E
      });
    };
    if (!t.querySelector("img") || l) {
      if (l && m.length !== 0) {
        const F = de(t, f.Exclusions.LinkSpan), K = G(F).replace(
          f.Global.linkIgnorePattern,
          ""
        ), X = St(
          tt(K),
          f.Global.linkStopWords
        ), $ = Xt(
          t,
          g,
          f.Exclusions.LinkSpan,
          u.option.linkIgnoreStrings
        );
        X !== null ? w({
          test: "LINK_STOPWORD_ARIA",
          args: [X, m],
          content: b._("LINK_STOPWORD_ARIA") + b._("LINK_TIP"),
          dismiss: h,
          developer: !0
        }) : $ && y.length !== 0 ? w({
          test: "LABEL_IN_NAME",
          args: [A, m],
          content: b._("LABEL_IN_NAME") + b._("ACC_NAME_TIP"),
          dismiss: h,
          position: "afterend",
          developer: !0
        }) : n = {
          test: "LINK_LABEL",
          type: "good",
          args: [V(oe(t))],
          content: b._("ACC_NAME") + b._("ACC_NAME_TIP"),
          dismiss: h,
          position: "afterend",
          developer: !0
        };
      }
      let E = !1;
      const S = () => {
        if (!E && u.option.checks.LINK_STOPWORD) {
          E = !0;
          const F = m.length === 0 ? v : m;
          w({
            test: "LINK_STOPWORD",
            type: "error",
            args: [F],
            content: b._("LINK_STOPWORD") + b._("LINK_TIP"),
            dismiss: h,
            position: "afterend"
          });
        }
      }, C = St(y, f.Global.linkIgnoreStrings);
      if ((C === y || C === h || T === y || T === h) && S(), m.length === 0) {
        if (p)
          w({
            test: "LINK_EMPTY_LABELLEDBY",
            type: "error",
            position: "afterend",
            developer: !0
          });
        else if (t.children.length) {
          let F = !1;
          if (u.option.linkIgnoreSpan) {
            const K = t.querySelector(u.option.linkIgnoreSpan);
            K && tt(K.textContent).trim().toLowerCase() === y && (S(), F = !0);
          }
          F || w({
            test: "LINK_EMPTY_NO_LABEL",
            type: "error",
            position: "afterend"
          });
        } else C || w({
          test: "LINK_EMPTY",
          type: "error",
          position: "afterend"
        });
        return;
      }
      const _ = St(
        h,
        f.Global.linkStopWords,
        f.Global.newWindowRegex
      ), P = h.match(f.Global.clickRegex)?.[0] || y.match(f.Global.clickRegex)?.[0], O = x.match(As)?.[0], B = x.startsWith("www.") || x.startsWith("http") || !!x.match(Es), H = x.match(ws)?.[0];
      if (_)
        S();
      else if (O && m.length > 8)
        w({
          test: "LINK_DOI",
          args: [m],
          dismiss: h
        });
      else if (B && !l && m.length > (u.option.checks.LINK_URL?.maxLength || 40))
        w({
          test: "LINK_URL",
          args: [m],
          content: b._("LINK_URL") + b._("LINK_TIP"),
          dismiss: h
        });
      else if (H && m.length > 1)
        w({
          test: "LINK_SYMBOLS",
          args: [H, m],
          dismiss: h
        });
      else if (!f.Global.unpronounceablePattern.test(m) && !s) {
        const F = /[\uE000-\uF8FF]/gu.test(m) ? "LINK_EMPTY_NO_LABEL" : "LINK_UNPRONOUNCEABLE";
        w({
          test: F,
          type: "error",
          args: [m],
          content: b._(F) + b._("LINK_TIP"),
          position: "afterend"
        });
      }
      P && w({
        test: "LINK_CLICK_HERE",
        args: [m],
        content: b._("LINK_CLICK_HERE") + b._("LINK_TIP"),
        dismiss: h
      }), y.length !== 0 && s?.toLowerCase() === m.toLowerCase() && w({
        test: "DUPLICATE_TITLE",
        dismiss: h
      });
    }
    if (h.length !== 0) {
      if (e[h] && !e[i]) {
        const E = ge(t), S = t.hasAttribute("role") || le(t), C = m.toLowerCase() !== A.toLowerCase();
        !S && !E && w({
          test: "LINK_IDENTICAL_NAME",
          args: [A, m],
          content: b._("LINK_IDENTICAL_NAME") + (C ? `<hr> ${b._("ACC_NAME")}` : `<hr> ${b._("LINK_TEXT")}`) + b._("LINK_TIP"),
          dismiss: h
        });
      } else
        e[h] = i, e[i] = !0;
      if (a && !I && !T) {
        const E = m.toLowerCase() !== A.toLowerCase();
        w({
          test: "LINK_NEW_TAB",
          args: [m],
          content: b._("LINK_NEW_TAB") + (E ? `<hr> ${b._("ACC_NAME") + b._("ACC_NAME_TIP")}` : `<hr> ${b._("LINK_TEXT")}`),
          dismiss: h
        });
      }
      I && !L && w({
        test: "LINK_FILE_EXT",
        args: [m],
        dismiss: h
      });
    }
    if (f.Global.pdfSources && t.matches(f.Global.pdfSources) ? w({
      test: "QA_PDF",
      args: [m],
      dismissSuffix: i
    }) : f.Global.documentSources && t.matches(f.Global.documentSources) && w({
      test: "QA_DOCUMENT",
      args: [m],
      dismissSuffix: i
    }), u.option.checks.QA_IN_PAGE_LINK || u.option.checks.LINK_MAYBE_BUTTON) {
      const E = t.getAttribute("href"), S = t.hasAttribute("role") || t.hasAttribute("aria-haspopup") || t.hasAttribute("aria-expanded") || t.hasAttribute("onclick") || le(t) || !!M(t, 'nav, [role="navigation"]');
      if ((!E || E.startsWith("#")) && G(t).length !== 0 && !ge(t) && !S) {
        const C = E?.substring(1), _ = t.getAttribute("aria-controls");
        if (!(C && (document.getElementById(C) || _ && document.getElementById(_) || decodeURIComponent(C) !== C && document.getElementById(decodeURIComponent(C)) || encodeURIComponent(C) !== C && document.getElementById(encodeURIComponent(C)) || document.querySelector(`a[name="${CSS.escape(C)}"]`)))) {
          let O = !1;
          const B = b._("POTENTIAL_UI_ELEMENTS").find(
            (F) => g.toLowerCase().includes(F)
          ), H = Object.keys(t.dataset).some(
            (F) => F.toLowerCase().includes("slide")
          );
          (B || H) && g.length <= 15 && (O = !0, w({
            test: "LINK_MAYBE_BUTTON",
            type: "error",
            args: [g],
            dismiss: B,
            developer: !0
          })), O || w({
            test: "QA_IN_PAGE_LINK",
            type: "error",
            args: [C, g]
          });
        }
      }
    }
    n && !o && w(n);
  });
}
function Ls() {
  if (!u.option.contrastPlugin) return;
  const e = [], t = N.Found.Contrast, o = u.option.contrastAlgorithm, n = f.Global.shadowDetection, i = /* @__PURE__ */ new Set(["SELECT", "INPUT", "TEXTAREA"]);
  for (let r = 0; r < t.length; r++) {
    const d = t[r], c = i.has(d.tagName);
    let p = "";
    if (!c) {
      const L = d.childNodes;
      for (let I = 0; I < L.length; I++)
        L[I].nodeType === 3 && (p += L[I].textContent);
      if (p = p.trim(), !p) continue;
    }
    const l = U(d), g = parseFloat(l.opacity), m = parseFloat(l.fontSize);
    if (g === 0 || m === 0 || Z(d) || On(d)) continue;
    const x = (L) => L?.getAttribute("for") === "" ? null : L?.control;
    if (le(d) || le(x(M(d, "label"))) || le(M(d, "fieldset")) || le(M(d, '[role="group"]')) || !c && !/[\p{L}\p{N}]/u.test(p)) continue;
    const h = te(l.color, g), v = l.fontWeight, y = bn(v), A = Et(d, n), T = m >= 24 || m >= 18.67 && y >= 700;
    if (h === "unsupported" || A === "unsupported") {
      e.push({
        $el: d,
        type: "unsupported",
        fontSize: m,
        fontWeight: y,
        isLargeText: T,
        opacity: g,
        ...A !== "unsupported" && { background: A },
        ...h !== "unsupported" && { color: h }
      });
      continue;
    }
    if (!(h && h[3] === 0)) {
      if (A.type === "image") {
        const L = Ft(A.value);
        (!L || L.some(
          (w) => wt(
            d,
            h,
            w,
            m,
            y,
            g,
            o
          )
        ) || A.value.includes("url(")) && e.push({
          $el: d,
          type: "background-image",
          color: h,
          isLargeText: T,
          background: A,
          fontSize: m,
          fontWeight: y,
          opacity: g
        });
      } else if (q(h) !== q(A)) {
        const L = wt(
          d,
          h,
          A,
          m,
          y,
          g,
          o
        );
        L && (L.type = c ? "input" : "text", e.push(L));
      }
    }
  }
  N.Found.Svg.forEach((r) => {
    const d = { $el: r, type: "svg-warning" }, c = Et(r, f.Global.shadowDetection), p = c !== "unsupported" && c.type !== "image", l = r.querySelectorAll("path, rect, circle, ellipse, polygon, text, use"), g = r.querySelectorAll(
      "*:not(path):not(rect):not(circle):not(ellipse):not(polygon):not(text):not(use):not(title)"
    );
    let m = !1;
    if (l.length) {
      const x = U(l[0]);
      m = Array.from(l).every((h) => {
        const v = U(h);
        return v.fill === x.fill && v.fillOpacity === x.fillOpacity && v.stroke === x.stroke && v.strokeOpacity === x.strokeOpacity && v.opacity === x.opacity;
      });
    }
    if ((l.length === 1 || m) && g.length === 0) {
      const x = U(l[0]), { fill: h, stroke: v, strokeWidth: y, opacity: A } = x;
      let T = 0;
      const { width: L, height: I } = r.getBBox();
      v && v !== "none" && (y.endsWith("%") ? T = parseFloat(y) / 100 * Math.min(L, I) : T = ["inherit", "initial", "unset"].includes(y) ? 1 : parseFloat(y));
      const w = Math.min(L, I) < 50 ? 1 : 3, E = v && T >= w && v !== "none", S = h && h !== "none" && !h.startsWith("url("), C = te(h === "currentColor" ? U(l[0]).color : h, A), _ = te(v === "currentColor" ? U(l[0]).color : v, A);
      if (![C, _].includes("unsupported") && p) {
        let O, B = !1, H = !1;
        if (S && (O = we(
          C,
          c,
          u.option.contrastAlgorithm
        ), B = u.option.contrastAlgorithm === "APCA" ? O.ratio >= 45 : O.ratio >= 3), E && (O = we(
          _,
          c,
          u.option.contrastAlgorithm
        ), H = u.option.contrastAlgorithm === "APCA" ? O.ratio >= 45 : O.ratio >= 3), S && E && !B && !H || S && !E && !B || !S && E && !H) {
          const $ = q(c), ee = q(C), At = q(_);
          if (ee === $ && !E || At === $ && !S)
            return;
          e.push({
            $el: r,
            ratio: ei(O.ratio, u.option.contrastAlgorithm),
            color: O.blendedColor,
            type: "svg-error",
            isLargeText: !0,
            // To push a suggested colour (3:1).
            background: c
          });
        }
      } else
        S && C !== "unsupported" ? d.color = C : E && _ !== "unsupported" && (d.color = _), p && (d.background = c), e.push(d);
    } else
      p && (d.background = c), e.push(d);
  }), N.Found.Inputs.forEach((r) => {
    if (r.placeholder && r.placeholder.length !== 0) {
      const d = U(r, "::placeholder"), c = te(d.getPropertyValue("color")), p = parseFloat(d.fontSize), l = bn(d.fontWeight), g = Et(r, f.Global.shadowDetection), m = parseFloat(d.opacity);
      if (c === "unsupported")
        e.push({ $el: r, type: "placeholder-unsupported" });
      else if (g.type !== "image") {
        const x = wt(
          r,
          c,
          g,
          p,
          l,
          m,
          u.option.contrastAlgorithm
        );
        x && (x.type = "placeholder", e.push(x));
      }
    }
  }), ((r) => {
    const d = r.filter((l) => l.type === "background-image"), c = r.filter((l) => l.type !== "background-image");
    let p;
    if (u.option.contrastAlgorithm === "APCA")
      p = d.map((l) => ({ ...l }));
    else {
      const l = d.reduce((g, m) => {
        const x = g, h = JSON.stringify({
          background: m.background.value,
          color: m.color,
          isLargeText: m.isLargeText
        });
        return x[h] || (x[h] = []), x[h].push(m), x;
      }, {});
      p = Object.values(l).map((g) => ({
        ...g[0]
      }));
    }
    return [...p, ...c];
  })(e).forEach((r) => {
    const { $el: d, ratio: c } = r, p = r, l = d.tagName === "OPTION" ? M(d, "datalist, select, optgroup") : d, g = de(l, ["option:not(option:first-child)"]), m = G(g), x = fe(m, 80);
    let h;
    r.type === "placeholder" || r.type === "placeholder-unsupported" ? h = d.placeholder : r.type === "svg-error" || r.type === "svg-warning" ? h = "" : h = x, p.previewText = h;
    const v = u.option.contrastAlgorithm === "AA" || u.option.contrastAlgorithm === "AAA", y = u.option.contrastAlgorithm === "AAA" ? "7:1" : "4.5:1", A = u.option.contrastAlgorithm === "AAA" ? "4.5:1" : "3:1", T = r.isLargeText ? A : y, L = r.isLargeText ? "CONTRAST_LARGE" : "CONTRAST_NORMAL", I = (w) => R({
      element: d,
      type: w.type || "warning",
      dismiss: w.dismiss || h,
      contrastDetails: p,
      ...w
    });
    switch (r.type) {
      case "text":
        I({
          test: "CONTRAST_ERROR",
          type: "error",
          content: b.sprintf(
            v ? `${b._("CONTRAST_ERROR")} ${b._(L)}` : b._("CONTRAST_ERROR"),
            T
          ),
          args: [T]
        });
        break;
      case "input":
        I({
          test: "CONTRAST_INPUT",
          type: "error",
          content: b.sprintf(
            v ? `${b._("CONTRAST_INPUT")} ${b._(L)}` : b._("CONTRAST_INPUT"),
            c,
            T
          ),
          args: [c, T],
          dismiss: d.tagName + (d.name || "") + (d.id || ""),
          developer: !0
        });
        break;
      case "placeholder":
        I({
          test: "CONTRAST_PLACEHOLDER",
          type: "error",
          content: b.sprintf(
            v ? `${b._("CONTRAST_PLACEHOLDER")} ${b._(L)}` : b._("CONTRAST_PLACEHOLDER"),
            T
          ),
          args: [T],
          position: "afterend",
          dismiss: d.tagName + (d.id || "") + h,
          developer: !0
        });
        break;
      case "svg-error":
        I({
          test: "CONTRAST_ERROR_GRAPHIC",
          type: "error",
          content: b.sprintf(
            u.option.contrastAlgorithm !== "APCA" ? `${b._("CONTRAST_ERROR_GRAPHIC")} ${b._("CONTRAST_TIP_GRAPHIC")}` : b._("CONTRAST_ERROR_GRAPHIC")
          ),
          dismiss: d.outerHTML,
          developer: !0,
          margin: "-25px"
        });
        break;
      case "placeholder-unsupported":
        I({
          test: "CONTRAST_PLACEHOLDER_UNSUPPORTED",
          content: b.sprintf(
            v ? `${b._("CONTRAST_PLACEHOLDER_UNSUPPORTED")} ${b._(L)}` : b._("CONTRAST_PLACEHOLDER_UNSUPPORTED"),
            T
          ),
          args: [T],
          position: "afterend",
          dismiss: d.tagName + (d.id || "") + h,
          developer: !0
        });
        break;
      case "svg-warning":
        I({
          test: "CONTRAST_WARNING_GRAPHIC",
          content: b.sprintf(
            u.option.contrastAlgorithm !== "APCA" ? `${b._("CONTRAST_WARNING_GRAPHIC")} ${b._("CONTRAST_TIP_GRAPHIC")}` : b._("CONTRAST_WARNING_GRAPHIC")
          ),
          dismiss: d.outerHTML,
          developer: !0,
          margin: "-25px"
        });
        break;
      case "background-image":
        I({
          test: "CONTRAST_WARNING",
          content: b.sprintf(
            v ? `${b._("CONTRAST_WARNING")} ${b._(L)}` : b._("CONTRAST_WARNING"),
            T
          ),
          args: [T]
        });
        break;
      case "unsupported":
        I({
          test: "CONTRAST_UNSUPPORTED",
          content: b.sprintf(
            v ? `${b._("CONTRAST_WARNING")} ${b._(L)}` : b._("CONTRAST_WARNING"),
            T
          ),
          args: [T]
        });
        break;
    }
  });
}
function Is() {
  u.option.formLabelsPlugin && N.Found.Inputs.forEach((e) => {
    const t = De(e) && le(e);
    if (Z(e) || ge(e) || t) return;
    const o = oe(e), n = V(o), i = e.getAttribute("type"), s = e.getAttribute("title"), a = e.getAttribute("aria-label") || e.getAttribute("aria-labelledby"), d = ["INPUT", "TEXTAREA", "SELECT", "METER", "PROGRESS"].includes(e.tagName.toUpperCase());
    if (["submit", "button", "hidden"].includes(i)) return;
    const c = (g) => R({
      element: e,
      type: g.type || "error",
      developer: g.developer || !0,
      dismiss: i + n,
      ...g
    });
    if (i === "image" && n === "" && u.option.checks.LABELS_MISSING_IMAGE_INPUT) {
      c({ test: "LABELS_MISSING_IMAGE_INPUT" });
      return;
    }
    if (i === "reset" && u.option.checks.LABELS_INPUT_RESET) {
      c({ test: "LABELS_INPUT_RESET", type: "warning", developer: !1 });
      return;
    }
    const p = e.placeholder && e.placeholder !== 0;
    if (p && c({ test: "LABELS_PLACEHOLDER", type: "warning" }), !d && u.option.checks.ARIA_INPUT_FIELD_NAME) {
      const g = [
        "checkbox",
        "menu",
        "menuitemcheckbox",
        "menuitemradio",
        "radio",
        "radiogroup",
        "switch"
      ], m = e.getAttribute("role")?.trim().toLowerCase() || "";
      if (g.includes(m) && n.length !== 0) return;
      if (n.length === 0) {
        const x = fe(e.outerHTML, 100), h = u.option.checks.ARIA_INPUT_FIELD_NAME, v = h.content ? b.sprintf(h.content) : b.sprintf(b._("ARIA_INPUT_FIELD_NAME") + b._("ACC_NAME_TIP"), x);
        c({
          test: "ARIA_INPUT_FIELD_NAME",
          args: [x],
          content: v
        });
        return;
      }
    }
    if (a || s) {
      if (n.length === 0)
        c({ test: "LABELS_MISSING_LABEL" });
      else {
        const g = e.getAttribute("aria-labelledby");
        if (g) {
          const x = g.trim().split(/\s+/);
          if (x.length === 1) {
            const h = z(`#${x[0]}`, "root")?.[0];
            if (h && !Z(h)) return;
          }
        }
        const m = u.option.checks.LABELS_ARIA_LABEL_INPUT;
        if (m) {
          const x = m.content ? b.sprintf(m.content, n) : b.sprintf(b._("LABELS_ARIA_LABEL_INPUT") + b._("ACC_NAME_TIP"), n);
          c({
            test: "LABELS_ARIA_LABEL_INPUT",
            type: "warning",
            args: [n],
            content: x
          });
        }
      }
      return;
    }
    if (d) {
      const g = M(e, "label"), m = g ? oe(g) : "";
      if (g && m.length || p) return;
    }
    const l = e.getAttribute("id");
    if (l) {
      if (N.Found.Labels.some(
        (m) => m.getAttribute("for") === l
      )) return;
      c({ test: "LABELS_NO_FOR_ATTRIBUTE", args: [l] });
    } else
      c({ test: "LABELS_MISSING_LABEL" });
  });
}
function _s(e, t) {
  const o = [], n = [".", "?", "!"];
  e.forEach((s) => {
    const a = s[s.length - 1], r = n.includes(a) ? s : `${s}.`;
    o.push(r);
  });
  const i = o.join(" ").replace(/[\u0000-\u001F\u007F-\u009F]/g, "");
  if (i.length === 0) return null;
  if (["en", "es", "fr", "de", "nl", "it", "pt"].includes(t)) {
    const s = (A) => {
      let T = A;
      if (T = T.toLowerCase().replaceAll(".", "").replaceAll(`
`, ""), T.length <= 3)
        return 1;
      T = T.replace(/(?:[^laeiouy]es|ed|[^laeiouy]e)$/, ""), T = T.replace(/^y/, "");
      const L = T.match(/[aeiouy]{1,2}/g);
      let I = 0;
      return L && (I = L.length), I;
    }, a = i.replace(/[.!?-]+/g, " ").split(" ");
    let r = 0;
    for (let A = 0; A < a.length; A++)
      a[A].trim() !== "" && (r += 1);
    const d = i.split(/[.!?]+/);
    let c = 0;
    for (let A = 0; A < d.length; A++)
      d[A] !== "" && (c += 1);
    let p = 0, l = 0, g = 0;
    for (let A = 0; A < a.length; A++) {
      const T = a[A];
      if (T.length > 0) {
        const L = s(T);
        L === 1 ? l += 1 : L === 2 && (g += 1), p += L;
      }
    }
    let m = !1;
    t === "en" ? m = 206.835 - 1.015 * (r / c) - 84.6 * (p / r) : t === "fr" ? m = 207 - 1.015 * (r / c) - 73.6 * (p / r) : t === "es" ? m = 206.84 - 1.02 * (r / c) - 0.6 * (100 * (p / r)) : t === "de" ? m = 180 - r / c - 58.5 * (p / r) : t === "nl" ? m = 206.84 - 0.77 * (100 * (p / r)) - 0.93 * (r / c) : t === "it" ? m = 217 - 1.3 * (r / c) - 0.6 * (100 * (p / r)) : t === "pt" && (m = 248.835 - 1.015 * (r / c) - 84.6 * (p / r)), m > 100 ? m = 100 : m < 0 && (m = 0);
    const x = Number(m.toFixed(1)), h = Number((r / c).toFixed(1)), v = Math.round(100 * ((r - (l + g)) / r));
    let y;
    return x <= 30 ? y = "VERY_DIFFICULT" : x <= 50 ? y = "DIFFICULT" : x <= 60 ? y = "FAIRLY_DIFFICULT" : y = "GOOD", {
      score: x,
      averageWordsPerSentence: h,
      complexWords: v,
      difficultyToken: y,
      wordCount: r,
      charCount: i.length
    };
  }
  if (["sv", "fi", "da", "no", "nb", "nn"].includes(t)) {
    const s = () => i.replace(/[-'.]/gi, "").split(/[^a-zA-ZöäåÖÄÅÆæØø0-9]/g).filter(Boolean), a = () => {
      const h = /\?|!|\.|\n/g;
      return i.split(h).filter(Boolean);
    }, r = s(), d = r.length, c = r.filter((h) => h.length > 6).length, p = a().length || 1, l = Math.round(d / p + c * 100 / d), g = Number((d / p).toFixed(1)), m = Math.round(100 * (c / d));
    let x;
    return l <= 40 ? x = "GOOD" : l <= 50 ? x = "FAIRLY_DIFFICULT" : l <= 60 ? x = "DIFFICULT" : x = "VERY_DIFFICULT", {
      score: l,
      averageWordsPerSentence: g,
      complexWords: m,
      difficultyToken: x,
      wordCount: d,
      charCount: i.length
    };
  }
  return null;
}
function Ss() {
  const e = _s(N.Found.Readability, f.Readability.Lang);
  let t;
  if (e && (t = {
    test: "READABILITY",
    difficultyLevel: b._(e.difficultyToken),
    ...e
  }, u.results.push(t)), !u.option.headless)
    if (e && t.wordCount > 30) {
      const { score: o, difficultyLevel: n, averageWordsPerSentence: i, complexWords: s, wordCount: a } = t;
      f.Panel.readabilityInfo.innerHTML = `${Math.ceil(o)} <span class="readability-score">${n}</span>`;
      const r = [
        [b._("AVG_SENTENCE"), Math.ceil(i)],
        [b._("COMPLEX_WORDS"), `${s}%`],
        [b._("TOTAL_WORDS"), a]
      ].map(([d, c]) => `<li><strong>${d}</strong> ${c}</li>`).join("");
      f.Panel.readabilityDetails.innerHTML = r;
    } else
      f.Panel.readabilityInfo.innerHTML = `<br>${b._("READABILITY_NOT_ENOUGH")}`;
}
function Cs() {
  if (!u.option.embeddedContentPlugin) return;
  const e = (t) => t.getAttribute("src") || t.querySelector("source[src]")?.getAttribute("src") || t.querySelector("[src]")?.getAttribute("src") || null;
  N.Found.Audio.forEach((t) => {
    R({
      test: "EMBED_AUDIO",
      element: t,
      type: "warning",
      dismiss: e(t)
    });
  }), N.Found.Videos.forEach((t) => {
    const o = t.querySelector("track"), n = o?.getAttribute("src");
    (!o || !n || n.trim().length === 0) && R({
      test: "EMBED_VIDEO",
      element: t,
      type: "warning",
      dismiss: e(t)
    });
  }), N.Found.Visualizations.forEach((t) => {
    R({
      test: "EMBED_DATA_VIZ",
      element: t,
      type: "warning",
      dismiss: e(t)
    });
  }), N.Found.iframes.forEach((t) => {
    if (Z(t) || ge(t) || De(t) || ["VIDEO", "AUDIO"].includes(t.tagName))
      return;
    if (gt(t) && u.option.checks.EMBED_UNFOCUSABLE) {
      R({
        test: "EMBED_UNFOCUSABLE",
        element: t,
        dismiss: e(t),
        developer: !0
      });
      return;
    }
    const o = Ae(t), n = o === "noAria" ? t.getAttribute("title") || "" : o;
    if (V(n).length === 0) {
      const i = t?.tagName.toLowerCase();
      R({
        test: "EMBED_MISSING_TITLE",
        element: t,
        dismiss: e(t),
        developer: !0,
        content: b.sprintf("EMBED_MISSING_TITLE", i),
        args: [i]
      });
    }
  }), N.Found.EmbeddedContent.forEach((t) => {
    Z(t) || ge(t) || ["VIDEO", "AUDIO"].includes(t.tagName) || R({
      test: "EMBED_GENERAL",
      element: t,
      type: "warning",
      dismiss: e(t)
    });
  });
}
function ks() {
  if (u.option.checks.QA_BAD_LINK && N.Found.CustomErrorLinks.forEach((n) => {
    const i = G(n);
    R({
      test: "QA_BAD_LINK",
      element: n,
      args: [n, i],
      inline: !0,
      dismiss: n.tagName + n.textContent
    });
  }), u.option.checks.QA_STRONG_ITALICS && N.Found.StrongItalics.forEach((n) => {
    const i = G(n);
    i.length !== 0 && i.length > 400 && R({
      test: "QA_STRONG_ITALICS",
      element: n.parentNode,
      type: "warning",
      args: [i],
      dismiss: n.tagName + n.textContent
    });
  }), u.option.checks.QA_BLOCKQUOTE && N.Found.Blockquotes.forEach((n) => {
    const i = G(n);
    i.length !== 0 && i.length < 25 && R({
      test: "QA_BLOCKQUOTE",
      element: n,
      type: "warning",
      args: [i],
      dismiss: i
    });
  }), N.Found.Tables.forEach((n) => {
    if (!n || Z(n)) return;
    const i = n.getAttribute("role")?.trim().toLowerCase();
    if (i && !["table", "grid", "treegrid"].includes(i)) return;
    const s = n.querySelectorAll('th, [role="columnheader"]'), a = n.querySelectorAll("h1, h2, h3, h4, h5, h6"), r = n.querySelector("tr") ? n.querySelector("tr").innerHTML : n.innerHTML, d = [];
    n.querySelectorAll("[headers]").forEach((c) => {
      (c.getAttribute("headers") || "").split(/\s+/).filter(Boolean).forEach((p) => {
        try {
          const l = n.querySelector(`#${CSS.escape(p)}`), g = l?.getAttribute("role")?.trim().toLowerCase();
          l && (l.tagName === "TH" || g === "rowheader" || g === "columnheader") || d.push(p);
        } catch {
          d.push(p);
        }
      });
    }), d.length > 0 && R({
      test: "TABLES_INVALID_HEADERS_REF",
      element: n,
      args: [d.join(", ")],
      dismiss: r,
      developer: !0
    }), s.length === 0 && R({
      test: "TABLES_MISSING_HEADINGS",
      element: n,
      dismiss: r
    }), a.forEach((c) => {
      R({
        test: "TABLES_SEMANTIC_HEADING",
        element: c,
        dismiss: r
      });
    }), s.forEach((c) => {
      c.textContent.trim().length === 0 && R({
        test: "TABLES_EMPTY_HEADING",
        element: c,
        dismiss: r,
        position: "afterbegin"
      });
    });
  }), u.option.checks.QA_FAKE_HEADING) {
    const n = (d, c) => {
      R({
        test: "QA_FAKE_HEADING",
        element: d,
        type: "warning",
        args: [c],
        dismiss: c,
        inline: !0
      });
    }, i = (d) => {
      const c = d.previousElementSibling;
      return c && ["H1", "H2", "H3", "H4", "H5", "H6"].includes(c.tagName);
    }, s = 'h1, h2, h3, h4, h5, h6, [role="heading"][aria-level], blockquote, table', a = (d) => {
      const c = parseFloat(U(d).fontSize), p = G(d), l = p.match(/[.;?!"]/) === null, g = p.length >= 4 && p.length <= 120;
      c >= 24 && !M(d, s) && g && l && !i(d) && n(d, p);
    }, r = (d) => {
      const c = d.innerHTML.trim();
      if (c[0] !== "<" || !/^<\s*(?:strong|b)\b[^>]*>[\s\S]*?<\/\s*(?:strong|b)\s*>(?:<\s*\/?\s*br\s*>|$)/i.test(c) || M(d, s)) return;
      const l = d.querySelector("strong, b");
      if (!l) return;
      const g = G(l);
      if (g.length < 3 || g.length > 120 || /[.:;?!"']/.test(g)) return;
      const m = de(d, ["strong", "b"]).textContent.trim();
      m && m.length <= 250 || n(l, g);
    };
    N.Found.Paragraphs.forEach((d) => {
      a(d), r(d);
    });
  }
  if (u.option.checks.QA_FAKE_LIST) {
    const n = new RegExp(/(([023456789][\d\s])|(1\d))/, ""), i = new RegExp(/(^[aA1αаΑ]|[^\p{Alphabetic}\s])[-\s.)\]]/, "u"), s = new RegExp(/\p{Extended_Pictographic}/, "u"), a = ["a", "A", "α", "Α", "а", "А", "1"], r = /[([{#]/, d = { 2: "1", b: "a", B: "A", β: "α", Β: "Α", б: "а", Б: "А" }, c = (m) => m.replace(/^b|^B|^б|^Б|^β|^В|^[2-9]/, (x) => d[x]);
    let p = "", l = "", g = !1;
    N.Found.Paragraphs.forEach((m, x) => {
      let h = !1, v = !1;
      l = l || G(m).replace(/[([]/g, "");
      const y = l.substring(0, 2), A = y.match(i), T = y.match(n), L = y.match(s), I = r.test(y.charAt(0)), w = /^(I|i)[.)\]]/.test(y);
      if (y.length > 0 && y !== p && !T && (A || L || I || w)) {
        if (/^[A-Z]\.[A-Z]\./.test(l)) return;
        const E = N.Found.Paragraphs[x + 1];
        if (E) {
          if (h = G(E).replace(/[([]/g, "").substring(0, 2), a.includes(h?.toLowerCase().trim())) return;
          const S = c(h);
          if (w)
            h.toLowerCase() === "ii" && (v = !0);
          else if (A) {
            const C = y.charAt(0), _ = h.charAt(0);
            c(_) === C && !/\w/.test(h.charAt(1)) && (v = !0);
          } else L && !g && S.match(s) && (v = !0, g = !0);
        }
        if (!v) {
          const S = m?.querySelector("br");
          if (S) {
            let C = S.previousSibling?.textContent?.trim() ? S.nextSibling?.nodeValue : null;
            C && (C = C.replace(/<\/?[^>]+(>|$)/g, "").trim().substring(0, 2), (r.test(C.charAt(0)) || y === c(C) || w && C.toLowerCase() === "ii" || !g && C.match(s)) && (v = !0));
          }
        }
        v ? (R({
          test: "QA_FAKE_LIST",
          element: m,
          type: "warning",
          args: [y, l],
          dismiss: m.textContent
        }), p = y) : p = "";
      } else
        p = "";
      l = h && "";
    });
  }
  if (u.option.checks.QA_UPPERCASE) {
    const n = (i) => {
      let s = "";
      i.tagName === "LI" ? i.childNodes.forEach((d) => {
        d.nodeType === 3 && (s += d.textContent);
      }) : s = G(i);
      const a = /([A-Z]{2,}[ ])([A-Z]{2,}[ ])([A-Z]{2,}[ ])([A-Z]{2,})/g, r = s.match(a);
      r && r[0].length > 10 && R({
        test: "QA_UPPERCASE",
        element: i,
        type: "warning",
        args: [s],
        dismiss: s
      });
    };
    N.Found.Paragraphs.forEach(n), N.Found.Headings.forEach(n), N.Found.Lists.forEach(n), N.Found.Blockquotes.forEach(n);
  }
  const e = u.option.checks.QA_UNDERLINE, t = u.option.checks.QA_SMALL_TEXT, o = u.option.checks.QA_JUSTIFY;
  if (e || o || t) {
    const n = t?.fontSize || 10, i = 'a[href], button, abbr, [role="link"], [role="button"], [tabindex="0"], [onclick]', s = (a) => {
      let r = a.firstChild;
      for (; r; ) {
        if (r.nodeType === 3 && r.nodeValue.trim().length > 0) return !0;
        r = r.nextSibling;
      }
      return !1;
    };
    for (let a = 0; a < N.Found.Everything.length; a++) {
      const r = N.Found.Everything[a];
      if (!s(r)) continue;
      const d = U(r), c = U(r.parentElement), p = G(r);
      if (e && (d.textDecorationLine === "underline" || M(r, "u")) && !r.matches(i) && !M(r, i) && R({
        test: "QA_UNDERLINE",
        element: r,
        type: "warning",
        args: [p],
        dismiss: p,
        inline: !0
      }), t) {
        const l = parseFloat(d.fontSize);
        l > 1 && l <= n && (c ? parseFloat(c.fontSize) : null) !== l && !M(r, "sup, sub") && R({
          test: "QA_SMALL_TEXT",
          element: r,
          type: "warning",
          args: [p],
          dismiss: p,
          dismissAll: !0
        });
      }
      o && d.textAlign === "justify" && (c ? c.textAlign : null) !== d.textAlign && R({
        test: "QA_JUSTIFY",
        element: r,
        type: "warning",
        args: [p],
        dismiss: p,
        dismissAll: !0
      });
    }
  }
  u.option.checks.QA_SUBSCRIPT && N.Found.Subscripts.forEach((n) => {
    const i = G(n);
    i.length >= 80 && R({
      test: "QA_SUBSCRIPT",
      element: n,
      type: "warning",
      args: [i],
      dismiss: n.tagName + i,
      inline: !0
    });
  }), u.option.checks.QA_NESTED_COMPONENTS && N.Found.NestedComponents.forEach((n) => {
    const i = u.option.checks.QA_NESTED_COMPONENTS.sources || '[role="tablist"], details';
    n.querySelector(i) && R({
      test: "QA_NESTED_COMPONENTS",
      element: n,
      type: "warning",
      dismiss: n.textContent
    });
  });
}
function Ns() {
  if (!N.Found.Language)
    R({ test: "META_LANG" });
  else {
    const { valid: i, suggest: s } = lt(N.Found.Language, b._("LANG_CODE"));
    i || R(s ? {
      test: "META_LANG_SUGGEST",
      args: [N.Found.Language, s],
      developer: !0
    } : {
      test: "META_LANG_VALID",
      args: ["html", N.Found.Language],
      developer: !0
    });
  }
  N.Found.LangTags?.length > 0 && N.Found.LangTags.forEach((i) => {
    const s = i.getAttribute("lang")?.trim(), { valid: a, suggest: r } = lt(s, b._("LANG_CODE"));
    if (!a) {
      const d = i.tagName === "IMG" ? i.getAttribute("alt") || "" : i.nodeType === 3 ? G(i) : "";
      R(r ? {
        test: "META_LANG_SUGGEST",
        element: i,
        args: [s, r],
        developer: !0,
        dismiss: s + d
      } : {
        test: "META_LANG_VALID",
        element: i,
        args: [i.tagName.toLowerCase(), s],
        developer: !0,
        dismiss: s + d
      });
    }
  });
  const e = document.querySelector("title:not(svg title)");
  (!e || G(e).length === 0) && R({ test: "META_TITLE", developer: !0 });
  const t = document.querySelector('meta[name="viewport"]')?.getAttribute("content");
  if (t) {
    const i = t.split(",").reduce((a, r) => {
      const [d, c] = r.split("=").map((p) => p.trim());
      return a[d] = c, a;
    }, {});
    ["no", "0"].includes(i["user-scalable"]) && R({ test: "META_SCALABLE", developer: !0 });
    const s = parseFloat(i["maximum-scale"]);
    !Number.isNaN(s) && s < 2 && R({ test: "META_MAX", developer: !0 });
  }
  Array.from(
    document.querySelectorAll('meta[http-equiv="refresh" i]')
  ).some((i) => parseInt(i.getAttribute("content"), 10) > 0) && R({ test: "META_REFRESH", developer: !0 }), u.option.checks.DUPLICATE_ID && document.querySelectorAll("body, [data-sa11y-has-shadow-root]").forEach((i) => {
    const s = /* @__PURE__ */ new Set(), a = (d, c) => {
      d.forEach((p) => {
        const { id: l } = p;
        typeof l != "string" || l.trim().length === 0 || (s.has(l) ? Array.from(
          c.querySelectorAll(
            `a[href*="${l}"], label[for*="${l}"], [aria-labelledby*="${l}"], [aria-controls*="${l}"], [aria-owns*="${l}"]`
          )
        ).length > 0 && R({
          test: "DUPLICATE_ID",
          element: p,
          args: [l],
          dismiss: `${l}${p.textContent}`,
          developer: !0
        }) : s.add(l));
      });
    };
    if (i.shadowRoot) {
      const d = Array.from(
        i.shadowRoot.querySelectorAll(`[id]:not(${f.Exclusions.Container})`)
      );
      a(d, i.shadowRoot);
    }
    const r = Array.from(
      i.querySelectorAll(`[id]:not(${f.Exclusions.Container})`)
    );
    a(r, i);
  }), N.Found.Buttons.forEach((i) => {
    if (De(i) && le(i) || ge(i) || Z(i)) return;
    const a = oe(i), r = a.replace(/['"-\.\s]+/g, "").toLowerCase(), d = G(i), c = i.tagName + i.id + i.className, p = i.querySelector(":scope [aria-labelledby], :scope [aria-label]") || i.getAttribute("aria-labelledby") || i.getAttribute("aria-label"), l = i.querySelector(":scope [aria-labelledby]") || i.getAttribute("aria-labelledby");
    if (r.length === 0 || !f.Global.unpronounceablePattern.test(r)) {
      R(l ? {
        test: "BTN_EMPTY_LABELLEDBY",
        element: i,
        content: b._("BTN_EMPTY_LABELLEDBY") + b._("BTN_TIP"),
        dismiss: c + a,
        developer: !0
      } : {
        test: "BTN_EMPTY",
        element: i,
        content: b._("BTN_EMPTY") + b._("BTN_TIP"),
        dismiss: c,
        developer: !0
      });
      return;
    }
    const g = Xt(i, a);
    p && g && R({
      test: "LABEL_IN_NAME",
      element: i,
      type: "warning",
      args: [d, a],
      content: b._("LABEL_IN_NAME") + b._("ACC_NAME_TIP"),
      dismiss: c + a,
      developer: !0
    }), a.includes(b._("BTN")) && R({
      test: "BTN_ROLE_IN_NAME",
      element: i,
      type: "warning",
      args: [a],
      content: b._("BTN_ROLE_IN_NAME") + b._("ACC_NAME_TIP") + b._("BTN_TIP"),
      dismiss: c + a,
      developer: !0
    });
  }), N.Found.Lists.forEach((i) => {
    if (!M(i, "ul, ol, menu")) {
      const s = G(i);
      R({
        test: "UNCONTAINED_LI",
        element: i,
        args: [s],
        dismiss: s,
        developer: !0
      });
    }
  }), N.Found.TabIndex.forEach((i) => {
    i.tabIndex > 0 && R({
      test: "TABINDEX_ATTR",
      element: i,
      dismiss: i.tagName + i.id + i.className,
      developer: !0
    });
  });
  const n = /* @__PURE__ */ new Set();
  N.Found.Focusable.forEach((i) => {
    const s = i.hasAttribute("disabled") || i.disabled === !0;
    if (n.has(i) || s || gt(i) || Z(i))
      return;
    const a = M(i, '[aria-hidden="true"]');
    a && (Z(a) || (R({
      test: "HIDDEN_FOCUSABLE",
      element: i,
      args: [fe(i.outerHTML, 100)],
      dismiss: i.tagName + i.id + i.className,
      developer: !0,
      margin: "0"
    }), n.add(i)));
  });
}
function Ps(e) {
  return e;
}
async function Q(e = u.option.checkRoot, t = u.option.readabilityRoot, o = u.option.fixedRoots) {
  try {
    u.start = performance.now(), f.initializeRoot(e, t, o), ko(), N.initializeElements(), xs(), Ts(), ys(), Is(), ks(), Ns(), Cs(), Ls(), (u.option.readabilityPlugin || k.getItem("sa11y-readability") === "On") && Ss(), await fs(), u.option.customChecks === !0 ? Ps() : typeof u.option.customChecks == "object" ? u.results.push(...u.option.customChecks) : u.option.customChecks === "listen" && (u.customChecksRunning = !0, u.customChecksFinished = 0, document.addEventListener("sa11y-resume", () => {
      u.customChecksFinished += 1, u.customChecksFinished === 1 && (u.customChecksRunning = !1, _t());
    }), window.setTimeout(() => {
      if (u.customChecksRunning === !0)
        throw u.customChecksRunning = !1, _t(), Error("Sa11y: No custom checks were returned.");
    }, u.option.delayCustomCheck), window.setTimeout(() => {
      const n = new CustomEvent("sa11y-custom-checks");
      document.dispatchEvent(n);
    }, 0)), u.customChecksRunning || _t();
  } catch (n) {
    const i = new Kn(n);
    throw document.body.appendChild(i), n;
  }
}
function Rs() {
  if (u.option.detectSPArouting === !0) {
    let e = window.location.href;
    const t = Hn(async () => {
      e !== window.location.href && (k.getItem("sa11y-panel") === "Closed" || !k.getItem("sa11y-panel") ? Q() : (J(!1), await Q()), e = window.location.href);
    }, 250);
    window.addEventListener("click", t), window.addEventListener("keydown", t);
  }
}
function Os() {
  f.Panel.toggle.addEventListener("click", (e) => {
    k.getItem("sa11y-panel") === "Opened" ? (e.preventDefault(), k.setItem("sa11y-panel", "Closed"), f.Panel.toggle.classList.remove("on"), f.Panel.toggle.setAttribute("aria-expanded", "false"), J(), f.Panel.notifCount.textContent.trim().length === 0 ? f.Panel.notifBadge.style.display = "none" : f.Panel.notifBadge.style.display = "flex") : (e.preventDefault(), k.setItem("sa11y-panel", "Opened"), f.Panel.toggle.classList.add("on"), f.Panel.toggle.setAttribute("aria-expanded", "true"), J(), Q(), Ge(f.Panel.outlineList, f.Panel.outlineContent));
  }), k.getItem("sa11y-panel") === "Opened" && (f.Panel.toggle.classList.add("on"), f.Panel.toggle.setAttribute("aria-expanded", "true"), f.Panel.panel.style.transform = ""), document.onkeydown = (e) => {
    const t = e || window.event;
    t.altKey && t.code === "KeyA" && (f.Panel.toggle.click(), f.Panel.toggle.focus());
  };
}
const Ms = 'h1,h2,h3,div,p,span,ol,ul,li,a,label,button,svg,strong,kbd,pre,code{all:unset;box-sizing:border-box!important}:before,:after{all:unset}div{display:block}*{font-family:var(--sa11y-font-face)!important;-webkit-font-smoothing:auto!important}p,ol,ul,li,label{font-size:var(--sa11y-normal-text);text-align:start;letter-spacing:normal;word-break:break-word;font-weight:400;line-height:22px!important}.sa11y-overflow{overflow:auto}img,video,iframe{border:0;max-width:100%;height:auto;display:block}audio{max-width:100%}#toggle{bottom:var(--sa11y-toggle-y-offset);z-index:2147483644;color:#fff;cursor:pointer;background:linear-gradient(#00bcd4,#e040fb);background-color:var(--sa11y-setting-switch-bg-off);width:55px;height:55px;background-size:150% 150%;border-radius:50%;justify-content:center;align-items:center;margin:0;transition:all .2s ease-in-out;display:flex;position:fixed;inset-inline-end:var(--sa11y-toggle-x-offset);overflow:visible}#toggle.left,#toggle.top-left{inset-inline-start:var(--sa11y-toggle-x-offset)}#toggle.top-left,#toggle.top-right{top:var(--sa11y-toggle-y-offset);bottom:unset}@media screen and (forced-colors:active){#toggle{border:2px solid #0000;background:buttonface!important}}#toggle svg{width:35px;height:35px}#toggle svg path{fill:var(--sa11y-panel-bg)}#toggle:hover,#toggle:focus{animation:3s sa11y-toggle-gradient}#toggle:disabled:hover,#toggle:disabled:focus{animation:none}#toggle.on{background:linear-gradient(#e040fb,#00bcd4)}#toggle:disabled{cursor:not-allowed;background:unset;background-color:var(--sa11y-setting-switch-bg-off)}#notification-badge{color:#fff;text-wrap:nowrap;background-color:#eb0000;border:1px solid #0000;border-radius:12px;justify-content:center;align-items:center;min-width:20px;padding:2.5px;font-size:13.5px;font-weight:400;line-height:1;display:none;position:absolute;top:-5.5px;right:-3px}#notification-badge.notification-badge-warning{color:var(--sa11y-warning-text);background-color:var(--sa11y-warning-hover);border:1px solid var(--sa11y-warning)}#panel{bottom:calc(var(--sa11y-toggle-y-offset) + var(--sa11y-panel-y-gap));z-index:2147483643;visibility:hidden;background:var(--sa11y-panel-bg);opacity:0;transition:transform .2s,opacity .2s background .2s;transform-origin:100% 100%;border-radius:4px;position:fixed;inset-inline-end:calc(var(--sa11y-toggle-x-offset) + var(--sa11y-panel-x-gap));overflow:visible;transform:scale(0);box-shadow:0 0 20px 4px #9aa1b126,0 4px 80px -8px #24282f40,0 4px 4px -2px #5b5e6926}#panel.left,#panel.top-left{inset-inline-start:calc(var(--sa11y-toggle-x-offset) + var(--sa11y-panel-x-gap));inset-inline-end:unset}#panel.top-right,#panel.top-left{top:calc(var(--sa11y-toggle-y-offset) + var(--sa11y-panel-y-gap) + 10px);bottom:unset}#panel.active{visibility:visible;opacity:1;transform-origin:100% 100%;height:auto;transition:transform .2s,opacity .2s;transform:scale(1)}@media screen and (forced-colors:active){#panel{border:2px solid #0000}}#panel.active.left,[dir=rtl] #panel.active{transform-origin:0 100%}#panel.active.top-left{transform-origin:0 0}#panel.active.top-right{transform-origin:100% 0}#panel-alert{opacity:0;display:none}#panel-alert.active{opacity:1;display:block}#panel-alert-content{max-height:400px;color:var(--sa11y-panel-primary);border-bottom:1px solid var(--sa11y-panel-bg-splitter);align-items:center;padding:15px 20px 15px 15px;line-height:22px;position:relative;overflow-y:auto}:is(.top-left,.top-right) #panel-alert-content{border:0}#panel-alert-preview .cp-none,#panel-alert-preview .close-tooltip{display:none}#panel-alert-preview,#panel-alert-text{font-family:var(--sa11y-font-face);font-size:var(--sa11y-normal-text);font-weight:400;line-height:22px}.panel-alert-preview{background:var(--sa11y-panel-bg-secondary);border:1px dashed var(--sa11y-panel-bg-splitter);border-radius:5px;margin-top:15px;padding:10px}.panel-alert-preview ul{margin:0;margin-block:0;padding:0;position:relative}.panel-alert-preview li{margin:5px 10px 0 20px;padding-bottom:5px;display:list-item}.panel-alert-preview .good .colour{font-weight:400}.element-preview{overflow-wrap:break-word;background-color:var(--sa11y-element-preview);border-radius:3.2px;margin-bottom:10px;padding:5px}.dismiss-alert,button[data-sa11y-dismiss]{color:var(--sa11y-panel-primary);cursor:pointer;background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);margin:10px 5px 5px 0;border-radius:5px;margin-inline-end:15px;padding:4px 8px;display:block}:is(.dismiss-alert,button[data-sa11y-dismiss]):hover,:is(.dismiss-alert,button[data-sa11y-dismiss]):focus{background:var(--sa11y-shortcut-hover)}h2{font-size:var(--sa11y-large-text);margin-bottom:3px;font-weight:700;display:block}h3{font-size:calc(var(--sa11y-large-text) - 1px);margin-bottom:3px;font-weight:600;display:block}strong{font-weight:600}a:not(#outline-list a,#images-list a){color:var(--sa11y-hyperlink);cursor:pointer;border-bottom:0;font-weight:500;text-decoration:underline}a:hover,a:focus{text-decoration:none!important}hr{background:var(--sa11y-panel-bg-splitter);opacity:1;border:none;height:1px;margin:10px 0;padding:0}#dismiss-button,#skip-button{text-align:center;cursor:pointer;background:var(--sa11y-panel-bg-secondary);border:1px solid var(--sa11y-button-outline);border-radius:50px;width:36px;height:36px;margin-inline:2px 8px;transition:all .1s ease-in-out;display:none;position:relative;overflow:visible}:is(#dismiss-button,#skip-button).active{display:block}:is(#dismiss-button,#skip-button):disabled{cursor:default;box-shadow:none;background:0 0;border:0}:is(#dismiss-button,#skip-button):before{content:"";position:absolute;inset:-5px}:is(#dismiss-button,#skip-button):hover:not(:disabled),:is(#dismiss-button,#skip-button):focus:not(:disabled){background-color:var(--sa11y-shortcut-hover)}:is(#panel.top-left,#panel.left) #dismiss-button,:is(#panel.top-left,#panel.left) #skip-button{margin-inline:8px 2px}.dismiss-icon{background:var(--sa11y-setting-switch-bg-off);width:24px;height:24px;-webkit-mask:var(--sa11y-dismiss-icon) center no-repeat;mask:var(--sa11y-dismiss-icon) center no-repeat;margin-bottom:-4px;display:inline-block}.dismiss-group{display:flex}@media screen and (forced-colors:active){.dismiss-icon{filter:invert()}}#panel-content{color:var(--sa11y-panel-primary);align-items:center;padding:6px;display:flex}#panel-content.errors .panel-icon,#panel-content.good .panel-icon,#panel-content.warnings .panel-icon{width:26px;height:26px;margin:0 auto}#panel-content.errors .panel-icon{background:var(--sa11y-panel-error);-webkit-mask:var(--sa11y-error-svg) center no-repeat;mask:var(--sa11y-error-svg) center no-repeat;margin-top:-2px}#panel-content.good .panel-icon{background:var(--sa11y-good);-webkit-mask:var(--sa11y-good-svg) center no-repeat;mask:var(--sa11y-good-svg) center no-repeat}#panel-content.warnings .panel-icon{background:var(--sa11y-yellow-text);transform:scaleX(var(--sa11y-icon-direction));-webkit-mask:var(--sa11y-warning-svg) center no-repeat;mask:var(--sa11y-warning-svg) center no-repeat}@media screen and (forced-colors:active){#panel-content.errors .panel-icon,#panel-content.good .panel-icon,#panel-content.warnings .panel-icon{filter:invert()}}#panel.top-left #panel-content,#panel.left #panel-content{flex-direction:row-reverse}#status{font-size:var(--sa11y-large-text);color:var(--sa11y-panel-primary)}.panel-count{color:var(--sa11y-panel-primary);background-color:var(--sa11y-panel-badge);border-radius:4px;margin-left:3px;margin-right:3px;padding:2px 4px;font-size:15px;font-weight:400}#page-issues,#images-panel,#settings-panel,#outline-panel{color:var(--sa11y-panel-primary);opacity:0;display:none}#page-issues.active,#images-panel.active,#settings-panel.active,#outline-panel.active{opacity:1;display:block}.panel-header{text-align:start;justify-content:space-between;padding:10px 15px 0;display:flex}#about-content{padding-top:5px}#about-content p{margin-block-end:1em;display:block}#images-content,#page-issues-content,#settings-content,#outline-content{border-bottom:1px solid var(--sa11y-panel-bg-splitter);padding:0 15px 10px}.top-right :is(#images-content,#page-issues-content,#settings-content,#outline-content),.top-left :is(#images-content,#page-issues-content,#settings-content,#outline-content){border:0}#images-content{padding-inline:5px}#page-issues-content{max-height:160px;overflow-y:auto}#settings-content{max-height:400px;overflow-y:auto}#images-content,#outline-content{max-height:250px;overflow-y:auto}#settings-panel .sa11y-red-text,#outline-panel .outline-list-item.sa11y-red-text{color:var(--sa11y-red-text)}#outline-list{margin:0;padding:0;display:block}#outline-list button{cursor:pointer;text-decoration:none;display:block}#outline-list button:hover,#outline-list button:focus{background:var(--sa11y-panel-outline-hover);box-shadow:0 0 0 2px var(--sa11y-panel-outline-hover);border-radius:5px;display:block}#outline-list li{margin-top:0;margin-bottom:4.5px;padding:0;list-style-type:none;display:block}#outline-list li:first-child{margin-top:5px}#outline-list .outline-2{margin-inline-start:15px}#outline-list .outline-3{margin-inline-start:30px}#outline-list .outline-4{margin-inline-start:45px}#outline-list .outline-5{margin-inline-start:60px}#outline-list .outline-6{margin-inline-start:75px}#images-list{margin:0;padding:0;display:block}#images-list button{cursor:pointer;min-height:44px;margin:10px 5px;text-decoration:none;display:block}#images-list button:hover,#images-list button:focus{background:var(--sa11y-panel-outline-hover);box-shadow:0 0 0 2px var(--sa11y-panel-outline-hover);border-radius:5px;display:block}#images-list li{border-bottom:1px solid var(--sa11y-panel-bg-splitter);flex-direction:column;width:100%;list-style-type:none;display:flex;overflow:hidden}#images-list li.no-images{padding-inline:10px}#images-list li:last-child{border:none;margin-bottom:0}#images-list li .alt{padding:2px 5px 10px}#images-list li .edit-block{justify-content:flex-end;margin-bottom:15px;display:flex}#images-list li .edit{color:var(--sa11y-panel-primary);cursor:pointer;background:var(--sa11y-panel-bg-secondary);border:2px solid var(--sa11y-button-outline);border-radius:5px;margin-inline-end:5px;padding:4px 7px;text-decoration:none;position:relative}#images-list li .edit:hover,#images-list li .edit:focus{background-color:var(--sa11y-shortcut-hover)}#images-list li .edit:before{content:"";position:absolute;inset:-10px}#images-list li img{float:inline-start;border-radius:5px;max-width:110px;margin:5px}#images-list li.warning .alt{color:var(--sa11y-yellow-text)}#images-list li.warning .image-icon,#images-list li.warning img{background-color:var(--sa11y-yellow-text);border:5px solid var(--sa11y-yellow-text)}#images-list li.error .alt{color:var(--sa11y-error)}#images-list li.error .image-icon,#images-list li.error img{background-color:var(--sa11y-error);border:5px solid var(--sa11y-error)}#images-list li.good img{background-color:var(--sa11y-panel-badge);border:5px solid var(--sa11y-panel-badge)}@media screen and (forced-colors:active){#images-list li img{background-color:buttonborder!important}}.move-panel-icon{vertical-align:middle;background:var(--sa11y-setting-switch-bg-off);width:18px;height:18px;-webkit-mask:var(--sa11y-move-panel-icon);mask:var(--sa11y-move-panel-icon)}.info-icon{vertical-align:middle;background:var(--sa11y-setting-switch-bg-off);width:20px;height:20px;-webkit-mask:var(--sa11y-info-icon);mask:var(--sa11y-info-icon);margin-top:-2px}.sun-icon{vertical-align:middle;background:var(--sa11y-setting-switch-bg-off);width:18px;height:18px;-webkit-mask:var(--sa11y-sun-icon);mask:var(--sa11y-sun-icon)}.moon-icon{vertical-align:middle;background:var(--sa11y-setting-switch-bg-off);width:18px;height:18px;-webkit-mask:var(--sa11y-moon-icon);mask:var(--sa11y-moon-icon)}.error-icon{background:var(--sa11y-error-text);width:16px;height:16px;-webkit-mask:var(--sa11y-error-svg);mask:var(--sa11y-error-svg);margin-bottom:-4px}.hidden-icon{background:var(--sa11y-panel-primary);width:16px;height:16px;-webkit-mask:var(--sa11y-hidden-icon-svg);mask:var(--sa11y-hidden-icon-svg);margin-bottom:-3px}.link-icon{background:var(--sa11y-panel-primary);width:16px;height:16px;-webkit-mask:var(--sa11y-link-icon-svg);mask:var(--sa11y-link-icon-svg);margin-bottom:-3.5px}.image-icon{background:var(--sa11y-img-icon-color);width:50px;height:50px;-webkit-mask:var(--sa11y-img-icon);mask:var(--sa11y-img-icon);float:inline-start;outline:2px solid var(--sa11y-panel-badge);border-radius:5px;max-width:110px;margin:0 5px}.image-icon,.move-panel-icon,.info-icon,.sun-icon,.moon-icon,.error-icon,.hidden-icon,.link-icon{display:inline-block;-webkit-mask-position:50%;mask-position:50%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}.error-badge .link-icon,.error-badge .hidden-icon{background:var(--sa11y-error-text)!important}.warning-badge .link-icon,.warning-badge .hidden-icon{background:var(--sa11y-panel-bg)}.error .hidden-icon,.error .link-icon{background:var(--sa11y-error-text)}.warning .hidden-icon,.warning .link-icon{background:var(--sa11y-panel-bg)}@media screen and (forced-colors:active){.move-panel-icon,.sun-icon,.moon-icon,.info-icon,.error-icon,.link-icon,.hidden-icon{filter:invert()}}#outline-list [class$=-icon]{margin-inline-end:3px}#panel-controls{border-bottom:1px solid var(--sa11y-panel-bg-splitter);border-radius:0 0 4px 4px;display:flex;overflow:hidden}#panel-controls button{width:100%;height:30px;font-size:var(--sa11y-normal-text);color:var(--sa11y-panel-secondary);text-align:center;cursor:pointer;background:var(--sa11y-panel-bg-secondary);background-color:var(--sa11y-panel-bg-secondary);border-top:1px solid var(--sa11y-panel-bg-splitter);border-inline-end:1px solid var(--sa11y-panel-bg-splitter);opacity:1;outline:0;margin:0;padding:0;font-weight:400;line-height:0;transition:background .2s;display:block;position:relative}#panel-controls button:hover,#panel-controls button.active{background-color:var(--sa11y-shortcut-hover)}#panel-controls button.active{font-weight:600}#export-results-mode,label{width:100%;color:var(--sa11y-panel-primary);margin:0;font-weight:400;display:inline-block}label:not(#colour-filter-mode,#export-results-mode){cursor:pointer}#panel.right #panel-controls[data-image-panel]:after{content:"";width:80px}#panel.left #panel-controls[data-image-panel]:before{content:"";width:50px}#settings-panel .export-results-group,#settings-panel .appearance-group{margin:5px 0;display:flex}:is(#settings-panel .export-results-group,#settings-panel .appearance-group) button{text-align:center;white-space:nowrap;cursor:pointer;border:2px solid var(--sa11y-setting-switch-bg-off);border-radius:5px;justify-content:center;align-items:center;min-width:44px;min-height:34px;margin:2px 0;margin-inline:8px 4px;display:flex;position:relative}:is(#settings-panel .export-results-group,#settings-panel .appearance-group) button:hover,:is(#settings-panel .export-results-group,#settings-panel .appearance-group) button:focus,:is(#settings-panel .export-results-group,#settings-panel .appearance-group) button:focus-within{background:var(--sa11y-shortcut-hover)}:is(#settings-panel .export-results-group,#settings-panel .appearance-group) button:before{content:"";position:absolute;inset:-7px}:is(#settings-panel .export-results-group,#settings-panel .appearance-group) button .text{color:var(--sa11y-setting-switch-bg-off);padding:0 6px;font-weight:600}#settings-panel .switch{width:105px;height:44px;font-size:var(--sa11y-normal-text);color:var(--sa11y-setting-switch-bg-off);text-align:end;cursor:pointer;background:0 0;border:0;border-radius:5px;margin:0;padding:7px 10px;font-weight:600;position:relative}#settings-panel .switch[aria-pressed=true]:after,#settings-panel .switch[aria-pressed=false]:after{vertical-align:middle;content:"";width:27px;height:27px;margin:0 4px 4px;display:inline-block}#settings-panel .switch[aria-pressed=true]:after{background:var(--sa11y-setting-switch-bg-on);-webkit-mask:var(--sa11y-setting-switch-on-svg) center no-repeat;mask:var(--sa11y-setting-switch-on-svg) center no-repeat}#settings-panel .switch[aria-pressed=false]:after{background:var(--sa11y-setting-switch-bg-off);-webkit-mask:var(--sa11y-setting-switch-off-svg) center no-repeat;mask:var(--sa11y-setting-switch-off-svg) center no-repeat}@media screen and (forced-colors:active){#settings-panel .switch[aria-pressed=false]:after,#settings-panel .switch[aria-pressed=true]:after{filter:invert()}}#settings-panel #settings-options li{border-bottom:1px solid var(--sa11y-panel-bg-splitter);justify-content:space-between;align-items:center;padding:1px 0;list-style-type:none;display:flex}#settings-panel #settings-options li:last-child{border:none}#page-issues{color:var(--sa11y-panel-primary);align-items:center}#page-issues-list{margin-top:4px;display:block}#page-issues-list li{margin:0 0 10px;display:block}:is(.top-left,.top-right).has-page-issues #page-issues{border-top:1px solid var(--sa11y-panel-bg-splitter);margin-top:-1px}#panel-colour-filters{font-family:var(--sa11y-font-face);font-size:var(--sa11y-normal-text);color:var(--sa11y-panel-primary);align-items:center;font-weight:400;line-height:22px;display:none}#panel-colour-filters.active{display:flex}#panel-colour-filters p{width:100%;padding:6px 20px 6px 6px}#panel-colour-filters[data-colour=protanopia],#panel-colour-filters[data-colour=deuteranopia],#panel-colour-filters[data-colour=tritanopia],#panel-colour-filters[data-colour=monochromacy]{border-bottom:6px solid #0000;border-image-slice:1}#panel-colour-filters[data-colour=protanopia]{border-image:linear-gradient(94deg,#786719 11%,#e0c600 36% 47%,#0059e3 75%,#0042aa 91%)}#panel-colour-filters[data-colour=deuteranopia]{border-image:linear-gradient(270deg,#567fdb,#a4a28d 48%,#c3ad14 69%,#a79505)}#panel-colour-filters[data-colour=tritanopia]{border-image:linear-gradient(270deg,#b1506f,#0696c1,#f3a9ba 70%,#d91c5d 87%,#fe015c)}#panel-colour-filters[data-colour=monochromacy]{border-image:linear-gradient(270deg,#000,#a7a7a7,#000)}#panel-colour-filters[data-colour=protanopia] .panel-icon{background:var(--sa11y-panel-error)}#panel-colour-filters[data-colour=deuteranopia] .panel-icon{background:var(--sa11y-good-hover)}#panel-colour-filters[data-colour=tritanopia] .panel-icon{background:var(--sa11y-blue)}#panel-colour-filters[data-colour=monochromacy] .panel-icon{background:linear-gradient(90deg,#38a459 20%,red,#0077c8 80%)}#panel-colour-filters .panel-icon{width:30px;height:30px;-webkit-mask:var(--sa11y-low-vision-icon) center no-repeat;mask:var(--sa11y-low-vision-icon) center no-repeat;margin-inline:10px 5px}@media screen and (forced-colors:active){#panel-colour-filters .panel-icon{forced-color-adjust:none}}.select-dropdown{align-items:center;display:flex;position:relative}.select-dropdown:after{content:" ";border-top:5px solid var(--sa11y-setting-switch-bg-off);border-left:5px solid #0000;border-right:5px solid #0000;position:absolute;inset-inline-end:14px}#colour-filter-select{appearance:none;height:30px;font-size:var(--sa11y-normal-text);color:var(--sa11y-setting-switch-bg-off);text-align:end;vertical-align:middle;cursor:pointer;background:var(--sa11y-panel-bg);border:2px solid var(--sa11y-setting-switch-bg-off);border-radius:5px;margin-inline-end:4px;padding-inline:5px 25px;font-weight:400;position:relative}#colour-filter-select:hover,#colour-filter-select:focus{background:var(--sa11y-shortcut-hover)}#colour-filter-select.active{box-shadow:0 0 0 2px var(--sa11y-setting-switch-bg-on)}#colour-filter-item label,#colour-filter-item select{margin-top:10px;margin-bottom:9px}#readability-panel{opacity:0;display:none}#readability-panel.active{opacity:1;display:block}:is(.top-left,.top-right) #readability-content{border-top:1px solid var(--sa11y-panel-bg-splitter)}:is(.left,.right) #readability-content{border-bottom:1px solid var(--sa11y-panel-bg-splitter)}#readability-content{width:100%;color:var(--sa11y-panel-primary);padding:10px 15px}#readability-details{white-space:normal;margin:0;padding:0;list-style-type:none;display:block}#readability-details li{margin:0;padding-inline-end:10px;list-style-type:none;display:inline-block}.readability-score{color:var(--sa11y-panel-primary);background-color:var(--sa11y-panel-badge);border-radius:4px;margin-inline-start:5px;padding:2px 5px}#readability-info{margin-inline-start:10px}#skip-to-page-issues{display:none}#panel.has-page-issues #skip-to-page-issues{clip:rect(0,0,0,0);white-space:nowrap;background:var(--sa11y-panel-bg);border:0;border-radius:5px;width:1px;height:1px;margin:-1px;padding:0;font-weight:600;display:block;position:absolute;overflow:hidden}#panel.has-page-issues #skip-to-page-issues:focus{z-index:1;clip:auto;white-space:normal;width:auto;height:auto;margin:0;padding:7px 10px;overflow:visible}.hide-settings-border{border-bottom:0!important;padding:0 15px!important}.hide-settings-border li:not(#colour-filter-item){display:none!important}.hide-settings-border #about-content{display:none}.hide-settings-border.scrollable:before{all:unset}#contrast-tools{display:none}::-webkit-scrollbar{width:7px;height:6px}::-webkit-scrollbar-thumb{background-color:var(--sa11y-button-outline);border-radius:6px}*{scrollbar-color:var(--sa11y-button-outline);scrollbar-width:thin}.scrollable:before{z-index:-1;content:"";background:linear-gradient(180deg,#0000 70%,var(--sa11y-panel-scrollable) 100%);background-position:bottom;width:100%;height:250px;transition:opacity 1s ease-in-out;animation:1s ease-in-out fade;position:absolute;inset:auto 0}#settings-content.scrollable:before{height:400px}.top-right .scrollable:before,.top-left .scrollable:before{border-radius:5px}#page-issues-content.scrollable:before{height:160px}#panel-alert.scrollable:before{height:200px}@keyframes sa11y-toggle-gradient{0%{background-position:50% 0}50%{background-position:50% 100%}to{background-position:50% 0}}@keyframes fade{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;transform:none!important}}#panel{width:440px}#container:lang(en) #panel{width:315px}:is(#container:lang(nb),#container:lang(da),#container:lang(pl),#container:lang(de),#container:lang(sv),#container:lang(zh)) #panel{width:365px}:is(#container:lang(bg),#container:lang(es)) .switch:not(#export-results-item *){width:230px!important}#container:not(:lang(en),:lang(de)) .switch{width:205px}';
class Cn extends HTMLElement {
  connectedCallback() {
    this.attachShadow({ mode: "open" });
    const t = document.createElement("style");
    t.textContent = Ms + je, this.shadowRoot.appendChild(t);
    const o = '<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 48c114.953 0 208 93.029 208 208 0 114.953-93.029 208-208 208-114.953 0-208-93.029-208-208 0-114.953 93.029-208 208-208m0-40C119.033 8 8 119.033 8 256s111.033 248 248 248 248-111.033 248-248S392.967 8 256 8zm0 56C149.961 64 64 149.961 64 256s85.961 192 192 192 192-85.961 192-192S362.039 64 256 64zm0 44c19.882 0 36 16.118 36 36s-16.118 36-36 36-36-16.118-36-36 16.118-36 36-36zm117.741 98.023c-28.712 6.779-55.511 12.748-82.14 15.807.851 101.023 12.306 123.052 25.037 155.621 3.617 9.26-.957 19.698-10.217 23.315-9.261 3.617-19.699-.957-23.316-10.217-8.705-22.308-17.086-40.636-22.261-78.549h-9.686c-5.167 37.851-13.534 56.208-22.262 78.549-3.615 9.255-14.05 13.836-23.315 10.217-9.26-3.617-13.834-14.056-10.217-23.315 12.713-32.541 24.185-54.541 25.037-155.621-26.629-3.058-53.428-9.027-82.141-15.807-8.6-2.031-13.926-10.648-11.895-19.249s10.647-13.926 19.249-11.895c96.686 22.829 124.283 22.783 220.775 0 8.599-2.03 17.218 3.294 19.249 11.895 2.029 8.601-3.297 17.219-11.897 19.249z"/></svg>', n = k.getItem("sa11y-developer") === "On", i = k.getItem("sa11y-readability") === "On", s = k.getItem("sa11y-theme"), a = k.getItem("sa11y-position"), r = u.option.checkAllHideToggles, d = u.option.developerPlugin ? `
      <li id="developer-item" ${r ? "hidden" : ""}>
        <label id="check-developer" for="developer-toggle">
          ${b._("DEVELOPER_CHECKS")} <span class="info-icon"></span>
        </label>
        <button type="button" id="developer-toggle" class="switch"
          aria-labelledby="check-developer" aria-describedby="check-developer-desc"
          aria-pressed="${n ? "true" : "false"}"
        >${n ? b._("ON") : b._("OFF")}</button>
        <div id="check-developer-desc" hidden>${b._("DEVELOPER_DESC")}</div>
      </li>` : "", c = f.Readability.Plugin ? `
      <li id="readability-item">
        <label id="check-readability" for="readability-toggle">${b._("READABILITY")} <span class="info-icon"></span></label>
        <button type="button" id="readability-toggle" aria-labelledby="check-readability" class="switch"
          aria-pressed="${i ? "true" : "false"}"
        >${i ? b._("ON") : b._("OFF")}</button>
        <div id="check-readability-desc" hidden>${b._("READABILITY_DESC")}</div>
      </li>` : "", p = u.option.colourFilterPlugin ? `
      <li id="colour-filter-item">
        <label id="colour-filter-mode" for="colour-filter-select">${b._("COLOUR_FILTER")}</label>
        <div class="select-dropdown">
          <select id="colour-filter-select">
            <option value="0">${b._("OFF")}</option>
            <option value="1">${b._("PROTANOPIA")}</option>
            <option value="2">${b._("DEUTERANOPIA")}</option>
            <option value="3">${b._("TRITANOPIA")}</option>
            <option value="4">${b._("MONOCHROMACY")}</option>
          </select>
        </div>
      </li>` : "", l = u.option.colourFilterPlugin ? `
      <div id="panel-colour-filters" role="region" aria-labelledby="colour-filter-mode">
        <div id="filter-icon" class="panel-icon" role="img"></div>
        <p>${b._("COLOUR_FILTER_MESSAGE")}</p>
      </div>` : "", g = u.option.exportResultsPlugin ? `
      <li id="export-results-item">
        <span id="export-results-mode">${b._("EXPORT_RESULTS")}</span>
        <div class="export-results-group">
          <button type="button" id="export-csv" aria-describedby="export-results-mode">
            <span class="text">CSV</span>
          </button>
          <button type="button" id="export-html" aria-describedby="export-results-mode">
            <span class="text">HTML</span>
          </button>
        </div>
      </li>` : "", m = u.option.aboutContent ? `
      <div id="about-content">${u.option.aboutContent}</div>` : "", x = `
      <button type="button" aria-expanded="false" id="toggle" part="toggle" aria-describedby="notification-badge" aria-label="${b._("MAIN_TOGGLE_LABEL")}" class="${a}" disabled>
        ${o}
        <div id="notification-badge">
          <span id="notification-count"></span>
          <span id="notification-text" class="visually-hidden"></span>
        </div>
      </button>`, h = `
      <div id="page-issues">
        <div class="panel-header">
          <h2 id="page-issues-header" tabindex="-1">${b._("PAGE_ISSUES")}</h2>
        </div>
        <div id="page-issues-content">
          <ul id="page-issues-list" role="list" aria-labelledby="page-issues-header"></ul>
        </div>
      </div>`, v = `
      <div id="outline-panel" role="tabpanel" aria-labelledby="outline-header">
        <div class="panel-header">
          <h2 id="outline-header" tabindex="-1">${b._("OUTLINE")}</h2>
        </div>
        <div id="outline-content">
          <ul id="outline-list" tabindex="0" role="list" aria-labelledby="outline-header"></ul>
        </div>
        <div id="readability-panel">
          <div id="readability-content">
            <h2 class="header-text-inline">${b._("READABILITY")}</h2>
            <p id="readability-info"></p>
            <ul id="readability-details"></ul>
          </div>
        </div>
      </div>`, y = u.option.showImageOutline ? `
      <div id="images-panel" role="tabpanel" aria-labelledby="images-header">
        <div class="panel-header">
          <h2 id="images-header" tabindex="-1">${b._("IMAGES")}</h2>
        </div>
        <div id="images-content">
          <ul id="images-list" tabindex="0" role="list" aria-labelledby="images-header"></ul>
        </div>
      </div>` : "", T = a === "left" || a === "top-left" ? "true" : "false", L = u.option.showMovePanelToggle ? `<button type="button" id="move-panel"
          aria-label="${b._("MOVE_PANEL")}"
          aria-pressed="${T}"
          ><span class="move-panel-icon"></span>
        </button>` : "", I = `
      <div id="settings-panel" role="tabpanel" aria-labelledby="settings-header">
        <div class="panel-header">
          <h2 id="settings-header" tabindex="-1">${b._("SETTINGS")}</h2>
        </div>
        <div id="settings-content">
          <ul id="settings-options">
            ${d}
            ${c}
            <li id="appearance-item">
              <span id="appearance-mode">${b._("APPEARANCE")}</span>
              <div class="appearance-group">
                <button type="button" id="theme-toggle"
                  aria-label="${b._("DARK_MODE")}"
                  aria-pressed=${s === "dark" ? "true" : "false"}
                ><span class="moon-icon"></span></button>
                ${L}
              </div>
            </li>
            ${g}
            ${p}
          </ul>
          ${m}
        </div>
      </div>`, w = `
      <div id="panel-alert" role="alertdialog" aria-labelledby="alert-heading" aria-describedby="panel-alert-text">
        <div id="panel-alert-content">
          <div class="header-text">
            <button type="button" id="close-alert" class="close-btn" aria-label="${b._("ALERT_CLOSE")}"></button>
            <h2 id="alert-heading">${b._("ALERT_TEXT")}</h2>
          </div>
          <p id="panel-alert-text"></p>
          <div id="panel-alert-preview"></div>
        </div>
      </div>`, E = `
      <div id="panel-content">
        <button type="button" id="skip-to-page-issues">
          ${b._("SKIP_TO_PAGE_ISSUES")}
        </button>
        <button type="button" id="skip-button">
          <div class="panel-icon"></div>
          <span class="visually-hidden">${b._("SHORTCUT_SR")}</span>
        </button>
        <button type="button" id="dismiss-button">
          <div class="dismiss-icon"></div>
          <span id="dismiss-tooltip" class="visually-hidden"></span>
        </button>
        <div id="panel-text">
          <h1 class="visually-hidden">${b._("PANEL_HEADING")}</h1>
          <p id="status" aria-live="polite"></p>
        </div>
      </div>`, S = `<button type="button" role="tab" aria-expanded="false" id="images-toggle" aria-controls="images-panel">${b._("IMAGES")}</button>`, _ = `
      <div id="panel-controls" role="tablist" aria-orientation="horizontal" ${u.option.showImageOutline ? "data-image-panel" : ""}>
        <button type="button" role="tab" aria-expanded="false" id="outline-toggle" aria-controls="outline-panel">${b._("OUTLINE")}</button>
        ${u.option.showImageOutline ? S : ""}
        <button type="button" role="tab" aria-expanded="false" id="settings-toggle" aria-controls="settings-panel">${b._("SETTINGS")}</button>
      </div>`, P = document.createElement("div");
    P.setAttribute("id", "container"), P.setAttribute("role", "region"), P.setAttribute("data-sa11y-version", "5.0.9"), P.setAttribute("lang", b._("LANG_CODE")), P.setAttribute("aria-label", b._("CONTAINER_LABEL")), P.setAttribute("dir", f.Global.langDirection), a === "top-left" || a === "top-right" ? P.innerHTML = `
        ${x}
        <div id="panel" class="${a}" part="panel">
          ${E}
          ${l}
          ${_}
          ${v}
          ${y}
          ${I}
          ${w}
          ${h}
        </div>` : P.innerHTML = `
        ${x}
        <div id="panel" class="${a}" part="panel">
          ${h}
          ${v}
          ${y}
          ${I}
          ${w}
          ${l}
          ${E}
          ${_}
        </div>`, this.shadowRoot.appendChild(P), f.initializePanelSelectors();
  }
}
function Ds() {
  u.option.showMovePanelToggle && (f.Panel.movePanelToggle.onclick = async () => {
    const s = k.getItem("sa11y-position"), [a, r] = s.includes("top") ? ["top-right", "top-left"] : ["right", "left"], d = s === a ? r : a;
    k.setItem("sa11y-position", d), [a, r].forEach((c) => {
      f.Panel.toggle.classList.replace(c, d), f.Panel.panel.classList.replace(c, d);
    }), f.Panel.movePanelToggle.setAttribute(
      "aria-pressed",
      s === a ? "true" : "false"
    );
  }), u.option.developerPlugin ? f.Panel.developerToggle.onclick = async () => {
    k.getItem("sa11y-developer") === "On" ? (k.setItem("sa11y-developer", "Off"), f.Panel.developerToggle.textContent = `${b._("OFF")}`, f.Panel.developerToggle.setAttribute("aria-pressed", "false"), J(!1), await Q()) : (k.setItem("sa11y-developer", "On"), f.Panel.developerToggle.textContent = `${b._("ON")}`, f.Panel.developerToggle.setAttribute("aria-pressed", "true"), J(!1), await Q());
  } : k.setItem("sa11y-developer", "Off"), f.Readability.Plugin && (f.Panel.readabilityToggle.onclick = async () => {
    k.getItem("sa11y-readability") === "On" ? (k.setItem("sa11y-readability", "Off"), f.Panel.readabilityToggle.textContent = `${b._("OFF")}`, f.Panel.readabilityToggle.setAttribute("aria-pressed", "false"), f.Panel.readability.classList.remove("active"), J(!1), await Q()) : (k.setItem("sa11y-readability", "On"), f.Panel.readabilityToggle.textContent = `${b._("ON")}`, f.Panel.readabilityToggle.setAttribute("aria-pressed", "true"), f.Panel.readability.classList.add("active"), J(!1), await Q());
  }, k.getItem("sa11y-readability") === "On" && f.Panel.readability.classList.add("active"));
  const e = window.matchMedia("(prefers-color-scheme: dark)"), { themeToggle: t } = f.Panel, { html: o } = f.Global, n = (s) => {
    o.setAttribute("data-sa11y-theme", s), k.setItem("sa11y-theme", s);
    const a = t.querySelector("span").classList;
    a.toggle("moon-icon", s === "light"), a.toggle("sun-icon", s === "dark"), t.setAttribute("aria-pressed", s === "dark" ? "true" : "false");
  }, i = k.getItem("sa11y-theme") || (e.matches ? "dark" : "light");
  n(i), e.addEventListener("change", () => {
    n(e.matches ? "dark" : "light");
  }), t.onclick = () => {
    const a = (k.getItem("sa11y-theme") || (e.matches ? "dark" : "light")) === "dark" ? "light" : "dark";
    n(a);
  }, u.option.colourFilterPlugin && f.Panel.colourFilterSelect.addEventListener("change", async () => {
    const s = parseInt(f.Panel.colourFilterSelect.value, 10), a = ["protanopia", "deuteranopia", "tritanopia", "monochromacy"], r = [
      b._("RED_EYE"),
      b._("GREEN_EYE"),
      b._("BLUE_EYE"),
      b._("MONO_EYE")
    ];
    s >= 1 && s <= 4 ? window.matchMedia("(forced-colors: active)").matches ? Ie(b._("COLOUR_FILTER_HIGH_CONTRAST")) : (document.body.setAttribute("data-sa11y-filter", a[s - 1]), f.Panel.colourFilterIcon.setAttribute("aria-label", r[s - 1]), qt(
      ["data-sa11y-error", "data-sa11y-warning", "data-sa11y-good", "data-sa11y-overflow"],
      "document"
    ), Vt(["sa11y-annotation", "sa11y-tooltips", "sa11y-heading-label"], "document"), f.Panel.skipButton.disabled = !0, f.Panel.pageIssues.classList.remove("active"), f.Panel.settingsContent.classList.add("hide-settings-border"), f.Panel.controls.hidden = !0, f.Panel.colourFilterSelect.classList.add("active"), f.Panel.colourPanel.classList.add("active"), f.Panel.colourPanel.setAttribute("data-colour", a[s - 1]), f.Panel.content.hidden = !0) : (Qn(), J(!1), await Q());
  });
}
const kn = () => {
  f.Panel.outlineToggle.classList.add("active"), f.Panel.outline.classList.add("active"), f.Panel.outlineToggle.setAttribute("aria-expanded", "true"), k.setItem("sa11y-outline", "Opened"), Ge(f.Panel.outlineList, f.Panel.outlineContent), z("sa11y-heading-label", "document").forEach((o) => {
    o.hidden = !1;
  });
  const t = new CustomEvent("sa11y-build-heading-outline");
  document.dispatchEvent(t);
}, Ct = () => {
  f.Panel.outline.classList.remove("active"), f.Panel.outlineToggle.classList.remove("active"), f.Panel.outlineToggle.setAttribute("aria-expanded", "false"), k.setItem("sa11y-outline", "Closed"), z("sa11y-heading-label", "document").forEach((t) => {
    t.hidden = !0;
  });
}, Nn = () => {
  f.Panel.imagesToggle.classList.add("active"), f.Panel.images.classList.add("active"), f.Panel.imagesToggle.setAttribute("aria-expanded", "true"), k.setItem("sa11y-images", "Opened"), Ge(f.Panel.imagesList, f.Panel.imagesContent);
  const e = new CustomEvent("sa11y-build-image-outline");
  document.dispatchEvent(e);
}, kt = () => {
  u.option.showImageOutline && (f.Panel.imagesToggle.classList.remove("active"), f.Panel.images.classList.remove("active"), f.Panel.imagesToggle.setAttribute("aria-expanded", "false"), k.setItem("sa11y-images", "Closed"));
}, Pn = () => {
  f.Panel.settingsToggle.classList.add("active"), f.Panel.settings.classList.add("active"), f.Panel.settingsToggle.setAttribute("aria-expanded", "true"), k.setItem("sa11y-settings", "Opened"), Ge(
    f.Panel.settingsContent,
    f.Panel.settingsContent,
    b._("SETTINGS")
  );
}, Nt = () => {
  f.Panel.settings.classList.remove("active"), f.Panel.settingsToggle.classList.remove("active"), f.Panel.settingsToggle.setAttribute("aria-expanded", "false"), k.setItem("sa11y-settings", "Closed");
};
function Bs() {
  f.Panel.outlineToggle.addEventListener("click", () => {
    f.Panel.outlineToggle.getAttribute("aria-expanded") === "true" ? Ct() : (kn(), Nt(), kt()), f.Panel.outlineHeader.focus();
  }), k.getItem("sa11y-outline") === "Opened" && kn(), u.option.showImageOutline && (f.Panel.imagesToggle.addEventListener("click", () => {
    f.Panel.imagesToggle.getAttribute("aria-expanded") === "true" ? kt() : (Nn(), Ct(), Nt()), f.Panel.imagesHeader.focus();
  }), k.getItem("sa11y-images") === "Opened" && Nn()), f.Panel.settingsToggle.addEventListener("click", () => {
    f.Panel.settingsToggle.getAttribute("aria-expanded") === "true" ? Nt() : (Pn(), Ct(), kt()), f.Panel.settingsHeader.focus();
  }), k.getItem("sa11y-settings") === "Opened" && Pn(), f.Panel.skipToPageIssues.addEventListener("click", () => {
    f.Panel.pageIssuesHeader.focus();
  });
  const e = f.Panel.panel.querySelectorAll("[role=tab]");
  e.length !== 0 && e.forEach((t) => {
    t.addEventListener("keydown", (o) => {
      if (o.key !== "ArrowRight" && o.key !== "ArrowLeft")
        return;
      o.preventDefault();
      const n = Array.from(e).indexOf(o.currentTarget);
      let i;
      o.key === "ArrowRight" ? i = (n + 1) % e.length : i = (n - 1 + e.length) % e.length, e[i].focus();
    });
  });
}
class Gs extends HTMLElement {
  constructor() {
    super(), this.attachShadow({ mode: "open" });
  }
}
class Fs extends HTMLElement {
  constructor() {
    super(), this.attachShadow({ mode: "open" });
  }
  connectedCallback() {
    const t = document.createElement("style");
    t.textContent = `
      span.heading-label {
        background-color: #777678;
        background-image: linear-gradient(to bottom right, #b629ce, #16aec2);
        border-radius: 5px;
        border: 1px solid #36a5c3;
        color: white;
        display: inline-block;
        font-family: var(--sa11y-font-face);
        font-weight: 500;
        font-size: 18px;
        line-height: normal;
        letter-spacing: normal;
        margin: -5px 0 0 5px;
        padding: 3px;
        position: absolute;
        text-shadow: 1px 1px black;
        -webkit-text-fill-color: white;
        word-break: keep-all;
        z-index: 200;
      }
      @media screen and (forced-colors: active) {
        span.heading-label {
          border: 2px solid transparent;
        }
      }`, this.shadowRoot.appendChild(t);
  }
}
function Hs() {
  const { option: e } = u;
  e.doNotRun?.trim() && document.querySelector(e.doNotRun) || (customElements.define("sa11y-heading-label", Fs), customElements.define("sa11y-heading-anchor", Gs), customElements.define("sa11y-annotation", Vo), customElements.define("sa11y-tooltips", fo), customElements.define("sa11y-panel-tooltips", _n), customElements.define("sa11y-control-panel", Cn), customElements.define("sa11y-console-error", Kn), f.initializeGlobal(), f.initializeReadability(), f.initializeExclusions(), e.developerChecksOnByDefault && (k.getItem("sa11y-developer") === null || e.checkAllHideToggles) && k.setItem("sa11y-developer", "On"), Rn(() => {
    if (e.headless) {
      Q(), k.removeItem("sa11y-dismissed-digest");
      return;
    }
    const t = k.getItem("sa11y-position"), o = f.Global.panelPosition, n = (s) => s.includes("top");
    e.showMovePanelToggle && (!t || n(t) !== n(o)) && k.setItem("sa11y-position", o);
    const i = new Cn();
    document.body.appendChild(i), Ds(), Bs(), Ko(), Rs(), Os(), u.panelTooltips = new _n(), document.body.appendChild(u.panelTooltips), f.Panel.toggle.disabled = e.delayCheck >= 700, setTimeout(() => {
      J(), Q();
    }, e.delayCheck);
  }));
}
class Us {
  constructor(t) {
    yo(t), Hs(), Object.assign(this, So, {
      checkAll: Q,
      resetAll: J,
      find: z,
      enabled: bi,
      disabled: hi
    });
  }
  // Get main results array.
  get results() {
    return u.results;
  }
  // Get found elements.
  get elements() {
    return N.Found;
  }
}
export {
  b as Lang,
  Us as Sa11y
};

The same content is in 8 releases, Joomla 6.2.0-beta3 to 6.3.0-alpha1. See them all, or every version of this file.