2020-02-13 15:55:19 -07:00
|
|
|
// Code generated for package data by go-bindata DO NOT EDIT. (@generated)
|
|
|
|
// sources:
|
|
|
|
// data/data.json
|
|
|
|
package data
|
|
|
|
|
|
|
|
import (
|
|
|
|
"bytes"
|
|
|
|
"compress/gzip"
|
|
|
|
"fmt"
|
|
|
|
"io"
|
|
|
|
"io/ioutil"
|
|
|
|
"os"
|
|
|
|
"path/filepath"
|
|
|
|
"strings"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
|
|
|
func bindataRead(data []byte, name string) ([]byte, error) {
|
|
|
|
gz, err := gzip.NewReader(bytes.NewBuffer(data))
|
|
|
|
if err != nil {
|
|
|
|
return nil, fmt.Errorf("Read %q: %v", name, err)
|
|
|
|
}
|
|
|
|
|
|
|
|
var buf bytes.Buffer
|
|
|
|
_, err = io.Copy(&buf, gz)
|
|
|
|
clErr := gz.Close()
|
|
|
|
|
|
|
|
if err != nil {
|
|
|
|
return nil, fmt.Errorf("Read %q: %v", name, err)
|
|
|
|
}
|
|
|
|
if clErr != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
|
|
|
return buf.Bytes(), nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type asset struct {
|
|
|
|
bytes []byte
|
|
|
|
info os.FileInfo
|
|
|
|
}
|
|
|
|
|
|
|
|
type bindataFileInfo struct {
|
|
|
|
name string
|
|
|
|
size int64
|
|
|
|
mode os.FileMode
|
|
|
|
modTime time.Time
|
|
|
|
}
|
|
|
|
|
|
|
|
// Name return file name
|
|
|
|
func (fi bindataFileInfo) Name() string {
|
|
|
|
return fi.name
|
|
|
|
}
|
|
|
|
|
|
|
|
// Size return file size
|
|
|
|
func (fi bindataFileInfo) Size() int64 {
|
|
|
|
return fi.size
|
|
|
|
}
|
|
|
|
|
|
|
|
// Mode return file mode
|
|
|
|
func (fi bindataFileInfo) Mode() os.FileMode {
|
|
|
|
return fi.mode
|
|
|
|
}
|
|
|
|
|
|
|
|
// Mode return file modify time
|
|
|
|
func (fi bindataFileInfo) ModTime() time.Time {
|
|
|
|
return fi.modTime
|
|
|
|
}
|
|
|
|
|
|
|
|
// IsDir return file whether a directory
|
|
|
|
func (fi bindataFileInfo) IsDir() bool {
|
|
|
|
return fi.mode&os.ModeDir != 0
|
|
|
|
}
|
|
|
|
|
|
|
|
// Sys return file is sys mode
|
|
|
|
func (fi bindataFileInfo) Sys() interface{} {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2024-05-13 11:35:07 -07:00
|
|
|
var _dataDataJson = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xec\xbd\x6b\x73\xa4\x38\x9a\xf7\xfd\x7e\x3e\x05\xe1\xfb\xc5\x3c\xcf\x46\x91\xce\xb3\x0f\x11\xfb\xc2\x6d\x57\x57\x3b\xba\xca\xe5\xb5\xdd\x3d\xf7\xc4\x7a\xc2\x81\x41\x4e\x33\x26\x81\x06\xd2\x55\xee\x9a\xfe\xee\x77\x48\x9c\x41\x90\x12\x90\xe9\x3c\xfc\xbd\x11\x3b\x5d\x89\x24\x84\x10\xd7\xff\xa7\x4b\xd2\xa5\x1f\x7f\x53\x0e\x7e\x3d\xf6\x7f\x27\x9e\x6f\x3a\xf6\x2d\xf1\x5e\x4d\x9d\x7c\x75\x03\xd3\xb1\xfd\x83\x53\xe5\xc7\xdf\x14\xe5\xe0\x75\xd0\x1b\xf4\xa3\x7f\x28\x07\x24\xd0\x8d\x83\x53\xc5\x5e\x58\xd6\x07\xf6\xc3\xcb\xe2\x91\x68\xae\x19\x27\x50\x0e\x34\xcb\x72\xbe\xa9\xae\x67\xbe\x9a\x16\x99\x11\x9a\xfa\x20\xf0\x16\xe4\xe0\x43\x74\xdd\x76\xec\xb7\xb9\xb3\xf0\x55\x6d\x11\x3c\xd3\xab\x4f\x9a\xe5\x27\x97\x1f\x4d\xdb\x50\x35\xc3\xf0\x88\x4f\xab\x70\xd0\xef\xb1\xff\x8b\x2f\x13\x5b\x7b\xb4\x88\xaa\x19\x73\xd3\xa7\x75\x56\x5d\x6b\x31\x33\x59\x6d\x0f\xae\xb4\x39\xf1\x5d\x4d\x27\x9f\xcd\x27\xa2\xbf\xe9\x16\xf9\xf0\xd9\x9c\x9b\xc1\x8d\x66\xcf\x88\xf7\x21\x7a\xbc\x33\x5d\x77\x16\x76\xf0\xe1\x82\x3c\x69\x0b\x2b\xb8\x0d\x1c\x4f\x9b\x91\x73\x4b\xf3\xfd\xf8\xb7\x3b\xc7\x22\x9e\x16\xb0\x26\xd1\x1d\xdb\xf0\x3f\x7c\x59\x04\x5a\x60\xda\xb3\xb3\xf8\xbe\xff\x20\x8f\xcf\x8e\xf3\xf2\xe1\x77\xcd\x32\x0d\xfe\xa5\x1b\xe2\x3b\x0b\x4f\x27\xff\xb3\x70\x02\xed\xc3\x95\x63\x90\x1b\xe2\x07\x9e\xa9\xd3\x82\xe3\xe7\x31\x6d\x9f\xe8\x0b\x8f\xa8\xae\xe3\x05\xec\x79\xe3\x2b\xb4\x61\x2d\x12\xa8\xae\x47\x9e\x88\xe7\x91\xa4\x55\xd4\xe0\xcd\x25\xec\x81\x2f\xed\x80\x78\xb6\x66\x5d\x5e\x7f\xf8\xf8\x3d\xf9\xcf\x5f\x1c\x3f\xb0\xb5\x79\xd2\xa2\xae\xe7\x3c\x99\x96\x69\xcf\x4a\x6d\xed\x91\x3f\x16\xc4\x0f\x9e\x89\x66\x10\x4f\x25\xdf\x03\x4f\x53\xc3\x7f\xf8\xec\xb6\xe6\x77\x9a\xe5\xff\xaa\x37\x64\xee\x04\x44\xfd\xc8\x12\xf0\x33\xcf\x3c\x67\xe1\xc6\x99\x73\xb9\x3e\xd1\x2b\xfc\x4c\x0b\x9f\xd6\x79\x4e\xb8\xf9\x7e\xf3\x89\x97\x64\x5b\xd8\x81\x39\x27\xaa\xee\xd8\x4f\x26\x7b\x0e\xda\x77\x1c\xcf\xfc\x93\xbd\xa5\xde\xcb\xb1\xdf\x33\x9d\xc3\xd7\xc1\x23\x09\xb4\xc1\x7f\x67\xbb\x5b\xa1\x79\xa7\xe3\xf1\x28\xbd\xc4\x3a\x84\xaa\x85\x3d\x42\xb5\x1c\xe7\x65\xe1\x16\xfb\xab\x1f\x76\x10\xf5\x51\xd3\x5f\x88\xcd\xba\x33\xfd\x08\x92\x52\x02\xcb\x57\x75\xd3\x7d\x26\x9e\xea\x2f\xcc\x20\x7c\x33\x77\x9f\x6f\x1f\x3e\x9e\x5f\xfc\xf2\x91\xfe\xff\xdb\xb3\x87\x7f\x5c\xde\xfd\xf2\x70\xf6\xf1\xf6\x61\x30\x3c\x7e\xf8\x74\xfe\xe5\xe1\xf6\x97\xb3\xe1\x64\xfa\xa1\x32\xdd\x70\x32\x8d\xd3\x8d\x8e\xc7\xfc\x74\xe7\xbf\x9c\x9d\xff\x72\x36\xec\x3f\x5c\x7f\xfd\xfc\xcf\xc1\xa8\x3f\xc9\x24\xbb\x11\xba\xe9\x8d\xd0\x2d\x6f\x2a\x6f\x78\x40\x9b\xe0\xaf\xd4\x10\x58\x24\xc8\x18\x82\xca\x8f\xb8\xa5\x89\xa0\x3f\x12\x3b\x30\x75\xf6\xf2\xd5\xc0\x79\x21\xb6\xfa\x2d\xfc\xea\x4a\x45\x65\xfb\x89\x3a\x77\x0c\x42\x53\x44\x9f\x68\x9c\x48\x67\xbd\xd7\x57\x5d\xe2\xa9\x7f\x38\xe1\x0b\xcc\x94\xa1\xdb\xa6\xfa\x68\xda\xaa\x61\x7a\xf4\xd2\xa1\xe3\x06\x87\xba\x6d\x1e\x3e\x9a\x76\x36\x09\xed\x9c\x49\x1a\x12\xe8\x2c\x8d\x4d\x82\x9e\x91\x1a\xaf\x27\xc7\xd3\x89\x6a\x3b\x06\x51\x69\x23\xe8\x5a\x40\xcd\x19\xcd\x91\xa4\x79\x25\x76\xa0\xfe\xe1\xfa\x39\x63\x30\xd7\x5e\x88\x6a\xba\x2c\xb5\xaf\x2e\x02\xd3\x52\xf5\x67\x2d\xb2\x7b\xd9\xe7\xb5\x49\xf0\xcd\xf1\x5e\x22\xb3\x48\xaf\xea\xb6\x99\x7e\x7d\x9a\xa1\x3a\xb6\xf5\x56\xb6\x36\x1e\xf1\x1d\xeb\x95\x3d\x43\x52\xff\xf0\xb7\x1e\xfb\x2d\xf9\x18\x3c\xa2\xcd\x4d\x7b\x46\x53\xda\x84\x99\x32\xd5\x34\x2c\xa2\xd2\xef\xd3\x59\xb0\x42\x47\xfd\x39\x3e\x8e\xfe\x24\x6e\x83\x57\xfa\xcc\xc3\xe4\x5f\x8e\xb5\x98\x93\xe8\xfd\x24\xdd\xe5\x55\xf3\x0e\x2d\xf3\xf1\x30\xfa\x88\x0e\xc3\x54\xb1\xb6\x15\xbe\x32\xd7\x73\xbe\xbf\xa5\xdf\xd9\x33\xd1\xac\xe0\xf9\x4f\xb5\xa8\x9c\x83\xe1\x11\xfb\xec\x06\x85\x8a\x14\x4a\x3b\x77\xec\xc0\x73\x2c\x8b\x78\xa2\x9f\xae\xae\x05\x51\x1f\xd6\x4d\xc3\x2b\x75\xc1\xf0\xeb\x5e\xd8\x81\x36\x9b\x11\x43\xd5\x2d\x67\x51\xfa\xc2\x43\x43\x4e\x0d\x33\xbb\xac\x7a\xce\x22\xea\x1c\xb9\x2f\x3d\x52\xfb\x67\xc7\x0f\x5c\x2d\x78\x56\x5d\xcf\x79\x35\xa9\xc6\xb2\xca\xe6\xd3\x5a\x91\x8a\x59\x44\x0f\x4a\x5f\x05\xad\xec\xdc\xb1\xcd\xc0\xa1\x52\xa5\xe9\x84\x7e\xeb\xa6\xc3\xea\x35\xee\xfb\x89\x54\x3a\x86\x4a\x5e\x43\x85\xce\xf6\xe8\xc9\x3c\x93\xa6\x52\x4e\x0
|
2020-02-13 15:55:19 -07:00
|
|
|
|
|
|
|
func dataDataJsonBytes() ([]byte, error) {
|
|
|
|
return bindataRead(
|
|
|
|
_dataDataJson,
|
|
|
|
"data/data.json",
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
func dataDataJson() (*asset, error) {
|
|
|
|
bytes, err := dataDataJsonBytes()
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
|
2024-05-13 11:35:07 -07:00
|
|
|
info := bindataFileInfo{name: "data/data.json", size: 7913369, mode: os.FileMode(420), modTime: time.Unix(1557785965, 0)}
|
2020-02-13 15:55:19 -07:00
|
|
|
a := &asset{bytes: bytes, info: info}
|
|
|
|
return a, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Asset loads and returns the asset for the given name.
|
|
|
|
// It returns an error if the asset could not be found or
|
|
|
|
// could not be loaded.
|
|
|
|
func Asset(name string) ([]byte, error) {
|
|
|
|
cannonicalName := strings.Replace(name, "\\", "/", -1)
|
|
|
|
if f, ok := _bindata[cannonicalName]; ok {
|
|
|
|
a, err := f()
|
|
|
|
if err != nil {
|
|
|
|
return nil, fmt.Errorf("Asset %s can't read by error: %v", name, err)
|
|
|
|
}
|
|
|
|
return a.bytes, nil
|
|
|
|
}
|
|
|
|
return nil, fmt.Errorf("Asset %s not found", name)
|
|
|
|
}
|
|
|
|
|
|
|
|
// MustAsset is like Asset but panics when Asset would return an error.
|
|
|
|
// It simplifies safe initialization of global variables.
|
|
|
|
func MustAsset(name string) []byte {
|
|
|
|
a, err := Asset(name)
|
|
|
|
if err != nil {
|
|
|
|
panic("asset: Asset(" + name + "): " + err.Error())
|
|
|
|
}
|
|
|
|
|
|
|
|
return a
|
|
|
|
}
|
|
|
|
|
|
|
|
// AssetInfo loads and returns the asset info for the given name.
|
|
|
|
// It returns an error if the asset could not be found or
|
|
|
|
// could not be loaded.
|
|
|
|
func AssetInfo(name string) (os.FileInfo, error) {
|
|
|
|
cannonicalName := strings.Replace(name, "\\", "/", -1)
|
|
|
|
if f, ok := _bindata[cannonicalName]; ok {
|
|
|
|
a, err := f()
|
|
|
|
if err != nil {
|
|
|
|
return nil, fmt.Errorf("AssetInfo %s can't read by error: %v", name, err)
|
|
|
|
}
|
|
|
|
return a.info, nil
|
|
|
|
}
|
|
|
|
return nil, fmt.Errorf("AssetInfo %s not found", name)
|
|
|
|
}
|
|
|
|
|
|
|
|
// AssetNames returns the names of the assets.
|
|
|
|
func AssetNames() []string {
|
|
|
|
names := make([]string, 0, len(_bindata))
|
|
|
|
for name := range _bindata {
|
|
|
|
names = append(names, name)
|
|
|
|
}
|
|
|
|
return names
|
|
|
|
}
|
|
|
|
|
|
|
|
// _bindata is a table, holding each asset generator, mapped to its name.
|
|
|
|
var _bindata = map[string]func() (*asset, error){
|
|
|
|
"data/data.json": dataDataJson,
|
|
|
|
}
|
|
|
|
|
|
|
|
// AssetDir returns the file names below a certain
|
|
|
|
// directory embedded in the file by go-bindata.
|
|
|
|
// For example if you run go-bindata on data/... and data contains the
|
|
|
|
// following hierarchy:
|
|
|
|
// data/
|
|
|
|
// foo.txt
|
|
|
|
// img/
|
|
|
|
// a.png
|
|
|
|
// b.png
|
|
|
|
// then AssetDir("data") would return []string{"foo.txt", "img"}
|
|
|
|
// AssetDir("data/img") would return []string{"a.png", "b.png"}
|
|
|
|
// AssetDir("foo.txt") and AssetDir("notexist") would return an error
|
|
|
|
// AssetDir("") will return []string{"data"}.
|
|
|
|
func AssetDir(name string) ([]string, error) {
|
|
|
|
node := _bintree
|
|
|
|
if len(name) != 0 {
|
|
|
|
cannonicalName := strings.Replace(name, "\\", "/", -1)
|
|
|
|
pathList := strings.Split(cannonicalName, "/")
|
|
|
|
for _, p := range pathList {
|
|
|
|
node = node.Children[p]
|
|
|
|
if node == nil {
|
|
|
|
return nil, fmt.Errorf("Asset %s not found", name)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if node.Func != nil {
|
|
|
|
return nil, fmt.Errorf("Asset %s not found", name)
|
|
|
|
}
|
|
|
|
rv := make([]string, 0, len(node.Children))
|
|
|
|
for childName := range node.Children {
|
|
|
|
rv = append(rv, childName)
|
|
|
|
}
|
|
|
|
return rv, nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type bintree struct {
|
|
|
|
Func func() (*asset, error)
|
|
|
|
Children map[string]*bintree
|
|
|
|
}
|
|
|
|
|
|
|
|
var _bintree = &bintree{nil, map[string]*bintree{
|
|
|
|
"data": &bintree{nil, map[string]*bintree{
|
|
|
|
"data.json": &bintree{dataDataJson, map[string]*bintree{}},
|
|
|
|
}},
|
|
|
|
}}
|
|
|
|
|
|
|
|
// RestoreAsset restores an asset under the given directory
|
|
|
|
func RestoreAsset(dir, name string) error {
|
|
|
|
data, err := Asset(name)
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
info, err := AssetInfo(name)
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
err = os.MkdirAll(_filePath(dir, filepath.Dir(name)), os.FileMode(0755))
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
err = ioutil.WriteFile(_filePath(dir, name), data, info.Mode())
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
err = os.Chtimes(_filePath(dir, name), info.ModTime(), info.ModTime())
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// RestoreAssets restores an asset under the given directory recursively
|
|
|
|
func RestoreAssets(dir, name string) error {
|
|
|
|
children, err := AssetDir(name)
|
|
|
|
// File
|
|
|
|
if err != nil {
|
|
|
|
return RestoreAsset(dir, name)
|
|
|
|
}
|
|
|
|
// Dir
|
|
|
|
for _, child := range children {
|
|
|
|
err = RestoreAssets(dir, filepath.Join(name, child))
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func _filePath(dir, name string) string {
|
|
|
|
cannonicalName := strings.Replace(name, "\\", "/", -1)
|
|
|
|
return filepath.Join(append([]string{dir}, strings.Split(cannonicalName, "/")...)...)
|
|
|
|
}
|