git-truck 0.0.0-00e1486

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.
@@ -0,0 +1,35 @@
1
+ import{a as ro}from"/build/_shared/chunk-C4FAJW7L.js";import{a as Il,b as Fl,c as Bl,d as Se,e as an,f as cn,g as un,h as mn,i as pn,j as dn,k as hn,l as Et,m as gn,n as Te,o as ke,p as we,q as Mt,r as dt,s as fn}from"/build/_shared/chunk-RNK4UN5B.js";import{$ as Jo,A as Co,B as vo,Ba as ve,C as So,D as To,E as ko,F as wo,G as Mo,H as Ao,I as Lo,J as Oo,K as No,L as jo,M as Do,N as Eo,O as Po,P as Ro,Q as Io,R as Fo,S as Bo,T as Ho,U as Go,V as _o,W as zo,X as $o,Y as qo,Z as Uo,_ as Vo,a as Rl,aa as Wo,b as ot,c as oo,ca as mr,d as Xt,da as Xo,e as no,ea as Yo,f as io,fa as Ko,g as lo,ga as pr,h as so,ha as dr,i as sr,ia as Qo,j as ao,ja as Zo,k as co,ka as V,l as ar,la as tn,m as Yt,ma as Qt,n as cr,na as bt,o as uo,oa as Zt,p as mo,pa as te,q as po,qa as ye,r as ur,ra as xe,s as be,sa as en,t as ho,ta as rn,u as go,ua as on,v as fo,va as nn,w as bo,wa as Ce,x as yo,xa as se,y as Kt,ya as ln,z as xo,za as sn}from"/build/_shared/chunk-XF47JJBR.js";import{a as R,b as Qr,c as Wt,d as Zr,e as pt,f as to,h as wt,i as fe,j as zt,n as eo,o as lr,s as L}from"/build/_shared/chunk-DPCIHQKL.js";import{b as at,c as g}from"/build/_shared/chunk-Q3IECNXJ.js";var yn=at((da,bn)=>{bn.exports={}});var Sn=at((Oa,vn)=>{vn.exports={}});var kn=at((Na,Tn)=>{Tn.exports={}});var Ln=at((Ga,ql)=>{ql.exports={abap:["abap"],"ags script":["asc","ash"],ampl:["ampl"],antlr:["g4"],apl:["apl","dyalog"],asp:["asp","asax","ascx","ashx","asmx","aspx","axd"],ats:["dats","hats","sats"],actionscript:["as"],ada:["adb","ada","ads"],agda:["agda"],alloy:["als"],apacheconf:["apacheconf"],apex:["cls"],applescript:["applescript","scpt"],arc:["arc"],arduino:["ino"],asciidoc:["asciidoc","adoc","asc"],aspectj:["aj"],assembly:["asm","a51","nasm"],augeas:["aug"],autohotkey:["ahk","ahkl"],autoit:["au3"],awk:["awk","auk","gawk","mawk","nawk"],batchfile:["bat","cmd"],befunge:["befunge"],bison:["y"],bitbake:["bb"],blitzbasic:["bb","decls"],blitzmax:["bmx"],bluespec:["bsv"],boo:["boo"],brainfuck:["b","bf"],brightscript:["brs"],bro:["bro"],c:["c","cats","h","idc","w"],"c#":["cs","cshtml","csx"],"c++":["cpp","c++","cc","cp","cxx","h","h++","hh","hpp","hxx","inl","ipp","tcc","tpp"],"c-objdump":["c-objdump"],"c2hs haskell":["chs"],clips:["clp"],cmake:["cmake","cmake.in"],cobol:["cob","cbl","ccp","cobol","cpy"],css:["css"],"cap'n proto":["capnp"],cartocss:["mss"],ceylon:["ceylon"],chapel:["chpl"],chuck:["ck"],cirru:["cirru"],clarion:["clw"],clean:["icl","dcl"],clojure:["clj","boot","cl2","cljc","cljs","cljs.hl","cljscm","cljx","hic"],coffeescript:["coffee","_coffee","cjsx","cson","iced"],coldfusion:["cfm","cfml"],"coldfusion cfc":["cfc"],"common lisp":["lisp","asd","cl","lsp","ny","podsl"],"component pascal":["cp","cps"],cool:["cl"],coq:["coq","v"],"cpp-objdump":["cppobjdump","c++-objdump","c++objdump","cpp-objdump","cxx-objdump"],creole:["creole"],crystal:["cr"],cucumber:["feature"],cuda:["cu","cuh"],cycript:["cy"],cython:["pyx","pxd","pxi"],d:["d","di"],"d-objdump":["d-objdump"],"digital command language":["com"],dm:["dm"],dtrace:["d"],"darcs patch":["darcspatch","dpatch"],dart:["dart"],diff:["diff","patch"],dockerfile:["dockerfile"],dogescript:["djs"],dylan:["dylan","dyl","intr","lid"],e:["E"],ecl:["ecl","eclxml"],eagle:["sch","brd"],"ecere projects":["epj"],eiffel:["e"],elixir:["ex","exs"],elm:["elm"],"emacs lisp":["el","emacs","emacs.desktop"],emberscript:["em","emberscript"],erlang:["erl","es","escript","hrl"],"f#":["fs","fsi","fsx"],flux:["fx","flux"],fortran:["f90","f","f03","f08","f77","f95","for","fpp"],factor:["factor"],fancy:["fy","fancypack"],fantom:["fan"],filterscript:["fs"],formatted:["for"],forth:["fth","4th","f","for","forth","fr","frt","fs"],frege:["fr"],"g-code":["g","gco","gcode"],gams:["gms"],gap:["g","gap","gd","gi","tst"],gas:["s"],gdscript:["gd"],glsl:["glsl","fp","frag","frg","fs","fshader","geo","geom","glslv","gshader","shader","vert","vrx","vshader"],"game maker language":["gml"],genshi:["kid"],"gentoo ebuild":["ebuild"],"gentoo eclass":["eclass"],"gettext catalog":["po","pot"],glyph:["glf"],gnuplot:["gp","gnu","gnuplot","plot","plt"],go:["go"],golo:["golo"],gosu:["gs","gst","gsx","vark"],grace:["grace"],gradle:["gradle"],"grammatical framework":["gf"],"graph modeling language":["gml"],"graphviz (dot)":["dot","gv"],groff:["man","1","2","3","4","5","6","7"],groovy:["groovy","grt","gtpl","gvy"],"groovy server pages":["gsp"],html:["html","htm","html.hl","st","xht","xhtml"],"html+django":["mustache","jinja"],"html+erb":["erb","erb.deface"],"html+php":["phtml"],http:["http"],hack:["hh","php"],haml:["haml","haml.deface"],handlebars:["handlebars","hbs"],harbour:["hb"],haskell:["hs","hsc"],haxe:["hx","hxsl"],hy:["hy"],idl:["pro","dlm"],"igor pro":["ipf"],ini:["ini","cfg","prefs","pro","properties"],"irc log":["irclog","weechatlog"],idris:["idr","lidr"],"inform 7":["ni","i7x"],"inno setup":["iss"],io:["io"],ioke:["ik"],isabelle:["thy"],j:["ijs"],jflex:["flex","jflex"],json:["json","lock"],json5:["json5"],jsonld:["jsonld"],jsoniq:["jq"],jade:["jade"],jasmin:["j"],java:["java"],"java server pages":["jsp"],javascript:["js","_js","bones","es6","frag","gs","jake","jsb","jsfl","jsm","jss","jsx","njs","pac","sjs","ssjs","sublime-build","sublime-commands","sublime-completions","sublime-keymap","sublime-macro","sublime-menu","sublime-mousemap","sublime-project","sublime-settings","sublime-theme","sublime-workspace","sublime_metrics","sublime_session","xsjs","xsjslib"],julia:["jl"],krl:["krl"],kicad:["sch"],kit:["kit"],kotlin:["kt","ktm","kts"],lfe:["lfe"],llvm:["ll"],lolcode:["lol"],lsl:["lsl"],labview:["lvproj"],lasso:["lasso","las","lasso8","lasso9","ldml"],latte:["latte"],lean:["lean","hlean"],less:["less"],lilypond:["ly","ily"],limbo:["b","m"],"linker script":["ld","lds"],liquid:["liquid"],"literate agda":["lagda"],"literate coffeescript":["litcoffee"],"literate haskell":["lhs"],livescript:["ls","_ls"],logos:["xm","x","xi"],logtalk:["lgt","logtalk"],lookml:["lookml"],loomscript:["ls"],lua:["lua","fcgi","nse","pd_lua","rbxs","wlua"],m:["mumps","m"],mtml:["mtml"],muf:["muf","m"],makefile:["mak","d","mk"],mako:["mako","mao"],markdown:["md","markdown","mkd","mkdn","mkdown","ron"],mask:["mask"],mathematica:["mathematica","cdf","m","ma","nb","nbp","wl","wlt"],matlab:["matlab","m"],max:["maxpat","maxhelp","maxproj","mxt","pat"],mediawiki:["mediawiki"],mercury:["m","moo"],minid:["minid"],mirah:["druby","duby","mir","mirah"],modelica:["mo"],"module management system":["mms","mmk"],monkey:["monkey"],moocode:["moo"],moonscript:["moon"],myghty:["myt"],nl:["nl"],nsis:["nsi","nsh"],nemerle:["n"],netlinx:["axs","axi"],"netlinx+erb":["axs.erb","axi.erb"],netlogo:["nlogo"],newlisp:["nl","lisp","lsp"],nginx:["nginxconf"],nimrod:["nim","nimrod"],ninja:["ninja"],nit:["nit"],nix:["nix"],nu:["nu"],numpy:["numpy","numpyw","numsc"],ocaml:["ml","eliom","eliomi","ml4","mli","mll","mly"],objdump:["objdump"],"objective-c":["m","h"],"objective-c++":["mm"],"objective-j":["j","sj"],omgrofl:["omgrofl"],opa:["opa"],opal:["opal"],opencl:["cl","opencl"],"openedge abl":["p","cls"],openscad:["scad"],org:["org"],ox:["ox","oxh","oxo"],oxygene:["oxygene"],oz:["oz"],pawn:["pwn"],php:["php","aw","ctp","fcgi","php3","php4","php5","phpt"],plsql:["pls","pkb","pks","plb","plsql","sql"],plpgsql:["sql"],pan:["pan"],papyrus:["psc"],parrot:["parrot"],"parrot assembly":["pasm"],"parrot internal representation":["pir"],pascal:["pas","dfm","dpr","lpr","pp"],perl:["pl","cgi","fcgi","perl","ph","plx","pm","pod","psgi","t"],perl6:["6pl","6pm","nqp","p6","p6l","p6m","pl","pl6","pm","pm6","t"],piglatin:["pig"],pike:["pike","pmod"],pod:["pod"],pogoscript:["pogo"],postscript:["ps","eps"],powershell:["ps1","psd1","psm1"],processing:["pde"],prolog:["pl","ecl","pro","prolog"],"propeller spin":["spin"],"protocol buffer":["proto"],"public key":["asc","pub"],puppet:["pp"],"pure data":["pd"],purebasic:["pb","pbi"],purescript:["purs"],python:["py","cgi","fcgi","gyp","lmi","pyde","pyp","pyt","pyw","tac","wsgi","xpy"],"python traceback":["pytb"],qml:["qml"],qmake:["pro","pri"],r:["r","rd","rsx"],raml:["raml"],rdoc:["rdoc"],realbasic:["rbbas","rbfrm","rbmnu","rbres","rbtbar","rbuistate"],rhtml:["rhtml"],rmarkdown:["rmd"],racket:["rkt","rktd","rktl","scrbl"],"ragel in ruby host":["rl"],"raw token data":["raw"],rebol:["reb","r","r2","r3","rebol"],red:["red","reds"],redcode:["cw"],renderscript:["rs","rsh"],robotframework:["robot"],rouge:["rg"],ruby:["rb","builder","fcgi","gemspec","god","irbrc","jbuilder","mspec","pluginspec","podspec","rabl","rake","rbuild","rbw","rbx","ru","ruby","thor","watchr"],rust:["rs"],sas:["sas"],scss:["scss"],sparql:["sparql","rq"],sqf:["sqf","hqf"],sql:["sql","cql","ddl","prc","tab","udf","viw"],sqlpl:["sql","db2"],ston:["ston"],svg:["svg"],sage:["sage","sagews"],saltstack:["sls"],sass:["sass"],scala:["scala","sbt","sc"],scaml:["scaml"],scheme:["scm","sld","sls","sps","ss"],scilab:["sci","sce","tst"],self:["self"],shell:["sh","bash","bats","cgi","command","fcgi","ksh","tmux","tool","zsh"],shellsession:["sh-session"],shen:["shen"],slash:["sl"],slim:["slim"],smalltalk:["st","cs"],smarty:["tpl"],sourcepawn:["sp","sma"],squirrel:["nut"],"standard ml":["ML","fun","sig","sml"],stata:["do","ado","doh","ihlp","mata","matah","sthlp"],stylus:["styl"],supercollider:["scd","sc"],swift:["swift"],systemverilog:["sv","svh","vh"],toml:["toml"],txl:["txl"],tcl:["tcl","adp","tm"],tcsh:["tcsh","csh"],tex:["tex","aux","bbx","bib","cbx","cls","dtx","ins","lbx","ltx","mkii","mkiv","mkvi","sty","toc"],tea:["tea"],text:["txt","fr"],textile:["textile"],thrift:["thrift"],turing:["t","tu"],turtle:["ttl"],twig:["twig"],typescript:["ts"],"unified parallel c":["upc"],unrealscript:["uc"],vcl:["vcl"],vhdl:["vhdl","vhd","vhf","vhi","vho","vhs","vht","vhw"],vala:["vala","vapi"],verilog:["v","veo"],viml:["vim"],"visual basic":["vb","bas","cls","frm","frx","vba","vbhtml","vbs"],volt:["volt"],"web ontology language":["owl"],webidl:["webidl"],xc:["xc"],xml:["xml","ant","axml","ccxml","clixml","cproject","csproj","ct","dita","ditamap","ditaval","dll.config","filters","fsproj","fxml","glade","grxml","ivy","jelly","kml","launch","mm","mxml","nproj","nuspec","odd","osm","plist","pluginspec","ps1xml","psc1","pt","rdf","rss","scxml","srdf","storyboard","stTheme","sublime-snippet","targets","tmCommand","tml","tmLanguage","tmPreferences","tmSnippet","tmTheme","ts","ui","urdf","vbproj","vcxproj","vxml","wsdl","wsf","wxi","wxl","wxs","x3d","xacro","xaml","xib","xlf","xliff","xmi","xml.dist","xsd","xul","zcml"],xproc:["xpl","xproc"],xquery:["xquery","xq","xql","xqm","xqy"],xs:["xs"],xslt:["xslt","xsl"],xojo:["xojo_code","xojo_menu","xojo_report","xojo_script","xojo_toolbar","xojo_window"],xtend:["xtend"],yaml:["yml","reek","rviz","yaml"],zephir:["zep"],zimpl:["zimpl","zmpl","zpl"],desktop:["desktop","desktop.in"],ec:["ec","eh"],edn:["edn"],fish:["fish"],mupad:["mu"],nesc:["nc"],ooc:["ooc"],restructuredtext:["rst","rest"],wisp:["wisp"],xbase:["prg"]}});var On=at((_a,Ul)=>{Ul.exports={"1":["groff"],"2":["groff"],"3":["groff"],"4":["groff"],"5":["groff"],"6":["groff"],"7":["groff"],abap:["abap"],asc:["ags script","asciidoc","public key"],ash:["ags script"],ampl:["ampl"],g4:["antlr"],apl:["apl"],dyalog:["apl"],asp:["asp"],asax:["asp"],ascx:["asp"],ashx:["asp"],asmx:["asp"],aspx:["asp"],axd:["asp"],dats:["ats"],hats:["ats"],sats:["ats"],as:["actionscript"],adb:["ada"],ada:["ada"],ads:["ada"],agda:["agda"],als:["alloy"],apacheconf:["apacheconf"],cls:["apex","openedge abl","tex","visual basic"],applescript:["applescript"],scpt:["applescript"],arc:["arc"],ino:["arduino"],asciidoc:["asciidoc"],adoc:["asciidoc"],aj:["aspectj"],asm:["assembly"],a51:["assembly"],nasm:["assembly"],aug:["augeas"],ahk:["autohotkey"],ahkl:["autohotkey"],au3:["autoit"],awk:["awk"],auk:["awk"],gawk:["awk"],mawk:["awk"],nawk:["awk"],bat:["batchfile"],cmd:["batchfile"],befunge:["befunge"],y:["bison"],bb:["bitbake","blitzbasic"],decls:["blitzbasic"],bmx:["blitzmax"],bsv:["bluespec"],boo:["boo"],b:["brainfuck","limbo"],bf:["brainfuck"],brs:["brightscript"],bro:["bro"],c:["c"],cats:["c"],h:["c","c++","objective-c"],idc:["c"],w:["c"],cs:["c#","smalltalk"],cshtml:["c#"],csx:["c#"],cpp:["c++"],"c++":["c++"],cc:["c++"],cp:["c++","component pascal"],cxx:["c++"],"h++":["c++"],hh:["c++","hack"],hpp:["c++"],hxx:["c++"],inl:["c++"],ipp:["c++"],tcc:["c++"],tpp:["c++"],"c-objdump":["c-objdump"],chs:["c2hs haskell"],clp:["clips"],cmake:["cmake"],"cmake.in":["cmake"],cob:["cobol"],cbl:["cobol"],ccp:["cobol"],cobol:["cobol"],cpy:["cobol"],css:["css"],capnp:["cap'n proto"],mss:["cartocss"],ceylon:["ceylon"],chpl:["chapel"],ck:["chuck"],cirru:["cirru"],clw:["clarion"],icl:["clean"],dcl:["clean"],clj:["clojure"],boot:["clojure"],cl2:["clojure"],cljc:["clojure"],cljs:["clojure"],"cljs.hl":["clojure"],cljscm:["clojure"],cljx:["clojure"],hic:["clojure"],coffee:["coffeescript"],_coffee:["coffeescript"],cjsx:["coffeescript"],cson:["coffeescript"],iced:["coffeescript"],cfm:["coldfusion"],cfml:["coldfusion"],cfc:["coldfusion cfc"],lisp:["common lisp","newlisp"],asd:["common lisp"],cl:["common lisp","cool","opencl"],lsp:["common lisp","newlisp"],ny:["common lisp"],podsl:["common lisp"],cps:["component pascal"],coq:["coq"],v:["coq","verilog"],cppobjdump:["cpp-objdump"],"c++-objdump":["cpp-objdump"],"c++objdump":["cpp-objdump"],"cpp-objdump":["cpp-objdump"],"cxx-objdump":["cpp-objdump"],creole:["creole"],cr:["crystal"],feature:["cucumber"],cu:["cuda"],cuh:["cuda"],cy:["cycript"],pyx:["cython"],pxd:["cython"],pxi:["cython"],d:["d","dtrace","makefile"],di:["d"],"d-objdump":["d-objdump"],com:["digital command language"],dm:["dm"],darcspatch:["darcs patch"],dpatch:["darcs patch"],dart:["dart"],diff:["diff"],patch:["diff"],dockerfile:["dockerfile"],djs:["dogescript"],dylan:["dylan"],dyl:["dylan"],intr:["dylan"],lid:["dylan"],E:["e"],ecl:["ecl","prolog"],eclxml:["ecl"],sch:["eagle","kicad"],brd:["eagle"],epj:["ecere projects"],e:["eiffel"],ex:["elixir"],exs:["elixir"],elm:["elm"],el:["emacs lisp"],emacs:["emacs lisp"],"emacs.desktop":["emacs lisp"],em:["emberscript"],emberscript:["emberscript"],erl:["erlang"],es:["erlang"],escript:["erlang"],hrl:["erlang"],fs:["f#","filterscript","forth","glsl"],fsi:["f#"],fsx:["f#"],fx:["flux"],flux:["flux"],f90:["fortran"],f:["fortran","forth"],f03:["fortran"],f08:["fortran"],f77:["fortran"],f95:["fortran"],for:["fortran","formatted","forth"],fpp:["fortran"],factor:["factor"],fy:["fancy"],fancypack:["fancy"],fan:["fantom"],fth:["forth"],"4th":["forth"],forth:["forth"],fr:["forth","frege","text"],frt:["forth"],g:["g-code","gap"],gco:["g-code"],gcode:["g-code"],gms:["gams"],gap:["gap"],gd:["gap","gdscript"],gi:["gap"],tst:["gap","scilab"],s:["gas"],glsl:["glsl"],fp:["glsl"],frag:["glsl","javascript"],frg:["glsl"],fshader:["glsl"],geo:["glsl"],geom:["glsl"],glslv:["glsl"],gshader:["glsl"],shader:["glsl"],vert:["glsl"],vrx:["glsl"],vshader:["glsl"],gml:["game maker language","graph modeling language"],kid:["genshi"],ebuild:["gentoo ebuild"],eclass:["gentoo eclass"],po:["gettext catalog"],pot:["gettext catalog"],glf:["glyph"],gp:["gnuplot"],gnu:["gnuplot"],gnuplot:["gnuplot"],plot:["gnuplot"],plt:["gnuplot"],go:["go"],golo:["golo"],gs:["gosu","javascript"],gst:["gosu"],gsx:["gosu"],vark:["gosu"],grace:["grace"],gradle:["gradle"],gf:["grammatical framework"],dot:["graphviz (dot)"],gv:["graphviz (dot)"],man:["groff"],groovy:["groovy"],grt:["groovy"],gtpl:["groovy"],gvy:["groovy"],gsp:["groovy server pages"],html:["html"],htm:["html"],"html.hl":["html"],st:["html","smalltalk"],xht:["html"],xhtml:["html"],mustache:["html+django"],jinja:["html+django"],erb:["html+erb"],"erb.deface":["html+erb"],phtml:["html+php"],http:["http"],php:["hack","php"],haml:["haml"],"haml.deface":["haml"],handlebars:["handlebars"],hbs:["handlebars"],hb:["harbour"],hs:["haskell"],hsc:["haskell"],hx:["haxe"],hxsl:["haxe"],hy:["hy"],pro:["idl","ini","prolog","qmake"],dlm:["idl"],ipf:["igor pro"],ini:["ini"],cfg:["ini"],prefs:["ini"],properties:["ini"],irclog:["irc log"],weechatlog:["irc log"],idr:["idris"],lidr:["idris"],ni:["inform 7"],i7x:["inform 7"],iss:["inno setup"],io:["io"],ik:["ioke"],thy:["isabelle"],ijs:["j"],flex:["jflex"],jflex:["jflex"],json:["json"],lock:["json"],json5:["json5"],jsonld:["jsonld"],jq:["jsoniq"],jade:["jade"],j:["jasmin","objective-j"],java:["java"],jsp:["java server pages"],js:["javascript"],_js:["javascript"],bones:["javascript"],es6:["javascript"],jake:["javascript"],jsb:["javascript"],jsfl:["javascript"],jsm:["javascript"],jss:["javascript"],jsx:["javascript"],njs:["javascript"],pac:["javascript"],sjs:["javascript"],ssjs:["javascript"],"sublime-build":["javascript"],"sublime-commands":["javascript"],"sublime-completions":["javascript"],"sublime-keymap":["javascript"],"sublime-macro":["javascript"],"sublime-menu":["javascript"],"sublime-mousemap":["javascript"],"sublime-project":["javascript"],"sublime-settings":["javascript"],"sublime-theme":["javascript"],"sublime-workspace":["javascript"],sublime_metrics:["javascript"],sublime_session:["javascript"],xsjs:["javascript"],xsjslib:["javascript"],jl:["julia"],krl:["krl"],kit:["kit"],kt:["kotlin"],ktm:["kotlin"],kts:["kotlin"],lfe:["lfe"],ll:["llvm"],lol:["lolcode"],lsl:["lsl"],lvproj:["labview"],lasso:["lasso"],las:["lasso"],lasso8:["lasso"],lasso9:["lasso"],ldml:["lasso"],latte:["latte"],lean:["lean"],hlean:["lean"],less:["less"],ly:["lilypond"],ily:["lilypond"],m:["limbo","m","muf","mathematica","matlab","mercury","objective-c"],ld:["linker script"],lds:["linker script"],liquid:["liquid"],lagda:["literate agda"],litcoffee:["literate coffeescript"],lhs:["literate haskell"],ls:["livescript","loomscript"],_ls:["livescript"],xm:["logos"],x:["logos"],xi:["logos"],lgt:["logtalk"],logtalk:["logtalk"],lookml:["lookml"],lua:["lua"],fcgi:["lua","php","perl","python","ruby","shell"],nse:["lua"],pd_lua:["lua"],rbxs:["lua"],wlua:["lua"],mumps:["m"],mtml:["mtml"],muf:["muf"],mak:["makefile"],mk:["makefile"],mako:["mako"],mao:["mako"],md:["markdown"],markdown:["markdown"],mkd:["markdown"],mkdn:["markdown"],mkdown:["markdown"],ron:["markdown"],mask:["mask"],mathematica:["mathematica"],cdf:["mathematica"],ma:["mathematica"],nb:["mathematica"],nbp:["mathematica"],wl:["mathematica"],wlt:["mathematica"],matlab:["matlab"],maxpat:["max"],maxhelp:["max"],maxproj:["max"],mxt:["max"],pat:["max"],mediawiki:["mediawiki"],moo:["mercury","moocode"],minid:["minid"],druby:["mirah"],duby:["mirah"],mir:["mirah"],mirah:["mirah"],mo:["modelica"],mms:["module management system"],mmk:["module management system"],monkey:["monkey"],moon:["moonscript"],myt:["myghty"],nl:["nl","newlisp"],nsi:["nsis"],nsh:["nsis"],n:["nemerle"],axs:["netlinx"],axi:["netlinx"],"axs.erb":["netlinx+erb"],"axi.erb":["netlinx+erb"],nlogo:["netlogo"],nginxconf:["nginx"],nim:["nimrod"],nimrod:["nimrod"],ninja:["ninja"],nit:["nit"],nix:["nix"],nu:["nu"],numpy:["numpy"],numpyw:["numpy"],numsc:["numpy"],ml:["ocaml"],eliom:["ocaml"],eliomi:["ocaml"],ml4:["ocaml"],mli:["ocaml"],mll:["ocaml"],mly:["ocaml"],objdump:["objdump"],mm:["objective-c++","xml"],sj:["objective-j"],omgrofl:["omgrofl"],opa:["opa"],opal:["opal"],opencl:["opencl"],p:["openedge abl"],scad:["openscad"],org:["org"],ox:["ox"],oxh:["ox"],oxo:["ox"],oxygene:["oxygene"],oz:["oz"],pwn:["pawn"],aw:["php"],ctp:["php"],php3:["php"],php4:["php"],php5:["php"],phpt:["php"],pls:["plsql"],pkb:["plsql"],pks:["plsql"],plb:["plsql"],plsql:["plsql"],sql:["plsql","plpgsql","sql","sqlpl"],pan:["pan"],psc:["papyrus"],parrot:["parrot"],pasm:["parrot assembly"],pir:["parrot internal representation"],pas:["pascal"],dfm:["pascal"],dpr:["pascal"],lpr:["pascal"],pp:["pascal","puppet"],pl:["perl","perl6","prolog"],cgi:["perl","python","shell"],perl:["perl"],ph:["perl"],plx:["perl"],pm:["perl","perl6"],pod:["perl","pod"],psgi:["perl"],t:["perl","perl6","turing"],"6pl":["perl6"],"6pm":["perl6"],nqp:["perl6"],p6:["perl6"],p6l:["perl6"],p6m:["perl6"],pl6:["perl6"],pm6:["perl6"],pig:["piglatin"],pike:["pike"],pmod:["pike"],pogo:["pogoscript"],ps:["postscript"],eps:["postscript"],ps1:["powershell"],psd1:["powershell"],psm1:["powershell"],pde:["processing"],prolog:["prolog"],spin:["propeller spin"],proto:["protocol buffer"],pub:["public key"],pd:["pure data"],pb:["purebasic"],pbi:["purebasic"],purs:["purescript"],py:["python"],gyp:["python"],lmi:["python"],pyde:["python"],pyp:["python"],pyt:["python"],pyw:["python"],tac:["python"],wsgi:["python"],xpy:["python"],pytb:["python traceback"],qml:["qml"],pri:["qmake"],r:["r","rebol"],rd:["r"],rsx:["r"],raml:["raml"],rdoc:["rdoc"],rbbas:["realbasic"],rbfrm:["realbasic"],rbmnu:["realbasic"],rbres:["realbasic"],rbtbar:["realbasic"],rbuistate:["realbasic"],rhtml:["rhtml"],rmd:["rmarkdown"],rkt:["racket"],rktd:["racket"],rktl:["racket"],scrbl:["racket"],rl:["ragel in ruby host"],raw:["raw token data"],reb:["rebol"],r2:["rebol"],r3:["rebol"],rebol:["rebol"],red:["red"],reds:["red"],cw:["redcode"],rs:["renderscript","rust"],rsh:["renderscript"],robot:["robotframework"],rg:["rouge"],rb:["ruby"],builder:["ruby"],gemspec:["ruby"],god:["ruby"],irbrc:["ruby"],jbuilder:["ruby"],mspec:["ruby"],pluginspec:["ruby","xml"],podspec:["ruby"],rabl:["ruby"],rake:["ruby"],rbuild:["ruby"],rbw:["ruby"],rbx:["ruby"],ru:["ruby"],ruby:["ruby"],thor:["ruby"],watchr:["ruby"],sas:["sas"],scss:["scss"],sparql:["sparql"],rq:["sparql"],sqf:["sqf"],hqf:["sqf"],cql:["sql"],ddl:["sql"],prc:["sql"],tab:["sql"],udf:["sql"],viw:["sql"],db2:["sqlpl"],ston:["ston"],svg:["svg"],sage:["sage"],sagews:["sage"],sls:["saltstack","scheme"],sass:["sass"],scala:["scala"],sbt:["scala"],sc:["scala","supercollider"],scaml:["scaml"],scm:["scheme"],sld:["scheme"],sps:["scheme"],ss:["scheme"],sci:["scilab"],sce:["scilab"],self:["self"],sh:["shell"],bash:["shell"],bats:["shell"],command:["shell"],ksh:["shell"],tmux:["shell"],tool:["shell"],zsh:["shell"],"sh-session":["shellsession"],shen:["shen"],sl:["slash"],slim:["slim"],tpl:["smarty"],sp:["sourcepawn"],sma:["sourcepawn"],nut:["squirrel"],ML:["standard ml"],fun:["standard ml"],sig:["standard ml"],sml:["standard ml"],do:["stata"],ado:["stata"],doh:["stata"],ihlp:["stata"],mata:["stata"],matah:["stata"],sthlp:["stata"],styl:["stylus"],scd:["supercollider"],swift:["swift"],sv:["systemverilog"],svh:["systemverilog"],vh:["systemverilog"],toml:["toml"],txl:["txl"],tcl:["tcl"],adp:["tcl"],tm:["tcl"],tcsh:["tcsh"],csh:["tcsh"],tex:["tex"],aux:["tex"],bbx:["tex"],bib:["tex"],cbx:["tex"],dtx:["tex"],ins:["tex"],lbx:["tex"],ltx:["tex"],mkii:["tex"],mkiv:["tex"],mkvi:["tex"],sty:["tex"],toc:["tex"],tea:["tea"],txt:["text"],textile:["textile"],thrift:["thrift"],tu:["turing"],ttl:["turtle"],twig:["twig"],ts:["typescript","xml"],upc:["unified parallel c"],uc:["unrealscript"],vcl:["vcl"],vhdl:["vhdl"],vhd:["vhdl"],vhf:["vhdl"],vhi:["vhdl"],vho:["vhdl"],vhs:["vhdl"],vht:["vhdl"],vhw:["vhdl"],vala:["vala"],vapi:["vala"],veo:["verilog"],vim:["viml"],vb:["visual basic"],bas:["visual basic"],frm:["visual basic"],frx:["visual basic"],vba:["visual basic"],vbhtml:["visual basic"],vbs:["visual basic"],volt:["volt"],owl:["web ontology language"],webidl:["webidl"],xc:["xc"],xml:["xml"],ant:["xml"],axml:["xml"],ccxml:["xml"],clixml:["xml"],cproject:["xml"],csproj:["xml"],ct:["xml"],dita:["xml"],ditamap:["xml"],ditaval:["xml"],"dll.config":["xml"],filters:["xml"],fsproj:["xml"],fxml:["xml"],glade:["xml"],grxml:["xml"],ivy:["xml"],jelly:["xml"],kml:["xml"],launch:["xml"],mxml:["xml"],nproj:["xml"],nuspec:["xml"],odd:["xml"],osm:["xml"],plist:["xml"],ps1xml:["xml"],psc1:["xml"],pt:["xml"],rdf:["xml"],rss:["xml"],scxml:["xml"],srdf:["xml"],storyboard:["xml"],stTheme:["xml"],"sublime-snippet":["xml"],targets:["xml"],tmCommand:["xml"],tml:["xml"],tmLanguage:["xml"],tmPreferences:["xml"],tmSnippet:["xml"],tmTheme:["xml"],ui:["xml"],urdf:["xml"],vbproj:["xml"],vcxproj:["xml"],vxml:["xml"],wsdl:["xml"],wsf:["xml"],wxi:["xml"],wxl:["xml"],wxs:["xml"],x3d:["xml"],xacro:["xml"],xaml:["xml"],xib:["xml"],xlf:["xml"],xliff:["xml"],xmi:["xml"],"xml.dist":["xml"],xsd:["xml"],xul:["xml"],zcml:["xml"],xpl:["xproc"],xproc:["xproc"],xquery:["xquery"],xq:["xquery"],xql:["xquery"],xqm:["xquery"],xqy:["xquery"],xs:["xs"],xslt:["xslt"],xsl:["xslt"],xojo_code:["xojo"],xojo_menu:["xojo"],xojo_report:["xojo"],xojo_script:["xojo"],xojo_toolbar:["xojo"],xojo_window:["xojo"],xtend:["xtend"],yml:["yaml"],reek:["yaml"],rviz:["yaml"],yaml:["yaml"],zep:["zephir"],zimpl:["zimpl"],zmpl:["zimpl"],zpl:["zimpl"],desktop:["desktop"],"desktop.in":["desktop"],ec:["ec"],eh:["ec"],edn:["edn"],fish:["fish"],mu:["mupad"],nc:["nesc"],ooc:["ooc"],rst:["restructuredtext"],rest:["restructuredtext"],wisp:["wisp"],prg:["xbase"]}});var Dn=at((za,jn)=>{"use strict";function $t(){var t={};return t.extensions||(t.extensions=Ln()),t.languages||(t.languages=On()),t}$t.extensions=function(e){e=Nn(e);var r=$t().languages,o=$t().extensions;return o[e]||o[r[e]]||[e]};$t.languages=function(e){e=Nn(e);var r=$t().languages,o=$t().extensions;return r[e]||r[o[e]]||[e]};function Nn(t){return t.charAt(0)==="."&&(t=t.slice(1)),t.toLowerCase()}jn.exports=$t});var zn=at((vr,Sr)=>{(function(t,e){typeof vr=="object"&&typeof Sr<"u"?Sr.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.uniqolor=e())})(vr,function(){"use strict";function t(v,x){return o(v)||i(v,x)||l(v,x)||c()}function e(v){return r(v)||n(v)||l(v)||a()}function r(v){if(Array.isArray(v))return s(v)}function o(v){if(Array.isArray(v))return v}function n(v){if(typeof Symbol<"u"&&v[Symbol.iterator]!=null||v["@@iterator"]!=null)return Array.from(v)}function i(v,x){var C=v==null?null:typeof Symbol<"u"&&v[Symbol.iterator]||v["@@iterator"];if(C!=null){var T=[],w=!0,A=!1,j,F;try{for(C=C.call(v);!(w=(j=C.next()).done)&&(T.push(j.value),!(x&&T.length===x));w=!0);}catch(z){A=!0,F=z}finally{try{!w&&C.return!=null&&C.return()}finally{if(A)throw F}}return T}}function l(v,x){if(v){if(typeof v=="string")return s(v,x);var C=Object.prototype.toString.call(v).slice(8,-1);if(C==="Object"&&v.constructor&&(C=v.constructor.name),C==="Map"||C==="Set")return Array.from(v);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return s(v,x)}}function s(v,x){(x==null||x>v.length)&&(x=v.length);for(var C=0,T=new Array(x);C<x;C++)T[C]=v[C];return T}function a(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function c(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var m=[0,100],h=[0,100],u=function(x){return"".concat(x.length===1?"0":"").concat(x)},f=function(x,C,T){return Math.max(Math.min(x,T),C)},b=function(x,C){return Math.floor(Math.random()*(C-x+1))+x},d=function v(x,C,T){for(var w=b(x,C),A=0;A<T?.length;A++){var j=T[A];if(j?.length===2&&w>=j[0]&&w<=j[1])return v(x,C,T)}return w},p=function(x){for(var C=x.length,T=0,w=0;w<C;w++)T=(T<<5)-T+x.charCodeAt(w),T&=T;return T},k=function(x,C){return typeof C=="number"?C:x%Math.abs(C[1]-C[0])+C[0]},E=function(x,C){return typeof x=="number"?f.apply(void 0,[Math.abs(x)].concat(e(C))):x.length===1||x[0]===x[1]?f.apply(void 0,[Math.abs(x[0])].concat(e(C))):[Math.abs(f.apply(void 0,[x[0]].concat(e(C)))),f.apply(void 0,[Math.abs(x[1])].concat(e(C)))]},P=function(x,C,T){return T<0?T+=1:T>1&&(T-=1),T<1/6?x+(C-x)*6*T:T<1/2?C:T<2/3?x+(C-x)*(2/3-T)*6:x},G=function(x,C,T){var w,A,j;if(x/=360,C/=100,T/=100,C===0)w=A=j=T;else{var F=T<.5?T*(1+C):T+C-T*C,z=2*T-F;w=P(z,F,x+1/3),A=P(z,F,x),j=P(z,F,x-1/3)}return[Math.round(w*255),Math.round(A*255),Math.round(j*255)]},M=function(x,C,T,w){return(x*299+C*587+T*114)/1e3>=w},D=function(x,C,T){return"hsl(".concat(x,", ").concat(C,"%, ").concat(T,"%)")},B=function(x,C,T,w){switch(w){case"rgb":return"rgb(".concat(x,", ").concat(C,", ").concat(T,")");case"hex":default:return"#".concat(u(x.toString(16))).concat(u(C.toString(16))).concat(u(T.toString(16)))}},_=function(x){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=C.format,w=T===void 0?"hex":T,A=C.saturation,j=A===void 0?[50,55]:A,F=C.lightness,z=F===void 0?[50,60]:F,rt=C.differencePoint,st=rt===void 0?130:rt,mt=Math.abs(p(String(x))),jt=k(mt,[0,360]),_t=k(mt,E(j,m)),Dt=k(mt,E(z,h)),ge=G(jt,_t,Dt),Jt=t(ge,3),le=Jt[0],Yr=Jt[1],Kr=Jt[2];return{color:w==="hsl"?D(jt,_t,Dt):B(le,Yr,Kr,w),isLight:M(le,Yr,Kr,st)}};return _.random=function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},x=v.format,C=x===void 0?"hex":x,T=v.saturation,w=T===void 0?[50,55]:T,A=v.lightness,j=A===void 0?[50,60]:A,F=v.differencePoint,z=F===void 0?130:F,rt=v.excludeHue;w=E(w,m),j=E(j,h);var st=rt?d(0,359,rt):b(0,359),mt=typeof w=="number"?w:b.apply(void 0,e(w)),jt=typeof j=="number"?j:b.apply(void 0,e(j)),_t=G(st,mt,jt),Dt=t(_t,3),ge=Dt[0],Jt=Dt[1],le=Dt[2];return{color:C==="hsl"?D(st,mt,jt):B(ge,Jt,le,C),isLight:M(ge,Jt,le,z)}},_})});var hl=at((cd,Wr)=>{"use strict";function Ws(){throw new Error(`secure random number generation not supported by this browser
4
+ use chrome, FireFox or Internet Explorer 11`)}var Jr=globalThis.crypto||globalThis.msCrypto;Jr&&Jr.getRandomValues?Wr.exports=Xs:Wr.exports=Ws;function Xs(t,e){if(t>65536)throw new Error("requested too many random bytes");var r=new globalThis.Uint8Array(t);t>0&&Jr.getRandomValues(r);var o=new Buffer(r.buffer);return typeof e=="function"?process.nextTick(function(){e(null,o)}):o}});var bl=at((gl,fl)=>{function ie(){this.chars=""}ie.prototype.setType=function(t){if(Array.isArray(t))for(var e=0;e<t.length;e++)this.chars+=this.getCharacters(t[e]);else this.chars=this.getCharacters(t)};ie.prototype.getCharacters=function(t){var e,r="0123456789",o="abcdefghijklmnopqrstuvwxyz",n=o.toUpperCase(),i="abcdef",l="01",s="01234567";return t==="alphanumeric"?e=r+o+n:t==="numeric"?e=r:t==="alphabetic"?e=o+n:t==="hex"?e=r+i:t==="binary"?e=l:t==="octal"?e=s:e=t,e};ie.prototype.removeUnreadable=function(){var t=/[0OIl]/g;this.chars=this.chars.replace(t,"")};ie.prototype.setcapitalization=function(t){t==="uppercase"?this.chars=this.chars.toUpperCase():t==="lowercase"&&(this.chars=this.chars.toLowerCase())};ie.prototype.removeDuplicates=function(){var t=this.chars.split("");t=[...new Set(t)],this.chars=t.join("")};fl.exports=gl=ie});var Sl=at(vl=>{"use strict";var yl=hl(),Ys=bl();function Ks(t){for(var e=[],r=0;r<t;r++)e.push(Math.floor(Math.random()*255));return{length:t,readUInt8:function(o){return e[o]}}}function Qs(t){try{return yl(t)}catch{return Ks(t)}}function xl(t,e,r,o,n){for(var i=e,l=0;l<t.length&&i.length<o;l++){var s=t.readUInt8(l);s<n&&(i+=r.charAt(s%r.length))}return i}function Cl(t,e,r,o,n){yl(r,function(i,l){i&&n(i);var s=xl(l,t,e,r,o);s.length<r?Cl(s,e,r,o,n):n(null,s)})}vl.generate=function(t,e){var r=new Ys,o,n,i,l="";typeof t=="object"?(o=typeof t.length=="number"?t.length:32,t.charset?r.setType(t.charset):r.setType("alphanumeric"),t.capitalization&&r.setcapitalization(t.capitalization),t.readable&&r.removeUnreadable(),r.removeDuplicates()):typeof t=="number"?(o=t,r.setType("alphanumeric")):(o=32,r.setType("alphanumeric"));var s=r.chars.length,a=256-256%s;if(!e){for(;l.length<o;){var c=Qs(Math.ceil(o*256/a));l=xl(c,l,r.chars,o,a)}return l}Cl(l,r.chars,o,a,e)}});var kl=at((md,Tl)=>{Tl.exports=Sl()});var Nl=at(Gt=>{"use strict";Object.defineProperty(Gt,"__esModule",{value:!0});Gt.Detector=Gt.Offline=Gt.Online=void 0;var Ze=function(){function t(e,r){for(var o=0;o<r.length;o++){var n=r[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,r,o){return r&&t(e.prototype,r),o&&t(e,o),e}}(),Qe=R(),Zs=Rl(),kt=ta(Zs);function ta(t){return t&&t.__esModule?t:{default:t}}function ea(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}else return Array.from(t)}function tr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function er(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function rr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var Ml=typeof navigator<"u",ra=/Windows.*Chrome|Windows.*Firefox|Linux.*Chrome/,oa=function(e){var r=e.url,o=e.timeout;return new Promise(function(n){var i=function(){return n(!0)},l=function(){return n(!1)},s=new XMLHttpRequest;s.onerror=l,s.ontimeout=l,s.onreadystatechange=function(){s.readyState===s.HEADERS_RECEIVED&&(s.status?i():l())},s.open("GET",r),s.timeout=o,s.send()})},or={children:kt.default.node,onChange:kt.default.func,polling:kt.default.oneOfType([kt.default.shape({url:kt.default.string,interval:kt.default.number,timeout:kt.default.number}),kt.default.bool]),wrapperType:kt.default.string},nr={polling:!0,wrapperType:"span"},wl={enabled:Ml&&ra.test(navigator.userAgent),url:"https://httpbin.org/get",timeout:5e3,interval:5e3},he=function(t){rr(e,t);function e(){tr(this,e);var r=er(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return r.state={online:Ml&&typeof navigator.onLine=="boolean"?navigator.onLine:!0},r.goOnline=r.goOnline.bind(r),r.goOffline=r.goOffline.bind(r),r}return Ze(e,[{key:"componentDidMount",value:function(){window.addEventListener("online",this.goOnline),window.addEventListener("offline",this.goOffline),this.getPollingConfig().enabled&&this.startPolling()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("online",this.goOnline),window.removeEventListener("offline",this.goOffline),this.pollingId&&this.stopPolling()}},{key:"renderChildren",value:function(){var o=this.props,n=o.children,i=o.wrapperType;return(0,Qe.isValidElement)(n)?n:n?Qe.createElement.apply(void 0,[i,{}].concat(ea(Qe.Children.toArray(n)))):null}},{key:"getPollingConfig",value:function(){switch(this.props.polling){case!0:return wl;case!1:return{enabled:!1};default:return Object.assign({},wl,this.props.polling)}}},{key:"goOnline",value:function(){this.state.online||(this.callOnChangeHandler(!0),this.setState({online:!0}))}},{key:"goOffline",value:function(){this.state.online&&(this.callOnChangeHandler(!1),this.setState({online:!1}))}},{key:"callOnChangeHandler",value:function(o){this.props.onChange&&this.props.onChange(o)}},{key:"startPolling",value:function(){var o=this,n=this.getPollingConfig(),i=n.interval;this.pollingId=setInterval(function(){var l=o.getPollingConfig(),s=l.url,a=l.timeout;oa({url:s,timeout:a}).then(function(c){c?o.goOnline():o.goOffline()})},i)}},{key:"stopPolling",value:function(){clearInterval(this.pollingId)}}]),e}(Qe.Component);he.propTypes=or;he.defaultProps=nr;var Al=Gt.Online=function(t){rr(e,t);function e(){return tr(this,e),er(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Ze(e,[{key:"render",value:function(){return this.state.online?this.renderChildren():null}}]),e}(he);Al.propTypes=or;Al.defaultProps=nr;var Ll=Gt.Offline=function(t){rr(e,t);function e(){return tr(this,e),er(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Ze(e,[{key:"render",value:function(){return this.state.online?null:this.renderChildren()}}]),e}(he);Ll.propTypes=or;Ll.defaultProps=nr;var Ol=Gt.Detector=function(t){rr(e,t);function e(){return tr(this,e),er(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return Ze(e,[{key:"render",value:function(){return this.props.render({online:this.state.online})}}]),e}(he);Ol.propTypes=Object.assign({},or,{render:kt.default.func.isRequired});Ol.defaultProps=nr});var et=g(R());var na=g(yn());var _l=g(L());var xn=new Map;var Hl=t=>{let e=[],r=t.split(".");for(let o=0;o<r.length;o++)if(r[o].startsWith("[")){let n=r[o].substring(1),i=o+1;for(;!r[i].endsWith("]");)n+=`.${r[i]}`,i++;n+=`.${r[i].slice(0,-1)}`,e.push(n),o=i}else e.push(r[o]);return e};function hr(t,e){let r=Array.from(xn.values());for(let n of Object.keys(e)){let i=Hl(n);o(t,i,e[n])}return t;function o(n,i,l,s=0){let a=i[s];if(s<i.length-1){o(n[a],i,l,s+1);return}let c=n[a];switch(l){case"date":n[a]=new Date(c);break;case"set":n[a]=new Set(c);break;case"map":n[a]=new Map(Object.entries(c));break;case"regexp":let m=/^\/(.*)\/([dgimsuy]*)$/.exec(c);if(m)n[a]=new RegExp(m[1],m[2]);else throw new Error(`Invalid regexp: ${c}`);break;case"bigint":n[a]=BigInt(c);break;case"undefined":n[a]=void 0;break;case"infinity":n[a]=Number.POSITIVE_INFINITY;break;case"-infinity":n[a]=Number.NEGATIVE_INFINITY;break;case"nan":n[a]=NaN;break;case"error":let h=new Error(c.message);h.name=c.name,h.stack=c.stack,n[a]=h;break;default:let u=xn.get(l);u&&(n[a]=u.deserialize(c))}}}function gr(){let t=eo();return Cn(t)}function Cn(t){if(!t)return t;if(t.$$obj)return t.$$meta?hr(t.$$obj,t.$$meta):t.$$obj;if(t.$$meta){let e=t.$$meta;return delete t.$$meta,hr(t,e)}return t}var Xr=g(Sn()),ia=g(Il()),la=g(Fl()),sa=g(Bl()),jl=g(kn());var gt=g(R());var wn=g(R());var Me=g(R()),fr=(0,Me.createContext)(void 0);function nt(){let t=(0,Me.useContext)(fr);if(!t)throw new Error("useMetrics must be used within a MetricsContext");return t}var yt=g(L());function Ae(t){let[,e]=nt();return t.show?(0,yt.jsx)(yt.Fragment,{children:t.items.map(r=>{var s;let[o,n]=r,i=Math.round(n/t.contribSum*100),l=i===0?"<1":i;return(0,yt.jsxs)(wn.Fragment,{children:[(0,yt.jsxs)("div",{className:"flex items-center gap-2 overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",title:o,children:[(0,yt.jsx)(bt,{className:"ml-1",dotColor:(s=e.get(o))!=null?s:"grey"}),(0,yt.jsx)("span",{className:"overflow-hidden overflow-ellipsis whitespace-pre font-bold opacity-80",children:o})]}),(0,yt.jsxs)("p",{className:"break-all text-right text-sm",children:[l,"%"]})]},o+n)})}):null}var Mn=g(ot()),br=g(L());function ee({onClick:t=()=>{},open:e,className:r="",...o}){return(0,br.jsx)("button",{className:`z-10 ${r}`,onClick:t,...o,children:(0,br.jsx)(Mn.Icon,{path:co,size:1,className:`chevron transition-transform ${e?"rotate-180":""}`})})}var Le=g(R()),yr=(0,Le.createContext)(null);function it(){let t=(0,Le.useContext)(yr);if(!t)throw new Error("useClickedObject must be used within a ClickedObjectProvider");return t}var Oe=g(R()),xr=(0,Oe.createContext)(void 0);function $(){let t=(0,Oe.useContext)(xr);if(!t)throw new Error("useData must be used within a DataContext");return t}var Fe=g(R());var An={"1C Enterprise":{color:"#814CCC",url:"https://github.com/trending?l=1C-Enterprise"},"2-Dimensional Array":{color:"#38761D",url:"https://github.com/trending?l=2-Dimensional-Array"},"4D":{color:"#004289",url:"https://github.com/trending?l=4D"},ABAP:{color:"#E8274B",url:"https://github.com/trending?l=ABAP"},"ABAP CDS":{color:"#555e25",url:"https://github.com/trending?l=ABAP-CDS"},ActionScript:{color:"#882B0F",url:"https://github.com/trending?l=ActionScript"},Ada:{color:"#02f88c",url:"https://github.com/trending?l=Ada"},"Adblock Filter List":{color:"#800000",url:"https://github.com/trending?l=Adblock-Filter-List"},"Adobe Font Metrics":{color:"#fa0f00",url:"https://github.com/trending?l=Adobe-Font-Metrics"},Agda:{color:"#315665",url:"https://github.com/trending?l=Agda"},"AGS Script":{color:"#B9D9FF",url:"https://github.com/trending?l=AGS-Script"},AIDL:{color:"#34EB6B",url:"https://github.com/trending?l=AIDL"},AL:{color:"#3AA2B5",url:"https://github.com/trending?l=AL"},Alloy:{color:"#64C800",url:"https://github.com/trending?l=Alloy"},"Alpine Abuild":{color:"#0D597F",url:"https://github.com/trending?l=Alpine-Abuild"},"Altium Designer":{color:"#A89663",url:"https://github.com/trending?l=Altium-Designer"},AMPL:{color:"#E6EFBB",url:"https://github.com/trending?l=AMPL"},AngelScript:{color:"#C7D7DC",url:"https://github.com/trending?l=AngelScript"},"Ant Build System":{color:"#A9157E",url:"https://github.com/trending?l=Ant-Build-System"},Antlers:{color:"#ff269e",url:"https://github.com/trending?l=Antlers"},ANTLR:{color:"#9DC3FF",url:"https://github.com/trending?l=ANTLR"},ApacheConf:{color:"#d12127",url:"https://github.com/trending?l=ApacheConf"},Apex:{color:"#1797c0",url:"https://github.com/trending?l=Apex"},"API Blueprint":{color:"#2ACCA8",url:"https://github.com/trending?l=API-Blueprint"},APL:{color:"#5A8164",url:"https://github.com/trending?l=APL"},"Apollo Guidance Computer":{color:"#0B3D91",url:"https://github.com/trending?l=Apollo-Guidance-Computer"},AppleScript:{color:"#101F1F",url:"https://github.com/trending?l=AppleScript"},Arc:{color:"#aa2afe",url:"https://github.com/trending?l=Arc"},AsciiDoc:{color:"#73a0c5",url:"https://github.com/trending?l=AsciiDoc"},ASL:{color:null,url:"https://github.com/trending?l=ASL"},"ASP.NET":{color:"#9400ff",url:"https://github.com/trending?l=ASP.NET"},AspectJ:{color:"#a957b0",url:"https://github.com/trending?l=AspectJ"},Assembly:{color:"#6E4C13",url:"https://github.com/trending?l=Assembly"},Astro:{color:"#ff5a03",url:"https://github.com/trending?l=Astro"},Asymptote:{color:"#ff0000",url:"https://github.com/trending?l=Asymptote"},ATS:{color:"#1ac620",url:"https://github.com/trending?l=ATS"},Augeas:{color:"#9CC134",url:"https://github.com/trending?l=Augeas"},AutoHotkey:{color:"#6594b9",url:"https://github.com/trending?l=AutoHotkey"},AutoIt:{color:"#1C3552",url:"https://github.com/trending?l=AutoIt"},"Avro IDL":{color:"#0040FF",url:"https://github.com/trending?l=Avro-IDL"},Awk:{color:"#c30e9b",url:"https://github.com/trending?l=Awk"},Ballerina:{color:"#FF5000",url:"https://github.com/trending?l=Ballerina"},BASIC:{color:"#ff0000",url:"https://github.com/trending?l=BASIC"},Batchfile:{color:"#C1F12E",url:"https://github.com/trending?l=Batchfile"},Beef:{color:"#a52f4e",url:"https://github.com/trending?l=Beef"},Befunge:{color:null,url:"https://github.com/trending?l=Befunge"},Berry:{color:"#15A13C",url:"https://github.com/trending?l=Berry"},BibTeX:{color:"#778899",url:"https://github.com/trending?l=BibTeX"},Bicep:{color:"#519aba",url:"https://github.com/trending?l=Bicep"},Bikeshed:{color:"#5562ac",url:"https://github.com/trending?l=Bikeshed"},Bison:{color:"#6A463F",url:"https://github.com/trending?l=Bison"},BitBake:{color:"#00bce4",url:"https://github.com/trending?l=BitBake"},Blade:{color:"#f7523f",url:"https://github.com/trending?l=Blade"},BlitzBasic:{color:"#00FFAE",url:"https://github.com/trending?l=BlitzBasic"},BlitzMax:{color:"#cd6400",url:"https://github.com/trending?l=BlitzMax"},Bluespec:{color:"#12223c",url:"https://github.com/trending?l=Bluespec"},Boo:{color:"#d4bec1",url:"https://github.com/trending?l=Boo"},Boogie:{color:"#c80fa0",url:"https://github.com/trending?l=Boogie"},Brainfuck:{color:"#2F2530",url:"https://github.com/trending?l=Brainfuck"},BrighterScript:{color:"#66AABB",url:"https://github.com/trending?l=BrighterScript"},Brightscript:{color:"#662D91",url:"https://github.com/trending?l=Brightscript"},Browserslist:{color:"#ffd539",url:"https://github.com/trending?l=Browserslist"},C:{color:"#555555",url:"https://github.com/trending?l=C"},"C#":{color:"#178600",url:"https://github.com/trending?l=Csharp"},"C++":{color:"#f34b7d",url:"https://github.com/trending?l=C++"},"C2hs Haskell":{color:null,url:"https://github.com/trending?l=C2hs-Haskell"},"Cabal Config":{color:"#483465",url:"https://github.com/trending?l=Cabal-Config"},Cadence:{color:"#00ef8b",url:"https://github.com/trending?l=Cadence"},Cairo:{color:"#ff4a48",url:"https://github.com/trending?l=Cairo"},CameLIGO:{color:"#3be133",url:"https://github.com/trending?l=CameLIGO"},"CAP CDS":{color:"#0092d1",url:"https://github.com/trending?l=CAP-CDS"},"Cap'n Proto":{color:"#c42727",url:"https://github.com/trending?l=Cap'n-Proto"},CartoCSS:{color:null,url:"https://github.com/trending?l=CartoCSS"},Ceylon:{color:"#dfa535",url:"https://github.com/trending?l=Ceylon"},Chapel:{color:"#8dc63f",url:"https://github.com/trending?l=Chapel"},Charity:{color:null,url:"https://github.com/trending?l=Charity"},ChucK:{color:"#3f8000",url:"https://github.com/trending?l=ChucK"},Circom:{color:"#707575",url:"https://github.com/trending?l=Circom"},Cirru:{color:"#ccccff",url:"https://github.com/trending?l=Cirru"},Clarion:{color:"#db901e",url:"https://github.com/trending?l=Clarion"},Clarity:{color:"#5546ff",url:"https://github.com/trending?l=Clarity"},"Classic ASP":{color:"#6a40fd",url:"https://github.com/trending?l=Classic-ASP"},Clean:{color:"#3F85AF",url:"https://github.com/trending?l=Clean"},Click:{color:"#E4E6F3",url:"https://github.com/trending?l=Click"},CLIPS:{color:"#00A300",url:"https://github.com/trending?l=CLIPS"},Clojure:{color:"#db5855",url:"https://github.com/trending?l=Clojure"},"Closure Templates":{color:"#0d948f",url:"https://github.com/trending?l=Closure-Templates"},"Cloud Firestore Security Rules":{color:"#FFA000",url:"https://github.com/trending?l=Cloud-Firestore-Security-Rules"},CMake:{color:"#DA3434",url:"https://github.com/trending?l=CMake"},COBOL:{color:null,url:"https://github.com/trending?l=COBOL"},CodeQL:{color:"#140f46",url:"https://github.com/trending?l=CodeQL"},CoffeeScript:{color:"#244776",url:"https://github.com/trending?l=CoffeeScript"},ColdFusion:{color:"#ed2cd6",url:"https://github.com/trending?l=ColdFusion"},"ColdFusion CFC":{color:"#ed2cd6",url:"https://github.com/trending?l=ColdFusion-CFC"},COLLADA:{color:"#F1A42B",url:"https://github.com/trending?l=COLLADA"},"Common Lisp":{color:"#3fb68b",url:"https://github.com/trending?l=Common-Lisp"},"Common Workflow Language":{color:"#B5314C",url:"https://github.com/trending?l=Common-Workflow-Language"},"Component Pascal":{color:"#B0CE4E",url:"https://github.com/trending?l=Component-Pascal"},Cool:{color:null,url:"https://github.com/trending?l=Cool"},Coq:{color:"#d0b68c",url:"https://github.com/trending?l=Coq"},Crystal:{color:"#000100",url:"https://github.com/trending?l=Crystal"},CSON:{color:"#244776",url:"https://github.com/trending?l=CSON"},Csound:{color:"#1a1a1a",url:"https://github.com/trending?l=Csound"},"Csound Document":{color:"#1a1a1a",url:"https://github.com/trending?l=Csound-Document"},"Csound Score":{color:"#1a1a1a",url:"https://github.com/trending?l=Csound-Score"},CSS:{color:"#563d7c",url:"https://github.com/trending?l=CSS"},CSV:{color:"#237346",url:"https://github.com/trending?l=CSV"},Cuda:{color:"#3A4E3A",url:"https://github.com/trending?l=Cuda"},CUE:{color:"#5886E1",url:"https://github.com/trending?l=CUE"},Curry:{color:"#531242",url:"https://github.com/trending?l=Curry"},CWeb:{color:"#00007a",url:"https://github.com/trending?l=CWeb"},Cycript:{color:null,url:"https://github.com/trending?l=Cycript"},Cypher:{color:"#34c0eb",url:"https://github.com/trending?l=Cypher"},Cython:{color:"#fedf5b",url:"https://github.com/trending?l=Cython"},D:{color:"#ba595e",url:"https://github.com/trending?l=D"},Dafny:{color:"#FFEC25",url:"https://github.com/trending?l=Dafny"},"Darcs Patch":{color:"#8eff23",url:"https://github.com/trending?l=Darcs-Patch"},Dart:{color:"#00B4AB",url:"https://github.com/trending?l=Dart"},DataWeave:{color:"#003a52",url:"https://github.com/trending?l=DataWeave"},"Debian Package Control File":{color:"#D70751",url:"https://github.com/trending?l=Debian-Package-Control-File"},DenizenScript:{color:"#FBEE96",url:"https://github.com/trending?l=DenizenScript"},Dhall:{color:"#dfafff",url:"https://github.com/trending?l=Dhall"},"DIGITAL Command Language":{color:null,url:"https://github.com/trending?l=DIGITAL-Command-Language"},"DirectX 3D File":{color:"#aace60",url:"https://github.com/trending?l=DirectX-3D-File"},DM:{color:"#447265",url:"https://github.com/trending?l=DM"},Dockerfile:{color:"#384d54",url:"https://github.com/trending?l=Dockerfile"},Dogescript:{color:"#cca760",url:"https://github.com/trending?l=Dogescript"},Dotenv:{color:"#e5d559",url:"https://github.com/trending?l=Dotenv"},DTrace:{color:null,url:"https://github.com/trending?l=DTrace"},Dylan:{color:"#6c616e",url:"https://github.com/trending?l=Dylan"},E:{color:"#ccce35",url:"https://github.com/trending?l=E"},Earthly:{color:"#2af0ff",url:"https://github.com/trending?l=Earthly"},Easybuild:{color:"#069406",url:"https://github.com/trending?l=Easybuild"},eC:{color:"#913960",url:"https://github.com/trending?l=eC"},"Ecere Projects":{color:"#913960",url:"https://github.com/trending?l=Ecere-Projects"},ECL:{color:"#8a1267",url:"https://github.com/trending?l=ECL"},ECLiPSe:{color:"#001d9d",url:"https://github.com/trending?l=ECLiPSe"},Ecmarkup:{color:"#eb8131",url:"https://github.com/trending?l=Ecmarkup"},EditorConfig:{color:"#fff1f2",url:"https://github.com/trending?l=EditorConfig"},Eiffel:{color:"#4d6977",url:"https://github.com/trending?l=Eiffel"},EJS:{color:"#a91e50",url:"https://github.com/trending?l=EJS"},Elixir:{color:"#6e4a7e",url:"https://github.com/trending?l=Elixir"},Elm:{color:"#60B5CC",url:"https://github.com/trending?l=Elm"},Elvish:{color:"#55BB55",url:"https://github.com/trending?l=Elvish"},"Elvish Transcript":{color:"#55BB55",url:"https://github.com/trending?l=Elvish-Transcript"},"Emacs Lisp":{color:"#c065db",url:"https://github.com/trending?l=Emacs-Lisp"},EmberScript:{color:"#FFF4F3",url:"https://github.com/trending?l=EmberScript"},EQ:{color:"#a78649",url:"https://github.com/trending?l=EQ"},Erlang:{color:"#B83998",url:"https://github.com/trending?l=Erlang"},Euphoria:{color:"#FF790B",url:"https://github.com/trending?l=Euphoria"},"F#":{color:"#b845fc",url:"https://github.com/trending?l=Fsharp"},"F*":{color:"#572e30",url:"https://github.com/trending?l=F*"},Factor:{color:"#636746",url:"https://github.com/trending?l=Factor"},Fancy:{color:"#7b9db4",url:"https://github.com/trending?l=Fancy"},Fantom:{color:"#14253c",url:"https://github.com/trending?l=Fantom"},Faust:{color:"#c37240",url:"https://github.com/trending?l=Faust"},Fennel:{color:"#fff3d7",url:"https://github.com/trending?l=Fennel"},"FIGlet Font":{color:"#FFDDBB",url:"https://github.com/trending?l=FIGlet-Font"},"Filebench WML":{color:"#F6B900",url:"https://github.com/trending?l=Filebench-WML"},Filterscript:{color:null,url:"https://github.com/trending?l=Filterscript"},fish:{color:"#4aae47",url:"https://github.com/trending?l=fish"},Fluent:{color:"#ffcc33",url:"https://github.com/trending?l=Fluent"},FLUX:{color:"#88ccff",url:"https://github.com/trending?l=FLUX"},Forth:{color:"#341708",url:"https://github.com/trending?l=Forth"},Fortran:{color:"#4d41b1",url:"https://github.com/trending?l=Fortran"},"Fortran Free Form":{color:"#4d41b1",url:"https://github.com/trending?l=Fortran-Free-Form"},FreeBasic:{color:"#141AC9",url:"https://github.com/trending?l=FreeBasic"},FreeMarker:{color:"#0050b2",url:"https://github.com/trending?l=FreeMarker"},Frege:{color:"#00cafe",url:"https://github.com/trending?l=Frege"},Futhark:{color:"#5f021f",url:"https://github.com/trending?l=Futhark"},"G-code":{color:"#D08CF2",url:"https://github.com/trending?l=G-code"},"Game Maker Language":{color:"#71b417",url:"https://github.com/trending?l=Game-Maker-Language"},GAML:{color:"#FFC766",url:"https://github.com/trending?l=GAML"},GAMS:{color:"#f49a22",url:"https://github.com/trending?l=GAMS"},GAP:{color:"#0000cc",url:"https://github.com/trending?l=GAP"},"GCC Machine Description":{color:"#FFCFAB",url:"https://github.com/trending?l=GCC-Machine-Description"},GDB:{color:null,url:"https://github.com/trending?l=GDB"},GDScript:{color:"#355570",url:"https://github.com/trending?l=GDScript"},GEDCOM:{color:"#003058",url:"https://github.com/trending?l=GEDCOM"},"Gemfile.lock":{color:"#701516",url:"https://github.com/trending?l=Gemfile.lock"},Gemini:{color:"#ff6900",url:"https://github.com/trending?l=Gemini"},Genero:{color:"#63408e",url:"https://github.com/trending?l=Genero"},"Genero Forms":{color:"#d8df39",url:"https://github.com/trending?l=Genero-Forms"},Genie:{color:"#fb855d",url:"https://github.com/trending?l=Genie"},Genshi:{color:"#951531",url:"https://github.com/trending?l=Genshi"},"Gentoo Ebuild":{color:"#9400ff",url:"https://github.com/trending?l=Gentoo-Ebuild"},"Gentoo Eclass":{color:"#9400ff",url:"https://github.com/trending?l=Gentoo-Eclass"},"Gerber Image":{color:"#d20b00",url:"https://github.com/trending?l=Gerber-Image"},Gherkin:{color:"#5B2063",url:"https://github.com/trending?l=Gherkin"},"Git Attributes":{color:"#F44D27",url:"https://github.com/trending?l=Git-Attributes"},"Git Config":{color:"#F44D27",url:"https://github.com/trending?l=Git-Config"},"Git Revision List":{color:"#F44D27",url:"https://github.com/trending?l=Git-Revision-List"},Gleam:{color:"#ffaff3",url:"https://github.com/trending?l=Gleam"},GLSL:{color:"#5686a5",url:"https://github.com/trending?l=GLSL"},Glyph:{color:"#c1ac7f",url:"https://github.com/trending?l=Glyph"},Gnuplot:{color:"#f0a9f0",url:"https://github.com/trending?l=Gnuplot"},Go:{color:"#00ADD8",url:"https://github.com/trending?l=Go"},"Go Checksums":{color:"#00ADD8",url:"https://github.com/trending?l=Go-Checksums"},"Go Module":{color:"#00ADD8",url:"https://github.com/trending?l=Go-Module"},"Godot Resource":{color:"#355570",url:"https://github.com/trending?l=Godot-Resource"},Golo:{color:"#88562A",url:"https://github.com/trending?l=Golo"},Gosu:{color:"#82937f",url:"https://github.com/trending?l=Gosu"},Grace:{color:"#615f8b",url:"https://github.com/trending?l=Grace"},Gradle:{color:"#02303a",url:"https://github.com/trending?l=Gradle"},"Grammatical Framework":{color:"#ff0000",url:"https://github.com/trending?l=Grammatical-Framework"},GraphQL:{color:"#e10098",url:"https://github.com/trending?l=GraphQL"},"Graphviz (DOT)":{color:"#2596be",url:"https://github.com/trending?l=Graphviz-(DOT)"},Groovy:{color:"#4298b8",url:"https://github.com/trending?l=Groovy"},"Groovy Server Pages":{color:"#4298b8",url:"https://github.com/trending?l=Groovy-Server-Pages"},GSC:{color:"#FF6800",url:"https://github.com/trending?l=GSC"},Hack:{color:"#878787",url:"https://github.com/trending?l=Hack"},Haml:{color:"#ece2a9",url:"https://github.com/trending?l=Haml"},Handlebars:{color:"#f7931e",url:"https://github.com/trending?l=Handlebars"},HAProxy:{color:"#106da9",url:"https://github.com/trending?l=HAProxy"},Harbour:{color:"#0e60e3",url:"https://github.com/trending?l=Harbour"},Haskell:{color:"#5e5086",url:"https://github.com/trending?l=Haskell"},Haxe:{color:"#df7900",url:"https://github.com/trending?l=Haxe"},HCL:{color:"#844FBA",url:"https://github.com/trending?l=HCL"},HiveQL:{color:"#dce200",url:"https://github.com/trending?l=HiveQL"},HLSL:{color:"#aace60",url:"https://github.com/trending?l=HLSL"},HOCON:{color:"#9ff8ee",url:"https://github.com/trending?l=HOCON"},HolyC:{color:"#ffefaf",url:"https://github.com/trending?l=HolyC"},hoon:{color:"#00b171",url:"https://github.com/trending?l=hoon"},HTML:{color:"#e34c26",url:"https://github.com/trending?l=HTML"},"HTML+ECR":{color:"#2e1052",url:"https://github.com/trending?l=HTML+ECR"},"HTML+EEX":{color:"#6e4a7e",url:"https://github.com/trending?l=HTML+EEX"},"HTML+ERB":{color:"#701516",url:"https://github.com/trending?l=HTML+ERB"},"HTML+PHP":{color:"#4f5d95",url:"https://github.com/trending?l=HTML+PHP"},"HTML+Razor":{color:"#512be4",url:"https://github.com/trending?l=HTML+Razor"},HTTP:{color:"#005C9C",url:"https://github.com/trending?l=HTTP"},HXML:{color:"#f68712",url:"https://github.com/trending?l=HXML"},Hy:{color:"#7790B2",url:"https://github.com/trending?l=Hy"},HyPhy:{color:null,url:"https://github.com/trending?l=HyPhy"},IDL:{color:"#a3522f",url:"https://github.com/trending?l=IDL"},Idris:{color:"#b30000",url:"https://github.com/trending?l=Idris"},"Ignore List":{color:"#000000",url:"https://github.com/trending?l=Ignore-List"},"IGOR Pro":{color:"#0000cc",url:"https://github.com/trending?l=IGOR-Pro"},"ImageJ Macro":{color:"#99AAFF",url:"https://github.com/trending?l=ImageJ-Macro"},Imba:{color:"#16cec6",url:"https://github.com/trending?l=Imba"},"Inform 7":{color:null,url:"https://github.com/trending?l=Inform-7"},INI:{color:"#d1dbe0",url:"https://github.com/trending?l=INI"},Ink:{color:null,url:"https://github.com/trending?l=Ink"},"Inno Setup":{color:"#264b99",url:"https://github.com/trending?l=Inno-Setup"},Io:{color:"#a9188d",url:"https://github.com/trending?l=Io"},Ioke:{color:"#078193",url:"https://github.com/trending?l=Ioke"},Isabelle:{color:"#FEFE00",url:"https://github.com/trending?l=Isabelle"},"Isabelle ROOT":{color:"#FEFE00",url:"https://github.com/trending?l=Isabelle-ROOT"},J:{color:"#9EEDFF",url:"https://github.com/trending?l=J"},Janet:{color:"#0886a5",url:"https://github.com/trending?l=Janet"},"JAR Manifest":{color:"#b07219",url:"https://github.com/trending?l=JAR-Manifest"},Jasmin:{color:"#d03600",url:"https://github.com/trending?l=Jasmin"},Java:{color:"#b07219",url:"https://github.com/trending?l=Java"},"Java Properties":{color:"#2A6277",url:"https://github.com/trending?l=Java-Properties"},"Java Server Pages":{color:"#2A6277",url:"https://github.com/trending?l=Java-Server-Pages"},JavaScript:{color:"#f1e05a",url:"https://github.com/trending?l=JavaScript"},"JavaScript+ERB":{color:"#f1e05a",url:"https://github.com/trending?l=JavaScript+ERB"},JCL:{color:"#d90e09",url:"https://github.com/trending?l=JCL"},"Jest Snapshot":{color:"#15c213",url:"https://github.com/trending?l=Jest-Snapshot"},"JetBrains MPS":{color:"#21D789",url:"https://github.com/trending?l=JetBrains-MPS"},JFlex:{color:"#DBCA00",url:"https://github.com/trending?l=JFlex"},Jinja:{color:"#a52a22",url:"https://github.com/trending?l=Jinja"},Jison:{color:"#56b3cb",url:"https://github.com/trending?l=Jison"},"Jison Lex":{color:"#56b3cb",url:"https://github.com/trending?l=Jison-Lex"},Jolie:{color:"#843179",url:"https://github.com/trending?l=Jolie"},jq:{color:"#c7254e",url:"https://github.com/trending?l=jq"},JSON:{color:"#292929",url:"https://github.com/trending?l=JSON"},"JSON with Comments":{color:"#292929",url:"https://github.com/trending?l=JSON-with-Comments"},JSON5:{color:"#267CB9",url:"https://github.com/trending?l=JSON5"},JSONiq:{color:"#40d47e",url:"https://github.com/trending?l=JSONiq"},JSONLD:{color:"#0c479c",url:"https://github.com/trending?l=JSONLD"},Jsonnet:{color:"#0064bd",url:"https://github.com/trending?l=Jsonnet"},Julia:{color:"#a270ba",url:"https://github.com/trending?l=Julia"},"Jupyter Notebook":{color:"#DA5B0B",url:"https://github.com/trending?l=Jupyter-Notebook"},Just:{color:"#384d54",url:"https://github.com/trending?l=Just"},"Kaitai Struct":{color:"#773b37",url:"https://github.com/trending?l=Kaitai-Struct"},KakouneScript:{color:"#6f8042",url:"https://github.com/trending?l=KakouneScript"},KerboScript:{color:"#41adf0",url:"https://github.com/trending?l=KerboScript"},"KiCad Layout":{color:"#2f4aab",url:"https://github.com/trending?l=KiCad-Layout"},"KiCad Legacy Layout":{color:"#2f4aab",url:"https://github.com/trending?l=KiCad-Legacy-Layout"},"KiCad Schematic":{color:"#2f4aab",url:"https://github.com/trending?l=KiCad-Schematic"},Kotlin:{color:"#A97BFF",url:"https://github.com/trending?l=Kotlin"},KRL:{color:"#28430A",url:"https://github.com/trending?l=KRL"},kvlang:{color:"#1da6e0",url:"https://github.com/trending?l=kvlang"},LabVIEW:{color:"#fede06",url:"https://github.com/trending?l=LabVIEW"},Lark:{color:"#2980B9",url:"https://github.com/trending?l=Lark"},Lasso:{color:"#999999",url:"https://github.com/trending?l=Lasso"},Latte:{color:"#f2a542",url:"https://github.com/trending?l=Latte"},Lean:{color:null,url:"https://github.com/trending?l=Lean"},Less:{color:"#1d365d",url:"https://github.com/trending?l=Less"},Lex:{color:"#DBCA00",url:"https://github.com/trending?l=Lex"},LFE:{color:"#4C3023",url:"https://github.com/trending?l=LFE"},LigoLANG:{color:"#0e74ff",url:"https://github.com/trending?l=LigoLANG"},LilyPond:{color:"#9ccc7c",url:"https://github.com/trending?l=LilyPond"},Limbo:{color:null,url:"https://github.com/trending?l=Limbo"},Liquid:{color:"#67b8de",url:"https://github.com/trending?l=Liquid"},"Literate Agda":{color:"#315665",url:"https://github.com/trending?l=Literate-Agda"},"Literate CoffeeScript":{color:"#244776",url:"https://github.com/trending?l=Literate-CoffeeScript"},"Literate Haskell":{color:"#5e5086",url:"https://github.com/trending?l=Literate-Haskell"},LiveScript:{color:"#499886",url:"https://github.com/trending?l=LiveScript"},LLVM:{color:"#185619",url:"https://github.com/trending?l=LLVM"},Logos:{color:null,url:"https://github.com/trending?l=Logos"},Logtalk:{color:"#295b9a",url:"https://github.com/trending?l=Logtalk"},LOLCODE:{color:"#cc9900",url:"https://github.com/trending?l=LOLCODE"},LookML:{color:"#652B81",url:"https://github.com/trending?l=LookML"},LoomScript:{color:null,url:"https://github.com/trending?l=LoomScript"},LSL:{color:"#3d9970",url:"https://github.com/trending?l=LSL"},Lua:{color:"#000080",url:"https://github.com/trending?l=Lua"},M:{color:null,url:"https://github.com/trending?l=M"},M4:{color:null,url:"https://github.com/trending?l=M4"},M4Sugar:{color:null,url:"https://github.com/trending?l=M4Sugar"},Macaulay2:{color:"#d8ffff",url:"https://github.com/trending?l=Macaulay2"},Makefile:{color:"#427819",url:"https://github.com/trending?l=Makefile"},Mako:{color:"#7e858d",url:"https://github.com/trending?l=Mako"},Markdown:{color:"#083fa1",url:"https://github.com/trending?l=Markdown"},Marko:{color:"#42bff2",url:"https://github.com/trending?l=Marko"},Mask:{color:"#f97732",url:"https://github.com/trending?l=Mask"},Mathematica:{color:"#dd1100",url:"https://github.com/trending?l=Mathematica"},MATLAB:{color:"#e16737",url:"https://github.com/trending?l=MATLAB"},Max:{color:"#c4a79c",url:"https://github.com/trending?l=Max"},MAXScript:{color:"#00a6a6",url:"https://github.com/trending?l=MAXScript"},mcfunction:{color:"#E22837",url:"https://github.com/trending?l=mcfunction"},Mercury:{color:"#ff2b2b",url:"https://github.com/trending?l=Mercury"},Mermaid:{color:"#ff3670",url:"https://github.com/trending?l=Mermaid"},Meson:{color:"#007800",url:"https://github.com/trending?l=Meson"},Metal:{color:"#8f14e9",url:"https://github.com/trending?l=Metal"},MiniD:{color:null,url:"https://github.com/trending?l=MiniD"},MiniYAML:{color:"#ff1111",url:"https://github.com/trending?l=MiniYAML"},Mint:{color:"#02b046",url:"https://github.com/trending?l=Mint"},Mirah:{color:"#c7a938",url:"https://github.com/trending?l=Mirah"},"mIRC Script":{color:"#3d57c3",url:"https://github.com/trending?l=mIRC-Script"},MLIR:{color:"#5EC8DB",url:"https://github.com/trending?l=MLIR"},Modelica:{color:"#de1d31",url:"https://github.com/trending?l=Modelica"},"Modula-2":{color:"#10253f",url:"https://github.com/trending?l=Modula-2"},"Modula-3":{color:"#223388",url:"https://github.com/trending?l=Modula-3"},"Module Management System":{color:null,url:"https://github.com/trending?l=Module-Management-System"},Monkey:{color:null,url:"https://github.com/trending?l=Monkey"},"Monkey C":{color:"#8D6747",url:"https://github.com/trending?l=Monkey-C"},Moocode:{color:null,url:"https://github.com/trending?l=Moocode"},MoonScript:{color:"#ff4585",url:"https://github.com/trending?l=MoonScript"},Motoko:{color:"#fbb03b",url:"https://github.com/trending?l=Motoko"},"Motorola 68K Assembly":{color:"#005daa",url:"https://github.com/trending?l=Motorola-68K-Assembly"},Move:{color:"#4a137a",url:"https://github.com/trending?l=Move"},MQL4:{color:"#62A8D6",url:"https://github.com/trending?l=MQL4"},MQL5:{color:"#4A76B8",url:"https://github.com/trending?l=MQL5"},MTML:{color:"#b7e1f4",url:"https://github.com/trending?l=MTML"},MUF:{color:null,url:"https://github.com/trending?l=MUF"},mupad:{color:"#244963",url:"https://github.com/trending?l=mupad"},Mustache:{color:"#724b3b",url:"https://github.com/trending?l=Mustache"},Myghty:{color:null,url:"https://github.com/trending?l=Myghty"},nanorc:{color:"#2d004d",url:"https://github.com/trending?l=nanorc"},Nasal:{color:"#1d2c4e",url:"https://github.com/trending?l=Nasal"},NASL:{color:null,url:"https://github.com/trending?l=NASL"},NCL:{color:"#28431f",url:"https://github.com/trending?l=NCL"},Nearley:{color:"#990000",url:"https://github.com/trending?l=Nearley"},Nemerle:{color:"#3d3c6e",url:"https://github.com/trending?l=Nemerle"},nesC:{color:"#94B0C7",url:"https://github.com/trending?l=nesC"},NetLinx:{color:"#0aa0ff",url:"https://github.com/trending?l=NetLinx"},"NetLinx+ERB":{color:"#747faa",url:"https://github.com/trending?l=NetLinx+ERB"},NetLogo:{color:"#ff6375",url:"https://github.com/trending?l=NetLogo"},NewLisp:{color:"#87AED7",url:"https://github.com/trending?l=NewLisp"},Nextflow:{color:"#3ac486",url:"https://github.com/trending?l=Nextflow"},Nginx:{color:"#009639",url:"https://github.com/trending?l=Nginx"},Nim:{color:"#ffc200",url:"https://github.com/trending?l=Nim"},Nit:{color:"#009917",url:"https://github.com/trending?l=Nit"},Nix:{color:"#7e7eff",url:"https://github.com/trending?l=Nix"},"NPM Config":{color:"#cb3837",url:"https://github.com/trending?l=NPM-Config"},NSIS:{color:null,url:"https://github.com/trending?l=NSIS"},Nu:{color:"#c9df40",url:"https://github.com/trending?l=Nu"},NumPy:{color:"#9C8AF9",url:"https://github.com/trending?l=NumPy"},Nunjucks:{color:"#3d8137",url:"https://github.com/trending?l=Nunjucks"},NWScript:{color:"#111522",url:"https://github.com/trending?l=NWScript"},"OASv2-json":{color:"#85ea2d",url:"https://github.com/trending?l=OASv2-json"},"OASv2-yaml":{color:"#85ea2d",url:"https://github.com/trending?l=OASv2-yaml"},"OASv3-json":{color:"#85ea2d",url:"https://github.com/trending?l=OASv3-json"},"OASv3-yaml":{color:"#85ea2d",url:"https://github.com/trending?l=OASv3-yaml"},"Objective-C":{color:"#438eff",url:"https://github.com/trending?l=Objective-C"},"Objective-C++":{color:"#6866fb",url:"https://github.com/trending?l=Objective-C++"},"Objective-J":{color:"#ff0c5a",url:"https://github.com/trending?l=Objective-J"},ObjectScript:{color:"#424893",url:"https://github.com/trending?l=ObjectScript"},OCaml:{color:"#3be133",url:"https://github.com/trending?l=OCaml"},Odin:{color:"#60AFFE",url:"https://github.com/trending?l=Odin"},Omgrofl:{color:"#cabbff",url:"https://github.com/trending?l=Omgrofl"},ooc:{color:"#b0b77e",url:"https://github.com/trending?l=ooc"},Opa:{color:null,url:"https://github.com/trending?l=Opa"},Opal:{color:"#f7ede0",url:"https://github.com/trending?l=Opal"},"Open Policy Agent":{color:"#7d9199",url:"https://github.com/trending?l=Open-Policy-Agent"},"OpenAPI Specification v2":{color:"#85ea2d",url:"https://github.com/trending?l=OpenAPI-Specification-v2"},"OpenAPI Specification v3":{color:"#85ea2d",url:"https://github.com/trending?l=OpenAPI-Specification-v3"},OpenCL:{color:"#ed2e2d",url:"https://github.com/trending?l=OpenCL"},"OpenEdge ABL":{color:"#5ce600",url:"https://github.com/trending?l=OpenEdge-ABL"},OpenQASM:{color:"#AA70FF",url:"https://github.com/trending?l=OpenQASM"},"OpenRC runscript":{color:null,url:"https://github.com/trending?l=OpenRC-runscript"},OpenSCAD:{color:"#e5cd45",url:"https://github.com/trending?l=OpenSCAD"},"Option List":{color:"#476732",url:"https://github.com/trending?l=Option-List"},Org:{color:"#77aa99",url:"https://github.com/trending?l=Org"},Ox:{color:null,url:"https://github.com/trending?l=Ox"},Oxygene:{color:"#cdd0e3",url:"https://github.com/trending?l=Oxygene"},Oz:{color:"#fab738",url:"https://github.com/trending?l=Oz"},P4:{color:"#7055b5",url:"https://github.com/trending?l=P4"},Pan:{color:"#cc0000",url:"https://github.com/trending?l=Pan"},Papyrus:{color:"#6600cc",url:"https://github.com/trending?l=Papyrus"},Parrot:{color:"#f3ca0a",url:"https://github.com/trending?l=Parrot"},"Parrot Assembly":{color:null,url:"https://github.com/trending?l=Parrot-Assembly"},"Parrot Internal Representation":{color:null,url:"https://github.com/trending?l=Parrot-Internal-Representation"},Pascal:{color:"#E3F171",url:"https://github.com/trending?l=Pascal"},Pawn:{color:"#dbb284",url:"https://github.com/trending?l=Pawn"},PDDL:{color:"#0d00ff",url:"https://github.com/trending?l=PDDL"},"PEG.js":{color:"#234d6b",url:"https://github.com/trending?l=PEG.js"},Pep8:{color:"#C76F5B",url:"https://github.com/trending?l=Pep8"},Perl:{color:"#0298c3",url:"https://github.com/trending?l=Perl"},PHP:{color:"#4F5D95",url:"https://github.com/trending?l=PHP"},PicoLisp:{color:"#6067af",url:"https://github.com/trending?l=PicoLisp"},PigLatin:{color:"#fcd7de",url:"https://github.com/trending?l=PigLatin"},Pike:{color:"#005390",url:"https://github.com/trending?l=Pike"},PlantUML:{color:"#fbbd16",url:"https://github.com/trending?l=PlantUML"},PLpgSQL:{color:"#336790",url:"https://github.com/trending?l=PLpgSQL"},PLSQL:{color:"#dad8d8",url:"https://github.com/trending?l=PLSQL"},PogoScript:{color:"#d80074",url:"https://github.com/trending?l=PogoScript"},Polar:{color:"#ae81ff",url:"https://github.com/trending?l=Polar"},Pony:{color:null,url:"https://github.com/trending?l=Pony"},Portugol:{color:"#f8bd00",url:"https://github.com/trending?l=Portugol"},PostCSS:{color:"#dc3a0c",url:"https://github.com/trending?l=PostCSS"},PostScript:{color:"#da291c",url:"https://github.com/trending?l=PostScript"},"POV-Ray SDL":{color:"#6bac65",url:"https://github.com/trending?l=POV-Ray-SDL"},PowerBuilder:{color:"#8f0f8d",url:"https://github.com/trending?l=PowerBuilder"},PowerShell:{color:"#012456",url:"https://github.com/trending?l=PowerShell"},Prisma:{color:"#0c344b",url:"https://github.com/trending?l=Prisma"},Processing:{color:"#0096D8",url:"https://github.com/trending?l=Processing"},Procfile:{color:"#3B2F63",url:"https://github.com/trending?l=Procfile"},Prolog:{color:"#74283c",url:"https://github.com/trending?l=Prolog"},Promela:{color:"#de0000",url:"https://github.com/trending?l=Promela"},"Propeller Spin":{color:"#7fa2a7",url:"https://github.com/trending?l=Propeller-Spin"},Pug:{color:"#a86454",url:"https://github.com/trending?l=Pug"},Puppet:{color:"#302B6D",url:"https://github.com/trending?l=Puppet"},PureBasic:{color:"#5a6986",url:"https://github.com/trending?l=PureBasic"},PureScript:{color:"#1D222D",url:"https://github.com/trending?l=PureScript"},Pyret:{color:"#ee1e10",url:"https://github.com/trending?l=Pyret"},Python:{color:"#3572A5",url:"https://github.com/trending?l=Python"},"Python console":{color:"#3572A5",url:"https://github.com/trending?l=Python-console"},"Python traceback":{color:"#3572A5",url:"https://github.com/trending?l=Python-traceback"},q:{color:"#0040cd",url:"https://github.com/trending?l=q"},"Q#":{color:"#fed659",url:"https://github.com/trending?l=Qsharp"},QMake:{color:null,url:"https://github.com/trending?l=QMake"},QML:{color:"#44a51c",url:"https://github.com/trending?l=QML"},"Qt Script":{color:"#00b841",url:"https://github.com/trending?l=Qt-Script"},Quake:{color:"#882233",url:"https://github.com/trending?l=Quake"},R:{color:"#198CE7",url:"https://github.com/trending?l=R"},Racket:{color:"#3c5caa",url:"https://github.com/trending?l=Racket"},Ragel:{color:"#9d5200",url:"https://github.com/trending?l=Ragel"},Raku:{color:"#0000fb",url:"https://github.com/trending?l=Raku"},RAML:{color:"#77d9fb",url:"https://github.com/trending?l=RAML"},Rascal:{color:"#fffaa0",url:"https://github.com/trending?l=Rascal"},RDoc:{color:"#701516",url:"https://github.com/trending?l=RDoc"},REALbasic:{color:null,url:"https://github.com/trending?l=REALbasic"},Reason:{color:"#ff5847",url:"https://github.com/trending?l=Reason"},ReasonLIGO:{color:"#ff5847",url:"https://github.com/trending?l=ReasonLIGO"},Rebol:{color:"#358a5b",url:"https://github.com/trending?l=Rebol"},"Record Jar":{color:"#0673ba",url:"https://github.com/trending?l=Record-Jar"},Red:{color:"#f50000",url:"https://github.com/trending?l=Red"},Redcode:{color:null,url:"https://github.com/trending?l=Redcode"},"Regular Expression":{color:"#009a00",url:"https://github.com/trending?l=Regular-Expression"},"Ren'Py":{color:"#ff7f7f",url:"https://github.com/trending?l=Ren'Py"},RenderScript:{color:null,url:"https://github.com/trending?l=RenderScript"},ReScript:{color:"#ed5051",url:"https://github.com/trending?l=ReScript"},reStructuredText:{color:"#141414",url:"https://github.com/trending?l=reStructuredText"},REXX:{color:"#d90e09",url:"https://github.com/trending?l=REXX"},Ring:{color:"#2D54CB",url:"https://github.com/trending?l=Ring"},Riot:{color:"#A71E49",url:"https://github.com/trending?l=Riot"},RMarkdown:{color:"#198ce7",url:"https://github.com/trending?l=RMarkdown"},RobotFramework:{color:"#00c0b5",url:"https://github.com/trending?l=RobotFramework"},Roff:{color:"#ecdebe",url:"https://github.com/trending?l=Roff"},"Roff Manpage":{color:"#ecdebe",url:"https://github.com/trending?l=Roff-Manpage"},Rouge:{color:"#cc0088",url:"https://github.com/trending?l=Rouge"},"RouterOS Script":{color:"#DE3941",url:"https://github.com/trending?l=RouterOS-Script"},RPC:{color:null,url:"https://github.com/trending?l=RPC"},RPGLE:{color:"#2BDE21",url:"https://github.com/trending?l=RPGLE"},Ruby:{color:"#701516",url:"https://github.com/trending?l=Ruby"},RUNOFF:{color:"#665a4e",url:"https://github.com/trending?l=RUNOFF"},Rust:{color:"#dea584",url:"https://github.com/trending?l=Rust"},Sage:{color:null,url:"https://github.com/trending?l=Sage"},SaltStack:{color:"#646464",url:"https://github.com/trending?l=SaltStack"},SAS:{color:"#B34936",url:"https://github.com/trending?l=SAS"},Sass:{color:"#a53b70",url:"https://github.com/trending?l=Sass"},Scala:{color:"#c22d40",url:"https://github.com/trending?l=Scala"},Scaml:{color:"#bd181a",url:"https://github.com/trending?l=Scaml"},Scenic:{color:"#fdc700",url:"https://github.com/trending?l=Scenic"},Scheme:{color:"#1e4aec",url:"https://github.com/trending?l=Scheme"},Scilab:{color:"#ca0f21",url:"https://github.com/trending?l=Scilab"},SCSS:{color:"#c6538c",url:"https://github.com/trending?l=SCSS"},sed:{color:"#64b970",url:"https://github.com/trending?l=sed"},Self:{color:"#0579aa",url:"https://github.com/trending?l=Self"},ShaderLab:{color:"#222c37",url:"https://github.com/trending?l=ShaderLab"},Shell:{color:"#89e051",url:"https://github.com/trending?l=Shell"},"ShellCheck Config":{color:"#cecfcb",url:"https://github.com/trending?l=ShellCheck-Config"},ShellSession:{color:null,url:"https://github.com/trending?l=ShellSession"},Shen:{color:"#120F14",url:"https://github.com/trending?l=Shen"},Sieve:{color:null,url:"https://github.com/trending?l=Sieve"},"Simple File Verification":{color:"#C9BFED",url:"https://github.com/trending?l=Simple-File-Verification"},Singularity:{color:"#64E6AD",url:"https://github.com/trending?l=Singularity"},Slash:{color:"#007eff",url:"https://github.com/trending?l=Slash"},Slice:{color:"#003fa2",url:"https://github.com/trending?l=Slice"},Slim:{color:"#2b2b2b",url:"https://github.com/trending?l=Slim"},Smali:{color:null,url:"https://github.com/trending?l=Smali"},Smalltalk:{color:"#596706",url:"https://github.com/trending?l=Smalltalk"},Smarty:{color:"#f0c040",url:"https://github.com/trending?l=Smarty"},Smithy:{color:"#c44536",url:"https://github.com/trending?l=Smithy"},SmPL:{color:"#c94949",url:"https://github.com/trending?l=SmPL"},SMT:{color:null,url:"https://github.com/trending?l=SMT"},Snakemake:{color:"#419179",url:"https://github.com/trending?l=Snakemake"},Solidity:{color:"#AA6746",url:"https://github.com/trending?l=Solidity"},SourcePawn:{color:"#f69e1d",url:"https://github.com/trending?l=SourcePawn"},SPARQL:{color:"#0C4597",url:"https://github.com/trending?l=SPARQL"},SQF:{color:"#3F3F3F",url:"https://github.com/trending?l=SQF"},SQL:{color:"#e38c00",url:"https://github.com/trending?l=SQL"},SQLPL:{color:"#e38c00",url:"https://github.com/trending?l=SQLPL"},Squirrel:{color:"#800000",url:"https://github.com/trending?l=Squirrel"},"SRecode Template":{color:"#348a34",url:"https://github.com/trending?l=SRecode-Template"},Stan:{color:"#b2011d",url:"https://github.com/trending?l=Stan"},"Standard ML":{color:"#dc566d",url:"https://github.com/trending?l=Standard-ML"},Starlark:{color:"#76d275",url:"https://github.com/trending?l=Starlark"},Stata:{color:"#1a5f91",url:"https://github.com/trending?l=Stata"},STL:{color:"#373b5e",url:"https://github.com/trending?l=STL"},StringTemplate:{color:"#3fb34f",url:"https://github.com/trending?l=StringTemplate"},Stylus:{color:"#ff6347",url:"https://github.com/trending?l=Stylus"},"SubRip Text":{color:"#9e0101",url:"https://github.com/trending?l=SubRip-Text"},SugarSS:{color:"#2fcc9f",url:"https://github.com/trending?l=SugarSS"},SuperCollider:{color:"#46390b",url:"https://github.com/trending?l=SuperCollider"},Svelte:{color:"#ff3e00",url:"https://github.com/trending?l=Svelte"},SVG:{color:"#ff9900",url:"https://github.com/trending?l=SVG"},Sway:{color:"#dea584",url:"https://github.com/trending?l=Sway"},Swift:{color:"#F05138",url:"https://github.com/trending?l=Swift"},SWIG:{color:null,url:"https://github.com/trending?l=SWIG"},SystemVerilog:{color:"#DAE1C2",url:"https://github.com/trending?l=SystemVerilog"},Talon:{color:"#333333",url:"https://github.com/trending?l=Talon"},Tcl:{color:"#e4cc98",url:"https://github.com/trending?l=Tcl"},Tcsh:{color:null,url:"https://github.com/trending?l=Tcsh"},Terra:{color:"#00004c",url:"https://github.com/trending?l=Terra"},TeX:{color:"#3D6117",url:"https://github.com/trending?l=TeX"},Textile:{color:"#ffe7ac",url:"https://github.com/trending?l=Textile"},"TextMate Properties":{color:"#df66e4",url:"https://github.com/trending?l=TextMate-Properties"},Thrift:{color:"#D12127",url:"https://github.com/trending?l=Thrift"},"TI Program":{color:"#A0AA87",url:"https://github.com/trending?l=TI-Program"},TLA:{color:"#4b0079",url:"https://github.com/trending?l=TLA"},TOML:{color:"#9c4221",url:"https://github.com/trending?l=TOML"},TSQL:{color:"#e38c00",url:"https://github.com/trending?l=TSQL"},TSV:{color:"#237346",url:"https://github.com/trending?l=TSV"},TSX:{color:"#3178c6",url:"https://github.com/trending?l=TSX"},Turing:{color:"#cf142b",url:"https://github.com/trending?l=Turing"},Twig:{color:"#c1d026",url:"https://github.com/trending?l=Twig"},TXL:{color:"#0178b8",url:"https://github.com/trending?l=TXL"},TypeScript:{color:"#3178c6",url:"https://github.com/trending?l=TypeScript"},"Unified Parallel C":{color:"#4e3617",url:"https://github.com/trending?l=Unified-Parallel-C"},"Unity3D Asset":{color:"#222c37",url:"https://github.com/trending?l=Unity3D-Asset"},"Unix Assembly":{color:null,url:"https://github.com/trending?l=Unix-Assembly"},Uno:{color:"#9933cc",url:"https://github.com/trending?l=Uno"},UnrealScript:{color:"#a54c4d",url:"https://github.com/trending?l=UnrealScript"},UrWeb:{color:"#ccccee",url:"https://github.com/trending?l=UrWeb"},V:{color:"#4f87c4",url:"https://github.com/trending?l=V"},Vala:{color:"#a56de2",url:"https://github.com/trending?l=Vala"},"Valve Data Format":{color:"#f26025",url:"https://github.com/trending?l=Valve-Data-Format"},VBA:{color:"#867db1",url:"https://github.com/trending?l=VBA"},VBScript:{color:"#15dcdc",url:"https://github.com/trending?l=VBScript"},VCL:{color:"#148AA8",url:"https://github.com/trending?l=VCL"},"Velocity Template Language":{color:"#507cff",url:"https://github.com/trending?l=Velocity-Template-Language"},Verilog:{color:"#b2b7f8",url:"https://github.com/trending?l=Verilog"},VHDL:{color:"#adb2cb",url:"https://github.com/trending?l=VHDL"},"Vim Help File":{color:"#199f4b",url:"https://github.com/trending?l=Vim-Help-File"},"Vim Script":{color:"#199f4b",url:"https://github.com/trending?l=Vim-Script"},"Vim Snippet":{color:"#199f4b",url:"https://github.com/trending?l=Vim-Snippet"},"Visual Basic .NET":{color:"#945db7",url:"https://github.com/trending?l=Visual-Basic-.NET"},"Visual Basic 6.0":{color:"#2c6353",url:"https://github.com/trending?l=Visual-Basic-6.0"},Volt:{color:"#1F1F1F",url:"https://github.com/trending?l=Volt"},Vue:{color:"#41b883",url:"https://github.com/trending?l=Vue"},Vyper:{color:"#2980b9",url:"https://github.com/trending?l=Vyper"},wdl:{color:"#42f1f4",url:"https://github.com/trending?l=wdl"},"Web Ontology Language":{color:"#5b70bd",url:"https://github.com/trending?l=Web-Ontology-Language"},WebAssembly:{color:"#04133b",url:"https://github.com/trending?l=WebAssembly"},WebIDL:{color:null,url:"https://github.com/trending?l=WebIDL"},Whiley:{color:"#d5c397",url:"https://github.com/trending?l=Whiley"},Wikitext:{color:"#fc5757",url:"https://github.com/trending?l=Wikitext"},"Windows Registry Entries":{color:"#52d5ff",url:"https://github.com/trending?l=Windows-Registry-Entries"},wisp:{color:"#7582D1",url:"https://github.com/trending?l=wisp"},"Witcher Script":{color:"#ff0000",url:"https://github.com/trending?l=Witcher-Script"},Wollok:{color:"#a23738",url:"https://github.com/trending?l=Wollok"},"World of Warcraft Addon Data":{color:"#f7e43f",url:"https://github.com/trending?l=World-of-Warcraft-Addon-Data"},Wren:{color:"#383838",url:"https://github.com/trending?l=Wren"},X10:{color:"#4B6BEF",url:"https://github.com/trending?l=X10"},xBase:{color:"#403a40",url:"https://github.com/trending?l=xBase"},XC:{color:"#99DA07",url:"https://github.com/trending?l=XC"},XML:{color:"#0060ac",url:"https://github.com/trending?l=XML"},"XML Property List":{color:"#0060ac",url:"https://github.com/trending?l=XML-Property-List"},Xojo:{color:"#81bd41",url:"https://github.com/trending?l=Xojo"},Xonsh:{color:"#285EEF",url:"https://github.com/trending?l=Xonsh"},XProc:{color:null,url:"https://github.com/trending?l=XProc"},XQuery:{color:"#5232e7",url:"https://github.com/trending?l=XQuery"},XS:{color:null,url:"https://github.com/trending?l=XS"},XSLT:{color:"#EB8CEB",url:"https://github.com/trending?l=XSLT"},Xtend:{color:"#24255d",url:"https://github.com/trending?l=Xtend"},Yacc:{color:"#4B6C4B",url:"https://github.com/trending?l=Yacc"},YAML:{color:"#cb171e",url:"https://github.com/trending?l=YAML"},YARA:{color:"#220000",url:"https://github.com/trending?l=YARA"},YASnippet:{color:"#32AB90",url:"https://github.com/trending?l=YASnippet"},Yul:{color:"#794932",url:"https://github.com/trending?l=Yul"},ZAP:{color:"#0d665e",url:"https://github.com/trending?l=ZAP"},Zeek:{color:null,url:"https://github.com/trending?l=Zeek"},ZenScript:{color:"#00BCD1",url:"https://github.com/trending?l=ZenScript"},Zephir:{color:"#118f9e",url:"https://github.com/trending?l=Zephir"},Zig:{color:"#ec915c",url:"https://github.com/trending?l=Zig"},ZIL:{color:"#dc75e5",url:"https://github.com/trending?l=ZIL"},Zimpl:{color:"#d67711",url:"https://github.com/trending?l=Zimpl"}};var En=g(Dn()),Pn=new Map;for(let[t,{color:e}]of Object.entries(An))Pn.set(t.toLowerCase(),{color:e!=null?e:null,lang:t});function Rn(t){let e=En.default.languages(t.toLowerCase()),r=[];if(!e)return null;let o=null;for(let n of e){let i=Pn.get(n);if(i){o=i,r.push(o.lang);break}}return o?o.color:null}var Ne=class{constructor(e,r,o,n){this.scale=(n-o)/(r-e),this.offset=e*this.scale-o,this.target_max=n,this.target_min=o}translate(e){return e*this.scale-this.offset}inverseTranslate(e){return this.target_max-this.translate(e)+this.target_min}};var In=g(R());var q=g(L()),je=3,ht=class{constructor(e,r){this.color=e;this.weight=r}add(e){this.weight+=e}};function Fn({metricCache:t}){let[e,r]=(0,In.useState)(!0),o=Array.from(t.legend).sort(([,n],[,i])=>n.weight<i.weight?1:n.weight>i.weight?-1:0);return o.length===0?null:o.length<=je+1?(0,q.jsx)(Cr,{show:!0,items:o}):(0,q.jsxs)(q.Fragment,{children:[(0,q.jsx)(Cr,{show:!0,items:o.slice(0,je)}),(0,q.jsx)(Cr,{show:!e,items:o.slice(je)}),(0,q.jsx)(Vl,{show:e,items:o.slice(je),toggle:()=>r(!e)}),(0,q.jsx)(ee,{className:"absolute bottom-2 right-2",open:!e,onClick:()=>r(!e)})]})}function Cr(t){return t.show?(0,q.jsx)(q.Fragment,{children:t.items.map(e=>{let[r,o]=e;return(0,q.jsx)("div",{children:(0,q.jsxs)("div",{className:"relative flex items-center gap-2 text-sm leading-none",children:[(0,q.jsx)(bt,{dotColor:o.color}),(0,q.jsx)("span",{className:"font-bold",children:r})]})},r)})}):null}function Vl(t){return t.show?(0,q.jsx)("button",{className:"w-fit hover:opacity-70",onClick:t.toggle,children:(0,q.jsxs)("div",{className:"relative flex items-center gap-2 text-sm leading-none",children:[t.items.slice(0,14).map(([e,r],o)=>{let n=o===0?0:-16;return(0,q.jsx)(bt,{dotColor:r.color,style:{marginLeft:n}},`dot${e}`)}),(0,q.jsxs)("span",{className:"font-bold",children:[t.items.length," more"]})]})}):null}function Bn(t,e){var i;let r=t.name.substring(t.name.lastIndexOf(".")+1),o=Rn(r),n=e.legend;o?(n.has(r)?(i=n.get(r))==null||i.add(1):n.set(r,new ht(o,1)),e.colormap.set(t.path,o)):(n.has("Other")||n.set("Other",new ht("#808080",0)),e.colormap.set(t.path,"#808080"))}function Hn(t,e,r,o){var c,m,h;let n="#e0e0e0",i="#404040",l=(m=(c=t.unionedAuthors)==null?void 0:c[r])!=null?m:{},s=e.legend,a=Object.keys(l);switch(a.length){case 0:{s.set("No authors",new ht(i,0)),e.colormap.set(t.path,i);return}case 1:{let u=(h=o.get(a[0]))!=null?h:i;s.set(a[0],new ht(u,2)),e.colormap.set(t.path,u);return}default:s.set("Multiple authors",new ht(n,1)),e.colormap.set(t.path,n)}}var De=class{constructor(e,r){this.min_lightness=50;this.max_lightness=95;this.translater=new Ne(e,r,this.min_lightness,this.max_lightness)}getColor(e){return ke(20,100,this.translater.inverseTranslate(e))}setColor(e,r){typeof e.noCommits!="undefined"&&r.colormap.set(e.path,this.getColor(e.noCommits))}};function Gn(t){return[{epoch:0,text:an(t*1e3),color:"#cff2ff"},{epoch:86400,text:"+1d",color:"#c6dbef"},{epoch:604800,text:"+1w",color:"#9ecae1"},{epoch:2629743,text:"+1m",color:"#6baed6"},{epoch:31556926,text:"+1y",color:"#4292c6"},{epoch:31556926*2,text:"+2y",color:"#2171b5"},{epoch:31556926*4,text:"+4y",color:"#084594"}]}function Ee(t,e,r){let o=e-r,n=0;for(;n<t.length-1;){if(o<t[n+1].epoch)return n;n++}return n}function _n(t,e,r,o){var c,m,h;let n=(c=e.unionedAuthors)==null?void 0:c[o];if(!n){console.warn("No author union found for file",e.path);return}let i=Object.entries(n).sort(([u,f],[b,d])=>f===0||d===0||!u||!b?-1:d-f);if(!i[0]){console.warn("No sorted authors for file",e.path);return}let[l]=i[0],s=r.legend,a=(m=t.get(l))!=null?m:"#808080";if(r.colormap.set(e.path,a),e.dominantAuthor&&(e.dominantAuthor[o]=i[0]),s.has(l)){(h=s.get(l))==null||h.add(1);return}s.set(l,new ht(a,1))}var Pe=class{constructor(e){this.min_lightness=50;this.max_lighness=90;this.step=e<=1?1:this.step=(this.max_lighness-this.min_lightness)/Math.floor(Math.log2(e))}getColor(e){let r=Math.floor(Math.log2(e)),o=this.min_lightness+r*this.step;return ke(0,75,o)}setColor(e,r){var o,n;r.colormap.set(e.path,this.getColor(Object.entries((n=(o=e.unionedAuthors)==null?void 0:o.HISTORICAL)!=null?n:[]).length))}};var $n=g(zn()),qn={HISTORICAL:"Complete history"},re={FILE_TYPE:"File type",TRUCK_FACTOR:"Truck factor",TOP_CONTRIBUTOR:"Top contributor",MOST_COMMITS:"Commits",SINGLE_AUTHOR:"Single author",LAST_CHANGED:"Last changed"};function Un(t,e){let r=Jl(t.authors,e);return[{HISTORICAL:Xl(t.commit.tree,Wl(t,"HISTORICAL",r))},r]}function Vn(t,e){switch(t){case"FILE_TYPE":return"Where are different types of files located?";case"MOST_COMMITS":return"Which files have had the most commits, throughout the repository's history?";case"LAST_CHANGED":return"How long ago did the files change?";case"SINGLE_AUTHOR":return e==="HISTORICAL"?"Which files are authored by only one person, throughout the repository's history?":"Which files are authored by only one person, in the newest version?";case"TOP_CONTRIBUTOR":return e==="HISTORICAL"?"Which person has made the most line-changes to a file, throughout the repository's history?":"Which person has made the most line-changes to a file, in the newest version?";case"TRUCK_FACTOR":return"How many authors have contributed to a given file?";default:throw new Error("Uknown metric type: "+t)}}function Jn(t){switch(t){case"FILE_TYPE":case"TOP_CONTRIBUTOR":case"SINGLE_AUTHOR":return"POINT";case"MOST_COMMITS":return"GRADIENT";case"LAST_CHANGED":case"TRUCK_FACTOR":return"SEGMENTS";default:throw new Error("Uknown metric type: "+t)}}function Jl(t,e){let r=new Map;for(let o=0;o<t.length;o++){let n=t[o],i=e!=null?e:"",l=(0,$n.default)(n+i).color;r.set(n,l)}return r}function Wn(t){let e=Number.MAX_VALUE,r=Number.MIN_VALUE;return t.children.forEach(o=>{if(o.type=="blob")o.noCommits>r&&(r=o.noCommits),o.noCommits<e&&(e=o.noCommits);else if(o.type=="tree"){let[n,i]=Wn(o);i>r&&(r=i),n<e&&(e=n)}}),[e,r]}function Wl(t,e,r){let o=t.commit,[n,i]=Wn(o.tree),l=new De(n,i),s=new Pe(t.authorsUnion.length);return[["FILE_TYPE",(a,c)=>{c.legend||(c.legend=new Map),Bn(a,c)}],["SINGLE_AUTHOR",(a,c)=>{c.legend||(c.legend=new Map),Hn(a,c,e,r)}],["MOST_COMMITS",(a,c)=>{c.legend||(c.legend=[`${n}`,`${i}`,void 0,void 0,l.getColor(n),l.getColor(i)]),l.setColor(a,c)}],["LAST_CHANGED",(a,c)=>{var u,f;let m=t.commit.newestLatestChangeEpoch,h=Gn(m);c.legend||(c.legend=[Ee(h,m,t.commit.oldestLatestChangeEpoch)+1,b=>h[b].text,b=>h[b].color,b=>{var d,p;return(p=Ee(h,m,(d=b.lastChangeEpoch)!=null?d:0))!=null?p:-1}]),c.colormap.set(a.path,h[(f=Ee(h,m,(u=a.lastChangeEpoch)!=null?u:0))!=null?f:-1].color)}],["TOP_CONTRIBUTOR",(a,c)=>{a.dominantAuthor||(a.dominantAuthor={}),c.legend||(c.legend=new Map),_n(r,a,c,e)}],["TRUCK_FACTOR",(a,c)=>{c.legend||(c.legend=[Math.floor(Math.log2(t.authorsUnion.length))+1,m=>`${Math.pow(2,m)}`,m=>`hsl(0,75%,${50+m*(40/(Math.floor(Math.log2(t.authorsUnion.length))+1))}%)`,m=>{var h,u;return Math.floor(Math.log2(Object.entries((u=(h=m.unionedAuthors)==null?void 0:h.HISTORICAL)!=null?u:[]).length))}]),s.setColor(a,c)}]]}function Xl(t,e){let r=new Map;return Xn(t,e,r),r}function Xn(t,e,r){var o;for(let n of t.children)switch(n.type){case"tree":Xn(n,e,r);break;case"blob":for(let[i,l]of e)r.has(i)||r.set(i,{legend:void 0,colormap:new Map}),l(n,(o=r.get(i))!=null?o:{legend:void 0,colormap:new Map});break}}var Re={FILE_SIZE:"File size",TRUCK_FACTOR:"Truck factor",MOST_COMMITS:"Commits",LAST_CHANGED:"Last changed",EQUAL_SIZE:"Equal"};var Ie={Full:"Full",One:"1",Two:"2",Three:"3",Four:"4",Five:"5"},Yn={Full:Xo,One:jo,Two:Do,Three:Eo,Four:Po,Five:Ro};var Tr={BUBBLE_CHART:"Bubble chart",TREE_MAP:"Tree map"},kr={NESTED:"Nested",FLAT:"Flat"},Pt={DATE:"By date",AUTHOR:"By author"},ae=t=>({ASCENDING:t?"Latest first":"Ascending",DESCENDING:t?"Oldest first":"Descending"}),wr=(0,Fe.createContext)(void 0);function Y(){let t=(0,Fe.useContext)(wr);if(!t)throw new Error("useOptions must be used within a SearchProvider");return t}var Yl={hasLoadedSavedOptions:!1,metricType:Object.keys(re)[0],chartType:Object.keys(Tr)[0],depthType:Object.keys(Ie)[0],hierarchyType:Object.keys(kr)[0],sizeMetric:Object.keys(Re)[0],authorshipType:Object.keys(qn)[0],commitSortingMethodsType:Object.keys(Pt)[0],commitSortingOrdersType:Object.keys(ae(!0))[0],commitSearch:"",transitionsEnabled:!0,labelsVisible:!0,renderCutoff:2};function K(t={}){return{...Yl,...t,setChartType:()=>{throw new Error("No chartTypeSetter provided")},setMetricType:()=>{throw new Error("No metricTypeSetter provided")},setSizeMetricType:()=>{throw new Error("No sizeMetricTypeSetter provided")},setAuthorshipType:()=>{throw new Error("No AuthorshipTypeSetter provided")},setDepthType:()=>{throw new Error("No DepthTypeSetter provided")},setHierarchyType:()=>{throw new Error("No HiearchyTypeSetter provided")},setCommitSortingMethodsType:()=>{throw new Error("No CommitSortingMethodsTypeSetter provided")},setCommitSortingOrdersType:()=>{throw new Error("No CommitSortingOrdersTypeSetter provided")},setCommitSearch:()=>{throw new Error("No CommitSearchSetter provided")},setTransitionsEnabled:()=>{throw new Error("No transitionsEnabledSetter provided")},setLabelsVisible:()=>{throw new Error("No labelsVisibleSetter provided")},setRenderCutoff:()=>{throw new Error("No renderCutoffSetter provided")}}}var Be=g(R()),Mr=(0,Be.createContext)(void 0);function At(){let t=(0,Be.useContext)(Mr);if(!t)throw new Error("useOptions must be used within a PathProvider");return t}var Zn={},Kn=new WeakMap,Qn={metric:[{from:0,to:1e3,unit:"B",long:"bytes"},{from:1e3,to:1e6,unit:"kB",long:"kilobytes"},{from:1e6,to:1e9,unit:"MB",long:"megabytes"},{from:1e9,to:1e12,unit:"GB",long:"gigabytes"},{from:1e12,to:1e15,unit:"TB",long:"terabytes"},{from:1e15,to:1e18,unit:"PB",long:"petabytes"},{from:1e18,to:1e21,unit:"EB",long:"exabytes"},{from:1e21,to:1e24,unit:"ZB",long:"zettabytes"},{from:1e24,to:1e27,unit:"YB",long:"yottabytes"}],metric_octet:[{from:0,to:1e3,unit:"o",long:"octets"},{from:1e3,to:1e6,unit:"ko",long:"kilooctets"},{from:1e6,to:1e9,unit:"Mo",long:"megaoctets"},{from:1e9,to:1e12,unit:"Go",long:"gigaoctets"},{from:1e12,to:1e15,unit:"To",long:"teraoctets"},{from:1e15,to:1e18,unit:"Po",long:"petaoctets"},{from:1e18,to:1e21,unit:"Eo",long:"exaoctets"},{from:1e21,to:1e24,unit:"Zo",long:"zettaoctets"},{from:1e24,to:1e27,unit:"Yo",long:"yottaoctets"}],iec:[{from:0,to:Math.pow(1024,1),unit:"B",long:"bytes"},{from:Math.pow(1024,1),to:Math.pow(1024,2),unit:"KiB",long:"kibibytes"},{from:Math.pow(1024,2),to:Math.pow(1024,3),unit:"MiB",long:"mebibytes"},{from:Math.pow(1024,3),to:Math.pow(1024,4),unit:"GiB",long:"gibibytes"},{from:Math.pow(1024,4),to:Math.pow(1024,5),unit:"TiB",long:"tebibytes"},{from:Math.pow(1024,5),to:Math.pow(1024,6),unit:"PiB",long:"pebibytes"},{from:Math.pow(1024,6),to:Math.pow(1024,7),unit:"EiB",long:"exbibytes"},{from:Math.pow(1024,7),to:Math.pow(1024,8),unit:"ZiB",long:"zebibytes"},{from:Math.pow(1024,8),to:Math.pow(1024,9),unit:"YiB",long:"yobibytes"}],iec_octet:[{from:0,to:Math.pow(1024,1),unit:"o",long:"octets"},{from:Math.pow(1024,1),to:Math.pow(1024,2),unit:"Kio",long:"kibioctets"},{from:Math.pow(1024,2),to:Math.pow(1024,3),unit:"Mio",long:"mebioctets"},{from:Math.pow(1024,3),to:Math.pow(1024,4),unit:"Gio",long:"gibioctets"},{from:Math.pow(1024,4),to:Math.pow(1024,5),unit:"Tio",long:"tebioctets"},{from:Math.pow(1024,5),to:Math.pow(1024,6),unit:"Pio",long:"pebioctets"},{from:Math.pow(1024,6),to:Math.pow(1024,7),unit:"Eio",long:"exbioctets"},{from:Math.pow(1024,7),to:Math.pow(1024,8),unit:"Zio",long:"zebioctets"},{from:Math.pow(1024,8),to:Math.pow(1024,9),unit:"Yio",long:"yobioctets"}]},Ar=class{constructor(e,r){r=Object.assign({units:"metric",precision:1,locale:void 0},Zn,r),Kn.set(this,r),Object.assign(Qn,r.customUnits);let o=e<0?"-":"";e=Math.abs(e);let n=Qn[r.units];if(n){let i=n.find(l=>e>=l.from&&e<l.to);if(i){let l=new Intl.NumberFormat(r.locale,{style:"decimal",minimumFractionDigits:r.precision,maximumFractionDigits:r.precision}),s=i.from===0?o+e:o+l.format(e/i.from);this.value=s,this.unit=i.unit,this.long=i.long}else this.value=o+e,this.unit="",this.long=""}else throw new Error(`Invalid units specified: ${r.units}`)}toString(){let e=Kn.get(this);return e.toStringFn?e.toStringFn.bind(this)():`${this.value} ${this.unit}`}};function ti(t,e){return new Ar(t,e)}ti.defaultOptions=function(t){Zn=t};var ei=ti;var Ut=g(ot());var oe=g(R()),Rt=g(L()),ri="MENUITEM",He=t=>t.children;He.defaultProps={__TYPE:ri};var oi=t=>{let[e,r]=(0,oe.useState)(0),o=t.selectedItemIndex?t.selectedItemIndex:e,n=oe.Children.toArray(t.children).map(i=>(0,oe.isValidElement)(i)&&i.props.__TYPE&&i.props.__TYPE==ri?{title:i.props.title,children:i.props.children}:!1);return(0,Rt.jsxs)(Rt.Fragment,{children:[(0,Rt.jsx)("div",{className:"flex w-full flex-row justify-center overflow-hidden",children:n.map((i,l)=>(0,Rt.jsx)("button",{className:V("btn btn--outlined flex-1",{"opacity-50":o===l,"rounded-br-none rounded-tr-none":l!==n.length-1,"rounded-bl-none rounded-tl-none":l===n.length-1}),onClick:()=>{t.onChange&&t.onChange(l),r(s=>s!==l?l:s)},children:i.title},i.title+l+"--tab"))}),n.map((i,l)=>l==o?(0,Rt.jsx)("div",{className:"border-t-0",children:i.children},o+i.title+"--selected"):null)]})};var xt=g(R());var ni="/build/_assets/commit_icon-JEPGHU5X.png";var li=g(R());var qt=g(L());function Ql({data:t,isOpen:e,btnOnClick:r,titleLabels:o}){return(0,qt.jsxs)("li",{className:"border-0 ",children:[(0,qt.jsx)("h2",{className:"m-0 w-full",children:(0,qt.jsx)("button",{className:V("b-0 flex w-full cursor-pointer items-center ","after:content-[''] after:shrink-0 after:w-[14px] after:h-[14px] after:ml-auto after:transition-[transform] after:duration-[200ms] after:ease-out after:bg-[length:14px_14px] after:bg-no-repeat after:bg-arrow",{"text-[16px] font-semibold":o,"text-[14px] font-normal":!o,"after:-rotate-180":e,"after:rotate-0":!e}),onClick:r,title:t.title,children:t.title})}),(0,qt.jsx)("ul",{className:"m-0 block p-0 text-sm transition-[height] duration-[200ms] ease-out",style:{height:e?"auto":"0"},children:e&&(0,qt.jsx)("div",{children:t.content})})]})}var ii=Ql;var Lr=g(L());function Zl({items:t,multipleOpen:e,openByDefault:r,titleLabels:o,currentState:n,actionClickLabels:i}){let[l,s]=(0,li.useState)(new Array),a=c=>{s(e?m=>m.includes(c)?m.filter(h=>h!==c):[...m,c]:m=>m.includes(c)?[]:[c])};return r&&!e&&s([0]),(0,Lr.jsx)("ul",{className:"m-0 block overflow-x-hidden pl-4",children:t.map((c,m)=>(0,Lr.jsx)(ii,{data:c,isOpen:n&&n[m]?n[m]:r&&e?!l.includes(m):l.includes(m),titleLabels:o,btnOnClick:()=>{a(m),i&&i(m)}},c.title+m+"--accordion"))})}var Ge=Zl;var U=g(L());function ts(t){let e=t.sortBy!==void 0?t.sortBy:"DATE",{commitSortingOrdersType:r,commitSortingMethodsType:o}=Y(),n=o==Object.keys(Pt)[0],i=r==Object.keys(ae(n))[0],l=rs(t.items,e),s=new Array;for(let[a,c]of Object.entries(l))s.push({title:a,content:(0,U.jsx)(U.Fragment,{children:c.map(m=>(0,U.jsx)("li",{className:"cursor-auto",style:{listStyleImage:`url(${ni})`},title:`By: ${m.author}`,children:(0,U.jsx)("button",{onClick:()=>t.handleOnClick?t.handleOnClick(m):null,children:m.message})},m.hash+"--itemContentAccordion"))})});return(0,U.jsx)(Ge,{titleLabels:!0,multipleOpen:!0,openByDefault:!0,items:i?s:s.reverse()},s.length>0?s[0].title:new Date().toDateString())}function es(t){let e=new Map;r(t);function r(n){for(let i of n.children)if(i)if(i.type==="blob"){if(!i.commits)continue;for(let l of i.commits)e.set(l.hash,l.time)}else i.type==="tree"&&r(i)}let o=[];for(let[n,i]of e)o.push({hash:n,time:i});return o.sort((n,i)=>i.time-n.time),o}function si(){let[t,e]=(0,xt.useState)([]),r=$(),[o,n]=(0,xt.useState)(null),[i,l]=(0,xt.useState)(0),s=5,{clickedObject:a}=it(),c=lr(),{commitSortingMethodsType:m,commitSearch:h}=Y();function u(b,d){let p=new URLSearchParams,k=d!=null?d:t;p.set("commits",k.slice(b,b+s).join(",")),p.set("branch",r.repo.currentHead),p.set("repo",r.repo.path),c.load(`/commits?${p.toString()}`)}(0,xt.useEffect)(()=>{if(a){let b=[];a.type==="blob"?b=a.commits.map(d=>d.hash):b=es(a).map(d=>d.hash),e(b),n(null),l(0),u(0,b)}},[a]),(0,xt.useEffect)(()=>{!a||i===0||u(i)},[i]),(0,xt.useEffect)(()=>{if(c.state==="idle"){let b=c.data;if(!b)return;n(d=>!d||d.length===0?b:[...d,...b])}},[c.data,c.state]);let f=(0,xt.useMemo)(()=>a?`(${Math.min(t.length,i+s)} of ${t.length} loaded)`:"",[a,t,i]);return a?o?o.length===0?(0,U.jsx)("h3",{className:"font-bold",children:"No commit history"}):(0,U.jsx)(U.Fragment,{children:(0,U.jsxs)("div",{children:[(0,U.jsx)(ts,{items:h!=""?o.filter(b=>b.message.toLowerCase().includes(h.toLowerCase())):o,sortBy:m}),c.state==="idle"?i+s<t.length?(0,U.jsxs)("button",{onClick:()=>l(i+s),className:"whitespace-pre text-xs font-medium opacity-70 hover:cursor-pointer",children:["Load more commits ",f]}):(0,U.jsx)("span",{className:"whitespace-pre text-xs font-medium opacity-70",children:f}):(0,U.jsx)("h3",{children:"Loading commits..."})]})}):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)("h3",{className:"font-bold",children:"Commit history"}),(0,U.jsx)("h3",{children:"Loading commits..."})]}):null}function rs(t,e){let r={};switch(e){case Object.keys(Pt)[1]:for(let o of t){let n=o.author;r[n]||(r[n]=[]),r[n].push(o)}break;case Object.keys(Pt)[0]:default:for(let o of t){let n=Se(o.time);r[n]||(r[n]=[]),r[n].push(o)}}return r}var _e=g(ot());var ai=g(ot());var ce=g(L());function Ct(t){let e=Object.entries(t.enum);return(0,ce.jsx)("div",{className:"flex flex-wrap gap-0",children:e.map(([r,o])=>(0,ce.jsxs)("button",{className:V("btn flex h-auto w-max justify-between gap-2 rounded-lg px-1 py-1 text-xs/none",{"btn--primary":r===t.defaultValue,"btn--outlined border-transparent hover:text-blue-500":r!==t.defaultValue}),onClick:()=>t.onChange(r),children:[(0,ce.jsx)(ai.default,{path:t.iconMap[r],size:"1rem",color:"inherit"}),o]},r))})}var ci=g(R()),J=g(L()),os={DATE:lo,AUTHOR:To};function ns(t){return{ASCENDING:t?Jo:Fo,DESCENDING:t?Wo:Bo}}function ui(){let t=(0,ci.useId)(),e=new Array,{commitSearch:r,commitSortingMethodsType:o,commitSortingOrdersType:n,setCommitSearch:i,setCommitSortingMethodsType:l,setCommitSortingOrdersType:s}=Y(),a=o==Object.keys(Pt)[0];return e.push({title:"Sorting and filtering",content:(0,J.jsxs)(J.Fragment,{children:[(0,J.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,J.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,J.jsx)(_e.default,{path:Vo,size:"1.25em"}),"Sorting"]}),(0,J.jsx)(Ct,{enum:Pt,defaultValue:o,onChange:c=>l(c),iconMap:os})]}),(0,J.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,J.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,J.jsx)(_e.default,{path:Ho,size:"1.25em"}),"Sorting order"]}),(0,J.jsx)(Ct,{enum:ae(a),defaultValue:n,onChange:c=>s(c),iconMap:ns(a)})]}),(0,J.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,J.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,J.jsx)(_e.default,{path:ao,size:"1.25em"}),"Part of the message"]}),(0,J.jsx)("input",{className:"input",id:t,type:"search",placeholder:"Search for a commit...",value:r,onChange:c=>{let m=c.target.value;i(m)}})]})]})}),(0,J.jsx)(Ge,{titleLabels:!0,multipleOpen:!1,openByDefault:!1,items:e},e.length>0?e[0].title:new Date().toDateString())}var Lt=g(L());function mi(){return(0,Lt.jsxs)(Lt.Fragment,{children:[(0,Lt.jsx)("div",{className:"card mb-2 bg-black/20",children:(0,Lt.jsx)(ui,{})}),(0,Lt.jsx)("div",{className:"card bg-black/20",children:(0,Lt.jsx)(si,{})})]})}var y=g(L());function is(t){let e=t.lastIndexOf("/"),r=t.lastIndexOf("\\");return e!==-1?t.slice(0,e):r!==-1?t.slice(0,r):t}function di({className:t="",showUnionAuthorsModal:e}){var E;let{setClickedObject:r,clickedObject:o}=it(),n=Wt(),{metricType:i,authorshipType:l}=Y(),{state:s}=pt(),{setPath:a,path:c}=At(),{analyzerData:m}=$(),h=(0,gt.useRef)(!1),u=ve();(0,gt.useEffect)(()=>{h.current&&(r(null),h.current=!1)},[o,r,s]),(0,gt.useEffect)(()=>{r(P=>ls(m.commit.tree,P))},[m,r]);let[f]=nt(),{backgroundColor:b,lightBackground:d}=(0,gt.useMemo)(()=>{var D,B,_;if(!o)return{backgroundColor:null,color:null};let P=(B=(D=f[l])==null?void 0:D.get(i))==null?void 0:B.colormap,G=(_=P==null?void 0:P.get(o.path))!=null?_:u?"#808080":"#262626",M=G?Te(G):null;return{backgroundColor:G,color:M,lightBackground:M==="#000000"}},[o,f,i,l,u]);if(!o)return null;let p=o.type==="blob",k=mn(o.name.split("."));return(0,y.jsxs)("div",{className:V(t,"card flex flex-col gap-2 transition-colors",{"text-gray-100":!d,"text-gray-800":d}),...b?{style:{backgroundColor:b}}:{},children:[(0,y.jsx)("div",{className:"flex",children:(0,y.jsxs)("h2",{className:"card__title grid w-full grid-cols-[auto,1fr,auto] gap-2",children:[(0,y.jsx)(Ut.Icon,{path:o.type==="blob"?go:Kt,size:"1.25em"}),(0,y.jsx)("span",{className:"truncate",title:o.name,children:o.name}),(0,y.jsx)(Qt,{absolute:!1,onClick:()=>r(null)})]})}),(0,y.jsxs)(oi,{children:[(0,y.jsxs)(He,{title:"General",children:[(0,y.jsxs)("div",{className:"flex grow flex-col gap-2",children:[(0,y.jsxs)("div",{className:"grid grid-cols-[auto,1fr] gap-x-3 gap-y-1",children:[p?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(ms,{size:o.sizeInBytes,isBinary:o.isBinary}),(0,y.jsx)(as,{clickedBlob:o}),(0,y.jsx)(cs,{clickedBlob:o})]}):(0,y.jsx)(ss,{clickedTree:o}),(0,y.jsx)(us,{path:o.path})]}),(0,y.jsx)("div",{className:"card bg-black/20 shadow-inner",children:p?(0,y.jsx)(pi,{authors:(E=o.unionedAuthors)==null?void 0:E[l]}):(0,y.jsx)(pi,{authors:ds(o,l)})}),(0,y.jsxs)("button",{className:"btn btn--outlined",onClick:e,children:[(0,y.jsx)(Ut.Icon,{path:Xt}),"Group authors"]})]}),(0,y.jsx)("div",{className:"mt-2 flex gap-2",children:p?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsxs)(wt,{className:"w-max",method:"post",action:n.pathname,children:[(0,y.jsx)("input",{type:"hidden",name:"ignore",value:o.path}),(0,y.jsxs)("button",{className:"btn btn--outlined",type:"submit",disabled:s!=="idle",onClick:()=>{h.current=!0},title:"Hide this file",children:[(0,y.jsx)(Ut.Icon,{path:be}),"Hide"]})]}),o.name.includes(".")?(0,y.jsxs)(wt,{className:"w-max",method:"post",action:n.pathname,children:[(0,y.jsx)("input",{type:"hidden",name:"ignore",value:`*.${k}`}),(0,y.jsxs)("button",{className:"btn btn--outlined",type:"submit",disabled:s!=="idle",onClick:()=>{h.current=!0},children:[(0,y.jsx)(Ut.Icon,{path:be}),(0,y.jsxs)("span",{children:["Hide .",k," files"]})]})]}):null]}):(0,y.jsx)(y.Fragment,{children:(0,y.jsxs)(wt,{method:"post",action:n.pathname,children:[(0,y.jsx)("input",{type:"hidden",name:"ignore",value:o.path}),(0,y.jsxs)("button",{className:"btn btn--outlined",type:"submit",disabled:s!=="idle",onClick:()=>{h.current=!0,a(is(c))},children:[(0,y.jsx)(Ut.Icon,{path:be}),"Hide this folder"]})]})})})]}),(0,y.jsx)(He,{title:"Commits",children:(0,y.jsx)(mi,{})})]})]})}function ls(t,e){if(e===null)return null;let r=t,o=e.path.split("/");for(let n=0;n<o.length;n++)for(let i of r.children){if(i.hash===e.hash)return i;if(i.type==="tree"){let l=i.name.split("/");if(l[0]===o[n]){r=i,n+=l.length-1;break}}}return r}function ss(t){let e=t.clickedTree.children.filter(o=>o.type==="tree").length,r=t.clickedTree.children.length-e;return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"flex grow items-center overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",children:"Files"}),(0,y.jsx)("p",{className:"break-all text-sm",children:r}),(0,y.jsx)("div",{className:"flex grow items-center overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",children:"Folders"}),(0,y.jsx)("p",{className:"break-all text-sm",children:e})]})}function as(t){return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"flex grow items-center overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",children:"Commits"}),(0,y.jsx)("p",{className:"break-all text-sm",children:t.clickedBlob.noCommits?t.clickedBlob.noCommits:0})]})}function cs(t){return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"flex grow items-center overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",children:"Last changed"}),(0,y.jsx)("p",{className:"break-all text-sm",children:Se(t.clickedBlob.lastChangeEpoch)})]})}function us(t){let{state:e}=pt(),{clickedObject:r}=it();return r?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"flex grow items-center overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",children:"Located at"}),(0,y.jsxs)("div",{className:"grid grid-cols-[1fr,auto] items-center justify-between gap-2 break-all text-sm",children:[(0,y.jsx)("p",{className:"truncate",title:t.path,children:t.path}),(0,y.jsxs)(wt,{method:"post",action:location.pathname,title:r.name,children:[(0,y.jsx)("input",{type:"hidden",name:"open",value:r.path}),(0,y.jsx)("button",{className:"btn--icon",disabled:e!=="idle",children:(0,y.jsx)(Ut.Icon,{path:Io,size:"1.25em",className:"w-max",title:r.type==="blob"?"Open file in default app":"Browse folder in system explorer"})})]})]})]}):null}function ms(t){var r;let e=ei((r=t.size)!=null?r:0);return(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("div",{className:"flex items-center overflow-hidden overflow-ellipsis whitespace-pre text-sm font-semibold",children:"Size"}),(0,y.jsxs)("p",{className:"break-all text-sm",children:[e.value," ",e.unit," ",(0,y.jsx)("span",{className:"opacity-50",children:t.isBinary?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)("br",{}),"(binary file)"]}):null})]})]})}var ze=2;function pi(t){var s;let e=(0,gt.useId)(),[r,o]=(0,gt.useState)(!0),n=Object.entries((s=t.authors)!=null?s:{}).sort((a,c)=>c[1]-a[1]),i=n.reduce((a,c)=>a+c[1],0),l=n.length>ze+1;return(0,y.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,y.jsxs)("div",{className:`flex justify-between ${l?"cursor-pointer hover:opacity-70":""}`,children:[(0,y.jsx)("label",{className:"label grow",htmlFor:e,children:(0,y.jsx)("h3",{className:"font-bold",children:"Author distribution"})}),l?(0,y.jsx)(ee,{id:e,open:!r,onClick:()=>o(!r)}):null]}),(0,y.jsx)("div",{className:"grid grid-cols-[1fr,auto] gap-1",children:l?(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Ae,{show:!0,items:n.slice(0,ze),contribSum:i}),(0,y.jsx)(Ae,{show:!r,items:n.slice(ze),contribSum:i}),r?(0,y.jsxs)("button",{className:"text-left text-xs opacity-70 hover:opacity-100",onClick:()=>o(!r),children:["+ ",n.slice(ze).length," more"]}):null]}):(0,y.jsx)(y.Fragment,{children:n.length>0&&!ps(t.authors)?(0,y.jsx)(Ae,{show:!0,items:n,contribSum:i}):(0,y.jsx)("p",{children:"No authors found"})})})]})}function ps(t){if(!t)return!0;let e=Object.entries(t);for(let[,r]of e)if(r>0)return!1;return!0}function ds(t,e){let r={};o(t);function o(n){var i,l;for(let s of n.children)if(s.type==="blob"){let a=(i=s.unionedAuthors)==null?void 0:i[e];if(!a)throw Error("No unioned authors");for(let[c,m]of Object.entries(a))r[c]=((l=r[c])!=null?l:0)+m}else s.type==="tree"&&o(s)}return r}var It=g(R());var $e=g(ot());var I=g(L()),hs="Git Truck",gs="Analyzing | Git Truck",hi=(0,It.memo)(function(){var f,b;let e=Ce(),{analyzerData:r,repo:o}=$(),n=pt(),i=Wt(),l=Zr(),[s,a]=(0,It.useState)(!1),[c,m]=(0,It.useState)(!1);(0,It.useEffect)(()=>{document.title=s?gs:hs},[s]);let h=d=>{a(!0),l(["",o.name,d].join("/"))};(0,It.useEffect)(()=>{n.state==="idle"&&a(!1)},[n.state]);let u=new Date(r.lastRunEpoch).toISOString();return(0,I.jsx)("div",{className:"flex flex-col gap-2",children:(0,I.jsxs)("div",{className:"card",children:[(0,I.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,I.jsxs)("div",{className:"relative flex items-center",children:[(0,I.jsx)("button",{className:"btn--icon btn--primary",title:"See analysis details",onClick:()=>m(!0),children:(0,I.jsx)($e.Icon,{path:wo,size:"1.5em"})}),(0,I.jsxs)("div",{className:V("card absolute left-0 top-0 z-10 h-max w-max shadow transition-opacity",{"hidden opacity-0":!c}),children:[(0,I.jsx)("h2",{className:"card__title",children:"Analysis details"}),(0,I.jsx)(Qt,{onClick:()=>m(!1)}),(0,I.jsxs)("div",{className:"grid auto-rows-fr grid-cols-2 gap-0",children:[(0,I.jsx)("span",{children:"Analyzed"}),(0,I.jsx)("time",{className:"text-right",dateTime:u,title:u,children:e?cn(r.lastRunEpoch):""}),(0,I.jsx)("span",{children:"As of commit"}),(0,I.jsx)("span",{className:"text-right",title:(f=r.commit.message)!=null?f:"No commit message",children:(0,I.jsxs)(Zt,{inline:!0,children:["#",r.commit.hash.slice(0,7)]})}),(0,I.jsx)("span",{children:"Files analyzed"}),(0,I.jsx)("span",{className:"text-right",children:(b=r.commit.fileCount)!=null?b:0})]})]})]}),(0,I.jsx)("h2",{className:"card__title grow justify-start gap-2",title:o.name,children:o.name})]}),(0,I.jsxs)("div",{className:"flex w-full auto-cols-max place-items-stretch gap-2",children:[(0,I.jsxs)(zt,{className:"btn btn--primary grow",to:"..",title:"See all repositories",children:[(0,I.jsx)($e.Icon,{path:no,size:.75}),(0,I.jsx)("p",{children:"See more repositories"})]}),(0,I.jsxs)(wt,{method:"post",action:i.pathname,onSubmit:()=>{a(!0)},children:[(0,I.jsx)("input",{type:"hidden",name:"refresh",value:"true"}),(0,I.jsxs)("button",{className:"btn",disabled:n.state!=="idle",children:[(0,I.jsx)($e.Icon,{path:$o,size:"1.25em"}),s?"Analyzing...":"Refresh"]})]})]}),(0,I.jsx)(fn,{disabled:s,onChange:d=>h(d.target.value),defaultValue:r.branch,headGroups:o.refs,analyzedHeads:o.analyzedHeads},o.currentHead)]})})});var qe=g(ot()),Ue=g(R()),Z=g(L());function fs(t){if(!t.includes("/"))return t;let e=t.split("/");return e[e.length-1]}var gi=(0,Ue.memo)(function(){let e=Wt(),[r,o]=xe(!1),n=pt(),{analyzerData:i}=$(),l=(0,Ue.useId)();return(0,Z.jsxs)("div",{className:"card flex flex-col gap-2",children:[(0,Z.jsx)("h2",{className:"card__title",children:(0,Z.jsxs)("button",{className:"flex justify-start gap-2 hover:opacity-70",onClick:()=>o(!r),children:[(0,Z.jsx)(qe.Icon,{path:ur,size:"1.25em"}),"Hidden files (",i.hiddenFiles.length,")",(0,Z.jsx)(ee,{id:l,className:"absolute right-2 top-2",open:r})]})}),r?(0,Z.jsx)("div",{children:i.hiddenFiles.map(s=>(0,Z.jsxs)("div",{className:"grid grid-cols-[auto_1fr] gap-2",title:s,children:[(0,Z.jsxs)(wt,{className:"w-4",method:"post",action:e.pathname,children:[(0,Z.jsx)("input",{type:"hidden",name:"unignore",value:s}),(0,Z.jsxs)("button",{className:"btn--icon btn--hover-swap h-4",title:"Show file",disabled:n.state!=="idle",children:[(0,Z.jsx)(qe.Icon,{path:ur,className:"inline-block h-full"}),(0,Z.jsx)(qe.Icon,{path:po,className:"hover-swap inline-block h-full"})]})]}),(0,Z.jsx)("span",{className:"text-sm opacity-70",children:fs(s)})]},s))}):null]})});var Or=g(ot());var H=g(L());function fi({hoveredObject:t,metricCache:e}){var m,h;let[r,o,n,i]=e.legend,l=100/r,s=!1,a=0,c=(h=(m=it().clickedObject)!=null?m:t)!=null?h:null;return dt(c)&&(s=!0,a=l/2+l*i(c)),(0,H.jsx)(H.Fragment,{children:(0,H.jsxs)("div",{className:"relative",children:[(0,H.jsx)("div",{className:"flex",children:[...Array(r)].map((u,f)=>r>=4?(0,H.jsx)(bs,{width:l,color:n(f),text:o(f),top:f%2===0},`legend-${f}`):(0,H.jsx)(ys,{width:l,color:n(f),text:o(f)},`legend-${f}`))}),(0,H.jsx)(ye,{offset:a,visible:s})]})})}function bs({width:t,color:e,text:r,top:o}){return o?(0,H.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:`${t}%`},children:[(0,H.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-6px"},children:r}),(0,H.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-2px"},children:"/"}),(0,H.jsx)("div",{style:{backgroundColor:e,height:"20px"}}),(0,H.jsx)("div",{style:{textAlign:"left",height:"40px"}})]}):(0,H.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:`${t}%`},children:[(0,H.jsx)("div",{style:{textAlign:"left",height:"32px"}}),(0,H.jsx)("div",{style:{backgroundColor:e,height:"20px"}}),(0,H.jsx)("div",{style:{textAlign:"left",height:"20px",marginTop:"-7px"},children:"\\"}),(0,H.jsx)("div",{style:{textAlign:"left",height:"20px",marginTop:"-4px"},children:r})]})}function ys({width:t,color:e,text:r}){return(0,H.jsxs)("div",{style:{display:"flex",flexDirection:"column",width:`${t}%`},children:[(0,H.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-6px"},children:r}),(0,H.jsx)("div",{style:{textAlign:"left",height:"20px",marginBottom:"-2px"},children:"/"}),(0,H.jsx)("div",{style:{backgroundColor:e,height:"20px"}})]})}var bi=g(R());var vt=g(L());function yi({hoveredObject:t,metricCache:e}){var b,d;let[r,o,n,i,l,s]=e.legend,{clickedObject:a}=it(),c=(d=(b=a==null?void 0:a.path)!=null?b:t==null?void 0:t.path)!=null?d:null,m=c?e.colormap.get(c):null,h=m?we(m):-1,u=(0,bi.useMemo)(()=>{let p=we(l),E=we(s)-p;return E===0?1:(h-p)/E},[h,s,l]),f=c!==null;return(0,vt.jsxs)(vt.Fragment,{children:[(0,vt.jsxs)("div",{className:"flex justify-between",children:[(0,vt.jsx)("span",{className:"font-bold",title:n,children:r}),(0,vt.jsx)("span",{className:"font-bold",title:i,children:o})]}),(0,vt.jsx)("div",{className:"relative h-6 w-full rounded-full",style:{backgroundImage:`linear-gradient(to right, ${l}, ${s})`},children:(0,vt.jsx)(ye,{offset:u*100,visible:f})})]})}var xi=g(R());var W=g(L());function Ci({hoveredObject:t,showUnionAuthorsModal:e,className:r=""}){var f;let o=fe(),{metricType:n,authorshipType:i}=Y(),[l]=nt(),s=(0,xi.useDeferredValue)(t),{repo:a}=$(),c=pt(),m=(f=l[i].get(n))!=null?f:void 0;if(m===void 0)return null;let h=(0,W.jsx)(W.Fragment,{});switch(Jn(n)){case"POINT":h=(0,W.jsx)(Fn,{metricCache:m,hoveredObject:s});break;case"GRADIENT":h=(0,W.jsx)(yi,{metricCache:m,hoveredObject:s});break;case"SEGMENTS":h=(0,W.jsx)(fi,{metricCache:m,hoveredObject:s});break}function u(){let b=new FormData;b.append("rerollColors",""),o(b,{action:`/${Et(a.name,a.currentHead)}`,method:"post"})}return(0,W.jsxs)("div",{className:`card flex-shrink-0 overflow-hidden ${r}`,children:[(0,W.jsx)("h2",{className:"card__title",children:"Legend"}),(0,W.jsx)("h3",{className:"card__subtitle",children:re[n]}),(0,W.jsx)("p",{className:"card-p",children:Vn(n,i)}),n==="TOP_CONTRIBUTOR"||n==="SINGLE_AUTHOR"?(0,W.jsxs)(W.Fragment,{children:[(0,W.jsxs)("button",{className:"btn",onClick:e,children:[(0,W.jsx)(Or.Icon,{path:Xt}),"Group authors"]}),(0,W.jsxs)("button",{className:"btn",disabled:c.state!=="idle",onClick:u,children:[(0,W.jsx)(Or.Icon,{path:mo}),"Generate new author colors"]})]}):null,h]})}var ct=g(ot()),Ve=g(R());var O=g(L()),vi=(0,Ve.memo)(function(){let[e,r]=sn();console.log(e);let{metricType:o,chartType:n,depthType:i,sizeMetric:l,hierarchyType:s,transitionsEnabled:a,renderCutoff:c,setTransitionsEnabled:m,labelsVisible:h,setLabelsVisible:u,setMetricType:f,setChartType:b,setDepthType:d,setHierarchyType:p,setSizeMetricType:k,setRenderCutoff:E}=Y(),[P,G]=rn("LINK_METRIC_AND_SIZE_METRIC",!1),M={FILE_TYPE:fo,LAST_CHANGED:dr,MOST_COMMITS:mr,SINGLE_AUTHOR:oo,TOP_CONTRIBUTOR:_o,TRUCK_FACTOR:pr},D={FILE_SIZE:qo,EQUAL_SIZE:Uo,MOST_COMMITS:mr,TRUCK_FACTOR:pr,LAST_CHANGED:dr},B={BUBBLE_CHART:so,TREE_MAP:sr},_={NESTED:yo,FLAT:sr},v={SYSTEM:cr,LIGHT:Zo,DARK:No},x={FILE_TYPE:"FILE_SIZE",TRUCK_FACTOR:"TRUCK_FACTOR",TOP_CONTRIBUTOR:"TRUCK_FACTOR",MOST_COMMITS:"MOST_COMMITS",SINGLE_AUTHOR:"TRUCK_FACTOR",LAST_CHANGED:"LAST_CHANGED"},[C,T]=(0,Ve.useTransition)();return(0,O.jsx)(O.Fragment,{children:(0,O.jsxs)("div",{className:"card",children:[(0,O.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,O.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,O.jsx)(ct.Icon,{path:zo,size:"1.25em"}),"Layout"]}),(0,O.jsx)(Ct,{enum:Tr,defaultValue:n,onChange:w=>b(w),iconMap:B})]}),(0,O.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,O.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,O.jsx)(ct.Icon,{path:Go,size:"1.25em"}),"Color"]}),(0,O.jsx)(Ct,{enum:re,defaultValue:o,onChange:w=>{if(f(w),!P)return;let A=x[w];A&&k(A)},iconMap:M})]}),(0,O.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,O.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,O.jsx)(ct.Icon,{path:ko,size:"1.25em"}),"Size"]}),(0,O.jsx)(Ct,{enum:Re,defaultValue:l,onChange:w=>k(w),iconMap:D})]}),(0,O.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,O.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,O.jsx)(ct.Icon,{path:ho,size:"1.25em"}),"Hiearchy"]}),(0,O.jsx)(Ct,{enum:kr,defaultValue:s,onChange:w=>p(w),iconMap:_})]}),s==="NESTED"?(0,O.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,O.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,O.jsx)(ct.Icon,{path:Qo,size:"1.25em"}),"Depth"]}),(0,O.jsx)(Ct,{enum:Ie,defaultValue:i,onChange:w=>d(w),iconMap:Yn})]}):null,(0,O.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,O.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,O.jsx)(ct.Icon,{path:Yo,size:"1.25em"}),"Theme"]}),(0,O.jsx)(Ct,{enum:ln,defaultValue:e,onChange:w=>r(w),iconMap:v})]}),(0,O.jsxs)("fieldset",{className:"rounded-lg border p-2",children:[(0,O.jsxs)("legend",{className:"card__title ml-1.5 justify-start gap-2",children:[(0,O.jsx)(ct.Icon,{path:cr,size:"1.25em"}),"Settings"]}),(0,O.jsxs)(te,{className:"text-sm",checked:Boolean(P),onChange:w=>{G(w.target.checked),w.target.checked&&k(x[o])},title:"Enable to sync size metric with color metric",children:[(0,O.jsx)(ct.Icon,{className:"ml-1.5",path:Ao,size:"1.25em"}),(0,O.jsx)("span",{children:"Link size and color option"})]}),(0,O.jsxs)(te,{className:"text-sm",checked:a,onChange:w=>m(w.target.checked),title:"Disable to improve performance when zooming",children:[(0,O.jsx)(ct.Icon,{className:"ml-1.5",path:Ko,size:"1.25em"}),"Transitions"]}),(0,O.jsxs)(te,{className:"text-sm",checked:h,onChange:w=>u(w.target.checked),title:"Disable to improve performance",children:[(0,O.jsx)(ct.Icon,{className:"ml-1.5",path:Mo,size:"1.25em"}),"Labels"]}),(0,O.jsxs)("label",{className:"label flex w-full items-center justify-start gap-2 text-sm",title:"Adjust the item rendering size threshold",children:[(0,O.jsxs)("span",{className:"flex grow items-center gap-2",children:[(0,O.jsx)(ct.Icon,{className:"ml-1.5",path:uo,size:"1.25em"}),"Pixel render cut-off ",C?(0,O.jsx)("img",{src:tn,alt:"...",className:"h-5"}):""]}),(0,O.jsx)("input",{type:"number",min:0,defaultValue:c,className:"mr-1 w-12 place-self-end border-b-2",onChange:w=>T(()=>E(w.target.valueAsNumber))})]})]})]})})});var lt=g(R());var Je=g(R()),Nr=(0,Je.createContext)(void 0);function ue(){let t=(0,Je.useContext)(Nr);if(!t)throw new Error("useSearch must be used within a SearchProvider");return t}var jr="options";var Dr=g(R()),Si=(0,Dr.createContext)(null);function We(){return{startDate:null,endDate:null,setStartDate:()=>{throw new Error("No setStartDate provided")},setEndDate:()=>{throw new Error("No setEndDate provided")}}}var Ft=g(L());function Ti({children:t,data:e}){let[r,o]=(0,lt.useState)(null),[n,i]=(0,lt.useState)(null),[l,s]=(0,lt.useState)({}),[a,c]=(0,lt.useState)(e.repo.name),[m,h]=(0,lt.useState)(null),u=(0,lt.useMemo)(()=>Un(e.analyzerData,e.truckConfig.colorSeed),[e]),f=(0,lt.useMemo)(()=>({...We(),...n,setStartDate:d=>{i(p=>({...p!=null?p:We(),startDate:d}))},setEndDate:d=>{i(p=>({...p!=null?p:We(),endDate:d}))}}),[n]),b=(0,lt.useMemo)(()=>({...K(),...r,setMetricType:d=>o(p=>({...p!=null?p:K(),metricType:d})),setChartType:d=>o(p=>({...p!=null?p:K(),chartType:d})),setDepthType:d=>o(p=>({...p!=null?p:K(),depthType:d})),setHierarchyType:d=>o(p=>({...p!=null?p:K(),hierarchyType:d})),setCommitSortingMethodsType:d=>o(p=>({...p!=null?p:K(),commitSortingMethodsType:d})),setCommitSortingOrdersType:d=>o(p=>({...p!=null?p:K(),commitSortingOrdersType:d})),setCommitSearch:d=>o(p=>({...p!=null?p:K(),commitSearch:d})),setAuthorshipType:d=>o(p=>({...p!=null?p:K(),authorshipType:d})),setSizeMetricType:d=>o(p=>({...p!=null?p:K(),sizeMetric:d})),setHoveredBlob:d=>o(p=>({...p!=null?p:K(),hoveredBlob:d})),setClickedObject:d=>o(p=>({...p!=null?p:K(),clickedObject:d})),setTransitionsEnabled:d=>o(p=>({...p!=null?p:K(),transitionsEnabled:d})),setLabelsVisible:d=>o(p=>({...p!=null?p:K(),labelsVisible:d})),setRenderCutoff:d=>o(p=>({...p!=null?p:K(),renderCutoff:d}))}),[r]);return(0,lt.useEffect)(()=>{let d=!1;return r&&requestIdleCallback(()=>{d||localStorage.setItem(jr,JSON.stringify(r))}),()=>{d=!0}},[r]),(0,lt.useEffect)(()=>{let d=localStorage.getItem(jr);d&&o({...K(JSON.parse(d)),hasLoadedSavedOptions:!0})},[]),(0,Ft.jsx)(xr.Provider,{value:e,children:(0,Ft.jsx)(fr.Provider,{value:u,children:(0,Ft.jsx)(wr.Provider,{value:b,children:(0,Ft.jsx)(Nr.Provider,{value:{searchResults:l,setSearchResults:s},children:(0,Ft.jsx)(Mr.Provider,{value:{path:a,setPath:c},children:(0,Ft.jsx)(yr.Provider,{value:{clickedObject:m,setClickedObject:h},children:(0,Ft.jsx)(Si.Provider,{value:f,children:t})})})})})})})}var tt=g(R());var Er=g(ot());var Q=g(L());function xs(t,e){let r={};function o(n){for(let i of n.children)i.name.toLowerCase().includes(e.toLowerCase())&&e?r[i.path]=i:i.isSearchResult=!1,i.type==="tree"&&o(i)}return o(t),r}var ki=(0,tt.memo)(function(){let e=(0,tt.useRef)(null),[r,o]=(0,tt.useTransition)(),[n,i]=(0,tt.useState)(""),{searchResults:l,setSearchResults:s}=ue(),a=(0,tt.useMemo)(()=>Object.values(l),[l]),c=(0,tt.useId)(),{analyzerData:m}=$();return(0,tt.useEffect)(()=>{let h=u=>{var f;u.ctrlKey&&u.key==="f"&&(u.preventDefault(),(f=e.current)==null||f.focus())};return document.body.addEventListener("keydown",h),()=>{document.body.removeEventListener("keydown",h)}},[]),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)("div",{className:"card sticky top-0 z-10 flex flex-col gap-2",children:[(0,Q.jsxs)("h2",{className:"card__title justify-start gap-2",children:[(0,Q.jsx)(Er.Icon,{path:Lo,size:"1.25em"}),"Search"]}),(0,Q.jsxs)("div",{className:"flex gap-2",children:[(0,Q.jsx)("input",{className:"input",ref:e,id:c,type:"search",placeholder:"Search for a file or folder...",value:n,onChange:h=>{let u=h.target.value;i(u),o(()=>{u.trim()===""&&s({}),s(xs(m.commit.tree,u))})}}),(0,Q.jsx)("button",{className:"btn btn--primary",onClick:()=>{e.current&&(i(""),o(()=>{s({})}))},disabled:n.trim()==="",children:"Clear"})]}),r||n.length>0?(0,Q.jsx)("p",{className:"card-p",children:r?"Searching...":n.length>0?`${a.length} results`:null}):null]}),a.length>0?(0,Q.jsx)(Cs,{}):null]})}),Cs=(0,tt.memo)(function(){let{setPath:e}=At(),{setClickedObject:r}=it(),{searchResults:o}=ue();function n(i){if(r(i),i.type==="tree")e(i.path);else{let l=hn(i.path);e(pn(i.path.split(l)).join(l))}}return(0,Q.jsx)("div",{className:"card relative gap-0",children:Object.values(o).map(i=>(0,Q.jsxs)("button",{className:"flex items-center justify-start gap-2 text-sm font-bold opacity-70 hover:opacity-100",title:i.path,value:i.path,onClick:()=>n(i),children:[(0,Q.jsx)(Er.Icon,{path:i.type==="tree"?Kt:bo,size:.75,className:"shrink-0"}),(0,Q.jsx)("span",{className:"truncate",children:i.name})]},i.path))})});var Ot=g(R());var Rr=g(ot());var wi=g(ro()),N=g(L());function Mi({open:t,onClose:e}){var w;let{repo:r,analyzerData:o,truckConfig:n}=$(),i=fe(),{authors:l}=o,s=(w=n.unionedAuthors)!=null?w:[],[a,c]=(0,Ot.useState)([]),[m,h]=(0,Ot.useState)(""),u=pt(),[,f]=nt(),[,b]=(0,Ot.useTransition)(),d=(0,Ot.useRef)(null);(0,Ot.useEffect)(()=>{if(d.current){if(t){d.current.showModal();return}d.current.close()}},[t]);let p=s.reduce((A,j)=>[...A,...j],[]).sort(Pr);function k(A){let j=s.filter((z,rt)=>rt!==A),F=new FormData;F.append("unionedAuthors",JSON.stringify(j)),i(F,{action:`/${Et(r.name,r.currentHead)}`,method:"post"})}function E(){let A=new FormData;A.append("unionedAuthors",JSON.stringify([])),i(A,{action:`/${Et(r.name,r.currentHead)}`,method:"post"})}function P(){if(a.length===0)return;let A=new FormData;A.append("unionedAuthors",JSON.stringify([...s,a])),i(A,{action:`/${Et(r.name,r.currentHead)}`,method:"post"}),c([])}function G(A,j){let F=s.map((rt,st)=>st===j?[A,...rt.filter(mt=>mt!==A)]:rt),z=new FormData;z.append("unionedAuthors",JSON.stringify(F)),i(z,{action:`/${Et(r.name,r.currentHead)}`,method:"post"})}let M=u.state!=="idle",D=l.filter(A=>!p.includes(A)).slice(0).sort(Pr);en("Escape",e);let B=A=>{var j;return(j=f.get(A))!=null?j:"#333"};if(!t)return null;let _=D.length===0?"All detected authors have been grouped":"Select the authors that you know are the same person",v=D.filter(A=>A.toLowerCase().includes(m.toLowerCase())),x=v.map(A=>(0,N.jsx)(te,{className:"hover:opacity-70",checked:a.includes(A),onChange:j=>{var z;let F=(z=j.target)!=null&&z.checked?[...a,A]:a.filter(rt=>rt!==A);c(F)},children:(0,N.jsxs)("div",{className:"inline-flex flex-row place-items-center gap-2",children:[(0,N.jsx)(bt,{dotColor:B(A)}),A]})},A)),C=s.map((A,j)=>{let F=A[0],z=u.state!=="idle",rt=B(F);return(0,N.jsxs)("div",{className:"card group m-0 flex h-full flex-col p-2",children:[(0,N.jsxs)("div",{className:"inline-flex flex-row place-items-center gap-2",children:[(0,N.jsx)(bt,{dotColor:rt}),(0,N.jsx)("b",{className:"truncate",title:F,children:F})]}),A.slice(1).sort(Pr).map(st=>(0,N.jsx)(T,{alias:st,onClick:()=>G(st,j),disabled:z},st)),(0,N.jsx)("div",{className:"grow"}),(0,N.jsxs)("div",{className:"flex items-end justify-end gap-2 opacity-0 transition-opacity duration-200 group-hover:opacity-100",children:[(0,N.jsx)("button",{className:"btn",title:"Add selected authors to this group",onClick:()=>{let st=s.map(([jt,..._t],Dt)=>Dt===j?[jt,..._t,...a]:[jt,..._t]),mt=new FormData;mt.append("unionedAuthors",JSON.stringify(st)),i(mt,{action:`/${Et(r.name,r.currentHead)}`,method:"post"}),c([])},disabled:z||a.length===0,children:"Add selected"}),(0,N.jsx)("button",{className:"btn",onClick:()=>k(j),title:"Ungroup",disabled:z,children:"Ungroup"})]})]},j)});return(0,wi.createPortal)((0,N.jsx)("dialog",{ref:d,"aria-modal":!0,className:"z-10 m-auto flex h-full w-full flex-col items-start justify-stretch bg-transparent text-inherit backdrop:bg-gray-500/75 backdrop:p-0",children:(0,N.jsxs)("div",{className:"card m-auto grid h-full w-full max-w-screen-2xl grow grid-cols-[1fr,1fr] grid-rows-[max-content_max-content_max-content_1fr_max-content] gap-2 overflow-hidden shadow",children:[(0,N.jsx)("h2",{className:"text-2xl",children:"Group authors"}),(0,N.jsx)(Qt,{absolute:!1,className:"justify-self-end",onClick:e}),(0,N.jsxs)("h3",{className:"text-center text-lg font-bold",children:["Ungrouped authors (",D.length,")"]}),(0,N.jsx)("h3",{className:"text-center text-lg font-bold",children:"Grouped authors"}),(0,N.jsx)("div",{className:"flex justify-end gap-2",children:(0,N.jsxs)("button",{className:"btn btn--primary justify-self-end",onClick:P,title:"Group the selected authors",disabled:M||a.length===0,children:[(0,N.jsx)(Rr.Icon,{path:Xt,size:1}),"Create group"]})}),(0,N.jsx)("div",{className:"flex justify-end gap-4",children:(0,N.jsx)("button",{className:"btn btn--danger",disabled:M||s.length===0,onClick:()=>{confirm("Are you sure you want to ungroup all grouped authors?")&&E()},children:"Ungroup all"})}),(0,N.jsx)("div",{className:"overflow-y-auto",children:(0,N.jsxs)("div",{className:"flex h-min min-h-0 flex-col gap-2 rounded-md bg-white p-4 pt-2 shadow dark:bg-gray-700",children:[(0,N.jsxs)("div",{className:"sticky top-0 flex gap-2 bg-inherit pt-2",children:[(0,N.jsx)("input",{className:"input min-w-0",type:"search",placeholder:"Filter...",disabled:D.length===0,onChange:A=>b(()=>h(A.target.value))}),(0,N.jsx)("button",{disabled:M||a.length===0,onClick:()=>c([]),className:"btn btn--outlined w-max flex-grow",title:"Clear selection",children:"Clear"}),(0,N.jsx)("button",{disabled:D.length===0,onClick:()=>a.length===v.length?c([]):c(A=>Array.from(new Set([...A,...v]))),className:"btn btn--outlined w-max flex-grow",title:"Clear selection",children:a.length===v.length?"Deselect all":"Select all"})]}),x.length>0?x:(0,N.jsx)("p",{className:"place-self-center",children:m.length>0?"No authors found":"All authors have been grouped"})]})}),(0,N.jsx)("div",{className:"overflow-y-auto",children:(0,N.jsx)("div",{className:"grid h-min min-h-0 grid-cols-1 gap-4 rounded-md bg-white p-4 shadow lg:grid-cols-2 xl:grid-cols-3 dark:bg-gray-700",children:s.length>0?C:(0,N.jsx)("p",{className:"place-self-center",children:"No authors have been grouped yet"})})}),(0,N.jsxs)("div",{className:"col-span-2 mr-6 grid w-full grid-cols-2 gap-4",children:[(0,N.jsx)("p",{children:_}),(0,N.jsx)("button",{className:"btn btn--primary justify-self-end",onClick:e,children:"Done"})]})]})}),document.body);function T({alias:A,onClick:j,disabled:F}){return(0,N.jsxs)("button",{className:"btn--icon flex grid-flow-col gap-2 text-sm [&:hover>svg]:opacity-50 [&>svg]:opacity-0",disabled:F,onClick:j,title:"Make display name for this grouping",children:[(0,N.jsx)(Rr.Icon,{path:io,size:.75}),(0,N.jsx)("label",{title:A,className:"label truncate",children:A})]},A)}}var Pr=(t,e)=>t.toLowerCase().localeCompare(e.toLowerCase());var Xe=g(ot()),me=g(R());var ft=g(L());function Ai(){let{repo:t}=$(),{path:e,setPath:r}=At(),o=(0,me.useMemo)(()=>{let n=e,i=[];for(let l=0;l<8&&n!=="";l++){let s=n.lastIndexOf("/");i.push([n.substring(s+1),n]),n=n.substring(0,s)}return n!==""&&(i=i.slice(0,i.length-1),i.push(["...",""]),i.push([t.name,t.name])),i.reverse()},[e,t.name]);return(0,ft.jsx)("div",{className:"flex items-center gap-1",children:o.length>1?o.map(([n,i],l)=>i===""||l===o.length-1?i===""?(0,ft.jsxs)(me.Fragment,{children:[(0,ft.jsx)("span",{className:"font-bold",children:n}),(0,ft.jsx)(Xe.default,{path:Yt,size:1})]},i):(0,ft.jsx)("span",{className:"font-bold",children:n},i):(0,ft.jsxs)(me.Fragment,{children:[(0,ft.jsxs)("button",{className:"card flex flex-row gap-2 px-2 py-1 font-bold hover:opacity-70",onClick:()=>r(i),children:[l===0?(0,ft.jsx)(Xe.default,{path:So,size:1}):null,n]}),(0,ft.jsx)(Xe.default,{path:Yt,size:1})]},i)):null})}var Li=g(ot()),Oi=g(R());var Vt=g(R(),1),Ir=class extends Vt.PureComponent{constructor(e){super(e),this.$=Vt.default.createRef(),this._=Vt.default.createRef()}render(){return Vt.default.createElement("span",{ref:this.$},Vt.default.createElement("a",{...this.props,ref:this._},this.props.children))}componentDidMount(){this.paint()}getSnapshotBeforeUpdate(){return this.reset(),null}componentDidUpdate(){this.paint()}componentWillUnmount(){this.reset()}paint(){let e=this.$.current.appendChild(document.createElement("span"));import("/build/_shared/buttons.esm-NERHWBM5.js").then(({render:r})=>{this._.current!=null&&r(e.appendChild(this._.current),function(o){try{e.parentNode.replaceChild(o,e)}catch{}})})}reset(){this.$.current.replaceChild(this._.current,this.$.current.lastChild)}},Fr=Ir;var St=g(L()),Ni=(0,Oi.memo)(function(){return(0,St.jsxs)("div",{className:"card",children:[(0,St.jsxs)("div",{className:"flex items-center justify-between",children:[(0,St.jsx)("h3",{className:"card__title",children:"Support Git Truck"}),(0,St.jsx)(Li.default,{path:xo,size:1})]}),(0,St.jsx)("div",{className:"dark:hue-rotate-180 dark:filter",children:(0,St.jsxs)("div",{className:"flex items-center justify-between dark:contrast-75 dark:invert dark:sepia dark:filter",children:[(0,St.jsx)(Fr,{href:"https://github.com/git-truck/git-truck","data-icon":"octicon-star","data-size":"large","data-show-count":"true",children:"Star Git Truck"}),(0,St.jsx)(Fr,{href:"https://github.com/git-truck/git-truck/issues/new?template=user-issue.md","data-icon":"octicon-issue-opened","data-size":"large","data-show-count":"true",children:"Open an issue"})]})})]})});function vs(t){var e=0,r=t.children,o=r&&r.length;if(!o)e=1;else for(;--o>=0;)e+=r[o].value;t.value=e}function ji(){return this.eachAfter(vs)}function Di(t,e){let r=-1;for(let o of this)t.call(e,o,++r,this);return this}function Ei(t,e){for(var r=this,o=[r],n,i,l=-1;r=o.pop();)if(t.call(e,r,++l,this),n=r.children)for(i=n.length-1;i>=0;--i)o.push(n[i]);return this}function Pi(t,e){for(var r=this,o=[r],n=[],i,l,s,a=-1;r=o.pop();)if(n.push(r),i=r.children)for(l=0,s=i.length;l<s;++l)o.push(i[l]);for(;r=n.pop();)t.call(e,r,++a,this);return this}function Ri(t,e){let r=-1;for(let o of this)if(t.call(e,o,++r,this))return o}function Ii(t){return this.eachAfter(function(e){for(var r=+t(e.data)||0,o=e.children,n=o&&o.length;--n>=0;)r+=o[n].value;e.value=r})}function Fi(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})}function Bi(t){for(var e=this,r=Ss(e,t),o=[e];e!==r;)e=e.parent,o.push(e);for(var n=o.length;t!==r;)o.splice(n,0,t),t=t.parent;return o}function Ss(t,e){if(t===e)return t;var r=t.ancestors(),o=e.ancestors(),n=null;for(t=r.pop(),e=o.pop();t===e;)n=t,t=r.pop(),e=o.pop();return n}function Hi(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e}function Gi(){return Array.from(this)}function _i(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t}function zi(){var t=this,e=[];return t.each(function(r){r!==t&&e.push({source:r.parent,target:r})}),e}function*$i(){var t=this,e,r=[t],o,n,i;do for(e=r.reverse(),r=[];t=e.pop();)if(yield t,o=t.children)for(n=0,i=o.length;n<i;++n)r.push(o[n]);while(r.length)}function ne(t,e){t instanceof Map?(t=[void 0,t],e===void 0&&(e=ws)):e===void 0&&(e=ks);for(var r=new pe(t),o,n=[r],i,l,s,a;o=n.pop();)if((l=e(o.data))&&(a=(l=Array.from(l)).length))for(o.children=l,s=a-1;s>=0;--s)n.push(i=l[s]=new pe(l[s])),i.parent=o,i.depth=o.depth+1;return r.eachBefore(As)}function Ts(){return ne(this).eachBefore(Ms)}function ks(t){return t.children}function ws(t){return Array.isArray(t)?t[1]:null}function Ms(t){t.data.value!==void 0&&(t.value=t.data.value),t.data=t.data.data}function As(t){var e=0;do t.height=e;while((t=t.parent)&&t.height<++e)}function pe(t){this.data=t,this.depth=this.height=0,this.parent=null}pe.prototype=ne.prototype={constructor:pe,count:ji,each:Di,eachAfter:Pi,eachBefore:Ei,find:Ri,sum:Ii,sort:Fi,path:Bi,ancestors:Hi,descendants:Gi,leaves:_i,links:zi,copy:Ts,[Symbol.iterator]:$i};function qi(t){return t==null?null:Br(t)}function Br(t){if(typeof t!="function")throw new Error;return t}function Nt(){return 0}function Bt(t){return function(){return t}}function Ui(){let t=1;return()=>(t=(1664525*t+1013904223)%4294967296)/4294967296}function Vi(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Ji(t,e){let r=t.length,o,n;for(;r;)n=e()*r--|0,o=t[r],t[r]=t[n],t[n]=o;return t}function Wi(t,e){for(var r=0,o=(t=Ji(Array.from(t),e)).length,n=[],i,l;r<o;)i=t[r],l&&Xi(l,i)?++r:(l=Os(n=Ls(n,i)),r=0);return l}function Ls(t,e){var r,o;if(Hr(e,t))return[e];for(r=0;r<t.length;++r)if(Ye(e,t[r])&&Hr(de(t[r],e),t))return[t[r],e];for(r=0;r<t.length-1;++r)for(o=r+1;o<t.length;++o)if(Ye(de(t[r],t[o]),e)&&Ye(de(t[r],e),t[o])&&Ye(de(t[o],e),t[r])&&Hr(Yi(t[r],t[o],e),t))return[t[r],t[o],e];throw new Error}function Ye(t,e){var r=t.r-e.r,o=e.x-t.x,n=e.y-t.y;return r<0||r*r<o*o+n*n}function Xi(t,e){var r=t.r-e.r+Math.max(t.r,e.r,1)*1e-9,o=e.x-t.x,n=e.y-t.y;return r>0&&r*r>o*o+n*n}function Hr(t,e){for(var r=0;r<e.length;++r)if(!Xi(t,e[r]))return!1;return!0}function Os(t){switch(t.length){case 1:return Ns(t[0]);case 2:return de(t[0],t[1]);case 3:return Yi(t[0],t[1],t[2])}}function Ns(t){return{x:t.x,y:t.y,r:t.r}}function de(t,e){var r=t.x,o=t.y,n=t.r,i=e.x,l=e.y,s=e.r,a=i-r,c=l-o,m=s-n,h=Math.sqrt(a*a+c*c);return{x:(r+i+a/h*m)/2,y:(o+l+c/h*m)/2,r:(h+n+s)/2}}function Yi(t,e,r){var o=t.x,n=t.y,i=t.r,l=e.x,s=e.y,a=e.r,c=r.x,m=r.y,h=r.r,u=o-l,f=o-c,b=n-s,d=n-m,p=a-i,k=h-i,E=o*o+n*n-i*i,P=E-l*l-s*s+a*a,G=E-c*c-m*m+h*h,M=f*b-u*d,D=(b*G-d*P)/(M*2)-o,B=(d*p-b*k)/M,_=(f*P-u*G)/(M*2)-n,v=(u*k-f*p)/M,x=B*B+v*v-1,C=2*(i+D*B+_*v),T=D*D+_*_-i*i,w=-(Math.abs(x)>1e-6?(C+Math.sqrt(C*C-4*x*T))/(2*x):T/C);return{x:o+D+B*w,y:n+_+v*w,r:w}}function Ki(t,e,r){var o=t.x-e.x,n,i,l=t.y-e.y,s,a,c=o*o+l*l;c?(i=e.r+r.r,i*=i,a=t.r+r.r,a*=a,i>a?(n=(c+a-i)/(2*c),s=Math.sqrt(Math.max(0,a/c-n*n)),r.x=t.x-n*o-s*l,r.y=t.y-n*l+s*o):(n=(c+i-a)/(2*c),s=Math.sqrt(Math.max(0,i/c-n*n)),r.x=e.x+n*o-s*l,r.y=e.y+n*l+s*o)):(r.x=e.x+r.r,r.y=e.y)}function Qi(t,e){var r=t.r+e.r-1e-6,o=e.x-t.x,n=e.y-t.y;return r>0&&r*r>o*o+n*n}function Zi(t){var e=t._,r=t.next._,o=e.r+r.r,n=(e.x*r.r+r.x*e.r)/o,i=(e.y*r.r+r.y*e.r)/o;return n*n+i*i}function Ke(t){this._=t,this.next=null,this.previous=null}function tl(t,e){if(!(i=(t=Vi(t)).length))return 0;var r,o,n,i,l,s,a,c,m,h,u;if(r=t[0],r.x=0,r.y=0,!(i>1))return r.r;if(o=t[1],r.x=-o.r,o.x=r.r,o.y=0,!(i>2))return r.r+o.r;Ki(o,r,n=t[2]),r=new Ke(r),o=new Ke(o),n=new Ke(n),r.next=n.previous=o,o.next=r.previous=n,n.next=o.previous=r;t:for(a=3;a<i;++a){Ki(r._,o._,n=t[a]),n=new Ke(n),c=o.next,m=r.previous,h=o._.r,u=r._.r;do if(h<=u){if(Qi(c._,n._)){o=c,r.next=o,o.previous=r,--a;continue t}h+=c._.r,c=c.next}else{if(Qi(m._,n._)){r=m,r.next=o,o.previous=r,--a;continue t}u+=m._.r,m=m.previous}while(c!==m.next);for(n.previous=r,n.next=o,r.next=o.previous=o=n,l=Zi(r);(n=n.next)!==o;)(s=Zi(n))<l&&(r=n,l=s);o=r.next}for(r=[o._],n=o;(n=n.next)!==o;)r.push(n._);for(n=Wi(r,e),a=0;a<i;++a)r=t[a],r.x-=n.x,r.y-=n.y;return n.r}function js(t){return Math.sqrt(t.value)}function _r(){var t=null,e=1,r=1,o=Nt;function n(i){let l=Ui();return i.x=e/2,i.y=r/2,t?i.eachBefore(el(t)).eachAfter(Gr(o,.5,l)).eachBefore(rl(1)):i.eachBefore(el(js)).eachAfter(Gr(Nt,1,l)).eachAfter(Gr(o,i.r/Math.min(e,r),l)).eachBefore(rl(Math.min(e,r)/(2*i.r))),i}return n.radius=function(i){return arguments.length?(t=qi(i),n):t},n.size=function(i){return arguments.length?(e=+i[0],r=+i[1],n):[e,r]},n.padding=function(i){return arguments.length?(o=typeof i=="function"?i:Bt(+i),n):o},n}function el(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function Gr(t,e,r){return function(o){if(n=o.children){var n,i,l=n.length,s=t(o)*e||0,a;if(s)for(i=0;i<l;++i)n[i].r+=s;if(a=tl(n,r),s)for(i=0;i<l;++i)n[i].r-=s;o.r=a+s}}}function rl(t){return function(e){var r=e.parent;e.r*=t,r&&(e.x=r.x+t*e.x,e.y=r.y+t*e.y)}}function ol(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function nl(t,e,r,o,n){for(var i=t.children,l,s=-1,a=i.length,c=t.value&&(o-e)/t.value;++s<a;)l=i[s],l.y0=r,l.y1=n,l.x0=e,l.x1=e+=l.value*c}function il(t,e,r,o,n){for(var i=t.children,l,s=-1,a=i.length,c=t.value&&(n-r)/t.value;++s<a;)l=i[s],l.x0=e,l.x1=o,l.y0=r,l.y1=r+=l.value*c}var Ds=(1+Math.sqrt(5))/2;function Es(t,e,r,o,n,i){for(var l=[],s=e.children,a,c,m=0,h=0,u=s.length,f,b,d=e.value,p,k,E,P,G,M,D;m<u;){f=n-r,b=i-o;do p=s[h++].value;while(!p&&h<u);for(k=E=p,M=Math.max(b/f,f/b)/(d*t),D=p*p*M,G=Math.max(E/D,D/k);h<u;++h){if(p+=c=s[h].value,c<k&&(k=c),c>E&&(E=c),D=p*p*M,P=Math.max(E/D,D/k),P>G){p-=c;break}G=P}l.push(a={value:p,dice:f<b,children:s.slice(m,h)}),a.dice?nl(a,r,o,n,d?o+=b*p/d:i):il(a,r,o,d?r+=f*p/d:n,i),d-=p,m=h}return l}var ll=function t(e){function r(o,n,i,l,s){Es(e,o,n,i,l,s)}return r.ratio=function(o){return t((o=+o)>1?o:1)},r}(Ds);function zr(){var t=ll,e=!1,r=1,o=1,n=[0],i=Nt,l=Nt,s=Nt,a=Nt,c=Nt;function m(u){return u.x0=u.y0=0,u.x1=r,u.y1=o,u.eachBefore(h),n=[0],e&&u.eachBefore(ol),u}function h(u){var f=n[u.depth],b=u.x0+f,d=u.y0+f,p=u.x1-f,k=u.y1-f;p<b&&(b=p=(b+p)/2),k<d&&(d=k=(d+k)/2),u.x0=b,u.y0=d,u.x1=p,u.y1=k,u.children&&(f=n[u.depth+1]=i(u)/2,b+=c(u)-f,d+=l(u)-f,p-=s(u)-f,k-=a(u)-f,p<b&&(b=p=(b+p)/2),k<d&&(d=k=(d+k)/2),t(u,b,d,p,k))}return m.round=function(u){return arguments.length?(e=!!u,m):e},m.size=function(u){return arguments.length?(r=+u[0],o=+u[1],m):[r,o]},m.tile=function(u){return arguments.length?(t=Br(u),m):t},m.padding=function(u){return arguments.length?m.paddingInner(u).paddingOuter(u):m.paddingInner()},m.paddingInner=function(u){return arguments.length?(i=typeof u=="function"?u:Bt(+u),m):i},m.paddingOuter=function(u){return arguments.length?m.paddingTop(u).paddingRight(u).paddingBottom(u).paddingLeft(u):m.paddingTop()},m.paddingTop=function(u){return arguments.length?(l=typeof u=="function"?u:Bt(+u),m):l},m.paddingRight=function(u){return arguments.length?(s=typeof u=="function"?u:Bt(+u),m):s},m.paddingBottom=function(u){return arguments.length?(a=typeof u=="function"?u:Bt(+u),m):a},m.paddingLeft=function(u){return arguments.length?(c=typeof u=="function"?u:Bt(+u),m):c},m}function $r(t,e,r,o,n){var i=t.children,l,s=i.length,a,c=new Array(s+1);for(c[0]=a=l=0;l<s;++l)c[l+1]=a+=i[l].value;m(0,s,t.value,e,r,o,n);function m(h,u,f,b,d,p,k){if(h>=u-1){var E=i[h];E.x0=b,E.y0=d,E.x1=p,E.y1=k;return}for(var P=c[h],G=f/2+P,M=h+1,D=u-1;M<D;){var B=M+D>>>1;c[B]<G?M=B+1:D=B}G-c[M-1]<c[M]-G&&h+1<M&&--M;var _=c[M]-P,v=f-_;if(p-b>k-d){var x=f?(b*v+p*_)/f:p;m(h,M,_,b,d,x,k),m(M,u,v,x,d,p,k)}else{var C=f?(d*v+k*_)/f:k;m(h,M,_,b,d,p,C),m(M,u,v,b,C,p,k)}}}var Tt=g(R());var X=g(L()),ml=(0,Tt.memo)(function({setHoveredObject:e}){let[r,o]=nn(),{searchResults:n}=ue(),i=(0,Tt.useDeferredValue)(o),{analyzerData:l}=$(),{chartType:s,sizeMetric:a,depthType:c,hierarchyType:m,labelsVisible:h,renderCutoff:u}=Y(),{path:f}=At(),{clickedObject:b,setClickedObject:d}=it(),{setPath:p}=At(),k;switch(c){case"One":k=1;break;case"Two":k=2;break;case"Three":k=3;break;case"Four":k=4;break;case"Five":k=5;break;case"Full":default:k=void 0}let E=(0,Tt.useMemo)(()=>m==="NESTED"?l.commit:{...l.commit,tree:{...l.commit.tree,children:pl(l.commit.tree)}},[l.commit,m]),P=(0,Tt.useMemo)(()=>i.width===0||i.height===0?[]:qs(E,i,s,a,f,u).descendants(),[i,E,s,a,f,u]);(0,Tt.useEffect)(()=>{e(null)},[s,l.commit,i,e]);let G=(M,D)=>dt(M.data)?{onClick:B=>(B.stopPropagation(),d(M.data)),onMouseOver:()=>e(M.data),onMouseOut:()=>e(null)}:{onClick:B=>{B.stopPropagation(),d(M.data),p(M.data.path)},onMouseOver:B=>{B.stopPropagation(),e(D?null:M.data)},onMouseOut:()=>e(null)};return(0,X.jsx)("div",{className:"relative grid place-items-center overflow-hidden",ref:r,children:(0,X.jsx)("svg",{className:V("grid h-full w-full place-items-center stroke-gray-300 dark:stroke-gray-700",{"cursor-zoom-out":f.includes("/")}),xmlns:"http://www.w3.org/2000/svg",viewBox:`0 0 ${i.width} ${i.height}`,onClick:()=>{let M=f.split("/").slice(0,-1).join("/");p(M===""?"/":M)},children:P.map((M,D)=>(0,X.jsx)("g",{className:V("transition-opacity hover:opacity-60",{"cursor-pointer":D===0,"cursor-zoom-in":D>0&&Mt(M.data),"animate-blink":(b==null?void 0:b.path)===M.data.path}),...G(M,D===0),children:(k===void 0||M.depth<=k)&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)(Gs,{d:M,isSearchMatch:Boolean(n[M.data.path])},M.data.path),h&&(0,X.jsx)(zs,{d:M,children:_s({d:M,isRoot:D===0,path:f,displayText:M.data.name,chartType:s})},`text|${f}|${M.data.path}|${s}|${a}`)]})},M.data.path))},`svg|${i.width}|${i.height}`)})});function Gs({d:t,isSearchMatch:e}){let[r]=nt(),{chartType:o,metricType:n,authorshipType:i,transitionsEnabled:l}=Y(),s=(0,Tt.useMemo)(()=>{var c,m;let a={strokeWidth:"1px",fill:dt(t.data)?(m=(c=r[i].get(n))==null?void 0:c.colormap.get(t.data.path))!=null?m:"grey":"transparent"};if(o==="BUBBLE_CHART"){let h=t;a={...a,x:h.x-h.r,y:h.y-h.r+14-1,width:h.r*2,height:h.r*2,rx:h.r,ry:h.r}}else{let h=t;a={...a,x:h.x0,y:h.y0,width:h.x1-h.x0,height:h.y1-h.y0,rx:8,ry:8}}return a},[t,r,i,n,o]);return(0,X.jsx)("rect",{...s,className:se(e?"stroke-red-500":dt(t.data)?"stroke-transparent":"",{"cursor-pointer":dt(t.data),"transition-all duration-500 ease-in-out":l,"animate-stroke-pulse":e})})}function _s({d:t,isRoot:e,path:r,displayText:o,chartType:n}){let i,l;if(n==="BUBBLE_CHART"){let s=t;i=a=>s.r<50||s.r*Math.PI<a.length*10,l=()=>!1}else{let s=t;i=a=>s.x1-s.x0<a.length*10,l=()=>s.y1-s.y0-(dt(t.data)?3:3)<14}if(e){let s=r.split("/"),a=o.split("/"),c=0,m=0;for(;c<s.length&&m<a.length;)s[c]!==a[m]?c++:(c++,m++);o=a.slice(m-1).join("/")}return i(o)&&(o=o.replace(/\/.+\//gm,"/.../"),i(o))||l&&l(o)&&(o=o.replace(/\/.+\//gm,"/.../"),l(o))?null:o}function zs({d:t,children:e=null}){var m,h;let[r]=nt(),{authorshipType:o,metricType:n}=Y(),i=ve(),l=$s(t);if(e===null)return null;let s;if(l){let u=Mt(t.data)?13:14,f=t;s=Us(f.x,f.y+u,f.r)}else{let u=t;s=Vs(u.x0+(Mt(t.data)?8:4),u.y0+(Mt(t.data)?3:3),u.x1-u.x0,u.y1-u.y0,0)}let a=dt(t.data)?Te((h=(m=r[o].get(n))==null?void 0:m.colormap.get(t.data.path))!=null?h:"#333"):i?"#333":"#fff",c={startOffset:l?"50%":void 0,dominantBaseline:l&&Mt(t.data)?"central":"hanging",textAnchor:l?"middle":"start",href:`#path-${t.data.path}`};return(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)("path",{d:s,id:`path-${t.data.path}`,className:"hidden"}),Mt(t.data)&&l?(0,X.jsx)("text",{className:"pointer-events-none fill-none stroke-gray-100 stroke-[7px] font-mono text-sm font-bold dark:stroke-gray-800",strokeLinecap:"round",children:(0,X.jsx)("textPath",{...c,children:e})}):null,(0,X.jsx)("text",{fill:a,className:"pointer-events-none stroke-none",children:(0,X.jsx)("textPath",{...c,className:V("stroke-none font-mono",{"text-sm font-bold":Mt(t.data),"text-xs":!Mt(t.data)}),children:e})})]})}function $s(t){return typeof t.r=="number"}function qs(t,e,r,o,n,i){let s=t.tree,a=n.substring(t.tree.name.length+1).split("/");for(let u=0;u<a.length;u++)for(let f of s.children)if(f.type==="tree"){let b=f.name.split("/");if(b[0]===a[u]){s=f,u+=b.length-1;break}}let m=ne(s).sum(u=>{var b,d,p;let f=u;switch(o){case"FILE_SIZE":return(b=f.sizeInBytes)!=null?b:1;case"MOST_COMMITS":return f.noCommits;case"EQUAL_SIZE":return 1;case"LAST_CHANGED":return((d=f.lastChangeEpoch)!=null?d:t.oldestLatestChangeEpoch)-t.oldestLatestChangeEpoch;case"TRUCK_FACTOR":return Object.keys((p=f.authors)!=null?p:{}).length}}),h=Number.isNaN(i)?2:i;switch(r){case"TREE_MAP":{let f=zr().tile($r).size([e.width,e.height]).paddingInner(2).paddingOuter(4).paddingTop(20)(m);return qr(f,b=>{let d=b;return d.x1-d.x0>=h&&d.y1-d.y0>=h}),f}case"BUBBLE_CHART":{let f=_r().size([e.width,e.height-14]).padding(10)(m);return qr(f,b=>b.r>=h),f}default:throw Error("Invalid chart type")}}function qr(t,e){var r,o,n,i;t.children=(r=t.children)==null?void 0:r.filter(l=>e(l));for(let l of(o=t.children)!=null?o:[])((i=(n=l.children)==null?void 0:n.length)!=null?i:0)>0&&qr(l,e)}function Us(t,e,r){return`M${t},${e}
5
+ m0,${r}
6
+ a${r},${r} 0 1,1 0,${-r*2}
7
+ a${r},${r} 0 1,1 0,${r*2}`}function Vs(t,e,r,o,n){return n=Math.min(n,Math.floor(r/3),Math.floor(o/3)),`M${t+n},${e}
8
+ h${r-n*2}
9
+ a${n},${n} 0 0 1 ${n},${n}
10
+ v${o-n*2}
11
+ a${n},${n} 0 0 1 ${-n},${n}
12
+ h${-r+n*2}
13
+ a${n},${n} 0 0 1 ${-n},${-n}
14
+ v${-o+n*2}
15
+ a${n},${n} 0 0 1 ${n},${-n}
16
+ z`}function pl(t){let e=[];for(let r of t.children)r.type==="blob"?e.push(r):e.push(...pl(r));return e}var ir=g(ot());var ut=g(R());var Vr=g(ot()),Ht=g(L()),dl=(0,ut.memo)(function({hoveredObject:e,x:r,y:o}){var b;let n=(0,ut.useRef)(null),{metricType:i,authorshipType:l}=Y(),[s]=nt(),a=(0,ut.useMemo)(()=>{var k,E,P;if(!e)return null;let d=(E=(k=s[l])==null?void 0:k.get(i))==null?void 0:E.colormap;return(P=d==null?void 0:d.get(e.path))!=null?P:"grey"},[e,s,i,l]),c=(0,ut.useMemo)(()=>r<window.innerWidth/2,[r]),m=(0,ut.useMemo)(()=>o<window.innerHeight/2,[o]),h=(0,ut.useMemo)(()=>c?`calc(1rem + ${r}px)`:`calc(-1rem + ${r}px - 100%)`,[c,r]),u=(0,ut.useMemo)(()=>m?`calc(1rem + ${o}px)`:`calc(-1rem + ${o}px - 100%)`,[m,o]),f=e!==null;return(0,Ht.jsxs)("div",{className:`card absolute left-0 top-0 z-50 flex w-max flex-row place-items-center rounded-full bg-gray-100/50 py-0 pl-1 pr-2 backdrop-blur will-change-transform dark:bg-gray-800/40 ${f?"visible":"hidden"}`,ref:n,style:{transform:f?`translate(${h}, ${u})`:"none"},children:[(e==null?void 0:e.type)==="blob"?a?(0,Ht.jsx)(bt,{dotColor:a}):null:(0,Ht.jsx)(Vr.default,{className:"ml-0.5",path:Kt,size:.75}),(0,Ht.jsx)("span",{className:"card__subtitle items-center font-bold",children:e&&dt(e)?e==null?void 0:e.name:dn((b=e==null?void 0:e.path.split("/"))!=null?b:[]).map((d,p,k)=>(0,Ht.jsxs)(ut.Fragment,{children:[d,k.length>1&&p<k.length-1?(0,Ht.jsx)(Vr.default,{path:Oo,size:1}):null]},`segment-${p}${d}`))}),(e==null?void 0:e.type)==="blob"?Js({metric:i,hoveredBlob:e,authorshipType:l}):null]})});function Js(t){var e,r,o,n,i,l,s,a,c,m,h;switch(t.metric){case"MOST_COMMITS":{let u=(e=t.hoveredBlob)==null?void 0:e.noCommits;return u?`${u} commit${u>1?"s":""}`:null}case"LAST_CHANGED":{let u=(r=t.hoveredBlob)==null?void 0:r.lastChangeEpoch;return u?un(u):null}case"SINGLE_AUTHOR":{let u=t.hoveredBlob?Object.entries((i=(n=(o=t.hoveredBlob)==null?void 0:o.unionedAuthors)==null?void 0:n[t.authorshipType])!=null?i:[]):[];switch(u.length){case 0:return null;case 1:return`${u[0][0]} is the only author`;default:return`${u.length} authors`}}case"TOP_CONTRIBUTOR":{let u=(a=(s=(l=t.hoveredBlob)==null?void 0:l.dominantAuthor)==null?void 0:s[t.authorshipType])!=null?a:void 0;return u?u[0]:null}case"TRUCK_FACTOR":{let u=Object.entries((h=(m=(c=t.hoveredBlob)==null?void 0:c.unionedAuthors)==null?void 0:m.HISTORICAL)!=null?h:[]).length;switch(u){case 0:return null;case 1:return"1 author";default:return`${u} authors`}}default:return null}}var Dl=g(ro()),aa=g(kl()),El=g(Nl());var S=g(L());var ca=()=>{let t=to();if((0,et.useEffect)(()=>{console.error(t)},[t]),Qr(t))return(0,S.jsxs)("div",{className:"app-container",children:[(0,S.jsx)("div",{}),(0,S.jsxs)("div",{className:"card",children:[(0,S.jsx)("h1",{children:"An error occured!"}),(0,S.jsx)("p",{children:"See console for more infomation."}),(0,S.jsxs)("p",{children:["Message: ",t.data.message]}),(0,S.jsx)(Zt,{children:t.data.message}),(0,S.jsx)("div",{children:(0,S.jsx)(zt,{to:".",children:"Retry"})}),(0,S.jsx)("div",{children:(0,S.jsx)(zt,{to:"..",children:"Go back"})})]})]});let e="Unknown error";return typeof t=="string"?e=t:typeof t=="object"&&t!==null&&"message"in t&&typeof t.message=="string"&&(e=t.message),(0,S.jsxs)("div",{className:"app-container",children:[(0,S.jsx)("div",{}),(0,S.jsxs)("div",{className:"card",children:[(0,S.jsx)("h1",{children:"An error occured!"}),(0,S.jsx)("p",{children:"See console for more infomation."}),(0,S.jsx)(Zt,{children:e}),(0,S.jsx)("div",{children:(0,S.jsx)(zt,{to:".",children:"Retry"})}),(0,S.jsx)("div",{children:(0,S.jsx)(zt,{to:"..",children:"Go back"})})]})]})},ua=(0,et.memo)(function(){let{gitTruckInfo:e}=$();return(0,S.jsxs)("div",{className:"card",children:[(0,S.jsxs)("p",{children:["Update available: ",e.latestVersion]}),(0,S.jsxs)("p",{className:"card-p",children:["Currently installed: ",e.version]}),(0,S.jsxs)("p",{className:"card-p",children:["To update, close application and run: ",(0,S.jsx)(Zt,{inline:!0,children:"npx git-truck@latest"})]})]})});function Pl(){let t=Ce(),e=gr(),{analyzerData:r,gitTruckInfo:o}=e,[n,i]=(0,et.useState)(!1),[l,s]=(0,et.useState)(!1),[a,c]=(0,et.useState)(!1),[m,h]=xe(!1),[u,f]=(0,et.useState)(null),b=()=>h(!0),d=(0,et.useMemo)(function(){return a?"fullscreen":n&&l?"both-collapse":n?"left-collapse":l?"right-collapse":""},[a,n,l]);return r?(0,S.jsxs)(Ti,{data:e,children:[(0,S.jsxs)("div",{className:se("app-container",d),children:[(0,S.jsxs)("aside",{className:V("grid auto-rows-min items-start gap-2 p-2 pr-0",{"overflow-y-auto":!a}),children:[n?null:(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(hi,{}),(0,S.jsx)(vi,{}),r.hiddenFiles.length>0?(0,S.jsx)(gi,{}):null,(0,S.jsx)(ki,{})]}),a?null:(0,S.jsx)("div",{className:se("absolute z-10 justify-self-end",{"left-0":n}),children:(0,S.jsx)("button",{type:"button",onClick:()=>i(!n),className:V("btn btn--primary absolute left-0 top-[50vh] flex h-6 w-6 cursor-pointer items-center justify-center rounded-full p-0",{"left-arrow-space":!n}),children:(0,S.jsx)(ir.Icon,{path:n?Yt:ar,size:1})})})]}),(0,S.jsxs)("main",{className:"grid h-full min-w-[100px] grid-rows-[auto,1fr] gap-2 overflow-y-hidden p-2",children:[(0,S.jsxs)("header",{className:"grid grid-flow-col items-center justify-between gap-2",children:[(0,S.jsx)(Ai,{}),(0,S.jsx)(ma,{setIsFullscreen:c,isFullscreen:a})]}),t?(0,S.jsx)(pa,{hoveredObject:u,setHoveredObject:f}):(0,S.jsx)("div",{})]}),(0,S.jsxs)("aside",{className:V("grid auto-rows-min items-start gap-2 p-2 pl-0",{"overflow-y-auto":!a}),children:[a?null:(0,S.jsx)("div",{className:"absolute z-10",children:(0,S.jsx)("button",{type:"button",onClick:()=>s(!l),className:"btn btn--primary absolute right-0 top-[50vh] flex h-6 w-6 cursor-pointer items-center justify-center rounded-full p-0",children:(0,S.jsx)(ir.Icon,{path:l?ar:Yt,size:1})})}),l?null:(0,S.jsxs)(S.Fragment,{children:[o.latestVersion&&gn(o.latestVersion,o.version)===1?(0,S.jsx)(ua,{}):null,(0,S.jsx)(di,{className:V({"absolute bottom-0 right-2 max-h-screen -translate-x-full overflow-y-auto shadow shadow-black/50":a}),showUnionAuthorsModal:b}),(0,S.jsx)(Ci,{hoveredObject:u,showUnionAuthorsModal:b}),(0,S.jsx)(El.Online,{children:(0,S.jsx)(Ni,{})})]})]})]}),(0,S.jsx)(Mi,{open:m,onClose:()=>{h(!1)}})]}):null}var ma=(0,et.memo)(function({setIsFullscreen:e,isFullscreen:r}){return(0,S.jsx)("button",{className:"card btn btn--primary p-1",onClick:()=>e(o=>!o),title:"Toggle full view",children:(0,S.jsx)(ir.Icon,{path:r?vo:Co,size:1})})});function pa({hoveredObject:t,setHoveredObject:e}){let r=(0,et.useRef)(null),o=(0,et.useRef)(document.body),n=on(o);return(0,S.jsxs)("div",{className:"card grid overflow-y-hidden p-2",ref:r,children:[(0,S.jsx)(ml,{setHoveredObject:e}),(0,Dl.createPortal)((0,S.jsx)(dl,{hoveredObject:t,x:n.docX,y:n.docY,w:window.innerWidth}),document.body)]})}export{ca as ErrorBoundary,Pl as default};
17
+ /*! Bundled license information:
18
+
19
+ lang-map/index.js:
20
+ (*!
21
+ * lang-map <https://github.com/jonschlinkert/lang-map>
22
+ *
23
+ * Copyright (c) 2014-2015, Jon Schlinkert.
24
+ * Licensed under the MIT license.
25
+ *)
26
+
27
+ uniqolor/dist/uniqolor.js:
28
+ (**
29
+ * Generate unique and beautiful colors from any texts or numbers
30
+ * @version v1.1.0
31
+ * @link https://github.com/dastoori/uniqolor#README
32
+ * @author Rasool Dastoori
33
+ * @license MIT License, http://www.opensource.org/licenses/MIT
34
+ *)
35
+ */
@@ -0,0 +1 @@
1
+ import{a as E,b as G,c as W,l as D,s as v}from"/build/_shared/chunk-RNK4UN5B.js";import{ka as x,la as N,oa as d,xa as b}from"/build/_shared/chunk-XF47JJBR.js";import{a as u,e as g,j as f,n as h,o as y,s as m}from"/build/_shared/chunk-DPCIHQKL.js";import{c as r}from"/build/_shared/chunk-Q3IECNXJ.js";var S=r(E()),C=r(W());var c=r(u());var i=r(m());function w({className:t=""}){let a=y();(0,c.useEffect)(()=>{a.state==="idle"&&a.load("/progress")},[a,a.state]);let n=(0,c.useMemo)(()=>{if(!a.data)return"Starting analyzation";let{progress:s,totalCommitCount:o,analyzationStatus:l}=a.data;return!l||l==="Starting"?"Starting analyzation":l==="GeneratingChart"?"Generating chart":"Analyzing commits: "+(s&&o?Math.round(s/o*100):0)+"% done"},[a.data]);return(0,i.jsx)("div",{className:x("grid h-full w-full place-items-center",t),children:(0,i.jsxs)("div",{className:"flex animate-hide-initially flex-col px-2 py-2 opacity-0",children:[(0,i.jsx)("p",{className:"text-center text-3xl font-bold opacity-70",children:n}),(0,i.jsx)("img",{src:N,alt:"\u{1F69B}",className:"w-full min-w-0 max-w-sm self-center"})]})})}var k=r(G());var p=r(u());var z="/build/_assets/truck-JLDVJULS.png";var e=r(m());function U(){let{repositories:t,baseDir:a,baseDirName:n}=h();return g().state!=="idle"?(0,e.jsx)("div",{className:"grid h-screen place-items-center",children:(0,e.jsx)(w,{})}):(0,e.jsxs)("main",{className:"m-auto flex min-h-screen w-full max-w-4xl flex-col gap-2 p-2",children:[(0,e.jsxs)("div",{className:"card",children:[(0,e.jsxs)("h1",{className:"flex items-center text-4xl",children:[(0,e.jsx)("img",{src:z,alt:"Git Truck",className:"mr-2 inline-block h-12"}),"Git Truck"]}),(0,e.jsx)("p",{children:(0,e.jsxs)(e.Fragment,{children:["Found ",t.length," git repositor",t.length===1?"y":"ies"," in the folder"," ",(0,e.jsx)(d,{inline:!0,title:a,children:n}),"."]})})]}),(0,e.jsx)(L,{repositories:t})]})}function L({repositories:t}){return t.length===0?(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)("p",{children:["Try running ",(0,e.jsx)(d,{inline:!0,children:"git-truck"})," in another folder or provide another path as argument."]})}):(0,e.jsxs)("div",{className:"card row-start-auto grid w-full grid-flow-row grid-cols-[max-content,1fr,1fr,1fr] flex-wrap items-center gap-1",children:[(0,e.jsx)("h2",{className:"card__title truncate break-all",title:"Clone repository",children:"Clone repository"}),(0,e.jsx)("span",{className:"select-none rounded-full bg-gradient-to-r from-blue-500 to-blue-600 px-2 py-1.5 text-center text-xs font-bold uppercase leading-none tracking-widest text-white/90",children:"Coming soon"}),(0,e.jsx)("input",{type:"text",className:"input input--hover-border",placeholder:"git@github.com/owner/repo.git"}),(0,e.jsx)("button",{className:"btn rounded-full",disabled:!0,title:"Coming soon!",children:"Clone"}),(0,e.jsx)("hr",{className:"col-span-full"}),t.map((a,n)=>(0,e.jsx)(q,{index:n,repo:a},a.path))]})}function q({repo:t}){let[a,n]=(0,p.useState)(t.currentHead),s=D(t.name,a),o=t.analyzedHeads[a];return(0,e.jsxs)(p.Fragment,{children:[(0,e.jsx)("h2",{className:"card__title truncate",title:t.name,children:t.name}),(0,e.jsx)("span",{className:b("w-full min-w-max select-none rounded-full bg-white/20 bg-gradient-to-r px-2 py-1.5 text-center text-xs font-bold uppercase leading-none tracking-widest text-white/90",o?" from-green-500 to-green-600 ":"bg-transparent text-inherit"),children:o?"Ready":"Not analyzed"}),(0,e.jsx)(v,{className:"input--hover-border",value:a,onChange:l=>n(l.target.value),headGroups:t.refs,analyzedHeads:t.analyzedHeads}),(0,e.jsx)("div",{className:"grid",children:(0,e.jsx)(f,{className:`btn rounded-full ${o?"btn--success":""}`,to:s,children:o?"View":"Analyze"})})]},t.name)}export{U as default};
@@ -0,0 +1 @@
1
+ import{b as o}from"/build/_shared/chunk-Q3IECNXJ.js";var p=o((r,e)=>{e.exports={}});export default p();
@@ -0,0 +1 @@
1
+ import{b as o}from"/build/_shared/chunk-Q3IECNXJ.js";var p=o((r,e)=>{e.exports={}});export default p();
Binary file