| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865 |
- "use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2576],{72576:(e,t,o)=>{o.r(t);o.d(t,{Accordion:()=>oi,AccordionItem:()=>ei,Anchor:()=>_i,AnchoredRegion:()=>Ui,Avatar:()=>en,Badge:()=>an,Breadcrumb:()=>sn,BreadcrumbItem:()=>un,Button:()=>gn,Card:()=>xn,Checkbox:()=>Fn,Combobox:()=>Dn,DataGrid:()=>Rn,DataGridCell:()=>On,DataGridRow:()=>Nn,DateField:()=>qn,DelegatesARIAToolbar:()=>Ds,DesignSystemProvider:()=>Qn,Dialog:()=>al,DirectionalStyleSheetBehavior:()=>Zi,Disclosure:()=>ll,Divider:()=>dl,FoundationToolbar:()=>Vs,Listbox:()=>hl,Menu:()=>bl,MenuItem:()=>vl,NumberField:()=>yl,Option:()=>Fl,PaletteRGB:()=>nt,Picker:()=>Js,PickerList:()=>rc,PickerListItem:()=>ic,PickerMenu:()=>Qs,PickerMenuOption:()=>tc,Progress:()=>Tl,ProgressRing:()=>jl,Radio:()=>Ol,RadioGroup:()=>Pl,Search:()=>Gl,Select:()=>_l,Skeleton:()=>Ul,Slider:()=>Kl,SliderLabel:()=>as,StandardLuminance:()=>he,SwatchRGB:()=>se,Switch:()=>ls,Tab:()=>ps,TabPanel:()=>ds,Tabs:()=>fs,TextArea:()=>$s,TextField:()=>ws,Toolbar:()=>js,Tooltip:()=>Ls,TreeItem:()=>Ms,TreeView:()=>_s,accentColor:()=>Xo,accentFillActive:()=>pr,accentFillActiveDelta:()=>vo,accentFillFocus:()=>gr,accentFillFocusDelta:()=>$o,accentFillHover:()=>hr,accentFillHoverDelta:()=>mo,accentFillRecipe:()=>dr,accentFillRest:()=>ur,accentFillRestDelta:()=>fo,accentForegroundActive:()=>jr,accentForegroundActiveDelta:()=>wo,accentForegroundFocus:()=>zr,accentForegroundFocusDelta:()=>ko,accentForegroundHover:()=>Dr,accentForegroundHoverDelta:()=>yo,accentForegroundRecipe:()=>Tr,accentForegroundRest:()=>Vr,accentForegroundRestDelta:()=>xo,accentPalette:()=>Zo,accordionItemStyles:()=>Qa,accordionStyles:()=>Ya,addJupyterLabThemeChangeListener:()=>_a,allComponents:()=>lc,anchorStyles:()=>Ei,anchoredRegionStyles:()=>Wi,applyJupyterTheme:()=>Xa,avatarStyles:()=>Qi,badgeStyles:()=>rn,baseHeightMultiplier:()=>At,baseHorizontalSpacingMultiplier:()=>Mt,baseLayerLuminance:()=>Gt,bodyFont:()=>It,breadcrumbItemStyles:()=>dn,breadcrumbStyles:()=>ln,buttonStyles:()=>pn,cardStyles:()=>$n,checkboxStyles:()=>wn,checkboxTemplate:()=>kn,comboboxStyles:()=>Vn,controlCornerRadius:()=>Et,dataGridCellStyles:()=>Ln,dataGridRowStyles:()=>Bn,dataGridStyles:()=>zn,dateFieldStyles:()=>Un,dateFieldTemplate:()=>Xn,density:()=>_t,designSystemProviderStyles:()=>tl,designSystemProviderTemplate:()=>el,designUnit:()=>qt,dialogStyles:()=>rl,direction:()=>Ut,disabledOpacity:()=>Xt,disclosureStyles:()=>nl,dividerStyles:()=>cl,elementScale:()=>Wt,errorColor:()=>fa,errorFillActive:()=>ya,errorFillFocus:()=>wa,errorFillHover:()=>xa,errorFillRecipe:()=>va,errorFillRest:()=>$a,errorForegroundActive:()=>Ra,errorForegroundFocus:()=>Ia,errorForegroundHover:()=>Pa,errorForegroundRecipe:()=>Ha,errorForegroundRest:()=>Na,errorPalette:()=>ma,fillColor:()=>sr,focusStrokeInner:()=>ra,focusStrokeInnerRecipe:()=>oa,focusStrokeOuter:()=>ta,focusStrokeOuterRecipe:()=>ea,focusStrokeWidth:()=>Yt,foregroundOnAccentActive:()=>$r,foregroundOnAccentActiveLarge:()=>Fr,foregroundOnAccentFocus:()=>xr,foregroundOnAccentFocusLarge:()=>Cr,foregroundOnAccentHover:()=>vr,foregroundOnAccentHoverLarge:()=>kr,foregroundOnAccentLargeRecipe:()=>yr,foregroundOnAccentRecipe:()=>fr,foregroundOnAccentRest:()=>mr,foregroundOnAccentRestLarge:()=>wr,foregroundOnErrorActive:()=>Ta,foregroundOnErrorActiveLarge:()=>Ba,foregroundOnErrorFocus:()=>Va,foregroundOnErrorFocusLarge:()=>La,foregroundOnErrorHover:()=>Sa,foregroundOnErrorHoverLarge:()=>za,foregroundOnErrorLargeRecipe:()=>Da,foregroundOnErrorRecipe:()=>Fa,foregroundOnErrorRest:()=>Ca,foregroundOnErrorRestLarge:()=>ja,heightNumberAsToken:()=>ba,horizontalSliderLabelStyles:()=>ts,imgTemplate:()=>tn,isDark:()=>ge,jpAccordion:()=>ri,jpAccordionItem:()=>ti,jpAnchor:()=>qi,jpAnchoredRegion:()=>Xi,jpAvatar:()=>on,jpBadge:()=>nn,jpBreadcrumb:()=>cn,jpBreadcrumbItem:()=>hn,jpButton:()=>bn,jpCard:()=>yn,jpCheckbox:()=>Cn,jpCombobox:()=>jn,jpDataGrid:()=>In,jpDataGridCell:()=>Hn,jpDataGridRow:()=>Pn,jpDateField:()=>Zn,jpDesignSystemProvider:()=>ol,jpDialog:()=>il,jpDisclosure:()=>sl,jpDivider:()=>ul,jpListbox:()=>pl,jpMenu:()=>fl,jpMenuItem:()=>$l,jpNumberField:()=>wl,jpOption:()=>Cl,jpPicker:()=>Ks,jpPickerList:()=>ac,jpPickerListItem:()=>nc,jpPickerMenu:()=>ec,jpPickerMenuOption:()=>oc,jpProgress:()=>Vl,jpProgressRing:()=>zl,jpRadio:()=>Hl,jpRadioGroup:()=>Rl,jpSearch:()=>El,jpSelect:()=>ql,jpSkeleton:()=>Xl,jpSlider:()=>Ql,jpSliderLabel:()=>is,jpSwitch:()=>ss,jpTab:()=>gs,jpTabPanel:()=>us,jpTabs:()=>ms,jpTextArea:()=>xs,jpTextField:()=>ks,jpToolbar:()=>zs,jpTooltip:()=>Os,jpTreeItem:()=>Gs,jpTreeView:()=>qs,listboxStyles:()=>Sn,menuItemStyles:()=>ml,menuStyles:()=>gl,neutralColor:()=>Wo,neutralFillActive:()=>Hr,neutralFillActiveDelta:()=>So,neutralFillFocus:()=>Nr,neutralFillFocusDelta:()=>To,neutralFillHover:()=>Or,neutralFillHoverDelta:()=>Co,neutralFillInputActive:()=>Ar,neutralFillInputActiveDelta:()=>jo,neutralFillInputFocus:()=>Mr,neutralFillInputFocusDelta:()=>zo,neutralFillInputHover:()=>Ir,neutralFillInputHoverDelta:()=>Do,neutralFillInputRecipe:()=>Pr,neutralFillInputRest:()=>Rr,neutralFillInputRestDelta:()=>Vo,neutralFillLayerRecipe:()=>Kr,neutralFillLayerRest:()=>Qr,neutralFillLayerRestDelta:()=>Ao,neutralFillRecipe:()=>Br,neutralFillRest:()=>Lr,neutralFillRestDelta:()=>Fo,neutralFillStealthActive:()=>qr,neutralFillStealthActiveDelta:()=>Oo,neutralFillStealthFocus:()=>Wr,neutralFillStealthFocusDelta:()=>Ho,neutralFillStealthHover:()=>_r,neutralFillStealthHoverDelta:()=>Lo,neutralFillStealthRecipe:()=>Gr,neutralFillStealthRest:()=>Er,neutralFillStealthRestDelta:()=>Bo,neutralFillStrongActive:()=>Yr,neutralFillStrongActiveDelta:()=>Ro,neutralFillStrongFocus:()=>Jr,neutralFillStrongFocusDelta:()=>Io,neutralFillStrongHover:()=>Zr,neutralFillStrongHoverDelta:()=>Po,neutralFillStrongRecipe:()=>Ur,neutralFillStrongRest:()=>Xr,neutralFillStrongRestDelta:()=>No,neutralForegroundHint:()=>ia,neutralForegroundHintRecipe:()=>aa,neutralForegroundRecipe:()=>na,neutralForegroundRest:()=>la,neutralLayer1:()=>tr,neutralLayer1Recipe:()=>er,neutralLayer2:()=>rr,neutralLayer2Recipe:()=>or,neutralLayer3:()=>ir,neutralLayer3Recipe:()=>ar,neutralLayer4:()=>lr,neutralLayer4Recipe:()=>nr,neutralLayerCardContainer:()=>Jo,neutralLayerCardContainerRecipe:()=>Yo,neutralLayerFloating:()=>Qo,neutralLayerFloatingRecipe:()=>Ko,neutralPalette:()=>Uo,neutralStrokeActive:()=>ua,neutralStrokeActiveDelta:()=>Eo,neutralStrokeDividerRecipe:()=>pa,neutralStrokeDividerRest:()=>ga,neutralStrokeDividerRestDelta:()=>qo,neutralStrokeFocus:()=>ha,neutralStrokeFocusDelta:()=>_o,neutralStrokeHover:()=>da,neutralStrokeHoverDelta:()=>Go,neutralStrokeRecipe:()=>sa,neutralStrokeRest:()=>ca,neutralStrokeRestDelta:()=>Mo,numberFieldStyles:()=>xl,optionStyles:()=>kl,pickerListItemStyles:()=>Ys,pickerMenuOptionStyles:()=>Xs,pickerMenuStyles:()=>Us,pickerStyles:()=>Ws,progressRingStyles:()=>Dl,progressStyles:()=>Sl,provideJupyterDesignSystem:()=>sc,radioGroupStyles:()=>Nl,radioStyles:()=>Bl,radioTemplate:()=>Ll,searchStyles:()=>Ml,selectStyles:()=>Tn,skeletonStyles:()=>Wl,sliderLabelStyles:()=>rs,sliderStyles:()=>Jl,strokeWidth:()=>Zt,switchStyles:()=>ns,tabPanelStyles:()=>cs,tabStyles:()=>hs,tabsStyles:()=>bs,textAreaStyles:()=>vs,textFieldStyles:()=>ys,toolbarStyles:()=>Ss,tooltipStyles:()=>Bs,treeItemStyles:()=>As,treeViewStyles:()=>Es,typeRampBaseFontSize:()=>Jt,typeRampBaseLineHeight:()=>Kt,typeRampMinus1FontSize:()=>Qt,typeRampMinus1LineHeight:()=>eo,typeRampMinus2FontSize:()=>to,typeRampMinus2LineHeight:()=>oo,typeRampPlus1FontSize:()=>ro,typeRampPlus1LineHeight:()=>ao,typeRampPlus2FontSize:()=>io,typeRampPlus2LineHeight:()=>no,typeRampPlus3FontSize:()=>lo,typeRampPlus3LineHeight:()=>so,typeRampPlus4FontSize:()=>co,typeRampPlus4LineHeight:()=>uo,typeRampPlus5FontSize:()=>ho,typeRampPlus5LineHeight:()=>po,typeRampPlus6FontSize:()=>go,typeRampPlus6LineHeight:()=>bo,verticalSliderLabelStyles:()=>os});function r(e,t,o){if(isNaN(e)||e<=t){return t}else if(e>=o){return o}return e}function a(e,t,o){if(isNaN(e)||e<=t){return 0}else if(e>=o){return 1}return e/(o-t)}function i(e,t,o){if(isNaN(e)){return t}return t+e*(o-t)}function n(e){return e*(Math.PI/180)}function l(e){return e*(180/Math.PI)}function s(e){const t=Math.round(r(e,0,255)).toString(16);if(t.length===1){return"0"+t}return t}function c(e,t,o){if(isNaN(e)||e<=0){return t}else if(e>=1){return o}return t+e*(o-t)}function d(e,t,o){if(e<=0){return t%360}else if(e>=1){return o%360}const r=(t-o+360)%360;const a=(o-t+360)%360;if(r<=a){return(t-r*e+360)%360}return(t+r*e+360)%360}const u=Math.PI*2;function h(e,t,o){if(isNaN(e)||e<=0){return t%u}else if(e>=1){return o%u}const r=(t-o+u)%u;const a=(o-t+u)%u;if(r<=a){return(t-r*e+u)%u}return(t+r*e+u)%u}function p(e,t){const o=Math.pow(10,t);return Math.round(e*o)/o}class g{constructor(e,t,o,r){this.r=e;this.g=t;this.b=o;this.a=typeof r==="number"&&!isNaN(r)?r:1}static fromObject(e){return e&&!isNaN(e.r)&&!isNaN(e.g)&&!isNaN(e.b)?new g(e.r,e.g,e.b,e.a):null}equalValue(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}toStringHexRGB(){return"#"+[this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringHexRGBA(){return this.toStringHexRGB()+this.formatHexValue(this.a)}toStringHexARGB(){return"#"+[this.a,this.r,this.g,this.b].map(this.formatHexValue).join("")}toStringWebRGB(){return`rgb(${Math.round(i(this.r,0,255))},${Math.round(i(this.g,0,255))},${Math.round(i(this.b,0,255))})`}toStringWebRGBA(){return`rgba(${Math.round(i(this.r,0,255))},${Math.round(i(this.g,0,255))},${Math.round(i(this.b,0,255))},${r(this.a,0,1)})`}roundToPrecision(e){return new g(p(this.r,e),p(this.g,e),p(this.b,e),p(this.a,e))}clamp(){return new g(r(this.r,0,1),r(this.g,0,1),r(this.b,0,1),r(this.a,0,1))}toObject(){return{r:this.r,g:this.g,b:this.b,a:this.a}}formatHexValue(e){return s(i(e,0,255))}}const b={aliceblue:{r:.941176,g:.972549,b:1},antiquewhite:{r:.980392,g:.921569,b:.843137},aqua:{r:0,g:1,b:1},aquamarine:{r:.498039,g:1,b:.831373},azure:{r:.941176,g:1,b:1},beige:{r:.960784,g:.960784,b:.862745},bisque:{r:1,g:.894118,b:.768627},black:{r:0,g:0,b:0},blanchedalmond:{r:1,g:.921569,b:.803922},blue:{r:0,g:0,b:1},blueviolet:{r:.541176,g:.168627,b:.886275},brown:{r:.647059,g:.164706,b:.164706},burlywood:{r:.870588,g:.721569,b:.529412},cadetblue:{r:.372549,g:.619608,b:.627451},chartreuse:{r:.498039,g:1,b:0},chocolate:{r:.823529,g:.411765,b:.117647},coral:{r:1,g:.498039,b:.313725},cornflowerblue:{r:.392157,g:.584314,b:.929412},cornsilk:{r:1,g:.972549,b:.862745},crimson:{r:.862745,g:.078431,b:.235294},cyan:{r:0,g:1,b:1},darkblue:{r:0,g:0,b:.545098},darkcyan:{r:0,g:.545098,b:.545098},darkgoldenrod:{r:.721569,g:.52549,b:.043137},darkgray:{r:.662745,g:.662745,b:.662745},darkgreen:{r:0,g:.392157,b:0},darkgrey:{r:.662745,g:.662745,b:.662745},darkkhaki:{r:.741176,g:.717647,b:.419608},darkmagenta:{r:.545098,g:0,b:.545098},darkolivegreen:{r:.333333,g:.419608,b:.184314},darkorange:{r:1,g:.54902,b:0},darkorchid:{r:.6,g:.196078,b:.8},darkred:{r:.545098,g:0,b:0},darksalmon:{r:.913725,g:.588235,b:.478431},darkseagreen:{r:.560784,g:.737255,b:.560784},darkslateblue:{r:.282353,g:.239216,b:.545098},darkslategray:{r:.184314,g:.309804,b:.309804},darkslategrey:{r:.184314,g:.309804,b:.309804},darkturquoise:{r:0,g:.807843,b:.819608},darkviolet:{r:.580392,g:0,b:.827451},deeppink:{r:1,g:.078431,b:.576471},deepskyblue:{r:0,g:.74902,b:1},dimgray:{r:.411765,g:.411765,b:.411765},dimgrey:{r:.411765,g:.411765,b:.411765},dodgerblue:{r:.117647,g:.564706,b:1},firebrick:{r:.698039,g:.133333,b:.133333},floralwhite:{r:1,g:.980392,b:.941176},forestgreen:{r:.133333,g:.545098,b:.133333},fuchsia:{r:1,g:0,b:1},gainsboro:{r:.862745,g:.862745,b:.862745},ghostwhite:{r:.972549,g:.972549,b:1},gold:{r:1,g:.843137,b:0},goldenrod:{r:.854902,g:.647059,b:.12549},gray:{r:.501961,g:.501961,b:.501961},green:{r:0,g:.501961,b:0},greenyellow:{r:.678431,g:1,b:.184314},grey:{r:.501961,g:.501961,b:.501961},honeydew:{r:.941176,g:1,b:.941176},hotpink:{r:1,g:.411765,b:.705882},indianred:{r:.803922,g:.360784,b:.360784},indigo:{r:.294118,g:0,b:.509804},ivory:{r:1,g:1,b:.941176},khaki:{r:.941176,g:.901961,b:.54902},lavender:{r:.901961,g:.901961,b:.980392},lavenderblush:{r:1,g:.941176,b:.960784},lawngreen:{r:.486275,g:.988235,b:0},lemonchiffon:{r:1,g:.980392,b:.803922},lightblue:{r:.678431,g:.847059,b:.901961},lightcoral:{r:.941176,g:.501961,b:.501961},lightcyan:{r:.878431,g:1,b:1},lightgoldenrodyellow:{r:.980392,g:.980392,b:.823529},lightgray:{r:.827451,g:.827451,b:.827451},lightgreen:{r:.564706,g:.933333,b:.564706},lightgrey:{r:.827451,g:.827451,b:.827451},lightpink:{r:1,g:.713725,b:.756863},lightsalmon:{r:1,g:.627451,b:.478431},lightseagreen:{r:.12549,g:.698039,b:.666667},lightskyblue:{r:.529412,g:.807843,b:.980392},lightslategray:{r:.466667,g:.533333,b:.6},lightslategrey:{r:.466667,g:.533333,b:.6},lightsteelblue:{r:.690196,g:.768627,b:.870588},lightyellow:{r:1,g:1,b:.878431},lime:{r:0,g:1,b:0},limegreen:{r:.196078,g:.803922,b:.196078},linen:{r:.980392,g:.941176,b:.901961},magenta:{r:1,g:0,b:1},maroon:{r:.501961,g:0,b:0},mediumaquamarine:{r:.4,g:.803922,b:.666667},mediumblue:{r:0,g:0,b:.803922},mediumorchid:{r:.729412,g:.333333,b:.827451},mediumpurple:{r:.576471,g:.439216,b:.858824},mediumseagreen:{r:.235294,g:.701961,b:.443137},mediumslateblue:{r:.482353,g:.407843,b:.933333},mediumspringgreen:{r:0,g:.980392,b:.603922},mediumturquoise:{r:.282353,g:.819608,b:.8},mediumvioletred:{r:.780392,g:.082353,b:.521569},midnightblue:{r:.098039,g:.098039,b:.439216},mintcream:{r:.960784,g:1,b:.980392},mistyrose:{r:1,g:.894118,b:.882353},moccasin:{r:1,g:.894118,b:.709804},navajowhite:{r:1,g:.870588,b:.678431},navy:{r:0,g:0,b:.501961},oldlace:{r:.992157,g:.960784,b:.901961},olive:{r:.501961,g:.501961,b:0},olivedrab:{r:.419608,g:.556863,b:.137255},orange:{r:1,g:.647059,b:0},orangered:{r:1,g:.270588,b:0},orchid:{r:.854902,g:.439216,b:.839216},palegoldenrod:{r:.933333,g:.909804,b:.666667},palegreen:{r:.596078,g:.984314,b:.596078},paleturquoise:{r:.686275,g:.933333,b:.933333},palevioletred:{r:.858824,g:.439216,b:.576471},papayawhip:{r:1,g:.937255,b:.835294},peachpuff:{r:1,g:.854902,b:.72549},peru:{r:.803922,g:.521569,b:.247059},pink:{r:1,g:.752941,b:.796078},plum:{r:.866667,g:.627451,b:.866667},powderblue:{r:.690196,g:.878431,b:.901961},purple:{r:.501961,g:0,b:.501961},red:{r:1,g:0,b:0},rosybrown:{r:.737255,g:.560784,b:.560784},royalblue:{r:.254902,g:.411765,b:.882353},saddlebrown:{r:.545098,g:.270588,b:.07451},salmon:{r:.980392,g:.501961,b:.447059},sandybrown:{r:.956863,g:.643137,b:.376471},seagreen:{r:.180392,g:.545098,b:.341176},seashell:{r:1,g:.960784,b:.933333},sienna:{r:.627451,g:.321569,b:.176471},silver:{r:.752941,g:.752941,b:.752941},skyblue:{r:.529412,g:.807843,b:.921569},slateblue:{r:.415686,g:.352941,b:.803922},slategray:{r:.439216,g:.501961,b:.564706},slategrey:{r:.439216,g:.501961,b:.564706},snow:{r:1,g:.980392,b:.980392},springgreen:{r:0,g:1,b:.498039},steelblue:{r:.27451,g:.509804,b:.705882},tan:{r:.823529,g:.705882,b:.54902},teal:{r:0,g:.501961,b:.501961},thistle:{r:.847059,g:.74902,b:.847059},tomato:{r:1,g:.388235,b:.278431},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:.25098,g:.878431,b:.815686},violet:{r:.933333,g:.509804,b:.933333},wheat:{r:.960784,g:.870588,b:.701961},white:{r:1,g:1,b:1},whitesmoke:{r:.960784,g:.960784,b:.960784},yellow:{r:1,g:1,b:0},yellowgreen:{r:.603922,g:.803922,b:.196078}};const f=/^rgb\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){2}(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*)\)$/i;const m=/^rgba\(\s*((?:(?:25[0-5]|2[0-4]\d|1\d\d|\d{1,2})\s*,\s*){3}(?:0|1|0?\.\d*)\s*)\)$/i;const v=/^#((?:[0-9a-f]{6}|[0-9a-f]{3}))$/i;const $=/^#((?:[0-9a-f]{8}|[0-9a-f]{4}))$/i;function x(e){return v.test(e)}function y(e){return $.test(e)}function w(e){return y(e)}function k(e){return f.test(e)}function F(e){return m.test(e)}function C(e){return b.hasOwnProperty(e)}function S(e){const t=v.exec(e);if(t===null){return null}let o=t[1];if(o.length===3){const e=o.charAt(0);const t=o.charAt(1);const r=o.charAt(2);o=e.concat(e,t,t,r,r)}const r=parseInt(o,16);if(isNaN(r)){return null}return new g(a((r&16711680)>>>16,0,255),a((r&65280)>>>8,0,255),a(r&255,0,255),1)}function T(e){const t=$.exec(e);if(t===null){return null}let o=t[1];if(o.length===4){const e=o.charAt(0);const t=o.charAt(1);const r=o.charAt(2);const a=o.charAt(3);o=e.concat(e,t,t,r,r,a,a)}const r=parseInt(o,16);if(isNaN(r)){return null}return new g(a((r&16711680)>>>16,0,255),a((r&65280)>>>8,0,255),a(r&255,0,255),a((r&4278190080)>>>24,0,255))}function V(e){const t=$.exec(e);if(t===null){return null}let o=t[1];if(o.length===4){const e=o.charAt(0);const t=o.charAt(1);const r=o.charAt(2);const a=o.charAt(3);o=e.concat(e,t,t,r,r,a,a)}const r=parseInt(o,16);if(isNaN(r)){return null}return new ColorRGBA64(normalize((r&4278190080)>>>24,0,255),normalize((r&16711680)>>>16,0,255),normalize((r&65280)>>>8,0,255),normalize(r&255,0,255))}function D(e){const t=f.exec(e);if(t===null){return null}const o=t[1].split(",");return new g(a(Number(o[0]),0,255),a(Number(o[1]),0,255),a(Number(o[2]),0,255),1)}function j(e){const t=m.exec(e);if(t===null){return null}const o=t[1].split(",");if(o.length===4){return new g(a(Number(o[0]),0,255),a(Number(o[1]),0,255),a(Number(o[2]),0,255),Number(o[3]))}return null}function z(e){const t=b[e.toLowerCase()];return t?new g(t.r,t.g,t.b,t.hasOwnProperty("a")?t.a:void 0):null}function B(e){const t=e.toLowerCase();return x(t)?S(t):w(t)?T(t):k(t)?D(t):F(t)?j(t):C(t)?z(t):null}class L{constructor(e,t,o){this.h=e;this.s=t;this.l=o}static fromObject(e){if(e&&!isNaN(e.h)&&!isNaN(e.s)&&!isNaN(e.l)){return new L(e.h,e.s,e.l)}return null}equalValue(e){return this.h===e.h&&this.s===e.s&&this.l===e.l}roundToPrecision(e){return new L(p(this.h,e),p(this.s,e),p(this.l,e))}toObject(){return{h:this.h,s:this.s,l:this.l}}}class O{constructor(e,t,o){this.h=e;this.s=t;this.v=o}static fromObject(e){if(e&&!isNaN(e.h)&&!isNaN(e.s)&&!isNaN(e.v)){return new O(e.h,e.s,e.v)}return null}equalValue(e){return this.h===e.h&&this.s===e.s&&this.v===e.v}roundToPrecision(e){return new O(p(this.h,e),p(this.s,e),p(this.v,e))}toObject(){return{h:this.h,s:this.s,v:this.v}}}class H{constructor(e,t,o){this.l=e;this.a=t;this.b=o}static fromObject(e){if(e&&!isNaN(e.l)&&!isNaN(e.a)&&!isNaN(e.b)){return new H(e.l,e.a,e.b)}return null}equalValue(e){return this.l===e.l&&this.a===e.a&&this.b===e.b}roundToPrecision(e){return new H(p(this.l,e),p(this.a,e),p(this.b,e))}toObject(){return{l:this.l,a:this.a,b:this.b}}}H.epsilon=216/24389;H.kappa=24389/27;class N{constructor(e,t,o){this.l=e;this.c=t;this.h=o}static fromObject(e){if(e&&!isNaN(e.l)&&!isNaN(e.c)&&!isNaN(e.h)){return new N(e.l,e.c,e.h)}return null}equalValue(e){return this.l===e.l&&this.c===e.c&&this.h===e.h}roundToPrecision(e){return new N(p(this.l,e),p(this.c,e),p(this.h,e))}toObject(){return{l:this.l,c:this.c,h:this.h}}}class P{constructor(e,t,o){this.x=e;this.y=t;this.z=o}static fromObject(e){if(e&&!isNaN(e.x)&&!isNaN(e.y)&&!isNaN(e.z)){return new P(e.x,e.y,e.z)}return null}equalValue(e){return this.x===e.x&&this.y===e.y&&this.z===e.z}roundToPrecision(e){return new P(p(this.x,e),p(this.y,e),p(this.z,e))}toObject(){return{x:this.x,y:this.y,z:this.z}}}P.whitePoint=new P(.95047,1,1.08883);function R(e){return e.r*.2126+e.g*.7152+e.b*.0722}function I(e){function t(e){if(e<=.03928){return e/12.92}return Math.pow((e+.055)/1.055,2.4)}return R(new g(t(e.r),t(e.g),t(e.b),1))}const A=(e,t)=>(e+.05)/(t+.05);function M(e,t){const o=I(e);const r=I(t);return o>r?A(o,r):A(r,o)}function G(e,t,o){if(o-t===0){return 0}else{return(e-t)/(o-t)}}function E(e,t,o){const r=G(e.r,t.r,o.r);const a=G(e.g,t.g,o.g);const i=G(e.b,t.b,o.b);return(r+a+i)/3}function _(e,t,o=null){let r=0;let a=o;if(a!==null){r=E(e,t,a)}else{a=new ColorRGBA64(0,0,0,1);r=E(e,t,a);if(r<=0){a=new ColorRGBA64(1,1,1,1);r=E(e,t,a)}}r=Math.round(r*1e3)/1e3;return new ColorRGBA64(a.r,a.g,a.b,r)}function q(e){const t=Math.max(e.r,e.g,e.b);const o=Math.min(e.r,e.g,e.b);const r=t-o;let a=0;if(r!==0){if(t===e.r){a=60*((e.g-e.b)/r%6)}else if(t===e.g){a=60*((e.b-e.r)/r+2)}else{a=60*((e.r-e.g)/r+4)}}if(a<0){a+=360}const i=(t+o)/2;let n=0;if(r!==0){n=r/(1-Math.abs(2*i-1))}return new L(a,n,i)}function W(e,t=1){const o=(1-Math.abs(2*e.l-1))*e.s;const r=o*(1-Math.abs(e.h/60%2-1));const a=e.l-o/2;let i=0;let n=0;let l=0;if(e.h<60){i=o;n=r;l=0}else if(e.h<120){i=r;n=o;l=0}else if(e.h<180){i=0;n=o;l=r}else if(e.h<240){i=0;n=r;l=o}else if(e.h<300){i=r;n=0;l=o}else if(e.h<360){i=o;n=0;l=r}return new g(i+a,n+a,l+a,t)}function U(e){const t=Math.max(e.r,e.g,e.b);const o=Math.min(e.r,e.g,e.b);const r=t-o;let a=0;if(r!==0){if(t===e.r){a=60*((e.g-e.b)/r%6)}else if(t===e.g){a=60*((e.b-e.r)/r+2)}else{a=60*((e.r-e.g)/r+4)}}if(a<0){a+=360}let i=0;if(t!==0){i=r/t}return new O(a,i,t)}function X(e,t=1){const o=e.s*e.v;const r=o*(1-Math.abs(e.h/60%2-1));const a=e.v-o;let i=0;let n=0;let l=0;if(e.h<60){i=o;n=r;l=0}else if(e.h<120){i=r;n=o;l=0}else if(e.h<180){i=0;n=o;l=r}else if(e.h<240){i=0;n=r;l=o}else if(e.h<300){i=r;n=0;l=o}else if(e.h<360){i=o;n=0;l=r}return new g(i+a,n+a,l+a,t)}function Z(e){let t=0;let o=0;if(e.h!==0){t=Math.cos(n(e.h))*e.c;o=Math.sin(n(e.h))*e.c}return new H(e.l,t,o)}function Y(e){let t=0;if(Math.abs(e.b)>.001||Math.abs(e.a)>.001){t=l(Math.atan2(e.b,e.a))}if(t<0){t+=360}const o=Math.sqrt(e.a*e.a+e.b*e.b);return new N(e.l,o,t)}function J(e){const t=(e.l+16)/116;const o=t+e.a/500;const r=t-e.b/200;const a=Math.pow(o,3);const i=Math.pow(t,3);const n=Math.pow(r,3);let l=0;if(a>H.epsilon){l=a}else{l=(116*o-16)/H.kappa}let s=0;if(e.l>H.epsilon*H.kappa){s=i}else{s=e.l/H.kappa}let c=0;if(n>H.epsilon){c=n}else{c=(116*r-16)/H.kappa}l=P.whitePoint.x*l;s=P.whitePoint.y*s;c=P.whitePoint.z*c;return new P(l,s,c)}function K(e){function t(e){if(e>H.epsilon){return Math.pow(e,1/3)}return(H.kappa*e+16)/116}const o=t(e.x/P.whitePoint.x);const r=t(e.y/P.whitePoint.y);const a=t(e.z/P.whitePoint.z);const i=116*r-16;const n=500*(o-r);const l=200*(r-a);return new H(i,n,l)}function Q(e){function t(e){if(e<=.04045){return e/12.92}return Math.pow((e+.055)/1.055,2.4)}const o=t(e.r);const r=t(e.g);const a=t(e.b);const i=o*.4124564+r*.3575761+a*.1804375;const n=o*.2126729+r*.7151522+a*.072175;const l=o*.0193339+r*.119192+a*.9503041;return new P(i,n,l)}function ee(e,t=1){function o(e){if(e<=.0031308){return e*12.92}return 1.055*Math.pow(e,1/2.4)-.055}const r=o(e.x*3.2404542-e.y*1.5371385-e.z*.4985314);const a=o(e.x*-.969266+e.y*1.8760108+e.z*.041556);const i=o(e.x*.0556434-e.y*.2040259+e.z*1.0572252);return new g(r,a,i,t)}function te(e){return K(Q(e))}function oe(e,t=1){return ee(J(e),t)}function re(e){return Y(te(e))}function ae(e,t=1){return oe(Z(e),t)}function ie(e,t=1){let o=0;let r=0;let a=0;if(e<=1e3){e=1e3}else if(e>=4e4){e=4e4}if(e<6600){o=255;r=e/100-2;r=-155.25485562709179-.44596950469579133*r+104.49216199393888*Math.log(r)}else{o=e/100-55;o=351.97690566805693+.114206453784165*o-40.25366309332127*Math.log(o);r=e/100-50;r=325.4494125711974+.07943456536662342*r-28.0852963507957*Math.log(r)}if(e>=6600){a=255}else if(e<2e3){a=0}else{a=e/100-10;a=-254.76935184120902+.8274096064007395*a+115.67994401066147*Math.log(a)}return new ColorRGBA64(o/255,r/255,a/255,t)}function ne(e){let t=0;let o=1e3;let r=4e4;while(r-o>.4){t=(r+o)/2;const a=ie(t);if(a.b/a.r>=e.b/e.r){r=t}else{o=t}}return Math.round(t)}function le(e,t){const o=e.relativeLuminance>t.relativeLuminance?e:t;const r=e.relativeLuminance>t.relativeLuminance?t:e;return(o.relativeLuminance+.05)/(r.relativeLuminance+.05)}const se=Object.freeze({create(e,t,o){return new de(e,t,o)},from(e){return new de(e.r,e.g,e.b)}});function ce(e){const t={r:0,g:0,b:0,toColorString:()=>"",contrast:()=>0,relativeLuminance:0};for(const o in t){if(typeof t[o]!==typeof e[o]){return false}}return true}class de extends g{constructor(e,t,o){super(e,t,o,1);this.toColorString=this.toStringHexRGB;this.contrast=le.bind(null,this);this.createCSS=this.toColorString;this.relativeLuminance=I(this)}static fromObject(e){return new de(e.r,e.g,e.b)}}function ue(e){return se.create(e,e,e)}const he={LightMode:1,DarkMode:.23};const pe=(-.1+Math.sqrt(.21))/2;function ge(e){return e.relativeLuminance<=pe}var be=o(63073);var fe=o(30086);function me(e,t,o=18){const r=re(e);let a=r.c+t*o;if(a<0){a=0}return ae(new N(r.l,a,r.h))}function ve(e,t,o=18){return me(e,-1*t,o)}function $e(e,t,o=18){const r=rgbToLAB(e);const a=r.l-t*o;return labToRGB(new ColorLAB(a,r.a,r.b))}function xe(e,t,o=18){return $e(e,-1*t,o)}function ye(e,t){if(t===0){return 0}return 1-(1-e)/t}function we(e,t){return new ColorRGBA64(ye(e.r,t.r),ye(e.g,t.g),ye(e.b,t.b),1)}function ke(e,t){const o=rgbToHSL(e);const r=rgbToHSL(t);if(r.s===0){return new ColorRGBA64(o.l,o.l,o.l,1)}return hslToRGB(new ColorHSL(r.h,r.s,o.l))}function Fe(e,t){return Math.min(e,t)}function Ce(e,t){return new ColorRGBA64(Fe(e.r,t.r),Fe(e.g,t.g),Fe(e.b,t.b),1)}function Se(e,t){if(t>=1){return 1}const o=e/(1-t);if(o>=1){return 1}return o}function Te(e,t){return new ColorRGBA64(Se(e.r,t.r),Se(e.g,t.g),Se(e.b,t.b),1)}function Ve(e,t){return Math.max(e,t)}function De(e,t){return new ColorRGBA64(Ve(e.r,t.r),Ve(e.g,t.g),Ve(e.b,t.b),1)}function je(e,t){return e*t}function ze(e,t){return new g(je(e.r,t.r),je(e.g,t.g),je(e.b,t.b),1)}function Be(e,t){if(e<.5){return r(2*t*e,0,1)}return r(1-2*(1-t)*(1-e),0,1)}function Le(e,t){return new g(Be(e.r,t.r),Be(e.g,t.g),Be(e.b,t.b),1)}function Oe(e,t){return 1-(1-t)*(1-e)}function He(e,t){return new ColorRGBA64(Oe(e.r,t.r),Oe(e.g,t.g),Oe(e.b,t.b),1)}var Ne;(function(e){e[e["Burn"]=0]="Burn";e[e["Color"]=1]="Color";e[e["Darken"]=2]="Darken";e[e["Dodge"]=3]="Dodge";e[e["Lighten"]=4]="Lighten";e[e["Multiply"]=5]="Multiply";e[e["Overlay"]=6]="Overlay";e[e["Screen"]=7]="Screen"})(Ne||(Ne={}));function Pe(e,t,o){switch(e){case Ne.Burn:return we(t,o);case Ne.Color:return ke(t,o);case Ne.Darken:return Ce(t,o);case Ne.Dodge:return Te(t,o);case Ne.Lighten:return De(t,o);case Ne.Multiply:return ze(t,o);case Ne.Overlay:return Le(t,o);case Ne.Screen:return He(t,o);default:throw new Error("Unknown blend mode")}}function Re(e,t){if(t.a>=1){return t}else if(t.a<=0){return new ColorRGBA64(e.r,e.g,e.b,1)}const o=t.a*t.r+(1-t.a)*e.r;const r=t.a*t.g+(1-t.a)*e.g;const a=t.a*t.b+(1-t.a)*e.b;return new ColorRGBA64(o,r,a,1)}function Ie(e,t,o){if(isNaN(e)||e<=0){return t}else if(e>=1){return o}return new g(c(e,t.r,o.r),c(e,t.g,o.g),c(e,t.b,o.b),c(e,t.a,o.a))}function Ae(e,t,o){if(isNaN(e)||e<=0){return t}else if(e>=1){return o}return new L(d(e,t.h,o.h),c(e,t.s,o.s),c(e,t.l,o.l))}function Me(e,t,o){if(isNaN(e)||e<=0){return t}else if(e>=1){return o}return new O(d(e,t.h,o.h),c(e,t.s,o.s),c(e,t.v,o.v))}function Ge(e,t,o){if(isNaN(e)||e<=0){return t}else if(e>=1){return o}return new P(c(e,t.x,o.x),c(e,t.y,o.y),c(e,t.z,o.z))}function Ee(e,t,o){if(isNaN(e)||e<=0){return t}else if(e>=1){return o}return new H(c(e,t.l,o.l),c(e,t.a,o.a),c(e,t.b,o.b))}function _e(e,t,o){if(isNaN(e)||e<=0){return t}else if(e>=1){return o}return new N(c(e,t.l,o.l),c(e,t.c,o.c),d(e,t.h,o.h))}var qe;(function(e){e[e["RGB"]=0]="RGB";e[e["HSL"]=1]="HSL";e[e["HSV"]=2]="HSV";e[e["XYZ"]=3]="XYZ";e[e["LAB"]=4]="LAB";e[e["LCH"]=5]="LCH"})(qe||(qe={}));function We(e,t,o,r){if(isNaN(e)||e<=0){return o}else if(e>=1){return r}switch(t){case qe.HSL:return W(Ae(e,q(o),q(r)));case qe.HSV:return X(Me(e,U(o),U(r)));case qe.XYZ:return ee(Ge(e,Q(o),Q(r)));case qe.LAB:return oe(Ee(e,te(o),te(r)));case qe.LCH:return ae(_e(e,re(o),re(r)));default:return Ie(e,o,r)}}class Ue{constructor(e){if(e==null||e.length===0){throw new Error("The stops argument must be non-empty")}else{this.stops=this.sortColorScaleStops(e)}}static createBalancedColorScale(e){if(e==null||e.length===0){throw new Error("The colors argument must be non-empty")}const t=new Array(e.length);for(let o=0;o<e.length;o++){if(o===0){t[o]={color:e[o],position:0}}else if(o===e.length-1){t[o]={color:e[o],position:1}}else{t[o]={color:e[o],position:o*(1/(e.length-1))}}}return new Ue(t)}getColor(e,t=qe.RGB){if(this.stops.length===1){return this.stops[0].color}else if(e<=0){return this.stops[0].color}else if(e>=1){return this.stops[this.stops.length-1].color}let o=0;for(let i=0;i<this.stops.length;i++){if(this.stops[i].position<=e){o=i}}let r=o+1;if(r>=this.stops.length){r=this.stops.length-1}const a=(e-this.stops[o].position)*(1/(this.stops[r].position-this.stops[o].position));return We(a,t,this.stops[o].color,this.stops[r].color)}trim(e,t,o=qe.RGB){if(e<0||t>1||t<e){throw new Error("Invalid bounds")}if(e===t){return new Ue([{color:this.getColor(e,o),position:0}])}const r=[];for(let n=0;n<this.stops.length;n++){if(this.stops[n].position>=e&&this.stops[n].position<=t){r.push(this.stops[n])}}if(r.length===0){return new Ue([{color:this.getColor(e),position:e},{color:this.getColor(t),position:t}])}if(r[0].position!==e){r.unshift({color:this.getColor(e),position:e})}if(r[r.length-1].position!==t){r.push({color:this.getColor(t),position:t})}const a=t-e;const i=new Array(r.length);for(let n=0;n<r.length;n++){i[n]={color:r[n].color,position:(r[n].position-e)/a}}return new Ue(i)}findNextColor(e,t,o=false,r=qe.RGB,a=.005,i=32){if(isNaN(e)||e<=0){e=0}else if(e>=1){e=1}const n=this.getColor(e,r);const l=o?0:1;const s=this.getColor(l,r);const c=M(n,s);if(c<=t){return l}let d=o?0:e;let u=o?e:0;let h=l;let p=0;while(p<=i){h=Math.abs(u-d)/2+d;const e=this.getColor(h,r);const i=M(n,e);if(Math.abs(i-t)<=a){return h}else if(i>t){if(o){d=h}else{u=h}}else{if(o){u=h}else{d=h}}p++}return h}clone(){const e=new Array(this.stops.length);for(let t=0;t<e.length;t++){e[t]={color:this.stops[t].color,position:this.stops[t].position}}return new Ue(e)}sortColorScaleStops(e){return e.sort(((e,t)=>{const o=e.position;const r=t.position;if(o<r){return-1}else if(o>r){return 1}else{return 0}}))}}class Xe{constructor(e){this.config=Object.assign({},Xe.defaultPaletteConfig,e);this.palette=[];this.updatePaletteColors()}updatePaletteGenerationValues(e){let t=false;for(const o in e){if(this.config[o]){if(this.config[o].equalValue){if(!this.config[o].equalValue(e[o])){this.config[o]=e[o];t=true}}else{if(e[o]!==this.config[o]){this.config[o]=e[o];t=true}}}}if(t){this.updatePaletteColors()}return t}updatePaletteColors(){const e=this.generatePaletteColorScale();for(let t=0;t<this.config.steps;t++){this.palette[t]=e.getColor(t/(this.config.steps-1),this.config.interpolationMode)}}generatePaletteColorScale(){const e=q(this.config.baseColor);const t=new Ue([{position:0,color:this.config.scaleColorLight},{position:.5,color:this.config.baseColor},{position:1,color:this.config.scaleColorDark}]);const o=t.trim(this.config.clipLight,1-this.config.clipDark);const r=o.getColor(0);const a=o.getColor(1);let i=r;let n=a;if(e.s>=this.config.saturationAdjustmentCutoff){i=me(i,this.config.saturationLight);n=me(n,this.config.saturationDark)}if(this.config.multiplyLight!==0){const e=ze(this.config.baseColor,i);i=We(this.config.multiplyLight,this.config.interpolationMode,i,e)}if(this.config.multiplyDark!==0){const e=ze(this.config.baseColor,n);n=We(this.config.multiplyDark,this.config.interpolationMode,n,e)}if(this.config.overlayLight!==0){const e=Le(this.config.baseColor,i);i=We(this.config.overlayLight,this.config.interpolationMode,i,e)}if(this.config.overlayDark!==0){const e=Le(this.config.baseColor,n);n=We(this.config.overlayDark,this.config.interpolationMode,n,e)}if(this.config.baseScalePosition){if(this.config.baseScalePosition<=0){return new Ue([{position:0,color:this.config.baseColor},{position:1,color:n.clamp()}])}else if(this.config.baseScalePosition>=1){return new Ue([{position:0,color:i.clamp()},{position:1,color:this.config.baseColor}])}return new Ue([{position:0,color:i.clamp()},{position:this.config.baseScalePosition,color:this.config.baseColor},{position:1,color:n.clamp()}])}return new Ue([{position:0,color:i.clamp()},{position:.5,color:this.config.baseColor},{position:1,color:n.clamp()}])}}Xe.defaultPaletteConfig={baseColor:S("#808080"),steps:11,interpolationMode:qe.RGB,scaleColorLight:new g(1,1,1,1),scaleColorDark:new g(0,0,0,1),clipLight:.185,clipDark:.16,saturationAdjustmentCutoff:.05,saturationLight:.35,saturationDark:1.25,overlayLight:0,overlayDark:.25,multiplyLight:0,multiplyDark:0,baseScalePosition:.5};Xe.greyscalePaletteConfig={baseColor:S("#808080"),steps:11,interpolationMode:qe.RGB,scaleColorLight:new g(1,1,1,1),scaleColorDark:new g(0,0,0,1),clipLight:0,clipDark:0,saturationAdjustmentCutoff:0,saturationLight:0,saturationDark:0,overlayLight:0,overlayDark:0,multiplyLight:0,multiplyDark:0,baseScalePosition:.5};function Ze(e,t){const o=rgbToHSL(e);let r=Number.MAX_VALUE;let a=0;for(let i=0;i<t.length;i++){const e=rgbToHSL(t[i]);const n=Math.abs(e.l-o.l);if(n<r){r=n;a=i}}return a}function Ye(e,t,o=Xe.greyscalePaletteConfig,r=Xe.defaultPaletteConfig){const a=new Xe(Object.assign(Object.assign({},o),{steps:t}));const i=Ze(e,a.palette);return new Xe(Object.assign(Object.assign({},r),{steps:t,baseColor:e,baseScalePosition:i/(t-1)}))}function Je(e,t,o){if(e.length<=1||t<=1){throw new Error("The input array and targetSize must both be greater than 1")}if(o&&t<=e.length){throw new Error("If preserveInputColors is true then targetSize must be greater than the length of the input array")}const r=new Array(e.length);if(o){for(let o=0;o<e.length;o++){const a=o/(e.length-1);let i=2;let n=0;for(let e=0;e<t;e++){const o=Math.abs(e/(t-1)-a);if(o<i){i=o;n=e}if(o===0){break}}r[o]={color:e[o],position:n/(t-1)}}}else{for(let t=0;t<r.length;t++){r[t]={color:e[t],position:t/(e.length-1)}}}const a=new ColorScale(r);const i=new Array(t);for(let n=0;n<t;n++){i[n]=a.getColor(n/(t-1))}return i}const Ke={targetSize:63,spacing:4,scaleColorLight:Xe.defaultPaletteConfig.scaleColorLight,scaleColorDark:Xe.defaultPaletteConfig.scaleColorDark};function Qe(e,t=Ke){if(e.length===0){return[]}const o=Math.floor((t.targetSize-((e.length-1)*t.spacing+1))/2);if(o<0){throw new Error("(targetSize - ((input.length - 1) * spacing + 1)) / 2 must be >= 0")}const r=new Array(e.length+2);r[0]={position:0,color:t.scaleColorLight};r[r.length-1]={position:1,color:t.scaleColorDark};for(let n=0;n<e.length;n++){r[n+1]={color:e[n],position:(n*t.spacing+o)/(t.targetSize-1)}}const a=new ColorScale(r);const i=new Array(t.targetSize);for(let n=0;n<t.targetSize;n++){i[n]=a.getColor(n/(t.targetSize-1))}return i}function et(e,t=11,o=Ke){const r=Ye(e,t);const a=Qe(r.palette,o);return{short:r.palette,long:a}}class tt{constructor(e){this.palette=[];this.config=Object.assign({},tt.defaultPaletteConfig,e);this.regenPalettes()}regenPalettes(){let e=this.config.steps;if(isNaN(e)||e<3){e=3}const t=.14;const o=.06;const r=new g(t,t,t,1);const a=94;const i=new Xe(Object.assign(Object.assign({},Xe.greyscalePaletteConfig),{baseColor:r,baseScalePosition:(1-t)*100/a,steps:e}));const n=i.palette;const l=R(this.config.baseColor);const s=q(this.config.baseColor).l;const c=(l+s)/2;const d=this.matchRelativeLuminanceIndex(c,n);const u=d/(e-1);const h=this.matchRelativeLuminanceIndex(t,n);const p=h/(e-1);const b=q(this.config.baseColor);const f=W(L.fromObject({h:b.h,s:b.s,l:t}));const m=W(L.fromObject({h:b.h,s:b.s,l:o}));const v=new Array(5);v[0]={position:0,color:new g(1,1,1,1)};v[1]={position:u,color:this.config.baseColor};v[2]={position:p,color:f};v[3]={position:.99,color:m};v[4]={position:1,color:new g(0,0,0,1)};const $=new Ue(v);this.palette=new Array(e);for(let g=0;g<e;g++){const t=$.getColor(g/(e-1),qe.RGB);this.palette[g]=t}}matchRelativeLuminanceIndex(e,t){let o=Number.MAX_VALUE;let r=0;let a=0;const i=t.length;for(;a<i;a++){const i=Math.abs(R(t[a])-e);if(i<o){o=i;r=a}}return r}}tt.defaultPaletteConfig={baseColor:S("#808080"),steps:94};function ot(e,t,o=0,r=e.length-1){if(r===o){return e[o]}const a=Math.floor((r-o)/2)+o;return t(e[a])?ot(e,t,o,a):ot(e,t,a+1,r)}function rt(e){return ge(e)?-1:1}function at(e,t,o){if(typeof e==="number"){return nt.from(se.create(e,t,o))}else{return nt.from(e)}}function it(e){return ce(e)?lt.from(e):lt.from(se.create(e.r,e.g,e.b))}const nt=Object.freeze({create:at,from:it});class lt{constructor(e,t){this.closestIndexCache=new Map;this.source=e;this.swatches=t;this.reversedSwatches=Object.freeze([...this.swatches].reverse());this.lastIndex=this.swatches.length-1}colorContrast(e,t,o,r){if(o===undefined){o=this.closestIndexOf(e)}let a=this.swatches;const i=this.lastIndex;let n=o;if(r===undefined){r=rt(e)}const l=o=>le(e,o)>=t;if(r===-1){a=this.reversedSwatches;n=i-n}return ot(a,l,n,i)}get(e){return this.swatches[e]||this.swatches[r(e,0,this.lastIndex)]}closestIndexOf(e){if(this.closestIndexCache.has(e.relativeLuminance)){return this.closestIndexCache.get(e.relativeLuminance)}let t=this.swatches.indexOf(e);if(t!==-1){this.closestIndexCache.set(e.relativeLuminance,t);return t}const o=this.swatches.reduce(((t,o)=>Math.abs(o.relativeLuminance-e.relativeLuminance)<Math.abs(t.relativeLuminance-e.relativeLuminance)?o:t));t=this.swatches.indexOf(o);this.closestIndexCache.set(e.relativeLuminance,t);return t}static from(e){return new lt(e,Object.freeze(new tt({baseColor:g.fromObject(e)}).palette.map((e=>{const t=S(e.toStringHexRGB());return se.create(t.r,t.g,t.b)}))))}}function st(e,t,o,r,a,i,n,l,s){const c=e.source;const d=t.closestIndexOf(o);const u=Math.max(n,l,s);const h=d>=u?-1:1;const p=e.closestIndexOf(c);const g=p;const b=g+h*-1*r;const f=b+h*a;const m=b+h*i;return{rest:e.get(b),hover:e.get(g),active:e.get(f),focus:e.get(m)}}function ct(e,t,o,r,a,i,n){const l=e.source;const s=e.closestIndexOf(l);const c=rt(t);const d=s+(c===1?Math.min(r,a):Math.max(c*r,c*a));const u=e.colorContrast(t,o,d,c);const h=e.closestIndexOf(u);const p=h+c*Math.abs(r-a);const g=c===1?r<a:c*r>c*a;let b;let f;if(g){b=h;f=p}else{b=p;f=h}return{rest:e.get(b),hover:e.get(f),active:e.get(b+c*i),focus:e.get(b+c*n)}}const dt=se.create(1,1,1);const ut=se.create(0,0,0);const ht=se.from(S("#808080"));const pt=se.from(S("#DA1A5F"));const gt=se.from(S("#D32F2F"));function bt(e,t){return e.contrast(dt)>=t?dt:ut}function ft(e,t,o,r,a,i){const n=e.closestIndexOf(t);const l=Math.max(o,r,a,i);const s=n>=l?-1:1;return{rest:e.get(n+s*o),hover:e.get(n+s*r),active:e.get(n+s*a),focus:e.get(n+s*i)}}function mt(e,t,o,r,a,i){const n=rt(t);const l=e.closestIndexOf(t);return{rest:e.get(l-n*o),hover:e.get(l-n*r),active:e.get(l-n*a),focus:e.get(l-n*i)}}function vt(e,t,o){const r=e.closestIndexOf(t);return e.get(r-(r<o?o*-1:o))}function $t(e,t,o,r,a,i,n,l,s,c){const d=Math.max(o,r,a,i,n,l,s,c);const u=e.closestIndexOf(t);const h=u>=d?-1:1;return{rest:e.get(u+h*o),hover:e.get(u+h*r),active:e.get(u+h*a),focus:e.get(u+h*i)}}function xt(e,t,o,r,a,i){const n=rt(t);const l=e.closestIndexOf(e.colorContrast(t,4.5));const s=l+n*Math.abs(o-r);const c=n===1?o<r:n*o>n*r;let d;let u;if(c){d=l;u=s}else{d=s;u=l}return{rest:e.get(d),hover:e.get(u),active:e.get(d+n*a),focus:e.get(d+n*i)}}function yt(e,t){return e.colorContrast(t,3.5)}function wt(e,t,o){return e.colorContrast(o,3.5,e.closestIndexOf(e.source),rt(t)*-1)}function kt(e,t){return e.colorContrast(t,14)}function Ft(e,t){return e.colorContrast(t,4.5)}function Ct(e,t,o){return e.get(e.closestIndexOf(ue(t))+o)}function St(e,t,o){const r=e.closestIndexOf(ue(t))-o;return e.get(r-o)}function Tt(e,t){return e.get(e.closestIndexOf(ue(t)))}function Vt(e,t,o,r,a,i){return Math.max(e.closestIndexOf(ue(t))+o,r,a,i)}function Dt(e,t,o,r,a,i){return e.get(Vt(e,t,o,r,a,i))}function jt(e,t,o,r,a,i){return e.get(Vt(e,t,o,r,a,i)+o)}function zt(e,t,o,r,a,i){return e.get(Vt(e,t,o,r,a,i)+o*2)}function Bt(e,t,o,r,a,i){const n=e.closestIndexOf(t);const l=rt(t);const s=n+l*o;const c=s+l*(r-o);const d=s+l*(a-o);const u=s+l*(i-o);return{rest:e.get(s),hover:e.get(c),active:e.get(d),focus:e.get(u)}}function Lt(e,t,o){return e.get(e.closestIndexOf(t)+rt(t)*o)}function Ot(e,t,o,r,a,i,n,l,s){const c=e.source;const d=t.closestIndexOf(o);const u=Math.max(n,l,s);const h=d>=u?-1:1;const p=e.closestIndexOf(c);const g=p;const b=g+h*-1*r;const f=b+h*a;const m=b+h*i;return{rest:e.get(b),hover:e.get(g),active:e.get(f),focus:e.get(m)}}function Ht(e,t,o,r,a,i,n){const l=e.source;const s=e.closestIndexOf(l);const c=ge(t)?-1:1;const d=s+(c===1?Math.min(r,a):Math.max(c*r,c*a));const u=e.colorContrast(t,o,d,c);const h=e.closestIndexOf(u);const p=h+c*Math.abs(r-a);const g=c===1?r<a:c*r>c*a;let b;let f;if(g){b=h;f=p}else{b=p;f=h}return{rest:e.get(b),hover:e.get(f),active:e.get(b+c*i),focus:e.get(b+c*n)}}function Nt(e,t){return e.contrast(dt)>=t?dt:ut}const{create:Pt}=be.DesignToken;function Rt(e){return be.DesignToken.create({name:e,cssCustomPropertyName:null})}const It=Pt("body-font").withDefault('aktiv-grotesk, "Segoe UI", Arial, Helvetica, sans-serif');const At=Pt("base-height-multiplier").withDefault(10);const Mt=Pt("base-horizontal-spacing-multiplier").withDefault(3);const Gt=Pt("base-layer-luminance").withDefault(he.DarkMode);const Et=Pt("control-corner-radius").withDefault(4);const _t=Pt("density").withDefault(0);const qt=Pt("design-unit").withDefault(4);const Wt=Pt("element-scale").withDefault(0);const Ut=Pt("direction").withDefault(fe.O.ltr);const Xt=Pt("disabled-opacity").withDefault(.4);const Zt=Pt("stroke-width").withDefault(1);const Yt=Pt("focus-stroke-width").withDefault(2);const Jt=Pt("type-ramp-base-font-size").withDefault("14px");const Kt=Pt("type-ramp-base-line-height").withDefault("20px");const Qt=Pt("type-ramp-minus-1-font-size").withDefault("12px");const eo=Pt("type-ramp-minus-1-line-height").withDefault("16px");const to=Pt("type-ramp-minus-2-font-size").withDefault("10px");const oo=Pt("type-ramp-minus-2-line-height").withDefault("16px");const ro=Pt("type-ramp-plus-1-font-size").withDefault("16px");const ao=Pt("type-ramp-plus-1-line-height").withDefault("24px");const io=Pt("type-ramp-plus-2-font-size").withDefault("20px");const no=Pt("type-ramp-plus-2-line-height").withDefault("28px");const lo=Pt("type-ramp-plus-3-font-size").withDefault("28px");const so=Pt("type-ramp-plus-3-line-height").withDefault("36px");const co=Pt("type-ramp-plus-4-font-size").withDefault("34px");const uo=Pt("type-ramp-plus-4-line-height").withDefault("44px");const ho=Pt("type-ramp-plus-5-font-size").withDefault("46px");const po=Pt("type-ramp-plus-5-line-height").withDefault("56px");const go=Pt("type-ramp-plus-6-font-size").withDefault("60px");const bo=Pt("type-ramp-plus-6-line-height").withDefault("72px");const fo=Rt("accent-fill-rest-delta").withDefault(0);const mo=Rt("accent-fill-hover-delta").withDefault(4);const vo=Rt("accent-fill-active-delta").withDefault(-5);const $o=Rt("accent-fill-focus-delta").withDefault(0);const xo=Rt("accent-foreground-rest-delta").withDefault(0);const yo=Rt("accent-foreground-hover-delta").withDefault(6);const wo=Rt("accent-foreground-active-delta").withDefault(-4);const ko=Rt("accent-foreground-focus-delta").withDefault(0);const Fo=Rt("neutral-fill-rest-delta").withDefault(7);const Co=Rt("neutral-fill-hover-delta").withDefault(10);const So=Rt("neutral-fill-active-delta").withDefault(5);const To=Rt("neutral-fill-focus-delta").withDefault(0);const Vo=Rt("neutral-fill-input-rest-delta").withDefault(0);const Do=Rt("neutral-fill-input-hover-delta").withDefault(0);const jo=Rt("neutral-fill-input-active-delta").withDefault(0);const zo=Rt("neutral-fill-input-focus-delta").withDefault(0);const Bo=Rt("neutral-fill-stealth-rest-delta").withDefault(0);const Lo=Rt("neutral-fill-stealth-hover-delta").withDefault(5);const Oo=Rt("neutral-fill-stealth-active-delta").withDefault(3);const Ho=Rt("neutral-fill-stealth-focus-delta").withDefault(0);const No=Rt("neutral-fill-strong-rest-delta").withDefault(0);const Po=Rt("neutral-fill-strong-hover-delta").withDefault(8);const Ro=Rt("neutral-fill-strong-active-delta").withDefault(-5);const Io=Rt("neutral-fill-strong-focus-delta").withDefault(0);const Ao=Rt("neutral-fill-layer-rest-delta").withDefault(3);const Mo=Rt("neutral-stroke-rest-delta").withDefault(25);const Go=Rt("neutral-stroke-hover-delta").withDefault(40);const Eo=Rt("neutral-stroke-active-delta").withDefault(16);const _o=Rt("neutral-stroke-focus-delta").withDefault(25);const qo=Rt("neutral-stroke-divider-rest-delta").withDefault(8);const Wo=Pt("neutral-color").withDefault(ht);const Uo=Rt("neutral-palette").withDefault((e=>nt.from(Wo.getValueFor(e))));const Xo=Pt("accent-color").withDefault(pt);const Zo=Rt("accent-palette").withDefault((e=>nt.from(Xo.getValueFor(e))));const Yo=Rt("neutral-layer-card-container-recipe").withDefault({evaluate:e=>Ct(Uo.getValueFor(e),Gt.getValueFor(e),Ao.getValueFor(e))});const Jo=Pt("neutral-layer-card-container").withDefault((e=>Yo.getValueFor(e).evaluate(e)));const Ko=Rt("neutral-layer-floating-recipe").withDefault({evaluate:e=>St(Uo.getValueFor(e),Gt.getValueFor(e),Ao.getValueFor(e))});const Qo=Pt("neutral-layer-floating").withDefault((e=>Ko.getValueFor(e).evaluate(e)));const er=Rt("neutral-layer-1-recipe").withDefault({evaluate:e=>Tt(Uo.getValueFor(e),Gt.getValueFor(e))});const tr=Pt("neutral-layer-1").withDefault((e=>er.getValueFor(e).evaluate(e)));const or=Rt("neutral-layer-2-recipe").withDefault({evaluate:e=>Dt(Uo.getValueFor(e),Gt.getValueFor(e),Ao.getValueFor(e),Fo.getValueFor(e),Co.getValueFor(e),So.getValueFor(e))});const rr=Pt("neutral-layer-2").withDefault((e=>or.getValueFor(e).evaluate(e)));const ar=Rt("neutral-layer-3-recipe").withDefault({evaluate:e=>jt(Uo.getValueFor(e),Gt.getValueFor(e),Ao.getValueFor(e),Fo.getValueFor(e),Co.getValueFor(e),So.getValueFor(e))});const ir=Pt("neutral-layer-3").withDefault((e=>ar.getValueFor(e).evaluate(e)));const nr=Rt("neutral-layer-4-recipe").withDefault({evaluate:e=>zt(Uo.getValueFor(e),Gt.getValueFor(e),Ao.getValueFor(e),Fo.getValueFor(e),Co.getValueFor(e),So.getValueFor(e))});const lr=Pt("neutral-layer-4").withDefault((e=>nr.getValueFor(e).evaluate(e)));const sr=Pt("fill-color").withDefault((e=>tr.getValueFor(e)));var cr;(function(e){e[e["normal"]=4.5]="normal";e[e["large"]=7]="large"})(cr||(cr={}));const dr=Pt({name:"accent-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>st(Zo.getValueFor(e),Uo.getValueFor(e),t||sr.getValueFor(e),mo.getValueFor(e),vo.getValueFor(e),$o.getValueFor(e),Fo.getValueFor(e),Co.getValueFor(e),So.getValueFor(e))});const ur=Pt("accent-fill-rest").withDefault((e=>dr.getValueFor(e).evaluate(e).rest));const hr=Pt("accent-fill-hover").withDefault((e=>dr.getValueFor(e).evaluate(e).hover));const pr=Pt("accent-fill-active").withDefault((e=>dr.getValueFor(e).evaluate(e).active));const gr=Pt("accent-fill-focus").withDefault((e=>dr.getValueFor(e).evaluate(e).focus));const br=e=>(t,o)=>bt(o||ur.getValueFor(t),e);const fr=Rt("foreground-on-accent-recipe").withDefault({evaluate:(e,t)=>br(cr.normal)(e,t)});const mr=Pt("foreground-on-accent-rest").withDefault((e=>fr.getValueFor(e).evaluate(e,ur.getValueFor(e))));const vr=Pt("foreground-on-accent-hover").withDefault((e=>fr.getValueFor(e).evaluate(e,hr.getValueFor(e))));const $r=Pt("foreground-on-accent-active").withDefault((e=>fr.getValueFor(e).evaluate(e,pr.getValueFor(e))));const xr=Pt("foreground-on-accent-focus").withDefault((e=>fr.getValueFor(e).evaluate(e,gr.getValueFor(e))));const yr=Rt("foreground-on-accent-large-recipe").withDefault({evaluate:(e,t)=>br(cr.large)(e,t)});const wr=Pt("foreground-on-accent-rest-large").withDefault((e=>yr.getValueFor(e).evaluate(e,ur.getValueFor(e))));const kr=Pt("foreground-on-accent-hover-large").withDefault((e=>yr.getValueFor(e).evaluate(e,hr.getValueFor(e))));const Fr=Pt("foreground-on-accent-active-large").withDefault((e=>yr.getValueFor(e).evaluate(e,pr.getValueFor(e))));const Cr=Pt("foreground-on-accent-focus-large").withDefault((e=>yr.getValueFor(e).evaluate(e,gr.getValueFor(e))));const Sr=e=>(t,o)=>ct(Zo.getValueFor(t),o||sr.getValueFor(t),e,xo.getValueFor(t),yo.getValueFor(t),wo.getValueFor(t),ko.getValueFor(t));const Tr=Pt({name:"accent-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>Sr(cr.normal)(e,t)});const Vr=Pt("accent-foreground-rest").withDefault((e=>Tr.getValueFor(e).evaluate(e).rest));const Dr=Pt("accent-foreground-hover").withDefault((e=>Tr.getValueFor(e).evaluate(e).hover));const jr=Pt("accent-foreground-active").withDefault((e=>Tr.getValueFor(e).evaluate(e).active));const zr=Pt("accent-foreground-focus").withDefault((e=>Tr.getValueFor(e).evaluate(e).focus));const Br=Pt({name:"neutral-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>ft(Uo.getValueFor(e),t||sr.getValueFor(e),Fo.getValueFor(e),Co.getValueFor(e),So.getValueFor(e),To.getValueFor(e))});const Lr=Pt("neutral-fill-rest").withDefault((e=>Br.getValueFor(e).evaluate(e).rest));const Or=Pt("neutral-fill-hover").withDefault((e=>Br.getValueFor(e).evaluate(e).hover));const Hr=Pt("neutral-fill-active").withDefault((e=>Br.getValueFor(e).evaluate(e).active));const Nr=Pt("neutral-fill-focus").withDefault((e=>Br.getValueFor(e).evaluate(e).focus));const Pr=Pt({name:"neutral-fill-input-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>mt(Uo.getValueFor(e),t||sr.getValueFor(e),Vo.getValueFor(e),Do.getValueFor(e),jo.getValueFor(e),zo.getValueFor(e))});const Rr=Pt("neutral-fill-input-rest").withDefault((e=>Pr.getValueFor(e).evaluate(e).rest));const Ir=Pt("neutral-fill-input-hover").withDefault((e=>Pr.getValueFor(e).evaluate(e).hover));const Ar=Pt("neutral-fill-input-active").withDefault((e=>Pr.getValueFor(e).evaluate(e).active));const Mr=Pt("neutral-fill-input-focus").withDefault((e=>Pr.getValueFor(e).evaluate(e).focus));const Gr=Pt({name:"neutral-fill-stealth-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>$t(Uo.getValueFor(e),t||sr.getValueFor(e),Bo.getValueFor(e),Lo.getValueFor(e),Oo.getValueFor(e),Ho.getValueFor(e),Fo.getValueFor(e),Co.getValueFor(e),So.getValueFor(e),To.getValueFor(e))});const Er=Pt("neutral-fill-stealth-rest").withDefault((e=>Gr.getValueFor(e).evaluate(e).rest));const _r=Pt("neutral-fill-stealth-hover").withDefault((e=>Gr.getValueFor(e).evaluate(e).hover));const qr=Pt("neutral-fill-stealth-active").withDefault((e=>Gr.getValueFor(e).evaluate(e).active));const Wr=Pt("neutral-fill-stealth-focus").withDefault((e=>Gr.getValueFor(e).evaluate(e).focus));const Ur=Pt({name:"neutral-fill-strong-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>xt(Uo.getValueFor(e),t||sr.getValueFor(e),No.getValueFor(e),Po.getValueFor(e),Ro.getValueFor(e),Io.getValueFor(e))});const Xr=Pt("neutral-fill-strong-rest").withDefault((e=>Ur.getValueFor(e).evaluate(e).rest));const Zr=Pt("neutral-fill-strong-hover").withDefault((e=>Ur.getValueFor(e).evaluate(e).hover));const Yr=Pt("neutral-fill-strong-active").withDefault((e=>Ur.getValueFor(e).evaluate(e).active));const Jr=Pt("neutral-fill-strong-focus").withDefault((e=>Ur.getValueFor(e).evaluate(e).focus));const Kr=Rt("neutral-fill-layer-recipe").withDefault({evaluate:(e,t)=>vt(Uo.getValueFor(e),t||sr.getValueFor(e),Ao.getValueFor(e))});const Qr=Pt("neutral-fill-layer-rest").withDefault((e=>Kr.getValueFor(e).evaluate(e)));const ea=Rt("focus-stroke-outer-recipe").withDefault({evaluate:e=>yt(Uo.getValueFor(e),sr.getValueFor(e))});const ta=Pt("focus-stroke-outer").withDefault((e=>ea.getValueFor(e).evaluate(e)));const oa=Rt("focus-stroke-inner-recipe").withDefault({evaluate:e=>wt(Zo.getValueFor(e),sr.getValueFor(e),ta.getValueFor(e))});const ra=Pt("focus-stroke-inner").withDefault((e=>oa.getValueFor(e).evaluate(e)));const aa=Rt("neutral-foreground-hint-recipe").withDefault({evaluate:e=>Ft(Uo.getValueFor(e),sr.getValueFor(e))});const ia=Pt("neutral-foreground-hint").withDefault((e=>aa.getValueFor(e).evaluate(e)));const na=Rt("neutral-foreground-recipe").withDefault({evaluate:e=>kt(Uo.getValueFor(e),sr.getValueFor(e))});const la=Pt("neutral-foreground-rest").withDefault((e=>na.getValueFor(e).evaluate(e)));const sa=Pt({name:"neutral-stroke-recipe",cssCustomPropertyName:null}).withDefault({evaluate:e=>Bt(Uo.getValueFor(e),sr.getValueFor(e),Mo.getValueFor(e),Go.getValueFor(e),Eo.getValueFor(e),_o.getValueFor(e))});const ca=Pt("neutral-stroke-rest").withDefault((e=>sa.getValueFor(e).evaluate(e).rest));const da=Pt("neutral-stroke-hover").withDefault((e=>sa.getValueFor(e).evaluate(e).hover));const ua=Pt("neutral-stroke-active").withDefault((e=>sa.getValueFor(e).evaluate(e).active));const ha=Pt("neutral-stroke-focus").withDefault((e=>sa.getValueFor(e).evaluate(e).focus));const pa=Rt("neutral-stroke-divider-recipe").withDefault({evaluate:(e,t)=>Lt(Uo.getValueFor(e),t||sr.getValueFor(e),qo.getValueFor(e))});const ga=Pt("neutral-stroke-divider-rest").withDefault((e=>pa.getValueFor(e).evaluate(e)));const ba=be.DesignToken.create({name:"height-number",cssCustomPropertyName:null}).withDefault((e=>(At.getValueFor(e)+_t.getValueFor(e))*qt.getValueFor(e)));const fa=Pt("error-color").withDefault(gt);const ma=Rt("error-palette").withDefault((e=>nt.from(fa.getValueFor(e))));const va=Pt({name:"error-fill-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>Ot(ma.getValueFor(e),Uo.getValueFor(e),t||sr.getValueFor(e),mo.getValueFor(e),vo.getValueFor(e),$o.getValueFor(e),Fo.getValueFor(e),Co.getValueFor(e),So.getValueFor(e))});const $a=Pt("error-fill-rest").withDefault((e=>va.getValueFor(e).evaluate(e).rest));const xa=Pt("error-fill-hover").withDefault((e=>va.getValueFor(e).evaluate(e).hover));const ya=Pt("error-fill-active").withDefault((e=>va.getValueFor(e).evaluate(e).active));const wa=Pt("error-fill-focus").withDefault((e=>va.getValueFor(e).evaluate(e).focus));const ka=e=>(t,o)=>Nt(o||$a.getValueFor(t),e);const Fa=Pt({name:"foreground-on-error-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>ka(cr.normal)(e,t)});const Ca=Pt("foreground-on-error-rest").withDefault((e=>Fa.getValueFor(e).evaluate(e,$a.getValueFor(e))));const Sa=Pt("foreground-on-error-hover").withDefault((e=>Fa.getValueFor(e).evaluate(e,xa.getValueFor(e))));const Ta=Pt("foreground-on-error-active").withDefault((e=>Fa.getValueFor(e).evaluate(e,ya.getValueFor(e))));const Va=Pt("foreground-on-error-focus").withDefault((e=>Fa.getValueFor(e).evaluate(e,wa.getValueFor(e))));const Da=Pt({name:"foreground-on-error-large-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>ka(cr.large)(e,t)});const ja=Pt("foreground-on-error-rest-large").withDefault((e=>Da.getValueFor(e).evaluate(e,$a.getValueFor(e))));const za=Pt("foreground-on-error-hover-large").withDefault((e=>Da.getValueFor(e).evaluate(e,xa.getValueFor(e))));const Ba=Pt("foreground-on-error-active-large").withDefault((e=>Da.getValueFor(e).evaluate(e,ya.getValueFor(e))));const La=Pt("foreground-on-error-focus-large").withDefault((e=>Da.getValueFor(e).evaluate(e,wa.getValueFor(e))));const Oa=e=>(t,o)=>Ht(ma.getValueFor(t),o||sr.getValueFor(t),e,xo.getValueFor(t),yo.getValueFor(t),wo.getValueFor(t),ko.getValueFor(t));const Ha=Pt({name:"error-foreground-recipe",cssCustomPropertyName:null}).withDefault({evaluate:(e,t)=>Oa(cr.normal)(e,t)});const Na=Pt("error-foreground-rest").withDefault((e=>Ha.getValueFor(e).evaluate(e).rest));const Pa=Pt("error-foreground-hover").withDefault((e=>Ha.getValueFor(e).evaluate(e).hover));const Ra=Pt("error-foreground-active").withDefault((e=>Ha.getValueFor(e).evaluate(e).active));const Ia=Pt("error-foreground-focus").withDefault((e=>Ha.getValueFor(e).evaluate(e).focus));const Aa="data-jp-theme-name";const Ma="data-jp-theme-light";const Ga="--jp-layout-color1";let Ea=false;function _a(){if(!Ea){Ea=true;qa()}}function qa(){const e=()=>{const e=new MutationObserver((()=>{Xa()}));e.observe(document.body,{attributes:true,attributeFilter:[Aa],childList:false,characterData:false});Xa()};if(document.readyState==="complete"){e()}else{window.addEventListener("load",e)}}const Wa=e=>{const t=parseInt(e,10);return isNaN(t)?null:t};const Ua={"--jp-border-width":{converter:Wa,token:Zt},"--jp-border-radius":{converter:Wa,token:Et},[Ga]:{converter:(e,t)=>{const o=B(e);if(o){const e=q(o);const t=L.fromObject({h:e.h,s:e.s,l:.5});const r=W(t);return se.create(r.r,r.g,r.b)}else{return null}},token:Wo},"--jp-brand-color1":{converter:(e,t)=>{const o=B(e);if(o){const e=q(o);const r=t?1:-1;const a=L.fromObject({h:e.h,s:e.s,l:e.l+r*mo.getValueFor(document.body)/94});const i=W(a);return se.create(i.r,i.g,i.b)}else{return null}},token:Xo},"--jp-error-color1":{converter:(e,t)=>{const o=B(e);if(o){const e=q(o);const r=t?1:-1;const a=L.fromObject({h:e.h,s:e.s,l:e.l+r*mo.getValueFor(document.body)/94});const i=W(a);return se.create(i.r,i.g,i.b)}else{return null}},token:fa},"--jp-ui-font-family":{token:It},"--jp-ui-font-size1":{token:Jt}};function Xa(){var e;const t=getComputedStyle(document.body);const o=document.body.getAttribute(Ma);let r=false;if(o){r=o==="false"}else{const e=t.getPropertyValue(Ga).toString();if(e){const t=B(e);if(t){r=ge(se.create(t.r,t.g,t.b));console.debug(`Theme is ${r?"dark":"light"} based on '${Ga}' value: ${e}.`)}}}Gt.setValueFor(document.body,r?he.DarkMode:he.LightMode);for(const a in Ua){const o=Ua[a];const i=t.getPropertyValue(a).toString();if(document.body&&i!==""){const t=((e=o.converter)!==null&&e!==void 0?e:e=>e)(i.trim(),r);if(t!==null){o.token.setValueFor(document.body,t)}else{console.error(`Fail to parse value '${i}' for '${a}' as FAST design token.`)}}}}var Za=o(29690);const Ya=(e,t)=>(0,Za.css)`
- ${(0,be.display)("flex")} :host {
- box-sizing: border-box;
- flex-direction: column;
- font-family: ${It};
- font-size: ${Qt};
- line-height: ${eo};
- color: ${la};
- border-top: calc(${Zt} * 1px) solid ${ga};
- }
- `;var Ja;(function(e){e["Canvas"]="Canvas";e["CanvasText"]="CanvasText";e["LinkText"]="LinkText";e["VisitedText"]="VisitedText";e["ActiveText"]="ActiveText";e["ButtonFace"]="ButtonFace";e["ButtonText"]="ButtonText";e["Field"]="Field";e["FieldText"]="FieldText";e["Highlight"]="Highlight";e["HighlightText"]="HighlightText";e["GrayText"]="GrayText"})(Ja||(Ja={}));const Ka=(0,Za.cssPartial)`(${At} + ${_t} + ${Wt}) * ${qt}`;const Qa=(e,t)=>(0,Za.css)`
- ${(0,be.display)("flex")} :host {
- box-sizing: border-box;
- font-family: ${It};
- flex-direction: column;
- font-size: ${Qt};
- line-height: ${eo};
- border-bottom: calc(${Zt} * 1px) solid
- ${ga};
- }
- .region {
- display: none;
- padding: calc((6 + (${qt} * 2 * ${_t})) * 1px);
- }
- div.heading {
- display: grid;
- position: relative;
- grid-template-columns: calc(${Ka} * 1px) auto 1fr auto;
- color: ${la};
- }
- .button {
- appearance: none;
- border: none;
- background: none;
- grid-column: 3;
- outline: none;
- padding: 0 calc((6 + (${qt} * 2 * ${_t})) * 1px);
- text-align: left;
- height: calc(${Ka} * 1px);
- color: currentcolor;
- cursor: pointer;
- font-family: inherit;
- }
- .button:hover {
- color: currentcolor;
- }
- .button:active {
- color: currentcolor;
- }
- .button::before {
- content: '';
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- cursor: pointer;
- }
- /* prettier-ignore */
- .button:${be.focusVisible}::before {
- outline: none;
- border: calc(${Yt} * 1px) solid ${gr};
- border-radius: calc(${Et} * 1px);
- }
- :host([expanded]) .region {
- display: block;
- }
- .icon {
- display: flex;
- align-items: center;
- justify-content: center;
- grid-column: 1;
- grid-row: 1;
- pointer-events: none;
- position: relative;
- }
- slot[name='expanded-icon'],
- slot[name='collapsed-icon'] {
- fill: currentcolor;
- }
- slot[name='collapsed-icon'] {
- display: flex;
- }
- :host([expanded]) slot[name='collapsed-icon'] {
- display: none;
- }
- slot[name='expanded-icon'] {
- display: none;
- }
- :host([expanded]) slot[name='expanded-icon'] {
- display: flex;
- }
- .start {
- display: flex;
- align-items: center;
- padding-inline-start: calc(${qt} * 1px);
- justify-content: center;
- grid-column: 2;
- position: relative;
- }
- .end {
- display: flex;
- align-items: center;
- justify-content: center;
- grid-column: 4;
- position: relative;
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- /* prettier-ignore */
- .button:${be.focusVisible}::before {
- border-color: ${Ja.Highlight};
- }
- :host slot[name='collapsed-icon'],
- :host([expanded]) slot[name='expanded-icon'] {
- fill: ${Ja.ButtonText};
- }
- `));class ei extends be.AccordionItem{}const ti=ei.compose({baseName:"accordion-item",baseClass:be.AccordionItem,template:be.accordionItemTemplate,styles:Qa,collapsedIcon:`\n <svg\n width="20"\n height="20"\n viewBox="0 0 16 16"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"\n />\n </svg>\n `,expandedIcon:`\n <svg\n width="20"\n height="20"\n viewBox="0 0 16 16"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n transform="rotate(90,8,8)"\n d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"\n />\n </svg>\n `});class oi extends be.Accordion{}const ri=oi.compose({baseName:"accordion",baseClass:be.Accordion,template:be.accordionTemplate,styles:Ya});var ai=function(e,t){ai=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o))e[o]=t[o]};return ai(e,t)};function ii(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");ai(e,t);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}var ni=function(){ni=Object.assign||function e(t){for(var o,r=1,a=arguments.length;r<a;r++){o=arguments[r];for(var i in o)if(Object.prototype.hasOwnProperty.call(o,i))t[i]=o[i]}return t};return ni.apply(this,arguments)};function li(e,t){var o={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0)o[r]=e[r];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++){if(t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a]))o[r[a]]=e[r[a]]}return o}function si(e,t,o,r){var a=arguments.length,i=a<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,o):r,n;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")i=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)if(n=e[l])i=(a<3?n(i):a>3?n(t,o,i):n(t,o))||i;return a>3&&i&&Object.defineProperty(t,o,i),i}function ci(e,t){return function(o,r){t(o,r,e)}}function di(e,t,o,r,a,i){function n(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var l=r.kind,s=l==="getter"?"get":l==="setter"?"set":"value";var c=!t&&e?r["static"]?e:e.prototype:null;var d=t||(c?Object.getOwnPropertyDescriptor(c,r.name):{});var u,h=false;for(var p=o.length-1;p>=0;p--){var g={};for(var b in r)g[b]=b==="access"?{}:r[b];for(var b in r.access)g.access[b]=r.access[b];g.addInitializer=function(e){if(h)throw new TypeError("Cannot add initializers after decoration has completed");i.push(n(e||null))};var f=(0,o[p])(l==="accessor"?{get:d.get,set:d.set}:d[s],g);if(l==="accessor"){if(f===void 0)continue;if(f===null||typeof f!=="object")throw new TypeError("Object expected");if(u=n(f.get))d.get=u;if(u=n(f.set))d.set=u;if(u=n(f.init))a.push(u)}else if(u=n(f)){if(l==="field")a.push(u);else d[s]=u}}if(c)Object.defineProperty(c,r.name,d);h=true}function ui(e,t,o){var r=arguments.length>2;for(var a=0;a<t.length;a++){o=r?t[a].call(e,o):t[a].call(e)}return r?o:void 0}function hi(e){return typeof e==="symbol"?e:"".concat(e)}function pi(e,t,o){if(typeof t==="symbol")t=t.description?"[".concat(t.description,"]"):"";return Object.defineProperty(e,"name",{configurable:true,value:o?"".concat(o," ",t):t})}function gi(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)}function bi(e,t,o,r){function a(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,i){function n(e){try{s(r.next(e))}catch(t){i(t)}}function l(e){try{s(r["throw"](e))}catch(t){i(t)}}function s(e){e.done?o(e.value):a(e.value).then(n,l)}s((r=r.apply(e,t||[])).next())}))}function fi(e,t){var o={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,n;return n={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function l(e){return function(t){return s([e,t])}}function s(l){if(r)throw new TypeError("Generator is already executing.");while(n&&(n=0,l[0]&&(o=0)),o)try{if(r=1,a&&(i=l[0]&2?a["return"]:l[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;if(a=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:o.label++;return{value:l[1],done:false};case 5:o.label++;a=l[1];l=[0];continue;case 7:l=o.ops.pop();o.trys.pop();continue;default:if(!(i=o.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){o.label=l[1];break}if(l[0]===6&&o.label<i[1]){o.label=i[1];i=l;break}if(i&&o.label<i[2]){o.label=i[2];o.ops.push(l);break}if(i[2])o.ops.pop();o.trys.pop();continue}l=t.call(e,o)}catch(s){l=[6,s];a=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}}var mi=Object.create?function(e,t,o,r){if(r===undefined)r=o;var a=Object.getOwnPropertyDescriptor(t,o);if(!a||("get"in a?!t.__esModule:a.writable||a.configurable)){a={enumerable:true,get:function(){return t[o]}}}Object.defineProperty(e,r,a)}:function(e,t,o,r){if(r===undefined)r=o;e[r]=t[o]};function vi(e,t){for(var o in e)if(o!=="default"&&!Object.prototype.hasOwnProperty.call(t,o))mi(t,e,o)}function $i(e){var t=typeof Symbol==="function"&&Symbol.iterator,o=t&&e[t],r=0;if(o)return o.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&r>=e.length)e=void 0;return{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function xi(e,t){var o=typeof Symbol==="function"&&e[Symbol.iterator];if(!o)return e;var r=o.call(e),a,i=[],n;try{while((t===void 0||t-- >0)&&!(a=r.next()).done)i.push(a.value)}catch(l){n={error:l}}finally{try{if(a&&!a.done&&(o=r["return"]))o.call(r)}finally{if(n)throw n.error}}return i}function yi(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(xi(arguments[t]));return e}function wi(){for(var e=0,t=0,o=arguments.length;t<o;t++)e+=arguments[t].length;for(var r=Array(e),a=0,t=0;t<o;t++)for(var i=arguments[t],n=0,l=i.length;n<l;n++,a++)r[a]=i[n];return r}function ki(e,t,o){if(o||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++){if(i||!(r in t)){if(!i)i=Array.prototype.slice.call(t,0,r);i[r]=t[r]}}return e.concat(i||Array.prototype.slice.call(t))}function Fi(e){return this instanceof Fi?(this.v=e,this):new Fi(e)}function Ci(e,t,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=o.apply(e,t||[]),a,i=[];return a={},n("next"),n("throw"),n("return"),a[Symbol.asyncIterator]=function(){return this},a;function n(e){if(r[e])a[e]=function(t){return new Promise((function(o,r){i.push([e,t,o,r])>1||l(e,t)}))}}function l(e,t){try{s(r[e](t))}catch(o){u(i[0][3],o)}}function s(e){e.value instanceof Fi?Promise.resolve(e.value.v).then(c,d):u(i[0][2],e)}function c(e){l("next",e)}function d(e){l("throw",e)}function u(e,t){if(e(t),i.shift(),i.length)l(i[0][0],i[0][1])}}function Si(e){var t,o;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,a){t[r]=e[r]?function(t){return(o=!o)?{value:Fi(e[r](t)),done:false}:a?a(t):t}:a}}function Ti(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],o;return t?t.call(e):(e=typeof $i==="function"?$i(e):e[Symbol.iterator](),o={},r("next"),r("throw"),r("return"),o[Symbol.asyncIterator]=function(){return this},o);function r(t){o[t]=e[t]&&function(o){return new Promise((function(r,i){o=e[t](o),a(r,i,o.done,o.value)}))}}function a(e,t,o,r){Promise.resolve(r).then((function(t){e({value:t,done:o})}),t)}}function Vi(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e}var Di=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};function ji(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o))mi(t,e,o);Di(t,e);return t}function zi(e){return e&&e.__esModule?e:{default:e}}function Bi(e,t,o,r){if(o==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?r:o==="a"?r.call(e):r?r.value:t.get(e)}function Li(e,t,o,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(e,o):a?a.value=o:t.set(e,o),o}function Oi(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)}const Hi=(0,Za.css)`
- ${(0,be.display)("inline-flex")} :host {
- font-family: ${It};
- outline: none;
- font-size: ${Jt};
- line-height: ${Kt};
- height: calc(${Ka} * 1px);
- min-width: calc(${Ka} * 1px);
- background-color: ${Lr};
- color: ${la};
- border-radius: calc(${Et} * 1px);
- fill: currentcolor;
- cursor: pointer;
- margin: calc((${Yt} + 2) * 1px);
- }
- .control {
- background: transparent;
- height: inherit;
- flex-grow: 1;
- box-sizing: border-box;
- display: inline-flex;
- justify-content: center;
- align-items: center;
- padding: 0
- max(
- 1px,
- calc((10 + (${qt} * 2 * (${_t} + ${Wt})))) * 1px
- );
- white-space: nowrap;
- outline: none;
- text-decoration: none;
- border: calc(${Zt} * 1px) solid transparent;
- color: inherit;
- border-radius: inherit;
- fill: inherit;
- cursor: inherit;
- font-family: inherit;
- font-size: inherit;
- line-height: inherit;
- }
- :host(:hover) {
- background-color: ${Or};
- }
- :host(:active) {
- background-color: ${Hr};
- }
- :host([aria-pressed='true']) {
- box-shadow: inset 0px 0px 2px 2px ${Yr};
- }
- :host([minimal]),
- :host([scale='xsmall']) {
- --element-scale: -4;
- }
- :host([scale='small']) {
- --element-scale: -2;
- }
- :host([scale='medium']) {
- --element-scale: 0;
- }
- :host([scale='large']) {
- --element-scale: 2;
- }
- :host([scale='xlarge']) {
- --element-scale: 4;
- }
- /* prettier-ignore */
- .control:${be.focusVisible} {
- outline: calc(${Yt} * 1px) solid ${Jr};
- outline-offset: 2px;
- -moz-outline-radius: 0px;
- }
- .control::-moz-focus-inner {
- border: 0;
- }
- .start,
- .end {
- display: flex;
- }
- .control.icon-only {
- padding: 0;
- line-height: 0;
- }
- ::slotted(svg) {
- ${""} width: 16px;
- height: 16px;
- pointer-events: none;
- }
- .start {
- margin-inline-end: 11px;
- }
- .end {
- margin-inline-start: 11px;
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host .control {
- background-color: ${Ja.ButtonFace};
- border-color: ${Ja.ButtonText};
- color: ${Ja.ButtonText};
- fill: currentColor;
- }
- :host(:hover) .control {
- forced-color-adjust: none;
- background-color: ${Ja.Highlight};
- color: ${Ja.HighlightText};
- }
- /* prettier-ignore */
- .control:${be.focusVisible} {
- forced-color-adjust: none;
- background-color: ${Ja.Highlight};
- outline-color: ${Ja.ButtonText};
- color: ${Ja.HighlightText};
- }
- .control:hover,
- :host([appearance='outline']) .control:hover {
- border-color: ${Ja.ButtonText};
- }
- :host([href]) .control {
- border-color: ${Ja.LinkText};
- color: ${Ja.LinkText};
- }
- :host([href]) .control:hover,
- :host([href]) .control:${be.focusVisible} {
- forced-color-adjust: none;
- background: ${Ja.ButtonFace};
- outline-color: ${Ja.LinkText};
- color: ${Ja.LinkText};
- fill: currentColor;
- }
- `));const Ni=(0,Za.css)`
- :host([appearance='accent']) {
- background: ${ur};
- color: ${mr};
- }
- :host([appearance='accent']:hover) {
- background: ${hr};
- color: ${vr};
- }
- :host([appearance='accent'][aria-pressed='true']) {
- box-shadow: inset 0px 0px 2px 2px ${jr};
- }
- :host([appearance='accent']:active) .control:active {
- background: ${pr};
- color: ${$r};
- }
- :host([appearance="accent"]) .control:${be.focusVisible} {
- outline-color: ${gr};
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host([appearance='accent']) .control {
- forced-color-adjust: none;
- background: ${Ja.Highlight};
- color: ${Ja.HighlightText};
- }
- :host([appearance='accent']) .control:hover,
- :host([appearance='accent']:active) .control:active {
- background: ${Ja.HighlightText};
- border-color: ${Ja.Highlight};
- color: ${Ja.Highlight};
- }
- :host([appearance="accent"]) .control:${be.focusVisible} {
- outline-color: ${Ja.Highlight};
- }
- :host([appearance='accent'][href]) .control {
- background: ${Ja.LinkText};
- color: ${Ja.HighlightText};
- }
- :host([appearance='accent'][href]) .control:hover {
- background: ${Ja.ButtonFace};
- border-color: ${Ja.LinkText};
- box-shadow: none;
- color: ${Ja.LinkText};
- fill: currentColor;
- }
- :host([appearance="accent"][href]) .control:${be.focusVisible} {
- outline-color: ${Ja.HighlightText};
- }
- `));const Pi=(0,Za.css)`
- :host([appearance='error']) {
- background: ${$a};
- color: ${mr};
- }
- :host([appearance='error']:hover) {
- background: ${xa};
- color: ${vr};
- }
- :host([appearance='error'][aria-pressed='true']) {
- box-shadow: inset 0px 0px 2px 2px ${Ra};
- }
- :host([appearance='error']:active) .control:active {
- background: ${ya};
- color: ${$r};
- }
- :host([appearance="error"]) .control:${be.focusVisible} {
- outline-color: ${wa};
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host([appearance='error']) .control {
- forced-color-adjust: none;
- background: ${Ja.Highlight};
- color: ${Ja.HighlightText};
- }
- :host([appearance='error']) .control:hover,
- :host([appearance='error']:active) .control:active {
- background: ${Ja.HighlightText};
- border-color: ${Ja.Highlight};
- color: ${Ja.Highlight};
- }
- :host([appearance="error"]) .control:${be.focusVisible} {
- outline-color: ${Ja.Highlight};
- }
- :host([appearance='error'][href]) .control {
- background: ${Ja.LinkText};
- color: ${Ja.HighlightText};
- }
- :host([appearance='error'][href]) .control:hover {
- background: ${Ja.ButtonFace};
- border-color: ${Ja.LinkText};
- box-shadow: none;
- color: ${Ja.LinkText};
- fill: currentColor;
- }
- :host([appearance="error"][href]) .control:${be.focusVisible} {
- outline-color: ${Ja.HighlightText};
- }
- `));const Ri=(0,Za.css)`
- :host([appearance='hypertext']) {
- font-size: inherit;
- line-height: inherit;
- height: auto;
- min-width: 0;
- background: transparent;
- }
- :host([appearance='hypertext']) .control {
- display: inline;
- padding: 0;
- border: none;
- box-shadow: none;
- border-radius: 0;
- line-height: 1;
- }
- :host a.control:not(:link) {
- background-color: transparent;
- cursor: default;
- }
- :host([appearance='hypertext']) .control:link,
- :host([appearance='hypertext']) .control:visited {
- background: transparent;
- color: ${Vr};
- border-bottom: calc(${Zt} * 1px) solid ${Vr};
- }
- :host([appearance='hypertext']:hover),
- :host([appearance='hypertext']) .control:hover {
- background: transparent;
- border-bottom-color: ${Dr};
- }
- :host([appearance='hypertext']:active),
- :host([appearance='hypertext']) .control:active {
- background: transparent;
- border-bottom-color: ${jr};
- }
- :host([appearance="hypertext"]) .control:${be.focusVisible} {
- outline-color: transparent;
- border-bottom: calc(${Yt} * 1px) solid ${ta};
- margin-bottom: calc(calc(${Zt} - ${Yt}) * 1px);
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host([appearance='hypertext']:hover) {
- background-color: ${Ja.ButtonFace};
- color: ${Ja.ButtonText};
- }
- :host([appearance="hypertext"][href]) .control:hover,
- :host([appearance="hypertext"][href]) .control:active,
- :host([appearance="hypertext"][href]) .control:${be.focusVisible} {
- color: ${Ja.LinkText};
- border-bottom-color: ${Ja.LinkText};
- box-shadow: none;
- }
- `));const Ii=(0,Za.css)`
- :host([appearance='lightweight']) {
- background: transparent;
- color: ${Vr};
- }
- :host([appearance='lightweight']) .control {
- padding: 0;
- height: initial;
- border: none;
- box-shadow: none;
- border-radius: 0;
- }
- :host([appearance='lightweight']:hover) {
- background: transparent;
- color: ${Dr};
- }
- :host([appearance='lightweight']:active) {
- background: transparent;
- color: ${jr};
- }
- :host([appearance='lightweight']) .content {
- position: relative;
- }
- :host([appearance='lightweight']) .content::before {
- content: '';
- display: block;
- height: calc(${Zt} * 1px);
- position: absolute;
- top: calc(1em + 4px);
- width: 100%;
- }
- :host([appearance='lightweight']:hover) .content::before {
- background: ${Dr};
- }
- :host([appearance='lightweight']:active) .content::before {
- background: ${jr};
- }
- :host([appearance="lightweight"]) .control:${be.focusVisible} {
- outline-color: transparent;
- }
- :host([appearance="lightweight"]) .control:${be.focusVisible} .content::before {
- background: ${la};
- height: calc(${Yt} * 1px);
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host([appearance="lightweight"]) .control:hover,
- :host([appearance="lightweight"]) .control:${be.focusVisible} {
- forced-color-adjust: none;
- background: ${Ja.ButtonFace};
- color: ${Ja.Highlight};
- }
- :host([appearance="lightweight"]) .control:hover .content::before,
- :host([appearance="lightweight"]) .control:${be.focusVisible} .content::before {
- background: ${Ja.Highlight};
- }
- :host([appearance="lightweight"][href]) .control:hover,
- :host([appearance="lightweight"][href]) .control:${be.focusVisible} {
- background: ${Ja.ButtonFace};
- box-shadow: none;
- color: ${Ja.LinkText};
- }
- :host([appearance="lightweight"][href]) .control:hover .content::before,
- :host([appearance="lightweight"][href]) .control:${be.focusVisible} .content::before {
- background: ${Ja.LinkText};
- }
- `));const Ai=(0,Za.css)`
- :host([appearance='outline']) {
- background: transparent;
- border-color: ${ur};
- }
- :host([appearance='outline']:hover) {
- border-color: ${hr};
- }
- :host([appearance='outline']:active) {
- border-color: ${pr};
- }
- :host([appearance='outline']) .control {
- border-color: inherit;
- }
- :host([appearance="outline"]) .control:${be.focusVisible} {
- outline-color: ${gr};
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host([appearance='outline']) .control {
- border-color: ${Ja.ButtonText};
- }
- :host([appearance="outline"]) .control:${be.focusVisible} {
- forced-color-adjust: none;
- background-color: ${Ja.Highlight};
- outline-color: ${Ja.ButtonText};
- color: ${Ja.HighlightText};
- fill: currentColor;
- }
- :host([appearance='outline'][href]) .control {
- background: ${Ja.ButtonFace};
- border-color: ${Ja.LinkText};
- color: ${Ja.LinkText};
- fill: currentColor;
- }
- :host([appearance="outline"][href]) .control:hover,
- :host([appearance="outline"][href]) .control:${be.focusVisible} {
- forced-color-adjust: none;
- outline-color: ${Ja.LinkText};
- }
- `));const Mi=(0,Za.css)`
- :host([appearance='stealth']),
- :host([appearance='stealth'][disabled]:active),
- :host([appearance='stealth'][disabled]:hover) {
- background: transparent;
- }
- :host([appearance='stealth']:hover) {
- background: ${_r};
- }
- :host([appearance='stealth']:active) {
- background: ${qr};
- }
- :host([appearance='stealth']) .control:${be.focusVisible} {
- outline-color: ${gr};
- }
- /* Make the focus outline displayed within the button if
- it is in a start or end slot; e.g. in a tree item
- This will make the focus outline bounded within the container.
- */
- :host([appearance='stealth'][slot="end"]) .control:${be.focusVisible},
- :host([appearance='stealth'][slot="start"]) .control:${be.focusVisible} {
- outline-offset: -2px;
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host([appearance='stealth']),
- :host([appearance='stealth']) .control {
- forced-color-adjust: none;
- background: ${Ja.ButtonFace};
- border-color: transparent;
- color: ${Ja.ButtonText};
- fill: currentColor;
- }
- :host([appearance='stealth']:hover) .control {
- background: ${Ja.Highlight};
- border-color: ${Ja.Highlight};
- color: ${Ja.HighlightText};
- fill: currentColor;
- }
- :host([appearance="stealth"]:${be.focusVisible}) .control {
- outline-color: ${Ja.Highlight};
- color: ${Ja.HighlightText};
- fill: currentColor;
- }
- :host([appearance='stealth'][href]) .control {
- color: ${Ja.LinkText};
- }
- :host([appearance="stealth"][href]:hover) .control,
- :host([appearance="stealth"][href]:${be.focusVisible}) .control {
- background: ${Ja.LinkText};
- border-color: ${Ja.LinkText};
- color: ${Ja.HighlightText};
- fill: currentColor;
- }
- :host([appearance="stealth"][href]:${be.focusVisible}) .control {
- forced-color-adjust: none;
- box-shadow: 0 0 0 1px ${Ja.LinkText};
- }
- `));function Gi(e,t){return new be.PropertyStyleSheetBehavior("appearance",e,t)}const Ei=(e,t)=>(0,Za.css)`
- ${Hi}
- `.withBehaviors(Gi("accent",Ni),Gi("hypertext",Ri),Gi("lightweight",Ii),Gi("outline",Ai),Gi("stealth",Mi));class _i extends be.Anchor{appearanceChanged(e,t){if(this.$fastController.isConnected){this.classList.remove(e);this.classList.add(t)}}connectedCallback(){super.connectedCallback();if(!this.appearance){this.appearance="neutral"}}defaultSlottedContentChanged(e,t){const o=this.defaultSlottedContent.filter((e=>e.nodeType===Node.ELEMENT_NODE));if(o.length===1&&o[0]instanceof SVGElement){this.control.classList.add("icon-only")}else{this.control.classList.remove("icon-only")}}}si([Za.attr],_i.prototype,"appearance",void 0);const qi=_i.compose({baseName:"anchor",baseClass:be.Anchor,template:be.anchorTemplate,styles:Ei,shadowOptions:{delegatesFocus:true}});const Wi=(e,t)=>(0,Za.css)`
- :host {
- contain: layout;
- display: block;
- }
- `;class Ui extends be.AnchoredRegion{}const Xi=Ui.compose({baseName:"anchored-region",baseClass:be.AnchoredRegion,template:be.anchoredRegionTemplate,styles:Wi});class Zi{constructor(e,t){this.cache=new WeakMap;this.ltr=e;this.rtl=t}bind(e){this.attach(e)}unbind(e){const t=this.cache.get(e);if(t){Ut.unsubscribe(t)}}attach(e){const t=this.cache.get(e)||new Yi(this.ltr,this.rtl,e);const o=Ut.getValueFor(e);Ut.subscribe(t);t.attach(o);this.cache.set(e,t)}}class Yi{constructor(e,t,o){this.ltr=e;this.rtl=t;this.source=o;this.attached=null}handleChange({target:e,token:t}){this.attach(t.getValueFor(e))}attach(e){if(this.attached!==this[e]){if(this.attached!==null){this.source.$fastController.removeStyles(this.attached)}this.attached=this[e];if(this.attached!==null){this.source.$fastController.addStyles(this.attached)}}}}const Ji=(e,t)=>(0,Za.css)`
- ::slotted(${e.tagFor(be.Badge)}) {
- left: 0;
- }
- `;const Ki=(e,t)=>(0,Za.css)`
- ::slotted(${e.tagFor(be.Badge)}) {
- right: 0;
- }
- `;const Qi=(e,t)=>(0,Za.css)`
- ${(0,be.display)("flex")} :host {
- position: relative;
- height: var(--avatar-size, var(--avatar-size-default));
- width: var(--avatar-size, var(--avatar-size-default));
- --avatar-size-default: calc(
- (
- (${At} + ${_t}) * ${qt} +
- ((${qt} * 8) - 40)
- ) * 1px
- );
- --avatar-text-size: ${Jt};
- --avatar-text-ratio: ${qt};
- }
- .link {
- text-decoration: none;
- color: ${la};
- display: flex;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- min-width: 100%;
- }
- .square {
- border-radius: calc(${Et} * 1px);
- min-width: 100%;
- overflow: hidden;
- }
- .circle {
- border-radius: 100%;
- min-width: 100%;
- overflow: hidden;
- }
- .backplate {
- position: relative;
- display: flex;
- background-color: ${ur};
- }
- .media,
- ::slotted(img) {
- max-width: 100%;
- position: absolute;
- display: block;
- }
- .content {
- font-size: calc(
- (
- var(--avatar-text-size) +
- var(--avatar-size, var(--avatar-size-default))
- ) / var(--avatar-text-ratio)
- );
- line-height: var(--avatar-size, var(--avatar-size-default));
- display: block;
- min-height: var(--avatar-size, var(--avatar-size-default));
- }
- ::slotted(${e.tagFor(be.Badge)}) {
- position: absolute;
- display: block;
- }
- `.withBehaviors(new Zi(Ki(e,t),Ji(e,t)));class en extends be.Avatar{}si([(0,Za.attr)({attribute:"src"})],en.prototype,"imgSrc",void 0);si([Za.attr],en.prototype,"alt",void 0);const tn=(0,Za.html)`
- ${(0,Za.when)((e=>e.imgSrc),(0,Za.html)`
- <img
- src="${e=>e.imgSrc}"
- alt="${e=>e.alt}"
- slot="media"
- class="media"
- part="media"
- />
- `)}
- `;const on=en.compose({baseName:"avatar",baseClass:be.Avatar,template:be.avatarTemplate,styles:Qi,media:tn,shadowOptions:{delegatesFocus:true}});const rn=(e,t)=>(0,Za.css)`
- ${(0,be.display)("inline-block")} :host {
- box-sizing: border-box;
- font-family: ${It};
- font-size: ${Qt};
- line-height: ${eo};
- }
- .control {
- border-radius: calc(${Et} * 1px);
- padding: calc(((${qt} * 0.5) - ${Zt}) * 1px)
- calc((${qt} - ${Zt}) * 1px);
- color: ${la};
- font-weight: 600;
- border: calc(${Zt} * 1px) solid transparent;
- background-color: ${Lr};
- }
- .control[style] {
- font-weight: 400;
- }
- :host([circular]) .control {
- border-radius: 100px;
- padding: 0 calc(${qt} * 1px);
- height: calc((${Ka} - (${qt} * 3)) * 1px);
- min-width: calc((${Ka} - (${qt} * 3)) * 1px);
- display: flex;
- align-items: center;
- justify-content: center;
- box-sizing: border-box;
- }
- `;class an extends be.Badge{}const nn=an.compose({baseName:"badge",baseClass:be.Badge,template:be.badgeTemplate,styles:rn});const ln=(e,t)=>(0,Za.css)`
- ${(0,be.display)("inline-block")} :host {
- box-sizing: border-box;
- font-family: ${It};
- font-size: ${Jt};
- line-height: ${Kt};
- }
- .list {
- display: flex;
- flex-wrap: wrap;
- }
- `;class sn extends be.Breadcrumb{}const cn=sn.compose({baseName:"breadcrumb",baseClass:be.Breadcrumb,template:be.breadcrumbTemplate,styles:ln});const dn=(e,t)=>(0,Za.css)`
- ${(0,be.display)("inline-flex")} :host {
- background: transparent;
- box-sizing: border-box;
- font-family: ${It};
- font-size: ${Jt};
- fill: currentColor;
- line-height: ${Kt};
- min-width: calc(${Ka} * 1px);
- outline: none;
- color: ${la}
- }
- .listitem {
- display: flex;
- align-items: center;
- width: max-content;
- }
- .separator {
- margin: 0 6px;
- display: flex;
- }
- .control {
- align-items: center;
- box-sizing: border-box;
- color: ${Vr};
- cursor: pointer;
- display: flex;
- fill: inherit;
- outline: none;
- text-decoration: none;
- white-space: nowrap;
- }
- .control:hover {
- color: ${Dr};
- }
- .control:active {
- color: ${jr};
- }
- .control .content {
- position: relative;
- }
- .control .content::before {
- content: "";
- display: block;
- height: calc(${Zt} * 1px);
- left: 0;
- position: absolute;
- right: 0;
- top: calc(1em + 4px);
- width: 100%;
- }
- .control:hover .content::before {
- background: ${Dr};
- }
- .control:active .content::before {
- background: ${jr};
- }
- .control:${be.focusVisible} .content::before {
- background: ${zr};
- height: calc(${Yt} * 1px);
- }
- .control:not([href]) {
- color: ${la};
- cursor: default;
- }
- .control:not([href]) .content::before {
- background: none;
- }
- .start,
- .end {
- display: flex;
- }
- ::slotted(svg) {
- /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
- width: 16px;
- height: 16px;
- }
- .start {
- margin-inline-end: 6px;
- }
- .end {
- margin-inline-start: 6px;
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- .control:hover .content::before,
- .control:${be.focusVisible} .content::before {
- background: ${Ja.LinkText};
- }
- .start,
- .end {
- fill: ${Ja.ButtonText};
- }
- `));class un extends be.BreadcrumbItem{}const hn=un.compose({baseName:"breadcrumb-item",baseClass:be.BreadcrumbItem,template:be.breadcrumbItemTemplate,styles:dn,separator:"/",shadowOptions:{delegatesFocus:true}});const pn=(e,t)=>(0,Za.css)`
- :host([disabled]),
- :host([disabled]:hover),
- :host([disabled]:active) {
- opacity: ${Xt};
- background-color: ${Lr};
- cursor: ${be.disabledCursor};
- }
- ${Hi}
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host([disabled]),
- :host([disabled]) .control,
- :host([disabled]:hover),
- :host([disabled]:active) {
- forced-color-adjust: none;
- background-color: ${Ja.ButtonFace};
- outline-color: ${Ja.GrayText};
- color: ${Ja.GrayText};
- cursor: ${be.disabledCursor};
- opacity: 1;
- }
- `),Gi("accent",(0,Za.css)`
- :host([appearance='accent'][disabled]),
- :host([appearance='accent'][disabled]:hover),
- :host([appearance='accent'][disabled]:active) {
- background: ${ur};
- }
- ${Ni}
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host([appearance='accent'][disabled]) .control,
- :host([appearance='accent'][disabled]) .control:hover {
- background: ${Ja.ButtonFace};
- border-color: ${Ja.GrayText};
- color: ${Ja.GrayText};
- }
- `))),Gi("error",(0,Za.css)`
- :host([appearance='error'][disabled]),
- :host([appearance='error'][disabled]:hover),
- :host([appearance='error'][disabled]:active) {
- background: ${$a};
- }
- ${Pi}
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host([appearance='error'][disabled]) .control,
- :host([appearance='error'][disabled]) .control:hover {
- background: ${Ja.ButtonFace};
- border-color: ${Ja.GrayText};
- color: ${Ja.GrayText};
- }
- `))),Gi("lightweight",(0,Za.css)`
- :host([appearance='lightweight'][disabled]:hover),
- :host([appearance='lightweight'][disabled]:active) {
- background-color: transparent;
- color: ${Vr};
- }
- :host([appearance='lightweight'][disabled]) .content::before,
- :host([appearance='lightweight'][disabled]:hover) .content::before,
- :host([appearance='lightweight'][disabled]:active) .content::before {
- background: transparent;
- }
- ${Ii}
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host([appearance='lightweight'].disabled) .control {
- forced-color-adjust: none;
- color: ${Ja.GrayText};
- }
- :host([appearance='lightweight'].disabled)
- .control:hover
- .content::before {
- background: none;
- }
- `))),Gi("outline",(0,Za.css)`
- :host([appearance='outline'][disabled]),
- :host([appearance='outline'][disabled]:hover),
- :host([appearance='outline'][disabled]:active) {
- background: transparent;
- border-color: ${ur};
- }
- ${Ai}
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host([appearance='outline'][disabled]) .control {
- border-color: ${Ja.GrayText};
- }
- `))),Gi("stealth",(0,Za.css)`
- ${Mi}
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host([appearance='stealth'][disabled]) {
- background: ${Ja.ButtonFace};
- }
- :host([appearance='stealth'][disabled]) .control {
- background: ${Ja.ButtonFace};
- border-color: transparent;
- color: ${Ja.GrayText};
- }
- `))));class gn extends be.Button{constructor(){super(...arguments);this.appearance="neutral"}defaultSlottedContentChanged(e,t){const o=this.defaultSlottedContent.filter((e=>e.nodeType===Node.ELEMENT_NODE));if(o.length===1&&(o[0]instanceof SVGElement||o[0].classList.contains("fa")||o[0].classList.contains("fas"))){this.control.classList.add("icon-only")}else{this.control.classList.remove("icon-only")}}}si([Za.attr],gn.prototype,"appearance",void 0);si([(0,Za.attr)({attribute:"minimal",mode:"boolean"})],gn.prototype,"minimal",void 0);si([Za.attr],gn.prototype,"scale",void 0);const bn=gn.compose({baseName:"button",baseClass:be.Button,template:be.buttonTemplate,styles:pn,shadowOptions:{delegatesFocus:true}});const fn="0 0 calc((var(--elevation) * 0.225px) + 2px) rgba(0, 0, 0, calc(.11 * (2 - var(--background-luminance, 1))))";const mn="0 calc(var(--elevation) * 0.4px) calc((var(--elevation) * 0.9px)) rgba(0, 0, 0, calc(.13 * (2 - var(--background-luminance, 1))))";const vn=`box-shadow: ${fn}, ${mn};`;const $n=(e,t)=>(0,Za.css)`
- ${(0,be.display)("block")} :host {
- --elevation: 4;
- display: block;
- contain: content;
- height: var(--card-height, 100%);
- width: var(--card-width, 100%);
- box-sizing: border-box;
- background: ${sr};
- border-radius: calc(${Et} * 1px);
- ${vn}
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host {
- forced-color-adjust: none;
- background: ${Ja.Canvas};
- box-shadow: 0 0 0 1px ${Ja.CanvasText};
- }
- `));class xn extends be.Card{connectedCallback(){super.connectedCallback();const e=(0,be.composedParent)(this);if(e){sr.setValueFor(this,(t=>Kr.getValueFor(t).evaluate(t,sr.getValueFor(e))))}}}const yn=xn.compose({baseName:"card",baseClass:be.Card,template:be.cardTemplate,styles:$n});const wn=(e,t)=>(0,Za.css)`
- ${(0,be.display)("inline-flex")} :host {
- align-items: center;
- outline: none;
- margin: calc(${qt} * 1px) 0;
- /* Chromium likes to select label text or the default slot when the checkbox is
- clicked. Maybe there is a better solution here? */
- user-select: none;
- }
- .control {
- position: relative;
- width: calc((${Ka} / 2 + ${qt}) * 1px);
- height: calc((${Ka} / 2 + ${qt}) * 1px);
- box-sizing: border-box;
- border-radius: calc(${Et} * 1px);
- border: calc(${Zt} * 1px) solid ${ca};
- background: ${Rr};
- outline: none;
- cursor: pointer;
- }
- :host([aria-invalid='true']) .control {
- border-color: ${$a};
- }
- .label {
- font-family: ${It};
- color: ${la};
- /* Need to discuss with Brian how HorizontalSpacingNumber can work.
- https://github.com/microsoft/fast/issues/2766 */
- padding-inline-start: calc(${qt} * 2px + 2px);
- margin-inline-end: calc(${qt} * 2px + 2px);
- cursor: pointer;
- font-size: ${Jt};
- line-height: ${Kt};
- }
- .label__hidden {
- display: none;
- visibility: hidden;
- }
- .checked-indicator {
- width: 100%;
- height: 100%;
- display: block;
- fill: ${mr};
- opacity: 0;
- pointer-events: none;
- }
- .indeterminate-indicator {
- border-radius: calc(${Et} * 1px);
- background: ${mr};
- position: absolute;
- top: 50%;
- left: 50%;
- width: 50%;
- height: 50%;
- transform: translate(-50%, -50%);
- opacity: 0;
- }
- :host(:not([disabled])) .control:hover {
- background: ${Ir};
- border-color: ${da};
- }
- :host(:not([disabled])) .control:active {
- background: ${Ar};
- border-color: ${ua};
- }
- :host([aria-invalid='true']:not([disabled])) .control:hover {
- border-color: ${xa};
- }
- :host([aria-invalid='true']:not([disabled])) .control:active {
- border-color: ${ya};
- }
- :host(:${be.focusVisible}) .control {
- outline: calc(${Yt} * 1px) solid ${gr};
- outline-offset: 2px;
- }
- :host([aria-invalid='true']:${be.focusVisible}) .control {
- outline-color: ${wa};
- }
- :host([aria-checked='true']) .control {
- background: ${ur};
- border: calc(${Zt} * 1px) solid ${ur};
- }
- :host([aria-checked='true']:not([disabled])) .control:hover {
- background: ${hr};
- border: calc(${Zt} * 1px) solid ${hr};
- }
- :host([aria-invalid='true'][aria-checked='true']) .control {
- background-color: ${$a};
- border-color: ${$a};
- }
- :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
- .control:hover {
- background-color: ${xa};
- border-color: ${xa};
- }
- :host([aria-checked='true']:not([disabled]))
- .control:hover
- .checked-indicator {
- fill: ${vr};
- }
- :host([aria-checked='true']:not([disabled]))
- .control:hover
- .indeterminate-indicator {
- background: ${vr};
- }
- :host([aria-checked='true']:not([disabled])) .control:active {
- background: ${pr};
- border: calc(${Zt} * 1px) solid ${pr};
- }
- :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
- .control:active {
- background-color: ${ya};
- border-color: ${ya};
- }
- :host([aria-checked='true']:not([disabled]))
- .control:active
- .checked-indicator {
- fill: ${$r};
- }
- :host([aria-checked='true']:not([disabled]))
- .control:active
- .indeterminate-indicator {
- background: ${$r};
- }
- :host([aria-checked="true"]:${be.focusVisible}:not([disabled])) .control {
- outline: calc(${Yt} * 1px) solid ${gr};
- outline-offset: 2px;
- }
- :host([aria-invalid='true'][aria-checked="true"]:${be.focusVisible}:not([disabled])) .control {
- outline-color: ${wa};
- }
- :host([disabled]) .label,
- :host([readonly]) .label,
- :host([readonly]) .control,
- :host([disabled]) .control {
- cursor: ${be.disabledCursor};
- }
- :host([aria-checked='true']:not(.indeterminate)) .checked-indicator,
- :host(.indeterminate) .indeterminate-indicator {
- opacity: 1;
- }
- :host([disabled]) {
- opacity: ${Xt};
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- .control {
- forced-color-adjust: none;
- border-color: ${Ja.FieldText};
- background: ${Ja.Field};
- }
- :host([aria-invalid='true']) .control {
- border-style: dashed;
- }
- .checked-indicator {
- fill: ${Ja.FieldText};
- }
- .indeterminate-indicator {
- background: ${Ja.FieldText};
- }
- :host(:not([disabled])) .control:hover,
- .control:active {
- border-color: ${Ja.Highlight};
- background: ${Ja.Field};
- }
- :host(:${be.focusVisible}) .control {
- outline: calc(${Yt} * 1px) solid ${Ja.FieldText};
- outline-offset: 2px;
- }
- :host([aria-checked="true"]:${be.focusVisible}:not([disabled])) .control {
- outline: calc(${Yt} * 1px) solid ${Ja.FieldText};
- outline-offset: 2px;
- }
- :host([aria-checked='true']) .control {
- background: ${Ja.Highlight};
- border-color: ${Ja.Highlight};
- }
- :host([aria-checked='true']:not([disabled])) .control:hover,
- .control:active {
- border-color: ${Ja.Highlight};
- background: ${Ja.HighlightText};
- }
- :host([aria-checked='true']) .checked-indicator {
- fill: ${Ja.HighlightText};
- }
- :host([aria-checked='true']:not([disabled]))
- .control:hover
- .checked-indicator {
- fill: ${Ja.Highlight};
- }
- :host([aria-checked='true']) .indeterminate-indicator {
- background: ${Ja.HighlightText};
- }
- :host([aria-checked='true']) .control:hover .indeterminate-indicator {
- background: ${Ja.Highlight};
- }
- :host([disabled]) {
- opacity: 1;
- }
- :host([disabled]) .control {
- forced-color-adjust: none;
- border-color: ${Ja.GrayText};
- background: ${Ja.Field};
- }
- :host([disabled]) .indeterminate-indicator,
- :host([aria-checked='true'][disabled])
- .control:hover
- .indeterminate-indicator {
- forced-color-adjust: none;
- background: ${Ja.GrayText};
- }
- :host([disabled]) .checked-indicator,
- :host([aria-checked='true'][disabled]) .control:hover .checked-indicator {
- forced-color-adjust: none;
- fill: ${Ja.GrayText};
- }
- `));const kn=(e,t)=>(0,Za.html)`
- <template
- role="checkbox"
- aria-checked="${e=>e.checked}"
- aria-required="${e=>e.required}"
- aria-disabled="${e=>e.disabled}"
- aria-readonly="${e=>e.readOnly}"
- tabindex="${e=>e.disabled?null:0}"
- @keypress="${(e,t)=>e.keypressHandler(t.event)}"
- @click="${(e,t)=>e.clickHandler(t.event)}"
- >
- <div part="control" class="control">
- <slot name="checked-indicator">
- ${t.checkedIndicator||""}
- </slot>
- <slot name="indeterminate-indicator">
- ${t.indeterminateIndicator||""}
- </slot>
- </div>
- <label
- part="label"
- class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
- >
- <slot ${(0,Za.slotted)("defaultSlottedNodes")}></slot>
- </label>
- </template>
- `;class Fn extends be.Checkbox{indeterminateChanged(e,t){if(this.indeterminate){this.classList.add("indeterminate")}else{this.classList.remove("indeterminate")}}}const Cn=Fn.compose({baseName:"checkbox",baseClass:be.Checkbox,template:kn,styles:wn,checkedIndicator:`\n <svg\n part="checked-indicator"\n class="checked-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n `,indeterminateIndicator:`\n <div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n `});const Sn=(e,t)=>{const o=e.tagFor(be.ListboxOption);const r=e.name===e.tagFor(be.ListboxElement)?"":".listbox";return(0,Za.css)`
- ${!r?(0,be.display)("inline-flex"):""}
- :host ${r} {
- background: ${sr};
- border: calc(${Zt} * 1px) solid ${ca};
- border-radius: calc(${Et} * 1px);
- box-sizing: border-box;
- flex-direction: column;
- padding: calc(${qt} * 1px) 0;
- }
- ${!r?(0,Za.css)`
- :host(:${be.focusVisible}:not([disabled])) {
- outline: none;
- }
- :host(:focus-within:not([disabled])) {
- border-color: ${ta};
- box-shadow: 0 0 0
- calc((${Yt} - ${Zt}) * 1px)
- ${ta} inset;
- }
- :host([disabled]) ::slotted(*) {
- cursor: ${be.disabledCursor};
- opacity: ${Xt};
- pointer-events: none;
- }
- `:""}
- ${r||":host([size])"} {
- max-height: calc(
- (var(--size) * ${Ka} + (${qt} * ${Zt} * 2)) * 1px
- );
- overflow-y: auto;
- }
- :host([size="0"]) ${r} {
- max-height: none;
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host(:not([multiple]):${be.focusVisible}) ::slotted(${o}[aria-selected="true"]),
- :host([multiple]:${be.focusVisible}) ::slotted(${o}[aria-checked="true"]) {
- border-color: ${Ja.ButtonText};
- box-shadow: 0 0 0 calc(${Yt} * 1px) inset ${Ja.HighlightText};
- }
- :host(:not([multiple]):${be.focusVisible}) ::slotted(${o}[aria-selected="true"]) {
- background: ${Ja.Highlight};
- color: ${Ja.HighlightText};
- fill: currentcolor;
- }
- ::slotted(${o}[aria-selected="true"]:not([aria-checked="true"])) {
- background: ${Ja.Highlight};
- border-color: ${Ja.HighlightText};
- color: ${Ja.HighlightText};
- }
- `))};const Tn=(e,t)=>{const o=e.name===e.tagFor(be.Select);return(0,Za.css)`
- ${(0,be.display)("inline-flex")}
-
- :host {
- --elevation: 14;
- background: ${Rr};
- border-radius: calc(${Et} * 1px);
- border: calc(${Zt} * 1px) solid ${Xr};
- box-sizing: border-box;
- color: ${la};
- font-family: ${It};
- height: calc(${Ka} * 1px);
- position: relative;
- user-select: none;
- min-width: 250px;
- outline: none;
- vertical-align: top;
- }
- :host([aria-invalid='true']) {
- border-color: ${$a};
- }
-
- :host(:not([autowidth])) {
- min-width: 250px;
- }
-
- ${o?(0,Za.css)`
- :host(:not([aria-haspopup])) {
- --elevation: 0;
- border: 0;
- height: auto;
- min-width: 0;
- }
- `:""}
-
- ${Sn(e,t)}
-
- :host .listbox {
- ${vn}
- border: none;
- display: flex;
- left: 0;
- position: absolute;
- width: 100%;
- z-index: 1;
- }
-
- .control + .listbox {
- --stroke-size: calc(${qt} * ${Zt} * 2);
- max-height: calc(
- (var(--listbox-max-height) * ${Ka} + var(--stroke-size)) * 1px
- );
- }
-
- ${o?(0,Za.css)`
- :host(:not([aria-haspopup])) .listbox {
- left: auto;
- position: static;
- z-index: auto;
- }
- `:""}
-
- :host(:not([autowidth])) .listbox {
- width: 100%;
- }
-
- :host([autowidth]) ::slotted([role='option']),
- :host([autowidth]) ::slotted(option) {
- padding: 0 calc(1em + ${qt} * 1.25px + 1px);
- }
-
- .listbox[hidden] {
- display: none;
- }
-
- .control {
- align-items: center;
- box-sizing: border-box;
- cursor: pointer;
- display: flex;
- font-size: ${Jt};
- font-family: inherit;
- line-height: ${Kt};
- min-height: 100%;
- padding: 0 calc(${qt} * 2.25px);
- width: 100%;
- }
- :host([minimal]),
- :host([scale='xsmall']) {
- --element-scale: -4;
- }
- :host([scale='small']) {
- --element-scale: -2;
- }
- :host([scale='medium']) {
- --element-scale: 0;
- }
- :host([scale='large']) {
- --element-scale: 2;
- }
- :host([scale='xlarge']) {
- --element-scale: 4;
- }
-
- :host(:not([disabled]):hover) {
- background: ${Ir};
- border-color: ${Zr};
- }
-
- :host([aria-invalid='true']:not([disabled]):hover) {
- border-color: ${xa};
- }
-
- :host(:${be.focusVisible}) {
- border-color: ${gr};
- box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
- ${gr};
- }
-
- :host([aria-invalid='true']:${be.focusVisible}) {
- border-color: ${wa};
- box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
- ${wa};
- }
-
- :host(:not([size]):not([multiple]):not([open]):${be.focusVisible}),
- :host([multiple]:${be.focusVisible}),
- :host([size]:${be.focusVisible}) {
- box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
- ${gr};
- }
-
- :host([aria-invalid='true']:not([size]):not([multiple]):not([open]):${be.focusVisible}),
- :host([aria-invalid='true'][multiple]:${be.focusVisible}),
- :host([aria-invalid='true'][size]:${be.focusVisible}) {
- box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
- ${wa};
- }
-
- :host(:not([multiple]):not([size]):${be.focusVisible}) ::slotted(${e.tagFor(be.ListboxOption)}[aria-selected="true"]:not([disabled])) {
- box-shadow: 0 0 0 calc(${Yt} * 1px) inset ${gr};
- border-color: ${gr};
- background: ${gr};
- color: ${xr};
- }
-
- :host([disabled]) {
- cursor: ${be.disabledCursor};
- opacity: ${Xt};
- }
-
- :host([disabled]) .control {
- cursor: ${be.disabledCursor};
- user-select: none;
- }
-
- :host([disabled]:hover) {
- background: ${Er};
- color: ${la};
- fill: currentcolor;
- }
-
- :host(:not([disabled])) .control:active {
- background: ${Ar};
- border-color: ${pr};
- border-radius: calc(${Et} * 1px);
- }
-
- :host([open][position="above"]) .listbox {
- border-bottom-left-radius: 0;
- border-bottom-right-radius: 0;
- border-bottom: 0;
- bottom: calc(${Ka} * 1px);
- }
-
- :host([open][position="below"]) .listbox {
- border-top-left-radius: 0;
- border-top-right-radius: 0;
- border-top: 0;
- top: calc(${Ka} * 1px);
- }
-
- .selected-value {
- flex: 1 1 auto;
- font-family: inherit;
- overflow: hidden;
- text-align: start;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
-
- .indicator {
- flex: 0 0 auto;
- margin-inline-start: 1em;
- }
-
- slot[name="listbox"] {
- display: none;
- width: 100%;
- }
-
- :host([open]) slot[name="listbox"] {
- display: flex;
- position: absolute;
- ${vn}
- }
-
- .end {
- margin-inline-start: auto;
- }
-
- .start,
- .end,
- .indicator,
- .select-indicator,
- ::slotted(svg) {
- /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
- fill: currentcolor;
- height: 1em;
- min-height: calc(${qt} * 4px);
- min-width: calc(${qt} * 4px);
- width: 1em;
- }
-
- ::slotted([role="option"]),
- ::slotted(option) {
- flex: 0 0 auto;
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host(:not([disabled]):hover),
- :host(:not([disabled]):active) {
- border-color: ${Ja.Highlight};
- }
- :host([aria-invalid='true']) {
- border-style: dashed;
- }
-
- :host(:not([disabled]):${be.focusVisible}) {
- background-color: ${Ja.ButtonFace};
- box-shadow: 0 0 0 calc(${Yt} * 1px) ${Ja.Highlight};
- color: ${Ja.ButtonText};
- fill: currentcolor;
- forced-color-adjust: none;
- }
-
- :host(:not([disabled]):${be.focusVisible}) .listbox {
- background: ${Ja.ButtonFace};
- }
-
- :host([disabled]) {
- border-color: ${Ja.GrayText};
- background-color: ${Ja.ButtonFace};
- color: ${Ja.GrayText};
- fill: currentcolor;
- opacity: 1;
- forced-color-adjust: none;
- }
-
- :host([disabled]:hover) {
- background: ${Ja.ButtonFace};
- }
-
- :host([disabled]) .control {
- color: ${Ja.GrayText};
- border-color: ${Ja.GrayText};
- }
-
- :host([disabled]) .control .select-indicator {
- fill: ${Ja.GrayText};
- }
-
- :host(:${be.focusVisible}) ::slotted([aria-selected="true"][role="option"]),
- :host(:${be.focusVisible}) ::slotted(option[aria-selected="true"]),
- :host(:${be.focusVisible}) ::slotted([aria-selected="true"][role="option"]:not([disabled])) {
- background: ${Ja.Highlight};
- border-color: ${Ja.ButtonText};
- box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
- ${Ja.HighlightText};
- color: ${Ja.HighlightText};
- fill: currentcolor;
- }
-
- .start,
- .end,
- .indicator,
- .select-indicator,
- ::slotted(svg) {
- color: ${Ja.ButtonText};
- fill: currentcolor;
- }
- `))};const Vn=(e,t)=>(0,Za.css)`
- ${Tn(e,t)}
- :host(:empty) .listbox {
- display: none;
- }
- :host([disabled]) *,
- :host([disabled]) {
- cursor: ${be.disabledCursor};
- user-select: none;
- }
- :host(:focus-within:not([disabled])) {
- border-color: ${gr};
- box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
- ${gr};
- }
- :host([aria-invalid='true']:focus-within:not([disabled])) {
- border-color: ${wa};
- box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
- ${wa};
- }
- .selected-value {
- -webkit-appearance: none;
- background: transparent;
- border: none;
- color: inherit;
- font-size: ${Jt};
- line-height: ${Kt};
- height: calc(100% - (${Zt} * 1px));
- margin: auto 0;
- width: 100%;
- }
- .selected-value:hover,
- .selected-value:${be.focusVisible},
- .selected-value:disabled,
- .selected-value:active {
- outline: none;
- }
- `;class Dn extends be.Combobox{connectedCallback(){super.connectedCallback();this.setAutoWidth()}slottedOptionsChanged(e,t){super.slottedOptionsChanged(e,t);this.setAutoWidth()}autoWidthChanged(e,t){if(t){this.setAutoWidth()}else{this.style.removeProperty("width")}}setAutoWidth(){if(!this.autoWidth||!this.isConnected){return}let e=this.listbox.getBoundingClientRect().width;if(e===0&&this.listbox.hidden){Object.assign(this.listbox.style,{visibility:"hidden"});this.listbox.removeAttribute("hidden");e=this.listbox.getBoundingClientRect().width;this.listbox.setAttribute("hidden","");this.listbox.style.removeProperty("visibility")}if(e>0){Object.assign(this.style,{width:`${e}px`})}}maxHeightChanged(e,t){this.updateComputedStylesheet()}updateComputedStylesheet(){if(this.computedStylesheet){this.$fastController.removeStyles(this.computedStylesheet)}const e=Math.floor(this.maxHeight/ba.getValueFor(this)).toString();this.computedStylesheet=(0,Za.css)`
- :host {
- --listbox-max-height: ${e};
- }
- `;this.$fastController.addStyles(this.computedStylesheet)}}si([(0,Za.attr)({attribute:"autowidth",mode:"boolean"})],Dn.prototype,"autoWidth",void 0);si([(0,Za.attr)({attribute:"minimal",mode:"boolean"})],Dn.prototype,"minimal",void 0);si([Za.attr],Dn.prototype,"scale",void 0);const jn=Dn.compose({baseName:"combobox",baseClass:be.Combobox,template:be.comboboxTemplate,styles:Vn,shadowOptions:{delegatesFocus:true},indicator:`\n <svg\n class="select-indicator"\n part="select-indicator"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n />\n </svg>\n `});const zn=(e,t)=>(0,Za.css)`
- :host {
- display: flex;
- position: relative;
- flex-direction: column;
- }
- `;const Bn=(e,t)=>(0,Za.css)`
- :host {
- display: grid;
- padding: 1px 0;
- box-sizing: border-box;
- width: 100%;
- border-bottom: calc(${Zt} * 1px) solid ${ga};
- }
- :host(.header) {
- }
- :host(.sticky-header) {
- background: ${Lr};
- position: sticky;
- top: 0;
- }
- `;const Ln=(e,t)=>(0,Za.css)`
- :host {
- padding: calc(${qt} * 1px) calc(${qt} * 3px);
- color: ${la};
- box-sizing: border-box;
- font-family: ${It};
- font-size: ${Jt};
- line-height: ${Kt};
- font-weight: 400;
- border: transparent calc(${Yt} * 1px) solid;
- overflow: hidden;
- white-space: nowrap;
- border-radius: calc(${Et} * 1px);
- }
- :host(.column-header) {
- font-weight: 600;
- }
- :host(:${be.focusVisible}) {
- outline: calc(${Yt} * 1px) solid ${gr};
- color: ${la};
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host {
- forced-color-adjust: none;
- border-color: transparent;
- background: ${Ja.Field};
- color: ${Ja.FieldText};
- }
- :host(:${be.focusVisible}) {
- border-color: ${Ja.FieldText};
- box-shadow: 0 0 0 2px inset ${Ja.Field};
- color: ${Ja.FieldText};
- }
- `));class On extends be.DataGridCell{}const Hn=On.compose({baseName:"data-grid-cell",baseClass:be.DataGridCell,template:be.dataGridCellTemplate,styles:Ln});class Nn extends be.DataGridRow{}const Pn=Nn.compose({baseName:"data-grid-row",baseClass:be.DataGridRow,template:be.dataGridRowTemplate,styles:Bn});class Rn extends be.DataGrid{}const In=Rn.compose({baseName:"data-grid",baseClass:be.DataGrid,template:be.dataGridTemplate,styles:zn});var An=o(74291);class Mn extends be.FoundationElement{}class Gn extends((0,be.FormAssociated)(Mn)){constructor(){super(...arguments);this.proxy=document.createElement("input")}}const En={toView(e){if(e===null||e===undefined){return null}const t=new Date(e);return t.toString()==="Invalid Date"?null:`${t.getFullYear().toString().padStart(4,"0")}-${(t.getMonth()+1).toString().padStart(2,"0")}-${t.getDate().toString().padStart(2,"0")}`},fromView(e){if(e===null||e===undefined){return null}const t=new Date(e);return t.toString()==="Invalid Date"?null:t}};const _n="Invalid Date";class qn extends Gn{constructor(){super(...arguments);this.step=1;this.isUserInput=false}readOnlyChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.readOnly=this.readOnly;this.validate()}}autofocusChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.autofocus=this.autofocus;this.validate()}}listChanged(){if(this.proxy instanceof HTMLInputElement){this.proxy.setAttribute("list",this.list);this.validate()}}maxChanged(e,t){var o;this.max=t<((o=this.min)!==null&&o!==void 0?o:t)?this.min:t;this.value=this.getValidValue(this.value)}minChanged(e,t){var o;this.min=t>((o=this.max)!==null&&o!==void 0?o:t)?this.max:t;this.value=this.getValidValue(this.value)}get valueAsNumber(){return new Date(super.value).valueOf()}set valueAsNumber(e){this.value=new Date(e).toString()}get valueAsDate(){return new Date(super.value)}set valueAsDate(e){this.value=e.toString()}valueChanged(e,t){this.value=this.getValidValue(t);if(t!==this.value){return}if(this.control&&!this.isUserInput){this.control.value=this.value}super.valueChanged(e,this.value);if(e!==undefined&&!this.isUserInput){this.$emit("change")}this.isUserInput=false}getValidValue(e){var t,o;let r=new Date(e);if(r.toString()===_n){r=""}else{r=r>((t=this.max)!==null&&t!==void 0?t:r)?this.max:r;r=r<((o=this.min)!==null&&o!==void 0?o:r)?this.min:r;r=`${r.getFullYear().toString().padStart(4,"0")}-${(r.getMonth()+1).toString().padStart(2,"0")}-${r.getDate().toString().padStart(2,"0")}`}return r}stepUp(){const e=864e5*this.step;const t=new Date(this.value);this.value=new Date(t.toString()!==_n?t.valueOf()+e:0).toString()}stepDown(){const e=864e5*this.step;const t=new Date(this.value);this.value=new Date(t.toString()!==_n?Math.max(t.valueOf()-e,0):0).toString()}connectedCallback(){super.connectedCallback();this.validate();this.control.value=this.value;if(this.autofocus){Za.DOM.queueUpdate((()=>{this.focus()}))}if(!this.appearance){this.appearance="outline"}}handleTextInput(){this.isUserInput=true;this.value=this.control.value}handleChange(){this.$emit("change")}handleKeyDown(e){const t=e.key;switch(t){case An.I5:this.stepUp();return false;case An.HX:this.stepDown();return false}return true}handleBlur(){this.control.value=this.value}}si([Za.attr],qn.prototype,"appearance",void 0);si([(0,Za.attr)({attribute:"readonly",mode:"boolean"})],qn.prototype,"readOnly",void 0);si([(0,Za.attr)({mode:"boolean"})],qn.prototype,"autofocus",void 0);si([Za.attr],qn.prototype,"list",void 0);si([(0,Za.attr)({converter:Za.nullableNumberConverter})],qn.prototype,"step",void 0);si([(0,Za.attr)({converter:En})],qn.prototype,"max",void 0);si([(0,Za.attr)({converter:En})],qn.prototype,"min",void 0);si([Za.observable],qn.prototype,"defaultSlottedNodes",void 0);(0,be.applyMixins)(qn,be.StartEnd,be.DelegatesARIATextbox);const Wn=(0,Za.css)`
- ${(0,be.display)("inline-block")} :host {
- font-family: ${It};
- outline: none;
- user-select: none;
- /* Ensure to display focus highlight */
- margin: calc((${Yt} - ${Zt}) * 1px);
- }
- .root {
- box-sizing: border-box;
- position: relative;
- display: flex;
- flex-direction: row;
- color: ${la};
- background: ${Rr};
- border-radius: calc(${Et} * 1px);
- border: calc(${Zt} * 1px) solid ${Xr};
- height: calc(${Ka} * 1px);
- }
- :host([aria-invalid='true']) .root {
- border-color: ${$a};
- }
- .control {
- -webkit-appearance: none;
- font: inherit;
- background: transparent;
- border: 0;
- color: inherit;
- height: calc(100% - 4px);
- width: 100%;
- margin-top: auto;
- margin-bottom: auto;
- border: none;
- padding: 0 calc(${qt} * 2px + 1px);
- font-size: ${Jt};
- line-height: ${Kt};
- }
- .control:placeholder-shown {
- text-overflow: ellipsis;
- }
- .control:hover,
- .control:${be.focusVisible},
- .control:disabled,
- .control:active {
- outline: none;
- }
- .label {
- display: block;
- color: ${la};
- cursor: pointer;
- font-size: ${Jt};
- line-height: ${Kt};
- margin-bottom: 4px;
- }
- .label__hidden {
- display: none;
- visibility: hidden;
- }
- .start,
- .end {
- margin: auto;
- fill: currentcolor;
- }
- ::slotted(svg) {
- /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
- width: 16px;
- height: 16px;
- }
- .start {
- margin-inline-start: 11px;
- }
- .end {
- margin-inline-end: 11px;
- }
- :host(:hover:not([disabled])) .root {
- background: ${Ir};
- border-color: ${Zr};
- }
- :host([aria-invalid='true']:hover:not([disabled])) .root {
- border-color: ${xa};
- }
- :host(:active:not([disabled])) .root {
- background: ${Ir};
- border-color: ${Yr};
- }
- :host([aria-invalid='true']:active:not([disabled])) .root {
- border-color: ${ya};
- }
- :host(:focus-within:not([disabled])) .root {
- border-color: ${gr};
- box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
- ${gr};
- }
- :host([aria-invalid='true']:focus-within:not([disabled])) .root {
- border-color: ${wa};
- box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
- ${wa};
- }
- :host([appearance='filled']) .root {
- background: ${Lr};
- }
- :host([appearance='filled']:hover:not([disabled])) .root {
- background: ${Or};
- }
- :host([disabled]) .label,
- :host([readonly]) .label,
- :host([readonly]) .control,
- :host([disabled]) .control {
- cursor: ${be.disabledCursor};
- }
- :host([disabled]) {
- opacity: ${Xt};
- }
- :host([disabled]) .control {
- border-color: ${ca};
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- .root,
- :host([appearance='filled']) .root {
- forced-color-adjust: none;
- background: ${Ja.Field};
- border-color: ${Ja.FieldText};
- }
- :host([aria-invalid='true']) .root {
- border-style: dashed;
- }
- :host(:hover:not([disabled])) .root,
- :host([appearance='filled']:hover:not([disabled])) .root,
- :host([appearance='filled']:hover) .root {
- background: ${Ja.Field};
- border-color: ${Ja.Highlight};
- }
- .start,
- .end {
- fill: currentcolor;
- }
- :host([disabled]) {
- opacity: 1;
- }
- :host([disabled]) .root,
- :host([appearance='filled']:hover[disabled]) .root {
- border-color: ${Ja.GrayText};
- background: ${Ja.Field};
- }
- :host(:focus-within:enabled) .root {
- border-color: ${Ja.Highlight};
- box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
- ${Ja.Highlight};
- }
- input::placeholder {
- color: ${Ja.GrayText};
- }
- `));const Un=(e,t)=>(0,Za.css)`
- ${Wn}
- `;const Xn=(e,t)=>(0,Za.html)`
- <template class="${e=>e.readOnly?"readonly":""}">
- <label
- part="label"
- for="control"
- class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
- >
- <slot
- ${(0,Za.slotted)({property:"defaultSlottedNodes",filter:be.whitespaceFilter})}
- ></slot>
- </label>
- <div class="root" part="root">
- ${(0,be.startSlotTemplate)(e,t)}
- <input
- class="control"
- part="control"
- id="control"
- @input="${e=>e.handleTextInput()}"
- @change="${e=>e.handleChange()}"
- ?autofocus="${e=>e.autofocus}"
- ?disabled="${e=>e.disabled}"
- list="${e=>e.list}"
- ?readonly="${e=>e.readOnly}"
- ?required="${e=>e.required}"
- :value="${e=>e.value}"
- type="date"
- aria-atomic="${e=>e.ariaAtomic}"
- aria-busy="${e=>e.ariaBusy}"
- aria-controls="${e=>e.ariaControls}"
- aria-current="${e=>e.ariaCurrent}"
- aria-describedby="${e=>e.ariaDescribedby}"
- aria-details="${e=>e.ariaDetails}"
- aria-disabled="${e=>e.ariaDisabled}"
- aria-errormessage="${e=>e.ariaErrormessage}"
- aria-flowto="${e=>e.ariaFlowto}"
- aria-haspopup="${e=>e.ariaHaspopup}"
- aria-hidden="${e=>e.ariaHidden}"
- aria-invalid="${e=>e.ariaInvalid}"
- aria-keyshortcuts="${e=>e.ariaKeyshortcuts}"
- aria-label="${e=>e.ariaLabel}"
- aria-labelledby="${e=>e.ariaLabelledby}"
- aria-live="${e=>e.ariaLive}"
- aria-owns="${e=>e.ariaOwns}"
- aria-relevant="${e=>e.ariaRelevant}"
- aria-roledescription="${e=>e.ariaRoledescription}"
- ${(0,Za.ref)("control")}
- />
- ${(0,be.endSlotTemplate)(e,t)}
- </div>
- </template>
- `;const Zn=qn.compose({baseName:"date-field",styles:Un,template:Xn,shadowOptions:{delegatesFocus:true}});const Yn={toView(e){if(e===null||e===undefined){return null}return e===null||e===void 0?void 0:e.toColorString()},fromView(e){if(e===null||e===undefined){return null}const t=S(e);return t?se.create(t.r,t.g,t.b):null}};const Jn=(0,Za.css)`
- :host {
- background-color: ${sr};
- color: ${la};
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host {
- background-color: ${Ja.ButtonFace};
- box-shadow: 0 0 0 1px ${Ja.CanvasText};
- color: ${Ja.ButtonText};
- }
- `));function Kn(e){return(t,o)=>{t[o+"Changed"]=function(t,o){if(o!==undefined&&o!==null){e.setValueFor(this,o)}else{e.deleteValueFor(this)}}}}class Qn extends be.FoundationElement{constructor(){super();this.noPaint=false;const e={handleChange:this.noPaintChanged.bind(this)};Za.Observable.getNotifier(this).subscribe(e,"fillColor");Za.Observable.getNotifier(this).subscribe(e,"baseLayerLuminance")}noPaintChanged(){if(!this.noPaint&&(this.fillColor!==void 0||this.baseLayerLuminance)){this.$fastController.addStyles(Jn)}else{this.$fastController.removeStyles(Jn)}}}si([(0,Za.attr)({attribute:"no-paint",mode:"boolean"})],Qn.prototype,"noPaint",void 0);si([(0,Za.attr)({attribute:"fill-color",converter:Yn}),Kn(sr)],Qn.prototype,"fillColor",void 0);si([(0,Za.attr)({attribute:"accent-color",converter:Yn,mode:"fromView"}),Kn(Xo)],Qn.prototype,"accentColor",void 0);si([(0,Za.attr)({attribute:"neutral-color",converter:Yn,mode:"fromView"}),Kn(Wo)],Qn.prototype,"neutralColor",void 0);si([(0,Za.attr)({attribute:"error-color",converter:Yn,mode:"fromView"}),Kn(fa)],Qn.prototype,"errorColor",void 0);si([(0,Za.attr)({converter:Za.nullableNumberConverter}),Kn(_t)],Qn.prototype,"density",void 0);si([(0,Za.attr)({attribute:"design-unit",converter:Za.nullableNumberConverter}),Kn(qt)],Qn.prototype,"designUnit",void 0);si([(0,Za.attr)({attribute:"direction"}),Kn(Ut)],Qn.prototype,"direction",void 0);si([(0,Za.attr)({attribute:"base-height-multiplier",converter:Za.nullableNumberConverter}),Kn(At)],Qn.prototype,"baseHeightMultiplier",void 0);si([(0,Za.attr)({attribute:"base-horizontal-spacing-multiplier",converter:Za.nullableNumberConverter}),Kn(Mt)],Qn.prototype,"baseHorizontalSpacingMultiplier",void 0);si([(0,Za.attr)({attribute:"control-corner-radius",converter:Za.nullableNumberConverter}),Kn(Et)],Qn.prototype,"controlCornerRadius",void 0);si([(0,Za.attr)({attribute:"stroke-width",converter:Za.nullableNumberConverter}),Kn(Zt)],Qn.prototype,"strokeWidth",void 0);si([(0,Za.attr)({attribute:"focus-stroke-width",converter:Za.nullableNumberConverter}),Kn(Yt)],Qn.prototype,"focusStrokeWidth",void 0);si([(0,Za.attr)({attribute:"disabled-opacity",converter:Za.nullableNumberConverter}),Kn(Xt)],Qn.prototype,"disabledOpacity",void 0);si([(0,Za.attr)({attribute:"type-ramp-minus-2-font-size"}),Kn(to)],Qn.prototype,"typeRampMinus2FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-minus-2-line-height"}),Kn(oo)],Qn.prototype,"typeRampMinus2LineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-minus-1-font-size"}),Kn(Qt)],Qn.prototype,"typeRampMinus1FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-minus-1-line-height"}),Kn(eo)],Qn.prototype,"typeRampMinus1LineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-base-font-size"}),Kn(Jt)],Qn.prototype,"typeRampBaseFontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-base-line-height"}),Kn(Kt)],Qn.prototype,"typeRampBaseLineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-1-font-size"}),Kn(ro)],Qn.prototype,"typeRampPlus1FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-1-line-height"}),Kn(ao)],Qn.prototype,"typeRampPlus1LineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-2-font-size"}),Kn(io)],Qn.prototype,"typeRampPlus2FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-2-line-height"}),Kn(no)],Qn.prototype,"typeRampPlus2LineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-3-font-size"}),Kn(lo)],Qn.prototype,"typeRampPlus3FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-3-line-height"}),Kn(so)],Qn.prototype,"typeRampPlus3LineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-4-font-size"}),Kn(co)],Qn.prototype,"typeRampPlus4FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-4-line-height"}),Kn(uo)],Qn.prototype,"typeRampPlus4LineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-5-font-size"}),Kn(ho)],Qn.prototype,"typeRampPlus5FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-5-line-height"}),Kn(po)],Qn.prototype,"typeRampPlus5LineHeight",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-6-font-size"}),Kn(go)],Qn.prototype,"typeRampPlus6FontSize",void 0);si([(0,Za.attr)({attribute:"type-ramp-plus-6-line-height"}),Kn(bo)],Qn.prototype,"typeRampPlus6LineHeight",void 0);si([(0,Za.attr)({attribute:"accent-fill-rest-delta",converter:Za.nullableNumberConverter}),Kn(fo)],Qn.prototype,"accentFillRestDelta",void 0);si([(0,Za.attr)({attribute:"accent-fill-hover-delta",converter:Za.nullableNumberConverter}),Kn(mo)],Qn.prototype,"accentFillHoverDelta",void 0);si([(0,Za.attr)({attribute:"accent-fill-active-delta",converter:Za.nullableNumberConverter}),Kn(vo)],Qn.prototype,"accentFillActiveDelta",void 0);si([(0,Za.attr)({attribute:"accent-fill-focus-delta",converter:Za.nullableNumberConverter}),Kn($o)],Qn.prototype,"accentFillFocusDelta",void 0);si([(0,Za.attr)({attribute:"accent-foreground-rest-delta",converter:Za.nullableNumberConverter}),Kn(xo)],Qn.prototype,"accentForegroundRestDelta",void 0);si([(0,Za.attr)({attribute:"accent-foreground-hover-delta",converter:Za.nullableNumberConverter}),Kn(yo)],Qn.prototype,"accentForegroundHoverDelta",void 0);si([(0,Za.attr)({attribute:"accent-foreground-active-delta",converter:Za.nullableNumberConverter}),Kn(wo)],Qn.prototype,"accentForegroundActiveDelta",void 0);si([(0,Za.attr)({attribute:"accent-foreground-focus-delta",converter:Za.nullableNumberConverter}),Kn(ko)],Qn.prototype,"accentForegroundFocusDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-rest-delta",converter:Za.nullableNumberConverter}),Kn(Fo)],Qn.prototype,"neutralFillRestDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-hover-delta",converter:Za.nullableNumberConverter}),Kn(Co)],Qn.prototype,"neutralFillHoverDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-active-delta",converter:Za.nullableNumberConverter}),Kn(So)],Qn.prototype,"neutralFillActiveDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-focus-delta",converter:Za.nullableNumberConverter}),Kn(To)],Qn.prototype,"neutralFillFocusDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-input-rest-delta",converter:Za.nullableNumberConverter}),Kn(Vo)],Qn.prototype,"neutralFillInputRestDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-input-hover-delta",converter:Za.nullableNumberConverter}),Kn(Do)],Qn.prototype,"neutralFillInputHoverDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-input-active-delta",converter:Za.nullableNumberConverter}),Kn(jo)],Qn.prototype,"neutralFillInputActiveDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-input-focus-delta",converter:Za.nullableNumberConverter}),Kn(zo)],Qn.prototype,"neutralFillInputFocusDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-stealth-rest-delta",converter:Za.nullableNumberConverter}),Kn(Bo)],Qn.prototype,"neutralFillStealthRestDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-stealth-hover-delta",converter:Za.nullableNumberConverter}),Kn(Lo)],Qn.prototype,"neutralFillStealthHoverDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-stealth-active-delta",converter:Za.nullableNumberConverter}),Kn(Oo)],Qn.prototype,"neutralFillStealthActiveDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-stealth-focus-delta",converter:Za.nullableNumberConverter}),Kn(Ho)],Qn.prototype,"neutralFillStealthFocusDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-strong-hover-delta",converter:Za.nullableNumberConverter}),Kn(Po)],Qn.prototype,"neutralFillStrongHoverDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-strong-active-delta",converter:Za.nullableNumberConverter}),Kn(Ro)],Qn.prototype,"neutralFillStrongActiveDelta",void 0);si([(0,Za.attr)({attribute:"neutral-fill-strong-focus-delta",converter:Za.nullableNumberConverter}),Kn(Io)],Qn.prototype,"neutralFillStrongFocusDelta",void 0);si([(0,Za.attr)({attribute:"base-layer-luminance",converter:Za.nullableNumberConverter}),Kn(Gt)],Qn.prototype,"baseLayerLuminance",void 0);si([(0,Za.attr)({attribute:"neutral-fill-layer-rest-delta",converter:Za.nullableNumberConverter}),Kn(Ao)],Qn.prototype,"neutralFillLayerRestDelta",void 0);si([(0,Za.attr)({attribute:"neutral-stroke-divider-rest-delta",converter:Za.nullableNumberConverter}),Kn(qo)],Qn.prototype,"neutralStrokeDividerRestDelta",void 0);si([(0,Za.attr)({attribute:"neutral-stroke-rest-delta",converter:Za.nullableNumberConverter}),Kn(Mo)],Qn.prototype,"neutralStrokeRestDelta",void 0);si([(0,Za.attr)({attribute:"neutral-stroke-hover-delta",converter:Za.nullableNumberConverter}),Kn(Go)],Qn.prototype,"neutralStrokeHoverDelta",void 0);si([(0,Za.attr)({attribute:"neutral-stroke-active-delta",converter:Za.nullableNumberConverter}),Kn(Eo)],Qn.prototype,"neutralStrokeActiveDelta",void 0);si([(0,Za.attr)({attribute:"neutral-stroke-focus-delta",converter:Za.nullableNumberConverter}),Kn(_o)],Qn.prototype,"neutralStrokeFocusDelta",void 0);const el=(e,t)=>(0,Za.html)` <slot></slot> `;const tl=(e,t)=>(0,Za.css)`
- ${(0,be.display)("block")}
- `;const ol=Qn.compose({baseName:"design-system-provider",template:el,styles:tl});const rl=(e,t)=>(0,Za.css)`
- :host([hidden]) {
- display: none;
- }
- :host {
- --elevation: 14;
- --dialog-height: 480px;
- --dialog-width: 640px;
- display: block;
- }
- .overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(0, 0, 0, 0.3);
- touch-action: none;
- }
- .positioning-region {
- display: flex;
- justify-content: center;
- position: fixed;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- overflow: auto;
- }
- .control {
- ${vn}
- margin-top: auto;
- margin-bottom: auto;
- width: var(--dialog-width);
- height: var(--dialog-height);
- background-color: ${sr};
- z-index: 1;
- border-radius: calc(${Et} * 1px);
- border: calc(${Zt} * 1px) solid transparent;
- }
- `;class al extends be.Dialog{}const il=al.compose({baseName:"dialog",baseClass:be.Dialog,template:be.dialogTemplate,styles:rl});const nl=(e,t)=>(0,Za.css)`
- .disclosure {
- transition: height 0.35s;
- }
- .disclosure .invoker::-webkit-details-marker {
- display: none;
- }
- .disclosure .invoker {
- list-style-type: none;
- }
- :host([appearance='accent']) .invoker {
- background: ${ur};
- color: ${mr};
- font-family: ${It};
- font-size: ${Jt};
- border-radius: calc(${Et} * 1px);
- outline: none;
- cursor: pointer;
- margin: 16px 0;
- padding: 12px;
- max-width: max-content;
- }
- :host([appearance='accent']) .invoker:active {
- background: ${pr};
- color: ${$r};
- }
- :host([appearance='accent']) .invoker:hover {
- background: ${hr};
- color: ${vr};
- }
- :host([appearance='lightweight']) .invoker {
- background: transparent;
- color: ${Vr};
- border-bottom: calc(${Zt} * 1px) solid ${Vr};
- cursor: pointer;
- width: max-content;
- margin: 16px 0;
- }
- :host([appearance='lightweight']) .invoker:active {
- border-bottom-color: ${jr};
- }
- :host([appearance='lightweight']) .invoker:hover {
- border-bottom-color: ${Dr};
- }
- .disclosure[open] .invoker ~ * {
- animation: fadeIn 0.5s ease-in-out;
- }
- @keyframes fadeIn {
- 0% {
- opacity: 0;
- }
- 100% {
- opacity: 1;
- }
- }
- `;class ll extends be.Disclosure{constructor(){super(...arguments);this.height=0;this.totalHeight=0}connectedCallback(){super.connectedCallback();if(!this.appearance){this.appearance="accent"}}appearanceChanged(e,t){if(e!==t){this.classList.add(t);this.classList.remove(e)}}onToggle(){super.onToggle();this.details.style.setProperty("height",`${this.disclosureHeight}px`)}setup(){super.setup();const e=()=>this.details.getBoundingClientRect().height;this.show();this.totalHeight=e();this.hide();this.height=e();if(this.expanded){this.show()}}get disclosureHeight(){return this.expanded?this.totalHeight:this.height}}si([Za.attr],ll.prototype,"appearance",void 0);const sl=ll.compose({baseName:"disclosure",baseClass:be.Disclosure,template:be.disclosureTemplate,styles:nl});const cl=(e,t)=>(0,Za.css)`
- ${(0,be.display)("block")} :host {
- box-sizing: content-box;
- height: 0;
- margin: calc(${qt} * 1px) 0;
- border-top: calc(${Zt} * 1px) solid ${ga};
- border-left: none;
- }
- :host([orientation='vertical']) {
- height: 100%;
- margin: 0 calc(${qt} * 1px);
- border-top: none;
- border-left: calc(${Zt} * 1px) solid ${ga};
- }
- `;class dl extends be.Divider{}const ul=dl.compose({baseName:"divider",baseClass:be.Divider,template:be.dividerTemplate,styles:cl});class hl extends be.ListboxElement{sizeChanged(e,t){super.sizeChanged(e,t);this.updateComputedStylesheet()}updateComputedStylesheet(){if(this.computedStylesheet){this.$fastController.removeStyles(this.computedStylesheet)}const e=`${this.size}`;this.computedStylesheet=(0,Za.css)`
- :host {
- --size: ${e};
- }
- `;this.$fastController.addStyles(this.computedStylesheet)}}const pl=hl.compose({baseName:"listbox",baseClass:be.ListboxElement,template:be.listboxTemplate,styles:Sn});const gl=(e,t)=>(0,Za.css)`
- ${(0,be.display)("block")} :host {
- --elevation: 11;
- background: ${sr};
- border: calc(${Zt} * 1px) solid transparent;
- ${vn}
- margin: 0;
- border-radius: calc(${Et} * 1px);
- padding: calc(${qt} * 1px) 0;
- max-width: 368px;
- min-width: 64px;
- }
- :host([slot='submenu']) {
- width: max-content;
- margin: 0 calc(${qt} * 1px);
- }
- ::slotted(hr) {
- box-sizing: content-box;
- height: 0;
- margin: 0;
- border: none;
- border-top: calc(${Zt} * 1px) solid ${ga};
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host {
- background: ${Ja.Canvas};
- border-color: ${Ja.CanvasText};
- }
- `));class bl extends be.Menu{connectedCallback(){super.connectedCallback();sr.setValueFor(this,Qo)}}const fl=bl.compose({baseName:"menu",baseClass:be.Menu,template:be.menuTemplate,styles:gl});const ml=(e,t)=>(0,Za.css)`
- ${(0,be.display)("grid")} :host {
- contain: layout;
- overflow: visible;
- font-family: ${It};
- outline: none;
- box-sizing: border-box;
- height: calc(${Ka} * 1px);
- grid-template-columns: minmax(42px, auto) 1fr minmax(42px, auto);
- grid-template-rows: auto;
- justify-items: center;
- align-items: center;
- padding: 0;
- margin: 0 calc(${qt} * 1px);
- white-space: nowrap;
- background: ${Er};
- color: ${la};
- fill: currentcolor;
- cursor: pointer;
- font-size: ${Jt};
- line-height: ${Kt};
- border-radius: calc(${Et} * 1px);
- border: calc(${Yt} * 1px) solid transparent;
- }
- :host(:hover) {
- position: relative;
- z-index: 1;
- }
- :host(.indent-0) {
- grid-template-columns: auto 1fr minmax(42px, auto);
- }
- :host(.indent-0) .content {
- grid-column: 1;
- grid-row: 1;
- margin-inline-start: 10px;
- }
- :host(.indent-0) .expand-collapse-glyph-container {
- grid-column: 5;
- grid-row: 1;
- }
- :host(.indent-2) {
- grid-template-columns:
- minmax(42px, auto) minmax(42px, auto) 1fr minmax(42px, auto)
- minmax(42px, auto);
- }
- :host(.indent-2) .content {
- grid-column: 3;
- grid-row: 1;
- margin-inline-start: 10px;
- }
- :host(.indent-2) .expand-collapse-glyph-container {
- grid-column: 5;
- grid-row: 1;
- }
- :host(.indent-2) .start {
- grid-column: 2;
- }
- :host(.indent-2) .end {
- grid-column: 4;
- }
- :host(:${be.focusVisible}) {
- border-color: ${gr};
- background: ${Wr};
- color: ${la};
- }
- :host(:hover) {
- background: ${_r};
- color: ${la};
- }
- :host(:active) {
- background: ${qr};
- }
- :host([aria-checked='true']),
- :host(.expanded) {
- background: ${Lr};
- color: ${la};
- }
- :host([disabled]) {
- cursor: ${be.disabledCursor};
- opacity: ${Xt};
- }
- :host([disabled]:hover) {
- color: ${la};
- fill: currentcolor;
- background: ${Er};
- }
- :host([disabled]:hover) .start,
- :host([disabled]:hover) .end,
- :host([disabled]:hover)::slotted(svg) {
- fill: ${la};
- }
- .expand-collapse-glyph {
- /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
- width: calc((16 + ${_t}) * 1px);
- height: calc((16 + ${_t}) * 1px);
- fill: currentcolor;
- }
- .content {
- grid-column-start: 2;
- justify-self: start;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .start,
- .end {
- display: flex;
- justify-content: center;
- }
- ::slotted(svg) {
- /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
- width: 16px;
- height: 16px;
- /* Something like that would do if the typography is adaptive
- font-size: inherit;
- width: ${ro};
- height: ${ro};
- */
- }
- :host(:hover) .start,
- :host(:hover) .end,
- :host(:hover)::slotted(svg),
- :host(:active) .start,
- :host(:active) .end,
- :host(:active)::slotted(svg) {
- fill: ${la};
- }
- :host(.indent-0[aria-haspopup='menu']) {
- display: grid;
- grid-template-columns: minmax(42px, auto) auto 1fr minmax(42px, auto) minmax(
- 42px,
- auto
- );
- align-items: center;
- min-height: 32px;
- }
- :host(.indent-1[aria-haspopup='menu']),
- :host(.indent-1[role='menuitemcheckbox']),
- :host(.indent-1[role='menuitemradio']) {
- display: grid;
- grid-template-columns: minmax(42px, auto) auto 1fr minmax(42px, auto) minmax(
- 42px,
- auto
- );
- align-items: center;
- min-height: 32px;
- }
- :host(.indent-2:not([aria-haspopup='menu'])) .end {
- grid-column: 5;
- }
- :host .input-container,
- :host .expand-collapse-glyph-container {
- display: none;
- }
- :host([aria-haspopup='menu']) .expand-collapse-glyph-container,
- :host([role='menuitemcheckbox']) .input-container,
- :host([role='menuitemradio']) .input-container {
- display: grid;
- margin-inline-end: 10px;
- }
- :host([aria-haspopup='menu']) .content,
- :host([role='menuitemcheckbox']) .content,
- :host([role='menuitemradio']) .content {
- grid-column-start: 3;
- }
- :host([aria-haspopup='menu'].indent-0) .content {
- grid-column-start: 1;
- }
- :host([aria-haspopup='menu']) .end,
- :host([role='menuitemcheckbox']) .end,
- :host([role='menuitemradio']) .end {
- grid-column-start: 4;
- }
- :host .expand-collapse,
- :host .checkbox,
- :host .radio {
- display: flex;
- align-items: center;
- justify-content: center;
- position: relative;
- width: 20px;
- height: 20px;
- box-sizing: border-box;
- outline: none;
- margin-inline-start: 10px;
- }
- :host .checkbox,
- :host .radio {
- border: calc(${Zt} * 1px) solid ${la};
- }
- :host([aria-checked='true']) .checkbox,
- :host([aria-checked='true']) .radio {
- background: ${ur};
- border-color: ${ur};
- }
- :host .checkbox {
- border-radius: calc(${Et} * 1px);
- }
- :host .radio {
- border-radius: 999px;
- }
- :host .checkbox-indicator,
- :host .radio-indicator,
- :host .expand-collapse-indicator,
- ::slotted([slot='checkbox-indicator']),
- ::slotted([slot='radio-indicator']),
- ::slotted([slot='expand-collapse-indicator']) {
- display: none;
- }
- ::slotted([slot='end']:not(svg)) {
- margin-inline-end: 10px;
- color: ${ia};
- }
- :host([aria-checked='true']) .checkbox-indicator,
- :host([aria-checked='true']) ::slotted([slot='checkbox-indicator']) {
- width: 100%;
- height: 100%;
- display: block;
- fill: ${mr};
- pointer-events: none;
- }
- :host([aria-checked='true']) .radio-indicator {
- position: absolute;
- top: 4px;
- left: 4px;
- right: 4px;
- bottom: 4px;
- border-radius: 999px;
- display: block;
- background: ${mr};
- pointer-events: none;
- }
- :host([aria-checked='true']) ::slotted([slot='radio-indicator']) {
- display: block;
- pointer-events: none;
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host {
- border-color: transparent;
- color: ${Ja.ButtonText};
- forced-color-adjust: none;
- }
- :host(:hover) {
- background: ${Ja.Highlight};
- color: ${Ja.HighlightText};
- }
- :host(:hover) .start,
- :host(:hover) .end,
- :host(:hover)::slotted(svg),
- :host(:active) .start,
- :host(:active) .end,
- :host(:active)::slotted(svg) {
- fill: ${Ja.HighlightText};
- }
- :host(.expanded) {
- background: ${Ja.Highlight};
- border-color: ${Ja.Highlight};
- color: ${Ja.HighlightText};
- }
- :host(:${be.focusVisible}) {
- background: ${Ja.Highlight};
- border-color: ${Ja.ButtonText};
- box-shadow: 0 0 0 calc(${Yt} * 1px) inset
- ${Ja.HighlightText};
- color: ${Ja.HighlightText};
- fill: currentcolor;
- }
- :host([disabled]),
- :host([disabled]:hover),
- :host([disabled]:hover) .start,
- :host([disabled]:hover) .end,
- :host([disabled]:hover)::slotted(svg) {
- background: ${Ja.Canvas};
- color: ${Ja.GrayText};
- fill: currentcolor;
- opacity: 1;
- }
- :host .expanded-toggle,
- :host .checkbox,
- :host .radio {
- border-color: ${Ja.ButtonText};
- background: ${Ja.HighlightText};
- }
- :host([checked='true']) .checkbox,
- :host([checked='true']) .radio {
- background: ${Ja.HighlightText};
- border-color: ${Ja.HighlightText};
- }
- :host(:hover) .expanded-toggle,
- :host(:hover) .checkbox,
- :host(:hover) .radio,
- :host(:${be.focusVisible}) .expanded-toggle,
- :host(:${be.focusVisible}) .checkbox,
- :host(:${be.focusVisible}) .radio,
- :host([checked="true"]:hover) .checkbox,
- :host([checked="true"]:hover) .radio,
- :host([checked="true"]:${be.focusVisible}) .checkbox,
- :host([checked="true"]:${be.focusVisible}) .radio {
- border-color: ${Ja.HighlightText};
- }
- :host([aria-checked='true']) {
- background: ${Ja.Highlight};
- color: ${Ja.HighlightText};
- }
- :host([aria-checked='true']) .checkbox-indicator,
- :host([aria-checked='true']) ::slotted([slot='checkbox-indicator']),
- :host([aria-checked='true']) ::slotted([slot='radio-indicator']) {
- fill: ${Ja.Highlight};
- }
- :host([aria-checked='true']) .radio-indicator {
- background: ${Ja.Highlight};
- }
- ::slotted([slot='end']:not(svg)) {
- color: ${Ja.ButtonText};
- }
- :host(:hover) ::slotted([slot="end"]:not(svg)),
- :host(:${be.focusVisible}) ::slotted([slot="end"]:not(svg)) {
- color: ${Ja.HighlightText};
- }
- `),new Zi((0,Za.css)`
- .expand-collapse-glyph {
- transform: rotate(0deg);
- }
- `,(0,Za.css)`
- .expand-collapse-glyph {
- transform: rotate(180deg);
- }
- `));class vl extends be.MenuItem{}const $l=vl.compose({baseName:"menu-item",baseClass:be.MenuItem,template:be.menuItemTemplate,styles:ml,checkboxIndicator:`\n <svg\n part="checkbox-indicator"\n class="checkbox-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n `,expandCollapseGlyph:`\n <svg\n viewBox="0 0 16 16"\n xmlns="http://www.w3.org/2000/svg"\n class="expand-collapse-glyph"\n part="expand-collapse-glyph"\n >\n <path\n d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"\n />\n </svg>\n `,radioIndicator:`\n <span part="radio-indicator" class="radio-indicator"></span>\n `});const xl=(e,t)=>(0,Za.css)`
- ${Wn}
- .controls {
- opacity: 0;
- }
- .step-up-glyph,
- .step-down-glyph {
- display: block;
- padding: 4px 10px;
- cursor: pointer;
- }
- .step-up-glyph:before,
- .step-down-glyph:before {
- content: '';
- display: block;
- border: solid transparent 6px;
- }
- .step-up-glyph:before {
- border-bottom-color: ${la};
- }
- .step-down-glyph:before {
- border-top-color: ${la};
- }
- :host(:hover:not([disabled])) .controls,
- :host(:focus-within:not([disabled])) .controls {
- opacity: 1;
- }
- `;class yl extends be.NumberField{constructor(){super(...arguments);this.appearance="outline"}}si([Za.attr],yl.prototype,"appearance",void 0);const wl=yl.compose({baseName:"number-field",baseClass:be.NumberField,styles:xl,template:be.numberFieldTemplate,shadowOptions:{delegatesFocus:true},stepDownGlyph:`\n <span class="step-down-glyph" part="step-down-glyph"></span>\n `,stepUpGlyph:`\n <span class="step-up-glyph" part="step-up-glyph"></span>\n `});const kl=(e,t)=>(0,Za.css)`
- ${(0,be.display)("inline-flex")} :host {
- align-items: center;
- font-family: ${It};
- border-radius: calc(${Et} * 1px);
- border: calc(${Yt} * 1px) solid transparent;
- box-sizing: border-box;
- background: ${Er};
- color: ${la};
- cursor: pointer;
- flex: 0 0 auto;
- fill: currentcolor;
- font-size: ${Jt};
- height: calc(${Ka} * 1px);
- line-height: ${Kt};
- margin: 0 calc((${qt} - ${Yt}) * 1px);
- outline: none;
- overflow: hidden;
- padding: 0 1ch;
- user-select: none;
- white-space: nowrap;
- }
- :host(:not([disabled]):not([aria-selected='true']):hover) {
- background: ${_r};
- }
- :host(:not([disabled]):not([aria-selected='true']):active) {
- background: ${qr};
- }
- :host([aria-selected='true']) {
- background: ${ur};
- color: ${mr};
- }
- :host(:not([disabled])[aria-selected='true']:hover) {
- background: ${hr};
- color: ${vr};
- }
- :host(:not([disabled])[aria-selected='true']:active) {
- background: ${pr};
- color: ${$r};
- }
- :host([disabled]) {
- cursor: ${be.disabledCursor};
- opacity: ${Xt};
- }
- .content {
- grid-column-start: 2;
- justify-self: start;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .start,
- .end,
- ::slotted(svg) {
- display: flex;
- }
- ::slotted(svg) {
- /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
- height: calc(${qt} * 4px);
- width: calc(${qt} * 4px);
- }
- ::slotted([slot='end']) {
- margin-inline-start: 1ch;
- }
- ::slotted([slot='start']) {
- margin-inline-end: 1ch;
- }
- :host([aria-checked='true'][aria-selected='false']) {
- border-color: ${ta};
- }
- :host([aria-checked='true'][aria-selected='true']) {
- border-color: ${ta};
- box-shadow: 0 0 0 calc(${Yt} * 2 * 1px) inset
- ${ra};
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host {
- border-color: transparent;
- forced-color-adjust: none;
- color: ${Ja.ButtonText};
- fill: currentcolor;
- }
- :host(:not([aria-selected='true']):hover),
- :host([aria-selected='true']) {
- background: ${Ja.Highlight};
- color: ${Ja.HighlightText};
- }
- :host([disabled]),
- :host([disabled][aria-selected='false']:hover) {
- background: ${Ja.Canvas};
- color: ${Ja.GrayText};
- fill: currentcolor;
- opacity: 1;
- }
- :host([aria-checked='true'][aria-selected='false']) {
- background: ${Ja.ButtonFace};
- color: ${Ja.ButtonText};
- border-color: ${Ja.ButtonText};
- }
- :host([aria-checked='true'][aria-selected='true']),
- :host([aria-checked='true'][aria-selected='true']:hover) {
- background: ${Ja.Highlight};
- color: ${Ja.HighlightText};
- border-color: ${Ja.ButtonText};
- }
- `));class Fl extends be.ListboxOption{}const Cl=Fl.compose({baseName:"option",baseClass:be.ListboxOption,template:be.listboxOptionTemplate,styles:kl});const Sl=(e,t)=>(0,Za.css)`
- ${(0,be.display)("flex")} :host {
- align-items: center;
- outline: none;
- height: calc(${qt} * 1px);
- margin: calc(${qt} * 1px) 0;
- }
- .progress {
- background-color: ${Lr};
- border-radius: calc(${qt} * 1px);
- width: 100%;
- height: 100%;
- display: flex;
- align-items: center;
- position: relative;
- }
- .determinate {
- background-color: ${Vr};
- border-radius: calc(${qt} * 1px);
- height: 100%;
- transition: all 0.2s ease-in-out;
- display: flex;
- }
- .indeterminate {
- height: 100%;
- border-radius: calc(${qt} * 1px);
- display: flex;
- width: 100%;
- position: relative;
- overflow: hidden;
- }
- .indeterminate-indicator-1 {
- position: absolute;
- opacity: 0;
- height: 100%;
- background-color: ${Vr};
- border-radius: calc(${qt} * 1px);
- animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
- width: 40%;
- animation: indeterminate-1 2s infinite;
- }
- .indeterminate-indicator-2 {
- position: absolute;
- opacity: 0;
- height: 100%;
- background-color: ${Vr};
- border-radius: calc(${qt} * 1px);
- animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
- width: 60%;
- animation: indeterminate-2 2s infinite;
- }
- :host([paused]) .indeterminate-indicator-1,
- :host([paused]) .indeterminate-indicator-2 {
- animation-play-state: paused;
- background-color: ${Lr};
- }
- :host([paused]) .determinate {
- background-color: ${ia};
- }
- @keyframes indeterminate-1 {
- 0% {
- opacity: 1;
- transform: translateX(-100%);
- }
- 70% {
- opacity: 1;
- transform: translateX(300%);
- }
- 70.01% {
- opacity: 0;
- }
- 100% {
- opacity: 0;
- transform: translateX(300%);
- }
- }
- @keyframes indeterminate-2 {
- 0% {
- opacity: 0;
- transform: translateX(-150%);
- }
- 29.99% {
- opacity: 0;
- }
- 30% {
- opacity: 1;
- transform: translateX(-150%);
- }
- 100% {
- transform: translateX(166.66%);
- opacity: 1;
- }
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- .progress {
- forced-color-adjust: none;
- background-color: ${Ja.Field};
- box-shadow: 0 0 0 1px inset ${Ja.FieldText};
- }
- .determinate,
- .indeterminate-indicator-1,
- .indeterminate-indicator-2 {
- forced-color-adjust: none;
- background-color: ${Ja.FieldText};
- }
- :host([paused]) .determinate,
- :host([paused]) .indeterminate-indicator-1,
- :host([paused]) .indeterminate-indicator-2 {
- background-color: ${Ja.GrayText};
- }
- `));class Tl extends be.BaseProgress{}const Vl=Tl.compose({baseName:"progress",baseClass:be.BaseProgress,template:be.progressTemplate,styles:Sl,indeterminateIndicator1:`\n <span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>\n `,indeterminateIndicator2:`\n <span class="indeterminate-indicator-2" part="indeterminate-indicator-2"></span>\n `});const Dl=(e,t)=>(0,Za.css)`
- ${(0,be.display)("flex")} :host {
- align-items: center;
- outline: none;
- height: calc(${Ka} * 1px);
- width: calc(${Ka} * 1px);
- margin: calc(${Ka} * 1px) 0;
- }
- .progress {
- height: 100%;
- width: 100%;
- }
- .background {
- stroke: ${Lr};
- fill: none;
- stroke-width: 2px;
- }
- .determinate {
- stroke: ${Vr};
- fill: none;
- stroke-width: 2px;
- stroke-linecap: round;
- transform-origin: 50% 50%;
- transform: rotate(-90deg);
- transition: all 0.2s ease-in-out;
- }
- .indeterminate-indicator-1 {
- stroke: ${Vr};
- fill: none;
- stroke-width: 2px;
- stroke-linecap: round;
- transform-origin: 50% 50%;
- transform: rotate(-90deg);
- transition: all 0.2s ease-in-out;
- animation: spin-infinite 2s linear infinite;
- }
- :host([paused]) .indeterminate-indicator-1 {
- animation-play-state: paused;
- stroke: ${Lr};
- }
- :host([paused]) .determinate {
- stroke: ${ia};
- }
- @keyframes spin-infinite {
- 0% {
- stroke-dasharray: 0.01px 43.97px;
- transform: rotate(0deg);
- }
- 50% {
- stroke-dasharray: 21.99px 21.99px;
- transform: rotate(450deg);
- }
- 100% {
- stroke-dasharray: 0.01px 43.97px;
- transform: rotate(1080deg);
- }
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- .indeterminate-indicator-1,
- .determinate {
- stroke: ${Ja.FieldText};
- }
- .background {
- stroke: ${Ja.Field};
- }
- :host([paused]) .indeterminate-indicator-1 {
- stroke: ${Ja.Field};
- }
- :host([paused]) .determinate {
- stroke: ${Ja.GrayText};
- }
- `));class jl extends be.BaseProgress{}const zl=jl.compose({baseName:"progress-ring",baseClass:be.BaseProgress,template:be.progressRingTemplate,styles:Dl,indeterminateIndicator:`\n <svg class="progress" part="progress" viewBox="0 0 16 16">\n <circle\n class="background"\n part="background"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n <circle\n class="indeterminate-indicator-1"\n part="indeterminate-indicator-1"\n cx="8px"\n cy="8px"\n r="7px"\n ></circle>\n </svg>\n `});const Bl=(e,t)=>(0,Za.css)`
- ${(0,be.display)("inline-flex")} :host {
- --input-size: calc((${Ka} / 2) + ${qt});
- align-items: center;
- outline: none;
- margin: calc(${qt} * 1px) 0;
- /* Chromium likes to select label text or the default slot when
- the radio is clicked. Maybe there is a better solution here? */
- user-select: none;
- position: relative;
- flex-direction: row;
- transition: all 0.2s ease-in-out;
- }
- .control {
- position: relative;
- width: calc((${Ka} / 2 + ${qt}) * 1px);
- height: calc((${Ka} / 2 + ${qt}) * 1px);
- box-sizing: border-box;
- border-radius: 999px;
- border: calc(${Zt} * 1px) solid ${ca};
- background: ${Rr};
- outline: none;
- cursor: pointer;
- }
- :host([aria-invalid='true']) .control {
- border-color: ${$a};
- }
- .label {
- font-family: ${It};
- color: ${la};
- padding-inline-start: calc(${qt} * 2px + 2px);
- margin-inline-end: calc(${qt} * 2px + 2px);
- cursor: pointer;
- font-size: ${Jt};
- line-height: ${Kt};
- }
- .label__hidden {
- display: none;
- visibility: hidden;
- }
- .control,
- .checked-indicator {
- flex-shrink: 0;
- }
- .checked-indicator {
- position: absolute;
- top: 5px;
- left: 5px;
- right: 5px;
- bottom: 5px;
- border-radius: 999px;
- display: inline-block;
- background: ${mr};
- fill: ${mr};
- opacity: 0;
- pointer-events: none;
- }
- :host(:not([disabled])) .control:hover {
- background: ${Ir};
- border-color: ${da};
- }
- :host([aria-invalid='true']:not([disabled])) .control:hover {
- border-color: ${xa};
- }
- :host(:not([disabled])) .control:active {
- background: ${Ar};
- border-color: ${ua};
- }
- :host([aria-invalid='true']:not([disabled])) .control:active {
- border-color: ${ya};
- }
- :host(:${be.focusVisible}) .control {
- outline: solid calc(${Yt} * 1px) ${gr};
- }
- :host([aria-invalid='true']:${be.focusVisible}) .control {
- outline-color: ${wa};
- }
- :host([aria-checked='true']) .control {
- background: ${ur};
- border: calc(${Zt} * 1px) solid ${ur};
- }
- :host([aria-invalid='true'][aria-checked='true']) .control {
- background-color: ${$a};
- border-color: ${$a};
- }
- :host([aria-checked='true']:not([disabled])) .control:hover {
- background: ${hr};
- border: calc(${Zt} * 1px) solid ${hr};
- }
- :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
- .control:hover {
- background-color: ${xa};
- border-color: ${xa};
- }
- :host([aria-checked='true']:not([disabled]))
- .control:hover
- .checked-indicator {
- background: ${vr};
- fill: ${vr};
- }
- :host([aria-checked='true']:not([disabled])) .control:active {
- background: ${pr};
- border: calc(${Zt} * 1px) solid ${pr};
- }
- :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
- .control:active {
- background-color: ${ya};
- border-color: ${ya};
- }
- :host([aria-checked='true']:not([disabled]))
- .control:active
- .checked-indicator {
- background: ${$r};
- fill: ${$r};
- }
- :host([aria-checked="true"]:${be.focusVisible}:not([disabled])) .control {
- outline-offset: 2px;
- outline: solid calc(${Yt} * 1px) ${gr};
- }
- :host([aria-invalid='true'][aria-checked="true"]:${be.focusVisible}:not([disabled])) .control {
- outline-color: ${wa};
- }
- :host([disabled]) .label,
- :host([readonly]) .label,
- :host([readonly]) .control,
- :host([disabled]) .control {
- cursor: ${be.disabledCursor};
- }
- :host([aria-checked='true']) .checked-indicator {
- opacity: 1;
- }
- :host([disabled]) {
- opacity: ${Xt};
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- .control,
- :host([aria-checked='true']:not([disabled])) .control {
- forced-color-adjust: none;
- border-color: ${Ja.FieldText};
- background: ${Ja.Field};
- }
- :host([aria-invalid='true']) {
- border-style: dashed;
- }
- :host(:not([disabled])) .control:hover {
- border-color: ${Ja.Highlight};
- background: ${Ja.Field};
- }
- :host([aria-checked='true']:not([disabled])) .control:hover,
- :host([aria-checked='true']:not([disabled])) .control:active {
- border-color: ${Ja.Highlight};
- background: ${Ja.Highlight};
- }
- :host([aria-checked='true']) .checked-indicator {
- background: ${Ja.Highlight};
- fill: ${Ja.Highlight};
- }
- :host([aria-checked='true']:not([disabled]))
- .control:hover
- .checked-indicator,
- :host([aria-checked='true']:not([disabled]))
- .control:active
- .checked-indicator {
- background: ${Ja.HighlightText};
- fill: ${Ja.HighlightText};
- }
- :host(:${be.focusVisible}) .control {
- border-color: ${Ja.Highlight};
- outline-offset: 2px;
- outline: solid calc(${Yt} * 1px) ${Ja.FieldText};
- }
- :host([aria-checked="true"]:${be.focusVisible}:not([disabled])) .control {
- border-color: ${Ja.Highlight};
- outline: solid calc(${Yt} * 1px) ${Ja.FieldText};
- }
- :host([disabled]) {
- forced-color-adjust: none;
- opacity: 1;
- }
- :host([disabled]) .label {
- color: ${Ja.GrayText};
- }
- :host([disabled]) .control,
- :host([aria-checked='true'][disabled]) .control:hover,
- .control:active {
- background: ${Ja.Field};
- border-color: ${Ja.GrayText};
- }
- :host([disabled]) .checked-indicator,
- :host([aria-checked='true'][disabled]) .control:hover .checked-indicator {
- fill: ${Ja.GrayText};
- background: ${Ja.GrayText};
- }
- `));const Ll=(e,t)=>(0,Za.html)`
- <template
- role="radio"
- aria-checked="${e=>e.checked}"
- aria-required="${e=>e.required}"
- aria-disabled="${e=>e.disabled}"
- aria-readonly="${e=>e.readOnly}"
- @keypress="${(e,t)=>e.keypressHandler(t.event)}"
- @click="${(e,t)=>e.clickHandler(t.event)}"
- >
- <div part="control" class="control">
- <slot name="checked-indicator">
- ${t.checkedIndicator||""}
- </slot>
- </div>
- <label
- part="label"
- class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
- >
- <slot ${(0,Za.slotted)("defaultSlottedNodes")}></slot>
- </label>
- </template>
- `;class Ol extends be.Radio{}const Hl=Ol.compose({baseName:"radio",baseClass:be.Radio,template:Ll,styles:Bl,checkedIndicator:`\n <div part="checked-indicator" class="checked-indicator"></div>\n `});const Nl=(e,t)=>(0,Za.css)`
- ${(0,be.display)("flex")} :host {
- align-items: flex-start;
- margin: calc(${qt} * 1px) 0;
- flex-direction: column;
- }
- .positioning-region {
- display: flex;
- flex-wrap: wrap;
- }
- :host([orientation='vertical']) .positioning-region {
- flex-direction: column;
- }
- :host([orientation='horizontal']) .positioning-region {
- flex-direction: row;
- }
- `;class Pl extends be.RadioGroup{constructor(){super();const e=Za.Observable.getNotifier(this);const t={handleChange(e,t){if(t==="slottedRadioButtons"){e.ariaInvalidChanged()}}};e.subscribe(t,"slottedRadioButtons")}ariaInvalidChanged(){if(this.slottedRadioButtons){this.slottedRadioButtons.forEach((e=>{var t;e.setAttribute("aria-invalid",(t=this.getAttribute("aria-invalid"))!==null&&t!==void 0?t:"false")}))}}}const Rl=Pl.compose({baseName:"radio-group",baseClass:be.RadioGroup,template:be.radioGroupTemplate,styles:Nl});const Il=be.DesignToken.create("clear-button-hover").withDefault((e=>{const t=Gr.getValueFor(e);const o=Br.getValueFor(e);return t.evaluate(e,o.evaluate(e).hover).hover}));const Al=be.DesignToken.create("clear-button-active").withDefault((e=>{const t=Gr.getValueFor(e);const o=Br.getValueFor(e);return t.evaluate(e,o.evaluate(e).hover).active}));const Ml=(e,t)=>(0,Za.css)`
- ${Wn}
- .control::-webkit-search-cancel-button {
- -webkit-appearance: none;
- }
- .control:hover,
- .control:${be.focusVisible},
- .control:disabled,
- .control:active {
- outline: none;
- }
- .clear-button {
- height: calc(100% - 2px);
- opacity: 0;
- margin: 1px;
- background: transparent;
- color: ${la};
- fill: currentcolor;
- border: none;
- border-radius: calc(${Et} * 1px);
- min-width: calc(${Ka} * 1px);
- font-size: ${Jt};
- line-height: ${Kt};
- outline: none;
- font-family: ${It};
- padding: 0 calc((10 + (${qt} * 2 * ${_t})) * 1px);
- }
- .clear-button:hover {
- background: ${_r};
- }
- .clear-button:active {
- background: ${qr};
- }
- :host([appearance='filled']) .clear-button:hover {
- background: ${Il};
- }
- :host([appearance='filled']) .clear-button:active {
- background: ${Al};
- }
- .input-wrapper {
- display: flex;
- position: relative;
- width: 100%;
- }
- .start,
- .end {
- display: flex;
- margin: 1px;
- fill: currentcolor;
- }
- ::slotted([slot='end']) {
- height: 100%;
- }
- .end {
- margin-inline-end: 1px;
- height: calc(100% - 2px);
- }
- ::slotted(svg) {
- /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
- width: 16px;
- height: 16px;
- margin-inline-end: 11px;
- margin-inline-start: 11px;
- margin-top: auto;
- margin-bottom: auto;
- }
- .clear-button__hidden {
- opacity: 0;
- }
- :host(:hover:not([disabled], [readOnly])) .clear-button,
- :host(:active:not([disabled], [readOnly])) .clear-button,
- :host(:focus-within:not([disabled], [readOnly])) .clear-button {
- opacity: 1;
- }
- :host(:hover:not([disabled], [readOnly])) .clear-button__hidden,
- :host(:active:not([disabled], [readOnly])) .clear-button__hidden,
- :host(:focus-within:not([disabled], [readOnly])) .clear-button__hidden {
- opacity: 0;
- }
- `;class Gl extends be.Search{constructor(){super(...arguments);this.appearance="outline"}}si([Za.attr],Gl.prototype,"appearance",void 0);const El=Gl.compose({baseName:"search",baseClass:be.Search,template:be.searchTemplate,styles:Ml,shadowOptions:{delegatesFocus:true}});class _l extends be.Select{constructor(){super(...arguments);this.listboxScrollWidth=""}autoWidthChanged(e,t){if(t){this.setAutoWidth()}else{this.style.removeProperty("width")}}setAutoWidth(){if(!this.autoWidth||!this.isConnected){return}let e=this.listbox.getBoundingClientRect().width;if(e===0&&this.listbox.hidden){Object.assign(this.listbox.style,{visibility:"hidden"});this.listbox.removeAttribute("hidden");e=this.listbox.getBoundingClientRect().width;this.listbox.setAttribute("hidden","");this.listbox.style.removeProperty("visibility")}if(e>0){Object.assign(this.style,{width:`${e}px`})}}connectedCallback(){super.connectedCallback();this.setAutoWidth();if(this.listbox){sr.setValueFor(this.listbox,Qo)}}slottedOptionsChanged(e,t){super.slottedOptionsChanged(e,t);this.setAutoWidth()}get listboxMaxHeight(){return Math.floor(this.maxHeight/ba.getValueFor(this)).toString()}listboxScrollWidthChanged(){this.updateComputedStylesheet()}get selectSize(){var e;return`${(e=this.size)!==null&&e!==void 0?e:this.multiple?4:0}`}multipleChanged(e,t){super.multipleChanged(e,t);this.updateComputedStylesheet()}maxHeightChanged(e,t){if(this.collapsible){this.updateComputedStylesheet()}}setPositioning(){super.setPositioning();this.updateComputedStylesheet()}sizeChanged(e,t){super.sizeChanged(e,t);this.updateComputedStylesheet();if(this.collapsible){requestAnimationFrame((()=>{this.listbox.style.setProperty("display","flex");this.listbox.style.setProperty("overflow","visible");this.listbox.style.setProperty("visibility","hidden");this.listbox.style.setProperty("width","auto");this.listbox.hidden=false;this.listboxScrollWidth=`${this.listbox.scrollWidth}`;this.listbox.hidden=true;this.listbox.style.removeProperty("display");this.listbox.style.removeProperty("overflow");this.listbox.style.removeProperty("visibility");this.listbox.style.removeProperty("width")}));return}this.listboxScrollWidth=""}updateComputedStylesheet(){if(this.computedStylesheet){this.$fastController.removeStyles(this.computedStylesheet)}this.computedStylesheet=(0,Za.css)`
- :host {
- --listbox-max-height: ${this.listboxMaxHeight};
- --listbox-scroll-width: ${this.listboxScrollWidth};
- --size: ${this.selectSize};
- }
- `;this.$fastController.addStyles(this.computedStylesheet)}}si([(0,Za.attr)({attribute:"autowidth",mode:"boolean"})],_l.prototype,"autoWidth",void 0);si([(0,Za.attr)({attribute:"minimal",mode:"boolean"})],_l.prototype,"minimal",void 0);si([Za.attr],_l.prototype,"scale",void 0);si([Za.observable],_l.prototype,"listboxScrollWidth",void 0);const ql=_l.compose({baseName:"select",baseClass:be.Select,template:be.selectTemplate,styles:Tn,indicator:`\n <svg\n class="select-indicator"\n part="select-indicator"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n />\n </svg>\n `});const Wl=(e,t)=>(0,Za.css)`
- ${(0,be.display)("block")} :host {
- --skeleton-fill-default: #e1dfdd;
- overflow: hidden;
- width: 100%;
- position: relative;
- background-color: var(--skeleton-fill, var(--skeleton-fill-default));
- --skeleton-animation-gradient-default: linear-gradient(
- 270deg,
- var(--skeleton-fill, var(--skeleton-fill-default)) 0%,
- #f3f2f1 51.13%,
- var(--skeleton-fill, var(--skeleton-fill-default)) 100%
- );
- --skeleton-animation-timing-default: ease-in-out;
- }
- :host([shape='rect']) {
- border-radius: calc(${Et} * 1px);
- }
- :host([shape='circle']) {
- border-radius: 100%;
- overflow: hidden;
- }
- object {
- position: absolute;
- width: 100%;
- height: auto;
- z-index: 2;
- }
- object img {
- width: 100%;
- height: auto;
- }
- ${(0,be.display)("block")} span.shimmer {
- position: absolute;
- width: 100%;
- height: 100%;
- background-image: var(
- --skeleton-animation-gradient,
- var(--skeleton-animation-gradient-default)
- );
- background-size: 0px 0px / 90% 100%;
- background-repeat: no-repeat;
- background-color: var(--skeleton-animation-fill, ${Lr});
- animation: shimmer 2s infinite;
- animation-timing-function: var(
- --skeleton-animation-timing,
- var(--skeleton-timing-default)
- );
- animation-direction: normal;
- z-index: 1;
- }
- ::slotted(svg) {
- z-index: 2;
- }
- ::slotted(.pattern) {
- width: 100%;
- height: 100%;
- }
- @keyframes shimmer {
- 0% {
- transform: translateX(-100%);
- }
- 100% {
- transform: translateX(100%);
- }
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host {
- forced-color-adjust: none;
- background-color: ${Ja.ButtonFace};
- box-shadow: 0 0 0 1px ${Ja.ButtonText};
- }
- ${(0,be.display)("block")} span.shimmer {
- display: none;
- }
- `));class Ul extends be.Skeleton{}const Xl=Ul.compose({baseName:"skeleton",baseClass:be.Skeleton,template:be.skeletonTemplate,styles:Wl});const Zl=(0,Za.css)`
- .track-start {
- left: 0;
- }
- `;const Yl=(0,Za.css)`
- .track-start {
- right: 0;
- }
- `;const Jl=(e,t)=>(0,Za.css)`
- :host([hidden]) {
- display: none;
- }
- ${(0,be.display)("inline-grid")} :host {
- --thumb-size: calc(${Ka} * 0.5 - ${qt});
- --thumb-translate: calc(
- var(--thumb-size) * -0.5 + var(--track-width) / 2
- );
- --track-overhang: calc((${qt} / 2) * -1);
- --track-width: ${qt};
- --jp-slider-height: calc(var(--thumb-size) * 10);
- align-items: center;
- width: 100%;
- margin: calc(${qt} * 1px) 0;
- user-select: none;
- box-sizing: border-box;
- border-radius: calc(${Et} * 1px);
- outline: none;
- cursor: pointer;
- }
- :host([orientation='horizontal']) .positioning-region {
- position: relative;
- margin: 0 8px;
- display: grid;
- grid-template-rows: calc(var(--thumb-size) * 1px) 1fr;
- }
- :host([orientation='vertical']) .positioning-region {
- position: relative;
- margin: 0 8px;
- display: grid;
- height: 100%;
- grid-template-columns: calc(var(--thumb-size) * 1px) 1fr;
- }
- :host(:${be.focusVisible}) .thumb-cursor {
- box-shadow:
- 0 0 0 2px ${sr},
- 0 0 0 calc((2 + ${Yt}) * 1px) ${gr};
- }
- :host([aria-invalid='true']:${be.focusVisible}) .thumb-cursor {
- box-shadow:
- 0 0 0 2px ${sr},
- 0 0 0 calc((2 + ${Yt}) * 1px) ${wa};
- }
- .thumb-container {
- position: absolute;
- height: calc(var(--thumb-size) * 1px);
- width: calc(var(--thumb-size) * 1px);
- transition: all 0.2s ease;
- color: ${la};
- fill: currentcolor;
- }
- .thumb-cursor {
- border: none;
- width: calc(var(--thumb-size) * 1px);
- height: calc(var(--thumb-size) * 1px);
- background: ${la};
- border-radius: calc(${Et} * 1px);
- }
- .thumb-cursor:hover {
- background: ${la};
- border-color: ${da};
- }
- .thumb-cursor:active {
- background: ${la};
- }
- .track-start {
- background: ${Vr};
- position: absolute;
- height: 100%;
- left: 0;
- border-radius: calc(${Et} * 1px);
- }
- :host([aria-invalid='true']) .track-start {
- background-color: ${$a};
- }
- :host([orientation='horizontal']) .thumb-container {
- transform: translateX(calc(var(--thumb-size) * 0.5px))
- translateY(calc(var(--thumb-translate) * 1px));
- }
- :host([orientation='vertical']) .thumb-container {
- transform: translateX(calc(var(--thumb-translate) * 1px))
- translateY(calc(var(--thumb-size) * 0.5px));
- }
- :host([orientation='horizontal']) {
- min-width: calc(var(--thumb-size) * 1px);
- }
- :host([orientation='horizontal']) .track {
- right: calc(var(--track-overhang) * 1px);
- left: calc(var(--track-overhang) * 1px);
- align-self: start;
- height: calc(var(--track-width) * 1px);
- }
- :host([orientation='vertical']) .track {
- top: calc(var(--track-overhang) * 1px);
- bottom: calc(var(--track-overhang) * 1px);
- width: calc(var(--track-width) * 1px);
- height: 100%;
- }
- .track {
- background: ${ca};
- position: absolute;
- border-radius: calc(${Et} * 1px);
- }
- :host([orientation='vertical']) {
- height: calc(var(--fast-slider-height) * 1px);
- min-height: calc(var(--thumb-size) * 1px);
- min-width: calc(${qt} * 20px);
- }
- :host([orientation='vertical']) .track-start {
- height: auto;
- width: 100%;
- top: 0;
- }
- :host([disabled]),
- :host([readonly]) {
- cursor: ${be.disabledCursor};
- }
- :host([disabled]) {
- opacity: ${Xt};
- }
- `.withBehaviors(new Zi(Zl,Yl),(0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- .thumb-cursor {
- forced-color-adjust: none;
- border-color: ${Ja.FieldText};
- background: ${Ja.FieldText};
- }
- .thumb-cursor:hover,
- .thumb-cursor:active {
- background: ${Ja.Highlight};
- }
- .track {
- forced-color-adjust: none;
- background: ${Ja.FieldText};
- }
- :host(:${be.focusVisible}) .thumb-cursor {
- border-color: ${Ja.Highlight};
- }
- :host([disabled]) {
- opacity: 1;
- }
- :host([disabled]) .track,
- :host([disabled]) .thumb-cursor {
- forced-color-adjust: none;
- background: ${Ja.GrayText};
- }
- :host(:${be.focusVisible}) .thumb-cursor {
- background: ${Ja.Highlight};
- border-color: ${Ja.Highlight};
- box-shadow:
- 0 0 0 2px ${Ja.Field},
- 0 0 0 4px ${Ja.FieldText};
- }
- `));class Kl extends be.Slider{}const Ql=Kl.compose({baseName:"slider",baseClass:be.Slider,template:be.sliderTemplate,styles:Jl,thumb:`\n <div class="thumb-cursor"></div>\n `});var es=o(67002);const ts=(0,Za.css)`
- :host {
- align-self: start;
- grid-row: 2;
- margin-top: -2px;
- height: calc((${Ka} / 2 + ${qt}) * 1px);
- width: auto;
- }
- .container {
- grid-template-rows: auto auto;
- grid-template-columns: 0;
- }
- .label {
- margin: 2px 0;
- }
- `;const os=(0,Za.css)`
- :host {
- justify-self: start;
- grid-column: 2;
- margin-left: 2px;
- height: auto;
- width: calc((${Ka} / 2 + ${qt}) * 1px);
- }
- .container {
- grid-template-columns: auto auto;
- grid-template-rows: 0;
- min-width: calc(var(--thumb-size) * 1px);
- height: calc(var(--thumb-size) * 1px);
- }
- .mark {
- transform: rotate(90deg);
- align-self: center;
- }
- .label {
- margin-left: calc((${qt} / 2) * 3px);
- align-self: center;
- }
- `;const rs=(e,t)=>(0,Za.css)`
- ${(0,be.display)("block")} :host {
- font-family: ${It};
- color: ${la};
- fill: currentcolor;
- }
- .root {
- position: absolute;
- display: grid;
- }
- .container {
- display: grid;
- justify-self: center;
- }
- .label {
- justify-self: center;
- align-self: center;
- white-space: nowrap;
- max-width: 30px;
- }
- .mark {
- width: calc((${qt} / 4) * 1px);
- height: calc(${Ka} * 0.25 * 1px);
- background: ${ca};
- justify-self: center;
- }
- :host(.disabled) {
- opacity: ${Xt};
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- .mark {
- forced-color-adjust: none;
- background: ${Ja.FieldText};
- }
- :host(.disabled) {
- forced-color-adjust: none;
- opacity: 1;
- }
- :host(.disabled) .label {
- color: ${Ja.GrayText};
- }
- :host(.disabled) .mark {
- background: ${Ja.GrayText};
- }
- `));class as extends be.SliderLabel{sliderOrientationChanged(){if(this.sliderOrientation===es.t.horizontal){this.$fastController.addStyles(ts);this.$fastController.removeStyles(os)}else{this.$fastController.addStyles(os);this.$fastController.removeStyles(ts)}}}const is=as.compose({baseName:"slider-label",baseClass:be.SliderLabel,template:be.sliderLabelTemplate,styles:rs});const ns=(e,t)=>(0,Za.css)`
- :host([hidden]) {
- display: none;
- }
- ${(0,be.display)("inline-flex")} :host {
- align-items: center;
- outline: none;
- font-family: ${It};
- margin: calc(${qt} * 1px) 0;
- ${""} user-select: none;
- }
- :host([disabled]) {
- opacity: ${Xt};
- }
- :host([disabled]) .label,
- :host([readonly]) .label,
- :host([readonly]) .switch,
- :host([disabled]) .switch {
- cursor: ${be.disabledCursor};
- }
- .switch {
- position: relative;
- outline: none;
- box-sizing: border-box;
- width: calc(${Ka} * 1px);
- height: calc((${Ka} / 2 + ${qt}) * 1px);
- background: ${Rr};
- border-radius: calc(${Et} * 1px);
- border: calc(${Zt} * 1px) solid ${ca};
- }
- :host([aria-invalid='true']) .switch {
- border-color: ${$a};
- }
- .switch:hover {
- background: ${Ir};
- border-color: ${da};
- cursor: pointer;
- }
- :host([disabled]) .switch:hover,
- :host([readonly]) .switch:hover {
- background: ${Ir};
- border-color: ${da};
- cursor: ${be.disabledCursor};
- }
- :host([aria-invalid='true'][disabled]) .switch:hover,
- :host([aria-invalid='true'][readonly]) .switch:hover {
- border-color: ${xa};
- }
- :host(:not([disabled])) .switch:active {
- background: ${Ar};
- border-color: ${ua};
- }
- :host([aria-invalid='true']:not([disabled])) .switch:active {
- border-color: ${ya};
- }
- :host(:${be.focusVisible}) .switch {
- outline-offset: 2px;
- outline: solid calc(${Yt} * 1px) ${gr};
- }
- :host([aria-invalid='true']:${be.focusVisible}) .switch {
- outline-color: ${wa};
- }
- .checked-indicator {
- position: absolute;
- top: 5px;
- bottom: 5px;
- background: ${la};
- border-radius: calc(${Et} * 1px);
- transition: all 0.2s ease-in-out;
- }
- .status-message {
- color: ${la};
- cursor: pointer;
- font-size: ${Jt};
- line-height: ${Kt};
- }
- :host([disabled]) .status-message,
- :host([readonly]) .status-message {
- cursor: ${be.disabledCursor};
- }
- .label {
- color: ${la};
- margin-inline-end: calc(${qt} * 2px + 2px);
- font-size: ${Jt};
- line-height: ${Kt};
- cursor: pointer;
- }
- .label__hidden {
- display: none;
- visibility: hidden;
- }
- ::slotted([slot='checked-message']),
- ::slotted([slot='unchecked-message']) {
- margin-inline-start: calc(${qt} * 2px + 2px);
- }
- :host([aria-checked='true']) .checked-indicator {
- background: ${mr};
- }
- :host([aria-checked='true']) .switch {
- background: ${ur};
- border-color: ${ur};
- }
- :host([aria-checked='true']:not([disabled])) .switch:hover {
- background: ${hr};
- border-color: ${hr};
- }
- :host([aria-invalid='true'][aria-checked='true']) .switch {
- background-color: ${$a};
- border-color: ${$a};
- }
- :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
- .switch:hover {
- background-color: ${xa};
- border-color: ${xa};
- }
- :host([aria-checked='true']:not([disabled]))
- .switch:hover
- .checked-indicator {
- background: ${vr};
- }
- :host([aria-checked='true']:not([disabled])) .switch:active {
- background: ${pr};
- border-color: ${pr};
- }
- :host([aria-invalid='true'][aria-checked='true']:not([disabled]))
- .switch:active {
- background-color: ${ya};
- border-color: ${ya};
- }
- :host([aria-checked='true']:not([disabled]))
- .switch:active
- .checked-indicator {
- background: ${$r};
- }
- :host([aria-checked="true"]:${be.focusVisible}:not([disabled])) .switch {
- outline: solid calc(${Yt} * 1px) ${gr};
- }
- :host([aria-invalid='true'][aria-checked="true"]:${be.focusVisible}:not([disabled])) .switch {
- outline-color: ${wa};
- }
- .unchecked-message {
- display: block;
- }
- .checked-message {
- display: none;
- }
- :host([aria-checked='true']) .unchecked-message {
- display: none;
- }
- :host([aria-checked='true']) .checked-message {
- display: block;
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- .checked-indicator,
- :host(:not([disabled])) .switch:active .checked-indicator {
- forced-color-adjust: none;
- background: ${Ja.FieldText};
- }
- .switch {
- forced-color-adjust: none;
- background: ${Ja.Field};
- border-color: ${Ja.FieldText};
- }
- :host([aria-invalid='true']) .switch {
- border-style: dashed;
- }
- :host(:not([disabled])) .switch:hover {
- background: ${Ja.HighlightText};
- border-color: ${Ja.Highlight};
- }
- :host([aria-checked='true']) .switch {
- background: ${Ja.Highlight};
- border-color: ${Ja.Highlight};
- }
- :host([aria-checked='true']:not([disabled])) .switch:hover,
- :host(:not([disabled])) .switch:active {
- background: ${Ja.HighlightText};
- border-color: ${Ja.Highlight};
- }
- :host([aria-checked='true']) .checked-indicator {
- background: ${Ja.HighlightText};
- }
- :host([aria-checked='true']:not([disabled]))
- .switch:hover
- .checked-indicator {
- background: ${Ja.Highlight};
- }
- :host([disabled]) {
- opacity: 1;
- }
- :host(:${be.focusVisible}) .switch {
- border-color: ${Ja.Highlight};
- outline-offset: 2px;
- outline: solid calc(${Yt} * 1px) ${Ja.FieldText};
- }
- :host([aria-checked="true"]:${be.focusVisible}:not([disabled])) .switch {
- outline: solid calc(${Yt} * 1px) ${Ja.FieldText};
- }
- :host([disabled]) .checked-indicator {
- background: ${Ja.GrayText};
- }
- :host([disabled]) .switch {
- background: ${Ja.Field};
- border-color: ${Ja.GrayText};
- }
- `),new Zi((0,Za.css)`
- .checked-indicator {
- left: 5px;
- right: calc(((${Ka} / 2) + 1) * 1px);
- }
- :host([aria-checked='true']) .checked-indicator {
- left: calc(((${Ka} / 2) + 1) * 1px);
- right: 5px;
- }
- `,(0,Za.css)`
- .checked-indicator {
- right: 5px;
- left: calc(((${Ka} / 2) + 1) * 1px);
- }
- :host([aria-checked='true']) .checked-indicator {
- right: calc(((${Ka} / 2) + 1) * 1px);
- left: 5px;
- }
- `));class ls extends be.Switch{}const ss=ls.compose({baseName:"switch",baseClass:be.Switch,template:be.switchTemplate,styles:ns,switch:`\n <span class="checked-indicator" part="checked-indicator"></span>\n `});const cs=(e,t)=>(0,Za.css)`
- ${(0,be.display)("block")} :host {
- box-sizing: border-box;
- font-size: ${Jt};
- line-height: ${Kt};
- padding: 0 calc((6 + (${qt} * 2 * ${_t})) * 1px);
- }
- `;class ds extends be.TabPanel{}const us=ds.compose({baseName:"tab-panel",baseClass:be.TabPanel,template:be.tabPanelTemplate,styles:cs});const hs=(e,t)=>(0,Za.css)`
- ${(0,be.display)("inline-flex")} :host {
- box-sizing: border-box;
- font-family: ${It};
- font-size: ${Jt};
- line-height: ${Kt};
- height: calc(${Ka} * 1px);
- padding: calc(${qt} * 5px) calc(${qt} * 4px);
- color: ${ia};
- fill: currentcolor;
- border-radius: 0 0 calc(${Et} * 1px)
- calc(${Et} * 1px);
- border: calc(${Zt} * 1px) solid transparent;
- align-items: center;
- justify-content: center;
- grid-row: 2;
- cursor: pointer;
- }
- :host(:hover) {
- color: ${la};
- fill: currentcolor;
- }
- :host(:active) {
- color: ${la};
- fill: currentcolor;
- }
- :host([disabled]) {
- cursor: ${be.disabledCursor};
- opacity: ${Xt};
- }
- :host([disabled]:hover) {
- color: ${ia};
- background: ${Er};
- }
- :host([aria-selected='true']) {
- background: ${Lr};
- color: ${la};
- fill: currentcolor;
- }
- :host([aria-selected='true']:hover) {
- background: ${Or};
- color: ${la};
- fill: currentcolor;
- }
- :host([aria-selected='true']:active) {
- background: ${Hr};
- color: ${la};
- fill: currentcolor;
- }
- :host(:${be.focusVisible}) {
- outline: none;
- border-color: ${gr};
- box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
- ${gr};
- }
- :host(:focus) {
- outline: none;
- }
- :host(.vertical) {
- justify-content: end;
- grid-column: 2;
- border-bottom-left-radius: 0;
- border-top-right-radius: calc(${Et} * 1px);
- }
- :host(.vertical[aria-selected='true']) {
- z-index: 2;
- }
- :host(.vertical:hover) {
- color: ${la};
- }
- :host(.vertical:active) {
- color: ${la};
- }
- :host(.vertical:hover[aria-selected='true']) {
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host {
- forced-color-adjust: none;
- border-color: transparent;
- color: ${Ja.ButtonText};
- fill: currentcolor;
- }
- :host(:hover),
- :host(.vertical:hover),
- :host([aria-selected='true']:hover) {
- background: ${Ja.Highlight};
- color: ${Ja.HighlightText};
- fill: currentcolor;
- }
- :host([aria-selected='true']) {
- background: ${Ja.HighlightText};
- color: ${Ja.Highlight};
- fill: currentcolor;
- }
- :host(:${be.focusVisible}) {
- border-color: ${Ja.ButtonText};
- box-shadow: none;
- }
- :host([disabled]),
- :host([disabled]:hover) {
- opacity: 1;
- color: ${Ja.GrayText};
- background: ${Ja.ButtonFace};
- }
- `));class ps extends be.Tab{}const gs=ps.compose({baseName:"tab",baseClass:be.Tab,template:be.tabTemplate,styles:hs});const bs=(e,t)=>(0,Za.css)`
- ${(0,be.display)("grid")} :host {
- box-sizing: border-box;
- font-family: ${It};
- font-size: ${Jt};
- line-height: ${Kt};
- color: ${la};
- grid-template-columns: auto 1fr auto;
- grid-template-rows: auto 1fr;
- }
- .tablist {
- display: grid;
- grid-template-rows: auto auto;
- grid-template-columns: auto;
- position: relative;
- width: max-content;
- align-self: end;
- padding: calc(${qt} * 4px) calc(${qt} * 4px) 0;
- box-sizing: border-box;
- }
- .start,
- .end {
- align-self: center;
- }
- .activeIndicator {
- grid-row: 1;
- grid-column: 1;
- width: 100%;
- height: 4px;
- justify-self: center;
- background: ${ur};
- margin-top: 0;
- border-radius: calc(${Et} * 1px)
- calc(${Et} * 1px) 0 0;
- }
- .activeIndicatorTransition {
- transition: transform 0.01s ease-in-out;
- }
- .tabpanel {
- grid-row: 2;
- grid-column-start: 1;
- grid-column-end: 4;
- position: relative;
- }
- :host([orientation='vertical']) {
- grid-template-rows: auto 1fr auto;
- grid-template-columns: auto 1fr;
- }
- :host([orientation='vertical']) .tablist {
- grid-row-start: 2;
- grid-row-end: 2;
- display: grid;
- grid-template-rows: auto;
- grid-template-columns: auto 1fr;
- position: relative;
- width: max-content;
- justify-self: end;
- align-self: flex-start;
- width: 100%;
- padding: 0 calc(${qt} * 4px)
- calc((${Ka} - ${qt}) * 1px) 0;
- }
- :host([orientation='vertical']) .tabpanel {
- grid-column: 2;
- grid-row-start: 1;
- grid-row-end: 4;
- }
- :host([orientation='vertical']) .end {
- grid-row: 3;
- }
- :host([orientation='vertical']) .activeIndicator {
- grid-column: 1;
- grid-row: 1;
- width: 4px;
- height: 100%;
- margin-inline-end: 0px;
- align-self: center;
- background: ${ur};
- border-radius: calc(${Et} * 1px) 0 0
- calc(${Et} * 1px);
- }
- :host([orientation='vertical']) .activeIndicatorTransition {
- transition: transform 0.01s ease-in-out;
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- .activeIndicator,
- :host([orientation='vertical']) .activeIndicator {
- forced-color-adjust: none;
- background: ${Ja.Highlight};
- }
- `));class fs extends be.Tabs{}const ms=fs.compose({baseName:"tabs",baseClass:be.Tabs,template:be.tabsTemplate,styles:bs});const vs=(e,t)=>(0,Za.css)`
- ${(0,be.display)("inline-block")} :host {
- font-family: ${It};
- outline: none;
- user-select: none;
- }
- .control {
- box-sizing: border-box;
- position: relative;
- color: ${la};
- background: ${Rr};
- border-radius: calc(${Et} * 1px);
- border: calc(${Zt} * 1px) solid ${Xr};
- height: calc(${Ka} * 2px);
- font: inherit;
- font-size: ${Jt};
- line-height: ${Kt};
- padding: calc(${qt} * 2px + 1px);
- width: 100%;
- resize: none;
- }
- :host([aria-invalid='true']) .control {
- border-color: ${$a};
- }
- .control:hover:enabled {
- background: ${Ir};
- border-color: ${Zr};
- }
- :host([aria-invalid='true']) .control:hover:enabled {
- border-color: ${xa};
- }
- .control:active:enabled {
- background: ${Ar};
- border-color: ${Yr};
- }
- :host([aria-invalid='true']) .control:active:enabled {
- border-color: ${ya};
- }
- .control:hover,
- .control:${be.focusVisible},
- .control:disabled,
- .control:active {
- outline: none;
- }
- :host(:focus-within) .control {
- border-color: ${gr};
- box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
- ${gr};
- }
- :host([aria-invalid='true']:focus-within) .control {
- border-color: ${wa};
- box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
- ${wa};
- }
- :host([appearance='filled']) .control {
- background: ${Lr};
- }
- :host([appearance='filled']:hover:not([disabled])) .control {
- background: ${Or};
- }
- :host([resize='both']) .control {
- resize: both;
- }
- :host([resize='horizontal']) .control {
- resize: horizontal;
- }
- :host([resize='vertical']) .control {
- resize: vertical;
- }
- .label {
- display: block;
- color: ${la};
- cursor: pointer;
- font-size: ${Jt};
- line-height: ${Kt};
- margin-bottom: 4px;
- }
- .label__hidden {
- display: none;
- visibility: hidden;
- }
- :host([disabled]) .label,
- :host([readonly]) .label,
- :host([readonly]) .control,
- :host([disabled]) .control {
- cursor: ${be.disabledCursor};
- }
- :host([disabled]) {
- opacity: ${Xt};
- }
- :host([disabled]) .control {
- border-color: ${ca};
- }
- :host([cols]) {
- width: initial;
- }
- :host([rows]) .control {
- height: initial;
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host([disabled]) {
- opacity: 1;
- }
- :host([aria-invalid='true']) .control {
- border-style: dashed;
- }
- `));class $s extends be.TextArea{constructor(){super(...arguments);this.appearance="outline"}}si([Za.attr],$s.prototype,"appearance",void 0);const xs=$s.compose({baseName:"text-area",baseClass:be.TextArea,template:be.textAreaTemplate,styles:vs,shadowOptions:{delegatesFocus:true}});const ys=(e,t)=>(0,Za.css)`
- ${Wn}
- .start,
- .end {
- display: flex;
- }
- `;class ws extends be.TextField{constructor(){super(...arguments);this.appearance="outline"}}si([Za.attr],ws.prototype,"appearance",void 0);const ks=ws.compose({baseName:"text-field",baseClass:be.TextField,template:be.textFieldTemplate,styles:ys,shadowOptions:{delegatesFocus:true}});var Fs=o(83021);var Cs=o(49054);const Ss=(e,t)=>(0,Za.css)`
- ${(0,be.display)("inline-flex")} :host {
- --toolbar-item-gap: calc(
- (var(--design-unit) + calc(var(--density) + 2)) * 1px
- );
- background-color: ${sr};
- border-radius: calc(${Et} * 1px);
- fill: currentcolor;
- padding: var(--toolbar-item-gap);
- }
- :host(${be.focusVisible}) {
- outline: calc(${Zt} * 1px) solid ${gr};
- }
- .positioning-region {
- align-items: flex-start;
- display: inline-flex;
- flex-flow: row wrap;
- justify-content: flex-start;
- width: 100%;
- height: 100%;
- }
- :host([orientation='vertical']) .positioning-region {
- flex-direction: column;
- }
- ::slotted(:not([slot])) {
- flex: 0 0 auto;
- margin: 0 var(--toolbar-item-gap);
- }
- :host([orientation='vertical']) ::slotted(:not([slot])) {
- margin: var(--toolbar-item-gap) 0;
- }
- .start,
- .end {
- display: flex;
- margin: auto;
- margin-inline: 0;
- }
- ::slotted(svg) {
- /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
- width: 16px;
- height: 16px;
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host(:${be.focusVisible}) {
- box-shadow: 0 0 0 calc(${Yt} * 1px)
- ${Ja.Highlight};
- color: ${Ja.ButtonText};
- forced-color-adjust: none;
- }
- `));const Ts=Object.freeze({[An.Is.ArrowUp]:{[es.t.vertical]:-1},[An.Is.ArrowDown]:{[es.t.vertical]:1},[An.Is.ArrowLeft]:{[es.t.horizontal]:{[fe.O.ltr]:-1,[fe.O.rtl]:1}},[An.Is.ArrowRight]:{[es.t.horizontal]:{[fe.O.ltr]:1,[fe.O.rtl]:-1}}});class Vs extends be.FoundationElement{constructor(){super(...arguments);this._activeIndex=0;this.direction=fe.O.ltr;this.orientation=es.t.horizontal}get activeIndex(){Za.Observable.track(this,"activeIndex");return this._activeIndex}set activeIndex(e){if(this.$fastController.isConnected){this._activeIndex=(0,Fs.AB)(0,this.focusableElements.length-1,e);Za.Observable.notify(this,"activeIndex")}}slottedItemsChanged(){if(this.$fastController.isConnected){this.reduceFocusableElements()}}mouseDownHandler(e){var t;const o=(t=this.focusableElements)===null||t===void 0?void 0:t.findIndex((t=>t.contains(e.target)));if(o>-1&&this.activeIndex!==o){this.setFocusedElement(o)}return true}childItemsChanged(e,t){if(this.$fastController.isConnected){this.reduceFocusableElements()}}connectedCallback(){super.connectedCallback();this.direction=(0,be.getDirection)(this)}focusinHandler(e){const t=e.relatedTarget;if(!t||this.contains(t)){return}this.setFocusedElement()}getDirectionalIncrementer(e){var t,o,r,a,i;return(i=(r=(o=(t=Ts[e])===null||t===void 0?void 0:t[this.orientation])===null||o===void 0?void 0:o[this.direction])!==null&&r!==void 0?r:(a=Ts[e])===null||a===void 0?void 0:a[this.orientation])!==null&&i!==void 0?i:0}keydownHandler(e){const t=e.key;if(!(t in An.Is)||e.defaultPrevented||e.shiftKey){return true}const o=this.getDirectionalIncrementer(t);if(!o){return!e.target.closest("[role=radiogroup]")}const r=this.activeIndex+o;if(this.focusableElements[r]){e.preventDefault()}this.setFocusedElement(r);return true}get allSlottedItems(){return[...this.start.assignedElements(),...this.slottedItems,...this.end.assignedElements()]}reduceFocusableElements(){var e;const t=(e=this.focusableElements)===null||e===void 0?void 0:e[this.activeIndex];this.focusableElements=this.allSlottedItems.reduce(Vs.reduceFocusableItems,[]);const o=this.focusableElements.indexOf(t);this.activeIndex=Math.max(0,o);this.setFocusableElements()}setFocusedElement(e=this.activeIndex){this.activeIndex=e;this.setFocusableElements();if(this.focusableElements[this.activeIndex]&&this.contains(document.activeElement)){this.focusableElements[this.activeIndex].focus()}}static reduceFocusableItems(e,t){var o,r,a,i;const n=t.getAttribute("role")==="radio";const l=(r=(o=t.$fastController)===null||o===void 0?void 0:o.definition.shadowOptions)===null||r===void 0?void 0:r.delegatesFocus;const s=Array.from((i=(a=t.shadowRoot)===null||a===void 0?void 0:a.querySelectorAll("*"))!==null&&i!==void 0?i:[]).some((e=>(0,Cs.tp)(e)));if(!t.hasAttribute("disabled")&&!t.hasAttribute("hidden")&&((0,Cs.tp)(t)||n||l||s)){e.push(t);return e}if(t.childElementCount){return e.concat(Array.from(t.children).reduce(Vs.reduceFocusableItems,[]))}return e}setFocusableElements(){if(this.$fastController.isConnected&&this.focusableElements.length>0){this.focusableElements.forEach(((e,t)=>{e.tabIndex=this.activeIndex===t?0:-1}))}}}si([Za.observable],Vs.prototype,"direction",void 0);si([Za.attr],Vs.prototype,"orientation",void 0);si([Za.observable],Vs.prototype,"slottedItems",void 0);si([Za.observable],Vs.prototype,"slottedLabel",void 0);si([Za.observable],Vs.prototype,"childItems",void 0);class Ds{}si([(0,Za.attr)({attribute:"aria-labelledby"})],Ds.prototype,"ariaLabelledby",void 0);si([(0,Za.attr)({attribute:"aria-label"})],Ds.prototype,"ariaLabel",void 0);(0,be.applyMixins)(Ds,be.ARIAGlobalStatesAndProperties);(0,be.applyMixins)(Vs,be.StartEnd,Ds);class js extends Vs{connectedCallback(){super.connectedCallback();const e=(0,be.composedParent)(this);if(e){sr.setValueFor(this,(t=>Kr.getValueFor(t).evaluate(t,sr.getValueFor(e))))}}}const zs=js.compose({baseName:"toolbar",baseClass:Vs,template:be.toolbarTemplate,styles:Ss,shadowOptions:{delegatesFocus:true}});const Bs=(e,t)=>{const o=e.tagFor(be.AnchoredRegion);return(0,Za.css)`
- :host {
- contain: size;
- overflow: visible;
- height: 0;
- width: 0;
- }
- .tooltip {
- box-sizing: border-box;
- border-radius: calc(${Et} * 1px);
- border: calc(${Zt} * 1px) solid ${ta};
- box-shadow: 0 0 0 1px ${ta} inset;
- background: ${Lr};
- color: ${la};
- padding: 4px;
- height: fit-content;
- width: fit-content;
- font-family: ${It};
- font-size: ${Jt};
- line-height: ${Kt};
- white-space: nowrap;
- /* TODO: a mechanism to manage z-index across components
- https://github.com/microsoft/fast/issues/3813 */
- z-index: 10000;
- }
- ${o} {
- display: flex;
- justify-content: center;
- align-items: center;
- overflow: visible;
- flex-direction: row;
- }
- ${o}.right,
- ${o}.left {
- flex-direction: column;
- }
- ${o}.top .tooltip {
- margin-bottom: 4px;
- }
- ${o}.bottom .tooltip {
- margin-top: 4px;
- }
- ${o}.left .tooltip {
- margin-right: 4px;
- }
- ${o}.right .tooltip {
- margin-left: 4px;
- }
- ${o}.top.left .tooltip,
- ${o}.top.right .tooltip {
- margin-bottom: 0px;
- }
- ${o}.bottom.left .tooltip,
- ${o}.bottom.right .tooltip {
- margin-top: 0px;
- }
- ${o}.top.left .tooltip,
- ${o}.bottom.left .tooltip {
- margin-right: 0px;
- }
- ${o}.top.right .tooltip,
- ${o}.bottom.right .tooltip {
- margin-left: 0px;
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host([disabled]) {
- opacity: 1;
- }
- `))};class Ls extends be.Tooltip{}const Os=Ls.compose({baseName:"tooltip",baseClass:be.Tooltip,template:be.tooltipTemplate,styles:Bs});const Hs=(0,Za.cssPartial)`(((${At} + ${_t}) * 0.5 + 2) * ${qt})`;const Ns=(0,Za.css)`
- .expand-collapse-glyph {
- transform: rotate(0deg);
- }
- :host(.nested) .expand-collapse-button {
- left: var(
- --expand-collapse-button-nested-width,
- calc(
- (
- ${Hs} +
- ((${At} + ${_t}) * 1.25)
- ) * -1px
- )
- );
- }
- :host([selected])::after {
- left: calc(${Yt} * 1px);
- }
- :host([expanded]) > .positioning-region .expand-collapse-glyph {
- transform: rotate(90deg);
- }
- `;const Ps=(0,Za.css)`
- .expand-collapse-glyph {
- transform: rotate(180deg);
- }
- :host(.nested) .expand-collapse-button {
- right: var(
- --expand-collapse-button-nested-width,
- calc(
- (
- ${Hs} +
- ((${At} + ${_t}) * 1.25)
- ) * -1px
- )
- );
- }
- :host([selected])::after {
- right: calc(${Yt} * 1px);
- }
- :host([expanded]) > .positioning-region .expand-collapse-glyph {
- transform: rotate(90deg);
- }
- `;const Rs=be.DesignToken.create("tree-item-expand-collapse-hover").withDefault((e=>{const t=Gr.getValueFor(e);return t.evaluate(e,t.evaluate(e).hover).hover}));const Is=be.DesignToken.create("tree-item-expand-collapse-selected-hover").withDefault((e=>{const t=Br.getValueFor(e);const o=Gr.getValueFor(e);return o.evaluate(e,t.evaluate(e).rest).hover}));const As=(e,t)=>(0,Za.css)`
- /**
- * This animation exists because when tree item children are conditionally loaded
- * there is a visual bug where the DOM exists but styles have not yet been applied (essentially FOUC).
- * This subtle animation provides a ever so slight timing adjustment for loading that solves the issue.
- */
- @keyframes treeItemLoading {
- 0% {
- opacity: 0;
- }
- 100% {
- opacity: 1;
- }
- }
- ${(0,be.display)("block")} :host {
- contain: content;
- position: relative;
- outline: none;
- color: ${la};
- background: ${Er};
- cursor: pointer;
- font-family: ${It};
- --tree-item-nested-width: 0;
- }
- :host(:focus) > .positioning-region {
- outline: none;
- }
- :host(:focus) .content-region {
- outline: none;
- }
- :host(:${be.focusVisible}) .positioning-region {
- border-color: ${gr};
- box-shadow: 0 0 0 calc((${Yt} - ${Zt}) * 1px)
- ${gr} inset;
- color: ${la};
- }
- .positioning-region {
- display: flex;
- position: relative;
- box-sizing: border-box;
- background: ${Er};
- border: transparent calc(${Zt} * 1px) solid;
- border-radius: calc(${Et} * 1px);
- height: calc((${Ka} + 1) * 1px);
- }
- .positioning-region::before {
- content: '';
- display: block;
- width: var(--tree-item-nested-width);
- flex-shrink: 0;
- }
- :host(:not([disabled])) .positioning-region:hover {
- background: ${_r};
- }
- :host(:not([disabled])) .positioning-region:active {
- background: ${qr};
- }
- .content-region {
- display: inline-flex;
- align-items: center;
- white-space: nowrap;
- width: 100%;
- min-width: 0;
- height: calc(${Ka} * 1px);
- margin-inline-start: calc(${qt} * 2px + 8px);
- font-size: ${Jt};
- line-height: ${Kt};
- font-weight: 400;
- }
- .items {
- /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
- font-size: calc(1em + (${qt} + 16) * 1px);
- }
- .expand-collapse-button {
- background: none;
- border: none;
- outline: none;
- /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
- width: calc(${Hs} * 1px);
- height: calc(${Hs} * 1px);
- padding: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- cursor: pointer;
- margin-left: 6px;
- margin-right: 6px;
- }
- .expand-collapse-glyph {
- /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
- width: calc((16 + ${_t}) * 1px);
- height: calc((16 + ${_t}) * 1px);
- transition: transform 0.1s linear;
- pointer-events: none;
- fill: currentcolor;
- }
- .start,
- .end {
- display: flex;
- fill: currentcolor;
- }
- ::slotted(svg) {
- /* TODO: adaptive typography https://github.com/microsoft/fast/issues/2432 */
- width: 16px;
- height: 16px;
- /* Something like that would do if the typography is adaptive
- font-size: inherit;
- width: ${ro};
- height: ${ro};
- */
- }
- .start {
- /* TODO: horizontalSpacing https://github.com/microsoft/fast/issues/2766 */
- margin-inline-end: calc(${qt} * 2px + 2px);
- }
- .end {
- /* TODO: horizontalSpacing https://github.com/microsoft/fast/issues/2766 */
- margin-inline-start: calc(${qt} * 2px + 2px);
- }
- :host([expanded]) > .items {
- animation: treeItemLoading ease-in 10ms;
- animation-iteration-count: 1;
- animation-fill-mode: forwards;
- }
- :host([disabled]) .content-region {
- opacity: ${Xt};
- cursor: ${be.disabledCursor};
- }
- :host(.nested) .content-region {
- position: relative;
- /* Add left margin to collapse button size */
- margin-inline-start: calc(
- (
- ${Hs} +
- ((${At} + ${_t}) * 1.25)
- ) * 1px
- );
- }
- :host(.nested) .expand-collapse-button {
- position: absolute;
- }
- :host(.nested:not([disabled])) .expand-collapse-button:hover {
- background: ${Rs};
- }
- :host([selected]) .positioning-region {
- background: ${Lr};
- }
- :host([selected]:not([disabled])) .positioning-region:hover {
- background: ${Or};
- }
- :host([selected]:not([disabled])) .positioning-region:active {
- background: ${Hr};
- }
- :host([selected]:not([disabled])) .expand-collapse-button:hover {
- background: ${Is};
- }
- :host([selected])::after {
- /* The background needs to be calculated based on the selected background state
- for this control. We currently have no way of changing that, so setting to
- accent-foreground-rest for the time being */
- background: ${Vr};
- border-radius: calc(${Et} * 1px);
- content: '';
- display: block;
- position: absolute;
- top: calc((${Ka} / 4) * 1px);
- width: 3px;
- height: calc((${Ka} / 2) * 1px);
- }
- ::slotted(${e.tagFor(be.TreeItem)}) {
- --tree-item-nested-width: 1em;
- --expand-collapse-button-nested-width: calc(
- (
- ${Hs} +
- ((${At} + ${_t}) * 1.25)
- ) * -1px
- );
- }
- `.withBehaviors(new Zi(Ns,Ps),(0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host {
- forced-color-adjust: none;
- border-color: transparent;
- background: ${Ja.Field};
- color: ${Ja.FieldText};
- }
- :host .content-region .expand-collapse-glyph {
- fill: ${Ja.FieldText};
- }
- :host .positioning-region:hover,
- :host([selected]) .positioning-region {
- background: ${Ja.Highlight};
- }
- :host .positioning-region:hover .content-region,
- :host([selected]) .positioning-region .content-region {
- color: ${Ja.HighlightText};
- }
- :host .positioning-region:hover .content-region .expand-collapse-glyph,
- :host .positioning-region:hover .content-region .start,
- :host .positioning-region:hover .content-region .end,
- :host([selected]) .content-region .expand-collapse-glyph,
- :host([selected]) .content-region .start,
- :host([selected]) .content-region .end {
- fill: ${Ja.HighlightText};
- }
- :host([selected])::after {
- background: ${Ja.Field};
- }
- :host(:${be.focusVisible}) .positioning-region {
- border-color: ${Ja.FieldText};
- box-shadow: 0 0 0 2px inset ${Ja.Field};
- color: ${Ja.FieldText};
- }
- :host([disabled]) .content-region,
- :host([disabled]) .positioning-region:hover .content-region {
- opacity: 1;
- color: ${Ja.GrayText};
- }
- :host([disabled]) .content-region .expand-collapse-glyph,
- :host([disabled]) .content-region .start,
- :host([disabled]) .content-region .end,
- :host([disabled])
- .positioning-region:hover
- .content-region
- .expand-collapse-glyph,
- :host([disabled]) .positioning-region:hover .content-region .start,
- :host([disabled]) .positioning-region:hover .content-region .end {
- fill: ${Ja.GrayText};
- }
- :host([disabled]) .positioning-region:hover {
- background: ${Ja.Field};
- }
- .expand-collapse-glyph,
- .start,
- .end {
- fill: ${Ja.FieldText};
- }
- :host(.nested) .expand-collapse-button:hover {
- background: ${Ja.Field};
- }
- :host(.nested) .expand-collapse-button:hover .expand-collapse-glyph {
- fill: ${Ja.FieldText};
- }
- `));class Ms extends be.TreeItem{}const Gs=Ms.compose({baseName:"tree-item",baseClass:be.TreeItem,template:be.treeItemTemplate,styles:As,expandCollapseGlyph:`\n <svg\n viewBox="0 0 16 16"\n xmlns="http://www.w3.org/2000/svg"\n class="expand-collapse-glyph"\n >\n <path\n d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"\n />\n </svg>\n `});const Es=(e,t)=>(0,Za.css)`
- ${(0,be.display)("flex")} :host {
- flex-direction: column;
- align-items: stretch;
- min-width: fit-content;
- font-size: 0;
- }
- :host:focus-visible {
- outline: none;
- }
- `;class _s extends be.TreeView{handleClick(e){if(e.defaultPrevented){return}if(!(e.target instanceof Element)){return true}let t=e.target;while(t&&!(0,be.isTreeItemElement)(t)){t=t.parentElement;if(t===this){t=null}}if(t&&!t.disabled){t.selected=true}return}}const qs=_s.compose({baseName:"tree-view",baseClass:be.TreeView,template:be.treeViewTemplate,styles:Es});const Ws=(e,t)=>(0,Za.css)`
- .region {
- z-index: 1000;
- overflow: hidden;
- display: flex;
- font-family: ${It};
- font-size: ${Jt};
- }
- .loaded {
- opacity: 1;
- pointer-events: none;
- }
- .loading-display,
- .no-options-display {
- background: ${sr};
- width: 100%;
- min-height: calc(${Ka} * 1px);
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-items: center;
- padding: calc(${qt} * 1px);
- }
- .loading-progress {
- width: 42px;
- height: 42px;
- }
- .bottom {
- flex-direction: column;
- }
- .top {
- flex-direction: column-reverse;
- }
- `;const Us=(e,t)=>(0,Za.css)`
- :host {
- background: ${sr};
- --elevation: 11;
- /* TODO: a mechanism to manage z-index across components
- https://github.com/microsoft/fast/issues/3813 */
- z-index: 1000;
- display: flex;
- width: 100%;
- max-height: 100%;
- min-height: 58px;
- box-sizing: border-box;
- flex-direction: column;
- overflow-y: auto;
- overflow-x: hidden;
- pointer-events: auto;
- border-radius: calc(${Et} * 1px);
- padding: calc(${qt} * 1px) 0;
- border: calc(${Zt} * 1px) solid transparent;
- ${vn}
- }
- .suggestions-available-alert {
- height: 0;
- opacity: 0;
- overflow: hidden;
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host {
- background: ${Ja.Canvas};
- border-color: ${Ja.CanvasText};
- }
- `));const Xs=(e,t)=>(0,Za.css)`
- :host {
- display: flex;
- align-items: center;
- justify-items: center;
- font-family: ${It};
- border-radius: calc(${Et} * 1px);
- border: calc(${Yt} * 1px) solid transparent;
- box-sizing: border-box;
- background: ${Er};
- color: ${la};
- cursor: pointer;
- fill: currentcolor;
- font-size: ${Jt};
- min-height: calc(${Ka} * 1px);
- line-height: ${Kt};
- margin: 0 calc(${qt} * 1px);
- outline: none;
- overflow: hidden;
- padding: 0 calc(${qt} * 2.25px);
- user-select: none;
- white-space: nowrap;
- }
- :host(:${be.focusVisible}[role="listitem"]) {
- border-color: ${ta};
- background: ${Wr};
- }
- :host(:hover) {
- background: ${_r};
- }
- :host(:active) {
- background: ${qr};
- }
- :host([aria-selected='true']) {
- background: ${ur};
- color: ${mr};
- }
- :host([aria-selected='true']:hover) {
- background: ${hr};
- color: ${vr};
- }
- :host([aria-selected='true']:active) {
- background: ${pr};
- color: ${$r};
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host {
- border-color: transparent;
- forced-color-adjust: none;
- color: ${Ja.ButtonText};
- fill: currentcolor;
- }
- :host(:not([aria-selected='true']):hover),
- :host([aria-selected='true']) {
- background: ${Ja.Highlight};
- color: ${Ja.HighlightText};
- }
- :host([disabled]),
- :host([disabled]:not([aria-selected='true']):hover) {
- background: ${Ja.Canvas};
- color: ${Ja.GrayText};
- fill: currentcolor;
- opacity: 1;
- }
- `));const Zs=(e,t)=>(0,Za.css)`
- :host {
- display: flex;
- flex-direction: row;
- column-gap: calc(${qt} * 1px);
- row-gap: calc(${qt} * 1px);
- flex-wrap: wrap;
- }
- ::slotted([role="combobox"]) {
- min-width: 260px;
- width: auto;
- box-sizing: border-box;
- color: ${la};
- background: ${Rr};
- border-radius: calc(${Et} * 1px);
- border: calc(${Zt} * 1px) solid ${ur};
- height: calc(${Ka} * 1px);
- font-family: ${It};
- outline: none;
- user-select: none;
- font-size: ${Jt};
- line-height: ${Kt};
- padding: 0 calc(${qt} * 2px + 1px);
- }
- ::slotted([role="combobox"]:active) { {
- background: ${Ir};
- border-color: ${pr};
- }
- ::slotted([role="combobox"]:focus-within) {
- border-color: ${ta};
- box-shadow: 0 0 0 1px ${ta} inset;
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- ::slotted([role='combobox']:active) {
- background: ${Ja.Field};
- border-color: ${Ja.Highlight};
- }
- ::slotted([role='combobox']:focus-within) {
- border-color: ${Ja.Highlight};
- box-shadow: 0 0 0 1px ${Ja.Highlight} inset;
- }
- ::slotted(input:placeholder) {
- color: ${Ja.GrayText};
- }
- `));const Ys=(e,t)=>(0,Za.css)`
- :host {
- display: flex;
- align-items: center;
- justify-items: center;
- font-family: ${It};
- border-radius: calc(${Et} * 1px);
- border: calc(${Yt} * 1px) solid transparent;
- box-sizing: border-box;
- background: ${Er};
- color: ${la};
- cursor: pointer;
- fill: currentcolor;
- font-size: ${Jt};
- height: calc(${Ka} * 1px);
- line-height: ${Kt};
- outline: none;
- overflow: hidden;
- padding: 0 calc(${qt} * 2.25px);
- user-select: none;
- white-space: nowrap;
- }
- :host(:hover) {
- background: ${_r};
- }
- :host(:active) {
- background: ${qr};
- }
- :host(:${be.focusVisible}) {
- background: ${Wr};
- border-color: ${ta};
- }
- :host([aria-selected='true']) {
- background: ${ur};
- color: ${$r};
- }
- `.withBehaviors((0,be.forcedColorsStylesheetBehavior)((0,Za.css)`
- :host {
- border-color: transparent;
- forced-color-adjust: none;
- color: ${Ja.ButtonText};
- fill: currentcolor;
- }
- :host(:not([aria-selected='true']):hover),
- :host([aria-selected='true']) {
- background: ${Ja.Highlight};
- color: ${Ja.HighlightText};
- }
- :host([disabled]),
- :host([disabled]:not([aria-selected='true']):hover) {
- background: ${Ja.Canvas};
- color: ${Ja.GrayText};
- fill: currentcolor;
- opacity: 1;
- }
- `));class Js extends be.Picker{}const Ks=Js.compose({baseName:"draft-picker",baseClass:be.Picker,template:be.pickerTemplate,styles:Ws,shadowOptions:{}});class Qs extends be.PickerMenu{connectedCallback(){sr.setValueFor(this,Qo);super.connectedCallback()}}const ec=Qs.compose({baseName:"draft-picker-menu",baseClass:be.PickerMenu,template:be.pickerMenuTemplate,styles:Us});class tc extends be.PickerMenuOption{}const oc=tc.compose({baseName:"draft-picker-menu-option",baseClass:be.PickerMenuOption,template:be.pickerMenuOptionTemplate,styles:Xs});class rc extends be.PickerList{}const ac=rc.compose({baseName:"draft-picker-list",baseClass:be.PickerList,template:be.pickerListTemplate,styles:Zs});class ic extends be.PickerListItem{}const nc=ic.compose({baseName:"draft-picker-list-item",baseClass:be.PickerListItem,template:be.pickerListItemTemplate,styles:Ys});const lc={jpAccordion:ri,jpAccordionItem:ti,jpAnchor:qi,jpAnchoredRegion:Xi,jpAvatar:on,jpBadge:nn,jpBreadcrumb:cn,jpBreadcrumbItem:hn,jpButton:bn,jpCard:yn,jpCheckbox:Cn,jpCombobox:jn,jpDataGrid:In,jpDataGridCell:Hn,jpDataGridRow:Pn,jpDateField:Zn,jpDesignSystemProvider:ol,jpDialog:il,jpDisclosure:sl,jpDivider:ul,jpListbox:pl,jpMenu:fl,jpMenuItem:$l,jpNumberField:wl,jpOption:Cl,jpPicker:Ks,jpPickerList:ac,jpPickerListItem:nc,jpPickerMenu:ec,jpPickerMenuOption:oc,jpProgress:Vl,jpProgressRing:zl,jpRadio:Hl,jpRadioGroup:Rl,jpSearch:El,jpSelect:ql,jpSkeleton:Xl,jpSlider:Ql,jpSliderLabel:is,jpSwitch:ss,jpTab:gs,jpTabPanel:us,jpTabs:ms,jpTextArea:xs,jpTextField:ks,jpToolbar:zs,jpTooltip:Os,jpTreeItem:Gs,jpTreeView:qs,register(e,...t){if(!e){return}for(const o in this){if(o==="register"){continue}this[o]().register(e,...t)}}};function sc(e){return be.DesignSystem.getOrCreate(e).withPrefix("jp")}}}]);
|