rari 0.17.0 → 0.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- const e=function(e={}){throw Error("Google font imports from `rari/font/google` must be compiled by the rari Vite plugin. Add `rari()` to your Vite config, and pass a static options object.")},t=e,n=e,r=e,i=e,a=e,o=e,s=e,c=e,l=e,u=e,d=e,f=e,p=e,m=e,h=e,g=e,_=e,v=e,y=e,b=e,x=e,S=e,C=e,w=e,T=e,E=e,D=e,O=e,k=e,A=e,j=e,M=e,N=e,P=e,F=e,I=e,L=e,R=e,z=e,B=e,V=e,H=e,U=e,W=e,G=e,K=e,q=e,J=e,Y=e,X=e,Z=e,Q=e,$=e,ee=e,te=e,ne=e,re=e,ie=e,ae=e,oe=e,se=e,ce=e,le=e,ue=e,de=e,fe=e,pe=e,me=e,he=e,ge=e,_e=e,ve=e,ye=e,be=e,xe=e,Se=e,Ce=e,we=e,Te=e,Ee=e,De=e,Oe=e,ke=e,Ae=e,je=e,Me=e,Ne=e,Pe=e,Fe=e,Ie=e,Le=e,Re=e,ze=e,Be=e,Ve=e,He=e,Ue=e,We=e,Ge=e,Ke=e,qe=e,Je=e,Ye=e,Xe=e,Ze=e,Qe=e,$e=e,et=e,tt=e,nt=e,rt=e,it=e,at=e,ot=e,st=e,ct=e,lt=e,ut=e,dt=e,ft=e,pt=e,mt=e,ht=e,gt=e,_t=e,vt=e,yt=e,bt=e,xt=e,St=e,Ct=e,wt=e,Tt=e,Et=e,Dt=e,Ot=e,kt=e,At=e,jt=e,Mt=e,Nt=e,Pt=e,Ft=e,It=e,Lt=e,Rt=e,zt=e,Bt=e,Vt=e,Ht=e,Ut=e,Wt=e,Gt=e,Kt=e,qt=e,Jt=e,Yt=e,Xt=e,Zt=e,Qt=e,$t=e,en=e,tn=e,nn=e,rn=e,an=e,on=e,sn=e,cn=e,ln=e,un=e,dn=e,fn=e,pn=e,mn=e,hn=e,gn=e,_n=e,v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e,GP=e,KP=e,qP=e,JP=e,YP=e,XP=e,ZP=e,QP=e,$P=e,eF=e,tF=e,nF=e,rF=e,iF=e,aF=e;export{t as ABeeZee,d as ADLaM_Display,Ke as AR_One_Sans,n as Abel,r as Abhaya_Libre,i as Aboreto,a as Abril_Fatface,o as Abyssinica_SIL,s as Aclonica,c as Acme,l as Actor,u as Adamina,f as Advent_Pro,p as Afacad,m as Afacad_Flux,h as Agbalumo,g as Agdasima,_ as Agu_Display,v as Aguafina_Script,y as Akatab,b as Akaya_Kanadaka,x as Akaya_Telivigala,S as Akronim,C as Akshar,w as Akt,T as Aladin,E as Alan_Sans,D as Alata,O as Alatsi,k as Albert_Sans,A as Aldrich,j as Alef,M as Alegreya,F as Alegreya_SC,N as Alegreya_Sans,P as Alegreya_Sans_SC,I as Aleo,L as Alex_Brush,R as Alexandria,z as Alfa_Slab_One,B as Alice,V as Alien_Block,H as Alike,U as Alike_Angular,W as Alkalami,G as Alkatra,K as Allan,q as Allerta,J as Allerta_Stencil,Y as Allison,X as Allkin,Z as Allura,Q as Almarai,$ as Almendra,ee as Almendra_Display,te as Almendra_SC,ne as Alumni_Sans,re as Alumni_Sans_Collegiate_One,ie as Alumni_Sans_Inline_One,ae as Alumni_Sans_Pinstripe,oe as Alumni_Sans_SC,se as Alyamama,ce as Amarante,le as Amaranth,ue as Amarna,de as Amatic_SC,fe as Amethysta,pe as Amiko,me as Amiri,he as Amiri_Quran,ge as Amita,_e as Anaheim,ve as Ancizar_Sans,ye as Ancizar_Serif,be as Andada_Pro,xe as Andika,Se as Anek_Bangla,Ce as Anek_Devanagari,we as Anek_Gujarati,Te as Anek_Gurmukhi,Ee as Anek_Kannada,De as Anek_Latin,Oe as Anek_Malayalam,ke as Anek_Odia,Ae as Anek_Tamil,je as Anek_Telugu,Me as Angkor,Ne as Annapurna_SIL,Pe as Annie_Use_Your_Telescope,Fe as Anonymous_Pro,Ie as Anta,Le as Antic,Re as Antic_Didone,ze as Antic_Slab,Be as Anton,Ve as Anton_SC,He as Antonio,Ue as Anuphan,We as Anybody,Ge as Aoboshi_One,qe as Arapey,Je as Arbutus,Ye as Arbutus_Slab,Xe as Architects_Daughter,Ze as Archivo,Qe as Archivo_Black,$e as Archivo_Narrow,et as Are_You_Serious,tt as Aref_Ruqaa,nt as Aref_Ruqaa_Ink,rt as Arima,it as Arimo,at as Arizonia,ot as Armata,st as Arsenal,ct as Arsenal_SC,lt as Artifika,ut as Arvo,dt as Arya,ft as Asap,pt as Asap_Condensed,mt as Asap_Sharp,ht as Asar,gt as Asimovian,_t as Asset,vt as Assistant,yt as Asta_Sans,bt as Astloch,xt as Asul,St as Athiti,Ct as Atkinson_Hyperlegible,wt as Atkinson_Hyperlegible_Mono,Tt as Atkinson_Hyperlegible_Next,Et as Atma,Dt as Atomic_Age,Ot as Aubrey,kt as Audiowide,At as Autour_One,jt as Average,Mt as Average_Sans,Nt as Averia_Gruesa_Libre,Pt as Averia_Libre,Ft as Averia_Sans_Libre,It as Averia_Serif_Libre,Lt as Azeret_Mono,Rt as B612,zt as B612_Mono,xn as BBH_Bartle,Sn as BBH_Bogle,Cn as BBH_Hegarty,_r as BIZ_UDGothic,vr as BIZ_UDMincho,yr as BIZ_UDPGothic,br as BIZ_UDPMincho,xr as BJCree,Bt as Babylonica,Vt as Bacasime_Antique,Ht as Bad_Script,Ut as Badeen_Display,Wt as Bagel_Fat_One,Gt as Bahiana,Kt as Bahianita,qt as Bai_Jamjuree,Jt as Bakbak_One,Yt as Ballet,Xt as Baloo_2,Zt as Baloo_Bhai_2,Qt as Baloo_Bhaijaan_2,$t as Baloo_Bhaina_2,en as Baloo_Chettan_2,tn as Baloo_Da_2,nn as Baloo_Paaji_2,rn as Baloo_Tamma_2,an as Baloo_Tammudu_2,on as Baloo_Thambi_2,sn as Balsamiq_Sans,cn as Balthazar,ln as Bangers,un as Barlow,dn as Barlow_Condensed,fn as Barlow_Semi_Condensed,pn as Barriecito,mn as Barrio,hn as Basic,gn as Baskervville,_n as Baskervville_SC,vn as Battambang,yn as Baumans,bn as Bayon,wn as Be_Vietnam_Pro,Tn as Beau_Rivage,En as Bebas_Neue,Dn as Beiruti,On as Belanosima,kn as Belgrano,An as Bellefair,jn as Belleza,Mn as Bellota,Nn as Bellota_Text,Pn as BenchNine,Fn as Benne,In as Bentham,Ln as Berkshire_Swash,Rn as Besley,zn as Betania_Patmos,Bn as Betania_Patmos_GDL,Vn as Betania_Patmos_In,Hn as Betania_Patmos_In_GDL,Un as Beth_Ellen,Wn as Bevan,Gn as BhuTuka_Expanded_One,Kn as Big_Shoulders,qn as Big_Shoulders_Inline,Jn as Big_Shoulders_Stencil,Yn as Bigelow_Rules,Xn as Bigshot_One,Zn as Bilbo,Qn as Bilbo_Swash_Caps,$n as BioRhyme,er as BioRhyme_Expanded,tr as Birthstone,nr as Birthstone_Bounce,rr as Biryani,ir as Bitcount,ar as Bitcount_Grid_Double,or as Bitcount_Grid_Double_Ink,sr as Bitcount_Grid_Single,cr as Bitcount_Grid_Single_Ink,lr as Bitcount_Ink,ur as Bitcount_Prop_Double,dr as Bitcount_Prop_Double_Ink,fr as Bitcount_Prop_Single,pr as Bitcount_Prop_Single_Ink,mr as Bitcount_Single,hr as Bitcount_Single_Ink,gr as Bitter,Sr as Black_And_White_Picture,Cr as Black_Han_Sans,wr as Black_Ops_One,Tr as Blaka,Er as Blaka_Hollow,Dr as Blaka_Ink,Or as Blinker,kr as Bodoni_Moda,Ar as Bodoni_Moda_SC,jr as Bokor,Mr as Boldonse,Nr as Bona_Nova,Pr as Bona_Nova_SC,Fr as Bonbon,Ir as Bonheur_Royale,Lr as Boogaloo,Rr as Borel,zr as Bowlby_One,Br as Bowlby_One_SC,Vr as Bpmf_Huninn,Hr as Bpmf_Iansui,Ur as Bpmf_Zihi_Kai_Std,Wr as Braah_One,Gr as Brawler,Kr as Bree_Serif,qr as Bricolage_Grotesque,Jr as Bruno_Ace,Yr as Bruno_Ace_SC,Xr as Brygada_1918,Zr as Bubblegum_Sans,Qr as Bubbler_One,$r as Buda,ei as Buenard,ti as Bungee,ni as Bungee_Hairline,ri as Bungee_Inline,ii as Bungee_Outline,ai as Bungee_Shade,oi as Bungee_Spice,si as Bungee_Tint,ci as Butcherman,li as Butterfly_Kids,ui as Bytesized,di as Caacupe_One,fi as Cabin,pi as Cabin_Condensed,mi as Cabin_Sketch,hi as Cactus_Classical_Serif,gi as Caesar_Dressing,_i as Cagliostro,vi as Cairo,yi as Cairo_Play,bi as Cal_Sans,xi as Caladea,Si as Calistoga,Ci as Calligraffitti,wi as Cambay,Ti as Cambo,Ei as Candal,Di as Cantarell,Oi as Cantata_One,ki as Cantora_One,Ai as Caprasimo,ji as Capriola,Mi as Caramel,Ni as Carattere,Pi as Cardo,Fi as Carlito,Ii as Carme,Li as Carrois_Gothic,Ri as Carrois_Gothic_SC,zi as Carter_One,Bi as Cascadia_Code,Vi as Cascadia_Mono,Hi as Castoro,Ui as Castoro_Titling,Wi as Catamaran,Gi as Caudex,Ki as Cause,qi as Caveat,Ji as Caveat_Brush,Yi as Cedarville_Cursive,Xi as Ceviche_One,Zi as Chakra_Petch,Qi as Changa,$i as Changa_One,ea as Chango,ta as Charis_SIL,na as Charm,ra as Charmonman,ia as Chathura,aa as Chau_Philomene_One,oa as Chela_One,sa as Chelsea_Market,ca as Chenla,la as Cherish,ua as Cherry_Bomb_One,da as Cherry_Cream_Soda,fa as Cherry_Swash,pa as Chewy,ma as Chicle,ha as Chilanka,ga as Chiron_GoRound_TC,_a as Chiron_Hei_HK,va as Chiron_Sung_HK,ya as Chivo,ba as Chivo_Mono,xa as Chocolate_Classical_Sans,Sa as Chokokutai,Ca as Chonburi,wa as Cinzel,Ta as Cinzel_Decorative,Ea as Clicker_Script,Da as Climate_Crisis,Oa as Coda,ka as Codystar,Aa as Coiny,ja as Combo,Ma as Comfortaa,Na as Comforter,Pa as Comforter_Brush,Fa as Comic_Neue,Ia as Comic_Relief,La as Coming_Soon,Ra as Comme,za as Commissioner,Ba as Concert_One,Va as Condiment,Ha as Content,Ua as Contrail_One,Wa as Convergence,Ga as Cookie,Ka as Copse,qa as Coral_Pixels,Ja as Corben,Ya as Corinthia,Xa as Cormorant,Za as Cormorant_Garamond,Qa as Cormorant_Infant,$a as Cormorant_SC,eo as Cormorant_Unicase,to as Cormorant_Upright,no as Cossette_Texte,ro as Cossette_Titre,io as Courgette,ao as Courier_Prime,oo as Cousine,so as Coustard,co as Covered_By_Your_Grace,lo as Crafty_Girls,uo as Creepster,fo as Crete_Round,po as Crimson_Pro,mo as Crimson_Text,ho as Croissant_One,go as Crushed,_o as Cuprum,vo as Cute_Font,yo as Cutive,bo as Cutive_Mono,Ko as DM_Mono,qo as DM_Sans,Jo as DM_Serif_Display,Yo as DM_Serif_Text,xo as Dai_Banna_SIL,So as Damion,Co as Dancing_Script,wo as Danfo,To as Dangrek,Eo as Darker_Grotesque,Do as Darumadrop_One,Oo as Datatype,ko as David_Libre,Ao as Dawning_of_a_New_Day,jo as Days_One,Mo as Dekko,No as Dela_Gothic_One,Po as Delicious_Handrawn,Fo as Delius,Io as Delius_Swash_Caps,Lo as Delius_Unicase,Ro as Della_Respira,zo as Denk_One,Bo as Devonshire,Vo as Dhurjati,Ho as Didact_Gothic,Uo as Diphylleia,Wo as Diplomata,Go as Diplomata_SC,Xo as Do_Hyeon,Zo as Dokdo,Qo as Domine,$o as Donegal_One,es as Dongle,ts as Doppio_One,ns as Dorsa,rs as Dosis,is as DotGothic16,as as Doto,os as Dr_Sugiyama,ss as Duru_Sans,ls as DynaPuff,cs as Dynalight,ps as EB_Garamond,us as Eagle_Lake,ds as East_Sea_Dokdo,fs as Eater,ms as Economica,hs as Eczar,gs as Edu_AU_VIC_WA_NT_Arrows,_s as Edu_AU_VIC_WA_NT_Dots,vs as Edu_AU_VIC_WA_NT_Guides,ys as Edu_AU_VIC_WA_NT_Hand,bs as Edu_AU_VIC_WA_NT_Pre,xs as Edu_NSW_ACT_Cursive,Ss as Edu_NSW_ACT_Foundation,Cs as Edu_NSW_ACT_Hand_Pre,ws as Edu_QLD_Beginner,Ts as Edu_QLD_Hand,Es as Edu_SA_Beginner,Ds as Edu_SA_Hand,Os as Edu_TAS_Beginner,ks as Edu_VIC_WA_NT_Beginner,As as Edu_VIC_WA_NT_Hand,js as Edu_VIC_WA_NT_Hand_Pre,Ms as El_Messiri,Ns as Electrolize,Ps as Elms_Sans,Fs as Elsie,Is as Elsie_Swash_Caps,Ls as Emblema_One,Rs as Emilys_Candy,zs as Encode_Sans,Bs as Encode_Sans_Condensed,Vs as Encode_Sans_Expanded,Hs as Encode_Sans_SC,Us as Encode_Sans_Semi_Condensed,Ws as Encode_Sans_Semi_Expanded,Gs as Engagement,Ks as Englebert,qs as Enriqueta,Js as Ephesis,Ys as Epilogue,Xs as Epunda_Sans,Zs as Epunda_Slab,Qs as Erica_One,$s as Esteban,ec as Estedad,tc as Estonia,nc as Euphoria_Script,rc as Ewert,ic as Exile,ac as Exo,oc as Exo_2,sc as Expletus_Sans,cc as Explora,lc as Faculty_Glyphic,uc as Fahkwang,dc as Familjen_Grotesk,fc as Fanwood_Text,pc as Farro,mc as Farsan,hc as Fascinate,gc as Fascinate_Inline,_c as Faster_One,vc as Fasthand,yc as Fauna_One,bc as Faustina,xc as Federant,Sc as Federo,Cc as Felipa,wc as Fenix,Tc as Festive,Ec as Figtree,Dc as Finger_Paint,Oc as Finlandica_Headline,kc as Finlandica_Text,Ac as Fira_Code,jc as Fira_Mono,Mc as Fira_Sans,Nc as Fira_Sans_Condensed,Pc as Fira_Sans_Extra_Condensed,Fc as Fjalla_One,Ic as Fjord_One,Lc as Flamenco,Rc as Flavors,zc as Fleur_De_Leah,Bc as Flow_Block,Vc as Flow_Circular,Hc as Flow_Rounded,Uc as Foldit,Wc as Fondamento,Gc as Fontdiner_Swanky,Kc as Forum,qc as Fragment_Mono,Jc as Francois_One,Yc as Frank_Ruhl_Libre,Xc as Fraunces,Zc as Freckle_Face,Qc as Fredericka_the_Great,$c as Fredoka,el as Freehand,tl as Freeman,nl as Fresca,rl as Frijole,il as Fruktur,al as Fugaz_One,ol as Fuggles,sl as Funnel_Display,cl as Funnel_Sans,ll as Fustat,ul as Fuzzy_Bubbles,Bl as GFS_Didot,Vl as GFS_Neohellenic,dl as Ga_Maamli,fl as Gabarito,pl as Gabriela,ml as Gaegu,hl as Gafata,gl as Gajraj_One,_l as Galada,vl as Galdeano,yl as Galindo,bl as Gamja_Flower,xl as Gantari,Sl as Gasoek_One,Cl as Gayathri,wl as Geist,Tl as Geist_Mono,El as Geist_Pixel,Dl as Gelasio,Ol as Gemunu_Libre,kl as Genos,Al as Gentium_Book_Plus,jl as Gentium_Plus,Ml as Geo,Nl as Geologica,Pl as Geom,Fl as Geomini,Il as Georama,Ll as Geostar,Rl as Geostar_Fill,zl as Germania_One,Hl as Gideon_Roman,Ul as Gidole,Wl as Gidugu,Gl as Gilda_Display,Kl as Girassol,ql as Give_You_Glory,Jl as Glass_Antiqua,Yl as Glegoo,Xl as Gloock,Zl as Gloria_Hallelujah,Ql as Glory,$l as Gluten,eu as Goblin_One,tu as Gochi_Hand,nu as Goldman,ru as Golos_Text,iu as Google_Sans,au as Google_Sans_Code,ou as Google_Sans_Flex,su as Gorditas,cu as Gothic_A1,lu as Gotu,uu as Goudy_Bookletter_1911,du as Gowun_Batang,fu as Gowun_Dodum,pu as Graduate,mu as Grand_Hotel,hu as Grandiflora_One,gu as Grandstander,_u as Grape_Nuts,vu as Gravitas_One,yu as Great_Vibes,bu as Grechen_Fuemen,xu as Grenze,Su as Grenze_Gotisch,Cu as Grey_Qo,wu as Griffy,Tu as Gruppo,Eu as Gudea,Du as Gugi,Ou as Gulzar,ku as Gupter,Au as Gurajada,ju as Gveret_Levin,Mu as Gwendolyn,Nu as Habibi,Pu as Hachi_Maru_Pop,Fu as Hahmlet,Iu as Halant,Lu as Hammersmith_One,Ru as Hanalei,zu as Hanalei_Fill,Bu as Handjet,Vu as Handlee,Hu as Hanken_Grotesk,Uu as Hanuman,Wu as Happy_Monkey,Gu as Harmattan,Ku as Headland_One,qu as Hedvig_Letters_Sans,Ju as Hedvig_Letters_Serif,Yu as Heebo,Xu as Henny_Penny,Zu as Hepta_Slab,Qu as Herr_Von_Muellerhoff,$u as Hi_Melody,ed as Hibur_Mono,td as Hina_Mincho,nd as Hind,rd as Hind_Guntur,id as Hind_Madurai,ad as Hind_Mysuru,od as Hind_Siliguri,sd as Hind_Vadodara,cd as Holtwood_One_SC,ld as Homemade_Apple,ud as Homenaje,dd as Honk,fd as Host_Grotesk,pd as Hubballi,md as Hubot_Sans,hd as Huninn,gd as Hurricane,yd as IBM_Plex_Mono,bd as IBM_Plex_Sans,xd as IBM_Plex_Sans_Arabic,Sd as IBM_Plex_Sans_Condensed,Cd as IBM_Plex_Sans_Devanagari,wd as IBM_Plex_Sans_Hebrew,Td as IBM_Plex_Sans_JP,Ed as IBM_Plex_Sans_KR,Dd as IBM_Plex_Sans_Thai,Od as IBM_Plex_Sans_Thai_Looped,kd as IBM_Plex_Serif,Fd as IM_Fell_DW_Pica,Id as IM_Fell_DW_Pica_SC,Nd as IM_Fell_Double_Pica,Pd as IM_Fell_Double_Pica_SC,Ld as IM_Fell_English,Rd as IM_Fell_English_SC,zd as IM_Fell_French_Canon,Bd as IM_Fell_French_Canon_SC,Vd as IM_Fell_Great_Primer,Hd as IM_Fell_Great_Primer_SC,_d as Iansui,vd as Ibarra_Real_Nova,Ad as Iceberg,jd as Iceland,Md as Idiqlat,Ud as Imbue,Wd as Imperial_Script,Gd as Imprima,Kd as Inclusive_Sans,qd as Inconsolata,Jd as Inder,Yd as Indie_Flower,Xd as Ingrid_Darling,Zd as Inika,Qd as Inknut_Antiqua,$d as Inria_Sans,ef as Inria_Serif,tf as Inspiration,nf as Instrument_Sans,rf as Instrument_Serif,af as Intel_One_Mono,of as Inter,sf as Inter_Tight,cf as Iosevka_Charon,lf as Iosevka_Charon_Mono,uf as Irish_Grover,df as Island_Moments,ff as Istok_Web,pf as Italiana,mf as Italianno,hf as Itim,gf as Jacquard_12,_f as Jacquard_12_Charted,vf as Jacquard_24,yf as Jacquard_24_Charted,bf as Jacquarda_Bastarda_9,xf as Jacquarda_Bastarda_9_Charted,Sf as Jacques_Francois,Cf as Jacques_Francois_Shadow,wf as Jaini,Tf as Jaini_Purva,Ef as Jaldi,Df as Jaro,Of as Jersey_10,kf as Jersey_10_Charted,Af as Jersey_15,jf as Jersey_15_Charted,Mf as Jersey_20,Nf as Jersey_20_Charted,Pf as Jersey_25,Ff as Jersey_25_Charted,If as JetBrains_Mono,Lf as Jim_Nightshade,Rf as Joan,zf as Jockey_One,Bf as Jolly_Lodger,Vf as Jomhuria,Hf as Jomolhari,Uf as Josefin_Sans,Wf as Josefin_Slab,Gf as Jost,Kf as Joti_One,qf as Jua,Jf as Judson,Yf as Julee,Xf as Julius_Sans_One,Zf as Junge,Qf as Jura,$f as Just_Another_Hand,ep as Just_Me_Again_Down_Here,tp as K2D,np as Kablammo,rp as Kadwa,ip as Kaisei_Decol,ap as Kaisei_HarunoUmi,op as Kaisei_Opti,sp as Kaisei_Tokumin,cp as Kalam,lp as Kalnia,up as Kalnia_Glaze,dp as Kameron,fp as Kanchenjunga,pp as Kanit,mp as Kantumruy_Pro,hp as Kapakana,gp as Karantina,_p as Karla,vp as Karla_Tamil_Inclined,yp as Karla_Tamil_Upright,bp as Karma,xp as Katibeh,Sp as Kaushan_Script,Cp as Kavivanar,wp as Kavoon,Tp as Kay_Pho_Du,Ep as Kdam_Thmor_Pro,Dp as Keania_One,Op as Kedebideri,kp as Kelly_Slab,Ap as Kenia,jp as Khand,Mp as Khmer,Np as Khula,Pp as Kings,Fp as Kirang_Haerang,Ip as Kite_One,Lp as Kiwi_Maru,Rp as Klee_One,zp as Knewave,Up as KoHo,Bp as Kodchasan,Vp as Kode_Mono,Hp as Koh_Santepheap,Wp as Kolker_Brush,Gp as Konkhmer_Sleokchher,Kp as Kosugi,qp as Kosugi_Maru,Jp as Kotta_One,Yp as Koulen,Xp as Kranky,Zp as Kreon,Qp as Kristi,$p as Krona_One,em as Krub,tm as Kufam,nm as Kulim_Park,rm as Kumar_One,im as Kumar_One_Outline,am as Kumbh_Sans,om as Kurale,ah as LINE_Seed_JP,Mh as LXGW_Marker_Gothic,Nh as LXGW_WenKai_Mono_TC,Ph as LXGW_WenKai_TC,sm as La_Belle_Aurore,cm as Labrada,lm as Lacquer,um as Laila,dm as Lakki_Reddy,fm as Lalezar,pm as Lancelot,mm as Langar,hm as Lateef,gm as Lato,_m as Lavishly_Yours,vm as League_Gothic,ym as League_Script,bm as League_Spartan,xm as Leckerli_One,Sm as Ledger,Cm as Lekton,wm as Lemon,Tm as Lemonada,Em as Lexend,Dm as Lexend_Deca,Om as Lexend_Exa,km as Lexend_Giga,Am as Lexend_Mega,jm as Lexend_Peta,Mm as Lexend_Tera,Nm as Lexend_Zetta,Pm as Libertinus_Keyboard,Fm as Libertinus_Math,Im as Libertinus_Mono,Lm as Libertinus_Sans,Rm as Libertinus_Serif,zm as Libertinus_Serif_Display,Bm as Libre_Barcode_128,Vm as Libre_Barcode_128_Text,Hm as Libre_Barcode_39,Um as Libre_Barcode_39_Extended,Wm as Libre_Barcode_39_Extended_Text,Gm as Libre_Barcode_39_Text,Km as Libre_Barcode_EAN13_Text,qm as Libre_Baskerville,Jm as Libre_Bodoni,Ym as Libre_Caslon_Display,Xm as Libre_Caslon_Text,Zm as Libre_Franklin,Qm as Licorice,$m as Life_Savers,eh as Lilex,th as Lilita_One,nh as Lily_Script_One,rh as Limelight,ih as Linden_Hill,oh as Linefont,sh as Lisu_Bosa,ch as Liter,lh as Literata,uh as Liu_Jian_Mao_Cao,dh as Livvic,fh as Lobster,ph as Lobster_Two,mh as Londrina_Outline,hh as Londrina_Shadow,gh as Londrina_Sketch,_h as Londrina_Solid,vh as Long_Cang,yh as Lora,bh as Love_Light,xh as Love_Ya_Like_A_Sister,Sh as Loved_by_the_King,Ch as Lovers_Quarrel,wh as Luckiest_Guy,Th as Lugrasimo,Eh as Lumanosimo,Dh as Lunasima,Oh as Lusitana,kh as Lustria,Ah as Luxurious_Roman,jh as Luxurious_Script,Fh as M_PLUS_1,Ih as M_PLUS_1_Code,Lh as M_PLUS_1p,Rh as M_PLUS_2,zh as M_PLUS_Code_Latin,Bh as M_PLUS_Rounded_1c,Vh as M_PLUS_U,Hh as Ma_Shan_Zheng,Uh as Macondo,Wh as Macondo_Swash_Caps,Gh as Mada,Kh as Madimi_One,qh as Magra,Jh as Maiden_Orange,Yh as Maitree,Xh as Major_Mono_Display,Zh as Mako,Qh as Mali,$h as Mallanna,eg as Maname,tg as Mandali,ng as Manjari,rg as Manrope,ig as Mansalva,ag as Manuale,og as Manufacturing_Consent,sg as Marcellus,cg as Marcellus_SC,lg as Marck_Script,ug as Margarine,dg as Marhey,fg as Markazi_Text,pg as Marko_One,mg as Marmelad,hg as Martel,gg as Martel_Sans,_g as Martian_Mono,vg as Marvel,yg as Matangi,bg as Mate,xg as Mate_SC,Sg as Matemasie,Cg as Maven_Pro,wg as McLaren,Tg as Mea_Culpa,Eg as Meddon,Dg as MedievalSharp,Og as Medula_One,kg as Meera_Inimai,Ag as Megrim,jg as Meie_Script,Mg as Menbere,Ng as Meow_Script,Pg as Merienda,Fg as Merriweather,Ig as Merriweather_Sans,Lg as Metal,Rg as Metal_Mania,zg as Metamorphous,Bg as Metrophobic,Vg as Michroma,Hg as Micro_5,Ug as Micro_5_Charted,Wg as Milonga,Gg as Miltonian,Kg as Miltonian_Tattoo,qg as Mina,Jg as Mingzat,Yg as Miniver,Xg as Miranda_Sans,Zg as Miriam_Libre,Qg as Mirza,$g as Miss_Fajardose,e_ as Mitr,t_ as Mochiy_Pop_One,n_ as Mochiy_Pop_P_One,r_ as Modak,i_ as Modern_Antiqua,a_ as Moderustic,o_ as Mogra,s_ as Mohave,c_ as Moirai_One,l_ as Molengo,u_ as Molle,d_ as Momo_Signature,f_ as Momo_Trust_Display,p_ as Momo_Trust_Sans,m_ as Mona_Sans,h_ as Monda,g_ as Monofett,__ as Monomakh,v_ as Monomaniac_One,y_ as Monoton,b_ as Monsieur_La_Doulaise,x_ as Montaga,S_ as Montagu_Slab,C_ as MonteCarlo,w_ as Montenegrin_Gothic_One,T_ as Montez,E_ as Montserrat,D_ as Montserrat_Alternates,O_ as Montserrat_Underline,k_ as Moo_Lah_Lah,A_ as Mooli,j_ as Moon_Dance,M_ as Moul,N_ as Moulpali,P_ as Mountains_of_Christmas,F_ as Mouse_Memoirs,I_ as Mozilla_Headline,L_ as Mozilla_Text,R_ as Mr_Bedfort,z_ as Mr_Dafoe,B_ as Mr_De_Haviland,V_ as Mrs_Saint_Delafield,H_ as Mrs_Sheppards,U_ as Ms_Madi,W_ as Mukta,G_ as Mukta_Mahee,K_ as Mukta_Malar,q_ as Mukta_Vaani,J_ as Mulish,Y_ as Murecho,X_ as MuseoModerno,Z_ as My_Soul,Q_ as Mynerve,$_ as Mystery_Quest,PS as NTR,ev as Nabla,tv as Namdhinggo,nv as Nanum_Brush_Script,rv as Nanum_Gothic,iv as Nanum_Gothic_Coding,av as Nanum_Myeongjo,ov as Nanum_Pen_Script,sv as Narnoor,cv as Nata_Sans,lv as National_Park,uv as Neonderthaw,dv as Nerko_One,fv as Neucha,pv as Neuton,mv as New_Amsterdam,hv as New_Rocker,gv as New_Tegomin,_v as News_Cycle,vv as Newsreader,yv as Niconne,bv as Niramit,xv as Nixie_One,Sv as Nobile,Cv as Nokora,wv as Norican,Tv as Nosifer,Ev as Notable,Dv as Nothing_You_Could_Do,Ov as Noticia_Text,kv as Noto_Color_Emoji,Av as Noto_Emoji,jv as Noto_Kufi_Arabic,Mv as Noto_Music,Nv as Noto_Naskh_Arabic,Pv as Noto_Nastaliq_Urdu,Fv as Noto_Rashi_Hebrew,Iv as Noto_Sans,Lv as Noto_Sans_Adlam,Rv as Noto_Sans_Adlam_Unjoined,zv as Noto_Sans_Anatolian_Hieroglyphs,Bv as Noto_Sans_Arabic,Vv as Noto_Sans_Armenian,Hv as Noto_Sans_Avestan,Uv as Noto_Sans_Balinese,Wv as Noto_Sans_Bamum,Gv as Noto_Sans_Bassa_Vah,Kv as Noto_Sans_Batak,qv as Noto_Sans_Bengali,Jv as Noto_Sans_Bhaiksuki,Yv as Noto_Sans_Brahmi,Xv as Noto_Sans_Buginese,Zv as Noto_Sans_Buhid,Qv as Noto_Sans_Canadian_Aboriginal,$v as Noto_Sans_Carian,ey as Noto_Sans_Caucasian_Albanian,ty as Noto_Sans_Chakma,ny as Noto_Sans_Cham,ry as Noto_Sans_Cherokee,iy as Noto_Sans_Chorasmian,ay as Noto_Sans_Coptic,oy as Noto_Sans_Cuneiform,sy as Noto_Sans_Cypriot,cy as Noto_Sans_Cypro_Minoan,ly as Noto_Sans_Deseret,uy as Noto_Sans_Devanagari,dy as Noto_Sans_Display,fy as Noto_Sans_Duployan,py as Noto_Sans_Egyptian_Hieroglyphs,my as Noto_Sans_Elbasan,hy as Noto_Sans_Elymaic,gy as Noto_Sans_Ethiopic,_y as Noto_Sans_Georgian,vy as Noto_Sans_Glagolitic,yy as Noto_Sans_Gothic,by as Noto_Sans_Grantha,xy as Noto_Sans_Gujarati,Sy as Noto_Sans_Gunjala_Gondi,Cy as Noto_Sans_Gurmukhi,Oy as Noto_Sans_HK,wy as Noto_Sans_Hanifi_Rohingya,Ty as Noto_Sans_Hanunoo,Ey as Noto_Sans_Hatran,Dy as Noto_Sans_Hebrew,ky as Noto_Sans_Imperial_Aramaic,Ay as Noto_Sans_Indic_Siyaq_Numbers,jy as Noto_Sans_Inscriptional_Pahlavi,My as Noto_Sans_Inscriptional_Parthian,Py as Noto_Sans_JP,Ny as Noto_Sans_Javanese,Uy as Noto_Sans_KR,Fy as Noto_Sans_Kaithi,Iy as Noto_Sans_Kannada,Ly as Noto_Sans_Kawi,Ry as Noto_Sans_Kayah_Li,zy as Noto_Sans_Kharoshthi,By as Noto_Sans_Khmer,Vy as Noto_Sans_Khojki,Hy as Noto_Sans_Khudawadi,Wy as Noto_Sans_Lao,Gy as Noto_Sans_Lao_Looped,Ky as Noto_Sans_Lepcha,qy as Noto_Sans_Limbu,Jy as Noto_Sans_Linear_A,Yy as Noto_Sans_Linear_B,Xy as Noto_Sans_Lisu,Zy as Noto_Sans_Lycian,Qy as Noto_Sans_Lydian,$y as Noto_Sans_Mahajani,eb as Noto_Sans_Malayalam,tb as Noto_Sans_Mandaic,nb as Noto_Sans_Manichaean,rb as Noto_Sans_Marchen,ib as Noto_Sans_Masaram_Gondi,ab as Noto_Sans_Math,ob as Noto_Sans_Mayan_Numerals,sb as Noto_Sans_Medefaidrin,cb as Noto_Sans_Meetei_Mayek,lb as Noto_Sans_Mende_Kikakui,ub as Noto_Sans_Meroitic,db as Noto_Sans_Miao,fb as Noto_Sans_Modi,pb as Noto_Sans_Mongolian,mb as Noto_Sans_Mono,hb as Noto_Sans_Mro,gb as Noto_Sans_Multani,_b as Noto_Sans_Myanmar,Cb as Noto_Sans_NKo,wb as Noto_Sans_NKo_Unjoined,vb as Noto_Sans_Nabataean,yb as Noto_Sans_Nag_Mundari,bb as Noto_Sans_Nandinagari,xb as Noto_Sans_New_Tai_Lue,Sb as Noto_Sans_Newa,Tb as Noto_Sans_Nushu,Eb as Noto_Sans_Ogham,Db as Noto_Sans_Ol_Chiki,Ob as Noto_Sans_Old_Hungarian,kb as Noto_Sans_Old_Italic,Ab as Noto_Sans_Old_North_Arabian,jb as Noto_Sans_Old_Permic,Mb as Noto_Sans_Old_Persian,Nb as Noto_Sans_Old_Sogdian,Pb as Noto_Sans_Old_South_Arabian,Fb as Noto_Sans_Old_Turkic,Ib as Noto_Sans_Oriya,Lb as Noto_Sans_Osage,Rb as Noto_Sans_Osmanya,zb as Noto_Sans_Pahawh_Hmong,Bb as Noto_Sans_Palmyrene,Vb as Noto_Sans_Pau_Cin_Hau,Hb as Noto_Sans_PhagsPa,Ub as Noto_Sans_Phoenician,Wb as Noto_Sans_Psalter_Pahlavi,Gb as Noto_Sans_Rejang,Kb as Noto_Sans_Runic,Yb as Noto_Sans_SC,qb as Noto_Sans_Samaritan,Jb as Noto_Sans_Saurashtra,Xb as Noto_Sans_Sharada,Zb as Noto_Sans_Shavian,Qb as Noto_Sans_Siddham,$b as Noto_Sans_SignWriting,ex as Noto_Sans_Sinhala,tx as Noto_Sans_Sogdian,nx as Noto_Sans_Sora_Sompeng,rx as Noto_Sans_Soyombo,ix as Noto_Sans_Sundanese,ax as Noto_Sans_Sunuwar,ox as Noto_Sans_Syloti_Nagri,sx as Noto_Sans_Symbols,cx as Noto_Sans_Symbols_2,lx as Noto_Sans_Syriac,ux as Noto_Sans_Syriac_Eastern,dx as Noto_Sans_Syriac_Western,xx as Noto_Sans_TC,fx as Noto_Sans_Tagalog,px as Noto_Sans_Tagbanwa,mx as Noto_Sans_Tai_Le,hx as Noto_Sans_Tai_Tham,gx as Noto_Sans_Tai_Viet,_x as Noto_Sans_Takri,vx as Noto_Sans_Tamil,yx as Noto_Sans_Tamil_Supplement,bx as Noto_Sans_Tangsa,Sx as Noto_Sans_Telugu,Cx as Noto_Sans_Thaana,wx as Noto_Sans_Thai,Tx as Noto_Sans_Thai_Looped,Ex as Noto_Sans_Tifinagh,Dx as Noto_Sans_Tirhuta,Ox as Noto_Sans_Ugaritic,kx as Noto_Sans_Vai,Ax as Noto_Sans_Vithkuqi,jx as Noto_Sans_Wancho,Mx as Noto_Sans_Warang_Citi,Nx as Noto_Sans_Yi,Px as Noto_Sans_Zanabazar_Square,Fx as Noto_Serif,Ix as Noto_Serif_Ahom,Lx as Noto_Serif_Armenian,Rx as Noto_Serif_Balinese,zx as Noto_Serif_Bengali,Bx as Noto_Serif_Devanagari,Vx as Noto_Serif_Display,Hx as Noto_Serif_Dives_Akuru,Ux as Noto_Serif_Dogra,Wx as Noto_Serif_Ethiopic,Gx as Noto_Serif_Georgian,Kx as Noto_Serif_Grantha,qx as Noto_Serif_Gujarati,Jx as Noto_Serif_Gurmukhi,Zx as Noto_Serif_HK,Yx as Noto_Serif_Hebrew,Xx as Noto_Serif_Hentaigana,Qx as Noto_Serif_JP,rS as Noto_Serif_KR,$x as Noto_Serif_Kannada,eS as Noto_Serif_Khitan_Small_Script,tS as Noto_Serif_Khmer,nS as Noto_Serif_Khojki,iS as Noto_Serif_Lao,aS as Noto_Serif_Makasar,oS as Noto_Serif_Malayalam,sS as Noto_Serif_Myanmar,cS as Noto_Serif_NP_Hmong,lS as Noto_Serif_Old_Uyghur,uS as Noto_Serif_Oriya,dS as Noto_Serif_Ottoman_Siyaq,fS as Noto_Serif_SC,pS as Noto_Serif_Sinhala,gS as Noto_Serif_TC,mS as Noto_Serif_Tamil,hS as Noto_Serif_Tangut,_S as Noto_Serif_Telugu,vS as Noto_Serif_Thai,yS as Noto_Serif_Tibetan,bS as Noto_Serif_Todhri,xS as Noto_Serif_Toto,SS as Noto_Serif_Vithkuqi,CS as Noto_Serif_Yezidi,wS as Noto_Traditional_Nushu,TS as Noto_Znamenny_Musical_Notation,ES as Nova_Cut,DS as Nova_Flat,OS as Nova_Mono,kS as Nova_Oval,AS as Nova_Round,jS as Nova_Script,MS as Nova_Slim,NS as Nova_Square,FS as Numans,IS as Nunito,LS as Nunito_Sans,RS as Nuosu_SIL,zS as Odibee_Sans,BS as Odor_Mean_Chey,VS as Offside,HS as Oi,US as Ojuju,WS as Old_Standard_TT,GS as Oldenburg,KS as Ole,qS as Oleo_Script,JS as Oleo_Script_Swash_Caps,YS as Onest,XS as Oooh_Baby,ZS as Open_Sans,QS as Oranienbaum,$S as Orbit,eC as Orbitron,tC as Oregano,nC as Orelega_One,rC as Orienta,iC as Original_Surfer,aC as Oswald,oC as Outfit,sC as Over_the_Rainbow,cC as Overlock,lC as Overlock_SC,uC as Overpass,dC as Overpass_Mono,fC as Ovo,pC as Oxanium,mC as Oxygen,hC as Oxygen_Mono,zE as PT_Mono,BE as PT_Sans,VE as PT_Sans_Caption,HE as PT_Sans_Narrow,UE as PT_Serif,WE as PT_Serif_Caption,gC as Pacifico,_C as Padauk,vC as Padyakke_Expanded_One,yC as Palanquin,bC as Palanquin_Dark,xC as Palette_Mosaic,SC as Pangolin,CC as Paprika,wC as Parastoo,TC as Parisienne,EC as Parkinsans,DC as Passero_One,OC as Passion_One,kC as Passions_Conflict,AC as Pathway_Extreme,jC as Pathway_Gothic_One,MC as Patrick_Hand,NC as Patrick_Hand_SC,PC as Pattaya,FC as Patua_One,IC as Pavanam,LC as Paytone_One,RC as Peddana,zC as Peralta,BC as Permanent_Marker,VC as Petemoss,HC as Petit_Formal_Script,UC as Petrona,WC as Phetsarath,GC as Philosopher,KC as Phudu,qC as Piazzolla,JC as Piedra,YC as Pinyon_Script,XC as Pirata_One,ZC as Pixelify_Sans,QC as Plaster,$C as Platypi,ew as Play,tw as Playball,nw as Playfair,rw as Playfair_Display,iw as Playfair_Display_SC,aw as Playpen_Sans,ow as Playpen_Sans_Arabic,sw as Playpen_Sans_Deva,cw as Playpen_Sans_Hebrew,lw as Playpen_Sans_Thai,uw as Playwrite_AR,dw as Playwrite_AR_Guides,fw as Playwrite_AT,pw as Playwrite_AT_Guides,mw as Playwrite_AU_NSW,hw as Playwrite_AU_NSW_Guides,gw as Playwrite_AU_QLD,_w as Playwrite_AU_QLD_Guides,vw as Playwrite_AU_SA,yw as Playwrite_AU_SA_Guides,bw as Playwrite_AU_TAS,xw as Playwrite_AU_TAS_Guides,Sw as Playwrite_AU_VIC,Cw as Playwrite_AU_VIC_Guides,ww as Playwrite_BE_VLG,Tw as Playwrite_BE_VLG_Guides,Ew as Playwrite_BE_WAL,Dw as Playwrite_BE_WAL_Guides,Ow as Playwrite_BR,kw as Playwrite_BR_Guides,Aw as Playwrite_CA,jw as Playwrite_CA_Guides,Mw as Playwrite_CL,Nw as Playwrite_CL_Guides,Pw as Playwrite_CO,Fw as Playwrite_CO_Guides,Iw as Playwrite_CU,Lw as Playwrite_CU_Guides,Rw as Playwrite_CZ,zw as Playwrite_CZ_Guides,Bw as Playwrite_DE_Grund,Vw as Playwrite_DE_Grund_Guides,Hw as Playwrite_DE_LA,Uw as Playwrite_DE_LA_Guides,Ww as Playwrite_DE_SAS,Gw as Playwrite_DE_SAS_Guides,Kw as Playwrite_DE_VA,qw as Playwrite_DE_VA_Guides,Jw as Playwrite_DK_Loopet,Yw as Playwrite_DK_Loopet_Guides,Xw as Playwrite_DK_Uloopet,Zw as Playwrite_DK_Uloopet_Guides,Qw as Playwrite_ES,$w as Playwrite_ES_Deco,eT as Playwrite_ES_Deco_Guides,tT as Playwrite_ES_Guides,nT as Playwrite_FR_Moderne,rT as Playwrite_FR_Moderne_Guides,iT as Playwrite_FR_Trad,aT as Playwrite_FR_Trad_Guides,oT as Playwrite_GB_J,sT as Playwrite_GB_J_Guides,cT as Playwrite_GB_S,lT as Playwrite_GB_S_Guides,uT as Playwrite_HR,dT as Playwrite_HR_Guides,fT as Playwrite_HR_Lijeva,pT as Playwrite_HR_Lijeva_Guides,mT as Playwrite_HU,hT as Playwrite_HU_Guides,gT as Playwrite_ID,_T as Playwrite_ID_Guides,vT as Playwrite_IE,yT as Playwrite_IE_Guides,bT as Playwrite_IN,xT as Playwrite_IN_Guides,ST as Playwrite_IS,CT as Playwrite_IS_Guides,wT as Playwrite_IT_Moderna,TT as Playwrite_IT_Moderna_Guides,ET as Playwrite_IT_Trad,DT as Playwrite_IT_Trad_Guides,OT as Playwrite_MX,kT as Playwrite_MX_Guides,AT as Playwrite_NG_Modern,jT as Playwrite_NG_Modern_Guides,MT as Playwrite_NL,NT as Playwrite_NL_Guides,PT as Playwrite_NO,FT as Playwrite_NO_Guides,IT as Playwrite_NZ,LT as Playwrite_NZ_Basic,RT as Playwrite_NZ_Basic_Guides,zT as Playwrite_NZ_Guides,BT as Playwrite_PE,VT as Playwrite_PE_Guides,HT as Playwrite_PL,UT as Playwrite_PL_Guides,WT as Playwrite_PT,GT as Playwrite_PT_Guides,KT as Playwrite_RO,qT as Playwrite_RO_Guides,JT as Playwrite_SK,YT as Playwrite_SK_Guides,XT as Playwrite_TZ,ZT as Playwrite_TZ_Guides,QT as Playwrite_US_Modern,$T as Playwrite_US_Modern_Guides,eE as Playwrite_US_Trad,tE as Playwrite_US_Trad_Guides,nE as Playwrite_VN,rE as Playwrite_VN_Guides,iE as Playwrite_ZA,aE as Playwrite_ZA_Guides,oE as Pliant,sE as Plus_Jakarta_Sans,cE as Pochaevsk,lE as Podkova,uE as Poetsen_One,dE as Poiret_One,fE as Poller_One,pE as Poltawski_Nowy,mE as Poly,hE as Pompiere,gE as Ponnala,_E as Ponomar,vE as Pontano_Sans,yE as Poor_Story,bE as Poppins,xE as Port_Lligat_Sans,SE as Port_Lligat_Slab,CE as Potta_One,wE as Pragati_Narrow,TE as Praise,EE as Prata,DE as Preahvihear,OE as Press_Start_2P,kE as Pridi,AE as Princess_Sofia,jE as Prociono,ME as Prompt,NE as Prosto_One,PE as Protest_Guerrilla,FE as Protest_Revolution,IE as Protest_Riot,LE as Protest_Strike,RE as Proza_Libre,GE as Public_Sans,KE as Puppies_Play,qE as Puritan,JE as Purple_Purse,YE as Qahiri,XE as Quando,ZE as Quantico,QE as Quattrocento,$E as Quattrocento_Sans,eD as Questrial,tD as Quicksand,nD as Quintessential,rD as Qwigley,iD as Qwitcher_Grypen,HD as REM,aD as Racing_Sans_One,oD as Radio_Canada,sD as Radio_Canada_Big,cD as Radley,lD as Rajdhani,uD as Rakkas,dD as Raleway,fD as Raleway_Dots,pD as Ramabhadra,mD as Ramaraja,hD as Rambla,gD as Rammetto_One,_D as Rampart_One,vD as Ramsina,yD as Ranchers,bD as Rancho,xD as Ranga,SD as Rasa,CD as Rationale,wD as Ravi_Prakash,TD as Readex_Pro,ED as Recursive,DD as Red_Hat_Display,OD as Red_Hat_Mono,kD as Red_Hat_Text,AD as Red_Rose,jD as Redacted,MD as Redacted_Script,ND as Reddit_Mono,PD as Reddit_Sans,FD as Reddit_Sans_Condensed,ID as Redressed,LD as Reem_Kufi,RD as Reem_Kufi_Fun,zD as Reem_Kufi_Ink,BD as Reenie_Beanie,VD as Reggae_One,UD as Rethink_Sans,WD as Revalia,GD as Rhodium_Libre,KD as Ribeye,qD as Ribeye_Marrow,JD as Righteous,YD as Risque,XD as Road_Rage,ZD as Roboto,QD as Roboto_Condensed,$D as Roboto_Flex,eO as Roboto_Mono,tO as Roboto_Serif,nO as Roboto_Slab,rO as Rochester,iO as Rock_3D,aO as Rock_Salt,oO as RocknRoll_One,sO as Rokkitt,cO as Romanesco,lO as Ropa_Sans,uO as Rosario,dO as Rosarivo,fO as Rouge_Script,pO as Rowdies,mO as Rozha_One,hO as Rubik,gO as Rubik_80s_Fade,_O as Rubik_Beastly,vO as Rubik_Broken_Fax,yO as Rubik_Bubbles,bO as Rubik_Burned,xO as Rubik_Dirt,SO as Rubik_Distressed,CO as Rubik_Doodle_Shadow,wO as Rubik_Doodle_Triangles,TO as Rubik_Gemstones,EO as Rubik_Glitch,DO as Rubik_Glitch_Pop,OO as Rubik_Iso,kO as Rubik_Lines,AO as Rubik_Maps,jO as Rubik_Marker_Hatch,MO as Rubik_Maze,NO as Rubik_Microbe,PO as Rubik_Mono_One,FO as Rubik_Moonrocks,IO as Rubik_Pixels,LO as Rubik_Puddles,RO as Rubik_Scribble,zO as Rubik_Spray_Paint,BO as Rubik_Storm,VO as Rubik_Vinyl,HO as Rubik_Wet_Paint,UO as Ruda,WO as Rufina,GO as Ruge_Boogie,KO as Ruluko,qO as Rum_Raisin,JO as Ruslan_Display,YO as Russo_One,XO as Ruthie,ZO as Ruwudu,QO as Rye,DA as SN_Pro,Tj as STIX_Two_Math,Ej as STIX_Two_Text,Uj as SUSE,Wj as SUSE_Mono,$O as Sacramento,ek as Sahitya,tk as Sail,nk as Saira,rk as Saira_Condensed,ik as Saira_Extra_Condensed,ak as Saira_Semi_Condensed,ok as Saira_Stencil,sk as Salsa,ck as Sanchez,lk as Sancreek,uk as Sankofa_Display,dk as Sansation,fk as Sansita,pk as Sansita_Swashed,mk as Sarabun,hk as Sarala,gk as Sarina,_k as Sarpanch,vk as Sassy_Frass,yk as Satisfy,bk as Savate,xk as Sawarabi_Gothic,Sk as Sawarabi_Mincho,Ck as Scada,wk as Scheherazade_New,Tk as Schibsted_Grotesk,Ek as Schoolbell,Dk as Science_Gothic,Ok as Scope_One,kk as Scoutie_Sans,Ak as Seaweed_Script,jk as Secular_One,Mk as Sedan,Nk as Sedan_SC,Pk as Sedgwick_Ave,Fk as Sedgwick_Ave_Display,Ik as Sekuya,Lk as Sen,Rk as Send_Flowers,zk as Sevillana,Bk as Seymour_One,Vk as Shadows_Into_Light,Hk as Shadows_Into_Light_Two,Uk as Shafarik,Wk as Shalimar,Gk as Shantell_Sans,Kk as Shanti,qk as Share,Jk as Share_Tech,Yk as Share_Tech_Mono,Xk as Shippori_Antique,Zk as Shippori_Antique_B1,Qk as Shippori_Mincho,$k as Shippori_Mincho_B1,eA as Shizuru,tA as Shojumaru,nA as Short_Stack,rA as Shrikhand,iA as Siemreap,aA as Sigmar,oA as Sigmar_One,sA as Signika,cA as Signika_Negative,lA as Silkscreen,uA as Simonetta,dA as Single_Day,fA as Sintony,pA as Sirin_Stencil,mA as Sirivennela,hA as Six_Caps,gA as Sixtyfour,_A as Sixtyfour_Convergence,vA as Skranji,yA as Slabo_13px,bA as Slabo_27px,xA as Slackey,SA as Slackside_One,CA as Smokum,wA as Smooch,TA as Smooch_Sans,EA as Smythe,OA as Sniglet,kA as Snippet,AA as Snowburst_One,jA as Sofadi_One,MA as Sofia,NA as Sofia_Sans,PA as Sofia_Sans_Condensed,FA as Sofia_Sans_Extra_Condensed,IA as Sofia_Sans_Semi_Condensed,LA as Solitreo,RA as Solway,zA as Sometype_Mono,BA as Song_Myung,VA as Sono,HA as Sonsie_One,UA as Sora,WA as Sorts_Mill_Goudy,GA as Sour_Gummy,KA as Source_Code_Pro,qA as Source_Sans_3,JA as Source_Serif_4,YA as Space_Grotesk,XA as Space_Mono,ZA as Special_Elite,QA as Special_Gothic,$A as Special_Gothic_Condensed_One,ej as Special_Gothic_Expanded_One,tj as Spectral,nj as Spectral_SC,rj as Spicy_Rice,ij as Spinnaker,aj as Spirax,oj as Splash,sj as Spline_Sans,cj as Spline_Sans_Mono,lj as Squada_One,uj as Square_Peg,dj as Sree_Krushnadevaraya,fj as Sriracha,pj as Srisakdi,mj as Staatliches,hj as Stack_Sans_Headline,gj as Stack_Sans_Notch,_j as Stack_Sans_Text,vj as Stalemate,yj as Stalinist_One,bj as Stardos_Stencil,xj as Stick,Sj as Stick_No_Bills,Cj as Stint_Ultra_Condensed,wj as Stint_Ultra_Expanded,Dj as Stoke,Oj as Story_Script,kj as Strait,Aj as Strichpunkt_Sans,jj as Style_Script,Mj as Stylish,Nj as Sue_Ellen_Francisco,Pj as Suez_One,Fj as Sulphur_Point,Ij as Sumana,Lj as Sunflower,Rj as Sunshiney,zj as Supermercado_One,Bj as Sura,Vj as Suranna,Hj as Suravaram,Gj as Suwannaphum,Kj as Swanky_and_Moo_Moo,qj as Syncopate,Jj as Syne,Yj as Syne_Mono,Xj as Syne_Tactile,iM as TASA_Explorer,aM as TASA_Orbiter,Zj as Tac_One,Qj as Tagesschrift,$j as Tai_Heritage_Pro,eM as Tajawal,tM as Tangerine,nM as Tapestry,rM as Taprom,oM as Tauri,sM as Taviraj,cM as Teachers,lM as Teko,uM as Tektur,dM as Telex,fM as Tenali_Ramakrishna,pM as Tenor_Sans,mM as Text_Me_One,hM as Texturina,gM as Thasadith,_M as The_Girl_Next_Door,vM as The_Nautigal,yM as Tienne,bM as TikTok_Sans,xM as Tillana,SM as Tilt_Neon,CM as Tilt_Prism,wM as Tilt_Warp,TM as Timmana,EM as Tinos,DM as Tiny5,OM as Tiro_Bangla,kM as Tiro_Devanagari_Hindi,AM as Tiro_Devanagari_Marathi,jM as Tiro_Devanagari_Sanskrit,MM as Tiro_Gurmukhi,NM as Tiro_Kannada,PM as Tiro_Tamil,FM as Tiro_Telugu,IM as Tirra,LM as Titan_One,RM as Titillium_Web,zM as Tomorrow,BM as Tourney,VM as Trade_Winds,HM as Train_One,UM as Triodion,WM as Trirong,GM as Trispace,KM as Trocchi,qM as Trochut,JM as Truculenta,YM as Trykker,XM as Tsukimi_Rounded,ZM as Tuffy,QM as Tulpen_One,$M as Turret_Road,eN as Twinkle_Star,tN as Ubuntu,nN as Ubuntu_Condensed,rN as Ubuntu_Mono,iN as Ubuntu_Sans,aN as Ubuntu_Sans_Mono,oN as Uchen,sN as Ultra,cN as Unbounded,lN as Uncial_Antiqua,uN as Underdog,dN as Unica_One,fN as UnifrakturCook,pN as UnifrakturMaguntia,mN as Unkempt,hN as Unlock,gN as Unna,_N as UoqMunThenKhung,vN as Updock,yN as Urbanist,VN as VT323,bN as Valley_Sans,xN as Vampiro_One,SN as Varela,CN as Varela_Round,wN as Varta,TN as Vast_Shadow,EN as Vazirmatn,DN as Vend_Sans,ON as Vesper_Libre,kN as Viaoda_Libre,AN as Vibes,jN as Vibur,MN as Victor_Mono,NN as Vidaloka,PN as Viga,FN as Vina_Sans,IN as Voces,LN as Volkhov,RN as Vollkorn,zN as Vollkorn_SC,BN as Voltaire,HN as Vujahday_Script,XN as WDXL_Lubrifont_JP_N,ZN as WDXL_Lubrifont_SC,QN as WDXL_Lubrifont_TC,UN as Waiting_for_the_Sunrise,WN as Wallpoet,GN as Walter_Turncoat,KN as Warnes,qN as Water_Brush,JN as Waterfall,YN as Wavefont,$N as Wellfleet,eP as Wendy_One,tP as Whisper,nP as WindSong,rP as Winky_Rough,iP as Winky_Sans,aP as Wire_One,oP as Wittgenstein,sP as Wix_Madefor_Display,cP as Wix_Madefor_Text,lP as Work_Sans,uP as Workbench,dP as Xanh_Mono,fP as Yaldevi,pP as Yanone_Kaffeesatz,mP as Yantramanav,hP as Yarndings_12,gP as Yarndings_12_Charted,_P as Yarndings_20,vP as Yarndings_20_Charted,yP as Yatra_One,bP as Yellowtail,xP as Yeon_Sung,SP as Yeseva_One,CP as Yesteryear,wP as Yomogi,TP as Young_Serif,EP as Yrsa,DP as Ysabeau,OP as Ysabeau_Infant,kP as Ysabeau_Office,AP as Ysabeau_SC,jP as Yuji_Boku,MP as Yuji_Hentaigana_Akari,NP as Yuji_Hentaigana_Akebono,PP as Yuji_Mai,FP as Yuji_Syuku,IP as Yusei_Magic,LP as Yuyu,RP as Yuyu_Short,UP as ZCOOL_KuaiLe,WP as ZCOOL_QingKe_HuangYou,GP as ZCOOL_XiaoWei,zP as Zain,BP as Zalando_Sans,VP as Zalando_Sans_Expanded,HP as Zalando_Sans_SemiExpanded,KP as Zen_Antique,qP as Zen_Antique_Soft,JP as Zen_Dots,YP as Zen_Kaku_Gothic_Antique,XP as Zen_Kaku_Gothic_New,ZP as Zen_Kurenaido,QP as Zen_Loop,$P as Zen_Maru_Gothic,eF as Zen_Old_Mincho,tF as Zen_Tokyo_Zoo,nF as Zeyada,rF as Zhi_Mang_Xing,iF as Zilla_Slab,aF as Zilla_Slab_Highlight};
1
+ function e(){throw Error("Google font imports from `rari/font/google` must be compiled by the rari Vite plugin. Add `rari()` to your Vite config, and pass a static options object.")}export{e as googleFont};
package/dist/image.mjs CHANGED
@@ -1 +1 @@
1
- import{a as e,i as t,n,o as r,r as i,s as a,t as o}from"./constants-CRK2JRKf.mjs";import{useCallback as s,useEffect as c,useRef as l,useState as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";const p=Math.max(...i);function m(e){return Math.min(Math.max(e,1),p)}function h(e){let{fill:t,width:n,intrinsicWidth:r}=e;if(t)return{defaultWidth:p,widths:i};let a=n!=null&&n!==0?n:r!=null&&r!==0?r:void 0;if(a==null)return{defaultWidth:1920,widths:i};let o=m(a);return{defaultWidth:o,widths:[o]}}function g(e,t,n,r){let i=new URLSearchParams;return i.set(`url`,e),i.set(`w`,t.toString()),i.set(`q`,n.toString()),r&&i.set(`f`,r),`/_rari/image?${i}`}function _(e,t,n,r,i){return e==null?g(t,n,r,i):e({src:t,width:n,quality:r})}function v(e,t,n){return e!=null&&e!==``?e:t||n?`100vw`:void 0}function y(e){let{link:t,finalSrc:n,defaultWidth:r,quality:a,preloadSizes:o,loader:s,preloadFormat:c,preloadAvifOnly:l}=e,u=i.map(e=>`${_(s,n,e,a,c)} ${e}w`).join(`, `);t.href=_(s,n,r,a,c),t.setAttribute(`imagesrcset`,u),o!=null&&t.setAttribute(`imagesizes`,o),l&&(t.type=`image/avif`)}function b(e){let{link:n,finalSrc:r,defaultWidth:i,quality:a,sizes:o,loader:s,unoptimized:c,fill:l,shouldUseSrcSet:u}=e,d=u&&!c,f=v(o,d,l),p=s==null&&t.length===1&&t[0]===`avif`,m=p?`avif`:void 0;if(c){n.href=s==null?r:s({src:r,width:i,quality:a});return}if(d){y({link:n,finalSrc:r,defaultWidth:i,quality:a,preloadSizes:f,loader:s,preloadFormat:m,preloadAvifOnly:p});return}n.href=_(s,r,i,a),f!=null&&n.setAttribute(`imagesizes`,f)}function x(e,t,n){if(e!=null&&e!==0)return e;if(!t&&n!=null&&n!==0)return n}function ee(e){let{src:t,width:n,height:r,fill:i,placeholder:a,blurDataURL:o,loader:s}=e,c=typeof t==`string`?t:t.src,l=typeof t==`string`?void 0:t.width,u=typeof t==`string`?void 0:t.height,d=o!=null&&o!==``?o:typeof t==`string`?void 0:t.blurDataURL,f=d!=null&&d!==``?d:void 0,p=a===`blur`&&f==null?_(s,c,16,25,`jpeg`):void 0;return{imgSrc:c,imgWidth:x(n,i,l),imgHeight:x(r,i,u),inlineBlurDataURL:f,optimizerBlurUrl:p}}function S(e){return{position:`absolute`,inset:0,width:`100%`,height:`100%`,objectFit:e?.objectFit??`cover`}}function C(e){return{backgroundImage:`url("${e}")`,backgroundSize:`cover`,backgroundPosition:`center`,filter:`blur(20px)`,transition:`filter 0.3s ease-out`}}function te(e){let{style:t,fill:n,placeholder:r,imgBlurDataURL:i,blurComplete:a}=e,o=r===`blur`&&i!=null&&i!==``&&!a,s=r===`blur`&&a;return{...t,...n?S(t):null,...o?C(i):null,...s?{filter:`none`,transition:`filter 0.3s ease-out`}:null}}function ne(e,t,n,r){return e==null?t:e({src:t,width:n,quality:r})}function w(e,t,n,r,i){return e==null?n.map(e=>`${g(t,e,r,i)} ${e}w`).join(`, `):n.map(n=>`${e({src:t,width:n,quality:r})} ${n}w`).join(`, `)}function T(e,t){return e!=null&&e!==``?e:t?`100vw`:void 0}function E({imgRef:e,src:t,srcSet:n,sizes:r,alt:i,showAltText:a,fill:o,imgWidth:s,imgHeight:c,shouldPreload:l,loading:u,imgDecoding:f,placeholder:p,onLoad:m,handleLoad:h,handleError:g,imgStyle:_,className:v}){return/* @__PURE__ */ d(`img`,{ref:e,src:t,srcSet:n,sizes:r,alt:a?i:``,width:o?void 0:s,height:o?void 0:c,loading:l?`eager`:u,fetchPriority:l?`high`:`auto`,decoding:f,onLoad:p===`blur`||m!=null?h:void 0,onError:g,style:_,className:v})}function D({src:e,alt:n,width:r,height:i,quality:a=75,preload:o=!1,loading:p=`lazy`,placeholder:m=`empty`,blurDataURL:g,fill:v=!1,sizes:y,style:x,className:S,onLoad:C,onError:D,unoptimized:O=!1,loader:k,overrideSrc:A,decoding:re}){let{imgSrc:ie,imgWidth:j,imgHeight:M,inlineBlurDataURL:N,optimizerBlurUrl:P}=ee({src:e,width:r,height:i,fill:v,placeholder:m,blurDataURL:g,loader:k}),F=A!=null&&A!==``?A:ie,I=o,ae=re??(o?`sync`:`async`),L=h({fill:v,width:r,intrinsicWidth:typeof e==`string`?void 0:e.width}),R=L.widths.length>1||L.widths[0]!==L.defaultWidth,z=I||p===`eager`,[B,V]=u(!1),[H,U]=u(!1),[W,G]=u(F),[K,q]=u(z),J=l(null),Y=l(C),oe=l(null);W!==F&&(G(F),q(z),V(!1));let X=N??(z||K?P:void 0);c(()=>{Y.current=C},[C]);let se=s(e=>{let t=e.currentTarget;t.src&&t.complete&&(m===`blur`&&V(!0),Y.current&&Y.current(e))},[m]),ce=s(e=>{U(!0),m===`blur`&&V(!0),D&&D(e)},[m,D]);c(()=>{if(!I)return;let e=document.createElement(`link`);return e.rel=`preload`,e.as=`image`,b({link:e,finalSrc:F,defaultWidth:L.defaultWidth,quality:a,sizes:y,loader:k,unoptimized:O,fill:v,shouldUseSrcSet:R}),document.head.appendChild(e),()=>{e.parentNode===document.head&&document.head.removeChild(e)}},[I,F,L.defaultWidth,a,y,k,O,v,R]),c(()=>{if(z||K||P==null||m!==`blur`)return;let e=J.current;if(!e)return;let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(q(!0),t.disconnect())},{rootMargin:`200px`});return t.observe(e),()=>{t.disconnect()}},[z,K,P,m,F]);let Z={imgRef:J,alt:n,showAltText:H,fill:v,imgWidth:j,imgHeight:M,shouldPreload:I,loading:p,imgDecoding:ae,placeholder:m,onLoad:C,handleLoad:se,handleError:ce,imgStyle:te({style:x,fill:v,placeholder:m,imgBlurDataURL:X,blurComplete:B}),className:S};if(O)return E({...Z,src:ne(k,F,L.defaultWidth,a)});let Q=T(y,R),le=_(k,F,L.defaultWidth,a),$=E({...Z,src:le,srcSet:R?w(k,F,L.widths,a):void 0,sizes:R?Q:void 0});return R?/* @__PURE__ */ f(`picture`,{ref:oe,children:[t.includes(`avif`)&&/* @__PURE__ */ d(`source`,{type:`image/avif`,srcSet:w(k,F,L.widths,a,`avif`),sizes:Q}),t.includes(`webp`)&&/* @__PURE__ */ d(`source`,{type:`image/webp`,srcSet:w(k,F,L.widths,a,`webp`),sizes:Q}),$]}):$}const O=typeof window>`u`,k=D;O&&(k.$$typeof=Symbol.for(`react.client.reference`),k.$$id=`rari/image#Image`);export{o as BLUR_PLACEHOLDER_QUALITY,n as BLUR_PLACEHOLDER_WIDTH,i as DEFAULT_DEVICE_SIZES,t as DEFAULT_FORMATS,e as DEFAULT_IMAGE_SIZES,r as DEFAULT_MINIMUM_CACHE_TTL,a as DEFAULT_QUALITY_LEVELS,k as Image};
1
+ import{a as e,i as t,n,o as r,r as i,s as a,t as o}from"./constants-CRK2JRKf.mjs";import{useCallback as s,useEffect as c,useLayoutEffect as l,useRef as u,useState as d}from"react";import{jsx as f,jsxs as p}from"react/jsx-runtime";const m=Math.max(...i);function h(e){return Math.min(Math.max(e,1),m)}function g(e){let{fill:t,width:n,intrinsicWidth:r}=e;if(t)return{defaultWidth:m,widths:i};let a=n!=null&&n!==0?n:r!=null&&r!==0?r:void 0;if(a==null)return{defaultWidth:1920,widths:i};let o=h(a);return{defaultWidth:o,widths:[o]}}function _(e,t,n,r){let i=new URLSearchParams;return i.set(`url`,e),i.set(`w`,t.toString()),i.set(`q`,n.toString()),r&&i.set(`f`,r),`/_rari/image?${i}`}function v(e,t,n,r,i){return e==null?_(t,n,r,i):e({src:t,width:n,quality:r})}function y(e,t,n){return e!=null&&e!==``?e:t||n?`100vw`:void 0}function b(e){let{link:t,finalSrc:n,defaultWidth:r,quality:a,preloadSizes:o,loader:s,preloadFormat:c,preloadAvifOnly:l}=e,u=i.map(e=>`${v(s,n,e,a,c)} ${e}w`).join(`, `);t.href=v(s,n,r,a,c),t.setAttribute(`imagesrcset`,u),o!=null&&t.setAttribute(`imagesizes`,o),l&&(t.type=`image/avif`)}function x(e){let{link:n,finalSrc:r,defaultWidth:i,quality:a,sizes:o,loader:s,unoptimized:c,fill:l,shouldUseSrcSet:u}=e,d=u&&!c,f=y(o,d,l),p=s==null&&t.length===1&&t[0]===`avif`,m=p?`avif`:void 0;if(c){n.href=s==null?r:s({src:r,width:i,quality:a});return}if(d){b({link:n,finalSrc:r,defaultWidth:i,quality:a,preloadSizes:f,loader:s,preloadFormat:m,preloadAvifOnly:p});return}n.href=v(s,r,i,a),f!=null&&n.setAttribute(`imagesizes`,f)}function S(e,t,n){if(e!=null&&e!==0)return e;if(!t&&n!=null&&n!==0)return n}function ee(e){let{src:t,width:n,height:r,fill:i,placeholder:a,blurDataURL:o,loader:s}=e,c=typeof t==`string`?t:t.src,l=typeof t==`string`?void 0:t.width,u=typeof t==`string`?void 0:t.height,d=o!=null&&o!==``?o:typeof t==`string`?void 0:t.blurDataURL,f=d!=null&&d!==``?d:void 0,p=a===`blur`&&f==null?v(s,c,16,25,`jpeg`):void 0;return{imgSrc:c,imgWidth:S(n,i,l),imgHeight:S(r,i,u),inlineBlurDataURL:f,optimizerBlurUrl:p}}function C(e){return{position:`absolute`,inset:0,width:`100%`,height:`100%`,objectFit:e?.objectFit??`cover`}}function w(e){return{backgroundImage:`url("${e}")`,backgroundSize:`cover`,backgroundPosition:`center`,filter:`blur(20px)`,transition:`filter 0.3s ease-out`}}function te(e){return e.complete&&e.naturalWidth>0}function T(e){let{style:t,fill:n,placeholder:r,imgBlurDataURL:i,blurComplete:a}=e,o=r===`blur`&&i!=null&&i!==``&&!a,s=r===`blur`&&a;return{...t,...n?C(t):null,...o?w(i):null,...s?{filter:`none`,transition:`filter 0.3s ease-out`}:null}}function E(e,t,n,r){return e==null?t:e({src:t,width:n,quality:r})}function D(e,t,n,r,i){return e==null?n.map(e=>`${_(t,e,r,i)} ${e}w`).join(`, `):n.map(n=>`${e({src:t,width:n,quality:r})} ${n}w`).join(`, `)}function ne(e,t){return e!=null&&e!==``?e:t?`100vw`:void 0}function O({imgRef:e,src:t,srcSet:n,sizes:r,alt:i,showAltText:a,fill:o,imgWidth:s,imgHeight:c,shouldPreload:l,loading:u,imgDecoding:d,placeholder:p,onLoad:m,handleLoad:h,handleError:g,imgStyle:_,className:v}){return/* @__PURE__ */ f(`img`,{ref:e,src:t,srcSet:n,sizes:r,alt:a?i:``,width:o?void 0:s,height:o?void 0:c,loading:l?`eager`:u,fetchPriority:l?`high`:`auto`,decoding:d,onLoad:p===`blur`||m!=null?h:void 0,onError:g,style:_,className:v})}function k({src:e,alt:n,width:r,height:i,quality:a=75,preload:o=!1,loading:m=`lazy`,placeholder:h=`empty`,blurDataURL:_,fill:y=!1,sizes:b,style:S,className:C,onLoad:w,onError:k,unoptimized:A=!1,loader:j,overrideSrc:M,decoding:re}){let{imgSrc:ie,imgWidth:N,imgHeight:ae,inlineBlurDataURL:oe,optimizerBlurUrl:P}=ee({src:e,width:r,height:i,fill:y,placeholder:h,blurDataURL:_,loader:j}),F=M!=null&&M!==``?M:ie,I=o,se=re??(o?`sync`:`async`),L=g({fill:y,width:r,intrinsicWidth:typeof e==`string`?void 0:e.width}),R=L.widths.length>1||L.widths[0]!==L.defaultWidth,z=I||m===`eager`,[B,V]=d(!1),[H,U]=d(!1),[W,G]=d(F),[K,q]=d(z),J=u(null),Y=u(w),ce=u(null);W!==F&&(G(F),q(z),V(!1));let X=oe??(z||K?P:void 0);c(()=>{Y.current=w},[w]);let le=s(e=>{let t=e.currentTarget;(t.currentSrc===``?t.src:t.currentSrc)!==``&&t.complete&&(h===`blur`&&V(!0),Y.current&&Y.current(e))},[h]),ue=s(e=>{U(!0),h===`blur`&&V(!0),k&&k(e)},[h,k]);l(()=>{if(h!==`blur`)return;let e=J.current;e!=null&&te(e)&&V(!0)},[h,F]),c(()=>{if(!I)return;let e=document.createElement(`link`);return e.rel=`preload`,e.as=`image`,x({link:e,finalSrc:F,defaultWidth:L.defaultWidth,quality:a,sizes:b,loader:j,unoptimized:A,fill:y,shouldUseSrcSet:R}),document.head.appendChild(e),()=>{e.parentNode===document.head&&document.head.removeChild(e)}},[I,F,L.defaultWidth,a,b,j,A,y,R]),c(()=>{if(z||K||P==null||h!==`blur`)return;let e=J.current;if(!e)return;let t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(q(!0),t.disconnect())},{rootMargin:`200px`});return t.observe(e),()=>{t.disconnect()}},[z,K,P,h,F]);let Z={imgRef:J,alt:n,showAltText:H,fill:y,imgWidth:N,imgHeight:ae,shouldPreload:I,loading:m,imgDecoding:se,placeholder:h,onLoad:w,handleLoad:le,handleError:ue,imgStyle:T({style:S,fill:y,placeholder:h,imgBlurDataURL:X,blurComplete:B}),className:C};if(A)return O({...Z,src:E(j,F,L.defaultWidth,a)});let Q=ne(b,R),de=v(j,F,L.defaultWidth,a),$=O({...Z,src:de,srcSet:R?D(j,F,L.widths,a):void 0,sizes:R?Q:void 0});return R?/* @__PURE__ */ p(`picture`,{ref:ce,children:[t.includes(`avif`)&&/* @__PURE__ */ f(`source`,{type:`image/avif`,srcSet:D(j,F,L.widths,a,`avif`),sizes:Q}),t.includes(`webp`)&&/* @__PURE__ */ f(`source`,{type:`image/webp`,srcSet:D(j,F,L.widths,a,`webp`),sizes:Q}),$]}):$}const A=typeof window>`u`,j=k;A&&(j.$$typeof=Symbol.for(`react.client.reference`),j.$$id=`rari/image#Image`);export{o as BLUR_PLACEHOLDER_QUALITY,n as BLUR_PLACEHOLDER_WIDTH,i as DEFAULT_DEVICE_SIZES,t as DEFAULT_FORMATS,e as DEFAULT_IMAGE_SIZES,r as DEFAULT_MINIMUM_CACHE_TTL,a as DEFAULT_QUALITY_LEVELS,j as Image};
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { D as RouteContext, E as ApiRouteHandlers, O as RouteHandler, T as ApiResponse, _ as LayoutProps, a as Sitemap, c as SitemapVideo, i as RobotsRule, n as FeedEntry, o as SitemapEntry, p as ErrorProps, r as Robots, s as SitemapImage, t as Feed, x as PageProps, y as Metadata } from "./types-DfSnnFaF.mjs";
1
+ import { D as RouteContext, E as ApiRouteHandlers, O as RouteHandler, T as ApiResponse, _ as LayoutProps, a as Sitemap, c as SitemapVideo, i as RobotsRule, n as FeedEntry, o as SitemapEntry, p as ErrorProps, r as Robots, s as SitemapImage, t as Feed, x as PageProps, y as Metadata } from "./types-CkJ_86mo.mjs";
2
2
  import { c as RariURL, d as RariResponse, n as ProxyConfig, r as ProxyFunction, s as RariFetchEvent } from "./types-DAdRjhuk.mjs";
3
3
  import { RariRequest } from "./proxy/RariRequest.mjs";
4
4
  //#region src/navigation/not-found.d.ts
package/dist/platform.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import{existsSync as e}from"node:fs";import{dirname as t,join as n}from"node:path";import r from"node:process";import{fileURLToPath as i}from"node:url";const a={"linux-x64":`rari-linux-x64`,"linux-arm64":`rari-linux-arm64`,"darwin-x64":`rari-darwin-x64`,"darwin-arm64":`rari-darwin-arm64`,"win32-arm64":`rari-win32-arm64`,"win32-x64":`rari-win32-x64`};function o(e){return Object.hasOwn(a,e)}function s(){let e=r.platform,t=r.arch,n;switch(e){case`darwin`:n=`darwin`;break;case`linux`:n=`linux`;break;case`win32`:n=`win32`;break;case`aix`:case`android`:case`cygwin`:case`freebsd`:case`haiku`:case`openbsd`:case`sunos`:case`netbsd`:throw Error(`Unsupported platform: ${e}. rari supports Linux, macOS, and Windows.`);default:throw Error(`Unsupported platform: ${String(e)}. rari supports Linux, macOS, and Windows.`)}let i;switch(t){case`x64`:i=`x64`;break;case`arm64`:i=`arm64`;break;case`arm`:case`ia32`:case`loong64`:case`mips`:case`mipsel`:case`ppc64`:case`riscv64`:case`s390x`:throw Error(`Unsupported architecture: ${t}. rari supports x64 and ARM64.`);default:throw Error(`Unsupported architecture: ${String(t)}. rari supports x64 and ARM64.`)}let s=`${n}-${i}`;if(!o(s))throw Error(`Unsupported platform combination: ${n}-${i}. Supported platforms: ${Object.keys(a).join(`, `)}`);let c=a[s];return{platform:n,arch:i,packageName:c,binaryName:n===`win32`?`rari.exe`:`rari`}}let c=null;function l(){let{packageName:r,binaryName:a}=s(),o=t(i(import.meta.url));for(;o!==t(o);){if(e(n(o,`pnpm-workspace.yaml`))){let t=n(o,`packages`,r,`bin`,a);if(e(t))return t;break}o=t(o)}try{let t=import.meta.resolve(`${r}/package.json`),o=i(new URL(`.`,t)),s=n(o,`bin`,a);if(e(s))return s;throw Error(`Binary not found at ${s}`)}catch{throw Error(`Failed to locate rari binary for ${r}. Please ensure the platform package is installed: npm install ${r}`)}}function u(){return c!=null&&c!==``||(c=l()),c}function d(){let{packageName:e}=s();return`
1
+ import{existsSync as e}from"node:fs";import{dirname as t,join as n}from"node:path";import r from"node:process";import{fileURLToPath as i}from"node:url";const a={"linux-x64":`rari-linux-x64`,"linux-arm64":`rari-linux-arm64`,"darwin-x64":`rari-darwin-x64`,"darwin-arm64":`rari-darwin-arm64`,"win32-arm64":`rari-win32-arm64`,"win32-x64":`rari-win32-x64`};function o(e){return Object.hasOwn(a,e)}function s(){let e=r.platform,t=r.arch;if(e!==`darwin`&&e!==`linux`&&e!==`win32`)throw Error(`Unsupported platform: ${e}. rari supports Linux, macOS, and Windows.`);if(t!==`x64`&&t!==`arm64`)throw Error(`Unsupported architecture: ${t}. rari supports x64 and ARM64.`);let n=`${e}-${t}`;if(!o(n))throw Error(`Unsupported platform combination: ${e}-${t}. Supported platforms: ${Object.keys(a).join(`, `)}`);return{platform:e,arch:t,packageName:a[n],binaryName:e===`win32`?`rari.exe`:`rari`}}let c=null;function l(){let{packageName:r,binaryName:a}=s(),o=t(i(import.meta.url));for(;o!==t(o);){if(e(n(o,`pnpm-workspace.yaml`))){let t=n(o,`packages`,r,`bin`,a);if(e(t))return t;break}o=t(o)}try{let t=import.meta.resolve(`${r}/package.json`),o=i(new URL(`.`,t)),s=n(o,`bin`,a);if(e(s))return s;throw Error(`Binary not found at ${s}`)}catch{throw Error(`Failed to locate rari binary for ${r}. Please ensure the platform package is installed: npm install ${r}`)}}function u(){return c!=null&&c!==``||(c=l()),c}function d(){let{packageName:e}=s();return`
2
2
  To install rari for your platform, run:
3
3
 
4
4
  npm install ${e}
@@ -1 +1 @@
1
- "use client";import{d as e,i as t,p as n,r,v as i,w as a}from"../type-guards-BJXKlA6x.mjs";import{r as o}from"../navigation-transition-store-CSKrbtbK.mjs";import"./action-revalidation-kind.mjs";import{isLayoutReuseMarker as s,mergeFlightRefresh as c}from"./merge-flight-refresh.mjs";import{currentRouteLocation as l,flightRouteCache as u}from"./flight-route-cache.mjs";import{n as d,t as f}from"../preload-modules-Dv_GzGCm.mjs";import{n as p,r as m}from"../form-state-DAygOjc8.mjs";import{c as h}from"react/compiler-runtime";import*as g from"react";import{addTransitionType as _,startTransition as v,useEffect as y,useLayoutEffect as b,useRef as x,useState as S,useTransition as ee}from"react";import{Fragment as te,jsx as C,jsxs as w}from"react/jsx-runtime";import{createFromFetch as ne,createFromReadableStream as re}from"virtual:react-flight-client";const T={position:`fixed`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,padding:`24px`,background:`rgba(220, 38, 38, 0.95)`,color:`white`,borderRadius:`8px`,fontSize:`14px`,zIndex:1e4,maxWidth:`500px`,boxShadow:`0 4px 6px rgba(0, 0, 0, 0.3)`},E={padding:`8px 16px`,background:`white`,color:`#dc2626`,border:`none`,borderRadius:`4px`,cursor:`pointer`,fontWeight:`bold`,fontSize:`14px`},D={padding:`8px 16px`,background:`rgba(255, 255, 255, 0.2)`,color:`white`,border:`1px solid rgba(255, 255, 255, 0.3)`,borderRadius:`4px`,cursor:`pointer`,fontSize:`14px`},O={fetch:`Failed to fetch updated content from server.`,parse:`Failed to parse server response.`,stale:`Server returned stale content.`,network:`Network error occurred.`};function k(e){return O[e]}function ie(e){let t=h(27),{failure:n,maxRetries:r,onRefresh:i,onDismiss:a}=e,o,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=/* @__PURE__ */ C(`div`,{style:{marginBottom:`16px`,fontWeight:`bold`,fontSize:`16px`},children:`⚠️ HMR Update Failed`}),s={marginBottom:`12px`,opacity:.9},t[0]=o,t[1]=s):(o=t[0],s=t[1]);let c;t[2]===n.type?c=t[3]:(c=k(n.type),t[2]=n.type,t[3]=c);let l;t[4]===c?l=t[5]:(l=/* @__PURE__ */ C(`div`,{style:s,children:c}),t[4]=c,t[5]=l);let u;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u={marginBottom:`16px`,fontSize:`12px`,opacity:.8,fontFamily:`monospace`},t[6]=u):u=t[6];let d;t[7]===n.details?d=t[8]:(d=/* @__PURE__ */ C(`div`,{style:u,children:n.details}),t[7]=n.details,t[8]=d);let f;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(f={marginBottom:`12px`,fontSize:`12px`,opacity:.7},t[9]=f):f=t[9];let p;t[10]!==n.consecutiveFailures||t[11]!==r?(p=/* @__PURE__ */ w(`div`,{style:f,children:[`Consecutive failures: `,n.consecutiveFailures,` / `,r]}),t[10]=n.consecutiveFailures,t[11]=r,t[12]=p):p=t[12];let m;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(m={display:`flex`,gap:`8px`},t[13]=m):m=t[13];let g;t[14]===i?g=t[15]:(g=/* @__PURE__ */ C(`button`,{onClick:i,type:`button`,style:E,children:`Refresh Page`}),t[14]=i,t[15]=g);let _;t[16]===a?_=t[17]:(_=/* @__PURE__ */ C(`button`,{onClick:a,type:`button`,style:D,children:`Dismiss`}),t[16]=a,t[17]=_);let v;t[18]!==g||t[19]!==_?(v=/* @__PURE__ */ w(`div`,{style:m,children:[g,_]}),t[18]=g,t[19]=_,t[20]=v):v=t[20];let y;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(y=/* @__PURE__ */ C(`div`,{style:{marginTop:`12px`,fontSize:`11px`,opacity:.6},children:`Check the console for detailed error logs.`}),t[21]=y):y=t[21];let b;return t[22]!==v||t[23]!==l||t[24]!==d||t[25]!==p?(b=/* @__PURE__ */ w(`div`,{style:T,children:[o,l,d,p,v,y]}),t[22]=v,t[23]=l,t[24]=d,t[25]=p,t[26]=b):b=t[26],b}function ae(e){return e.historyKey!=null&&e.historyKey!==``?[`nav`,`nav-traverse`]:e.replace===!0?[`nav`,`nav-replace`]:[`nav`,`nav-forward`]}function A(e){e!=null&&typeof window<`u`&&(e.replace===!0?window.history.replaceState(e.state,``,e.url):window.history.pushState(e.state,``,e.url))}function j(e){if(e!=null&&e.url!==``)try{let t=`http://localhost/`;if(typeof window<`u`)try{t=window.location.href}catch{}let n=new URL(e.url,t);o({pathname:n.pathname,search:n.search})}catch{}}function oe(e){let{parsedPayload:t,shouldScrollToTop:n,navigationId:r,transitionTypes:i,pendingHistory:a,startTransition:o=v,currentNavigationIdRef:s,pendingScrollPayloadRef:c,setRenderKey:l,setRscPayload:u,clearHmrError:d,pendingNavigateCommittedIdRef:f}=e;o(()=>{if(s.current===r){if(i!=null)for(let e of i)_(e);A(a),j(a),l(e=>{let r=e+1;return c.current=n?{payload:t,commitKey:r}:null,r}),u(t),d(),f.current=r}})}function se(e,t,n){return e==null||e.commitKey!==n?{shouldScroll:!1,nextPending:null}:t===e.payload?{shouldScroll:!0,nextPending:null}:{shouldScroll:!1,nextPending:e}}const ce=/"timestamp":(\d+)/;function le(e){return e==null||typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`||g.isValidElement(e)||Array.isArray(e)}function ue(e){return i(e)&&typeof e.from==`string`&&typeof e.to==`string`&&typeof e.navigationId==`number`&&i(e.options)}function de(e){return i(e)&&`element`in e}function fe(e){return i(e)&&typeof e.navigationId==`number`&&typeof e.targetPath==`string`}function pe(e){if(!n(e))return e;if(i(e)&&e.status===`fulfilled`)return le(e.value)?e.value:void 0}function M(e){return g.isValidElement(e)&&(e.type===`html`||e.type===`HTML`)}function N(e){return M(e)||g.isValidElement(e)&&s(e)}function P(e,t){console.error(`[rari] AppRouter: Navigation failed:`,t),window.dispatchEvent(new CustomEvent(`rari:navigate-error`,{detail:{from:e.from,to:e.to,error:t,navigationId:e.navigationId}}))}function F(e){return e!=null&&!n(e)&&M(e)?e:null}function me(e){let t=e.pendingHistory?.url,n=t!=null&&t!==``?new URL(t,window.location.origin).hash.length>0:window.location.hash.length>0;return(e.options.historyKey==null||e.options.historyKey===``)&&!n&&e.options.scroll!==!1}async function he(e,t,n,r){let i=await I(e.element);if(r!==n)return{kind:`superseded`};if(!N(i))return{kind:`error`,error:/* @__PURE__ */ Error(`[rari] AppRouter: navigated Flight content did not resolve to an <html> document root`)};let a=F(t);if(g.isValidElement(i)&&s(i)&&a==null)return{kind:`error`,error:/* @__PURE__ */ Error(`[rari] AppRouter: layout-reuse Flight marker requires a previous <html> document`)};let o=a==null?i:c(a,i);return M(o)?{kind:`payload`,payload:{...e,element:o,rawElement:o}}:{kind:`error`,error:/* @__PURE__ */ Error(`[rari] AppRouter: layout-merged Flight content did not resolve to an <html> document root`)}}async function I(e){let t=d(e);for(let e=0;e<10&&n(t);e+=1)t=d(await t);if(n(t))throw Error(`[rari] AppRouter: Flight content did not resolve to a React node`);return t}function L({children:o,initialPayload:s,onNavigate:h}){let[_,v]=S(s),T=x(s),[E,D]=S(0),[,O]=ee(),k=x(O),A=x({x:0,y:0}),j=x(null),N=x(/* @__PURE__ */ new Map),F=x(/* @__PURE__ */ new Set),L=x(h),R=x(0),z=x(0),B=x(null),V=x(null),H=x(/* @__PURE__ */ new Map),U=x([]),W=x(null),G=x(0),[ge,K]=S(null);y(()=>{L.current=h},[h]),y(()=>{k.current=O},[O]),b(()=>{let{shouldScroll:e,nextPending:t}=se(j.current,_,E);j.current=t,e&&window.scrollTo(0,0);let n=V.current;n!=null&&(V.current=null,window.dispatchEvent(new CustomEvent(`rari:navigate-committed`,{detail:{navigationId:n}})))},[_,E]);let _e=e=>{if(e==null||n(e))return;let{pathname:t,search:r}=l();u.set(t,r,e)};y(()=>{T.current=_,_?.element!=null&&_e(_.element)},[_]),y(()=>{if(_?.element!=null){let e=_.element;if(i(e)&&`status`in e&&e.status===`rejected`){let t=e.reason;t!=null&&t!==``&&console.error(`[rari] AppRouter: Flight payload rejected:`,t)}}},[_]);let q=()=>{N.current=p()},ve=()=>{m(N.current)};b(()=>{let e=B.current;e!=null&&_===e&&(B.current=null,window.scrollTo(A.current.x,A.current.y),ve())},[_,E]);let J=(e,t,n,r)=>{G.current+=1;let i={timestamp:Date.now(),error:e,type:t,details:n,filePath:r,consecutiveFailures:G.current};U.current.push(i),U.current.length>10&&U.current.shift(),G.current>=2&&K(i),typeof window<`u`&&window.dispatchEvent(new CustomEvent(`rari:hmr-failure`,{detail:i}))},Y=()=>{setTimeout(()=>{window.location.reload()},1e3)},ye=()=>{G.current>0&&(G.current=0)},be=e=>{if(W.current==null||W.current===``)return!1;if(e===W.current)return!0;let t=ce.exec(e);if(t){let e=Number.parseInt(t[1],10);if(Date.now()-e>5e3)return!0}return!1},xe=e=>{f(e,F.current);let t=new ReadableStream({start(t){t.enqueue(new TextEncoder().encode(e)),t.close()}}),n=re(t);return{element:n,rawElement:n,flightProtocol:e}},Se=async e=>{let t=await e;if(!t.body)throw Error(`Response has no body stream`);let n=t.clone(),r=ne(Promise.resolve(t));return n.text().then(async e=>{await f(e,F.current),e!==``&&(W.current=e)}).catch(()=>{}),{element:r,rawElement:r,flightProtocol:``}},Ce=async(t,n)=>{try{let e=await t.clone().text();if(be(e))return H.current.delete(n),`stale`;await f(e,F.current);let r=await I(ne(Promise.resolve(t)));if(!M(r))throw Error(`[rari] AppRouter: refetched Flight content did not resolve to an <html> document root`);return{element:r,rawElement:r,flightProtocol:e}}catch(t){if(e(t)&&t.name===`AbortError`)throw t;let n=a(t),r=Error(`Failed to parse RSC Flight protocol: ${n.message}`,{cause:n});return J(r,`parse`,r.message,window.location.pathname),r}},we=async(t,n,r)=>{let i=t!=null&&t!==``?t:window.location.pathname,o=R.current,s=r?.commit!==!1,c=`${o}:${i}${window.location.search}:${s?`commit`:`defer`}`,l=H.current.get(c);if(l)return l;let u=(async()=>{try{let e=i+window.location.search,t=await fetch(e,{headers:{Accept:`text/x-component`,"rari-navigation-id":String(R.current)},cache:`no-store`,signal:n});if(!t.ok){let n=/* @__PURE__ */ Error(`Failed to fetch RSC data: ${t.status} ${t.statusText}`);throw J(n,`fetch`,`HTTP ${t.status} when fetching ${e}`,window.location.pathname),n}let r=await Ce(t,c);if(r===`stale`)return;if(r instanceof Error)throw r;return R.current===o&&(s&&v(r),r.flightProtocol!=null&&r.flightProtocol!==``&&(W.current=r.flightProtocol),ye()),H.current.delete(c),r}catch(t){throw H.current.delete(c),e(t)&&t.name!==`AbortError`&&!t.message.includes(`Failed to fetch RSC data`)&&!t.message.includes(`Failed to parse`)&&J(t,`network`,`Network error: ${t.message}`,window.location.pathname),a(t)}})();return H.current.set(c,u),u},Te=x(xe),Ee=x(Se),X=x(we);y(()=>{Te.current=xe,Ee.current=Se,X.current=we}),y(()=>{if(typeof window>`u`)return;let i=async e=>{if(e.rscResponsePromise){let t=await e.rscResponsePromise;if(R.current!==e.navigationId)return;let n=await Ee.current(Promise.resolve(t));return R.current===e.navigationId?n:void 0}if(e.rscResponse){let t=await Ee.current(Promise.resolve(e.rscResponse));return R.current===e.navigationId?t:void 0}if(e.rscFlightProtocol!=null&&e.rscFlightProtocol!==``)return Te.current(e.rscFlightProtocol);if(!e.isStreaming)return X.current(e.to,e.abortSignal,{commit:!1})},o=async(e,t)=>{try{let n=await he(t,T.current?.element,e.navigationId,R.current);return n.kind===`superseded`?null:n.kind===`error`?(P(e,n.error),null):R.current===e.navigationId?n.payload:null}catch(t){return P(e,a(t)),null}},s=(e,t)=>{oe({parsedPayload:t,shouldScrollToTop:me(e),navigationId:e.navigationId,transitionTypes:ae({historyKey:e.options.historyKey,replace:e.options.replace}),pendingHistory:e.pendingHistory,startTransition:k.current,currentNavigationIdRef:R,pendingScrollPayloadRef:j,setRenderKey:D,setRscPayload:v,clearHmrError:()=>{K(null)},pendingNavigateCommittedIdRef:V}),t.flightProtocol!=null&&t.flightProtocol!==``&&(W.current=t.flightProtocol),ye(),L.current&&L.current(e)},d=async t=>{try{return{kind:`payload`,payload:await i(t)}}catch(t){return e(t)&&t.name===`AbortError`?{kind:`aborted`}:{kind:`error`,error:a(t)}}},f=async e=>{let n=t(e,ue);if(!n||n.navigationId!==R.current)return;A.current={x:window.scrollX,y:window.scrollY},q();let r=await d(n);if(r.kind===`aborted`)return;if(r.kind===`error`){P(n,r.error),G.current>=3&&Y();return}let i=r.payload;if(i==null&&n.isStreaming&&R.current===n.navigationId||i==null||R.current!==n.navigationId)return;let a=await o(n,i);a!=null&&s(n,a)},p=async()=>{A.current={x:window.scrollX,y:window.scrollY},q();try{await X.current(),D(e=>e+1),K(null)}catch(e){console.error(`HMR refetch error:`,r(e,String(e))),G.current>=3&&Y()}requestAnimationFrame(()=>{window.scrollTo(A.current.x,A.current.y),ve()})},m=e=>{let r=t(e,de);if(r?.element==null||!le(r.element)&&!n(r.element))return;let{pathname:i,search:o}=l(),s=++z.current,d=R.current,f=`${i}${o}`;A.current={x:window.scrollX,y:window.scrollY},q();try{r.revalidationKind===1?u.clear():r.revalidatedPath!=null&&r.revalidatedPath!==``?u.invalidate(r.revalidatedPath,o):u.invalidate(i,o);let e=T.current?.element,t=u.getElement(i,o)??(e!=null&&n(e)?null:e??null),p=r.element;(async()=>{try{let e=await I(p);if(s!==z.current||R.current!==d)return;let{pathname:n,search:r}=l();if(`${n}${r}`!==f)return;let i=await I(c(t,e));if(s!==z.current||R.current!==d)return;let a=l();if(`${a.pathname}${a.search}`!==f)return;if(!M(i)){let e=/* @__PURE__ */ Error(`[rari] AppRouter: action flight refresh did not resolve to an <html> document root`);J(e,`parse`,`Action flight refresh failed: ${e.message}`,window.location.pathname),G.current>=3&&Y();return}let o={element:i,rawElement:i};B.current=o,g.startTransition(()=>{v(o),K(null)}),_e(i),ye()}catch(e){if(s!==z.current||R.current!==d)return;let t=a(e);J(t,`parse`,`Action flight refresh failed: ${t.message}`,window.location.pathname),G.current>=3&&Y()}})()}catch(e){let t=a(e);J(t,`parse`,`Action flight refresh failed: ${t.message}`,window.location.pathname),G.current>=3&&Y()}},h=async()=>{try{await X.current(),D(e=>e+1),K(null)}catch(e){console.error(`RSC invalidate error:`,r(e,String(e))),G.current>=3&&Y()}},_=e=>{let n=t(e,fe);n&&(F.current.clear(),R.current=n.navigationId,z.current+=1,j.current=null,B.current=null)},y=async()=>{try{await X.current(),K(null)}catch(e){console.error(`Manifest update error:`,r(e,String(e))),G.current>=3&&Y()}},b=e=>{f(e)},x=()=>{p()},S=()=>{h()},ee=()=>{y()};return window.addEventListener(`rari:navigation-start`,_),window.addEventListener(`rari:navigate`,b),window.addEventListener(`rari:app-router-rerender`,x),window.addEventListener(`rari:action-flight-refresh`,m),window.addEventListener(`rari:rsc-invalidate`,S),window.addEventListener(`rari:app-router-manifest-updated`,ee),()=>{window.removeEventListener(`rari:navigation-start`,_),window.removeEventListener(`rari:navigate`,b),window.removeEventListener(`rari:app-router-rerender`,x),window.removeEventListener(`rari:action-flight-refresh`,m),window.removeEventListener(`rari:rsc-invalidate`,S),window.removeEventListener(`rari:app-router-manifest-updated`,ee)}},[]),y(()=>{if(typeof window<`u`&&window.location.hash&&_){let e=window.location.hash.slice(1);requestAnimationFrame(()=>{requestAnimationFrame(()=>{let t=document.getElementById(e);t&&t.scrollIntoView({behavior:`instant`,block:`start`})})})}},[_]);let De=_?.element??o,Z=d(De),[Oe,ke]=S(null),Ae=pe(Z),je=n(Z)&&Ae===void 0,Q=Ae===void 0?n(Z)?null:Z:d(Ae),$=Q!=null&&!n(Q)&&M(Q)?Q:null;if($!=null&&!Object.is($,Oe)&&ke($),je){if(Oe==null)throw Error(`[rari] AppRouter: expected a resolved <html> document root`)}else if($==null)throw Error(`[rari] AppRouter: expected a resolved <html> document root`);return/* @__PURE__ */ w(te,{children:[ge!=null&&/* @__PURE__ */ C(ie,{failure:ge,maxRetries:3,onRefresh:()=>{window.location.reload()},onDismiss:()=>{K(null)}}),je?Oe:$]})}export{L as AppRouterProvider};
1
+ import{d as e,i as t,p as n,r,v as i,w as a}from"../type-guards-BJXKlA6x.mjs";import{r as o}from"../navigation-transition-store-CSKrbtbK.mjs";import"./action-revalidation-kind.mjs";import{isLayoutReuseMarker as s,mergeFlightRefresh as c,unwrapFulfilledFlightNode as l}from"./merge-flight-refresh.mjs";import{currentRouteLocation as u,flightRouteCache as d}from"./flight-route-cache.mjs";import{n as f,t as p}from"../preload-modules-Dv_GzGCm.mjs";import{n as m,r as h}from"../form-state-DAygOjc8.mjs";import{c as g}from"react/compiler-runtime";import*as _ from"react";import{addTransitionType as v,startTransition as y,useEffect as b,useLayoutEffect as x,useRef as S,useState as C,useTransition as w}from"react";import{Fragment as ee,jsx as T,jsxs as E}from"react/jsx-runtime";import{createFromFetch as te,createFromReadableStream as ne}from"virtual:react-flight-client";const D={position:`fixed`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,padding:`24px`,background:`rgba(220, 38, 38, 0.95)`,color:`white`,borderRadius:`8px`,fontSize:`14px`,zIndex:1e4,maxWidth:`500px`,boxShadow:`0 4px 6px rgba(0, 0, 0, 0.3)`},O={padding:`8px 16px`,background:`white`,color:`#dc2626`,border:`none`,borderRadius:`4px`,cursor:`pointer`,fontWeight:`bold`,fontSize:`14px`},k={padding:`8px 16px`,background:`rgba(255, 255, 255, 0.2)`,color:`white`,border:`1px solid rgba(255, 255, 255, 0.3)`,borderRadius:`4px`,cursor:`pointer`,fontSize:`14px`},A={fetch:`Failed to fetch updated content from server.`,parse:`Failed to parse server response.`,stale:`Server returned stale content.`,network:`Network error occurred.`};function j(e){return A[e]}function re(e){let t=g(27),{failure:n,maxRetries:r,onRefresh:i,onDismiss:a}=e,o,s;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(o=/* @__PURE__ */ T(`div`,{style:{marginBottom:`16px`,fontWeight:`bold`,fontSize:`16px`},children:`⚠️ HMR Update Failed`}),s={marginBottom:`12px`,opacity:.9},t[0]=o,t[1]=s):(o=t[0],s=t[1]);let c;t[2]===n.type?c=t[3]:(c=j(n.type),t[2]=n.type,t[3]=c);let l;t[4]===c?l=t[5]:(l=/* @__PURE__ */ T(`div`,{style:s,children:c}),t[4]=c,t[5]=l);let u;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(u={marginBottom:`16px`,fontSize:`12px`,opacity:.8,fontFamily:`monospace`},t[6]=u):u=t[6];let d;t[7]===n.details?d=t[8]:(d=/* @__PURE__ */ T(`div`,{style:u,children:n.details}),t[7]=n.details,t[8]=d);let f;t[9]===Symbol.for(`react.memo_cache_sentinel`)?(f={marginBottom:`12px`,fontSize:`12px`,opacity:.7},t[9]=f):f=t[9];let p;t[10]!==n.consecutiveFailures||t[11]!==r?(p=/* @__PURE__ */ E(`div`,{style:f,children:[`Consecutive failures: `,n.consecutiveFailures,` / `,r]}),t[10]=n.consecutiveFailures,t[11]=r,t[12]=p):p=t[12];let m;t[13]===Symbol.for(`react.memo_cache_sentinel`)?(m={display:`flex`,gap:`8px`},t[13]=m):m=t[13];let h;t[14]===i?h=t[15]:(h=/* @__PURE__ */ T(`button`,{onClick:i,type:`button`,style:O,children:`Refresh Page`}),t[14]=i,t[15]=h);let _;t[16]===a?_=t[17]:(_=/* @__PURE__ */ T(`button`,{onClick:a,type:`button`,style:k,children:`Dismiss`}),t[16]=a,t[17]=_);let v;t[18]!==h||t[19]!==_?(v=/* @__PURE__ */ E(`div`,{style:m,children:[h,_]}),t[18]=h,t[19]=_,t[20]=v):v=t[20];let y;t[21]===Symbol.for(`react.memo_cache_sentinel`)?(y=/* @__PURE__ */ T(`div`,{style:{marginTop:`12px`,fontSize:`11px`,opacity:.6},children:`Check the console for detailed error logs.`}),t[21]=y):y=t[21];let b;return t[22]!==v||t[23]!==l||t[24]!==d||t[25]!==p?(b=/* @__PURE__ */ E(`div`,{style:D,children:[o,l,d,p,v,y]}),t[22]=v,t[23]=l,t[24]=d,t[25]=p,t[26]=b):b=t[26],b}function ie(e){return e.historyKey!=null&&e.historyKey!==``?[`nav`,`nav-traverse`]:e.replace===!0?[`nav`,`nav-replace`]:[`nav`,`nav-forward`]}function M(e){e!=null&&typeof window<`u`&&(e.replace===!0?window.history.replaceState(e.state,``,e.url):window.history.pushState(e.state,``,e.url))}function N(e){if(e!=null&&e.url!==``)try{let t=`http://localhost/`;if(typeof window<`u`)try{t=window.location.href}catch{}let n=new URL(e.url,t);o({pathname:n.pathname,search:n.search})}catch{}}function ae(e){let{parsedPayload:t,shouldScrollToTop:n,navigationId:r,transitionTypes:i,pendingHistory:a,startTransition:o=y,currentNavigationIdRef:s,pendingScrollPayloadRef:c,setRenderKey:l,setRscPayload:u,clearHmrError:d,pendingNavigateCommittedIdRef:f}=e;o(()=>{if(s.current===r){if(i!=null)for(let e of i)v(e);M(a),N(a),l(e=>{let r=e+1;return c.current=n?{payload:t,commitKey:r}:null,r}),u(t),d(),f.current=r}})}function oe(e,t,n){return e==null||e.commitKey!==n?{shouldScroll:!1,nextPending:null}:t===e.payload?{shouldScroll:!0,nextPending:null}:{shouldScroll:!1,nextPending:e}}function P(e){return _.isValidElement(e)&&(e.type===`html`||e.type===`HTML`)}function F(e){if(e==null)return null;if(n(e)){let t=l(e);return t===e||!P(t)?null:t}return P(e)?e:null}const se=/"timestamp":(\d+)/;function ce(e){return e==null||typeof e==`string`||typeof e==`number`||typeof e==`boolean`||typeof e==`bigint`||_.isValidElement(e)||Array.isArray(e)}function le(e){return i(e)&&typeof e.from==`string`&&typeof e.to==`string`&&typeof e.navigationId==`number`&&i(e.options)}function ue(e){return i(e)&&`element`in e}function de(e){return i(e)&&typeof e.navigationId==`number`&&typeof e.targetPath==`string`}function fe(e){if(!n(e))return e;if(i(e)&&e.status===`fulfilled`)return ce(e.value)?e.value:void 0}function I(e){return _.isValidElement(e)&&(e.type===`html`||e.type===`HTML`)}function L(e){return I(e)||_.isValidElement(e)&&s(e)}function pe(e,t){console.error(`[rari] AppRouter: Navigation failed:`,t),window.dispatchEvent(new CustomEvent(`rari:navigate-error`,{detail:{from:e.from,to:e.to,error:t,navigationId:e.navigationId}}))}function me(e){let t=e.pendingHistory?.url,n=t!=null&&t!==``?new URL(t,window.location.origin).hash.length>0:window.location.hash.length>0;return(e.options.historyKey==null||e.options.historyKey===``)&&!n&&e.options.scroll!==!1}async function he(e,t,n,r){let i=await R(e.element);if(r!==n)return{kind:`superseded`};if(!L(i))return{kind:`error`,error:/* @__PURE__ */ Error(`[rari] AppRouter: navigated Flight content did not resolve to an <html> document root`)};let a=F(t);if(_.isValidElement(i)&&s(i)&&a==null)return{kind:`error`,error:/* @__PURE__ */ Error(`[rari] AppRouter: layout-reuse Flight marker requires a previous <html> document`)};let o=a==null?i:c(a,i);return I(o)?{kind:`payload`,payload:{...e,element:o,rawElement:o}}:{kind:`error`,error:/* @__PURE__ */ Error(`[rari] AppRouter: layout-merged Flight content did not resolve to an <html> document root`)}}async function R(e){let t=f(e);for(let e=0;e<10&&n(t);e+=1)t=f(await t);if(n(t))throw Error(`[rari] AppRouter: Flight content did not resolve to a React node`);return t}function z({children:o,initialPayload:s,onNavigate:l}){let[g,v]=C(s),y=S(s),[D,O]=C(0),[,k]=w(),A=S(k),j=S({x:0,y:0}),M=S(null),N=S(/* @__PURE__ */ new Map),P=S(/* @__PURE__ */ new Set),F=S(l),L=S(0),z=S(0),B=S(null),V=S(null),H=S(/* @__PURE__ */ new Map),U=S([]),W=S(null),G=S(0),[ge,K]=C(null);b(()=>{F.current=l},[l]),b(()=>{A.current=k},[k]),x(()=>{let{shouldScroll:e,nextPending:t}=oe(M.current,g,D);M.current=t,e&&window.scrollTo(0,0);let n=V.current;n!=null&&(V.current=null,window.dispatchEvent(new CustomEvent(`rari:navigate-committed`,{detail:{navigationId:n}})))},[g,D]);let _e=e=>{if(e==null||n(e))return;let{pathname:t,search:r}=u();d.set(t,r,e)};b(()=>{y.current=g,g?.element!=null&&_e(g.element)},[g]),b(()=>{if(g?.element!=null){let e=g.element;if(i(e)&&`status`in e&&e.status===`rejected`){let t=e.reason;t!=null&&t!==``&&console.error(`[rari] AppRouter: Flight payload rejected:`,t)}}},[g]);let q=()=>{N.current=m()},ve=()=>{h(N.current)};x(()=>{let e=B.current;e!=null&&g===e&&(B.current=null,window.scrollTo(j.current.x,j.current.y),ve())},[g,D]);let J=(e,t,n,r)=>{G.current+=1;let i={timestamp:Date.now(),error:e,type:t,details:n,filePath:r,consecutiveFailures:G.current};U.current.push(i),U.current.length>10&&U.current.shift(),G.current>=2&&K(i),typeof window<`u`&&window.dispatchEvent(new CustomEvent(`rari:hmr-failure`,{detail:i}))},Y=()=>{setTimeout(()=>{window.location.reload()},1e3)},ye=()=>{G.current>0&&(G.current=0)},be=e=>{if(W.current==null||W.current===``)return!1;if(e===W.current)return!0;let t=se.exec(e);if(t){let e=Number.parseInt(t[1],10);if(Date.now()-e>5e3)return!0}return!1},xe=e=>{p(e,P.current);let t=new ReadableStream({start(t){t.enqueue(new TextEncoder().encode(e)),t.close()}}),n=ne(t);return{element:n,rawElement:n,flightProtocol:e}},Se=async e=>{let t=await e;if(!t.body)throw Error(`Response has no body stream`);let n=t.clone(),r=te(Promise.resolve(t));return n.text().then(async e=>{await p(e,P.current),e!==``&&(W.current=e)}).catch(()=>{}),{element:r,rawElement:r,flightProtocol:``}},Ce=async(t,n)=>{try{let e=await t.clone().text();if(be(e))return H.current.delete(n),`stale`;await p(e,P.current);let r=await R(te(Promise.resolve(t)));if(!I(r))throw Error(`[rari] AppRouter: refetched Flight content did not resolve to an <html> document root`);return{element:r,rawElement:r,flightProtocol:e}}catch(t){if(e(t)&&t.name===`AbortError`)throw t;let n=a(t),r=Error(`Failed to parse RSC Flight protocol: ${n.message}`,{cause:n});return J(r,`parse`,r.message,window.location.pathname),r}},we=async(t,n,r)=>{let i=t!=null&&t!==``?t:window.location.pathname,o=L.current,s=r?.commit!==!1,c=`${o}:${i}${window.location.search}:${s?`commit`:`defer`}`,l=H.current.get(c);if(l)return l;let u=(async()=>{try{let e=i+window.location.search,t=await fetch(e,{headers:{Accept:`text/x-component`,"rari-navigation-id":String(L.current)},cache:`no-store`,signal:n});if(!t.ok){let n=/* @__PURE__ */ Error(`Failed to fetch RSC data: ${t.status} ${t.statusText}`);throw J(n,`fetch`,`HTTP ${t.status} when fetching ${e}`,window.location.pathname),n}let r=await Ce(t,c);if(r===`stale`)return;if(r instanceof Error)throw r;return L.current===o&&(s&&v(r),r.flightProtocol!=null&&r.flightProtocol!==``&&(W.current=r.flightProtocol),ye()),H.current.delete(c),r}catch(t){throw H.current.delete(c),e(t)&&t.name!==`AbortError`&&!t.message.includes(`Failed to fetch RSC data`)&&!t.message.includes(`Failed to parse`)&&J(t,`network`,`Network error: ${t.message}`,window.location.pathname),a(t)}})();return H.current.set(c,u),u},Te=S(xe),Ee=S(Se),X=S(we);b(()=>{Te.current=xe,Ee.current=Se,X.current=we}),b(()=>{if(typeof window>`u`)return;let i=async e=>{if(e.rscResponsePromise){let t=await e.rscResponsePromise;if(L.current!==e.navigationId)return;let n=await Ee.current(Promise.resolve(t));return L.current===e.navigationId?n:void 0}if(e.rscResponse){let t=await Ee.current(Promise.resolve(e.rscResponse));return L.current===e.navigationId?t:void 0}if(e.rscFlightProtocol!=null&&e.rscFlightProtocol!==``)return Te.current(e.rscFlightProtocol);if(!e.isStreaming)return X.current(e.to,e.abortSignal,{commit:!1})},o=async(e,t)=>{try{let n=await he(t,y.current?.element,e.navigationId,L.current);return n.kind===`superseded`?null:n.kind===`error`?(pe(e,n.error),null):L.current===e.navigationId?n.payload:null}catch(t){return pe(e,a(t)),null}},s=(e,t)=>{ae({parsedPayload:t,shouldScrollToTop:me(e),navigationId:e.navigationId,transitionTypes:ie({historyKey:e.options.historyKey,replace:e.options.replace}),pendingHistory:e.pendingHistory,startTransition:A.current,currentNavigationIdRef:L,pendingScrollPayloadRef:M,setRenderKey:O,setRscPayload:v,clearHmrError:()=>{K(null)},pendingNavigateCommittedIdRef:V}),t.flightProtocol!=null&&t.flightProtocol!==``&&(W.current=t.flightProtocol),ye(),F.current&&F.current(e)},l=async t=>{try{return{kind:`payload`,payload:await i(t)}}catch(t){return e(t)&&t.name===`AbortError`?{kind:`aborted`}:{kind:`error`,error:a(t)}}},f=async e=>{let n=t(e,le);if(!n||n.navigationId!==L.current)return;j.current={x:window.scrollX,y:window.scrollY},q();let r=await l(n);if(r.kind===`aborted`)return;if(r.kind===`error`){pe(n,r.error),G.current>=3&&Y();return}let i=r.payload;if(i==null&&n.isStreaming&&L.current===n.navigationId||i==null||L.current!==n.navigationId)return;let a=await o(n,i);a!=null&&s(n,a)},p=async()=>{j.current={x:window.scrollX,y:window.scrollY},q();try{await X.current(),O(e=>e+1),K(null)}catch(e){console.error(`HMR refetch error:`,r(e,String(e))),G.current>=3&&Y()}requestAnimationFrame(()=>{window.scrollTo(j.current.x,j.current.y),ve()})},m=e=>{let r=t(e,ue);if(r?.element==null||!ce(r.element)&&!n(r.element))return;let{pathname:i,search:o}=u(),s=++z.current,l=L.current,f=`${i}${o}`;j.current={x:window.scrollX,y:window.scrollY},q();try{r.revalidationKind===1?d.clear():r.revalidatedPath!=null&&r.revalidatedPath!==``?d.invalidate(r.revalidatedPath,o):d.invalidate(i,o);let e=y.current?.element,t=d.getElement(i,o)??(e!=null&&n(e)?null:e??null),p=r.element;(async()=>{try{let e=await R(p);if(s!==z.current||L.current!==l)return;let{pathname:n,search:r}=u();if(`${n}${r}`!==f)return;let i=await R(c(t,e));if(s!==z.current||L.current!==l)return;let a=u();if(`${a.pathname}${a.search}`!==f)return;if(!I(i)){let e=/* @__PURE__ */ Error(`[rari] AppRouter: action flight refresh did not resolve to an <html> document root`);J(e,`parse`,`Action flight refresh failed: ${e.message}`,window.location.pathname),G.current>=3&&Y();return}let o={element:i,rawElement:i};B.current=o,_.startTransition(()=>{v(o),K(null)}),_e(i),ye()}catch(e){if(s!==z.current||L.current!==l)return;let t=a(e);J(t,`parse`,`Action flight refresh failed: ${t.message}`,window.location.pathname),G.current>=3&&Y()}})()}catch(e){let t=a(e);J(t,`parse`,`Action flight refresh failed: ${t.message}`,window.location.pathname),G.current>=3&&Y()}},h=async()=>{try{await X.current(),O(e=>e+1),K(null)}catch(e){console.error(`RSC invalidate error:`,r(e,String(e))),G.current>=3&&Y()}},g=e=>{let n=t(e,de);n&&(P.current.clear(),L.current=n.navigationId,z.current+=1,M.current=null,B.current=null)},b=async()=>{try{await X.current(),K(null)}catch(e){console.error(`Manifest update error:`,r(e,String(e))),G.current>=3&&Y()}},x=e=>{f(e)},S=()=>{p()},C=()=>{h()},w=()=>{b()};return window.addEventListener(`rari:navigation-start`,g),window.addEventListener(`rari:navigate`,x),window.addEventListener(`rari:app-router-rerender`,S),window.addEventListener(`rari:action-flight-refresh`,m),window.addEventListener(`rari:rsc-invalidate`,C),window.addEventListener(`rari:app-router-manifest-updated`,w),()=>{window.removeEventListener(`rari:navigation-start`,g),window.removeEventListener(`rari:navigate`,x),window.removeEventListener(`rari:app-router-rerender`,S),window.removeEventListener(`rari:action-flight-refresh`,m),window.removeEventListener(`rari:rsc-invalidate`,C),window.removeEventListener(`rari:app-router-manifest-updated`,w)}},[]),b(()=>{if(typeof window<`u`&&window.location.hash&&g){let e=window.location.hash.slice(1);requestAnimationFrame(()=>{requestAnimationFrame(()=>{let t=document.getElementById(e);t&&t.scrollIntoView({behavior:`instant`,block:`start`})})})}},[g]);let De=g?.element??o,Z=f(De),[Oe,ke]=C(null),Ae=fe(Z),je=n(Z)&&Ae===void 0,Q=Ae===void 0?n(Z)?null:Z:f(Ae),$=Q!=null&&!n(Q)&&I(Q)?Q:null;if($!=null&&!Object.is($,Oe)&&ke($),je){if(Oe==null)throw Error(`[rari] AppRouter: expected a resolved <html> document root`)}else if($==null)throw Error(`[rari] AppRouter: expected a resolved <html> document root`);return/* @__PURE__ */ E(ee,{children:[ge!=null&&/* @__PURE__ */ T(re,{failure:ge,maxRetries:3,onRefresh:()=>{window.location.reload()},onDismiss:()=>{K(null)}}),je?Oe:$]})}export{z as AppRouterProvider};
@@ -1,7 +1,7 @@
1
- "use client";import{i as e,t}from"../navigate-DuyUa6qD.mjs";import{d as n,h as r,i,n as a,v as o}from"../type-guards-BJXKlA6x.mjs";import{r as s}from"../path-CTEC1xmy.mjs";import{t as ee}from"../serialize-router-state-uOGGpmBr.mjs";import{t as c}from"../form-state-DAygOjc8.mjs";import{c as l}from"react/compiler-runtime";import{useEffect as u,useLayoutEffect as d,useRef as f,useState as te}from"react";function p(e,t,n={}){let r=null,i=0,a=0,o=null,s=null,{leading:ee=!1,trailing:c=!0,maxWait:l}=n;function u(t){let n=o,r=s;o=null,s=null,a=t,e.apply(r,n)}function d(e){let n=e-i,r=e-a;return i===0||n>=t||n<0||l!==void 0&&r>=l}function f(){let e=Date.now();if(d(e)){p(e);return}let n=e-i,o=e-a,s=t-n,ee=l===void 0?1/0:l-o;r=setTimeout(f,Math.min(s,ee))}function te(e){a=e,r=setTimeout(f,t),ee&&u(e)}function p(e){if(r=null,c&&o){u(e);return}o=null,s=null}function m(){r!==null&&clearTimeout(r),a=0,o=null,i=0,s=null,r=null}function h(){r!==null&&p(Date.now())}function g(){return r!==null}function _(...e){let n=Date.now(),a=d(n);if(o=e,s=this,i=n,a){if(r===null){te(i);return}
1
+ import{i as e,t}from"../navigate-DuyUa6qD.mjs";import{d as n,h as r,i,n as a,v as o}from"../type-guards-BJXKlA6x.mjs";import{r as s}from"../path-CTEC1xmy.mjs";import{t as ee}from"../serialize-router-state-uOGGpmBr.mjs";import{t as c}from"../form-state-DAygOjc8.mjs";import{c as l}from"react/compiler-runtime";import{useEffect as u,useLayoutEffect as d,useRef as f,useState as p}from"react";function m(e,t,n={}){let r=null,i=0,a=0,o=null,s=null,{leading:ee=!1,trailing:c=!0,maxWait:l}=n;function u(t){let n=o,r=s;o=null,s=null,a=t,e.apply(r,n)}function d(e){let n=e-i,r=e-a;return i===0||n>=t||n<0||l!==void 0&&r>=l}function f(){let e=Date.now();if(d(e)){m(e);return}let n=e-i,o=e-a,s=t-n,ee=l===void 0?1/0:l-o;r=setTimeout(f,Math.min(s,ee))}function p(e){a=e,r=setTimeout(f,t),ee&&u(e)}function m(e){if(r=null,c&&o){u(e);return}o=null,s=null}function h(){r!==null&&clearTimeout(r),a=0,o=null,i=0,s=null,r=null}function g(){r!==null&&m(Date.now())}function _(){return r!==null}function v(...e){let n=Date.now(),a=d(n);if(o=e,s=this,i=n,a){if(r===null){p(i);return}
2
2
  /* v8 ignore start - edge case: isInvoking true with existing timeout and maxWait defined */
3
- if(l!==void 0){r=setTimeout(f,t),u(i);return}}r??=setTimeout(f,t)}return _.cancel=m,_.flush=h,_.pending=g,_}const m=/fetch|networkerror|load failed/i;function h(e,t){return{type:`abort`,message:`Navigation was cancelled`,originalError:e,url:t,timestamp:Date.now(),retryable:!1}}function g(e,t){return{type:`timeout`,message:`Navigation request timed out`,originalError:e,url:t,timestamp:Date.now(),retryable:!0}}function _(e,t,n){if(t===404)return{type:`not-found`,message:`Page not found`,originalError:e,statusCode:t,url:n,timestamp:Date.now(),retryable:!1};if(t>=500)return{type:`server-error`,message:`Server error: ${t}`,originalError:e,statusCode:t,url:n,timestamp:Date.now(),retryable:!0};let r=t===408||t===429;return{type:`fetch-error`,message:`HTTP error: ${t}`,originalError:e,statusCode:t,url:n,timestamp:Date.now(),retryable:r}}function v(e,t){return{type:`network-error`,message:`Network error - check your connection`,originalError:e,url:t,timestamp:Date.now(),retryable:!0}}function y(e,t){return{type:`parse-error`,message:`Failed to parse server response`,
3
+ if(l!==void 0){r=setTimeout(f,t),u(i);return}}r??=setTimeout(f,t)}return v.cancel=h,v.flush=g,v.pending=_,v}const h=/fetch|networkerror|load failed/i;function g(e,t){return{type:`abort`,message:`Navigation was cancelled`,originalError:e,url:t,timestamp:Date.now(),retryable:!1}}function _(e,t){return{type:`timeout`,message:`Navigation request timed out`,originalError:e,url:t,timestamp:Date.now(),retryable:!0}}function v(e,t,n){if(t===404)return{type:`not-found`,message:`Page not found`,originalError:e,statusCode:t,url:n,timestamp:Date.now(),retryable:!1};if(t>=500)return{type:`server-error`,message:`Server error: ${t}`,originalError:e,statusCode:t,url:n,timestamp:Date.now(),retryable:!0};let r=t===408||t===429;return{type:`fetch-error`,message:`HTTP error: ${t}`,originalError:e,statusCode:t,url:n,timestamp:Date.now(),retryable:r}}function y(e,t){return{type:`network-error`,message:`Network error - check your connection`,originalError:e,url:t,timestamp:Date.now(),retryable:!0}}function b(e,t){return{type:`parse-error`,message:`Failed to parse server response`,
4
4
  /* v8 ignore next - defensive check for non-Error values from parse-related condition */
5
- originalError:a(e),url:t,timestamp:Date.now(),retryable:!1}}function b(e,t){return{type:`fetch-error`,message:a(e)?.message??`Unknown error occurred`,originalError:a(e),url:t,timestamp:Date.now(),retryable:!1}}function x(e,t){if(n(e)&&e.name===`AbortError`)return h(e,t);if(n(e)&&(e.name===`TimeoutError`||e.message.includes(`timeout`)))return g(e,t);if(n(e)&&`status`in e){let n=e.status;return typeof n==`number`?_(e,n,t):b(e,t)}return e instanceof TypeError&&m.test(e.message)?v(e,t):e instanceof SyntaxError||n(e)&&e.message.includes(`parse`)?y(e,t):b(e,t)}var ne=class{onError;constructor(e={}){
5
+ originalError:a(e),url:t,timestamp:Date.now(),retryable:!1}}function x(e,t){return{type:`fetch-error`,message:a(e)?.message??`Unknown error occurred`,originalError:a(e),url:t,timestamp:Date.now(),retryable:!1}}function S(e,t){if(n(e)&&e.name===`AbortError`)return g(e,t);if(n(e)&&(e.name===`TimeoutError`||e.message.includes(`timeout`)))return _(e,t);if(n(e)&&`status`in e){let n=e.status;return typeof n==`number`?v(e,n,t):x(e,t)}return e instanceof TypeError&&h.test(e.message)?y(e,t):e instanceof SyntaxError||n(e)&&e.message.includes(`parse`)?b(e,t):x(e,t)}var te=class{onError;constructor(e={}){
6
6
  /* v8 ignore next - default no-op callback */
7
- this.onError=e.onError??(()=>{})}handleError(e,t){let n=x(e,t);return this.onError(n),console.error(`[rari] Navigation:`,n.type,n.message,{url:n.url,statusCode:n.statusCode,retryable:n.retryable}),n}};function re(e,t){try{let n=t!=null&&t!==``?t:window.location.origin,r=typeof URL.parse==`function`?URL.parse(e,n):new URL(e,n);return r!=null&&r.origin!==n}catch{return!1}}function ie(e){try{let t=typeof URL.parse==`function`?URL.parse(e,window.location.origin):new URL(e,window.location.origin);return t==null?e:`${t.pathname}${t.search}${t.hash}`}catch{return e}}var ae=class{stateHistory;routeAccessOrder;maxHistorySize;scrollableSelector;constructor(e={}){this.stateHistory=/* @__PURE__ */ new Map,this.routeAccessOrder=[],this.maxHistorySize=e.maxHistorySize!=null&&e.maxHistorySize!==0?e.maxHistorySize:50,this.scrollableSelector=e.scrollableSelector!=null&&e.scrollableSelector!==``?e.scrollableSelector:`[data-scrollable], .scrollable, [style*="overflow"]`}captureState(e){let t={scrollPositions:this.captureScrollPositions(),formData:this.captureFormData(),focusedElement:this.captureFocusedElement()};return this.storeState(e,t),t}captureScrollPositions(){let e=/* @__PURE__ */ new Map;try{e.set(`window`,{x:window.scrollX,y:window.scrollY,element:`window`}),document.querySelectorAll(this.scrollableSelector).forEach((t,n)=>{if(t instanceof HTMLElement){let r=t.id||`scrollable-${n}`;(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)&&e.set(r,{x:t.scrollLeft,y:t.scrollTop,element:r})}})}catch{}return e}captureFormData(){let e=/* @__PURE__ */ new Map;try{document.querySelectorAll(`form`).forEach((t,n)=>{let r=t.id||t.name||`form-${n}`,i=new FormData(t);i.entries().next().done||e.set(r,i)})}catch{}return e}captureFocusedElement(){try{let e=document.activeElement;if(e&&e!==document.body){if(e.id)return`#${e.id}`;if((e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&e.name)return`[name="${e.name}"]`}}catch{}return null}storeState(e,t){let n=this.routeAccessOrder.indexOf(e);for(n!==-1&&this.routeAccessOrder.splice(n,1),this.routeAccessOrder.push(e),this.stateHistory.set(e,t);this.routeAccessOrder.length>this.maxHistorySize;){let e=this.routeAccessOrder.shift();e!=null&&e!==``&&this.stateHistory.delete(e)}}restoreState(e){let t=this.stateHistory.get(e);if(!t)return!1;let n=!0;return this.restoreScrollPositions(t.scrollPositions)||(n=!1),this.restoreFormData(t.formData)||(n=!1),t.focusedElement!=null&&t.focusedElement!==``&&this.restoreFocus(t.focusedElement),n}restoreScrollPositions(e){let t=!0;try{e.forEach((e,n)=>{try{if(n===`window`)window.scrollTo(e.x,e.y);else{let r=document.getElementById(n)??document.querySelector(`[data-scrollable-id="${n}"]`);r instanceof HTMLElement?(r.scrollLeft=e.x,r.scrollTop=e.y):t=!1}}catch{t=!1}})}catch(e){console.error(`[rari] Router: Failed to restore scroll positions:`,e),t=!1}return t}restoreFormData(e){let t=!0;try{e.forEach((e,n)=>{try{let r=document.getElementById(n),i=r instanceof HTMLFormElement?r:document.querySelector(`form[name="${n}"]`)??document.querySelectorAll(`form`)[Number.parseInt(n.replace(`form-`,``),10)];i instanceof HTMLFormElement&&c(i,e)||(t=!1)}catch{t=!1}})}catch(e){console.error(`[rari] Router: Failed to restore form data:`,e),t=!1}return t}restoreFocus(e){try{let t=document.querySelector(e);t instanceof HTMLElement&&requestAnimationFrame(()=>{try{t.focus()}catch{}})}catch{}}};function S(e){return o(e)&&typeof e.navigationId==`number`}function C(e){return o(e)&&typeof e.navigationId==`number`&&`error`in e}async function oe(e,t){return t.aborted?{error:new DOMException(`Aborted`,`AbortError`)}:new Promise(n=>{function r(){window.removeEventListener(`rari:navigate-committed`,a),window.removeEventListener(`rari:navigate-error`,o),t.removeEventListener(`abort`,s)}function a(t){i(t,S)?.navigationId===e&&(r(),n(`committed`))}function o(t){let a=i(t,C);a?.navigationId===e&&(r(),n({error:a.error}))}function s(){r(),n({error:new DOMException(`Aborted`,`AbortError`)})}window.addEventListener(`rari:navigate-committed`,a),window.addEventListener(`rari:navigate-error`,o),t.addEventListener(`abort`,s,{once:!0})})}function w(i){let a=l(35),{children:o,initialRoute:c}=i,m;a[0]===c?m=a[1]:(m=()=>({currentRoute:typeof window<`u`?`${window.location.pathname}${window.location.search}`:s(c),navigationId:0,error:null}),a[0]=c,a[1]=m);let[h,g]=te(m),_=f(null),v=f(!0),y;a[2]===c?y=a[3]:(y=typeof window<`u`?`${window.location.pathname}${window.location.search}`:s(c),a[2]=c,a[3]=y);let b=f(y),x;a[4]===c?x=a[5]:(x=typeof window<`u`?`${window.location.pathname}${window.location.search}${window.location.hash}`:s(c),a[4]=c,a[5]=x);let S=f(x),C=f(0),w;a[6]===Symbol.for(`react.memo_cache_sentinel`)?(w=new ne({onError:le}),a[6]=w):w=a[6];let ue=f(w),T;a[7]===Symbol.for(`react.memo_cache_sentinel`)?(T=/* @__PURE__ */ new Map,a[7]=T):T=a[7];let E=f(T),D;a[8]===Symbol.for(`react.memo_cache_sentinel`)?(D=new ae({maxHistorySize:50}),a[8]=D):D=a[8];let O=f(D),de=ce,k;a[9]===Symbol.for(`react.memo_cache_sentinel`)?(k=()=>{_.current&&=(_.current.abort(),null)},a[9]=k):k=a[9];let fe=k,A;a[10]===Symbol.for(`react.memo_cache_sentinel`)?(A=()=>{for(let[,e]of E.current.entries())e.abortController.abort();E.current.clear()},a[10]=A):A=a[10];let pe=A,j;a[11]===h?j=a[12]:(j=(e,t)=>{E.current.delete(e),v.current&&h.navigationId===t&&g(se)},a[11]=h,a[12]=j);let M=j,N;a[13]===Symbol.for(`react.memo_cache_sentinel`)?(N=(e,t)=>{let n=t===void 0?{}:t,r=`${window.location.pathname}${window.location.search}`,i=e?`${r}#${e}`:r;if(e){let t=document.getElementById(e);t&&t.scrollIntoView({behavior:`smooth`,block:`start`})}i!==`${window.location.pathname}${window.location.search}${window.location.hash}`&&(n.replace?window.history.replaceState(window.history.state,``,i):window.history.pushState(window.history.state,``,i)),S.current=i},a[13]=N):N=a[13];let me=N,P;if(a[14]===Symbol.for(`react.memo_cache_sentinel`)){let e=(e,t,n)=>{n.historyKey!=null&&n.historyKey!==``?requestAnimationFrame(()=>{O.current.restoreState(e)}):t&&requestAnimationFrame(()=>{let e=n=>{let r=n===void 0?0:n,i=document.getElementById(t);i?i.scrollIntoView({behavior:`smooth`,block:`start`}):r<10&&setTimeout(e,50,r+1)};e()})};P=(t,n,r,i,a)=>{v.current&&C.current===i&&(b.current=t,S.current=a,g(e=>({...e,currentRoute:t,navigationId:i,error:null})),e(t,n,r))},a[14]=P}else P=a[14];let he=P,F;a[15]===M?F=a[16]:(F=(e,t,r,i,a)=>{let o=a===void 0?{}:a;if(n(e)&&e.name===`AbortError`){M(t,r);return}let s=ue.current.handleError(e,t);v.current&&(g(e=>({...e,error:s})),window.history.replaceState(window.history.state,``,i)),E.current.delete(t),o.emitEvent!==!1&&window.dispatchEvent(new CustomEvent(`rari:navigate-error`,{detail:{from:i,to:t,error:s,navigationId:r}}))},a[15]=M,a[16]=F);let I=F,L;a[17]!==M||a[18]!==I?(L=async(e,t)=>{let n=t===void 0?{}:t;if(!e||typeof e!=`string`)return;let[r,i]=e.includes(`#`)?e.split(`#`):[e,``],a=s(r);if(a===b.current){me(i,{replace:n.replace===!0});return}let o=E.current.get(a);if(o)return o.promise;pe(),fe();let c=new AbortController;_.current=c,C.current+=1;let l=C.current;window.dispatchEvent(new CustomEvent(`rari:navigation-start`,{detail:{navigationId:l,targetPath:a}}));let u=(async()=>{let e=S.current;try{(n.historyKey==null||n.historyKey===``)&&O.current.captureState(b.current);let t=n.historyKey!=null&&n.historyKey!==``?n.historyKey:de(),r=window.location.origin+a,o={route:a,navigationId:l,scrollPosition:{x:window.scrollX,y:window.scrollY},timestamp:Date.now(),key:t},s=await fetch(r,{headers:{Accept:`text/x-component`,"rari-navigation-id":String(l),"rari-router-state":ee()},cache:`no-store`,signal:c.signal});if(!s.ok&&s.status!==404){I(/* @__PURE__ */ Error(`Failed to fetch: ${s.status}`),a,l,e);return}if(c.signal.aborted){M(a,l);return}let u=new URL(s.url),d=u.pathname,f=`${u.pathname}${u.search}`,te={...o,route:f},p=`${f}${i?`#${i}`:``}`;if(C.current!==l)return;let m=oe(l,c.signal);if(window.dispatchEvent(new CustomEvent(`rari:navigate`,{detail:{from:e,to:d,navigationId:l,options:n,abortSignal:c.signal,rscResponse:s,pendingHistory:{url:p,state:te,replace:n.replace===!0}}})),C.current!==l){c.abort();return}let h=await m;if(C.current!==l)return;if(h!==`committed`){I(h.error,a,l,e,{emitEvent:!1});return}he(f,i,n,l,p),E.current.delete(a)}catch(t){I(t,a,l,e)}})();return E.current.set(a,{targetPath:a,navigationId:l,promise:u,abortController:c}),u},a[17]=M,a[18]=I,a[19]=L):L=a[19];let R=L,z=f(R),B;a[20]===R?B=a[21]:(B=()=>(z.current=R,()=>{z.current=null}),a[20]=R,a[21]=B),d(B);let V=f(null),H,U;a[22]===Symbol.for(`react.memo_cache_sentinel`)?(H=()=>{V.current??=p((e,t)=>{z.current?.(e,t)},50,{leading:!0,trailing:!0,maxWait:200})},U=[],a[22]=H,a[23]=U):(H=a[22],U=a[23]),d(H,U);let W;a[24]===Symbol.for(`react.memo_cache_sentinel`)?(W=e=>{if(e.button!==0||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;let t=e.target instanceof Element?e.target:null;for(;t&&!(t instanceof HTMLAnchorElement);)t=t.parentElement;if(!(t instanceof HTMLAnchorElement))return;let n=t;if(n.target&&n.target!==`_self`||n.hasAttribute(`download`))return;let r=n.getAttribute(`href`);if(r==null||r===``||re(r))return;if(r.startsWith(`#`)){e.preventDefault();let t=r.slice(1),n=document.getElementById(t);if(n){n.scrollIntoView({behavior:`smooth`,block:`start`});let e=`${window.location.pathname}${window.location.search}#${t}`;window.history.pushState(window.history.state,``,e),S.current=e}return}e.preventDefault();let i=ie(r);V.current?.(i,{replace:!1})},a[24]=W):W=a[24];let ge=W,G;a[25]===Symbol.for(`react.memo_cache_sentinel`)?(G=e=>{let t=`${window.location.pathname}${window.location.search}${window.location.hash}`,n=r(e.state)?e.state:null;z.current&&z.current(t,{replace:!0,scroll:!1,historyKey:n?.key})},a[25]=G):G=a[25];let _e=G,K;a[26]===Symbol.for(`react.memo_cache_sentinel`)?(K=()=>{let e=r(window.history.state)?window.history.state:null;if(e?.key==null||e.key===``){let e={route:`${window.location.pathname}${window.location.search}`,navigationId:0,scrollPosition:{x:window.scrollX,y:window.scrollY},timestamp:Date.now(),key:de()};window.history.replaceState(e,``,window.location.pathname+window.location.search+window.location.hash)}},a[26]=K):K=a[26];let q;a[27]===c?q=a[28]:(q=[c],a[27]=c,a[28]=q),u(K,q);let J;a[29]===Symbol.for(`react.memo_cache_sentinel`)?(J=e=>{if(e.persisted){let e=window.location.pathname;O.current.captureState(e)}},a[29]=J):J=a[29];let ve=J,Y;a[30]===Symbol.for(`react.memo_cache_sentinel`)?(Y=e=>{if(e.persisted){let e=window.location.pathname,t=r(window.history.state)?window.history.state:null;requestAnimationFrame(()=>{O.current.restoreState(e),t?.scrollPosition&&window.scrollTo(t.scrollPosition.x,t.scrollPosition.y)})}},a[30]=Y):Y=a[30];let ye=Y,X,Z;a[31]===Symbol.for(`react.memo_cache_sentinel`)?(X=()=>(document.addEventListener(`click`,ge),window.addEventListener(`popstate`,_e),window.addEventListener(`pagehide`,ve),window.addEventListener(`pageshow`,ye),()=>{document.removeEventListener(`click`,ge),window.removeEventListener(`popstate`,_e),window.removeEventListener(`pagehide`,ve),window.removeEventListener(`pageshow`,ye)}),Z=[],a[31]=X,a[32]=Z):(X=a[31],Z=a[32]),u(X,Z);let Q,$;return a[33]===Symbol.for(`react.memo_cache_sentinel`)?(Q=()=>(v.current=!0,e(async(e,t)=>z.current?.(e,t)??Promise.resolve()),()=>{v.current=!1,t(),fe(),pe(),V.current?.cancel()}),$=[],a[33]=Q,a[34]=$):(Q=a[33],$=a[34]),u(Q,$),o}function se(e){return{...e}}function ce(){return typeof crypto<`u`&&typeof crypto.randomUUID==`function`?crypto.randomUUID():`hk-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,11)}`}function le(e){console.error(`[rari] Router: Navigation error:`,e)}export{w as ClientRouter};
7
+ this.onError=e.onError??(()=>{})}handleError(e,t){let n=S(e,t);return this.onError(n),console.error(`[rari] Navigation:`,n.type,n.message,{url:n.url,statusCode:n.statusCode,retryable:n.retryable}),n}};function ne(e,t){try{let n=t!=null&&t!==``?t:window.location.origin,r=typeof URL.parse==`function`?URL.parse(e,n):new URL(e,n);return r!=null&&r.origin!==n}catch{return!1}}function re(e){try{let t=typeof URL.parse==`function`?URL.parse(e,window.location.origin):new URL(e,window.location.origin);return t==null?e:`${t.pathname}${t.search}${t.hash}`}catch{return e}}var ie=class{stateHistory;routeAccessOrder;maxHistorySize;scrollableSelector;constructor(e={}){this.stateHistory=/* @__PURE__ */ new Map,this.routeAccessOrder=[],this.maxHistorySize=e.maxHistorySize!=null&&e.maxHistorySize!==0?e.maxHistorySize:50,this.scrollableSelector=e.scrollableSelector!=null&&e.scrollableSelector!==``?e.scrollableSelector:`[data-scrollable], .scrollable, [style*="overflow"]`}captureState(e){let t={scrollPositions:this.captureScrollPositions(),formData:this.captureFormData(),focusedElement:this.captureFocusedElement()};return this.storeState(e,t),t}captureScrollPositions(){let e=/* @__PURE__ */ new Map;try{e.set(`window`,{x:window.scrollX,y:window.scrollY,element:`window`}),document.querySelectorAll(this.scrollableSelector).forEach((t,n)=>{if(t instanceof HTMLElement){let r=t.id||`scrollable-${n}`;(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth)&&e.set(r,{x:t.scrollLeft,y:t.scrollTop,element:r})}})}catch{}return e}captureFormData(){let e=/* @__PURE__ */ new Map;try{document.querySelectorAll(`form`).forEach((t,n)=>{let r=t.id||t.name||`form-${n}`,i=new FormData(t);i.entries().next().done||e.set(r,i)})}catch{}return e}captureFocusedElement(){try{let e=document.activeElement;if(e&&e!==document.body){if(e.id)return`#${e.id}`;if((e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)&&e.name)return`[name="${e.name}"]`}}catch{}return null}storeState(e,t){let n=this.routeAccessOrder.indexOf(e);for(n!==-1&&this.routeAccessOrder.splice(n,1),this.routeAccessOrder.push(e),this.stateHistory.set(e,t);this.routeAccessOrder.length>this.maxHistorySize;){let e=this.routeAccessOrder.shift();e!=null&&e!==``&&this.stateHistory.delete(e)}}restoreState(e){let t=this.stateHistory.get(e);if(!t)return!1;let n=!0;return this.restoreScrollPositions(t.scrollPositions)||(n=!1),this.restoreFormData(t.formData)||(n=!1),t.focusedElement!=null&&t.focusedElement!==``&&this.restoreFocus(t.focusedElement),n}restoreScrollPositions(e){let t=!0;try{e.forEach((e,n)=>{try{if(n===`window`)window.scrollTo(e.x,e.y);else{let r=document.getElementById(n)??document.querySelector(`[data-scrollable-id="${n}"]`);r instanceof HTMLElement?(r.scrollLeft=e.x,r.scrollTop=e.y):t=!1}}catch{t=!1}})}catch(e){console.error(`[rari] Router: Failed to restore scroll positions:`,e),t=!1}return t}restoreFormData(e){let t=!0;try{e.forEach((e,n)=>{try{let r=document.getElementById(n),i=r instanceof HTMLFormElement?r:document.querySelector(`form[name="${n}"]`)??document.querySelectorAll(`form`)[Number.parseInt(n.replace(`form-`,``),10)];i instanceof HTMLFormElement&&c(i,e)||(t=!1)}catch{t=!1}})}catch(e){console.error(`[rari] Router: Failed to restore form data:`,e),t=!1}return t}restoreFocus(e){try{let t=document.querySelector(e);t instanceof HTMLElement&&requestAnimationFrame(()=>{try{t.focus()}catch{}})}catch{}}};function C(e){return o(e)&&typeof e.navigationId==`number`}function w(e){return o(e)&&typeof e.navigationId==`number`&&`error`in e}function ae(e){let t=e.headers.get(`x-rari-metadata`);if(t!=null&&t!==``)try{let e=JSON.parse(decodeURIComponent(t));if(!o(e))return;if(typeof e.title==`string`&&e.title!==``&&(document.title=e.title),typeof e.description==`string`&&e.description!==``){let t=document.querySelector(`meta[name="description"]`);t||(t=document.createElement(`meta`),t.setAttribute(`name`,`description`),document.head.appendChild(t)),t.setAttribute(`content`,e.description)}}catch{}}async function oe(e,t){return t.aborted?{error:new DOMException(`Aborted`,`AbortError`)}:new Promise(n=>{function r(){window.removeEventListener(`rari:navigate-committed`,a),window.removeEventListener(`rari:navigate-error`,o),t.removeEventListener(`abort`,s)}function a(t){i(t,C)?.navigationId===e&&(r(),n(`committed`))}function o(t){let a=i(t,w);a?.navigationId===e&&(r(),n({error:a.error}))}function s(){r(),n({error:new DOMException(`Aborted`,`AbortError`)})}window.addEventListener(`rari:navigate-committed`,a),window.addEventListener(`rari:navigate-error`,o),t.addEventListener(`abort`,s,{once:!0})})}function T(i){let a=l(35),{children:o,initialRoute:c}=i,h;a[0]===c?h=a[1]:(h=()=>({currentRoute:typeof window<`u`?`${window.location.pathname}${window.location.search}`:s(c),navigationId:0,error:null}),a[0]=c,a[1]=h);let[g,_]=p(h),v=f(null),y=f(!0),b;a[2]===c?b=a[3]:(b=typeof window<`u`?`${window.location.pathname}${window.location.search}`:s(c),a[2]=c,a[3]=b);let x=f(b),S;a[4]===c?S=a[5]:(S=typeof window<`u`?`${window.location.pathname}${window.location.search}${window.location.hash}`:s(c),a[4]=c,a[5]=S);let C=f(S),w=f(0),T;a[6]===Symbol.for(`react.memo_cache_sentinel`)?(T=new te({onError:le}),a[6]=T):T=a[6];let ue=f(T),E;a[7]===Symbol.for(`react.memo_cache_sentinel`)?(E=/* @__PURE__ */ new Map,a[7]=E):E=a[7];let D=f(E),O;a[8]===Symbol.for(`react.memo_cache_sentinel`)?(O=new ie({maxHistorySize:50}),a[8]=O):O=a[8];let k=f(O),de=ce,A;a[9]===Symbol.for(`react.memo_cache_sentinel`)?(A=()=>{v.current&&=(v.current.abort(),null)},a[9]=A):A=a[9];let fe=A,j;a[10]===Symbol.for(`react.memo_cache_sentinel`)?(j=()=>{for(let[,e]of D.current.entries())e.abortController.abort();D.current.clear()},a[10]=j):j=a[10];let pe=j,M;a[11]===g?M=a[12]:(M=(e,t)=>{D.current.delete(e),y.current&&g.navigationId===t&&_(se)},a[11]=g,a[12]=M);let N=M,P;a[13]===Symbol.for(`react.memo_cache_sentinel`)?(P=(e,t)=>{let n=t===void 0?{}:t,r=`${window.location.pathname}${window.location.search}`,i=e?`${r}#${e}`:r;if(e){let t=document.getElementById(e);t&&t.scrollIntoView({behavior:`smooth`,block:`start`})}i!==`${window.location.pathname}${window.location.search}${window.location.hash}`&&(n.replace?window.history.replaceState(window.history.state,``,i):window.history.pushState(window.history.state,``,i)),C.current=i},a[13]=P):P=a[13];let me=P,F;if(a[14]===Symbol.for(`react.memo_cache_sentinel`)){let e=(e,t,n)=>{n.historyKey!=null&&n.historyKey!==``?requestAnimationFrame(()=>{k.current.restoreState(e)}):t&&requestAnimationFrame(()=>{let e=n=>{let r=n===void 0?0:n,i=document.getElementById(t);i?i.scrollIntoView({behavior:`smooth`,block:`start`}):r<10&&setTimeout(e,50,r+1)};e()})};F=(t,n,r,i,a)=>{y.current&&w.current===i&&(x.current=t,C.current=a,_(e=>({...e,currentRoute:t,navigationId:i,error:null})),e(t,n,r))},a[14]=F}else F=a[14];let he=F,I;a[15]===N?I=a[16]:(I=(e,t,r,i,a)=>{let o=a===void 0?{}:a;if(n(e)&&e.name===`AbortError`){N(t,r);return}let s=ue.current.handleError(e,t);y.current&&(_(e=>({...e,error:s})),window.history.replaceState(window.history.state,``,i)),D.current.delete(t),o.emitEvent!==!1&&window.dispatchEvent(new CustomEvent(`rari:navigate-error`,{detail:{from:i,to:t,error:s,navigationId:r}}))},a[15]=N,a[16]=I);let L=I,R;a[17]!==N||a[18]!==L?(R=async(e,t)=>{let n=t===void 0?{}:t;if(!e||typeof e!=`string`)return;let[r,i]=e.includes(`#`)?e.split(`#`):[e,``],a=s(r);if(a===x.current){me(i,{replace:n.replace===!0});return}let o=D.current.get(a);if(o)return o.promise;pe(),fe();let c=new AbortController;v.current=c,w.current+=1;let l=w.current;window.dispatchEvent(new CustomEvent(`rari:navigation-start`,{detail:{navigationId:l,targetPath:a}}));let u=(async()=>{let e=C.current;try{(n.historyKey==null||n.historyKey===``)&&k.current.captureState(x.current);let t=n.historyKey!=null&&n.historyKey!==``?n.historyKey:de(),r=window.location.origin+a,o={route:a,navigationId:l,scrollPosition:{x:window.scrollX,y:window.scrollY},timestamp:Date.now(),key:t},s=await fetch(r,{headers:{Accept:`text/x-component`,"rari-navigation-id":String(l),"rari-router-state":ee()},cache:`no-store`,signal:c.signal});if(!s.ok&&s.status!==404){L(/* @__PURE__ */ Error(`Failed to fetch: ${s.status}`),a,l,e);return}if(c.signal.aborted){N(a,l);return}let u=new URL(s.url),d=u.pathname,f=`${u.pathname}${u.search}`,p={...o,route:f},m=`${f}${i?`#${i}`:``}`;if(w.current!==l)return;let h=oe(l,c.signal);if(window.dispatchEvent(new CustomEvent(`rari:navigate`,{detail:{from:e,to:d,navigationId:l,options:n,abortSignal:c.signal,rscResponse:s,pendingHistory:{url:m,state:p,replace:n.replace===!0}}})),w.current!==l){c.abort();return}let g=await h;if(w.current!==l)return;if(g!==`committed`){L(g.error,a,l,e,{emitEvent:!1});return}he(f,i,n,l,m),ae(s),D.current.delete(a)}catch(t){L(t,a,l,e)}})();return D.current.set(a,{targetPath:a,navigationId:l,promise:u,abortController:c}),u},a[17]=N,a[18]=L,a[19]=R):R=a[19];let z=R,B=f(z),V;a[20]===z?V=a[21]:(V=()=>(B.current=z,()=>{B.current=null}),a[20]=z,a[21]=V),d(V);let ge=f(null),H,U;a[22]===Symbol.for(`react.memo_cache_sentinel`)?(H=()=>{ge.current??=m((e,t)=>{B.current?.(e,t)},50,{leading:!0,trailing:!0,maxWait:200})},U=[],a[22]=H,a[23]=U):(H=a[22],U=a[23]),d(H,U);let W;a[24]===Symbol.for(`react.memo_cache_sentinel`)?(W=e=>{if(e.button!==0||e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)return;let t=e.target instanceof Element?e.target:null;for(;t&&!(t instanceof HTMLAnchorElement);)t=t.parentElement;if(!(t instanceof HTMLAnchorElement))return;let n=t;if(n.target&&n.target!==`_self`||n.hasAttribute(`download`))return;let r=n.getAttribute(`href`);if(r==null||r===``||ne(r))return;if(r.startsWith(`#`)){e.preventDefault();let t=r.slice(1),n=document.getElementById(t);if(n){n.scrollIntoView({behavior:`smooth`,block:`start`});let e=`${window.location.pathname}${window.location.search}#${t}`;window.history.pushState(window.history.state,``,e),C.current=e}return}e.preventDefault();let i=re(r);ge.current?.(i,{replace:!1})},a[24]=W):W=a[24];let _e=W,G;a[25]===Symbol.for(`react.memo_cache_sentinel`)?(G=e=>{let t=`${window.location.pathname}${window.location.search}${window.location.hash}`,n=r(e.state)?e.state:null;B.current&&B.current(t,{replace:!0,scroll:!1,historyKey:n?.key})},a[25]=G):G=a[25];let ve=G,K;a[26]===Symbol.for(`react.memo_cache_sentinel`)?(K=()=>{let e=r(window.history.state)?window.history.state:null;if(e?.key==null||e.key===``){let e={route:`${window.location.pathname}${window.location.search}`,navigationId:0,scrollPosition:{x:window.scrollX,y:window.scrollY},timestamp:Date.now(),key:de()};window.history.replaceState(e,``,window.location.pathname+window.location.search+window.location.hash)}},a[26]=K):K=a[26];let q;a[27]===c?q=a[28]:(q=[c],a[27]=c,a[28]=q),u(K,q);let J;a[29]===Symbol.for(`react.memo_cache_sentinel`)?(J=e=>{if(e.persisted){let e=window.location.pathname;k.current.captureState(e)}},a[29]=J):J=a[29];let ye=J,Y;a[30]===Symbol.for(`react.memo_cache_sentinel`)?(Y=e=>{if(e.persisted){let e=window.location.pathname,t=r(window.history.state)?window.history.state:null;requestAnimationFrame(()=>{k.current.restoreState(e),t?.scrollPosition&&window.scrollTo(t.scrollPosition.x,t.scrollPosition.y)})}},a[30]=Y):Y=a[30];let be=Y,X,Z;a[31]===Symbol.for(`react.memo_cache_sentinel`)?(X=()=>(document.addEventListener(`click`,_e),window.addEventListener(`popstate`,ve),window.addEventListener(`pagehide`,ye),window.addEventListener(`pageshow`,be),()=>{document.removeEventListener(`click`,_e),window.removeEventListener(`popstate`,ve),window.removeEventListener(`pagehide`,ye),window.removeEventListener(`pageshow`,be)}),Z=[],a[31]=X,a[32]=Z):(X=a[31],Z=a[32]),u(X,Z);let Q,$;return a[33]===Symbol.for(`react.memo_cache_sentinel`)?(Q=()=>(y.current=!0,e(async(e,t)=>B.current?.(e,t)??Promise.resolve()),()=>{y.current=!1,t(),fe(),pe(),ge.current?.cancel()}),$=[],a[33]=Q,a[34]=$):(Q=a[33],$=a[34]),u(Q,$),o}function se(e){return{...e}}function ce(){return typeof crypto<`u`&&typeof crypto.randomUUID==`function`?crypto.randomUUID():`hk-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,11)}`}function le(e){console.error(`[rari] Router: Navigation error:`,e)}export{T as ClientRouter};
@@ -1 +1 @@
1
- "use client";import{u as e,v as t}from"../type-guards-BJXKlA6x.mjs";import{t as n}from"../timer-Duul5JHq.mjs";import{r}from"../rari-global-5vGzhToD.mjs";import{Component as i}from"react";import{jsx as a,jsxs as o}from"react/jsx-runtime";function s(n){if(e(n))return n;if(t(n)){let t=n.default??n;return e(t)?t:null}return null}var c=class extends i{_isMounted=!1;_pendingTimer=null;constructor(e){super(e),this.state={hasError:!1,error:null,ErrorComponent:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1,this._pendingTimer=n(this._pendingTimer)}componentDidCatch(e,t){console.error(`[rari] Error boundary caught error:`,e,t);let n=this.props.errorComponentId;if(n!==``){let e=r();if(n in e){let t=e[n],r=s(t.component);r?this.setState({ErrorComponent:r}):t.loader&&!t.loading&&(t.loading=!0,t.loader().then(e=>{let n=s(e);n&&(t.component=n,t.registered=!0,this.setState({ErrorComponent:n})),t.loading=!1}).catch(e=>{t.loading=!1,console.error(`[rari] Failed to load error component ${n}:`,e)}))}}}reset=()=>{this._pendingTimer=n(this._pendingTimer),this._pendingTimer=setTimeout(()=>{this._isMounted&&this.setState({hasError:!1,error:null,ErrorComponent:null}),this._pendingTimer=null},50)};render(){if(this.state.hasError&&this.state.error){let{ErrorComponent:e}=this.state;return e?/* @__PURE__ */ a(e,{error:this.state.error,reset:this.reset}):/* @__PURE__ */ o(`div`,{className:`rari-error`,role:`alert`,style:{color:`red`,border:`1px solid red`,padding:`10px`,borderRadius:`4px`,backgroundColor:`#fff5f5`},children:[/* @__PURE__ */ a(`strong`,{children:`Error loading content: `}),this.state.error.message]})}return this.props.children}};export{c as ErrorBoundaryWrapper};
1
+ import{u as e,v as t}from"../type-guards-BJXKlA6x.mjs";import{t as n}from"../timer-Duul5JHq.mjs";import{r}from"../rari-global-5vGzhToD.mjs";import{Component as i}from"react";import{jsx as a,jsxs as o}from"react/jsx-runtime";function s(n){if(e(n))return n;if(t(n)){let t=n.default??n;return e(t)?t:null}return null}var c=class extends i{_isMounted=!1;_pendingTimer=null;constructor(e){super(e),this.state={hasError:!1,error:null,ErrorComponent:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidMount(){this._isMounted=!0}componentWillUnmount(){this._isMounted=!1,this._pendingTimer=n(this._pendingTimer)}componentDidCatch(e,t){console.error(`[rari] Error boundary caught error:`,e,t);let n=this.props.errorComponentId;if(n!==``){let e=r();if(n in e){let t=e[n],r=s(t.component);r?this.setState({ErrorComponent:r}):t.loader&&!t.loading&&(t.loading=!0,t.loader().then(e=>{let n=s(e);n&&(t.component=n,t.registered=!0,this.setState({ErrorComponent:n})),t.loading=!1}).catch(e=>{t.loading=!1,console.error(`[rari] Failed to load error component ${n}:`,e)}))}}}reset=()=>{this._pendingTimer=n(this._pendingTimer),this._pendingTimer=setTimeout(()=>{this._isMounted&&this.setState({hasError:!1,error:null,ErrorComponent:null}),this._pendingTimer=null},50)};render(){if(this.state.hasError&&this.state.error){let{ErrorComponent:e}=this.state;return e?/* @__PURE__ */ a(e,{error:this.state.error,reset:this.reset}):/* @__PURE__ */ o(`div`,{className:`rari-error`,role:`alert`,style:{color:`red`,border:`1px solid red`,padding:`10px`,borderRadius:`4px`,backgroundColor:`#fff5f5`},children:[/* @__PURE__ */ a(`strong`,{children:`Error loading content: `}),this.state.error.message]})}return this.props.children}};export{c as ErrorBoundaryWrapper};
@@ -3,6 +3,7 @@ import * as React from "react";
3
3
  export declare const LAYOUT_REUSE_ELEMENT = "rari-layout-reuse";
4
4
  export declare const LAYOUT_REUSE_PATH_PROP = "data-rari-layout-path";
5
5
  export declare function isLayoutReuseMarker(element: React.ReactElement): boolean;
6
+ export declare function unwrapFulfilledFlightNode(node: React.ReactNode | PromiseLike<React.ReactNode>): React.ReactNode;
6
7
  export declare function spliceLayoutReuseChildren(current: React.ReactNode, nextPage: React.ReactNode, layoutPath?: string): React.ReactNode;
7
8
  export declare function mergeFlightRefresh(current: React.ReactNode, refresh: React.ReactNode): React.ReactNode;
8
9
  //#endregion
@@ -1 +1 @@
1
- import{l as e,o as t,s as n}from"../type-guards-BJXKlA6x.mjs";import*as r from"react";const i=`rari-layout-reuse`,a=`data-rari-layout-path`;function o(e){return r.isValidElement(e)}function s(t){return e(t.type)}function c(e){return e.type===`head`||e.type===`HEAD`}function l(e){return e.type===`html`||e.type===`HTML`}function u(e){return e.type===`body`||e.type===`BODY`}function d(e){return e.type===i}function f(e){let t=m(e)[a];return typeof t==`string`&&t!==``?t:void 0}function p(e){let t={...e};return delete t.children,t}function m(e){return t(e)}function h(e,t){if(!s(e)||!s(t))return!1;let r=n(e.type)?e.type.$$id:void 0,i=n(t.type)?t.type.$$id:void 0;return r==null||r===``||i==null||i===``||r!==i?!1:(e.key??null)===(t.key??null)}function g(e){return x(m(e).children)}function _(e){return Array.isArray(e)&&e.some(e=>Array.isArray(e))}function v(e,t){let n=e.key,i=typeof n==`string`&&n!==``?`${t}:${n.replace(/^\.+/,``)}`:t;return r.cloneElement(e,{key:i})}function y(e,t,n){return Array.isArray(e)?b(e,t==null?`.${n}`:`${t}:${n}`):e==null||e===!1||e===!0?[]:o(e)&&t!=null?[v(e,`${t}:${n}`)]:[e]}function b(e,t){if(!Array.isArray(e))return e==null||e===!1||e===!0?[]:o(e)&&t!=null?[v(e,t)]:[e];let n=[];for(let r=0;r<e.length;r+=1)n.push(...y(e[r],t,r));return n}function x(e){return e==null||e===!1||e===!0?[]:o(e)||typeof e==`string`||typeof e==`number`?[e]:Array.isArray(e)?b(e,null):r.Children.toArray(e)}function S(e){return o(e)?d(e)?!0:x(m(e).children).some(e=>S(e)):!1}function C(e){let t=e.type;return t===`title`||t===`TITLE`||t===`meta`||t===`META`||t===`link`||t===`LINK`}function w(e){if(e.type!==`link`&&e.type!==`LINK`)return!1;let t=m(e).rel;if(typeof t!=`string`||t===``)return!1;let n=t.toLowerCase();return n===`stylesheet`||n===`preload`||n===`modulepreload`||n===`preconnect`||n===`dns-prefetch`||n===`icon`||n===`shortcut icon`||n===`apple-touch-icon`}function T(e){return e.type===r.Fragment}function E(e){let t=[];for(let n of e){if(o(n)&&T(n)){t.push(...E(g(n)));continue}t.push(n)}return t}function D(e){if(e.type!==`meta`&&e.type!==`META`)return!1;let t=m(e);return t.charSet!=null||t.charset!=null||typeof t.httpEquiv==`string`&&t.httpEquiv.toLowerCase()===`content-type`||typeof t.name==`string`&&t.name.toLowerCase()===`viewport`}function O(e,t){let n=m(e);return E(t).some(e=>{if(!o(e)||!D(e))return!1;let t=m(e);return n.charSet!=null||n.charset!=null?t.charSet!=null||t.charset!=null:typeof n.httpEquiv==`string`&&n.httpEquiv.toLowerCase()===`content-type`?typeof t.httpEquiv==`string`&&t.httpEquiv.toLowerCase()===`content-type`:typeof t.name==`string`&&t.name.toLowerCase()===`viewport`})}function k(e,t){let n=m(e),r=E(g(e)),i=g(t),a=E(i);return I(e,n,[...r.filter(e=>{if(!o(e))return!0;if(e.type===`title`||e.type===`TITLE`)return!1;if(e.type===`meta`||e.type===`META`)return D(e)?!O(e,i):!1;if(!w(e))return!C(e);let t=m(e);return!a.some(e=>{if(!o(e)||!w(e))return!1;let n=m(e);return t.rel!=null&&t.rel===n.rel&&t.href===n.href})}),...a])}function A(e){return e.length===0?null:e.length===1?e[0]:[...e]}function j(e){let t=[];for(let n of x(e))t.push(M(n));return t}function M(e){if(Array.isArray(e))return A(j(e));if(!o(e))return e;if(d(e))return A(j(m(e).children));let t=m(e),n=x(t.children);if(n.length===0)return e;let r=j(n);return!_(t.children)&&r.every((e,t)=>e===n[t])?e:I(e,t,A(r))}function N(e,t){if(e.length===0)return[M(t)];if(e.length===1)return[Z(e[0],t)];let n=[],r=!1;for(let i of e)!r&&o(i)?(r=!0,n.push(Z(i,t))):n.push(i);return r?n:[M(t)]}function P(e,t){let n=[],r=0;for(let i of t){if(o(i)&&d(i)){n.push(...N(e.slice(r),i)),r=e.length;continue}let t=e[r];n.push(t===void 0?M(i):Z(t,i)),r+=1}return r<e.length&&n.push(...e.slice(r)),A(n)}function F(e,t){let n=x(e),r=x(t);return n.length===0?M(t):r.length===0?e:r.some(e=>o(e)&&d(e))?P(n,r):n.length===r.length?A(n.map((e,t)=>Z(e,r[t]))):M(t)}function I(e,t,n){let i=x(n);return r.cloneElement(e,p(t),...i.length===0?[null]:i)}function L(e,t){let n=g(e);for(let r=0;r<n.length;r+=1){let i=n[r];if(o(i)&&f(i)===t)return{parent:e,slotIndex:r}}for(let e=0;e<n.length;e+=1){let r=n[e];if(!o(r))continue;let i=L(r,t);if(i!=null)return i}return null}function R(e){return e.type===`main`||e.type===`MAIN`||g(e).some(e=>o(e)&&R(e))}const z=/* @__PURE__ */ new Set([.../* @__PURE__ */ new Set(/* @__PURE__ */ `area.base.br.col.embed.hr.img.input.link.meta.param.source.track.wbr.AREA.BASE.BR.COL.EMBED.HR.IMG.INPUT.LINK.META.PARAM.SOURCE.TRACK.WBR`.split(`.`)),`script`,`style`,`iframe`,`textarea`,`noscript`,`template`,`canvas`,`video`,`audio`,`object`,`embed`,`svg`,`math`,`select`,`title`,`SCRIPT`,`STYLE`,`IFRAME`,`TEXTAREA`,`NOSCRIPT`,`TEMPLATE`,`CANVAS`,`VIDEO`,`AUDIO`,`OBJECT`,`EMBED`,`SVG`,`MATH`,`SELECT`,`TITLE`]);function B(e){return typeof e.type!=`string`||z.has(e.type)?!1:g(e).length===0}function V(e,t){return h(e,t)?!0:e.type===t.type&&(e.key??null)===(t.key??null)}function H(e,t){let n=g(e);if(n.length===1&&o(n[0]))return Z(n[0],t);if(!o(t)||n.length===0)return t;let r=n.findIndex(e=>o(e)&&V(e,t));if(r<0)return t;let i=[...n];return i[r]=Z(n[r],t),i}function U(e,t,n){let r=L(e,n);if(r==null)return null;let i=m(r.parent),a=g(r.parent),s=[...a],c=a[r.slotIndex];return s[r.slotIndex]=o(c)?I(c,m(c),H(c,t)):t,q(e,r.parent,I(r.parent,i,s))}function W(e,t,n,r,i){let a=[...n];return a[r]=i,I(e,t,a)}function G(e,t,n){let r=m(e),i=g(e);if(e.type===`main`||e.type===`MAIN`)return I(e,r,H(e,t));if(i.length===1&&o(i[0]))return I(e,r,K(i[0],t,n));let a=i.findIndex(e=>o(e)&&(e.type===`main`||e.type===`MAIN`));if(a>=0)return W(e,r,i,a,K(i[a],t,n));for(let a=0;a<i.length;a+=1){let s=i[a];if(o(s)&&R(s))return W(e,r,i,a,K(s,t,n))}for(let n=0;n<i.length;n+=1){let a=i[n];if(o(a)&&B(a))return W(e,r,i,n,I(a,m(a),H(a,t)))}return I(e,r,H(e,t))}function K(e,t,n){if(!o(e))return t;if(o(t)&&d(t)){let r=f(t);return K(e,m(t).children,r??n)}if(n!=null&&n!==``){let r=U(e,t,n);if(r!=null)return r}return G(e,t,n)}function q(e,t,n){if(e===t)return n;let r=m(e),i=g(e),a=[],s=!1;for(let e of i){if(!o(e)){a.push(e);continue}if(e===t){s=!0,a.push(n);continue}let r=q(e,t,n);r!==e&&(s=!0),a.push(r)}return s?I(e,r,a):e}function J(e,t){let n=m(e),r=g(e),i=g(t),a=r.find(e=>o(e)&&c(e)),s=i.find(e=>o(e)&&c(e)),l=r.find(e=>o(e)&&u(e)),d=i.find(e=>o(e)&&u(e)),f=o(a)&&o(s)?k(a,s):o(a)?a:s,p=o(l)&&o(d)?Z(l,d):o(l)?l:d,h=[];return f!=null&&h.push(f),p!=null&&h.push(p),I(e,n,h)}function Y(e,t,n){let r=m(e),i=g(e),a=i.findIndex(e=>o(e)&&u(e)),s=a>=0?i[a]:void 0,c=o(s)?K(s,t.children,n):K(e,t.children,n);if(o(s)&&a>=0){let t=[...i];return t[a]=c,I(e,r,t)}return I(e,r,c)}function X(e,t){let n=m(e),r=m(t),i=x(r.children);if(i.length===1&&o(i[0])&&d(i[0])){let t=i[0];return K(e,m(t).children,f(t))}let a=F(n.children,r.children);return a===r.children?t:S(t)?I(e,n,a):I(t,r,a)}function Z(e,t){if(e==null)return M(t);if(t==null)return e;if(!o(e)||!o(t))return t;if(d(t)){let n=m(t),r=f(t);return l(e)?Y(e,n,r):K(e,n.children,r)}return l(e)&&l(t)&&S(t)?J(e,t):c(e)||c(t)?t:h(e,t)?S(t)?X(e,t):t:e.type===t.type?X(e,t):t}export{i as LAYOUT_REUSE_ELEMENT,a as LAYOUT_REUSE_PATH_PROP,d as isLayoutReuseMarker,Z as mergeFlightRefresh,K as spliceLayoutReuseChildren};
1
+ import{l as e,o as t,p as n,s as r,v as i}from"../type-guards-BJXKlA6x.mjs";import*as a from"react";const o=`rari-layout-reuse`,s=`data-rari-layout-path`;function c(e){return a.isValidElement(e)}function l(t){return e(t.type)}function u(e){return e.type===`head`||e.type===`HEAD`}function d(e){return e.type===`html`||e.type===`HTML`}function f(e){return e.type===`body`||e.type===`BODY`}function p(e){return e.type===o}function m(e){let t=h(e)[s];return typeof t==`string`&&t!==``?t:void 0}function ee(e){let t={...e};return delete t.children,t}function h(e){return t(e)}function g(e,t){if(!l(e)||!l(t))return!1;let n=r(e.type)?e.type.$$id:void 0,i=r(t.type)?t.type.$$id:void 0;return n==null||n===``||i==null||i===``||n!==i?!1:(e.key??null)===(t.key??null)}function _(e){return v(h(e).children)}function te(e){return Array.isArray(e)&&e.some(e=>Array.isArray(e))}function ne(e,t){let n=e.key,r=typeof n==`string`&&n!==``?`${t}:${n.replace(/^\.+/,``)}`:t;return a.cloneElement(e,{key:r})}function re(e,t,n){return Array.isArray(e)?ie(e,t==null?`.${n}`:`${t}:${n}`):e==null||e===!1||e===!0?[]:c(e)&&t!=null?[ne(e,`${t}:${n}`)]:[e]}function ie(e,t){if(!Array.isArray(e))return e==null||e===!1||e===!0?[]:c(e)&&t!=null?[ne(e,t)]:[e];let n=[];for(let r=0;r<e.length;r+=1)n.push(...re(e[r],t,r));return n}function v(e){return e==null||e===!1||e===!0?[]:c(e)||typeof e==`string`||typeof e==`number`?[e]:Array.isArray(e)?ie(e,null):n(e)?[e]:a.Children.toArray(e)}function y(e){return c(e)?p(e)?!0:v(h(e).children).some(e=>y(e)):!1}function ae(e){let t=e.type;return t===`title`||t===`TITLE`||t===`meta`||t===`META`||t===`link`||t===`LINK`}function b(e){if(e.type!==`link`&&e.type!==`LINK`)return!1;let t=h(e).rel;if(typeof t!=`string`||t===``)return!1;let n=t.toLowerCase();return n===`stylesheet`||n===`preload`||n===`modulepreload`||n===`preconnect`||n===`dns-prefetch`||n===`icon`||n===`shortcut icon`||n===`apple-touch-icon`}function x(e){return e.type===a.Fragment}function S(e){return e.type===a.Suspense}function C(e){return e}function oe(e){if(i(e)){if(e.status===`fulfilled`)return e.value;if(i(e._payload)&&e._payload.status===`fulfilled`)return e._payload.value}}function w(e){let t=e;for(let e=0;e<10;e+=1){if(!n(t)&&(!i(t)||!i(t._payload)))return C(t);let e=oe(t);if(e===void 0)return C(t);if(e==null||e===!1||e===!0)return e;t=e}return C(t)}function T(e){let t=w(e);if(Array.isArray(t)){let e=[];for(let n of t)e.push(...T(C(n)));return e}return c(t)&&x(t)?se(_(t)):t==null||t===!1||t===!0?[]:[t]}function se(e){let t=[];for(let n of e)t.push(...T(n));return t}function E(e){return se(_(e))}function D(e){let t=w(e);return Array.isArray(t)?!0:c(t)&&x(t)}function O(e,t){let n=w(e);if(Array.isArray(n)){let e=[];for(let t of n)e.push(...T(C(t)));let r=v(Be(e,t));return a.createElement(a.Fragment,null,...r.length===0?[null]:r)}return c(n)&&x(n)?P(n,h(n),Be(_(n),t)):c(n)?Y(n,t):t}function k(e){let t=[];for(let n of e){if(c(n)&&x(n)){t.push(...k(_(n)));continue}t.push(n)}return t}function A(e){if(e.type!==`meta`&&e.type!==`META`)return!1;let t=h(e);return t.charSet!=null||t.charset!=null||typeof t.httpEquiv==`string`&&t.httpEquiv.toLowerCase()===`content-type`||typeof t.name==`string`&&t.name.toLowerCase()===`viewport`}function ce(e,t){let n=h(e);return k(t).some(e=>{if(!c(e)||!A(e))return!1;let t=h(e);return n.charSet!=null||n.charset!=null?t.charSet!=null||t.charset!=null:typeof n.httpEquiv==`string`&&n.httpEquiv.toLowerCase()===`content-type`?typeof t.httpEquiv==`string`&&t.httpEquiv.toLowerCase()===`content-type`:typeof t.name==`string`&&t.name.toLowerCase()===`viewport`})}function le(e){return e.type===`title`||e.type===`TITLE`}function ue(e){if(e.type!==`meta`&&e.type!==`META`)return!1;let t=h(e).name;return typeof t==`string`&&t.toLowerCase()===`description`}function de(e){return k(e).some(e=>c(e)&&le(e))}function fe(e){return k(e).some(e=>c(e)&&ue(e))}function pe(e,t){let n=h(e),r=k(_(e)),i=_(t),a=k(i),o=de(a),s=fe(a);return P(e,n,[...r.filter(e=>{if(!c(e))return!0;if(le(e))return!o;if(e.type===`meta`||e.type===`META`)return A(e)?!ce(e,i):ue(e)?!s:!1;if(!b(e))return!ae(e);let t=h(e);return!a.some(e=>{if(!c(e)||!b(e))return!1;let n=h(e);return t.rel!=null&&t.rel===n.rel&&t.href===n.href})}),...a])}function j(e){return e.length===0?null:e.length===1?e[0]:[...e]}function M(e){let t=[];for(let n of v(e))t.push(N(n));return t}function N(e){if(Array.isArray(e))return j(M(e));if(!c(e))return e;if(p(e))return j(M(h(e).children));let t=h(e),n=v(t.children);if(n.length===0)return e;let r=M(n);return!te(t.children)&&r.every((e,t)=>e===n[t])?e:P(e,t,j(r))}function me(e,t){if(e.length===0)return[N(t)];if(e.length===1)return[$(e[0],t)];let n=[],r=!1;for(let i of e)!r&&c(i)?(r=!0,n.push($(i,t))):n.push(i);return r?n:[N(t)]}function he(e,t){let n=[],r=0;for(let i of t){if(c(i)&&p(i)){n.push(...me(e.slice(r),i)),r=e.length;continue}let t=e[r];n.push(t===void 0?N(i):$(t,i)),r+=1}return r<e.length&&n.push(...e.slice(r)),j(n)}function ge(e,t){let n=v(e),r=v(t);return n.length===0||r.length===0?N(t):r.some(e=>c(e)&&p(e))?he(n,r):n.length===r.length?j(n.map((e,t)=>$(e,r[t]))):N(t)}function P(e,t,n){let r=v(n);return a.cloneElement(e,ee(t),...r.length===0?[null]:r)}function _e(e,t){for(let n=0;n<e.length;n+=1){let r=e[n];if(c(r)&&m(r)===t)return n;for(let e of T(r))if(c(e)&&m(e)===t)return n}return-1}function ve(e,t){let n=_(e);for(let r=0;r<n.length;r+=1){let i=n[r];if(c(i)){let e=F(i,t);if(e!=null)return e;continue}let a=w(i);if(c(a)&&F(a,t)!=null)return{parent:e,slotIndex:r}}return null}function F(e,t){let n=_e(_(e),t);return n>=0?{parent:e,slotIndex:n}:ve(e,t)}function I(e){return H(e)?!0:E(e).some(e=>{let t=G(e);return t!=null&&I(t)})}const L=/* @__PURE__ */ new Set([.../* @__PURE__ */ new Set(/* @__PURE__ */ `area.base.br.col.embed.hr.img.input.link.meta.param.source.track.wbr.AREA.BASE.BR.COL.EMBED.HR.IMG.INPUT.LINK.META.PARAM.SOURCE.TRACK.WBR`.split(`.`)),`script`,`style`,`iframe`,`textarea`,`noscript`,`template`,`canvas`,`video`,`audio`,`object`,`embed`,`svg`,`math`,`select`,`title`,`SCRIPT`,`STYLE`,`IFRAME`,`TEXTAREA`,`NOSCRIPT`,`TEMPLATE`,`CANVAS`,`VIDEO`,`AUDIO`,`OBJECT`,`EMBED`,`SVG`,`MATH`,`SELECT`,`TITLE`]);function ye(e){return typeof e.type!=`string`||L.has(e.type)?!1:E(e).length===0}function be(e,t){return g(e,t)?!0:e.type===t.type&&(e.key??null)===(t.key??null)}function R(e){let t=e.type;return t===`nav`||t===`NAV`||t===`header`||t===`HEADER`||t===`footer`||t===`FOOTER`||t===`aside`||t===`ASIDE`}const xe=/^(?:app|page|site|main|mobile|top)?(?:footer|header|navbar|navigation|sidebar|sidenav|topbar|aside|nav)$/,Se=/^(?:app|page|site|main|mobile|top)?footer$/;function Ce(e){return e.replace(/[^a-z0-9]+/gi,``).toLowerCase()}function we(e){if(!r(e.type))return;let t=e.type.$$id,n=t.split(`#`)[0]??t;return(n.split(`/`).pop()??n).replace(/\.(?:tsx|jsx|ts|js)$/i,``)}function z(e){let t=we(e);return t==null?void 0:Ce(t)}function B(e){if(!l(e))return!1;let t=z(e);return t!=null&&xe.test(t)}function Te(e){return R(e)||B(e)}function V(e){if(S(e)){let t=E(e);return t.length===1&&c(t[0])&&V(t[0])}if(B(e)){let t=z(e);return t!=null&&Se.test(t)}let t=e.type;return t===`footer`||t===`FOOTER`}function H(e){return e.type===`main`||e.type===`MAIN`}function Ee(e){let t=h(e).role;if(typeof t!=`string`||t===``)return!1;let n=t.toLowerCase();return n===`status`||n===`alert`||n===`alertdialog`||n===`log`}function U(e){return typeof e.type==`string`&&!L.has(e.type)&&!R(e)&&!Ee(e)}function W(e){return B(e)?!1:l(e)||x(e)}function De(e){let t=E(e);return t.some(e=>c(e)&&Te(e))?!0:t.some(e=>{let t=G(e);return t!=null&&(H(t)||I(t))})}function Oe(e,t){return Ee(e)?!1:U(t)?U(e):W(t)?W(e):!1}function G(e){let t=w(e);return c(t)?t:null}function ke(e){return(S(e)||U(e))&&I(e)}function Ae(e,t){for(let n=e.length-1;n>=0;--n){let r=G(e[n]);if(r!=null&&t(r))return n}return-1}function K(e){let t=e.findIndex(e=>{let t=G(e);return t!=null&&H(t)});if(t>=0)return t;for(let t=0;t<e.length;t+=1){let n=G(e[t]);if(n!=null&&ke(n))return t}let n=Ae(e,U);return n>=0?n:Ae(e,W)}function je(e){return T(e).some(e=>{let t=G(e);return t!=null&&(H(t)||ke(t)||I(t))})}function Me(e,t){for(let n=0;n<e.length;n+=1){let r=T(e[n]);if(r.length!==1)continue;let i=G(r[0]);if(i!=null&&t(i))return n}return-1}function Ne(e,t){for(let n=e.length-1;n>=0;--n){let r=T(e[n]);if(r.length!==1)continue;let i=G(r[0]);if(i!=null&&t(i))return n}return-1}function Pe(e){for(let t=e.length-1;t>=0;--t)if(D(e[t])&&K(T(e[t]))>=0)return t;return-1}function Fe(e){let t=Me(e,H);if(t>=0)return t;for(let t=0;t<e.length;t+=1)if(je(e[t]))return t;let n=Ne(e,U);if(n>=0)return n;let r=Ne(e,W);return r>=0?r:Pe(e)}function Ie(e){for(let t=e.length-1;t>=0;--t){let n=e[t];if(n!=null&&n!==!1&&n!==!0&&!c(n)&&(typeof n==`string`||typeof n==`number`))return t}return-1}function Le(e){return H(e)||I(e)?!0:E(e).some(e=>{let t=G(e);return t!=null&&U(t)})}function Re(e,t){let n=e.length;for(let t=e.length-1;t>=0;--t){let r=e[t];if(c(r)&&V(r)){n=t;continue}break}return[...e.slice(0,n),t,...e.slice(n)]}function ze(e,t){let n=e.findIndex(e=>c(e)&&be(e,t));if(n>=0){let r=[...e];return r[n]=$(e[n],t),r}let r=K(e);if(r<0)return null;let i=e[r],a=w(i);return c(a)&&(H(a)||I(a))?q(e,r,i,a,t):null}function q(e,t,n,r,i){let a=[...e],o=Y(r,i);return a[t]=c(n)&&n===r?P(n,h(n),o):o,a}function J(e,t,n,r){let i=c(n)&&(!W(n)||Le(n)),a=[];for(let o=0;o<e.length;o+=1){let s=e[o];if(o===t){a.push(i?P(n,h(n),r):r);continue}c(n)&&c(s)&&Oe(s,n)||a.push(s)}return a}function Be(e,t){if(e.length===1&&c(e[0]))return $(e[0],t);if(e.length===0)return t;if(c(t)){let n=ze(e,t);if(n!=null)return n}let n=K(e);if(n<0){let n=Ie(e);return n>=0?J(e,n,e[n],t):Re(e,t)}let r=e[n],i=w(r);return c(i)&&(H(i)||I(i))?q(e,n,r,i,t):J(e,n,r,t)}function Ve(e,t){if(c(e))return $(e,t);if(D(e))return O(e,t);let n=w(e);return n==null||n===!1||n===!0?t:c(n)?$(n,t):null}function Y(e,t){let n=_(e);if(n.length===1){let e=Ve(n[0],t);if(e!=null)return e}if(n.length===0||E(e).length===0)return t;if(c(t)){let e=ze(n,t);if(e!=null)return e}let r=Fe(n);if(r<0){let e=Ie(n);return e>=0?J(n,e,n[e],t):Re(n,t)}let i=n[r];if(D(i)){let e=[...n];return e[r]=O(i,t),e}let a=w(i);return c(a)&&(H(a)||I(a))?q(n,r,i,a,t):J(n,r,i,t)}function He(e,t,n){let r=w(e);if(Array.isArray(r)){let e=[];for(let t of r)e.push(...T(C(t)));return Z(a.createElement(a.Fragment,null,...e.length===0?[null]:e),t,n)}return c(r)?Z(r,t,n):t}function Ue(e,t,r){let i=F(e,r);if(i==null)return null;let a=h(i.parent),o=_(i.parent),s=[...o],l=o[i.slotIndex];return D(l)||!c(l)&&n(l)?s[i.slotIndex]=He(l,t,r):c(l)?s[i.slotIndex]=P(l,h(l),Y(l,t)):s[i.slotIndex]=t,qe(e,i.parent,P(i.parent,a,s))}function X(e,t,n,r,i){let a=[...n];return a[r]=i,P(e,t,a)}function We(e,t,n,r,i){for(let a=0;a<n.length;a+=1){let o=n[a];if(D(o)){if(!je(o))continue;return X(e,t,n,a,O(o,r))}let s=w(o);if(c(s)&&I(s))return X(e,t,n,a,Z(s,r,i))}return null}function Ge(e,t,n,r){for(let i=0;i<n.length;i+=1){let a=n[i];if(c(a)&&ye(a))return X(e,t,n,i,P(a,h(a),Y(a,r)))}return null}function Ke(e,t,n){let r=h(e),i=_(e);if(e.type===`main`||e.type===`MAIN`)return P(e,r,Y(e,t));if(i.length===1&&c(i[0]))return P(e,r,Z(i[0],t,n));if(i.length===1&&D(i[0]))return P(e,r,O(i[0],t));let a=i.findIndex(e=>{let t=G(e);return t!=null&&H(t)});if(a>=0){let o=i[a],s=w(o);return X(e,r,i,a,Z(c(s)?s:o,t,n))}return We(e,r,i,t,n)??Ge(e,r,i,t)??P(e,r,Y(e,t))}function Z(e,t,n){if(!c(e))return t;if(c(t)&&p(t)){let r=m(t);return Z(e,h(t).children,r??n)}if(n!=null&&n!==``){let r=Ue(e,t,n);if(r!=null)return r}return Ke(e,t,n)}function qe(e,t,n){if(e===t)return n;let r=h(e),i=_(e),a=[],o=!1;for(let e of i){if(!c(e)){a.push(e);continue}if(e===t){o=!0,a.push(n);continue}let r=qe(e,t,n);r!==e&&(o=!0),a.push(r)}return o?P(e,r,a):e}function Je(e,t){let n=h(e),r=_(e),i=_(t),a=r.find(e=>c(e)&&u(e)),o=i.find(e=>c(e)&&u(e)),s=r.find(e=>c(e)&&f(e)),l=i.find(e=>c(e)&&f(e)),d=c(a)&&c(o)?pe(a,o):c(a)?a:o,p=c(s)&&c(l)?$(s,l):c(s)?s:l,m=[];return d!=null&&m.push(d),p!=null&&m.push(p),P(e,n,m)}function Ye(e,t,n){let r=h(e),i=_(e),a=i.findIndex(e=>c(e)&&f(e)),o=a>=0?i[a]:void 0,s=c(o)?Z(o,t.children,n):Z(e,t.children,n);if(c(o)&&a>=0){let t=[...i];return t[a]=s,P(e,r,t)}return P(e,r,s)}function Q(e,t){let n=h(e),r=h(t),i=v(r.children);if(i.length===1&&c(i[0])&&p(i[0])){let t=i[0];return Z(e,h(t).children,m(t))}let a=ge(n.children,r.children);return a===r.children?t:y(t)?P(e,n,a):P(t,r,a)}function Xe(e,t){if(y(t))return Q(e,t);let n=_(e),r=_(t);return n.length!==r.length&&De(e)&&r.length>0?P(t,h(t),Y(e,j(r))):Q(e,t)}function $(e,t){if(e==null)return N(t);if(t==null)return e;if(!c(e)||!c(t))return t;if(p(t)){let n=h(t),r=m(t);return d(e)?Ye(e,n,r):Z(e,n.children,r)}return d(e)&&d(t)&&y(t)?Je(e,t):u(e)||u(t)?t:g(e,t)?Xe(e,t):e.type===t.type?Q(e,t):t}export{o as LAYOUT_REUSE_ELEMENT,s as LAYOUT_REUSE_PATH_PROP,p as isLayoutReuseMarker,$ as mergeFlightRefresh,Z as spliceLayoutReuseChildren,w as unwrapFulfilledFlightNode};
@@ -313,15 +313,15 @@ interface RouteParams {
313
313
  interface SearchParams {
314
314
  readonly [key: string]: string | readonly string[] | undefined;
315
315
  }
316
- type PageProps<TParams extends RouteParams = RouteParams, TSearchParams extends SearchParams = SearchParams> = Readonly<{
317
- params: TParams;
318
- searchParams: TSearchParams;
319
- }>;
320
- type LayoutProps<TParams extends RouteParams = RouteParams> = Readonly<{
321
- children: ReactNode;
322
- params?: TParams;
323
- pathname?: string;
324
- }>;
316
+ interface PageProps<TParams extends RouteParams = RouteParams, TSearchParams extends SearchParams = SearchParams> {
317
+ readonly params: TParams;
318
+ readonly searchParams: TSearchParams;
319
+ }
320
+ interface LayoutProps<TParams extends RouteParams = RouteParams> {
321
+ readonly children: ReactNode;
322
+ readonly params?: TParams;
323
+ readonly pathname?: string;
324
+ }
325
325
  interface ErrorProps {
326
326
  readonly error: Error;
327
327
  readonly reset: () => void;
package/dist/vite.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { C as RouteSegmentType, D as RouteContext, E as ApiRouteHandlers, O as RouteHandler, S as RouteSegment, T as ApiResponse, _ as LayoutProps, a as Sitemap, b as NotFoundEntry, c as SitemapVideo, d as AppRouteMatch, f as ErrorEntry, g as LayoutEntry, h as GenerateStaticParams, i as RobotsRule, l as AppRouteEntry, m as GenerateMetadata, o as SitemapEntry, p as ErrorProps, r as Robots, s as SitemapImage, u as AppRouteManifest, v as LoadingEntry, w as TemplateEntry, x as PageProps, y as Metadata } from "./types-DfSnnFaF.mjs";
1
+ import { C as RouteSegmentType, D as RouteContext, E as ApiRouteHandlers, O as RouteHandler, S as RouteSegment, T as ApiResponse, _ as LayoutProps, a as Sitemap, b as NotFoundEntry, c as SitemapVideo, d as AppRouteMatch, f as ErrorEntry, g as LayoutEntry, h as GenerateStaticParams, i as RobotsRule, l as AppRouteEntry, m as GenerateMetadata, o as SitemapEntry, p as ErrorProps, r as Robots, s as SitemapImage, u as AppRouteManifest, v as LoadingEntry, w as TemplateEntry, x as PageProps, y as Metadata } from "./types-CkJ_86mo.mjs";
2
2
  import { a as ProxyModule, c as RariURL, i as ProxyMatcher, l as RequestCookies, n as ProxyConfig, o as ProxyResult, r as ProxyFunction, s as RariFetchEvent, t as CookieOptions, u as ResponseCookies } from "./types-DAdRjhuk.mjs";
3
3
  import { UserConfig } from "vite-plus";
4
4
  import { ReactCompilerOptions as ReactCompilerOptions$1 } from "oxc-transform-react";