From e887e5eddbe866a593015cabb344b72c50cda9e2 Mon Sep 17 00:00:00 2001 From: Patrick Hener Date: Tue, 28 Feb 2023 10:39:07 +0100 Subject: [PATCH 1/7] started restructuring and cleanup --- Makefile | 4 +- {internal/myca => ca}/ca.go | 24 +- .../myclipboard => clipboard}/clipboard.go | 7 +- httpserver/clipboard.go | 26 + httpserver/consts.go | 5 + httpserver/embed.go | 8 + httpserver/error.go | 101 +++ httpserver/handler.go | 258 +++++++ httpserver/httpserver.go | 2 + httpserver/middleware.go | 23 + httpserver/server.go | 113 +++ .../datatable/jquery.dataTables.min.css | 0 .../datatable/jquery.dataTables.min.js | 0 .../static/3rdparty/dropzone/basic.min.css | 0 .../dropzone/dropzone-amd-module.min.js | 0 .../static/3rdparty/dropzone/dropzone.min.css | 0 .../static/3rdparty/dropzone/dropzone.min.js | 0 .../fontawesome-5.15.1/css/all.min.css | 0 .../webfonts/fa-brands-400.eot | Bin .../webfonts/fa-brands-400.svg | 0 .../webfonts/fa-brands-400.ttf | Bin .../webfonts/fa-brands-400.woff | Bin .../webfonts/fa-brands-400.woff2 | Bin .../webfonts/fa-regular-400.eot | Bin .../webfonts/fa-regular-400.svg | 0 .../webfonts/fa-regular-400.ttf | Bin .../webfonts/fa-regular-400.woff | Bin .../webfonts/fa-regular-400.woff2 | Bin .../webfonts/fa-solid-900.eot | Bin .../webfonts/fa-solid-900.svg | 0 .../webfonts/fa-solid-900.ttf | Bin .../webfonts/fa-solid-900.woff | Bin .../webfonts/fa-solid-900.woff2 | Bin .../static/3rdparty/images/sort_asc.png | Bin .../3rdparty/images/sort_asc_disabled.png | Bin .../static/3rdparty/images/sort_both.png | Bin .../static/3rdparty/images/sort_desc.png | Bin .../3rdparty/images/sort_desc_disabled.png | Bin .../static/css/style.css | 0 .../static/fonts/FiraCode-VF.woff | Bin .../static/fonts/FiraCode-VF.woff2 | Bin .../static/images/error-gopher.gif | Bin .../static/images/favicon.gif | Bin .../static/images/goshs-logo.png | Bin .../static/js/jquery-3.5.1.min.js | 0 .../static/js/main.min.js | 0 .../static/templates/error.html | 0 .../static/templates/index.html | 0 .../static/templates/silent.html | 0 httpserver/structs.go | 69 ++ httpserver/updown.go | 179 +++++ internal/myhttp/fileserver.go | 727 ------------------ internal/mylog/log.go => logger/logger.go | 3 +- main.go | 26 +- {internal/myutils => utils}/utils.go | 13 +- {internal/mysock => ws}/client.go | 26 +- {internal/mysock => ws}/hub.go | 10 +- ws/ws.go | 2 + 58 files changed, 845 insertions(+), 781 deletions(-) rename {internal/myca => ca}/ca.go (90%) rename {internal/myclipboard => clipboard}/clipboard.go (92%) create mode 100644 httpserver/clipboard.go create mode 100644 httpserver/consts.go create mode 100644 httpserver/embed.go create mode 100644 httpserver/error.go create mode 100644 httpserver/handler.go create mode 100644 httpserver/httpserver.go create mode 100644 httpserver/middleware.go create mode 100644 httpserver/server.go rename {internal/myhttp => httpserver}/static/3rdparty/datatable/jquery.dataTables.min.css (100%) rename {internal/myhttp => httpserver}/static/3rdparty/datatable/jquery.dataTables.min.js (100%) rename {internal/myhttp => httpserver}/static/3rdparty/dropzone/basic.min.css (100%) rename {internal/myhttp => httpserver}/static/3rdparty/dropzone/dropzone-amd-module.min.js (100%) rename {internal/myhttp => httpserver}/static/3rdparty/dropzone/dropzone.min.css (100%) rename {internal/myhttp => httpserver}/static/3rdparty/dropzone/dropzone.min.js (100%) rename {internal/myhttp => httpserver}/static/3rdparty/fontawesome-5.15.1/css/all.min.css (100%) rename {internal/myhttp => httpserver}/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.eot (100%) rename {internal/myhttp => httpserver}/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.svg (100%) rename {internal/myhttp => httpserver}/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.ttf (100%) rename {internal/myhttp => httpserver}/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.woff (100%) rename {internal/myhttp => httpserver}/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.woff2 (100%) rename {internal/myhttp => httpserver}/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.eot (100%) rename {internal/myhttp => httpserver}/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.svg (100%) rename {internal/myhttp => httpserver}/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.ttf (100%) rename {internal/myhttp => httpserver}/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.woff (100%) rename {internal/myhttp => httpserver}/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.woff2 (100%) rename {internal/myhttp => httpserver}/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.eot (100%) rename {internal/myhttp => httpserver}/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.svg (100%) rename {internal/myhttp => httpserver}/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.ttf (100%) rename {internal/myhttp => httpserver}/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.woff (100%) rename {internal/myhttp => httpserver}/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.woff2 (100%) rename {internal/myhttp => httpserver}/static/3rdparty/images/sort_asc.png (100%) rename {internal/myhttp => httpserver}/static/3rdparty/images/sort_asc_disabled.png (100%) rename {internal/myhttp => httpserver}/static/3rdparty/images/sort_both.png (100%) rename {internal/myhttp => httpserver}/static/3rdparty/images/sort_desc.png (100%) rename {internal/myhttp => httpserver}/static/3rdparty/images/sort_desc_disabled.png (100%) rename {internal/myhttp => httpserver}/static/css/style.css (100%) rename {internal/myhttp => httpserver}/static/fonts/FiraCode-VF.woff (100%) rename {internal/myhttp => httpserver}/static/fonts/FiraCode-VF.woff2 (100%) rename {internal/myhttp => httpserver}/static/images/error-gopher.gif (100%) rename {internal/myhttp => httpserver}/static/images/favicon.gif (100%) rename {internal/myhttp => httpserver}/static/images/goshs-logo.png (100%) rename {internal/myhttp => httpserver}/static/js/jquery-3.5.1.min.js (100%) rename {internal/myhttp => httpserver}/static/js/main.min.js (100%) rename {internal/myhttp => httpserver}/static/templates/error.html (100%) rename {internal/myhttp => httpserver}/static/templates/index.html (100%) rename {internal/myhttp => httpserver}/static/templates/silent.html (100%) create mode 100644 httpserver/structs.go create mode 100644 httpserver/updown.go delete mode 100644 internal/myhttp/fileserver.go rename internal/mylog/log.go => logger/logger.go (97%) rename {internal/myutils => utils}/utils.go (87%) rename {internal/mysock => ws}/client.go (86%) rename {internal/mysock => ws}/hub.go (87%) create mode 100644 ws/ws.go diff --git a/Makefile b/Makefile index 9a104a8..0ef5e21 100644 --- a/Makefile +++ b/Makefile @@ -3,8 +3,8 @@ # uglify-js and https://github.com/wellington/wellington needed generate: @echo "[*] Minifying and compiling scss and js" - @uglifyjs -o internal/myhttp/static/js/main.min.js assets/js/main.js - @wt compile assets/css/style.scss -s compressed -b internal/myhttp/static/css + @uglifyjs -o httpserver/static/js/main.min.js assets/js/main.js + @wt compile assets/css/style.scss -s compressed -b httpserver/static/css @echo "[OK] Done minifying and compiling things" security: diff --git a/internal/myca/ca.go b/ca/ca.go similarity index 90% rename from internal/myca/ca.go rename to ca/ca.go index 1bc87ee..ef5b6e1 100644 --- a/internal/myca/ca.go +++ b/ca/ca.go @@ -1,7 +1,7 @@ -// Package myca ... +// Package ca will handle the creation of certificates for TSL encrypted communication // Credits: Shane Utt // https://shaneutt.com/blog/golang-ca-and-signed-cert-go/ -package myca +package ca import ( "bytes" @@ -22,8 +22,8 @@ import ( "strings" "time" - "github.com/patrickhener/goshs/internal/mylog" - "github.com/patrickhener/goshs/internal/myutils" + "github.com/patrickhener/goshs/logger" + "github.com/patrickhener/goshs/utils" ) // Sum will give the sha256 and sha1 sum of the certificate @@ -89,9 +89,9 @@ func ParseAndSum(cert string) (sha256s, sha1s string, err error) { // Setup will deliver a fully initialized CA and server cert func Setup() (serverTLSConf *tls.Config, sha256s, sha1s string, err error) { - randInt, err := myutils.RandomNumber() + randInt, err := utils.RandomNumber() if err != nil { - mylog.Errorf("when creating certificate: %+v", err) + logger.Errorf("when creating certificate: %+v", err) } ca := &x509.Certificate{ SerialNumber: &randInt, @@ -131,7 +131,7 @@ func Setup() (serverTLSConf *tls.Config, sha256s, sha1s string, err error) { Type: "CERTIFICATE", Bytes: caBytes, }); err != nil { - mylog.Errorf("encoding pem: %+v", err) + logger.Errorf("encoding pem: %+v", err) } caPrivKeyPEM := new(bytes.Buffer) @@ -139,12 +139,12 @@ func Setup() (serverTLSConf *tls.Config, sha256s, sha1s string, err error) { Type: "RSA PRIVATE KEY", Bytes: x509.MarshalPKCS1PrivateKey(caPrivKey), }); err != nil { - mylog.Errorf("encoding pem: %+v", err) + logger.Errorf("encoding pem: %+v", err) } - randInt, err = myutils.RandomNumber() + randInt, err = utils.RandomNumber() if err != nil { - mylog.Errorf("when creating certificate: %+v", err) + logger.Errorf("when creating certificate: %+v", err) } // set up our server certificate cert := &x509.Certificate{ @@ -182,7 +182,7 @@ func Setup() (serverTLSConf *tls.Config, sha256s, sha1s string, err error) { Type: "CERTIFICATE", Bytes: certBytes, }); err != nil { - mylog.Errorf("encoding pem: %+v", err) + logger.Errorf("encoding pem: %+v", err) } certPrivKeyPEM := new(bytes.Buffer) @@ -190,7 +190,7 @@ func Setup() (serverTLSConf *tls.Config, sha256s, sha1s string, err error) { Type: "RSA PRIVATE KEY", Bytes: x509.MarshalPKCS1PrivateKey(certPrivKey), }); err != nil { - mylog.Errorf("encoding pem: %+v", err) + logger.Errorf("encoding pem: %+v", err) } serverCert, err := tls.X509KeyPair(certPEM.Bytes(), certPrivKeyPEM.Bytes()) diff --git a/internal/myclipboard/clipboard.go b/clipboard/clipboard.go similarity index 92% rename from internal/myclipboard/clipboard.go rename to clipboard/clipboard.go index e84aa6a..15fff04 100644 --- a/internal/myclipboard/clipboard.go +++ b/clipboard/clipboard.go @@ -1,10 +1,11 @@ -package myclipboard +// Package clipboard will provide the functionality of a clipboard +package clipboard import ( "encoding/json" "time" - "github.com/patrickhener/goshs/internal/mylog" + "github.com/patrickhener/goshs/logger" ) // Clipboard is the in memory clipboard to hold the copy-pasteable content @@ -81,7 +82,7 @@ func (c *Clipboard) Download() ([]byte, error) { func reindex(entries []Entry) []Entry { var newEntries []Entry for i, e := range entries { - mylog.Debugf("Entry #%d: %+v\n", i, e) + logger.Debugf("Entry #%d: %+v\n", i, e) newEntries = append(newEntries, Entry{ ID: i, Content: e.Content, diff --git a/httpserver/clipboard.go b/httpserver/clipboard.go new file mode 100644 index 0000000..1abdc78 --- /dev/null +++ b/httpserver/clipboard.go @@ -0,0 +1,26 @@ +package httpserver + +import ( + "fmt" + "net/http" + "time" + + "github.com/patrickhener/goshs/logger" +) + +// clipboardAdd will handle the add request for adding text to the clipboard +func (fs *FileServer) cbDown(w http.ResponseWriter, req *http.Request) { + filename := fmt.Sprintf("%+v-clipboard.json", int32(time.Now().Unix())) + contentDisposition := fmt.Sprintf("attachment; filename=\"%s\"", filename) + // Handle as download + w.Header().Add("Content-Type", "application/octet-stream") + w.Header().Add("Content-Disposition", contentDisposition) + content, err := fs.Clipboard.Download() + if err != nil { + fs.handleError(w, req, err, 500) + } + + if _, err := w.Write(content); err != nil { + logger.Errorf("Error writing response to browser: %+v", err) + } +} diff --git a/httpserver/consts.go b/httpserver/consts.go new file mode 100644 index 0000000..23e2666 --- /dev/null +++ b/httpserver/consts.go @@ -0,0 +1,5 @@ +package httpserver + +const ( + modeWeb = "web" +) diff --git a/httpserver/embed.go b/httpserver/embed.go new file mode 100644 index 0000000..94ca6a7 --- /dev/null +++ b/httpserver/embed.go @@ -0,0 +1,8 @@ +package httpserver + +import "embed" + +// Static will provide the embedded files as http.FS +// +//go:embed static +var static embed.FS diff --git a/httpserver/error.go b/httpserver/error.go new file mode 100644 index 0000000..f18593d --- /dev/null +++ b/httpserver/error.go @@ -0,0 +1,101 @@ +package httpserver + +import ( + "html/template" + "net/http" + "path" + + "github.com/patrickhener/goshs/logger" + "github.com/patrickhener/goshs/utils" +) + +func (fs *FileServer) handleError(w http.ResponseWriter, req *http.Request, err error, status int) { + // Set header to status + w.WriteHeader(status) + + // Define empty error + var e httperror + + // Log to console + logger.LogRequest(req, status, fs.Verbose) + + // Construct error for template filling + e.ErrorCode = status + e.ErrorMessage = err.Error() + e.AbsPath = path.Join(fs.Webroot, req.URL.Path) + e.GoshsVersion = fs.Version + + // Template handling + file, err := static.ReadFile("static/templates/error.html") + if err != nil { + logger.Errorf("opening embedded file: %+v", err) + } + t := template.New("error") + if _, err := t.Parse(string(file)); err != nil { + logger.Errorf("parsing the template: %+v", err) + } + if err := t.Execute(w, e); err != nil { + logger.Errorf("executing the template: %+v", err) + } +} + +func (fs *FileServer) logStart(what string) { + var interfaceAdresses map[string]string + var err error + if what == modeWeb { + if fs.IP == "0.0.0.0" { + interfaceAdresses, err = utils.GetAllIPAdresses() + if err != nil { + logger.Errorf("There has been an error fetching the interface addresses: %+v\n", err) + } + for k, v := range interfaceAdresses { + logger.Infof("Serving on interface %s bound to %s:%+v\n", k, v, fs.Port) + } + } else { + logger.Infof("Serving on %s:%+v\n", fs.IP, fs.Port) + } + } + + protocol := "HTTP" + if fs.SSL { + protocol = "HTTPS" + } + + switch what { + case modeWeb: + if fs.SSL { + // Check if selfsigned + if fs.SelfSigned { + logger.Infof("Serving %s from %+v with ssl enabled and self-signed certificate\n", protocol, fs.Webroot) + logger.Warn("Be sure to check the fingerprint of certificate") + logger.Infof("SHA-256 Fingerprint: %+v\n", fs.Fingerprint256) + logger.Infof("SHA-1 Fingerprint: %+v\n", fs.Fingerprint1) + } else { + logger.Infof("Serving %s from %+v with ssl enabled server key: %+v, server cert: %+v\n", protocol, fs.Webroot, fs.MyKey, fs.MyCert) + logger.Info("You provided a certificate and might want to check the fingerprint nonetheless") + logger.Infof("SHA-256 Fingerprint: %+v\n", fs.Fingerprint256) + logger.Infof("SHA-1 Fingerprint: %+v\n", fs.Fingerprint1) + } + } else { + logger.Infof("Serving %s from %+v\n", protocol, fs.Webroot) + } + case "webdav": + if fs.SSL { + // Check if selfsigned + if fs.SelfSigned { + logger.Infof("Serving WEBDAV on %+v:%+v from %+v with ssl enabled and self-signed certificate\n", fs.IP, fs.WebdavPort, fs.Webroot) + logger.Warn("WARNING! Be sure to check the fingerprint of certificate") + logger.Infof("SHA-256 Fingerprint: %+v\n", fs.Fingerprint256) + logger.Infof("SHA-1 Fingerprint: %+v\n", fs.Fingerprint1) + } else { + logger.Infof("Serving WEBDAV on %+v:%+v from %+v with ssl enabled server key: %+v, server cert: %+v\n", fs.IP, fs.WebdavPort, fs.Webroot, fs.MyKey, fs.MyCert) + logger.Info("INFO! You provided a certificate and might want to check the fingerprint nonetheless") + logger.Infof("SHA-256 Fingerprint: %+v\n", fs.Fingerprint256) + logger.Infof("SHA-1 Fingerprint: %+v\n", fs.Fingerprint1) + } + } else { + logger.Infof("Serving WEBDAV on %+v:%+v from %+v\n", fs.IP, fs.WebdavPort, fs.Webroot) + } + default: + } +} diff --git a/httpserver/handler.go b/httpserver/handler.go new file mode 100644 index 0000000..c9ba25f --- /dev/null +++ b/httpserver/handler.go @@ -0,0 +1,258 @@ +package httpserver + +import ( + "fmt" + "html/template" + "io" + "net/http" + "net/url" + "os" + "path" + "path/filepath" + "sort" + "strings" + + "github.com/patrickhener/goshs/logger" + "github.com/patrickhener/goshs/utils" + "github.com/patrickhener/goshs/ws" +) + +// static will give static content for style and function +func (fs *FileServer) static(w http.ResponseWriter, req *http.Request) { + // Check which file to serve + upath := req.URL.Path + staticPath := strings.SplitAfterN(upath, "/", 3)[2] + path := "static/" + staticPath + // Load file with parcello + staticFile, err := static.ReadFile(path) + if err != nil { + logger.Errorf("static file: %+v cannot be loaded: %+v", path, err) + } + + // Get mimetype from extension + contentType := utils.MimeByExtension(staticPath) + + // Set mimetype and deliver to browser + w.Header().Add("Content-Type", contentType) + if _, err := w.Write(staticFile); err != nil { + logger.Errorf("Error writing response to browser: %+v", err) + } +} + +// handler is the function which actually handles dir or file retrieval +func (fs *FileServer) handler(w http.ResponseWriter, req *http.Request) { + // Get url so you can extract Headline and title + upath := req.URL.Path + + // Ignore default browser call to /favicon.ico + if upath == "/favicon.ico" { + return + } + + upath = path.Clean(upath) + upath = filepath.Clean(upath) + + logger.Debugf("Cleaned upath is: %+v", upath) + + // Define absolute path + open := fs.Webroot + upath + + // Check if you are in a dir + // disable G304 (CWE-22): Potential file inclusion via variable + // as we want a file inclusion here + // #nosec G304 + file, err := os.Open(open) + if os.IsNotExist(err) { + fs.handleError(w, req, err, http.StatusNotFound) + return + } + if os.IsPermission(err) { + fs.handleError(w, req, err, http.StatusInternalServerError) + return + } + if err != nil { + // Handle general error + logger.Info(err) + return + } + // disable G307 (CWE-703): Deferring unsafe method "Close" on type "*os.File" + // #nosec G307 + defer file.Close() + + // Log request + logger.LogRequest(req, http.StatusOK, fs.Verbose) + + // Switch and check if dir + stat, _ := file.Stat() + if stat.IsDir() { + fs.processDir(w, req, file, upath) + } else { + fs.sendFile(w, req, file) + } +} + +func (fs *FileServer) processDir(w http.ResponseWriter, req *http.Request, file *os.File, relpath string) { + // Read directory FileInfo + fis, err := file.Readdir(-1) + if err != nil { + fs.handleError(w, req, err, http.StatusNotFound) + return + } + + // Cleanup for Windows Paths + relpath = strings.TrimLeft(relpath, "\\") + + // Create empty slice + items := make([]item, 0, len(fis)) + // Iterate over FileInfo of dir + for _, fi := range fis { + item := item{} + // Need to set this up here for directories to work + item.Name = fi.Name() + item.Ext = strings.ToLower(utils.ReturnExt(fi.Name())) + // Add / to name if dir + if fi.IsDir() { + // Check if special path exists as dir on disk and do not add + if utils.CheckSpecialPath(fi.Name()) { + continue + } + item.Name += "/" + item.IsDir = true + item.Ext = "" + } + // Set item fields + item.URI = url.PathEscape(path.Join(relpath, fi.Name())) + item.DisplaySize = utils.ByteCountDecimal(fi.Size()) + item.SortSize = fi.Size() + item.DisplayLastModified = fi.ModTime().Format("Mon Jan _2 15:04:05 2006") + item.SortLastModified = fi.ModTime() + // Check and resolve symlink + if fi.Mode()&os.ModeSymlink != 0 { + item.IsSymlink = true + item.SymlinkTarget, err = os.Readlink(path.Join(fs.Webroot, relpath, fi.Name())) + if err != nil { + logger.Errorf("resolving symlink: %+v", err) + } + } + // Add to items slice + items = append(items, item) + } + + // Sort slice all lowercase + sort.Slice(items, func(i, j int) bool { + return strings.ToLower(items[i].Name) < strings.ToLower(items[j].Name) + }) + + if fs.Silent { + silentFile, err := static.ReadFile("static/templates/silent.html") + if err != nil { + logger.Errorf("opening embedded file: %+v", err) + } + + tem := &silentTemplate{ + GoshsVersion: fs.Version, + } + + t := template.New("silent") + + if _, err := t.Parse(string(silentFile)); err != nil { + logger.Errorf("Error parsing template: %+v", err) + } + if err := t.Execute(w, tem); err != nil { + logger.Errorf("Error executing template: %+v", err) + } + + } else { + // Template parsing and writing to browser + indexFile, err := static.ReadFile("static/templates/index.html") + if err != nil { + logger.Errorf("opening embedded file: %+v", err) + } + + // Windows upload compatibility + if relpath == "\\" { + relpath = "/" + } + + // Construct directory for template + d := &directory{ + RelPath: relpath, + AbsPath: filepath.Join(fs.Webroot, relpath), + Content: items, + } + if relpath != "/" { + d.IsSubdirectory = true + pathSlice := strings.Split(relpath, "/") + if len(pathSlice) > 2 { + pathSlice = pathSlice[1 : len(pathSlice)-1] + + var backString string + for _, part := range pathSlice { + backString += "/" + part + } + d.Back = backString + } else { + d.Back = "/" + } + } else { + d.IsSubdirectory = false + } + + // upload only mode empty directory + if fs.UploadOnly { + d = &directory{} + } + + // Construct template + tem := &indexTemplate{ + Directory: d, + GoshsVersion: fs.Version, + Clipboard: fs.Clipboard, + } + + t := template.New("index") + if _, err := t.Parse(string(indexFile)); err != nil { + logger.Errorf("Error parsing template: %+v", err) + } + if err := t.Execute(w, tem); err != nil { + logger.Errorf("Error executing template: %+v", err) + } + } +} + +func (fs *FileServer) sendFile(w http.ResponseWriter, req *http.Request, file *os.File) { + if fs.UploadOnly { + fs.handleError(w, req, fmt.Errorf("%s", "Download not allowed due to 'upload only' option"), http.StatusForbidden) + return + } + // Extract download parameter + download := req.URL.Query() + if _, ok := download["download"]; ok { + stat, err := file.Stat() + if err != nil { + logger.Errorf("reading file stats for download: %+v", err) + } + contentDisposition := fmt.Sprintf("attachment; filename=\"%s\"", stat.Name()) + // Handle as download + w.Header().Add("Content-Type", "application/octet-stream") + w.Header().Add("Content-Disposition", contentDisposition) + w.Header().Add("Content-Length", fmt.Sprintf("%d", stat.Size())) + if _, err := io.Copy(w, file); err != nil { + logger.Errorf("Error writing response to browser: %+v", err) + } + } else { + // Write to browser + stat, _ := file.Stat() + filename := stat.Name() + contentType := utils.MimeByExtension(filename) + w.Header().Add("Content-Type", contentType) + if _, err := io.Copy(w, file); err != nil { + logger.Errorf("Error writing response to browser: %+v", err) + } + } +} + +// socket will handle the socket connection +func (fs *FileServer) socket(w http.ResponseWriter, req *http.Request) { + ws.ServeWS(fs.Hub, w, req) +} diff --git a/httpserver/httpserver.go b/httpserver/httpserver.go new file mode 100644 index 0000000..8ce9c8c --- /dev/null +++ b/httpserver/httpserver.go @@ -0,0 +1,2 @@ +// Package httpserver will contain the main httpserver functionality of goshs +package httpserver diff --git a/httpserver/middleware.go b/httpserver/middleware.go new file mode 100644 index 0000000..62e54bd --- /dev/null +++ b/httpserver/middleware.go @@ -0,0 +1,23 @@ +package httpserver + +import "net/http" + +// BasicAuthMiddleware is a middleware to handle the basic auth +func (fs *FileServer) BasicAuthMiddleware(next http.Handler) http.Handler { + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + w.Header().Set("WWW-Authenticate", `Basic realm="Restricted"`) + + username, password, authOK := r.BasicAuth() + if !authOK { + http.Error(w, "Not authorized", http.StatusUnauthorized) + return + } + + if username != fs.User || password != fs.Pass { + http.Error(w, "Not authorized", http.StatusUnauthorized) + return + } + + next.ServeHTTP(w, r) + }) +} diff --git a/httpserver/server.go b/httpserver/server.go new file mode 100644 index 0000000..199e55c --- /dev/null +++ b/httpserver/server.go @@ -0,0 +1,113 @@ +package httpserver + +import ( + "fmt" + "net/http" + + "github.com/gorilla/mux" + "github.com/patrickhener/goshs/ca" + "github.com/patrickhener/goshs/clipboard" + "github.com/patrickhener/goshs/logger" + "github.com/patrickhener/goshs/ws" + "golang.org/x/net/webdav" +) + +// Start will start the file server +func (fs *FileServer) Start(what string) { + var addr string + // Setup routing with gorilla/mux + mux := mux.NewRouter() + + switch what { + case modeWeb: + mux.PathPrefix("/425bda8487e36deccb30dd24be590b8744e3a28a8bb5a57d9b3fcd24ae09ad3c/").HandlerFunc(fs.static) + // Websocket + mux.PathPrefix("/14644be038ea0118a1aadfacca2a7d1517d7b209c4b9674ee893b1944d1c2d54/ws").HandlerFunc(fs.socket) + // Clipboard + mux.PathPrefix("/14644be038ea0118a1aadfacca2a7d1517d7b209c4b9674ee893b1944d1c2d54/download").HandlerFunc(fs.cbDown) + mux.PathPrefix("/cf985bddf28fed5d5c53b069d6a6ebe601088ca6e20ec5a5a8438f8e1ffd9390/").HandlerFunc(fs.bulkDownload) + mux.Methods(http.MethodPost).HandlerFunc(fs.upload) + mux.PathPrefix("/").HandlerFunc(fs.handler) + + addr = fmt.Sprintf("%+v:%+v", fs.IP, fs.Port) + case "webdav": + wdHandler := &webdav.Handler{ + FileSystem: webdav.Dir(fs.Webroot), + LockSystem: webdav.NewMemLS(), + Logger: func(r *http.Request, e error) { + if e != nil && r.Method != "PROPFIND" { + logger.Errorf("WEBDAV: %s - - \"%s %s %s\"", r.RemoteAddr, r.Method, r.URL.Path, r.Proto) + return + } else if r.Method != "PROPFIND" { + logger.Infof("WEBDAV: %s - - \"%s %s %s\"", r.RemoteAddr, r.Method, r.URL.Path, r.Proto) + } + }, + } + + mux.PathPrefix("/").Handler(wdHandler) + addr = fmt.Sprintf("%+v:%+v", fs.IP, fs.WebdavPort) + default: + } + + // construct server + server := http.Server{ + Addr: addr, + Handler: http.AllowQuerySemicolons(mux), + // Against good practice no timeouts here, otherwise big files would be terminated when downloaded + } + + // init clipboard + fs.Clipboard = clipboard.New() + + // init websocket hub + fs.Hub = ws.NewHub(fs.Clipboard) + go fs.Hub.Run() + + // Check BasicAuth and use middleware + if fs.User != "" && what == modeWeb { + if !fs.SSL { + logger.Warnf("You are using basic auth without SSL. Your credentials will be transferred in cleartext. Consider using -s, too.") + } + logger.Infof("Using basic auth with user '%s' and password '%s'", fs.User, fs.Pass) + // Use middleware + mux.Use(fs.BasicAuthMiddleware) + } + + if fs.Silent { + logger.Info("Serving in silent mode - no dir listing available at HTTP Listener") + } + + // Check if ssl + if fs.SSL { + // Check if selfsigned + if fs.SelfSigned { + serverTLSConf, fingerprint256, fingerprint1, err := ca.Setup() + if err != nil { + logger.Fatalf("Unable to start SSL enabled server: %+v\n", err) + } + server.TLSConfig = serverTLSConf + fs.Fingerprint256 = fingerprint256 + fs.Fingerprint1 = fingerprint1 + fs.logStart(what) + + logger.Panic(server.ListenAndServeTLS("", "")) + } else { + if fs.MyCert == "" || fs.MyKey == "" { + logger.Fatal("You need to provide server.key and server.crt if -s and not -ss") + } + + fingerprint256, fingerprint1, err := ca.ParseAndSum(fs.MyCert) + if err != nil { + logger.Fatalf("Unable to start SSL enabled server: %+v\n", err) + } + fs.Fingerprint256 = fingerprint256 + fs.Fingerprint1 = fingerprint1 + fs.logStart(what) + + logger.Panic(server.ListenAndServeTLS(fs.MyCert, fs.MyKey)) + } + } else { + fs.logStart(what) + logger.Panic(server.ListenAndServe()) + } +} diff --git a/internal/myhttp/static/3rdparty/datatable/jquery.dataTables.min.css b/httpserver/static/3rdparty/datatable/jquery.dataTables.min.css similarity index 100% rename from internal/myhttp/static/3rdparty/datatable/jquery.dataTables.min.css rename to httpserver/static/3rdparty/datatable/jquery.dataTables.min.css diff --git a/internal/myhttp/static/3rdparty/datatable/jquery.dataTables.min.js b/httpserver/static/3rdparty/datatable/jquery.dataTables.min.js similarity index 100% rename from internal/myhttp/static/3rdparty/datatable/jquery.dataTables.min.js rename to httpserver/static/3rdparty/datatable/jquery.dataTables.min.js diff --git a/internal/myhttp/static/3rdparty/dropzone/basic.min.css b/httpserver/static/3rdparty/dropzone/basic.min.css similarity index 100% rename from internal/myhttp/static/3rdparty/dropzone/basic.min.css rename to httpserver/static/3rdparty/dropzone/basic.min.css diff --git a/internal/myhttp/static/3rdparty/dropzone/dropzone-amd-module.min.js b/httpserver/static/3rdparty/dropzone/dropzone-amd-module.min.js similarity index 100% rename from internal/myhttp/static/3rdparty/dropzone/dropzone-amd-module.min.js rename to httpserver/static/3rdparty/dropzone/dropzone-amd-module.min.js diff --git a/internal/myhttp/static/3rdparty/dropzone/dropzone.min.css b/httpserver/static/3rdparty/dropzone/dropzone.min.css similarity index 100% rename from internal/myhttp/static/3rdparty/dropzone/dropzone.min.css rename to httpserver/static/3rdparty/dropzone/dropzone.min.css diff --git a/internal/myhttp/static/3rdparty/dropzone/dropzone.min.js b/httpserver/static/3rdparty/dropzone/dropzone.min.js similarity index 100% rename from internal/myhttp/static/3rdparty/dropzone/dropzone.min.js rename to httpserver/static/3rdparty/dropzone/dropzone.min.js diff --git a/internal/myhttp/static/3rdparty/fontawesome-5.15.1/css/all.min.css b/httpserver/static/3rdparty/fontawesome-5.15.1/css/all.min.css similarity index 100% rename from internal/myhttp/static/3rdparty/fontawesome-5.15.1/css/all.min.css rename to httpserver/static/3rdparty/fontawesome-5.15.1/css/all.min.css diff --git a/internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.eot b/httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.eot similarity index 100% rename from internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.eot rename to httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.eot diff --git a/internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.svg b/httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.svg similarity index 100% rename from internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.svg rename to httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.svg diff --git a/internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.ttf b/httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.ttf similarity index 100% rename from internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.ttf rename to httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.ttf diff --git a/internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.woff b/httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.woff similarity index 100% rename from internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.woff rename to httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.woff diff --git a/internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.woff2 b/httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.woff2 similarity index 100% rename from internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.woff2 rename to httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-brands-400.woff2 diff --git a/internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.eot b/httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.eot similarity index 100% rename from internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.eot rename to httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.eot diff --git a/internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.svg b/httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.svg similarity index 100% rename from internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.svg rename to httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.svg diff --git a/internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.ttf b/httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.ttf similarity index 100% rename from internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.ttf rename to httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.ttf diff --git a/internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.woff b/httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.woff similarity index 100% rename from internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.woff rename to httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.woff diff --git a/internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.woff2 b/httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.woff2 similarity index 100% rename from internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.woff2 rename to httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-regular-400.woff2 diff --git a/internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.eot b/httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.eot similarity index 100% rename from internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.eot rename to httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.eot diff --git a/internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.svg b/httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.svg similarity index 100% rename from internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.svg rename to httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.svg diff --git a/internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.ttf b/httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.ttf similarity index 100% rename from internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.ttf rename to httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.ttf diff --git a/internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.woff b/httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.woff similarity index 100% rename from internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.woff rename to httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.woff diff --git a/internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.woff2 b/httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.woff2 similarity index 100% rename from internal/myhttp/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.woff2 rename to httpserver/static/3rdparty/fontawesome-5.15.1/webfonts/fa-solid-900.woff2 diff --git a/internal/myhttp/static/3rdparty/images/sort_asc.png b/httpserver/static/3rdparty/images/sort_asc.png similarity index 100% rename from internal/myhttp/static/3rdparty/images/sort_asc.png rename to httpserver/static/3rdparty/images/sort_asc.png diff --git a/internal/myhttp/static/3rdparty/images/sort_asc_disabled.png b/httpserver/static/3rdparty/images/sort_asc_disabled.png similarity index 100% rename from internal/myhttp/static/3rdparty/images/sort_asc_disabled.png rename to httpserver/static/3rdparty/images/sort_asc_disabled.png diff --git a/internal/myhttp/static/3rdparty/images/sort_both.png b/httpserver/static/3rdparty/images/sort_both.png similarity index 100% rename from internal/myhttp/static/3rdparty/images/sort_both.png rename to httpserver/static/3rdparty/images/sort_both.png diff --git a/internal/myhttp/static/3rdparty/images/sort_desc.png b/httpserver/static/3rdparty/images/sort_desc.png similarity index 100% rename from internal/myhttp/static/3rdparty/images/sort_desc.png rename to httpserver/static/3rdparty/images/sort_desc.png diff --git a/internal/myhttp/static/3rdparty/images/sort_desc_disabled.png b/httpserver/static/3rdparty/images/sort_desc_disabled.png similarity index 100% rename from internal/myhttp/static/3rdparty/images/sort_desc_disabled.png rename to httpserver/static/3rdparty/images/sort_desc_disabled.png diff --git a/internal/myhttp/static/css/style.css b/httpserver/static/css/style.css similarity index 100% rename from internal/myhttp/static/css/style.css rename to httpserver/static/css/style.css diff --git a/internal/myhttp/static/fonts/FiraCode-VF.woff b/httpserver/static/fonts/FiraCode-VF.woff similarity index 100% rename from internal/myhttp/static/fonts/FiraCode-VF.woff rename to httpserver/static/fonts/FiraCode-VF.woff diff --git a/internal/myhttp/static/fonts/FiraCode-VF.woff2 b/httpserver/static/fonts/FiraCode-VF.woff2 similarity index 100% rename from internal/myhttp/static/fonts/FiraCode-VF.woff2 rename to httpserver/static/fonts/FiraCode-VF.woff2 diff --git a/internal/myhttp/static/images/error-gopher.gif b/httpserver/static/images/error-gopher.gif similarity index 100% rename from internal/myhttp/static/images/error-gopher.gif rename to httpserver/static/images/error-gopher.gif diff --git a/internal/myhttp/static/images/favicon.gif b/httpserver/static/images/favicon.gif similarity index 100% rename from internal/myhttp/static/images/favicon.gif rename to httpserver/static/images/favicon.gif diff --git a/internal/myhttp/static/images/goshs-logo.png b/httpserver/static/images/goshs-logo.png similarity index 100% rename from internal/myhttp/static/images/goshs-logo.png rename to httpserver/static/images/goshs-logo.png diff --git a/internal/myhttp/static/js/jquery-3.5.1.min.js b/httpserver/static/js/jquery-3.5.1.min.js similarity index 100% rename from internal/myhttp/static/js/jquery-3.5.1.min.js rename to httpserver/static/js/jquery-3.5.1.min.js diff --git a/internal/myhttp/static/js/main.min.js b/httpserver/static/js/main.min.js similarity index 100% rename from internal/myhttp/static/js/main.min.js rename to httpserver/static/js/main.min.js diff --git a/internal/myhttp/static/templates/error.html b/httpserver/static/templates/error.html similarity index 100% rename from internal/myhttp/static/templates/error.html rename to httpserver/static/templates/error.html diff --git a/internal/myhttp/static/templates/index.html b/httpserver/static/templates/index.html similarity index 100% rename from internal/myhttp/static/templates/index.html rename to httpserver/static/templates/index.html diff --git a/internal/myhttp/static/templates/silent.html b/httpserver/static/templates/silent.html similarity index 100% rename from internal/myhttp/static/templates/silent.html rename to httpserver/static/templates/silent.html diff --git a/httpserver/structs.go b/httpserver/structs.go new file mode 100644 index 0000000..7fbb4b6 --- /dev/null +++ b/httpserver/structs.go @@ -0,0 +1,69 @@ +package httpserver + +import ( + "time" + + "github.com/patrickhener/goshs/clipboard" + "github.com/patrickhener/goshs/ws" +) + +type indexTemplate struct { + Clipboard *clipboard.Clipboard + GoshsVersion string + Directory *directory +} + +type silentTemplate struct { + GoshsVersion string +} + +type directory struct { + RelPath string + AbsPath string + IsSubdirectory bool + Back string + Content []item +} + +type item struct { + URI string + Name string + IsDir bool + IsSymlink bool + SymlinkTarget string + Ext string + DisplaySize string + SortSize int64 + DisplayLastModified string + SortLastModified time.Time +} + +// FileServer holds the fileserver information +type FileServer struct { + IP string + Port int + WebdavPort int + Webroot string + SSL bool + SelfSigned bool + MyKey string + MyCert string + User string + Pass string + Version string + Fingerprint256 string + Fingerprint1 string + UploadOnly bool + ReadOnly bool + Silent bool + Verbose bool + Hub *ws.Hub + Clipboard *clipboard.Clipboard +} + +type httperror struct { + ErrorCode int + ErrorMessage string + AbsPath string + GoshsVersion string +} diff --git a/httpserver/updown.go b/httpserver/updown.go new file mode 100644 index 0000000..5ec9425 --- /dev/null +++ b/httpserver/updown.go @@ -0,0 +1,179 @@ +package httpserver + +import ( + "archive/zip" + "errors" + "fmt" + "io" + "net/http" + "net/url" + "os" + "path" + "path/filepath" + "strings" + "time" + + "github.com/patrickhener/goshs/logger" +) + +// upload handles the POST request to upload files +func (fs *FileServer) upload(w http.ResponseWriter, req *http.Request) { + if fs.ReadOnly { + fs.handleError(w, req, fmt.Errorf("%s", "Upload not allowed due to 'read only' option"), http.StatusForbidden) + return + } + // Get url so you can extract Headline and title + upath := req.URL.Path + + // construct target path + targetpath := strings.Split(upath, "/") + targetpath = targetpath[:len(targetpath)-1] + target := strings.Join(targetpath, "/") + + // Parse request + if err := req.ParseMultipartForm(64 << 32); err != nil { + logger.Errorf("parsing multipart request: %+v", err) + return + } + + // Get ref to the parsed multipart form + m := req.MultipartForm + + for _, f := range m.File { + file, err := f[0].Open() + if err != nil { + logger.Errorf("retrieving the file: %+v\n", err) + } + defer file.Close() + + filename := f[0].Filename + + // Sanitize filename (No path traversal) + filenameSlice := strings.Split(filename, "/") + filenameClean := filenameSlice[len(filenameSlice)-1] + + // Construct absolute savepath + savepath := fmt.Sprintf("%s%s/%s", fs.Webroot, target, filenameClean) + + // Create file to write to + // disable G304 (CWE-22): Potential file inclusion via variable + // as we want a file inclusion here + // #nosec G304 + if _, err := os.Create(savepath); err != nil { + logger.Errorf("Not able to create file on disk") + fs.handleError(w, req, err, http.StatusInternalServerError) + } + + // Read file from post body + fileBytes, err := io.ReadAll(file) + if err != nil { + logger.Errorf("Not able to read file from request") + fs.handleError(w, req, err, http.StatusInternalServerError) + } + + // Write file to disk + if err := os.WriteFile(savepath, fileBytes, os.ModePerm); err != nil { + logger.Errorf("Not able to write file to disk") + fs.handleError(w, req, err, http.StatusInternalServerError) + } + } + + // Log request + logger.LogRequest(req, http.StatusOK, fs.Verbose) + + // Redirect back from where we came from + http.Redirect(w, req, target, http.StatusSeeOther) +} + +// bulkDownload will provide zip archived download bundle of multiple selected files +func (fs *FileServer) bulkDownload(w http.ResponseWriter, req *http.Request) { + if fs.UploadOnly { + fs.handleError(w, req, fmt.Errorf("%s", "Bulk download not allowed due to 'upload only' option"), http.StatusForbidden) + return + } + // make slice and query files from request + var filesCleaned []string + files := req.URL.Query()["file"] + + // Handle if no files are selected + if len(files) == 0 { + fs.handleError(w, req, errors.New("you need to select a file before you can download a zip archive"), 404) + } + + // Clean file paths and fill slice + // Also sanitize path (No path traversal) + // If .. in single string just skip file + for _, file := range files { + fileCleaned, _ := url.QueryUnescape(file) + if strings.Contains(fileCleaned, "..") { + // Just skip this file + continue + } + filesCleaned = append(filesCleaned, fileCleaned) + } + + // Construct filename to download + filename := fmt.Sprintf("%+v_goshs_download.zip", int32(time.Now().Unix())) + + // Set header and serve file + contentDispo := fmt.Sprintf("attachment; filename=\"%s\"", filename) + w.Header().Set("Content-Type", "application/zip") + w.Header().Set("Content-Disposition", contentDispo) + w.Header().Set("Content-Transfer-Encoding", "binary") + w.Header().Set("Expires", "0") + + // Define Zip writer + resultZip := zip.NewWriter(w) + defer resultZip.Close() + + // Path walker for recursion + walker := func(filepath string, info os.FileInfo, err error) error { + if err != nil { + return err + } + if info.IsDir() { + return nil + } + + // disable G304 (CWE-22): Potential file inclusion via variable + // as we want a file inclusion here + // #nosec G304 + file, err := os.Open(filepath) + if err != nil { + return err + } + // disable G307 (CWE-703): Deferring unsafe method "Close" on type "*os.File" + // #nosec G307 + defer file.Close() + + // filepath is fs.Webroot + file relative path + // this would result in a lot of nested folders + // so we are stripping fs.Webroot again from the structure of the zip file + // Leaving us with the relative path of the file + zippath := strings.ReplaceAll(filepath, fs.Webroot, "") + f, err := resultZip.Create(zippath[1:]) + if err != nil { + return err + } + + _, err = io.Copy(f, file) + if err != nil { + return err + } + + return nil + } + + // Loop over files and add to zip + for _, file := range filesCleaned { + err := filepath.Walk(path.Join(fs.Webroot, file), walker) + if err != nil { + logger.Errorf("creating zip file: %+v", err) + } + } + + // Close Zip Writer and Flush to http.ResponseWriter + if err := resultZip.Close(); err != nil { + logger.Error(err) + } +} diff --git a/internal/myhttp/fileserver.go b/internal/myhttp/fileserver.go deleted file mode 100644 index 338a322..0000000 --- a/internal/myhttp/fileserver.go +++ /dev/null @@ -1,727 +0,0 @@ -package myhttp - -import ( - "archive/zip" - "embed" - "errors" - "fmt" - "html/template" - "io" - "io/ioutil" - "net/http" - "net/url" - "os" - "path" - "path/filepath" - "sort" - "strings" - "time" - - "github.com/gorilla/mux" - "github.com/patrickhener/goshs/internal/myca" - "github.com/patrickhener/goshs/internal/myclipboard" - "github.com/patrickhener/goshs/internal/mylog" - "github.com/patrickhener/goshs/internal/mysock" - "github.com/patrickhener/goshs/internal/myutils" - "golang.org/x/net/webdav" -) - -const ( - modeWeb = "web" -) - -// Static will provide the embedded files as http.FS -// -//go:embed static -var static embed.FS - -type indexTemplate struct { - Clipboard *myclipboard.Clipboard - GoshsVersion string - Directory *directory -} - -type silentTemplate struct { - GoshsVersion string -} - -type directory struct { - RelPath string - AbsPath string - IsSubdirectory bool - Back string - Content []item -} - -type item struct { - URI string - Name string - IsDir bool - IsSymlink bool - SymlinkTarget string - Ext string - DisplaySize string - SortSize int64 - DisplayLastModified string - SortLastModified time.Time -} - -// FileServer holds the fileserver information -type FileServer struct { - IP string - Port int - WebdavPort int - Webroot string - SSL bool - SelfSigned bool - MyKey string - MyCert string - User string - Pass string - Version string - Fingerprint256 string - Fingerprint1 string - UploadOnly bool - ReadOnly bool - Silent bool - Verbose bool - Hub *mysock.Hub - Clipboard *myclipboard.Clipboard -} - -type httperror struct { - ErrorCode int - ErrorMessage string - AbsPath string - GoshsVersion string -} - -// BasicAuthMiddleware is a middleware to handle the basic auth -func (fs *FileServer) BasicAuthMiddleware(next http.Handler) http.Handler { - return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { - w.Header().Set("WWW-Authenticate", `Basic realm="Restricted"`) - - username, password, authOK := r.BasicAuth() - if !authOK { - http.Error(w, "Not authorized", http.StatusUnauthorized) - return - } - - if username != fs.User || password != fs.Pass { - http.Error(w, "Not authorized", http.StatusUnauthorized) - return - } - - next.ServeHTTP(w, r) - }) -} - -// Start will start the file server -func (fs *FileServer) Start(what string) { - var addr string - // Setup routing with gorilla/mux - mux := mux.NewRouter() - - switch what { - case modeWeb: - mux.PathPrefix("/425bda8487e36deccb30dd24be590b8744e3a28a8bb5a57d9b3fcd24ae09ad3c/").HandlerFunc(fs.static) - // Websocket - mux.PathPrefix("/14644be038ea0118a1aadfacca2a7d1517d7b209c4b9674ee893b1944d1c2d54/ws").HandlerFunc(fs.socket) - // Clipboard - mux.PathPrefix("/14644be038ea0118a1aadfacca2a7d1517d7b209c4b9674ee893b1944d1c2d54/download").HandlerFunc(fs.cbDown) - mux.PathPrefix("/cf985bddf28fed5d5c53b069d6a6ebe601088ca6e20ec5a5a8438f8e1ffd9390/").HandlerFunc(fs.bulkDownload) - mux.Methods(http.MethodPost).HandlerFunc(fs.upload) - mux.PathPrefix("/").HandlerFunc(fs.handler) - - addr = fmt.Sprintf("%+v:%+v", fs.IP, fs.Port) - case "webdav": - wdHandler := &webdav.Handler{ - FileSystem: webdav.Dir(fs.Webroot), - LockSystem: webdav.NewMemLS(), - Logger: func(r *http.Request, e error) { - if e != nil && r.Method != "PROPFIND" { - mylog.Errorf("WEBDAV: %s - - \"%s %s %s\"", r.RemoteAddr, r.Method, r.URL.Path, r.Proto) - return - } else if r.Method != "PROPFIND" { - mylog.Infof("WEBDAV: %s - - \"%s %s %s\"", r.RemoteAddr, r.Method, r.URL.Path, r.Proto) - } - }, - } - - mux.PathPrefix("/").Handler(wdHandler) - addr = fmt.Sprintf("%+v:%+v", fs.IP, fs.WebdavPort) - default: - } - - // construct server - server := http.Server{ - Addr: addr, - Handler: http.AllowQuerySemicolons(mux), - // Against good practice no timeouts here, otherwise big files would be terminated when downloaded - } - - // init clipboard - fs.Clipboard = myclipboard.New() - - // init websocket hub - fs.Hub = mysock.NewHub(fs.Clipboard) - go fs.Hub.Run() - - // Check BasicAuth and use middleware - if fs.User != "" && what == modeWeb { - if !fs.SSL { - mylog.Warnf("You are using basic auth without SSL. Your credentials will be transferred in cleartext. Consider using -s, too.") - } - mylog.Infof("Using basic auth with user '%s' and password '%s'", fs.User, fs.Pass) - // Use middleware - mux.Use(fs.BasicAuthMiddleware) - } - - if fs.Silent { - mylog.Info("Serving in silent mode - no dir listing available at HTTP Listener") - } - - // Check if ssl - if fs.SSL { - // Check if selfsigned - if fs.SelfSigned { - serverTLSConf, fingerprint256, fingerprint1, err := myca.Setup() - if err != nil { - mylog.Fatalf("Unable to start SSL enabled server: %+v\n", err) - } - server.TLSConfig = serverTLSConf - fs.Fingerprint256 = fingerprint256 - fs.Fingerprint1 = fingerprint1 - fs.logStart(what) - - mylog.Panic(server.ListenAndServeTLS("", "")) - } else { - if fs.MyCert == "" || fs.MyKey == "" { - mylog.Fatal("You need to provide server.key and server.crt if -s and not -ss") - } - - fingerprint256, fingerprint1, err := myca.ParseAndSum(fs.MyCert) - if err != nil { - mylog.Fatalf("Unable to start SSL enabled server: %+v\n", err) - } - fs.Fingerprint256 = fingerprint256 - fs.Fingerprint1 = fingerprint1 - fs.logStart(what) - - mylog.Panic(server.ListenAndServeTLS(fs.MyCert, fs.MyKey)) - } - } else { - fs.logStart(what) - mylog.Panic(server.ListenAndServe()) - } -} - -// socket will handle the socket connection -func (fs *FileServer) socket(w http.ResponseWriter, req *http.Request) { - mysock.ServeWS(fs.Hub, w, req) -} - -// clipboardAdd will handle the add request for adding text to the clipboard -func (fs *FileServer) cbDown(w http.ResponseWriter, req *http.Request) { - filename := fmt.Sprintf("%+v-clipboard.json", int32(time.Now().Unix())) - contentDisposition := fmt.Sprintf("attachment; filename=\"%s\"", filename) - // Handle as download - w.Header().Add("Content-Type", "application/octet-stream") - w.Header().Add("Content-Disposition", contentDisposition) - content, err := fs.Clipboard.Download() - if err != nil { - fs.handleError(w, req, err, 500) - } - - if _, err := w.Write(content); err != nil { - mylog.Errorf("Error writing response to browser: %+v", err) - } -} - -// static will give static content for style and function -func (fs *FileServer) static(w http.ResponseWriter, req *http.Request) { - // Check which file to serve - upath := req.URL.Path - staticPath := strings.SplitAfterN(upath, "/", 3)[2] - path := "static/" + staticPath - // Load file with parcello - staticFile, err := static.ReadFile(path) - if err != nil { - mylog.Errorf("static file: %+v cannot be loaded: %+v", path, err) - } - - // Get mimetype from extension - contentType := myutils.MimeByExtension(staticPath) - - // Set mimetype and deliver to browser - w.Header().Add("Content-Type", contentType) - if _, err := w.Write(staticFile); err != nil { - mylog.Errorf("Error writing response to browser: %+v", err) - } -} - -// handler is the function which actually handles dir or file retrieval -func (fs *FileServer) handler(w http.ResponseWriter, req *http.Request) { - // Get url so you can extract Headline and title - upath := req.URL.Path - - // Ignore default browser call to /favicon.ico - if upath == "/favicon.ico" { - return - } - - upath = path.Clean(upath) - upath = filepath.Clean(upath) - - mylog.Debugf("Cleaned upath is: %+v", upath) - - // Define absolute path - open := fs.Webroot + upath - - // Check if you are in a dir - // disable G304 (CWE-22): Potential file inclusion via variable - // as we want a file inclusion here - // #nosec G304 - file, err := os.Open(open) - if os.IsNotExist(err) { - fs.handleError(w, req, err, http.StatusNotFound) - return - } - if os.IsPermission(err) { - fs.handleError(w, req, err, http.StatusInternalServerError) - return - } - if err != nil { - // Handle general error - mylog.Info(err) - return - } - // disable G307 (CWE-703): Deferring unsafe method "Close" on type "*os.File" - // #nosec G307 - defer file.Close() - - // Log request - mylog.LogRequest(req, http.StatusOK, fs.Verbose) - - // Switch and check if dir - stat, _ := file.Stat() - if stat.IsDir() { - fs.processDir(w, req, file, upath) - } else { - fs.sendFile(w, req, file) - } -} - -// upload handles the POST request to upload files -func (fs *FileServer) upload(w http.ResponseWriter, req *http.Request) { - if fs.ReadOnly { - fs.handleError(w, req, fmt.Errorf("%s", "Upload not allowed due to 'read only' option"), http.StatusForbidden) - return - } - // Get url so you can extract Headline and title - upath := req.URL.Path - - // construct target path - targetpath := strings.Split(upath, "/") - targetpath = targetpath[:len(targetpath)-1] - target := strings.Join(targetpath, "/") - - // Parse request - if err := req.ParseMultipartForm(64 << 32); err != nil { - mylog.Errorf("parsing multipart request: %+v", err) - return - } - - // Get ref to the parsed multipart form - m := req.MultipartForm - - for _, f := range m.File { - file, err := f[0].Open() - if err != nil { - mylog.Errorf("retrieving the file: %+v\n", err) - } - defer file.Close() - - filename := f[0].Filename - - // Sanitize filename (No path traversal) - filenameSlice := strings.Split(filename, "/") - filenameClean := filenameSlice[len(filenameSlice)-1] - - // Construct absolute savepath - savepath := fmt.Sprintf("%s%s/%s", fs.Webroot, target, filenameClean) - - // Create file to write to - // disable G304 (CWE-22): Potential file inclusion via variable - // as we want a file inclusion here - // #nosec G304 - if _, err := os.Create(savepath); err != nil { - mylog.Errorf("Not able to create file on disk") - fs.handleError(w, req, err, http.StatusInternalServerError) - } - - // Read file from post body - fileBytes, err := ioutil.ReadAll(file) - if err != nil { - mylog.Errorf("Not able to read file from request") - fs.handleError(w, req, err, http.StatusInternalServerError) - } - - // Write file to disk - if err := ioutil.WriteFile(savepath, fileBytes, os.ModePerm); err != nil { - mylog.Errorf("Not able to write file to disk") - fs.handleError(w, req, err, http.StatusInternalServerError) - } - } - - // Log request - mylog.LogRequest(req, http.StatusOK, fs.Verbose) - - // Redirect back from where we came from - http.Redirect(w, req, target, http.StatusSeeOther) -} - -// bulkDownload will provide zip archived download bundle of multiple selected files -func (fs *FileServer) bulkDownload(w http.ResponseWriter, req *http.Request) { - if fs.UploadOnly { - fs.handleError(w, req, fmt.Errorf("%s", "Bulk download not allowed due to 'upload only' option"), http.StatusForbidden) - return - } - // make slice and query files from request - var filesCleaned []string - files := req.URL.Query()["file"] - - // Handle if no files are selected - if len(files) == 0 { - fs.handleError(w, req, errors.New("you need to select a file before you can download a zip archive"), 404) - } - - // Clean file paths and fill slice - // Also sanitize path (No path traversal) - // If .. in single string just skip file - for _, file := range files { - fileCleaned, _ := url.QueryUnescape(file) - if strings.Contains(fileCleaned, "..") { - // Just skip this file - continue - } - filesCleaned = append(filesCleaned, fileCleaned) - } - - // Construct filename to download - filename := fmt.Sprintf("%+v_goshs_download.zip", int32(time.Now().Unix())) - - // Set header and serve file - contentDispo := fmt.Sprintf("attachment; filename=\"%s\"", filename) - w.Header().Set("Content-Type", "application/zip") - w.Header().Set("Content-Disposition", contentDispo) - w.Header().Set("Content-Transfer-Encoding", "binary") - w.Header().Set("Expires", "0") - - // Define Zip writer - resultZip := zip.NewWriter(w) - defer resultZip.Close() - - // Path walker for recursion - walker := func(filepath string, info os.FileInfo, err error) error { - if err != nil { - return err - } - if info.IsDir() { - return nil - } - - // disable G304 (CWE-22): Potential file inclusion via variable - // as we want a file inclusion here - // #nosec G304 - file, err := os.Open(filepath) - if err != nil { - return err - } - // disable G307 (CWE-703): Deferring unsafe method "Close" on type "*os.File" - // #nosec G307 - defer file.Close() - - // filepath is fs.Webroot + file relative path - // this would result in a lot of nested folders - // so we are stripping fs.Webroot again from the structure of the zip file - // Leaving us with the relative path of the file - zippath := strings.ReplaceAll(filepath, fs.Webroot, "") - f, err := resultZip.Create(zippath[1:]) - if err != nil { - return err - } - - _, err = io.Copy(f, file) - if err != nil { - return err - } - - return nil - } - - // Loop over files and add to zip - for _, file := range filesCleaned { - err := filepath.Walk(path.Join(fs.Webroot, file), walker) - if err != nil { - mylog.Errorf("creating zip file: %+v", err) - } - } - - // Close Zip Writer and Flush to http.ResponseWriter - if err := resultZip.Close(); err != nil { - mylog.Error(err) - } -} - -func (fs *FileServer) processDir(w http.ResponseWriter, req *http.Request, file *os.File, relpath string) { - // Read directory FileInfo - fis, err := file.Readdir(-1) - if err != nil { - fs.handleError(w, req, err, http.StatusNotFound) - return - } - - // Cleanup for Windows Paths - relpath = strings.TrimLeft(relpath, "\\") - - // Create empty slice - items := make([]item, 0, len(fis)) - // Iterate over FileInfo of dir - for _, fi := range fis { - item := item{} - // Need to set this up here for directories to work - item.Name = fi.Name() - item.Ext = strings.ToLower(myutils.ReturnExt(fi.Name())) - // Add / to name if dir - if fi.IsDir() { - // Check if special path exists as dir on disk and do not add - if myutils.CheckSpecialPath(fi.Name()) { - continue - } - item.Name += "/" - item.IsDir = true - item.Ext = "" - } - // Set item fields - item.URI = url.PathEscape(path.Join(relpath, fi.Name())) - item.DisplaySize = myutils.ByteCountDecimal(fi.Size()) - item.SortSize = fi.Size() - item.DisplayLastModified = fi.ModTime().Format("Mon Jan _2 15:04:05 2006") - item.SortLastModified = fi.ModTime() - // Check and resolve symlink - if fi.Mode()&os.ModeSymlink != 0 { - item.IsSymlink = true - item.SymlinkTarget, err = os.Readlink(path.Join(fs.Webroot, relpath, fi.Name())) - if err != nil { - mylog.Errorf("resolving symlink: %+v", err) - } - } - // Add to items slice - items = append(items, item) - } - - // Sort slice all lowercase - sort.Slice(items, func(i, j int) bool { - return strings.ToLower(items[i].Name) < strings.ToLower(items[j].Name) - }) - - if fs.Silent { - silentFile, err := static.ReadFile("static/templates/silent.html") - if err != nil { - mylog.Errorf("opening embedded file: %+v", err) - } - - tem := &silentTemplate{ - GoshsVersion: fs.Version, - } - - t := template.New("silent") - - if _, err := t.Parse(string(silentFile)); err != nil { - mylog.Errorf("Error parsing template: %+v", err) - } - if err := t.Execute(w, tem); err != nil { - mylog.Errorf("Error executing template: %+v", err) - } - - } else { - // Template parsing and writing to browser - indexFile, err := static.ReadFile("static/templates/index.html") - if err != nil { - mylog.Errorf("opening embedded file: %+v", err) - } - - // Windows upload compatibility - if relpath == "\\" { - relpath = "/" - } - - // Construct directory for template - d := &directory{ - RelPath: relpath, - AbsPath: filepath.Join(fs.Webroot, relpath), - Content: items, - } - if relpath != "/" { - d.IsSubdirectory = true - pathSlice := strings.Split(relpath, "/") - if len(pathSlice) > 2 { - pathSlice = pathSlice[1 : len(pathSlice)-1] - - var backString string - for _, part := range pathSlice { - backString += "/" + part - } - d.Back = backString - } else { - d.Back = "/" - } - } else { - d.IsSubdirectory = false - } - - // upload only mode empty directory - if fs.UploadOnly { - d = &directory{} - } - - // Construct template - tem := &indexTemplate{ - Directory: d, - GoshsVersion: fs.Version, - Clipboard: fs.Clipboard, - } - - t := template.New("index") - if _, err := t.Parse(string(indexFile)); err != nil { - mylog.Errorf("Error parsing template: %+v", err) - } - if err := t.Execute(w, tem); err != nil { - mylog.Errorf("Error executing template: %+v", err) - } - } -} - -func (fs *FileServer) sendFile(w http.ResponseWriter, req *http.Request, file *os.File) { - if fs.UploadOnly { - fs.handleError(w, req, fmt.Errorf("%s", "Download not allowed due to 'upload only' option"), http.StatusForbidden) - return - } - // Extract download parameter - download := req.URL.Query() - if _, ok := download["download"]; ok { - stat, err := file.Stat() - if err != nil { - mylog.Errorf("reading file stats for download: %+v", err) - } - contentDisposition := fmt.Sprintf("attachment; filename=\"%s\"", stat.Name()) - // Handle as download - w.Header().Add("Content-Type", "application/octet-stream") - w.Header().Add("Content-Disposition", contentDisposition) - w.Header().Add("Content-Length", fmt.Sprintf("%d", stat.Size())) - if _, err := io.Copy(w, file); err != nil { - mylog.Errorf("Error writing response to browser: %+v", err) - } - } else { - // Write to browser - stat, _ := file.Stat() - filename := stat.Name() - contentType := myutils.MimeByExtension(filename) - w.Header().Add("Content-Type", contentType) - if _, err := io.Copy(w, file); err != nil { - mylog.Errorf("Error writing response to browser: %+v", err) - } - } -} - -func (fs *FileServer) handleError(w http.ResponseWriter, req *http.Request, err error, status int) { - // Set header to status - w.WriteHeader(status) - - // Define empty error - var e httperror - - // Log to console - mylog.LogRequest(req, status, fs.Verbose) - - // Construct error for template filling - e.ErrorCode = status - e.ErrorMessage = err.Error() - e.AbsPath = path.Join(fs.Webroot, req.URL.Path) - e.GoshsVersion = fs.Version - - // Template handling - file, err := static.ReadFile("static/templates/error.html") - if err != nil { - mylog.Errorf("opening embedded file: %+v", err) - } - t := template.New("error") - if _, err := t.Parse(string(file)); err != nil { - mylog.Errorf("parsing the template: %+v", err) - } - if err := t.Execute(w, e); err != nil { - mylog.Errorf("executing the template: %+v", err) - } -} - -func (fs *FileServer) logStart(what string) { - var interfaceAdresses map[string]string - var err error - if what == modeWeb { - if fs.IP == "0.0.0.0" { - interfaceAdresses, err = myutils.GetAllIPAdresses() - if err != nil { - mylog.Errorf("There has been an error fetching the interface addresses: %+v\n", err) - } - for k, v := range interfaceAdresses { - mylog.Infof("Serving on interface %s bound to %s:%+v\n", k, v, fs.Port) - } - } else { - mylog.Infof("Serving on %s:%+v\n", fs.IP, fs.Port) - } - } - - protocol := "HTTP" - if fs.SSL { - protocol = "HTTPS" - } - - switch what { - case modeWeb: - if fs.SSL { - // Check if selfsigned - if fs.SelfSigned { - mylog.Infof("Serving %s from %+v with ssl enabled and self-signed certificate\n", protocol, fs.Webroot) - mylog.Warn("Be sure to check the fingerprint of certificate") - mylog.Infof("SHA-256 Fingerprint: %+v\n", fs.Fingerprint256) - mylog.Infof("SHA-1 Fingerprint: %+v\n", fs.Fingerprint1) - } else { - mylog.Infof("Serving %s from %+v with ssl enabled server key: %+v, server cert: %+v\n", protocol, fs.Webroot, fs.MyKey, fs.MyCert) - mylog.Info("You provided a certificate and might want to check the fingerprint nonetheless") - mylog.Infof("SHA-256 Fingerprint: %+v\n", fs.Fingerprint256) - mylog.Infof("SHA-1 Fingerprint: %+v\n", fs.Fingerprint1) - } - } else { - mylog.Infof("Serving %s from %+v\n", protocol, fs.Webroot) - } - case "webdav": - if fs.SSL { - // Check if selfsigned - if fs.SelfSigned { - mylog.Infof("Serving WEBDAV on %+v:%+v from %+v with ssl enabled and self-signed certificate\n", fs.IP, fs.WebdavPort, fs.Webroot) - mylog.Warn("WARNING! Be sure to check the fingerprint of certificate") - mylog.Infof("SHA-256 Fingerprint: %+v\n", fs.Fingerprint256) - mylog.Infof("SHA-1 Fingerprint: %+v\n", fs.Fingerprint1) - } else { - mylog.Infof("Serving WEBDAV on %+v:%+v from %+v with ssl enabled server key: %+v, server cert: %+v\n", fs.IP, fs.WebdavPort, fs.Webroot, fs.MyKey, fs.MyCert) - mylog.Info("INFO! You provided a certificate and might want to check the fingerprint nonetheless") - mylog.Infof("SHA-256 Fingerprint: %+v\n", fs.Fingerprint256) - mylog.Infof("SHA-1 Fingerprint: %+v\n", fs.Fingerprint1) - } - } else { - mylog.Infof("Serving WEBDAV on %+v:%+v from %+v\n", fs.IP, fs.WebdavPort, fs.Webroot) - } - default: - } -} diff --git a/internal/mylog/log.go b/logger/logger.go similarity index 97% rename from internal/mylog/log.go rename to logger/logger.go index 30720a6..805e9b8 100644 --- a/internal/mylog/log.go +++ b/logger/logger.go @@ -1,4 +1,5 @@ -package mylog +// Package logger will take care of all logging messages using logrus +package logger import ( "bytes" diff --git a/main.go b/main.go index 3df04fc..6be8609 100644 --- a/main.go +++ b/main.go @@ -11,9 +11,9 @@ import ( "syscall" "time" - "github.com/patrickhener/goshs/internal/myhttp" - "github.com/patrickhener/goshs/internal/mylog" - "github.com/patrickhener/goshs/internal/myutils" + "github.com/patrickhener/goshs/httpserver" + "github.com/patrickhener/goshs/logger" + "github.com/patrickhener/goshs/utils" ) const goshsVersion = "v0.2.0" @@ -124,14 +124,14 @@ func init() { // Check if interface name was provided as -i // If so, resolve to ip address of interface if !strings.Contains(ip, ".") { - addr, err := myutils.GetInterfaceIpv4Addr(ip) + addr, err := utils.GetInterfaceIpv4Addr(ip) if err != nil { - mylog.Fatal(err) + logger.Fatal(err) os.Exit(-1) } if addr == "" { - mylog.Fatal("IP address cannot be found for provided interface") + logger.Fatal("IP address cannot be found for provided interface") os.Exit(-1) } @@ -140,12 +140,12 @@ func init() { // Sanity check for upload only vs read only if uploadOnly && readOnly { - mylog.Fatal("You can only select either 'upload only' or 'read only', not both.") + logger.Fatal("You can only select either 'upload only' or 'read only', not both.") os.Exit(-1) } if webdav { - mylog.Warn("upload/read-only mode deactivated due to use of 'webdav' mode") + logger.Warn("upload/read-only mode deactivated due to use of 'webdav' mode") uploadOnly = false readOnly = false } @@ -155,14 +155,14 @@ func init() { // Trim trailing / for linux/mac and \ for windows webroot = strings.TrimSuffix(webroot, "/") webroot = strings.TrimSuffix(webroot, "\\") - mylog.Debugf("Webroot before transformation: %s", webroot) + logger.Debugf("Webroot before transformation: %s", webroot) if !filepath.IsAbs(webroot) { webroot, err = filepath.Abs(filepath.Join(wd, webroot)) if err != nil { - mylog.Fatalf("Webroot cannot be constructed: %+v", err) + logger.Fatalf("Webroot cannot be constructed: %+v", err) } } - mylog.Debugf("Final webroot is: %s", webroot) + logger.Debugf("Final webroot is: %s", webroot) } // Sanity checks if basic auth has the right format @@ -191,7 +191,7 @@ func main() { // Random Seed generation (used for CA serial) rand.Seed(time.Now().UnixNano()) // Setup the custom file server - server := &myhttp.FileServer{ + server := &httpserver.FileServer{ IP: ip, Port: port, Webroot: webroot, @@ -218,5 +218,5 @@ func main() { <-done - mylog.Infof("Received CTRL+C, exiting...") + logger.Infof("Received CTRL+C, exiting...") } diff --git a/internal/myutils/utils.go b/utils/utils.go similarity index 87% rename from internal/myutils/utils.go rename to utils/utils.go index a382a97..4669e29 100644 --- a/internal/myutils/utils.go +++ b/utils/utils.go @@ -1,4 +1,5 @@ -package myutils +// Package utils has general utility functions +package utils import ( "crypto/rand" @@ -8,7 +9,7 @@ import ( "net" "strings" - "github.com/patrickhener/goshs/internal/mylog" + "github.com/patrickhener/goshs/logger" ) // ByteCountDecimal generates human readable file sizes and returns a string @@ -27,15 +28,15 @@ func ByteCountDecimal(b int64) string { // MimeByExtension returns the mimetype string depending on the filename and its extension func MimeByExtension(n string) string { - mylog.Debugf("The string handed to MimeByExtension is: %s\n", n) - mylog.Debugf("Discovered Extension: %s\n", mime.TypeByExtension(ReturnExt(n))) + logger.Debugf("The string handed to MimeByExtension is: %s\n", n) + logger.Debugf("Discovered Extension: %s\n", mime.TypeByExtension(ReturnExt(n))) return mime.TypeByExtension(ReturnExt(n)) } // ReturnExt returns the extension without from a filename func ReturnExt(n string) string { extSlice := strings.Split(n, ".") - mylog.Debugf("The sliced extension is: %s\n", extSlice) + logger.Debugf("The sliced extension is: %s\n", extSlice) return "." + extSlice[len(extSlice)-1] } @@ -43,7 +44,7 @@ func ReturnExt(n string) string { func RandomNumber() (big.Int, error) { n, err := rand.Int(rand.Reader, big.NewInt(1000)) if err != nil { - mylog.Errorf("when generating random number: %+v", err) + logger.Errorf("when generating random number: %+v", err) return *big.NewInt(0), err } return *n, err diff --git a/internal/mysock/client.go b/ws/client.go similarity index 86% rename from internal/mysock/client.go rename to ws/client.go index 2217285..c1fe329 100644 --- a/internal/mysock/client.go +++ b/ws/client.go @@ -1,4 +1,4 @@ -package mysock +package ws import ( "encoding/json" @@ -7,7 +7,7 @@ import ( "time" "github.com/gorilla/websocket" - "github.com/patrickhener/goshs/internal/mylog" + "github.com/patrickhener/goshs/logger" ) // Packet defines a packet struct @@ -79,13 +79,13 @@ func (c *Client) readPump() { var packet Packet if err := c.conn.ReadJSON(&packet); err != nil { if websocket.IsUnexpectedCloseError(err, websocket.CloseGoingAway, websocket.CloseAbnormalClosure) { - mylog.Errorf("%v", err) + logger.Errorf("%v", err) } if websocket.IsCloseError(err, websocket.CloseGoingAway) { break } - mylog.Errorf("reading message: %v", err) + logger.Errorf("reading message: %v", err) break } @@ -94,35 +94,35 @@ func (c *Client) readPump() { case "newEntry": var entry string if err := json.Unmarshal(packet.Content, &entry); err != nil { - mylog.Errorf("Error reading json packet: %+v", err) + logger.Errorf("Error reading json packet: %+v", err) } if err := c.hub.cb.AddEntry(entry); err != nil { - mylog.Errorf("Error creating Clipboard entry: %+v", err) + logger.Errorf("Error creating Clipboard entry: %+v", err) } c.refreshClipboard() case "delEntry": var id string if err := json.Unmarshal(packet.Content, &id); err != nil { - mylog.Errorf("Error reading json packet: %+v", err) + logger.Errorf("Error reading json packet: %+v", err) } iid, err := strconv.Atoi(id) if err != nil { - mylog.Errorf("Error reading json packet: %+v", err) + logger.Errorf("Error reading json packet: %+v", err) } if err := c.hub.cb.DeleteEntry(iid); err != nil { - mylog.Errorf("Error to delete Clipboard entry with id: %s: %+v", string(packet.Content), err) + logger.Errorf("Error to delete Clipboard entry with id: %s: %+v", string(packet.Content), err) } c.refreshClipboard() case "clearClipboard": if err := c.hub.cb.ClearClipboard(); err != nil { - mylog.Errorf("Error clearing clipboard: %+v", err) + logger.Errorf("Error clearing clipboard: %+v", err) } c.refreshClipboard() default: - mylog.Warnf("The event sent via websocket cannot be handeled: %+v", packet.Type) + logger.Warnf("The event sent via websocket cannot be handeled: %+v", packet.Type) } } } @@ -191,7 +191,7 @@ func (c *Client) writePump() { func ServeWS(hub *Hub, w http.ResponseWriter, r *http.Request) { conn, err := wsupgrader.Upgrade(w, r, nil) if err != nil { - mylog.Errorf("Failed to upgrade ws: %+v", err) + logger.Errorf("Failed to upgrade ws: %+v", err) return } @@ -208,7 +208,7 @@ func (c *Client) refreshClipboard() { } broadcastMessage, err := json.Marshal(sendPkg) if err != nil { - mylog.Errorf("Unable to marshal json data in redirect: %+v", err) + logger.Errorf("Unable to marshal json data in redirect: %+v", err) } c.hub.broadcast <- broadcastMessage diff --git a/internal/mysock/hub.go b/ws/hub.go similarity index 87% rename from internal/mysock/hub.go rename to ws/hub.go index cea055c..42ef49d 100644 --- a/internal/mysock/hub.go +++ b/ws/hub.go @@ -1,6 +1,8 @@ -package mysock +package ws -import "github.com/patrickhener/goshs/internal/myclipboard" +import ( + "github.com/patrickhener/goshs/clipboard" +) // Hub maintains the set of active clients and broadcasts messages to the // clients. @@ -18,11 +20,11 @@ type Hub struct { unregister chan *Client // Handle clipboard - cb *myclipboard.Clipboard + cb *clipboard.Clipboard } // NewHub will create a new hub -func NewHub(cb *myclipboard.Clipboard) *Hub { +func NewHub(cb *clipboard.Clipboard) *Hub { return &Hub{ broadcast: make(chan []byte), register: make(chan *Client), diff --git a/ws/ws.go b/ws/ws.go new file mode 100644 index 0000000..b87af71 --- /dev/null +++ b/ws/ws.go @@ -0,0 +1,2 @@ +// Package ws will provide websocket functionality to keep the browser windows in sync +package ws From 8ab21313b2c1bb5ea2bea94d469a1135a0d65830 Mon Sep 17 00:00:00 2001 From: Patrick Hener Date: Tue, 28 Feb 2023 12:44:21 +0100 Subject: [PATCH 2/7] wrote some tests --- README.md | 2 +- ca/ca.go | 4 +- ca/ca_test.go | 56 ++++++++++++++++++++++ clipboard/clipboard_test.go | 95 +++++++++++++++++++++++++++++++++++++ utils/utils.go | 1 - utils/utils_test.go | 79 ++++++++++++++++++++++++++++++ 6 files changed, 233 insertions(+), 4 deletions(-) create mode 100644 ca/ca_test.go create mode 100644 clipboard/clipboard_test.go create mode 100644 utils/utils_test.go diff --git a/README.md b/README.md index 9050804..a2a8803 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ You can download the executable from the [release section](https://github.com/pa ```bash go get -u github.com/patrickhener/goshs -go install github.com/patrickhener/goshs +go install github.com/patrickhener/goshs@latest ``` ## Build yourself diff --git a/ca/ca.go b/ca/ca.go index ef5b6e1..3ff85d6 100644 --- a/ca/ca.go +++ b/ca/ca.go @@ -7,6 +7,7 @@ import ( "bytes" "crypto/rand" "crypto/rsa" + "os" // disable G505 (CWE-327): Blocklisted import crypto/sha1: weak cryptographic primitive // #nosec G505 @@ -17,7 +18,6 @@ import ( "crypto/x509/pkix" "encoding/pem" "fmt" - "io/ioutil" "net" "strings" "time" @@ -70,7 +70,7 @@ func ParseAndSum(cert string) (sha256s, sha1s string, err error) { // disable G304 (CWE-22): Potential file inclusion via variable // risk accepted, maybe check if can be used to do malicous things // #nosec G304 - certBytes, err := ioutil.ReadFile(cert) + certBytes, err := os.ReadFile(cert) if err != nil { return "", "", err } diff --git a/ca/ca_test.go b/ca/ca_test.go new file mode 100644 index 0000000..49bc0ef --- /dev/null +++ b/ca/ca_test.go @@ -0,0 +1,56 @@ +package ca + +import ( + "strings" + "testing" +) + +const ( + certSha256 string = "65853DC369E138125B42FCE21DFF13CD93B5A0E3D2EB61107EF3378106759940" + certSha1 string = "AB51F4B4D3336129576C5CA46408A6A79EA62FB2" +) + +var ( + cert []byte = []byte(`BEGIN CERTIFICATE----- +MIIFPjCCAyagAwIBAgIULNlw3eSpMdJrm7aUVg/IwfHTuXMwDQYJKoZIhvcNAQEL +BQAwFjEUMBIGA1UEAwwLZXhhbXBsZS5jb20wHhcNMjMwMjI4MDk0NjUxWhcNMzMw +MjI1MDk0NjUxWjAWMRQwEgYDVQQDDAtleGFtcGxlLmNvbTCCAiIwDQYJKoZIhvcN +AQEBBQADggIPADCCAgoCggIBAM4GQRgDUfOWewaw37E74uf6nqiQaWLRJy+DtQxh +WAI/TOEXlSamTW0wsMoHRAkAvOBje1BmgHRhOUIuzSGmwDNjosz2zyrCONgRWfcJ +yN96EtPa/4lEvlHTiN2NdV4mDN3XcW9j2n+K5mWh3oDVz0wp+A2byDmg1EdmL/X8 +hGVvTMyUFt6prprdnALdGZqblsZAaLYg++r7uEDBihVw6DWunoiq2TnxNIXTdTIo +5UeFnKCSBDWseN0+FeQ5Xq9mAQfzwk5YeY2ser4iWl0FlZdYwrj+EBYT+I4MTCWG +B7YxcsX6pWSoWhvv5V9sRtH1KkiH5RaNQ/b9v9Pl5sdRq7ofUWxxGAEq+LmOExIq +if3JWpMq6AQVrMJTylFQv2AD9S9+9T7azTIfAxifveQrbwkgIUZX2e5bB2iKhQEH +tFyNYd7eyomCHt//3iRFyq64AtfmbQRaj2UsW63/wOMLAgM5ood1pnWt/1GGsH8U +XusELZS2ov+RI/Si661B3VMZhtTY/jFLYqbM09IfeGpXriRQxiwvXCsiJvyZaRE+ +NHR+F6CfZp/3935SBIKU6ljdBrLCzTRCQ8eoysOSXAcYD7MUMMQNPwK+nOWStYGc +tk+qSgU3B3xiL9/yDsdM5Ov4mArKpbXP9DYnfDw97+D+8xFPAl0VEgj7dH8b0Q+c +w7hxAgMBAAGjgYMwgYAwHQYDVR0OBBYEFEY+2jaoCj7pWl5ggiYRxIdw/YIsMB8G +A1UdIwQYMBaAFEY+2jaoCj7pWl5ggiYRxIdw/YIsMA8GA1UdEwEB/wQFMAMBAf8w +LQYDVR0RBCYwJIILZXhhbXBsZS5jb22CD3d3dy5leGFtcGxlLm5ldIcECgAAATAN +BgkqhkiG9w0BAQsFAAOCAgEAY0BOskg82Ty//ADLyiXVhwEV/lLILH0BWWWVv05i +frrUs2fA3ORkUoRaiJxAzDvEV98AjD52Ty6WYtgNscmrQxxz0gn3xUWZXdj6L5PE +C6xj4lH0M/bNW6TUWhBqaVsaUCaoEhze4ieTcUHZlF61tkscdfUf8cIwi4vyNA3v +LIzXgJxIYw+wD5K1MEtVOPX3x9oO2Ceu3dLQv7MWULVjir1Pm2/3YhfGJgttFNHu +fbFWrPRG/m1MiMniGxQb3Oa1IjPZU70elP3GGG+irojxWcFYW+MopeXelVxbC63I +z7uc7cbmmcsD2GIkv1td4pe84UYy+pCsKQ8vXykwnjcFfjkrPSxdz1tVjrz4V60e +jVekhGgIHQAm/PyLLssQDykiX6ySxurU8bCcpqaA6dBzlUEX+Ym9xr2l155U6OsP +k4HWPGqf2/xMaXq/7g9HfqPhj9tZ/x2wyZ6Mx2rMtRV+6hX1XGa4tZU0f5MziEnX +Lkf4fEY4kc28UdEZRiG+D8cK6k0N8fHkKo4M09f+PJp/4sqa2g2kj8aqEFzSu2uq +v/cKeJ20txB/Egu9OGCS3aFqQ9zV+rqkEko2agLbqY/Aks3e/jaAIwURvxNS83l4 +rJ90pXPe6awWutwMfmwlzqv0UYLu0IGHZiN8uTPiQ0nkR2kps3MruAsj1K9PaNpq +rtI= +-----END CERTIFICATE-----`) +) + +func TestSum(t *testing.T) { + + sha256, sha1 := Sum(cert) + sha256Clean := strings.ReplaceAll(sha256, " ", "") + sha1Clean := strings.ReplaceAll(sha1, " ", "") + + if sha256Clean != certSha256 || sha1Clean != certSha1 { + t.Errorf("Certificate Fingerprint was wrong: got sha256 %s sha1 %s, want sha256 %s and sha1 %s", sha256Clean, sha1Clean, certSha256, certSha1) + } +} diff --git a/clipboard/clipboard_test.go b/clipboard/clipboard_test.go new file mode 100644 index 0000000..8f9f1ce --- /dev/null +++ b/clipboard/clipboard_test.go @@ -0,0 +1,95 @@ +package clipboard + +import ( + "encoding/json" + "testing" +) + +var ( + cb *Clipboard +) + +func TestNew(t *testing.T) { + cb = New() + if len(cb.Entries) != 0 { + t.Error("Error testing New") + } +} + +func TestAddEntry(t *testing.T) { + lengthBefore := len(cb.Entries) + if lengthBefore == 0 { + cb.AddEntry("This is a test entry") + lengthAfter := len(cb.Entries) + if lengthAfter != 1 { + t.Errorf("Error in testing AddEntry: want length of 1 got length of %d", lengthAfter) + } + } else { + t.Error("something went wrong testing AddEntry") + } +} + +func TestDeleteEntry(t *testing.T) { + lengthBefore := len(cb.Entries) + if lengthBefore == 1 { + cb.DeleteEntry(0) + lengthAfter := len(cb.Entries) + if lengthAfter != 0 { + t.Errorf("Error in testing DeleteEntry: want length of 0 got length of %d", lengthAfter) + } + } else { + t.Error("something went wrong testing DeleteEntry") + } +} + +func TestGetEntries(t *testing.T) { + cb.AddEntry("This is a test entry") + cb.AddEntry("This is another test entry") + cb.AddEntry("This is yet another test entry") + + res, err := cb.GetEntries() + if err != nil { + t.Fatal(err) + } + if len(res) == 0 { + t.Errorf("Error getting Entries: want 3 entries got %d", len(res)) + } +} + +func TestDownload(t *testing.T) { + var js json.RawMessage + + resJson, err := cb.Download() + if err != nil { + t.Fatal(err) + } + + if json.Unmarshal(resJson, &js) != nil { + t.Error("Download has an error. The returned bytes are not valid json") + } +} + +func TestReindex(t *testing.T) { + if err := cb.DeleteEntry(1); err != nil { + t.Fatal(err) + } + if cb.Entries[0].ID != 0 || cb.Entries[1].ID != 1 { + t.Logf("Error reindexing after Deletion. Entries 0 and 1 should have ID 0 and 1 - got %d and %d", cb.Entries[0].ID, cb.Entries[1].ID) + } +} + +func TestClearClipboard(t *testing.T) { + lengthBefore := len(cb.Entries) + if lengthBefore == 2 { + err := cb.ClearClipboard() + if err != nil { + t.Fatal(err) + } + lengthAfter := len(cb.Entries) + if lengthAfter != 0 { + t.Errorf("Error clearing clipboard Entries: want 0 entries got %d", lengthAfter) + } + } else { + t.Error("something went wrong testing ClearClipboard") + } +} diff --git a/utils/utils.go b/utils/utils.go index 4669e29..6352c14 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -107,5 +107,4 @@ func GetAllIPAdresses() (map[string]string, error) { } return ifaceAddress, nil - } diff --git a/utils/utils_test.go b/utils/utils_test.go new file mode 100644 index 0000000..690887c --- /dev/null +++ b/utils/utils_test.go @@ -0,0 +1,79 @@ +package utils + +import ( + "mime" + "testing" +) + +const ( + cssCorrectMime string = "text/css; charset=utf-8" + jsCorrectMime string = "text/javascript; charset=utf-8" + htmlCorrectMime string = "text/html; charset=utf-8" + jpgCorretMime string = "image/jpeg" + correctExt string = ".txt" + filename string = "test.csv.txt" + loopbackInterface string = "lo" + correctIP = "127.0.0.1" +) + +var ( + specialPaths []string = []string{"425bda8487e36deccb30dd24be590b8744e3a28a8bb5a57d9b3fcd24ae09ad3c", "cf985bddf28fed5d5c53b069d6a6ebe601088ca6e20ec5a5a8438f8e1ffd9390", "14644be038ea0118a1aadfacca2a7d1517d7b209c4b9674ee893b1944d1c2d54"} +) + +func TestByteCountDecimal(t *testing.T) { + res100 := ByteCountDecimal(100) + if res100 != "100 B" { + t.Errorf("Error in ByteCountDecimal, got: %s - want %s", res100, "100 B") + } + + res1024 := ByteCountDecimal(1024) + if res1024 != "1.0 kB" { + t.Errorf("Error in ByteCountDecimal, got: %s - want %s", res1024, "1.0 kB") + } + + res1024000 := ByteCountDecimal(1024000) + if res1024000 != "1.0 MB" { + t.Errorf("Error in ByteCountDecimal, got: %s - want %s", res1024000, "1.0 MB") + } + + res1024000000 := ByteCountDecimal(1024000000) + if res1024000000 != "1.0 GB" { + t.Errorf("Error in ByteCountDecimal, got: %s - want %s", res1024000000, "1.0 GB") + } +} + +func TestMimeByExtension(t *testing.T) { + cssMime := mime.TypeByExtension(".css") + jsMime := mime.TypeByExtension(".js") + htmlMime := mime.TypeByExtension(".html") + jpgMime := mime.TypeByExtension(".jpg") + + if cssMime != cssCorrectMime || jsMime != jsCorrectMime || htmlMime != htmlCorrectMime || jpgMime != jpgCorretMime { + t.Errorf("Error in MimeByExtension\ncss\tgot %s - want %s\njs\tgot %s - want %s\nhtml\tgot %s - want %s\njpg\tgot %s - want %s", cssMime, cssCorrectMime, jsMime, jsCorrectMime, htmlMime, htmlCorrectMime, jpgMime, jpgCorretMime) + } +} + +func TestReturnExt(t *testing.T) { + ext := ReturnExt(filename) + if ext != correctExt { + t.Errorf("Error in ReturnExt: want %s - got %s", correctExt, ext) + } +} + +func TestCheckSpecialPath(t *testing.T) { + for _, p := range specialPaths { + if !CheckSpecialPath(p) { + t.Error("Error in CheckSpecialPath. Predefined special paths do not all return true") + } + } +} + +func TestGetIPv4Addr(t *testing.T) { + res, err := GetInterfaceIpv4Addr(loopbackInterface) + if err != nil { + t.Fatal(err) + } + if res != correctIP { + t.Errorf("Error in GetIPv4Addr: want %s - got %s", correctIP, res) + } +} From 4db10a3ee03438e7251404856b35bb36f072af2f Mon Sep 17 00:00:00 2001 From: Patrick Hener Date: Tue, 28 Feb 2023 14:03:39 +0100 Subject: [PATCH 3/7] added json mode --- clipboard/clipboard.go | 3 --- httpserver/handler.go | 25 ++++++++++++++++++++++--- httpserver/structs.go | 20 ++++++++++---------- main.go | 2 -- utils/utils.go | 3 --- 5 files changed, 32 insertions(+), 21 deletions(-) diff --git a/clipboard/clipboard.go b/clipboard/clipboard.go index 15fff04..775ebf7 100644 --- a/clipboard/clipboard.go +++ b/clipboard/clipboard.go @@ -4,8 +4,6 @@ package clipboard import ( "encoding/json" "time" - - "github.com/patrickhener/goshs/logger" ) // Clipboard is the in memory clipboard to hold the copy-pasteable content @@ -82,7 +80,6 @@ func (c *Clipboard) Download() ([]byte, error) { func reindex(entries []Entry) []Entry { var newEntries []Entry for i, e := range entries { - logger.Debugf("Entry #%d: %+v\n", i, e) newEntries = append(newEntries, Entry{ ID: i, Content: e.Content, diff --git a/httpserver/handler.go b/httpserver/handler.go index c9ba25f..c94186d 100644 --- a/httpserver/handler.go +++ b/httpserver/handler.go @@ -1,6 +1,7 @@ package httpserver import ( + "encoding/json" "fmt" "html/template" "io" @@ -41,6 +42,8 @@ func (fs *FileServer) static(w http.ResponseWriter, req *http.Request) { // handler is the function which actually handles dir or file retrieval func (fs *FileServer) handler(w http.ResponseWriter, req *http.Request) { + // Define if to return json instead of html parsing + json := false // Get url so you can extract Headline and title upath := req.URL.Path @@ -52,7 +55,9 @@ func (fs *FileServer) handler(w http.ResponseWriter, req *http.Request) { upath = path.Clean(upath) upath = filepath.Clean(upath) - logger.Debugf("Cleaned upath is: %+v", upath) + if _, ok := req.URL.Query()["json"]; ok { + json = true + } // Define absolute path open := fs.Webroot + upath @@ -85,13 +90,13 @@ func (fs *FileServer) handler(w http.ResponseWriter, req *http.Request) { // Switch and check if dir stat, _ := file.Stat() if stat.IsDir() { - fs.processDir(w, req, file, upath) + fs.processDir(w, req, file, upath, json) } else { fs.sendFile(w, req, file) } } -func (fs *FileServer) processDir(w http.ResponseWriter, req *http.Request, file *os.File, relpath string) { +func (fs *FileServer) processDir(w http.ResponseWriter, req *http.Request, file *os.File, relpath string, jsonOutput bool) { // Read directory FileInfo fis, err := file.Readdir(-1) if err != nil { @@ -143,6 +148,20 @@ func (fs *FileServer) processDir(w http.ResponseWriter, req *http.Request, file return strings.ToLower(items[i].Name) < strings.ToLower(items[j].Name) }) + // if ?json output json listing + if jsonOutput { + w.Header().Add("Content-Type", "application/json") + resJson, err := json.Marshal(items) + if err != nil { + logger.Errorf("error marshaling items to json: %+v", err) + } + _, err = w.Write(resJson) + if err != nil { + logger.Errorf("error writing json as response: %+v", err) + } + return + } + if fs.Silent { silentFile, err := static.ReadFile("static/templates/silent.html") if err != nil { diff --git a/httpserver/structs.go b/httpserver/structs.go index 7fbb4b6..730a997 100644 --- a/httpserver/structs.go +++ b/httpserver/structs.go @@ -26,16 +26,16 @@ type directory struct { } type item struct { - URI string - Name string - IsDir bool - IsSymlink bool - SymlinkTarget string - Ext string - DisplaySize string - SortSize int64 - DisplayLastModified string - SortLastModified time.Time + URI string `json:"-"` + Name string `json:"name"` + IsDir bool `json:"is_dir"` + IsSymlink bool `json:"is_symlink"` + SymlinkTarget string `json:"symlink_target"` + Ext string `json:"extension"` + DisplaySize string `json:"-"` + SortSize int64 `json:"size_bytes"` + DisplayLastModified string `json:"-"` + SortLastModified time.Time `json:"last_modified"` } // FileServer holds the fileserver information diff --git a/main.go b/main.go index 6be8609..765f1b6 100644 --- a/main.go +++ b/main.go @@ -155,14 +155,12 @@ func init() { // Trim trailing / for linux/mac and \ for windows webroot = strings.TrimSuffix(webroot, "/") webroot = strings.TrimSuffix(webroot, "\\") - logger.Debugf("Webroot before transformation: %s", webroot) if !filepath.IsAbs(webroot) { webroot, err = filepath.Abs(filepath.Join(wd, webroot)) if err != nil { logger.Fatalf("Webroot cannot be constructed: %+v", err) } } - logger.Debugf("Final webroot is: %s", webroot) } // Sanity checks if basic auth has the right format diff --git a/utils/utils.go b/utils/utils.go index 6352c14..2a4d630 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -28,15 +28,12 @@ func ByteCountDecimal(b int64) string { // MimeByExtension returns the mimetype string depending on the filename and its extension func MimeByExtension(n string) string { - logger.Debugf("The string handed to MimeByExtension is: %s\n", n) - logger.Debugf("Discovered Extension: %s\n", mime.TypeByExtension(ReturnExt(n))) return mime.TypeByExtension(ReturnExt(n)) } // ReturnExt returns the extension without from a filename func ReturnExt(n string) string { extSlice := strings.Split(n, ".") - logger.Debugf("The sliced extension is: %s\n", extSlice) return "." + extSlice[len(extSlice)-1] } From 158beeb973953ad1c5d71c6b6b9f1c28377a489c Mon Sep 17 00:00:00 2001 From: Patrick Hener Date: Tue, 28 Feb 2023 15:30:39 +0100 Subject: [PATCH 4/7] finally got rid of the static paths --- assets/css/font.scss | 4 +- assets/js/main.js | 11 +----- httpserver/consts.go | 2 +- httpserver/handler.go | 38 ++++++++++++------- httpserver/server.go | 6 --- .../datatable/jquery.dataTables.min.css | 2 +- .../fontawesome-5.15.1/css/all.min.css | 2 +- httpserver/static/css/style.css | 2 +- httpserver/static/js/main.min.js | 2 +- httpserver/static/templates/error.html | 21 ++-------- httpserver/static/templates/index.html | 33 +++++++--------- httpserver/static/templates/silent.html | 9 ++--- httpserver/structs.go | 2 + utils/utils.go | 14 ------- utils/utils_test.go | 12 ------ 15 files changed, 57 insertions(+), 103 deletions(-) diff --git a/assets/css/font.scss b/assets/css/font.scss index 6d45830..aae712d 100644 --- a/assets/css/font.scss +++ b/assets/css/font.scss @@ -3,8 +3,8 @@ /* Fira Code VF from 300 to 700 */ @font-face { font-family: 'Fira Code VF'; - src: url('../fonts/FiraCode-VF.woff2') format('woff2-variations'), - url('../fonts/FiraCode-VF.woff') format('woff-variations'); + src: url('../fonts/FiraCode-VF.woff2?static') format('woff2-variations'), + url('../fonts/FiraCode-VF.woff?static') format('woff-variations'); font-weight: 300 700; font-style: normal; } \ No newline at end of file diff --git a/assets/js/main.js b/assets/js/main.js index e34e71a..5b0c5db 100644 --- a/assets/js/main.js +++ b/assets/js/main.js @@ -45,17 +45,10 @@ function selectNone() { document.getElementById('downloadBulkButton').style.display = 'none'; } -// Everything related to websockets var wsURL = ''; location.protocol !== 'https:' - ? (wsURL = - 'ws://' + - window.location.host + - '/14644be038ea0118a1aadfacca2a7d1517d7b209c4b9674ee893b1944d1c2d54/ws') - : (wsURL = - 'wss://' + - window.location.host + - '/14644be038ea0118a1aadfacca2a7d1517d7b209c4b9674ee893b1944d1c2d54/ws'); + ? (wsURL = 'ws://' + window.location.host + '/?ws') + : (wsURL = 'wss://' + window.location.host + '/?ws'); var connection = new WebSocket(wsURL); connection.onopen = function () { diff --git a/httpserver/consts.go b/httpserver/consts.go index 23e2666..ba0da32 100644 --- a/httpserver/consts.go +++ b/httpserver/consts.go @@ -1,5 +1,5 @@ package httpserver const ( - modeWeb = "web" + modeWeb string = "web" ) diff --git a/httpserver/handler.go b/httpserver/handler.go index c94186d..7c5a948 100644 --- a/httpserver/handler.go +++ b/httpserver/handler.go @@ -20,10 +20,8 @@ import ( // static will give static content for style and function func (fs *FileServer) static(w http.ResponseWriter, req *http.Request) { - // Check which file to serve - upath := req.URL.Path - staticPath := strings.SplitAfterN(upath, "/", 3)[2] - path := "static/" + staticPath + // Construct static path to file + path := "static" + req.URL.Path // Load file with parcello staticFile, err := static.ReadFile(path) if err != nil { @@ -31,7 +29,7 @@ func (fs *FileServer) static(w http.ResponseWriter, req *http.Request) { } // Get mimetype from extension - contentType := utils.MimeByExtension(staticPath) + contentType := utils.MimeByExtension(path) // Set mimetype and deliver to browser w.Header().Add("Content-Type", contentType) @@ -42,8 +40,30 @@ func (fs *FileServer) static(w http.ResponseWriter, req *http.Request) { // handler is the function which actually handles dir or file retrieval func (fs *FileServer) handler(w http.ResponseWriter, req *http.Request) { + // Early break for /?ws, /?cbDown, /?bulk and /?static + if _, ok := req.URL.Query()["ws"]; ok { + fs.socket(w, req) + return + } + if _, ok := req.URL.Query()["cbDown"]; ok { + fs.cbDown(w, req) + return + } + if _, ok := req.URL.Query()["bulk"]; ok { + fs.bulkDownload(w, req) + return + } + if _, ok := req.URL.Query()["static"]; ok { + fs.static(w, req) + return + } + // Define if to return json instead of html parsing json := false + if _, ok := req.URL.Query()["json"]; ok { + json = true + } + // Get url so you can extract Headline and title upath := req.URL.Path @@ -55,10 +75,6 @@ func (fs *FileServer) handler(w http.ResponseWriter, req *http.Request) { upath = path.Clean(upath) upath = filepath.Clean(upath) - if _, ok := req.URL.Query()["json"]; ok { - json = true - } - // Define absolute path open := fs.Webroot + upath @@ -117,10 +133,6 @@ func (fs *FileServer) processDir(w http.ResponseWriter, req *http.Request, file item.Ext = strings.ToLower(utils.ReturnExt(fi.Name())) // Add / to name if dir if fi.IsDir() { - // Check if special path exists as dir on disk and do not add - if utils.CheckSpecialPath(fi.Name()) { - continue - } item.Name += "/" item.IsDir = true item.Ext = "" diff --git a/httpserver/server.go b/httpserver/server.go index 199e55c..5da5229 100644 --- a/httpserver/server.go +++ b/httpserver/server.go @@ -20,12 +20,6 @@ func (fs *FileServer) Start(what string) { switch what { case modeWeb: - mux.PathPrefix("/425bda8487e36deccb30dd24be590b8744e3a28a8bb5a57d9b3fcd24ae09ad3c/").HandlerFunc(fs.static) - // Websocket - mux.PathPrefix("/14644be038ea0118a1aadfacca2a7d1517d7b209c4b9674ee893b1944d1c2d54/ws").HandlerFunc(fs.socket) - // Clipboard - mux.PathPrefix("/14644be038ea0118a1aadfacca2a7d1517d7b209c4b9674ee893b1944d1c2d54/download").HandlerFunc(fs.cbDown) - mux.PathPrefix("/cf985bddf28fed5d5c53b069d6a6ebe601088ca6e20ec5a5a8438f8e1ffd9390/").HandlerFunc(fs.bulkDownload) mux.Methods(http.MethodPost).HandlerFunc(fs.upload) mux.PathPrefix("/").HandlerFunc(fs.handler) diff --git a/httpserver/static/3rdparty/datatable/jquery.dataTables.min.css b/httpserver/static/3rdparty/datatable/jquery.dataTables.min.css index 8a3f276..4a29394 100644 --- a/httpserver/static/3rdparty/datatable/jquery.dataTables.min.css +++ b/httpserver/static/3rdparty/datatable/jquery.dataTables.min.css @@ -1 +1 @@ -table.dataTable{width:100%;margin:0 auto;clear:both;border-collapse:separate;border-spacing:0}table.dataTable thead th,table.dataTable tfoot th{font-weight:bold}table.dataTable thead th,table.dataTable thead td{padding:10px 18px;border-bottom:1px solid #111}table.dataTable thead th:active,table.dataTable thead td:active{outline:none}table.dataTable tfoot th,table.dataTable tfoot td{padding:10px 18px 6px 18px;border-top:1px solid #111}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc_disabled{cursor:pointer;*cursor:hand;background-repeat:no-repeat;background-position:center right}table.dataTable thead .sorting{background-image:url("../images/sort_both.png")}table.dataTable thead .sorting_asc{background-image:url("../images/sort_asc.png")}table.dataTable thead .sorting_desc{background-image:url("../images/sort_desc.png")}table.dataTable thead .sorting_asc_disabled{background-image:url("../images/sort_asc_disabled.png")}table.dataTable thead .sorting_desc_disabled{background-image:url("../images/sort_desc_disabled.png")}table.dataTable tbody tr{background-color:#ffffff}table.dataTable tbody tr.selected{background-color:#B0BED9}table.dataTable tbody th,table.dataTable tbody td{padding:8px 10px}table.dataTable.row-border tbody th,table.dataTable.row-border tbody td,table.dataTable.display tbody th,table.dataTable.display tbody td{border-top:1px solid #ddd}table.dataTable.row-border tbody tr:first-child th,table.dataTable.row-border tbody tr:first-child td,table.dataTable.display tbody tr:first-child th,table.dataTable.display tbody tr:first-child td{border-top:none}table.dataTable.cell-border tbody th,table.dataTable.cell-border tbody td{border-top:1px solid #ddd;border-right:1px solid #ddd}table.dataTable.cell-border tbody tr th:first-child,table.dataTable.cell-border tbody tr td:first-child{border-left:1px solid #ddd}table.dataTable.cell-border tbody tr:first-child th,table.dataTable.cell-border tbody tr:first-child td{border-top:none}table.dataTable.stripe tbody tr.odd,table.dataTable.display tbody tr.odd{background-color:#f9f9f9}table.dataTable.stripe tbody tr.odd.selected,table.dataTable.display tbody tr.odd.selected{background-color:#acbad4}table.dataTable.hover tbody tr:hover,table.dataTable.display tbody tr:hover{background-color:#f6f6f6}table.dataTable.hover tbody tr:hover.selected,table.dataTable.display tbody tr:hover.selected{background-color:#aab7d1}table.dataTable.order-column tbody tr>.sorting_1,table.dataTable.order-column tbody tr>.sorting_2,table.dataTable.order-column tbody tr>.sorting_3,table.dataTable.display tbody tr>.sorting_1,table.dataTable.display tbody tr>.sorting_2,table.dataTable.display tbody tr>.sorting_3{background-color:#fafafa}table.dataTable.order-column tbody tr.selected>.sorting_1,table.dataTable.order-column tbody tr.selected>.sorting_2,table.dataTable.order-column tbody tr.selected>.sorting_3,table.dataTable.display tbody tr.selected>.sorting_1,table.dataTable.display tbody tr.selected>.sorting_2,table.dataTable.display tbody tr.selected>.sorting_3{background-color:#acbad5}table.dataTable.display tbody tr.odd>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd>.sorting_1{background-color:#f1f1f1}table.dataTable.display tbody tr.odd>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd>.sorting_2{background-color:#f3f3f3}table.dataTable.display tbody tr.odd>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd>.sorting_3{background-color:whitesmoke}table.dataTable.display tbody tr.odd.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_1{background-color:#a6b4cd}table.dataTable.display tbody tr.odd.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_2{background-color:#a8b5cf}table.dataTable.display tbody tr.odd.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_3{background-color:#a9b7d1}table.dataTable.display tbody tr.even>.sorting_1,table.dataTable.order-column.stripe tbody tr.even>.sorting_1{background-color:#fafafa}table.dataTable.display tbody tr.even>.sorting_2,table.dataTable.order-column.stripe tbody tr.even>.sorting_2{background-color:#fcfcfc}table.dataTable.display tbody tr.even>.sorting_3,table.dataTable.order-column.stripe tbody tr.even>.sorting_3{background-color:#fefefe}table.dataTable.display tbody tr.even.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_1{background-color:#acbad5}table.dataTable.display tbody tr.even.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_2{background-color:#aebcd6}table.dataTable.display tbody tr.even.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_3{background-color:#afbdd8}table.dataTable.display tbody tr:hover>.sorting_1,table.dataTable.order-column.hover tbody tr:hover>.sorting_1{background-color:#eaeaea}table.dataTable.display tbody tr:hover>.sorting_2,table.dataTable.order-column.hover tbody tr:hover>.sorting_2{background-color:#ececec}table.dataTable.display tbody tr:hover>.sorting_3,table.dataTable.order-column.hover tbody tr:hover>.sorting_3{background-color:#efefef}table.dataTable.display tbody tr:hover.selected>.sorting_1,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_1{background-color:#a2aec7}table.dataTable.display tbody tr:hover.selected>.sorting_2,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_2{background-color:#a3b0c9}table.dataTable.display tbody tr:hover.selected>.sorting_3,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_3{background-color:#a5b2cb}table.dataTable.no-footer{border-bottom:1px solid #111}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}table.dataTable.compact thead th,table.dataTable.compact thead td{padding:4px 17px}table.dataTable.compact tfoot th,table.dataTable.compact tfoot td{padding:4px}table.dataTable.compact tbody th,table.dataTable.compact tbody td{padding:4px}table.dataTable th.dt-left,table.dataTable td.dt-left{text-align:left}table.dataTable th.dt-center,table.dataTable td.dt-center,table.dataTable td.dataTables_empty{text-align:center}table.dataTable th.dt-right,table.dataTable td.dt-right{text-align:right}table.dataTable th.dt-justify,table.dataTable td.dt-justify{text-align:justify}table.dataTable th.dt-nowrap,table.dataTable td.dt-nowrap{white-space:nowrap}table.dataTable thead th.dt-head-left,table.dataTable thead td.dt-head-left,table.dataTable tfoot th.dt-head-left,table.dataTable tfoot td.dt-head-left{text-align:left}table.dataTable thead th.dt-head-center,table.dataTable thead td.dt-head-center,table.dataTable tfoot th.dt-head-center,table.dataTable tfoot td.dt-head-center{text-align:center}table.dataTable thead th.dt-head-right,table.dataTable thead td.dt-head-right,table.dataTable tfoot th.dt-head-right,table.dataTable tfoot td.dt-head-right{text-align:right}table.dataTable thead th.dt-head-justify,table.dataTable thead td.dt-head-justify,table.dataTable tfoot th.dt-head-justify,table.dataTable tfoot td.dt-head-justify{text-align:justify}table.dataTable thead th.dt-head-nowrap,table.dataTable thead td.dt-head-nowrap,table.dataTable tfoot th.dt-head-nowrap,table.dataTable tfoot td.dt-head-nowrap{white-space:nowrap}table.dataTable tbody th.dt-body-left,table.dataTable tbody td.dt-body-left{text-align:left}table.dataTable tbody th.dt-body-center,table.dataTable tbody td.dt-body-center{text-align:center}table.dataTable tbody th.dt-body-right,table.dataTable tbody td.dt-body-right{text-align:right}table.dataTable tbody th.dt-body-justify,table.dataTable tbody td.dt-body-justify{text-align:justify}table.dataTable tbody th.dt-body-nowrap,table.dataTable tbody td.dt-body-nowrap{white-space:nowrap}table.dataTable,table.dataTable th,table.dataTable td{box-sizing:content-box}.dataTables_wrapper{position:relative;clear:both;*zoom:1;zoom:1}.dataTables_wrapper .dataTables_length{float:left}.dataTables_wrapper .dataTables_length select{border:1px solid #aaa;border-radius:3px;padding:5px;background-color:transparent;padding:4px}.dataTables_wrapper .dataTables_filter{float:right;text-align:right}.dataTables_wrapper .dataTables_filter input{border:1px solid #aaa;border-radius:3px;padding:5px;background-color:transparent;margin-left:3px}.dataTables_wrapper .dataTables_info{clear:both;float:left;padding-top:0.755em}.dataTables_wrapper .dataTables_paginate{float:right;text-align:right;padding-top:0.25em}.dataTables_wrapper .dataTables_paginate .paginate_button{box-sizing:border-box;display:inline-block;min-width:1.5em;padding:0.5em 1em;margin-left:2px;text-align:center;text-decoration:none !important;cursor:pointer;*cursor:hand;color:#333 !important;border:1px solid transparent;border-radius:2px}.dataTables_wrapper .dataTables_paginate .paginate_button.current,.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{color:#333 !important;border:1px solid #979797;background-color:white;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%, #dcdcdc));background:-webkit-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-moz-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-ms-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-o-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:linear-gradient(to bottom, #fff 0%, #dcdcdc 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active{cursor:default;color:#666 !important;border:1px solid transparent;background:transparent;box-shadow:none}.dataTables_wrapper .dataTables_paginate .paginate_button:hover{color:white !important;border:1px solid #111;background-color:#585858;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #585858), color-stop(100%, #111));background:-webkit-linear-gradient(top, #585858 0%, #111 100%);background:-moz-linear-gradient(top, #585858 0%, #111 100%);background:-ms-linear-gradient(top, #585858 0%, #111 100%);background:-o-linear-gradient(top, #585858 0%, #111 100%);background:linear-gradient(to bottom, #585858 0%, #111 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button:active{outline:none;background-color:#2b2b2b;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #2b2b2b), color-stop(100%, #0c0c0c));background:-webkit-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-moz-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-ms-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-o-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:linear-gradient(to bottom, #2b2b2b 0%, #0c0c0c 100%);box-shadow:inset 0 0 3px #111}.dataTables_wrapper .dataTables_paginate .ellipsis{padding:0 1em}.dataTables_wrapper .dataTables_processing{position:absolute;top:50%;left:50%;width:100%;height:40px;margin-left:-50%;margin-top:-25px;padding-top:20px;text-align:center;font-size:1.2em;background-color:white;background:-webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255,255,255,0)), color-stop(25%, rgba(255,255,255,0.9)), color-stop(75%, rgba(255,255,255,0.9)), color-stop(100%, rgba(255,255,255,0)));background:-webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-ms-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-o-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%)}.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter,.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_processing,.dataTables_wrapper .dataTables_paginate{color:#333}.dataTables_wrapper .dataTables_scroll{clear:both}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody{*margin-top:-1px;-webkit-overflow-scrolling:touch}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>th,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>td,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>th,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>td{vertical-align:middle}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>th>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>td>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>th>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>td>div.dataTables_sizing{height:0;overflow:hidden;margin:0 !important;padding:0 !important}.dataTables_wrapper.no-footer .dataTables_scrollBody{border-bottom:1px solid #111}.dataTables_wrapper.no-footer div.dataTables_scrollHead table.dataTable,.dataTables_wrapper.no-footer div.dataTables_scrollBody>table{border-bottom:none}.dataTables_wrapper:after{visibility:hidden;display:block;content:"";clear:both;height:0}@media screen and (max-width: 767px){.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_paginate{float:none;text-align:center}.dataTables_wrapper .dataTables_paginate{margin-top:0.5em}}@media screen and (max-width: 640px){.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter{float:none;text-align:center}.dataTables_wrapper .dataTables_filter{margin-top:0.5em}} +table.dataTable{width:100%;margin:0 auto;clear:both;border-collapse:separate;border-spacing:0}table.dataTable thead th,table.dataTable tfoot th{font-weight:bold}table.dataTable thead th,table.dataTable thead td{padding:10px 18px;border-bottom:1px solid #111}table.dataTable thead th:active,table.dataTable thead td:active{outline:none}table.dataTable tfoot th,table.dataTable tfoot td{padding:10px 18px 6px 18px;border-top:1px solid #111}table.dataTable thead .sorting,table.dataTable thead .sorting_asc,table.dataTable thead .sorting_desc,table.dataTable thead .sorting_asc_disabled,table.dataTable thead .sorting_desc_disabled{cursor:pointer;*cursor:hand;background-repeat:no-repeat;background-position:center right}table.dataTable thead .sorting{background-image:url("../images/sort_both.png?static")}table.dataTable thead .sorting_asc{background-image:url("../images/sort_asc.png?static")}table.dataTable thead .sorting_desc{background-image:url("../images/sort_desc.png?static")}table.dataTable thead .sorting_asc_disabled{background-image:url("../images/sort_asc_disabled.png?static")}table.dataTable thead .sorting_desc_disabled{background-image:url("../images/sort_desc_disabled.png?static")}table.dataTable tbody tr{background-color:#ffffff}table.dataTable tbody tr.selected{background-color:#B0BED9}table.dataTable tbody th,table.dataTable tbody td{padding:8px 10px}table.dataTable.row-border tbody th,table.dataTable.row-border tbody td,table.dataTable.display tbody th,table.dataTable.display tbody td{border-top:1px solid #ddd}table.dataTable.row-border tbody tr:first-child th,table.dataTable.row-border tbody tr:first-child td,table.dataTable.display tbody tr:first-child th,table.dataTable.display tbody tr:first-child td{border-top:none}table.dataTable.cell-border tbody th,table.dataTable.cell-border tbody td{border-top:1px solid #ddd;border-right:1px solid #ddd}table.dataTable.cell-border tbody tr th:first-child,table.dataTable.cell-border tbody tr td:first-child{border-left:1px solid #ddd}table.dataTable.cell-border tbody tr:first-child th,table.dataTable.cell-border tbody tr:first-child td{border-top:none}table.dataTable.stripe tbody tr.odd,table.dataTable.display tbody tr.odd{background-color:#f9f9f9}table.dataTable.stripe tbody tr.odd.selected,table.dataTable.display tbody tr.odd.selected{background-color:#acbad4}table.dataTable.hover tbody tr:hover,table.dataTable.display tbody tr:hover{background-color:#f6f6f6}table.dataTable.hover tbody tr:hover.selected,table.dataTable.display tbody tr:hover.selected{background-color:#aab7d1}table.dataTable.order-column tbody tr>.sorting_1,table.dataTable.order-column tbody tr>.sorting_2,table.dataTable.order-column tbody tr>.sorting_3,table.dataTable.display tbody tr>.sorting_1,table.dataTable.display tbody tr>.sorting_2,table.dataTable.display tbody tr>.sorting_3{background-color:#fafafa}table.dataTable.order-column tbody tr.selected>.sorting_1,table.dataTable.order-column tbody tr.selected>.sorting_2,table.dataTable.order-column tbody tr.selected>.sorting_3,table.dataTable.display tbody tr.selected>.sorting_1,table.dataTable.display tbody tr.selected>.sorting_2,table.dataTable.display tbody tr.selected>.sorting_3{background-color:#acbad5}table.dataTable.display tbody tr.odd>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd>.sorting_1{background-color:#f1f1f1}table.dataTable.display tbody tr.odd>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd>.sorting_2{background-color:#f3f3f3}table.dataTable.display tbody tr.odd>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd>.sorting_3{background-color:whitesmoke}table.dataTable.display tbody tr.odd.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_1{background-color:#a6b4cd}table.dataTable.display tbody tr.odd.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_2{background-color:#a8b5cf}table.dataTable.display tbody tr.odd.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.odd.selected>.sorting_3{background-color:#a9b7d1}table.dataTable.display tbody tr.even>.sorting_1,table.dataTable.order-column.stripe tbody tr.even>.sorting_1{background-color:#fafafa}table.dataTable.display tbody tr.even>.sorting_2,table.dataTable.order-column.stripe tbody tr.even>.sorting_2{background-color:#fcfcfc}table.dataTable.display tbody tr.even>.sorting_3,table.dataTable.order-column.stripe tbody tr.even>.sorting_3{background-color:#fefefe}table.dataTable.display tbody tr.even.selected>.sorting_1,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_1{background-color:#acbad5}table.dataTable.display tbody tr.even.selected>.sorting_2,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_2{background-color:#aebcd6}table.dataTable.display tbody tr.even.selected>.sorting_3,table.dataTable.order-column.stripe tbody tr.even.selected>.sorting_3{background-color:#afbdd8}table.dataTable.display tbody tr:hover>.sorting_1,table.dataTable.order-column.hover tbody tr:hover>.sorting_1{background-color:#eaeaea}table.dataTable.display tbody tr:hover>.sorting_2,table.dataTable.order-column.hover tbody tr:hover>.sorting_2{background-color:#ececec}table.dataTable.display tbody tr:hover>.sorting_3,table.dataTable.order-column.hover tbody tr:hover>.sorting_3{background-color:#efefef}table.dataTable.display tbody tr:hover.selected>.sorting_1,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_1{background-color:#a2aec7}table.dataTable.display tbody tr:hover.selected>.sorting_2,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_2{background-color:#a3b0c9}table.dataTable.display tbody tr:hover.selected>.sorting_3,table.dataTable.order-column.hover tbody tr:hover.selected>.sorting_3{background-color:#a5b2cb}table.dataTable.no-footer{border-bottom:1px solid #111}table.dataTable.nowrap th,table.dataTable.nowrap td{white-space:nowrap}table.dataTable.compact thead th,table.dataTable.compact thead td{padding:4px 17px}table.dataTable.compact tfoot th,table.dataTable.compact tfoot td{padding:4px}table.dataTable.compact tbody th,table.dataTable.compact tbody td{padding:4px}table.dataTable th.dt-left,table.dataTable td.dt-left{text-align:left}table.dataTable th.dt-center,table.dataTable td.dt-center,table.dataTable td.dataTables_empty{text-align:center}table.dataTable th.dt-right,table.dataTable td.dt-right{text-align:right}table.dataTable th.dt-justify,table.dataTable td.dt-justify{text-align:justify}table.dataTable th.dt-nowrap,table.dataTable td.dt-nowrap{white-space:nowrap}table.dataTable thead th.dt-head-left,table.dataTable thead td.dt-head-left,table.dataTable tfoot th.dt-head-left,table.dataTable tfoot td.dt-head-left{text-align:left}table.dataTable thead th.dt-head-center,table.dataTable thead td.dt-head-center,table.dataTable tfoot th.dt-head-center,table.dataTable tfoot td.dt-head-center{text-align:center}table.dataTable thead th.dt-head-right,table.dataTable thead td.dt-head-right,table.dataTable tfoot th.dt-head-right,table.dataTable tfoot td.dt-head-right{text-align:right}table.dataTable thead th.dt-head-justify,table.dataTable thead td.dt-head-justify,table.dataTable tfoot th.dt-head-justify,table.dataTable tfoot td.dt-head-justify{text-align:justify}table.dataTable thead th.dt-head-nowrap,table.dataTable thead td.dt-head-nowrap,table.dataTable tfoot th.dt-head-nowrap,table.dataTable tfoot td.dt-head-nowrap{white-space:nowrap}table.dataTable tbody th.dt-body-left,table.dataTable tbody td.dt-body-left{text-align:left}table.dataTable tbody th.dt-body-center,table.dataTable tbody td.dt-body-center{text-align:center}table.dataTable tbody th.dt-body-right,table.dataTable tbody td.dt-body-right{text-align:right}table.dataTable tbody th.dt-body-justify,table.dataTable tbody td.dt-body-justify{text-align:justify}table.dataTable tbody th.dt-body-nowrap,table.dataTable tbody td.dt-body-nowrap{white-space:nowrap}table.dataTable,table.dataTable th,table.dataTable td{box-sizing:content-box}.dataTables_wrapper{position:relative;clear:both;*zoom:1;zoom:1}.dataTables_wrapper .dataTables_length{float:left}.dataTables_wrapper .dataTables_length select{border:1px solid #aaa;border-radius:3px;padding:5px;background-color:transparent;padding:4px}.dataTables_wrapper .dataTables_filter{float:right;text-align:right}.dataTables_wrapper .dataTables_filter input{border:1px solid #aaa;border-radius:3px;padding:5px;background-color:transparent;margin-left:3px}.dataTables_wrapper .dataTables_info{clear:both;float:left;padding-top:0.755em}.dataTables_wrapper .dataTables_paginate{float:right;text-align:right;padding-top:0.25em}.dataTables_wrapper .dataTables_paginate .paginate_button{box-sizing:border-box;display:inline-block;min-width:1.5em;padding:0.5em 1em;margin-left:2px;text-align:center;text-decoration:none !important;cursor:pointer;*cursor:hand;color:#333 !important;border:1px solid transparent;border-radius:2px}.dataTables_wrapper .dataTables_paginate .paginate_button.current,.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover{color:#333 !important;border:1px solid #979797;background-color:white;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #fff), color-stop(100%, #dcdcdc));background:-webkit-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-moz-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-ms-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:-o-linear-gradient(top, #fff 0%, #dcdcdc 100%);background:linear-gradient(to bottom, #fff 0%, #dcdcdc 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active{cursor:default;color:#666 !important;border:1px solid transparent;background:transparent;box-shadow:none}.dataTables_wrapper .dataTables_paginate .paginate_button:hover{color:white !important;border:1px solid #111;background-color:#585858;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #585858), color-stop(100%, #111));background:-webkit-linear-gradient(top, #585858 0%, #111 100%);background:-moz-linear-gradient(top, #585858 0%, #111 100%);background:-ms-linear-gradient(top, #585858 0%, #111 100%);background:-o-linear-gradient(top, #585858 0%, #111 100%);background:linear-gradient(to bottom, #585858 0%, #111 100%)}.dataTables_wrapper .dataTables_paginate .paginate_button:active{outline:none;background-color:#2b2b2b;background:-webkit-gradient(linear, left top, left bottom, color-stop(0%, #2b2b2b), color-stop(100%, #0c0c0c));background:-webkit-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-moz-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-ms-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:-o-linear-gradient(top, #2b2b2b 0%, #0c0c0c 100%);background:linear-gradient(to bottom, #2b2b2b 0%, #0c0c0c 100%);box-shadow:inset 0 0 3px #111}.dataTables_wrapper .dataTables_paginate .ellipsis{padding:0 1em}.dataTables_wrapper .dataTables_processing{position:absolute;top:50%;left:50%;width:100%;height:40px;margin-left:-50%;margin-top:-25px;padding-top:20px;text-align:center;font-size:1.2em;background-color:white;background:-webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255,255,255,0)), color-stop(25%, rgba(255,255,255,0.9)), color-stop(75%, rgba(255,255,255,0.9)), color-stop(100%, rgba(255,255,255,0)));background:-webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-moz-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-ms-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:-o-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%);background:linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 25%, rgba(255,255,255,0.9) 75%, rgba(255,255,255,0) 100%)}.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter,.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_processing,.dataTables_wrapper .dataTables_paginate{color:#333}.dataTables_wrapper .dataTables_scroll{clear:both}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody{*margin-top:-1px;-webkit-overflow-scrolling:touch}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>th,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>td,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>th,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>td{vertical-align:middle}.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>th>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>thead>tr>td>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>th>div.dataTables_sizing,.dataTables_wrapper .dataTables_scroll div.dataTables_scrollBody>table>tbody>tr>td>div.dataTables_sizing{height:0;overflow:hidden;margin:0 !important;padding:0 !important}.dataTables_wrapper.no-footer .dataTables_scrollBody{border-bottom:1px solid #111}.dataTables_wrapper.no-footer div.dataTables_scrollHead table.dataTable,.dataTables_wrapper.no-footer div.dataTables_scrollBody>table{border-bottom:none}.dataTables_wrapper:after{visibility:hidden;display:block;content:"";clear:both;height:0}@media screen and (max-width: 767px){.dataTables_wrapper .dataTables_info,.dataTables_wrapper .dataTables_paginate{float:none;text-align:center}.dataTables_wrapper .dataTables_paginate{margin-top:0.5em}}@media screen and (max-width: 640px){.dataTables_wrapper .dataTables_length,.dataTables_wrapper .dataTables_filter{float:none;text-align:center}.dataTables_wrapper .dataTables_filter{margin-top:0.5em}} diff --git a/httpserver/static/3rdparty/fontawesome-5.15.1/css/all.min.css b/httpserver/static/3rdparty/fontawesome-5.15.1/css/all.min.css index 656a507..5a48e94 100644 --- a/httpserver/static/3rdparty/fontawesome-5.15.1/css/all.min.css +++ b/httpserver/static/3rdparty/fontawesome-5.15.1/css/all.min.css @@ -2,4 +2,4 @@ * Font Awesome Free 5.15.1 by @fontawesome - https://fontawesome.com * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) */ -.fa,.fab,.fad,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{-webkit-filter:none;filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\f26e"}.fa-accessible-icon:before{content:"\f368"}.fa-accusoft:before{content:"\f369"}.fa-acquisitions-incorporated:before{content:"\f6af"}.fa-ad:before{content:"\f641"}.fa-address-book:before{content:"\f2b9"}.fa-address-card:before{content:"\f2bb"}.fa-adjust:before{content:"\f042"}.fa-adn:before{content:"\f170"}.fa-adversal:before{content:"\f36a"}.fa-affiliatetheme:before{content:"\f36b"}.fa-air-freshener:before{content:"\f5d0"}.fa-airbnb:before{content:"\f834"}.fa-algolia:before{content:"\f36c"}.fa-align-center:before{content:"\f037"}.fa-align-justify:before{content:"\f039"}.fa-align-left:before{content:"\f036"}.fa-align-right:before{content:"\f038"}.fa-alipay:before{content:"\f642"}.fa-allergies:before{content:"\f461"}.fa-amazon:before{content:"\f270"}.fa-amazon-pay:before{content:"\f42c"}.fa-ambulance:before{content:"\f0f9"}.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-amilia:before{content:"\f36d"}.fa-anchor:before{content:"\f13d"}.fa-android:before{content:"\f17b"}.fa-angellist:before{content:"\f209"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-down:before{content:"\f107"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angry:before{content:"\f556"}.fa-angrycreative:before{content:"\f36e"}.fa-angular:before{content:"\f420"}.fa-ankh:before{content:"\f644"}.fa-app-store:before{content:"\f36f"}.fa-app-store-ios:before{content:"\f370"}.fa-apper:before{content:"\f371"}.fa-apple:before{content:"\f179"}.fa-apple-alt:before{content:"\f5d1"}.fa-apple-pay:before{content:"\f415"}.fa-archive:before{content:"\f187"}.fa-archway:before{content:"\f557"}.fa-arrow-alt-circle-down:before{content:"\f358"}.fa-arrow-alt-circle-left:before{content:"\f359"}.fa-arrow-alt-circle-right:before{content:"\f35a"}.fa-arrow-alt-circle-up:before{content:"\f35b"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-down:before{content:"\f063"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrows-alt:before{content:"\f0b2"}.fa-arrows-alt-h:before{content:"\f337"}.fa-arrows-alt-v:before{content:"\f338"}.fa-artstation:before{content:"\f77a"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asterisk:before{content:"\f069"}.fa-asymmetrik:before{content:"\f372"}.fa-at:before{content:"\f1fa"}.fa-atlas:before{content:"\f558"}.fa-atlassian:before{content:"\f77b"}.fa-atom:before{content:"\f5d2"}.fa-audible:before{content:"\f373"}.fa-audio-description:before{content:"\f29e"}.fa-autoprefixer:before{content:"\f41c"}.fa-avianex:before{content:"\f374"}.fa-aviato:before{content:"\f421"}.fa-award:before{content:"\f559"}.fa-aws:before{content:"\f375"}.fa-baby:before{content:"\f77c"}.fa-baby-carriage:before{content:"\f77d"}.fa-backspace:before{content:"\f55a"}.fa-backward:before{content:"\f04a"}.fa-bacon:before{content:"\f7e5"}.fa-bacteria:before{content:"\e059"}.fa-bacterium:before{content:"\e05a"}.fa-bahai:before{content:"\f666"}.fa-balance-scale:before{content:"\f24e"}.fa-balance-scale-left:before{content:"\f515"}.fa-balance-scale-right:before{content:"\f516"}.fa-ban:before{content:"\f05e"}.fa-band-aid:before{content:"\f462"}.fa-bandcamp:before{content:"\f2d5"}.fa-barcode:before{content:"\f02a"}.fa-bars:before{content:"\f0c9"}.fa-baseball-ball:before{content:"\f433"}.fa-basketball-ball:before{content:"\f434"}.fa-bath:before{content:"\f2cd"}.fa-battery-empty:before{content:"\f244"}.fa-battery-full:before{content:"\f240"}.fa-battery-half:before{content:"\f242"}.fa-battery-quarter:before{content:"\f243"}.fa-battery-three-quarters:before{content:"\f241"}.fa-battle-net:before{content:"\f835"}.fa-bed:before{content:"\f236"}.fa-beer:before{content:"\f0fc"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-bell:before{content:"\f0f3"}.fa-bell-slash:before{content:"\f1f6"}.fa-bezier-curve:before{content:"\f55b"}.fa-bible:before{content:"\f647"}.fa-bicycle:before{content:"\f206"}.fa-biking:before{content:"\f84a"}.fa-bimobject:before{content:"\f378"}.fa-binoculars:before{content:"\f1e5"}.fa-biohazard:before{content:"\f780"}.fa-birthday-cake:before{content:"\f1fd"}.fa-bitbucket:before{content:"\f171"}.fa-bitcoin:before{content:"\f379"}.fa-bity:before{content:"\f37a"}.fa-black-tie:before{content:"\f27e"}.fa-blackberry:before{content:"\f37b"}.fa-blender:before{content:"\f517"}.fa-blender-phone:before{content:"\f6b6"}.fa-blind:before{content:"\f29d"}.fa-blog:before{content:"\f781"}.fa-blogger:before{content:"\f37c"}.fa-blogger-b:before{content:"\f37d"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-bold:before{content:"\f032"}.fa-bolt:before{content:"\f0e7"}.fa-bomb:before{content:"\f1e2"}.fa-bone:before{content:"\f5d7"}.fa-bong:before{content:"\f55c"}.fa-book:before{content:"\f02d"}.fa-book-dead:before{content:"\f6b7"}.fa-book-medical:before{content:"\f7e6"}.fa-book-open:before{content:"\f518"}.fa-book-reader:before{content:"\f5da"}.fa-bookmark:before{content:"\f02e"}.fa-bootstrap:before{content:"\f836"}.fa-border-all:before{content:"\f84c"}.fa-border-none:before{content:"\f850"}.fa-border-style:before{content:"\f853"}.fa-bowling-ball:before{content:"\f436"}.fa-box:before{content:"\f466"}.fa-box-open:before{content:"\f49e"}.fa-box-tissue:before{content:"\e05b"}.fa-boxes:before{content:"\f468"}.fa-braille:before{content:"\f2a1"}.fa-brain:before{content:"\f5dc"}.fa-bread-slice:before{content:"\f7ec"}.fa-briefcase:before{content:"\f0b1"}.fa-briefcase-medical:before{content:"\f469"}.fa-broadcast-tower:before{content:"\f519"}.fa-broom:before{content:"\f51a"}.fa-brush:before{content:"\f55d"}.fa-btc:before{content:"\f15a"}.fa-buffer:before{content:"\f837"}.fa-bug:before{content:"\f188"}.fa-building:before{content:"\f1ad"}.fa-bullhorn:before{content:"\f0a1"}.fa-bullseye:before{content:"\f140"}.fa-burn:before{content:"\f46a"}.fa-buromobelexperte:before{content:"\f37f"}.fa-bus:before{content:"\f207"}.fa-bus-alt:before{content:"\f55e"}.fa-business-time:before{content:"\f64a"}.fa-buy-n-large:before{content:"\f8a6"}.fa-buysellads:before{content:"\f20d"}.fa-calculator:before{content:"\f1ec"}.fa-calendar:before{content:"\f133"}.fa-calendar-alt:before{content:"\f073"}.fa-calendar-check:before{content:"\f274"}.fa-calendar-day:before{content:"\f783"}.fa-calendar-minus:before{content:"\f272"}.fa-calendar-plus:before{content:"\f271"}.fa-calendar-times:before{content:"\f273"}.fa-calendar-week:before{content:"\f784"}.fa-camera:before{content:"\f030"}.fa-camera-retro:before{content:"\f083"}.fa-campground:before{content:"\f6bb"}.fa-canadian-maple-leaf:before{content:"\f785"}.fa-candy-cane:before{content:"\f786"}.fa-cannabis:before{content:"\f55f"}.fa-capsules:before{content:"\f46b"}.fa-car:before{content:"\f1b9"}.fa-car-alt:before{content:"\f5de"}.fa-car-battery:before{content:"\f5df"}.fa-car-crash:before{content:"\f5e1"}.fa-car-side:before{content:"\f5e4"}.fa-caravan:before{content:"\f8ff"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-caret-square-down:before{content:"\f150"}.fa-caret-square-left:before{content:"\f191"}.fa-caret-square-right:before{content:"\f152"}.fa-caret-square-up:before{content:"\f151"}.fa-caret-up:before{content:"\f0d8"}.fa-carrot:before{content:"\f787"}.fa-cart-arrow-down:before{content:"\f218"}.fa-cart-plus:before{content:"\f217"}.fa-cash-register:before{content:"\f788"}.fa-cat:before{content:"\f6be"}.fa-cc-amazon-pay:before{content:"\f42d"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-apple-pay:before{content:"\f416"}.fa-cc-diners-club:before{content:"\f24c"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-cc-visa:before{content:"\f1f0"}.fa-centercode:before{content:"\f380"}.fa-centos:before{content:"\f789"}.fa-certificate:before{content:"\f0a3"}.fa-chair:before{content:"\f6c0"}.fa-chalkboard:before{content:"\f51b"}.fa-chalkboard-teacher:before{content:"\f51c"}.fa-charging-station:before{content:"\f5e7"}.fa-chart-area:before{content:"\f1fe"}.fa-chart-bar:before{content:"\f080"}.fa-chart-line:before{content:"\f201"}.fa-chart-pie:before{content:"\f200"}.fa-check:before{content:"\f00c"}.fa-check-circle:before{content:"\f058"}.fa-check-double:before{content:"\f560"}.fa-check-square:before{content:"\f14a"}.fa-cheese:before{content:"\f7ef"}.fa-chess:before{content:"\f439"}.fa-chess-bishop:before{content:"\f43a"}.fa-chess-board:before{content:"\f43c"}.fa-chess-king:before{content:"\f43f"}.fa-chess-knight:before{content:"\f441"}.fa-chess-pawn:before{content:"\f443"}.fa-chess-queen:before{content:"\f445"}.fa-chess-rook:before{content:"\f447"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-down:before{content:"\f078"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-chevron-up:before{content:"\f077"}.fa-child:before{content:"\f1ae"}.fa-chrome:before{content:"\f268"}.fa-chromecast:before{content:"\f838"}.fa-church:before{content:"\f51d"}.fa-circle:before{content:"\f111"}.fa-circle-notch:before{content:"\f1ce"}.fa-city:before{content:"\f64f"}.fa-clinic-medical:before{content:"\f7f2"}.fa-clipboard:before{content:"\f328"}.fa-clipboard-check:before{content:"\f46c"}.fa-clipboard-list:before{content:"\f46d"}.fa-clock:before{content:"\f017"}.fa-clone:before{content:"\f24d"}.fa-closed-captioning:before{content:"\f20a"}.fa-cloud:before{content:"\f0c2"}.fa-cloud-download-alt:before{content:"\f381"}.fa-cloud-meatball:before{content:"\f73b"}.fa-cloud-moon:before{content:"\f6c3"}.fa-cloud-moon-rain:before{content:"\f73c"}.fa-cloud-rain:before{content:"\f73d"}.fa-cloud-showers-heavy:before{content:"\f740"}.fa-cloud-sun:before{content:"\f6c4"}.fa-cloud-sun-rain:before{content:"\f743"}.fa-cloud-upload-alt:before{content:"\f382"}.fa-cloudflare:before{content:"\e07d"}.fa-cloudscale:before{content:"\f383"}.fa-cloudsmith:before{content:"\f384"}.fa-cloudversify:before{content:"\f385"}.fa-cocktail:before{content:"\f561"}.fa-code:before{content:"\f121"}.fa-code-branch:before{content:"\f126"}.fa-codepen:before{content:"\f1cb"}.fa-codiepie:before{content:"\f284"}.fa-coffee:before{content:"\f0f4"}.fa-cog:before{content:"\f013"}.fa-cogs:before{content:"\f085"}.fa-coins:before{content:"\f51e"}.fa-columns:before{content:"\f0db"}.fa-comment:before{content:"\f075"}.fa-comment-alt:before{content:"\f27a"}.fa-comment-dollar:before{content:"\f651"}.fa-comment-dots:before{content:"\f4ad"}.fa-comment-medical:before{content:"\f7f5"}.fa-comment-slash:before{content:"\f4b3"}.fa-comments:before{content:"\f086"}.fa-comments-dollar:before{content:"\f653"}.fa-compact-disc:before{content:"\f51f"}.fa-compass:before{content:"\f14e"}.fa-compress:before{content:"\f066"}.fa-compress-alt:before{content:"\f422"}.fa-compress-arrows-alt:before{content:"\f78c"}.fa-concierge-bell:before{content:"\f562"}.fa-confluence:before{content:"\f78d"}.fa-connectdevelop:before{content:"\f20e"}.fa-contao:before{content:"\f26d"}.fa-cookie:before{content:"\f563"}.fa-cookie-bite:before{content:"\f564"}.fa-copy:before{content:"\f0c5"}.fa-copyright:before{content:"\f1f9"}.fa-cotton-bureau:before{content:"\f89e"}.fa-couch:before{content:"\f4b8"}.fa-cpanel:before{content:"\f388"}.fa-creative-commons:before{content:"\f25e"}.fa-creative-commons-by:before{content:"\f4e7"}.fa-creative-commons-nc:before{content:"\f4e8"}.fa-creative-commons-nc-eu:before{content:"\f4e9"}.fa-creative-commons-nc-jp:before{content:"\f4ea"}.fa-creative-commons-nd:before{content:"\f4eb"}.fa-creative-commons-pd:before{content:"\f4ec"}.fa-creative-commons-pd-alt:before{content:"\f4ed"}.fa-creative-commons-remix:before{content:"\f4ee"}.fa-creative-commons-sa:before{content:"\f4ef"}.fa-creative-commons-sampling:before{content:"\f4f0"}.fa-creative-commons-sampling-plus:before{content:"\f4f1"}.fa-creative-commons-share:before{content:"\f4f2"}.fa-creative-commons-zero:before{content:"\f4f3"}.fa-credit-card:before{content:"\f09d"}.fa-critical-role:before{content:"\f6c9"}.fa-crop:before{content:"\f125"}.fa-crop-alt:before{content:"\f565"}.fa-cross:before{content:"\f654"}.fa-crosshairs:before{content:"\f05b"}.fa-crow:before{content:"\f520"}.fa-crown:before{content:"\f521"}.fa-crutch:before{content:"\f7f7"}.fa-css3:before{content:"\f13c"}.fa-css3-alt:before{content:"\f38b"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-cut:before{content:"\f0c4"}.fa-cuttlefish:before{content:"\f38c"}.fa-d-and-d:before{content:"\f38d"}.fa-d-and-d-beyond:before{content:"\f6ca"}.fa-dailymotion:before{content:"\e052"}.fa-dashcube:before{content:"\f210"}.fa-database:before{content:"\f1c0"}.fa-deaf:before{content:"\f2a4"}.fa-deezer:before{content:"\e077"}.fa-delicious:before{content:"\f1a5"}.fa-democrat:before{content:"\f747"}.fa-deploydog:before{content:"\f38e"}.fa-deskpro:before{content:"\f38f"}.fa-desktop:before{content:"\f108"}.fa-dev:before{content:"\f6cc"}.fa-deviantart:before{content:"\f1bd"}.fa-dharmachakra:before{content:"\f655"}.fa-dhl:before{content:"\f790"}.fa-diagnoses:before{content:"\f470"}.fa-diaspora:before{content:"\f791"}.fa-dice:before{content:"\f522"}.fa-dice-d20:before{content:"\f6cf"}.fa-dice-d6:before{content:"\f6d1"}.fa-dice-five:before{content:"\f523"}.fa-dice-four:before{content:"\f524"}.fa-dice-one:before{content:"\f525"}.fa-dice-six:before{content:"\f526"}.fa-dice-three:before{content:"\f527"}.fa-dice-two:before{content:"\f528"}.fa-digg:before{content:"\f1a6"}.fa-digital-ocean:before{content:"\f391"}.fa-digital-tachograph:before{content:"\f566"}.fa-directions:before{content:"\f5eb"}.fa-discord:before{content:"\f392"}.fa-discourse:before{content:"\f393"}.fa-disease:before{content:"\f7fa"}.fa-divide:before{content:"\f529"}.fa-dizzy:before{content:"\f567"}.fa-dna:before{content:"\f471"}.fa-dochub:before{content:"\f394"}.fa-docker:before{content:"\f395"}.fa-dog:before{content:"\f6d3"}.fa-dollar-sign:before{content:"\f155"}.fa-dolly:before{content:"\f472"}.fa-dolly-flatbed:before{content:"\f474"}.fa-donate:before{content:"\f4b9"}.fa-door-closed:before{content:"\f52a"}.fa-door-open:before{content:"\f52b"}.fa-dot-circle:before{content:"\f192"}.fa-dove:before{content:"\f4ba"}.fa-download:before{content:"\f019"}.fa-draft2digital:before{content:"\f396"}.fa-drafting-compass:before{content:"\f568"}.fa-dragon:before{content:"\f6d5"}.fa-draw-polygon:before{content:"\f5ee"}.fa-dribbble:before{content:"\f17d"}.fa-dribbble-square:before{content:"\f397"}.fa-dropbox:before{content:"\f16b"}.fa-drum:before{content:"\f569"}.fa-drum-steelpan:before{content:"\f56a"}.fa-drumstick-bite:before{content:"\f6d7"}.fa-drupal:before{content:"\f1a9"}.fa-dumbbell:before{content:"\f44b"}.fa-dumpster:before{content:"\f793"}.fa-dumpster-fire:before{content:"\f794"}.fa-dungeon:before{content:"\f6d9"}.fa-dyalog:before{content:"\f399"}.fa-earlybirds:before{content:"\f39a"}.fa-ebay:before{content:"\f4f4"}.fa-edge:before{content:"\f282"}.fa-edge-legacy:before{content:"\e078"}.fa-edit:before{content:"\f044"}.fa-egg:before{content:"\f7fb"}.fa-eject:before{content:"\f052"}.fa-elementor:before{content:"\f430"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-ello:before{content:"\f5f1"}.fa-ember:before{content:"\f423"}.fa-empire:before{content:"\f1d1"}.fa-envelope:before{content:"\f0e0"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-text:before{content:"\f658"}.fa-envelope-square:before{content:"\f199"}.fa-envira:before{content:"\f299"}.fa-equals:before{content:"\f52c"}.fa-eraser:before{content:"\f12d"}.fa-erlang:before{content:"\f39d"}.fa-ethereum:before{content:"\f42e"}.fa-ethernet:before{content:"\f796"}.fa-etsy:before{content:"\f2d7"}.fa-euro-sign:before{content:"\f153"}.fa-evernote:before{content:"\f839"}.fa-exchange-alt:before{content:"\f362"}.fa-exclamation:before{content:"\f12a"}.fa-exclamation-circle:before{content:"\f06a"}.fa-exclamation-triangle:before{content:"\f071"}.fa-expand:before{content:"\f065"}.fa-expand-alt:before{content:"\f424"}.fa-expand-arrows-alt:before{content:"\f31e"}.fa-expeditedssl:before{content:"\f23e"}.fa-external-link-alt:before{content:"\f35d"}.fa-external-link-square-alt:before{content:"\f360"}.fa-eye:before{content:"\f06e"}.fa-eye-dropper:before{content:"\f1fb"}.fa-eye-slash:before{content:"\f070"}.fa-facebook:before{content:"\f09a"}.fa-facebook-f:before{content:"\f39e"}.fa-facebook-messenger:before{content:"\f39f"}.fa-facebook-square:before{content:"\f082"}.fa-fan:before{content:"\f863"}.fa-fantasy-flight-games:before{content:"\f6dc"}.fa-fast-backward:before{content:"\f049"}.fa-fast-forward:before{content:"\f050"}.fa-faucet:before{content:"\e005"}.fa-fax:before{content:"\f1ac"}.fa-feather:before{content:"\f52d"}.fa-feather-alt:before{content:"\f56b"}.fa-fedex:before{content:"\f797"}.fa-fedora:before{content:"\f798"}.fa-female:before{content:"\f182"}.fa-fighter-jet:before{content:"\f0fb"}.fa-figma:before{content:"\f799"}.fa-file:before{content:"\f15b"}.fa-file-alt:before{content:"\f15c"}.fa-file-archive:before{content:"\f1c6"}.fa-file-audio:before{content:"\f1c7"}.fa-file-code:before{content:"\f1c9"}.fa-file-contract:before{content:"\f56c"}.fa-file-csv:before{content:"\f6dd"}.fa-file-download:before{content:"\f56d"}.fa-file-excel:before{content:"\f1c3"}.fa-file-export:before{content:"\f56e"}.fa-file-image:before{content:"\f1c5"}.fa-file-import:before{content:"\f56f"}.fa-file-invoice:before{content:"\f570"}.fa-file-invoice-dollar:before{content:"\f571"}.fa-file-medical:before{content:"\f477"}.fa-file-medical-alt:before{content:"\f478"}.fa-file-pdf:before{content:"\f1c1"}.fa-file-powerpoint:before{content:"\f1c4"}.fa-file-prescription:before{content:"\f572"}.fa-file-signature:before{content:"\f573"}.fa-file-upload:before{content:"\f574"}.fa-file-video:before{content:"\f1c8"}.fa-file-word:before{content:"\f1c2"}.fa-fill:before{content:"\f575"}.fa-fill-drip:before{content:"\f576"}.fa-film:before{content:"\f008"}.fa-filter:before{content:"\f0b0"}.fa-fingerprint:before{content:"\f577"}.fa-fire:before{content:"\f06d"}.fa-fire-alt:before{content:"\f7e4"}.fa-fire-extinguisher:before{content:"\f134"}.fa-firefox:before{content:"\f269"}.fa-firefox-browser:before{content:"\e007"}.fa-first-aid:before{content:"\f479"}.fa-first-order:before{content:"\f2b0"}.fa-first-order-alt:before{content:"\f50a"}.fa-firstdraft:before{content:"\f3a1"}.fa-fish:before{content:"\f578"}.fa-fist-raised:before{content:"\f6de"}.fa-flag:before{content:"\f024"}.fa-flag-checkered:before{content:"\f11e"}.fa-flag-usa:before{content:"\f74d"}.fa-flask:before{content:"\f0c3"}.fa-flickr:before{content:"\f16e"}.fa-flipboard:before{content:"\f44d"}.fa-flushed:before{content:"\f579"}.fa-fly:before{content:"\f417"}.fa-folder:before{content:"\f07b"}.fa-folder-minus:before{content:"\f65d"}.fa-folder-open:before{content:"\f07c"}.fa-folder-plus:before{content:"\f65e"}.fa-font:before{content:"\f031"}.fa-font-awesome:before{content:"\f2b4"}.fa-font-awesome-alt:before{content:"\f35c"}.fa-font-awesome-flag:before{content:"\f425"}.fa-font-awesome-logo-full:before{content:"\f4e6"}.fa-fonticons:before{content:"\f280"}.fa-fonticons-fi:before{content:"\f3a2"}.fa-football-ball:before{content:"\f44e"}.fa-fort-awesome:before{content:"\f286"}.fa-fort-awesome-alt:before{content:"\f3a3"}.fa-forumbee:before{content:"\f211"}.fa-forward:before{content:"\f04e"}.fa-foursquare:before{content:"\f180"}.fa-free-code-camp:before{content:"\f2c5"}.fa-freebsd:before{content:"\f3a4"}.fa-frog:before{content:"\f52e"}.fa-frown:before{content:"\f119"}.fa-frown-open:before{content:"\f57a"}.fa-fulcrum:before{content:"\f50b"}.fa-funnel-dollar:before{content:"\f662"}.fa-futbol:before{content:"\f1e3"}.fa-galactic-republic:before{content:"\f50c"}.fa-galactic-senate:before{content:"\f50d"}.fa-gamepad:before{content:"\f11b"}.fa-gas-pump:before{content:"\f52f"}.fa-gavel:before{content:"\f0e3"}.fa-gem:before{content:"\f3a5"}.fa-genderless:before{content:"\f22d"}.fa-get-pocket:before{content:"\f265"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-ghost:before{content:"\f6e2"}.fa-gift:before{content:"\f06b"}.fa-gifts:before{content:"\f79c"}.fa-git:before{content:"\f1d3"}.fa-git-alt:before{content:"\f841"}.fa-git-square:before{content:"\f1d2"}.fa-github:before{content:"\f09b"}.fa-github-alt:before{content:"\f113"}.fa-github-square:before{content:"\f092"}.fa-gitkraken:before{content:"\f3a6"}.fa-gitlab:before{content:"\f296"}.fa-gitter:before{content:"\f426"}.fa-glass-cheers:before{content:"\f79f"}.fa-glass-martini:before{content:"\f000"}.fa-glass-martini-alt:before{content:"\f57b"}.fa-glass-whiskey:before{content:"\f7a0"}.fa-glasses:before{content:"\f530"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-globe:before{content:"\f0ac"}.fa-globe-africa:before{content:"\f57c"}.fa-globe-americas:before{content:"\f57d"}.fa-globe-asia:before{content:"\f57e"}.fa-globe-europe:before{content:"\f7a2"}.fa-gofore:before{content:"\f3a7"}.fa-golf-ball:before{content:"\f450"}.fa-goodreads:before{content:"\f3a8"}.fa-goodreads-g:before{content:"\f3a9"}.fa-google:before{content:"\f1a0"}.fa-google-drive:before{content:"\f3aa"}.fa-google-pay:before{content:"\e079"}.fa-google-play:before{content:"\f3ab"}.fa-google-plus:before{content:"\f2b3"}.fa-google-plus-g:before{content:"\f0d5"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-wallet:before{content:"\f1ee"}.fa-gopuram:before{content:"\f664"}.fa-graduation-cap:before{content:"\f19d"}.fa-gratipay:before{content:"\f184"}.fa-grav:before{content:"\f2d6"}.fa-greater-than:before{content:"\f531"}.fa-greater-than-equal:before{content:"\f532"}.fa-grimace:before{content:"\f57f"}.fa-grin:before{content:"\f580"}.fa-grin-alt:before{content:"\f581"}.fa-grin-beam:before{content:"\f582"}.fa-grin-beam-sweat:before{content:"\f583"}.fa-grin-hearts:before{content:"\f584"}.fa-grin-squint:before{content:"\f585"}.fa-grin-squint-tears:before{content:"\f586"}.fa-grin-stars:before{content:"\f587"}.fa-grin-tears:before{content:"\f588"}.fa-grin-tongue:before{content:"\f589"}.fa-grin-tongue-squint:before{content:"\f58a"}.fa-grin-tongue-wink:before{content:"\f58b"}.fa-grin-wink:before{content:"\f58c"}.fa-grip-horizontal:before{content:"\f58d"}.fa-grip-lines:before{content:"\f7a4"}.fa-grip-lines-vertical:before{content:"\f7a5"}.fa-grip-vertical:before{content:"\f58e"}.fa-gripfire:before{content:"\f3ac"}.fa-grunt:before{content:"\f3ad"}.fa-guilded:before{content:"\e07e"}.fa-guitar:before{content:"\f7a6"}.fa-gulp:before{content:"\f3ae"}.fa-h-square:before{content:"\f0fd"}.fa-hacker-news:before{content:"\f1d4"}.fa-hacker-news-square:before{content:"\f3af"}.fa-hackerrank:before{content:"\f5f7"}.fa-hamburger:before{content:"\f805"}.fa-hammer:before{content:"\f6e3"}.fa-hamsa:before{content:"\f665"}.fa-hand-holding:before{content:"\f4bd"}.fa-hand-holding-heart:before{content:"\f4be"}.fa-hand-holding-medical:before{content:"\e05c"}.fa-hand-holding-usd:before{content:"\f4c0"}.fa-hand-holding-water:before{content:"\f4c1"}.fa-hand-lizard:before{content:"\f258"}.fa-hand-middle-finger:before{content:"\f806"}.fa-hand-paper:before{content:"\f256"}.fa-hand-peace:before{content:"\f25b"}.fa-hand-point-down:before{content:"\f0a7"}.fa-hand-point-left:before{content:"\f0a5"}.fa-hand-point-right:before{content:"\f0a4"}.fa-hand-point-up:before{content:"\f0a6"}.fa-hand-pointer:before{content:"\f25a"}.fa-hand-rock:before{content:"\f255"}.fa-hand-scissors:before{content:"\f257"}.fa-hand-sparkles:before{content:"\e05d"}.fa-hand-spock:before{content:"\f259"}.fa-hands:before{content:"\f4c2"}.fa-hands-helping:before{content:"\f4c4"}.fa-hands-wash:before{content:"\e05e"}.fa-handshake:before{content:"\f2b5"}.fa-handshake-alt-slash:before{content:"\e05f"}.fa-handshake-slash:before{content:"\e060"}.fa-hanukiah:before{content:"\f6e6"}.fa-hard-hat:before{content:"\f807"}.fa-hashtag:before{content:"\f292"}.fa-hat-cowboy:before{content:"\f8c0"}.fa-hat-cowboy-side:before{content:"\f8c1"}.fa-hat-wizard:before{content:"\f6e8"}.fa-hdd:before{content:"\f0a0"}.fa-head-side-cough:before{content:"\e061"}.fa-head-side-cough-slash:before{content:"\e062"}.fa-head-side-mask:before{content:"\e063"}.fa-head-side-virus:before{content:"\e064"}.fa-heading:before{content:"\f1dc"}.fa-headphones:before{content:"\f025"}.fa-headphones-alt:before{content:"\f58f"}.fa-headset:before{content:"\f590"}.fa-heart:before{content:"\f004"}.fa-heart-broken:before{content:"\f7a9"}.fa-heartbeat:before{content:"\f21e"}.fa-helicopter:before{content:"\f533"}.fa-highlighter:before{content:"\f591"}.fa-hiking:before{content:"\f6ec"}.fa-hippo:before{content:"\f6ed"}.fa-hips:before{content:"\f452"}.fa-hire-a-helper:before{content:"\f3b0"}.fa-history:before{content:"\f1da"}.fa-hive:before{content:"\e07f"}.fa-hockey-puck:before{content:"\f453"}.fa-holly-berry:before{content:"\f7aa"}.fa-home:before{content:"\f015"}.fa-hooli:before{content:"\f427"}.fa-hornbill:before{content:"\f592"}.fa-horse:before{content:"\f6f0"}.fa-horse-head:before{content:"\f7ab"}.fa-hospital:before{content:"\f0f8"}.fa-hospital-alt:before{content:"\f47d"}.fa-hospital-symbol:before{content:"\f47e"}.fa-hospital-user:before{content:"\f80d"}.fa-hot-tub:before{content:"\f593"}.fa-hotdog:before{content:"\f80f"}.fa-hotel:before{content:"\f594"}.fa-hotjar:before{content:"\f3b1"}.fa-hourglass:before{content:"\f254"}.fa-hourglass-end:before{content:"\f253"}.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-start:before{content:"\f251"}.fa-house-damage:before{content:"\f6f1"}.fa-house-user:before{content:"\e065"}.fa-houzz:before{content:"\f27c"}.fa-hryvnia:before{content:"\f6f2"}.fa-html5:before{content:"\f13b"}.fa-hubspot:before{content:"\f3b2"}.fa-i-cursor:before{content:"\f246"}.fa-ice-cream:before{content:"\f810"}.fa-icicles:before{content:"\f7ad"}.fa-icons:before{content:"\f86d"}.fa-id-badge:before{content:"\f2c1"}.fa-id-card:before{content:"\f2c2"}.fa-id-card-alt:before{content:"\f47f"}.fa-ideal:before{content:"\e013"}.fa-igloo:before{content:"\f7ae"}.fa-image:before{content:"\f03e"}.fa-images:before{content:"\f302"}.fa-imdb:before{content:"\f2d8"}.fa-inbox:before{content:"\f01c"}.fa-indent:before{content:"\f03c"}.fa-industry:before{content:"\f275"}.fa-infinity:before{content:"\f534"}.fa-info:before{content:"\f129"}.fa-info-circle:before{content:"\f05a"}.fa-innosoft:before{content:"\e080"}.fa-instagram:before{content:"\f16d"}.fa-instagram-square:before{content:"\e055"}.fa-instalod:before{content:"\e081"}.fa-intercom:before{content:"\f7af"}.fa-internet-explorer:before{content:"\f26b"}.fa-invision:before{content:"\f7b0"}.fa-ioxhost:before{content:"\f208"}.fa-italic:before{content:"\f033"}.fa-itch-io:before{content:"\f83a"}.fa-itunes:before{content:"\f3b4"}.fa-itunes-note:before{content:"\f3b5"}.fa-java:before{content:"\f4e4"}.fa-jedi:before{content:"\f669"}.fa-jedi-order:before{content:"\f50e"}.fa-jenkins:before{content:"\f3b6"}.fa-jira:before{content:"\f7b1"}.fa-joget:before{content:"\f3b7"}.fa-joint:before{content:"\f595"}.fa-joomla:before{content:"\f1aa"}.fa-journal-whills:before{content:"\f66a"}.fa-js:before{content:"\f3b8"}.fa-js-square:before{content:"\f3b9"}.fa-jsfiddle:before{content:"\f1cc"}.fa-kaaba:before{content:"\f66b"}.fa-kaggle:before{content:"\f5fa"}.fa-key:before{content:"\f084"}.fa-keybase:before{content:"\f4f5"}.fa-keyboard:before{content:"\f11c"}.fa-keycdn:before{content:"\f3ba"}.fa-khanda:before{content:"\f66d"}.fa-kickstarter:before{content:"\f3bb"}.fa-kickstarter-k:before{content:"\f3bc"}.fa-kiss:before{content:"\f596"}.fa-kiss-beam:before{content:"\f597"}.fa-kiss-wink-heart:before{content:"\f598"}.fa-kiwi-bird:before{content:"\f535"}.fa-korvue:before{content:"\f42f"}.fa-landmark:before{content:"\f66f"}.fa-language:before{content:"\f1ab"}.fa-laptop:before{content:"\f109"}.fa-laptop-code:before{content:"\f5fc"}.fa-laptop-house:before{content:"\e066"}.fa-laptop-medical:before{content:"\f812"}.fa-laravel:before{content:"\f3bd"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-laugh:before{content:"\f599"}.fa-laugh-beam:before{content:"\f59a"}.fa-laugh-squint:before{content:"\f59b"}.fa-laugh-wink:before{content:"\f59c"}.fa-layer-group:before{content:"\f5fd"}.fa-leaf:before{content:"\f06c"}.fa-leanpub:before{content:"\f212"}.fa-lemon:before{content:"\f094"}.fa-less:before{content:"\f41d"}.fa-less-than:before{content:"\f536"}.fa-less-than-equal:before{content:"\f537"}.fa-level-down-alt:before{content:"\f3be"}.fa-level-up-alt:before{content:"\f3bf"}.fa-life-ring:before{content:"\f1cd"}.fa-lightbulb:before{content:"\f0eb"}.fa-line:before{content:"\f3c0"}.fa-link:before{content:"\f0c1"}.fa-linkedin:before{content:"\f08c"}.fa-linkedin-in:before{content:"\f0e1"}.fa-linode:before{content:"\f2b8"}.fa-linux:before{content:"\f17c"}.fa-lira-sign:before{content:"\f195"}.fa-list:before{content:"\f03a"}.fa-list-alt:before{content:"\f022"}.fa-list-ol:before{content:"\f0cb"}.fa-list-ul:before{content:"\f0ca"}.fa-location-arrow:before{content:"\f124"}.fa-lock:before{content:"\f023"}.fa-lock-open:before{content:"\f3c1"}.fa-long-arrow-alt-down:before{content:"\f309"}.fa-long-arrow-alt-left:before{content:"\f30a"}.fa-long-arrow-alt-right:before{content:"\f30b"}.fa-long-arrow-alt-up:before{content:"\f30c"}.fa-low-vision:before{content:"\f2a8"}.fa-luggage-cart:before{content:"\f59d"}.fa-lungs:before{content:"\f604"}.fa-lungs-virus:before{content:"\e067"}.fa-lyft:before{content:"\f3c3"}.fa-magento:before{content:"\f3c4"}.fa-magic:before{content:"\f0d0"}.fa-magnet:before{content:"\f076"}.fa-mail-bulk:before{content:"\f674"}.fa-mailchimp:before{content:"\f59e"}.fa-male:before{content:"\f183"}.fa-mandalorian:before{content:"\f50f"}.fa-map:before{content:"\f279"}.fa-map-marked:before{content:"\f59f"}.fa-map-marked-alt:before{content:"\f5a0"}.fa-map-marker:before{content:"\f041"}.fa-map-marker-alt:before{content:"\f3c5"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-markdown:before{content:"\f60f"}.fa-marker:before{content:"\f5a1"}.fa-mars:before{content:"\f222"}.fa-mars-double:before{content:"\f227"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mask:before{content:"\f6fa"}.fa-mastodon:before{content:"\f4f6"}.fa-maxcdn:before{content:"\f136"}.fa-mdb:before{content:"\f8ca"}.fa-medal:before{content:"\f5a2"}.fa-medapps:before{content:"\f3c6"}.fa-medium:before{content:"\f23a"}.fa-medium-m:before{content:"\f3c7"}.fa-medkit:before{content:"\f0fa"}.fa-medrt:before{content:"\f3c8"}.fa-meetup:before{content:"\f2e0"}.fa-megaport:before{content:"\f5a3"}.fa-meh:before{content:"\f11a"}.fa-meh-blank:before{content:"\f5a4"}.fa-meh-rolling-eyes:before{content:"\f5a5"}.fa-memory:before{content:"\f538"}.fa-mendeley:before{content:"\f7b3"}.fa-menorah:before{content:"\f676"}.fa-mercury:before{content:"\f223"}.fa-meteor:before{content:"\f753"}.fa-microblog:before{content:"\e01a"}.fa-microchip:before{content:"\f2db"}.fa-microphone:before{content:"\f130"}.fa-microphone-alt:before{content:"\f3c9"}.fa-microphone-alt-slash:before{content:"\f539"}.fa-microphone-slash:before{content:"\f131"}.fa-microscope:before{content:"\f610"}.fa-microsoft:before{content:"\f3ca"}.fa-minus:before{content:"\f068"}.fa-minus-circle:before{content:"\f056"}.fa-minus-square:before{content:"\f146"}.fa-mitten:before{content:"\f7b5"}.fa-mix:before{content:"\f3cb"}.fa-mixcloud:before{content:"\f289"}.fa-mixer:before{content:"\e056"}.fa-mizuni:before{content:"\f3cc"}.fa-mobile:before{content:"\f10b"}.fa-mobile-alt:before{content:"\f3cd"}.fa-modx:before{content:"\f285"}.fa-monero:before{content:"\f3d0"}.fa-money-bill:before{content:"\f0d6"}.fa-money-bill-alt:before{content:"\f3d1"}.fa-money-bill-wave:before{content:"\f53a"}.fa-money-bill-wave-alt:before{content:"\f53b"}.fa-money-check:before{content:"\f53c"}.fa-money-check-alt:before{content:"\f53d"}.fa-monument:before{content:"\f5a6"}.fa-moon:before{content:"\f186"}.fa-mortar-pestle:before{content:"\f5a7"}.fa-mosque:before{content:"\f678"}.fa-motorcycle:before{content:"\f21c"}.fa-mountain:before{content:"\f6fc"}.fa-mouse:before{content:"\f8cc"}.fa-mouse-pointer:before{content:"\f245"}.fa-mug-hot:before{content:"\f7b6"}.fa-music:before{content:"\f001"}.fa-napster:before{content:"\f3d2"}.fa-neos:before{content:"\f612"}.fa-network-wired:before{content:"\f6ff"}.fa-neuter:before{content:"\f22c"}.fa-newspaper:before{content:"\f1ea"}.fa-nimblr:before{content:"\f5a8"}.fa-node:before{content:"\f419"}.fa-node-js:before{content:"\f3d3"}.fa-not-equal:before{content:"\f53e"}.fa-notes-medical:before{content:"\f481"}.fa-npm:before{content:"\f3d4"}.fa-ns8:before{content:"\f3d5"}.fa-nutritionix:before{content:"\f3d6"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-octopus-deploy:before{content:"\e082"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-oil-can:before{content:"\f613"}.fa-old-republic:before{content:"\f510"}.fa-om:before{content:"\f679"}.fa-opencart:before{content:"\f23d"}.fa-openid:before{content:"\f19b"}.fa-opera:before{content:"\f26a"}.fa-optin-monster:before{content:"\f23c"}.fa-orcid:before{content:"\f8d2"}.fa-osi:before{content:"\f41a"}.fa-otter:before{content:"\f700"}.fa-outdent:before{content:"\f03b"}.fa-page4:before{content:"\f3d7"}.fa-pagelines:before{content:"\f18c"}.fa-pager:before{content:"\f815"}.fa-paint-brush:before{content:"\f1fc"}.fa-paint-roller:before{content:"\f5aa"}.fa-palette:before{content:"\f53f"}.fa-palfed:before{content:"\f3d8"}.fa-pallet:before{content:"\f482"}.fa-paper-plane:before{content:"\f1d8"}.fa-paperclip:before{content:"\f0c6"}.fa-parachute-box:before{content:"\f4cd"}.fa-paragraph:before{content:"\f1dd"}.fa-parking:before{content:"\f540"}.fa-passport:before{content:"\f5ab"}.fa-pastafarianism:before{content:"\f67b"}.fa-paste:before{content:"\f0ea"}.fa-patreon:before{content:"\f3d9"}.fa-pause:before{content:"\f04c"}.fa-pause-circle:before{content:"\f28b"}.fa-paw:before{content:"\f1b0"}.fa-paypal:before{content:"\f1ed"}.fa-peace:before{content:"\f67c"}.fa-pen:before{content:"\f304"}.fa-pen-alt:before{content:"\f305"}.fa-pen-fancy:before{content:"\f5ac"}.fa-pen-nib:before{content:"\f5ad"}.fa-pen-square:before{content:"\f14b"}.fa-pencil-alt:before{content:"\f303"}.fa-pencil-ruler:before{content:"\f5ae"}.fa-penny-arcade:before{content:"\f704"}.fa-people-arrows:before{content:"\e068"}.fa-people-carry:before{content:"\f4ce"}.fa-pepper-hot:before{content:"\f816"}.fa-perbyte:before{content:"\e083"}.fa-percent:before{content:"\f295"}.fa-percentage:before{content:"\f541"}.fa-periscope:before{content:"\f3da"}.fa-person-booth:before{content:"\f756"}.fa-phabricator:before{content:"\f3db"}.fa-phoenix-framework:before{content:"\f3dc"}.fa-phoenix-squadron:before{content:"\f511"}.fa-phone:before{content:"\f095"}.fa-phone-alt:before{content:"\f879"}.fa-phone-slash:before{content:"\f3dd"}.fa-phone-square:before{content:"\f098"}.fa-phone-square-alt:before{content:"\f87b"}.fa-phone-volume:before{content:"\f2a0"}.fa-photo-video:before{content:"\f87c"}.fa-php:before{content:"\f457"}.fa-pied-piper:before{content:"\f2ae"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-pied-piper-hat:before{content:"\f4e5"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-square:before{content:"\e01e"}.fa-piggy-bank:before{content:"\f4d3"}.fa-pills:before{content:"\f484"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-p:before{content:"\f231"}.fa-pinterest-square:before{content:"\f0d3"}.fa-pizza-slice:before{content:"\f818"}.fa-place-of-worship:before{content:"\f67f"}.fa-plane:before{content:"\f072"}.fa-plane-arrival:before{content:"\f5af"}.fa-plane-departure:before{content:"\f5b0"}.fa-plane-slash:before{content:"\e069"}.fa-play:before{content:"\f04b"}.fa-play-circle:before{content:"\f144"}.fa-playstation:before{content:"\f3df"}.fa-plug:before{content:"\f1e6"}.fa-plus:before{content:"\f067"}.fa-plus-circle:before{content:"\f055"}.fa-plus-square:before{content:"\f0fe"}.fa-podcast:before{content:"\f2ce"}.fa-poll:before{content:"\f681"}.fa-poll-h:before{content:"\f682"}.fa-poo:before{content:"\f2fe"}.fa-poo-storm:before{content:"\f75a"}.fa-poop:before{content:"\f619"}.fa-portrait:before{content:"\f3e0"}.fa-pound-sign:before{content:"\f154"}.fa-power-off:before{content:"\f011"}.fa-pray:before{content:"\f683"}.fa-praying-hands:before{content:"\f684"}.fa-prescription:before{content:"\f5b1"}.fa-prescription-bottle:before{content:"\f485"}.fa-prescription-bottle-alt:before{content:"\f486"}.fa-print:before{content:"\f02f"}.fa-procedures:before{content:"\f487"}.fa-product-hunt:before{content:"\f288"}.fa-project-diagram:before{content:"\f542"}.fa-pump-medical:before{content:"\e06a"}.fa-pump-soap:before{content:"\e06b"}.fa-pushed:before{content:"\f3e1"}.fa-puzzle-piece:before{content:"\f12e"}.fa-python:before{content:"\f3e2"}.fa-qq:before{content:"\f1d6"}.fa-qrcode:before{content:"\f029"}.fa-question:before{content:"\f128"}.fa-question-circle:before{content:"\f059"}.fa-quidditch:before{content:"\f458"}.fa-quinscape:before{content:"\f459"}.fa-quora:before{content:"\f2c4"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-quran:before{content:"\f687"}.fa-r-project:before{content:"\f4f7"}.fa-radiation:before{content:"\f7b9"}.fa-radiation-alt:before{content:"\f7ba"}.fa-rainbow:before{content:"\f75b"}.fa-random:before{content:"\f074"}.fa-raspberry-pi:before{content:"\f7bb"}.fa-ravelry:before{content:"\f2d9"}.fa-react:before{content:"\f41b"}.fa-reacteurope:before{content:"\f75d"}.fa-readme:before{content:"\f4d5"}.fa-rebel:before{content:"\f1d0"}.fa-receipt:before{content:"\f543"}.fa-record-vinyl:before{content:"\f8d9"}.fa-recycle:before{content:"\f1b8"}.fa-red-river:before{content:"\f3e3"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-alien:before{content:"\f281"}.fa-reddit-square:before{content:"\f1a2"}.fa-redhat:before{content:"\f7bc"}.fa-redo:before{content:"\f01e"}.fa-redo-alt:before{content:"\f2f9"}.fa-registered:before{content:"\f25d"}.fa-remove-format:before{content:"\f87d"}.fa-renren:before{content:"\f18b"}.fa-reply:before{content:"\f3e5"}.fa-reply-all:before{content:"\f122"}.fa-replyd:before{content:"\f3e6"}.fa-republican:before{content:"\f75e"}.fa-researchgate:before{content:"\f4f8"}.fa-resolving:before{content:"\f3e7"}.fa-restroom:before{content:"\f7bd"}.fa-retweet:before{content:"\f079"}.fa-rev:before{content:"\f5b2"}.fa-ribbon:before{content:"\f4d6"}.fa-ring:before{content:"\f70b"}.fa-road:before{content:"\f018"}.fa-robot:before{content:"\f544"}.fa-rocket:before{content:"\f135"}.fa-rocketchat:before{content:"\f3e8"}.fa-rockrms:before{content:"\f3e9"}.fa-route:before{content:"\f4d7"}.fa-rss:before{content:"\f09e"}.fa-rss-square:before{content:"\f143"}.fa-ruble-sign:before{content:"\f158"}.fa-ruler:before{content:"\f545"}.fa-ruler-combined:before{content:"\f546"}.fa-ruler-horizontal:before{content:"\f547"}.fa-ruler-vertical:before{content:"\f548"}.fa-running:before{content:"\f70c"}.fa-rupee-sign:before{content:"\f156"}.fa-rust:before{content:"\e07a"}.fa-sad-cry:before{content:"\f5b3"}.fa-sad-tear:before{content:"\f5b4"}.fa-safari:before{content:"\f267"}.fa-salesforce:before{content:"\f83b"}.fa-sass:before{content:"\f41e"}.fa-satellite:before{content:"\f7bf"}.fa-satellite-dish:before{content:"\f7c0"}.fa-save:before{content:"\f0c7"}.fa-schlix:before{content:"\f3ea"}.fa-school:before{content:"\f549"}.fa-screwdriver:before{content:"\f54a"}.fa-scribd:before{content:"\f28a"}.fa-scroll:before{content:"\f70e"}.fa-sd-card:before{content:"\f7c2"}.fa-search:before{content:"\f002"}.fa-search-dollar:before{content:"\f688"}.fa-search-location:before{content:"\f689"}.fa-search-minus:before{content:"\f010"}.fa-search-plus:before{content:"\f00e"}.fa-searchengin:before{content:"\f3eb"}.fa-seedling:before{content:"\f4d8"}.fa-sellcast:before{content:"\f2da"}.fa-sellsy:before{content:"\f213"}.fa-server:before{content:"\f233"}.fa-servicestack:before{content:"\f3ec"}.fa-shapes:before{content:"\f61f"}.fa-share:before{content:"\f064"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-share-square:before{content:"\f14d"}.fa-shekel-sign:before{content:"\f20b"}.fa-shield-alt:before{content:"\f3ed"}.fa-shield-virus:before{content:"\e06c"}.fa-ship:before{content:"\f21a"}.fa-shipping-fast:before{content:"\f48b"}.fa-shirtsinbulk:before{content:"\f214"}.fa-shoe-prints:before{content:"\f54b"}.fa-shopify:before{content:"\e057"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-shopping-cart:before{content:"\f07a"}.fa-shopware:before{content:"\f5b5"}.fa-shower:before{content:"\f2cc"}.fa-shuttle-van:before{content:"\f5b6"}.fa-sign:before{content:"\f4d9"}.fa-sign-in-alt:before{content:"\f2f6"}.fa-sign-language:before{content:"\f2a7"}.fa-sign-out-alt:before{content:"\f2f5"}.fa-signal:before{content:"\f012"}.fa-signature:before{content:"\f5b7"}.fa-sim-card:before{content:"\f7c4"}.fa-simplybuilt:before{content:"\f215"}.fa-sink:before{content:"\e06d"}.fa-sistrix:before{content:"\f3ee"}.fa-sitemap:before{content:"\f0e8"}.fa-sith:before{content:"\f512"}.fa-skating:before{content:"\f7c5"}.fa-sketch:before{content:"\f7c6"}.fa-skiing:before{content:"\f7c9"}.fa-skiing-nordic:before{content:"\f7ca"}.fa-skull:before{content:"\f54c"}.fa-skull-crossbones:before{content:"\f714"}.fa-skyatlas:before{content:"\f216"}.fa-skype:before{content:"\f17e"}.fa-slack:before{content:"\f198"}.fa-slack-hash:before{content:"\f3ef"}.fa-slash:before{content:"\f715"}.fa-sleigh:before{content:"\f7cc"}.fa-sliders-h:before{content:"\f1de"}.fa-slideshare:before{content:"\f1e7"}.fa-smile:before{content:"\f118"}.fa-smile-beam:before{content:"\f5b8"}.fa-smile-wink:before{content:"\f4da"}.fa-smog:before{content:"\f75f"}.fa-smoking:before{content:"\f48d"}.fa-smoking-ban:before{content:"\f54d"}.fa-sms:before{content:"\f7cd"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-snowboarding:before{content:"\f7ce"}.fa-snowflake:before{content:"\f2dc"}.fa-snowman:before{content:"\f7d0"}.fa-snowplow:before{content:"\f7d2"}.fa-soap:before{content:"\e06e"}.fa-socks:before{content:"\f696"}.fa-solar-panel:before{content:"\f5ba"}.fa-sort:before{content:"\f0dc"}.fa-sort-alpha-down:before{content:"\f15d"}.fa-sort-alpha-down-alt:before{content:"\f881"}.fa-sort-alpha-up:before{content:"\f15e"}.fa-sort-alpha-up-alt:before{content:"\f882"}.fa-sort-amount-down:before{content:"\f160"}.fa-sort-amount-down-alt:before{content:"\f884"}.fa-sort-amount-up:before{content:"\f161"}.fa-sort-amount-up-alt:before{content:"\f885"}.fa-sort-down:before{content:"\f0dd"}.fa-sort-numeric-down:before{content:"\f162"}.fa-sort-numeric-down-alt:before{content:"\f886"}.fa-sort-numeric-up:before{content:"\f163"}.fa-sort-numeric-up-alt:before{content:"\f887"}.fa-sort-up:before{content:"\f0de"}.fa-soundcloud:before{content:"\f1be"}.fa-sourcetree:before{content:"\f7d3"}.fa-spa:before{content:"\f5bb"}.fa-space-shuttle:before{content:"\f197"}.fa-speakap:before{content:"\f3f3"}.fa-speaker-deck:before{content:"\f83c"}.fa-spell-check:before{content:"\f891"}.fa-spider:before{content:"\f717"}.fa-spinner:before{content:"\f110"}.fa-splotch:before{content:"\f5bc"}.fa-spotify:before{content:"\f1bc"}.fa-spray-can:before{content:"\f5bd"}.fa-square:before{content:"\f0c8"}.fa-square-full:before{content:"\f45c"}.fa-square-root-alt:before{content:"\f698"}.fa-squarespace:before{content:"\f5be"}.fa-stack-exchange:before{content:"\f18d"}.fa-stack-overflow:before{content:"\f16c"}.fa-stackpath:before{content:"\f842"}.fa-stamp:before{content:"\f5bf"}.fa-star:before{content:"\f005"}.fa-star-and-crescent:before{content:"\f699"}.fa-star-half:before{content:"\f089"}.fa-star-half-alt:before{content:"\f5c0"}.fa-star-of-david:before{content:"\f69a"}.fa-star-of-life:before{content:"\f621"}.fa-staylinked:before{content:"\f3f5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-steam-symbol:before{content:"\f3f6"}.fa-step-backward:before{content:"\f048"}.fa-step-forward:before{content:"\f051"}.fa-stethoscope:before{content:"\f0f1"}.fa-sticker-mule:before{content:"\f3f7"}.fa-sticky-note:before{content:"\f249"}.fa-stop:before{content:"\f04d"}.fa-stop-circle:before{content:"\f28d"}.fa-stopwatch:before{content:"\f2f2"}.fa-stopwatch-20:before{content:"\e06f"}.fa-store:before{content:"\f54e"}.fa-store-alt:before{content:"\f54f"}.fa-store-alt-slash:before{content:"\e070"}.fa-store-slash:before{content:"\e071"}.fa-strava:before{content:"\f428"}.fa-stream:before{content:"\f550"}.fa-street-view:before{content:"\f21d"}.fa-strikethrough:before{content:"\f0cc"}.fa-stripe:before{content:"\f429"}.fa-stripe-s:before{content:"\f42a"}.fa-stroopwafel:before{content:"\f551"}.fa-studiovinari:before{content:"\f3f8"}.fa-stumbleupon:before{content:"\f1a4"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-subscript:before{content:"\f12c"}.fa-subway:before{content:"\f239"}.fa-suitcase:before{content:"\f0f2"}.fa-suitcase-rolling:before{content:"\f5c1"}.fa-sun:before{content:"\f185"}.fa-superpowers:before{content:"\f2dd"}.fa-superscript:before{content:"\f12b"}.fa-supple:before{content:"\f3f9"}.fa-surprise:before{content:"\f5c2"}.fa-suse:before{content:"\f7d6"}.fa-swatchbook:before{content:"\f5c3"}.fa-swift:before{content:"\f8e1"}.fa-swimmer:before{content:"\f5c4"}.fa-swimming-pool:before{content:"\f5c5"}.fa-symfony:before{content:"\f83d"}.fa-synagogue:before{content:"\f69b"}.fa-sync:before{content:"\f021"}.fa-sync-alt:before{content:"\f2f1"}.fa-syringe:before{content:"\f48e"}.fa-table:before{content:"\f0ce"}.fa-table-tennis:before{content:"\f45d"}.fa-tablet:before{content:"\f10a"}.fa-tablet-alt:before{content:"\f3fa"}.fa-tablets:before{content:"\f490"}.fa-tachometer-alt:before{content:"\f3fd"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-tape:before{content:"\f4db"}.fa-tasks:before{content:"\f0ae"}.fa-taxi:before{content:"\f1ba"}.fa-teamspeak:before{content:"\f4f9"}.fa-teeth:before{content:"\f62e"}.fa-teeth-open:before{content:"\f62f"}.fa-telegram:before{content:"\f2c6"}.fa-telegram-plane:before{content:"\f3fe"}.fa-temperature-high:before{content:"\f769"}.fa-temperature-low:before{content:"\f76b"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-tenge:before{content:"\f7d7"}.fa-terminal:before{content:"\f120"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-th:before{content:"\f00a"}.fa-th-large:before{content:"\f009"}.fa-th-list:before{content:"\f00b"}.fa-the-red-yeti:before{content:"\f69d"}.fa-theater-masks:before{content:"\f630"}.fa-themeco:before{content:"\f5c6"}.fa-themeisle:before{content:"\f2b2"}.fa-thermometer:before{content:"\f491"}.fa-thermometer-empty:before{content:"\f2cb"}.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-think-peaks:before{content:"\f731"}.fa-thumbs-down:before{content:"\f165"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbtack:before{content:"\f08d"}.fa-ticket-alt:before{content:"\f3ff"}.fa-tiktok:before{content:"\e07b"}.fa-times:before{content:"\f00d"}.fa-times-circle:before{content:"\f057"}.fa-tint:before{content:"\f043"}.fa-tint-slash:before{content:"\f5c7"}.fa-tired:before{content:"\f5c8"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-toilet:before{content:"\f7d8"}.fa-toilet-paper:before{content:"\f71e"}.fa-toilet-paper-slash:before{content:"\e072"}.fa-toolbox:before{content:"\f552"}.fa-tools:before{content:"\f7d9"}.fa-tooth:before{content:"\f5c9"}.fa-torah:before{content:"\f6a0"}.fa-torii-gate:before{content:"\f6a1"}.fa-tractor:before{content:"\f722"}.fa-trade-federation:before{content:"\f513"}.fa-trademark:before{content:"\f25c"}.fa-traffic-light:before{content:"\f637"}.fa-trailer:before{content:"\e041"}.fa-train:before{content:"\f238"}.fa-tram:before{content:"\f7da"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-trash:before{content:"\f1f8"}.fa-trash-alt:before{content:"\f2ed"}.fa-trash-restore:before{content:"\f829"}.fa-trash-restore-alt:before{content:"\f82a"}.fa-tree:before{content:"\f1bb"}.fa-trello:before{content:"\f181"}.fa-tripadvisor:before{content:"\f262"}.fa-trophy:before{content:"\f091"}.fa-truck:before{content:"\f0d1"}.fa-truck-loading:before{content:"\f4de"}.fa-truck-monster:before{content:"\f63b"}.fa-truck-moving:before{content:"\f4df"}.fa-truck-pickup:before{content:"\f63c"}.fa-tshirt:before{content:"\f553"}.fa-tty:before{content:"\f1e4"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-tv:before{content:"\f26c"}.fa-twitch:before{content:"\f1e8"}.fa-twitter:before{content:"\f099"}.fa-twitter-square:before{content:"\f081"}.fa-typo3:before{content:"\f42b"}.fa-uber:before{content:"\f402"}.fa-ubuntu:before{content:"\f7df"}.fa-uikit:before{content:"\f403"}.fa-umbraco:before{content:"\f8e8"}.fa-umbrella:before{content:"\f0e9"}.fa-umbrella-beach:before{content:"\f5ca"}.fa-uncharted:before{content:"\e084"}.fa-underline:before{content:"\f0cd"}.fa-undo:before{content:"\f0e2"}.fa-undo-alt:before{content:"\f2ea"}.fa-uniregistry:before{content:"\f404"}.fa-unity:before{content:"\e049"}.fa-universal-access:before{content:"\f29a"}.fa-university:before{content:"\f19c"}.fa-unlink:before{content:"\f127"}.fa-unlock:before{content:"\f09c"}.fa-unlock-alt:before{content:"\f13e"}.fa-unsplash:before{content:"\e07c"}.fa-untappd:before{content:"\f405"}.fa-upload:before{content:"\f093"}.fa-ups:before{content:"\f7e0"}.fa-usb:before{content:"\f287"}.fa-user:before{content:"\f007"}.fa-user-alt:before{content:"\f406"}.fa-user-alt-slash:before{content:"\f4fa"}.fa-user-astronaut:before{content:"\f4fb"}.fa-user-check:before{content:"\f4fc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-clock:before{content:"\f4fd"}.fa-user-cog:before{content:"\f4fe"}.fa-user-edit:before{content:"\f4ff"}.fa-user-friends:before{content:"\f500"}.fa-user-graduate:before{content:"\f501"}.fa-user-injured:before{content:"\f728"}.fa-user-lock:before{content:"\f502"}.fa-user-md:before{content:"\f0f0"}.fa-user-minus:before{content:"\f503"}.fa-user-ninja:before{content:"\f504"}.fa-user-nurse:before{content:"\f82f"}.fa-user-plus:before{content:"\f234"}.fa-user-secret:before{content:"\f21b"}.fa-user-shield:before{content:"\f505"}.fa-user-slash:before{content:"\f506"}.fa-user-tag:before{content:"\f507"}.fa-user-tie:before{content:"\f508"}.fa-user-times:before{content:"\f235"}.fa-users:before{content:"\f0c0"}.fa-users-cog:before{content:"\f509"}.fa-users-slash:before{content:"\e073"}.fa-usps:before{content:"\f7e1"}.fa-ussunnah:before{content:"\f407"}.fa-utensil-spoon:before{content:"\f2e5"}.fa-utensils:before{content:"\f2e7"}.fa-vaadin:before{content:"\f408"}.fa-vector-square:before{content:"\f5cb"}.fa-venus:before{content:"\f221"}.fa-venus-double:before{content:"\f226"}.fa-venus-mars:before{content:"\f228"}.fa-vest:before{content:"\e085"}.fa-vest-patches:before{content:"\e086"}.fa-viacoin:before{content:"\f237"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-vial:before{content:"\f492"}.fa-vials:before{content:"\f493"}.fa-viber:before{content:"\f409"}.fa-video:before{content:"\f03d"}.fa-video-slash:before{content:"\f4e2"}.fa-vihara:before{content:"\f6a7"}.fa-vimeo:before{content:"\f40a"}.fa-vimeo-square:before{content:"\f194"}.fa-vimeo-v:before{content:"\f27d"}.fa-vine:before{content:"\f1ca"}.fa-virus:before{content:"\e074"}.fa-virus-slash:before{content:"\e075"}.fa-viruses:before{content:"\e076"}.fa-vk:before{content:"\f189"}.fa-vnv:before{content:"\f40b"}.fa-voicemail:before{content:"\f897"}.fa-volleyball-ball:before{content:"\f45f"}.fa-volume-down:before{content:"\f027"}.fa-volume-mute:before{content:"\f6a9"}.fa-volume-off:before{content:"\f026"}.fa-volume-up:before{content:"\f028"}.fa-vote-yea:before{content:"\f772"}.fa-vr-cardboard:before{content:"\f729"}.fa-vuejs:before{content:"\f41f"}.fa-walking:before{content:"\f554"}.fa-wallet:before{content:"\f555"}.fa-warehouse:before{content:"\f494"}.fa-watchman-monitoring:before{content:"\e087"}.fa-water:before{content:"\f773"}.fa-wave-square:before{content:"\f83e"}.fa-waze:before{content:"\f83f"}.fa-weebly:before{content:"\f5cc"}.fa-weibo:before{content:"\f18a"}.fa-weight:before{content:"\f496"}.fa-weight-hanging:before{content:"\f5cd"}.fa-weixin:before{content:"\f1d7"}.fa-whatsapp:before{content:"\f232"}.fa-whatsapp-square:before{content:"\f40c"}.fa-wheelchair:before{content:"\f193"}.fa-whmcs:before{content:"\f40d"}.fa-wifi:before{content:"\f1eb"}.fa-wikipedia-w:before{content:"\f266"}.fa-wind:before{content:"\f72e"}.fa-window-close:before{content:"\f410"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-windows:before{content:"\f17a"}.fa-wine-bottle:before{content:"\f72f"}.fa-wine-glass:before{content:"\f4e3"}.fa-wine-glass-alt:before{content:"\f5ce"}.fa-wix:before{content:"\f5cf"}.fa-wizards-of-the-coast:before{content:"\f730"}.fa-wodu:before{content:"\e088"}.fa-wolf-pack-battalion:before{content:"\f514"}.fa-won-sign:before{content:"\f159"}.fa-wordpress:before{content:"\f19a"}.fa-wordpress-simple:before{content:"\f411"}.fa-wpbeginner:before{content:"\f297"}.fa-wpexplorer:before{content:"\f2de"}.fa-wpforms:before{content:"\f298"}.fa-wpressr:before{content:"\f3e4"}.fa-wrench:before{content:"\f0ad"}.fa-x-ray:before{content:"\f497"}.fa-xbox:before{content:"\f412"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-y-combinator:before{content:"\f23b"}.fa-yahoo:before{content:"\f19e"}.fa-yammer:before{content:"\f840"}.fa-yandex:before{content:"\f413"}.fa-yandex-international:before{content:"\f414"}.fa-yarn:before{content:"\f7e3"}.fa-yelp:before{content:"\f1e9"}.fa-yen-sign:before{content:"\f157"}.fa-yin-yang:before{content:"\f6ad"}.fa-yoast:before{content:"\f2b1"}.fa-youtube:before{content:"\f167"}.fa-youtube-square:before{content:"\f431"}.fa-zhihu:before{content:"\f63f"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:400;font-display:block;src:url(../webfonts/fa-brands-400.eot);src:url(../webfonts/fa-brands-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-brands-400.woff2) format("woff2"),url(../webfonts/fa-brands-400.woff) format("woff"),url(../webfonts/fa-brands-400.ttf) format("truetype"),url(../webfonts/fa-brands-400.svg#fontawesome) format("svg")}.fab{font-family:"Font Awesome 5 Brands"}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:400;font-display:block;src:url(../webfonts/fa-regular-400.eot);src:url(../webfonts/fa-regular-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-regular-400.woff2) format("woff2"),url(../webfonts/fa-regular-400.woff) format("woff"),url(../webfonts/fa-regular-400.ttf) format("truetype"),url(../webfonts/fa-regular-400.svg#fontawesome) format("svg")}.fab,.far{font-weight:400}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:900;font-display:block;src:url(../webfonts/fa-solid-900.eot);src:url(../webfonts/fa-solid-900.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.woff) format("woff"),url(../webfonts/fa-solid-900.ttf) format("truetype"),url(../webfonts/fa-solid-900.svg#fontawesome) format("svg")}.fa,.far,.fas{font-family:"Font Awesome 5 Free"}.fa,.fas{font-weight:900} \ No newline at end of file +.fa,.fab,.fad,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{-webkit-filter:none;filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\f26e"}.fa-accessible-icon:before{content:"\f368"}.fa-accusoft:before{content:"\f369"}.fa-acquisitions-incorporated:before{content:"\f6af"}.fa-ad:before{content:"\f641"}.fa-address-book:before{content:"\f2b9"}.fa-address-card:before{content:"\f2bb"}.fa-adjust:before{content:"\f042"}.fa-adn:before{content:"\f170"}.fa-adversal:before{content:"\f36a"}.fa-affiliatetheme:before{content:"\f36b"}.fa-air-freshener:before{content:"\f5d0"}.fa-airbnb:before{content:"\f834"}.fa-algolia:before{content:"\f36c"}.fa-align-center:before{content:"\f037"}.fa-align-justify:before{content:"\f039"}.fa-align-left:before{content:"\f036"}.fa-align-right:before{content:"\f038"}.fa-alipay:before{content:"\f642"}.fa-allergies:before{content:"\f461"}.fa-amazon:before{content:"\f270"}.fa-amazon-pay:before{content:"\f42c"}.fa-ambulance:before{content:"\f0f9"}.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-amilia:before{content:"\f36d"}.fa-anchor:before{content:"\f13d"}.fa-android:before{content:"\f17b"}.fa-angellist:before{content:"\f209"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-down:before{content:"\f107"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angry:before{content:"\f556"}.fa-angrycreative:before{content:"\f36e"}.fa-angular:before{content:"\f420"}.fa-ankh:before{content:"\f644"}.fa-app-store:before{content:"\f36f"}.fa-app-store-ios:before{content:"\f370"}.fa-apper:before{content:"\f371"}.fa-apple:before{content:"\f179"}.fa-apple-alt:before{content:"\f5d1"}.fa-apple-pay:before{content:"\f415"}.fa-archive:before{content:"\f187"}.fa-archway:before{content:"\f557"}.fa-arrow-alt-circle-down:before{content:"\f358"}.fa-arrow-alt-circle-left:before{content:"\f359"}.fa-arrow-alt-circle-right:before{content:"\f35a"}.fa-arrow-alt-circle-up:before{content:"\f35b"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-down:before{content:"\f063"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrows-alt:before{content:"\f0b2"}.fa-arrows-alt-h:before{content:"\f337"}.fa-arrows-alt-v:before{content:"\f338"}.fa-artstation:before{content:"\f77a"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asterisk:before{content:"\f069"}.fa-asymmetrik:before{content:"\f372"}.fa-at:before{content:"\f1fa"}.fa-atlas:before{content:"\f558"}.fa-atlassian:before{content:"\f77b"}.fa-atom:before{content:"\f5d2"}.fa-audible:before{content:"\f373"}.fa-audio-description:before{content:"\f29e"}.fa-autoprefixer:before{content:"\f41c"}.fa-avianex:before{content:"\f374"}.fa-aviato:before{content:"\f421"}.fa-award:before{content:"\f559"}.fa-aws:before{content:"\f375"}.fa-baby:before{content:"\f77c"}.fa-baby-carriage:before{content:"\f77d"}.fa-backspace:before{content:"\f55a"}.fa-backward:before{content:"\f04a"}.fa-bacon:before{content:"\f7e5"}.fa-bacteria:before{content:"\e059"}.fa-bacterium:before{content:"\e05a"}.fa-bahai:before{content:"\f666"}.fa-balance-scale:before{content:"\f24e"}.fa-balance-scale-left:before{content:"\f515"}.fa-balance-scale-right:before{content:"\f516"}.fa-ban:before{content:"\f05e"}.fa-band-aid:before{content:"\f462"}.fa-bandcamp:before{content:"\f2d5"}.fa-barcode:before{content:"\f02a"}.fa-bars:before{content:"\f0c9"}.fa-baseball-ball:before{content:"\f433"}.fa-basketball-ball:before{content:"\f434"}.fa-bath:before{content:"\f2cd"}.fa-battery-empty:before{content:"\f244"}.fa-battery-full:before{content:"\f240"}.fa-battery-half:before{content:"\f242"}.fa-battery-quarter:before{content:"\f243"}.fa-battery-three-quarters:before{content:"\f241"}.fa-battle-net:before{content:"\f835"}.fa-bed:before{content:"\f236"}.fa-beer:before{content:"\f0fc"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-bell:before{content:"\f0f3"}.fa-bell-slash:before{content:"\f1f6"}.fa-bezier-curve:before{content:"\f55b"}.fa-bible:before{content:"\f647"}.fa-bicycle:before{content:"\f206"}.fa-biking:before{content:"\f84a"}.fa-bimobject:before{content:"\f378"}.fa-binoculars:before{content:"\f1e5"}.fa-biohazard:before{content:"\f780"}.fa-birthday-cake:before{content:"\f1fd"}.fa-bitbucket:before{content:"\f171"}.fa-bitcoin:before{content:"\f379"}.fa-bity:before{content:"\f37a"}.fa-black-tie:before{content:"\f27e"}.fa-blackberry:before{content:"\f37b"}.fa-blender:before{content:"\f517"}.fa-blender-phone:before{content:"\f6b6"}.fa-blind:before{content:"\f29d"}.fa-blog:before{content:"\f781"}.fa-blogger:before{content:"\f37c"}.fa-blogger-b:before{content:"\f37d"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-bold:before{content:"\f032"}.fa-bolt:before{content:"\f0e7"}.fa-bomb:before{content:"\f1e2"}.fa-bone:before{content:"\f5d7"}.fa-bong:before{content:"\f55c"}.fa-book:before{content:"\f02d"}.fa-book-dead:before{content:"\f6b7"}.fa-book-medical:before{content:"\f7e6"}.fa-book-open:before{content:"\f518"}.fa-book-reader:before{content:"\f5da"}.fa-bookmark:before{content:"\f02e"}.fa-bootstrap:before{content:"\f836"}.fa-border-all:before{content:"\f84c"}.fa-border-none:before{content:"\f850"}.fa-border-style:before{content:"\f853"}.fa-bowling-ball:before{content:"\f436"}.fa-box:before{content:"\f466"}.fa-box-open:before{content:"\f49e"}.fa-box-tissue:before{content:"\e05b"}.fa-boxes:before{content:"\f468"}.fa-braille:before{content:"\f2a1"}.fa-brain:before{content:"\f5dc"}.fa-bread-slice:before{content:"\f7ec"}.fa-briefcase:before{content:"\f0b1"}.fa-briefcase-medical:before{content:"\f469"}.fa-broadcast-tower:before{content:"\f519"}.fa-broom:before{content:"\f51a"}.fa-brush:before{content:"\f55d"}.fa-btc:before{content:"\f15a"}.fa-buffer:before{content:"\f837"}.fa-bug:before{content:"\f188"}.fa-building:before{content:"\f1ad"}.fa-bullhorn:before{content:"\f0a1"}.fa-bullseye:before{content:"\f140"}.fa-burn:before{content:"\f46a"}.fa-buromobelexperte:before{content:"\f37f"}.fa-bus:before{content:"\f207"}.fa-bus-alt:before{content:"\f55e"}.fa-business-time:before{content:"\f64a"}.fa-buy-n-large:before{content:"\f8a6"}.fa-buysellads:before{content:"\f20d"}.fa-calculator:before{content:"\f1ec"}.fa-calendar:before{content:"\f133"}.fa-calendar-alt:before{content:"\f073"}.fa-calendar-check:before{content:"\f274"}.fa-calendar-day:before{content:"\f783"}.fa-calendar-minus:before{content:"\f272"}.fa-calendar-plus:before{content:"\f271"}.fa-calendar-times:before{content:"\f273"}.fa-calendar-week:before{content:"\f784"}.fa-camera:before{content:"\f030"}.fa-camera-retro:before{content:"\f083"}.fa-campground:before{content:"\f6bb"}.fa-canadian-maple-leaf:before{content:"\f785"}.fa-candy-cane:before{content:"\f786"}.fa-cannabis:before{content:"\f55f"}.fa-capsules:before{content:"\f46b"}.fa-car:before{content:"\f1b9"}.fa-car-alt:before{content:"\f5de"}.fa-car-battery:before{content:"\f5df"}.fa-car-crash:before{content:"\f5e1"}.fa-car-side:before{content:"\f5e4"}.fa-caravan:before{content:"\f8ff"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-caret-square-down:before{content:"\f150"}.fa-caret-square-left:before{content:"\f191"}.fa-caret-square-right:before{content:"\f152"}.fa-caret-square-up:before{content:"\f151"}.fa-caret-up:before{content:"\f0d8"}.fa-carrot:before{content:"\f787"}.fa-cart-arrow-down:before{content:"\f218"}.fa-cart-plus:before{content:"\f217"}.fa-cash-register:before{content:"\f788"}.fa-cat:before{content:"\f6be"}.fa-cc-amazon-pay:before{content:"\f42d"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-apple-pay:before{content:"\f416"}.fa-cc-diners-club:before{content:"\f24c"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-cc-visa:before{content:"\f1f0"}.fa-centercode:before{content:"\f380"}.fa-centos:before{content:"\f789"}.fa-certificate:before{content:"\f0a3"}.fa-chair:before{content:"\f6c0"}.fa-chalkboard:before{content:"\f51b"}.fa-chalkboard-teacher:before{content:"\f51c"}.fa-charging-station:before{content:"\f5e7"}.fa-chart-area:before{content:"\f1fe"}.fa-chart-bar:before{content:"\f080"}.fa-chart-line:before{content:"\f201"}.fa-chart-pie:before{content:"\f200"}.fa-check:before{content:"\f00c"}.fa-check-circle:before{content:"\f058"}.fa-check-double:before{content:"\f560"}.fa-check-square:before{content:"\f14a"}.fa-cheese:before{content:"\f7ef"}.fa-chess:before{content:"\f439"}.fa-chess-bishop:before{content:"\f43a"}.fa-chess-board:before{content:"\f43c"}.fa-chess-king:before{content:"\f43f"}.fa-chess-knight:before{content:"\f441"}.fa-chess-pawn:before{content:"\f443"}.fa-chess-queen:before{content:"\f445"}.fa-chess-rook:before{content:"\f447"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-down:before{content:"\f078"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-chevron-up:before{content:"\f077"}.fa-child:before{content:"\f1ae"}.fa-chrome:before{content:"\f268"}.fa-chromecast:before{content:"\f838"}.fa-church:before{content:"\f51d"}.fa-circle:before{content:"\f111"}.fa-circle-notch:before{content:"\f1ce"}.fa-city:before{content:"\f64f"}.fa-clinic-medical:before{content:"\f7f2"}.fa-clipboard:before{content:"\f328"}.fa-clipboard-check:before{content:"\f46c"}.fa-clipboard-list:before{content:"\f46d"}.fa-clock:before{content:"\f017"}.fa-clone:before{content:"\f24d"}.fa-closed-captioning:before{content:"\f20a"}.fa-cloud:before{content:"\f0c2"}.fa-cloud-download-alt:before{content:"\f381"}.fa-cloud-meatball:before{content:"\f73b"}.fa-cloud-moon:before{content:"\f6c3"}.fa-cloud-moon-rain:before{content:"\f73c"}.fa-cloud-rain:before{content:"\f73d"}.fa-cloud-showers-heavy:before{content:"\f740"}.fa-cloud-sun:before{content:"\f6c4"}.fa-cloud-sun-rain:before{content:"\f743"}.fa-cloud-upload-alt:before{content:"\f382"}.fa-cloudflare:before{content:"\e07d"}.fa-cloudscale:before{content:"\f383"}.fa-cloudsmith:before{content:"\f384"}.fa-cloudversify:before{content:"\f385"}.fa-cocktail:before{content:"\f561"}.fa-code:before{content:"\f121"}.fa-code-branch:before{content:"\f126"}.fa-codepen:before{content:"\f1cb"}.fa-codiepie:before{content:"\f284"}.fa-coffee:before{content:"\f0f4"}.fa-cog:before{content:"\f013"}.fa-cogs:before{content:"\f085"}.fa-coins:before{content:"\f51e"}.fa-columns:before{content:"\f0db"}.fa-comment:before{content:"\f075"}.fa-comment-alt:before{content:"\f27a"}.fa-comment-dollar:before{content:"\f651"}.fa-comment-dots:before{content:"\f4ad"}.fa-comment-medical:before{content:"\f7f5"}.fa-comment-slash:before{content:"\f4b3"}.fa-comments:before{content:"\f086"}.fa-comments-dollar:before{content:"\f653"}.fa-compact-disc:before{content:"\f51f"}.fa-compass:before{content:"\f14e"}.fa-compress:before{content:"\f066"}.fa-compress-alt:before{content:"\f422"}.fa-compress-arrows-alt:before{content:"\f78c"}.fa-concierge-bell:before{content:"\f562"}.fa-confluence:before{content:"\f78d"}.fa-connectdevelop:before{content:"\f20e"}.fa-contao:before{content:"\f26d"}.fa-cookie:before{content:"\f563"}.fa-cookie-bite:before{content:"\f564"}.fa-copy:before{content:"\f0c5"}.fa-copyright:before{content:"\f1f9"}.fa-cotton-bureau:before{content:"\f89e"}.fa-couch:before{content:"\f4b8"}.fa-cpanel:before{content:"\f388"}.fa-creative-commons:before{content:"\f25e"}.fa-creative-commons-by:before{content:"\f4e7"}.fa-creative-commons-nc:before{content:"\f4e8"}.fa-creative-commons-nc-eu:before{content:"\f4e9"}.fa-creative-commons-nc-jp:before{content:"\f4ea"}.fa-creative-commons-nd:before{content:"\f4eb"}.fa-creative-commons-pd:before{content:"\f4ec"}.fa-creative-commons-pd-alt:before{content:"\f4ed"}.fa-creative-commons-remix:before{content:"\f4ee"}.fa-creative-commons-sa:before{content:"\f4ef"}.fa-creative-commons-sampling:before{content:"\f4f0"}.fa-creative-commons-sampling-plus:before{content:"\f4f1"}.fa-creative-commons-share:before{content:"\f4f2"}.fa-creative-commons-zero:before{content:"\f4f3"}.fa-credit-card:before{content:"\f09d"}.fa-critical-role:before{content:"\f6c9"}.fa-crop:before{content:"\f125"}.fa-crop-alt:before{content:"\f565"}.fa-cross:before{content:"\f654"}.fa-crosshairs:before{content:"\f05b"}.fa-crow:before{content:"\f520"}.fa-crown:before{content:"\f521"}.fa-crutch:before{content:"\f7f7"}.fa-css3:before{content:"\f13c"}.fa-css3-alt:before{content:"\f38b"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-cut:before{content:"\f0c4"}.fa-cuttlefish:before{content:"\f38c"}.fa-d-and-d:before{content:"\f38d"}.fa-d-and-d-beyond:before{content:"\f6ca"}.fa-dailymotion:before{content:"\e052"}.fa-dashcube:before{content:"\f210"}.fa-database:before{content:"\f1c0"}.fa-deaf:before{content:"\f2a4"}.fa-deezer:before{content:"\e077"}.fa-delicious:before{content:"\f1a5"}.fa-democrat:before{content:"\f747"}.fa-deploydog:before{content:"\f38e"}.fa-deskpro:before{content:"\f38f"}.fa-desktop:before{content:"\f108"}.fa-dev:before{content:"\f6cc"}.fa-deviantart:before{content:"\f1bd"}.fa-dharmachakra:before{content:"\f655"}.fa-dhl:before{content:"\f790"}.fa-diagnoses:before{content:"\f470"}.fa-diaspora:before{content:"\f791"}.fa-dice:before{content:"\f522"}.fa-dice-d20:before{content:"\f6cf"}.fa-dice-d6:before{content:"\f6d1"}.fa-dice-five:before{content:"\f523"}.fa-dice-four:before{content:"\f524"}.fa-dice-one:before{content:"\f525"}.fa-dice-six:before{content:"\f526"}.fa-dice-three:before{content:"\f527"}.fa-dice-two:before{content:"\f528"}.fa-digg:before{content:"\f1a6"}.fa-digital-ocean:before{content:"\f391"}.fa-digital-tachograph:before{content:"\f566"}.fa-directions:before{content:"\f5eb"}.fa-discord:before{content:"\f392"}.fa-discourse:before{content:"\f393"}.fa-disease:before{content:"\f7fa"}.fa-divide:before{content:"\f529"}.fa-dizzy:before{content:"\f567"}.fa-dna:before{content:"\f471"}.fa-dochub:before{content:"\f394"}.fa-docker:before{content:"\f395"}.fa-dog:before{content:"\f6d3"}.fa-dollar-sign:before{content:"\f155"}.fa-dolly:before{content:"\f472"}.fa-dolly-flatbed:before{content:"\f474"}.fa-donate:before{content:"\f4b9"}.fa-door-closed:before{content:"\f52a"}.fa-door-open:before{content:"\f52b"}.fa-dot-circle:before{content:"\f192"}.fa-dove:before{content:"\f4ba"}.fa-download:before{content:"\f019"}.fa-draft2digital:before{content:"\f396"}.fa-drafting-compass:before{content:"\f568"}.fa-dragon:before{content:"\f6d5"}.fa-draw-polygon:before{content:"\f5ee"}.fa-dribbble:before{content:"\f17d"}.fa-dribbble-square:before{content:"\f397"}.fa-dropbox:before{content:"\f16b"}.fa-drum:before{content:"\f569"}.fa-drum-steelpan:before{content:"\f56a"}.fa-drumstick-bite:before{content:"\f6d7"}.fa-drupal:before{content:"\f1a9"}.fa-dumbbell:before{content:"\f44b"}.fa-dumpster:before{content:"\f793"}.fa-dumpster-fire:before{content:"\f794"}.fa-dungeon:before{content:"\f6d9"}.fa-dyalog:before{content:"\f399"}.fa-earlybirds:before{content:"\f39a"}.fa-ebay:before{content:"\f4f4"}.fa-edge:before{content:"\f282"}.fa-edge-legacy:before{content:"\e078"}.fa-edit:before{content:"\f044"}.fa-egg:before{content:"\f7fb"}.fa-eject:before{content:"\f052"}.fa-elementor:before{content:"\f430"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-ello:before{content:"\f5f1"}.fa-ember:before{content:"\f423"}.fa-empire:before{content:"\f1d1"}.fa-envelope:before{content:"\f0e0"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-text:before{content:"\f658"}.fa-envelope-square:before{content:"\f199"}.fa-envira:before{content:"\f299"}.fa-equals:before{content:"\f52c"}.fa-eraser:before{content:"\f12d"}.fa-erlang:before{content:"\f39d"}.fa-ethereum:before{content:"\f42e"}.fa-ethernet:before{content:"\f796"}.fa-etsy:before{content:"\f2d7"}.fa-euro-sign:before{content:"\f153"}.fa-evernote:before{content:"\f839"}.fa-exchange-alt:before{content:"\f362"}.fa-exclamation:before{content:"\f12a"}.fa-exclamation-circle:before{content:"\f06a"}.fa-exclamation-triangle:before{content:"\f071"}.fa-expand:before{content:"\f065"}.fa-expand-alt:before{content:"\f424"}.fa-expand-arrows-alt:before{content:"\f31e"}.fa-expeditedssl:before{content:"\f23e"}.fa-external-link-alt:before{content:"\f35d"}.fa-external-link-square-alt:before{content:"\f360"}.fa-eye:before{content:"\f06e"}.fa-eye-dropper:before{content:"\f1fb"}.fa-eye-slash:before{content:"\f070"}.fa-facebook:before{content:"\f09a"}.fa-facebook-f:before{content:"\f39e"}.fa-facebook-messenger:before{content:"\f39f"}.fa-facebook-square:before{content:"\f082"}.fa-fan:before{content:"\f863"}.fa-fantasy-flight-games:before{content:"\f6dc"}.fa-fast-backward:before{content:"\f049"}.fa-fast-forward:before{content:"\f050"}.fa-faucet:before{content:"\e005"}.fa-fax:before{content:"\f1ac"}.fa-feather:before{content:"\f52d"}.fa-feather-alt:before{content:"\f56b"}.fa-fedex:before{content:"\f797"}.fa-fedora:before{content:"\f798"}.fa-female:before{content:"\f182"}.fa-fighter-jet:before{content:"\f0fb"}.fa-figma:before{content:"\f799"}.fa-file:before{content:"\f15b"}.fa-file-alt:before{content:"\f15c"}.fa-file-archive:before{content:"\f1c6"}.fa-file-audio:before{content:"\f1c7"}.fa-file-code:before{content:"\f1c9"}.fa-file-contract:before{content:"\f56c"}.fa-file-csv:before{content:"\f6dd"}.fa-file-download:before{content:"\f56d"}.fa-file-excel:before{content:"\f1c3"}.fa-file-export:before{content:"\f56e"}.fa-file-image:before{content:"\f1c5"}.fa-file-import:before{content:"\f56f"}.fa-file-invoice:before{content:"\f570"}.fa-file-invoice-dollar:before{content:"\f571"}.fa-file-medical:before{content:"\f477"}.fa-file-medical-alt:before{content:"\f478"}.fa-file-pdf:before{content:"\f1c1"}.fa-file-powerpoint:before{content:"\f1c4"}.fa-file-prescription:before{content:"\f572"}.fa-file-signature:before{content:"\f573"}.fa-file-upload:before{content:"\f574"}.fa-file-video:before{content:"\f1c8"}.fa-file-word:before{content:"\f1c2"}.fa-fill:before{content:"\f575"}.fa-fill-drip:before{content:"\f576"}.fa-film:before{content:"\f008"}.fa-filter:before{content:"\f0b0"}.fa-fingerprint:before{content:"\f577"}.fa-fire:before{content:"\f06d"}.fa-fire-alt:before{content:"\f7e4"}.fa-fire-extinguisher:before{content:"\f134"}.fa-firefox:before{content:"\f269"}.fa-firefox-browser:before{content:"\e007"}.fa-first-aid:before{content:"\f479"}.fa-first-order:before{content:"\f2b0"}.fa-first-order-alt:before{content:"\f50a"}.fa-firstdraft:before{content:"\f3a1"}.fa-fish:before{content:"\f578"}.fa-fist-raised:before{content:"\f6de"}.fa-flag:before{content:"\f024"}.fa-flag-checkered:before{content:"\f11e"}.fa-flag-usa:before{content:"\f74d"}.fa-flask:before{content:"\f0c3"}.fa-flickr:before{content:"\f16e"}.fa-flipboard:before{content:"\f44d"}.fa-flushed:before{content:"\f579"}.fa-fly:before{content:"\f417"}.fa-folder:before{content:"\f07b"}.fa-folder-minus:before{content:"\f65d"}.fa-folder-open:before{content:"\f07c"}.fa-folder-plus:before{content:"\f65e"}.fa-font:before{content:"\f031"}.fa-font-awesome:before{content:"\f2b4"}.fa-font-awesome-alt:before{content:"\f35c"}.fa-font-awesome-flag:before{content:"\f425"}.fa-font-awesome-logo-full:before{content:"\f4e6"}.fa-fonticons:before{content:"\f280"}.fa-fonticons-fi:before{content:"\f3a2"}.fa-football-ball:before{content:"\f44e"}.fa-fort-awesome:before{content:"\f286"}.fa-fort-awesome-alt:before{content:"\f3a3"}.fa-forumbee:before{content:"\f211"}.fa-forward:before{content:"\f04e"}.fa-foursquare:before{content:"\f180"}.fa-free-code-camp:before{content:"\f2c5"}.fa-freebsd:before{content:"\f3a4"}.fa-frog:before{content:"\f52e"}.fa-frown:before{content:"\f119"}.fa-frown-open:before{content:"\f57a"}.fa-fulcrum:before{content:"\f50b"}.fa-funnel-dollar:before{content:"\f662"}.fa-futbol:before{content:"\f1e3"}.fa-galactic-republic:before{content:"\f50c"}.fa-galactic-senate:before{content:"\f50d"}.fa-gamepad:before{content:"\f11b"}.fa-gas-pump:before{content:"\f52f"}.fa-gavel:before{content:"\f0e3"}.fa-gem:before{content:"\f3a5"}.fa-genderless:before{content:"\f22d"}.fa-get-pocket:before{content:"\f265"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-ghost:before{content:"\f6e2"}.fa-gift:before{content:"\f06b"}.fa-gifts:before{content:"\f79c"}.fa-git:before{content:"\f1d3"}.fa-git-alt:before{content:"\f841"}.fa-git-square:before{content:"\f1d2"}.fa-github:before{content:"\f09b"}.fa-github-alt:before{content:"\f113"}.fa-github-square:before{content:"\f092"}.fa-gitkraken:before{content:"\f3a6"}.fa-gitlab:before{content:"\f296"}.fa-gitter:before{content:"\f426"}.fa-glass-cheers:before{content:"\f79f"}.fa-glass-martini:before{content:"\f000"}.fa-glass-martini-alt:before{content:"\f57b"}.fa-glass-whiskey:before{content:"\f7a0"}.fa-glasses:before{content:"\f530"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-globe:before{content:"\f0ac"}.fa-globe-africa:before{content:"\f57c"}.fa-globe-americas:before{content:"\f57d"}.fa-globe-asia:before{content:"\f57e"}.fa-globe-europe:before{content:"\f7a2"}.fa-gofore:before{content:"\f3a7"}.fa-golf-ball:before{content:"\f450"}.fa-goodreads:before{content:"\f3a8"}.fa-goodreads-g:before{content:"\f3a9"}.fa-google:before{content:"\f1a0"}.fa-google-drive:before{content:"\f3aa"}.fa-google-pay:before{content:"\e079"}.fa-google-play:before{content:"\f3ab"}.fa-google-plus:before{content:"\f2b3"}.fa-google-plus-g:before{content:"\f0d5"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-wallet:before{content:"\f1ee"}.fa-gopuram:before{content:"\f664"}.fa-graduation-cap:before{content:"\f19d"}.fa-gratipay:before{content:"\f184"}.fa-grav:before{content:"\f2d6"}.fa-greater-than:before{content:"\f531"}.fa-greater-than-equal:before{content:"\f532"}.fa-grimace:before{content:"\f57f"}.fa-grin:before{content:"\f580"}.fa-grin-alt:before{content:"\f581"}.fa-grin-beam:before{content:"\f582"}.fa-grin-beam-sweat:before{content:"\f583"}.fa-grin-hearts:before{content:"\f584"}.fa-grin-squint:before{content:"\f585"}.fa-grin-squint-tears:before{content:"\f586"}.fa-grin-stars:before{content:"\f587"}.fa-grin-tears:before{content:"\f588"}.fa-grin-tongue:before{content:"\f589"}.fa-grin-tongue-squint:before{content:"\f58a"}.fa-grin-tongue-wink:before{content:"\f58b"}.fa-grin-wink:before{content:"\f58c"}.fa-grip-horizontal:before{content:"\f58d"}.fa-grip-lines:before{content:"\f7a4"}.fa-grip-lines-vertical:before{content:"\f7a5"}.fa-grip-vertical:before{content:"\f58e"}.fa-gripfire:before{content:"\f3ac"}.fa-grunt:before{content:"\f3ad"}.fa-guilded:before{content:"\e07e"}.fa-guitar:before{content:"\f7a6"}.fa-gulp:before{content:"\f3ae"}.fa-h-square:before{content:"\f0fd"}.fa-hacker-news:before{content:"\f1d4"}.fa-hacker-news-square:before{content:"\f3af"}.fa-hackerrank:before{content:"\f5f7"}.fa-hamburger:before{content:"\f805"}.fa-hammer:before{content:"\f6e3"}.fa-hamsa:before{content:"\f665"}.fa-hand-holding:before{content:"\f4bd"}.fa-hand-holding-heart:before{content:"\f4be"}.fa-hand-holding-medical:before{content:"\e05c"}.fa-hand-holding-usd:before{content:"\f4c0"}.fa-hand-holding-water:before{content:"\f4c1"}.fa-hand-lizard:before{content:"\f258"}.fa-hand-middle-finger:before{content:"\f806"}.fa-hand-paper:before{content:"\f256"}.fa-hand-peace:before{content:"\f25b"}.fa-hand-point-down:before{content:"\f0a7"}.fa-hand-point-left:before{content:"\f0a5"}.fa-hand-point-right:before{content:"\f0a4"}.fa-hand-point-up:before{content:"\f0a6"}.fa-hand-pointer:before{content:"\f25a"}.fa-hand-rock:before{content:"\f255"}.fa-hand-scissors:before{content:"\f257"}.fa-hand-sparkles:before{content:"\e05d"}.fa-hand-spock:before{content:"\f259"}.fa-hands:before{content:"\f4c2"}.fa-hands-helping:before{content:"\f4c4"}.fa-hands-wash:before{content:"\e05e"}.fa-handshake:before{content:"\f2b5"}.fa-handshake-alt-slash:before{content:"\e05f"}.fa-handshake-slash:before{content:"\e060"}.fa-hanukiah:before{content:"\f6e6"}.fa-hard-hat:before{content:"\f807"}.fa-hashtag:before{content:"\f292"}.fa-hat-cowboy:before{content:"\f8c0"}.fa-hat-cowboy-side:before{content:"\f8c1"}.fa-hat-wizard:before{content:"\f6e8"}.fa-hdd:before{content:"\f0a0"}.fa-head-side-cough:before{content:"\e061"}.fa-head-side-cough-slash:before{content:"\e062"}.fa-head-side-mask:before{content:"\e063"}.fa-head-side-virus:before{content:"\e064"}.fa-heading:before{content:"\f1dc"}.fa-headphones:before{content:"\f025"}.fa-headphones-alt:before{content:"\f58f"}.fa-headset:before{content:"\f590"}.fa-heart:before{content:"\f004"}.fa-heart-broken:before{content:"\f7a9"}.fa-heartbeat:before{content:"\f21e"}.fa-helicopter:before{content:"\f533"}.fa-highlighter:before{content:"\f591"}.fa-hiking:before{content:"\f6ec"}.fa-hippo:before{content:"\f6ed"}.fa-hips:before{content:"\f452"}.fa-hire-a-helper:before{content:"\f3b0"}.fa-history:before{content:"\f1da"}.fa-hive:before{content:"\e07f"}.fa-hockey-puck:before{content:"\f453"}.fa-holly-berry:before{content:"\f7aa"}.fa-home:before{content:"\f015"}.fa-hooli:before{content:"\f427"}.fa-hornbill:before{content:"\f592"}.fa-horse:before{content:"\f6f0"}.fa-horse-head:before{content:"\f7ab"}.fa-hospital:before{content:"\f0f8"}.fa-hospital-alt:before{content:"\f47d"}.fa-hospital-symbol:before{content:"\f47e"}.fa-hospital-user:before{content:"\f80d"}.fa-hot-tub:before{content:"\f593"}.fa-hotdog:before{content:"\f80f"}.fa-hotel:before{content:"\f594"}.fa-hotjar:before{content:"\f3b1"}.fa-hourglass:before{content:"\f254"}.fa-hourglass-end:before{content:"\f253"}.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-start:before{content:"\f251"}.fa-house-damage:before{content:"\f6f1"}.fa-house-user:before{content:"\e065"}.fa-houzz:before{content:"\f27c"}.fa-hryvnia:before{content:"\f6f2"}.fa-html5:before{content:"\f13b"}.fa-hubspot:before{content:"\f3b2"}.fa-i-cursor:before{content:"\f246"}.fa-ice-cream:before{content:"\f810"}.fa-icicles:before{content:"\f7ad"}.fa-icons:before{content:"\f86d"}.fa-id-badge:before{content:"\f2c1"}.fa-id-card:before{content:"\f2c2"}.fa-id-card-alt:before{content:"\f47f"}.fa-ideal:before{content:"\e013"}.fa-igloo:before{content:"\f7ae"}.fa-image:before{content:"\f03e"}.fa-images:before{content:"\f302"}.fa-imdb:before{content:"\f2d8"}.fa-inbox:before{content:"\f01c"}.fa-indent:before{content:"\f03c"}.fa-industry:before{content:"\f275"}.fa-infinity:before{content:"\f534"}.fa-info:before{content:"\f129"}.fa-info-circle:before{content:"\f05a"}.fa-innosoft:before{content:"\e080"}.fa-instagram:before{content:"\f16d"}.fa-instagram-square:before{content:"\e055"}.fa-instalod:before{content:"\e081"}.fa-intercom:before{content:"\f7af"}.fa-internet-explorer:before{content:"\f26b"}.fa-invision:before{content:"\f7b0"}.fa-ioxhost:before{content:"\f208"}.fa-italic:before{content:"\f033"}.fa-itch-io:before{content:"\f83a"}.fa-itunes:before{content:"\f3b4"}.fa-itunes-note:before{content:"\f3b5"}.fa-java:before{content:"\f4e4"}.fa-jedi:before{content:"\f669"}.fa-jedi-order:before{content:"\f50e"}.fa-jenkins:before{content:"\f3b6"}.fa-jira:before{content:"\f7b1"}.fa-joget:before{content:"\f3b7"}.fa-joint:before{content:"\f595"}.fa-joomla:before{content:"\f1aa"}.fa-journal-whills:before{content:"\f66a"}.fa-js:before{content:"\f3b8"}.fa-js-square:before{content:"\f3b9"}.fa-jsfiddle:before{content:"\f1cc"}.fa-kaaba:before{content:"\f66b"}.fa-kaggle:before{content:"\f5fa"}.fa-key:before{content:"\f084"}.fa-keybase:before{content:"\f4f5"}.fa-keyboard:before{content:"\f11c"}.fa-keycdn:before{content:"\f3ba"}.fa-khanda:before{content:"\f66d"}.fa-kickstarter:before{content:"\f3bb"}.fa-kickstarter-k:before{content:"\f3bc"}.fa-kiss:before{content:"\f596"}.fa-kiss-beam:before{content:"\f597"}.fa-kiss-wink-heart:before{content:"\f598"}.fa-kiwi-bird:before{content:"\f535"}.fa-korvue:before{content:"\f42f"}.fa-landmark:before{content:"\f66f"}.fa-language:before{content:"\f1ab"}.fa-laptop:before{content:"\f109"}.fa-laptop-code:before{content:"\f5fc"}.fa-laptop-house:before{content:"\e066"}.fa-laptop-medical:before{content:"\f812"}.fa-laravel:before{content:"\f3bd"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-laugh:before{content:"\f599"}.fa-laugh-beam:before{content:"\f59a"}.fa-laugh-squint:before{content:"\f59b"}.fa-laugh-wink:before{content:"\f59c"}.fa-layer-group:before{content:"\f5fd"}.fa-leaf:before{content:"\f06c"}.fa-leanpub:before{content:"\f212"}.fa-lemon:before{content:"\f094"}.fa-less:before{content:"\f41d"}.fa-less-than:before{content:"\f536"}.fa-less-than-equal:before{content:"\f537"}.fa-level-down-alt:before{content:"\f3be"}.fa-level-up-alt:before{content:"\f3bf"}.fa-life-ring:before{content:"\f1cd"}.fa-lightbulb:before{content:"\f0eb"}.fa-line:before{content:"\f3c0"}.fa-link:before{content:"\f0c1"}.fa-linkedin:before{content:"\f08c"}.fa-linkedin-in:before{content:"\f0e1"}.fa-linode:before{content:"\f2b8"}.fa-linux:before{content:"\f17c"}.fa-lira-sign:before{content:"\f195"}.fa-list:before{content:"\f03a"}.fa-list-alt:before{content:"\f022"}.fa-list-ol:before{content:"\f0cb"}.fa-list-ul:before{content:"\f0ca"}.fa-location-arrow:before{content:"\f124"}.fa-lock:before{content:"\f023"}.fa-lock-open:before{content:"\f3c1"}.fa-long-arrow-alt-down:before{content:"\f309"}.fa-long-arrow-alt-left:before{content:"\f30a"}.fa-long-arrow-alt-right:before{content:"\f30b"}.fa-long-arrow-alt-up:before{content:"\f30c"}.fa-low-vision:before{content:"\f2a8"}.fa-luggage-cart:before{content:"\f59d"}.fa-lungs:before{content:"\f604"}.fa-lungs-virus:before{content:"\e067"}.fa-lyft:before{content:"\f3c3"}.fa-magento:before{content:"\f3c4"}.fa-magic:before{content:"\f0d0"}.fa-magnet:before{content:"\f076"}.fa-mail-bulk:before{content:"\f674"}.fa-mailchimp:before{content:"\f59e"}.fa-male:before{content:"\f183"}.fa-mandalorian:before{content:"\f50f"}.fa-map:before{content:"\f279"}.fa-map-marked:before{content:"\f59f"}.fa-map-marked-alt:before{content:"\f5a0"}.fa-map-marker:before{content:"\f041"}.fa-map-marker-alt:before{content:"\f3c5"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-markdown:before{content:"\f60f"}.fa-marker:before{content:"\f5a1"}.fa-mars:before{content:"\f222"}.fa-mars-double:before{content:"\f227"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mask:before{content:"\f6fa"}.fa-mastodon:before{content:"\f4f6"}.fa-maxcdn:before{content:"\f136"}.fa-mdb:before{content:"\f8ca"}.fa-medal:before{content:"\f5a2"}.fa-medapps:before{content:"\f3c6"}.fa-medium:before{content:"\f23a"}.fa-medium-m:before{content:"\f3c7"}.fa-medkit:before{content:"\f0fa"}.fa-medrt:before{content:"\f3c8"}.fa-meetup:before{content:"\f2e0"}.fa-megaport:before{content:"\f5a3"}.fa-meh:before{content:"\f11a"}.fa-meh-blank:before{content:"\f5a4"}.fa-meh-rolling-eyes:before{content:"\f5a5"}.fa-memory:before{content:"\f538"}.fa-mendeley:before{content:"\f7b3"}.fa-menorah:before{content:"\f676"}.fa-mercury:before{content:"\f223"}.fa-meteor:before{content:"\f753"}.fa-microblog:before{content:"\e01a"}.fa-microchip:before{content:"\f2db"}.fa-microphone:before{content:"\f130"}.fa-microphone-alt:before{content:"\f3c9"}.fa-microphone-alt-slash:before{content:"\f539"}.fa-microphone-slash:before{content:"\f131"}.fa-microscope:before{content:"\f610"}.fa-microsoft:before{content:"\f3ca"}.fa-minus:before{content:"\f068"}.fa-minus-circle:before{content:"\f056"}.fa-minus-square:before{content:"\f146"}.fa-mitten:before{content:"\f7b5"}.fa-mix:before{content:"\f3cb"}.fa-mixcloud:before{content:"\f289"}.fa-mixer:before{content:"\e056"}.fa-mizuni:before{content:"\f3cc"}.fa-mobile:before{content:"\f10b"}.fa-mobile-alt:before{content:"\f3cd"}.fa-modx:before{content:"\f285"}.fa-monero:before{content:"\f3d0"}.fa-money-bill:before{content:"\f0d6"}.fa-money-bill-alt:before{content:"\f3d1"}.fa-money-bill-wave:before{content:"\f53a"}.fa-money-bill-wave-alt:before{content:"\f53b"}.fa-money-check:before{content:"\f53c"}.fa-money-check-alt:before{content:"\f53d"}.fa-monument:before{content:"\f5a6"}.fa-moon:before{content:"\f186"}.fa-mortar-pestle:before{content:"\f5a7"}.fa-mosque:before{content:"\f678"}.fa-motorcycle:before{content:"\f21c"}.fa-mountain:before{content:"\f6fc"}.fa-mouse:before{content:"\f8cc"}.fa-mouse-pointer:before{content:"\f245"}.fa-mug-hot:before{content:"\f7b6"}.fa-music:before{content:"\f001"}.fa-napster:before{content:"\f3d2"}.fa-neos:before{content:"\f612"}.fa-network-wired:before{content:"\f6ff"}.fa-neuter:before{content:"\f22c"}.fa-newspaper:before{content:"\f1ea"}.fa-nimblr:before{content:"\f5a8"}.fa-node:before{content:"\f419"}.fa-node-js:before{content:"\f3d3"}.fa-not-equal:before{content:"\f53e"}.fa-notes-medical:before{content:"\f481"}.fa-npm:before{content:"\f3d4"}.fa-ns8:before{content:"\f3d5"}.fa-nutritionix:before{content:"\f3d6"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-octopus-deploy:before{content:"\e082"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-oil-can:before{content:"\f613"}.fa-old-republic:before{content:"\f510"}.fa-om:before{content:"\f679"}.fa-opencart:before{content:"\f23d"}.fa-openid:before{content:"\f19b"}.fa-opera:before{content:"\f26a"}.fa-optin-monster:before{content:"\f23c"}.fa-orcid:before{content:"\f8d2"}.fa-osi:before{content:"\f41a"}.fa-otter:before{content:"\f700"}.fa-outdent:before{content:"\f03b"}.fa-page4:before{content:"\f3d7"}.fa-pagelines:before{content:"\f18c"}.fa-pager:before{content:"\f815"}.fa-paint-brush:before{content:"\f1fc"}.fa-paint-roller:before{content:"\f5aa"}.fa-palette:before{content:"\f53f"}.fa-palfed:before{content:"\f3d8"}.fa-pallet:before{content:"\f482"}.fa-paper-plane:before{content:"\f1d8"}.fa-paperclip:before{content:"\f0c6"}.fa-parachute-box:before{content:"\f4cd"}.fa-paragraph:before{content:"\f1dd"}.fa-parking:before{content:"\f540"}.fa-passport:before{content:"\f5ab"}.fa-pastafarianism:before{content:"\f67b"}.fa-paste:before{content:"\f0ea"}.fa-patreon:before{content:"\f3d9"}.fa-pause:before{content:"\f04c"}.fa-pause-circle:before{content:"\f28b"}.fa-paw:before{content:"\f1b0"}.fa-paypal:before{content:"\f1ed"}.fa-peace:before{content:"\f67c"}.fa-pen:before{content:"\f304"}.fa-pen-alt:before{content:"\f305"}.fa-pen-fancy:before{content:"\f5ac"}.fa-pen-nib:before{content:"\f5ad"}.fa-pen-square:before{content:"\f14b"}.fa-pencil-alt:before{content:"\f303"}.fa-pencil-ruler:before{content:"\f5ae"}.fa-penny-arcade:before{content:"\f704"}.fa-people-arrows:before{content:"\e068"}.fa-people-carry:before{content:"\f4ce"}.fa-pepper-hot:before{content:"\f816"}.fa-perbyte:before{content:"\e083"}.fa-percent:before{content:"\f295"}.fa-percentage:before{content:"\f541"}.fa-periscope:before{content:"\f3da"}.fa-person-booth:before{content:"\f756"}.fa-phabricator:before{content:"\f3db"}.fa-phoenix-framework:before{content:"\f3dc"}.fa-phoenix-squadron:before{content:"\f511"}.fa-phone:before{content:"\f095"}.fa-phone-alt:before{content:"\f879"}.fa-phone-slash:before{content:"\f3dd"}.fa-phone-square:before{content:"\f098"}.fa-phone-square-alt:before{content:"\f87b"}.fa-phone-volume:before{content:"\f2a0"}.fa-photo-video:before{content:"\f87c"}.fa-php:before{content:"\f457"}.fa-pied-piper:before{content:"\f2ae"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-pied-piper-hat:before{content:"\f4e5"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-square:before{content:"\e01e"}.fa-piggy-bank:before{content:"\f4d3"}.fa-pills:before{content:"\f484"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-p:before{content:"\f231"}.fa-pinterest-square:before{content:"\f0d3"}.fa-pizza-slice:before{content:"\f818"}.fa-place-of-worship:before{content:"\f67f"}.fa-plane:before{content:"\f072"}.fa-plane-arrival:before{content:"\f5af"}.fa-plane-departure:before{content:"\f5b0"}.fa-plane-slash:before{content:"\e069"}.fa-play:before{content:"\f04b"}.fa-play-circle:before{content:"\f144"}.fa-playstation:before{content:"\f3df"}.fa-plug:before{content:"\f1e6"}.fa-plus:before{content:"\f067"}.fa-plus-circle:before{content:"\f055"}.fa-plus-square:before{content:"\f0fe"}.fa-podcast:before{content:"\f2ce"}.fa-poll:before{content:"\f681"}.fa-poll-h:before{content:"\f682"}.fa-poo:before{content:"\f2fe"}.fa-poo-storm:before{content:"\f75a"}.fa-poop:before{content:"\f619"}.fa-portrait:before{content:"\f3e0"}.fa-pound-sign:before{content:"\f154"}.fa-power-off:before{content:"\f011"}.fa-pray:before{content:"\f683"}.fa-praying-hands:before{content:"\f684"}.fa-prescription:before{content:"\f5b1"}.fa-prescription-bottle:before{content:"\f485"}.fa-prescription-bottle-alt:before{content:"\f486"}.fa-print:before{content:"\f02f"}.fa-procedures:before{content:"\f487"}.fa-product-hunt:before{content:"\f288"}.fa-project-diagram:before{content:"\f542"}.fa-pump-medical:before{content:"\e06a"}.fa-pump-soap:before{content:"\e06b"}.fa-pushed:before{content:"\f3e1"}.fa-puzzle-piece:before{content:"\f12e"}.fa-python:before{content:"\f3e2"}.fa-qq:before{content:"\f1d6"}.fa-qrcode:before{content:"\f029"}.fa-question:before{content:"\f128"}.fa-question-circle:before{content:"\f059"}.fa-quidditch:before{content:"\f458"}.fa-quinscape:before{content:"\f459"}.fa-quora:before{content:"\f2c4"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-quran:before{content:"\f687"}.fa-r-project:before{content:"\f4f7"}.fa-radiation:before{content:"\f7b9"}.fa-radiation-alt:before{content:"\f7ba"}.fa-rainbow:before{content:"\f75b"}.fa-random:before{content:"\f074"}.fa-raspberry-pi:before{content:"\f7bb"}.fa-ravelry:before{content:"\f2d9"}.fa-react:before{content:"\f41b"}.fa-reacteurope:before{content:"\f75d"}.fa-readme:before{content:"\f4d5"}.fa-rebel:before{content:"\f1d0"}.fa-receipt:before{content:"\f543"}.fa-record-vinyl:before{content:"\f8d9"}.fa-recycle:before{content:"\f1b8"}.fa-red-river:before{content:"\f3e3"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-alien:before{content:"\f281"}.fa-reddit-square:before{content:"\f1a2"}.fa-redhat:before{content:"\f7bc"}.fa-redo:before{content:"\f01e"}.fa-redo-alt:before{content:"\f2f9"}.fa-registered:before{content:"\f25d"}.fa-remove-format:before{content:"\f87d"}.fa-renren:before{content:"\f18b"}.fa-reply:before{content:"\f3e5"}.fa-reply-all:before{content:"\f122"}.fa-replyd:before{content:"\f3e6"}.fa-republican:before{content:"\f75e"}.fa-researchgate:before{content:"\f4f8"}.fa-resolving:before{content:"\f3e7"}.fa-restroom:before{content:"\f7bd"}.fa-retweet:before{content:"\f079"}.fa-rev:before{content:"\f5b2"}.fa-ribbon:before{content:"\f4d6"}.fa-ring:before{content:"\f70b"}.fa-road:before{content:"\f018"}.fa-robot:before{content:"\f544"}.fa-rocket:before{content:"\f135"}.fa-rocketchat:before{content:"\f3e8"}.fa-rockrms:before{content:"\f3e9"}.fa-route:before{content:"\f4d7"}.fa-rss:before{content:"\f09e"}.fa-rss-square:before{content:"\f143"}.fa-ruble-sign:before{content:"\f158"}.fa-ruler:before{content:"\f545"}.fa-ruler-combined:before{content:"\f546"}.fa-ruler-horizontal:before{content:"\f547"}.fa-ruler-vertical:before{content:"\f548"}.fa-running:before{content:"\f70c"}.fa-rupee-sign:before{content:"\f156"}.fa-rust:before{content:"\e07a"}.fa-sad-cry:before{content:"\f5b3"}.fa-sad-tear:before{content:"\f5b4"}.fa-safari:before{content:"\f267"}.fa-salesforce:before{content:"\f83b"}.fa-sass:before{content:"\f41e"}.fa-satellite:before{content:"\f7bf"}.fa-satellite-dish:before{content:"\f7c0"}.fa-save:before{content:"\f0c7"}.fa-schlix:before{content:"\f3ea"}.fa-school:before{content:"\f549"}.fa-screwdriver:before{content:"\f54a"}.fa-scribd:before{content:"\f28a"}.fa-scroll:before{content:"\f70e"}.fa-sd-card:before{content:"\f7c2"}.fa-search:before{content:"\f002"}.fa-search-dollar:before{content:"\f688"}.fa-search-location:before{content:"\f689"}.fa-search-minus:before{content:"\f010"}.fa-search-plus:before{content:"\f00e"}.fa-searchengin:before{content:"\f3eb"}.fa-seedling:before{content:"\f4d8"}.fa-sellcast:before{content:"\f2da"}.fa-sellsy:before{content:"\f213"}.fa-server:before{content:"\f233"}.fa-servicestack:before{content:"\f3ec"}.fa-shapes:before{content:"\f61f"}.fa-share:before{content:"\f064"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-share-square:before{content:"\f14d"}.fa-shekel-sign:before{content:"\f20b"}.fa-shield-alt:before{content:"\f3ed"}.fa-shield-virus:before{content:"\e06c"}.fa-ship:before{content:"\f21a"}.fa-shipping-fast:before{content:"\f48b"}.fa-shirtsinbulk:before{content:"\f214"}.fa-shoe-prints:before{content:"\f54b"}.fa-shopify:before{content:"\e057"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-shopping-cart:before{content:"\f07a"}.fa-shopware:before{content:"\f5b5"}.fa-shower:before{content:"\f2cc"}.fa-shuttle-van:before{content:"\f5b6"}.fa-sign:before{content:"\f4d9"}.fa-sign-in-alt:before{content:"\f2f6"}.fa-sign-language:before{content:"\f2a7"}.fa-sign-out-alt:before{content:"\f2f5"}.fa-signal:before{content:"\f012"}.fa-signature:before{content:"\f5b7"}.fa-sim-card:before{content:"\f7c4"}.fa-simplybuilt:before{content:"\f215"}.fa-sink:before{content:"\e06d"}.fa-sistrix:before{content:"\f3ee"}.fa-sitemap:before{content:"\f0e8"}.fa-sith:before{content:"\f512"}.fa-skating:before{content:"\f7c5"}.fa-sketch:before{content:"\f7c6"}.fa-skiing:before{content:"\f7c9"}.fa-skiing-nordic:before{content:"\f7ca"}.fa-skull:before{content:"\f54c"}.fa-skull-crossbones:before{content:"\f714"}.fa-skyatlas:before{content:"\f216"}.fa-skype:before{content:"\f17e"}.fa-slack:before{content:"\f198"}.fa-slack-hash:before{content:"\f3ef"}.fa-slash:before{content:"\f715"}.fa-sleigh:before{content:"\f7cc"}.fa-sliders-h:before{content:"\f1de"}.fa-slideshare:before{content:"\f1e7"}.fa-smile:before{content:"\f118"}.fa-smile-beam:before{content:"\f5b8"}.fa-smile-wink:before{content:"\f4da"}.fa-smog:before{content:"\f75f"}.fa-smoking:before{content:"\f48d"}.fa-smoking-ban:before{content:"\f54d"}.fa-sms:before{content:"\f7cd"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-snowboarding:before{content:"\f7ce"}.fa-snowflake:before{content:"\f2dc"}.fa-snowman:before{content:"\f7d0"}.fa-snowplow:before{content:"\f7d2"}.fa-soap:before{content:"\e06e"}.fa-socks:before{content:"\f696"}.fa-solar-panel:before{content:"\f5ba"}.fa-sort:before{content:"\f0dc"}.fa-sort-alpha-down:before{content:"\f15d"}.fa-sort-alpha-down-alt:before{content:"\f881"}.fa-sort-alpha-up:before{content:"\f15e"}.fa-sort-alpha-up-alt:before{content:"\f882"}.fa-sort-amount-down:before{content:"\f160"}.fa-sort-amount-down-alt:before{content:"\f884"}.fa-sort-amount-up:before{content:"\f161"}.fa-sort-amount-up-alt:before{content:"\f885"}.fa-sort-down:before{content:"\f0dd"}.fa-sort-numeric-down:before{content:"\f162"}.fa-sort-numeric-down-alt:before{content:"\f886"}.fa-sort-numeric-up:before{content:"\f163"}.fa-sort-numeric-up-alt:before{content:"\f887"}.fa-sort-up:before{content:"\f0de"}.fa-soundcloud:before{content:"\f1be"}.fa-sourcetree:before{content:"\f7d3"}.fa-spa:before{content:"\f5bb"}.fa-space-shuttle:before{content:"\f197"}.fa-speakap:before{content:"\f3f3"}.fa-speaker-deck:before{content:"\f83c"}.fa-spell-check:before{content:"\f891"}.fa-spider:before{content:"\f717"}.fa-spinner:before{content:"\f110"}.fa-splotch:before{content:"\f5bc"}.fa-spotify:before{content:"\f1bc"}.fa-spray-can:before{content:"\f5bd"}.fa-square:before{content:"\f0c8"}.fa-square-full:before{content:"\f45c"}.fa-square-root-alt:before{content:"\f698"}.fa-squarespace:before{content:"\f5be"}.fa-stack-exchange:before{content:"\f18d"}.fa-stack-overflow:before{content:"\f16c"}.fa-stackpath:before{content:"\f842"}.fa-stamp:before{content:"\f5bf"}.fa-star:before{content:"\f005"}.fa-star-and-crescent:before{content:"\f699"}.fa-star-half:before{content:"\f089"}.fa-star-half-alt:before{content:"\f5c0"}.fa-star-of-david:before{content:"\f69a"}.fa-star-of-life:before{content:"\f621"}.fa-staylinked:before{content:"\f3f5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-steam-symbol:before{content:"\f3f6"}.fa-step-backward:before{content:"\f048"}.fa-step-forward:before{content:"\f051"}.fa-stethoscope:before{content:"\f0f1"}.fa-sticker-mule:before{content:"\f3f7"}.fa-sticky-note:before{content:"\f249"}.fa-stop:before{content:"\f04d"}.fa-stop-circle:before{content:"\f28d"}.fa-stopwatch:before{content:"\f2f2"}.fa-stopwatch-20:before{content:"\e06f"}.fa-store:before{content:"\f54e"}.fa-store-alt:before{content:"\f54f"}.fa-store-alt-slash:before{content:"\e070"}.fa-store-slash:before{content:"\e071"}.fa-strava:before{content:"\f428"}.fa-stream:before{content:"\f550"}.fa-street-view:before{content:"\f21d"}.fa-strikethrough:before{content:"\f0cc"}.fa-stripe:before{content:"\f429"}.fa-stripe-s:before{content:"\f42a"}.fa-stroopwafel:before{content:"\f551"}.fa-studiovinari:before{content:"\f3f8"}.fa-stumbleupon:before{content:"\f1a4"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-subscript:before{content:"\f12c"}.fa-subway:before{content:"\f239"}.fa-suitcase:before{content:"\f0f2"}.fa-suitcase-rolling:before{content:"\f5c1"}.fa-sun:before{content:"\f185"}.fa-superpowers:before{content:"\f2dd"}.fa-superscript:before{content:"\f12b"}.fa-supple:before{content:"\f3f9"}.fa-surprise:before{content:"\f5c2"}.fa-suse:before{content:"\f7d6"}.fa-swatchbook:before{content:"\f5c3"}.fa-swift:before{content:"\f8e1"}.fa-swimmer:before{content:"\f5c4"}.fa-swimming-pool:before{content:"\f5c5"}.fa-symfony:before{content:"\f83d"}.fa-synagogue:before{content:"\f69b"}.fa-sync:before{content:"\f021"}.fa-sync-alt:before{content:"\f2f1"}.fa-syringe:before{content:"\f48e"}.fa-table:before{content:"\f0ce"}.fa-table-tennis:before{content:"\f45d"}.fa-tablet:before{content:"\f10a"}.fa-tablet-alt:before{content:"\f3fa"}.fa-tablets:before{content:"\f490"}.fa-tachometer-alt:before{content:"\f3fd"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-tape:before{content:"\f4db"}.fa-tasks:before{content:"\f0ae"}.fa-taxi:before{content:"\f1ba"}.fa-teamspeak:before{content:"\f4f9"}.fa-teeth:before{content:"\f62e"}.fa-teeth-open:before{content:"\f62f"}.fa-telegram:before{content:"\f2c6"}.fa-telegram-plane:before{content:"\f3fe"}.fa-temperature-high:before{content:"\f769"}.fa-temperature-low:before{content:"\f76b"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-tenge:before{content:"\f7d7"}.fa-terminal:before{content:"\f120"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-th:before{content:"\f00a"}.fa-th-large:before{content:"\f009"}.fa-th-list:before{content:"\f00b"}.fa-the-red-yeti:before{content:"\f69d"}.fa-theater-masks:before{content:"\f630"}.fa-themeco:before{content:"\f5c6"}.fa-themeisle:before{content:"\f2b2"}.fa-thermometer:before{content:"\f491"}.fa-thermometer-empty:before{content:"\f2cb"}.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-think-peaks:before{content:"\f731"}.fa-thumbs-down:before{content:"\f165"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbtack:before{content:"\f08d"}.fa-ticket-alt:before{content:"\f3ff"}.fa-tiktok:before{content:"\e07b"}.fa-times:before{content:"\f00d"}.fa-times-circle:before{content:"\f057"}.fa-tint:before{content:"\f043"}.fa-tint-slash:before{content:"\f5c7"}.fa-tired:before{content:"\f5c8"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-toilet:before{content:"\f7d8"}.fa-toilet-paper:before{content:"\f71e"}.fa-toilet-paper-slash:before{content:"\e072"}.fa-toolbox:before{content:"\f552"}.fa-tools:before{content:"\f7d9"}.fa-tooth:before{content:"\f5c9"}.fa-torah:before{content:"\f6a0"}.fa-torii-gate:before{content:"\f6a1"}.fa-tractor:before{content:"\f722"}.fa-trade-federation:before{content:"\f513"}.fa-trademark:before{content:"\f25c"}.fa-traffic-light:before{content:"\f637"}.fa-trailer:before{content:"\e041"}.fa-train:before{content:"\f238"}.fa-tram:before{content:"\f7da"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-trash:before{content:"\f1f8"}.fa-trash-alt:before{content:"\f2ed"}.fa-trash-restore:before{content:"\f829"}.fa-trash-restore-alt:before{content:"\f82a"}.fa-tree:before{content:"\f1bb"}.fa-trello:before{content:"\f181"}.fa-tripadvisor:before{content:"\f262"}.fa-trophy:before{content:"\f091"}.fa-truck:before{content:"\f0d1"}.fa-truck-loading:before{content:"\f4de"}.fa-truck-monster:before{content:"\f63b"}.fa-truck-moving:before{content:"\f4df"}.fa-truck-pickup:before{content:"\f63c"}.fa-tshirt:before{content:"\f553"}.fa-tty:before{content:"\f1e4"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-tv:before{content:"\f26c"}.fa-twitch:before{content:"\f1e8"}.fa-twitter:before{content:"\f099"}.fa-twitter-square:before{content:"\f081"}.fa-typo3:before{content:"\f42b"}.fa-uber:before{content:"\f402"}.fa-ubuntu:before{content:"\f7df"}.fa-uikit:before{content:"\f403"}.fa-umbraco:before{content:"\f8e8"}.fa-umbrella:before{content:"\f0e9"}.fa-umbrella-beach:before{content:"\f5ca"}.fa-uncharted:before{content:"\e084"}.fa-underline:before{content:"\f0cd"}.fa-undo:before{content:"\f0e2"}.fa-undo-alt:before{content:"\f2ea"}.fa-uniregistry:before{content:"\f404"}.fa-unity:before{content:"\e049"}.fa-universal-access:before{content:"\f29a"}.fa-university:before{content:"\f19c"}.fa-unlink:before{content:"\f127"}.fa-unlock:before{content:"\f09c"}.fa-unlock-alt:before{content:"\f13e"}.fa-unsplash:before{content:"\e07c"}.fa-untappd:before{content:"\f405"}.fa-upload:before{content:"\f093"}.fa-ups:before{content:"\f7e0"}.fa-usb:before{content:"\f287"}.fa-user:before{content:"\f007"}.fa-user-alt:before{content:"\f406"}.fa-user-alt-slash:before{content:"\f4fa"}.fa-user-astronaut:before{content:"\f4fb"}.fa-user-check:before{content:"\f4fc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-clock:before{content:"\f4fd"}.fa-user-cog:before{content:"\f4fe"}.fa-user-edit:before{content:"\f4ff"}.fa-user-friends:before{content:"\f500"}.fa-user-graduate:before{content:"\f501"}.fa-user-injured:before{content:"\f728"}.fa-user-lock:before{content:"\f502"}.fa-user-md:before{content:"\f0f0"}.fa-user-minus:before{content:"\f503"}.fa-user-ninja:before{content:"\f504"}.fa-user-nurse:before{content:"\f82f"}.fa-user-plus:before{content:"\f234"}.fa-user-secret:before{content:"\f21b"}.fa-user-shield:before{content:"\f505"}.fa-user-slash:before{content:"\f506"}.fa-user-tag:before{content:"\f507"}.fa-user-tie:before{content:"\f508"}.fa-user-times:before{content:"\f235"}.fa-users:before{content:"\f0c0"}.fa-users-cog:before{content:"\f509"}.fa-users-slash:before{content:"\e073"}.fa-usps:before{content:"\f7e1"}.fa-ussunnah:before{content:"\f407"}.fa-utensil-spoon:before{content:"\f2e5"}.fa-utensils:before{content:"\f2e7"}.fa-vaadin:before{content:"\f408"}.fa-vector-square:before{content:"\f5cb"}.fa-venus:before{content:"\f221"}.fa-venus-double:before{content:"\f226"}.fa-venus-mars:before{content:"\f228"}.fa-vest:before{content:"\e085"}.fa-vest-patches:before{content:"\e086"}.fa-viacoin:before{content:"\f237"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-vial:before{content:"\f492"}.fa-vials:before{content:"\f493"}.fa-viber:before{content:"\f409"}.fa-video:before{content:"\f03d"}.fa-video-slash:before{content:"\f4e2"}.fa-vihara:before{content:"\f6a7"}.fa-vimeo:before{content:"\f40a"}.fa-vimeo-square:before{content:"\f194"}.fa-vimeo-v:before{content:"\f27d"}.fa-vine:before{content:"\f1ca"}.fa-virus:before{content:"\e074"}.fa-virus-slash:before{content:"\e075"}.fa-viruses:before{content:"\e076"}.fa-vk:before{content:"\f189"}.fa-vnv:before{content:"\f40b"}.fa-voicemail:before{content:"\f897"}.fa-volleyball-ball:before{content:"\f45f"}.fa-volume-down:before{content:"\f027"}.fa-volume-mute:before{content:"\f6a9"}.fa-volume-off:before{content:"\f026"}.fa-volume-up:before{content:"\f028"}.fa-vote-yea:before{content:"\f772"}.fa-vr-cardboard:before{content:"\f729"}.fa-vuejs:before{content:"\f41f"}.fa-walking:before{content:"\f554"}.fa-wallet:before{content:"\f555"}.fa-warehouse:before{content:"\f494"}.fa-watchman-monitoring:before{content:"\e087"}.fa-water:before{content:"\f773"}.fa-wave-square:before{content:"\f83e"}.fa-waze:before{content:"\f83f"}.fa-weebly:before{content:"\f5cc"}.fa-weibo:before{content:"\f18a"}.fa-weight:before{content:"\f496"}.fa-weight-hanging:before{content:"\f5cd"}.fa-weixin:before{content:"\f1d7"}.fa-whatsapp:before{content:"\f232"}.fa-whatsapp-square:before{content:"\f40c"}.fa-wheelchair:before{content:"\f193"}.fa-whmcs:before{content:"\f40d"}.fa-wifi:before{content:"\f1eb"}.fa-wikipedia-w:before{content:"\f266"}.fa-wind:before{content:"\f72e"}.fa-window-close:before{content:"\f410"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-windows:before{content:"\f17a"}.fa-wine-bottle:before{content:"\f72f"}.fa-wine-glass:before{content:"\f4e3"}.fa-wine-glass-alt:before{content:"\f5ce"}.fa-wix:before{content:"\f5cf"}.fa-wizards-of-the-coast:before{content:"\f730"}.fa-wodu:before{content:"\e088"}.fa-wolf-pack-battalion:before{content:"\f514"}.fa-won-sign:before{content:"\f159"}.fa-wordpress:before{content:"\f19a"}.fa-wordpress-simple:before{content:"\f411"}.fa-wpbeginner:before{content:"\f297"}.fa-wpexplorer:before{content:"\f2de"}.fa-wpforms:before{content:"\f298"}.fa-wpressr:before{content:"\f3e4"}.fa-wrench:before{content:"\f0ad"}.fa-x-ray:before{content:"\f497"}.fa-xbox:before{content:"\f412"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-y-combinator:before{content:"\f23b"}.fa-yahoo:before{content:"\f19e"}.fa-yammer:before{content:"\f840"}.fa-yandex:before{content:"\f413"}.fa-yandex-international:before{content:"\f414"}.fa-yarn:before{content:"\f7e3"}.fa-yelp:before{content:"\f1e9"}.fa-yen-sign:before{content:"\f157"}.fa-yin-yang:before{content:"\f6ad"}.fa-yoast:before{content:"\f2b1"}.fa-youtube:before{content:"\f167"}.fa-youtube-square:before{content:"\f431"}.fa-zhihu:before{content:"\f63f"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:400;font-display:block;src:url(../webfonts/fa-brands-400.eot);src:url(../webfonts/fa-brands-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-brands-400.woff2) format("woff2"),url(../webfonts/fa-brands-400.woff) format("woff"),url(../webfonts/fa-brands-400.ttf) format("truetype"),url(../webfonts/fa-brands-400.svg#fontawesome) format("svg")}.fab{font-family:"Font Awesome 5 Brands"}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:400;font-display:block;src:url(../webfonts/fa-regular-400.eot);src:url(../webfonts/fa-regular-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-regular-400.woff2) format("woff2"),url(../webfonts/fa-regular-400.woff) format("woff"),url(../webfonts/fa-regular-400.ttf) format("truetype"),url(../webfonts/fa-regular-400.svg#fontawesome) format("svg")}.fab,.far{font-weight:400}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:900;font-display:block;src:url(../webfonts/fa-solid-900.eot);src:url(../webfonts/fa-solid-900.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-solid-900.woff2?static) format("woff2"),url(../webfonts/fa-solid-900.woff?static) format("woff"),url(../webfonts/fa-solid-900.ttf?static) format("truetype"),url(../webfonts/fa-solid-900.svg#fontawesome) format("svg")}.fa,.far,.fas{font-family:"Font Awesome 5 Free"}.fa,.fas{font-weight:900} \ No newline at end of file diff --git a/httpserver/static/css/style.css b/httpserver/static/css/style.css index 1c9a567..612fe90 100644 --- a/httpserver/static/css/style.css +++ b/httpserver/static/css/style.css @@ -1,4 +1,4 @@ -@font-face{font-family:'Fira Code VF';src:url("../fonts/FiraCode-VF.woff2") format("woff2-variations"),url("../fonts/FiraCode-VF.woff") format("woff-variations");font-weight:300 700;font-style:normal}*{margin:0;padding:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}ul{margin:0}button,input[type='button']{cursor:pointer}button:focus,input:focus,textarea:focus{outline:none}input,textarea{border:none}button{border:none;background:none}img{max-width:100%;height:auto}p{margin:0}.align_item_center{align-items:center}/*! +@font-face{font-family:'Fira Code VF';src:url("../fonts/FiraCode-VF.woff2?static") format("woff2-variations"),url("../fonts/FiraCode-VF.woff?static") format("woff-variations");font-weight:300 700;font-style:normal}*{margin:0;padding:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}ul{margin:0}button,input[type='button']{cursor:pointer}button:focus,input:focus,textarea:focus{outline:none}input,textarea{border:none}button{border:none;background:none}img{max-width:100%;height:auto}p{margin:0}.align_item_center{align-items:center}/*! * Bootstrap v4.5.3 (https://getbootstrap.com/) * Copyright 2011-2020 The Bootstrap Authors * Copyright 2011-2020 Twitter, Inc. diff --git a/httpserver/static/js/main.min.js b/httpserver/static/js/main.min.js index ad0fb4b..c568d1f 100644 --- a/httpserver/static/js/main.min.js +++ b/httpserver/static/js/main.min.js @@ -1 +1 @@ -$(document).ready(function(){$("#tableData").DataTable({paging:false,language:{info:"_TOTAL_ items"},order:[[2,"asc"]],columnDefs:[{targets:[0,1,5],orderable:false}]})});var checkboxes=document.querySelectorAll(".downloadBulkCheckbox");Array.prototype.forEach.call(checkboxes,function(cb){cb.addEventListener("change",function(){checkedBoxes=document.querySelectorAll("input[type=checkbox]:checked").length;if(checkedBoxes>=1){document.getElementById("downloadBulkButton").style.display="block"}else{document.getElementById("downloadBulkButton").style.display="none"}})});function selectAll(){Array.prototype.forEach.call(checkboxes,function(cb){cb.checked=true});document.getElementById("downloadBulkButton").style.display="block"}function selectNone(){Array.prototype.forEach.call(checkboxes,function(cb){cb.checked=false});document.getElementById("downloadBulkButton").style.display="none"}var wsURL="";location.protocol!=="https:"?wsURL="ws://"+window.location.host+"/14644be038ea0118a1aadfacca2a7d1517d7b209c4b9674ee893b1944d1c2d54/ws":wsURL="wss://"+window.location.host+"/14644be038ea0118a1aadfacca2a7d1517d7b209c4b9674ee893b1944d1c2d54/ws";var connection=new WebSocket(wsURL);connection.onopen=function(){console.log("Connected via WebSockets")};connection.onclose=function(){console.log("Connection has been closed by WebSocket Server")};connection.onerror=function(e){console.log("Websocket error: ",e)};connection.onmessage=function(m){try{var message=JSON.parse(m.data);if(message["type"]=="refreshClipboard"){location.reload()}}catch(e){console.log("Error reading message: ",e)}};function sendEntry(e){e.preventDefault();entryfield=document.getElementById("cbEntry");var text=entryfield.value;var msg={type:"newEntry",content:text};connection.send(JSON.stringify(msg));entryfield.value=""}function clearClipboard(e){e.preventDefault;result=confirm("Are you sure you want to clear the clipboard?");if(result){var msg={type:"clearClipboard",content:""};connection.send(JSON.stringify(msg))}}function delClipboard(id){var msg={type:"delEntry",content:id};connection.send(JSON.stringify(msg))} \ No newline at end of file +$(document).ready(function(){$("#tableData").DataTable({paging:false,language:{info:"_TOTAL_ items"},order:[[2,"asc"]],columnDefs:[{targets:[0,1,5],orderable:false}]})});var checkboxes=document.querySelectorAll(".downloadBulkCheckbox");Array.prototype.forEach.call(checkboxes,function(cb){cb.addEventListener("change",function(){checkedBoxes=document.querySelectorAll("input[type=checkbox]:checked").length;if(checkedBoxes>=1){document.getElementById("downloadBulkButton").style.display="block"}else{document.getElementById("downloadBulkButton").style.display="none"}})});function selectAll(){Array.prototype.forEach.call(checkboxes,function(cb){cb.checked=true});document.getElementById("downloadBulkButton").style.display="block"}function selectNone(){Array.prototype.forEach.call(checkboxes,function(cb){cb.checked=false});document.getElementById("downloadBulkButton").style.display="none"}var wsURL="";location.protocol!=="https:"?wsURL="ws://"+window.location.host+"/?ws":wsURL="wss://"+window.location.host+"/?ws";var connection=new WebSocket(wsURL);connection.onopen=function(){console.log("Connected via WebSockets")};connection.onclose=function(){console.log("Connection has been closed by WebSocket Server")};connection.onerror=function(e){console.log("Websocket error: ",e)};connection.onmessage=function(m){try{var message=JSON.parse(m.data);if(message["type"]=="refreshClipboard"){location.reload()}}catch(e){console.log("Error reading message: ",e)}};function sendEntry(e){e.preventDefault();entryfield=document.getElementById("cbEntry");var text=entryfield.value;var msg={type:"newEntry",content:text};connection.send(JSON.stringify(msg));entryfield.value=""}function clearClipboard(e){e.preventDefault;result=confirm("Are you sure you want to clear the clipboard?");if(result){var msg={type:"clearClipboard",content:""};connection.send(JSON.stringify(msg))}}function delClipboard(id){var msg={type:"delEntry",content:id};connection.send(JSON.stringify(msg))} \ No newline at end of file diff --git a/httpserver/static/templates/error.html b/httpserver/static/templates/error.html index 87cbe40..2ac8f54 100644 --- a/httpserver/static/templates/error.html +++ b/httpserver/static/templates/error.html @@ -10,19 +10,9 @@ goshs ERROR - {{.AbsPath}} - - - + + +
@@ -31,10 +21,7 @@
- - - - + + + +