[
  {
    "path": ".github/workflows/build_app.yml",
    "content": "name: build mac app\n\non: [push, pull_request]\n\njobs:\n  build:\n    runs-on: macOS-latest\n    steps:\n      - name: Checkout repository\n        uses: actions/checkout@v1\n        with:\n          fetch-depth: 0\n      - name: Select Xcode 12.4\n        run: sudo xcode-select -switch /Applications/Xcode_12.4.app\n      - name: Build project\n        run: make keyrace-mac\n      - name: Save .zip as artifact\n        uses: actions/upload-artifact@v1\n        with:\n          name: keyrace-mac.app\n          path: ./build/mac\n"
  },
  {
    "path": ".github/workflows/make-test.yml",
    "content": "on: [push, pull_request]\nname: make test\njobs:\n  maketest:\n    name: make test\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@master\n      - uses: actions/setup-go@v2\n        with:\n          go-version: '^1.13.1' # The Go version to download (if necessary) and use.\n      - name: make test\n        run: make test\n        shell: bash\n        env:\n          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}\n"
  },
  {
    "path": ".gitignore",
    "content": "# Xcode .gitignore\n#\n# Source:\n# https://github.com/github/gitignore/blob/master/Global/Xcode.gitignore\n\n## User settings\nxcuserdata/\n\n## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)\n*.xcscmblueprint\n*.xccheckout\n\n## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)\nbuild/\nDerivedData/\n*.moved-aside\n*.pbxuser\n!default.pbxuser\n*.mode1v3\n!default.mode1v3\n*.mode2v3\n!default.mode2v3\n*.perspectivev3\n!default.perspectivev3\n\n## Gcc Patch\n/*.gcno\n\n## Sample Data\n.assets/*.csv\n\n## Secrets\nGenerated\nSecrets.xcconfig\n\n# Other\nkeyrace\nkeyrace.db\nkeyrace.dSYM\nkeyrace-server*\nvendor\n"
  },
  {
    "path": "Makefile",
    "content": "SERVER=keyrace.app\nBUILDTAGS=libsqlite3 sqlite_omit_load_extension\n\nkeyrace-server: $(wildcard *.go)\n\tgo mod vendor || true\n\tgo build -o $@ \\\n\t\t-tags \"$(BUILDTAGS)\" $?\n\nserver: keyrace-server keyrace-server-linux ## Build the server.\n\nkeyrace-server-linux: $(wildcard *.go)\n\t# On a mac you need to `brew install sqlite`\n\techo \"Using sqlite broke the static binary building on macos\"\n\t#go mod vendor\n\t#GOOS=linux GOARCH=amd64 CGO_ENABLED=1 go build \\\n\t# -o $@ \\\n\t# -tags \"$(BUILDTAGS)\" \\\n\t# -installsuffix netgo -ldflags \"-w -extldflags\" $?\n\nkeyrace-mac:\n\tset -eo pipefail\n\tmkdir -p build/mac\n\txcodebuild \\\n\t\t-workspace mac/keyrace-mac.xcworkspace/ \\\n\t\t-scheme keyrace-mac \\\n\t\t-archivePath $(PWD)/build/keyrace.xcarchive \\\n\t\tclean archive\n\tcp -r build/keyrace.xcarchive/Products/Applications/keyrace-mac.app build/mac\n\nserver-test: $(wildcard *.go)\n\t@echo \"Running the go tests...\"\n\tgo mod vendor\n\tgo test $?\n\ntest: server-test ## Run the tests.\n\ndeploy: keyrace-server-linux ## Deploy the server binary.\n\tscp keyrace-server-linux $(SERVER):\n\nclean:\n\trm -rf keyrace.dSYM\n\n.PHONY: help\nhelp: ## Show this help.\n\t@fgrep -h \"##\" $(MAKEFILE_LIST) | fgrep -v fgrep | sed -e 's/\\\\$$//' | sed -e 's/##//'\n"
  },
  {
    "path": "README.md",
    "content": "# keyrace\nDaily multiplayer keyboard races for macos\n\n<img width=\"383\" alt=\"image\" src=\"https://user-images.githubusercontent.com/56260/108459319-47481a80-722b-11eb-89c5-7245d32aa64a.png\">\n\n## To install\n\n```bash\ngit clone https://github.com/nat/keyrace.git\ncd keyrace/mac\nopen keyrace-mac.xcworkspace\n```\n\n## To build and run\n\n<kbd>Cmd (⌘)</kbd> + <kbd>R</kbd> or `Product` > `Run` in Xcode!\n\n**NOTE:** If the `Run` option is grayed out in the menu, make sure that the correct scheme is selected: `Product` > `Scheme` > `keyrace-mac`. \n"
  },
  {
    "path": "go.mod",
    "content": "module github.com/nat/keyrace\n\ngo 1.14\n\nrequire (\n\tgithub.com/grpc-ecosystem/go-grpc-middleware v1.2.2 // indirect\n\tgithub.com/improbable-eng/go-httpwares v0.0.0-20200609095714-edc8019f93cc\n\tgithub.com/karalabe/xgo v0.0.0-20191115072854-c5ccff8648a7 // indirect\n\tgithub.com/mattn/go-sqlite3 v1.14.6\n\tgithub.com/sirupsen/logrus v1.7.0\n\tgolang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad\n)\n"
  },
  {
    "path": "go.sum",
    "content": "cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=\ndmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=\ngithub.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=\ngithub.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=\ngithub.com/TwinProduction/go-away v1.0.0 h1:C+l/Q6eC/epJu26V17zXgi3SDxrkGdSUq3kAyJHOlVU=\ngithub.com/TwinProduction/go-away v1.0.0/go.mod h1:VB/lNzhkzh7Xw2QgU+tYBjMheldukJaIJzVaIx2rh30=\ngithub.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=\ngithub.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=\ngithub.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=\ngithub.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=\ngithub.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=\ngithub.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=\ngithub.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=\ngithub.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=\ngithub.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=\ngithub.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8=\ngithub.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=\ngithub.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=\ngithub.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=\ngithub.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4=\ngithub.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=\ngithub.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=\ngithub.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=\ngithub.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=\ngithub.com/golang/protobuf v1.3.3 h1:gyjaxf+svBWX08ZjK86iN9geUJF0H6gp2IRKX6Nf6/I=\ngithub.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=\ngithub.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=\ngithub.com/grpc-ecosystem/go-grpc-middleware v1.2.2 h1:FlFbCRLd5Jr4iYXZufAvgWN6Ao0JrI5chLINnUXDDr0=\ngithub.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI=\ngithub.com/improbable-eng/go-httpwares v0.0.0-20200609095714-edc8019f93cc h1:jPofYCdWojUaUhjlAe5yM/H4PFDfrZ6ldrlqoVv5YDM=\ngithub.com/improbable-eng/go-httpwares v0.0.0-20200609095714-edc8019f93cc/go.mod h1:LE9Hs6fsYQ7RoDuFUQlYmlRAku9vUlSlO++jWNj+D0I=\ngithub.com/karalabe/xgo v0.0.0-20191115072854-c5ccff8648a7 h1:AYzjK/SHz6m6mg5iuFwkrAhCc14jvCpW9d6frC9iDPE=\ngithub.com/karalabe/xgo v0.0.0-20191115072854-c5ccff8648a7/go.mod h1:iYGcTYIPUvEWhFo6aKUuLchs+AV4ssYdyuBbQJZGcBk=\ngithub.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q=\ngithub.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=\ngithub.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=\ngithub.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=\ngithub.com/mattn/go-sqlite3 v1.14.6 h1:dNPt6NO46WmLVt2DLNpwczCmdV5boIZ6g/tlDrlRUbg=\ngithub.com/mattn/go-sqlite3 v1.14.6/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU=\ngithub.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=\ngithub.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=\ngithub.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=\ngithub.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=\ngithub.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=\ngithub.com/sirupsen/logrus v1.7.0 h1:ShrD1U9pZB12TX0cVy0DtePoCH97K8EtX+mg7ZARUtM=\ngithub.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=\ngithub.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=\ngithub.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=\ngithub.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=\ngithub.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=\ngo.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=\ngo.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=\ngo.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=\ngolang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=\ngolang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=\ngolang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad h1:DN0cp81fZ3njFcrLCytUHRSUkqBjfTo4Tx9RJTWs0EY=\ngolang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I=\ngolang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=\ngolang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=\ngolang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw=\ngolang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=\ngolang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=\ngolang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=\ngolang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=\ngolang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=\ngolang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o=\ngolang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=\ngolang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=\ngolang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=\ngolang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=\ngolang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=\ngolang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=\ngolang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3 h1:0GoQqolDA55aaLxZyTzK/Y2ePZzZTUrRacwib7cNsYQ=\ngolang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=\ngolang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=\ngolang.org/x/net v0.0.0-20200421231249-e086a090c8fd h1:QPwSajcTUrFriMF1nJ3XzgoqakqQEsnZf9LdXdi2nkI=\ngolang.org/x/net v0.0.0-20200421231249-e086a090c8fd/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=\ngolang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=\ngolang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=\ngolang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=\ngolang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=\ngolang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=\ngolang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=\ngolang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=\ngolang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=\ngolang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=\ngolang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=\ngolang.org/x/sys v0.0.0-20191026070338-33540a1f6037 h1:YyJpGZS1sBuBCzLAR1VEpK193GlqGZbnPFnPV/5Rsb4=\ngolang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=\ngolang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=\ngolang.org/x/sys v0.0.0-20200420163511-1957bb5e6d1f h1:gWF768j/LaZugp8dyS4UwsslYCYz9XgFxvlgsn0n9H8=\ngolang.org/x/sys v0.0.0-20200420163511-1957bb5e6d1f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=\ngolang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw=\ngolang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=\ngolang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=\ngolang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=\ngolang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=\ngolang.org/x/text v0.3.3 h1:cokOdA+Jmi5PJGXLlLllQSgYigAEfHXJAERHVMaCc2k=\ngolang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=\ngolang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=\ngolang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=\ngolang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=\ngolang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=\ngolang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=\ngolang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=\ngolang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=\ngolang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=\ngoogle.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=\ngoogle.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=\ngoogle.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=\ngoogle.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=\ngoogle.golang.org/genproto v0.0.0-20200423170343-7949de9c1215 h1:0Uz5jLJQioKgVozXa1gzGbzYxbb/rhQEVvSWxzw5oUs=\ngoogle.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c=\ngoogle.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=\ngoogle.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=\ngoogle.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=\ngoogle.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=\ngoogle.golang.org/grpc v1.29.1 h1:EC2SB8S04d2r73uptxphDSUG+kTKVgjRPF+N3xpxRB4=\ngoogle.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk=\ngopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=\ngopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=\nhonnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=\nhonnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=\n"
  },
  {
    "path": "keyrace.c",
    "content": "// NOTE: This client no longer works. Run the native mac client instead!\n//\n// gcc keyrace.c -o keyrace -framework ApplicationServices -framework Carbon -Wall -g\n//\n// To start tracking, run as: keyrace <username> <team>\n// To print leaderboard, run: keyrace <team>\n//\n// Just use \"default\" as your team if you don't have one.\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <time.h>\n#include <ApplicationServices/ApplicationServices.h>\n#include <Carbon/Carbon.h>\n#include <string.h>\n#include <sys/stat.h>\n\nconst char KEYRACE_HOST[] = \"159.89.136.69\";\nconst char TMPFILE[] = \"/tmp/keyrace.tmp\";\n\nchar *username;\nchar *team;\nint keycount = 0;\nint last_day = -1;\nint last_min = -1;\n\nvoid update_savefile(int kc)\n{\n    FILE *f;\n    f = fopen(TMPFILE, \"w\");\n    fprintf(f, \"%d\\n\", kc);\n    fclose(f);\n}\n\nint load_savefile(void)\n{\n    struct stat stat_buffer;\n    int saved_keycount;\n    FILE *f;\n\n    f = fopen(TMPFILE, \"r\");\n    if (f == NULL)\n        return 0;\n    fscanf(f, \"%d\", &saved_keycount);\n\n    if (stat(TMPFILE, &stat_buffer) != 0)\n        return 0;\n\n    struct tm mtime = *localtime(&stat_buffer.st_mtime);\n    last_day = mtime.tm_yday;\n\n    fclose(f);\n\n    return saved_keycount;\n}\n\nvoid upload_count(char *name, int count)\n{\n    char s[1024];\n    snprintf(s, 1024, \"curl \\\"http://%s/count?team=%s&name=%s&count=%d\\\" 2> /dev/null > /dev/null\", KEYRACE_HOST, team, name, count);\n    system(s);\n}\n\n// invoked on every keypress\nCGEventRef CGEventCallback(CGEventTapProxy proxy, CGEventType type, CGEventRef event, void *refcon)\n{\n    time_t t = time(NULL);\n\n    if (type != kCGEventKeyDown && type != kCGEventFlagsChanged && type != kCGEventKeyUp)\n    {\n        return event;\n    }\n\n    struct tm tm = *localtime(&t);\n\n    // Reset to 0 at midnight\n    if (last_day != tm.tm_yday)\n    {\n        last_day = tm.tm_yday;\n        keycount = 0;\n    }\n\n    keycount++;\n\n    // Upload every minute\n    if (last_min != tm.tm_min)\n    {\n        last_min = tm.tm_min;\n\n        upload_count(username, keycount);\n    }\n\n    update_savefile(keycount);\n\n    return event;\n}\n\nvoid strclean(char *src)\n{\n    char *p = src;\n    while (*src)\n    {\n        if (isalnum(*src))\n            *p++ = *src;\n        src++;\n    }\n    *p = '\\0';\n}\n\nvoid run_loop(void)\n{\n    // Create an event tap to retrieve keypresses.\n    CGEventMask eventMask = (CGEventMaskBit(kCGEventKeyDown) | CGEventMaskBit(kCGEventFlagsChanged));\n    CFMachPortRef eventTap = CGEventTapCreate(\n        kCGSessionEventTap, kCGHeadInsertEventTap, 0, eventMask, CGEventCallback, NULL);\n\n    // Exit the program if unable to create the event tap.\n    if (!eventTap)\n    {\n        fprintf(stderr, \"ERROR: Unable to create event tap.\\n\");\n        exit(1);\n    }\n\n    // Create a run loop source and add enable the event tap.\n    CFRunLoopSourceRef runLoopSource = CFMachPortCreateRunLoopSource(kCFAllocatorDefault, eventTap, 0);\n    CFRunLoopAddSource(CFRunLoopGetCurrent(), runLoopSource, kCFRunLoopCommonModes);\n    CGEventTapEnable(eventTap, true);\n\n    CFRunLoopRun();\n}\n\nint main(int argc, char **argv)\n{\n\n    if (argc < 2 || argc > 3 || !strcmp (argv[1], \"--help\"))\n    {\n        printf(\"Try: \\n\");\n        printf(\"    %s <team> <username> -- to start logging\\n\", argv[0]);\n        printf(\"    %s <team> -- to get the tracking\\n\", argv[0]);\n        printf(\"Just use \\\"default\\\" as your team if you don't have one.\\n\");\n        return 1;\n    }\n\n    if (argc == 2)\n    {\n        char cmd[1024];\n        snprintf(cmd, 1024, \"curl http://%s/?team=%s\", KEYRACE_HOST, argv[1]);\n        system(cmd);\n        return 0;\n    }\n\n    username = argv[2];\n    team = argv[1];\n    strclean(username);\n    strclean(team);\n\n    keycount = load_savefile();\n\n    printf(\"Starting counting keystrokes in the background.\\n\");\n\n    int pid = fork();\n    if (pid == 0)\n    { // child\n        setpgid(0, 0);\n        run_loop();\n    }\n}"
  },
  {
    "path": "mac/Podfile",
    "content": "use_frameworks!\ninhibit_all_warnings!\n\ntarget 'keyrace-mac' do\n\tpod 'Charts'\nend\n"
  },
  {
    "path": "mac/Pods/Charts/LICENSE",
    "content": "Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"{}\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2016-2019 Daniel Cohen Gindi & Philipp Jahoda\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n\n"
  },
  {
    "path": "mac/Pods/Charts/README.md",
    "content": "**Version 3.5.0**, synced to [MPAndroidChart #f6a398b](https://github.com/PhilJay/MPAndroidChart/commit/f6a398b)\n\n![alt tag](https://raw.github.com/danielgindi/Charts/master/Assets/feature_graphic.png)\n  ![Supported Platforms](https://img.shields.io/cocoapods/p/Charts.svg) [![Releases](https://img.shields.io/github/release/danielgindi/Charts.svg)](https://github.com/danielgindi/Charts/releases) [![Latest pod release](https://img.shields.io/cocoapods/v/Charts.svg)](http://cocoapods.org/pods/charts) [![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage) [![Build Status](https://travis-ci.org/danielgindi/Charts.svg?branch=master)](https://travis-ci.org/danielgindi/Charts) [![codecov](https://codecov.io/gh/danielgindi/Charts/branch/master/graph/badge.svg)](https://codecov.io/gh/danielgindi/Charts)\n[![Join the chat at https://gitter.im/danielgindi/Charts](https://badges.gitter.im/danielgindi/Charts.svg)](https://gitter.im/danielgindi/Charts?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\n\n### Just a heads up: Charts 3.0 has some breaking changes. Please read [the release/migration notes](https://github.com/danielgindi/Charts/releases/tag/v3.0.0). \n### Another heads up: ChartsRealm is now in a [separate repo](https://github.com/danielgindi/ChartsRealm). Pods is also now `Charts` and `ChartsRealm`, instead of ~`Charts/Core`~ and ~`Charts/Realm`~\n### One more heads up: As Swift evolves, if you are not using the latest Swift compiler, you shouldn't check out the master branch. Instead, you should go to the release page and pick up whatever suits you.\n\n* Xcode 11 / Swift 5 (master branch)\n* iOS >= 8.0 (Use as an **Embedded** Framework)\n* tvOS >= 9.0\n* macOS >= 10.11\n\nOkay so there's this beautiful library called [MPAndroidChart](https://github.com/PhilJay/MPAndroidChart) by [Philipp Jahoda](https://www.linkedin.com/in/philippjahoda) which has become very popular amongst Android developers, but there was no decent solution to create charts for iOS.\n\nI've chosen to write it in `Swift` as it can be highly optimized by the compiler, and can be used in both `Swift` and `ObjC` project. The demo project is written in `ObjC` to demonstrate how it works.\n\n**An amazing feature** of this library now, for Android, iOS, tvOS and macOS, is the time it saves you when developing for both platforms, as the learning curve is singleton- it happens only once, and the code stays very similar so developers don't have to go around and re-invent the app to produce the same output with a different library. (And that's not even considering the fact that there's not really another good choice out there currently...)\n\n## Having trouble running the demo?\n\n* `ChartsDemo/ChartsDemo.xcodeproj` is the demo project for iOS/tvOS\n* `ChartsDemo-OSX/ChartsDemo-OSX.xcodeproj` is the demo project for macOS\n* Make sure you are running a supported version of Xcode.\n  * Usually it is specified here a few lines above.\n  * In most cases it will be the latest Xcode version.\n* Make sure that your project supports Swift 5.0\n* Optional: Run `carthage checkout` in the project folder, to fetch dependencies (i.e testing dependencies).\n  * If you don't have Carthage - you can get it [here](https://github.com/Carthage/Carthage/releases).\n\n\n## Usage\n\nIn order to correctly compile:\n\n1. Drag the `Charts.xcodeproj` to your project  \n2. Go to your target's settings, hit the \"+\" under the \"Embedded Binaries\" section, and select the Charts.framework  \n3. `@import Charts`  \n4.  When using Swift in an ObjC project:\n   - You need to import your Bridging Header. Usually it is \"*YourProject-Swift.h*\", so in ChartsDemo it's \"*ChartsDemo-Swift.h*\". Do not try to actually include \"*ChartsDemo-Swift.h*\" in your project :-)\n   - (Xcode 8.1 and earlier) Under \"Build Options\", mark \"Embedded Content Contains Swift Code\"\n   - (Xcode 8.2+) Under \"Build Options\", mark \"Always Embed Swift Standard Libraries\"\n5. When using [Realm.io](https://realm.io/):\n   - Note that the Realm framework is not linked with Charts - it is only there for *optional* bindings. Which means that you need to have the framework in your project, and in a compatible version to whatever is compiled with Charts. We will do our best to always compile against the latest version.\n   - You'll need to add `ChartsRealm` as a dependency too.\n\n## 3rd party tutorials\n#### Video tutorials\n\n* [Chart in Swift - Setting Up a Basic Line Chart Using iOS Charts(Alex Nagy)](https://www.youtube.com/watch?v=mWhwe_tLNE8&list=PL_csAAO9PQ8bjzg-wxEff1Fr0Y5W1hrum&index=5)\n\n#### Blog posts\n* [Using Realm and Charts with Swift 3 in iOS 10 (Sami Korpela)](https://medium.com/@skoli/using-realm-and-charts-with-swift-3-in-ios-10-40c42e3838c0#.2gyymwfh8)\n* [Creating a Line Chart in Swift 3 and iOS 10 (Osian Smith)](https://medium.com/@OsianSmith/creating-a-line-chart-in-swift-3-and-ios-10-2f647c95392e)\n* [Beginning Set-up and Example Using Charts with Swift 3](https://github.com/annalizhaz/ChartsForSwiftBasic)\n* [Creating a Radar Chart in Swift (David Piper)](https://medium.com/@HeyDaveTheDev/creating-a-radar-chart-in-swift-5791afcf92f0)\n* [Plotting in IOS using Charts framework with SwiftUI (Evgeny Basisty)](https://medium.com/@zzzzbh/plotting-in-ios-using-charts-framework-with-swiftui-222034a2bea6)\n\nWant your tutorial to show here? Create a PR!\n\n## Troubleshooting\n\n#### Can't compile?\n\n* Please note the difference between installing a compiled framework from CocoaPods or Carthage, and copying the source code.\n* Please read the **Usage** section again.\n* Search in the issues\n* Try to politely ask in the issues section\n\n#### Other problems / feature requests\n\n* Search in the issues\n* Try to politely ask in the issues section\n\n## CocoaPods Install\n\nAdd `pod 'Charts'` to your Podfile. \"Charts\" is the name of the library.  \nFor [Realm](https://realm.io/) support, please add `pod 'ChartsRealm'` too.\n\n**Note:** ~~`pod 'ios-charts'`~~ is not the correct library, and refers to a different project by someone else.\n\n## Carthage Install\n\nCharts now include Carthage prebuilt binaries.\n\n```carthage\ngithub \"danielgindi/Charts\" == 3.5.0\ngithub \"danielgindi/Charts\" ~> 3.5.0\n```\n\nIn order to build the binaries for a new release, use `carthage build --no-skip-current && carthage archive Charts`.\n\n## 3rd party bindings\n\nXamarin (by @Flash3001): *iOS* - [GitHub](https://github.com/Flash3001/iOSCharts.Xamarin)/[NuGet](https://www.nuget.org/packages/iOSCharts/). *Android* - [GitHub](https://github.com/Flash3001/MPAndroidChart.Xamarin)/[NuGet](https://www.nuget.org/packages/MPAndroidChart/).\n\n## Help\n\nIf you like what you see here, and want to support the work being done in this repository, you could:\n* Contribute code, issues and pull requests\n* Let people know this library exists (:fire: spread the word :fire:)\n* [![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=68UL6Y8KUPS96) (You can buy me a beer, or you can buy me dinner :-)\n\n**Note:** The author of [MPAndroidChart](https://github.com/PhilJay/MPAndroidChart) is the reason that this library exists, and is accepting [donations](https://github.com/PhilJay/MPAndroidChart#donations) on his page. He deserves them!\n\nQuestions & Issues\n-----\n\nIf you are having questions or problems, you should:\n\n - Make sure you are using the latest version of the library. Check the [**release-section**](https://github.com/danielgindi/Charts/releases).\n - Study the Android version's [**Documentation-Wiki**](https://github.com/PhilJay/MPAndroidChart/wiki)\n - Study the (Still incomplete [![Doc-Percent](https://img.shields.io/cocoapods/metrics/doc-percent/Charts.svg)](http://cocoadocs.org/docsets/Charts/)) [**Pod-Documentation**](http://cocoadocs.org/docsets/Charts/)\n - Search or open questions on [**stackoverflow**](http://stackoverflow.com/questions/tagged/ios-charts) with the `ios-charts` tag\n - Search [**known issues**](https://github.com/danielgindi/Charts/issues) for your problem (open and closed)\n - Create new issues (please :fire: **search known issues before** :fire:, do not create duplicate issues)\n\n\nFeatures\n=======\n\n**Core features:**\n - 8 different chart types\n - Scaling on both axes (with touch-gesture, axes separately or pinch-zoom)\n - Dragging / Panning (with touch-gesture)\n - Combined-Charts (line-, bar-, scatter-, candle-stick-, bubble-)\n - Dual (separate) Axes\n - Customizable Axes (both x- and y-axis)\n - Highlighting values (with customizable popup-views)\n - Save chart to camera-roll / export to PNG/JPEG\n - Predefined color templates\n - Legends (generated automatically, customizable)\n - Animations (build up animations, on both x- and y-axis)\n - Limit lines (providing additional information, maximums, ...)\n - Fully customizable (paints, typefaces, legends, colors, background, gestures, dashed lines, ...)\n - Plotting data directly from [**Realm.io**](https://realm.io) mobile database ([here](https://github.com/danielgindi/ChartsRealm))\n\n**Chart types:**\n\n*Screenshots are currently taken from the original repository, as they render exactly the same :-)*\n\n\n - **LineChart (with legend, simple design)**\n![alt tag](https://raw.github.com/PhilJay/MPChart/master/screenshots/simpledesign_linechart4.png)\n - **LineChart (with legend, simple design)**\n![alt tag](https://raw.github.com/PhilJay/MPChart/master/screenshots/simpledesign_linechart3.png)\n\n - **LineChart (cubic lines)**\n![alt tag](https://raw.github.com/PhilJay/MPChart/master/screenshots/cubiclinechart.png)\n\n - **LineChart (gradient fill)**\n![alt tag](https://raw.github.com/PhilJay/MPAndroidChart/master/screenshots/line_chart_gradient.png)\n\n - **Combined-Chart (bar- and linechart in this case)**\n![alt tag](https://raw.github.com/PhilJay/MPChart/master/screenshots/combined_chart.png)\n\n - **BarChart (with legend, simple design)**\n\n![alt tag](https://raw.github.com/PhilJay/MPChart/master/screenshots/simpledesign_barchart3.png)\n\n - **BarChart (grouped DataSets)**\n\n![alt tag](https://raw.github.com/PhilJay/MPChart/master/screenshots/groupedbarchart.png)\n\n - **Horizontal-BarChart**\n\n![alt tag](https://raw.github.com/PhilJay/MPChart/master/screenshots/horizontal_barchart.png)\n\n\n - **PieChart (with selection, ...)**\n\n![alt tag](https://raw.github.com/PhilJay/MPAndroidChart/master/screenshots/simpledesign_piechart1.png)\n\n - **ScatterChart** (with squares, triangles, circles, ... and more)\n\n![alt tag](https://raw.github.com/PhilJay/MPAndroidChart/master/screenshots/scatterchart.png)\n\n - **CandleStickChart** (for financial data)\n\n![alt tag](https://raw.github.com/PhilJay/MPAndroidChart/master/screenshots/candlestickchart.png)\n\n - **BubbleChart** (area covered by bubbles indicates the value)\n\n![alt tag](https://raw.github.com/PhilJay/MPAndroidChart/master/screenshots/bubblechart.png)\n\n - **RadarChart** (spider web chart)\n\n![alt tag](https://raw.github.com/PhilJay/MPAndroidChart/master/screenshots/radarchart.png)\n\n\nDocumentation\n=======\nCurrently there's no need for documentation for the iOS/tvOS/macOS version, as the API is **95% the same** as on Android.  \nYou can read the official [MPAndroidChart](https://github.com/PhilJay/MPAndroidChart) documentation here: [**Wiki**](https://github.com/PhilJay/MPAndroidChart/wiki)\n\nOr you can see the Charts Demo project in both Objective-C and Swift ([**ChartsDemo-iOS**](https://github.com/danielgindi/Charts/tree/master/ChartsDemo-iOS), as well as macOS [**ChartsDemo-macOS**](https://github.com/danielgindi/Charts/tree/master/ChartsDemo-macOS)) and learn the how-tos from it.\n\n\nSpecial Thanks\n=======\n\nGoes to [@liuxuan30](https://github.com/liuxuan30), [@petester42](https://github.com/petester42) and  [@AlBirdie](https://github.com/AlBirdie) for new features, bugfixes, and lots and lots of involvement in our open-sourced community! You guys are a huge help to all of those coming here with questions and issues, and I couldn't respond to all of those without you.\n\n### Our amazing sponsors\n\n[Debricked](https://debricked.com/): Use open source securely\n\n[![debricked](https://user-images.githubusercontent.com/4375169/73585544-25bfa800-44dd-11ea-9661-82519a125302.jpg)](https://debricked.com/)\n\n\nLicense\n=======\nCopyright 2016 Daniel Cohen Gindi & Philipp Jahoda\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Animation/Animator.swift",
    "content": "//\n//  Animator.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\nimport QuartzCore\n\n@objc(ChartAnimatorDelegate)\npublic protocol AnimatorDelegate\n{\n    /// Called when the Animator has stepped.\n    func animatorUpdated(_ animator: Animator)\n    \n    /// Called when the Animator has stopped.\n    func animatorStopped(_ animator: Animator)\n}\n\n@objc(ChartAnimator)\nopen class Animator: NSObject\n{\n    @objc open weak var delegate: AnimatorDelegate?\n    @objc open var updateBlock: (() -> Void)?\n    @objc open var stopBlock: (() -> Void)?\n    \n    /// the phase that is animated and influences the drawn values on the x-axis\n    @objc open var phaseX: Double = 1.0\n    \n    /// the phase that is animated and influences the drawn values on the y-axis\n    @objc open var phaseY: Double = 1.0\n    \n    private var _startTimeX: TimeInterval = 0.0\n    private var _startTimeY: TimeInterval = 0.0\n    private var _displayLink: NSUIDisplayLink?\n    \n    private var _durationX: TimeInterval = 0.0\n    private var _durationY: TimeInterval = 0.0\n    \n    private var _endTimeX: TimeInterval = 0.0\n    private var _endTimeY: TimeInterval = 0.0\n    private var _endTime: TimeInterval = 0.0\n    \n    private var _enabledX: Bool = false\n    private var _enabledY: Bool = false\n    \n    private var _easingX: ChartEasingFunctionBlock?\n    private var _easingY: ChartEasingFunctionBlock?\n\n    public override init()\n    {\n        super.init()\n    }\n    \n    deinit\n    {\n        stop()\n    }\n    \n    @objc open func stop()\n    {\n        guard _displayLink != nil else { return }\n\n        _displayLink?.remove(from: .main, forMode: RunLoop.Mode.common)\n        _displayLink = nil\n\n        _enabledX = false\n        _enabledY = false\n\n        // If we stopped an animation in the middle, we do not want to leave it like this\n        if phaseX != 1.0 || phaseY != 1.0\n        {\n            phaseX = 1.0\n            phaseY = 1.0\n\n            delegate?.animatorUpdated(self)\n            updateBlock?()\n        }\n\n        delegate?.animatorStopped(self)\n        stopBlock?()\n    }\n    \n    private func updateAnimationPhases(_ currentTime: TimeInterval)\n    {\n        if _enabledX\n        {\n            let elapsedTime: TimeInterval = currentTime - _startTimeX\n            let duration: TimeInterval = _durationX\n            var elapsed: TimeInterval = elapsedTime\n            if elapsed > duration\n            {\n                elapsed = duration\n            }\n           \n            phaseX = _easingX?(elapsed, duration) ?? elapsed / duration\n        }\n        \n        if _enabledY\n        {\n            let elapsedTime: TimeInterval = currentTime - _startTimeY\n            let duration: TimeInterval = _durationY\n            var elapsed: TimeInterval = elapsedTime\n            if elapsed > duration\n            {\n                elapsed = duration\n            }\n\n            phaseY = _easingY?(elapsed, duration) ?? elapsed / duration\n        }\n    }\n    \n    @objc private func animationLoop()\n    {\n        let currentTime: TimeInterval = CACurrentMediaTime()\n        \n        updateAnimationPhases(currentTime)\n\n        delegate?.animatorUpdated(self)\n        updateBlock?()\n        \n        if currentTime >= _endTime\n        {\n            stop()\n        }\n    }\n    \n    /// Animates the drawing / rendering of the chart on both x- and y-axis with the specified animation time.\n    /// If `animate(...)` is called, no further calling of `invalidate()` is necessary to refresh the chart.\n    ///\n    /// - Parameters:\n    ///   - xAxisDuration: duration for animating the x axis\n    ///   - yAxisDuration: duration for animating the y axis\n    ///   - easingX: an easing function for the animation on the x axis\n    ///   - easingY: an easing function for the animation on the y axis\n    @objc open func animate(xAxisDuration: TimeInterval, yAxisDuration: TimeInterval, easingX: ChartEasingFunctionBlock?, easingY: ChartEasingFunctionBlock?)\n    {\n        stop()\n        \n        _startTimeX = CACurrentMediaTime()\n        _startTimeY = _startTimeX\n        _durationX = xAxisDuration\n        _durationY = yAxisDuration\n        _endTimeX = _startTimeX + xAxisDuration\n        _endTimeY = _startTimeY + yAxisDuration\n        _endTime = _endTimeX > _endTimeY ? _endTimeX : _endTimeY\n        _enabledX = xAxisDuration > 0.0\n        _enabledY = yAxisDuration > 0.0\n        \n        _easingX = easingX\n        _easingY = easingY\n        \n        // Take care of the first frame if rendering is already scheduled...\n        updateAnimationPhases(_startTimeX)\n        \n        if _enabledX || _enabledY\n        {\n            _displayLink = NSUIDisplayLink(target: self, selector: #selector(animationLoop))\n            _displayLink?.add(to: RunLoop.main, forMode: RunLoop.Mode.common)\n        }\n    }\n    \n    /// Animates the drawing / rendering of the chart on both x- and y-axis with the specified animation time.\n    /// If `animate(...)` is called, no further calling of `invalidate()` is necessary to refresh the chart.\n    ///\n    /// - Parameters:\n    ///   - xAxisDuration: duration for animating the x axis\n    ///   - yAxisDuration: duration for animating the y axis\n    ///   - easingOptionX: the easing function for the animation on the x axis\n    ///   - easingOptionY: the easing function for the animation on the y axis\n    @objc open func animate(xAxisDuration: TimeInterval, yAxisDuration: TimeInterval, easingOptionX: ChartEasingOption, easingOptionY: ChartEasingOption)\n    {\n        animate(xAxisDuration: xAxisDuration, yAxisDuration: yAxisDuration, easingX: easingFunctionFromOption(easingOptionX), easingY: easingFunctionFromOption(easingOptionY))\n    }\n    \n    /// Animates the drawing / rendering of the chart on both x- and y-axis with the specified animation time.\n    /// If `animate(...)` is called, no further calling of `invalidate()` is necessary to refresh the chart.\n    ///\n    /// - Parameters:\n    ///   - xAxisDuration: duration for animating the x axis\n    ///   - yAxisDuration: duration for animating the y axis\n    ///   - easing: an easing function for the animation\n    @objc open func animate(xAxisDuration: TimeInterval, yAxisDuration: TimeInterval, easing: ChartEasingFunctionBlock?)\n    {\n        animate(xAxisDuration: xAxisDuration, yAxisDuration: yAxisDuration, easingX: easing, easingY: easing)\n    }\n    \n    /// Animates the drawing / rendering of the chart on both x- and y-axis with the specified animation time.\n    /// If `animate(...)` is called, no further calling of `invalidate()` is necessary to refresh the chart.\n    ///\n    /// - Parameters:\n    ///   - xAxisDuration: duration for animating the x axis\n    ///   - yAxisDuration: duration for animating the y axis\n    ///   - easingOption: the easing function for the animation\n    @objc open func animate(xAxisDuration: TimeInterval, yAxisDuration: TimeInterval, easingOption: ChartEasingOption = .easeInOutSine)\n    {\n        animate(xAxisDuration: xAxisDuration, yAxisDuration: yAxisDuration, easing: easingFunctionFromOption(easingOption))\n    }\n\n    /// Animates the drawing / rendering of the chart the x-axis with the specified animation time.\n    /// If `animate(...)` is called, no further calling of `invalidate()` is necessary to refresh the chart.\n    ///\n    /// - Parameters:\n    ///   - xAxisDuration: duration for animating the x axis\n    ///   - easing: an easing function for the animation\n    @objc open func animate(xAxisDuration: TimeInterval, easing: ChartEasingFunctionBlock?)\n    {\n        _startTimeX = CACurrentMediaTime()\n        _durationX = xAxisDuration\n        _endTimeX = _startTimeX + xAxisDuration\n        _endTime = _endTimeX > _endTimeY ? _endTimeX : _endTimeY\n        _enabledX = xAxisDuration > 0.0\n        \n        _easingX = easing\n        \n        // Take care of the first frame if rendering is already scheduled...\n        updateAnimationPhases(_startTimeX)\n        \n        if _enabledX || _enabledY,\n            _displayLink == nil\n        {\n            _displayLink = NSUIDisplayLink(target: self, selector: #selector(animationLoop))\n            _displayLink?.add(to: .main, forMode: RunLoop.Mode.common)\n        }\n    }\n    \n    /// Animates the drawing / rendering of the chart the x-axis with the specified animation time.\n    /// If `animate(...)` is called, no further calling of `invalidate()` is necessary to refresh the chart.\n    ///\n    /// - Parameters:\n    ///   - xAxisDuration: duration for animating the x axis\n    ///   - easingOption: the easing function for the animation\n    @objc open func animate(xAxisDuration: TimeInterval, easingOption: ChartEasingOption = .easeInOutSine)\n    {\n        animate(xAxisDuration: xAxisDuration, easing: easingFunctionFromOption(easingOption))\n    }\n\n    /// Animates the drawing / rendering of the chart the y-axis with the specified animation time.\n    /// If `animate(...)` is called, no further calling of `invalidate()` is necessary to refresh the chart.\n    ///\n    /// - Parameters:\n    ///   - yAxisDuration: duration for animating the y axis\n    ///   - easing: an easing function for the animation\n    @objc open func animate(yAxisDuration: TimeInterval, easing: ChartEasingFunctionBlock?)\n    {\n        _startTimeY = CACurrentMediaTime()\n        _durationY = yAxisDuration\n        _endTimeY = _startTimeY + yAxisDuration\n        _endTime = _endTimeX > _endTimeY ? _endTimeX : _endTimeY\n        _enabledY = yAxisDuration > 0.0\n        \n        _easingY = easing\n        \n        // Take care of the first frame if rendering is already scheduled...\n        updateAnimationPhases(_startTimeY)\n        \n        if _enabledX || _enabledY,\n            _displayLink == nil\n        {\n            _displayLink = NSUIDisplayLink(target: self, selector: #selector(animationLoop))\n            _displayLink?.add(to: .main, forMode: RunLoop.Mode.common)\n        }\n    }\n    \n    /// Animates the drawing / rendering of the chart the y-axis with the specified animation time.\n    /// If `animate(...)` is called, no further calling of `invalidate()` is necessary to refresh the chart.\n    ///\n    /// - Parameters:\n    ///   - yAxisDuration: duration for animating the y axis\n    ///   - easingOption: the easing function for the animation\n    @objc open func animate(yAxisDuration: TimeInterval, easingOption: ChartEasingOption = .easeInOutSine)\n    {\n        animate(yAxisDuration: yAxisDuration, easing: easingFunctionFromOption(easingOption))\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift",
    "content": "//\n//  ChartAnimationUtils.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc\npublic enum ChartEasingOption: Int\n{\n    case linear\n    case easeInQuad\n    case easeOutQuad\n    case easeInOutQuad\n    case easeInCubic\n    case easeOutCubic\n    case easeInOutCubic\n    case easeInQuart\n    case easeOutQuart\n    case easeInOutQuart\n    case easeInQuint\n    case easeOutQuint\n    case easeInOutQuint\n    case easeInSine\n    case easeOutSine\n    case easeInOutSine\n    case easeInExpo\n    case easeOutExpo\n    case easeInOutExpo\n    case easeInCirc\n    case easeOutCirc\n    case easeInOutCirc\n    case easeInElastic\n    case easeOutElastic\n    case easeInOutElastic\n    case easeInBack\n    case easeOutBack\n    case easeInOutBack\n    case easeInBounce\n    case easeOutBounce\n    case easeInOutBounce\n}\n\npublic typealias ChartEasingFunctionBlock = ((_ elapsed: TimeInterval, _ duration: TimeInterval) -> Double)\n\ninternal func easingFunctionFromOption(_ easing: ChartEasingOption) -> ChartEasingFunctionBlock\n{\n    switch easing\n    {\n    case .linear:\n        return EasingFunctions.Linear\n    case .easeInQuad:\n        return EasingFunctions.EaseInQuad\n    case .easeOutQuad:\n        return EasingFunctions.EaseOutQuad\n    case .easeInOutQuad:\n        return EasingFunctions.EaseInOutQuad\n    case .easeInCubic:\n        return EasingFunctions.EaseInCubic\n    case .easeOutCubic:\n        return EasingFunctions.EaseOutCubic\n    case .easeInOutCubic:\n        return EasingFunctions.EaseInOutCubic\n    case .easeInQuart:\n        return EasingFunctions.EaseInQuart\n    case .easeOutQuart:\n        return EasingFunctions.EaseOutQuart\n    case .easeInOutQuart:\n        return EasingFunctions.EaseInOutQuart\n    case .easeInQuint:\n        return EasingFunctions.EaseInQuint\n    case .easeOutQuint:\n        return EasingFunctions.EaseOutQuint\n    case .easeInOutQuint:\n        return EasingFunctions.EaseInOutQuint\n    case .easeInSine:\n        return EasingFunctions.EaseInSine\n    case .easeOutSine:\n        return EasingFunctions.EaseOutSine\n    case .easeInOutSine:\n        return EasingFunctions.EaseInOutSine\n    case .easeInExpo:\n        return EasingFunctions.EaseInExpo\n    case .easeOutExpo:\n        return EasingFunctions.EaseOutExpo\n    case .easeInOutExpo:\n        return EasingFunctions.EaseInOutExpo\n    case .easeInCirc:\n        return EasingFunctions.EaseInCirc\n    case .easeOutCirc:\n        return EasingFunctions.EaseOutCirc\n    case .easeInOutCirc:\n        return EasingFunctions.EaseInOutCirc\n    case .easeInElastic:\n        return EasingFunctions.EaseInElastic\n    case .easeOutElastic:\n        return EasingFunctions.EaseOutElastic\n    case .easeInOutElastic:\n        return EasingFunctions.EaseInOutElastic\n    case .easeInBack:\n        return EasingFunctions.EaseInBack\n    case .easeOutBack:\n        return EasingFunctions.EaseOutBack\n    case .easeInOutBack:\n        return EasingFunctions.EaseInOutBack\n    case .easeInBounce:\n        return EasingFunctions.EaseInBounce\n    case .easeOutBounce:\n        return EasingFunctions.EaseOutBounce\n    case .easeInOutBounce:\n        return EasingFunctions.EaseInOutBounce\n    }\n}\n\ninternal struct EasingFunctions\n{\n    internal static let Linear = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in return Double(elapsed / duration) }\n    \n    internal static let EaseInQuad = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        var position = Double(elapsed / duration)\n        return position * position\n    }\n    \n    internal static let EaseOutQuad = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        var position = Double(elapsed / duration)\n        return -position * (position - 2.0)\n    }\n    \n    internal static let EaseInOutQuad = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        var position = Double(elapsed / (duration / 2.0))\n        if position < 1.0\n        {\n            return 0.5 * position * position\n        }\n        \n        return -0.5 * ((position - 1.0) * (position - 3.0) - 1.0)\n    }\n    \n    internal static let EaseInCubic = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        var position = Double(elapsed / duration)\n        return position * position * position\n    }\n    \n    internal static let EaseOutCubic = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        var position = Double(elapsed / duration)\n        position -= 1.0\n        return (position * position * position + 1.0)\n    }\n    \n    internal static let EaseInOutCubic = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        var position = Double(elapsed / (duration / 2.0))\n        if position < 1.0\n        {\n            return 0.5 * position * position * position\n        }\n        position -= 2.0\n        return 0.5 * (position * position * position + 2.0)\n    }\n    \n    internal static let EaseInQuart = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        var position = Double(elapsed / duration)\n        return position * position * position * position\n    }\n    \n    internal static let EaseOutQuart = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        var position = Double(elapsed / duration)\n        position -= 1.0\n        return -(position * position * position * position - 1.0)\n    }\n    \n    internal static let EaseInOutQuart = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        var position = Double(elapsed / (duration / 2.0))\n        if position < 1.0\n        {\n            return 0.5 * position * position * position * position\n        }\n        position -= 2.0\n        return -0.5 * (position * position * position * position - 2.0)\n    }\n    \n    internal static let EaseInQuint = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        var position = Double(elapsed / duration)\n        return position * position * position * position * position\n    }\n    \n    internal static let EaseOutQuint = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        var position = Double(elapsed / duration)\n        position -= 1.0\n        return (position * position * position * position * position + 1.0)\n    }\n    \n    internal static let EaseInOutQuint = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        var position = Double(elapsed / (duration / 2.0))\n        if position < 1.0\n        {\n            return 0.5 * position * position * position * position * position\n        }\n        else\n        {\n            position -= 2.0\n            return 0.5 * (position * position * position * position * position + 2.0)\n        }\n    }\n    \n    internal static let EaseInSine = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        var position: TimeInterval = elapsed / duration\n        return Double( -cos(position * Double.pi / 2) + 1.0 )\n    }\n    \n    internal static let EaseOutSine = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        var position: TimeInterval = elapsed / duration\n        return Double( sin(position * Double.pi / 2) )\n    }\n    \n    internal static let EaseInOutSine = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        var position: TimeInterval = elapsed / duration\n        return Double( -0.5 * (cos(Double.pi * position) - 1.0) )\n    }\n    \n    internal static let EaseInExpo = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        return (elapsed == 0) ? 0.0 : Double(pow(2.0, 10.0 * (elapsed / duration - 1.0)))\n    }\n    \n    internal static let EaseOutExpo = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        return (elapsed == duration) ? 1.0 : (-Double(pow(2.0, -10.0 * elapsed / duration)) + 1.0)\n    }\n    \n    internal static let EaseInOutExpo = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        if elapsed == 0\n        {\n            return 0.0\n        }\n        if elapsed == duration\n        {\n            return 1.0\n        }\n        \n        var position: TimeInterval = elapsed / (duration / 2.0)\n        if position < 1.0\n        {\n            return Double( 0.5 * pow(2.0, 10.0 * (position - 1.0)) )\n        }\n        \n        position = position - 1.0\n        return Double( 0.5 * (-pow(2.0, -10.0 * position) + 2.0) )\n    }\n    \n    internal static let EaseInCirc = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        var position = Double(elapsed / duration)\n        return -(Double(sqrt(1.0 - position * position)) - 1.0)\n    }\n    \n    internal static let EaseOutCirc = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        var position = Double(elapsed / duration)\n        position -= 1.0\n        return Double( sqrt(1 - position * position) )\n    }\n    \n    internal static let EaseInOutCirc = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        var position: TimeInterval = elapsed / (duration / 2.0)\n        if position < 1.0\n        {\n            return Double( -0.5 * (sqrt(1.0 - position * position) - 1.0) )\n        }\n        position -= 2.0\n        return Double( 0.5 * (sqrt(1.0 - position * position) + 1.0) )\n    }\n    \n    internal static let EaseInElastic = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        if elapsed == 0.0\n        {\n            return 0.0\n        }\n        \n        var position: TimeInterval = elapsed / duration\n        if position == 1.0\n        {\n            return 1.0\n        }\n        \n        var p = duration * 0.3\n        var s = p / (2.0 * Double.pi) * asin(1.0)\n        position -= 1.0\n        return Double( -(pow(2.0, 10.0 * position) * sin((position * duration - s) * (2.0 * Double.pi) / p)) )\n    }\n    \n    internal static let EaseOutElastic = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        if elapsed == 0.0\n        {\n            return 0.0\n        }\n        \n        var position: TimeInterval = elapsed / duration\n        if position == 1.0\n        {\n            return 1.0\n        }\n        \n        var p = duration * 0.3\n        var s = p / (2.0 * Double.pi) * asin(1.0)\n        return Double( pow(2.0, -10.0 * position) * sin((position * duration - s) * (2.0 * Double.pi) / p) + 1.0 )\n    }\n    \n    internal static let EaseInOutElastic = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        if elapsed == 0.0\n        {\n            return 0.0\n        }\n        \n        var position: TimeInterval = elapsed / (duration / 2.0)\n        if position == 2.0\n        {\n            return 1.0\n        }\n        \n        var p = duration * (0.3 * 1.5)\n        var s = p / (2.0 * Double.pi) * asin(1.0)\n        if position < 1.0\n        {\n            position -= 1.0\n            return Double( -0.5 * (pow(2.0, 10.0 * position) * sin((position * duration - s) * (2.0 * Double.pi) / p)) )\n        }\n        position -= 1.0\n        return Double( pow(2.0, -10.0 * position) * sin((position * duration - s) * (2.0 * Double.pi) / p) * 0.5 + 1.0 )\n    }\n    \n    internal static let EaseInBack = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        let s: TimeInterval = 1.70158\n        var position: TimeInterval = elapsed / duration\n        return Double( position * position * ((s + 1.0) * position - s) )\n    }\n    \n    internal static let EaseOutBack = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        let s: TimeInterval = 1.70158\n        var position: TimeInterval = elapsed / duration\n        position -= 1.0\n        return Double( position * position * ((s + 1.0) * position + s) + 1.0 )\n    }\n    \n    internal static let EaseInOutBack = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        var s: TimeInterval = 1.70158\n        var position: TimeInterval = elapsed / (duration / 2.0)\n        if position < 1.0\n        {\n            s *= 1.525\n            return Double( 0.5 * (position * position * ((s + 1.0) * position - s)) )\n        }\n        s *= 1.525\n        position -= 2.0\n        return Double( 0.5 * (position * position * ((s + 1.0) * position + s) + 2.0) )\n    }\n    \n    internal static let EaseInBounce = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        return 1.0 - EaseOutBounce(duration - elapsed, duration)\n    }\n    \n    internal static let EaseOutBounce = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        var position: TimeInterval = elapsed / duration\n        if position < (1.0 / 2.75)\n        {\n            return Double( 7.5625 * position * position )\n        }\n        else if position < (2.0 / 2.75)\n        {\n            position -= (1.5 / 2.75)\n            return Double( 7.5625 * position * position + 0.75 )\n        }\n        else if position < (2.5 / 2.75)\n        {\n            position -= (2.25 / 2.75)\n            return Double( 7.5625 * position * position + 0.9375 )\n        }\n        else\n        {\n            position -= (2.625 / 2.75)\n            return Double( 7.5625 * position * position + 0.984375 )\n        }\n    }\n    \n    internal static let EaseInOutBounce = { (elapsed: TimeInterval, duration: TimeInterval) -> Double in\n        if elapsed < (duration / 2.0)\n        {\n            return EaseInBounce(elapsed * 2.0, duration) * 0.5\n        }\n        return EaseOutBounce(elapsed * 2.0 - duration, duration) * 0.5 + 0.5\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Charts/BarChartView.swift",
    "content": "//\n//  BarChartView.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n/// Chart that draws bars.\nopen class BarChartView: BarLineChartViewBase, BarChartDataProvider\n{\n    /// if set to true, all values are drawn above their bars, instead of below their top\n    private var _drawValueAboveBarEnabled = true\n\n    /// if set to true, a grey area is drawn behind each bar that indicates the maximum value\n    private var _drawBarShadowEnabled = false\n    \n    internal override func initialize()\n    {\n        super.initialize()\n        \n        renderer = BarChartRenderer(dataProvider: self, animator: _animator, viewPortHandler: _viewPortHandler)\n        \n        self.highlighter = BarHighlighter(chart: self)\n        \n        self.xAxis.spaceMin = 0.5\n        self.xAxis.spaceMax = 0.5\n    }\n    \n    internal override func calcMinMax()\n    {\n        guard let data = self.data as? BarChartData\n            else { return }\n        \n        if fitBars\n        {\n            _xAxis.calculate(\n                min: data.xMin - data.barWidth / 2.0,\n                max: data.xMax + data.barWidth / 2.0)\n        }\n        else\n        {\n            _xAxis.calculate(min: data.xMin, max: data.xMax)\n        }\n        \n        // calculate axis range (min / max) according to provided data\n        leftAxis.calculate(\n            min: data.getYMin(axis: .left),\n            max: data.getYMax(axis: .left))\n        rightAxis.calculate(\n            min: data.getYMin(axis: .right),\n            max: data.getYMax(axis: .right))\n    }\n    \n    /// - Returns: The Highlight object (contains x-index and DataSet index) of the selected value at the given touch point inside the BarChart.\n    open override func getHighlightByTouchPoint(_ pt: CGPoint) -> Highlight?\n    {\n        if _data === nil\n        {\n            Swift.print(\"Can't select by touch. No data set.\")\n            return nil\n        }\n        \n        guard let h = self.highlighter?.getHighlight(x: pt.x, y: pt.y)\n            else { return nil }\n        \n        if !isHighlightFullBarEnabled { return h }\n        \n        // For isHighlightFullBarEnabled, remove stackIndex\n        return Highlight(\n            x: h.x, y: h.y,\n            xPx: h.xPx, yPx: h.yPx,\n            dataIndex: h.dataIndex,\n            dataSetIndex: h.dataSetIndex,\n            stackIndex: -1,\n            axis: h.axis)\n    }\n        \n    /// - Returns: The bounding box of the specified Entry in the specified DataSet. Returns null if the Entry could not be found in the charts data.\n    @objc open func getBarBounds(entry e: BarChartDataEntry) -> CGRect\n    {\n        guard let\n            data = _data as? BarChartData,\n            let set = data.getDataSetForEntry(e) as? IBarChartDataSet\n            else { return CGRect.null }\n        \n        let y = e.y\n        let x = e.x\n        \n        let barWidth = data.barWidth\n        \n        let left = x - barWidth / 2.0\n        let right = x + barWidth / 2.0\n        let top = y >= 0.0 ? y : 0.0\n        let bottom = y <= 0.0 ? y : 0.0\n        \n        var bounds = CGRect(x: left, y: top, width: right - left, height: bottom - top)\n        \n        getTransformer(forAxis: set.axisDependency).rectValueToPixel(&bounds)\n        \n        return bounds\n    }\n    \n    /// Groups all BarDataSet objects this data object holds together by modifying the x-value of their entries.\n    /// Previously set x-values of entries will be overwritten. Leaves space between bars and groups as specified by the parameters.\n    /// Calls `notifyDataSetChanged()` afterwards.\n    ///\n    /// - Parameters:\n    ///   - fromX: the starting point on the x-axis where the grouping should begin\n    ///   - groupSpace: the space between groups of bars in values (not pixels) e.g. 0.8f for bar width 1f\n    ///   - barSpace: the space between individual bars in values (not pixels) e.g. 0.1f for bar width 1f\n    @objc open func groupBars(fromX: Double, groupSpace: Double, barSpace: Double)\n    {\n        guard let barData = self.barData\n            else\n        {\n            Swift.print(\"You need to set data for the chart before grouping bars.\", terminator: \"\\n\")\n            return\n        }\n        \n        barData.groupBars(fromX: fromX, groupSpace: groupSpace, barSpace: barSpace)\n        notifyDataSetChanged()\n    }\n    \n    /// Highlights the value at the given x-value in the given DataSet. Provide -1 as the dataSetIndex to undo all highlighting.\n    ///\n    /// - Parameters:\n    ///   - x:\n    ///   - dataSetIndex:\n    ///   - stackIndex: the index inside the stack - only relevant for stacked entries\n    @objc open func highlightValue(x: Double, dataSetIndex: Int, stackIndex: Int)\n    {\n        highlightValue(Highlight(x: x, dataSetIndex: dataSetIndex, stackIndex: stackIndex))\n    }\n\n    // MARK: Accessors\n    \n    /// if set to true, all values are drawn above their bars, instead of below their top\n    @objc open var drawValueAboveBarEnabled: Bool\n    {\n        get { return _drawValueAboveBarEnabled }\n        set\n        {\n            _drawValueAboveBarEnabled = newValue\n            setNeedsDisplay()\n        }\n    }\n    \n    /// if set to true, a grey area is drawn behind each bar that indicates the maximum value\n    @objc open var drawBarShadowEnabled: Bool\n    {\n        get { return _drawBarShadowEnabled }\n        set\n        {\n            _drawBarShadowEnabled = newValue\n            setNeedsDisplay()\n        }\n    }\n    \n    /// Adds half of the bar width to each side of the x-axis range in order to allow the bars of the barchart to be fully displayed.\n    /// **default**: false\n    @objc open var fitBars = false\n    \n    /// Set this to `true` to make the highlight operation full-bar oriented, `false` to make it highlight single values (relevant only for stacked).\n    /// If enabled, highlighting operations will highlight the whole bar, even if only a single stack entry was tapped.\n    @objc open var highlightFullBarEnabled: Bool = false\n    \n    /// `true` the highlight is be full-bar oriented, `false` ifsingle-value\n    open var isHighlightFullBarEnabled: Bool { return highlightFullBarEnabled }\n    \n    // MARK: - BarChartDataProvider\n    \n    open var barData: BarChartData? { return _data as? BarChartData }\n    \n    /// `true` if drawing values above bars is enabled, `false` ifnot\n    open var isDrawValueAboveBarEnabled: Bool { return drawValueAboveBarEnabled }\n    \n    /// `true` if drawing shadows (maxvalue) for each bar is enabled, `false` ifnot\n    open var isDrawBarShadowEnabled: Bool { return drawBarShadowEnabled }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift",
    "content": "//\n//  BarLineChartViewBase.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n#if canImport(UIKit)\n    import UIKit\n#endif\n\n#if canImport(Cocoa)\nimport Cocoa\n#endif\n\n/// Base-class of LineChart, BarChart, ScatterChart and CandleStickChart.\nopen class BarLineChartViewBase: ChartViewBase, BarLineScatterCandleBubbleChartDataProvider, NSUIGestureRecognizerDelegate\n{\n    /// the maximum number of entries to which values will be drawn\n    /// (entry numbers greater than this value will cause value-labels to disappear)\n    internal var _maxVisibleCount = 100\n    \n    /// flag that indicates if auto scaling on the y axis is enabled\n    private var _autoScaleMinMaxEnabled = false\n    \n    private var _pinchZoomEnabled = false\n    private var _doubleTapToZoomEnabled = true\n    private var _dragXEnabled = true\n    private var _dragYEnabled = true\n    \n    private var _scaleXEnabled = true\n    private var _scaleYEnabled = true\n    \n    /// the color for the background of the chart-drawing area (everything behind the grid lines).\n    @objc open var gridBackgroundColor = NSUIColor(red: 240/255.0, green: 240/255.0, blue: 240/255.0, alpha: 1.0)\n    \n    @objc open var borderColor = NSUIColor.black\n    @objc open var borderLineWidth: CGFloat = 1.0\n    \n    /// flag indicating if the grid background should be drawn or not\n    @objc open var drawGridBackgroundEnabled = false\n    \n    /// When enabled, the borders rectangle will be rendered.\n    /// If this is enabled, there is no point drawing the axis-lines of x- and y-axis.\n    @objc open var drawBordersEnabled = false\n    \n    /// When enabled, the values will be clipped to contentRect, otherwise they can bleed outside the content rect.\n    @objc open var clipValuesToContentEnabled: Bool = false\n\n    /// When disabled, the data and/or highlights will not be clipped to contentRect. Disabling this option can\n    /// be useful, when the data lies fully within the content rect, but is drawn in such a way (such as thick lines)\n    /// that there is unwanted clipping.\n    @objc open var clipDataToContentEnabled: Bool = true\n\n    /// Sets the minimum offset (padding) around the chart, defaults to 10\n    @objc open var minOffset = CGFloat(10.0)\n    \n    /// Sets whether the chart should keep its position (zoom / scroll) after a rotation (orientation change)\n    /// **default**: false\n    @objc open var keepPositionOnRotation: Bool = false\n    \n    /// The left y-axis object. In the horizontal bar-chart, this is the\n    /// top axis.\n    @objc open internal(set) var leftAxis = YAxis(position: .left)\n    \n    /// The right y-axis object. In the horizontal bar-chart, this is the\n    /// bottom axis.\n    @objc open internal(set) var rightAxis = YAxis(position: .right)\n\n    /// The left Y axis renderer. This is a read-write property so you can set your own custom renderer here.\n    /// **default**: An instance of YAxisRenderer\n    @objc open lazy var leftYAxisRenderer = YAxisRenderer(viewPortHandler: _viewPortHandler, yAxis: leftAxis, transformer: _leftAxisTransformer)\n\n    /// The right Y axis renderer. This is a read-write property so you can set your own custom renderer here.\n    /// **default**: An instance of YAxisRenderer\n    @objc open lazy var rightYAxisRenderer = YAxisRenderer(viewPortHandler: _viewPortHandler, yAxis: rightAxis, transformer: _rightAxisTransformer)\n    \n    internal var _leftAxisTransformer: Transformer!\n    internal var _rightAxisTransformer: Transformer!\n    \n    /// The X axis renderer. This is a read-write property so you can set your own custom renderer here.\n    /// **default**: An instance of XAxisRenderer\n    @objc open lazy var xAxisRenderer = XAxisRenderer(viewPortHandler: _viewPortHandler, xAxis: _xAxis, transformer: _leftAxisTransformer)\n    \n    internal var _tapGestureRecognizer: NSUITapGestureRecognizer!\n    internal var _doubleTapGestureRecognizer: NSUITapGestureRecognizer!\n    #if !os(tvOS)\n    internal var _pinchGestureRecognizer: NSUIPinchGestureRecognizer!\n    #endif\n    internal var _panGestureRecognizer: NSUIPanGestureRecognizer!\n    \n    /// flag that indicates if a custom viewport offset has been set\n    private var _customViewPortEnabled = false\n    \n    public override init(frame: CGRect)\n    {\n        super.init(frame: frame)\n    }\n    \n    public required init?(coder aDecoder: NSCoder)\n    {\n        super.init(coder: aDecoder)\n    }\n    \n    deinit\n    {\n        stopDeceleration()\n    }\n    \n    internal override func initialize()\n    {\n        super.initialize()\n\n        _leftAxisTransformer = Transformer(viewPortHandler: _viewPortHandler)\n        _rightAxisTransformer = Transformer(viewPortHandler: _viewPortHandler)\n        \n        self.highlighter = ChartHighlighter(chart: self)\n        \n        _tapGestureRecognizer = NSUITapGestureRecognizer(target: self, action: #selector(tapGestureRecognized(_:)))\n        _doubleTapGestureRecognizer = NSUITapGestureRecognizer(target: self, action: #selector(doubleTapGestureRecognized(_:)))\n        _doubleTapGestureRecognizer.nsuiNumberOfTapsRequired = 2\n        _panGestureRecognizer = NSUIPanGestureRecognizer(target: self, action: #selector(panGestureRecognized(_:)))\n        \n        _panGestureRecognizer.delegate = self\n        \n        self.addGestureRecognizer(_tapGestureRecognizer)\n        self.addGestureRecognizer(_doubleTapGestureRecognizer)\n        self.addGestureRecognizer(_panGestureRecognizer)\n        \n        _doubleTapGestureRecognizer.isEnabled = _doubleTapToZoomEnabled\n        _panGestureRecognizer.isEnabled = _dragXEnabled || _dragYEnabled\n\n        #if !os(tvOS)\n        _pinchGestureRecognizer = NSUIPinchGestureRecognizer(target: self, action: #selector(BarLineChartViewBase.pinchGestureRecognized(_:)))\n        _pinchGestureRecognizer.delegate = self\n        self.addGestureRecognizer(_pinchGestureRecognizer)\n        _pinchGestureRecognizer.isEnabled = _pinchZoomEnabled || _scaleXEnabled || _scaleYEnabled\n        #endif\n    }\n    \n    open override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?)\n    {\n        // Saving current position of chart.\n        var oldPoint: CGPoint?\n        if (keepPositionOnRotation && (keyPath == \"frame\" || keyPath == \"bounds\"))\n        {\n            oldPoint = viewPortHandler.contentRect.origin\n            getTransformer(forAxis: .left).pixelToValues(&oldPoint!)\n        }\n        \n        // Superclass transforms chart.\n        super.observeValue(forKeyPath: keyPath, of: object, change: change, context: context)\n        \n        // Restoring old position of chart\n        if var newPoint = oldPoint , keepPositionOnRotation\n        {\n            getTransformer(forAxis: .left).pointValueToPixel(&newPoint)\n            viewPortHandler.centerViewPort(pt: newPoint, chart: self)\n        }\n        else\n        {\n            viewPortHandler.refresh(newMatrix: viewPortHandler.touchMatrix, chart: self, invalidate: true)\n        }\n    }\n    \n    open override func draw(_ rect: CGRect)\n    {\n        super.draw(rect)\n\n        guard data != nil, let renderer = renderer else { return }\n        \n        let optionalContext = NSUIGraphicsGetCurrentContext()\n        guard let context = optionalContext else { return }\n\n        // execute all drawing commands\n        drawGridBackground(context: context)\n        \n\n        if _autoScaleMinMaxEnabled\n        {\n            autoScale()\n        }\n\n        if leftAxis.isEnabled\n        {\n            leftYAxisRenderer.computeAxis(min: leftAxis._axisMinimum, max: leftAxis._axisMaximum, inverted: leftAxis.isInverted)\n        }\n        \n        if rightAxis.isEnabled\n        {\n            rightYAxisRenderer.computeAxis(min: rightAxis._axisMinimum, max: rightAxis._axisMaximum, inverted: rightAxis.isInverted)\n        }\n        \n        if _xAxis.isEnabled\n        {\n            xAxisRenderer.computeAxis(min: _xAxis._axisMinimum, max: _xAxis._axisMaximum, inverted: false)\n        }\n        \n        xAxisRenderer.renderAxisLine(context: context)\n        leftYAxisRenderer.renderAxisLine(context: context)\n        rightYAxisRenderer.renderAxisLine(context: context)\n\n        // The renderers are responsible for clipping, to account for line-width center etc.\n        if xAxis.drawGridLinesBehindDataEnabled\n        {\n            xAxisRenderer.renderGridLines(context: context)\n            leftYAxisRenderer.renderGridLines(context: context)\n            rightYAxisRenderer.renderGridLines(context: context)\n        }\n        \n        if _xAxis.isEnabled && _xAxis.isDrawLimitLinesBehindDataEnabled\n        {\n            xAxisRenderer.renderLimitLines(context: context)\n        }\n        \n        if leftAxis.isEnabled && leftAxis.isDrawLimitLinesBehindDataEnabled\n        {\n            leftYAxisRenderer.renderLimitLines(context: context)\n        }\n        \n        if rightAxis.isEnabled && rightAxis.isDrawLimitLinesBehindDataEnabled\n        {\n            rightYAxisRenderer.renderLimitLines(context: context)\n        }\n        \n        context.saveGState()\n        // make sure the data cannot be drawn outside the content-rect\n        if clipDataToContentEnabled {\n            context.clip(to: _viewPortHandler.contentRect)\n        }\n        renderer.drawData(context: context)\n        \n        // The renderers are responsible for clipping, to account for line-width center etc.\n        if !xAxis.drawGridLinesBehindDataEnabled\n        {\n            xAxisRenderer.renderGridLines(context: context)\n            leftYAxisRenderer.renderGridLines(context: context)\n            rightYAxisRenderer.renderGridLines(context: context)\n        }\n        \n        // if highlighting is enabled\n        if (valuesToHighlight())\n        {\n            renderer.drawHighlighted(context: context, indices: _indicesToHighlight)\n        }\n        \n        context.restoreGState()\n        \n        renderer.drawExtras(context: context)\n        \n        if _xAxis.isEnabled && !_xAxis.isDrawLimitLinesBehindDataEnabled\n        {\n            xAxisRenderer.renderLimitLines(context: context)\n        }\n        \n        if leftAxis.isEnabled && !leftAxis.isDrawLimitLinesBehindDataEnabled\n        {\n            leftYAxisRenderer.renderLimitLines(context: context)\n        }\n        \n        if rightAxis.isEnabled && !rightAxis.isDrawLimitLinesBehindDataEnabled\n        {\n            rightYAxisRenderer.renderLimitLines(context: context)\n        }\n        \n        xAxisRenderer.renderAxisLabels(context: context)\n        leftYAxisRenderer.renderAxisLabels(context: context)\n        rightYAxisRenderer.renderAxisLabels(context: context)\n\n        if clipValuesToContentEnabled\n        {\n            context.saveGState()\n            context.clip(to: _viewPortHandler.contentRect)\n            \n            renderer.drawValues(context: context)\n            \n            context.restoreGState()\n        }\n        else\n        {\n            renderer.drawValues(context: context)\n        }\n\n        _legendRenderer.renderLegend(context: context)\n\n        drawDescription(context: context)\n        \n        drawMarkers(context: context)\n    }\n    \n    private var _autoScaleLastLowestVisibleX: Double?\n    private var _autoScaleLastHighestVisibleX: Double?\n    \n    /// Performs auto scaling of the axis by recalculating the minimum and maximum y-values based on the entries currently in view.\n    internal func autoScale()\n    {\n        guard let data = _data\n            else { return }\n        \n        data.calcMinMaxY(fromX: self.lowestVisibleX, toX: self.highestVisibleX)\n        \n        _xAxis.calculate(min: data.xMin, max: data.xMax)\n        \n        // calculate axis range (min / max) according to provided data\n        \n        if leftAxis.isEnabled\n        {\n            leftAxis.calculate(min: data.getYMin(axis: .left), max: data.getYMax(axis: .left))\n        }\n        \n        if rightAxis.isEnabled\n        {\n            rightAxis.calculate(min: data.getYMin(axis: .right), max: data.getYMax(axis: .right))\n        }\n        \n        calculateOffsets()\n    }\n    \n    internal func prepareValuePxMatrix()\n    {\n        _rightAxisTransformer.prepareMatrixValuePx(chartXMin: _xAxis._axisMinimum, deltaX: CGFloat(xAxis.axisRange), deltaY: CGFloat(rightAxis.axisRange), chartYMin: rightAxis._axisMinimum)\n        _leftAxisTransformer.prepareMatrixValuePx(chartXMin: xAxis._axisMinimum, deltaX: CGFloat(xAxis.axisRange), deltaY: CGFloat(leftAxis.axisRange), chartYMin: leftAxis._axisMinimum)\n    }\n    \n    internal func prepareOffsetMatrix()\n    {\n        _rightAxisTransformer.prepareMatrixOffset(inverted: rightAxis.isInverted)\n        _leftAxisTransformer.prepareMatrixOffset(inverted: leftAxis.isInverted)\n    }\n    \n    open override func notifyDataSetChanged()\n    {\n        renderer?.initBuffers()\n        \n        calcMinMax()\n        \n        leftYAxisRenderer.computeAxis(min: leftAxis._axisMinimum, max: leftAxis._axisMaximum, inverted: leftAxis.isInverted)\n        rightYAxisRenderer.computeAxis(min: rightAxis._axisMinimum, max: rightAxis._axisMaximum, inverted: rightAxis.isInverted)\n        \n        if let data = _data\n        {\n            xAxisRenderer.computeAxis(\n                min: _xAxis._axisMinimum,\n                max: _xAxis._axisMaximum,\n                inverted: false)\n\n            if _legend !== nil\n            {\n                legendRenderer?.computeLegend(data: data)\n            }\n        }\n        \n        calculateOffsets()\n        \n        setNeedsDisplay()\n    }\n    \n    internal override func calcMinMax()\n    {\n        // calculate / set x-axis range\n        _xAxis.calculate(min: _data?.xMin ?? 0.0, max: _data?.xMax ?? 0.0)\n        \n        // calculate axis range (min / max) according to provided data\n        leftAxis.calculate(min: _data?.getYMin(axis: .left) ?? 0.0, max: _data?.getYMax(axis: .left) ?? 0.0)\n        rightAxis.calculate(min: _data?.getYMin(axis: .right) ?? 0.0, max: _data?.getYMax(axis: .right) ?? 0.0)\n    }\n    \n    internal func calculateLegendOffsets(offsetLeft: inout CGFloat, offsetTop: inout CGFloat, offsetRight: inout CGFloat, offsetBottom: inout CGFloat)\n    {\n        // setup offsets for legend\n        if _legend !== nil && _legend.isEnabled && !_legend.drawInside\n        {\n            switch _legend.orientation\n            {\n            case .vertical:\n                \n                switch _legend.horizontalAlignment\n                {\n                case .left:\n                    offsetLeft += min(_legend.neededWidth, _viewPortHandler.chartWidth * _legend.maxSizePercent) + _legend.xOffset\n                    \n                case .right:\n                    offsetRight += min(_legend.neededWidth, _viewPortHandler.chartWidth * _legend.maxSizePercent) + _legend.xOffset\n                    \n                case .center:\n                    \n                    switch _legend.verticalAlignment\n                    {\n                    case .top:\n                        offsetTop += min(_legend.neededHeight, _viewPortHandler.chartHeight * _legend.maxSizePercent) + _legend.yOffset\n                        \n                    case .bottom:\n                        offsetBottom += min(_legend.neededHeight, _viewPortHandler.chartHeight * _legend.maxSizePercent) + _legend.yOffset\n                        \n                    default:\n                        break\n                    }\n                }\n                \n            case .horizontal:\n                \n                switch _legend.verticalAlignment\n                {\n                case .top:\n                    offsetTop += min(_legend.neededHeight, _viewPortHandler.chartHeight * _legend.maxSizePercent) + _legend.yOffset\n                    \n                case .bottom:\n                    offsetBottom += min(_legend.neededHeight, _viewPortHandler.chartHeight * _legend.maxSizePercent) + _legend.yOffset\n                    \n                default:\n                    break\n                }\n            }\n        }\n    }\n    \n    internal override func calculateOffsets()\n    {\n        if !_customViewPortEnabled\n        {\n            var offsetLeft = CGFloat(0.0)\n            var offsetRight = CGFloat(0.0)\n            var offsetTop = CGFloat(0.0)\n            var offsetBottom = CGFloat(0.0)\n            \n            calculateLegendOffsets(offsetLeft: &offsetLeft,\n                                   offsetTop: &offsetTop,\n                                   offsetRight: &offsetRight,\n                                   offsetBottom: &offsetBottom)\n            \n            // offsets for y-labels\n            if leftAxis.needsOffset\n            {\n                offsetLeft += leftAxis.requiredSize().width\n            }\n            \n            if rightAxis.needsOffset\n            {\n                offsetRight += rightAxis.requiredSize().width\n            }\n\n            if xAxis.isEnabled && xAxis.isDrawLabelsEnabled\n            {\n                let xlabelheight = xAxis.labelRotatedHeight + xAxis.yOffset\n                \n                // offsets for x-labels\n                if xAxis.labelPosition == .bottom\n                {\n                    offsetBottom += xlabelheight\n                }\n                else if xAxis.labelPosition == .top\n                {\n                    offsetTop += xlabelheight\n                }\n                else if xAxis.labelPosition == .bothSided\n                {\n                    offsetBottom += xlabelheight\n                    offsetTop += xlabelheight\n                }\n            }\n            \n            offsetTop += self.extraTopOffset\n            offsetRight += self.extraRightOffset\n            offsetBottom += self.extraBottomOffset\n            offsetLeft += self.extraLeftOffset\n\n            _viewPortHandler.restrainViewPort(\n                offsetLeft: max(self.minOffset, offsetLeft),\n                offsetTop: max(self.minOffset, offsetTop),\n                offsetRight: max(self.minOffset, offsetRight),\n                offsetBottom: max(self.minOffset, offsetBottom))\n        }\n        \n        prepareOffsetMatrix()\n        prepareValuePxMatrix()\n    }\n    \n    /// draws the grid background\n    internal func drawGridBackground(context: CGContext)\n    {\n        if drawGridBackgroundEnabled || drawBordersEnabled\n        {\n            context.saveGState()\n        }\n        \n        if drawGridBackgroundEnabled\n        {\n            // draw the grid background\n            context.setFillColor(gridBackgroundColor.cgColor)\n            context.fill(_viewPortHandler.contentRect)\n        }\n        \n        if drawBordersEnabled\n        {\n            context.setLineWidth(borderLineWidth)\n            context.setStrokeColor(borderColor.cgColor)\n            context.stroke(_viewPortHandler.contentRect)\n        }\n        \n        if drawGridBackgroundEnabled || drawBordersEnabled\n        {\n            context.restoreGState()\n        }\n    }\n    \n    // MARK: - Gestures\n    \n    private enum GestureScaleAxis\n    {\n        case both\n        case x\n        case y\n    }\n    \n    private var _isDragging = false\n    private var _isScaling = false\n    private var _gestureScaleAxis = GestureScaleAxis.both\n    private var _closestDataSetToTouch: IChartDataSet!\n    private var _panGestureReachedEdge: Bool = false\n    private weak var _outerScrollView: NSUIScrollView?\n    \n    private var _lastPanPoint = CGPoint() /// This is to prevent using setTranslation which resets velocity\n    \n    private var _decelerationLastTime: TimeInterval = 0.0\n    private var _decelerationDisplayLink: NSUIDisplayLink!\n    private var _decelerationVelocity = CGPoint()\n    \n    @objc private func tapGestureRecognized(_ recognizer: NSUITapGestureRecognizer)\n    {\n        if _data === nil\n        {\n            return\n        }\n        \n        if recognizer.state == NSUIGestureRecognizerState.ended\n        {\n            if !isHighLightPerTapEnabled { return }\n            \n            let h = getHighlightByTouchPoint(recognizer.location(in: self))\n            \n            if h === nil || h == self.lastHighlighted\n            {\n                lastHighlighted = nil\n                highlightValue(nil, callDelegate: true)\n            }\n            else\n            {\n                lastHighlighted = h\n                highlightValue(h, callDelegate: true)\n            }\n        }\n    }\n    \n    @objc private func doubleTapGestureRecognized(_ recognizer: NSUITapGestureRecognizer)\n    {\n        if _data === nil\n        {\n            return\n        }\n        \n        if recognizer.state == NSUIGestureRecognizerState.ended\n        {\n            if _data !== nil && _doubleTapToZoomEnabled && (data?.entryCount ?? 0) > 0\n            {\n                var location = recognizer.location(in: self)\n                location.x = location.x - _viewPortHandler.offsetLeft\n                \n                if isTouchInverted()\n                {\n                    location.y = -(location.y - _viewPortHandler.offsetTop)\n                }\n                else\n                {\n                    location.y = -(self.bounds.size.height - location.y - _viewPortHandler.offsetBottom)\n                }\n\n                let scaleX: CGFloat = isScaleXEnabled ? 1.4 : 1.0\n                let scaleY: CGFloat = isScaleYEnabled ? 1.4 : 1.0\n\n                self.zoom(scaleX: scaleX, scaleY: scaleY, x: location.x, y: location.y)\n                delegate?.chartScaled?(self, scaleX: scaleX, scaleY: scaleY)\n            }\n        }\n    }\n    \n    #if !os(tvOS)\n    @objc private func pinchGestureRecognized(_ recognizer: NSUIPinchGestureRecognizer)\n    {\n        if recognizer.state == NSUIGestureRecognizerState.began\n        {\n            stopDeceleration()\n            \n            if _data !== nil &&\n                (_pinchZoomEnabled || _scaleXEnabled || _scaleYEnabled)\n            {\n                _isScaling = true\n                \n                if _pinchZoomEnabled\n                {\n                    _gestureScaleAxis = .both\n                }\n                else\n                {\n                    let x = abs(recognizer.location(in: self).x - recognizer.nsuiLocationOfTouch(1, inView: self).x)\n                    let y = abs(recognizer.location(in: self).y - recognizer.nsuiLocationOfTouch(1, inView: self).y)\n                    \n                    if _scaleXEnabled != _scaleYEnabled\n                    {\n                        _gestureScaleAxis = _scaleXEnabled ? .x : .y\n                    }\n                    else\n                    {\n                        _gestureScaleAxis = x > y ? .x : .y\n                    }\n                }\n            }\n        }\n        else if recognizer.state == NSUIGestureRecognizerState.ended ||\n            recognizer.state == NSUIGestureRecognizerState.cancelled\n        {\n            if _isScaling\n            {\n                _isScaling = false\n                \n                // Range might have changed, which means that Y-axis labels could have changed in size, affecting Y-axis size. So we need to recalculate offsets.\n                calculateOffsets()\n                setNeedsDisplay()\n            }\n        }\n        else if recognizer.state == NSUIGestureRecognizerState.changed\n        {\n            let isZoomingOut = (recognizer.nsuiScale < 1)\n            var canZoomMoreX = isZoomingOut ? _viewPortHandler.canZoomOutMoreX : _viewPortHandler.canZoomInMoreX\n            var canZoomMoreY = isZoomingOut ? _viewPortHandler.canZoomOutMoreY : _viewPortHandler.canZoomInMoreY\n            \n            if _isScaling\n            {\n                canZoomMoreX = canZoomMoreX && _scaleXEnabled && (_gestureScaleAxis == .both || _gestureScaleAxis == .x)\n                canZoomMoreY = canZoomMoreY && _scaleYEnabled && (_gestureScaleAxis == .both || _gestureScaleAxis == .y)\n                if canZoomMoreX || canZoomMoreY\n                {\n                    var location = recognizer.location(in: self)\n                    location.x = location.x - _viewPortHandler.offsetLeft\n                    \n                    if isTouchInverted()\n                    {\n                        location.y = -(location.y - _viewPortHandler.offsetTop)\n                    }\n                    else\n                    {\n                        location.y = -(_viewPortHandler.chartHeight - location.y - _viewPortHandler.offsetBottom)\n                    }\n                    \n                    let scaleX = canZoomMoreX ? recognizer.nsuiScale : 1.0\n                    let scaleY = canZoomMoreY ? recognizer.nsuiScale : 1.0\n                    \n                    var matrix = CGAffineTransform(translationX: location.x, y: location.y)\n                    matrix = matrix.scaledBy(x: scaleX, y: scaleY)\n                    matrix = matrix.translatedBy(x: -location.x, y: -location.y)\n                    \n                    matrix = _viewPortHandler.touchMatrix.concatenating(matrix)\n                    \n                    _viewPortHandler.refresh(newMatrix: matrix, chart: self, invalidate: true)\n                    \n                    if delegate !== nil\n                    {\n                        delegate?.chartScaled?(self, scaleX: scaleX, scaleY: scaleY)\n                    }\n                }\n                \n                recognizer.nsuiScale = 1.0\n            }\n        }\n    }\n    #endif\n    \n    @objc private func panGestureRecognized(_ recognizer: NSUIPanGestureRecognizer)\n    {\n        if recognizer.state == NSUIGestureRecognizerState.began && recognizer.nsuiNumberOfTouches() > 0\n        {\n            stopDeceleration()\n            \n            if _data === nil || !self.isDragEnabled\n            { // If we have no data, we have nothing to pan and no data to highlight\n                return\n            }\n            \n            // If drag is enabled and we are in a position where there's something to drag:\n            //  * If we're zoomed in, then obviously we have something to drag.\n            //  * If we have a drag offset - we always have something to drag\n            if !self.hasNoDragOffset || !self.isFullyZoomedOut\n            {\n                _isDragging = true\n                \n                _closestDataSetToTouch = getDataSetByTouchPoint(point: recognizer.nsuiLocationOfTouch(0, inView: self))\n                \n                var translation = recognizer.translation(in: self)\n                if !self.dragXEnabled\n                {\n                    translation.x = 0.0\n                }\n                else if !self.dragYEnabled\n                {\n                    translation.y = 0.0\n                }\n                \n                let didUserDrag = translation.x != 0.0 || translation.y != 0.0\n                \n                // Check to see if user dragged at all and if so, can the chart be dragged by the given amount\n                if didUserDrag && !performPanChange(translation: translation)\n                {\n                    if _outerScrollView !== nil\n                    {\n                        // We can stop dragging right now, and let the scroll view take control\n                        _outerScrollView = nil\n                        _isDragging = false\n                    }\n                }\n                else\n                {\n                    if _outerScrollView !== nil\n                    {\n                        // Prevent the parent scroll view from scrolling\n                        _outerScrollView?.nsuiIsScrollEnabled = false\n                    }\n                }\n                \n                _lastPanPoint = recognizer.translation(in: self)\n            }\n            else if self.isHighlightPerDragEnabled\n            {\n                // We will only handle highlights on NSUIGestureRecognizerState.Changed\n                \n                _isDragging = false\n            }\n        }\n        else if recognizer.state == NSUIGestureRecognizerState.changed\n        {\n            if _isDragging\n            {\n                let originalTranslation = recognizer.translation(in: self)\n                var translation = CGPoint(x: originalTranslation.x - _lastPanPoint.x, y: originalTranslation.y - _lastPanPoint.y)\n                \n                if !self.dragXEnabled\n                {\n                    translation.x = 0.0\n                }\n                else if !self.dragYEnabled\n                {\n                    translation.y = 0.0\n                }\n                \n                let _ = performPanChange(translation: translation)\n                \n                _lastPanPoint = originalTranslation\n            }\n            else if isHighlightPerDragEnabled\n            {\n                let h = getHighlightByTouchPoint(recognizer.location(in: self))\n                \n                let lastHighlighted = self.lastHighlighted\n                \n                if h != lastHighlighted\n                {\n                    self.lastHighlighted = h\n                    self.highlightValue(h, callDelegate: true)\n                }\n            }\n        }\n        else if recognizer.state == NSUIGestureRecognizerState.ended || recognizer.state == NSUIGestureRecognizerState.cancelled\n        {\n            if _isDragging\n            {\n                if recognizer.state == NSUIGestureRecognizerState.ended && isDragDecelerationEnabled\n                {\n                    stopDeceleration()\n                    \n                    _decelerationLastTime = CACurrentMediaTime()\n                    _decelerationVelocity = recognizer.velocity(in: self)\n                    \n                    _decelerationDisplayLink = NSUIDisplayLink(target: self, selector: #selector(BarLineChartViewBase.decelerationLoop))\n                    _decelerationDisplayLink.add(to: RunLoop.main, forMode: RunLoop.Mode.common)\n                }\n                \n                _isDragging = false\n                \n                delegate?.chartViewDidEndPanning?(self)\n            }\n            \n            if _outerScrollView !== nil\n            {\n                _outerScrollView?.nsuiIsScrollEnabled = true\n                _outerScrollView = nil\n            }\n        }\n    }\n    \n    private func performPanChange(translation: CGPoint) -> Bool\n    {\n        var translation = translation\n        \n        if isTouchInverted()\n        {\n            if self is HorizontalBarChartView\n            {\n                translation.x = -translation.x\n            }\n            else\n            {\n                translation.y = -translation.y\n            }\n        }\n        \n        let originalMatrix = _viewPortHandler.touchMatrix\n        \n        var matrix = CGAffineTransform(translationX: translation.x, y: translation.y)\n        matrix = originalMatrix.concatenating(matrix)\n        \n        matrix = _viewPortHandler.refresh(newMatrix: matrix, chart: self, invalidate: true)\n        \n        if matrix != originalMatrix\n        {\n            delegate?.chartTranslated?(self, dX: translation.x, dY: translation.y)\n        }\n        \n        // Did we managed to actually drag or did we reach the edge?\n        return matrix.tx != originalMatrix.tx || matrix.ty != originalMatrix.ty\n    }\n    \n    private func isTouchInverted() -> Bool\n    {\n        return isAnyAxisInverted &&\n            _closestDataSetToTouch !== nil &&\n            getAxis(_closestDataSetToTouch.axisDependency).isInverted\n    }\n    \n    @objc open func stopDeceleration()\n    {\n        if _decelerationDisplayLink !== nil\n        {\n            _decelerationDisplayLink.remove(from: RunLoop.main, forMode: RunLoop.Mode.common)\n            _decelerationDisplayLink = nil\n        }\n    }\n    \n    @objc private func decelerationLoop()\n    {\n        let currentTime = CACurrentMediaTime()\n        \n        _decelerationVelocity.x *= self.dragDecelerationFrictionCoef\n        _decelerationVelocity.y *= self.dragDecelerationFrictionCoef\n        \n        let timeInterval = CGFloat(currentTime - _decelerationLastTime)\n        \n        let distance = CGPoint(\n            x: _decelerationVelocity.x * timeInterval,\n            y: _decelerationVelocity.y * timeInterval\n        )\n        \n        if !performPanChange(translation: distance)\n        {\n            // We reached the edge, stop\n            _decelerationVelocity.x = 0.0\n            _decelerationVelocity.y = 0.0\n        }\n        \n        _decelerationLastTime = currentTime\n        \n        if abs(_decelerationVelocity.x) < 0.001 && abs(_decelerationVelocity.y) < 0.001\n        {\n            stopDeceleration()\n            \n            // Range might have changed, which means that Y-axis labels could have changed in size, affecting Y-axis size. So we need to recalculate offsets.\n            calculateOffsets()\n            setNeedsDisplay()\n        }\n    }\n    \n    private func nsuiGestureRecognizerShouldBegin(_ gestureRecognizer: NSUIGestureRecognizer) -> Bool\n    {\n        if gestureRecognizer == _panGestureRecognizer\n        {\n            let velocity = _panGestureRecognizer.velocity(in: self)\n            if _data === nil || !isDragEnabled ||\n                (self.hasNoDragOffset && self.isFullyZoomedOut && !self.isHighlightPerDragEnabled) ||\n                (!_dragYEnabled && abs(velocity.y) > abs(velocity.x)) ||\n                (!_dragXEnabled && abs(velocity.y) < abs(velocity.x))\n            {\n                return false\n            }\n        }\n        else\n        {\n            #if !os(tvOS)\n            if gestureRecognizer == _pinchGestureRecognizer\n            {\n                if _data === nil || (!_pinchZoomEnabled && !_scaleXEnabled && !_scaleYEnabled)\n                {\n                    return false\n                }\n            }\n            #endif\n        }\n        \n        return true\n    }\n    \n    #if !os(OSX)\n    open override func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool\n    {\n        if !super.gestureRecognizerShouldBegin(gestureRecognizer)\n        {\n            return false\n        }\n        \n        return nsuiGestureRecognizerShouldBegin(gestureRecognizer)\n    }\n    #endif\n    \n    #if os(OSX)\n    public func gestureRecognizerShouldBegin(gestureRecognizer: NSGestureRecognizer) -> Bool\n    {\n        return nsuiGestureRecognizerShouldBegin(gestureRecognizer)\n    }\n    #endif\n    \n    open func gestureRecognizer(_ gestureRecognizer: NSUIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: NSUIGestureRecognizer) -> Bool\n    {\n        #if !os(tvOS)\n        if ((gestureRecognizer is NSUIPinchGestureRecognizer && otherGestureRecognizer is NSUIPanGestureRecognizer) ||\n            (gestureRecognizer is NSUIPanGestureRecognizer && otherGestureRecognizer is NSUIPinchGestureRecognizer))\n        {\n            return true\n        }\n        #endif\n        \n        if gestureRecognizer is NSUIPanGestureRecognizer,\n            otherGestureRecognizer is NSUIPanGestureRecognizer,\n            gestureRecognizer == _panGestureRecognizer\n        {\n            var scrollView = self.superview\n            while scrollView != nil && !(scrollView is NSUIScrollView)\n            {\n                scrollView = scrollView?.superview\n            }\n            \n            // If there is two scrollview together, we pick the superview of the inner scrollview.\n            // In the case of UITableViewWrepperView, the superview will be UITableView\n            if let superViewOfScrollView = scrollView?.superview,\n                superViewOfScrollView is NSUIScrollView\n            {\n                scrollView = superViewOfScrollView\n            }\n\n            var foundScrollView = scrollView as? NSUIScrollView\n            \n            if !(foundScrollView?.nsuiIsScrollEnabled ?? true)\n            {\n                foundScrollView = nil\n            }\n            \n            let scrollViewPanGestureRecognizer = foundScrollView?.nsuiGestureRecognizers?.first {\n                $0 is NSUIPanGestureRecognizer\n            }\n            \n            if otherGestureRecognizer === scrollViewPanGestureRecognizer\n            {\n                _outerScrollView = foundScrollView\n                \n                return true\n            }\n        }\n        \n        return false\n    }\n    \n    /// MARK: Viewport modifiers\n    \n    /// Zooms in by 1.4, into the charts center.\n    @objc open func zoomIn()\n    {\n        let center = _viewPortHandler.contentCenter\n        \n        let matrix = _viewPortHandler.zoomIn(x: center.x, y: -center.y)\n        _viewPortHandler.refresh(newMatrix: matrix, chart: self, invalidate: false)\n        \n        // Range might have changed, which means that Y-axis labels could have changed in size, affecting Y-axis size. So we need to recalculate offsets.\n        calculateOffsets()\n        setNeedsDisplay()\n    }\n\n    /// Zooms out by 0.7, from the charts center.\n    @objc open func zoomOut()\n    {\n        let center = _viewPortHandler.contentCenter\n        \n        let matrix = _viewPortHandler.zoomOut(x: center.x, y: -center.y)\n        _viewPortHandler.refresh(newMatrix: matrix, chart: self, invalidate: false)\n\n        // Range might have changed, which means that Y-axis labels could have changed in size, affecting Y-axis size. So we need to recalculate offsets.\n        calculateOffsets()\n        setNeedsDisplay()\n    }\n    \n    /// Zooms out to original size.\n    @objc open func resetZoom()\n    {\n        let matrix = _viewPortHandler.resetZoom()\n        _viewPortHandler.refresh(newMatrix: matrix, chart: self, invalidate: false)\n        \n        // Range might have changed, which means that Y-axis labels could have changed in size, affecting Y-axis size. So we need to recalculate offsets.\n        calculateOffsets()\n        setNeedsDisplay()\n    }\n\n    /// Zooms in or out by the given scale factor. x and y are the coordinates\n    /// (in pixels) of the zoom center.\n    ///\n    /// - Parameters:\n    ///   - scaleX: if < 1 --> zoom out, if > 1 --> zoom in\n    ///   - scaleY: if < 1 --> zoom out, if > 1 --> zoom in\n    ///   - x:\n    ///   - y:\n    @objc open func zoom(\n        scaleX: CGFloat,\n               scaleY: CGFloat,\n               x: CGFloat,\n               y: CGFloat)\n    {\n        let matrix = _viewPortHandler.zoom(scaleX: scaleX, scaleY: scaleY, x: x, y: -y)\n        _viewPortHandler.refresh(newMatrix: matrix, chart: self, invalidate: false)\n        \n        // Range might have changed, which means that Y-axis labels could have changed in size, affecting Y-axis size. So we need to recalculate offsets.\n        calculateOffsets()\n        setNeedsDisplay()\n    }\n    \n    /// Zooms in or out by the given scale factor.\n    /// x and y are the values (**not pixels**) of the zoom center.\n    ///\n    /// - Parameters:\n    ///   - scaleX: if < 1 --> zoom out, if > 1 --> zoom in\n    ///   - scaleY: if < 1 --> zoom out, if > 1 --> zoom in\n    ///   - xValue:\n    ///   - yValue:\n    ///   - axis:\n    @objc open func zoom(\n        scaleX: CGFloat,\n               scaleY: CGFloat,\n               xValue: Double,\n               yValue: Double,\n               axis: YAxis.AxisDependency)\n    {\n        let job = ZoomViewJob(\n            viewPortHandler: viewPortHandler,\n            scaleX: scaleX,\n            scaleY: scaleY,\n            xValue: xValue,\n            yValue: yValue,\n            transformer: getTransformer(forAxis: axis),\n            axis: axis,\n            view: self)\n        addViewportJob(job)\n    }\n    \n    /// Zooms to the center of the chart with the given scale factor.\n    ///\n    /// - Parameters:\n    ///   - scaleX: if < 1 --> zoom out, if > 1 --> zoom in\n    ///   - scaleY: if < 1 --> zoom out, if > 1 --> zoom in\n    ///   - xValue:\n    ///   - yValue:\n    ///   - axis:\n    @objc open func zoomToCenter(\n        scaleX: CGFloat,\n               scaleY: CGFloat)\n    {\n        let center = centerOffsets\n        let matrix = viewPortHandler.zoom(\n            scaleX: scaleX,\n            scaleY: scaleY,\n            x: center.x,\n            y: -center.y)\n        viewPortHandler.refresh(newMatrix: matrix, chart: self, invalidate: false)\n    }\n    \n    /// Zooms by the specified scale factor to the specified values on the specified axis.\n    ///\n    /// - Parameters:\n    ///   - scaleX:\n    ///   - scaleY:\n    ///   - xValue:\n    ///   - yValue:\n    ///   - axis: which axis should be used as a reference for the y-axis\n    ///   - duration: the duration of the animation in seconds\n    ///   - easing:\n    @objc open func zoomAndCenterViewAnimated(\n        scaleX: CGFloat,\n        scaleY: CGFloat,\n        xValue: Double,\n        yValue: Double,\n        axis: YAxis.AxisDependency,\n        duration: TimeInterval,\n        easing: ChartEasingFunctionBlock?)\n    {\n        let origin = valueForTouchPoint(\n            point: CGPoint(x: viewPortHandler.contentLeft, y: viewPortHandler.contentTop),\n            axis: axis)\n        \n        let job = AnimatedZoomViewJob(\n            viewPortHandler: viewPortHandler,\n            transformer: getTransformer(forAxis: axis),\n            view: self,\n            yAxis: getAxis(axis),\n            xAxisRange: _xAxis.axisRange,\n            scaleX: scaleX,\n            scaleY: scaleY,\n            xOrigin: viewPortHandler.scaleX,\n            yOrigin: viewPortHandler.scaleY,\n            zoomCenterX: CGFloat(xValue),\n            zoomCenterY: CGFloat(yValue),\n            zoomOriginX: origin.x,\n            zoomOriginY: origin.y,\n            duration: duration,\n            easing: easing)\n            \n        addViewportJob(job)\n    }\n    \n    /// Zooms by the specified scale factor to the specified values on the specified axis.\n    ///\n    /// - Parameters:\n    ///   - scaleX:\n    ///   - scaleY:\n    ///   - xValue:\n    ///   - yValue:\n    ///   - axis: which axis should be used as a reference for the y-axis\n    ///   - duration: the duration of the animation in seconds\n    ///   - easing:\n    @objc open func zoomAndCenterViewAnimated(\n        scaleX: CGFloat,\n        scaleY: CGFloat,\n        xValue: Double,\n        yValue: Double,\n        axis: YAxis.AxisDependency,\n        duration: TimeInterval,\n        easingOption: ChartEasingOption)\n    {\n        zoomAndCenterViewAnimated(scaleX: scaleX, scaleY: scaleY, xValue: xValue, yValue: yValue, axis: axis, duration: duration, easing: easingFunctionFromOption(easingOption))\n    }\n    \n    /// Zooms by the specified scale factor to the specified values on the specified axis.\n    ///\n    /// - Parameters:\n    ///   - scaleX:\n    ///   - scaleY:\n    ///   - xValue:\n    ///   - yValue:\n    ///   - axis: which axis should be used as a reference for the y-axis\n    ///   - duration: the duration of the animation in seconds\n    ///   - easing:\n    @objc open func zoomAndCenterViewAnimated(\n        scaleX: CGFloat,\n        scaleY: CGFloat,\n        xValue: Double,\n        yValue: Double,\n        axis: YAxis.AxisDependency,\n        duration: TimeInterval)\n    {\n        zoomAndCenterViewAnimated(scaleX: scaleX, scaleY: scaleY, xValue: xValue, yValue: yValue, axis: axis, duration: duration, easingOption: .easeInOutSine)\n    }\n    \n    /// Resets all zooming and dragging and makes the chart fit exactly it's bounds.\n    @objc open func fitScreen()\n    {\n        let matrix = _viewPortHandler.fitScreen()\n        _viewPortHandler.refresh(newMatrix: matrix, chart: self, invalidate: false)\n        \n        calculateOffsets()\n        setNeedsDisplay()\n    }\n    \n    /// Sets the minimum scale value to which can be zoomed out. 1 = fitScreen\n    @objc open func setScaleMinima(_ scaleX: CGFloat, scaleY: CGFloat)\n    {\n        _viewPortHandler.setMinimumScaleX(scaleX)\n        _viewPortHandler.setMinimumScaleY(scaleY)\n    }\n    \n    @objc open var visibleXRange: Double\n    {\n        return abs(highestVisibleX - lowestVisibleX)\n    }\n    \n    /// Sets the size of the area (range on the x-axis) that should be maximum visible at once (no further zooming out allowed).\n    ///\n    /// If this is e.g. set to 10, no more than a range of 10 values on the x-axis can be viewed at once without scrolling.\n    ///\n    /// If you call this method, chart must have data or it has no effect.\n    @objc open func setVisibleXRangeMaximum(_ maxXRange: Double)\n    {\n        let xScale = _xAxis.axisRange / maxXRange\n        _viewPortHandler.setMinimumScaleX(CGFloat(xScale))\n    }\n    \n    /// Sets the size of the area (range on the x-axis) that should be minimum visible at once (no further zooming in allowed).\n    ///\n    /// If this is e.g. set to 10, no less than a range of 10 values on the x-axis can be viewed at once without scrolling.\n    ///\n    /// If you call this method, chart must have data or it has no effect.\n    @objc open func setVisibleXRangeMinimum(_ minXRange: Double)\n    {\n        let xScale = _xAxis.axisRange / minXRange\n        _viewPortHandler.setMaximumScaleX(CGFloat(xScale))\n    }\n\n    /// Limits the maximum and minimum value count that can be visible by pinching and zooming.\n    ///\n    /// e.g. minRange=10, maxRange=100 no less than 10 values and no more that 100 values can be viewed\n    /// at once without scrolling.\n    ///\n    /// If you call this method, chart must have data or it has no effect.\n    @objc open func setVisibleXRange(minXRange: Double, maxXRange: Double)\n    {\n        let minScale = _xAxis.axisRange / maxXRange\n        let maxScale = _xAxis.axisRange / minXRange\n        _viewPortHandler.setMinMaxScaleX(\n            minScaleX: CGFloat(minScale),\n            maxScaleX: CGFloat(maxScale))\n    }\n    \n    /// Sets the size of the area (range on the y-axis) that should be maximum visible at once.\n    ///\n    /// - Parameters:\n    ///   - yRange:\n    ///   - axis: - the axis for which this limit should apply\n    @objc open func setVisibleYRangeMaximum(_ maxYRange: Double, axis: YAxis.AxisDependency)\n    {\n        let yScale = getAxisRange(axis: axis) / maxYRange\n        _viewPortHandler.setMinimumScaleY(CGFloat(yScale))\n    }\n    \n    /// Sets the size of the area (range on the y-axis) that should be minimum visible at once, no further zooming in possible.\n    ///\n    /// - Parameters:\n    ///   - yRange:\n    ///   - axis: - the axis for which this limit should apply\n    @objc open func setVisibleYRangeMinimum(_ minYRange: Double, axis: YAxis.AxisDependency)\n    {\n        let yScale = getAxisRange(axis: axis) / minYRange\n        _viewPortHandler.setMaximumScaleY(CGFloat(yScale))\n    }\n\n    /// Limits the maximum and minimum y range that can be visible by pinching and zooming.\n    ///\n    /// - Parameters:\n    ///   - minYRange:\n    ///   - maxYRange:\n    ///   - axis:\n    @objc open func setVisibleYRange(minYRange: Double, maxYRange: Double, axis: YAxis.AxisDependency)\n    {\n        let minScale = getAxisRange(axis: axis) / minYRange\n        let maxScale = getAxisRange(axis: axis) / maxYRange\n        _viewPortHandler.setMinMaxScaleY(minScaleY: CGFloat(minScale), maxScaleY: CGFloat(maxScale))\n    }\n    \n    /// Moves the left side of the current viewport to the specified x-value.\n    /// This also refreshes the chart by calling setNeedsDisplay().\n    @objc open func moveViewToX(_ xValue: Double)\n    {\n        let job = MoveViewJob(\n            viewPortHandler: viewPortHandler,\n            xValue: xValue,\n            yValue: 0.0,\n            transformer: getTransformer(forAxis: .left),\n            view: self)\n        \n        addViewportJob(job)\n    }\n\n    /// Centers the viewport to the specified y-value on the y-axis.\n    /// This also refreshes the chart by calling setNeedsDisplay().\n    /// \n    /// - Parameters:\n    ///   - yValue:\n    ///   - axis: - which axis should be used as a reference for the y-axis\n    @objc open func moveViewToY(_ yValue: Double, axis: YAxis.AxisDependency)\n    {\n        let yInView = getAxisRange(axis: axis) / Double(_viewPortHandler.scaleY)\n        \n        let job = MoveViewJob(\n            viewPortHandler: viewPortHandler,\n            xValue: 0.0,\n            yValue: yValue + yInView / 2.0,\n            transformer: getTransformer(forAxis: axis),\n            view: self)\n        \n        addViewportJob(job)\n    }\n\n    /// This will move the left side of the current viewport to the specified x-value on the x-axis, and center the viewport to the specified y-value on the y-axis.\n    /// This also refreshes the chart by calling setNeedsDisplay().\n    /// \n    /// - Parameters:\n    ///   - xValue:\n    ///   - yValue:\n    ///   - axis: - which axis should be used as a reference for the y-axis\n    @objc open func moveViewTo(xValue: Double, yValue: Double, axis: YAxis.AxisDependency)\n    {\n        let yInView = getAxisRange(axis: axis) / Double(_viewPortHandler.scaleY)\n        \n        let job = MoveViewJob(\n            viewPortHandler: viewPortHandler,\n            xValue: xValue,\n            yValue: yValue + yInView / 2.0,\n            transformer: getTransformer(forAxis: axis),\n            view: self)\n        \n        addViewportJob(job)\n    }\n    \n    /// This will move the left side of the current viewport to the specified x-position and center the viewport to the specified y-position animated.\n    /// This also refreshes the chart by calling setNeedsDisplay().\n    ///\n    /// - Parameters:\n    ///   - xValue:\n    ///   - yValue:\n    ///   - axis: which axis should be used as a reference for the y-axis\n    ///   - duration: the duration of the animation in seconds\n    ///   - easing:\n    @objc open func moveViewToAnimated(\n        xValue: Double,\n        yValue: Double,\n        axis: YAxis.AxisDependency,\n        duration: TimeInterval,\n        easing: ChartEasingFunctionBlock?)\n    {\n        let bounds = valueForTouchPoint(\n            point: CGPoint(x: viewPortHandler.contentLeft, y: viewPortHandler.contentTop),\n            axis: axis)\n        \n        let yInView = getAxisRange(axis: axis) / Double(_viewPortHandler.scaleY)\n        \n        let job = AnimatedMoveViewJob(\n            viewPortHandler: viewPortHandler,\n            xValue: xValue,\n            yValue: yValue + yInView / 2.0,\n            transformer: getTransformer(forAxis: axis),\n            view: self,\n            xOrigin: bounds.x,\n            yOrigin: bounds.y,\n            duration: duration,\n            easing: easing)\n        \n        addViewportJob(job)\n    }\n    \n    /// This will move the left side of the current viewport to the specified x-position and center the viewport to the specified y-position animated.\n    /// This also refreshes the chart by calling setNeedsDisplay().\n    ///\n    /// - Parameters:\n    ///   - xValue:\n    ///   - yValue:\n    ///   - axis: which axis should be used as a reference for the y-axis\n    ///   - duration: the duration of the animation in seconds\n    ///   - easing:\n    @objc open func moveViewToAnimated(\n        xValue: Double,\n        yValue: Double,\n        axis: YAxis.AxisDependency,\n        duration: TimeInterval,\n        easingOption: ChartEasingOption)\n    {\n        moveViewToAnimated(xValue: xValue, yValue: yValue, axis: axis, duration: duration, easing: easingFunctionFromOption(easingOption))\n    }\n    \n    /// This will move the left side of the current viewport to the specified x-position and center the viewport to the specified y-position animated.\n    /// This also refreshes the chart by calling setNeedsDisplay().\n    ///\n    /// - Parameters:\n    ///   - xValue:\n    ///   - yValue:\n    ///   - axis: which axis should be used as a reference for the y-axis\n    ///   - duration: the duration of the animation in seconds\n    ///   - easing:\n    @objc open func moveViewToAnimated(\n        xValue: Double,\n        yValue: Double,\n        axis: YAxis.AxisDependency,\n        duration: TimeInterval)\n    {\n        moveViewToAnimated(xValue: xValue, yValue: yValue, axis: axis, duration: duration, easingOption: .easeInOutSine)\n    }\n    \n    /// This will move the center of the current viewport to the specified x-value and y-value.\n    /// This also refreshes the chart by calling setNeedsDisplay().\n    ///\n    /// - Parameters:\n    ///   - xValue:\n    ///   - yValue:\n    ///   - axis: - which axis should be used as a reference for the y-axis\n    @objc open func centerViewTo(\n        xValue: Double,\n        yValue: Double,\n        axis: YAxis.AxisDependency)\n    {\n        let yInView = getAxisRange(axis: axis) / Double(_viewPortHandler.scaleY)\n        let xInView = xAxis.axisRange / Double(_viewPortHandler.scaleX)\n        \n        let job = MoveViewJob(\n            viewPortHandler: viewPortHandler,\n            xValue: xValue - xInView / 2.0,\n            yValue: yValue + yInView / 2.0,\n            transformer: getTransformer(forAxis: axis),\n            view: self)\n        \n        addViewportJob(job)\n    }\n    \n    /// This will move the center of the current viewport to the specified x-value and y-value animated.\n    ///\n    /// - Parameters:\n    ///   - xValue:\n    ///   - yValue:\n    ///   - axis: which axis should be used as a reference for the y-axis\n    ///   - duration: the duration of the animation in seconds\n    ///   - easing:\n    @objc open func centerViewToAnimated(\n        xValue: Double,\n        yValue: Double,\n        axis: YAxis.AxisDependency,\n        duration: TimeInterval,\n        easing: ChartEasingFunctionBlock?)\n    {\n        let bounds = valueForTouchPoint(\n            point: CGPoint(x: viewPortHandler.contentLeft, y: viewPortHandler.contentTop),\n            axis: axis)\n        \n        let yInView = getAxisRange(axis: axis) / Double(_viewPortHandler.scaleY)\n        let xInView = xAxis.axisRange / Double(_viewPortHandler.scaleX)\n        \n        let job = AnimatedMoveViewJob(\n            viewPortHandler: viewPortHandler,\n            xValue: xValue - xInView / 2.0,\n            yValue: yValue + yInView / 2.0,\n            transformer: getTransformer(forAxis: axis),\n            view: self,\n            xOrigin: bounds.x,\n            yOrigin: bounds.y,\n            duration: duration,\n            easing: easing)\n        \n        addViewportJob(job)\n    }\n    \n    /// This will move the center of the current viewport to the specified x-value and y-value animated.\n    ///\n    /// - Parameters:\n    ///   - xValue:\n    ///   - yValue:\n    ///   - axis: which axis should be used as a reference for the y-axis\n    ///   - duration: the duration of the animation in seconds\n    ///   - easing:\n    @objc open func centerViewToAnimated(\n        xValue: Double,\n        yValue: Double,\n        axis: YAxis.AxisDependency,\n        duration: TimeInterval,\n        easingOption: ChartEasingOption)\n    {\n        centerViewToAnimated(xValue: xValue, yValue: yValue, axis: axis, duration: duration, easing: easingFunctionFromOption(easingOption))\n    }\n    \n    /// This will move the center of the current viewport to the specified x-value and y-value animated.\n    ///\n    /// - Parameters:\n    ///   - xValue:\n    ///   - yValue:\n    ///   - axis: which axis should be used as a reference for the y-axis\n    ///   - duration: the duration of the animation in seconds\n    ///   - easing:\n    @objc open func centerViewToAnimated(\n        xValue: Double,\n        yValue: Double,\n        axis: YAxis.AxisDependency,\n        duration: TimeInterval)\n    {\n        centerViewToAnimated(xValue: xValue, yValue: yValue, axis: axis, duration: duration, easingOption: .easeInOutSine)\n    }\n\n    /// Sets custom offsets for the current `ChartViewPort` (the offsets on the sides of the actual chart window). Setting this will prevent the chart from automatically calculating it's offsets. Use `resetViewPortOffsets()` to undo this.\n    /// ONLY USE THIS WHEN YOU KNOW WHAT YOU ARE DOING, else use `setExtraOffsets(...)`.\n    @objc open func setViewPortOffsets(left: CGFloat, top: CGFloat, right: CGFloat, bottom: CGFloat)\n    {\n        _customViewPortEnabled = true\n        \n        if Thread.isMainThread\n        {\n            self._viewPortHandler.restrainViewPort(offsetLeft: left, offsetTop: top, offsetRight: right, offsetBottom: bottom)\n            prepareOffsetMatrix()\n            prepareValuePxMatrix()\n        }\n        else\n        {\n            DispatchQueue.main.async(execute: {\n                self.setViewPortOffsets(left: left, top: top, right: right, bottom: bottom)\n            })\n        }\n    }\n\n    /// Resets all custom offsets set via `setViewPortOffsets(...)` method. Allows the chart to again calculate all offsets automatically.\n    @objc open func resetViewPortOffsets()\n    {\n        _customViewPortEnabled = false\n        calculateOffsets()\n    }\n\n    // MARK: - Accessors\n    \n    /// - Returns: The range of the specified axis.\n    @objc open func getAxisRange(axis: YAxis.AxisDependency) -> Double\n    {\n        if axis == .left\n        {\n            return leftAxis.axisRange\n        }\n        else\n        {\n            return rightAxis.axisRange\n        }\n    }\n\n    /// - Returns: The position (in pixels) the provided Entry has inside the chart view\n    @objc open func getPosition(entry e: ChartDataEntry, axis: YAxis.AxisDependency) -> CGPoint\n    {\n        var vals = CGPoint(x: CGFloat(e.x), y: CGFloat(e.y))\n\n        getTransformer(forAxis: axis).pointValueToPixel(&vals)\n\n        return vals\n    }\n\n    /// is dragging enabled? (moving the chart with the finger) for the chart (this does not affect scaling).\n    @objc open var dragEnabled: Bool\n    {\n        get\n        {\n            return _dragXEnabled || _dragYEnabled\n        }\n        set\n        {\n            _dragYEnabled = newValue\n            _dragXEnabled = newValue\n        }\n    }\n    \n    /// is dragging enabled? (moving the chart with the finger) for the chart (this does not affect scaling).\n    @objc open var isDragEnabled: Bool\n    {\n        return dragEnabled\n    }\n    \n    /// is dragging on the X axis enabled?\n    @objc open var dragXEnabled: Bool\n    {\n        get\n        {\n            return _dragXEnabled\n        }\n        set\n        {\n            _dragXEnabled = newValue\n        }\n    }\n    \n    /// is dragging on the Y axis enabled?\n    @objc open var dragYEnabled: Bool\n    {\n        get\n        {\n            return _dragYEnabled\n        }\n        set\n        {\n            _dragYEnabled = newValue\n        }\n    }\n    \n    /// is scaling enabled? (zooming in and out by gesture) for the chart (this does not affect dragging).\n    @objc open func setScaleEnabled(_ enabled: Bool)\n    {\n        if _scaleXEnabled != enabled || _scaleYEnabled != enabled\n        {\n            _scaleXEnabled = enabled\n            _scaleYEnabled = enabled\n            #if !os(tvOS)\n            _pinchGestureRecognizer.isEnabled = _pinchZoomEnabled || _scaleXEnabled || _scaleYEnabled\n            #endif\n        }\n    }\n    \n    @objc open var scaleXEnabled: Bool\n    {\n        get\n        {\n            return _scaleXEnabled\n        }\n        set\n        {\n            if _scaleXEnabled != newValue\n            {\n                _scaleXEnabled = newValue\n                #if !os(tvOS)\n                _pinchGestureRecognizer.isEnabled = _pinchZoomEnabled || _scaleXEnabled || _scaleYEnabled\n                #endif\n            }\n        }\n    }\n    \n    @objc open var scaleYEnabled: Bool\n    {\n        get\n        {\n            return _scaleYEnabled\n        }\n        set\n        {\n            if _scaleYEnabled != newValue\n            {\n                _scaleYEnabled = newValue\n                #if !os(tvOS)\n                _pinchGestureRecognizer.isEnabled = _pinchZoomEnabled || _scaleXEnabled || _scaleYEnabled\n                #endif\n            }\n        }\n    }\n    \n    @objc open var isScaleXEnabled: Bool { return scaleXEnabled }\n    @objc open var isScaleYEnabled: Bool { return scaleYEnabled }\n    \n    /// flag that indicates if double tap zoom is enabled or not\n    @objc open var doubleTapToZoomEnabled: Bool\n    {\n        get\n        {\n            return _doubleTapToZoomEnabled\n        }\n        set\n        {\n            if _doubleTapToZoomEnabled != newValue\n            {\n                _doubleTapToZoomEnabled = newValue\n                _doubleTapGestureRecognizer.isEnabled = _doubleTapToZoomEnabled\n            }\n        }\n    }\n    \n    /// **default**: true\n    /// `true` if zooming via double-tap is enabled `false` ifnot.\n    @objc open var isDoubleTapToZoomEnabled: Bool\n    {\n        return doubleTapToZoomEnabled\n    }\n    \n    /// flag that indicates if highlighting per dragging over a fully zoomed out chart is enabled\n    @objc open var highlightPerDragEnabled = true\n    \n    /// If set to true, highlighting per dragging over a fully zoomed out chart is enabled\n    /// You might want to disable this when using inside a `NSUIScrollView`\n    /// \n    /// **default**: true\n    @objc open var isHighlightPerDragEnabled: Bool\n    {\n        return highlightPerDragEnabled\n    }\n    \n    /// **default**: true\n    /// `true` if drawing the grid background is enabled, `false` ifnot.\n    @objc open var isDrawGridBackgroundEnabled: Bool\n    {\n        return drawGridBackgroundEnabled\n    }\n    \n    /// **default**: false\n    /// `true` if drawing the borders rectangle is enabled, `false` ifnot.\n    @objc open var isDrawBordersEnabled: Bool\n    {\n        return drawBordersEnabled\n    }\n\n    /// - Returns: The x and y values in the chart at the given touch point\n    /// (encapsulated in a `CGPoint`). This method transforms pixel coordinates to\n    /// coordinates / values in the chart. This is the opposite method to\n    /// `getPixelsForValues(...)`.\n    @objc open func valueForTouchPoint(point pt: CGPoint, axis: YAxis.AxisDependency) -> CGPoint\n    {\n        return getTransformer(forAxis: axis).valueForTouchPoint(pt)\n    }\n\n    /// Transforms the given chart values into pixels. This is the opposite\n    /// method to `valueForTouchPoint(...)`.\n    @objc open func pixelForValues(x: Double, y: Double, axis: YAxis.AxisDependency) -> CGPoint\n    {\n        return getTransformer(forAxis: axis).pixelForValues(x: x, y: y)\n    }\n    \n    /// - Returns: The Entry object displayed at the touched position of the chart\n    @objc open func getEntryByTouchPoint(point pt: CGPoint) -> ChartDataEntry!\n    {\n        if let h = getHighlightByTouchPoint(pt)\n        {\n            return _data!.entryForHighlight(h)\n        }\n        return nil\n    }\n    \n    /// - Returns: The DataSet object displayed at the touched position of the chart\n    @objc open func getDataSetByTouchPoint(point pt: CGPoint) -> IBarLineScatterCandleBubbleChartDataSet?\n    {\n        let h = getHighlightByTouchPoint(pt)\n        if h !== nil\n        {\n            return _data?.getDataSetByIndex(h!.dataSetIndex) as? IBarLineScatterCandleBubbleChartDataSet\n        }\n        return nil\n    }\n\n    /// The current x-scale factor\n    @objc open var scaleX: CGFloat\n    {\n        if _viewPortHandler === nil\n        {\n            return 1.0\n        }\n        return _viewPortHandler.scaleX\n    }\n\n    /// The current y-scale factor\n    @objc open var scaleY: CGFloat\n    {\n        if _viewPortHandler === nil\n        {\n            return 1.0\n        }\n        return _viewPortHandler.scaleY\n    }\n\n    /// if the chart is fully zoomed out, return true\n    @objc open var isFullyZoomedOut: Bool { return _viewPortHandler.isFullyZoomedOut }\n\n    /// - Returns: The y-axis object to the corresponding AxisDependency. In the\n    /// horizontal bar-chart, LEFT == top, RIGHT == BOTTOM\n    @objc open func getAxis(_ axis: YAxis.AxisDependency) -> YAxis\n    {\n        if axis == .left\n        {\n            return leftAxis\n        }\n        else\n        {\n            return rightAxis\n        }\n    }\n    \n    /// flag that indicates if pinch-zoom is enabled. if true, both x and y axis can be scaled simultaneously with 2 fingers, if false, x and y axis can be scaled separately\n    @objc open var pinchZoomEnabled: Bool\n    {\n        get\n        {\n            return _pinchZoomEnabled\n        }\n        set\n        {\n            if _pinchZoomEnabled != newValue\n            {\n                _pinchZoomEnabled = newValue\n                #if !os(tvOS)\n                _pinchGestureRecognizer.isEnabled = _pinchZoomEnabled || _scaleXEnabled || _scaleYEnabled\n                #endif\n            }\n        }\n    }\n\n    /// **default**: false\n    /// `true` if pinch-zoom is enabled, `false` ifnot\n    @objc open var isPinchZoomEnabled: Bool { return pinchZoomEnabled }\n\n    /// Set an offset in dp that allows the user to drag the chart over it's\n    /// bounds on the x-axis.\n    @objc open func setDragOffsetX(_ offset: CGFloat)\n    {\n        _viewPortHandler.setDragOffsetX(offset)\n    }\n\n    /// Set an offset in dp that allows the user to drag the chart over it's\n    /// bounds on the y-axis.\n    @objc open func setDragOffsetY(_ offset: CGFloat)\n    {\n        _viewPortHandler.setDragOffsetY(offset)\n    }\n\n    /// `true` if both drag offsets (x and y) are zero or smaller.\n    @objc open var hasNoDragOffset: Bool { return _viewPortHandler.hasNoDragOffset }\n\n    open override var chartYMax: Double\n    {\n        return max(leftAxis._axisMaximum, rightAxis._axisMaximum)\n    }\n\n    open override var chartYMin: Double\n    {\n        return min(leftAxis._axisMinimum, rightAxis._axisMinimum)\n    }\n    \n    /// `true` if either the left or the right or both axes are inverted.\n    @objc open var isAnyAxisInverted: Bool\n    {\n        return leftAxis.isInverted || rightAxis.isInverted\n    }\n    \n    /// flag that indicates if auto scaling on the y axis is enabled.\n    /// if yes, the y axis automatically adjusts to the min and max y values of the current x axis range whenever the viewport changes\n    @objc open var autoScaleMinMaxEnabled: Bool\n    {\n        get { return _autoScaleMinMaxEnabled }\n        set { _autoScaleMinMaxEnabled = newValue }\n    }\n    \n    /// **default**: false\n    /// `true` if auto scaling on the y axis is enabled.\n    @objc open var isAutoScaleMinMaxEnabled : Bool { return autoScaleMinMaxEnabled }\n    \n    /// Sets a minimum width to the specified y axis.\n    @objc open func setYAxisMinWidth(_ axis: YAxis.AxisDependency, width: CGFloat)\n    {\n        if axis == .left\n        {\n            leftAxis.minWidth = width\n        }\n        else\n        {\n            rightAxis.minWidth = width\n        }\n    }\n    \n    /// **default**: 0.0\n    ///\n    /// - Returns: The (custom) minimum width of the specified Y axis.\n    @objc open func getYAxisMinWidth(_ axis: YAxis.AxisDependency) -> CGFloat\n    {\n        if axis == .left\n        {\n            return leftAxis.minWidth\n        }\n        else\n        {\n            return rightAxis.minWidth\n        }\n    }\n    /// Sets a maximum width to the specified y axis.\n    /// Zero (0.0) means there's no maximum width\n    @objc open func setYAxisMaxWidth(_ axis: YAxis.AxisDependency, width: CGFloat)\n    {\n        if axis == .left\n        {\n            leftAxis.maxWidth = width\n        }\n        else\n        {\n            rightAxis.maxWidth = width\n        }\n    }\n    \n    /// Zero (0.0) means there's no maximum width\n    ///\n    /// **default**: 0.0 (no maximum specified)\n    ///\n    /// - Returns: The (custom) maximum width of the specified Y axis.\n    @objc open func getYAxisMaxWidth(_ axis: YAxis.AxisDependency) -> CGFloat\n    {\n        if axis == .left\n        {\n            return leftAxis.maxWidth\n        }\n        else\n        {\n            return rightAxis.maxWidth\n        }\n    }\n\n    /// - Returns the width of the specified y axis.\n    @objc open func getYAxisWidth(_ axis: YAxis.AxisDependency) -> CGFloat\n    {\n        if axis == .left\n        {\n            return leftAxis.requiredSize().width\n        }\n        else\n        {\n            return rightAxis.requiredSize().width\n        }\n    }\n    \n    // MARK: - BarLineScatterCandleBubbleChartDataProvider\n    \n    /// - Returns: The Transformer class that contains all matrices and is\n    /// responsible for transforming values into pixels on the screen and\n    /// backwards.\n    open func getTransformer(forAxis axis: YAxis.AxisDependency) -> Transformer\n    {\n        if axis == .left\n        {\n            return _leftAxisTransformer\n        }\n        else\n        {\n            return _rightAxisTransformer\n        }\n    }\n    \n    /// the number of maximum visible drawn values on the chart only active when `drawValuesEnabled` is enabled\n    open override var maxVisibleCount: Int\n    {\n        get\n        {\n            return _maxVisibleCount\n        }\n        set\n        {\n            _maxVisibleCount = newValue\n        }\n    }\n    \n    open func isInverted(axis: YAxis.AxisDependency) -> Bool\n    {\n        return getAxis(axis).isInverted\n    }\n    \n    /// The lowest x-index (value on the x-axis) that is still visible on he chart.\n    open var lowestVisibleX: Double\n    {\n        var pt = CGPoint(\n            x: viewPortHandler.contentLeft,\n            y: viewPortHandler.contentBottom)\n        \n        getTransformer(forAxis: .left).pixelToValues(&pt)\n        \n        return max(xAxis._axisMinimum, Double(pt.x))\n    }\n    \n    /// The highest x-index (value on the x-axis) that is still visible on the chart.\n    open var highestVisibleX: Double\n    {\n        var pt = CGPoint(\n            x: viewPortHandler.contentRight,\n            y: viewPortHandler.contentBottom)\n        \n        getTransformer(forAxis: .left).pixelToValues(&pt)\n\n        return min(xAxis._axisMaximum, Double(pt.x))\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift",
    "content": "//\n//  BubbleChartView.swift\n//  Charts\n//\n//  Bubble chart implementation:\n//    Copyright 2015 Pierre-Marc Airoldi\n//    Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nopen class BubbleChartView: BarLineChartViewBase, BubbleChartDataProvider\n{\n    open override func initialize()\n    {\n        super.initialize()\n        \n        renderer = BubbleChartRenderer(dataProvider: self, animator: _animator, viewPortHandler: _viewPortHandler)\n    }\n    \n    // MARK: - BubbleChartDataProvider\n    \n    open var bubbleData: BubbleChartData? { return _data as? BubbleChartData }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift",
    "content": "//\n//  CandleStickChartView.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n/// Financial chart type that draws candle-sticks.\nopen class CandleStickChartView: BarLineChartViewBase, CandleChartDataProvider\n{\n    internal override func initialize()\n    {\n        super.initialize()\n        \n        renderer = CandleStickChartRenderer(dataProvider: self, animator: _animator, viewPortHandler: _viewPortHandler)\n        \n        self.xAxis.spaceMin = 0.5\n        self.xAxis.spaceMax = 0.5\n    }\n    \n    // MARK: - CandleChartDataProvider\n    \n    open var candleData: CandleChartData?\n    {\n        return _data as? CandleChartData\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift",
    "content": "//\n//  ChartViewBase.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n//  Based on https://github.com/PhilJay/MPAndroidChart/commit/c42b880\n\nimport Foundation\nimport CoreGraphics\n\n#if canImport(UIKit)\n    import UIKit\n#endif\n\n#if canImport(Cocoa)\nimport Cocoa\n#endif\n\n@objc\npublic protocol ChartViewDelegate\n{\n    /// Called when a value has been selected inside the chart.\n    ///\n    /// - Parameters:\n    ///   - entry: The selected Entry.\n    ///   - highlight: The corresponding highlight object that contains information about the highlighted position such as dataSetIndex etc.\n    @objc optional func chartValueSelected(_ chartView: ChartViewBase, entry: ChartDataEntry, highlight: Highlight)\n    \n    /// Called when a user stops panning between values on the chart\n    @objc optional func chartViewDidEndPanning(_ chartView: ChartViewBase)\n    \n    // Called when nothing has been selected or an \"un-select\" has been made.\n    @objc optional func chartValueNothingSelected(_ chartView: ChartViewBase)\n    \n    // Callbacks when the chart is scaled / zoomed via pinch zoom gesture.\n    @objc optional func chartScaled(_ chartView: ChartViewBase, scaleX: CGFloat, scaleY: CGFloat)\n    \n    // Callbacks when the chart is moved / translated via drag gesture.\n    @objc optional func chartTranslated(_ chartView: ChartViewBase, dX: CGFloat, dY: CGFloat)\n\n    // Callbacks when Animator stops animating\n    @objc optional func chartView(_ chartView: ChartViewBase, animatorDidStop animator: Animator)\n}\n\nopen class ChartViewBase: NSUIView, ChartDataProvider, AnimatorDelegate\n{\n    // MARK: - Properties\n    \n    /// - Returns: The object representing all x-labels, this method can be used to\n    /// acquire the XAxis object and modify it (e.g. change the position of the\n    /// labels)\n    @objc open var xAxis: XAxis\n    {\n        return _xAxis\n    }\n    \n    /// The default IValueFormatter that has been determined by the chart considering the provided minimum and maximum values.\n    internal var _defaultValueFormatter: IValueFormatter? = DefaultValueFormatter(decimals: 0)\n    \n    /// object that holds all data that was originally set for the chart, before it was modified or any filtering algorithms had been applied\n    internal var _data: ChartData?\n    \n    /// Flag that indicates if highlighting per tap (touch) is enabled\n    private var _highlightPerTapEnabled = true\n    \n    /// If set to true, chart continues to scroll after touch up\n    @objc open var dragDecelerationEnabled = true\n    \n    /// Deceleration friction coefficient in [0 ; 1] interval, higher values indicate that speed will decrease slowly, for example if it set to 0, it will stop immediately.\n    /// 1 is an invalid value, and will be converted to 0.999 automatically.\n    private var _dragDecelerationFrictionCoef: CGFloat = 0.9\n    \n    /// if true, units are drawn next to the values in the chart\n    internal var _drawUnitInChart = false\n    \n    /// The object representing the labels on the x-axis\n    internal var _xAxis: XAxis!\n    \n    /// The `Description` object of the chart.\n    /// This should have been called just \"description\", but\n    @objc open var chartDescription: Description?\n        \n    /// The legend object containing all data associated with the legend\n    internal var _legend: Legend!\n    \n    /// delegate to receive chart events\n    @objc open weak var delegate: ChartViewDelegate?\n    \n    /// text that is displayed when the chart is empty\n    @objc open var noDataText = \"No chart data available.\"\n    \n    /// Font to be used for the no data text.\n    @objc open var noDataFont = NSUIFont.systemFont(ofSize: 12)\n    \n    /// color of the no data text\n    @objc open var noDataTextColor: NSUIColor = .labelOrBlack\n\n    /// alignment of the no data text\n    @objc open var noDataTextAlignment: NSTextAlignment = .left\n\n    internal var _legendRenderer: LegendRenderer!\n    \n    /// object responsible for rendering the data\n    @objc open var renderer: DataRenderer?\n    \n    @objc open var highlighter: IHighlighter?\n    \n    /// object that manages the bounds and drawing constraints of the chart\n    internal var _viewPortHandler: ViewPortHandler!\n    \n    /// object responsible for animations\n    internal var _animator: Animator!\n    \n    /// flag that indicates if offsets calculation has already been done or not\n    private var _offsetsCalculated = false\n    \n    /// array of Highlight objects that reference the highlighted slices in the chart\n    internal var _indicesToHighlight = [Highlight]()\n    \n    /// `true` if drawing the marker is enabled when tapping on values\n    /// (use the `marker` property to specify a marker)\n    @objc open var drawMarkers = true\n    \n    /// - Returns: `true` if drawing the marker is enabled when tapping on values\n    /// (use the `marker` property to specify a marker)\n    @objc open var isDrawMarkersEnabled: Bool { return drawMarkers }\n    \n    /// The marker that is displayed when a value is clicked on the chart\n    @objc open var marker: IMarker?\n    \n    private var _interceptTouchEvents = false\n    \n    /// An extra offset to be appended to the viewport's top\n    @objc open var extraTopOffset: CGFloat = 0.0\n    \n    /// An extra offset to be appended to the viewport's right\n    @objc open var extraRightOffset: CGFloat = 0.0\n    \n    /// An extra offset to be appended to the viewport's bottom\n    @objc open var extraBottomOffset: CGFloat = 0.0\n    \n    /// An extra offset to be appended to the viewport's left\n    @objc open var extraLeftOffset: CGFloat = 0.0\n    \n    @objc open func setExtraOffsets(left: CGFloat, top: CGFloat, right: CGFloat, bottom: CGFloat)\n    {\n        extraLeftOffset = left\n        extraTopOffset = top\n        extraRightOffset = right\n        extraBottomOffset = bottom\n    }\n    \n    // MARK: - Initializers\n    \n    public override init(frame: CGRect)\n    {\n        super.init(frame: frame)\n        initialize()\n    }\n    \n    public required init?(coder aDecoder: NSCoder)\n    {\n        super.init(coder: aDecoder)\n        initialize()\n    }\n    \n    deinit\n    {\n        self.removeObserver(self, forKeyPath: \"bounds\")\n        self.removeObserver(self, forKeyPath: \"frame\")\n    }\n    \n    internal func initialize()\n    {\n        #if os(iOS)\n        self.backgroundColor = NSUIColor.clear\n        #endif\n\n        _animator = Animator()\n        _animator.delegate = self\n\n        _viewPortHandler = ViewPortHandler(width: bounds.size.width, height: bounds.size.height)\n        \n        chartDescription = Description()\n        \n        _legend = Legend()\n        _legendRenderer = LegendRenderer(viewPortHandler: _viewPortHandler, legend: _legend)\n        \n        _xAxis = XAxis()\n        \n        self.addObserver(self, forKeyPath: \"bounds\", options: .new, context: nil)\n        self.addObserver(self, forKeyPath: \"frame\", options: .new, context: nil)\n    }\n    \n    // MARK: - ChartViewBase\n    \n    /// The data for the chart\n    open var data: ChartData?\n    {\n        get\n        {\n            return _data\n        }\n        set\n        {\n            _data = newValue\n            _offsetsCalculated = false\n            \n            guard let _data = _data else\n            {\n                setNeedsDisplay()\n                return\n            }\n            \n            // calculate how many digits are needed\n            setupDefaultFormatter(min: _data.getYMin(), max: _data.getYMax())\n            \n            for set in _data.dataSets\n            {\n                if set.needsFormatter || set.valueFormatter === _defaultValueFormatter\n                {\n                    set.valueFormatter = _defaultValueFormatter\n                }\n            }\n            \n            // let the chart know there is new data\n            notifyDataSetChanged()\n        }\n    }\n    \n    /// Clears the chart from all data (sets it to null) and refreshes it (by calling setNeedsDisplay()).\n    @objc open func clear()\n    {\n        _data = nil\n        _offsetsCalculated = false\n        _indicesToHighlight.removeAll()\n        lastHighlighted = nil\n    \n        setNeedsDisplay()\n    }\n    \n    /// Removes all DataSets (and thereby Entries) from the chart. Does not set the data object to nil. Also refreshes the chart by calling setNeedsDisplay().\n    @objc open func clearValues()\n    {\n        _data?.clearValues()\n        setNeedsDisplay()\n    }\n\n    /// - Returns: `true` if the chart is empty (meaning it's data object is either null or contains no entries).\n    @objc open func isEmpty() -> Bool\n    {\n        guard let data = _data else { return true }\n\n        if data.entryCount <= 0\n        {\n            return true\n        }\n        else\n        {\n            return false\n        }\n    }\n    \n    /// Lets the chart know its underlying data has changed and should perform all necessary recalculations.\n    /// It is crucial that this method is called everytime data is changed dynamically. Not calling this method can lead to crashes or unexpected behaviour.\n    @objc open func notifyDataSetChanged()\n    {\n        fatalError(\"notifyDataSetChanged() cannot be called on ChartViewBase\")\n    }\n    \n    /// Calculates the offsets of the chart to the border depending on the position of an eventual legend or depending on the length of the y-axis and x-axis labels and their position\n    internal func calculateOffsets()\n    {\n        fatalError(\"calculateOffsets() cannot be called on ChartViewBase\")\n    }\n    \n    /// calcualtes the y-min and y-max value and the y-delta and x-delta value\n    internal func calcMinMax()\n    {\n        fatalError(\"calcMinMax() cannot be called on ChartViewBase\")\n    }\n    \n    /// calculates the required number of digits for the values that might be drawn in the chart (if enabled), and creates the default value formatter\n    internal func setupDefaultFormatter(min: Double, max: Double)\n    {\n        // check if a custom formatter is set or not\n        var reference = Double(0.0)\n        \n        if let data = _data , data.entryCount >= 2\n        {\n            reference = fabs(max - min)\n        }\n        else\n        {\n            let absMin = fabs(min)\n            let absMax = fabs(max)\n            reference = absMin > absMax ? absMin : absMax\n        }\n        \n    \n        if _defaultValueFormatter is DefaultValueFormatter\n        {\n            // setup the formatter with a new number of digits\n            let digits = reference.decimalPlaces\n            \n            (_defaultValueFormatter as? DefaultValueFormatter)?.decimals\n             = digits\n        }\n    }\n    \n    open override func draw(_ rect: CGRect)\n    {\n        let optionalContext = NSUIGraphicsGetCurrentContext()\n        guard let context = optionalContext else { return }\n        \n        let frame = self.bounds\n\n        if _data === nil && noDataText.count > 0\n        {\n            context.saveGState()\n            defer { context.restoreGState() }\n\n            let paragraphStyle = NSMutableParagraphStyle.default.mutableCopy() as! NSMutableParagraphStyle\n            paragraphStyle.minimumLineHeight = noDataFont.lineHeight\n            paragraphStyle.lineBreakMode = .byWordWrapping\n            paragraphStyle.alignment = noDataTextAlignment\n\n            ChartUtils.drawMultilineText(\n                context: context,\n                text: noDataText,\n                point: CGPoint(x: frame.width / 2.0, y: frame.height / 2.0),\n                attributes:\n                [.font: noDataFont,\n                 .foregroundColor: noDataTextColor,\n                 .paragraphStyle: paragraphStyle],\n                constrainedToSize: self.bounds.size,\n                anchor: CGPoint(x: 0.5, y: 0.5),\n                angleRadians: 0.0)\n            \n            return\n        }\n        \n        if !_offsetsCalculated\n        {\n            calculateOffsets()\n            _offsetsCalculated = true\n        }\n    }\n    \n    /// Draws the description text in the bottom right corner of the chart (per default)\n    internal func drawDescription(context: CGContext)\n    {\n        // check if description should be drawn\n        guard\n            let description = chartDescription,\n            description.isEnabled,\n            let descriptionText = description.text,\n            descriptionText.count > 0\n            else { return }\n        \n        let position = description.position ?? CGPoint(x: bounds.width - _viewPortHandler.offsetRight - description.xOffset,\n                                                       y: bounds.height - _viewPortHandler.offsetBottom - description.yOffset - description.font.lineHeight)\n        \n        var attrs = [NSAttributedString.Key : Any]()\n        \n        attrs[NSAttributedString.Key.font] = description.font\n        attrs[NSAttributedString.Key.foregroundColor] = description.textColor\n\n        ChartUtils.drawText(\n            context: context,\n            text: descriptionText,\n            point: position,\n            align: description.textAlign,\n            attributes: attrs)\n    }\n    \n    // MARK: - Accessibility\n\n    open override func accessibilityChildren() -> [Any]? {\n        return renderer?.accessibleChartElements\n    }\n\n    // MARK: - Highlighting\n    \n    /// The array of currently highlighted values. This might an empty if nothing is highlighted.\n    @objc open var highlighted: [Highlight]\n    {\n        return _indicesToHighlight\n    }\n    \n    /// Set this to false to prevent values from being highlighted by tap gesture.\n    /// Values can still be highlighted via drag or programmatically.\n    /// **default**: true\n    @objc open var highlightPerTapEnabled: Bool\n    {\n        get { return _highlightPerTapEnabled }\n        set { _highlightPerTapEnabled = newValue }\n    }\n    \n    /// `true` if values can be highlighted via tap gesture, `false` ifnot.\n    @objc open var isHighLightPerTapEnabled: Bool\n    {\n        return highlightPerTapEnabled\n    }\n    \n    /// Checks if the highlight array is null, has a length of zero or if the first object is null.\n    ///\n    /// - Returns: `true` if there are values to highlight, `false` ifthere are no values to highlight.\n    @objc open func valuesToHighlight() -> Bool\n    {\n        return !_indicesToHighlight.isEmpty\n    }\n\n    /// Highlights the values at the given indices in the given DataSets. Provide\n    /// null or an empty array to undo all highlighting. \n    /// This should be used to programmatically highlight values.\n    /// This method *will not* call the delegate.\n    @objc open func highlightValues(_ highs: [Highlight]?)\n    {\n        // set the indices to highlight\n        _indicesToHighlight = highs ?? [Highlight]()\n        \n        if _indicesToHighlight.isEmpty\n        {\n            self.lastHighlighted = nil\n        }\n        else\n        {\n            self.lastHighlighted = _indicesToHighlight[0]\n        }\n\n        // redraw the chart\n        setNeedsDisplay()\n    }\n    \n    /// Highlights any y-value at the given x-value in the given DataSet.\n    /// Provide -1 as the dataSetIndex to undo all highlighting.\n    /// This method will call the delegate.\n    ///\n    /// - Parameters:\n    ///   - x: The x-value to highlight\n    ///   - dataSetIndex: The dataset index to search in\n    ///   - dataIndex: The data index to search in (only used in CombinedChartView currently)\n    @objc open func highlightValue(x: Double, dataSetIndex: Int, dataIndex: Int = -1)\n    {\n        highlightValue(x: x, dataSetIndex: dataSetIndex, dataIndex: dataIndex, callDelegate: true)\n    }\n    \n    /// Highlights the value at the given x-value and y-value in the given DataSet.\n    /// Provide -1 as the dataSetIndex to undo all highlighting.\n    /// This method will call the delegate.\n    ///\n    /// - Parameters:\n    ///   - x: The x-value to highlight\n    ///   - y: The y-value to highlight. Supply `NaN` for \"any\"\n    ///   - dataSetIndex: The dataset index to search in\n    ///   - dataIndex: The data index to search in (only used in CombinedChartView currently)\n    @objc open func highlightValue(x: Double, y: Double, dataSetIndex: Int, dataIndex: Int = -1)\n    {\n        highlightValue(x: x, y: y, dataSetIndex: dataSetIndex, dataIndex: dataIndex, callDelegate: true)\n    }\n    \n    /// Highlights any y-value at the given x-value in the given DataSet.\n    /// Provide -1 as the dataSetIndex to undo all highlighting.\n    ///\n    /// - Parameters:\n    ///   - x: The x-value to highlight\n    ///   - dataSetIndex: The dataset index to search in\n    ///   - dataIndex: The data index to search in (only used in CombinedChartView currently)\n    ///   - callDelegate: Should the delegate be called for this change\n    @objc open func highlightValue(x: Double, dataSetIndex: Int, dataIndex: Int = -1, callDelegate: Bool)\n    {\n        highlightValue(x: x, y: .nan, dataSetIndex: dataSetIndex, dataIndex: dataIndex, callDelegate: callDelegate)\n    }\n    \n    /// Highlights the value at the given x-value and y-value in the given DataSet.\n    /// Provide -1 as the dataSetIndex to undo all highlighting.\n    ///\n    /// - Parameters:\n    ///   - x: The x-value to highlight\n    ///   - y: The y-value to highlight. Supply `NaN` for \"any\"\n    ///   - dataSetIndex: The dataset index to search in\n    ///   - dataIndex: The data index to search in (only used in CombinedChartView currently)\n    ///   - callDelegate: Should the delegate be called for this change\n    @objc open func highlightValue(x: Double, y: Double, dataSetIndex: Int, dataIndex: Int = -1, callDelegate: Bool)\n    {\n        guard let data = _data else\n        {\n            Swift.print(\"Value not highlighted because data is nil\")\n            return\n        }\n        \n        if dataSetIndex < 0 || dataSetIndex >= data.dataSetCount\n        {\n            highlightValue(nil, callDelegate: callDelegate)\n        }\n        else\n        {\n            highlightValue(Highlight(x: x, y: y, dataSetIndex: dataSetIndex, dataIndex: dataIndex), callDelegate: callDelegate)\n        }\n    }\n    \n    /// Highlights the values represented by the provided Highlight object\n    /// This method *will not* call the delegate.\n    ///\n    /// - Parameters:\n    ///   - highlight: contains information about which entry should be highlighted\n    @objc open func highlightValue(_ highlight: Highlight?)\n    {\n        highlightValue(highlight, callDelegate: false)\n    }\n\n    /// Highlights the value selected by touch gesture.\n    @objc open func highlightValue(_ highlight: Highlight?, callDelegate: Bool)\n    {\n        var entry: ChartDataEntry?\n        var h = highlight\n        \n        if h == nil\n        {\n            self.lastHighlighted = nil\n            _indicesToHighlight.removeAll(keepingCapacity: false)\n        }\n        else\n        {\n            // set the indices to highlight\n            entry = _data?.entryForHighlight(h!)\n            if entry == nil\n            {\n                h = nil\n                _indicesToHighlight.removeAll(keepingCapacity: false)\n            }\n            else\n            {\n                _indicesToHighlight = [h!]\n            }\n        }\n        \n        if callDelegate, let delegate = delegate\n        {\n            if let h = h\n            {\n                // notify the listener\n                delegate.chartValueSelected?(self, entry: entry!, highlight: h)\n            }\n            else\n            {\n                delegate.chartValueNothingSelected?(self)\n            }\n        }\n        \n        // redraw the chart\n        setNeedsDisplay()\n    }\n    \n    /// - Returns: The Highlight object (contains x-index and DataSet index) of the\n    /// selected value at the given touch point inside the Line-, Scatter-, or\n    /// CandleStick-Chart.\n    @objc open func getHighlightByTouchPoint(_ pt: CGPoint) -> Highlight?\n    {\n        if _data === nil\n        {\n            Swift.print(\"Can't select by touch. No data set.\")\n            return nil\n        }\n        \n        return self.highlighter?.getHighlight(x: pt.x, y: pt.y)\n    }\n\n    /// The last value that was highlighted via touch.\n    @objc open var lastHighlighted: Highlight?\n  \n    // MARK: - Markers\n\n    /// draws all MarkerViews on the highlighted positions\n    internal func drawMarkers(context: CGContext)\n    {\n        // if there is no marker view or drawing marker is disabled\n        guard\n            let marker = marker\n            , isDrawMarkersEnabled &&\n                valuesToHighlight()\n            else { return }\n        \n        for i in 0 ..< _indicesToHighlight.count\n        {\n            let highlight = _indicesToHighlight[i]\n            \n            guard let\n                set = data?.getDataSetByIndex(highlight.dataSetIndex),\n                let e = _data?.entryForHighlight(highlight)\n                else { continue }\n            \n            let entryIndex = set.entryIndex(entry: e)\n            if entryIndex > Int(Double(set.entryCount) * _animator.phaseX)\n            {\n                continue\n            }\n\n            let pos = getMarkerPosition(highlight: highlight)\n\n            // check bounds\n            if !_viewPortHandler.isInBounds(x: pos.x, y: pos.y)\n            {\n                continue\n            }\n\n            // callbacks to update the content\n            marker.refreshContent(entry: e, highlight: highlight)\n            \n            // draw the marker\n            marker.draw(context: context, point: pos)\n        }\n    }\n    \n    /// - Returns: The actual position in pixels of the MarkerView for the given Entry in the given DataSet.\n    @objc open func getMarkerPosition(highlight: Highlight) -> CGPoint\n    {\n        return CGPoint(x: highlight.drawX, y: highlight.drawY)\n    }\n    \n    // MARK: - Animation\n    \n    /// The animator responsible for animating chart values.\n    @objc open var chartAnimator: Animator!\n    {\n        return _animator\n    }\n    \n    /// Animates the drawing / rendering of the chart on both x- and y-axis with the specified animation time.\n    /// If `animate(...)` is called, no further calling of `invalidate()` is necessary to refresh the chart.\n    ///\n    /// - Parameters:\n    ///   - xAxisDuration: duration for animating the x axis\n    ///   - yAxisDuration: duration for animating the y axis\n    ///   - easingX: an easing function for the animation on the x axis\n    ///   - easingY: an easing function for the animation on the y axis\n    @objc open func animate(xAxisDuration: TimeInterval, yAxisDuration: TimeInterval, easingX: ChartEasingFunctionBlock?, easingY: ChartEasingFunctionBlock?)\n    {\n        _animator.animate(xAxisDuration: xAxisDuration, yAxisDuration: yAxisDuration, easingX: easingX, easingY: easingY)\n    }\n    \n    /// Animates the drawing / rendering of the chart on both x- and y-axis with the specified animation time.\n    /// If `animate(...)` is called, no further calling of `invalidate()` is necessary to refresh the chart.\n    ///\n    /// - Parameters:\n    ///   - xAxisDuration: duration for animating the x axis\n    ///   - yAxisDuration: duration for animating the y axis\n    ///   - easingOptionX: the easing function for the animation on the x axis\n    ///   - easingOptionY: the easing function for the animation on the y axis\n    @objc open func animate(xAxisDuration: TimeInterval, yAxisDuration: TimeInterval, easingOptionX: ChartEasingOption, easingOptionY: ChartEasingOption)\n    {\n        _animator.animate(xAxisDuration: xAxisDuration, yAxisDuration: yAxisDuration, easingOptionX: easingOptionX, easingOptionY: easingOptionY)\n    }\n    \n    /// Animates the drawing / rendering of the chart on both x- and y-axis with the specified animation time.\n    /// If `animate(...)` is called, no further calling of `invalidate()` is necessary to refresh the chart.\n    ///\n    /// - Parameters:\n    ///   - xAxisDuration: duration for animating the x axis\n    ///   - yAxisDuration: duration for animating the y axis\n    ///   - easing: an easing function for the animation\n    @objc open func animate(xAxisDuration: TimeInterval, yAxisDuration: TimeInterval, easing: ChartEasingFunctionBlock?)\n    {\n        _animator.animate(xAxisDuration: xAxisDuration, yAxisDuration: yAxisDuration, easing: easing)\n    }\n    \n    /// Animates the drawing / rendering of the chart on both x- and y-axis with the specified animation time.\n    /// If `animate(...)` is called, no further calling of `invalidate()` is necessary to refresh the chart.\n    ///\n    /// - Parameters:\n    ///   - xAxisDuration: duration for animating the x axis\n    ///   - yAxisDuration: duration for animating the y axis\n    ///   - easingOption: the easing function for the animation\n    @objc open func animate(xAxisDuration: TimeInterval, yAxisDuration: TimeInterval, easingOption: ChartEasingOption)\n    {\n        _animator.animate(xAxisDuration: xAxisDuration, yAxisDuration: yAxisDuration, easingOption: easingOption)\n    }\n    \n    /// Animates the drawing / rendering of the chart on both x- and y-axis with the specified animation time.\n    /// If `animate(...)` is called, no further calling of `invalidate()` is necessary to refresh the chart.\n    ///\n    /// - Parameters:\n    ///   - xAxisDuration: duration for animating the x axis\n    ///   - yAxisDuration: duration for animating the y axis\n    @objc open func animate(xAxisDuration: TimeInterval, yAxisDuration: TimeInterval)\n    {\n        _animator.animate(xAxisDuration: xAxisDuration, yAxisDuration: yAxisDuration)\n    }\n    \n    /// Animates the drawing / rendering of the chart the x-axis with the specified animation time.\n    /// If `animate(...)` is called, no further calling of `invalidate()` is necessary to refresh the chart.\n    ///\n    /// - Parameters:\n    ///   - xAxisDuration: duration for animating the x axis\n    ///   - easing: an easing function for the animation\n    @objc open func animate(xAxisDuration: TimeInterval, easing: ChartEasingFunctionBlock?)\n    {\n        _animator.animate(xAxisDuration: xAxisDuration, easing: easing)\n    }\n    \n    /// Animates the drawing / rendering of the chart the x-axis with the specified animation time.\n    /// If `animate(...)` is called, no further calling of `invalidate()` is necessary to refresh the chart.\n    ///\n    /// - Parameters:\n    ///   - xAxisDuration: duration for animating the x axis\n    ///   - easingOption: the easing function for the animation\n    @objc open func animate(xAxisDuration: TimeInterval, easingOption: ChartEasingOption)\n    {\n        _animator.animate(xAxisDuration: xAxisDuration, easingOption: easingOption)\n    }\n    \n    /// Animates the drawing / rendering of the chart the x-axis with the specified animation time.\n    /// If `animate(...)` is called, no further calling of `invalidate()` is necessary to refresh the chart.\n    ///\n    /// - Parameters:\n    ///   - xAxisDuration: duration for animating the x axis\n    @objc open func animate(xAxisDuration: TimeInterval)\n    {\n        _animator.animate(xAxisDuration: xAxisDuration)\n    }\n    \n    /// Animates the drawing / rendering of the chart the y-axis with the specified animation time.\n    /// If `animate(...)` is called, no further calling of `invalidate()` is necessary to refresh the chart.\n    ///\n    /// - Parameters:\n    ///   - yAxisDuration: duration for animating the y axis\n    ///   - easing: an easing function for the animation\n    @objc open func animate(yAxisDuration: TimeInterval, easing: ChartEasingFunctionBlock?)\n    {\n        _animator.animate(yAxisDuration: yAxisDuration, easing: easing)\n    }\n    \n    /// Animates the drawing / rendering of the chart the y-axis with the specified animation time.\n    /// If `animate(...)` is called, no further calling of `invalidate()` is necessary to refresh the chart.\n    ///\n    /// - Parameters:\n    ///   - yAxisDuration: duration for animating the y axis\n    ///   - easingOption: the easing function for the animation\n    @objc open func animate(yAxisDuration: TimeInterval, easingOption: ChartEasingOption)\n    {\n        _animator.animate(yAxisDuration: yAxisDuration, easingOption: easingOption)\n    }\n    \n    /// Animates the drawing / rendering of the chart the y-axis with the specified animation time.\n    /// If `animate(...)` is called, no further calling of `invalidate()` is necessary to refresh the chart.\n    ///\n    /// - Parameters:\n    ///   - yAxisDuration: duration for animating the y axis\n    @objc open func animate(yAxisDuration: TimeInterval)\n    {\n        _animator.animate(yAxisDuration: yAxisDuration)\n    }\n    \n    // MARK: - Accessors\n\n    /// The current y-max value across all DataSets\n    open var chartYMax: Double\n    {\n        return _data?.yMax ?? 0.0\n    }\n\n    /// The current y-min value across all DataSets\n    open var chartYMin: Double\n    {\n        return _data?.yMin ?? 0.0\n    }\n    \n    open var chartXMax: Double\n    {\n        return _xAxis._axisMaximum\n    }\n    \n    open var chartXMin: Double\n    {\n        return _xAxis._axisMinimum\n    }\n    \n    open var xRange: Double\n    {\n        return _xAxis.axisRange\n    }\n    \n    /// - Note: (Equivalent of getCenter() in MPAndroidChart, as center is already a standard in iOS that returns the center point relative to superview, and MPAndroidChart returns relative to self)*\n    /// The center point of the chart (the whole View) in pixels.\n    @objc open var midPoint: CGPoint\n    {\n        let bounds = self.bounds\n        return CGPoint(x: bounds.origin.x + bounds.size.width / 2.0, y: bounds.origin.y + bounds.size.height / 2.0)\n    }\n    \n    /// The center of the chart taking offsets under consideration. (returns the center of the content rectangle)\n    open var centerOffsets: CGPoint\n    {\n        return _viewPortHandler.contentCenter\n    }\n    \n    /// The Legend object of the chart. This method can be used to get an instance of the legend in order to customize the automatically generated Legend.\n    @objc open var legend: Legend\n    {\n        return _legend\n    }\n    \n    /// The renderer object responsible for rendering / drawing the Legend.\n    @objc open var legendRenderer: LegendRenderer!\n    {\n        return _legendRenderer\n    }\n    \n    /// The rectangle that defines the borders of the chart-value surface (into which the actual values are drawn).\n    @objc open var contentRect: CGRect\n    {\n        return _viewPortHandler.contentRect\n    }\n    \n    /// - Returns: The ViewPortHandler of the chart that is responsible for the\n    /// content area of the chart and its offsets and dimensions.\n    @objc open var viewPortHandler: ViewPortHandler!\n    {\n        return _viewPortHandler\n    }\n    \n    /// - Returns: The bitmap that represents the chart.\n    @objc open func getChartImage(transparent: Bool) -> NSUIImage?\n    {\n        NSUIGraphicsBeginImageContextWithOptions(bounds.size, isOpaque || !transparent, NSUIScreen.nsuiMain?.nsuiScale ?? 1.0)\n        \n        guard let context = NSUIGraphicsGetCurrentContext()\n            else { return nil }\n        \n        let rect = CGRect(origin: CGPoint(x: 0, y: 0), size: bounds.size)\n        \n        if isOpaque || !transparent\n        {\n            // Background color may be partially transparent, we must fill with white if we want to output an opaque image\n            context.setFillColor(NSUIColor.white.cgColor)\n            context.fill(rect)\n            \n            if let backgroundColor = self.backgroundColor\n            {\n                context.setFillColor(backgroundColor.cgColor)\n                context.fill(rect)\n            }\n        }\n        \n        nsuiLayer?.render(in: context)\n        \n        let image = NSUIGraphicsGetImageFromCurrentImageContext()\n        \n        NSUIGraphicsEndImageContext()\n        \n        return image\n    }\n    \n    public enum ImageFormat\n    {\n        case jpeg\n        case png\n    }\n    \n    /// Saves the current chart state with the given name to the given path on\n    /// the sdcard leaving the path empty \"\" will put the saved file directly on\n    /// the SD card chart is saved as a PNG image, example:\n    /// saveToPath(\"myfilename\", \"foldername1/foldername2\")\n    ///\n    /// - Parameters:\n    ///   - to: path to the image to save\n    ///   - format: the format to save\n    ///   - compressionQuality: compression quality for lossless formats (JPEG)\n    /// - Returns: `true` if the image was saved successfully\n    open func save(to path: String, format: ImageFormat, compressionQuality: Double) -> Bool\n    {\n        guard let image = getChartImage(transparent: format != .jpeg) else { return false }\n        \n        let imageData: Data?\n        switch (format)\n        {\n        case .png: imageData = NSUIImagePNGRepresentation(image)\n        case .jpeg: imageData = NSUIImageJPEGRepresentation(image, CGFloat(compressionQuality))\n        }\n        \n        guard let data = imageData else { return false }\n        \n        do\n        {\n            try data.write(to: URL(fileURLWithPath: path), options: .atomic)\n        }\n        catch\n        {\n            return false\n        }\n        \n        return true\n    }\n    \n    internal var _viewportJobs = [ViewPortJob]()\n    \n    open override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?)\n    {\n        if keyPath == \"bounds\" || keyPath == \"frame\"\n        {\n            let bounds = self.bounds\n            \n            if (_viewPortHandler !== nil &&\n                (bounds.size.width != _viewPortHandler.chartWidth ||\n                bounds.size.height != _viewPortHandler.chartHeight))\n            {\n                _viewPortHandler.setChartDimens(width: bounds.size.width, height: bounds.size.height)\n                \n                // This may cause the chart view to mutate properties affecting the view port -- lets do this\n                // before we try to run any pending jobs on the view port itself\n                notifyDataSetChanged()\n\n                // Finish any pending viewport changes\n                while (!_viewportJobs.isEmpty)\n                {\n                    let job = _viewportJobs.remove(at: 0)\n                    job.doJob()\n                }\n            }\n        }\n    }\n    \n    @objc open func removeViewportJob(_ job: ViewPortJob)\n    {\n        if let index = _viewportJobs.firstIndex(where: { $0 === job })\n        {\n            _viewportJobs.remove(at: index)\n        }\n    }\n    \n    @objc open func clearAllViewportJobs()\n    {\n        _viewportJobs.removeAll(keepingCapacity: false)\n    }\n    \n    @objc open func addViewportJob(_ job: ViewPortJob)\n    {\n        if _viewPortHandler.hasChartDimens\n        {\n            job.doJob()\n        }\n        else\n        {\n            _viewportJobs.append(job)\n        }\n    }\n    \n    /// **default**: true\n    /// `true` if chart continues to scroll after touch up, `false` ifnot.\n    @objc open var isDragDecelerationEnabled: Bool\n        {\n            return dragDecelerationEnabled\n    }\n    \n    /// Deceleration friction coefficient in [0 ; 1] interval, higher values indicate that speed will decrease slowly, for example if it set to 0, it will stop immediately.\n    /// 1 is an invalid value, and will be converted to 0.999 automatically.\n    /// \n    /// **default**: true\n    @objc open var dragDecelerationFrictionCoef: CGFloat\n    {\n        get\n        {\n            return _dragDecelerationFrictionCoef\n        }\n        set\n        {\n            var val = newValue\n            if val < 0.0\n            {\n                val = 0.0\n            }\n            if val >= 1.0\n            {\n                val = 0.999\n            }\n            \n            _dragDecelerationFrictionCoef = val\n        }\n    }\n    \n    /// The maximum distance in screen pixels away from an entry causing it to highlight.\n    /// **default**: 500.0\n    open var maxHighlightDistance: CGFloat = 500.0\n    \n    /// the number of maximum visible drawn values on the chart only active when `drawValuesEnabled` is enabled\n    open var maxVisibleCount: Int\n    {\n        return Int(INT_MAX)\n    }\n    \n    // MARK: - AnimatorDelegate\n    \n    open func animatorUpdated(_ chartAnimator: Animator)\n    {\n        setNeedsDisplay()\n    }\n    \n    open func animatorStopped(_ chartAnimator: Animator)\n    {\n        delegate?.chartView?(self, animatorDidStop: chartAnimator)\n    }\n    \n    // MARK: - Touches\n    \n    open override func nsuiTouchesBegan(_ touches: Set<NSUITouch>, withEvent event: NSUIEvent?)\n    {\n        if !_interceptTouchEvents\n        {\n            super.nsuiTouchesBegan(touches, withEvent: event)\n        }\n    }\n    \n    open override func nsuiTouchesMoved(_ touches: Set<NSUITouch>, withEvent event: NSUIEvent?)\n    {\n        if !_interceptTouchEvents\n        {\n            super.nsuiTouchesMoved(touches, withEvent: event)\n        }\n    }\n    \n    open override func nsuiTouchesEnded(_ touches: Set<NSUITouch>, withEvent event: NSUIEvent?)\n    {\n        if !_interceptTouchEvents\n        {\n            super.nsuiTouchesEnded(touches, withEvent: event)\n        }\n    }\n    \n    open override func nsuiTouchesCancelled(_ touches: Set<NSUITouch>?, withEvent event: NSUIEvent?)\n    {\n        if !_interceptTouchEvents\n        {\n            super.nsuiTouchesCancelled(touches, withEvent: event)\n        }\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift",
    "content": "//\n//  CombinedChartView.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n/// This chart class allows the combination of lines, bars, scatter and candle data all displayed in one chart area.\nopen class CombinedChartView: BarLineChartViewBase, CombinedChartDataProvider\n{\n    /// the fill-formatter used for determining the position of the fill-line\n    internal var _fillFormatter: IFillFormatter!\n    \n    /// enum that allows to specify the order in which the different data objects for the combined-chart are drawn\n    @objc(CombinedChartDrawOrder)\n    public enum DrawOrder: Int\n    {\n        case bar\n        case bubble\n        case line\n        case candle\n        case scatter\n    }\n    \n    open override func initialize()\n    {\n        super.initialize()\n        \n        self.highlighter = CombinedHighlighter(chart: self, barDataProvider: self)\n        \n        // Old default behaviour\n        self.highlightFullBarEnabled = true\n        \n        _fillFormatter = DefaultFillFormatter()\n        \n        renderer = CombinedChartRenderer(chart: self, animator: _animator, viewPortHandler: _viewPortHandler)\n    }\n    \n    open override var data: ChartData?\n    {\n        get\n        {\n            return super.data\n        }\n        set\n        {\n            super.data = newValue\n            \n            self.highlighter = CombinedHighlighter(chart: self, barDataProvider: self)\n            \n            (renderer as? CombinedChartRenderer)?.createRenderers()\n            renderer?.initBuffers()\n        }\n    }\n    \n    @objc open var fillFormatter: IFillFormatter\n    {\n        get\n        {\n            return _fillFormatter\n        }\n        set\n        {\n            _fillFormatter = newValue\n            if _fillFormatter == nil\n            {\n                _fillFormatter = DefaultFillFormatter()\n            }\n        }\n    }\n    \n    /// - Returns: The Highlight object (contains x-index and DataSet index) of the selected value at the given touch point inside the CombinedChart.\n    open override func getHighlightByTouchPoint(_ pt: CGPoint) -> Highlight?\n    {\n        if _data === nil\n        {\n            Swift.print(\"Can't select by touch. No data set.\")\n            return nil\n        }\n        \n        guard let h = self.highlighter?.getHighlight(x: pt.x, y: pt.y)\n            else { return nil }\n        \n        if !isHighlightFullBarEnabled { return h }\n        \n        // For isHighlightFullBarEnabled, remove stackIndex\n        return Highlight(\n            x: h.x, y: h.y,\n            xPx: h.xPx, yPx: h.yPx,\n            dataIndex: h.dataIndex,\n            dataSetIndex: h.dataSetIndex,\n            stackIndex: -1,\n            axis: h.axis)\n    }\n    \n    // MARK: - CombinedChartDataProvider\n    \n    open var combinedData: CombinedChartData?\n    {\n        get\n        {\n            return _data as? CombinedChartData\n        }\n    }\n    \n    // MARK: - LineChartDataProvider\n    \n    open var lineData: LineChartData?\n    {\n        get\n        {\n            return combinedData?.lineData\n        }\n    }\n    \n    // MARK: - BarChartDataProvider\n    \n    open var barData: BarChartData?\n    {\n        get\n        {\n            return combinedData?.barData\n        }\n    }\n    \n    // MARK: - ScatterChartDataProvider\n    \n    open var scatterData: ScatterChartData?\n    {\n        get\n        {\n            return combinedData?.scatterData\n        }\n    }\n    \n    // MARK: - CandleChartDataProvider\n    \n    open var candleData: CandleChartData?\n    {\n        get\n        {\n            return combinedData?.candleData\n        }\n    }\n    \n    // MARK: - BubbleChartDataProvider\n    \n    open var bubbleData: BubbleChartData?\n    {\n        get\n        {\n            return combinedData?.bubbleData\n        }\n    }\n    \n    // MARK: - Accessors\n    \n    /// if set to true, all values are drawn above their bars, instead of below their top\n    @objc open var drawValueAboveBarEnabled: Bool\n        {\n        get { return (renderer as! CombinedChartRenderer).drawValueAboveBarEnabled }\n        set { (renderer as! CombinedChartRenderer).drawValueAboveBarEnabled = newValue }\n    }\n    \n    /// if set to true, a grey area is drawn behind each bar that indicates the maximum value\n    @objc open var drawBarShadowEnabled: Bool\n    {\n        get { return (renderer as! CombinedChartRenderer).drawBarShadowEnabled }\n        set { (renderer as! CombinedChartRenderer).drawBarShadowEnabled = newValue }\n    }\n    \n    /// `true` if drawing values above bars is enabled, `false` ifnot\n    open var isDrawValueAboveBarEnabled: Bool { return (renderer as! CombinedChartRenderer).drawValueAboveBarEnabled }\n    \n    /// `true` if drawing shadows (maxvalue) for each bar is enabled, `false` ifnot\n    open var isDrawBarShadowEnabled: Bool { return (renderer as! CombinedChartRenderer).drawBarShadowEnabled }\n    \n    /// the order in which the provided data objects should be drawn.\n    /// The earlier you place them in the provided array, the further they will be in the background. \n    /// e.g. if you provide [DrawOrder.Bar, DrawOrder.Line], the bars will be drawn behind the lines.\n    @objc open var drawOrder: [Int]\n    {\n        get\n        {\n            return (renderer as! CombinedChartRenderer).drawOrder.map { $0.rawValue }\n        }\n        set\n        {\n            (renderer as! CombinedChartRenderer).drawOrder = newValue.map { DrawOrder(rawValue: $0)! }\n        }\n    }\n    \n    /// Set this to `true` to make the highlight operation full-bar oriented, `false` to make it highlight single values\n    @objc open var highlightFullBarEnabled: Bool = false\n    \n    /// `true` the highlight is be full-bar oriented, `false` ifsingle-value\n    open var isHighlightFullBarEnabled: Bool { return highlightFullBarEnabled }\n    \n    // MARK: - ChartViewBase\n    \n    /// draws all MarkerViews on the highlighted positions\n    override func drawMarkers(context: CGContext)\n    {\n        guard\n            let marker = marker, \n            isDrawMarkersEnabled && valuesToHighlight()\n            else { return }\n        \n        for i in 0 ..< _indicesToHighlight.count\n        {\n            let highlight = _indicesToHighlight[i]\n            \n            guard \n                let set = combinedData?.getDataSetByHighlight(highlight),\n                let e = _data?.entryForHighlight(highlight)\n                else { continue }\n            \n            let entryIndex = set.entryIndex(entry: e)\n            if entryIndex > Int(Double(set.entryCount) * _animator.phaseX)\n            {\n                continue\n            }\n            \n            let pos = getMarkerPosition(highlight: highlight)\n            \n            // check bounds\n            if !_viewPortHandler.isInBounds(x: pos.x, y: pos.y)\n            {\n                continue\n            }\n            \n            // callbacks to update the content\n            marker.refreshContent(entry: e, highlight: highlight)\n            \n            // draw the marker\n            marker.draw(context: context, point: pos)\n        }\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift",
    "content": "//\n//  HorizontalBarChartView.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n/// BarChart with horizontal bar orientation. In this implementation, x- and y-axis are switched.\nopen class HorizontalBarChartView: BarChartView\n{\n    internal override func initialize()\n    {\n        super.initialize()\n        \n        _leftAxisTransformer = TransformerHorizontalBarChart(viewPortHandler: _viewPortHandler)\n        _rightAxisTransformer = TransformerHorizontalBarChart(viewPortHandler: _viewPortHandler)\n        \n        renderer = HorizontalBarChartRenderer(dataProvider: self, animator: _animator, viewPortHandler: _viewPortHandler)\n        leftYAxisRenderer = YAxisRendererHorizontalBarChart(viewPortHandler: _viewPortHandler, yAxis: leftAxis, transformer: _leftAxisTransformer)\n        rightYAxisRenderer = YAxisRendererHorizontalBarChart(viewPortHandler: _viewPortHandler, yAxis: rightAxis, transformer: _rightAxisTransformer)\n        xAxisRenderer = XAxisRendererHorizontalBarChart(viewPortHandler: _viewPortHandler, xAxis: _xAxis, transformer: _leftAxisTransformer, chart: self)\n        \n        self.highlighter = HorizontalBarHighlighter(chart: self)\n    }\n    \n    internal override func calculateLegendOffsets(offsetLeft: inout CGFloat, offsetTop: inout CGFloat, offsetRight: inout CGFloat, offsetBottom: inout CGFloat)\n    {\n        guard\n            let legend = _legend,\n            legend.isEnabled,\n            !legend.drawInside\n        else { return }\n        \n        // setup offsets for legend\n        switch legend.orientation\n        {\n        case .vertical:\n            switch legend.horizontalAlignment\n            {\n            case .left:\n                offsetLeft += min(legend.neededWidth, _viewPortHandler.chartWidth * legend.maxSizePercent) + legend.xOffset\n                \n            case .right:\n                offsetRight += min(legend.neededWidth, _viewPortHandler.chartWidth * legend.maxSizePercent) + legend.xOffset\n                \n            case .center:\n                \n                switch legend.verticalAlignment\n                {\n                case .top:\n                    offsetTop += min(legend.neededHeight, _viewPortHandler.chartHeight * legend.maxSizePercent) + legend.yOffset\n                    \n                case .bottom:\n                    offsetBottom += min(legend.neededHeight, _viewPortHandler.chartHeight * legend.maxSizePercent) + legend.yOffset\n                    \n                default:\n                    break\n                }\n            }\n            \n        case .horizontal:\n            switch legend.verticalAlignment\n            {\n            case .top:\n                offsetTop += min(legend.neededHeight, _viewPortHandler.chartHeight * legend.maxSizePercent) + legend.yOffset\n                \n                // left axis equals the top x-axis in a horizontal chart\n                if leftAxis.isEnabled && leftAxis.isDrawLabelsEnabled\n                {\n                    offsetTop += leftAxis.getRequiredHeightSpace()\n                }\n                \n            case .bottom:\n                offsetBottom += min(legend.neededHeight, _viewPortHandler.chartHeight * legend.maxSizePercent) + legend.yOffset\n\n                // right axis equals the bottom x-axis in a horizontal chart\n                if rightAxis.isEnabled && rightAxis.isDrawLabelsEnabled\n                {\n                    offsetBottom += rightAxis.getRequiredHeightSpace()\n                }\n            default:\n                break\n            }\n        }\n    }\n    \n    internal override func calculateOffsets()\n    {\n        var offsetLeft: CGFloat = 0.0,\n        offsetRight: CGFloat = 0.0,\n        offsetTop: CGFloat = 0.0,\n        offsetBottom: CGFloat = 0.0\n        \n        calculateLegendOffsets(offsetLeft: &offsetLeft,\n                               offsetTop: &offsetTop,\n                               offsetRight: &offsetRight,\n                               offsetBottom: &offsetBottom)\n        \n        // offsets for y-labels\n        if leftAxis.needsOffset\n        {\n            offsetTop += leftAxis.getRequiredHeightSpace()\n        }\n        \n        if rightAxis.needsOffset\n        {\n            offsetBottom += rightAxis.getRequiredHeightSpace()\n        }\n        \n        let xlabelwidth = _xAxis.labelRotatedWidth\n        \n        if _xAxis.isEnabled\n        {\n            // offsets for x-labels\n            if _xAxis.labelPosition == .bottom\n            {\n                offsetLeft += xlabelwidth\n            }\n            else if _xAxis.labelPosition == .top\n            {\n                offsetRight += xlabelwidth\n            }\n            else if _xAxis.labelPosition == .bothSided\n            {\n                offsetLeft += xlabelwidth\n                offsetRight += xlabelwidth\n            }\n        }\n        \n        offsetTop += self.extraTopOffset\n        offsetRight += self.extraRightOffset\n        offsetBottom += self.extraBottomOffset\n        offsetLeft += self.extraLeftOffset\n\n        _viewPortHandler.restrainViewPort(\n            offsetLeft: max(self.minOffset, offsetLeft),\n            offsetTop: max(self.minOffset, offsetTop),\n            offsetRight: max(self.minOffset, offsetRight),\n            offsetBottom: max(self.minOffset, offsetBottom))\n        \n        prepareOffsetMatrix()\n        prepareValuePxMatrix()\n    }\n    \n    internal override func prepareValuePxMatrix()\n    {\n        _rightAxisTransformer.prepareMatrixValuePx(chartXMin: rightAxis._axisMinimum, deltaX: CGFloat(rightAxis.axisRange), deltaY: CGFloat(_xAxis.axisRange), chartYMin: _xAxis._axisMinimum)\n        _leftAxisTransformer.prepareMatrixValuePx(chartXMin: leftAxis._axisMinimum, deltaX: CGFloat(leftAxis.axisRange), deltaY: CGFloat(_xAxis.axisRange), chartYMin: _xAxis._axisMinimum)\n    }\n    \n    open override func getMarkerPosition(highlight: Highlight) -> CGPoint\n    {\n        return CGPoint(x: highlight.drawY, y: highlight.drawX)\n    }\n    \n    open override func getBarBounds(entry e: BarChartDataEntry) -> CGRect\n    {\n        guard\n            let data = _data as? BarChartData,\n            let set = data.getDataSetForEntry(e) as? IBarChartDataSet\n            else { return CGRect.null }\n        \n        let y = e.y\n        let x = e.x\n        \n        let barWidth = data.barWidth\n        \n        let top = x - 0.5 + barWidth / 2.0\n        let bottom = x + 0.5 - barWidth / 2.0\n        let left = y >= 0.0 ? y : 0.0\n        let right = y <= 0.0 ? y : 0.0\n        \n        var bounds = CGRect(x: left, y: top, width: right - left, height: bottom - top)\n        \n        getTransformer(forAxis: set.axisDependency).rectValueToPixel(&bounds)\n        \n        return bounds\n    }\n    \n    open override func getPosition(entry e: ChartDataEntry, axis: YAxis.AxisDependency) -> CGPoint\n    {\n        var vals = CGPoint(x: CGFloat(e.y), y: CGFloat(e.x))\n        \n        getTransformer(forAxis: axis).pointValueToPixel(&vals)\n        \n        return vals\n    }\n\n    open override func getHighlightByTouchPoint(_ pt: CGPoint) -> Highlight?\n    {\n        if _data === nil\n        {\n            Swift.print(\"Can't select by touch. No data set.\", terminator: \"\\n\")\n            return nil\n        }\n        \n        return self.highlighter?.getHighlight(x: pt.y, y: pt.x)\n    }\n    \n    /// The lowest x-index (value on the x-axis) that is still visible on he chart.\n    open override var lowestVisibleX: Double\n    {\n        var pt = CGPoint(\n            x: viewPortHandler.contentLeft,\n            y: viewPortHandler.contentBottom)\n        \n        getTransformer(forAxis: .left).pixelToValues(&pt)\n        \n        return max(xAxis._axisMinimum, Double(pt.y))\n    }\n    \n    /// The highest x-index (value on the x-axis) that is still visible on the chart.\n    open override var highestVisibleX: Double\n    {\n        var pt = CGPoint(\n            x: viewPortHandler.contentLeft,\n            y: viewPortHandler.contentTop)\n        \n        getTransformer(forAxis: .left).pixelToValues(&pt)\n        \n        return min(xAxis._axisMaximum, Double(pt.y))\n    }\n    \n    // MARK: - Viewport\n    \n    open override func setVisibleXRangeMaximum(_ maxXRange: Double)\n    {\n        let xScale = xAxis.axisRange / maxXRange\n        viewPortHandler.setMinimumScaleY(CGFloat(xScale))\n    }\n    \n    open override func setVisibleXRangeMinimum(_ minXRange: Double)\n    {\n        let xScale = xAxis.axisRange / minXRange\n        viewPortHandler.setMaximumScaleY(CGFloat(xScale))\n    }\n    \n    open override func setVisibleXRange(minXRange: Double, maxXRange: Double)\n    {\n        let minScale = xAxis.axisRange / minXRange\n        let maxScale = xAxis.axisRange / maxXRange\n        viewPortHandler.setMinMaxScaleY(minScaleY: CGFloat(minScale), maxScaleY: CGFloat(maxScale))\n    }\n    \n    open override func setVisibleYRangeMaximum(_ maxYRange: Double, axis: YAxis.AxisDependency)\n    {\n        let yScale = getAxisRange(axis: axis) / maxYRange\n        viewPortHandler.setMinimumScaleX(CGFloat(yScale))\n    }\n    \n    open override func setVisibleYRangeMinimum(_ minYRange: Double, axis: YAxis.AxisDependency)\n    {\n        let yScale = getAxisRange(axis: axis) / minYRange\n        viewPortHandler.setMaximumScaleX(CGFloat(yScale))\n    }\n    \n    open override func setVisibleYRange(minYRange: Double, maxYRange: Double, axis: YAxis.AxisDependency)\n    {\n        let minScale = getAxisRange(axis: axis) / minYRange\n        let maxScale = getAxisRange(axis: axis) / maxYRange\n        viewPortHandler.setMinMaxScaleX(minScaleX: CGFloat(minScale), maxScaleX: CGFloat(maxScale))\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Charts/LineChartView.swift",
    "content": "//\n//  LineChartView.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n/// Chart that draws lines, surfaces, circles, ...\nopen class LineChartView: BarLineChartViewBase, LineChartDataProvider\n{\n    internal override func initialize()\n    {\n        super.initialize()\n        \n        renderer = LineChartRenderer(dataProvider: self, animator: _animator, viewPortHandler: _viewPortHandler)\n    }\n    \n    // MARK: - LineChartDataProvider\n    \n    open var lineData: LineChartData? { return _data as? LineChartData }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Charts/PieChartView.swift",
    "content": "//\n//  PieChartView.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n#if canImport(UIKit)\n    import UIKit\n#endif\n\n#if canImport(Cocoa)\nimport Cocoa\n#endif\n\n/// View that represents a pie chart. Draws cake like slices.\nopen class PieChartView: PieRadarChartViewBase\n{\n    /// rect object that represents the bounds of the piechart, needed for drawing the circle\n    private var _circleBox = CGRect()\n    \n    /// flag indicating if entry labels should be drawn or not\n    private var _drawEntryLabelsEnabled = true\n    \n    /// array that holds the width of each pie-slice in degrees\n    private var _drawAngles = [CGFloat]()\n    \n    /// array that holds the absolute angle in degrees of each slice\n    private var _absoluteAngles = [CGFloat]()\n    \n    /// if true, the hole inside the chart will be drawn\n    private var _drawHoleEnabled = true\n    \n    private var _holeColor: NSUIColor? = NSUIColor.white\n    \n    /// Sets the color the entry labels are drawn with.\n    private var _entryLabelColor: NSUIColor? = NSUIColor.white\n    \n    /// Sets the font the entry labels are drawn with.\n    private var _entryLabelFont: NSUIFont? = NSUIFont(name: \"HelveticaNeue\", size: 13.0)\n    \n    /// if true, the hole will see-through to the inner tips of the slices\n    private var _drawSlicesUnderHoleEnabled = false\n    \n    /// if true, the values inside the piechart are drawn as percent values\n    private var _usePercentValuesEnabled = false\n    \n    /// variable for the text that is drawn in the center of the pie-chart\n    private var _centerAttributedText: NSAttributedString?\n    \n    /// the offset on the x- and y-axis the center text has in dp.\n    private var _centerTextOffset: CGPoint = CGPoint()\n    \n    /// indicates the size of the hole in the center of the piechart\n    ///\n    /// **default**: `0.5`\n    private var _holeRadiusPercent = CGFloat(0.5)\n    \n    private var _transparentCircleColor: NSUIColor? = NSUIColor(white: 1.0, alpha: 105.0/255.0)\n    \n    /// the radius of the transparent circle next to the chart-hole in the center\n    private var _transparentCircleRadiusPercent = CGFloat(0.55)\n    \n    /// if enabled, centertext is drawn\n    private var _drawCenterTextEnabled = true\n    \n    private var _centerTextRadiusPercent: CGFloat = 1.0\n    \n    /// maximum angle for this pie\n    private var _maxAngle: CGFloat = 360.0\n\n    public override init(frame: CGRect)\n    {\n        super.init(frame: frame)\n    }\n    \n    public required init?(coder aDecoder: NSCoder)\n    {\n        super.init(coder: aDecoder)\n    }\n    \n    internal override func initialize()\n    {\n        super.initialize()\n        \n        renderer = PieChartRenderer(chart: self, animator: _animator, viewPortHandler: _viewPortHandler)\n        _xAxis = nil\n        \n        self.highlighter = PieHighlighter(chart: self)\n    }\n    \n    open override func draw(_ rect: CGRect)\n    {\n        super.draw(rect)\n        \n        if _data === nil\n        {\n            return\n        }\n        \n        let optionalContext = NSUIGraphicsGetCurrentContext()\n        guard let context = optionalContext, let renderer = renderer else\n        {\n            return\n        }\n        \n        renderer.drawData(context: context)\n        \n        if (valuesToHighlight())\n        {\n            renderer.drawHighlighted(context: context, indices: _indicesToHighlight)\n        }\n        \n        renderer.drawExtras(context: context)\n        \n        renderer.drawValues(context: context)\n        \n        legendRenderer.renderLegend(context: context)\n        \n        drawDescription(context: context)\n        \n        drawMarkers(context: context)\n    }\n\n    /// if width is larger than height\n    private var widthLarger: Bool\n    {\n        return _viewPortHandler.contentRect.orientation == .landscape\n    }\n\n    /// adjusted radius. Use diameter when it's half pie and width is larger\n    private var adjustedRadius: CGFloat\n    {\n        return maxAngle <= 180 && widthLarger ? diameter : diameter / 2.0\n    }\n\n    /// true centerOffsets considering half pie & width is larger\n    private func adjustedCenterOffsets() -> CGPoint\n    {\n        var c = self.centerOffsets\n        c.y = maxAngle <= 180 && widthLarger ? c.y + adjustedRadius / 2 : c.y\n        return c\n    }\n    \n    internal override func calculateOffsets()\n    {\n        super.calculateOffsets()\n        \n        // prevent nullpointer when no data set\n        if _data === nil\n        {\n            return\n        }\n\n        let radius = adjustedRadius\n        \n        let c = adjustedCenterOffsets()\n        \n        let shift = (data as? PieChartData)?.dataSet?.selectionShift ?? 0.0\n        \n        // create the circle box that will contain the pie-chart (the bounds of the pie-chart)\n        _circleBox.origin.x = (c.x - radius) + shift\n        _circleBox.origin.y = (c.y - radius) + shift\n        _circleBox.size.width = radius * 2 - shift * 2.0\n        _circleBox.size.height = radius * 2 - shift * 2.0\n\n    }\n\n    internal override func calcMinMax()\n    {\n        calcAngles()\n    }\n\n    @objc open override func angleForPoint(x: CGFloat, y: CGFloat) -> CGFloat\n    {\n        let c = adjustedCenterOffsets()\n\n        let tx = Double(x - c.x)\n        let ty = Double(y - c.y)\n        let length = sqrt(tx * tx + ty * ty)\n        let r = acos(ty / length)\n\n        var angle = r.RAD2DEG\n\n        if x > c.x\n        {\n            angle = 360.0 - angle\n        }\n\n        // add 90° because chart starts EAST\n        angle = angle + 90.0\n\n        // neutralize overflow\n        if angle > 360.0\n        {\n            angle = angle - 360.0\n        }\n\n        return CGFloat(angle)\n    }\n\n    /// - Returns: The distance of a certain point on the chart to the center of the chart.\n    @objc open override func distanceToCenter(x: CGFloat, y: CGFloat) -> CGFloat\n    {\n        let c = adjustedCenterOffsets()\n\n        var dist = CGFloat(0.0)\n\n        var xDist = CGFloat(0.0)\n        var yDist = CGFloat(0.0)\n\n        if x > c.x\n        {\n            xDist = x - c.x\n        }\n        else\n        {\n            xDist = c.x - x\n        }\n\n        if y > c.y\n        {\n            yDist = y - c.y\n        }\n        else\n        {\n            yDist = c.y - y\n        }\n\n        // pythagoras\n        dist = sqrt(pow(xDist, 2.0) + pow(yDist, 2.0))\n\n        return dist\n    }\n\n    open override func getMarkerPosition(highlight: Highlight) -> CGPoint\n    {\n        let center = self.centerCircleBox\n        var r = self.radius\n        \n        var off = r / 10.0 * 3.6\n        \n        if self.isDrawHoleEnabled\n        {\n            off = (r - (r * self.holeRadiusPercent)) / 2.0\n        }\n        \n        r -= off // offset to keep things inside the chart\n        \n        let rotationAngle = self.rotationAngle\n        \n        let entryIndex = Int(highlight.x)\n        \n        // offset needed to center the drawn text in the slice\n        let offset = drawAngles[entryIndex] / 2.0\n        \n        // calculate the text position\n        let x: CGFloat = (r * cos(((rotationAngle + absoluteAngles[entryIndex] - offset) * CGFloat(_animator.phaseY)).DEG2RAD) + center.x)\n        let y: CGFloat = (r * sin(((rotationAngle + absoluteAngles[entryIndex] - offset) * CGFloat(_animator.phaseY)).DEG2RAD) + center.y)\n        \n        return CGPoint(x: x, y: y)\n    }\n    \n    /// calculates the needed angles for the chart slices\n    private func calcAngles()\n    {\n        _drawAngles = [CGFloat]()\n        _absoluteAngles = [CGFloat]()\n        \n        guard let data = _data else { return }\n\n        let entryCount = data.entryCount\n        \n        _drawAngles.reserveCapacity(entryCount)\n        _absoluteAngles.reserveCapacity(entryCount)\n        \n        let yValueSum = (_data as! PieChartData).yValueSum\n\n        var cnt = 0\n\n        for set in data.dataSets\n        {\n            for j in 0 ..< set.entryCount\n            {\n                guard let e = set.entryForIndex(j) else { continue }\n                \n                _drawAngles.append(calcAngle(value: abs(e.y), yValueSum: yValueSum))\n\n                if cnt == 0\n                {\n                    _absoluteAngles.append(_drawAngles[cnt])\n                }\n                else\n                {\n                    _absoluteAngles.append(_absoluteAngles[cnt - 1] + _drawAngles[cnt])\n                }\n\n                cnt += 1\n            }\n        }\n    }\n    \n    /// Checks if the given index is set to be highlighted.\n    @objc open func needsHighlight(index: Int) -> Bool\n    {\n        return _indicesToHighlight.contains { Int($0.x) == index }\n    }\n    \n    /// calculates the needed angle for a given value\n    private func calcAngle(_ value: Double) -> CGFloat\n    {\n        return calcAngle(value: value, yValueSum: (_data as! PieChartData).yValueSum)\n    }\n    \n    /// calculates the needed angle for a given value\n    private func calcAngle(value: Double, yValueSum: Double) -> CGFloat\n    {\n        return CGFloat(value) / CGFloat(yValueSum) * _maxAngle\n    }\n    \n    /// This will throw an exception, PieChart has no XAxis object.\n    open override var xAxis: XAxis\n    {\n        fatalError(\"PieChart has no XAxis\")\n    }\n\n    open override func indexForAngle(_ angle: CGFloat) -> Int\n    {\n        // TODO: Return nil instead of -1\n        // take the current angle of the chart into consideration\n        let a = (angle - self.rotationAngle).normalizedAngle\n        return _absoluteAngles.firstIndex { $0 > a } ?? -1\n    }\n    \n    /// - Returns: The index of the DataSet this x-index belongs to.\n    @objc open func dataSetIndexForIndex(_ xValue: Double) -> Int\n    {\n        // TODO: Return nil instead of -1\n        return _data?.dataSets.firstIndex {\n            $0.entryForXValue(xValue, closestToY: .nan) != nil\n        } ?? -1\n    }\n    \n    /// - Returns: An integer array of all the different angles the chart slices\n    /// have the angles in the returned array determine how much space (of 360°)\n    /// each slice takes\n    @objc open var drawAngles: [CGFloat]\n    {\n        return _drawAngles\n    }\n\n    /// - Returns: The absolute angles of the different chart slices (where the\n    /// slices end)\n    @objc open var absoluteAngles: [CGFloat]\n    {\n        return _absoluteAngles\n    }\n    \n    /// The color for the hole that is drawn in the center of the PieChart (if enabled).\n    /// \n    /// - Note: Use holeTransparent with holeColor = nil to make the hole transparent.*\n    @objc open var holeColor: NSUIColor?\n    {\n        get\n        {\n            return _holeColor\n        }\n        set\n        {\n            _holeColor = newValue\n            setNeedsDisplay()\n        }\n    }\n    \n    /// if true, the hole will see-through to the inner tips of the slices\n    ///\n    /// **default**: `false`\n    @objc open var drawSlicesUnderHoleEnabled: Bool\n    {\n        get\n        {\n            return _drawSlicesUnderHoleEnabled\n        }\n        set\n        {\n            _drawSlicesUnderHoleEnabled = newValue\n            setNeedsDisplay()\n        }\n    }\n    \n    /// `true` if the inner tips of the slices are visible behind the hole, `false` if not.\n    @objc open var isDrawSlicesUnderHoleEnabled: Bool\n    {\n        return drawSlicesUnderHoleEnabled\n    }\n    \n    /// `true` if the hole in the center of the pie-chart is set to be visible, `false` ifnot\n    @objc open var drawHoleEnabled: Bool\n    {\n        get\n        {\n            return _drawHoleEnabled\n        }\n        set\n        {\n            _drawHoleEnabled = newValue\n            setNeedsDisplay()\n        }\n    }\n    \n    /// `true` if the hole in the center of the pie-chart is set to be visible, `false` ifnot\n    @objc open var isDrawHoleEnabled: Bool\n    {\n        get\n        {\n            return drawHoleEnabled\n        }\n    }\n    \n    /// the text that is displayed in the center of the pie-chart\n    @objc open var centerText: String?\n    {\n        get\n        {\n            return self.centerAttributedText?.string\n        }\n        set\n        {\n            var attrString: NSMutableAttributedString?\n            if newValue == nil\n            {\n                attrString = nil\n            }\n            else\n            {\n                let paragraphStyle = NSParagraphStyle.default.mutableCopy() as! NSMutableParagraphStyle\n                paragraphStyle.lineBreakMode = .byTruncatingTail\n                paragraphStyle.alignment = .center\n                \n                attrString = NSMutableAttributedString(string: newValue!)\n                attrString?.setAttributes([\n                    .foregroundColor: NSUIColor.labelOrBlack,\n                    .font: NSUIFont.systemFont(ofSize: 12.0),\n                    .paragraphStyle: paragraphStyle\n                    ], range: NSMakeRange(0, attrString!.length))\n            }\n            self.centerAttributedText = attrString\n        }\n    }\n    \n    /// the text that is displayed in the center of the pie-chart\n    @objc open var centerAttributedText: NSAttributedString?\n    {\n        get\n        {\n            return _centerAttributedText\n        }\n        set\n        {\n            _centerAttributedText = newValue\n            setNeedsDisplay()\n        }\n    }\n    \n    /// Sets the offset the center text should have from it's original position in dp. Default x = 0, y = 0\n    @objc open var centerTextOffset: CGPoint\n    {\n        get\n        {\n            return _centerTextOffset\n        }\n        set\n        {\n            _centerTextOffset = newValue\n            setNeedsDisplay()\n        }\n    }\n    \n    /// `true` if drawing the center text is enabled\n    @objc open var drawCenterTextEnabled: Bool\n    {\n        get\n        {\n            return _drawCenterTextEnabled\n        }\n        set\n        {\n            _drawCenterTextEnabled = newValue\n            setNeedsDisplay()\n        }\n    }\n    \n    /// `true` if drawing the center text is enabled\n    @objc open var isDrawCenterTextEnabled: Bool\n    {\n        get\n        {\n            return drawCenterTextEnabled\n        }\n    }\n    \n    internal override var requiredLegendOffset: CGFloat\n    {\n        return _legend.font.pointSize * 2.0\n    }\n    \n    internal override var requiredBaseOffset: CGFloat\n    {\n        return 0.0\n    }\n    \n    open override var radius: CGFloat\n    {\n        return _circleBox.width / 2.0\n    }\n    \n    /// The circlebox, the boundingbox of the pie-chart slices\n    @objc open var circleBox: CGRect\n    {\n        return _circleBox\n    }\n    \n    /// The center of the circlebox\n    @objc open var centerCircleBox: CGPoint\n    {\n        return CGPoint(x: _circleBox.midX, y: _circleBox.midY)\n    }\n    \n    /// the radius of the hole in the center of the piechart in percent of the maximum radius (max = the radius of the whole chart)\n    /// \n    /// **default**: 0.5 (50%) (half the pie)\n    @objc open var holeRadiusPercent: CGFloat\n    {\n        get\n        {\n            return _holeRadiusPercent\n        }\n        set\n        {\n            _holeRadiusPercent = newValue\n            setNeedsDisplay()\n        }\n    }\n    \n    /// The color that the transparent-circle should have.\n    ///\n    /// **default**: `nil`\n    @objc open var transparentCircleColor: NSUIColor?\n    {\n        get\n        {\n            return _transparentCircleColor\n        }\n        set\n        {\n            _transparentCircleColor = newValue\n            setNeedsDisplay()\n        }\n    }\n    \n    /// the radius of the transparent circle that is drawn next to the hole in the piechart in percent of the maximum radius (max = the radius of the whole chart)\n    /// \n    /// **default**: 0.55 (55%) -> means 5% larger than the center-hole by default\n    @objc open var transparentCircleRadiusPercent: CGFloat\n    {\n        get\n        {\n            return _transparentCircleRadiusPercent\n        }\n        set\n        {\n            _transparentCircleRadiusPercent = newValue\n            setNeedsDisplay()\n        }\n    }\n        \n    /// The color the entry labels are drawn with.\n    @objc open var entryLabelColor: NSUIColor?\n    {\n        get { return _entryLabelColor }\n        set\n        {\n            _entryLabelColor = newValue\n            setNeedsDisplay()\n        }\n    }\n    \n    /// The font the entry labels are drawn with.\n    @objc open var entryLabelFont: NSUIFont?\n    {\n        get { return _entryLabelFont }\n        set\n        {\n            _entryLabelFont = newValue\n            setNeedsDisplay()\n        }\n    }\n    \n    /// Set this to true to draw the enrty labels into the pie slices\n    @objc open var drawEntryLabelsEnabled: Bool\n    {\n        get\n        {\n            return _drawEntryLabelsEnabled\n        }\n        set\n        {\n            _drawEntryLabelsEnabled = newValue\n            setNeedsDisplay()\n        }\n    }\n    \n    /// `true` if drawing entry labels is enabled, `false` ifnot\n    @objc open var isDrawEntryLabelsEnabled: Bool\n    {\n        get\n        {\n            return drawEntryLabelsEnabled\n        }\n    }\n    \n    /// If this is enabled, values inside the PieChart are drawn in percent and not with their original value. Values provided for the ValueFormatter to format are then provided in percent.\n    @objc open var usePercentValuesEnabled: Bool\n    {\n        get\n        {\n            return _usePercentValuesEnabled\n        }\n        set\n        {\n            _usePercentValuesEnabled = newValue\n            setNeedsDisplay()\n        }\n    }\n    \n    /// `true` if drawing x-values is enabled, `false` ifnot\n    @objc open var isUsePercentValuesEnabled: Bool\n    {\n        get\n        {\n            return usePercentValuesEnabled\n        }\n    }\n    \n    /// the rectangular radius of the bounding box for the center text, as a percentage of the pie hole\n    @objc open var centerTextRadiusPercent: CGFloat\n    {\n        get\n        {\n            return _centerTextRadiusPercent\n        }\n        set\n        {\n            _centerTextRadiusPercent = newValue\n            setNeedsDisplay()\n        }\n    }\n    \n    /// The max angle that is used for calculating the pie-circle.\n    /// 360 means it's a full pie-chart, 180 results in a half-pie-chart.\n    /// **default**: 360.0\n    @objc open var maxAngle: CGFloat\n    {\n        get\n        {\n            return _maxAngle\n        }\n        set\n        {\n            _maxAngle = newValue\n            \n            if _maxAngle > 360.0\n            {\n                _maxAngle = 360.0\n            }\n            \n            if _maxAngle < 90.0\n            {\n                _maxAngle = 90.0\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift",
    "content": "//\n//  PieRadarChartViewBase.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\nimport QuartzCore\n\n#if canImport(AppKit)\nimport AppKit\n#endif\n\n\n/// Base class of PieChartView and RadarChartView.\nopen class PieRadarChartViewBase: ChartViewBase\n{\n    /// holds the normalized version of the current rotation angle of the chart\n    private var _rotationAngle = CGFloat(270.0)\n    \n    /// holds the raw version of the current rotation angle of the chart\n    private var _rawRotationAngle = CGFloat(270.0)\n    \n    /// flag that indicates if rotation is enabled or not\n    @objc open var rotationEnabled = true\n    \n    /// Sets the minimum offset (padding) around the chart, defaults to 0.0\n    @objc open var minOffset = CGFloat(0.0)\n\n    /// iOS && OSX only: Enabled multi-touch rotation using two fingers.\n    private var _rotationWithTwoFingers = false\n    \n    private var _tapGestureRecognizer: NSUITapGestureRecognizer!\n    #if !os(tvOS)\n    private var _rotationGestureRecognizer: NSUIRotationGestureRecognizer!\n    #endif\n    \n    public override init(frame: CGRect)\n    {\n        super.init(frame: frame)\n    }\n    \n    public required init?(coder aDecoder: NSCoder)\n    {\n        super.init(coder: aDecoder)\n    }\n    \n    deinit\n    {\n        stopDeceleration()\n    }\n    \n    internal override func initialize()\n    {\n        super.initialize()\n        \n        _tapGestureRecognizer = NSUITapGestureRecognizer(target: self, action: #selector(tapGestureRecognized(_:)))\n        \n        self.addGestureRecognizer(_tapGestureRecognizer)\n\n        #if !os(tvOS)\n        _rotationGestureRecognizer = NSUIRotationGestureRecognizer(target: self, action: #selector(rotationGestureRecognized(_:)))\n        self.addGestureRecognizer(_rotationGestureRecognizer)\n        _rotationGestureRecognizer.isEnabled = rotationWithTwoFingers\n        #endif\n    }\n    \n    internal override func calcMinMax()\n    {\n        /*_xAxis.axisRange = Double((_data?.xVals.count ?? 0) - 1)*/\n    }\n    \n    open override var maxVisibleCount: Int\n    {\n        get\n        {\n            return data?.entryCount ?? 0\n        }\n    }\n    \n    open override func notifyDataSetChanged()\n    {\n        calcMinMax()\n        \n        if let data = _data , _legend !== nil\n        {\n            legendRenderer.computeLegend(data: data)\n        }\n        \n        calculateOffsets()\n        \n        setNeedsDisplay()\n    }\n  \n    internal override func calculateOffsets()\n    {\n        var legendLeft = CGFloat(0.0)\n        var legendRight = CGFloat(0.0)\n        var legendBottom = CGFloat(0.0)\n        var legendTop = CGFloat(0.0)\n\n        if _legend != nil && _legend.enabled && !_legend.drawInside\n        {\n            let fullLegendWidth = min(_legend.neededWidth, _viewPortHandler.chartWidth * _legend.maxSizePercent)\n            \n            switch _legend.orientation\n            {\n            case .vertical:\n                \n                var xLegendOffset: CGFloat = 0.0\n                \n                if _legend.horizontalAlignment == .left\n                    || _legend.horizontalAlignment == .right\n                {\n                    if _legend.verticalAlignment == .center\n                    {\n                        // this is the space between the legend and the chart\n                        let spacing = CGFloat(13.0)\n                        \n                        xLegendOffset = fullLegendWidth + spacing\n                    }\n                    else\n                    {\n                        // this is the space between the legend and the chart\n                        let spacing = CGFloat(8.0)\n                        \n                        let legendWidth = fullLegendWidth + spacing\n                        let legendHeight = _legend.neededHeight + _legend.textHeightMax\n                        \n                        let c = self.midPoint\n                        \n                        let bottomX = _legend.horizontalAlignment == .right\n                            ? self.bounds.width - legendWidth + 15.0\n                            : legendWidth - 15.0\n                        let bottomY = legendHeight + 15\n                        let distLegend = distanceToCenter(x: bottomX, y: bottomY)\n                        \n                        let reference = getPosition(center: c, dist: self.radius,\n                                                    angle: angleForPoint(x: bottomX, y: bottomY))\n                        \n                        let distReference = distanceToCenter(x: reference.x, y: reference.y)\n                        let minOffset = CGFloat(5.0)\n                        \n                        if bottomY >= c.y\n                            && self.bounds.height - legendWidth > self.bounds.width\n                        {\n                            xLegendOffset = legendWidth\n                        }\n                        else if distLegend < distReference\n                        {\n                            let diff = distReference - distLegend\n                            xLegendOffset = minOffset + diff\n                        }\n                    }\n                }\n                \n                switch _legend.horizontalAlignment\n                {\n                case .left:\n                    legendLeft = xLegendOffset\n                    \n                case .right:\n                    legendRight = xLegendOffset\n                    \n                case .center:\n                    \n                    switch _legend.verticalAlignment\n                    {\n                    case .top:\n                        legendTop = min(_legend.neededHeight, _viewPortHandler.chartHeight * _legend.maxSizePercent)\n                        \n                    case .bottom:\n                        legendBottom = min(_legend.neededHeight, _viewPortHandler.chartHeight * _legend.maxSizePercent)\n                        \n                    default:\n                        break\n                    }\n                }\n            \n            case .horizontal:\n                \n                var yLegendOffset: CGFloat = 0.0\n                \n                if _legend.verticalAlignment == .top\n                    || _legend.verticalAlignment == .bottom\n                {\n                    // It's possible that we do not need this offset anymore as it\n                    //   is available through the extraOffsets, but changing it can mean\n                    //   changing default visibility for existing apps.\n                    let yOffset = self.requiredLegendOffset\n                    \n                    yLegendOffset = min(\n                        _legend.neededHeight + yOffset,\n                        _viewPortHandler.chartHeight * _legend.maxSizePercent)\n                }\n                \n                switch _legend.verticalAlignment\n                {\n                case .top:\n                    \n                    legendTop = yLegendOffset\n                    \n                case .bottom:\n                    \n                    legendBottom = yLegendOffset\n                    \n                default:\n                    break\n                }\n            }\n\n            legendLeft += self.requiredBaseOffset\n            legendRight += self.requiredBaseOffset\n            legendTop += self.requiredBaseOffset\n            legendBottom += self.requiredBaseOffset\n        }\n        \n        legendTop += self.extraTopOffset\n        legendRight += self.extraRightOffset\n        legendBottom += self.extraBottomOffset\n        legendLeft += self.extraLeftOffset\n        \n        var minOffset = self.minOffset\n        \n        if self is RadarChartView\n        {\n            let x = self.xAxis\n            \n            if x.isEnabled && x.drawLabelsEnabled\n            {\n                minOffset = max(minOffset, x.labelRotatedWidth)\n            }\n        }\n\n        let offsetLeft = max(minOffset, legendLeft)\n        let offsetTop = max(minOffset, legendTop)\n        let offsetRight = max(minOffset, legendRight)\n        let offsetBottom = max(minOffset, max(self.requiredBaseOffset, legendBottom))\n\n        _viewPortHandler.restrainViewPort(offsetLeft: offsetLeft, offsetTop: offsetTop, offsetRight: offsetRight, offsetBottom: offsetBottom)\n    }\n\n    /// - Returns: The angle relative to the chart center for the given point on the chart in degrees.\n    /// The angle is always between 0 and 360°, 0° is NORTH, 90° is EAST, ...\n    @objc open func angleForPoint(x: CGFloat, y: CGFloat) -> CGFloat\n    {\n        let c = centerOffsets\n        \n        let tx = Double(x - c.x)\n        let ty = Double(y - c.y)\n        let length = sqrt(tx * tx + ty * ty)\n        let r = acos(ty / length)\n\n        var angle = r.RAD2DEG\n\n        if x > c.x\n        {\n            angle = 360.0 - angle\n        }\n\n        // add 90° because chart starts EAST\n        angle = angle + 90.0\n\n        // neutralize overflow\n        if angle > 360.0\n        {\n            angle = angle - 360.0\n        }\n\n        return CGFloat(angle)\n    }\n    \n    /// Calculates the position around a center point, depending on the distance\n    /// from the center, and the angle of the position around the center.\n    @objc open func getPosition(center: CGPoint, dist: CGFloat, angle: CGFloat) -> CGPoint\n    {\n        return CGPoint(x: center.x + dist * cos(angle.DEG2RAD),\n                y: center.y + dist * sin(angle.DEG2RAD))\n    }\n\n    /// - Returns: The distance of a certain point on the chart to the center of the chart.\n    @objc open func distanceToCenter(x: CGFloat, y: CGFloat) -> CGFloat\n    {\n        let c = self.centerOffsets\n\n        var dist = CGFloat(0.0)\n\n        var xDist = CGFloat(0.0)\n        var yDist = CGFloat(0.0)\n\n        if x > c.x\n        {\n            xDist = x - c.x\n        }\n        else\n        {\n            xDist = c.x - x\n        }\n\n        if y > c.y\n        {\n            yDist = y - c.y\n        }\n        else\n        {\n            yDist = c.y - y\n        }\n\n        // pythagoras\n        dist = sqrt(pow(xDist, 2.0) + pow(yDist, 2.0))\n\n        return dist\n    }\n\n    /// - Returns: The xIndex for the given angle around the center of the chart.\n    /// -1 if not found / outofbounds.\n    @objc open func indexForAngle(_ angle: CGFloat) -> Int\n    {\n        fatalError(\"indexForAngle() cannot be called on PieRadarChartViewBase\")\n    }\n\n    /// current rotation angle of the pie chart\n    ///\n    /// **default**: 270 --> top (NORTH)\n    /// Will always return a normalized value, which will be between 0.0 < 360.0\n    @objc open var rotationAngle: CGFloat\n    {\n        get\n        {\n            return _rotationAngle\n        }\n        set\n        {\n            _rawRotationAngle = newValue\n            _rotationAngle = newValue.normalizedAngle\n            setNeedsDisplay()\n        }\n    }\n    \n    /// gets the raw version of the current rotation angle of the pie chart the returned value could be any value, negative or positive, outside of the 360 degrees. \n    /// this is used when working with rotation direction, mainly by gestures and animations.\n    @objc open var rawRotationAngle: CGFloat\n    {\n        return _rawRotationAngle\n    }\n\n    /// The diameter of the pie- or radar-chart\n    @objc open var diameter: CGFloat\n    {\n        var content = _viewPortHandler.contentRect\n        content.origin.x += extraLeftOffset\n        content.origin.y += extraTopOffset\n        content.size.width -= extraLeftOffset + extraRightOffset\n        content.size.height -= extraTopOffset + extraBottomOffset\n        return min(content.width, content.height)\n    }\n\n    /// The radius of the chart in pixels.\n    @objc open var radius: CGFloat\n    {\n        fatalError(\"radius cannot be called on PieRadarChartViewBase\")\n    }\n\n    /// The required offset for the chart legend.\n    internal var requiredLegendOffset: CGFloat\n    {\n        fatalError(\"requiredLegendOffset cannot be called on PieRadarChartViewBase\")\n    }\n\n    /// - Returns: The base offset needed for the chart without calculating the\n    /// legend size.\n    internal var requiredBaseOffset: CGFloat\n    {\n        fatalError(\"requiredBaseOffset cannot be called on PieRadarChartViewBase\")\n    }\n    \n    open override var chartYMax: Double\n    {\n        return 0.0\n    }\n    \n    open override var chartYMin: Double\n    {\n        return 0.0\n    }\n    \n    @objc open var isRotationEnabled: Bool { return rotationEnabled }\n    \n    /// flag that indicates if rotation is done with two fingers or one.\n    /// when the chart is inside a scrollview, you need a two-finger rotation because a one-finger rotation eats up all touch events.\n    ///\n    /// On iOS this will disable one-finger rotation.\n    /// On OSX this will keep two-finger multitouch rotation, and one-pointer mouse rotation.\n    /// \n    /// **default**: false\n    @objc open var rotationWithTwoFingers: Bool\n    {\n        get\n        {\n            return _rotationWithTwoFingers\n        }\n        set\n        {\n            _rotationWithTwoFingers = newValue\n            #if !os(tvOS)\n            _rotationGestureRecognizer.isEnabled = _rotationWithTwoFingers\n            #endif\n        }\n    }\n    \n    /// flag that indicates if rotation is done with two fingers or one.\n    /// when the chart is inside a scrollview, you need a two-finger rotation because a one-finger rotation eats up all touch events.\n    ///\n    /// On iOS this will disable one-finger rotation.\n    /// On OSX this will keep two-finger multitouch rotation, and one-pointer mouse rotation.\n    ///\n    /// **default**: false\n    @objc open var isRotationWithTwoFingers: Bool\n    {\n        return _rotationWithTwoFingers\n    }\n    \n    // MARK: - Animation\n    \n    private var _spinAnimator: Animator!\n    \n    /// Applys a spin animation to the Chart.\n    @objc open func spin(duration: TimeInterval, fromAngle: CGFloat, toAngle: CGFloat, easing: ChartEasingFunctionBlock?)\n    {\n        if _spinAnimator != nil\n        {\n            _spinAnimator.stop()\n        }\n        \n        _spinAnimator = Animator()\n        _spinAnimator.updateBlock = {\n            self.rotationAngle = (toAngle - fromAngle) * CGFloat(self._spinAnimator.phaseX) + fromAngle\n        }\n        _spinAnimator.stopBlock = { self._spinAnimator = nil }\n        \n        _spinAnimator.animate(xAxisDuration: duration, easing: easing)\n    }\n    \n    @objc open func spin(duration: TimeInterval, fromAngle: CGFloat, toAngle: CGFloat, easingOption: ChartEasingOption)\n    {\n        spin(duration: duration, fromAngle: fromAngle, toAngle: toAngle, easing: easingFunctionFromOption(easingOption))\n    }\n    \n    @objc open func spin(duration: TimeInterval, fromAngle: CGFloat, toAngle: CGFloat)\n    {\n        spin(duration: duration, fromAngle: fromAngle, toAngle: toAngle, easing: nil)\n    }\n    \n    @objc open func stopSpinAnimation()\n    {\n        if _spinAnimator != nil\n        {\n            _spinAnimator.stop()\n        }\n    }\n    \n    // MARK: - Gestures\n    \n    private var _rotationGestureStartPoint: CGPoint!\n    private var _isRotating = false\n    private var _startAngle = CGFloat(0.0)\n    \n    private struct AngularVelocitySample\n    {\n        var time: TimeInterval\n        var angle: CGFloat\n    }\n    \n    private var velocitySamples = [AngularVelocitySample]()\n    \n    private var _decelerationLastTime: TimeInterval = 0.0\n    private var _decelerationDisplayLink: NSUIDisplayLink!\n    private var _decelerationAngularVelocity: CGFloat = 0.0\n    \n    internal final func processRotationGestureBegan(location: CGPoint)\n    {\n        self.resetVelocity()\n        \n        if rotationEnabled\n        {\n            self.sampleVelocity(touchLocation: location)\n        }\n        \n        self.setGestureStartAngle(x: location.x, y: location.y)\n        \n        _rotationGestureStartPoint = location\n    }\n    \n    internal final func processRotationGestureMoved(location: CGPoint)\n    {\n        if isDragDecelerationEnabled\n        {\n            sampleVelocity(touchLocation: location)\n        }\n        \n        if !_isRotating &&\n            distance(\n                eventX: location.x,\n                startX: _rotationGestureStartPoint.x,\n                eventY: location.y,\n                startY: _rotationGestureStartPoint.y) > CGFloat(8.0)\n        {\n            _isRotating = true\n        }\n        else\n        {\n            self.updateGestureRotation(x: location.x, y: location.y)\n            setNeedsDisplay()\n        }\n    }\n    \n    internal final func processRotationGestureEnded(location: CGPoint)\n    {\n        if isDragDecelerationEnabled\n        {\n            stopDeceleration()\n            \n            sampleVelocity(touchLocation: location)\n            \n            _decelerationAngularVelocity = calculateVelocity()\n            \n            if _decelerationAngularVelocity != 0.0\n            {\n                _decelerationLastTime = CACurrentMediaTime()\n                _decelerationDisplayLink = NSUIDisplayLink(target: self, selector: #selector(PieRadarChartViewBase.decelerationLoop))\n                _decelerationDisplayLink.add(to: RunLoop.main, forMode: RunLoop.Mode.common)\n            }\n        }\n    }\n    \n    internal final func processRotationGestureCancelled()\n    {\n        if _isRotating\n        {\n            _isRotating = false\n        }\n    }\n    \n    #if !os(OSX)\n    open override func nsuiTouchesBegan(_ touches: Set<NSUITouch>, withEvent event: NSUIEvent?)\n    {\n        // if rotation by touch is enabled\n        if rotationEnabled\n        {\n            stopDeceleration()\n            \n            if !rotationWithTwoFingers, let touchLocation = touches.first?.location(in: self)\n            {\n                processRotationGestureBegan(location: touchLocation)\n            }\n        }\n        \n        if !_isRotating\n        {\n            super.nsuiTouchesBegan(touches, withEvent: event)\n        }\n    }\n    \n    open override func nsuiTouchesMoved(_ touches: Set<NSUITouch>, withEvent event: NSUIEvent?)\n    {\n        if rotationEnabled && !rotationWithTwoFingers, let touch = touches.first\n        {\n            let touchLocation = touch.location(in: self)\n            processRotationGestureMoved(location: touchLocation)\n        }\n        \n        if !_isRotating\n        {\n            super.nsuiTouchesMoved(touches, withEvent: event)\n        }\n    }\n    \n    open override func nsuiTouchesEnded(_ touches: Set<NSUITouch>, withEvent event: NSUIEvent?)\n    {\n        if !_isRotating\n        {\n            super.nsuiTouchesEnded(touches, withEvent: event)\n        }\n        \n        if rotationEnabled && !rotationWithTwoFingers, let touch = touches.first\n        {\n            let touchLocation = touch.location(in: self)\n            processRotationGestureEnded(location: touchLocation)\n        }\n        \n        if _isRotating\n        {\n            _isRotating = false\n        }\n    }\n    \n    open override func nsuiTouchesCancelled(_ touches: Set<NSUITouch>?, withEvent event: NSUIEvent?)\n    {\n        super.nsuiTouchesCancelled(touches, withEvent: event)\n        \n        processRotationGestureCancelled()\n    }\n    #endif\n    \n    #if os(OSX)\n    open override func mouseDown(with theEvent: NSEvent)\n    {\n        // if rotation by touch is enabled\n        if rotationEnabled\n        {\n            stopDeceleration()\n        \n            let location = self.convert(theEvent.locationInWindow, from: nil)\n            \n            processRotationGestureBegan(location: location)\n        }\n        \n        if !_isRotating\n        {\n            super.mouseDown(with: theEvent)\n        }\n    }\n    \n    open override func mouseDragged(with theEvent: NSEvent)\n    {\n        if rotationEnabled\n        {\n            let location = self.convert(theEvent.locationInWindow, from: nil)\n            \n            processRotationGestureMoved(location: location)\n        }\n        \n        if !_isRotating\n        {\n            super.mouseDragged(with: theEvent)\n        }\n    }\n    \n    open override func mouseUp(with theEvent: NSEvent)\n    {\n        if !_isRotating\n        {\n            super.mouseUp(with: theEvent)\n        }\n        \n        if rotationEnabled\n        {\n            let location = self.convert(theEvent.locationInWindow, from: nil)\n            \n            processRotationGestureEnded(location: location)\n        }\n        \n        if _isRotating\n        {\n            _isRotating = false\n        }\n    }\n    #endif\n    \n    private func resetVelocity()\n    {\n        velocitySamples.removeAll(keepingCapacity: false)\n    }\n    \n    private func sampleVelocity(touchLocation: CGPoint)\n    {\n        let currentSample: AngularVelocitySample = {\n            let time = CACurrentMediaTime()\n            let angle = angleForPoint(x: touchLocation.x, y: touchLocation.y)\n            return AngularVelocitySample(time: time, angle: angle)\n        }()\n\n        // Remove samples older than our sample time - 1 seconds\n        // while keeping at least one sample\n        \n        var i = 0, count = velocitySamples.count\n        while (i < count - 2)\n        {\n            if currentSample.time - velocitySamples[i].time > 1.0\n            {\n                velocitySamples.remove(at: 0)\n                i -= 1\n                count -= 1\n            }\n            else\n            {\n                break\n            }\n\n            i += 1\n        }\n\n        velocitySamples.append(currentSample)\n    }\n\n    private func calculateVelocity() -> CGFloat\n    {\n        guard var firstSample = velocitySamples.first,\n            var lastSample = velocitySamples.last\n            else { return 0 }\n\n        // Look for a sample that's closest to the latest sample, but not the same, so we can deduce the direction\n        let beforeLastSample = velocitySamples.last { $0.angle != lastSample.angle }\n            ?? firstSample\n\n        // Calculate the sampling time\n        let timeDelta: CGFloat = {\n            let delta = CGFloat(lastSample.time - firstSample.time)\n            return delta == 0 ? 0.1 : delta\n        }()\n\n        // Calculate clockwise/ccw by choosing two values that should be closest to each other,\n        // so if the angles are two far from each other we know they are inverted \"for sure\"\n        let isClockwise: Bool = {\n            let isClockwise = lastSample.angle >= beforeLastSample.angle\n            let isInverted = abs(lastSample.angle - beforeLastSample.angle) > 270.0\n            return isInverted ? !isClockwise : isClockwise\n        }()\n\n        // Now if the \"gesture\" is over a too big of an angle - then we know the angles are inverted, and we need to move them closer to each other from both sides of the 360.0 wrapping point\n        if lastSample.angle - firstSample.angle > 180.0\n        {\n            firstSample.angle += 360.0\n        }\n        else if firstSample.angle - lastSample.angle > 180.0\n        {\n            lastSample.angle += 360.0\n        }\n\n        // The velocity\n        let velocity = abs((lastSample.angle - firstSample.angle) / timeDelta)\n        return isClockwise ? velocity : -velocity\n    }\n\n    /// sets the starting angle of the rotation, this is only used by the touch listener, x and y is the touch position\n    private func setGestureStartAngle(x: CGFloat, y: CGFloat)\n    {\n        _startAngle = angleForPoint(x: x, y: y)\n        \n        // take the current angle into consideration when starting a new drag\n        _startAngle -= _rotationAngle\n    }\n    \n    /// updates the view rotation depending on the given touch position, also takes the starting angle into consideration\n    private func updateGestureRotation(x: CGFloat, y: CGFloat)\n    {\n        self.rotationAngle = angleForPoint(x: x, y: y) - _startAngle\n    }\n    \n    @objc open func stopDeceleration()\n    {\n        if _decelerationDisplayLink !== nil\n        {\n            _decelerationDisplayLink.remove(from: RunLoop.main, forMode: RunLoop.Mode.common)\n            _decelerationDisplayLink = nil\n        }\n    }\n    \n    @objc private func decelerationLoop()\n    {\n        let currentTime = CACurrentMediaTime()\n        \n        _decelerationAngularVelocity *= self.dragDecelerationFrictionCoef\n        \n        let timeInterval = CGFloat(currentTime - _decelerationLastTime)\n        \n        self.rotationAngle += _decelerationAngularVelocity * timeInterval\n        \n        _decelerationLastTime = currentTime\n        \n        if(abs(_decelerationAngularVelocity) < 0.001)\n        {\n            stopDeceleration()\n        }\n    }\n    \n    /// - Returns: The distance between two points\n    private func distance(eventX: CGFloat, startX: CGFloat, eventY: CGFloat, startY: CGFloat) -> CGFloat\n    {\n        let dx = eventX - startX\n        let dy = eventY - startY\n        return sqrt(dx * dx + dy * dy)\n    }\n    \n    /// - Returns: The distance between two points\n    private func distance(from: CGPoint, to: CGPoint) -> CGFloat\n    {\n        let dx = from.x - to.x\n        let dy = from.y - to.y\n        return sqrt(dx * dx + dy * dy)\n    }\n    \n    /// reference to the last highlighted object\n    private var _lastHighlight: Highlight!\n    \n    @objc private func tapGestureRecognized(_ recognizer: NSUITapGestureRecognizer)\n    {\n        if recognizer.state == NSUIGestureRecognizerState.ended\n        {\n            if !self.isHighLightPerTapEnabled { return }\n            \n            let location = recognizer.location(in: self)\n            \n            let high = self.getHighlightByTouchPoint(location)\n            self.highlightValue(high, callDelegate: true)\n        }\n    }\n    \n    #if !os(tvOS)\n    @objc private func rotationGestureRecognized(_ recognizer: NSUIRotationGestureRecognizer)\n    {\n        if recognizer.state == NSUIGestureRecognizerState.began\n        {\n            stopDeceleration()\n            \n            _startAngle = self.rawRotationAngle\n        }\n        \n        if recognizer.state == NSUIGestureRecognizerState.began || recognizer.state == NSUIGestureRecognizerState.changed\n        {\n            let angle = recognizer.nsuiRotation.RAD2DEG\n            \n            self.rotationAngle = _startAngle + angle\n            setNeedsDisplay()\n        }\n        else if recognizer.state == NSUIGestureRecognizerState.ended\n        {\n            let angle = recognizer.nsuiRotation.RAD2DEG\n            \n            self.rotationAngle = _startAngle + angle\n            setNeedsDisplay()\n            \n            if isDragDecelerationEnabled\n            {\n                stopDeceleration()\n                \n                _decelerationAngularVelocity = recognizer.velocity.RAD2DEG\n                \n                if _decelerationAngularVelocity != 0.0\n                {\n                    _decelerationLastTime = CACurrentMediaTime()\n                    _decelerationDisplayLink = NSUIDisplayLink(target: self, selector: #selector(PieRadarChartViewBase.decelerationLoop))\n                    _decelerationDisplayLink.add(to: RunLoop.main, forMode: RunLoop.Mode.common)\n                }\n            }\n        }\n    }\n    #endif\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Charts/RadarChartView.swift",
    "content": "//\n//  RadarChartView.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n\n/// Implementation of the RadarChart, a \"spidernet\"-like chart. It works best\n/// when displaying 5-10 entries per DataSet.\nopen class RadarChartView: PieRadarChartViewBase\n{\n    /// width of the web lines that come from the center.\n    @objc open var webLineWidth = CGFloat(1.5)\n    \n    /// width of the web lines that are in between the lines coming from the center\n    @objc open var innerWebLineWidth = CGFloat(0.75)\n    \n    /// color for the web lines that come from the center\n    @objc open var webColor = NSUIColor(red: 122/255.0, green: 122/255.0, blue: 122.0/255.0, alpha: 1.0)\n    \n    /// color for the web lines in between the lines that come from the center.\n    @objc open var innerWebColor = NSUIColor(red: 122/255.0, green: 122/255.0, blue: 122.0/255.0, alpha: 1.0)\n    \n    /// transparency the grid is drawn with (0.0 - 1.0)\n    @objc open var webAlpha: CGFloat = 150.0 / 255.0\n    \n    /// flag indicating if the web lines should be drawn or not\n    @objc open var drawWeb = true\n    \n    /// modulus that determines how many labels and web-lines are skipped before the next is drawn\n    private var _skipWebLineCount = 0\n    \n    /// the object reprsenting the y-axis labels\n    private var _yAxis: YAxis!\n    \n    internal var _yAxisRenderer: YAxisRendererRadarChart!\n    internal var _xAxisRenderer: XAxisRendererRadarChart!\n    \n    public override init(frame: CGRect)\n    {\n        super.init(frame: frame)\n    }\n    \n    public required init?(coder aDecoder: NSCoder)\n    {\n        super.init(coder: aDecoder)\n    }\n    \n    internal override func initialize()\n    {\n        super.initialize()\n        \n        _yAxis = YAxis(position: .left)\n        _yAxis.labelXOffset = 10.0\n        \n        renderer = RadarChartRenderer(chart: self, animator: _animator, viewPortHandler: _viewPortHandler)\n        \n        _yAxisRenderer = YAxisRendererRadarChart(viewPortHandler: _viewPortHandler, yAxis: _yAxis, chart: self)\n        _xAxisRenderer = XAxisRendererRadarChart(viewPortHandler: _viewPortHandler, xAxis: _xAxis, chart: self)\n        \n        self.highlighter = RadarHighlighter(chart: self)\n    }\n\n    internal override func calcMinMax()\n    {\n        super.calcMinMax()\n        \n        guard let data = _data else { return }\n        \n        _yAxis.calculate(min: data.getYMin(axis: .left), max: data.getYMax(axis: .left))\n        _xAxis.calculate(min: 0.0, max: Double(data.maxEntryCountSet?.entryCount ?? 0))\n    }\n    \n    open override func notifyDataSetChanged()\n    {\n        calcMinMax()\n\n        _yAxisRenderer?.computeAxis(min: _yAxis._axisMinimum, max: _yAxis._axisMaximum, inverted: _yAxis.isInverted)\n        _xAxisRenderer?.computeAxis(min: _xAxis._axisMinimum, max: _xAxis._axisMaximum, inverted: false)\n        \n        if let data = _data,\n            let legend = _legend,\n            !legend.isLegendCustom\n        {\n            legendRenderer?.computeLegend(data: data)\n        }\n        \n        calculateOffsets()\n        \n        setNeedsDisplay()\n    }\n    \n    open override func draw(_ rect: CGRect)\n    {\n        super.draw(rect)\n\n        guard data != nil, let renderer = renderer else { return }\n        \n        let optionalContext = NSUIGraphicsGetCurrentContext()\n        guard let context = optionalContext else { return }\n        \n        if _xAxis.isEnabled\n        {\n            _xAxisRenderer.computeAxis(min: _xAxis._axisMinimum, max: _xAxis._axisMaximum, inverted: false)\n        }\n        \n        _xAxisRenderer?.renderAxisLabels(context: context)\n        \n        if drawWeb\n        {\n            renderer.drawExtras(context: context)\n        }\n        \n        if _yAxis.isEnabled && _yAxis.isDrawLimitLinesBehindDataEnabled\n        {\n            _yAxisRenderer.renderLimitLines(context: context)\n        }\n\n        renderer.drawData(context: context)\n\n        if valuesToHighlight()\n        {\n            renderer.drawHighlighted(context: context, indices: _indicesToHighlight)\n        }\n        \n        if _yAxis.isEnabled && !_yAxis.isDrawLimitLinesBehindDataEnabled\n        {\n            _yAxisRenderer.renderLimitLines(context: context)\n        }\n        \n        _yAxisRenderer.renderAxisLabels(context: context)\n\n        renderer.drawValues(context: context)\n\n        legendRenderer.renderLegend(context: context)\n\n        drawDescription(context: context)\n\n        drawMarkers(context: context)\n    }\n\n    /// The factor that is needed to transform values into pixels.\n    @objc open var factor: CGFloat\n    {\n        let content = _viewPortHandler.contentRect\n        return min(content.width / 2.0, content.height / 2.0)\n                / CGFloat(_yAxis.axisRange)\n    }\n\n    /// The angle that each slice in the radar chart occupies.\n    @objc open var sliceAngle: CGFloat\n    {\n        return 360.0 / CGFloat(_data?.maxEntryCountSet?.entryCount ?? 0)\n    }\n\n    open override func indexForAngle(_ angle: CGFloat) -> Int\n    {\n        // take the current angle of the chart into consideration\n        let a = (angle - self.rotationAngle).normalizedAngle\n        \n        let sliceAngle = self.sliceAngle\n        \n        let max = _data?.maxEntryCountSet?.entryCount ?? 0\n        return (0..<max).firstIndex {\n            sliceAngle * CGFloat($0 + 1) - sliceAngle / 2.0 > a\n        } ?? max\n    }\n\n    /// The object that represents all y-labels of the RadarChart.\n    @objc open var yAxis: YAxis\n    {\n        return _yAxis\n    }\n\n    /// Sets the number of web-lines that should be skipped on chart web before the next one is drawn. This targets the lines that come from the center of the RadarChart.\n    /// if count = 1 -> 1 line is skipped in between\n    @objc open var skipWebLineCount: Int\n    {\n        get\n        {\n            return _skipWebLineCount\n        }\n        set\n        {\n            _skipWebLineCount = max(0, newValue)\n        }\n    }\n    \n    internal override var requiredLegendOffset: CGFloat\n    {\n        return _legend.font.pointSize * 4.0\n    }\n\n    internal override var requiredBaseOffset: CGFloat\n    {\n        return _xAxis.isEnabled && _xAxis.isDrawLabelsEnabled ? _xAxis.labelRotatedWidth : 10.0\n    }\n\n    open override var radius: CGFloat\n    {\n        let content = _viewPortHandler.contentRect\n        return min(content.width / 2.0, content.height / 2.0)\n    }\n\n    /// The maximum value this chart can display on it's y-axis.\n    open override var chartYMax: Double { return _yAxis._axisMaximum }\n    \n    /// The minimum value this chart can display on it's y-axis.\n    open override var chartYMin: Double { return _yAxis._axisMinimum }\n    \n    /// The range of y-values this chart can display.\n    @objc open var yRange: Double { return _yAxis.axisRange }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift",
    "content": "//\n//  ScatterChartView.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n/// The ScatterChart. Draws dots, triangles, squares and custom shapes into the chartview.\nopen class ScatterChartView: BarLineChartViewBase, ScatterChartDataProvider\n{\n    open override func initialize()\n    {\n        super.initialize()\n        \n        renderer = ScatterChartRenderer(dataProvider: self, animator: _animator, viewPortHandler: _viewPortHandler)\n\n        xAxis.spaceMin = 0.5\n        xAxis.spaceMax = 0.5\n    }\n    \n    // MARK: - ScatterChartDataProvider\n    \n    open var scatterData: ScatterChartData? { return _data as? ScatterChartData }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Components/AxisBase.swift",
    "content": "//\n//  AxisBase.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n/// Base class for all axes\n@objc(ChartAxisBase)\nopen class AxisBase: ComponentBase\n{\n    public override init()\n    {\n        super.init()\n    }\n    \n    /// Custom formatter that is used instead of the auto-formatter if set\n    private var _axisValueFormatter: IAxisValueFormatter?\n    \n    @objc open var labelFont = NSUIFont.systemFont(ofSize: 10.0)\n    @objc open var labelTextColor = NSUIColor.labelOrBlack\n    \n    @objc open var axisLineColor = NSUIColor.gray\n    @objc open var axisLineWidth = CGFloat(0.5)\n    @objc open var axisLineDashPhase = CGFloat(0.0)\n    @objc open var axisLineDashLengths: [CGFloat]!\n    \n    @objc open var gridColor = NSUIColor.gray.withAlphaComponent(0.9)\n    @objc open var gridLineWidth = CGFloat(0.5)\n    @objc open var gridLineDashPhase = CGFloat(0.0)\n    @objc open var gridLineDashLengths: [CGFloat]!\n    @objc open var gridLineCap = CGLineCap.butt\n    \n    @objc open var drawGridLinesEnabled = true\n    @objc open var drawAxisLineEnabled = true\n    \n    /// flag that indicates of the labels of this axis should be drawn or not\n    @objc open var drawLabelsEnabled = true\n    \n    private var _centerAxisLabelsEnabled = false\n\n    /// Centers the axis labels instead of drawing them at their original position.\n    /// This is useful especially for grouped BarChart.\n    @objc open var centerAxisLabelsEnabled: Bool\n    {\n        get { return _centerAxisLabelsEnabled && entryCount > 0 }\n        set { _centerAxisLabelsEnabled = newValue }\n    }\n    \n    @objc open var isCenterAxisLabelsEnabled: Bool\n    {\n        get { return centerAxisLabelsEnabled }\n    }\n\n    /// array of limitlines that can be set for the axis\n    private var _limitLines = [ChartLimitLine]()\n    \n    /// Are the LimitLines drawn behind the data or in front of the data?\n    ///\n    /// **default**: false\n    @objc open var drawLimitLinesBehindDataEnabled = false\n    \n    /// Are the grid lines drawn behind the data or in front of the data?\n    ///\n    /// **default**: true\n    @objc open var drawGridLinesBehindDataEnabled = true\n\n    /// the flag can be used to turn off the antialias for grid lines\n    @objc open var gridAntialiasEnabled = true\n    \n    /// the actual array of entries\n    @objc open var entries = [Double]()\n    \n    /// axis label entries only used for centered labels\n    @objc open var centeredEntries = [Double]()\n    \n    /// the number of entries the legend contains\n    @objc open var entryCount: Int { return entries.count }\n    \n    /// the number of label entries the axis should have\n    ///\n    /// **default**: 6\n    private var _labelCount = Int(6)\n    \n    /// the number of decimal digits to use (for the default formatter\n    @objc open var decimals: Int = 0\n    \n    /// When true, axis labels are controlled by the `granularity` property.\n    /// When false, axis values could possibly be repeated.\n    /// This could happen if two adjacent axis values are rounded to same value.\n    /// If using granularity this could be avoided by having fewer axis values visible.\n    @objc open var granularityEnabled = false\n    \n    private var _granularity = Double(1.0)\n    \n    /// The minimum interval between axis values.\n    /// This can be used to avoid label duplicating when zooming in.\n    ///\n    /// **default**: 1.0\n    @objc open var granularity: Double\n    {\n        get\n        {\n            return _granularity\n        }\n        set\n        {\n            _granularity = newValue\n            \n            // set this to `true` if it was disabled, as it makes no sense to set this property with granularity disabled\n            granularityEnabled = true\n        }\n    }\n    \n    /// The minimum interval between axis values.\n    @objc open var isGranularityEnabled: Bool\n    {\n        get\n        {\n            return granularityEnabled\n        }\n    }\n    \n    /// if true, the set number of y-labels will be forced\n    @objc open var forceLabelsEnabled = false\n    \n    @objc open func getLongestLabel() -> String\n    {\n        var longest = \"\"\n        \n        for i in 0 ..< entries.count\n        {\n            let text = getFormattedLabel(i)\n            \n            if longest.count < text.count\n            {\n                longest = text\n            }\n        }\n        \n        return longest\n    }\n    \n    /// - Returns: The formatted label at the specified index. This will either use the auto-formatter or the custom formatter (if one is set).\n    @objc open func getFormattedLabel(_ index: Int) -> String\n    {\n        if index < 0 || index >= entries.count\n        {\n            return \"\"\n        }\n        \n        return valueFormatter?.stringForValue(entries[index], axis: self) ?? \"\"\n    }\n    \n    /// Sets the formatter to be used for formatting the axis labels.\n    /// If no formatter is set, the chart will automatically determine a reasonable formatting (concerning decimals) for all the values that are drawn inside the chart.\n    /// Use `nil` to use the formatter calculated by the chart.\n    @objc open var valueFormatter: IAxisValueFormatter?\n    {\n        get\n        {\n            if _axisValueFormatter == nil\n            {\n                _axisValueFormatter = DefaultAxisValueFormatter(decimals: decimals)\n            }\n            else if _axisValueFormatter is DefaultAxisValueFormatter &&\n            (_axisValueFormatter as! DefaultAxisValueFormatter).hasAutoDecimals &&\n                (_axisValueFormatter as! DefaultAxisValueFormatter).decimals != decimals\n            {\n                (self._axisValueFormatter as! DefaultAxisValueFormatter).decimals = self.decimals\n            }\n\n            return _axisValueFormatter\n        }\n        set\n        {\n            _axisValueFormatter = newValue ?? DefaultAxisValueFormatter(decimals: decimals)\n        }\n    }\n    \n    @objc open var isDrawGridLinesEnabled: Bool { return drawGridLinesEnabled }\n    \n    @objc open var isDrawAxisLineEnabled: Bool { return drawAxisLineEnabled }\n    \n    @objc open var isDrawLabelsEnabled: Bool { return drawLabelsEnabled }\n    \n    /// Are the LimitLines drawn behind the data or in front of the data?\n    /// \n    /// **default**: false\n    @objc open var isDrawLimitLinesBehindDataEnabled: Bool { return drawLimitLinesBehindDataEnabled }\n    \n    /// Are the grid lines drawn behind the data or in front of the data?\n    ///\n    /// **default**: true\n    @objc open var isDrawGridLinesBehindDataEnabled: Bool { return drawGridLinesBehindDataEnabled }\n    \n    /// Extra spacing for `axisMinimum` to be added to automatically calculated `axisMinimum`\n    @objc open var spaceMin: Double = 0.0\n    \n    /// Extra spacing for `axisMaximum` to be added to automatically calculated `axisMaximum`\n    @objc open var spaceMax: Double = 0.0\n    \n    /// Flag indicating that the axis-min value has been customized\n    internal var _customAxisMin: Bool = false\n    \n    /// Flag indicating that the axis-max value has been customized\n    internal var _customAxisMax: Bool = false\n    \n    /// Do not touch this directly, instead, use axisMinimum.\n    /// This is automatically calculated to represent the real min value,\n    /// and is used when calculating the effective minimum.\n    internal var _axisMinimum = Double(0)\n    \n    /// Do not touch this directly, instead, use axisMaximum.\n    /// This is automatically calculated to represent the real max value,\n    /// and is used when calculating the effective maximum.\n    internal var _axisMaximum = Double(0)\n    \n    /// the total range of values this axis covers\n    @objc open var axisRange = Double(0)\n    \n    /// The minumum number of labels on the axis\n    @objc open var axisMinLabels = Int(2) {\n        didSet { axisMinLabels = axisMinLabels > 0 ? axisMinLabels : oldValue }\n    }\n    \n    /// The maximum number of labels on the axis\n    @objc open var axisMaxLabels = Int(25) {\n        didSet { axisMaxLabels = axisMaxLabels > 0 ? axisMaxLabels : oldValue }\n    }\n    \n    /// the number of label entries the axis should have\n    /// max = 25,\n    /// min = 2,\n    /// default = 6,\n    /// be aware that this number is not fixed and can only be approximated\n    @objc open var labelCount: Int\n    {\n        get\n        {\n            return _labelCount\n        }\n        set\n        {\n            let range = axisMinLabels...axisMaxLabels as ClosedRange\n            _labelCount = newValue.clamped(to: range)\n                        \n            forceLabelsEnabled = false\n        }\n    }\n    \n    @objc open func setLabelCount(_ count: Int, force: Bool)\n    {\n        self.labelCount = count\n        forceLabelsEnabled = force\n    }\n    \n    /// `true` if focing the y-label count is enabled. Default: false\n    @objc open var isForceLabelsEnabled: Bool { return forceLabelsEnabled }\n    \n    /// Adds a new ChartLimitLine to this axis.\n    @objc open func addLimitLine(_ line: ChartLimitLine)\n    {\n        _limitLines.append(line)\n    }\n    \n    /// Removes the specified ChartLimitLine from the axis.\n    @objc open func removeLimitLine(_ line: ChartLimitLine)\n    {\n        guard let i = _limitLines.firstIndex(of: line) else { return }\n        _limitLines.remove(at: i)\n    }\n    \n    /// Removes all LimitLines from the axis.\n    @objc open func removeAllLimitLines()\n    {\n        _limitLines.removeAll(keepingCapacity: false)\n    }\n    \n    /// The LimitLines of this axis.\n    @objc open var limitLines : [ChartLimitLine]\n    {\n        return _limitLines\n    }\n    \n    // MARK: Custom axis ranges\n    \n    /// By calling this method, any custom minimum value that has been previously set is reseted, and the calculation is done automatically.\n    @objc open func resetCustomAxisMin()\n    {\n        _customAxisMin = false\n    }\n    \n    @objc open var isAxisMinCustom: Bool { return _customAxisMin }\n    \n    /// By calling this method, any custom maximum value that has been previously set is reseted, and the calculation is done automatically.\n    @objc open func resetCustomAxisMax()\n    {\n        _customAxisMax = false\n    }\n    \n    @objc open var isAxisMaxCustom: Bool { return _customAxisMax }\n        \n    /// The minimum value for this axis.\n    /// If set, this value will not be calculated automatically depending on the provided data.\n    /// Use `resetCustomAxisMin()` to undo this.\n    @objc open var axisMinimum: Double\n    {\n        get\n        {\n            return _axisMinimum\n        }\n        set\n        {\n            _customAxisMin = true\n            _axisMinimum = newValue\n            axisRange = abs(_axisMaximum - newValue)\n        }\n    }\n    \n    /// The maximum value for this axis.\n    /// If set, this value will not be calculated automatically depending on the provided data.\n    /// Use `resetCustomAxisMax()` to undo this.\n    @objc open var axisMaximum: Double\n    {\n        get\n        {\n            return _axisMaximum\n        }\n        set\n        {\n            _customAxisMax = true\n            _axisMaximum = newValue\n            axisRange = abs(newValue - _axisMinimum)\n        }\n    }\n    \n    /// Calculates the minimum, maximum and range values of the YAxis with the given minimum and maximum values from the chart data.\n    ///\n    /// - Parameters:\n    ///   - dataMin: the y-min value according to chart data\n    ///   - dataMax: the y-max value according to chart\n    @objc open func calculate(min dataMin: Double, max dataMax: Double)\n    {\n        // if custom, use value as is, else use data value\n        var min = _customAxisMin ? _axisMinimum : (dataMin - spaceMin)\n        var max = _customAxisMax ? _axisMaximum : (dataMax + spaceMax)\n        \n        // temporary range (before calculations)\n        let range = abs(max - min)\n        \n        // in case all values are equal\n        if range == 0.0\n        {\n            max = max + 1.0\n            min = min - 1.0\n        }\n        \n        _axisMinimum = min\n        _axisMaximum = max\n        \n        // actual range\n        axisRange = abs(max - min)\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift",
    "content": "//\n//  ChartLimitLine.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n\n/// The limit line is an additional feature for all Line, Bar and ScatterCharts.\n/// It allows the displaying of an additional line in the chart that marks a certain maximum / limit on the specified axis (x- or y-axis).\nopen class ChartLimitLine: ComponentBase\n{\n    @objc(ChartLimitLabelPosition)\n    public enum LabelPosition: Int\n    {\n        case topLeft\n        case topRight\n        case bottomLeft\n        case bottomRight\n    }\n    \n    /// limit / maximum (the y-value or xIndex)\n    @objc open var limit = Double(0.0)\n    \n    private var _lineWidth = CGFloat(2.0)\n    @objc open var lineColor = NSUIColor(red: 237.0/255.0, green: 91.0/255.0, blue: 91.0/255.0, alpha: 1.0)\n    @objc open var lineDashPhase = CGFloat(0.0)\n    @objc open var lineDashLengths: [CGFloat]?\n    \n    @objc open var valueTextColor = NSUIColor.labelOrBlack\n    @objc open var valueFont = NSUIFont.systemFont(ofSize: 13.0)\n    \n    @objc open var drawLabelEnabled = true\n    @objc open var label = \"\"\n    @objc open var labelPosition = LabelPosition.topRight\n    \n    public override init()\n    {\n        super.init()\n    }\n    \n    @objc public init(limit: Double)\n    {\n        super.init()\n        self.limit = limit\n    }\n    \n    @objc public init(limit: Double, label: String)\n    {\n        super.init()\n        self.limit = limit\n        self.label = label\n    }\n    \n    /// set the line width of the chart (min = 0.2, max = 12); default 2\n    @objc open var lineWidth: CGFloat\n    {\n        get\n        {\n            return _lineWidth\n        }\n        set\n        {\n            _lineWidth = newValue.clamped(to: 0.2...12)\n        }\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Components/ComponentBase.swift",
    "content": "//\n//  ComponentBase.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n\n/// This class encapsulates everything both Axis, Legend and LimitLines have in common\n@objc(ChartComponentBase)\nopen class ComponentBase: NSObject\n{\n    /// flag that indicates if this component is enabled or not\n    @objc open var enabled = true\n    \n    /// The offset this component has on the x-axis\n    /// **default**: 5.0\n    @objc open var xOffset = CGFloat(5.0)\n    \n    /// The offset this component has on the x-axis\n    /// **default**: 5.0 (or 0.0 on ChartYAxis)\n    @objc open var yOffset = CGFloat(5.0)\n    \n    public override init()\n    {\n        super.init()\n    }\n\n    @objc open var isEnabled: Bool { return enabled }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Components/Description.swift",
    "content": "//\n//  Description.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n#if canImport(UIKit)\n    import UIKit\n#endif\n\n#if canImport(Cocoa)\nimport Cocoa\n#endif\n\n@objc(ChartDescription)\nopen class Description: ComponentBase\n{\n    public override init()\n    {\n        #if os(tvOS)\n        // 23 is the smallest recommended font size on the TV\n        font = .systemFont(ofSize: 23)\n        #elseif os(OSX)\n        font = .systemFont(ofSize: NSUIFont.systemFontSize)\n        #else\n        font = .systemFont(ofSize: 8.0)\n        #endif\n        \n        super.init()\n    }\n    \n    /// The text to be shown as the description.\n    @objc open var text: String?\n    \n    /// Custom position for the description text in pixels on the screen.\n    open var position: CGPoint? = nil\n    \n    /// The text alignment of the description text. Default RIGHT.\n    @objc open var textAlign: NSTextAlignment = NSTextAlignment.right\n    \n    /// Font object used for drawing the description text.\n    @objc open var font: NSUIFont\n    \n    /// Text color used for drawing the description text\n    @objc open var textColor = NSUIColor.labelOrBlack\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Components/IMarker.swift",
    "content": "//\n//  ChartMarker.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(IChartMarker)\npublic protocol IMarker: class\n{\n    /// - Returns: The desired (general) offset you wish the IMarker to have on the x-axis.\n    /// By returning x: -(width / 2) you will center the IMarker horizontally.\n    /// By returning y: -(height / 2) you will center the IMarker vertically.\n    var offset: CGPoint { get }\n    \n    /// - Parameters:\n    ///   - point: This is the point at which the marker wants to be drawn. You can adjust the offset conditionally based on this argument.\n    /// - Returns: The offset for drawing at the specific `point`.\n    ///            This allows conditional adjusting of the Marker position.\n    ///            If you have no adjustments to make, return self.offset().\n    func offsetForDrawing(atPoint: CGPoint) -> CGPoint\n    \n    /// This method enables a custom IMarker to update it's content every time the IMarker is redrawn according to the data entry it points to.\n    ///\n    /// - Parameters:\n    ///   - entry: The Entry the IMarker belongs to. This can also be any subclass of Entry, like BarEntry or CandleEntry, simply cast it at runtime.\n    ///   - highlight: The highlight object contains information about the highlighted value such as it's dataset-index, the selected range or stack-index (only stacked bar entries).\n    func refreshContent(entry: ChartDataEntry, highlight: Highlight)\n    \n    /// Draws the IMarker on the given position on the given context\n    func draw(context: CGContext, point: CGPoint)\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Components/Legend.swift",
    "content": "//\n//  Legend.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(ChartLegend)\nopen class Legend: ComponentBase\n{\n    @objc(ChartLegendForm)\n    public enum Form: Int\n    {\n        /// Avoid drawing a form\n        case none\n        \n        /// Do not draw the a form, but leave space for it\n        case empty\n        \n        /// Use default (default dataset's form to the legend's form)\n        case `default`\n        \n        /// Draw a square\n        case square\n        \n        /// Draw a circle\n        case circle\n        \n        /// Draw a horizontal line\n        case line\n    }\n    \n    @objc(ChartLegendHorizontalAlignment)\n    public enum HorizontalAlignment: Int\n    {\n        case left\n        case center\n        case right\n    }\n    \n    @objc(ChartLegendVerticalAlignment)\n    public enum VerticalAlignment: Int\n    {\n        case top\n        case center\n        case bottom\n    }\n    \n    @objc(ChartLegendOrientation)\n    public enum Orientation: Int\n    {\n        case horizontal\n        case vertical\n    }\n    \n    @objc(ChartLegendDirection)\n    public enum Direction: Int\n    {\n        case leftToRight\n        case rightToLeft\n    }\n    \n    /// The legend entries array\n    @objc open var entries = [LegendEntry]()\n    \n    /// Entries that will be appended to the end of the auto calculated entries after calculating the legend.\n    /// (if the legend has already been calculated, you will need to call notifyDataSetChanged() to let the changes take effect)\n    @objc open var extraEntries = [LegendEntry]()\n    \n    /// Are the legend labels/colors a custom value or auto calculated? If false, then it's auto, if true, then custom.\n    /// \n    /// **default**: false (automatic legend)\n    private var _isLegendCustom = false\n\n    /// The horizontal alignment of the legend\n    @objc open var horizontalAlignment: HorizontalAlignment = HorizontalAlignment.left\n    \n    /// The vertical alignment of the legend\n    @objc open var verticalAlignment: VerticalAlignment = VerticalAlignment.bottom\n    \n    /// The orientation of the legend\n    @objc open var orientation: Orientation = Orientation.horizontal\n    \n    /// Flag indicating whether the legend will draw inside the chart or outside\n    @objc open var drawInside: Bool = false\n    \n    /// Flag indicating whether the legend will draw inside the chart or outside\n    @objc open var isDrawInsideEnabled: Bool { return drawInside }\n    \n    /// The text direction of the legend\n    @objc open var direction: Direction = Direction.leftToRight\n\n    @objc open var font: NSUIFont = NSUIFont.systemFont(ofSize: 10.0)\n    @objc open var textColor = NSUIColor.labelOrBlack\n\n    /// The form/shape of the legend forms\n    @objc open var form = Form.square\n    \n    /// The size of the legend forms\n    @objc open var formSize = CGFloat(8.0)\n    \n    /// The line width for forms that consist of lines\n    @objc open var formLineWidth = CGFloat(3.0)\n    \n    /// Line dash configuration for shapes that consist of lines.\n    ///\n    /// This is how much (in pixels) into the dash pattern are we starting from.\n    @objc open var formLineDashPhase: CGFloat = 0.0\n    \n    /// Line dash configuration for shapes that consist of lines.\n    ///\n    /// This is the actual dash pattern.\n    /// I.e. [2, 3] will paint [--   --   ]\n    /// [1, 3, 4, 2] will paint [-   ----  -   ----  ]\n    @objc open var formLineDashLengths: [CGFloat]?\n    \n    @objc open var xEntrySpace = CGFloat(6.0)\n    @objc open var yEntrySpace = CGFloat(0.0)\n    @objc open var formToTextSpace = CGFloat(5.0)\n    @objc open var stackSpace = CGFloat(3.0)\n    \n    @objc open var calculatedLabelSizes = [CGSize]()\n    @objc open var calculatedLabelBreakPoints = [Bool]()\n    @objc open var calculatedLineSizes = [CGSize]()\n    \n    public override init()\n    {\n        super.init()\n        \n        self.xOffset = 5.0\n        self.yOffset = 3.0\n    }\n    \n    @objc public init(entries: [LegendEntry])\n    {\n        super.init()\n        \n        self.entries = entries\n    }\n    \n    @objc open func getMaximumEntrySize(withFont font: NSUIFont) -> CGSize\n    {\n        var maxW = CGFloat(0.0)\n        var maxH = CGFloat(0.0)\n        \n        var maxFormSize: CGFloat = 0.0\n\n        for entry in entries\n        {\n            let formSize = entry.formSize.isNaN ? self.formSize : entry.formSize\n            if formSize > maxFormSize\n            {\n                maxFormSize = formSize\n            }\n            \n            guard let label = entry.label\n                else { continue }\n            \n            let size = (label as NSString).size(withAttributes: [.font: font])\n            \n            if size.width > maxW\n            {\n                maxW = size.width\n            }\n            if size.height > maxH\n            {\n                maxH = size.height\n            }\n        }\n        \n        return CGSize(\n            width: maxW + maxFormSize + formToTextSpace,\n            height: maxH\n        )\n    }\n\n    @objc open var neededWidth = CGFloat(0.0)\n    @objc open var neededHeight = CGFloat(0.0)\n    @objc open var textWidthMax = CGFloat(0.0)\n    @objc open var textHeightMax = CGFloat(0.0)\n    \n    /// flag that indicates if word wrapping is enabled\n    /// this is currently supported only for `orientation == Horizontal`.\n    /// you may want to set maxSizePercent when word wrapping, to set the point where the text wraps.\n    /// \n    /// **default**: true\n    @objc open var wordWrapEnabled = true\n    \n    /// if this is set, then word wrapping the legend is enabled.\n    @objc open var isWordWrapEnabled: Bool { return wordWrapEnabled }\n\n    /// The maximum relative size out of the whole chart view in percent.\n    /// If the legend is to the right/left of the chart, then this affects the width of the legend.\n    /// If the legend is to the top/bottom of the chart, then this affects the height of the legend.\n    /// \n    /// **default**: 0.95 (95%)\n    @objc open var maxSizePercent: CGFloat = 0.95\n    \n    @objc open func calculateDimensions(labelFont: NSUIFont, viewPortHandler: ViewPortHandler)\n    {\n        let maxEntrySize = getMaximumEntrySize(withFont: labelFont)\n        let defaultFormSize = self.formSize\n        let stackSpace = self.stackSpace\n        let formToTextSpace = self.formToTextSpace\n        let xEntrySpace = self.xEntrySpace\n        let yEntrySpace = self.yEntrySpace\n        let wordWrapEnabled = self.wordWrapEnabled\n        let entries = self.entries\n        let entryCount = entries.count\n        \n        textWidthMax = maxEntrySize.width\n        textHeightMax = maxEntrySize.height\n        \n        switch orientation\n        {\n        case .vertical:\n            \n            var maxWidth = CGFloat(0.0)\n            var width = CGFloat(0.0)\n            var maxHeight = CGFloat(0.0)\n            let labelLineHeight = labelFont.lineHeight\n            \n            var wasStacked = false\n            \n            for i in 0 ..< entryCount\n            {\n                let e = entries[i]\n                let drawingForm = e.form != .none\n                let formSize = e.formSize.isNaN ? defaultFormSize : e.formSize\n                let label = e.label\n                \n                if !wasStacked\n                {\n                    width = 0.0\n                }\n                \n                if drawingForm\n                {\n                    if wasStacked\n                    {\n                        width += stackSpace\n                    }\n                    width += formSize\n                }\n                \n                if label != nil\n                {\n                    let size = (label! as NSString).size(withAttributes: [.font: labelFont])\n                    \n                    if drawingForm && !wasStacked\n                    {\n                        width += formToTextSpace\n                    }\n                    else if wasStacked\n                    {\n                        maxWidth = max(maxWidth, width)\n                        maxHeight += labelLineHeight + yEntrySpace\n                        width = 0.0\n                        wasStacked = false\n                    }\n                    \n                    width += size.width\n                    maxHeight += labelLineHeight + yEntrySpace\n                }\n                else\n                {\n                    wasStacked = true\n                    width += formSize\n                    \n                    if i < entryCount - 1\n                    {\n                        width += stackSpace\n                    }\n                }\n                \n                maxWidth = max(maxWidth, width)\n            }\n            \n            neededWidth = maxWidth\n            neededHeight = maxHeight\n            \n        case .horizontal:\n            \n            let labelLineHeight = labelFont.lineHeight\n            \n            let contentWidth: CGFloat = viewPortHandler.contentWidth * maxSizePercent\n            \n            // Prepare arrays for calculated layout\n            if calculatedLabelSizes.count != entryCount\n            {\n                calculatedLabelSizes = [CGSize](repeating: CGSize(), count: entryCount)\n            }\n            \n            if calculatedLabelBreakPoints.count != entryCount\n            {\n                calculatedLabelBreakPoints = [Bool](repeating: false, count: entryCount)\n            }\n            \n            calculatedLineSizes.removeAll(keepingCapacity: true)\n            \n            // Start calculating layout\n            \n            let labelAttrs = [NSAttributedString.Key.font: labelFont]\n            var maxLineWidth: CGFloat = 0.0\n            var currentLineWidth: CGFloat = 0.0\n            var requiredWidth: CGFloat = 0.0\n            var stackedStartIndex: Int = -1\n            \n            for i in 0 ..< entryCount\n            {\n                let e = entries[i]\n                let drawingForm = e.form != .none\n                let label = e.label\n                \n                calculatedLabelBreakPoints[i] = false\n                \n                if stackedStartIndex == -1\n                {\n                    // we are not stacking, so required width is for this label only\n                    requiredWidth = 0.0\n                }\n                else\n                {\n                    // add the spacing appropriate for stacked labels/forms\n                    requiredWidth += stackSpace\n                }\n                \n                // grouped forms have null labels\n                if label != nil\n                {\n                    calculatedLabelSizes[i] = (label! as NSString).size(withAttributes: labelAttrs)\n                    requiredWidth += drawingForm ? formToTextSpace + formSize : 0.0\n                    requiredWidth += calculatedLabelSizes[i].width\n                }\n                else\n                {\n                    calculatedLabelSizes[i] = CGSize()\n                    requiredWidth += drawingForm ? formSize : 0.0\n                    \n                    if stackedStartIndex == -1\n                    {\n                        // mark this index as we might want to break here later\n                        stackedStartIndex = i\n                    }\n                }\n                \n                if label != nil || i == entryCount - 1\n                {\n                    let requiredSpacing = currentLineWidth == 0.0 ? 0.0 : xEntrySpace\n                    \n                    if (!wordWrapEnabled || // No word wrapping, it must fit.\n                        currentLineWidth == 0.0 || // The line is empty, it must fit.\n                        (contentWidth - currentLineWidth >= requiredSpacing + requiredWidth)) // It simply fits\n                    {\n                        // Expand current line\n                        currentLineWidth += requiredSpacing + requiredWidth\n                    }\n                    else\n                    { // It doesn't fit, we need to wrap a line\n                        \n                        // Add current line size to array\n                        calculatedLineSizes.append(CGSize(width: currentLineWidth, height: labelLineHeight))\n                        maxLineWidth = max(maxLineWidth, currentLineWidth)\n                        \n                        // Start a new line\n                        calculatedLabelBreakPoints[stackedStartIndex > -1 ? stackedStartIndex : i] = true\n                        currentLineWidth = requiredWidth\n                    }\n                    \n                    if i == entryCount - 1\n                    { // Add last line size to array\n                        calculatedLineSizes.append(CGSize(width: currentLineWidth, height: labelLineHeight))\n                        maxLineWidth = max(maxLineWidth, currentLineWidth)\n                    }\n                }\n                \n                stackedStartIndex = label != nil ? -1 : stackedStartIndex\n            }\n            \n            neededWidth = maxLineWidth\n            neededHeight = labelLineHeight * CGFloat(calculatedLineSizes.count) +\n                yEntrySpace * CGFloat(calculatedLineSizes.count == 0 ? 0 : (calculatedLineSizes.count - 1))\n        }\n        \n        neededWidth += xOffset\n        neededHeight += yOffset\n    }\n    \n    /// MARK: - Custom legend\n    \n    /// Sets a custom legend's entries array.\n    /// * A nil label will start a group.\n    /// This will disable the feature that automatically calculates the legend entries from the datasets.\n    /// Call `resetCustom(...)` to re-enable automatic calculation (and then `notifyDataSetChanged()` is needed).\n    @objc open func setCustom(entries: [LegendEntry])\n    {\n        self.entries = entries\n        _isLegendCustom = true\n    }\n    \n    /// Calling this will disable the custom legend entries (set by `setLegend(...)`). Instead, the entries will again be calculated automatically (after `notifyDataSetChanged()` is called).\n    @objc open func resetCustom()\n    {\n        _isLegendCustom = false\n    }\n    \n    /// **default**: false (automatic legend)\n    /// `true` if a custom legend entries has been set\n    @objc open var isLegendCustom: Bool\n    {\n        return _isLegendCustom\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Components/LegendEntry.swift",
    "content": "//\n//  LegendEntry.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(ChartLegendEntry)\nopen class LegendEntry: NSObject\n{\n    public override init()\n    {\n        super.init()\n    }\n    \n    /// - Parameters:\n    ///   - label:                  The legend entry text.\n    ///                                     A `nil` label will start a group.\n    ///   - form:                   The form to draw for this entry.\n    ///   - formSize:               Set to NaN to use the legend's default.\n    ///   - formLineWidth:          Set to NaN to use the legend's default.\n    ///   - formLineDashPhase:      Line dash configuration.\n    ///   - formLineDashLengths:    Line dash configurationas NaN to use the legend's default.\n    ///   - formColor:              The color for drawing the form.\n    @objc public init(label: String?,\n                form: Legend.Form,\n                formSize: CGFloat,\n                formLineWidth: CGFloat,\n                formLineDashPhase: CGFloat,\n                formLineDashLengths: [CGFloat]?,\n                formColor: NSUIColor?)\n    {\n        self.label = label\n        self.form = form\n        self.formSize = formSize\n        self.formLineWidth = formLineWidth\n        self.formLineDashPhase = formLineDashPhase\n        self.formLineDashLengths = formLineDashLengths\n        self.formColor = formColor\n    }\n    \n    /// The legend entry text.\n    /// A `nil` label will start a group.\n    @objc open var label: String?\n    \n    /// The form to draw for this entry.\n    ///\n    /// `None` will avoid drawing a form, and any related space.\n    /// `Empty` will avoid drawing a form, but keep its space.\n    /// `Default` will use the Legend's default.\n    @objc open var form: Legend.Form = .default\n    \n    /// Form size will be considered except for when .None is used\n    ///\n    /// Set as NaN to use the legend's default\n    @objc open var formSize: CGFloat = CGFloat.nan\n    \n    /// Line width used for shapes that consist of lines.\n    ///\n    /// Set to NaN to use the legend's default.\n    @objc open var formLineWidth: CGFloat = CGFloat.nan\n    \n    /// Line dash configuration for shapes that consist of lines.\n    ///\n    /// This is how much (in pixels) into the dash pattern are we starting from.\n    ///\n    /// Set to NaN to use the legend's default.\n    @objc open var formLineDashPhase: CGFloat = 0.0\n    \n    /// Line dash configuration for shapes that consist of lines.\n    ///\n    /// This is the actual dash pattern.\n    /// I.e. [2, 3] will paint [--   --   ]\n    /// [1, 3, 4, 2] will paint [-   ----  -   ----  ]\n    ///\n    /// Set to nil to use the legend's default.\n    @objc open var formLineDashLengths: [CGFloat]?\n    \n    /// The color for drawing the form\n    @objc open var formColor: NSUIColor?\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Components/MarkerImage.swift",
    "content": "//\n//  ChartMarkerImage.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(ChartMarkerImage)\nopen class MarkerImage: NSObject, IMarker\n{\n    /// The marker image to render\n    @objc open var image: NSUIImage?\n    \n    open var offset: CGPoint = CGPoint()\n    \n    @objc open weak var chartView: ChartViewBase?\n    \n    /// As long as size is 0.0/0.0 - it will default to the image's size\n    @objc open var size: CGSize = CGSize()\n    \n    public override init()\n    {\n        super.init()\n    }\n    \n    open func offsetForDrawing(atPoint point: CGPoint) -> CGPoint\n    {\n        var offset = self.offset\n        \n        let chart = self.chartView\n        \n        var size = self.size\n        \n        if size.width == 0.0 && image != nil\n        {\n            size.width = image?.size.width ?? 0.0\n        }\n        if size.height == 0.0 && image != nil\n        {\n            size.height = image?.size.height ?? 0.0\n        }\n        \n        let width = size.width\n        let height = size.height\n        \n        if point.x + offset.x < 0.0\n        {\n            offset.x = -point.x\n        }\n        else if chart != nil && point.x + width + offset.x > chart!.bounds.size.width\n        {\n            offset.x = chart!.bounds.size.width - point.x - width\n        }\n        \n        if point.y + offset.y < 0\n        {\n            offset.y = -point.y\n        }\n        else if chart != nil && point.y + height + offset.y > chart!.bounds.size.height\n        {\n            offset.y = chart!.bounds.size.height - point.y - height\n        }\n        \n        return offset\n    }\n    \n    open func refreshContent(entry: ChartDataEntry, highlight: Highlight)\n    {\n        // Do nothing here...\n    }\n    \n    open func draw(context: CGContext, point: CGPoint)\n    {\n        guard let image = image else { return }\n\n        let offset = offsetForDrawing(atPoint: point)\n        \n        var size = self.size\n        \n        if size.width == 0.0\n        {\n            size.width = image.size.width\n        }\n        if size.height == 0.0\n        {\n            size.height = image.size.height\n        }\n        \n        let rect = CGRect(\n            x: point.x + offset.x,\n            y: point.y + offset.y,\n            width: size.width,\n            height: size.height)\n        \n        NSUIGraphicsPushContext(context)\n        image.draw(in: rect)\n        NSUIGraphicsPopContext()\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Components/MarkerView.swift",
    "content": "//\n//  ChartMarkerView.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n#if canImport(AppKit)\nimport AppKit\n#endif\n\n@objc(ChartMarkerView)\nopen class MarkerView: NSUIView, IMarker\n{\n    open var offset: CGPoint = CGPoint()\n    \n    @objc open weak var chartView: ChartViewBase?\n    \n    open func offsetForDrawing(atPoint point: CGPoint) -> CGPoint\n    {\n        guard let chart = chartView else { return self.offset }\n        \n        var offset = self.offset\n        \n        let width = self.bounds.size.width\n        let height = self.bounds.size.height\n        \n        if point.x + offset.x < 0.0\n        {\n            offset.x = -point.x\n        }\n        else if point.x + width + offset.x > chart.bounds.size.width\n        {\n            offset.x = chart.bounds.size.width - point.x - width\n        }\n        \n        if point.y + offset.y < 0\n        {\n            offset.y = -point.y\n        }\n        else if point.y + height + offset.y > chart.bounds.size.height\n        {\n            offset.y = chart.bounds.size.height - point.y - height\n        }\n        \n        return offset\n    }\n    \n    open func refreshContent(entry: ChartDataEntry, highlight: Highlight)\n    {\n        // Do nothing here...\n    }\n    \n    open func draw(context: CGContext, point: CGPoint)\n    {\n        let offset = self.offsetForDrawing(atPoint: point)\n        \n        context.saveGState()\n        context.translateBy(x: point.x + offset.x,\n                              y: point.y + offset.y)\n        NSUIGraphicsPushContext(context)\n        self.nsuiLayer?.render(in: context)\n        NSUIGraphicsPopContext()\n        context.restoreGState()\n    }\n    \n    @objc\n    open class func viewFromXib(in bundle: Bundle = .main) -> MarkerView?\n    {\n        #if !os(OSX)\n        \n        return bundle.loadNibNamed(\n            String(describing: self),\n            owner: nil,\n            options: nil)?[0] as? MarkerView\n        #else\n        \n        var loadedObjects = NSArray()\n        let loadedObjectsPointer = AutoreleasingUnsafeMutablePointer<NSArray?>(&loadedObjects)\n        \n        if bundle.loadNibNamed(\n            NSNib.Name(String(describing: self)),\n            owner: nil,\n            topLevelObjects: loadedObjectsPointer)\n        {\n            return loadedObjects[0] as? MarkerView\n        }\n        \n        return nil\n        #endif\n    }\n    \n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Components/XAxis.swift",
    "content": "//\n//  XAxis.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(ChartXAxis)\nopen class XAxis: AxisBase\n{\n    @objc(XAxisLabelPosition)\n    public enum LabelPosition: Int\n    {\n        case top\n        case bottom\n        case bothSided\n        case topInside\n        case bottomInside\n    }\n    \n    /// width of the x-axis labels in pixels - this is automatically calculated by the `computeSize()` methods in the renderers\n    @objc open var labelWidth = CGFloat(1.0)\n    \n    /// height of the x-axis labels in pixels - this is automatically calculated by the `computeSize()` methods in the renderers\n    @objc open var labelHeight = CGFloat(1.0)\n    \n    /// width of the (rotated) x-axis labels in pixels - this is automatically calculated by the `computeSize()` methods in the renderers\n    @objc open var labelRotatedWidth = CGFloat(1.0)\n    \n    /// height of the (rotated) x-axis labels in pixels - this is automatically calculated by the `computeSize()` methods in the renderers\n    @objc open var labelRotatedHeight = CGFloat(1.0)\n    \n    /// This is the angle for drawing the X axis labels (in degrees)\n    @objc open var labelRotationAngle = CGFloat(0.0)\n\n    /// if set to true, the chart will avoid that the first and last label entry in the chart \"clip\" off the edge of the chart\n    @objc open var avoidFirstLastClippingEnabled = false\n    \n    /// the position of the x-labels relative to the chart\n    @objc open var labelPosition = LabelPosition.top\n    \n    /// if set to true, word wrapping the labels will be enabled.\n    /// word wrapping is done using `(value width * labelRotatedWidth)`\n    ///\n    /// - Note: currently supports all charts except pie/radar/horizontal-bar*\n    @objc open var wordWrapEnabled = false\n    \n    /// `true` if word wrapping the labels is enabled\n    @objc open var isWordWrapEnabled: Bool { return wordWrapEnabled }\n    \n    /// the width for wrapping the labels, as percentage out of one value width.\n    /// used only when isWordWrapEnabled = true.\n    /// \n    /// **default**: 1.0\n    @objc open var wordWrapWidthPercent: CGFloat = 1.0\n    \n    public override init()\n    {\n        super.init()\n        \n        self.yOffset = 4.0\n    }\n    \n    @objc open var isAvoidFirstLastClippingEnabled: Bool\n    {\n        return avoidFirstLastClippingEnabled\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Components/YAxis.swift",
    "content": "//\n//  YAxis.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n#if canImport(UIKit)\n    import UIKit\n#endif\n\n#if canImport(Cocoa)\nimport Cocoa\n#endif\n\n\n/// Class representing the y-axis labels settings and its entries.\n/// Be aware that not all features the YLabels class provides are suitable for the RadarChart.\n/// Customizations that affect the value range of the axis need to be applied before setting data for the chart.\n@objc(ChartYAxis)\nopen class YAxis: AxisBase\n{\n    @objc(YAxisLabelPosition)\n    public enum LabelPosition: Int\n    {\n        case outsideChart\n        case insideChart\n    }\n    \n    ///  Enum that specifies the axis a DataSet should be plotted against, either Left or Right.\n    @objc\n    public enum AxisDependency: Int\n    {\n        case left\n        case right\n    }\n    \n    /// indicates if the bottom y-label entry is drawn or not\n    @objc open var drawBottomYLabelEntryEnabled = true\n    \n    /// indicates if the top y-label entry is drawn or not\n    @objc open var drawTopYLabelEntryEnabled = true\n    \n    /// flag that indicates if the axis is inverted or not\n    @objc open var inverted = false\n    \n    /// flag that indicates if the zero-line should be drawn regardless of other grid lines\n    @objc open var drawZeroLineEnabled = false\n    \n    /// Color of the zero line\n    @objc open var zeroLineColor: NSUIColor? = NSUIColor.gray\n    \n    /// Width of the zero line\n    @objc open var zeroLineWidth: CGFloat = 1.0\n    \n    /// This is how much (in pixels) into the dash pattern are we starting from.\n    @objc open var zeroLineDashPhase = CGFloat(0.0)\n    \n    /// This is the actual dash pattern.\n    /// I.e. [2, 3] will paint [--   --   ]\n    /// [1, 3, 4, 2] will paint [-   ----  -   ----  ]\n    @objc open var zeroLineDashLengths: [CGFloat]?\n\n    /// axis space from the largest value to the top in percent of the total axis range\n    @objc open var spaceTop = CGFloat(0.1)\n\n    /// axis space from the smallest value to the bottom in percent of the total axis range\n    @objc open var spaceBottom = CGFloat(0.1)\n    \n    /// the position of the y-labels relative to the chart\n    @objc open var labelPosition = LabelPosition.outsideChart\n\n    /// the alignment of the text in the y-label\n    @objc open var labelAlignment: NSTextAlignment = .left\n\n    /// the horizontal offset of the y-label\n    @objc open var labelXOffset: CGFloat = 0.0\n    \n    /// the side this axis object represents\n    private var _axisDependency = AxisDependency.left\n    \n    /// the minimum width that the axis should take\n    /// \n    /// **default**: 0.0\n    @objc open var minWidth = CGFloat(0)\n    \n    /// the maximum width that the axis can take.\n    /// use Infinity for disabling the maximum.\n    /// \n    /// **default**: CGFloat.infinity\n    @objc open var maxWidth = CGFloat(CGFloat.infinity)\n    \n    public override init()\n    {\n        super.init()\n        \n        self.yOffset = 0.0\n    }\n    \n    @objc public init(position: AxisDependency)\n    {\n        super.init()\n        \n        _axisDependency = position\n        \n        self.yOffset = 0.0\n    }\n    \n    @objc open var axisDependency: AxisDependency\n    {\n        return _axisDependency\n    }\n    \n    @objc open func requiredSize() -> CGSize\n    {\n        let label = getLongestLabel() as NSString\n        var size = label.size(withAttributes: [NSAttributedString.Key.font: labelFont])\n        size.width += xOffset * 2.0\n        size.height += yOffset * 2.0\n        size.width = max(minWidth, min(size.width, maxWidth > 0.0 ? maxWidth : size.width))\n        return size\n    }\n    \n    @objc open func getRequiredHeightSpace() -> CGFloat\n    {\n        return requiredSize().height\n    }\n    \n    /// `true` if this axis needs horizontal offset, `false` ifno offset is needed.\n    @objc open var needsOffset: Bool\n    {\n        if isEnabled && isDrawLabelsEnabled && labelPosition == .outsideChart\n        {\n            return true\n        }\n        else\n        {\n            return false\n        }\n    }\n    \n    @objc open var isInverted: Bool { return inverted }\n    \n    open override func calculate(min dataMin: Double, max dataMax: Double)\n    {\n        // if custom, use value as is, else use data value\n        var min = _customAxisMin ? _axisMinimum : dataMin\n        var max = _customAxisMax ? _axisMaximum : dataMax\n        \n        // Make sure max is greater than min\n        // Discussion: https://github.com/danielgindi/Charts/pull/3650#discussion_r221409991\n        if min > max\n        {\n            switch(_customAxisMax, _customAxisMin)\n            {\n            case(true, true):\n                (min, max) = (max, min)\n            case(true, false):\n                min = max < 0 ? max * 1.5 : max * 0.5\n            case(false, true):\n                max = min < 0 ? min * 0.5 : min * 1.5\n            case(false, false):\n                break\n            }\n        }\n        \n        // temporary range (before calculations)\n        let range = abs(max - min)\n        \n        // in case all values are equal\n        if range == 0.0\n        {\n            max = max + 1.0\n            min = min - 1.0\n        }\n        \n        // bottom-space only effects non-custom min\n        if !_customAxisMin\n        {\n            let bottomSpace = range * Double(spaceBottom)\n            _axisMinimum = (min - bottomSpace)\n        }\n        \n        // top-space only effects non-custom max\n        if !_customAxisMax\n        {\n            let topSpace = range * Double(spaceTop)\n            _axisMaximum = (max + topSpace)\n        }\n        \n        // calc actual range\n        axisRange = abs(_axisMaximum - _axisMinimum)\n    }\n    \n    @objc open var isDrawBottomYLabelEntryEnabled: Bool { return drawBottomYLabelEntryEnabled }\n    \n    @objc open var isDrawTopYLabelEntryEnabled: Bool { return drawTopYLabelEntryEnabled }\n\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift",
    "content": "//\n//  BaseDataSet.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n\nopen class ChartBaseDataSet: NSObject, IChartDataSet, NSCopying\n{\n    public required override init()\n    {\n        super.init()\n        \n        // default color\n        colors.append(NSUIColor(red: 140.0/255.0, green: 234.0/255.0, blue: 255.0/255.0, alpha: 1.0))\n        valueColors.append(.labelOrBlack)\n    }\n    \n    @objc public init(label: String?)\n    {\n        super.init()\n        \n        // default color\n        colors.append(NSUIColor(red: 140.0/255.0, green: 234.0/255.0, blue: 255.0/255.0, alpha: 1.0))\n        valueColors.append(.labelOrBlack)\n        \n        self.label = label\n    }\n    \n    // MARK: - Data functions and accessors\n    \n    /// Use this method to tell the data set that the underlying data has changed\n    open func notifyDataSetChanged()\n    {\n        calcMinMax()\n    }\n    \n    open func calcMinMax()\n    {\n        fatalError(\"calcMinMax is not implemented in ChartBaseDataSet\")\n    }\n    \n    open func calcMinMaxY(fromX: Double, toX: Double)\n    {\n        fatalError(\"calcMinMaxY(fromX:, toX:) is not implemented in ChartBaseDataSet\")\n    }\n    \n    open var yMin: Double\n    {\n        fatalError(\"yMin is not implemented in ChartBaseDataSet\")\n    }\n    \n    open var yMax: Double\n    {\n        fatalError(\"yMax is not implemented in ChartBaseDataSet\")\n    }\n    \n    open var xMin: Double\n    {\n        fatalError(\"xMin is not implemented in ChartBaseDataSet\")\n    }\n    \n    open var xMax: Double\n    {\n        fatalError(\"xMax is not implemented in ChartBaseDataSet\")\n    }\n    \n    open var entryCount: Int\n    {\n        fatalError(\"entryCount is not implemented in ChartBaseDataSet\")\n    }\n        \n    open func entryForIndex(_ i: Int) -> ChartDataEntry?\n    {\n        fatalError(\"entryForIndex is not implemented in ChartBaseDataSet\")\n    }\n    \n    open func entryForXValue(\n        _ x: Double,\n        closestToY y: Double,\n        rounding: ChartDataSetRounding) -> ChartDataEntry?\n    {\n        fatalError(\"entryForXValue(x, closestToY, rounding) is not implemented in ChartBaseDataSet\")\n    }\n    \n    open func entryForXValue(\n        _ x: Double,\n        closestToY y: Double) -> ChartDataEntry?\n    {\n        fatalError(\"entryForXValue(x, closestToY) is not implemented in ChartBaseDataSet\")\n    }\n    \n    open func entriesForXValue(_ x: Double) -> [ChartDataEntry]\n    {\n        fatalError(\"entriesForXValue is not implemented in ChartBaseDataSet\")\n    }\n    \n    open func entryIndex(\n        x xValue: Double,\n        closestToY y: Double,\n        rounding: ChartDataSetRounding) -> Int\n    {\n        fatalError(\"entryIndex(x, closestToY, rounding) is not implemented in ChartBaseDataSet\")\n    }\n    \n    open func entryIndex(entry e: ChartDataEntry) -> Int\n    {\n        fatalError(\"entryIndex(entry) is not implemented in ChartBaseDataSet\")\n    }\n    \n    open func addEntry(_ e: ChartDataEntry) -> Bool\n    {\n        fatalError(\"addEntry is not implemented in ChartBaseDataSet\")\n    }\n    \n    open func addEntryOrdered(_ e: ChartDataEntry) -> Bool\n    {\n        fatalError(\"addEntryOrdered is not implemented in ChartBaseDataSet\")\n    }\n    \n    @discardableResult open func removeEntry(_ entry: ChartDataEntry) -> Bool\n    {\n        fatalError(\"removeEntry is not implemented in ChartBaseDataSet\")\n    }\n    \n    @discardableResult open func removeEntry(index: Int) -> Bool\n    {\n        if let entry = entryForIndex(index)\n        {\n            return removeEntry(entry)\n        }\n        return false\n    }\n    \n    @discardableResult open func removeEntry(x: Double) -> Bool\n    {\n        if let entry = entryForXValue(x, closestToY: Double.nan)\n        {\n            return removeEntry(entry)\n        }\n        return false\n    }\n    \n    @discardableResult open func removeFirst() -> Bool\n    {\n        if entryCount > 0\n        {\n            if let entry = entryForIndex(0)\n            {\n                return removeEntry(entry)\n            }\n        }\n        return false\n    }\n    \n    @discardableResult open func removeLast() -> Bool\n    {\n        if entryCount > 0\n        {\n            if let entry = entryForIndex(entryCount - 1)\n            {\n                return removeEntry(entry)\n            }\n        }\n        return false\n    }\n    \n    open func contains(_ e: ChartDataEntry) -> Bool\n    {\n        fatalError(\"removeEntry is not implemented in ChartBaseDataSet\")\n    }\n    \n    open func clear()\n    {\n        fatalError(\"clear is not implemented in ChartBaseDataSet\")\n    }\n    \n    // MARK: - Styling functions and accessors\n    \n    /// All the colors that are used for this DataSet.\n    /// Colors are reused as soon as the number of Entries the DataSet represents is higher than the size of the colors array.\n    open var colors = [NSUIColor]()\n    \n    /// List representing all colors that are used for drawing the actual values for this DataSet\n    open var valueColors = [NSUIColor]()\n\n    /// The label string that describes the DataSet.\n    open var label: String? = \"DataSet\"\n    \n    /// The axis this DataSet should be plotted against.\n    open var axisDependency = YAxis.AxisDependency.left\n    \n    /// - Returns: The color at the given index of the DataSet's color array.\n    /// This prevents out-of-bounds by performing a modulus on the color index, so colours will repeat themselves.\n    open func color(atIndex index: Int) -> NSUIColor\n    {\n        var index = index\n        if index < 0\n        {\n            index = 0\n        }\n        return colors[index % colors.count]\n    }\n    \n    /// Resets all colors of this DataSet and recreates the colors array.\n    open func resetColors()\n    {\n        colors.removeAll(keepingCapacity: false)\n    }\n    \n    /// Adds a new color to the colors array of the DataSet.\n    ///\n    /// - Parameters:\n    ///   - color: the color to add\n    open func addColor(_ color: NSUIColor)\n    {\n        colors.append(color)\n    }\n    \n    /// Sets the one and **only** color that should be used for this DataSet.\n    /// Internally, this recreates the colors array and adds the specified color.\n    ///\n    /// - Parameters:\n    ///   - color: the color to set\n    open func setColor(_ color: NSUIColor)\n    {\n        colors.removeAll(keepingCapacity: false)\n        colors.append(color)\n    }\n    \n    /// Sets colors to a single color a specific alpha value.\n    ///\n    /// - Parameters:\n    ///   - color: the color to set\n    ///   - alpha: alpha to apply to the set `color`\n    @objc open func setColor(_ color: NSUIColor, alpha: CGFloat)\n    {\n        setColor(color.withAlphaComponent(alpha))\n    }\n    \n    /// Sets colors with a specific alpha value.\n    ///\n    /// - Parameters:\n    ///   - colors: the colors to set\n    ///   - alpha: alpha to apply to the set `colors`\n    @objc open func setColors(_ colors: [NSUIColor], alpha: CGFloat)\n    {\n        self.colors = colors.map { $0.withAlphaComponent(alpha) }\n    }\n    \n    /// Sets colors with a specific alpha value.\n    ///\n    /// - Parameters:\n    ///   - colors: the colors to set\n    ///   - alpha: alpha to apply to the set `colors`\n    open func setColors(_ colors: NSUIColor...)\n    {\n        self.colors = colors\n    }\n    \n    /// if true, value highlighting is enabled\n    open var highlightEnabled = true\n    \n    /// `true` if value highlighting is enabled for this dataset\n    open var isHighlightEnabled: Bool { return highlightEnabled }\n    \n    /// Custom formatter that is used instead of the auto-formatter if set\n    internal var _valueFormatter: IValueFormatter?\n    \n    /// Custom formatter that is used instead of the auto-formatter if set\n    open var valueFormatter: IValueFormatter?\n    {\n        get\n        {\n            if needsFormatter\n            {\n                return ChartUtils.defaultValueFormatter()\n            }\n            \n            return _valueFormatter\n        }\n        set\n        {\n            if newValue == nil { return }\n            \n            _valueFormatter = newValue\n        }\n    }\n    \n    open var needsFormatter: Bool\n    {\n        return _valueFormatter == nil\n    }\n    \n    /// Sets/get a single color for value text.\n    /// Setting the color clears the colors array and adds a single color.\n    /// Getting will return the first color in the array.\n    open var valueTextColor: NSUIColor\n    {\n        get\n        {\n            return valueColors[0]\n        }\n        set\n        {\n            valueColors.removeAll(keepingCapacity: false)\n            valueColors.append(newValue)\n        }\n    }\n    \n    /// - Returns: The color at the specified index that is used for drawing the values inside the chart. Uses modulus internally.\n    open func valueTextColorAt(_ index: Int) -> NSUIColor\n    {\n        var index = index\n        if index < 0\n        {\n            index = 0\n        }\n        return valueColors[index % valueColors.count]\n    }\n    \n    /// the font for the value-text labels\n    open var valueFont: NSUIFont = NSUIFont.systemFont(ofSize: 7.0)\n    \n    /// The form to draw for this dataset in the legend.\n    open var form = Legend.Form.default\n    \n    /// The form size to draw for this dataset in the legend.\n    ///\n    /// Return `NaN` to use the default legend form size.\n    open var formSize: CGFloat = CGFloat.nan\n    \n    /// The line width for drawing the form of this dataset in the legend\n    ///\n    /// Return `NaN` to use the default legend form line width.\n    open var formLineWidth: CGFloat = CGFloat.nan\n    \n    /// Line dash configuration for legend shapes that consist of lines.\n    ///\n    /// This is how much (in pixels) into the dash pattern are we starting from.\n    open var formLineDashPhase: CGFloat = 0.0\n    \n    /// Line dash configuration for legend shapes that consist of lines.\n    ///\n    /// This is the actual dash pattern.\n    /// I.e. [2, 3] will paint [--   --   ]\n    /// [1, 3, 4, 2] will paint [-   ----  -   ----  ]\n    open var formLineDashLengths: [CGFloat]? = nil\n    \n    /// Set this to true to draw y-values on the chart.\n    ///\n    /// - Note: For bar and line charts: if `maxVisibleCount` is reached, no values will be drawn even if this is enabled.\n    open var drawValuesEnabled = true\n    \n    /// `true` if y-value drawing is enabled, `false` ifnot\n    open var isDrawValuesEnabled: Bool\n    {\n        return drawValuesEnabled\n    }\n\n    /// Set this to true to draw y-icons on the chart.\n    ///\n    /// - Note: For bar and line charts: if `maxVisibleCount` is reached, no icons will be drawn even if this is enabled.\n    open var drawIconsEnabled = true\n    \n    /// Returns true if y-icon drawing is enabled, false if not\n    open var isDrawIconsEnabled: Bool\n    {\n        return drawIconsEnabled\n    }\n    \n    /// Offset of icons drawn on the chart.  \n    ///\n    /// For all charts except Pie and Radar it will be ordinary (x offset, y offset).\n    ///\n    /// For Pie and Radar chart it will be (y offset, distance from center offset); so if you want icon to be rendered under value, you should increase X component of CGPoint, and if you want icon to be rendered closet to center, you should decrease height component of CGPoint.\n    open var iconsOffset = CGPoint(x: 0, y: 0)\n    \n    /// Set the visibility of this DataSet. If not visible, the DataSet will not be drawn to the chart upon refreshing it.\n    open var visible = true\n    \n    /// `true` if this DataSet is visible inside the chart, or `false` ifit is currently hidden.\n    open var isVisible: Bool\n    {\n        return visible\n    }\n    \n    // MARK: - NSObject\n    \n    open override var description: String\n    {\n        return String(format: \"%@, label: %@, %i entries\", arguments: [NSStringFromClass(type(of: self)), self.label ?? \"\", self.entryCount])\n    }\n    \n    open override var debugDescription: String\n    {\n        return (0..<entryCount).reduce(description + \":\") {\n            \"\\($0)\\n\\(self.entryForIndex($1)?.description ?? \"\")\"\n        }\n    }\n    \n    // MARK: - NSCopying\n    \n    open func copy(with zone: NSZone? = nil) -> Any \n    {\n        let copy = type(of: self).init()\n        \n        copy.colors = colors\n        copy.valueColors = valueColors\n        copy.label = label\n        copy.axisDependency = axisDependency\n        copy.highlightEnabled = highlightEnabled\n        copy._valueFormatter = _valueFormatter\n        copy.valueFont = valueFont\n        copy.form = form\n        copy.formSize = formSize\n        copy.formLineWidth = formLineWidth\n        copy.formLineDashPhase = formLineDashPhase\n        copy.formLineDashLengths = formLineDashLengths\n        copy.drawValuesEnabled = drawValuesEnabled\n        copy.drawValuesEnabled = drawValuesEnabled\n        copy.iconsOffset = iconsOffset\n        copy.visible = visible\n        \n        return copy\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift",
    "content": "//\n//  BarChartData.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nopen class BarChartData: BarLineScatterCandleBubbleChartData\n{\n    public override init()\n    {\n        super.init()\n    }\n    \n    public override init(dataSets: [IChartDataSet]?)\n    {\n        super.init(dataSets: dataSets)\n    }\n    \n    /// The width of the bars on the x-axis, in values (not pixels)\n    ///\n    /// **default**: 0.85\n    @objc open var barWidth = Double(0.85)\n    \n    /// Groups all BarDataSet objects this data object holds together by modifying the x-value of their entries.\n    /// Previously set x-values of entries will be overwritten. Leaves space between bars and groups as specified by the parameters.\n    /// Do not forget to call notifyDataSetChanged() on your BarChart object after calling this method.\n    ///\n    /// - Parameters:\n    ///   - fromX: the starting point on the x-axis where the grouping should begin\n    ///   - groupSpace: The space between groups of bars in values (not pixels) e.g. 0.8f for bar width 1f\n    ///   - barSpace: The space between individual bars in values (not pixels) e.g. 0.1f for bar width 1f\n    @objc open func groupBars(fromX: Double, groupSpace: Double, barSpace: Double)\n    {\n        let setCount = _dataSets.count\n        if setCount <= 1\n        {\n            print(\"BarData needs to hold at least 2 BarDataSets to allow grouping.\", terminator: \"\\n\")\n            return\n        }\n        \n        let max = maxEntryCountSet\n        let maxEntryCount = max?.entryCount ?? 0\n        \n        let groupSpaceWidthHalf = groupSpace / 2.0\n        let barSpaceHalf = barSpace / 2.0\n        let barWidthHalf = self.barWidth / 2.0\n        \n        var fromX = fromX\n        \n        let interval = groupWidth(groupSpace: groupSpace, barSpace: barSpace)\n\n        for i in stride(from: 0, to: maxEntryCount, by: 1)\n        {\n            let start = fromX\n            fromX += groupSpaceWidthHalf\n            \n            (_dataSets as? [IBarChartDataSet])?.forEach { set in\n                fromX += barSpaceHalf\n                fromX += barWidthHalf\n                \n                if i < set.entryCount\n                {\n                    if let entry = set.entryForIndex(i)\n                    {\n                        entry.x = fromX\n                    }\n                }\n                \n                fromX += barWidthHalf\n                fromX += barSpaceHalf\n            }\n            \n            fromX += groupSpaceWidthHalf\n            let end = fromX\n            let innerInterval = end - start\n            let diff = interval - innerInterval\n            \n            // correct rounding errors\n            if diff > 0 || diff < 0\n            {\n                fromX += diff\n            }\n\n        }\n        \n        notifyDataChanged()\n    }\n    \n    /// In case of grouped bars, this method returns the space an individual group of bar needs on the x-axis.\n    ///\n    /// - Parameters:\n    ///   - groupSpace:\n    ///   - barSpace:\n    @objc open func groupWidth(groupSpace: Double, barSpace: Double) -> Double\n    {\n        return Double(_dataSets.count) * (self.barWidth + barSpace) + groupSpace\n    }\n    \n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift",
    "content": "//\n//  BarChartDataEntry.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\n\nopen class BarChartDataEntry: ChartDataEntry\n{\n    /// the values the stacked barchart holds\n    private var _yVals: [Double]?\n    \n    /// the ranges for the individual stack values - automatically calculated\n    private var _ranges: [Range]?\n    \n    /// the sum of all negative values this entry (if stacked) contains\n    private var _negativeSum: Double = 0.0\n    \n    /// the sum of all positive values this entry (if stacked) contains\n    private var _positiveSum: Double = 0.0\n    \n    public required init()\n    {\n        super.init()\n    }\n    \n    /// Constructor for normal bars (not stacked).\n    public override init(x: Double, y: Double)\n    {\n        super.init(x: x, y: y)\n    }\n    \n    /// Constructor for normal bars (not stacked).\n    public convenience init(x: Double, y: Double, data: Any?)\n    {\n        self.init(x: x, y: y)\n        self.data = data\n    }\n    \n    /// Constructor for normal bars (not stacked).\n    public convenience init(x: Double, y: Double, icon: NSUIImage?)\n    {\n        self.init(x: x, y: y)\n        self.icon = icon\n    }\n    \n    /// Constructor for normal bars (not stacked).\n    public convenience init(x: Double, y: Double, icon: NSUIImage?, data: Any?)\n    {\n        self.init(x: x, y: y)\n        self.icon = icon\n        self.data = data\n    }\n    \n    /// Constructor for stacked bar entries.\n    @objc public init(x: Double, yValues: [Double])\n    {\n        super.init(x: x, y: BarChartDataEntry.calcSum(values: yValues))\n        self._yVals = yValues\n        calcPosNegSum()\n        calcRanges()\n    }\n\n    /// Constructor for stacked bar entries. One data object for whole stack\n    @objc public convenience init(x: Double, yValues: [Double], icon: NSUIImage?)\n    {\n        self.init(x: x, yValues: yValues)\n        self.icon = icon\n    }\n\n    /// Constructor for stacked bar entries. One data object for whole stack\n    @objc public convenience init(x: Double, yValues: [Double], data: Any?)\n    {\n        self.init(x: x, yValues: yValues)\n        self.data = data\n    }\n\n    /// Constructor for stacked bar entries. One data object for whole stack\n    @objc public convenience init(x: Double, yValues: [Double], icon: NSUIImage?, data: Any?)\n    {\n        self.init(x: x, yValues: yValues)\n        self.icon = icon\n        self.data = data\n    }\n    \n    @objc open func sumBelow(stackIndex :Int) -> Double\n    {\n        guard let yVals = _yVals else\n        {\n            return 0\n        }\n        \n        var remainder: Double = 0.0\n        var index = yVals.count - 1\n        \n        while (index > stackIndex && index >= 0)\n        {\n            remainder += yVals[index]\n            index -= 1\n        }\n        \n        return remainder\n    }\n    \n    /// The sum of all negative values this entry (if stacked) contains. (this is a positive number)\n    @objc open var negativeSum: Double\n    {\n        return _negativeSum\n    }\n    \n    /// The sum of all positive values this entry (if stacked) contains.\n    @objc open var positiveSum: Double\n    {\n        return _positiveSum\n    }\n\n    @objc open func calcPosNegSum()\n    {\n        (_negativeSum, _positiveSum) = _yVals?.reduce(into: (0,0)) { (result, y) in\n            if y < 0\n            {\n                result.0 += -y\n            }\n            else\n            {\n                result.1 += y\n            }\n        } ?? (0,0)\n    }\n    \n    /// Splits up the stack-values of the given bar-entry into Range objects.\n    ///\n    /// - Parameters:\n    ///   - entry:\n    /// - Returns:\n    @objc open func calcRanges()\n    {\n        guard let values = yValues, !values.isEmpty else { return }\n\n        if _ranges == nil\n        {\n            _ranges = [Range]()\n        }\n        else\n        {\n            _ranges!.removeAll()\n        }\n        \n        _ranges!.reserveCapacity(values.count)\n        \n        var negRemain = -negativeSum\n        var posRemain: Double = 0.0\n        \n        for value in values\n        {\n            if value < 0\n            {\n                _ranges!.append(Range(from: negRemain, to: negRemain - value))\n                negRemain -= value\n            }\n            else\n            {\n                _ranges!.append(Range(from: posRemain, to: posRemain + value))\n                posRemain += value\n            }\n        }\n    }\n    \n    // MARK: Accessors\n    \n    /// the values the stacked barchart holds\n    @objc open var isStacked: Bool { return _yVals != nil }\n    \n    /// the values the stacked barchart holds\n    @objc open var yValues: [Double]?\n    {\n        get { return self._yVals }\n        set\n        {\n            self.y = BarChartDataEntry.calcSum(values: newValue)\n            self._yVals = newValue\n            calcPosNegSum()\n            calcRanges()\n        }\n    }\n    \n    /// The ranges of the individual stack-entries. Will return null if this entry is not stacked.\n    @objc open var ranges: [Range]?\n    {\n        return _ranges\n    }\n    \n    // MARK: NSCopying\n    \n    open override func copy(with zone: NSZone? = nil) -> Any\n    {\n        let copy = super.copy(with: zone) as! BarChartDataEntry\n        copy._yVals = _yVals\n        copy.y = y\n        copy._negativeSum = _negativeSum\n        copy._positiveSum = _positiveSum\n        return copy\n    }\n    \n    /// Calculates the sum across all values of the given stack.\n    ///\n    /// - Parameters:\n    ///   - vals:\n    /// - Returns:\n    private static func calcSum(values: [Double]?) -> Double\n    {\n        guard let values = values\n            else { return 0.0 }\n        \n        var sum = 0.0\n        \n        for f in values\n        {\n            sum += f\n        }\n        \n        return sum\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift",
    "content": "//\n//  BarChartDataSet.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n\nopen class BarChartDataSet: BarLineScatterCandleBubbleChartDataSet, IBarChartDataSet\n{\n    private func initialize()\n    {\n        self.highlightColor = NSUIColor.black\n        \n        self.calcStackSize(entries: entries as! [BarChartDataEntry])\n        self.calcEntryCountIncludingStacks(entries: entries as! [BarChartDataEntry])\n    }\n    \n    public required init()\n    {\n        super.init()\n        initialize()\n    }\n    \n    public override init(entries: [ChartDataEntry]?, label: String?)\n    {\n        super.init(entries: entries, label: label)\n        initialize()\n    }\n\n    // MARK: - Data functions and accessors\n    \n    /// the maximum number of bars that are stacked upon each other, this value\n    /// is calculated from the Entries that are added to the DataSet\n    private var _stackSize = 1\n    \n    /// the overall entry count, including counting each stack-value individually\n    private var _entryCountStacks = 0\n    \n    /// Calculates the total number of entries this DataSet represents, including\n    /// stacks. All values belonging to a stack are calculated separately.\n    private func calcEntryCountIncludingStacks(entries: [BarChartDataEntry])\n    {\n        _entryCountStacks = 0\n        \n        for i in 0 ..< entries.count\n        {\n            if let vals = entries[i].yValues\n            {\n                _entryCountStacks += vals.count\n            }\n            else\n            {\n                _entryCountStacks += 1\n            }\n        }\n    }\n    \n    /// calculates the maximum stacksize that occurs in the Entries array of this DataSet\n    private func calcStackSize(entries: [BarChartDataEntry])\n    {\n        for i in 0 ..< entries.count\n        {\n            if let vals = entries[i].yValues\n            {\n                if vals.count > _stackSize\n                {\n                    _stackSize = vals.count\n                }\n            }\n        }\n    }\n    \n    open override func calcMinMax(entry e: ChartDataEntry)\n    {\n        guard let e = e as? BarChartDataEntry\n            else { return }\n        \n        if !e.y.isNaN\n        {\n            if e.yValues == nil\n            {\n                if e.y < _yMin\n                {\n                    _yMin = e.y\n                }\n                \n                if e.y > _yMax\n                {\n                    _yMax = e.y\n                }\n            }\n            else\n            {\n                if -e.negativeSum < _yMin\n                {\n                    _yMin = -e.negativeSum\n                }\n                \n                if e.positiveSum > _yMax\n                {\n                    _yMax = e.positiveSum\n                }\n            }\n            \n            calcMinMaxX(entry: e)\n        }\n    }\n    \n    /// The maximum number of bars that can be stacked upon another in this DataSet.\n    open var stackSize: Int\n    {\n        return _stackSize\n    }\n    \n    /// `true` if this DataSet is stacked (stacksize > 1) or not.\n    open var isStacked: Bool\n    {\n        return _stackSize > 1 ? true : false\n    }\n    \n    /// The overall entry count, including counting each stack-value individually\n    @objc open var entryCountStacks: Int\n    {\n        return _entryCountStacks\n    }\n    \n    /// array of labels used to describe the different values of the stacked bars\n    open var stackLabels: [String] = []\n    \n    // MARK: - Styling functions and accessors\n    \n    /// the color used for drawing the bar-shadows. The bar shadows is a surface behind the bar that indicates the maximum value\n    open var barShadowColor = NSUIColor(red: 215.0/255.0, green: 215.0/255.0, blue: 215.0/255.0, alpha: 1.0)\n\n    /// the width used for drawing borders around the bars. If borderWidth == 0, no border will be drawn.\n    open var barBorderWidth : CGFloat = 0.0\n\n    /// the color drawing borders around the bars.\n    open var barBorderColor = NSUIColor.black\n\n    /// the alpha value (transparency) that is used for drawing the highlight indicator bar. min = 0.0 (fully transparent), max = 1.0 (fully opaque)\n    open var highlightAlpha = CGFloat(120.0 / 255.0)\n    \n    // MARK: - NSCopying\n    \n    open override func copy(with zone: NSZone? = nil) -> Any\n    {\n        let copy = super.copy(with: zone) as! BarChartDataSet\n        copy._stackSize = _stackSize\n        copy._entryCountStacks = _entryCountStacks\n        copy.stackLabels = stackLabels\n\n        copy.barShadowColor = barShadowColor\n        copy.barBorderWidth = barBorderWidth\n        copy.barBorderColor = barBorderColor\n        copy.highlightAlpha = highlightAlpha\n        return copy\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift",
    "content": "//\n//  BarLineScatterCandleBubbleChartData.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\n\nopen class BarLineScatterCandleBubbleChartData: ChartData\n{\n    public override init()\n    {\n        super.init()\n    }\n    \n    public override init(dataSets: [IChartDataSet]?)\n    {\n        super.init(dataSets: dataSets)\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift",
    "content": "//\n//  BarLineScatterCandleBubbleChartDataSet.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n\nopen class BarLineScatterCandleBubbleChartDataSet: ChartDataSet, IBarLineScatterCandleBubbleChartDataSet\n{\n    // MARK: - Data functions and accessors\n    \n    // MARK: - Styling functions and accessors\n    \n    open var highlightColor = NSUIColor(red: 255.0/255.0, green: 187.0/255.0, blue: 115.0/255.0, alpha: 1.0)\n    open var highlightLineWidth = CGFloat(0.5)\n    open var highlightLineDashPhase = CGFloat(0.0)\n    open var highlightLineDashLengths: [CGFloat]?\n    \n    // MARK: - NSCopying\n    \n    open override func copy(with zone: NSZone? = nil) -> Any\n    {\n        let copy = super.copy(with: zone) as! BarLineScatterCandleBubbleChartDataSet\n        copy.highlightColor = highlightColor\n        copy.highlightLineWidth = highlightLineWidth\n        copy.highlightLineDashPhase = highlightLineDashPhase\n        copy.highlightLineDashLengths = highlightLineDashLengths\n        return copy\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift",
    "content": "//\n//  BubbleChartData.swift\n//  Charts\n//\n//  Bubble chart implementation:\n//    Copyright 2015 Pierre-Marc Airoldi\n//    Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nopen class BubbleChartData: BarLineScatterCandleBubbleChartData\n{\n    public override init()\n    {\n        super.init()\n    }\n    \n    public override init(dataSets: [IChartDataSet]?)\n    {\n        super.init(dataSets: dataSets)\n    }\n    \n    /// Sets the width of the circle that surrounds the bubble when highlighted for all DataSet objects this data object contains\n    @objc open func setHighlightCircleWidth(_ width: CGFloat)\n    {\n        (_dataSets as? [IBubbleChartDataSet])?.forEach { $0.highlightCircleWidth = width }\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift",
    "content": "//\n//  BubbleDataEntry.swift\n//  Charts\n//\n//  Bubble chart implementation: \n//    Copyright 2015 Pierre-Marc Airoldi\n//    Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nopen class BubbleChartDataEntry: ChartDataEntry\n{\n    /// The size of the bubble.\n    @objc open var size = CGFloat(0.0)\n    \n    public required init()\n    {\n        super.init()\n    }\n    \n    /// - Parameters:\n    ///   - x: The index on the x-axis.\n    ///   - y: The value on the y-axis.\n    ///   - size: The size of the bubble.\n    @objc public init(x: Double, y: Double, size: CGFloat)\n    {\n        super.init(x: x, y: y)\n        \n        self.size = size\n    }\n    \n    /// - Parameters:\n    ///   - x: The index on the x-axis.\n    ///   - y: The value on the y-axis.\n    ///   - size: The size of the bubble.\n    ///   - data: Spot for additional data this Entry represents.\n    @objc public convenience init(x: Double, y: Double, size: CGFloat, data: Any?)\n    {\n        self.init(x: x, y: y, size: size)\n        self.data = data\n    }\n    \n    /// - Parameters:\n    ///   - x: The index on the x-axis.\n    ///   - y: The value on the y-axis.\n    ///   - size: The size of the bubble.\n    ///   - icon: icon image\n    @objc public convenience init(x: Double, y: Double, size: CGFloat, icon: NSUIImage?)\n    {\n        self.init(x: x, y: y, size: size)\n        self.icon = icon\n    }\n    \n    /// - Parameters:\n    ///   - x: The index on the x-axis.\n    ///   - y: The value on the y-axis.\n    ///   - size: The size of the bubble.\n    ///   - icon: icon image\n    ///   - data: Spot for additional data this Entry represents.\n    @objc public convenience init(x: Double, y: Double, size: CGFloat, icon: NSUIImage?, data: Any?)\n    {\n        self.init(x: x, y: y, size: size)\n        self.icon = icon\n        self.data = data\n    }\n    \n    // MARK: NSCopying\n    \n    open override func copy(with zone: NSZone? = nil) -> Any\n    {\n        let copy = super.copy(with: zone) as! BubbleChartDataEntry\n        copy.size = size\n        return copy\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift",
    "content": "//\n//  BubbleChartDataSet.swift\n//  Charts\n//\n//  Bubble chart implementation:\n//    Copyright 2015 Pierre-Marc Airoldi\n//    Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n\nopen class BubbleChartDataSet: BarLineScatterCandleBubbleChartDataSet, IBubbleChartDataSet\n{\n    // MARK: - Data functions and accessors\n    \n    internal var _maxSize = CGFloat(0.0)\n    \n    open var maxSize: CGFloat { return _maxSize }\n    @objc open var normalizeSizeEnabled: Bool = true\n    open var isNormalizeSizeEnabled: Bool { return normalizeSizeEnabled }\n    \n    open override func calcMinMax(entry e: ChartDataEntry)\n    {\n        guard let e = e as? BubbleChartDataEntry\n            else { return }\n        \n        super.calcMinMax(entry: e)\n        \n        let size = e.size\n        \n        if size > _maxSize\n        {\n            _maxSize = size\n        }\n    }\n    \n    // MARK: - Styling functions and accessors\n    \n    /// Sets/gets the width of the circle that surrounds the bubble when highlighted\n    open var highlightCircleWidth: CGFloat = 2.5\n    \n    // MARK: - NSCopying\n    \n    open override func copy(with zone: NSZone? = nil) -> Any\n    {\n        let copy = super.copy(with: zone) as! BubbleChartDataSet\n        copy._xMin = _xMin\n        copy._xMax = _xMax\n        copy._maxSize = _maxSize\n        copy.normalizeSizeEnabled = normalizeSizeEnabled\n        copy.highlightCircleWidth = highlightCircleWidth\n        return copy\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift",
    "content": "//\n//  CandleChartData.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\n\nopen class CandleChartData: BarLineScatterCandleBubbleChartData\n{\n    public override init()\n    {\n        super.init()\n    }\n    \n    public override init(dataSets: [IChartDataSet]?)\n    {\n        super.init(dataSets: dataSets)\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift",
    "content": "//\n//  CandleChartDataEntry.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\n\nopen class CandleChartDataEntry: ChartDataEntry\n{\n    /// shadow-high value\n    @objc open var high = Double(0.0)\n    \n    /// shadow-low value\n    @objc open var low = Double(0.0)\n    \n    /// close value\n    @objc open var close = Double(0.0)\n    \n    /// open value\n    @objc open var open = Double(0.0)\n    \n    public required init()\n    {\n        super.init()\n    }\n    \n    @objc public init(x: Double, shadowH: Double, shadowL: Double, open: Double, close: Double)\n    {\n        super.init(x: x, y: (shadowH + shadowL) / 2.0)\n        \n        self.high = shadowH\n        self.low = shadowL\n        self.open = open\n        self.close = close\n    }\n\n    @objc public convenience init(x: Double, shadowH: Double, shadowL: Double, open: Double, close: Double, icon: NSUIImage?)\n    {\n        self.init(x: x, shadowH: shadowH, shadowL: shadowL, open: open, close: close)\n        self.icon = icon\n    }\n\n    @objc public convenience init(x: Double, shadowH: Double, shadowL: Double, open: Double, close: Double, data: Any?)\n    {\n        self.init(x: x, shadowH: shadowH, shadowL: shadowL, open: open, close: close)\n        self.data = data\n    }\n\n    @objc public convenience init(x: Double, shadowH: Double, shadowL: Double, open: Double, close: Double, icon: NSUIImage?, data: Any?)\n    {\n        self.init(x: x, shadowH: shadowH, shadowL: shadowL, open: open, close: close)\n        self.icon = icon\n        self.data = data\n    }\n    \n    /// The overall range (difference) between shadow-high and shadow-low.\n    @objc open var shadowRange: Double\n    {\n        return abs(high - low)\n    }\n    \n    /// The body size (difference between open and close).\n    @objc open var bodyRange: Double\n    {\n        return abs(open - close)\n    }\n    \n    /// the center value of the candle. (Middle value between high and low)\n    open override var y: Double\n    {\n        get\n        {\n            return super.y\n        }\n        set\n        {\n            super.y = (high + low) / 2.0\n        }\n    }\n    \n    // MARK: NSCopying\n    \n    open override func copy(with zone: NSZone? = nil) -> Any\n    {\n        let copy = super.copy(with: zone) as! CandleChartDataEntry\n        copy.high = high\n        copy.low = low\n        copy.open = open\n        copy.close = close\n        return copy\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift",
    "content": "//\n//  CandleChartDataSet.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n\nopen class CandleChartDataSet: LineScatterCandleRadarChartDataSet, ICandleChartDataSet\n{\n    \n    public required init()\n    {\n        super.init()\n    }\n    \n    public override init(entries: [ChartDataEntry]?, label: String?)\n    {\n        super.init(entries: entries, label: label)\n    }\n    \n    // MARK: - Data functions and accessors\n    \n    open override func calcMinMax(entry e: ChartDataEntry)\n    {\n        guard let e = e as? CandleChartDataEntry\n            else { return }\n        \n        if e.low < _yMin\n        {\n            _yMin = e.low\n        }\n        \n        if e.high > _yMax\n        {\n            _yMax = e.high\n        }\n        \n        calcMinMaxX(entry: e)\n    }\n    \n    open override func calcMinMaxY(entry e: ChartDataEntry)\n    {\n        guard let e = e as? CandleChartDataEntry\n            else { return }\n        \n        if e.high < _yMin\n        {\n            _yMin = e.high\n        }\n        if e.high > _yMax\n        {\n            _yMax = e.high\n        }\n        \n        if e.low < _yMin\n        {\n            _yMin = e.low\n        }\n        if e.low > _yMax\n        {\n            _yMax = e.low\n        }\n    }\n    \n    // MARK: - Styling functions and accessors\n    \n    /// the space between the candle entries\n    ///\n    /// **default**: 0.1 (10%)\n    private var _barSpace = CGFloat(0.1)\n    \n    /// the space that is left out on the left and right side of each candle,\n    /// **default**: 0.1 (10%), max 0.45, min 0.0\n    open var barSpace: CGFloat\n    {\n        get\n        {\n            return _barSpace\n        }\n        set\n        {\n            _barSpace = newValue.clamped(to: 0...0.45)\n        }\n    }\n    \n    /// should the candle bars show?\n    /// when false, only \"ticks\" will show\n    ///\n    /// **default**: true\n    open var showCandleBar: Bool = true\n    \n    /// the width of the candle-shadow-line in pixels.\n    ///\n    /// **default**: 1.5\n    open var shadowWidth = CGFloat(1.5)\n    \n    /// the color of the shadow line\n    open var shadowColor: NSUIColor?\n    \n    /// use candle color for the shadow\n    open var shadowColorSameAsCandle = false\n    \n    /// Is the shadow color same as the candle color?\n    open var isShadowColorSameAsCandle: Bool { return shadowColorSameAsCandle }\n    \n    /// color for open == close\n    open var neutralColor: NSUIColor?\n    \n    /// color for open > close\n    open var increasingColor: NSUIColor?\n    \n    /// color for open < close\n    open var decreasingColor: NSUIColor?\n    \n    /// Are increasing values drawn as filled?\n    /// increasing candlesticks are traditionally hollow\n    open var increasingFilled = false\n    \n    /// Are increasing values drawn as filled?\n    open var isIncreasingFilled: Bool { return increasingFilled }\n    \n    /// Are decreasing values drawn as filled?\n    /// descreasing candlesticks are traditionally filled\n    open var decreasingFilled = true\n    \n    /// Are decreasing values drawn as filled?\n    open var isDecreasingFilled: Bool { return decreasingFilled }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift",
    "content": "//\n//  ChartData.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\n\nopen class ChartData: NSObject\n{\n    internal var _yMax: Double = -Double.greatestFiniteMagnitude\n    internal var _yMin: Double = Double.greatestFiniteMagnitude\n    internal var _xMax: Double = -Double.greatestFiniteMagnitude\n    internal var _xMin: Double = Double.greatestFiniteMagnitude\n    internal var _leftAxisMax: Double = -Double.greatestFiniteMagnitude\n    internal var _leftAxisMin: Double = Double.greatestFiniteMagnitude\n    internal var _rightAxisMax: Double = -Double.greatestFiniteMagnitude\n    internal var _rightAxisMin: Double = Double.greatestFiniteMagnitude\n    \n    internal var _dataSets = [IChartDataSet]()\n    \n    public override init()\n    {\n        super.init()\n        \n        _dataSets = [IChartDataSet]()\n    }\n    \n    @objc public init(dataSets: [IChartDataSet]?)\n    {\n        super.init()\n        \n        _dataSets = dataSets ?? [IChartDataSet]()\n        \n        self.initialize(dataSets: _dataSets)\n    }\n    \n    @objc public convenience init(dataSet: IChartDataSet?)\n    {\n        self.init(dataSets: dataSet === nil ? nil : [dataSet!])\n    }\n    \n    internal func initialize(dataSets: [IChartDataSet])\n    {\n        notifyDataChanged()\n    }\n    \n    /// Call this method to let the ChartData know that the underlying data has changed.\n    /// Calling this performs all necessary recalculations needed when the contained data has changed.\n    @objc open func notifyDataChanged()\n    {\n        calcMinMax()\n    }\n    \n    @objc open func calcMinMaxY(fromX: Double, toX: Double)\n    {\n        _dataSets.forEach { $0.calcMinMaxY(fromX: fromX, toX: toX) }\n        // apply the new data\n        calcMinMax()\n    }\n    \n    /// calc minimum and maximum y value over all datasets\n    @objc open func calcMinMax()\n    {\n        _yMax = -Double.greatestFiniteMagnitude\n        _yMin = Double.greatestFiniteMagnitude\n        _xMax = -Double.greatestFiniteMagnitude\n        _xMin = Double.greatestFiniteMagnitude\n        \n        _dataSets.forEach { calcMinMax(dataSet: $0) }\n        \n        _leftAxisMax = -Double.greatestFiniteMagnitude\n        _leftAxisMin = Double.greatestFiniteMagnitude\n        _rightAxisMax = -Double.greatestFiniteMagnitude\n        _rightAxisMin = Double.greatestFiniteMagnitude\n        \n        // left axis\n        let firstLeft = getFirstLeft(dataSets: dataSets)\n        \n        if firstLeft !== nil\n        {\n            _leftAxisMax = firstLeft!.yMax\n            _leftAxisMin = firstLeft!.yMin\n            \n            for dataSet in _dataSets\n            {\n                if dataSet.axisDependency == .left\n                {\n                    if dataSet.yMin < _leftAxisMin\n                    {\n                        _leftAxisMin = dataSet.yMin\n                    }\n                    \n                    if dataSet.yMax > _leftAxisMax\n                    {\n                        _leftAxisMax = dataSet.yMax\n                    }\n                }\n            }\n        }\n        \n        // right axis\n        let firstRight = getFirstRight(dataSets: dataSets)\n        \n        if firstRight !== nil\n        {\n            _rightAxisMax = firstRight!.yMax\n            _rightAxisMin = firstRight!.yMin\n            \n            for dataSet in _dataSets\n            {\n                if dataSet.axisDependency == .right\n                {\n                    if dataSet.yMin < _rightAxisMin\n                    {\n                        _rightAxisMin = dataSet.yMin\n                    }\n                    \n                    if dataSet.yMax > _rightAxisMax\n                    {\n                        _rightAxisMax = dataSet.yMax\n                    }\n                }\n            }\n        }\n    }\n    \n    /// Adjusts the current minimum and maximum values based on the provided Entry object.\n    @objc open func calcMinMax(entry e: ChartDataEntry, axis: YAxis.AxisDependency)\n    {\n        if _yMax < e.y\n        {\n            _yMax = e.y\n        }\n        \n        if _yMin > e.y\n        {\n            _yMin = e.y\n        }\n        \n        if _xMax < e.x\n        {\n            _xMax = e.x\n        }\n        \n        if _xMin > e.x\n        {\n            _xMin = e.x\n        }\n        \n        if axis == .left\n        {\n            if _leftAxisMax < e.y\n            {\n                _leftAxisMax = e.y\n            }\n            \n            if _leftAxisMin > e.y\n            {\n                _leftAxisMin = e.y\n            }\n        }\n        else\n        {\n            if _rightAxisMax < e.y\n            {\n                _rightAxisMax = e.y\n            }\n            \n            if _rightAxisMin > e.y\n            {\n                _rightAxisMin = e.y\n            }\n        }\n    }\n    \n    /// Adjusts the minimum and maximum values based on the given DataSet.\n    @objc open func calcMinMax(dataSet d: IChartDataSet)\n    {\n        if _yMax < d.yMax\n        {\n            _yMax = d.yMax\n        }\n        \n        if _yMin > d.yMin\n        {\n            _yMin = d.yMin\n        }\n        \n        if _xMax < d.xMax\n        {\n            _xMax = d.xMax\n        }\n        \n        if _xMin > d.xMin\n        {\n            _xMin = d.xMin\n        }\n        \n        if d.axisDependency == .left\n        {\n            if _leftAxisMax < d.yMax\n            {\n                _leftAxisMax = d.yMax\n            }\n            \n            if _leftAxisMin > d.yMin\n            {\n                _leftAxisMin = d.yMin\n            }\n        }\n        else\n        {\n            if _rightAxisMax < d.yMax\n            {\n                _rightAxisMax = d.yMax\n            }\n            \n            if _rightAxisMin > d.yMin\n            {\n                _rightAxisMin = d.yMin\n            }\n        }\n    }\n    \n    /// The number of LineDataSets this object contains\n    @objc open var dataSetCount: Int\n    {\n        return _dataSets.count\n    }\n    \n    /// The smallest y-value the data object contains.\n    @objc open var yMin: Double\n    {\n        return _yMin\n    }\n    \n    @nonobjc\n    open func getYMin() -> Double\n    {\n        return _yMin\n    }\n    \n    @objc open func getYMin(axis: YAxis.AxisDependency) -> Double\n    {\n        if axis == .left\n        {\n            if _leftAxisMin == Double.greatestFiniteMagnitude\n            {\n                return _rightAxisMin\n            }\n            else\n            {\n                return _leftAxisMin\n            }\n        }\n        else\n        {\n            if _rightAxisMin == Double.greatestFiniteMagnitude\n            {\n                return _leftAxisMin\n            }\n            else\n            {\n                return _rightAxisMin\n            }\n        }\n    }\n    \n    /// The greatest y-value the data object contains.\n    @objc open var yMax: Double\n    {\n        return _yMax\n    }\n    \n    @nonobjc\n    open func getYMax() -> Double\n    {\n        return _yMax\n    }\n    \n    @objc open func getYMax(axis: YAxis.AxisDependency) -> Double\n    {\n        if axis == .left\n        {\n            if _leftAxisMax == -Double.greatestFiniteMagnitude\n            {\n                return _rightAxisMax\n            }\n            else\n            {\n                return _leftAxisMax\n            }\n        }\n        else\n        {\n            if _rightAxisMax == -Double.greatestFiniteMagnitude\n            {\n                return _leftAxisMax\n            }\n            else\n            {\n                return _rightAxisMax\n            }\n        }\n    }\n    \n    /// The minimum x-value the data object contains.\n    @objc open var xMin: Double\n    {\n        return _xMin\n    }\n    /// The maximum x-value the data object contains.\n    @objc open var xMax: Double\n    {\n        return _xMax\n    }\n    \n    /// All DataSet objects this ChartData object holds.\n    @objc open var dataSets: [IChartDataSet]\n    {\n        get\n        {\n            return _dataSets\n        }\n        set\n        {\n            _dataSets = newValue\n            notifyDataChanged()\n        }\n    }\n    \n    /// Retrieve the index of a ChartDataSet with a specific label from the ChartData. Search can be case sensitive or not.\n    /// \n    /// **IMPORTANT: This method does calculations at runtime, do not over-use in performance critical situations.**\n    ///\n    /// - Parameters:\n    ///   - dataSets: the DataSet array to search\n    ///   - type:\n    ///   - ignorecase: if true, the search is not case-sensitive\n    /// - Returns: The index of the DataSet Object with the given label. Sensitive or not.\n    internal func getDataSetIndexByLabel(_ label: String, ignorecase: Bool) -> Int\n    {\n        // TODO: Return nil instead of -1\n        if ignorecase\n        {\n            return dataSets.firstIndex { $0.label?.caseInsensitiveCompare(label) == .orderedSame }\n                ?? -1\n        }\n        else\n        {\n            return dataSets.firstIndex { $0.label == label }\n                ?? -1\n        }\n    }\n\n    /// Get the Entry for a corresponding highlight object\n    ///\n    /// - Parameters:\n    ///   - highlight:\n    /// - Returns: The entry that is highlighted\n    @objc open func entryForHighlight(_ highlight: Highlight) -> ChartDataEntry?\n    {\n        if highlight.dataSetIndex >= dataSets.count\n        {\n            return nil\n        }\n        else\n        {\n            return dataSets[highlight.dataSetIndex].entryForXValue(highlight.x, closestToY: highlight.y)\n        }\n    }\n    \n    /// **IMPORTANT: This method does calculations at runtime. Use with care in performance critical situations.**\n    ///\n    /// - Parameters:\n    ///   - label:\n    ///   - ignorecase:\n    /// - Returns: The DataSet Object with the given label. Sensitive or not.\n    @objc open func getDataSetByLabel(_ label: String, ignorecase: Bool) -> IChartDataSet?\n    {\n        let index = getDataSetIndexByLabel(label, ignorecase: ignorecase)\n        \n        if index < 0 || index >= _dataSets.count\n        {\n            return nil\n        }\n        else\n        {\n            return _dataSets[index]\n        }\n    }\n    \n    @objc open func getDataSetByIndex(_ index: Int) -> IChartDataSet!\n    {\n        if index < 0 || index >= _dataSets.count\n        {\n            return nil\n        }\n        \n        return _dataSets[index]\n    }\n    \n    @objc open func addDataSet(_ dataSet: IChartDataSet!)\n    {\n        calcMinMax(dataSet: dataSet)\n        \n        _dataSets.append(dataSet)\n    }\n    \n    /// Removes the given DataSet from this data object.\n    /// Also recalculates all minimum and maximum values.\n    ///\n    /// - Returns: `true` if a DataSet was removed, `false` ifno DataSet could be removed.\n    @objc @discardableResult open func removeDataSet(_ dataSet: IChartDataSet) -> Bool\n    {\n        guard let i = _dataSets.firstIndex(where: { $0 === dataSet }) else { return false }\n        return removeDataSetByIndex(i)\n    }\n    \n    /// Removes the DataSet at the given index in the DataSet array from the data object. \n    /// Also recalculates all minimum and maximum values. \n    ///\n    /// - Returns: `true` if a DataSet was removed, `false` ifno DataSet could be removed.\n    @objc @discardableResult open func removeDataSetByIndex(_ index: Int) -> Bool\n    {\n        if index >= _dataSets.count || index < 0\n        {\n            return false\n        }\n        \n        _dataSets.remove(at: index)\n        \n        calcMinMax()\n        \n        return true\n    }\n    \n    /// Adds an Entry to the DataSet at the specified index. Entries are added to the end of the list.\n    @objc open func addEntry(_ e: ChartDataEntry, dataSetIndex: Int)\n    {\n        if _dataSets.count > dataSetIndex && dataSetIndex >= 0\n        {\n            let set = _dataSets[dataSetIndex]\n            \n            if !set.addEntry(e) { return }\n            \n            calcMinMax(entry: e, axis: set.axisDependency)\n        }\n        else\n        {\n            print(\"ChartData.addEntry() - Cannot add Entry because dataSetIndex too high or too low.\", terminator: \"\\n\")\n        }\n    }\n    \n    /// Removes the given Entry object from the DataSet at the specified index.\n    @objc @discardableResult open func removeEntry(_ entry: ChartDataEntry, dataSetIndex: Int) -> Bool\n    {\n        // entry outofbounds\n        if dataSetIndex >= _dataSets.count\n        {\n            return false\n        }\n        \n        // remove the entry from the dataset\n        let removed = _dataSets[dataSetIndex].removeEntry(entry)\n        \n        if removed\n        {\n            calcMinMax()\n        }\n        \n        return removed\n    }\n    \n    /// Removes the Entry object closest to the given xIndex from the ChartDataSet at the\n    /// specified index. \n    ///\n    /// - Returns: `true` if an entry was removed, `false` ifno Entry was found that meets the specified requirements.\n    @objc @discardableResult open func removeEntry(xValue: Double, dataSetIndex: Int) -> Bool\n    {\n        if dataSetIndex >= _dataSets.count\n        {\n            return false\n        }\n        \n        if let entry = _dataSets[dataSetIndex].entryForXValue(xValue, closestToY: Double.nan)\n        {\n            return removeEntry(entry, dataSetIndex: dataSetIndex)\n        }\n        \n        return false\n    }\n    \n    /// - Returns: The DataSet that contains the provided Entry, or null, if no DataSet contains this entry.\n    @objc open func getDataSetForEntry(_ e: ChartDataEntry) -> IChartDataSet?\n    {\n        return _dataSets.first { $0.entryForXValue(e.x, closestToY: e.y) === e }\n    }\n\n    /// - Returns: The index of the provided DataSet in the DataSet array of this data object, or -1 if it does not exist.\n    @objc open func indexOfDataSet(_ dataSet: IChartDataSet) -> Int\n    {\n        // TODO: Return nil instead of -1\n        return _dataSets.firstIndex { $0 === dataSet } ?? -1\n    }\n    \n    /// - Returns: The first DataSet from the datasets-array that has it's dependency on the left axis. Returns null if no DataSet with left dependency could be found.\n    @objc open func getFirstLeft(dataSets: [IChartDataSet]) -> IChartDataSet?\n    {\n        return dataSets.first { $0.axisDependency == .left }\n    }\n    \n    /// - Returns: The first DataSet from the datasets-array that has it's dependency on the right axis. Returns null if no DataSet with right dependency could be found.\n    @objc open func getFirstRight(dataSets: [IChartDataSet]) -> IChartDataSet?\n    {\n        return dataSets.first { $0.axisDependency == .right }\n    }\n    \n    /// - Returns: All colors used across all DataSet objects this object represents.\n    @objc open func getColors() -> [NSUIColor]?\n    {\n        // TODO: Don't return nil\n        return _dataSets.flatMap { $0.colors }\n    }\n    \n    /// Sets a custom IValueFormatter for all DataSets this data object contains.\n    @objc open func setValueFormatter(_ formatter: IValueFormatter)\n    {\n        dataSets.forEach { $0.valueFormatter = formatter }\n    }\n    \n    /// Sets the color of the value-text (color in which the value-labels are drawn) for all DataSets this data object contains.\n    @objc open func setValueTextColor(_ color: NSUIColor)\n    {\n        dataSets.forEach { $0.valueTextColor = color }\n    }\n    \n    /// Sets the font for all value-labels for all DataSets this data object contains.\n    @objc open func setValueFont(_ font: NSUIFont)\n    {\n        dataSets.forEach { $0.valueFont = font }\n    }\n\n    /// Enables / disables drawing values (value-text) for all DataSets this data object contains.\n    @objc open func setDrawValues(_ enabled: Bool)\n    {\n        dataSets.forEach { $0.drawValuesEnabled = enabled }\n    }\n    \n    /// Enables / disables highlighting values for all DataSets this data object contains.\n    /// If set to true, this means that values can be highlighted programmatically or by touch gesture.\n    @objc open var highlightEnabled: Bool\n    {\n        get { return dataSets.allSatisfy { $0.highlightEnabled } }\n        set { dataSets.forEach { $0.highlightEnabled = newValue } }\n    }\n    \n    /// if true, value highlightning is enabled\n    @objc open var isHighlightEnabled: Bool { return highlightEnabled }\n    \n    /// Clears this data object from all DataSets and removes all Entries.\n    /// Don't forget to invalidate the chart after this.\n    @objc open func clearValues()\n    {\n        dataSets.removeAll(keepingCapacity: false)\n        notifyDataChanged()\n    }\n    \n    /// Checks if this data object contains the specified DataSet. \n    ///\n    /// - Returns: `true` if so, `false` ifnot.\n    @objc open func contains(dataSet: IChartDataSet) -> Bool\n    {\n        return dataSets.contains { $0 === dataSet }\n    }\n    \n    /// The total entry count across all DataSet objects this data object contains.\n    @objc open var entryCount: Int\n    {\n        return _dataSets.reduce(0) { $0 + $1.entryCount }\n    }\n\n    /// The DataSet object with the maximum number of entries or null if there are no DataSets.\n    @objc open var maxEntryCountSet: IChartDataSet?\n    {\n        return dataSets.max { $0.entryCount < $1.entryCount }\n    }\n\n    // MARK: - Accessibility\n\n    /// When the data entry labels are generated identifiers, set this property to prepend a string before each identifier\n    ///\n    /// For example, if a label is \"#3\", settings this property to \"Item\" allows it to be spoken as \"Item #3\"\n    @objc open var accessibilityEntryLabelPrefix: String?\n\n    /// When the data entry value requires a unit, use this property to append the string representation of the unit to the value\n    ///\n    /// For example, if a value is \"44.1\", setting this property to \"m\" allows it to be spoken as \"44.1 m\"\n    @objc open var accessibilityEntryLabelSuffix: String?\n\n    /// If the data entry value is a count, set this to true to allow plurals and other grammatical changes\n    /// **default**: false\n    @objc open var accessibilityEntryLabelSuffixIsCount: Bool = false\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift",
    "content": "//\n//  ChartDataEntry.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\n\nopen class ChartDataEntry: ChartDataEntryBase, NSCopying\n{\n    /// the x value\n    @objc open var x = 0.0\n    \n    public required init()\n    {\n        super.init()\n    }\n    \n    /// An Entry represents one single entry in the chart.\n    ///\n    /// - Parameters:\n    ///   - x: the x value\n    ///   - y: the y value (the actual value of the entry)\n    @objc public init(x: Double, y: Double)\n    {\n        super.init(y: y)\n        self.x = x\n    }\n    \n    /// An Entry represents one single entry in the chart.\n    ///\n    /// - Parameters:\n    ///   - x: the x value\n    ///   - y: the y value (the actual value of the entry)\n    ///   - data: Space for additional data this Entry represents.\n    \n    @objc public convenience init(x: Double, y: Double, data: Any?)\n    {\n        self.init(x: x, y: y)\n        self.data = data\n    }\n    \n    /// An Entry represents one single entry in the chart.\n    ///\n    /// - Parameters:\n    ///   - x: the x value\n    ///   - y: the y value (the actual value of the entry)\n    ///   - icon: icon image\n    \n    @objc public convenience init(x: Double, y: Double, icon: NSUIImage?)\n    {\n        self.init(x: x, y: y)\n        self.icon = icon\n    }\n    \n    /// An Entry represents one single entry in the chart.\n    ///\n    /// - Parameters:\n    ///   - x: the x value\n    ///   - y: the y value (the actual value of the entry)\n    ///   - icon: icon image\n    ///   - data: Space for additional data this Entry represents.\n    \n    @objc public convenience init(x: Double, y: Double, icon: NSUIImage?, data: Any?)\n    {\n        self.init(x: x, y: y)\n        self.icon = icon\n        self.data = data\n    }\n        \n    // MARK: NSObject\n    \n    open override var description: String\n    {\n        return \"ChartDataEntry, x: \\(x), y \\(y)\"\n    }\n    \n    // MARK: NSCopying\n    \n    open func copy(with zone: NSZone? = nil) -> Any\n    {\n        let copy = type(of: self).init()\n        \n        copy.x = x\n        copy.y = y\n        copy.data = data\n        \n        return copy\n    }\n}\n\n// MARK: Equatable\nextension ChartDataEntry/*: Equatable*/ {\n    open override func isEqual(_ object: Any?) -> Bool {\n        guard let object = object as? ChartDataEntry else { return false }\n\n        if self === object\n        {\n            return true\n        }\n\n        return y == object.y\n            && x == object.x\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift",
    "content": "//\n//  ChartDataEntryBase.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\n\nopen class ChartDataEntryBase: NSObject\n{\n    /// the y value\n    @objc open var y = 0.0\n    \n    /// optional spot for additional data this Entry represents\n    @objc open var data: Any?\n    \n    /// optional icon image\n    @objc open var icon: NSUIImage?\n    \n    public override required init()\n    {\n        super.init()\n    }\n    \n    /// An Entry represents one single entry in the chart.\n    ///\n    /// - Parameters:\n    ///   - y: the y value (the actual value of the entry)\n    @objc public init(y: Double)\n    {\n        super.init()\n        \n        self.y = y\n    }\n    \n    /// - Parameters:\n    ///   - y: the y value (the actual value of the entry)\n    ///   - data: Space for additional data this Entry represents.\n    \n    @objc public convenience init(y: Double, data: Any?)\n    {\n        self.init(y: y)\n        \n        self.data = data\n    }\n    \n    /// - Parameters:\n    ///   - y: the y value (the actual value of the entry)\n    ///   - icon: icon image\n    \n    @objc public convenience init(y: Double, icon: NSUIImage?)\n    {\n        self.init(y: y)\n\n        self.icon = icon\n    }\n    \n    /// - Parameters:\n    ///   - y: the y value (the actual value of the entry)\n    ///   - icon: icon image\n    ///   - data: Space for additional data this Entry represents.\n    \n    @objc public convenience init(y: Double, icon: NSUIImage?, data: Any?)\n    {\n        self.init(y: y)\n\n        self.icon = icon\n        self.data = data\n    }\n\n    // MARK: NSObject\n    \n    open override var description: String\n    {\n        return \"ChartDataEntryBase, y \\(y)\"\n    }\n}\n\n// MARK: Equatable\nextension ChartDataEntryBase/*: Equatable*/ {\n    open override func isEqual(_ object: Any?) -> Bool {\n        guard let object = object as? ChartDataEntryBase else { return false }\n\n        if self === object\n        {\n            return true\n        }\n\n        return y == object.y\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift",
    "content": "//\n//  ChartDataSet.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\n\n/// Determines how to round DataSet index values for `ChartDataSet.entryIndex(x, rounding)` when an exact x-value is not found.\n@objc\npublic enum ChartDataSetRounding: Int\n{\n    case up = 0\n    case down = 1\n    case closest = 2\n}\n\n/// The DataSet class represents one group or type of entries (Entry) in the Chart that belong together.\n/// It is designed to logically separate different groups of values inside the Chart (e.g. the values for a specific line in the LineChart, or the values of a specific group of bars in the BarChart).\nopen class ChartDataSet: ChartBaseDataSet\n{\n    public required init()\n    {\n        entries = []\n\n        super.init()\n    }\n    \n    public override convenience init(label: String?)\n    {\n        self.init(entries: nil, label: label)\n    }\n    \n    @objc public init(entries: [ChartDataEntry]?, label: String?)\n    {\n        self.entries = entries ?? []\n\n        super.init(label: label)\n\n        self.calcMinMax()\n    }\n    \n    @objc public convenience init(entries: [ChartDataEntry]?)\n    {\n        self.init(entries: entries, label: \"DataSet\")\n    }\n    \n    // MARK: - Data functions and accessors\n\n    /// - Note: Calls `notifyDataSetChanged()` after setting a new value.\n    /// - Returns: The array of y-values that this DataSet represents.\n    /// the entries that this dataset represents / holds together\n    @available(*, unavailable, renamed: \"entries\")\n    @objc\n    open var values: [ChartDataEntry] { return entries }\n\n    @objc\n    open private(set) var entries: [ChartDataEntry]\n\n    /// Used to replace all entries of a data set while retaining styling properties.\n    /// This is a separate method from a setter on `entries` to encourage usage\n    /// of `Collection` conformances.\n    ///\n    /// - Parameter entries: new entries to replace existing entries in the dataset\n    @objc\n    public func replaceEntries(_ entries: [ChartDataEntry]) {\n        self.entries = entries\n        notifyDataSetChanged()\n    }\n\n    /// maximum y-value in the value array\n    internal var _yMax: Double = -Double.greatestFiniteMagnitude\n    \n    /// minimum y-value in the value array\n    internal var _yMin: Double = Double.greatestFiniteMagnitude\n    \n    /// maximum x-value in the value array\n    internal var _xMax: Double = -Double.greatestFiniteMagnitude\n    \n    /// minimum x-value in the value array\n    internal var _xMin: Double = Double.greatestFiniteMagnitude\n    \n    open override func calcMinMax()\n    {\n        _yMax = -Double.greatestFiniteMagnitude\n        _yMin = Double.greatestFiniteMagnitude\n        _xMax = -Double.greatestFiniteMagnitude\n        _xMin = Double.greatestFiniteMagnitude\n\n        guard !isEmpty else { return }\n\n        forEach(calcMinMax)\n    }\n    \n    open override func calcMinMaxY(fromX: Double, toX: Double)\n    {\n        _yMax = -Double.greatestFiniteMagnitude\n        _yMin = Double.greatestFiniteMagnitude\n\n        guard !isEmpty else { return }\n        \n        let indexFrom = entryIndex(x: fromX, closestToY: Double.nan, rounding: .down)\n        let indexTo = entryIndex(x: toX, closestToY: Double.nan, rounding: .up)\n        \n        guard !(indexTo < indexFrom) else { return }\n        // only recalculate y\n        self[indexFrom...indexTo].forEach(calcMinMaxY)\n    }\n    \n    @objc open func calcMinMaxX(entry e: ChartDataEntry)\n    {\n        if e.x < _xMin\n        {\n            _xMin = e.x\n        }\n        if e.x > _xMax\n        {\n            _xMax = e.x\n        }\n    }\n    \n    @objc open func calcMinMaxY(entry e: ChartDataEntry)\n    {\n        if e.y < _yMin\n        {\n            _yMin = e.y\n        }\n        if e.y > _yMax\n        {\n            _yMax = e.y\n        }\n    }\n    \n    /// Updates the min and max x and y value of this DataSet based on the given Entry.\n    ///\n    /// - Parameters:\n    ///   - e:\n    internal func calcMinMax(entry e: ChartDataEntry)\n    {\n        calcMinMaxX(entry: e)\n        calcMinMaxY(entry: e)\n    }\n    \n    /// The minimum y-value this DataSet holds\n    open override var yMin: Double { return _yMin }\n    \n    /// The maximum y-value this DataSet holds\n    open override var yMax: Double { return _yMax }\n    \n    /// The minimum x-value this DataSet holds\n    open override var xMin: Double { return _xMin }\n    \n    /// The maximum x-value this DataSet holds\n    open override var xMax: Double { return _xMax }\n    \n    /// The number of y-values this DataSet represents\n    @available(*, deprecated, message: \"Use `count` instead\")\n    open override var entryCount: Int { return count }\n    \n    /// - Throws: out of bounds\n    /// if `i` is out of bounds, it may throw an out-of-bounds exception\n    /// - Returns: The entry object found at the given index (not x-value!)\n    @available(*, deprecated, message: \"Use `subscript(index:)` instead.\")\n    open override func entryForIndex(_ i: Int) -> ChartDataEntry?\n    {\n        guard i >= startIndex, i < endIndex else {\n            return nil\n        }\n        return self[i]\n    }\n    \n    /// - Parameters:\n    ///   - xValue: the x-value\n    ///   - closestToY: If there are multiple y-values for the specified x-value,\n    ///   - rounding: determine whether to round up/down/closest if there is no Entry matching the provided x-value\n    /// - Returns: The first Entry object found at the given x-value with binary search.\n    /// If the no Entry at the specified x-value is found, this method returns the Entry at the closest x-value according to the rounding.\n    /// nil if no Entry object at that x-value.\n    open override func entryForXValue(\n        _ xValue: Double,\n        closestToY yValue: Double,\n        rounding: ChartDataSetRounding) -> ChartDataEntry?\n    {\n        let index = entryIndex(x: xValue, closestToY: yValue, rounding: rounding)\n        if index > -1\n        {\n            return self[index]\n        }\n        return nil\n    }\n    \n    /// - Parameters:\n    ///   - xValue: the x-value\n    ///   - closestToY: If there are multiple y-values for the specified x-value,\n    /// - Returns: The first Entry object found at the given x-value with binary search.\n    /// If the no Entry at the specified x-value is found, this method returns the Entry at the closest x-value.\n    /// nil if no Entry object at that x-value.\n    open override func entryForXValue(\n        _ xValue: Double,\n        closestToY yValue: Double) -> ChartDataEntry?\n    {\n        return entryForXValue(xValue, closestToY: yValue, rounding: .closest)\n    }\n    \n    /// - Returns: All Entry objects found at the given xIndex with binary search.\n    /// An empty array if no Entry object at that index.\n    open override func entriesForXValue(_ xValue: Double) -> [ChartDataEntry]\n    {\n        var entries = [ChartDataEntry]()\n        \n        var low = startIndex\n        var high = endIndex - 1\n        \n        while low <= high\n        {\n            var m = (high + low) / 2\n            var entry = self[m]\n            \n            // if we have a match\n            if xValue == entry.x\n            {\n                while m > 0 && self[m - 1].x == xValue\n                {\n                    m -= 1\n                }\n                \n                high = endIndex\n                \n                // loop over all \"equal\" entries\n                while m < high\n                {\n                    entry = self[m]\n                    if entry.x == xValue\n                    {\n                        entries.append(entry)\n                    }\n                    else\n                    {\n                        break\n                    }\n                    \n                    m += 1\n                }\n                \n                break\n            }\n            else\n            {\n                if xValue > entry.x\n                {\n                    low = m + 1\n                }\n                else\n                {\n                    high = m - 1\n                }\n            }\n        }\n        \n        return entries\n    }\n    \n    /// - Parameters:\n    ///   - xValue: x-value of the entry to search for\n    ///   - closestToY: If there are multiple y-values for the specified x-value,\n    ///   - rounding: Rounding method if exact value was not found\n    /// - Returns: The array-index of the specified entry.\n    /// If the no Entry at the specified x-value is found, this method returns the index of the Entry at the closest x-value according to the rounding.\n    open override func entryIndex(\n        x xValue: Double,\n        closestToY yValue: Double,\n        rounding: ChartDataSetRounding) -> Int\n    {\n        var low = startIndex\n        var high = endIndex - 1\n        var closest = high\n        \n        while low < high\n        {\n            let m = (low + high) / 2\n            \n            let d1 = self[m].x - xValue\n            let d2 = self[m + 1].x - xValue\n            let ad1 = abs(d1), ad2 = abs(d2)\n            \n            if ad2 < ad1\n            {\n                // [m + 1] is closer to xValue\n                // Search in an higher place\n                low = m + 1\n            }\n            else if ad1 < ad2\n            {\n                // [m] is closer to xValue\n                // Search in a lower place\n                high = m\n            }\n            else\n            {\n                // We have multiple sequential x-value with same distance\n                \n                if d1 >= 0.0\n                {\n                    // Search in a lower place\n                    high = m\n                }\n                else if d1 < 0.0\n                {\n                    // Search in an higher place\n                    low = m + 1\n                }\n            }\n            \n            closest = high\n        }\n        \n        if closest != -1\n        {\n            let closestXValue = self[closest].x\n            \n            if rounding == .up\n            {\n                // If rounding up, and found x-value is lower than specified x, and we can go upper...\n                if closestXValue < xValue && closest < endIndex - 1\n                {\n                    closest += 1\n                }\n            }\n            else if rounding == .down\n            {\n                // If rounding down, and found x-value is upper than specified x, and we can go lower...\n                if closestXValue > xValue && closest > 0\n                {\n                    closest -= 1\n                }\n            }\n            \n            // Search by closest to y-value\n            if !yValue.isNaN\n            {\n                while closest > 0 && self[closest - 1].x == closestXValue\n                {\n                    closest -= 1\n                }\n                \n                var closestYValue = self[closest].y\n                var closestYIndex = closest\n                \n                while true\n                {\n                    closest += 1\n                    if closest >= endIndex { break }\n                    \n                    let value = self[closest]\n                    \n                    if value.x != closestXValue { break }\n                    if abs(value.y - yValue) <= abs(closestYValue - yValue)\n                    {\n                        closestYValue = yValue\n                        closestYIndex = closest\n                    }\n                }\n                \n                closest = closestYIndex\n            }\n        }\n        \n        return closest\n    }\n    \n    /// - Parameters:\n    ///   - e: the entry to search for\n    /// - Returns: The array-index of the specified entry\n    @available(*, deprecated, message: \"Use `firstIndex(of:)` or `lastIndex(of:)`\")\n    open override func entryIndex(entry e: ChartDataEntry) -> Int\n    {\n        return firstIndex(of: e) ?? -1\n    }\n    \n    /// Adds an Entry to the DataSet dynamically.\n    /// Entries are added to the end of the list.\n    /// This will also recalculate the current minimum and maximum values of the DataSet and the value-sum.\n    ///\n    /// - Parameters:\n    ///   - e: the entry to add\n    /// - Returns: True\n    @available(*, deprecated, message: \"Use `append(_:)` instead\")\n    open override func addEntry(_ e: ChartDataEntry) -> Bool\n    {\n        append(e)\n        return true\n    }\n    \n    /// Adds an Entry to the DataSet dynamically.\n    /// Entries are added to their appropriate index respective to it's x-index.\n    /// This will also recalculate the current minimum and maximum values of the DataSet and the value-sum.\n    ///\n    /// - Parameters:\n    ///   - e: the entry to add\n    /// - Returns: True\n    open override func addEntryOrdered(_ e: ChartDataEntry) -> Bool\n    {\n        calcMinMax(entry: e)\n        \n        if let last = last, last.x > e.x\n        {\n            var closestIndex = entryIndex(x: e.x, closestToY: e.y, rounding: .up)\n            while self[closestIndex].x < e.x\n            {\n                closestIndex += 1\n            }\n            entries.insert(e, at: closestIndex)\n        }\n        else\n        {\n            append(e)\n        }\n        \n        return true\n    }\n    \n    @available(*, renamed: \"remove(_:)\")\n    open override func removeEntry(_ entry: ChartDataEntry) -> Bool\n    {\n        return remove(entry)\n    }\n\n    /// Removes an Entry from the DataSet dynamically.\n    /// This will also recalculate the current minimum and maximum values of the DataSet and the value-sum.\n    ///\n    /// - Parameters:\n    ///   - entry: the entry to remove\n    /// - Returns: `true` if the entry was removed successfully, else if the entry does not exist\n    open func remove(_ entry: ChartDataEntry) -> Bool\n    {\n        guard let index = firstIndex(of: entry) else { return false }\n        _ = remove(at: index)\n        return true\n    }\n\n    /// Removes the first Entry (at index 0) of this DataSet from the entries array.\n    ///\n    /// - Returns: `true` if successful, `false` if not.\n    @available(*, deprecated, message: \"Use `func removeFirst() -> ChartDataEntry` instead.\")\n    open override func removeFirst() -> Bool\n    {\n        let entry: ChartDataEntry? = isEmpty ? nil : removeFirst()\n        return entry != nil\n    }\n    \n    /// Removes the last Entry (at index size-1) of this DataSet from the entries array.\n    ///\n    /// - Returns: `true` if successful, `false` if not.\n    @available(*, deprecated, message: \"Use `func removeLast() -> ChartDataEntry` instead.\")\n    open override func removeLast() -> Bool\n    {\n        let entry: ChartDataEntry? = isEmpty ? nil : removeLast()\n        return entry != nil\n    }\n\n    /// Removes all values from this DataSet and recalculates min and max value.\n    @available(*, deprecated, message: \"Use `removeAll(keepingCapacity:)` instead.\")\n    open override func clear()\n    {\n        removeAll(keepingCapacity: true)\n    }\n    \n    // MARK: - Data functions and accessors\n\n    // MARK: - NSCopying\n    \n    open override func copy(with zone: NSZone? = nil) -> Any\n    {\n        let copy = super.copy(with: zone) as! ChartDataSet\n        \n        copy.entries = entries\n        copy._yMax = _yMax\n        copy._yMin = _yMin\n        copy._xMax = _xMax\n        copy._xMin = _xMin\n\n        return copy\n    }\n}\n\n// MARK: MutableCollection\nextension ChartDataSet: MutableCollection {\n    public typealias Index = Int\n    public typealias Element = ChartDataEntry\n\n    public var startIndex: Index {\n        return entries.startIndex\n    }\n\n    public var endIndex: Index {\n        return entries.endIndex\n    }\n\n    public func index(after: Index) -> Index {\n        return entries.index(after: after)\n    }\n\n    @objc\n    public subscript(position: Index) -> Element {\n        get {\n            // This is intentionally not a safe subscript to mirror\n            // the behaviour of the built in Swift Collection Types\n            return entries[position]\n        }\n        set {\n            calcMinMax(entry: newValue)\n            entries[position] = newValue\n        }\n    }\n}\n\n// MARK: RandomAccessCollection\nextension ChartDataSet: RandomAccessCollection {\n    public func index(before: Index) -> Index {\n        return entries.index(before: before)\n    }\n}\n\n// MARK: RangeReplaceableCollection\nextension ChartDataSet: RangeReplaceableCollection {\n    public func append(_ newElement: Element) {\n        calcMinMax(entry: newElement)\n        entries.append(newElement)\n    }\n\n    public func remove(at position: Index) -> Element {\n        let element = entries.remove(at: position)\n        notifyDataSetChanged()\n        return element\n    }\n\n    public func removeFirst() -> Element {\n        let element = entries.removeFirst()\n        notifyDataSetChanged()\n        return element\n    }\n\n    public func removeFirst(_ n: Int) {\n        entries.removeFirst(n)\n        notifyDataSetChanged()\n    }\n\n    public func removeLast() -> Element {\n        let element = entries.removeLast()\n        notifyDataSetChanged()\n        return element\n    }\n\n    public func removeLast(_ n: Int) {\n        entries.removeLast(n)\n        notifyDataSetChanged()\n    }\n\n    public func removeSubrange<R>(_ bounds: R) where R : RangeExpression, Index == R.Bound {\n        entries.removeSubrange(bounds)\n        notifyDataSetChanged()\n    }\n\n    @objc\n    public func removeAll(keepingCapacity keepCapacity: Bool) {\n        entries.removeAll(keepingCapacity: keepCapacity)\n        notifyDataSetChanged()\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift",
    "content": "//\n//  CombinedChartData.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\n\nopen class CombinedChartData: BarLineScatterCandleBubbleChartData\n{\n    private var _lineData: LineChartData!\n    private var _barData: BarChartData!\n    private var _scatterData: ScatterChartData!\n    private var _candleData: CandleChartData!\n    private var _bubbleData: BubbleChartData!\n    \n    public override init()\n    {\n        super.init()\n    }\n    \n    public override init(dataSets: [IChartDataSet]?)\n    {\n        super.init(dataSets: dataSets)\n    }\n    \n    @objc open var lineData: LineChartData!\n    {\n        get\n        {\n            return _lineData\n        }\n        set\n        {\n            _lineData = newValue\n            notifyDataChanged()\n        }\n    }\n    \n    @objc open var barData: BarChartData!\n    {\n        get\n        {\n            return _barData\n        }\n        set\n        {\n            _barData = newValue\n            notifyDataChanged()\n        }\n    }\n    \n    @objc open var scatterData: ScatterChartData!\n    {\n        get\n        {\n            return _scatterData\n        }\n        set\n        {\n            _scatterData = newValue\n            notifyDataChanged()\n        }\n    }\n    \n    @objc open var candleData: CandleChartData!\n    {\n        get\n        {\n            return _candleData\n        }\n        set\n        {\n            _candleData = newValue\n            notifyDataChanged()\n        }\n    }\n    \n    @objc open var bubbleData: BubbleChartData!\n    {\n        get\n        {\n            return _bubbleData\n        }\n        set\n        {\n            _bubbleData = newValue\n            notifyDataChanged()\n        }\n    }\n    \n    open override func calcMinMax()\n    {\n        _dataSets.removeAll()\n        \n        _yMax = -Double.greatestFiniteMagnitude\n        _yMin = Double.greatestFiniteMagnitude\n        _xMax = -Double.greatestFiniteMagnitude\n        _xMin = Double.greatestFiniteMagnitude\n        \n        _leftAxisMax = -Double.greatestFiniteMagnitude\n        _leftAxisMin = Double.greatestFiniteMagnitude\n        _rightAxisMax = -Double.greatestFiniteMagnitude\n        _rightAxisMin = Double.greatestFiniteMagnitude\n        \n        let allData = self.allData\n        \n        for data in allData\n        {\n            data.calcMinMax()\n            \n            let sets = data.dataSets\n            _dataSets.append(contentsOf: sets)\n            \n            if data.yMax > _yMax\n            {\n                _yMax = data.yMax\n            }\n            \n            if data.yMin < _yMin\n            {\n                _yMin = data.yMin\n            }\n            \n            if data.xMax > _xMax\n            {\n                _xMax = data.xMax\n            }\n            \n            if data.xMin < _xMin\n            {\n                _xMin = data.xMin\n            }\n\n            for dataset in sets\n            {\n                if dataset.axisDependency == .left\n                {\n                    if dataset.yMax > _leftAxisMax\n                    {\n                        _leftAxisMax = dataset.yMax\n                    }\n                    if dataset.yMin < _leftAxisMin\n                    {\n                        _leftAxisMin = dataset.yMin\n                    }\n                }\n                else\n                {\n                    if dataset.yMax > _rightAxisMax\n                    {\n                        _rightAxisMax = dataset.yMax\n                    }\n                    if dataset.yMin < _rightAxisMin\n                    {\n                        _rightAxisMin = dataset.yMin\n                    }\n                }\n            }\n        }\n    }\n    \n    /// All data objects in row: line-bar-scatter-candle-bubble if not null.\n    @objc open var allData: [ChartData]\n    {\n        var data = [ChartData]()\n        \n        if lineData !== nil\n        {\n            data.append(lineData)\n        }\n        if barData !== nil\n        {\n            data.append(barData)\n        }\n        if scatterData !== nil\n        {\n            data.append(scatterData)\n        }\n        if candleData !== nil\n        {\n            data.append(candleData)\n        }\n        if bubbleData !== nil\n        {\n            data.append(bubbleData)\n        }\n        \n        return data\n    }\n    \n    @objc open func dataByIndex(_ index: Int) -> ChartData\n    {\n        return allData[index]\n    }\n    \n    open func dataIndex(_ data: ChartData) -> Int?\n    {\n        return allData.firstIndex(of: data)\n    }\n    \n    open override func removeDataSet(_ dataSet: IChartDataSet) -> Bool\n    {\n        return allData.contains { $0.removeDataSet(dataSet) }\n    }\n    \n    open override func removeDataSetByIndex(_ index: Int) -> Bool\n    {\n        print(\"removeDataSet(index) not supported for CombinedData\", terminator: \"\\n\")\n        return false\n    }\n    \n    open override func removeEntry(_ entry: ChartDataEntry, dataSetIndex: Int) -> Bool\n    {\n        print(\"removeEntry(entry, dataSetIndex) not supported for CombinedData\", terminator: \"\\n\")\n        return false\n    }\n    \n    open override func removeEntry(xValue: Double, dataSetIndex: Int) -> Bool\n    {\n        print(\"removeEntry(xValue, dataSetIndex) not supported for CombinedData\", terminator: \"\\n\")\n        return false\n    }\n    \n    open override func notifyDataChanged()\n    {\n        if _lineData !== nil\n        {\n            _lineData.notifyDataChanged()\n        }\n        if _barData !== nil\n        {\n            _barData.notifyDataChanged()\n        }\n        if _scatterData !== nil\n        {\n            _scatterData.notifyDataChanged()\n        }\n        if _candleData !== nil\n        {\n            _candleData.notifyDataChanged()\n        }\n        if _bubbleData !== nil\n        {\n            _bubbleData.notifyDataChanged()\n        }\n        \n        super.notifyDataChanged() // recalculate everything\n    }\n    \n    /// Get the Entry for a corresponding highlight object\n    ///\n    /// - Parameters:\n    ///   - highlight:\n    /// - Returns: The entry that is highlighted\n    open override func entryForHighlight(_ highlight: Highlight) -> ChartDataEntry?\n    {\n        if highlight.dataIndex >= allData.count\n        {\n            return nil\n        }\n        \n        let data = dataByIndex(highlight.dataIndex)\n        \n        if highlight.dataSetIndex >= data.dataSetCount\n        {\n            return nil\n        }\n        \n        // The value of the highlighted entry could be NaN - if we are not interested in highlighting a specific value.\n        let entries = data.getDataSetByIndex(highlight.dataSetIndex).entriesForXValue(highlight.x)\n        return entries.first { $0.y == highlight.y || highlight.y.isNaN }\n    }\n    \n    /// Get dataset for highlight\n    ///\n    /// - Parameters:\n    ///   - highlight: current highlight\n    /// - Returns: dataset related to highlight\n    @objc open func getDataSetByHighlight(_ highlight: Highlight) -> IChartDataSet!\n    {  \n        if highlight.dataIndex >= allData.count\n        {\n            return nil\n        }\n        \n        let data = dataByIndex(highlight.dataIndex)\n        \n        if highlight.dataSetIndex >= data.dataSetCount\n        {\n            return nil\n        }\n        \n        return data.dataSets[highlight.dataSetIndex]\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift",
    "content": "//\n//  LineChartData.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\n\n/// Data object that encapsulates all data associated with a LineChart.\nopen class LineChartData: ChartData\n{\n    public override init()\n    {\n        super.init()\n    }\n    \n    public override init(dataSets: [IChartDataSet]?)\n    {\n        super.init(dataSets: dataSets)\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift",
    "content": "//\n//  LineChartDataSet.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n\nopen class LineChartDataSet: LineRadarChartDataSet, ILineChartDataSet\n{\n    @objc(LineChartMode)\n    public enum Mode: Int\n    {\n        case linear\n        case stepped\n        case cubicBezier\n        case horizontalBezier\n    }\n    \n    private func initialize()\n    {\n        // default color\n        circleColors.append(NSUIColor(red: 140.0/255.0, green: 234.0/255.0, blue: 255.0/255.0, alpha: 1.0))\n    }\n    \n    public required init()\n    {\n        super.init()\n        initialize()\n    }\n    \n    public override init(entries: [ChartDataEntry]?, label: String?)\n    {\n        super.init(entries: entries, label: label)\n        initialize()\n    }\n    \n    // MARK: - Data functions and accessors\n    \n    // MARK: - Styling functions and accessors\n    \n    /// The drawing mode for this line dataset\n    ///\n    /// **default**: Linear\n    open var mode: Mode = Mode.linear\n    \n    private var _cubicIntensity = CGFloat(0.2)\n    \n    /// Intensity for cubic lines (min = 0.05, max = 1)\n    ///\n    /// **default**: 0.2\n    open var cubicIntensity: CGFloat\n    {\n        get\n        {\n            return _cubicIntensity\n        }\n        set\n        {\n            _cubicIntensity = newValue.clamped(to: 0.05...1)\n        }\n    }\n        \n    /// The radius of the drawn circles.\n    open var circleRadius = CGFloat(8.0)\n    \n    /// The hole radius of the drawn circles\n    open var circleHoleRadius = CGFloat(4.0)\n    \n    open var circleColors = [NSUIColor]()\n    \n    /// - Returns: The color at the given index of the DataSet's circle-color array.\n    /// Performs a IndexOutOfBounds check by modulus.\n    open func getCircleColor(atIndex index: Int) -> NSUIColor?\n    {\n        let size = circleColors.count\n        let index = index % size\n        if index >= size\n        {\n            return nil\n        }\n        return circleColors[index]\n    }\n    \n    /// Sets the one and ONLY color that should be used for this DataSet.\n    /// Internally, this recreates the colors array and adds the specified color.\n    open func setCircleColor(_ color: NSUIColor)\n    {\n        circleColors.removeAll(keepingCapacity: false)\n        circleColors.append(color)\n    }\n    \n    open func setCircleColors(_ colors: NSUIColor...)\n    {\n        circleColors.removeAll(keepingCapacity: false)\n        circleColors.append(contentsOf: colors)\n    }\n    \n    /// Resets the circle-colors array and creates a new one\n    open func resetCircleColors(_ index: Int)\n    {\n        circleColors.removeAll(keepingCapacity: false)\n    }\n    \n    /// If true, drawing circles is enabled\n    open var drawCirclesEnabled = true\n    \n    /// `true` if drawing circles for this DataSet is enabled, `false` ifnot\n    open var isDrawCirclesEnabled: Bool { return drawCirclesEnabled }\n    \n    /// The color of the inner circle (the circle-hole).\n    open var circleHoleColor: NSUIColor? = NSUIColor.white\n    \n    /// `true` if drawing circles for this DataSet is enabled, `false` ifnot\n    open var drawCircleHoleEnabled = true\n    \n    /// `true` if drawing the circle-holes is enabled, `false` ifnot.\n    open var isDrawCircleHoleEnabled: Bool { return drawCircleHoleEnabled }\n    \n    /// This is how much (in pixels) into the dash pattern are we starting from.\n    open var lineDashPhase = CGFloat(0.0)\n    \n    /// This is the actual dash pattern.\n    /// I.e. [2, 3] will paint [--   --   ]\n    /// [1, 3, 4, 2] will paint [-   ----  -   ----  ]\n    open var lineDashLengths: [CGFloat]?\n    \n    /// Line cap type, default is CGLineCap.Butt\n    open var lineCapType = CGLineCap.butt\n    \n    /// formatter for customizing the position of the fill-line\n    private var _fillFormatter: IFillFormatter = DefaultFillFormatter()\n    \n    /// Sets a custom IFillFormatter to the chart that handles the position of the filled-line for each DataSet. Set this to null to use the default logic.\n    open var fillFormatter: IFillFormatter?\n    {\n        get\n        {\n            return _fillFormatter\n        }\n        set\n        {\n            _fillFormatter = newValue ?? DefaultFillFormatter()\n        }\n    }\n    \n    // MARK: NSCopying\n    \n    open override func copy(with zone: NSZone? = nil) -> Any\n    {\n        let copy = super.copy(with: zone) as! LineChartDataSet\n        copy.circleColors = circleColors\n        copy.circleHoleColor = circleHoleColor\n        copy.circleRadius = circleRadius\n        copy.circleHoleRadius = circleHoleRadius\n        copy.cubicIntensity = cubicIntensity\n        copy.lineDashPhase = lineDashPhase\n        copy.lineDashLengths = lineDashLengths\n        copy.lineCapType = lineCapType\n        copy.drawCirclesEnabled = drawCirclesEnabled\n        copy.drawCircleHoleEnabled = drawCircleHoleEnabled\n        copy.mode = mode\n        copy._fillFormatter = _fillFormatter\n        return copy\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift",
    "content": "//\n//  LineRadarChartDataSet.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n\nopen class LineRadarChartDataSet: LineScatterCandleRadarChartDataSet, ILineRadarChartDataSet\n{\n    // MARK: - Data functions and accessors\n    \n    // MARK: - Styling functions and accessors\n    \n    /// The color that is used for filling the line surface area.\n    private var _fillColor = NSUIColor(red: 140.0/255.0, green: 234.0/255.0, blue: 255.0/255.0, alpha: 1.0)\n    \n    /// The color that is used for filling the line surface area.\n    open var fillColor: NSUIColor\n    {\n        get { return _fillColor }\n        set\n        {\n            _fillColor = newValue\n            fill = nil\n        }\n    }\n    \n    /// The object that is used for filling the area below the line.\n    /// **default**: nil\n    open var fill: Fill?\n    \n    /// The alpha value that is used for filling the line surface,\n    /// **default**: 0.33\n    open var fillAlpha = CGFloat(0.33)\n    \n    private var _lineWidth = CGFloat(1.0)\n    \n    /// line width of the chart (min = 0.0, max = 10)\n    ///\n    /// **default**: 1\n    open var lineWidth: CGFloat\n    {\n        get\n        {\n            return _lineWidth\n        }\n        set\n        {\n            _lineWidth = newValue.clamped(to: 0...10)\n        }\n    }\n    \n    /// Set to `true` if the DataSet should be drawn filled (surface), and not just as a line.\n    /// Disabling this will give great performance boost.\n    /// Please note that this method uses the path clipping for drawing the filled area (with images, gradients and layers).\n    open var drawFilledEnabled = false\n    \n    /// `true` if filled drawing is enabled, `false` ifnot\n    open var isDrawFilledEnabled: Bool\n    {\n        return drawFilledEnabled\n    }\n    \n    // MARK: NSCopying\n    \n    open override func copy(with zone: NSZone? = nil) -> Any\n    {\n        let copy = super.copy(with: zone) as! LineRadarChartDataSet\n        copy.fill = fill\n        copy.fillAlpha = fillAlpha\n        copy._fillColor = _fillColor\n        copy._lineWidth = _lineWidth\n        copy.drawFilledEnabled = drawFilledEnabled\n        return copy\n    }\n    \n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift",
    "content": "//\n//  LineScatterCandleRadarChartDataSet.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\n\n\nopen class LineScatterCandleRadarChartDataSet: BarLineScatterCandleBubbleChartDataSet, ILineScatterCandleRadarChartDataSet\n{\n    // MARK: - Data functions and accessors\n    \n    // MARK: - Styling functions and accessors\n    \n    /// Enables / disables the horizontal highlight-indicator. If disabled, the indicator is not drawn.\n    open var drawHorizontalHighlightIndicatorEnabled = true\n    \n    /// Enables / disables the vertical highlight-indicator. If disabled, the indicator is not drawn.\n    open var drawVerticalHighlightIndicatorEnabled = true\n    \n    /// `true` if horizontal highlight indicator lines are enabled (drawn)\n    open var isHorizontalHighlightIndicatorEnabled: Bool { return drawHorizontalHighlightIndicatorEnabled }\n    \n    /// `true` if vertical highlight indicator lines are enabled (drawn)\n    open var isVerticalHighlightIndicatorEnabled: Bool { return drawVerticalHighlightIndicatorEnabled }\n    \n    /// Enables / disables both vertical and horizontal highlight-indicators.\n    /// :param: enabled\n    open func setDrawHighlightIndicators(_ enabled: Bool)\n    {\n        drawHorizontalHighlightIndicatorEnabled = enabled\n        drawVerticalHighlightIndicatorEnabled = enabled\n    }\n    \n    // MARK: NSCopying\n    \n    open override func copy(with zone: NSZone? = nil) -> Any\n    {\n        let copy = super.copy(with: zone) as! LineScatterCandleRadarChartDataSet\n        copy.drawHorizontalHighlightIndicatorEnabled = drawHorizontalHighlightIndicatorEnabled\n        copy.drawVerticalHighlightIndicatorEnabled = drawVerticalHighlightIndicatorEnabled\n        return copy\n    }\n    \n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift",
    "content": "//\n//  PieData.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\n\nopen class PieChartData: ChartData\n{\n    public override init()\n    {\n        super.init()\n    }\n    \n    public override init(dataSets: [IChartDataSet]?)\n    {\n        super.init(dataSets: dataSets)\n    }\n\n    /// All DataSet objects this ChartData object holds.\n    @objc open override var dataSets: [IChartDataSet]\n    {\n        get\n        {\n            assert(super.dataSets.count <= 1, \"Found multiple data sets while pie chart only allows one\")\n            return super.dataSets\n        }\n        set\n        {\n            super.dataSets = newValue\n        }\n    }\n\n    @objc var dataSet: IPieChartDataSet?\n    {\n        get\n        {\n            return dataSets.count > 0 ? dataSets[0] as? IPieChartDataSet : nil\n        }\n        set\n        {\n            if let newValue = newValue\n            {\n                dataSets = [newValue]\n            }\n            else\n            {\n                dataSets = []\n            }\n        }\n    }\n    \n    open override func getDataSetByIndex(_ index: Int) -> IChartDataSet?\n    {\n        if index != 0\n        {\n            return nil\n        }\n        return super.getDataSetByIndex(index)\n    }\n    \n    open override func getDataSetByLabel(_ label: String, ignorecase: Bool) -> IChartDataSet?\n    {\n        if dataSets.count == 0 || dataSets[0].label == nil\n        {\n            return nil\n        }\n        \n        if ignorecase\n        {\n            if let label = dataSets[0].label, label.caseInsensitiveCompare(label) == .orderedSame\n            {\n                return dataSets[0]\n            }\n        }\n        else\n        {\n            if label == dataSets[0].label\n            {\n                return dataSets[0]\n            }\n        }\n        return nil\n    }\n    \n    open override func entryForHighlight(_ highlight: Highlight) -> ChartDataEntry?\n    {\n        return dataSet?.entryForIndex(Int(highlight.x))\n    }\n    \n    open override func addDataSet(_ d: IChartDataSet!)\n    {   \n        super.addDataSet(d)\n    }\n    \n    /// Removes the DataSet at the given index in the DataSet array from the data object.\n    /// Also recalculates all minimum and maximum values.\n    ///\n    /// - Returns: `true` if a DataSet was removed, `false` ifno DataSet could be removed.\n    open override func removeDataSetByIndex(_ index: Int) -> Bool\n    {\n        if index >= _dataSets.count || index < 0\n        {\n            return false\n        }\n        \n        return false\n    }\n    \n    /// The total y-value sum across all DataSet objects the this object represents.\n    @objc open var yValueSum: Double\n    {\n        guard let dataSet = dataSet else { return 0.0 }\n        return (0..<dataSet.entryCount).reduce(into: 0) {\n            $0 += dataSet.entryForIndex($1)?.y ?? 0\n        }\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift",
    "content": "//\n//  PieChartDataEntry.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nopen class PieChartDataEntry: ChartDataEntry\n{\n    public required init()\n    {\n        super.init()\n    }\n    \n\n    /// - Parameters:\n    ///   - value: The value on the y-axis\n    @objc public init(value: Double)\n    {\n        super.init(x: .nan, y: value)\n    }\n\n    /// - Parameters:\n    ///   - value: The value on the y-axis\n    ///   - label: The label for the x-axis\n    @objc public convenience init(value: Double, label: String?)\n    {\n        self.init(value: value)\n        self.label = label\n    }\n    \n    /// - Parameters:\n    ///   - value: The value on the y-axis\n    ///   - label: The label for the x-axis\n    ///   - data: Spot for additional data this Entry represents\n    @objc public convenience init(value: Double, label: String?, data: Any?)\n    {\n        self.init(value: value, label: label, icon: nil, data: data)\n    }\n    \n    /// - Parameters:\n    ///   - value: The value on the y-axis\n    ///   - label: The label for the x-axis\n    ///   - icon: icon image\n    @objc public convenience init(value: Double, label: String?, icon: NSUIImage?)\n    {\n        self.init(value: value)\n        self.label = label\n        self.icon = icon\n    }\n    \n    /// - Parameters:\n    ///   - value: The value on the y-axis\n    ///   - label: The label for the x-axis\n    ///   - icon: icon image\n    ///   - data: Spot for additional data this Entry represents\n    @objc public convenience init(value: Double, label: String?, icon: NSUIImage?, data: Any?)\n    {\n        self.init(value: value)\n        self.label = label\n        self.icon = icon\n        self.data = data\n    }\n\n    /// - Parameters:\n    ///   - value: The value on the y-axis\n    ///   - data: Spot for additional data this Entry represents\n    @objc public convenience init(value: Double, data: Any?)\n    {\n        self.init(value: value)\n        self.data = data\n    }\n    \n    /// - Parameters:\n    ///   - value: The value on the y-axis\n    ///   - icon: icon image\n    @objc public convenience init(value: Double, icon: NSUIImage?)\n    {\n        self.init(value: value)\n        self.icon = icon\n    }\n    \n    /// - Parameters:\n    ///   - value: The value on the y-axis\n    ///   - icon: icon image\n    ///   - data: Spot for additional data this Entry represents\n    @objc public convenience init(value: Double, icon: NSUIImage?, data: Any?)\n    {\n        self.init(value: value)\n        self.icon = icon\n        self.data = data\n    }\n    \n    // MARK: Data property accessors\n    \n    @objc open var label: String?\n    \n    @objc open var value: Double\n    {\n        get { return y }\n        set { y = newValue }\n    }\n        \n    // MARK: NSCopying\n    \n    open override func copy(with zone: NSZone? = nil) -> Any\n    {\n        let copy = super.copy(with: zone) as! PieChartDataEntry\n        copy.label = label\n        return copy\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift",
    "content": "//\n//  PieChartDataSet.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nopen class PieChartDataSet: ChartDataSet, IPieChartDataSet\n{\n    @objc(PieChartValuePosition)\n    public enum ValuePosition: Int\n    {\n        case insideSlice\n        case outsideSlice\n    }\n\n    private func initialize()\n    {\n        self.valueTextColor = NSUIColor.white\n        self.valueFont = NSUIFont.systemFont(ofSize: 13.0)\n    }\n\n    public required init()\n    {\n        super.init()\n        initialize()\n    }\n\n    public override init(entries: [ChartDataEntry]?, label: String?)\n    {\n        super.init(entries: entries, label: label)\n        initialize()\n    }\n\n    internal override func calcMinMax(entry e: ChartDataEntry)\n    {\n        calcMinMaxY(entry: e)\n    }\n\n    // MARK: - Styling functions and accessors\n\n    private var _sliceSpace = CGFloat(0.0)\n\n    /// the space in pixels between the pie-slices\n    /// **default**: 0\n    /// **maximum**: 20\n    open var sliceSpace: CGFloat\n    {\n        get\n        {\n            return _sliceSpace\n        }\n        set\n        {\n            var space = newValue\n            if space > 20.0\n            {\n                space = 20.0\n            }\n            if space < 0.0\n            {\n                space = 0.0\n            }\n            _sliceSpace = space\n        }\n    }\n\n    /// When enabled, slice spacing will be 0.0 when the smallest value is going to be smaller than the slice spacing itself.\n    open var automaticallyDisableSliceSpacing: Bool = false\n\n    /// indicates the selection distance of a pie slice\n    open var selectionShift = CGFloat(18.0)\n\n    open var xValuePosition: ValuePosition = .insideSlice\n    open var yValuePosition: ValuePosition = .insideSlice\n\n    /// When valuePosition is OutsideSlice, indicates line color\n    open var valueLineColor: NSUIColor? = NSUIColor.black\n\n    /// When valuePosition is OutsideSlice and enabled, line will have the same color as the slice\n    open var useValueColorForLine: Bool = false\n\n    /// When valuePosition is OutsideSlice, indicates line width\n    open var valueLineWidth: CGFloat = 1.0\n\n    /// When valuePosition is OutsideSlice, indicates offset as percentage out of the slice size\n    open var valueLinePart1OffsetPercentage: CGFloat = 0.75\n\n    /// When valuePosition is OutsideSlice, indicates length of first half of the line\n    open var valueLinePart1Length: CGFloat = 0.3\n\n    /// When valuePosition is OutsideSlice, indicates length of second half of the line\n    open var valueLinePart2Length: CGFloat = 0.4\n\n    /// When valuePosition is OutsideSlice, this allows variable line length\n    open var valueLineVariableLength: Bool = true\n\n    /// the font for the slice-text labels\n    open var entryLabelFont: NSUIFont? = nil\n\n    /// the color for the slice-text labels\n    open var entryLabelColor: NSUIColor? = nil\n\n    /// the color for the highlighted sector\n    open var highlightColor: NSUIColor? = nil\n\n    // MARK: - NSCopying\n\n    open override func copy(with zone: NSZone? = nil) -> Any\n    {\n        let copy = super.copy(with: zone) as! PieChartDataSet\n        copy._sliceSpace = _sliceSpace\n        copy.automaticallyDisableSliceSpacing = automaticallyDisableSliceSpacing\n        copy.selectionShift = selectionShift\n        copy.xValuePosition = xValuePosition\n        copy.yValuePosition = yValuePosition\n        copy.valueLineColor = valueLineColor\n        copy.valueLineWidth = valueLineWidth\n        copy.valueLinePart1OffsetPercentage = valueLinePart1OffsetPercentage\n        copy.valueLinePart1Length = valueLinePart1Length\n        copy.valueLinePart2Length = valueLinePart2Length\n        copy.valueLineVariableLength = valueLineVariableLength\n        copy.entryLabelFont = entryLabelFont\n        copy.entryLabelColor = entryLabelColor\n        copy.highlightColor = highlightColor\n        return copy\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift",
    "content": "//\n//  RadarChartData.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n\nopen class RadarChartData: ChartData\n{\n    @objc open var highlightColor = NSUIColor(red: 255.0/255.0, green: 187.0/255.0, blue: 115.0/255.0, alpha: 1.0)\n    @objc open var highlightLineWidth = CGFloat(1.0)\n    @objc open var highlightLineDashPhase = CGFloat(0.0)\n    @objc open var highlightLineDashLengths: [CGFloat]?\n    \n    /// Sets labels that should be drawn around the RadarChart at the end of each web line.\n    @objc open var labels = [String]()\n    \n    /// Sets the labels that should be drawn around the RadarChart at the end of each web line.\n    open func setLabels(_ labels: String...)\n    {\n        self.labels = labels\n    }\n    \n    public override init()\n    {\n        super.init()\n    }\n    \n    public override init(dataSets: [IChartDataSet]?)\n    {\n        super.init(dataSets: dataSets)\n    }\n    \n    open override func entryForHighlight(_ highlight: Highlight) -> ChartDataEntry?\n    {\n        return getDataSetByIndex(highlight.dataSetIndex)?.entryForIndex(Int(highlight.x))\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift",
    "content": "//\n//  RadarChartDataEntry.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nopen class RadarChartDataEntry: ChartDataEntry\n{\n    public required init()\n    {\n        super.init()\n    }\n\n    /// - Parameters:\n    ///   - value: The value on the y-axis.\n    @objc public init(value: Double)\n    {\n        super.init(x: .nan, y: value)\n    }\n\n    /// - Parameters:\n    ///   - value: The value on the y-axis.\n    ///   - data: Spot for additional data this Entry represents.\n    @objc public convenience init(value: Double, data: Any?)\n    {\n        self.init(value: value)\n        self.data = data\n    }\n    \n    // MARK: Data property accessors\n    \n    @objc open var value: Double\n    {\n        get { return y }\n        set { y = newValue }\n    }\n    \n    // MARK: NSCopying\n    \n    open override func copy(with zone: NSZone? = nil) -> Any\n    {\n        let copy = super.copy(with: zone) as! RadarChartDataEntry\n        \n        return copy\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift",
    "content": "//\n//  RadarChartDataSet.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n\nopen class RadarChartDataSet: LineRadarChartDataSet, IRadarChartDataSet\n{\n    private func initialize()\n    {\n        self.valueFont = NSUIFont.systemFont(ofSize: 13.0)\n    }\n    \n    public required init()\n    {\n        super.init()\n        initialize()\n    }\n    \n    public required override init(entries: [ChartDataEntry]?, label: String?)\n    {\n        super.init(entries: entries, label: label)\n        initialize()\n    }\n    \n    // MARK: - Data functions and accessors\n    \n    // MARK: - Styling functions and accessors\n    \n    /// flag indicating whether highlight circle should be drawn or not\n    /// **default**: false\n    open var drawHighlightCircleEnabled: Bool = false\n    \n    /// `true` if highlight circle should be drawn, `false` ifnot\n    open var isDrawHighlightCircleEnabled: Bool { return drawHighlightCircleEnabled }\n    \n    open var highlightCircleFillColor: NSUIColor? = NSUIColor.white\n    \n    /// The stroke color for highlight circle.\n    /// If `nil`, the color of the dataset is taken.\n    open var highlightCircleStrokeColor: NSUIColor?\n    \n    open var highlightCircleStrokeAlpha: CGFloat = 0.3\n    \n    open var highlightCircleInnerRadius: CGFloat = 3.0\n    \n    open var highlightCircleOuterRadius: CGFloat = 4.0\n    \n    open var highlightCircleStrokeWidth: CGFloat = 2.0\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift",
    "content": "//\n//  ScatterChartData.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nopen class ScatterChartData: BarLineScatterCandleBubbleChartData\n{\n    public override init()\n    {\n        super.init()\n    }\n    \n    public override init(dataSets: [IChartDataSet]?)\n    {\n        super.init(dataSets: dataSets)\n    }\n    \n    /// - Returns: The maximum shape-size across all DataSets.\n    @objc open func getGreatestShapeSize() -> CGFloat\n    {\n        return (_dataSets as? [IScatterChartDataSet])?\n            .max { $0.scatterShapeSize < $1.scatterShapeSize }?\n            .scatterShapeSize ?? 0\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift",
    "content": "//\n//  ScatterChartDataSet.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nopen class ScatterChartDataSet: LineScatterCandleRadarChartDataSet, IScatterChartDataSet\n{\n    \n    @objc(ScatterShape)\n    public enum Shape: Int\n    {\n        case square\n        case circle\n        case triangle\n        case cross\n        case x\n        case chevronUp\n        case chevronDown\n    }\n    \n    /// The size the scatter shape will have\n    open var scatterShapeSize = CGFloat(10.0)\n    \n    /// The radius of the hole in the shape (applies to Square, Circle and Triangle)\n    /// **default**: 0.0\n    open var scatterShapeHoleRadius: CGFloat = 0.0\n    \n    /// Color for the hole in the shape. Setting to `nil` will behave as transparent.\n    /// **default**: nil\n    open var scatterShapeHoleColor: NSUIColor? = nil\n    \n    /// Sets the ScatterShape this DataSet should be drawn with.\n    /// This will search for an available IShapeRenderer and set this renderer for the DataSet\n    @objc open func setScatterShape(_ shape: Shape)\n    {\n        self.shapeRenderer = ScatterChartDataSet.renderer(forShape: shape)\n    }\n    \n    /// The IShapeRenderer responsible for rendering this DataSet.\n    /// This can also be used to set a custom IShapeRenderer aside from the default ones.\n    /// **default**: `SquareShapeRenderer`\n    open var shapeRenderer: IShapeRenderer? = SquareShapeRenderer()\n    \n    @objc open class func renderer(forShape shape: Shape) -> IShapeRenderer\n    {\n        switch shape\n        {\n        case .square: return SquareShapeRenderer()\n        case .circle: return CircleShapeRenderer()\n        case .triangle: return TriangleShapeRenderer()\n        case .cross: return CrossShapeRenderer()\n        case .x: return XShapeRenderer()\n        case .chevronUp: return ChevronUpShapeRenderer()\n        case .chevronDown: return ChevronDownShapeRenderer()\n        }\n    }\n    \n    // MARK: NSCopying\n    \n    open override func copy(with zone: NSZone? = nil) -> Any\n    {\n        let copy = super.copy(with: zone) as! ScatterChartDataSet\n        copy.scatterShapeSize = scatterShapeSize\n        copy.scatterShapeHoleRadius = scatterShapeHoleRadius\n        copy.scatterShapeHoleColor = scatterShapeHoleColor\n        copy.shapeRenderer = shapeRenderer\n        return copy\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift",
    "content": "//\n//  IBarChartDataSet.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc\npublic protocol IBarChartDataSet: IBarLineScatterCandleBubbleChartDataSet\n{\n    // MARK: - Data functions and accessors\n    \n    // MARK: - Styling functions and accessors\n    \n    /// `true` if this DataSet is stacked (stacksize > 1) or not.\n    var isStacked: Bool { get }\n    \n    /// The maximum number of bars that can be stacked upon another in this DataSet.\n    var stackSize: Int { get }\n    \n    /// the color used for drawing the bar-shadows. The bar shadows is a surface behind the bar that indicates the maximum value\n    var barShadowColor: NSUIColor { get set }\n    \n    /// the width used for drawing borders around the bars. If borderWidth == 0, no border will be drawn.\n    var barBorderWidth : CGFloat { get set }\n\n    /// the color drawing borders around the bars.\n    var barBorderColor: NSUIColor { get set }\n\n    /// the alpha value (transparency) that is used for drawing the highlight indicator bar. min = 0.0 (fully transparent), max = 1.0 (fully opaque)\n    var highlightAlpha: CGFloat { get set }\n    \n    /// array of labels used to describe the different values of the stacked bars\n    var stackLabels: [String] { get set }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift",
    "content": "//\n//  IBarLineScatterCandleBubbleChartDataSet.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc\npublic protocol IBarLineScatterCandleBubbleChartDataSet: IChartDataSet\n{\n    // MARK: - Data functions and accessors\n    \n    // MARK: - Styling functions and accessors\n    \n    var highlightColor: NSUIColor { get set }\n    var highlightLineWidth: CGFloat { get set }\n    var highlightLineDashPhase: CGFloat { get set }\n    var highlightLineDashLengths: [CGFloat]? { get set }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift",
    "content": "//\n//  IBubbleChartDataSet.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc\npublic protocol IBubbleChartDataSet: IBarLineScatterCandleBubbleChartDataSet\n{\n    // MARK: - Data functions and accessors\n    \n    var maxSize: CGFloat { get }\n    var isNormalizeSizeEnabled: Bool { get }\n    \n    // MARK: - Styling functions and accessors\n    \n    /// Sets/gets the width of the circle that surrounds the bubble when highlighted\n    var highlightCircleWidth: CGFloat { get set }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift",
    "content": "//\n//  ICandleChartDataSet.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc\npublic protocol ICandleChartDataSet: ILineScatterCandleRadarChartDataSet\n{\n    // MARK: - Data functions and accessors\n    \n    // MARK: - Styling functions and accessors\n    \n    /// the space that is left out on the left and right side of each candle,\n    /// **default**: 0.1 (10%), max 0.45, min 0.0\n    var barSpace: CGFloat { get set }\n    \n    /// should the candle bars show?\n    /// when false, only \"ticks\" will show\n    ///\n    /// **default**: true\n    var showCandleBar: Bool { get set }\n    \n    /// the width of the candle-shadow-line in pixels.\n    ///\n    /// **default**: 3.0\n    var shadowWidth: CGFloat { get set }\n    \n    /// the color of the shadow line\n    var shadowColor: NSUIColor? { get set }\n    \n    /// use candle color for the shadow\n    var shadowColorSameAsCandle: Bool { get set }\n    \n    /// Is the shadow color same as the candle color?\n    var isShadowColorSameAsCandle: Bool { get }\n    \n    /// color for open == close\n    var neutralColor: NSUIColor? { get set }\n    \n    /// color for open > close\n    var increasingColor: NSUIColor? { get set }\n    \n    /// color for open < close\n    var decreasingColor: NSUIColor? { get set }\n    \n    /// Are increasing values drawn as filled?\n    var increasingFilled: Bool { get set }\n    \n    /// Are increasing values drawn as filled?\n    var isIncreasingFilled: Bool { get }\n    \n    /// Are decreasing values drawn as filled?\n    var decreasingFilled: Bool { get set }\n    \n    /// Are decreasing values drawn as filled?\n    var isDecreasingFilled: Bool { get }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift",
    "content": "//\n//  IChartDataSet.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc\npublic protocol IChartDataSet\n{\n    // MARK: - Data functions and accessors\n    \n    /// Use this method to tell the data set that the underlying data has changed\n    func notifyDataSetChanged()\n    \n    /// Calculates the minimum and maximum x and y values (_xMin, _xMax, _yMin, _yMax).\n    func calcMinMax()\n    \n    /// Calculates the min and max y-values from the Entry closest to the given fromX to the Entry closest to the given toX value.\n    /// This is only needed for the autoScaleMinMax feature.\n    func calcMinMaxY(fromX: Double, toX: Double)\n    \n    /// The minimum y-value this DataSet holds\n    var yMin: Double { get }\n    \n    /// The maximum y-value this DataSet holds\n    var yMax: Double { get }\n    \n    /// The minimum x-value this DataSet holds\n    var xMin: Double { get }\n    \n    /// The maximum x-value this DataSet holds\n    var xMax: Double { get }\n    \n    /// The number of y-values this DataSet represents\n    var entryCount: Int { get }\n    \n    /// - Throws: out of bounds\n    /// if `i` is out of bounds, it may throw an out-of-bounds exception\n    /// - Returns: The entry object found at the given index (not x-value!)\n    func entryForIndex(_ i: Int) -> ChartDataEntry?\n    \n    /// - Parameters:\n    ///   - xValue: the x-value\n    ///   - closestToY: If there are multiple y-values for the specified x-value,\n    ///   - rounding: determine whether to round up/down/closest if there is no Entry matching the provided x-value\n    /// - Returns: The first Entry object found at the given x-value with binary search.\n    /// If the no Entry at the specified x-value is found, this method returns the Entry at the closest x-value according to the rounding.\n    /// nil if no Entry object at that x-value.\n    func entryForXValue(\n        _ xValue: Double,\n        closestToY yValue: Double,\n        rounding: ChartDataSetRounding) -> ChartDataEntry?\n    \n    /// - Parameters:\n    ///   - xValue: the x-value\n    ///   - closestToY: If there are multiple y-values for the specified x-value,\n    /// - Returns: The first Entry object found at the given x-value with binary search.\n    /// If the no Entry at the specified x-value is found, this method returns the Entry at the closest x-value.\n    /// nil if no Entry object at that x-value.\n    func entryForXValue(\n        _ xValue: Double,\n        closestToY yValue: Double) -> ChartDataEntry?\n    \n    /// - Returns: All Entry objects found at the given x-value with binary search.\n    /// An empty array if no Entry object at that x-value.\n    func entriesForXValue(_ xValue: Double) -> [ChartDataEntry]\n    \n    /// - Parameters:\n    ///   - xValue: x-value of the entry to search for\n    ///   - closestToY: If there are multiple y-values for the specified x-value,\n    ///   - rounding: Rounding method if exact value was not found\n    /// - Returns: The array-index of the specified entry.\n    /// If the no Entry at the specified x-value is found, this method returns the index of the Entry at the closest x-value according to the rounding.\n    func entryIndex(\n        x xValue: Double,\n        closestToY yValue: Double,\n        rounding: ChartDataSetRounding) -> Int\n    \n    /// - Parameters:\n    ///   - e: the entry to search for\n    /// - Returns: The array-index of the specified entry\n    func entryIndex(entry e: ChartDataEntry) -> Int\n    \n    /// Adds an Entry to the DataSet dynamically.\n    ///\n    /// *optional feature, can return `false` ifnot implemented*\n    ///\n    /// Entries are added to the end of the list.\n    ///\n    /// - Parameters:\n    ///   - e: the entry to add\n    /// - Returns: `true` if the entry was added successfully, `false` ifthis feature is not supported\n    func addEntry(_ e: ChartDataEntry) -> Bool\n    \n    /// Adds an Entry to the DataSet dynamically.\n    /// Entries are added to their appropriate index in the values array respective to their x-position.\n    /// This will also recalculate the current minimum and maximum values of the DataSet and the value-sum.\n    ///\n    /// *optional feature, can return `false` ifnot implemented*\n    ///\n    /// Entries are added to the end of the list.\n    ///\n    /// - Parameters:\n    ///   - e: the entry to add\n    /// - Returns: `true` if the entry was added successfully, `false` ifthis feature is not supported\n    func addEntryOrdered(_ e: ChartDataEntry) -> Bool\n    \n    /// Removes an Entry from the DataSet dynamically.\n    ///\n    /// *optional feature, can return `false` ifnot implemented*\n    ///\n    /// - Parameters:\n    ///   - entry: the entry to remove\n    /// - Returns: `true` if the entry was removed successfully, `false` ifthe entry does not exist or if this feature is not supported\n    func removeEntry(_ entry: ChartDataEntry) -> Bool\n    \n    /// Removes the Entry object at the given index in the values array from the DataSet.\n    ///\n    /// *optional feature, can return `false` ifnot implemented*\n    ///\n    /// - Parameters:\n    ///   - index: the index of the entry to remove\n    /// - Returns: `true` if the entry was removed successfully, `false` ifthe entry does not exist or if this feature is not supported\n    func removeEntry(index: Int) -> Bool\n    \n    /// Removes the Entry object closest to the given x-value from the DataSet.\n    ///\n    /// *optional feature, can return `false` ifnot implemented*\n    ///\n    /// - Parameters:\n    ///   - x: the x-value to remove\n    /// - Returns: `true` if the entry was removed successfully, `false` ifthe entry does not exist or if this feature is not supported\n    func removeEntry(x: Double) -> Bool\n    \n    /// Removes the first Entry (at index 0) of this DataSet from the entries array.\n    ///\n    /// *optional feature, can return `false` ifnot implemented*\n    ///\n    /// - Returns: `true` if the entry was removed successfully, `false` ifthe entry does not exist or if this feature is not supported\n    func removeFirst() -> Bool\n    \n    /// Removes the last Entry (at index 0) of this DataSet from the entries array.\n    ///\n    /// *optional feature, can return `false` ifnot implemented*\n    ///\n    /// - Returns: `true` if the entry was removed successfully, `false` ifthe entry does not exist or if this feature is not supported\n    func removeLast() -> Bool\n    \n    /// Checks if this DataSet contains the specified Entry.\n    ///\n    /// - Returns: `true` if contains the entry, `false` ifnot.\n    func contains(_ e: ChartDataEntry) -> Bool\n    \n    /// Removes all values from this DataSet and does all necessary recalculations.\n    ///\n    /// *optional feature, could throw if not implemented*\n    func clear()\n    \n    // MARK: - Styling functions and accessors\n    \n    /// The label string that describes the DataSet.\n    var label: String? { get }\n    \n    /// The axis this DataSet should be plotted against.\n    var axisDependency: YAxis.AxisDependency { get }\n    \n    /// List representing all colors that are used for drawing the actual values for this DataSet\n    var valueColors: [NSUIColor] { get }\n    \n    /// All the colors that are used for this DataSet.\n    /// Colors are reused as soon as the number of Entries the DataSet represents is higher than the size of the colors array.\n    var colors: [NSUIColor] { get }\n    \n    /// - Returns: The color at the given index of the DataSet's color array.\n    /// This prevents out-of-bounds by performing a modulus on the color index, so colours will repeat themselves.\n    func color(atIndex: Int) -> NSUIColor\n    \n    func resetColors()\n    \n    func addColor(_ color: NSUIColor)\n    \n    func setColor(_ color: NSUIColor)\n    \n    /// if true, value highlighting is enabled\n    var highlightEnabled: Bool { get set }\n    \n    /// `true` if value highlighting is enabled for this dataset\n    var isHighlightEnabled: Bool { get }\n    \n    /// Custom formatter that is used instead of the auto-formatter if set\n    var valueFormatter: IValueFormatter? { get set }\n    \n    /// `true` if the valueFormatter object of this DataSet is null.\n    var needsFormatter: Bool { get }\n    \n    /// Sets/get a single color for value text.\n    /// Setting the color clears the colors array and adds a single color.\n    /// Getting will return the first color in the array.\n    var valueTextColor: NSUIColor { get set }\n    \n    /// - Returns: The color at the specified index that is used for drawing the values inside the chart. Uses modulus internally.\n    func valueTextColorAt(_ index: Int) -> NSUIColor\n    \n    /// the font for the value-text labels\n    var valueFont: NSUIFont { get set }\n    \n    /// The form to draw for this dataset in the legend.\n    ///\n    /// Return `.Default` to use the default legend form.\n    var form: Legend.Form { get }\n    \n    /// The form size to draw for this dataset in the legend.\n    ///\n    /// Return `NaN` to use the default legend form size.\n    var formSize: CGFloat { get }\n    \n    /// The line width for drawing the form of this dataset in the legend\n    ///\n    /// Return `NaN` to use the default legend form line width.\n    var formLineWidth: CGFloat { get }\n    \n    /// Line dash configuration for legend shapes that consist of lines.\n    ///\n    /// This is how much (in pixels) into the dash pattern are we starting from.\n    var formLineDashPhase: CGFloat { get }\n    \n    /// Line dash configuration for legend shapes that consist of lines.\n    ///\n    /// This is the actual dash pattern.\n    /// I.e. [2, 3] will paint [--   --   ]\n    /// [1, 3, 4, 2] will paint [-   ----  -   ----  ]\n    var formLineDashLengths: [CGFloat]? { get }\n    \n    /// Set this to true to draw y-values on the chart.\n    ///\n    /// - Note: For bar and line charts: if `maxVisibleCount` is reached, no values will be drawn even if this is enabled.\n    var drawValuesEnabled: Bool { get set }\n    \n    /// `true` if y-value drawing is enabled, `false` ifnot\n    var isDrawValuesEnabled: Bool { get }\n    \n    /// Set this to true to draw y-icons on the chart\n    ///\n    /// - Note: For bar and line charts: if `maxVisibleCount` is reached, no icons will be drawn even if this is enabled.\n    var drawIconsEnabled: Bool { get set }\n    \n    /// Returns true if y-icon drawing is enabled, false if not\n    var isDrawIconsEnabled: Bool { get }\n    \n    /// Offset of icons drawn on the chart.\n    ///\n    /// For all charts except Pie and Radar it will be ordinary (x offset, y offset).\n    ///\n    /// For Pie and Radar chart it will be (y offset, distance from center offset); so if you want icon to be rendered under value, you should increase X component of CGPoint, and if you want icon to be rendered closet to center, you should decrease height component of CGPoint.\n    var iconsOffset: CGPoint { get set }\n    \n    /// Set the visibility of this DataSet. If not visible, the DataSet will not be drawn to the chart upon refreshing it.\n    var visible: Bool { get set }\n    \n    /// `true` if this DataSet is visible inside the chart, or `false` ifit is currently hidden.\n    var isVisible: Bool { get }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift",
    "content": "//\n//  ILineChartDataSet.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n\n@objc\npublic protocol ILineChartDataSet: ILineRadarChartDataSet\n{\n    // MARK: - Data functions and accessors\n    \n    // MARK: - Styling functions and accessors\n    \n    /// The drawing mode for this line dataset\n    ///\n    /// **default**: Linear\n    var mode: LineChartDataSet.Mode { get set }\n    \n    /// Intensity for cubic lines (min = 0.05, max = 1)\n    ///\n    /// **default**: 0.2\n    var cubicIntensity: CGFloat { get set }\n    \n    /// The radius of the drawn circles.\n    var circleRadius: CGFloat { get set }\n    \n    /// The hole radius of the drawn circles.\n    var circleHoleRadius: CGFloat { get set }\n    \n    var circleColors: [NSUIColor] { get set }\n    \n    /// - Returns: The color at the given index of the DataSet's circle-color array.\n    /// Performs a IndexOutOfBounds check by modulus.\n    func getCircleColor(atIndex: Int) -> NSUIColor?\n    \n    /// Sets the one and ONLY color that should be used for this DataSet.\n    /// Internally, this recreates the colors array and adds the specified color.\n    func setCircleColor(_ color: NSUIColor)\n    \n    /// Resets the circle-colors array and creates a new one\n    func resetCircleColors(_ index: Int)\n    \n    /// If true, drawing circles is enabled\n    var drawCirclesEnabled: Bool { get set }\n    \n    /// `true` if drawing circles for this DataSet is enabled, `false` ifnot\n    var isDrawCirclesEnabled: Bool { get }\n    \n    /// The color of the inner circle (the circle-hole).\n    var circleHoleColor: NSUIColor? { get set }\n    \n    /// `true` if drawing circles for this DataSet is enabled, `false` ifnot\n    var drawCircleHoleEnabled: Bool { get set }\n    \n    /// `true` if drawing the circle-holes is enabled, `false` ifnot.\n    var isDrawCircleHoleEnabled: Bool { get }\n    \n    /// This is how much (in pixels) into the dash pattern are we starting from.\n    var lineDashPhase: CGFloat { get }\n    \n    /// This is the actual dash pattern.\n    /// I.e. [2, 3] will paint [--   --   ]\n    /// [1, 3, 4, 2] will paint [-   ----  -   ----  ]\n    var lineDashLengths: [CGFloat]? { get set }\n    \n    /// Line cap type, default is CGLineCap.Butt\n    var lineCapType: CGLineCap { get set }\n    \n    /// Sets a custom IFillFormatter to the chart that handles the position of the filled-line for each DataSet. Set this to null to use the default logic.\n    var fillFormatter: IFillFormatter? { get set }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift",
    "content": "//\n//  ILineRadarChartDataSet.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc\npublic protocol ILineRadarChartDataSet: ILineScatterCandleRadarChartDataSet\n{\n    // MARK: - Data functions and accessors\n    \n    // MARK: - Styling functions and accessors\n    \n    /// The color that is used for filling the line surface area.\n    var fillColor: NSUIColor { get set }\n\n    /// - Returns: The object that is used for filling the area below the line.\n    /// **default**: nil\n    var fill: Fill? { get set }\n    \n    /// The alpha value that is used for filling the line surface.\n    /// **default**: 0.33\n    var fillAlpha: CGFloat { get set }\n    \n    /// line width of the chart (min = 0.0, max = 10)\n    ///\n    /// **default**: 1\n    var lineWidth: CGFloat { get set }\n    \n    /// Set to `true` if the DataSet should be drawn filled (surface), and not just as a line.\n    /// Disabling this will give great performance boost.\n    /// Please note that this method uses the path clipping for drawing the filled area (with images, gradients and layers).\n    var drawFilledEnabled: Bool { get set }\n    \n    /// `true` if filled drawing is enabled, `false` if not\n    var isDrawFilledEnabled: Bool { get }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift",
    "content": "//\n//  ILineScatterCandleRadarChartDataSet.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\n\n@objc\npublic protocol ILineScatterCandleRadarChartDataSet: IBarLineScatterCandleBubbleChartDataSet\n{\n    // MARK: - Data functions and accessors\n    \n    // MARK: - Styling functions and accessors\n    \n    /// Enables / disables the horizontal highlight-indicator. If disabled, the indicator is not drawn.\n    var drawHorizontalHighlightIndicatorEnabled: Bool { get set }\n    \n    /// Enables / disables the vertical highlight-indicator. If disabled, the indicator is not drawn.\n    var drawVerticalHighlightIndicatorEnabled: Bool { get set }\n    \n    /// `true` if horizontal highlight indicator lines are enabled (drawn)\n    var isHorizontalHighlightIndicatorEnabled: Bool { get }\n    \n    /// `true` if vertical highlight indicator lines are enabled (drawn)\n    var isVerticalHighlightIndicatorEnabled: Bool { get }\n    \n    /// Enables / disables both vertical and horizontal highlight-indicators.\n    /// :param: enabled\n    func setDrawHighlightIndicators(_ enabled: Bool)\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift",
    "content": "//\n//  IPieChartDataSet.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc\npublic protocol IPieChartDataSet: IChartDataSet\n{\n    // MARK: - Styling functions and accessors\n\n    /// the space in pixels between the pie-slices\n    /// **default**: 0\n    /// **maximum**: 20\n    var sliceSpace: CGFloat { get set }\n\n    /// When enabled, slice spacing will be 0.0 when the smallest value is going to be smaller than the slice spacing itself.\n    var automaticallyDisableSliceSpacing: Bool { get set }\n\n    /// indicates the selection distance of a pie slice\n    var selectionShift: CGFloat { get set }\n\n    var xValuePosition: PieChartDataSet.ValuePosition { get set }\n    var yValuePosition: PieChartDataSet.ValuePosition { get set }\n\n    /// When valuePosition is OutsideSlice, indicates line color\n    var valueLineColor: NSUIColor? { get set }\n\n    /// When valuePosition is OutsideSlice and enabled, line will have the same color as the slice\n    var useValueColorForLine: Bool { get set }\n\n    /// When valuePosition is OutsideSlice, indicates line width\n    var valueLineWidth: CGFloat { get set }\n\n    /// When valuePosition is OutsideSlice, indicates offset as percentage out of the slice size\n    var valueLinePart1OffsetPercentage: CGFloat { get set }\n\n    /// When valuePosition is OutsideSlice, indicates length of first half of the line\n    var valueLinePart1Length: CGFloat { get set }\n\n    /// When valuePosition is OutsideSlice, indicates length of second half of the line\n    var valueLinePart2Length: CGFloat { get set }\n\n    /// When valuePosition is OutsideSlice, this allows variable line length\n    var valueLineVariableLength: Bool { get set }\n\n    /// the font for the slice-text labels\n    var entryLabelFont: NSUIFont? { get set }\n\n    /// the color for the slice-text labels\n    var entryLabelColor: NSUIColor? { get set }\n\n    /// get/sets the color for the highlighted sector\n    var highlightColor: NSUIColor? { get set }\n\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift",
    "content": "//\n//  IRadarChartDataSet.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc\npublic protocol IRadarChartDataSet: ILineRadarChartDataSet\n{\n    // MARK: - Data functions and accessors\n    \n    // MARK: - Styling functions and accessors\n    \n    /// flag indicating whether highlight circle should be drawn or not\n    var drawHighlightCircleEnabled: Bool { get set }\n    \n    var isDrawHighlightCircleEnabled: Bool { get }\n    \n    var highlightCircleFillColor: NSUIColor? { get set }\n    \n    /// The stroke color for highlight circle.\n    /// If `nil`, the color of the dataset is taken.\n    var highlightCircleStrokeColor: NSUIColor? { get set }\n    \n    var highlightCircleStrokeAlpha: CGFloat { get set }\n    \n    var highlightCircleInnerRadius: CGFloat { get set }\n    \n    var highlightCircleOuterRadius: CGFloat { get set }\n    \n    var highlightCircleStrokeWidth: CGFloat { get set }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift",
    "content": "//\n//  IScatterChartDataSet.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc\npublic protocol IScatterChartDataSet: ILineScatterCandleRadarChartDataSet\n{\n    // MARK: - Data functions and accessors\n    \n    // MARK: - Styling functions and accessors\n    \n    /// The size the scatter shape will have\n    var scatterShapeSize: CGFloat { get }\n    \n    /// - Returns: The radius of the hole in the shape (applies to Square, Circle and Triangle)\n    /// Set this to <= 0 to remove holes.\n    /// **default**: 0.0\n    var scatterShapeHoleRadius: CGFloat { get }\n    \n    /// - Returns: Color for the hole in the shape. Setting to `nil` will behave as transparent.\n    /// **default**: nil\n    var scatterShapeHoleColor: NSUIColor? { get }\n    \n    /// The IShapeRenderer responsible for rendering this DataSet.\n    var shapeRenderer: IShapeRenderer? { get }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Filters/DataApproximator+N.swift",
    "content": "//\n//  DataApproximator+N.swift\n//  Charts\n//\n//  Created by M Ivaniushchenko on 9/6/17.\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nextension CGPoint {\n    fileprivate func distanceToLine(from linePoint1: CGPoint, to linePoint2: CGPoint) -> CGFloat {\n        let dx = linePoint2.x - linePoint1.x\n        let dy = linePoint2.y - linePoint1.y\n        \n        let dividend = abs(dy * self.x - dx * self.y - linePoint1.x * linePoint2.y + linePoint2.x * linePoint1.y)\n        let divisor = sqrt(dx * dx + dy * dy)\n        \n        return dividend / divisor\n    }\n}\n\nprivate struct LineAlt {\n    let start: Int\n    let end: Int\n    \n    var distance: CGFloat = 0\n    var index: Int = 0\n    \n    init(start: Int, end: Int, points: [CGPoint]) {\n        self.start = start\n        self.end = end\n        \n        let startPoint = points[start]\n        let endPoint = points[end]\n        \n        guard (end > start + 1) else {\n            return\n        }\n        \n        for i in start + 1 ..< end {\n            let currentPoint = points[i]\n            \n            let distance = currentPoint.distanceToLine(from: startPoint, to: endPoint)\n            \n            if distance > self.distance {\n                self.index = i\n                self.distance = distance\n            }\n        }\n    }\n}\n\nextension LineAlt: Comparable {\n    static func ==(lhs: LineAlt, rhs: LineAlt) -> Bool {\n        return (lhs.start == rhs.start) && (lhs.end == rhs.end) && (lhs.index == rhs.index)\n    }\n    \n    static func <(lhs: LineAlt, rhs: LineAlt) -> Bool {\n        return lhs.distance < rhs.distance\n    }\n}\n\n\nextension DataApproximator {\n    /// uses the douglas peuker algorithm to reduce the given arraylist of entries to given number of points\n    /// More algorithm details here - http://psimpl.sourceforge.net/douglas-peucker.html\n    @objc open class func reduceWithDouglasPeukerN(_ points: [CGPoint], resultCount: Int) -> [CGPoint]\n    {\n        // if a shape has 2 or less points it cannot be reduced\n        if resultCount <= 2 || resultCount >= points.count\n        {\n            return points\n        }\n        var keep = [Bool](repeating: false, count: points.count)\n        \n        // first and last always stay\n        keep[0] = true\n        keep[points.count - 1] = true\n        var currentStoredPoints = 2\n        \n        var queue = [LineAlt]()\n        let line = LineAlt(start: 0, end: points.count - 1, points: points)\n        queue.append(line)\n        \n        repeat {\n            let line = queue.popLast()!\n            \n            // store the key\n            keep[line.index] = true\n            \n            // check point count tolerance\n            currentStoredPoints += 1\n            \n            if (currentStoredPoints == resultCount) {\n                break;\n            }\n            \n            // split the polyline at the key and recurse\n            let left = LineAlt(start: line.start, end: line.index, points: points)\n            if (left.index > 0) {\n                self.insertLine(left, into: &queue)\n            }\n            \n            let right = LineAlt(start: line.index, end: line.end, points: points)\n            if (right.index > 0) {\n                self.insertLine(right, into: &queue)\n            }\n            \n        } while !queue.isEmpty\n        \n        // create a new array with series, only take the kept ones\n        let reducedEntries = points.enumerated().compactMap { (index: Int, point: CGPoint) -> CGPoint? in\n            return keep[index] ? point : nil\n        }\n        \n        return reducedEntries\n    }\n    \n    // Keeps array sorted\n    private static func insertLine(_ line: LineAlt, into array: inout [LineAlt]) {\n        let insertionIndex = self.insertionIndex(for: line, into: &array)\n        array.insert(line, at: insertionIndex)\n    }\n    \n    private static func insertionIndex(for line: LineAlt, into array: inout [LineAlt]) -> Int {\n        var indices = array.indices\n        \n        while !indices.isEmpty {\n            let midIndex = indices.lowerBound.advanced(by: indices.count / 2)\n            let midLine = array[midIndex]\n            \n            if midLine == line {\n                return midIndex\n            }\n            else if (line < midLine) {\n                // perform search in left half\n                indices = indices.lowerBound..<midIndex\n            }\n            else {\n                // perform search in right half\n                indices = (midIndex + 1)..<indices.upperBound\n            }\n        }\n        \n        return indices.lowerBound\n    }\n}\n\n\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Filters/DataApproximator.swift",
    "content": "//\n//  DataApproximator.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(ChartDataApproximator)\nopen class DataApproximator: NSObject\n{\n    /// uses the douglas peuker algorithm to reduce the given arraylist of entries\n    @objc open class func reduceWithDouglasPeuker(_ points: [CGPoint], tolerance: CGFloat) -> [CGPoint]\n    {\n        // if a shape has 2 or less points it cannot be reduced\n        if tolerance <= 0 || points.count < 3\n        {\n            return points\n        }\n        \n        var keep = [Bool](repeating: false, count: points.count)\n        \n        // first and last always stay\n        keep[0] = true\n        keep[points.count - 1] = true\n        \n        // first and last entry are entry point to recursion\n        reduceWithDouglasPeuker(points: points,\n                                tolerance: tolerance,\n                                start: 0,\n                                end: points.count - 1,\n                                keep: &keep)\n        \n        // create a new array with series, only take the kept ones\n        return zip(keep, points).compactMap { $0 ? nil : $1 }\n    }\n\n    /// apply the Douglas-Peucker-Reduction to an array of `CGPoint`s with a given tolerance\n    ///\n    /// - Parameters:\n    ///   - points:\n    ///   - tolerance:\n    ///   - start:\n    ///   - end:\n    open class func reduceWithDouglasPeuker(\n        points: [CGPoint],\n        tolerance: CGFloat,\n        start: Int,\n        end: Int,\n        keep: inout [Bool])\n    {\n        if end <= start + 1\n        {\n            // recursion finished\n            return\n        }\n        \n        var greatestIndex = Int(0)\n        var greatestDistance = CGFloat(0.0)\n        \n        let line = Line(pt1: points[start], pt2: points[end])\n        \n        for i in start + 1 ..< end\n        {\n            let distance = line.distance(toPoint: points[i])\n            \n            if distance > greatestDistance\n            {\n                greatestDistance = distance\n                greatestIndex = i\n            }\n        }\n        \n        if greatestDistance > tolerance\n        {\n            // keep max dist point\n            keep[greatestIndex] = true\n            \n            // recursive call\n            reduceWithDouglasPeuker(points: points, tolerance: tolerance, start: start, end: greatestIndex, keep: &keep)\n            reduceWithDouglasPeuker(points: points, tolerance: tolerance, start: greatestIndex, end: end, keep: &keep)\n        } // else don't keep the point...\n    }\n    \n    private class Line\n    {\n        var sxey: CGFloat\n        var exsy: CGFloat\n        \n        var dx: CGFloat\n        var dy: CGFloat\n        \n        var length: CGFloat\n        \n        init(pt1: CGPoint, pt2: CGPoint)\n        {\n            dx = pt1.x - pt2.x\n            dy = pt1.y - pt2.y\n            sxey = pt1.x * pt2.y\n            exsy = pt2.x * pt1.y\n            length = sqrt(dx * dx + dy * dy)\n        }\n        \n        func distance(toPoint pt: CGPoint) -> CGFloat\n        {\n            return abs(dy * pt.x - dx * pt.y + sxey - exsy) / length\n        }\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift",
    "content": "//\n//  DefaultAxisValueFormatter.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\n\n@objc(ChartDefaultAxisValueFormatter)\nopen class DefaultAxisValueFormatter: NSObject, IAxisValueFormatter\n{\n    public typealias Block = (\n        _ value: Double,\n        _ axis: AxisBase?) -> String\n    \n    @objc open var block: Block?\n    \n    @objc open var hasAutoDecimals: Bool = false\n    \n    private var _formatter: NumberFormatter?\n    @objc open var formatter: NumberFormatter?\n    {\n        get { return _formatter }\n        set\n        {\n            hasAutoDecimals = false\n            _formatter = newValue\n        }\n    }\n\n    // TODO: Documentation. Especially the nil case\n    private var _decimals: Int?\n    open var decimals: Int?\n    {\n        get { return _decimals }\n        set\n        {\n            _decimals = newValue\n            \n            if let digits = newValue\n            {\n                self.formatter?.minimumFractionDigits = digits\n                self.formatter?.maximumFractionDigits = digits\n                self.formatter?.usesGroupingSeparator = true\n            }\n        }\n    }\n    \n    public override init()\n    {\n        super.init()\n        \n        self.formatter = NumberFormatter()\n        hasAutoDecimals = true\n    }\n    \n    @objc public init(formatter: NumberFormatter)\n    {\n        super.init()\n        \n        self.formatter = formatter\n    }\n    \n    @objc public init(decimals: Int)\n    {\n        super.init()\n        \n        self.formatter = NumberFormatter()\n        self.formatter?.usesGroupingSeparator = true\n        self.decimals = decimals\n        hasAutoDecimals = true\n    }\n    \n    @objc public init(block: @escaping Block)\n    {\n        super.init()\n        \n        self.block = block\n    }\n    \n    @objc public static func with(block: @escaping Block) -> DefaultAxisValueFormatter?\n    {\n        return DefaultAxisValueFormatter(block: block)\n    }\n    \n    open func stringForValue(_ value: Double,\n                               axis: AxisBase?) -> String\n    {\n        if let block = block {\n            return block(value, axis)\n        } else {\n            return formatter?.string(from: NSNumber(floatLiteral: value)) ?? \"\"\n        }\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift",
    "content": "//\n//  DefaultFillFormatter.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n/// Default formatter that calculates the position of the filled line.\n@objc(ChartDefaultFillFormatter)\nopen class DefaultFillFormatter: NSObject, IFillFormatter\n{\n    public typealias Block = (\n        _ dataSet: ILineChartDataSet,\n        _ dataProvider: LineChartDataProvider) -> CGFloat\n    \n    @objc open var block: Block?\n    \n    public override init() { }\n    \n    @objc public init(block: @escaping Block)\n    {\n        self.block = block\n    }\n    \n    @objc public static func with(block: @escaping Block) -> DefaultFillFormatter?\n    {\n        return DefaultFillFormatter(block: block)\n    }\n    \n    open func getFillLinePosition(\n        dataSet: ILineChartDataSet,\n        dataProvider: LineChartDataProvider) -> CGFloat\n    {\n        guard block == nil else { return block!(dataSet, dataProvider) }\n        var fillMin: CGFloat = 0.0\n\n        if dataSet.yMax > 0.0 && dataSet.yMin < 0.0\n        {\n            fillMin = 0.0\n        }\n        else if let data = dataProvider.data\n        {\n            let max = data.yMax > 0.0 ? 0.0 : dataProvider.chartYMax\n            let min = data.yMin < 0.0 ? 0.0 : dataProvider.chartYMin\n\n            fillMin = CGFloat(dataSet.yMin >= 0.0 ? min : max)\n        }\n\n        return fillMin\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift",
    "content": "//\n//  DefaultValueFormatter.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\n\n@objc(ChartDefaultValueFormatter)\nopen class DefaultValueFormatter: NSObject, IValueFormatter\n{\n    public typealias Block = (\n        _ value: Double,\n        _ entry: ChartDataEntry,\n        _ dataSetIndex: Int,\n        _ viewPortHandler: ViewPortHandler?) -> String\n    \n    @objc open var block: Block?\n    \n    @objc open var hasAutoDecimals: Bool = false\n    \n    private var _formatter: NumberFormatter?\n    @objc open var formatter: NumberFormatter?\n    {\n        get { return _formatter }\n        set\n        {\n            hasAutoDecimals = false\n            _formatter = newValue\n        }\n    }\n    \n    private var _decimals: Int?\n    open var decimals: Int?\n    {\n        get { return _decimals }\n        set\n        {\n            _decimals = newValue\n            \n            if let digits = newValue\n            {\n                self.formatter?.minimumFractionDigits = digits\n                self.formatter?.maximumFractionDigits = digits\n                self.formatter?.usesGroupingSeparator = true\n            }\n        }\n    }\n    \n    public override init()\n    {\n        super.init()\n        \n        self.formatter = NumberFormatter()\n        hasAutoDecimals = true\n    }\n    \n    @objc public init(formatter: NumberFormatter)\n    {\n        super.init()\n        \n        self.formatter = formatter\n    }\n    \n    @objc public init(decimals: Int)\n    {\n        super.init()\n        \n        self.formatter = NumberFormatter()\n        self.formatter?.usesGroupingSeparator = true\n        self.decimals = decimals\n        hasAutoDecimals = true\n    }\n    \n    @objc public init(block: @escaping Block)\n    {\n        super.init()\n        \n        self.block = block\n    }\n    \n    @objc public static func with(block: @escaping Block) -> DefaultValueFormatter?\n    {\n        return DefaultValueFormatter(block: block)\n    }\n    \n    open func stringForValue(_ value: Double,\n                             entry: ChartDataEntry,\n                             dataSetIndex: Int,\n                             viewPortHandler: ViewPortHandler?) -> String\n    {\n        if let block = block {\n            return block(value, entry, dataSetIndex, viewPortHandler)\n        } else {\n            return formatter?.string(from: NSNumber(floatLiteral: value)) ?? \"\"\n        }\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift",
    "content": "//\n//  IAxisValueFormatter.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\n\n/// An interface for providing custom axis Strings.\n@objc(IChartAxisValueFormatter)\npublic protocol IAxisValueFormatter: class\n{\n    \n    /// Called when a value from an axis is formatted before being drawn.\n    ///\n    /// For performance reasons, avoid excessive calculations and memory allocations inside this method.\n    ///\n    /// - Parameters:\n    ///   - value:           the value that is currently being drawn\n    ///   - axis:            the axis that the value belongs to\n    /// - Returns: The customized label that is drawn on the x-axis.\n    func stringForValue(_ value: Double,\n                        axis: AxisBase?) -> String\n    \n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift",
    "content": "//\n//  IFillFormatter.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n/// Protocol for providing a custom logic to where the filling line of a LineDataSet should end. This of course only works if setFillEnabled(...) is set to true.\n@objc(IChartFillFormatter)\npublic protocol IFillFormatter\n{\n    /// - Returns: The vertical (y-axis) position where the filled-line of the LineDataSet should end.\n    func getFillLinePosition(dataSet: ILineChartDataSet, dataProvider: LineChartDataProvider) -> CGFloat\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift",
    "content": "//\n//  IValueFormatter.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\n\n/// Interface that allows custom formatting of all values inside the chart before they are drawn to the screen.\n///\n/// Simply create your own formatting class and let it implement ValueFormatter. Then override the stringForValue()\n/// method and return whatever you want.\n\n@objc(IChartValueFormatter)\npublic protocol IValueFormatter: class\n{\n    \n    /// Called when a value (from labels inside the chart) is formatted before being drawn.\n    ///\n    /// For performance reasons, avoid excessive calculations and memory allocations inside this method.\n    ///\n    /// - Parameters:\n    ///   - value:           The value to be formatted\n    ///   - dataSetIndex:    The index of the DataSet the entry in focus belongs to\n    ///   - viewPortHandler: provides information about the current chart state (scale, translation, ...)\n    /// - Returns:                   The formatted label ready to be drawn\n    func stringForValue(_ value: Double,\n                        entry: ChartDataEntry,\n                        dataSetIndex: Int,\n                        viewPortHandler: ViewPortHandler?) -> String\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift",
    "content": "//\n//  IndexAxisValueFormatter.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\n\n/// This formatter is used for passing an array of x-axis labels, on whole x steps.\n@objc(ChartIndexAxisValueFormatter)\nopen class IndexAxisValueFormatter: NSObject, IAxisValueFormatter\n{\n    private var _values: [String] = [String]()\n    private var _valueCount: Int = 0\n    \n    @objc public var values: [String]\n    {\n        get\n        {\n            return _values\n        }\n        set\n        {\n            _values = newValue\n            _valueCount = _values.count\n        }\n    }\n    \n    public override init()\n    {\n        super.init()\n        \n    }\n    \n    @objc public init(values: [String])\n    {\n        super.init()\n        \n        self.values = values\n    }\n    \n    @objc public static func with(values: [String]) -> IndexAxisValueFormatter?\n    {\n        return IndexAxisValueFormatter(values: values)\n    }\n    \n    open func stringForValue(_ value: Double,\n                             axis: AxisBase?) -> String\n    {\n        let index = Int(value.rounded())\n        guard values.indices.contains(index), index == Int(value) else { return \"\" }\n        return _values[index]\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift",
    "content": "//\n//  BarHighlighter.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(BarChartHighlighter)\nopen class BarHighlighter: ChartHighlighter\n{\n    open override func getHighlight(x: CGFloat, y: CGFloat) -> Highlight?\n    {\n        guard\n            let barData = (self.chart as? BarChartDataProvider)?.barData,\n            let high = super.getHighlight(x: x, y: y)\n            else { return nil }\n        \n        let pos = getValsForTouch(x: x, y: y)\n\n        if let set = barData.getDataSetByIndex(high.dataSetIndex) as? IBarChartDataSet,\n            set.isStacked\n        {\n            return getStackedHighlight(high: high,\n                                       set: set,\n                                       xValue: Double(pos.x),\n                                       yValue: Double(pos.y))\n        }\n        else\n        {\n            return high\n        }\n    }\n    \n    internal override func getDistance(x1: CGFloat, y1: CGFloat, x2: CGFloat, y2: CGFloat) -> CGFloat\n    {\n        return abs(x1 - x2)\n    }\n    \n    internal override var data: ChartData?\n    {\n        return (chart as? BarChartDataProvider)?.barData\n    }\n    \n    /// This method creates the Highlight object that also indicates which value of a stacked BarEntry has been selected.\n    ///\n    /// - Parameters:\n    ///   - high: the Highlight to work with looking for stacked values\n    ///   - set:\n    ///   - xIndex:\n    ///   - yValue:\n    /// - Returns:\n    @objc open func getStackedHighlight(high: Highlight,\n                                  set: IBarChartDataSet,\n                                  xValue: Double,\n                                  yValue: Double) -> Highlight?\n    {\n        guard\n            let chart = self.chart as? BarLineScatterCandleBubbleChartDataProvider,\n            let entry = set.entryForXValue(xValue, closestToY: yValue) as? BarChartDataEntry\n            else { return nil }\n        \n        // Not stacked\n        if entry.yValues == nil\n        {\n            return high\n        }\n        \n        guard\n            let ranges = entry.ranges,\n            ranges.count > 0\n            else { return nil }\n\n        let stackIndex = getClosestStackIndex(ranges: ranges, value: yValue)\n        let pixel = chart\n            .getTransformer(forAxis: set.axisDependency)\n            .pixelForValues(x: high.x, y: ranges[stackIndex].to)\n\n        return Highlight(x: entry.x,\n                         y: entry.y,\n                         xPx: pixel.x,\n                         yPx: pixel.y,\n                         dataSetIndex: high.dataSetIndex,\n                         stackIndex: stackIndex,\n                         axis: high.axis)\n    }\n    \n    /// - Parameters:\n    ///   - entry:\n    ///   - value:\n    /// - Returns: The index of the closest value inside the values array / ranges (stacked barchart) to the value given as a parameter.\n    @objc open func getClosestStackIndex(ranges: [Range]?, value: Double) -> Int\n    {\n        guard let ranges = ranges else { return 0 }\n        if let stackIndex = ranges.firstIndex(where: { $0.contains(value) }) {\n            return stackIndex\n        } else {\n            let length = max(ranges.count - 1, 0)\n            return (value > ranges[length].to) ? length : 0\n        }\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift",
    "content": "//\n//  ChartHighlighter.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nopen class ChartHighlighter : NSObject, IHighlighter\n{\n    /// instance of the data-provider\n    @objc open weak var chart: ChartDataProvider?\n    \n    @objc public init(chart: ChartDataProvider)\n    {\n        self.chart = chart\n    }\n    \n    open func getHighlight(x: CGFloat, y: CGFloat) -> Highlight?\n    {\n        let xVal = Double(getValsForTouch(x: x, y: y).x)\n        return getHighlight(xValue: xVal, x: x, y: y)\n    }\n    \n    /// - Parameters:\n    ///   - x:\n    /// - Returns: The corresponding x-pos for a given touch-position in pixels.\n    @objc open func getValsForTouch(x: CGFloat, y: CGFloat) -> CGPoint\n    {\n        guard let chart = self.chart as? BarLineScatterCandleBubbleChartDataProvider else { return .zero }\n        \n        // take any transformer to determine the values\n        return chart.getTransformer(forAxis: .left).valueForTouchPoint(x: x, y: y)\n    }\n    \n    /// - Parameters:\n    ///   - xValue:\n    ///   - x:\n    ///   - y:\n    /// - Returns: The corresponding ChartHighlight for a given x-value and xy-touch position in pixels.\n    @objc open func getHighlight(xValue xVal: Double, x: CGFloat, y: CGFloat) -> Highlight?\n    {\n        guard let chart = chart else { return nil }\n        \n        let closestValues = getHighlights(xValue: xVal, x: x, y: y)\n        guard !closestValues.isEmpty else { return nil }\n        \n        let leftAxisMinDist = getMinimumDistance(closestValues: closestValues, y: y, axis: .left)\n        let rightAxisMinDist = getMinimumDistance(closestValues: closestValues, y: y, axis: .right)\n        \n        let axis: YAxis.AxisDependency = leftAxisMinDist < rightAxisMinDist ? .left : .right\n        \n        let detail = closestSelectionDetailByPixel(closestValues: closestValues, x: x, y: y, axis: axis, minSelectionDistance: chart.maxHighlightDistance)\n        \n        return detail\n    }\n    \n    /// - Parameters:\n    ///   - xValue: the transformed x-value of the x-touch position\n    ///   - x: touch position\n    ///   - y: touch position\n    /// - Returns: A list of Highlight objects representing the entries closest to the given xVal.\n    /// The returned list contains two objects per DataSet (closest rounding up, closest rounding down).\n    @objc open func getHighlights(xValue: Double, x: CGFloat, y: CGFloat) -> [Highlight]\n    {\n        var vals = [Highlight]()\n        \n        guard let data = self.data else { return vals }\n        \n        for i in 0 ..< data.dataSetCount\n        {\n            guard\n                let dataSet = data.getDataSetByIndex(i),\n                dataSet.isHighlightEnabled      // don't include datasets that cannot be highlighted\n                else { continue }\n            \n\n            // extract all y-values from all DataSets at the given x-value.\n            // some datasets (i.e bubble charts) make sense to have multiple values for an x-value. We'll have to find a way to handle that later on. It's more complicated now when x-indices are floating point.\n            vals.append(contentsOf: buildHighlights(dataSet: dataSet, dataSetIndex: i, xValue: xValue, rounding: .closest))\n        }\n        \n        return vals\n    }\n    \n    /// - Returns: An array of `Highlight` objects corresponding to the selected xValue and dataSetIndex.\n    internal func buildHighlights(\n        dataSet set: IChartDataSet,\n        dataSetIndex: Int,\n        xValue: Double,\n        rounding: ChartDataSetRounding) -> [Highlight]\n    {\n        guard let chart = self.chart as? BarLineScatterCandleBubbleChartDataProvider else { return [] }\n        \n        var entries = set.entriesForXValue(xValue)\n        if entries.count == 0, let closest = set.entryForXValue(xValue, closestToY: .nan, rounding: rounding)\n        {\n            // Try to find closest x-value and take all entries for that x-value\n            entries = set.entriesForXValue(closest.x)\n        }\n\n        return entries.map { e in\n            let px = chart.getTransformer(forAxis: set.axisDependency)\n                .pixelForValues(x: e.x, y: e.y)\n            \n            return Highlight(x: e.x, y: e.y, xPx: px.x, yPx: px.y, dataSetIndex: dataSetIndex, axis: set.axisDependency)\n        }\n    }\n\n    // - MARK: - Utilities\n    \n    /// - Returns: The `ChartHighlight` of the closest value on the x-y cartesian axes\n    internal func closestSelectionDetailByPixel(\n        closestValues: [Highlight],\n        x: CGFloat,\n        y: CGFloat,\n        axis: YAxis.AxisDependency?,\n        minSelectionDistance: CGFloat) -> Highlight?\n    {\n        var distance = minSelectionDistance\n        var closest: Highlight?\n        \n        for high in closestValues\n        {\n            if axis == nil || high.axis == axis\n            {\n                let cDistance = getDistance(x1: x, y1: y, x2: high.xPx, y2: high.yPx)\n\n                if cDistance < distance\n                {\n                    closest = high\n                    distance = cDistance\n                }\n            }\n        }\n        \n        return closest\n    }\n    \n    /// - Returns: The minimum distance from a touch-y-value (in pixels) to the closest y-value (in pixels) that is displayed in the chart.\n    internal func getMinimumDistance(\n        closestValues: [Highlight],\n        y: CGFloat,\n        axis: YAxis.AxisDependency\n    ) -> CGFloat {\n        var distance = CGFloat.greatestFiniteMagnitude\n        \n        for high in closestValues where high.axis == axis\n        {\n            let tempDistance = abs(getHighlightPos(high: high) - y)\n            if tempDistance < distance\n            {\n                distance = tempDistance\n            }\n        }\n        \n        return distance\n    }\n    \n    internal func getHighlightPos(high: Highlight) -> CGFloat\n    {\n        return high.yPx\n    }\n    \n    internal func getDistance(x1: CGFloat, y1: CGFloat, x2: CGFloat, y2: CGFloat) -> CGFloat\n    {\n        return hypot(x1 - x2, y1 - y2)\n    }\n    \n    internal var data: ChartData?\n    {\n        return chart?.data\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift",
    "content": "//\n//  CombinedHighlighter.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(CombinedChartHighlighter)\nopen class CombinedHighlighter: ChartHighlighter\n{\n    /// bar highlighter for supporting stacked highlighting\n    private var barHighlighter: BarHighlighter?\n    \n    @objc public init(chart: CombinedChartDataProvider, barDataProvider: BarChartDataProvider)\n    {\n        super.init(chart: chart)\n        \n        // if there is BarData, create a BarHighlighter\n        self.barHighlighter = barDataProvider.barData == nil ? nil : BarHighlighter(chart: barDataProvider)\n    }\n    \n    open override func getHighlights(xValue: Double, x: CGFloat, y: CGFloat) -> [Highlight]\n    {\n        var vals = [Highlight]()\n        \n        guard\n            let chart = self.chart as? CombinedChartDataProvider,\n            let dataObjects = chart.combinedData?.allData\n            else { return vals }\n        \n        for i in 0..<dataObjects.count\n        {\n            let dataObject = dataObjects[i]\n\n            // in case of BarData, let the BarHighlighter take over\n            if barHighlighter != nil && dataObject is BarChartData,\n                let high = barHighlighter?.getHighlight(x: x, y: y)\n            {\n                high.dataIndex = i\n                vals.append(high)\n            }\n            else\n            {\n                for j in 0..<dataObject.dataSetCount\n                {\n                    guard let dataSet = dataObject.getDataSetByIndex(j),\n                        dataSet.isHighlightEnabled      // don't include datasets that cannot be highlighted\n                        else { continue }\n\n                    let highs = buildHighlights(dataSet: dataSet, dataSetIndex: j, xValue: xValue, rounding: .closest)\n\n                    for high in highs\n                    {\n                        high.dataIndex = i\n                        vals.append(high)\n                    }\n                }\n            }\n        }\n        \n        return vals\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Highlight/Highlight.swift",
    "content": "//\n//  Highlight.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(ChartHighlight)\nopen class Highlight: NSObject\n{\n    /// the x-value of the highlighted value\n    fileprivate var _x = Double.nan\n    \n    /// the y-value of the highlighted value\n    fileprivate var _y = Double.nan\n    \n    /// the x-pixel of the highlight\n    private var _xPx = CGFloat.nan\n    \n    /// the y-pixel of the highlight\n    private var _yPx = CGFloat.nan\n    \n    /// the index of the data object - in case it refers to more than one\n    @objc open var dataIndex = Int(-1)\n    \n    /// the index of the dataset the highlighted value is in\n    fileprivate var _dataSetIndex = Int(0)\n    \n    /// index which value of a stacked bar entry is highlighted\n    /// \n    /// **default**: -1\n    fileprivate var _stackIndex = Int(-1)\n    \n    /// the axis the highlighted value belongs to\n    private var _axis: YAxis.AxisDependency = YAxis.AxisDependency.left\n    \n    /// the x-position (pixels) on which this highlight object was last drawn\n    @objc open var drawX: CGFloat = 0.0\n    \n    /// the y-position (pixels) on which this highlight object was last drawn\n    @objc open var drawY: CGFloat = 0.0\n    \n    public override init()\n    {\n        super.init()\n    }\n    \n    /// - Parameters:\n    ///   - x: the x-value of the highlighted value\n    ///   - y: the y-value of the highlighted value\n    ///   - xPx: the x-pixel of the highlighted value\n    ///   - yPx: the y-pixel of the highlighted value\n    ///   - dataIndex: the index of the Data the highlighted value belongs to\n    ///   - dataSetIndex: the index of the DataSet the highlighted value belongs to\n    ///   - stackIndex: references which value of a stacked-bar entry has been selected\n    ///   - axis: the axis the highlighted value belongs to\n    @objc public init(\n        x: Double, y: Double,\n        xPx: CGFloat, yPx: CGFloat,\n        dataIndex: Int,\n        dataSetIndex: Int,\n        stackIndex: Int,\n        axis: YAxis.AxisDependency)\n    {\n        super.init()\n        \n        _x = x\n        _y = y\n        _xPx = xPx\n        _yPx = yPx\n        self.dataIndex = dataIndex\n        _dataSetIndex = dataSetIndex\n        _stackIndex = stackIndex\n        _axis = axis\n    }\n    \n    /// - Parameters:\n    ///   - x: the x-value of the highlighted value\n    ///   - y: the y-value of the highlighted value\n    ///   - xPx: the x-pixel of the highlighted value\n    ///   - yPx: the y-pixel of the highlighted value\n    ///   - dataSetIndex: the index of the DataSet the highlighted value belongs to\n    ///   - stackIndex: references which value of a stacked-bar entry has been selected\n    ///   - axis: the axis the highlighted value belongs to\n    @objc public convenience init(\n        x: Double, y: Double,\n        xPx: CGFloat, yPx: CGFloat,\n        dataSetIndex: Int,\n        stackIndex: Int,\n        axis: YAxis.AxisDependency)\n    {\n        self.init(x: x, y: y, xPx: xPx, yPx: yPx,\n                  dataIndex: 0,\n                  dataSetIndex: dataSetIndex,\n                  stackIndex: stackIndex,\n                  axis: axis)\n    }\n    \n    /// - Parameters:\n    ///   - x: the x-value of the highlighted value\n    ///   - y: the y-value of the highlighted value\n    ///   - xPx: the x-pixel of the highlighted value\n    ///   - yPx: the y-pixel of the highlighted value\n    ///   - dataIndex: the index of the Data the highlighted value belongs to\n    ///   - dataSetIndex: the index of the DataSet the highlighted value belongs to\n    ///   - stackIndex: references which value of a stacked-bar entry has been selected\n    ///   - axis: the axis the highlighted value belongs to\n    @objc public init(\n        x: Double, y: Double,\n        xPx: CGFloat, yPx: CGFloat,\n        dataSetIndex: Int,\n        axis: YAxis.AxisDependency)\n    {\n        super.init()\n        \n        _x = x\n        _y = y\n        _xPx = xPx\n        _yPx = yPx\n        _dataSetIndex = dataSetIndex\n        _axis = axis\n    }\n    \n    /// - Parameters:\n    ///   - x: the x-value of the highlighted value\n    ///   - y: the y-value of the highlighted value\n    ///   - dataSetIndex: the index of the DataSet the highlighted value belongs to\n    ///   - dataIndex: The data index to search in (only used in CombinedChartView currently)\n    @objc public init(x: Double, y: Double, dataSetIndex: Int, dataIndex: Int = -1)\n    {\n        _x = x\n        _y = y\n        _dataSetIndex = dataSetIndex\n        self.dataIndex = dataIndex\n    }\n    \n    /// - Parameters:\n    ///   - x: the x-value of the highlighted value\n    ///   - dataSetIndex: the index of the DataSet the highlighted value belongs to\n    ///   - stackIndex: references which value of a stacked-bar entry has been selected\n    @objc public convenience init(x: Double, dataSetIndex: Int, stackIndex: Int)\n    {\n        self.init(x: x, y: Double.nan, dataSetIndex: dataSetIndex)\n        _stackIndex = stackIndex\n    }\n    \n    @objc open var x: Double { return _x }\n    @objc open var y: Double { return _y }\n    @objc open var xPx: CGFloat { return _xPx }\n    @objc open var yPx: CGFloat { return _yPx }\n    @objc open var dataSetIndex: Int { return _dataSetIndex }\n    @objc open var stackIndex: Int { return _stackIndex }\n    @objc open var axis: YAxis.AxisDependency { return _axis }\n    \n    @objc open var isStacked: Bool { return _stackIndex >= 0 }\n    \n    /// Sets the x- and y-position (pixels) where this highlight was last drawn.\n    @objc open func setDraw(x: CGFloat, y: CGFloat)\n    {\n        self.drawX = x\n        self.drawY = y\n    }\n    \n    /// Sets the x- and y-position (pixels) where this highlight was last drawn.\n    @objc open func setDraw(pt: CGPoint)\n    {\n        self.drawX = pt.x\n        self.drawY = pt.y\n    }\n\n    // MARK: NSObject\n    \n    open override var description: String\n    {\n        return \"Highlight, x: \\(_x), y: \\(_y), dataIndex (combined charts): \\(dataIndex), dataSetIndex: \\(_dataSetIndex), stackIndex (only stacked barentry): \\(_stackIndex)\"\n    }\n}\n\n\n// MARK: Equatable\nextension Highlight /*: Equatable*/ {\n    open override func isEqual(_ object: Any?) -> Bool {\n        guard let object = object as? Highlight else { return false }\n\n        if self === object\n        {\n            return true\n        }\n\n        return _x == object._x\n            && _y == object._y\n            && dataIndex == object.dataIndex\n            && _dataSetIndex == object._dataSetIndex\n            && _stackIndex == object._stackIndex\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift",
    "content": "//\n//  HorizontalBarHighlighter.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(HorizontalBarChartHighlighter)\nopen class HorizontalBarHighlighter: BarHighlighter\n{\n    open override func getHighlight(x: CGFloat, y: CGFloat) -> Highlight?\n    {\n        guard let barData = self.chart?.data as? BarChartData else { return nil }\n\n        let pos = getValsForTouch(x: y, y: x)\n        guard let high = getHighlight(xValue: Double(pos.y), x: y, y: x) else { return nil }\n\n        if let set = barData.getDataSetByIndex(high.dataSetIndex) as? IBarChartDataSet,\n            set.isStacked\n        {\n            return getStackedHighlight(high: high,\n                                       set: set,\n                                       xValue: Double(pos.y),\n                                       yValue: Double(pos.x))\n        }\n\n        return high\n    }\n    \n    internal override func buildHighlights(\n        dataSet set: IChartDataSet,\n        dataSetIndex: Int,\n        xValue: Double,\n        rounding: ChartDataSetRounding) -> [Highlight]\n    {\n        guard let chart = self.chart as? BarLineScatterCandleBubbleChartDataProvider else { return [] }\n        \n        var entries = set.entriesForXValue(xValue)\n        if entries.count == 0, let closest = set.entryForXValue(xValue, closestToY: .nan, rounding: rounding)\n        {\n            // Try to find closest x-value and take all entries for that x-value\n            entries = set.entriesForXValue(closest.x)\n        }\n\n        return entries.map { e in\n            let px = chart.getTransformer(forAxis: set.axisDependency)\n                .pixelForValues(x: e.y, y: e.x)\n            return Highlight(x: e.x, y: e.y, xPx: px.x, yPx: px.y, dataSetIndex: dataSetIndex, axis: set.axisDependency)\n        }\n    }\n    \n    internal override func getDistance(x1: CGFloat, y1: CGFloat, x2: CGFloat, y2: CGFloat) -> CGFloat\n    {\n        return abs(y1 - y2)\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift",
    "content": "//\n//  IHighlighter.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(IChartHighlighter)\npublic protocol IHighlighter: class\n{\n    /// - Parameters:\n    ///   - x:\n    ///   - y:\n    /// - Returns: A Highlight object corresponding to the given x- and y- touch positions in pixels.\n    func getHighlight(x: CGFloat, y: CGFloat) -> Highlight?\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift",
    "content": "//\n//  PieHighlighter.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(PieChartHighlighter)\nopen class PieHighlighter: PieRadarHighlighter\n{\n    open override func closestHighlight(index: Int, x: CGFloat, y: CGFloat) -> Highlight?\n    {\n        guard\n            let set = chart?.data?.dataSets[0],\n            let entry = set.entryForIndex(index)\n            else { return nil }\n                \n        return Highlight(x: Double(index), y: entry.y, xPx: x, yPx: y, dataSetIndex: 0, axis: set.axisDependency)\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift",
    "content": "//\n//  PieRadarHighlighter.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(PieRadarChartHighlighter)\nopen class PieRadarHighlighter: ChartHighlighter\n{    \n    open override func getHighlight(x: CGFloat, y: CGFloat) -> Highlight?\n    {\n        guard let chart = self.chart as? PieRadarChartViewBase else { return nil }\n        \n        let touchDistanceToCenter = chart.distanceToCenter(x: x, y: y)\n        \n        // check if a slice was touched\n        guard touchDistanceToCenter <= chart.radius else\n        {\n            // if no slice was touched, highlight nothing\n            return nil\n        }\n\n        var angle = chart.angleForPoint(x: x ,y: y)\n\n        if chart is PieChartView\n        {\n            angle /= CGFloat(chart.chartAnimator.phaseY)\n        }\n\n        let index = chart.indexForAngle(angle)\n\n        // check if the index could be found\n        if index < 0 || index >= chart.data?.maxEntryCountSet?.entryCount ?? 0\n        {\n            return nil\n        }\n        else\n        {\n            return closestHighlight(index: index, x: x, y: y)\n        }\n\n    }\n    \n    /// - Parameters:\n    ///   - index:\n    ///   - x:\n    ///   - y:\n    /// - Returns: The closest Highlight object of the given objects based on the touch position inside the chart.\n    @objc open func closestHighlight(index: Int, x: CGFloat, y: CGFloat) -> Highlight?\n    {\n        fatalError(\"closestHighlight(index, x, y) cannot be called on PieRadarChartHighlighter\")\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift",
    "content": "//\n//  RadarHighlighter.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(RadarChartHighlighter)\nopen class RadarHighlighter: PieRadarHighlighter\n{\n    open override func closestHighlight(index: Int, x: CGFloat, y: CGFloat) -> Highlight?\n    {\n        guard let chart = self.chart as? RadarChartView else { return nil }\n        \n        let highlights = getHighlights(forIndex: index)\n        \n        let distanceToCenter = Double(chart.distanceToCenter(x: x, y: y) / chart.factor)\n        \n        var closest: Highlight?\n        var distance = Double.greatestFiniteMagnitude\n        \n        for high in highlights\n        {\n            let cdistance = abs(high.y - distanceToCenter)\n            if cdistance < distance\n            {\n                closest = high\n                distance = cdistance\n            }\n        }\n        \n        return closest\n    }\n    \n    /// - Parameters:\n    ///   - index:\n    /// - Returns: An array of Highlight objects for the given index.\n    /// The Highlight objects give information about the value at the selected index and DataSet it belongs to.\n    internal func getHighlights(forIndex index: Int) -> [Highlight]\n    {\n        var vals = [Highlight]()\n        \n        guard\n            let chart = self.chart as? RadarChartView,\n            let chartData = chart.data\n            else { return vals }\n        \n        let phaseX = chart.chartAnimator.phaseX\n        let phaseY = chart.chartAnimator.phaseY\n        let sliceangle = chart.sliceAngle\n        let factor = chart.factor\n\n        for i in chartData.dataSets.indices\n        {\n            guard\n                let dataSet = chartData.getDataSetByIndex(i),\n                let entry = dataSet.entryForIndex(index)\n                else { continue }\n            \n            let y = (entry.y - chart.chartYMin)\n            \n            let p = chart.centerOffsets.moving(distance: CGFloat(y) * factor * CGFloat(phaseY),\n                                               atAngle: sliceangle * CGFloat(index) * CGFloat(phaseX) + chart.rotationAngle)\n\n            let highlight = Highlight(x: Double(index), y: entry.y, xPx: p.x, yPx: p.y, dataSetIndex: i, axis: dataSet.axisDependency)\n            vals.append(highlight)\n        }\n        \n        return vals\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Highlight/Range.swift",
    "content": "//\n//  Range.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\n\n@objc(ChartRange)\nopen class Range: NSObject\n{\n    @objc open var from: Double\n    @objc open var to: Double\n    \n    @objc public init(from: Double, to: Double)\n    {\n        self.from = from\n        self.to = to\n        \n        super.init()\n    }\n\n    /// - Parameters:\n    ///   - value:\n    /// - Returns: `true` if this range contains (if the value is in between) the given value, `false` ifnot.\n    @objc open func contains(_ value: Double) -> Bool\n    {\n        if value > from && value <= to\n        {\n            return true\n        }\n        else\n        {\n            return false\n        }\n    }\n    \n    @objc open func isLarger(_ value: Double) -> Bool\n    {\n        return value > to\n    }\n    \n    @objc open func isSmaller(_ value: Double) -> Bool\n    {\n        return value < from\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift",
    "content": "//\n//  BarChartDataProvider.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc\npublic protocol BarChartDataProvider: BarLineScatterCandleBubbleChartDataProvider\n{\n    var barData: BarChartData? { get }\n    \n    var isDrawBarShadowEnabled: Bool { get }\n    var isDrawValueAboveBarEnabled: Bool { get }\n    var isHighlightFullBarEnabled: Bool { get }\n}"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift",
    "content": "//\n//  BarLineScatterCandleBubbleChartDataProvider.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc\npublic protocol BarLineScatterCandleBubbleChartDataProvider: ChartDataProvider\n{\n    func getTransformer(forAxis: YAxis.AxisDependency) -> Transformer\n    func isInverted(axis: YAxis.AxisDependency) -> Bool\n    \n    var lowestVisibleX: Double { get }\n    var highestVisibleX: Double { get }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift",
    "content": "//\n//  BubbleChartDataProvider.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc\npublic protocol BubbleChartDataProvider: BarLineScatterCandleBubbleChartDataProvider\n{\n    var bubbleData: BubbleChartData? { get }\n}"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift",
    "content": "//\n//  CandleChartDataProvider.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc\npublic protocol CandleChartDataProvider: BarLineScatterCandleBubbleChartDataProvider\n{\n    var candleData: CandleChartData? { get }\n}"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift",
    "content": "//\n//  ChartDataProvider.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc\npublic protocol ChartDataProvider\n{\n    /// The minimum x-value of the chart, regardless of zoom or translation.\n    var chartXMin: Double { get }\n    \n    /// The maximum x-value of the chart, regardless of zoom or translation.\n    var chartXMax: Double { get }\n    \n    /// The minimum y-value of the chart, regardless of zoom or translation.\n    var chartYMin: Double { get }\n    \n    /// The maximum y-value of the chart, regardless of zoom or translation.\n    var chartYMax: Double { get }\n    \n    var maxHighlightDistance: CGFloat { get }\n    \n    var xRange: Double { get }\n    \n    var centerOffsets: CGPoint { get }\n    \n    var data: ChartData? { get }\n    \n    var maxVisibleCount: Int { get }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift",
    "content": "//\n//  CombinedChartDataProvider.swoft\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc\npublic protocol CombinedChartDataProvider: LineChartDataProvider, BarChartDataProvider, BubbleChartDataProvider, CandleChartDataProvider, ScatterChartDataProvider\n{\n    var combinedData: CombinedChartData? { get }\n}"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift",
    "content": "//\n//  LineChartDataProvider.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc\npublic protocol LineChartDataProvider: BarLineScatterCandleBubbleChartDataProvider\n{\n    var lineData: LineChartData? { get }\n    \n    func getAxis(_ axis: YAxis.AxisDependency) -> YAxis\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift",
    "content": "//\n//  ScatterChartDataProvider.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc\npublic protocol ScatterChartDataProvider: BarLineScatterCandleBubbleChartDataProvider\n{\n    var scatterData: ScatterChartData? { get }\n}"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift",
    "content": "//\n//  AnimatedMoveViewJob.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nopen class AnimatedMoveViewJob: AnimatedViewPortJob\n{\n    internal override func animationUpdate()\n    {\n        guard\n            let viewPortHandler = viewPortHandler,\n            let transformer = transformer,\n            let view = view\n            else { return }\n        \n        var pt = CGPoint(\n            x: xOrigin + (CGFloat(xValue) - xOrigin) * phase,\n            y: yOrigin + (CGFloat(yValue) - yOrigin) * phase\n        )\n        \n        transformer.pointValueToPixel(&pt)\n        viewPortHandler.centerViewPort(pt: pt, chart: view)\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift",
    "content": "//\n//  AnimatedViewPortJob.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\nimport QuartzCore\n\nopen class AnimatedViewPortJob: ViewPortJob\n{\n    internal var phase: CGFloat = 1.0\n    internal var xOrigin: CGFloat = 0.0\n    internal var yOrigin: CGFloat = 0.0\n    \n    private var _startTime: TimeInterval = 0.0\n    private var _displayLink: NSUIDisplayLink!\n    private var _duration: TimeInterval = 0.0\n    private var _endTime: TimeInterval = 0.0\n    \n    private var _easing: ChartEasingFunctionBlock?\n    \n    @objc public init(\n        viewPortHandler: ViewPortHandler,\n        xValue: Double,\n        yValue: Double,\n        transformer: Transformer,\n        view: ChartViewBase,\n        xOrigin: CGFloat,\n        yOrigin: CGFloat,\n        duration: TimeInterval,\n        easing: ChartEasingFunctionBlock?)\n    {\n        super.init(viewPortHandler: viewPortHandler,\n            xValue: xValue,\n            yValue: yValue,\n            transformer: transformer,\n            view: view)\n        \n        self.xOrigin = xOrigin\n        self.yOrigin = yOrigin\n        self._duration = duration\n        self._easing = easing\n    }\n    \n    deinit\n    {\n        stop(finish: false)\n    }\n    \n    open override func doJob()\n    {\n        start()\n    }\n    \n    @objc open func start()\n    {\n        _startTime = CACurrentMediaTime()\n        _endTime = _startTime + _duration\n        _endTime = _endTime > _endTime ? _endTime : _endTime\n        \n        updateAnimationPhase(_startTime)\n        \n        _displayLink = NSUIDisplayLink(target: self, selector: #selector(animationLoop))\n        _displayLink.add(to: .main, forMode: RunLoop.Mode.common)\n    }\n    \n    @objc open func stop(finish: Bool)\n    {\n        guard _displayLink != nil else { return }\n\n        _displayLink.remove(from: .main, forMode: RunLoop.Mode.common)\n        _displayLink = nil\n\n        if finish\n        {\n            if phase != 1.0\n            {\n                phase = 1.0\n                animationUpdate()\n            }\n\n            animationEnd()\n        }\n    }\n    \n    private func updateAnimationPhase(_ currentTime: TimeInterval)\n    {\n        let elapsedTime = currentTime - _startTime\n        let duration = _duration\n        var elapsed = elapsedTime\n\n        elapsed = min(elapsed, duration)\n\n        phase = CGFloat(_easing?(elapsed, duration) ?? elapsed / duration)\n    }\n    \n    @objc private func animationLoop()\n    {\n        let currentTime: TimeInterval = CACurrentMediaTime()\n        \n        updateAnimationPhase(currentTime)\n        \n        animationUpdate()\n        \n        if currentTime >= _endTime\n        {\n            stop(finish: true)\n        }\n    }\n    \n    internal func animationUpdate()\n    {\n       // Override this\n    }\n    \n    internal func animationEnd()\n    {\n        // Override this\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift",
    "content": "//\n//  AnimatedZoomViewJob.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nopen class AnimatedZoomViewJob: AnimatedViewPortJob\n{\n    internal var yAxis: YAxis?\n    internal var xAxisRange: Double = 0.0\n    internal var scaleX: CGFloat = 0.0\n    internal var scaleY: CGFloat = 0.0\n    internal var zoomOriginX: CGFloat = 0.0\n    internal var zoomOriginY: CGFloat = 0.0\n    internal var zoomCenterX: CGFloat = 0.0\n    internal var zoomCenterY: CGFloat = 0.0\n\n    @objc public init(\n        viewPortHandler: ViewPortHandler,\n        transformer: Transformer,\n        view: ChartViewBase,\n        yAxis: YAxis,\n        xAxisRange: Double,\n        scaleX: CGFloat,\n        scaleY: CGFloat,\n        xOrigin: CGFloat,\n        yOrigin: CGFloat,\n        zoomCenterX: CGFloat,\n        zoomCenterY: CGFloat,\n        zoomOriginX: CGFloat,\n        zoomOriginY: CGFloat,\n        duration: TimeInterval,\n        easing: ChartEasingFunctionBlock?)\n    {\n        super.init(viewPortHandler: viewPortHandler,\n            xValue: 0.0,\n            yValue: 0.0,\n            transformer: transformer,\n            view: view,\n            xOrigin: xOrigin,\n            yOrigin: yOrigin,\n            duration: duration,\n            easing: easing)\n        \n        self.yAxis = yAxis\n        self.xAxisRange = xAxisRange\n        self.scaleX = scaleX\n        self.scaleY = scaleY\n        self.zoomCenterX = zoomCenterX\n        self.zoomCenterY = zoomCenterY\n        self.zoomOriginX = zoomOriginX\n        self.zoomOriginY = zoomOriginY\n    }\n    \n    internal override func animationUpdate()\n    {\n        guard\n            let viewPortHandler = viewPortHandler,\n            let transformer = transformer,\n            let view = view\n            else { return }\n        \n        let scaleX = xOrigin + (self.scaleX - xOrigin) * phase\n        let scaleY = yOrigin + (self.scaleY - yOrigin) * phase\n        \n        var matrix = viewPortHandler.setZoom(scaleX: scaleX, scaleY: scaleY)\n        viewPortHandler.refresh(newMatrix: matrix, chart: view, invalidate: false)\n        \n        let valsInView = CGFloat(yAxis?.axisRange ?? 0.0) / viewPortHandler.scaleY\n        let xsInView = CGFloat(xAxisRange) / viewPortHandler.scaleX\n        \n        var pt = CGPoint(\n            x: zoomOriginX + ((zoomCenterX - xsInView / 2.0) - zoomOriginX) * phase,\n            y: zoomOriginY + ((zoomCenterY + valsInView / 2.0) - zoomOriginY) * phase\n        )\n        \n        transformer.pointValueToPixel(&pt)\n        \n        matrix = viewPortHandler.translate(pt: pt)\n        viewPortHandler.refresh(newMatrix: matrix, chart: view, invalidate: true)\n    }\n    \n    internal override func animationEnd()\n    {\n        (view as? BarLineChartViewBase)?.calculateOffsets()\n        view?.setNeedsDisplay()\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift",
    "content": "//\n//  MoveViewJob.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(MoveChartViewJob)\nopen class MoveViewJob: ViewPortJob\n{    \n    open override func doJob()\n    {\n        guard\n            let viewPortHandler = viewPortHandler,\n            let transformer = transformer,\n            let view = view\n            else { return }\n        \n        var pt = CGPoint(\n            x: xValue,\n            y: yValue\n        )\n        \n        transformer.pointValueToPixel(&pt)\n        viewPortHandler.centerViewPort(pt: pt, chart: view)\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift",
    "content": "//\n//  ViewPortJob.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n// This defines a viewport modification job, used for delaying or animating viewport changes\n@objc(ChartViewPortJob)\nopen class ViewPortJob: NSObject\n{\n    internal var point: CGPoint = CGPoint()\n    internal weak var viewPortHandler: ViewPortHandler?\n    internal var xValue: Double = 0.0\n    internal var yValue: Double = 0.0\n    internal weak var transformer: Transformer?\n    internal weak var view: ChartViewBase?\n    \n    @objc public init(\n        viewPortHandler: ViewPortHandler,\n        xValue: Double,\n        yValue: Double,\n        transformer: Transformer,\n        view: ChartViewBase)\n    {\n        super.init()\n        \n        self.viewPortHandler = viewPortHandler\n        self.xValue = xValue\n        self.yValue = yValue\n        self.transformer = transformer\n        self.view = view\n    }\n    \n    @objc open func doJob()\n    {\n        fatalError(\"`doJob()` must be overridden by subclasses\")\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift",
    "content": "//\n//  ZoomViewJob.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(ZoomChartViewJob)\nopen class ZoomViewJob: ViewPortJob\n{\n    internal var scaleX: CGFloat = 0.0\n    internal var scaleY: CGFloat = 0.0\n    internal var axisDependency: YAxis.AxisDependency = .left\n    \n    @objc public init(\n        viewPortHandler: ViewPortHandler,\n        scaleX: CGFloat,\n        scaleY: CGFloat,\n        xValue: Double,\n        yValue: Double,\n        transformer: Transformer,\n        axis: YAxis.AxisDependency,\n        view: ChartViewBase)\n    {\n        super.init(\n            viewPortHandler: viewPortHandler,\n            xValue: xValue,\n            yValue: yValue,\n            transformer: transformer,\n            view: view)\n        \n        self.scaleX = scaleX\n        self.scaleY = scaleY\n        self.axisDependency = axis\n    }\n    \n    open override func doJob()\n    {\n        guard\n            let viewPortHandler = viewPortHandler,\n            let transformer = transformer,\n            let view = view\n            else { return }\n        \n        var matrix = viewPortHandler.setZoom(scaleX: scaleX, scaleY: scaleY)\n        viewPortHandler.refresh(newMatrix: matrix, chart: view, invalidate: false)\n        \n        let yValsInView = (view as! BarLineChartViewBase).getAxis(axisDependency).axisRange / Double(viewPortHandler.scaleY)\n        let xValsInView = (view as! BarLineChartViewBase).xAxis.axisRange / Double(viewPortHandler.scaleX)\n        \n        var pt = CGPoint(\n            x: CGFloat(xValue - xValsInView / 2.0),\n            y: CGFloat(yValue + yValsInView / 2.0)\n        )\n        \n        transformer.pointValueToPixel(&pt)\n        \n        matrix = viewPortHandler.translate(pt: pt)\n        viewPortHandler.refresh(newMatrix: matrix, chart: view, invalidate: false)\n        \n        (view as! BarLineChartViewBase).calculateOffsets()\n        view.setNeedsDisplay()\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift",
    "content": "//\n//  AxisRendererBase.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(ChartAxisRendererBase)\nopen class AxisRendererBase: Renderer\n{\n    /// base axis this axis renderer works with\n    @objc open var axis: AxisBase?\n    \n    /// transformer to transform values to screen pixels and return\n    @objc open var transformer: Transformer?\n\n    @objc public init(viewPortHandler: ViewPortHandler, transformer: Transformer?, axis: AxisBase?)\n    {\n        super.init(viewPortHandler: viewPortHandler)\n        \n        self.transformer = transformer\n        self.axis = axis\n    }\n    \n    /// Draws the axis labels on the specified context\n    @objc open func renderAxisLabels(context: CGContext)\n    {\n        fatalError(\"renderAxisLabels() cannot be called on AxisRendererBase\")\n    }\n    \n    /// Draws the grid lines belonging to the axis.\n    @objc open func renderGridLines(context: CGContext)\n    {\n        fatalError(\"renderGridLines() cannot be called on AxisRendererBase\")\n    }\n    \n    /// Draws the line that goes alongside the axis.\n    @objc open func renderAxisLine(context: CGContext)\n    {\n        fatalError(\"renderAxisLine() cannot be called on AxisRendererBase\")\n    }\n    \n    /// Draws the LimitLines associated with this axis to the screen.\n    @objc open func renderLimitLines(context: CGContext)\n    {\n        fatalError(\"renderLimitLines() cannot be called on AxisRendererBase\")\n    }\n    \n    /// Computes the axis values.\n    ///\n    /// - Parameters:\n    ///   - min: the minimum value in the data object for this axis\n    ///   - max: the maximum value in the data object for this axis\n    @objc open func computeAxis(min: Double, max: Double, inverted: Bool)\n    {\n        var min = min, max = max\n        \n        if let transformer = self.transformer\n        {\n            // calculate the starting and entry point of the y-labels (depending on zoom / contentrect bounds)\n            if viewPortHandler.contentWidth > 10.0 && !viewPortHandler.isFullyZoomedOutY\n            {\n                let p1 = transformer.valueForTouchPoint(CGPoint(x: viewPortHandler.contentLeft, y: viewPortHandler.contentTop))\n                let p2 = transformer.valueForTouchPoint(CGPoint(x: viewPortHandler.contentLeft, y: viewPortHandler.contentBottom))\n                \n                if !inverted\n                {\n                    min = Double(p2.y)\n                    max = Double(p1.y)\n                }\n                else\n                {\n                    min = Double(p1.y)\n                    max = Double(p2.y)\n                }\n            }\n        }\n        \n        computeAxisValues(min: min, max: max)\n    }\n    \n    /// Sets up the axis values. Computes the desired number of labels between the two given extremes.\n    @objc open func computeAxisValues(min: Double, max: Double)\n    {\n        guard let axis = self.axis else { return }\n        \n        let yMin = min\n        let yMax = max\n        \n        let labelCount = axis.labelCount\n        let range = abs(yMax - yMin)\n        \n        if labelCount == 0 || range <= 0 || range.isInfinite\n        {\n            axis.entries = [Double]()\n            axis.centeredEntries = [Double]()\n            return\n        }\n        \n        // Find out how much spacing (in y value space) between axis values\n        let rawInterval = range / Double(labelCount)\n        var interval = rawInterval.roundedToNextSignficant()\n        \n        // If granularity is enabled, then do not allow the interval to go below specified granularity.\n        // This is used to avoid repeated values when rounding values for display.\n        if axis.granularityEnabled\n        {\n            interval = interval < axis.granularity ? axis.granularity : interval\n        }\n        \n        // Normalize interval\n        let intervalMagnitude = pow(10.0, Double(Int(log10(interval)))).roundedToNextSignficant()\n        let intervalSigDigit = Int(interval / intervalMagnitude)\n        if intervalSigDigit > 5\n        {\n            // Use one order of magnitude higher, to avoid intervals like 0.9 or 90\n            // if it's 0.0 after floor(), we use the old value\n            interval = floor(10.0 * intervalMagnitude) == 0.0 ? interval : floor(10.0 * intervalMagnitude)\n        }\n        \n        var n = axis.centerAxisLabelsEnabled ? 1 : 0\n        \n        // force label count\n        if axis.isForceLabelsEnabled\n        {\n            interval = Double(range) / Double(labelCount - 1)\n            \n            // Ensure stops contains at least n elements.\n            axis.entries.removeAll(keepingCapacity: true)\n            axis.entries.reserveCapacity(labelCount)\n            \n            var v = yMin\n            \n            for _ in 0 ..< labelCount\n            {\n                axis.entries.append(v)\n                v += interval\n            }\n            \n            n = labelCount\n        }\n        else\n        {\n            // no forced count\n        \n            var first = interval == 0.0 ? 0.0 : ceil(yMin / interval) * interval\n            \n            if axis.centerAxisLabelsEnabled\n            {\n                first -= interval\n            }\n            \n            let last = interval == 0.0 ? 0.0 : (floor(yMax / interval) * interval).nextUp\n            \n            if interval != 0.0 && last != first\n            {\n                for _ in stride(from: first, through: last, by: interval)\n                {\n                    n += 1\n                }\n            }\n            else if last == first && n == 0\n            {\n                n = 1\n            }\n\n            // Ensure stops contains at least n elements.\n            axis.entries.removeAll(keepingCapacity: true)\n            axis.entries.reserveCapacity(labelCount)\n            \n            var f = first\n            var i = 0\n            while i < n\n            {\n                if f == 0.0\n                {\n                    // Fix for IEEE negative zero case (Where value == -0.0, and 0.0 == -0.0)\n                    f = 0.0\n                }\n                \n                axis.entries.append(Double(f))\n                \n                f += interval\n                i += 1\n            }\n        }\n        \n        // set decimals\n        if interval < 1\n        {\n            axis.decimals = Int(ceil(-log10(interval)))\n        }\n        else\n        {\n            axis.decimals = 0\n        }\n        \n        if axis.centerAxisLabelsEnabled\n        {\n            axis.centeredEntries.reserveCapacity(n)\n            axis.centeredEntries.removeAll()\n            \n            let offset: Double = interval / 2.0\n            \n            for i in 0 ..< n\n            {\n                axis.centeredEntries.append(axis.entries[i] + offset)\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift",
    "content": "//\n//  BarChartRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n#if canImport(UIKit)\n    import UIKit\n#endif\n\n#if canImport(Cocoa)\nimport Cocoa\n#endif\n\nopen class BarChartRenderer: BarLineScatterCandleBubbleRenderer\n{\n    /// A nested array of elements ordered logically (i.e not in visual/drawing order) for use with VoiceOver\n    ///\n    /// Its use is apparent when there are multiple data sets, since we want to read bars in left to right order,\n    /// irrespective of dataset. However, drawing is done per dataset, so using this array and then flattening it prevents us from needing to\n    /// re-render for the sake of accessibility.\n    ///\n    /// In practise, its structure is:\n    ///\n    /// ````\n    ///     [\n    ///      [dataset1 element1, dataset2 element1],\n    ///      [dataset1 element2, dataset2 element2],\n    ///      [dataset1 element3, dataset2 element3]\n    ///     ...\n    ///     ]\n    /// ````\n    /// This is done to provide numerical inference across datasets to a screenreader user, in the same way that a sighted individual\n    /// uses a multi-dataset bar chart.\n    ///\n    /// The ````internal```` specifier is to allow subclasses (HorizontalBar) to populate the same array\n    internal lazy var accessibilityOrderedElements: [[NSUIAccessibilityElement]] = accessibilityCreateEmptyOrderedElements()\n\n    private class Buffer\n    {\n        var rects = [CGRect]()\n    }\n    \n    @objc open weak var dataProvider: BarChartDataProvider?\n    \n    @objc public init(dataProvider: BarChartDataProvider, animator: Animator, viewPortHandler: ViewPortHandler)\n    {\n        super.init(animator: animator, viewPortHandler: viewPortHandler)\n        \n        self.dataProvider = dataProvider\n    }\n    \n    // [CGRect] per dataset\n    private var _buffers = [Buffer]()\n    \n    open override func initBuffers()\n    {\n        if let barData = dataProvider?.barData\n        {\n            // Matche buffers count to dataset count\n            if _buffers.count != barData.dataSetCount\n            {\n                while _buffers.count < barData.dataSetCount\n                {\n                    _buffers.append(Buffer())\n                }\n                while _buffers.count > barData.dataSetCount\n                {\n                    _buffers.removeLast()\n                }\n            }\n            \n            for i in stride(from: 0, to: barData.dataSetCount, by: 1)\n            {\n                let set = barData.dataSets[i] as! IBarChartDataSet\n                let size = set.entryCount * (set.isStacked ? set.stackSize : 1)\n                if _buffers[i].rects.count != size\n                {\n                    _buffers[i].rects = [CGRect](repeating: CGRect(), count: size)\n                }\n            }\n        }\n        else\n        {\n            _buffers.removeAll()\n        }\n    }\n    \n    private func prepareBuffer(dataSet: IBarChartDataSet, index: Int)\n    {\n        guard\n            let dataProvider = dataProvider,\n            let barData = dataProvider.barData\n            else { return }\n        \n        let barWidthHalf = barData.barWidth / 2.0\n    \n        let buffer = _buffers[index]\n        var bufferIndex = 0\n        let containsStacks = dataSet.isStacked\n        \n        let isInverted = dataProvider.isInverted(axis: dataSet.axisDependency)\n        let phaseY = animator.phaseY\n        var barRect = CGRect()\n        var x: Double\n        var y: Double\n\n        \n        for i in stride(from: 0, to: min(Int(ceil(Double(dataSet.entryCount) * animator.phaseX)), dataSet.entryCount), by: 1)\n        {\n            guard let e = dataSet.entryForIndex(i) as? BarChartDataEntry else { continue }\n            \n            let vals = e.yValues\n\n            x = e.x\n            y = e.y\n\n            if !containsStacks || vals == nil\n            {\n                let left = CGFloat(x - barWidthHalf)\n                let right = CGFloat(x + barWidthHalf)\n                var top = isInverted\n                    ? (y <= 0.0 ? CGFloat(y) : 0)\n                    : (y >= 0.0 ? CGFloat(y) : 0)\n                var bottom = isInverted\n                    ? (y >= 0.0 ? CGFloat(y) : 0)\n                    : (y <= 0.0 ? CGFloat(y) : 0)\n                \n                /* When drawing each bar, the renderer actually draws each bar from 0 to the required value.\n                 * This drawn bar is then clipped to the visible chart rect in BarLineChartViewBase's draw(rect:) using clipDataToContent.\n                 * While this works fine when calculating the bar rects for drawing, it causes the accessibilityFrames to be oversized in some cases.\n                 * This offset attempts to undo that unnecessary drawing when calculating barRects\n                 *\n                 * +---------------------------------------------------------------+---------------------------------------------------------------+\n                 * |      Situation 1:  (!inverted && y >= 0)                      |      Situation 3:  (inverted && y >= 0)                       |\n                 * |                                                               |                                                               |\n                 * |        y ->           +--+       <- top                       |        0 -> ---+--+---+--+------   <- top                     |\n                 * |                       |//|        } topOffset = y - max       |                |  |   |//|          } topOffset = min         |\n                 * |      max -> +---------+--+----+  <- top - topOffset           |      min -> +--+--+---+--+----+    <- top + topOffset         |\n                 * |             |  +--+   |//|    |                               |             |  |  |   |//|    |                               |\n                 * |             |  |  |   |//|    |                               |             |  +--+   |//|    |                               |\n                 * |             |  |  |   |//|    |                               |             |         |//|    |                               |\n                 * |      min -> +--+--+---+--+----+  <- bottom + bottomOffset     |      max -> +---------+--+----+    <- bottom - bottomOffset   |\n                 * |                |  |   |//|        } bottomOffset = min        |                       |//|          } bottomOffset = y - max  |\n                 * |        0 -> ---+--+---+--+-----  <- bottom                    |        y ->           +--+         <- bottom                  |\n                 * |                                                               |                                                               |\n                 * +---------------------------------------------------------------+---------------------------------------------------------------+\n                 * |      Situation 2:  (!inverted && y < 0)                       |      Situation 4:  (inverted && y < 0)                        |\n                 * |                                                               |                                                               |\n                 * |        0 -> ---+--+---+--+-----   <- top                      |        y ->           +--+         <- top                     |\n                 * |                |  |   |//|         } topOffset = -max         |                       |//|          } topOffset = min - y     |\n                 * |      max -> +--+--+---+--+----+   <- top - topOffset          |      min -> +---------+--+----+    <- top + topOffset         |\n                 * |             |  |  |   |//|    |                               |             |  +--+   |//|    |                               |\n                 * |             |  +--+   |//|    |                               |             |  |  |   |//|    |                               |\n                 * |             |         |//|    |                               |             |  |  |   |//|    |                               |\n                 * |      min -> +---------+--+----+   <- bottom + bottomOffset    |      max -> +--+--+---+--+----+    <- bottom - bottomOffset   |\n                 * |                       |//|         } bottomOffset = min - y   |                |  |   |//|          } bottomOffset = -max     |\n                 * |        y ->           +--+        <- bottom                   |        0 -> ---+--+---+--+-------  <- bottom                  |\n                 * |                                                               |                                                               |\n                 * +---------------------------------------------------------------+---------------------------------------------------------------+\n                 */\n                var topOffset: CGFloat = 0.0\n                var bottomOffset: CGFloat = 0.0\n                if let offsetView = dataProvider as? BarChartView\n                {\n                    let offsetAxis = offsetView.getAxis(dataSet.axisDependency)\n                    if y >= 0\n                    {\n                        // situation 1\n                        if offsetAxis.axisMaximum < y\n                        {\n                            topOffset = CGFloat(y - offsetAxis.axisMaximum)\n                        }\n                        if offsetAxis.axisMinimum > 0\n                        {\n                            bottomOffset = CGFloat(offsetAxis.axisMinimum)\n                        }\n                    }\n                    else // y < 0\n                    {\n                        //situation 2\n                        if offsetAxis.axisMaximum < 0\n                        {\n                            topOffset = CGFloat(offsetAxis.axisMaximum * -1)\n                        }\n                        if offsetAxis.axisMinimum > y\n                        {\n                            bottomOffset = CGFloat(offsetAxis.axisMinimum - y)\n                        }\n                    }\n                    if isInverted\n                    {\n                        // situation 3 and 4\n                        // exchange topOffset/bottomOffset based on 1 and 2\n                        // see diagram above\n                        (topOffset, bottomOffset) = (bottomOffset, topOffset)\n                    }\n                }\n                //apply offset\n                top = isInverted ? top + topOffset : top - topOffset\n                bottom = isInverted ? bottom - bottomOffset : bottom + bottomOffset\n\n                // multiply the height of the rect with the phase\n                // explicitly add 0 + topOffset to indicate this is changed after adding accessibility support (#3650, #3520)\n                if top > 0 + topOffset\n                {\n                    top *= CGFloat(phaseY)\n                }\n                else\n                {\n                    bottom *= CGFloat(phaseY)\n                }\n\n                barRect.origin.x = left\n                barRect.origin.y = top\n                barRect.size.width = right - left\n                barRect.size.height = bottom - top\n                buffer.rects[bufferIndex] = barRect\n                bufferIndex += 1\n            }\n            else\n            {\n                var posY = 0.0\n                var negY = -e.negativeSum\n                var yStart = 0.0\n                \n                // fill the stack\n                for k in 0 ..< vals!.count\n                {\n                    let value = vals![k]\n                    \n                    if value == 0.0 && (posY == 0.0 || negY == 0.0)\n                    {\n                        // Take care of the situation of a 0.0 value, which overlaps a non-zero bar\n                        y = value\n                        yStart = y\n                    }\n                    else if value >= 0.0\n                    {\n                        y = posY\n                        yStart = posY + value\n                        posY = yStart\n                    }\n                    else\n                    {\n                        y = negY\n                        yStart = negY + abs(value)\n                        negY += abs(value)\n                    }\n                    \n                    let left = CGFloat(x - barWidthHalf)\n                    let right = CGFloat(x + barWidthHalf)\n                    var top = isInverted\n                        ? (y <= yStart ? CGFloat(y) : CGFloat(yStart))\n                        : (y >= yStart ? CGFloat(y) : CGFloat(yStart))\n                    var bottom = isInverted\n                        ? (y >= yStart ? CGFloat(y) : CGFloat(yStart))\n                        : (y <= yStart ? CGFloat(y) : CGFloat(yStart))\n                    \n                    // multiply the height of the rect with the phase\n                    top *= CGFloat(phaseY)\n                    bottom *= CGFloat(phaseY)\n                    \n                    barRect.origin.x = left\n                    barRect.size.width = right - left\n                    barRect.origin.y = top\n                    barRect.size.height = bottom - top\n                    \n                    buffer.rects[bufferIndex] = barRect\n                    bufferIndex += 1\n                }\n            }\n        }\n    }\n\n    open override func drawData(context: CGContext)\n    {\n        guard\n            let dataProvider = dataProvider,\n            let barData = dataProvider.barData\n            else { return }\n        \n        // If we redraw the data, remove and repopulate accessible elements to update label values and frames\n        accessibleChartElements.removeAll()\n        accessibilityOrderedElements = accessibilityCreateEmptyOrderedElements()\n\n        // Make the chart header the first element in the accessible elements array\n        if let chart = dataProvider as? BarChartView {\n            let element = createAccessibleHeader(usingChart: chart,\n                                                 andData: barData,\n                                                 withDefaultDescription: \"Bar Chart\")\n            accessibleChartElements.append(element)\n        }\n\n        // Populate logically ordered nested elements into accessibilityOrderedElements in drawDataSet()\n        for i in 0 ..< barData.dataSetCount\n        {\n            guard let set = barData.getDataSetByIndex(i) else { continue }\n            \n            if set.isVisible\n            {\n                if !(set is IBarChartDataSet)\n                {\n                    fatalError(\"Datasets for BarChartRenderer must conform to IBarChartDataset\")\n                }\n                \n                drawDataSet(context: context, dataSet: set as! IBarChartDataSet, index: i)\n            }\n        }\n\n        // Merge nested ordered arrays into the single accessibleChartElements.\n        accessibleChartElements.append(contentsOf: accessibilityOrderedElements.flatMap { $0 } )\n        accessibilityPostLayoutChangedNotification()\n    }\n\n    private var _barShadowRectBuffer: CGRect = CGRect()\n\n    @objc open func drawDataSet(context: CGContext, dataSet: IBarChartDataSet, index: Int)\n    {\n        guard let dataProvider = dataProvider else { return }\n\n        let trans = dataProvider.getTransformer(forAxis: dataSet.axisDependency)\n\n        prepareBuffer(dataSet: dataSet, index: index)\n        trans.rectValuesToPixel(&_buffers[index].rects)\n\n        let borderWidth = dataSet.barBorderWidth\n        let borderColor = dataSet.barBorderColor\n        let drawBorder = borderWidth > 0.0\n        \n        context.saveGState()\n        \n        // draw the bar shadow before the values\n        if dataProvider.isDrawBarShadowEnabled\n        {\n            guard let barData = dataProvider.barData else { return }\n            \n            let barWidth = barData.barWidth\n            let barWidthHalf = barWidth / 2.0\n            var x: Double = 0.0\n            \n            for i in stride(from: 0, to: min(Int(ceil(Double(dataSet.entryCount) * animator.phaseX)), dataSet.entryCount), by: 1)\n            {\n                guard let e = dataSet.entryForIndex(i) as? BarChartDataEntry else { continue }\n                \n                x = e.x\n                \n                _barShadowRectBuffer.origin.x = CGFloat(x - barWidthHalf)\n                _barShadowRectBuffer.size.width = CGFloat(barWidth)\n                \n                trans.rectValueToPixel(&_barShadowRectBuffer)\n                \n                if !viewPortHandler.isInBoundsLeft(_barShadowRectBuffer.origin.x + _barShadowRectBuffer.size.width)\n                {\n                    continue\n                }\n                \n                if !viewPortHandler.isInBoundsRight(_barShadowRectBuffer.origin.x)\n                {\n                    break\n                }\n                \n                _barShadowRectBuffer.origin.y = viewPortHandler.contentTop\n                _barShadowRectBuffer.size.height = viewPortHandler.contentHeight\n                \n                context.setFillColor(dataSet.barShadowColor.cgColor)\n                context.fill(_barShadowRectBuffer)\n            }\n        }\n\n        let buffer = _buffers[index]\n        \n        // draw the bar shadow before the values\n        if dataProvider.isDrawBarShadowEnabled\n        {\n            for j in stride(from: 0, to: buffer.rects.count, by: 1)\n            {\n                let barRect = buffer.rects[j]\n                \n                if (!viewPortHandler.isInBoundsLeft(barRect.origin.x + barRect.size.width))\n                {\n                    continue\n                }\n                \n                if (!viewPortHandler.isInBoundsRight(barRect.origin.x))\n                {\n                    break\n                }\n                \n                context.setFillColor(dataSet.barShadowColor.cgColor)\n                context.fill(barRect)\n            }\n        }\n        \n        let isSingleColor = dataSet.colors.count == 1\n        \n        if isSingleColor\n        {\n            context.setFillColor(dataSet.color(atIndex: 0).cgColor)\n        }\n\n        // In case the chart is stacked, we need to accomodate individual bars within accessibilityOrdereredElements\n        let isStacked = dataSet.isStacked\n        let stackSize = isStacked ? dataSet.stackSize : 1\n\n        for j in stride(from: 0, to: buffer.rects.count, by: 1)\n        {\n            let barRect = buffer.rects[j]\n\n            if (!viewPortHandler.isInBoundsLeft(barRect.origin.x + barRect.size.width))\n            {\n                continue\n            }\n            \n            if (!viewPortHandler.isInBoundsRight(barRect.origin.x))\n            {\n                break\n            }\n            \n            if !isSingleColor\n            {\n                // Set the color for the currently drawn value. If the index is out of bounds, reuse colors.\n                context.setFillColor(dataSet.color(atIndex: j).cgColor)\n            }\n            \n            context.fill(barRect)\n            \n            if drawBorder\n            {\n                context.setStrokeColor(borderColor.cgColor)\n                context.setLineWidth(borderWidth)\n                context.stroke(barRect)\n            }\n\n            // Create and append the corresponding accessibility element to accessibilityOrderedElements\n            if let chart = dataProvider as? BarChartView\n            {\n                let element = createAccessibleElement(withIndex: j,\n                                                      container: chart,\n                                                      dataSet: dataSet,\n                                                      dataSetIndex: index,\n                                                      stackSize: stackSize)\n                { (element) in\n                    element.accessibilityFrame = barRect\n                }\n\n                accessibilityOrderedElements[j/stackSize].append(element)\n            }\n        }\n        \n        context.restoreGState()\n    }\n    \n    open func prepareBarHighlight(\n        x: Double,\n          y1: Double,\n          y2: Double,\n          barWidthHalf: Double,\n          trans: Transformer,\n          rect: inout CGRect)\n    {\n        let left = x - barWidthHalf\n        let right = x + barWidthHalf\n        let top = y1\n        let bottom = y2\n        \n        rect.origin.x = CGFloat(left)\n        rect.origin.y = CGFloat(top)\n        rect.size.width = CGFloat(right - left)\n        rect.size.height = CGFloat(bottom - top)\n        \n        trans.rectValueToPixel(&rect, phaseY: animator.phaseY )\n    }\n\n    open override func drawValues(context: CGContext)\n    {\n        // if values are drawn\n        if isDrawingValuesAllowed(dataProvider: dataProvider)\n        {\n            guard\n                let dataProvider = dataProvider,\n                let barData = dataProvider.barData\n                else { return }\n\n            let dataSets = barData.dataSets\n\n            let valueOffsetPlus: CGFloat = 4.5\n            var posOffset: CGFloat\n            var negOffset: CGFloat\n            let drawValueAboveBar = dataProvider.isDrawValueAboveBarEnabled\n            \n            for dataSetIndex in 0 ..< barData.dataSetCount\n            {\n                guard let\n                    dataSet = dataSets[dataSetIndex] as? IBarChartDataSet,\n                    shouldDrawValues(forDataSet: dataSet)\n                    else { continue }\n                \n                let isInverted = dataProvider.isInverted(axis: dataSet.axisDependency)\n                \n                // calculate the correct offset depending on the draw position of the value\n                let valueFont = dataSet.valueFont\n                let valueTextHeight = valueFont.lineHeight\n                posOffset = (drawValueAboveBar ? -(valueTextHeight + valueOffsetPlus) : valueOffsetPlus)\n                negOffset = (drawValueAboveBar ? valueOffsetPlus : -(valueTextHeight + valueOffsetPlus))\n                \n                if isInverted\n                {\n                    posOffset = -posOffset - valueTextHeight\n                    negOffset = -negOffset - valueTextHeight\n                }\n                \n                let buffer = _buffers[dataSetIndex]\n                \n                guard let formatter = dataSet.valueFormatter else { continue }\n                \n                let trans = dataProvider.getTransformer(forAxis: dataSet.axisDependency)\n                \n                let phaseY = animator.phaseY\n                \n                let iconsOffset = dataSet.iconsOffset\n        \n                // if only single values are drawn (sum)\n                if !dataSet.isStacked\n                {\n                    for j in 0 ..< Int(ceil(Double(dataSet.entryCount) * animator.phaseX))\n                    {\n                        guard let e = dataSet.entryForIndex(j) as? BarChartDataEntry else { continue }\n                        \n                        let rect = buffer.rects[j]\n                        \n                        let x = rect.origin.x + rect.size.width / 2.0\n                        \n                        if !viewPortHandler.isInBoundsRight(x)\n                        {\n                            break\n                        }\n                        \n                        if !viewPortHandler.isInBoundsY(rect.origin.y)\n                            || !viewPortHandler.isInBoundsLeft(x)\n                        {\n                            continue\n                        }\n                        \n                        let val = e.y\n                        \n                        if dataSet.isDrawValuesEnabled\n                        {\n                            drawValue(\n                                context: context,\n                                value: formatter.stringForValue(\n                                    val,\n                                    entry: e,\n                                    dataSetIndex: dataSetIndex,\n                                    viewPortHandler: viewPortHandler),\n                                xPos: x,\n                                yPos: val >= 0.0\n                                    ? (rect.origin.y + posOffset)\n                                    : (rect.origin.y + rect.size.height + negOffset),\n                                font: valueFont,\n                                align: .center,\n                                color: dataSet.valueTextColorAt(j))\n                        }\n                        \n                        if let icon = e.icon, dataSet.isDrawIconsEnabled\n                        {\n                            var px = x\n                            var py = val >= 0.0\n                                ? (rect.origin.y + posOffset)\n                                : (rect.origin.y + rect.size.height + negOffset)\n                            \n                            px += iconsOffset.x\n                            py += iconsOffset.y\n                            \n                            ChartUtils.drawImage(\n                                context: context,\n                                image: icon,\n                                x: px,\n                                y: py,\n                                size: icon.size)\n                        }\n                    }\n                }\n                else\n                {\n                    // if we have stacks\n                    \n                    var bufferIndex = 0\n                    \n                    for index in 0 ..< Int(ceil(Double(dataSet.entryCount) * animator.phaseX))\n                    {\n                        guard let e = dataSet.entryForIndex(index) as? BarChartDataEntry else { continue }\n                        \n                        let vals = e.yValues\n                        \n                        let rect = buffer.rects[bufferIndex]\n                        \n                        let x = rect.origin.x + rect.size.width / 2.0\n                        \n                        // we still draw stacked bars, but there is one non-stacked in between\n                        if vals == nil\n                        {\n                            if !viewPortHandler.isInBoundsRight(x)\n                            {\n                                break\n                            }\n                            \n                            if !viewPortHandler.isInBoundsY(rect.origin.y)\n                                || !viewPortHandler.isInBoundsLeft(x)\n                            {\n                                continue\n                            }\n                            \n                            if dataSet.isDrawValuesEnabled\n                            {\n                                drawValue(\n                                    context: context,\n                                    value: formatter.stringForValue(\n                                        e.y,\n                                        entry: e,\n                                        dataSetIndex: dataSetIndex,\n                                        viewPortHandler: viewPortHandler),\n                                    xPos: x,\n                                    yPos: rect.origin.y +\n                                        (e.y >= 0 ? posOffset : negOffset),\n                                    font: valueFont,\n                                    align: .center,\n                                    color: dataSet.valueTextColorAt(index))\n                            }\n                            \n                            if let icon = e.icon, dataSet.isDrawIconsEnabled\n                            {\n                                var px = x\n                                var py = rect.origin.y +\n                                    (e.y >= 0 ? posOffset : negOffset)\n                                \n                                px += iconsOffset.x\n                                py += iconsOffset.y\n                                \n                                ChartUtils.drawImage(\n                                    context: context,\n                                    image: icon,\n                                    x: px,\n                                    y: py,\n                                    size: icon.size)\n                            }\n                        }\n                        else\n                        {\n                            // draw stack values\n                            \n                            let vals = vals!\n                            var transformed = [CGPoint]()\n                            \n                            var posY = 0.0\n                            var negY = -e.negativeSum\n                            \n                            for k in 0 ..< vals.count\n                            {\n                                let value = vals[k]\n                                var y: Double\n                                \n                                if value == 0.0 && (posY == 0.0 || negY == 0.0)\n                                {\n                                    // Take care of the situation of a 0.0 value, which overlaps a non-zero bar\n                                    y = value\n                                }\n                                else if value >= 0.0\n                                {\n                                    posY += value\n                                    y = posY\n                                }\n                                else\n                                {\n                                    y = negY\n                                    negY -= value\n                                }\n                                \n                                transformed.append(CGPoint(x: 0.0, y: CGFloat(y * phaseY)))\n                            }\n                            \n                            trans.pointValuesToPixel(&transformed)\n                            \n                            for k in 0 ..< transformed.count\n                            {\n                                let val = vals[k]\n                                let drawBelow = (val == 0.0 && negY == 0.0 && posY > 0.0) || val < 0.0\n                                let y = transformed[k].y + (drawBelow ? negOffset : posOffset)\n                                \n                                if !viewPortHandler.isInBoundsRight(x)\n                                {\n                                    break\n                                }\n                                \n                                if !viewPortHandler.isInBoundsY(y) || !viewPortHandler.isInBoundsLeft(x)\n                                {\n                                    continue\n                                }\n                                \n                                if dataSet.isDrawValuesEnabled\n                                {\n                                    drawValue(\n                                        context: context,\n                                        value: formatter.stringForValue(\n                                            vals[k],\n                                            entry: e,\n                                            dataSetIndex: dataSetIndex,\n                                            viewPortHandler: viewPortHandler),\n                                        xPos: x,\n                                        yPos: y,\n                                        font: valueFont,\n                                        align: .center,\n                                        color: dataSet.valueTextColorAt(index))\n                                }\n                                \n                                if let icon = e.icon, dataSet.isDrawIconsEnabled\n                                {\n                                    ChartUtils.drawImage(\n                                        context: context,\n                                        image: icon,\n                                        x: x + iconsOffset.x,\n                                        y: y + iconsOffset.y,\n                                        size: icon.size)\n                                }\n                            }\n                        }\n                        \n                        bufferIndex = vals == nil ? (bufferIndex + 1) : (bufferIndex + vals!.count)\n                    }\n                }\n            }\n        }\n    }\n    \n    /// Draws a value at the specified x and y position.\n    @objc open func drawValue(context: CGContext, value: String, xPos: CGFloat, yPos: CGFloat, font: NSUIFont, align: NSTextAlignment, color: NSUIColor)\n    {\n        ChartUtils.drawText(context: context, text: value, point: CGPoint(x: xPos, y: yPos), align: align, attributes: [NSAttributedString.Key.font: font, NSAttributedString.Key.foregroundColor: color])\n    }\n    \n    open override func drawExtras(context: CGContext)\n    {\n        \n    }\n    \n    open override func drawHighlighted(context: CGContext, indices: [Highlight])\n    {\n        guard\n            let dataProvider = dataProvider,\n            let barData = dataProvider.barData\n            else { return }\n        \n        context.saveGState()\n        \n        var barRect = CGRect()\n        \n        for high in indices\n        {\n            guard\n                let set = barData.getDataSetByIndex(high.dataSetIndex) as? IBarChartDataSet,\n                set.isHighlightEnabled\n                else { continue }\n            \n            if let e = set.entryForXValue(high.x, closestToY: high.y) as? BarChartDataEntry\n            {\n                if !isInBoundsX(entry: e, dataSet: set)\n                {\n                    continue\n                }\n                \n                let trans = dataProvider.getTransformer(forAxis: set.axisDependency)\n                \n                context.setFillColor(set.highlightColor.cgColor)\n                context.setAlpha(set.highlightAlpha)\n                \n                let isStack = high.stackIndex >= 0 && e.isStacked\n                \n                let y1: Double\n                let y2: Double\n                \n                if isStack\n                {\n                    if dataProvider.isHighlightFullBarEnabled\n                    {\n                        y1 = e.positiveSum\n                        y2 = -e.negativeSum\n                    }\n                    else\n                    {\n                        let range = e.ranges?[high.stackIndex]\n                        \n                        y1 = range?.from ?? 0.0\n                        y2 = range?.to ?? 0.0\n                    }\n                }\n                else\n                {\n                    y1 = e.y\n                    y2 = 0.0\n                }\n                \n                prepareBarHighlight(x: e.x, y1: y1, y2: y2, barWidthHalf: barData.barWidth / 2.0, trans: trans, rect: &barRect)\n                \n                setHighlightDrawPos(highlight: high, barRect: barRect)\n                \n                context.fill(barRect)\n            }\n        }\n        \n        context.restoreGState()\n    }\n\n    /// Sets the drawing position of the highlight object based on the given bar-rect.\n    internal func setHighlightDrawPos(highlight high: Highlight, barRect: CGRect)\n    {\n        high.setDraw(x: barRect.midX, y: barRect.origin.y)\n    }\n\n    /// Creates a nested array of empty subarrays each of which will be populated with NSUIAccessibilityElements.\n    /// This is marked internal to support HorizontalBarChartRenderer as well.\n    internal func accessibilityCreateEmptyOrderedElements() -> [[NSUIAccessibilityElement]]\n    {\n        guard let chart = dataProvider as? BarChartView else { return [] }\n\n        // Unlike Bubble & Line charts, here we use the maximum entry count to account for stacked bars\n        let maxEntryCount = chart.data?.maxEntryCountSet?.entryCount ?? 0\n\n        return Array(repeating: [NSUIAccessibilityElement](),\n                     count: maxEntryCount)\n    }\n\n    /// Creates an NSUIAccessibleElement representing the smallest meaningful bar of the chart\n    /// i.e. in case of a stacked chart, this returns each stack, not the combined bar.\n    /// Note that it is marked internal to support subclass modification in the HorizontalBarChart.\n    internal func createAccessibleElement(withIndex idx: Int,\n                                          container: BarChartView,\n                                          dataSet: IBarChartDataSet,\n                                          dataSetIndex: Int,\n                                          stackSize: Int,\n                                          modifier: (NSUIAccessibilityElement) -> ()) -> NSUIAccessibilityElement\n    {\n        let element = NSUIAccessibilityElement(accessibilityContainer: container)\n        let xAxis = container.xAxis\n\n        guard let e = dataSet.entryForIndex(idx/stackSize) as? BarChartDataEntry else { return element }\n        guard let dataProvider = dataProvider else { return element }\n\n        // NOTE: The formatter can cause issues when the x-axis labels are consecutive ints.\n        // i.e. due to the Double conversion, if there are more than one data set that are grouped,\n        // there is the possibility of some labels being rounded up. A floor() might fix this, but seems to be a brute force solution.\n        let label = xAxis.valueFormatter?.stringForValue(e.x, axis: xAxis) ?? \"\\(e.x)\"\n\n        var elementValueText = dataSet.valueFormatter?.stringForValue(\n            e.y,\n            entry: e,\n            dataSetIndex: dataSetIndex,\n            viewPortHandler: viewPortHandler) ?? \"\\(e.y)\"\n\n        if dataSet.isStacked, let vals = e.yValues\n        {\n            let labelCount = min(dataSet.colors.count, stackSize)\n\n            let stackLabel: String?\n            if (dataSet.stackLabels.count > 0 && labelCount > 0) {\n                let labelIndex = idx % labelCount\n                stackLabel = dataSet.stackLabels.indices.contains(labelIndex) ? dataSet.stackLabels[labelIndex] : nil\n            } else {\n                stackLabel = nil\n            }\n            \n            //Handles empty array of yValues\n            let yValue = vals.isEmpty ? 0.0 : vals[idx % vals.count]\n            \n            elementValueText = dataSet.valueFormatter?.stringForValue(\n                yValue,\n                entry: e,\n                dataSetIndex: dataSetIndex,\n                viewPortHandler: viewPortHandler) ?? \"\\(e.y)\"\n\n            if let stackLabel = stackLabel {\n                elementValueText = stackLabel + \" \\(elementValueText)\"\n            } else {\n                elementValueText = \"\\(elementValueText)\"\n            }\n        }\n\n        let dataSetCount = dataProvider.barData?.dataSetCount ?? -1\n        let doesContainMultipleDataSets = dataSetCount > 1\n\n        element.accessibilityLabel = \"\\(doesContainMultipleDataSets ? (dataSet.label ?? \"\")  + \", \" : \"\") \\(label): \\(elementValueText)\"\n\n        modifier(element)\n\n        return element\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift",
    "content": "//\n//  BarLineScatterCandleBubbleRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(BarLineScatterCandleBubbleChartRenderer)\nopen class BarLineScatterCandleBubbleRenderer: DataRenderer\n{\n    internal var _xBounds = XBounds() // Reusable XBounds object\n    \n    public override init(animator: Animator, viewPortHandler: ViewPortHandler)\n    {\n        super.init(animator: animator, viewPortHandler: viewPortHandler)\n    }\n    \n    /// Checks if the provided entry object is in bounds for drawing considering the current animation phase.\n    internal func isInBoundsX(entry e: ChartDataEntry, dataSet: IBarLineScatterCandleBubbleChartDataSet) -> Bool\n    {\n        let entryIndex = dataSet.entryIndex(entry: e)\n        return Double(entryIndex) < Double(dataSet.entryCount) * animator.phaseX\n    }\n\n    /// Calculates and returns the x-bounds for the given DataSet in terms of index in their values array.\n    /// This includes minimum and maximum visible x, as well as range.\n    internal func xBounds(chart: BarLineScatterCandleBubbleChartDataProvider,\n                          dataSet: IBarLineScatterCandleBubbleChartDataSet,\n                          animator: Animator?) -> XBounds\n    {\n        return XBounds(chart: chart, dataSet: dataSet, animator: animator)\n    }\n    \n    /// - Returns: `true` if the DataSet values should be drawn, `false` if not.\n    internal func shouldDrawValues(forDataSet set: IChartDataSet) -> Bool\n    {\n        return set.isVisible && (set.isDrawValuesEnabled || set.isDrawIconsEnabled)\n    }\n\n    /// Class representing the bounds of the current viewport in terms of indices in the values array of a DataSet.\n    open class XBounds\n    {\n        /// minimum visible entry index\n        open var min: Int = 0\n\n        /// maximum visible entry index\n        open var max: Int = 0\n\n        /// range of visible entry indices\n        open var range: Int = 0\n\n        public init()\n        {\n            \n        }\n        \n        public init(chart: BarLineScatterCandleBubbleChartDataProvider,\n                    dataSet: IBarLineScatterCandleBubbleChartDataSet,\n                    animator: Animator?)\n        {\n            self.set(chart: chart, dataSet: dataSet, animator: animator)\n        }\n        \n        /// Calculates the minimum and maximum x values as well as the range between them.\n        open func set(chart: BarLineScatterCandleBubbleChartDataProvider,\n                      dataSet: IBarLineScatterCandleBubbleChartDataSet,\n                      animator: Animator?)\n        {\n            let phaseX = Swift.max(0.0, Swift.min(1.0, animator?.phaseX ?? 1.0))\n            \n            let low = chart.lowestVisibleX\n            let high = chart.highestVisibleX\n            \n            let entryFrom = dataSet.entryForXValue(low, closestToY: .nan, rounding: .down)\n            let entryTo = dataSet.entryForXValue(high, closestToY: .nan, rounding: .up)\n            \n            self.min = entryFrom == nil ? 0 : dataSet.entryIndex(entry: entryFrom!)\n            self.max = entryTo == nil ? 0 : dataSet.entryIndex(entry: entryTo!)\n            range = Int(Double(self.max - self.min) * phaseX)\n        }\n    }\n}\n\nextension BarLineScatterCandleBubbleRenderer.XBounds: RangeExpression {\n    public func relative<C>(to collection: C) -> Swift.Range<Int>\n        where C : Collection, Bound == C.Index\n    {\n        return Swift.Range<Int>(min...min + range)\n    }\n\n    public func contains(_ element: Int) -> Bool {\n        return (min...min + range).contains(element)\n    }\n}\n\nextension BarLineScatterCandleBubbleRenderer.XBounds: Sequence {\n    public struct Iterator: IteratorProtocol {\n        private var iterator: IndexingIterator<ClosedRange<Int>>\n        \n        fileprivate init(min: Int, max: Int) {\n            self.iterator = (min...max).makeIterator()\n        }\n        \n        public mutating func next() -> Int? {\n            return self.iterator.next()\n        }\n    }\n    \n    public func makeIterator() -> Iterator {\n        return Iterator(min: self.min, max: self.min + self.range)\n    }\n}\n\nextension BarLineScatterCandleBubbleRenderer.XBounds: CustomDebugStringConvertible\n{\n    public var debugDescription: String\n    {\n        return \"min:\\(self.min), max:\\(self.max), range:\\(self.range)\"\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift",
    "content": "//\n//  BubbleChartRenderer.swift\n//  Charts\n//\n//  Bubble chart implementation:\n//    Copyright 2015 Pierre-Marc Airoldi\n//    Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nopen class BubbleChartRenderer: BarLineScatterCandleBubbleRenderer\n{\n    /// A nested array of elements ordered logically (i.e not in visual/drawing order) for use with VoiceOver.\n    private lazy var accessibilityOrderedElements: [[NSUIAccessibilityElement]] = accessibilityCreateEmptyOrderedElements()\n\n    @objc open weak var dataProvider: BubbleChartDataProvider?\n    \n    @objc public init(dataProvider: BubbleChartDataProvider, animator: Animator, viewPortHandler: ViewPortHandler)\n    {\n        super.init(animator: animator, viewPortHandler: viewPortHandler)\n        \n        self.dataProvider = dataProvider\n    }\n    \n    open override func drawData(context: CGContext)\n    {\n        guard\n            let dataProvider = dataProvider,\n            let bubbleData = dataProvider.bubbleData\n            else { return }\n        \n        // If we redraw the data, remove and repopulate accessible elements to update label values and frames\n        accessibleChartElements.removeAll()\n        accessibilityOrderedElements = accessibilityCreateEmptyOrderedElements()\n\n        // Make the chart header the first element in the accessible elements array\n        if let chart = dataProvider as? BubbleChartView {\n            let element = createAccessibleHeader(usingChart: chart,\n                                                 andData: bubbleData,\n                                                 withDefaultDescription: \"Bubble Chart\")\n            accessibleChartElements.append(element)\n        }\n\n        for (i, set) in (bubbleData.dataSets as! [IBubbleChartDataSet]).enumerated() where set.isVisible\n        {\n            drawDataSet(context: context, dataSet: set, dataSetIndex: i)\n        }\n\n        // Merge nested ordered arrays into the single accessibleChartElements.\n        accessibleChartElements.append(contentsOf: accessibilityOrderedElements.flatMap { $0 } )\n        accessibilityPostLayoutChangedNotification()\n    }\n    \n    private func getShapeSize(\n        entrySize: CGFloat,\n        maxSize: CGFloat,\n        reference: CGFloat,\n        normalizeSize: Bool) -> CGFloat\n    {\n        let factor: CGFloat = normalizeSize\n            ? ((maxSize == 0.0) ? 1.0 : sqrt(entrySize / maxSize))\n            : entrySize\n        let shapeSize: CGFloat = reference * factor\n        return shapeSize\n    }\n    \n    private var _pointBuffer = CGPoint()\n    private var _sizeBuffer = [CGPoint](repeating: CGPoint(), count: 2)\n    \n    @objc open func drawDataSet(context: CGContext, dataSet: IBubbleChartDataSet, dataSetIndex: Int)\n    {\n        guard let dataProvider = dataProvider else { return }\n        \n        let trans = dataProvider.getTransformer(forAxis: dataSet.axisDependency)\n        \n        let phaseY = animator.phaseY\n        \n        _xBounds.set(chart: dataProvider, dataSet: dataSet, animator: animator)\n        \n        let valueToPixelMatrix = trans.valueToPixelMatrix\n    \n        _sizeBuffer[0].x = 0.0\n        _sizeBuffer[0].y = 0.0\n        _sizeBuffer[1].x = 1.0\n        _sizeBuffer[1].y = 0.0\n        \n        trans.pointValuesToPixel(&_sizeBuffer)\n        \n        context.saveGState()\n        defer { context.restoreGState() }\n        \n        let normalizeSize = dataSet.isNormalizeSizeEnabled\n        \n        // calcualte the full width of 1 step on the x-axis\n        let maxBubbleWidth: CGFloat = abs(_sizeBuffer[1].x - _sizeBuffer[0].x)\n        let maxBubbleHeight: CGFloat = abs(viewPortHandler.contentBottom - viewPortHandler.contentTop)\n        let referenceSize: CGFloat = min(maxBubbleHeight, maxBubbleWidth)\n        \n        for j in _xBounds\n        {\n            guard let entry = dataSet.entryForIndex(j) as? BubbleChartDataEntry else { continue }\n            \n            _pointBuffer.x = CGFloat(entry.x)\n            _pointBuffer.y = CGFloat(entry.y * phaseY)\n            _pointBuffer = _pointBuffer.applying(valueToPixelMatrix)\n            \n            let shapeSize = getShapeSize(entrySize: entry.size, maxSize: dataSet.maxSize, reference: referenceSize, normalizeSize: normalizeSize)\n            let shapeHalf = shapeSize / 2.0\n            \n            guard\n                viewPortHandler.isInBoundsTop(_pointBuffer.y + shapeHalf),\n                viewPortHandler.isInBoundsBottom(_pointBuffer.y - shapeHalf),\n                viewPortHandler.isInBoundsLeft(_pointBuffer.x + shapeHalf)\n                else { continue }\n\n            guard viewPortHandler.isInBoundsRight(_pointBuffer.x - shapeHalf) else { break }\n            \n            let color = dataSet.color(atIndex: j)\n            \n            let rect = CGRect(\n                x: _pointBuffer.x - shapeHalf,\n                y: _pointBuffer.y - shapeHalf,\n                width: shapeSize,\n                height: shapeSize\n            )\n\n            context.setFillColor(color.cgColor)\n            context.fillEllipse(in: rect)\n\n            // Create and append the corresponding accessibility element to accessibilityOrderedElements\n            if let chart = dataProvider as? BubbleChartView\n            {\n                let element = createAccessibleElement(withIndex: j,\n                                                      container: chart,\n                                                      dataSet: dataSet,\n                                                      dataSetIndex: dataSetIndex,\n                                                      shapeSize: shapeSize)\n                { (element) in\n                    element.accessibilityFrame = rect\n                }\n\n                accessibilityOrderedElements[dataSetIndex].append(element)\n            }\n        }\n    }\n    \n    open override func drawValues(context: CGContext)\n    {\n        guard let\n            dataProvider = dataProvider,\n            let bubbleData = dataProvider.bubbleData,\n            isDrawingValuesAllowed(dataProvider: dataProvider),\n            let dataSets = bubbleData.dataSets as? [IBubbleChartDataSet]\n            else { return }\n\n        let phaseX = max(0.0, min(1.0, animator.phaseX))\n        let phaseY = animator.phaseY\n\n        var pt = CGPoint()\n\n        for i in 0..<dataSets.count\n        {\n            let dataSet = dataSets[i]\n\n            guard\n                shouldDrawValues(forDataSet: dataSet),\n                let formatter = dataSet.valueFormatter\n                else { continue }\n\n            let alpha = phaseX == 1 ? phaseY : phaseX\n\n            _xBounds.set(chart: dataProvider, dataSet: dataSet, animator: animator)\n\n            let trans = dataProvider.getTransformer(forAxis: dataSet.axisDependency)\n            let valueToPixelMatrix = trans.valueToPixelMatrix\n\n            let iconsOffset = dataSet.iconsOffset\n\n            for j in _xBounds\n            {\n                guard let e = dataSet.entryForIndex(j) as? BubbleChartDataEntry else { break }\n\n                let valueTextColor = dataSet.valueTextColorAt(j).withAlphaComponent(CGFloat(alpha))\n\n                pt.x = CGFloat(e.x)\n                pt.y = CGFloat(e.y * phaseY)\n                pt = pt.applying(valueToPixelMatrix)\n\n                guard viewPortHandler.isInBoundsRight(pt.x) else { break }\n\n                guard\n                    viewPortHandler.isInBoundsLeft(pt.x),\n                    viewPortHandler.isInBoundsY(pt.y)\n                    else { continue }\n\n                let text = formatter.stringForValue(\n                    Double(e.size),\n                    entry: e,\n                    dataSetIndex: i,\n                    viewPortHandler: viewPortHandler)\n\n                // Larger font for larger bubbles?\n                let valueFont = dataSet.valueFont\n                let lineHeight = valueFont.lineHeight\n\n                if dataSet.isDrawValuesEnabled\n                {\n                    ChartUtils.drawText(\n                        context: context,\n                        text: text,\n                        point: CGPoint(\n                            x: pt.x,\n                            y: pt.y - (0.5 * lineHeight)),\n                        align: .center,\n                        attributes: [NSAttributedString.Key.font: valueFont, NSAttributedString.Key.foregroundColor: valueTextColor])\n                }\n\n                if let icon = e.icon, dataSet.isDrawIconsEnabled\n                {\n                    ChartUtils.drawImage(context: context,\n                                         image: icon,\n                                         x: pt.x + iconsOffset.x,\n                                         y: pt.y + iconsOffset.y,\n                                         size: icon.size)\n                }\n            }\n        }\n    }\n    \n    open override func drawExtras(context: CGContext)\n    {\n        \n    }\n    \n    open override func drawHighlighted(context: CGContext, indices: [Highlight])\n    {\n        guard\n            let dataProvider = dataProvider,\n            let bubbleData = dataProvider.bubbleData\n            else { return }\n\n        context.saveGState()\n        defer { context.restoreGState() }\n\n        let phaseY = animator.phaseY\n        \n        for high in indices\n        {\n            guard\n                let dataSet = bubbleData.getDataSetByIndex(high.dataSetIndex) as? IBubbleChartDataSet,\n                dataSet.isHighlightEnabled,\n                let entry = dataSet.entryForXValue(high.x, closestToY: high.y) as? BubbleChartDataEntry,\n                isInBoundsX(entry: entry, dataSet: dataSet)\n                else { continue }\n\n            let trans = dataProvider.getTransformer(forAxis: dataSet.axisDependency)\n            \n            _sizeBuffer[0].x = 0.0\n            _sizeBuffer[0].y = 0.0\n            _sizeBuffer[1].x = 1.0\n            _sizeBuffer[1].y = 0.0\n            \n            trans.pointValuesToPixel(&_sizeBuffer)\n            \n            let normalizeSize = dataSet.isNormalizeSizeEnabled\n            \n            // calcualte the full width of 1 step on the x-axis\n            let maxBubbleWidth: CGFloat = abs(_sizeBuffer[1].x - _sizeBuffer[0].x)\n            let maxBubbleHeight: CGFloat = abs(viewPortHandler.contentBottom - viewPortHandler.contentTop)\n            let referenceSize: CGFloat = min(maxBubbleHeight, maxBubbleWidth)\n            \n            _pointBuffer.x = CGFloat(entry.x)\n            _pointBuffer.y = CGFloat(entry.y * phaseY)\n            trans.pointValueToPixel(&_pointBuffer)\n            \n            let shapeSize = getShapeSize(entrySize: entry.size, maxSize: dataSet.maxSize, reference: referenceSize, normalizeSize: normalizeSize)\n            let shapeHalf = shapeSize / 2.0\n            \n            guard\n                viewPortHandler.isInBoundsTop(_pointBuffer.y + shapeHalf),\n                viewPortHandler.isInBoundsBottom(_pointBuffer.y - shapeHalf),\n                viewPortHandler.isInBoundsLeft(_pointBuffer.x + shapeHalf)\n            else { continue }\n\n            guard viewPortHandler.isInBoundsRight(_pointBuffer.x - shapeHalf) else { break }\n\n            let originalColor = dataSet.color(atIndex: Int(entry.x))\n            \n            var h: CGFloat = 0.0\n            var s: CGFloat = 0.0\n            var b: CGFloat = 0.0\n            var a: CGFloat = 0.0\n            \n            originalColor.getHue(&h, saturation: &s, brightness: &b, alpha: &a)\n            \n            let color = NSUIColor(hue: h, saturation: s, brightness: b * 0.5, alpha: a)\n            let rect = CGRect(\n                x: _pointBuffer.x - shapeHalf,\n                y: _pointBuffer.y - shapeHalf,\n                width: shapeSize,\n                height: shapeSize)\n            \n            context.setLineWidth(dataSet.highlightCircleWidth)\n            context.setStrokeColor(color.cgColor)\n            context.strokeEllipse(in: rect)\n            \n            high.setDraw(x: _pointBuffer.x, y: _pointBuffer.y)\n        }\n    }\n\n    /// Creates a nested array of empty subarrays each of which will be populated with NSUIAccessibilityElements.\n    private func accessibilityCreateEmptyOrderedElements() -> [[NSUIAccessibilityElement]]\n    {\n        guard let chart = dataProvider as? BubbleChartView else { return [] }\n\n        let dataSetCount = chart.bubbleData?.dataSetCount ?? 0\n\n        return Array(repeating: [NSUIAccessibilityElement](),\n                     count: dataSetCount)\n    }\n\n    /// Creates an NSUIAccessibleElement representing individual bubbles location and relative size.\n    private func createAccessibleElement(withIndex idx: Int,\n                                         container: BubbleChartView,\n                                         dataSet: IBubbleChartDataSet,\n                                         dataSetIndex: Int,\n                                         shapeSize: CGFloat,\n                                         modifier: (NSUIAccessibilityElement) -> ()) -> NSUIAccessibilityElement\n    {\n        let element = NSUIAccessibilityElement(accessibilityContainer: container)\n        let xAxis = container.xAxis\n\n        guard let e = dataSet.entryForIndex(idx) else { return element }\n        guard let dataProvider = dataProvider else { return element }\n\n        // NOTE: The formatter can cause issues when the x-axis labels are consecutive ints.\n        // i.e. due to the Double conversion, if there are more than one data set that are grouped,\n        // there is the possibility of some labels being rounded up. A floor() might fix this, but seems to be a brute force solution.\n        let label = xAxis.valueFormatter?.stringForValue(e.x, axis: xAxis) ?? \"\\(e.x)\"\n\n        let elementValueText = dataSet.valueFormatter?.stringForValue(e.y,\n                                                                      entry: e,\n                                                                      dataSetIndex: dataSetIndex,\n                                                                      viewPortHandler: viewPortHandler) ?? \"\\(e.y)\"\n\n        let dataSetCount = dataProvider.bubbleData?.dataSetCount ?? -1\n        let doesContainMultipleDataSets = dataSetCount > 1\n\n        element.accessibilityLabel = \"\\(doesContainMultipleDataSets ? (dataSet.label ?? \"\")  + \", \" : \"\") \\(label): \\(elementValueText), bubble size: \\(String(format: \"%.2f\", (shapeSize/dataSet.maxSize) * 100)) %\"\n\n        modifier(element)\n\n        return element\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift",
    "content": "//\n//  CandleStickChartRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nopen class CandleStickChartRenderer: LineScatterCandleRadarRenderer\n{\n    @objc open weak var dataProvider: CandleChartDataProvider?\n    \n    @objc public init(dataProvider: CandleChartDataProvider, animator: Animator, viewPortHandler: ViewPortHandler)\n    {\n        super.init(animator: animator, viewPortHandler: viewPortHandler)\n        \n        self.dataProvider = dataProvider\n    }\n    \n    open override func drawData(context: CGContext)\n    {\n        guard let dataProvider = dataProvider, let candleData = dataProvider.candleData else { return }\n\n        // If we redraw the data, remove and repopulate accessible elements to update label values and frames\n        accessibleChartElements.removeAll()\n\n        // Make the chart header the first element in the accessible elements array\n        if let chart = dataProvider as? CandleStickChartView {\n            let element = createAccessibleHeader(usingChart: chart,\n                                                 andData: candleData,\n                                                 withDefaultDescription: \"CandleStick Chart\")\n            accessibleChartElements.append(element)\n        }\n\n        for set in candleData.dataSets as! [ICandleChartDataSet] where set.isVisible\n        {\n            drawDataSet(context: context, dataSet: set)\n        }\n    }\n    \n    private var _shadowPoints = [CGPoint](repeating: CGPoint(), count: 4)\n    private var _rangePoints = [CGPoint](repeating: CGPoint(), count: 2)\n    private var _openPoints = [CGPoint](repeating: CGPoint(), count: 2)\n    private var _closePoints = [CGPoint](repeating: CGPoint(), count: 2)\n    private var _bodyRect = CGRect()\n    private var _lineSegments = [CGPoint](repeating: CGPoint(), count: 2)\n    \n    @objc open func drawDataSet(context: CGContext, dataSet: ICandleChartDataSet)\n    {\n        guard\n            let dataProvider = dataProvider\n            else { return }\n\n        let trans = dataProvider.getTransformer(forAxis: dataSet.axisDependency)\n        \n        let phaseY = animator.phaseY\n        let barSpace = dataSet.barSpace\n        let showCandleBar = dataSet.showCandleBar\n        \n        _xBounds.set(chart: dataProvider, dataSet: dataSet, animator: animator)\n        \n        context.saveGState()\n        \n        context.setLineWidth(dataSet.shadowWidth)\n\n        for j in _xBounds\n        {\n            // get the entry\n            guard let e = dataSet.entryForIndex(j) as? CandleChartDataEntry else { continue }\n            \n            let xPos = e.x\n            \n            let open = e.open\n            let close = e.close\n            let high = e.high\n            let low = e.low\n            \n            let doesContainMultipleDataSets = (dataProvider.candleData?.dataSets.count ?? 1) > 1\n            var accessibilityMovementDescription = \"neutral\"\n            var accessibilityRect = CGRect(x: CGFloat(xPos) + 0.5 - barSpace,\n                                           y: CGFloat(low * phaseY),\n                                           width: (2 * barSpace) - 1.0,\n                                           height: (CGFloat(abs(high - low) * phaseY)))\n            trans.rectValueToPixel(&accessibilityRect)\n\n            if showCandleBar\n            {\n                // calculate the shadow\n                \n                _shadowPoints[0].x = CGFloat(xPos)\n                _shadowPoints[1].x = CGFloat(xPos)\n                _shadowPoints[2].x = CGFloat(xPos)\n                _shadowPoints[3].x = CGFloat(xPos)\n                \n                if open > close\n                {\n                    _shadowPoints[0].y = CGFloat(high * phaseY)\n                    _shadowPoints[1].y = CGFloat(open * phaseY)\n                    _shadowPoints[2].y = CGFloat(low * phaseY)\n                    _shadowPoints[3].y = CGFloat(close * phaseY)\n                }\n                else if open < close\n                {\n                    _shadowPoints[0].y = CGFloat(high * phaseY)\n                    _shadowPoints[1].y = CGFloat(close * phaseY)\n                    _shadowPoints[2].y = CGFloat(low * phaseY)\n                    _shadowPoints[3].y = CGFloat(open * phaseY)\n                }\n                else\n                {\n                    _shadowPoints[0].y = CGFloat(high * phaseY)\n                    _shadowPoints[1].y = CGFloat(open * phaseY)\n                    _shadowPoints[2].y = CGFloat(low * phaseY)\n                    _shadowPoints[3].y = _shadowPoints[1].y\n                }\n                \n                trans.pointValuesToPixel(&_shadowPoints)\n                \n                // draw the shadows\n                \n                var shadowColor: NSUIColor! = nil\n                if dataSet.shadowColorSameAsCandle\n                {\n                    if open > close\n                    {\n                        shadowColor = dataSet.decreasingColor ?? dataSet.color(atIndex: j)\n                    }\n                    else if open < close\n                    {\n                        shadowColor = dataSet.increasingColor ?? dataSet.color(atIndex: j)\n                    }\n                    else\n                    {\n                        shadowColor = dataSet.neutralColor ?? dataSet.color(atIndex: j)\n                    }\n                }\n                \n                if shadowColor === nil\n                {\n                    shadowColor = dataSet.shadowColor ?? dataSet.color(atIndex: j)\n                }\n                \n                context.setStrokeColor(shadowColor.cgColor)\n                context.strokeLineSegments(between: _shadowPoints)\n                \n                // calculate the body\n                \n                _bodyRect.origin.x = CGFloat(xPos) - 0.5 + barSpace\n                _bodyRect.origin.y = CGFloat(close * phaseY)\n                _bodyRect.size.width = (CGFloat(xPos) + 0.5 - barSpace) - _bodyRect.origin.x\n                _bodyRect.size.height = CGFloat(open * phaseY) - _bodyRect.origin.y\n                \n                trans.rectValueToPixel(&_bodyRect)\n                \n                // draw body differently for increasing and decreasing entry\n\n                if open > close\n                {\n                    accessibilityMovementDescription = \"decreasing\"\n\n                    let color = dataSet.decreasingColor ?? dataSet.color(atIndex: j)\n                    \n                    if dataSet.isDecreasingFilled\n                    {\n                        context.setFillColor(color.cgColor)\n                        context.fill(_bodyRect)\n                    }\n                    else\n                    {\n                        context.setStrokeColor(color.cgColor)\n                        context.stroke(_bodyRect)\n                    }\n                }\n                else if open < close\n                {\n                    accessibilityMovementDescription = \"increasing\"\n\n                    let color = dataSet.increasingColor ?? dataSet.color(atIndex: j)\n                    \n                    if dataSet.isIncreasingFilled\n                    {\n                        context.setFillColor(color.cgColor)\n                        context.fill(_bodyRect)\n                    }\n                    else\n                    {\n                        context.setStrokeColor(color.cgColor)\n                        context.stroke(_bodyRect)\n                    }\n                }\n                else\n                {\n                    let color = dataSet.neutralColor ?? dataSet.color(atIndex: j)\n                    \n                    context.setStrokeColor(color.cgColor)\n                    context.stroke(_bodyRect)\n                }\n            }\n            else\n            {\n                _rangePoints[0].x = CGFloat(xPos)\n                _rangePoints[0].y = CGFloat(high * phaseY)\n                _rangePoints[1].x = CGFloat(xPos)\n                _rangePoints[1].y = CGFloat(low * phaseY)\n\n                _openPoints[0].x = CGFloat(xPos) - 0.5 + barSpace\n                _openPoints[0].y = CGFloat(open * phaseY)\n                _openPoints[1].x = CGFloat(xPos)\n                _openPoints[1].y = CGFloat(open * phaseY)\n\n                _closePoints[0].x = CGFloat(xPos) + 0.5 - barSpace\n                _closePoints[0].y = CGFloat(close * phaseY)\n                _closePoints[1].x = CGFloat(xPos)\n                _closePoints[1].y = CGFloat(close * phaseY)\n                \n                trans.pointValuesToPixel(&_rangePoints)\n                trans.pointValuesToPixel(&_openPoints)\n                trans.pointValuesToPixel(&_closePoints)\n                \n                // draw the ranges\n                var barColor: NSUIColor! = nil\n\n                if open > close\n                {\n                    accessibilityMovementDescription = \"decreasing\"\n                    barColor = dataSet.decreasingColor ?? dataSet.color(atIndex: j)\n                }\n                else if open < close\n                {\n                    accessibilityMovementDescription = \"increasing\"\n                    barColor = dataSet.increasingColor ?? dataSet.color(atIndex: j)\n                }\n                else\n                {\n                    barColor = dataSet.neutralColor ?? dataSet.color(atIndex: j)\n                }\n                \n                context.setStrokeColor(barColor.cgColor)\n                context.strokeLineSegments(between: _rangePoints)\n                context.strokeLineSegments(between: _openPoints)\n                context.strokeLineSegments(between: _closePoints)\n            }\n\n            let axElement = createAccessibleElement(withIndex: j,\n                                                    container: dataProvider,\n                                                    dataSet: dataSet)\n            { (element) in\n                element.accessibilityLabel = \"\\(doesContainMultipleDataSets ? \"\\(dataSet.label ?? \"Dataset\")\" : \"\") \" + \"\\(xPos) - \\(accessibilityMovementDescription). low: \\(low), high: \\(high), opening: \\(open), closing: \\(close)\"\n                element.accessibilityFrame = accessibilityRect\n            }\n\n            accessibleChartElements.append(axElement)\n\n        }\n\n        // Post this notification to let VoiceOver account for the redrawn frames\n        accessibilityPostLayoutChangedNotification()\n\n        context.restoreGState()\n    }\n    \n    open override func drawValues(context: CGContext)\n    {\n        guard\n            let dataProvider = dataProvider,\n            let candleData = dataProvider.candleData\n            else { return }\n        \n        // if values are drawn\n        if isDrawingValuesAllowed(dataProvider: dataProvider)\n        {\n            let dataSets = candleData.dataSets\n            \n            let phaseY = animator.phaseY\n            \n            var pt = CGPoint()\n            \n            for i in 0 ..< dataSets.count\n            {\n                guard let\n                    dataSet = dataSets[i] as? IBarLineScatterCandleBubbleChartDataSet,\n                    shouldDrawValues(forDataSet: dataSet)\n                    else { continue }\n                \n                let valueFont = dataSet.valueFont\n                \n                guard let formatter = dataSet.valueFormatter else { continue }\n                \n                let trans = dataProvider.getTransformer(forAxis: dataSet.axisDependency)\n                let valueToPixelMatrix = trans.valueToPixelMatrix\n                \n                let iconsOffset = dataSet.iconsOffset\n                \n                _xBounds.set(chart: dataProvider, dataSet: dataSet, animator: animator)\n                \n                let lineHeight = valueFont.lineHeight\n                let yOffset: CGFloat = lineHeight + 5.0\n                \n                for j in _xBounds\n                {\n                    guard let e = dataSet.entryForIndex(j) as? CandleChartDataEntry else { break }\n                    \n                    pt.x = CGFloat(e.x)\n                    pt.y = CGFloat(e.high * phaseY)\n                    pt = pt.applying(valueToPixelMatrix)\n                    \n                    if (!viewPortHandler.isInBoundsRight(pt.x))\n                    {\n                        break\n                    }\n                    \n                    if (!viewPortHandler.isInBoundsLeft(pt.x) || !viewPortHandler.isInBoundsY(pt.y))\n                    {\n                        continue\n                    }\n                    \n                    if dataSet.isDrawValuesEnabled\n                    {\n                        ChartUtils.drawText(\n                            context: context,\n                            text: formatter.stringForValue(\n                                e.high,\n                                entry: e,\n                                dataSetIndex: i,\n                                viewPortHandler: viewPortHandler),\n                            point: CGPoint(\n                                x: pt.x,\n                                y: pt.y - yOffset),\n                            align: .center,\n                            attributes: [NSAttributedString.Key.font: valueFont, NSAttributedString.Key.foregroundColor: dataSet.valueTextColorAt(j)])\n                    }\n                    \n                    if let icon = e.icon, dataSet.isDrawIconsEnabled\n                    {\n                        ChartUtils.drawImage(context: context,\n                                             image: icon,\n                                             x: pt.x + iconsOffset.x,\n                                             y: pt.y + iconsOffset.y,\n                                             size: icon.size)\n                    }\n                }\n            }\n        }\n    }\n    \n    open override func drawExtras(context: CGContext)\n    {\n    }\n    \n    open override func drawHighlighted(context: CGContext, indices: [Highlight])\n    {\n        guard\n            let dataProvider = dataProvider,\n            let candleData = dataProvider.candleData\n            else { return }\n        \n        context.saveGState()\n        \n        for high in indices\n        {\n            guard\n                let set = candleData.getDataSetByIndex(high.dataSetIndex) as? ICandleChartDataSet,\n                set.isHighlightEnabled\n                else { continue }\n            \n            guard let e = set.entryForXValue(high.x, closestToY: high.y) as? CandleChartDataEntry else { continue }\n            \n            if !isInBoundsX(entry: e, dataSet: set)\n            {\n                continue\n            }\n            \n            let trans = dataProvider.getTransformer(forAxis: set.axisDependency)\n            \n            context.setStrokeColor(set.highlightColor.cgColor)\n            context.setLineWidth(set.highlightLineWidth)\n            \n            if set.highlightLineDashLengths != nil\n            {\n                context.setLineDash(phase: set.highlightLineDashPhase, lengths: set.highlightLineDashLengths!)\n            }\n            else\n            {\n                context.setLineDash(phase: 0.0, lengths: [])\n            }\n            \n            let lowValue = e.low * Double(animator.phaseY)\n            let highValue = e.high * Double(animator.phaseY)\n            let y = (lowValue + highValue) / 2.0\n            \n            let pt = trans.pixelForValues(x: e.x, y: y)\n            \n            high.setDraw(pt: pt)\n            \n            // draw the lines\n            drawHighlightLines(context: context, point: pt, set: set)\n        }\n        \n        context.restoreGState()\n    }\n\n    private func createAccessibleElement(withIndex idx: Int,\n                                         container: CandleChartDataProvider,\n                                         dataSet: ICandleChartDataSet,\n                                         modifier: (NSUIAccessibilityElement) -> ()) -> NSUIAccessibilityElement {\n\n        let element = NSUIAccessibilityElement(accessibilityContainer: container)\n\n        // The modifier allows changing of traits and frame depending on highlight, rotation, etc\n        modifier(element)\n\n        return element\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift",
    "content": "//\n//  DataRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n#if canImport(UIKit)\n    import UIKit\n#endif\n\n#if canImport(Cocoa)\nimport Cocoa\n#endif\n\n@objc(ChartDataRendererBase)\nopen class DataRenderer: Renderer\n{\n    /// An array of accessibility elements that are presented to the ChartViewBase accessibility methods.\n    ///\n    /// Note that the order of elements in this array determines the order in which they are presented and navigated by\n    /// Accessibility clients such as VoiceOver.\n    ///\n    /// Renderers should ensure that the order of elements makes sense to a client presenting an audio-only interface to a user.\n    /// Subclasses should populate this array in drawData() or drawDataSet() to make the chart accessible.\n    @objc final var accessibleChartElements: [NSUIAccessibilityElement] = []\n\n    @objc public let animator: Animator\n    \n    @objc public init(animator: Animator, viewPortHandler: ViewPortHandler)\n    {\n        self.animator = animator\n\n        super.init(viewPortHandler: viewPortHandler)\n    }\n\n    @objc open func drawData(context: CGContext)\n    {\n        fatalError(\"drawData() cannot be called on DataRenderer\")\n    }\n    \n    @objc open func drawValues(context: CGContext)\n    {\n        fatalError(\"drawValues() cannot be called on DataRenderer\")\n    }\n    \n    @objc open func drawExtras(context: CGContext)\n    {\n        fatalError(\"drawExtras() cannot be called on DataRenderer\")\n    }\n    \n    /// Draws all highlight indicators for the values that are currently highlighted.\n    ///\n    /// - Parameters:\n    ///   - indices: the highlighted values\n    @objc open func drawHighlighted(context: CGContext, indices: [Highlight])\n    {\n        fatalError(\"drawHighlighted() cannot be called on DataRenderer\")\n    }\n    \n    /// An opportunity for initializing internal buffers used for rendering with a new size.\n    /// Since this might do memory allocations, it should only be called if necessary.\n    @objc open func initBuffers() { }\n    \n    @objc open func isDrawingValuesAllowed(dataProvider: ChartDataProvider?) -> Bool\n    {\n        guard let data = dataProvider?.data else { return false }\n        return data.entryCount < Int(CGFloat(dataProvider?.maxVisibleCount ?? 0) * viewPortHandler.scaleX)\n    }\n\n    /// Creates an ```NSUIAccessibilityElement``` that acts as the first and primary header describing a chart view.\n    ///\n    /// - Parameters:\n    ///   - chart: The chartView object being described\n    ///   - data: A non optional data source about the chart\n    ///   - defaultDescription: A simple string describing the type/design of Chart.\n    /// - Returns: A header ```NSUIAccessibilityElement``` that can be added to accessibleChartElements.\n    @objc internal func createAccessibleHeader(usingChart chart: ChartViewBase,\n                                        andData data: ChartData,\n                                        withDefaultDescription defaultDescription: String = \"Chart\") -> NSUIAccessibilityElement\n    {\n        let chartDescriptionText = chart.chartDescription?.text ?? defaultDescription\n        let dataSetDescriptions = data.dataSets.map { $0.label ?? \"\" }\n        let dataSetDescriptionText = dataSetDescriptions.joined(separator: \", \")\n        let dataSetCount = data.dataSets.count\n\n        let\n        element = NSUIAccessibilityElement(accessibilityContainer: chart)\n        element.accessibilityLabel = chartDescriptionText + \". \\(dataSetCount) dataset\\(dataSetCount == 1 ? \"\" : \"s\"). \\(dataSetDescriptionText)\"\n        element.accessibilityFrame = chart.bounds\n        element.isHeader = true\n\n        return element\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift",
    "content": "//\n//  CombinedChartRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nopen class CombinedChartRenderer: DataRenderer\n{\n    @objc open weak var chart: CombinedChartView?\n    \n    /// if set to true, all values are drawn above their bars, instead of below their top\n    @objc open var drawValueAboveBarEnabled = true\n    \n    /// if set to true, a grey area is drawn behind each bar that indicates the maximum value\n    @objc open var drawBarShadowEnabled = false\n    \n    internal var _renderers = [DataRenderer]()\n    \n    internal var _drawOrder: [CombinedChartView.DrawOrder] = [.bar, .bubble, .line, .candle, .scatter]\n    \n    @objc public init(chart: CombinedChartView, animator: Animator, viewPortHandler: ViewPortHandler)\n    {\n        super.init(animator: animator, viewPortHandler: viewPortHandler)\n        \n        self.chart = chart\n        \n        createRenderers()\n    }\n    \n    /// Creates the renderers needed for this combined-renderer in the required order. Also takes the DrawOrder into consideration.\n    internal func createRenderers()\n    {\n        _renderers = [DataRenderer]()\n        \n        guard let chart = chart else { return }\n\n        for order in drawOrder\n        {\n            switch (order)\n            {\n            case .bar:\n                if chart.barData !== nil\n                {\n                    _renderers.append(BarChartRenderer(dataProvider: chart, animator: animator, viewPortHandler: viewPortHandler))\n                }\n                break\n                \n            case .line:\n                if chart.lineData !== nil\n                {\n                    _renderers.append(LineChartRenderer(dataProvider: chart, animator: animator, viewPortHandler: viewPortHandler))\n                }\n                break\n                \n            case .candle:\n                if chart.candleData !== nil\n                {\n                    _renderers.append(CandleStickChartRenderer(dataProvider: chart, animator: animator, viewPortHandler: viewPortHandler))\n                }\n                break\n                \n            case .scatter:\n                if chart.scatterData !== nil\n                {\n                    _renderers.append(ScatterChartRenderer(dataProvider: chart, animator: animator, viewPortHandler: viewPortHandler))\n                }\n                break\n                \n            case .bubble:\n                if chart.bubbleData !== nil\n                {\n                    _renderers.append(BubbleChartRenderer(dataProvider: chart, animator: animator, viewPortHandler: viewPortHandler))\n                }\n                break\n            }\n        }\n\n    }\n    \n    open override func initBuffers()\n    {\n        _renderers.forEach { $0.initBuffers() }\n    }\n    \n    open override func drawData(context: CGContext)\n    {\n        // If we redraw the data, remove and repopulate accessible elements to update label values and frames\n        accessibleChartElements.removeAll()\n\n        if\n            let combinedChart = chart,\n            let data = combinedChart.data {\n            // Make the chart header the first element in the accessible elements array\n            let element = createAccessibleHeader(usingChart: combinedChart,\n                                                 andData: data,\n                                                 withDefaultDescription: \"Combined Chart\")\n            accessibleChartElements.append(element)\n        }\n\n        // TODO: Due to the potential complexity of data presented in Combined charts, a more usable way\n        // for VO accessibility would be to use axis based traversal rather than by dataset.\n        // Hence, accessibleChartElements is not populated below. (Individual renderers guard against dataSource being their respective views)\n        _renderers.forEach { $0.drawData(context: context) }\n    }\n    \n    open override func drawValues(context: CGContext)\n    {\n        _renderers.forEach { $0.drawValues(context: context) }\n    }\n    \n    open override func drawExtras(context: CGContext)\n    {\n        _renderers.forEach { $0.drawExtras(context: context) }\n    }\n    \n    open override func drawHighlighted(context: CGContext, indices: [Highlight])\n    {\n        for renderer in _renderers\n        {\n            var data: ChartData?\n            \n            if renderer is BarChartRenderer\n            {\n                data = (renderer as! BarChartRenderer).dataProvider?.barData\n            }\n            else if renderer is LineChartRenderer\n            {\n                data = (renderer as! LineChartRenderer).dataProvider?.lineData\n            }\n            else if renderer is CandleStickChartRenderer\n            {\n                data = (renderer as! CandleStickChartRenderer).dataProvider?.candleData\n            }\n            else if renderer is ScatterChartRenderer\n            {\n                data = (renderer as! ScatterChartRenderer).dataProvider?.scatterData\n            }\n            else if renderer is BubbleChartRenderer\n            {\n                data = (renderer as! BubbleChartRenderer).dataProvider?.bubbleData\n            }\n            \n            let dataIndex: Int? = {\n                guard let data = data else { return nil }\n                return (chart?.data as? CombinedChartData)?\n                    .allData\n                    .firstIndex(of: data)\n            }()\n            \n            let dataIndices = indices.filter{ $0.dataIndex == dataIndex || $0.dataIndex == -1 }\n            \n            renderer.drawHighlighted(context: context, indices: dataIndices)\n        }\n    }\n\n    /// - Returns: The sub-renderer object at the specified index.\n    @objc open func getSubRenderer(index: Int) -> DataRenderer?\n    {\n        if index >= _renderers.count || index < 0\n        {\n            return nil\n        }\n        else\n        {\n            return _renderers[index]\n        }\n    }\n\n    /// All sub-renderers.\n    @objc open var subRenderers: [DataRenderer]\n    {\n        get { return _renderers }\n        set { _renderers = newValue }\n    }\n    \n    // MARK: Accessors\n    \n    /// `true` if drawing values above bars is enabled, `false` ifnot\n    @objc open var isDrawValueAboveBarEnabled: Bool { return drawValueAboveBarEnabled }\n    \n    /// `true` if drawing shadows (maxvalue) for each bar is enabled, `false` ifnot\n    @objc open var isDrawBarShadowEnabled: Bool { return drawBarShadowEnabled }\n    \n    /// the order in which the provided data objects should be drawn.\n    /// The earlier you place them in the provided array, the further they will be in the background.\n    /// e.g. if you provide [DrawOrder.Bar, DrawOrder.Line], the bars will be drawn behind the lines.\n    open var drawOrder: [CombinedChartView.DrawOrder]\n    {\n        get\n        {\n            return _drawOrder\n        }\n        set\n        {\n            if newValue.count > 0\n            {\n                _drawOrder = newValue\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift",
    "content": "//\n//  HorizontalBarChartRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n#if canImport(UIKit)\n    import UIKit\n#endif\n\n#if canImport(Cocoa)\nimport Cocoa\n#endif\n\nopen class HorizontalBarChartRenderer: BarChartRenderer\n{\n    private class Buffer\n    {\n        var rects = [CGRect]()\n    }\n    \n    public override init(dataProvider: BarChartDataProvider, animator: Animator, viewPortHandler: ViewPortHandler)\n    {\n        super.init(dataProvider: dataProvider, animator: animator, viewPortHandler: viewPortHandler)\n    }\n    \n    // [CGRect] per dataset\n    private var _buffers = [Buffer]()\n    \n    open override func initBuffers()\n    {\n        if let barData = dataProvider?.barData\n        {\n            // Matche buffers count to dataset count\n            if _buffers.count != barData.dataSetCount\n            {\n                while _buffers.count < barData.dataSetCount\n                {\n                    _buffers.append(Buffer())\n                }\n                while _buffers.count > barData.dataSetCount\n                {\n                    _buffers.removeLast()\n                }\n            }\n            \n            for i in stride(from: 0, to: barData.dataSetCount, by: 1)\n            {\n                let set = barData.dataSets[i] as! IBarChartDataSet\n                let size = set.entryCount * (set.isStacked ? set.stackSize : 1)\n                if _buffers[i].rects.count != size\n                {\n                    _buffers[i].rects = [CGRect](repeating: CGRect(), count: size)\n                }\n            }\n        }\n        else\n        {\n            _buffers.removeAll()\n        }\n    }\n    \n    private func prepareBuffer(dataSet: IBarChartDataSet, index: Int)\n    {\n        guard let\n            dataProvider = dataProvider,\n            let barData = dataProvider.barData\n            else { return }\n        \n        let barWidthHalf = barData.barWidth / 2.0\n        \n        let buffer = _buffers[index]\n        var bufferIndex = 0\n        let containsStacks = dataSet.isStacked\n        \n        let isInverted = dataProvider.isInverted(axis: dataSet.axisDependency)\n        let phaseY = animator.phaseY\n        var barRect = CGRect()\n        var x: Double\n        var y: Double\n        \n        for i in stride(from: 0, to: min(Int(ceil(Double(dataSet.entryCount) * animator.phaseX)), dataSet.entryCount), by: 1)\n        {\n            guard let e = dataSet.entryForIndex(i) as? BarChartDataEntry else { continue }\n            \n            let vals = e.yValues\n            \n            x = e.x\n            y = e.y\n            \n            if !containsStacks || vals == nil\n            {\n                let bottom = CGFloat(x - barWidthHalf)\n                let top = CGFloat(x + barWidthHalf)\n                var right = isInverted\n                    ? (y <= 0.0 ? CGFloat(y) : 0)\n                    : (y >= 0.0 ? CGFloat(y) : 0)\n                var left = isInverted\n                    ? (y >= 0.0 ? CGFloat(y) : 0)\n                    : (y <= 0.0 ? CGFloat(y) : 0)\n                \n                // multiply the height of the rect with the phase\n                if right > 0\n                {\n                    right *= CGFloat(phaseY)\n                }\n                else\n                {\n                    left *= CGFloat(phaseY)\n                }\n                \n                barRect.origin.x = left\n                barRect.size.width = right - left\n                barRect.origin.y = top\n                barRect.size.height = bottom - top\n                \n                buffer.rects[bufferIndex] = barRect\n                bufferIndex += 1\n            }\n            else\n            {\n                var posY = 0.0\n                var negY = -e.negativeSum\n                var yStart = 0.0\n                \n                // fill the stack\n                for k in 0 ..< vals!.count\n                {\n                    let value = vals![k]\n                    \n                    if value == 0.0 && (posY == 0.0 || negY == 0.0)\n                    {\n                        // Take care of the situation of a 0.0 value, which overlaps a non-zero bar\n                        y = value\n                        yStart = y\n                    }\n                    else if value >= 0.0\n                    {\n                        y = posY\n                        yStart = posY + value\n                        posY = yStart\n                    }\n                    else\n                    {\n                        y = negY\n                        yStart = negY + abs(value)\n                        negY += abs(value)\n                    }\n                    \n                    let bottom = CGFloat(x - barWidthHalf)\n                    let top = CGFloat(x + barWidthHalf)\n                    var right = isInverted\n                        ? (y <= yStart ? CGFloat(y) : CGFloat(yStart))\n                        : (y >= yStart ? CGFloat(y) : CGFloat(yStart))\n                    var left = isInverted\n                        ? (y >= yStart ? CGFloat(y) : CGFloat(yStart))\n                        : (y <= yStart ? CGFloat(y) : CGFloat(yStart))\n                    \n                    // multiply the height of the rect with the phase\n                    right *= CGFloat(phaseY)\n                    left *= CGFloat(phaseY)\n                    \n                    barRect.origin.x = left\n                    barRect.size.width = right - left\n                    barRect.origin.y = top\n                    barRect.size.height = bottom - top\n                    \n                    buffer.rects[bufferIndex] = barRect\n                    bufferIndex += 1\n                }\n            }\n        }\n    }\n    \n    private var _barShadowRectBuffer: CGRect = CGRect()\n    \n    open override func drawDataSet(context: CGContext, dataSet: IBarChartDataSet, index: Int)\n    {\n        guard let dataProvider = dataProvider else { return }\n        \n        let trans = dataProvider.getTransformer(forAxis: dataSet.axisDependency)\n        \n        prepareBuffer(dataSet: dataSet, index: index)\n        trans.rectValuesToPixel(&_buffers[index].rects)\n        \n        let borderWidth = dataSet.barBorderWidth\n        let borderColor = dataSet.barBorderColor\n        let drawBorder = borderWidth > 0.0\n        \n        context.saveGState()\n        \n        // draw the bar shadow before the values\n        if dataProvider.isDrawBarShadowEnabled\n        {\n            guard let barData = dataProvider.barData else { return }\n            \n            let barWidth = barData.barWidth\n            let barWidthHalf = barWidth / 2.0\n            var x: Double = 0.0\n            \n            for i in stride(from: 0, to: min(Int(ceil(Double(dataSet.entryCount) * animator.phaseX)), dataSet.entryCount), by: 1)\n            {\n                guard let e = dataSet.entryForIndex(i) as? BarChartDataEntry else { continue }\n                \n                x = e.x\n                \n                _barShadowRectBuffer.origin.y = CGFloat(x - barWidthHalf)\n                _barShadowRectBuffer.size.height = CGFloat(barWidth)\n                \n                trans.rectValueToPixel(&_barShadowRectBuffer)\n                \n                if !viewPortHandler.isInBoundsTop(_barShadowRectBuffer.origin.y + _barShadowRectBuffer.size.height)\n                {\n                    break\n                }\n                \n                if !viewPortHandler.isInBoundsBottom(_barShadowRectBuffer.origin.y)\n                {\n                    continue\n                }\n                \n                _barShadowRectBuffer.origin.x = viewPortHandler.contentLeft\n                _barShadowRectBuffer.size.width = viewPortHandler.contentWidth\n                \n                context.setFillColor(dataSet.barShadowColor.cgColor)\n                context.fill(_barShadowRectBuffer)\n            }\n        }\n        \n        let buffer = _buffers[index]\n        \n        let isSingleColor = dataSet.colors.count == 1\n        \n        if isSingleColor\n        {\n            context.setFillColor(dataSet.color(atIndex: 0).cgColor)\n        }\n\n        // In case the chart is stacked, we need to accomodate individual bars within accessibilityOrdereredElements\n        let isStacked = dataSet.isStacked\n        let stackSize = isStacked ? dataSet.stackSize : 1\n\n        for j in stride(from: 0, to: buffer.rects.count, by: 1)\n        {\n            let barRect = buffer.rects[j]\n            \n            if (!viewPortHandler.isInBoundsTop(barRect.origin.y + barRect.size.height))\n            {\n                break\n            }\n            \n            if (!viewPortHandler.isInBoundsBottom(barRect.origin.y))\n            {\n                continue\n            }\n            \n            if !isSingleColor\n            {\n                // Set the color for the currently drawn value. If the index is out of bounds, reuse colors.\n                context.setFillColor(dataSet.color(atIndex: j).cgColor)\n            }\n\n            context.fill(barRect)\n\n            if drawBorder\n            {\n                context.setStrokeColor(borderColor.cgColor)\n                context.setLineWidth(borderWidth)\n                context.stroke(barRect)\n            }\n\n            // Create and append the corresponding accessibility element to accessibilityOrderedElements (see BarChartRenderer)\n            if let chart = dataProvider as? BarChartView\n            {\n                let element = createAccessibleElement(withIndex: j,\n                                                      container: chart,\n                                                      dataSet: dataSet,\n                                                      dataSetIndex: index,\n                                                      stackSize: stackSize)\n                { (element) in\n                    element.accessibilityFrame = barRect\n                }\n\n                accessibilityOrderedElements[j/stackSize].append(element)\n            }\n        }\n        \n        context.restoreGState()\n    }\n    \n    open override func prepareBarHighlight(\n        x: Double,\n        y1: Double,\n        y2: Double,\n        barWidthHalf: Double,\n        trans: Transformer,\n        rect: inout CGRect)\n    {\n        let top = x - barWidthHalf\n        let bottom = x + barWidthHalf\n        let left = y1\n        let right = y2\n        \n        rect.origin.x = CGFloat(left)\n        rect.origin.y = CGFloat(top)\n        rect.size.width = CGFloat(right - left)\n        rect.size.height = CGFloat(bottom - top)\n        \n        trans.rectValueToPixelHorizontal(&rect, phaseY: animator.phaseY)\n    }\n    \n    open override func drawValues(context: CGContext)\n    {\n        // if values are drawn\n        if isDrawingValuesAllowed(dataProvider: dataProvider)\n        {\n            guard\n                let dataProvider = dataProvider,\n                let barData = dataProvider.barData\n                else { return }\n            \n            let dataSets = barData.dataSets\n            \n            let textAlign = NSTextAlignment.left\n            \n            let valueOffsetPlus: CGFloat = 5.0\n            var posOffset: CGFloat\n            var negOffset: CGFloat\n            let drawValueAboveBar = dataProvider.isDrawValueAboveBarEnabled\n            \n            for dataSetIndex in 0 ..< barData.dataSetCount\n            {\n                guard let\n                    dataSet = dataSets[dataSetIndex] as? IBarChartDataSet,\n                    shouldDrawValues(forDataSet: dataSet)\n                    else { continue }\n                \n                let isInverted = dataProvider.isInverted(axis: dataSet.axisDependency)\n                \n                let valueFont = dataSet.valueFont\n                let yOffset = -valueFont.lineHeight / 2.0\n                \n                guard let formatter = dataSet.valueFormatter else { continue }\n                \n                let trans = dataProvider.getTransformer(forAxis: dataSet.axisDependency)\n                \n                let phaseY = animator.phaseY\n                \n                let iconsOffset = dataSet.iconsOffset\n                \n                let buffer = _buffers[dataSetIndex]\n                \n                // if only single values are drawn (sum)\n                if !dataSet.isStacked\n                {\n                    for j in 0 ..< Int(ceil(Double(dataSet.entryCount) * animator.phaseX))\n                    {\n                        guard let e = dataSet.entryForIndex(j) as? BarChartDataEntry else { continue }\n                        \n                        let rect = buffer.rects[j]\n                        \n                        let y = rect.origin.y + rect.size.height / 2.0\n                        \n                        if !viewPortHandler.isInBoundsTop(rect.origin.y)\n                        {\n                            break\n                        }\n                        \n                        if !viewPortHandler.isInBoundsX(rect.origin.x)\n                        {\n                            continue\n                        }\n                        \n                        if !viewPortHandler.isInBoundsBottom(rect.origin.y)\n                        {\n                            continue\n                        }\n                        \n                        let val = e.y\n                        let valueText = formatter.stringForValue(\n                            val,\n                            entry: e,\n                            dataSetIndex: dataSetIndex,\n                            viewPortHandler: viewPortHandler)\n                        \n                        // calculate the correct offset depending on the draw position of the value\n                        let valueTextWidth = valueText.size(withAttributes: [NSAttributedString.Key.font: valueFont]).width\n                        posOffset = (drawValueAboveBar ? valueOffsetPlus : -(valueTextWidth + valueOffsetPlus))\n                        negOffset = (drawValueAboveBar ? -(valueTextWidth + valueOffsetPlus) : valueOffsetPlus) - rect.size.width\n                        \n                        if isInverted\n                        {\n                            posOffset = -posOffset - valueTextWidth\n                            negOffset = -negOffset - valueTextWidth\n                        }\n                        \n                        if dataSet.isDrawValuesEnabled\n                        {\n                            drawValue(\n                                context: context,\n                                value: valueText,\n                                xPos: (rect.origin.x + rect.size.width)\n                                    + (val >= 0.0 ? posOffset : negOffset),\n                                yPos: y + yOffset,\n                                font: valueFont,\n                                align: textAlign,\n                                color: dataSet.valueTextColorAt(j))\n                        }\n                        \n                        if let icon = e.icon, dataSet.isDrawIconsEnabled\n                        {\n                            var px = (rect.origin.x + rect.size.width)\n                                + (val >= 0.0 ? posOffset : negOffset)\n                            var py = y\n                            \n                            px += iconsOffset.x\n                            py += iconsOffset.y\n                            \n                            ChartUtils.drawImage(\n                                context: context,\n                                image: icon,\n                                x: px,\n                                y: py,\n                                size: icon.size)\n                        }\n                    }\n                }\n                else\n                {\n                    // if each value of a potential stack should be drawn\n                    \n                    var bufferIndex = 0\n                    \n                    for index in 0 ..< Int(ceil(Double(dataSet.entryCount) * animator.phaseX))\n                    {\n                        guard let e = dataSet.entryForIndex(index) as? BarChartDataEntry else { continue }\n                        \n                        let rect = buffer.rects[bufferIndex]\n                        \n                        let vals = e.yValues\n                        \n                        // we still draw stacked bars, but there is one non-stacked in between\n                        if vals == nil\n                        {\n                            if !viewPortHandler.isInBoundsTop(rect.origin.y)\n                            {\n                                break\n                            }\n                            \n                            if !viewPortHandler.isInBoundsX(rect.origin.x)\n                            {\n                                continue\n                            }\n                            \n                            if !viewPortHandler.isInBoundsBottom(rect.origin.y)\n                            {\n                                continue\n                            }\n                            \n                            let val = e.y\n                            let valueText = formatter.stringForValue(\n                                val,\n                                entry: e,\n                                dataSetIndex: dataSetIndex,\n                                viewPortHandler: viewPortHandler)\n                            \n                            // calculate the correct offset depending on the draw position of the value\n                            let valueTextWidth = valueText.size(withAttributes: [NSAttributedString.Key.font: valueFont]).width\n                            posOffset = (drawValueAboveBar ? valueOffsetPlus : -(valueTextWidth + valueOffsetPlus))\n                            negOffset = (drawValueAboveBar ? -(valueTextWidth + valueOffsetPlus) : valueOffsetPlus)\n                            \n                            if isInverted\n                            {\n                                posOffset = -posOffset - valueTextWidth\n                                negOffset = -negOffset - valueTextWidth\n                            }\n                            \n                            if dataSet.isDrawValuesEnabled\n                            {\n                                drawValue(\n                                    context: context,\n                                    value: valueText,\n                                    xPos: (rect.origin.x + rect.size.width)\n                                        + (val >= 0.0 ? posOffset : negOffset),\n                                    yPos: rect.origin.y + yOffset,\n                                    font: valueFont,\n                                    align: textAlign,\n                                    color: dataSet.valueTextColorAt(index))\n                            }\n                            \n                            if let icon = e.icon, dataSet.isDrawIconsEnabled\n                            {\n                                var px = (rect.origin.x + rect.size.width)\n                                    + (val >= 0.0 ? posOffset : negOffset)\n                                var py = rect.origin.y\n                                \n                                px += iconsOffset.x\n                                py += iconsOffset.y\n                                \n                                ChartUtils.drawImage(\n                                    context: context,\n                                    image: icon,\n                                    x: px,\n                                    y: py,\n                                    size: icon.size)\n                            }\n                        }\n                        else\n                        {\n                            let vals = vals!\n                            var transformed = [CGPoint]()\n                            \n                            var posY = 0.0\n                            var negY = -e.negativeSum\n                            \n                            for k in 0 ..< vals.count\n                            {\n                                let value = vals[k]\n                                var y: Double\n                                \n                                if value == 0.0 && (posY == 0.0 || negY == 0.0)\n                                {\n                                    // Take care of the situation of a 0.0 value, which overlaps a non-zero bar\n                                    y = value\n                                }\n                                else if value >= 0.0\n                                {\n                                    posY += value\n                                    y = posY\n                                }\n                                else\n                                {\n                                    y = negY\n                                    negY -= value\n                                }\n                                \n                                transformed.append(CGPoint(x: CGFloat(y * phaseY), y: 0.0))\n                            }\n                            \n                            trans.pointValuesToPixel(&transformed)\n                            \n                            for k in 0 ..< transformed.count\n                            {\n                                let val = vals[k]\n                                let valueText = formatter.stringForValue(\n                                    val,\n                                    entry: e,\n                                    dataSetIndex: dataSetIndex,\n                                    viewPortHandler: viewPortHandler)\n                                \n                                // calculate the correct offset depending on the draw position of the value\n                                let valueTextWidth = valueText.size(withAttributes: [NSAttributedString.Key.font: valueFont]).width\n                                posOffset = (drawValueAboveBar ? valueOffsetPlus : -(valueTextWidth + valueOffsetPlus))\n                                negOffset = (drawValueAboveBar ? -(valueTextWidth + valueOffsetPlus) : valueOffsetPlus)\n                                \n                                if isInverted\n                                {\n                                    posOffset = -posOffset - valueTextWidth\n                                    negOffset = -negOffset - valueTextWidth\n                                }\n                                \n                                let drawBelow = (val == 0.0 && negY == 0.0 && posY > 0.0) || val < 0.0\n\n                                let x = transformed[k].x + (drawBelow ? negOffset : posOffset)\n                                let y = rect.origin.y + rect.size.height / 2.0\n                                \n                                if (!viewPortHandler.isInBoundsTop(y))\n                                {\n                                    break\n                                }\n                                \n                                if (!viewPortHandler.isInBoundsX(x))\n                                {\n                                    continue\n                                }\n                                \n                                if (!viewPortHandler.isInBoundsBottom(y))\n                                {\n                                    continue\n                                }\n                                \n                                if dataSet.isDrawValuesEnabled\n                                {\n                                    drawValue(context: context,\n                                        value: valueText,\n                                        xPos: x,\n                                        yPos: y + yOffset,\n                                        font: valueFont,\n                                        align: textAlign,\n                                        color: dataSet.valueTextColorAt(index))\n                                }\n                                \n                                if let icon = e.icon, dataSet.isDrawIconsEnabled\n                                {\n                                    ChartUtils.drawImage(\n                                        context: context,\n                                        image: icon,\n                                        x: x + iconsOffset.x,\n                                        y: y + iconsOffset.y,\n                                        size: icon.size)\n                                }\n                            }\n                        }\n                        \n                        bufferIndex = vals == nil ? (bufferIndex + 1) : (bufferIndex + vals!.count)\n                    }\n                }\n            }\n        }\n    }\n    \n    open override func isDrawingValuesAllowed(dataProvider: ChartDataProvider?) -> Bool\n    {\n        guard let data = dataProvider?.data\n            else { return false }\n        return data.entryCount < Int(CGFloat(dataProvider?.maxVisibleCount ?? 0) * self.viewPortHandler.scaleY)\n    }\n    \n    /// Sets the drawing position of the highlight object based on the riven bar-rect.\n    internal override func setHighlightDrawPos(highlight high: Highlight, barRect: CGRect)\n    {\n        high.setDraw(x: barRect.midY, y: barRect.origin.x + barRect.size.width)\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift",
    "content": "//\n//  LegendRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(ChartLegendRenderer)\nopen class LegendRenderer: Renderer\n{\n    /// the legend object this renderer renders\n    @objc open var legend: Legend?\n\n    @objc public init(viewPortHandler: ViewPortHandler, legend: Legend?)\n    {\n        super.init(viewPortHandler: viewPortHandler)\n        \n        self.legend = legend\n    }\n\n    /// Prepares the legend and calculates all needed forms, labels and colors.\n    @objc open func computeLegend(data: ChartData)\n    {\n        guard let legend = legend else { return }\n        \n        if !legend.isLegendCustom\n        {\n            var entries: [LegendEntry] = []\n            \n            // loop for building up the colors and labels used in the legend\n            for i in 0..<data.dataSetCount\n            {\n                guard let dataSet = data.getDataSetByIndex(i) else { continue }\n                \n                let clrs: [NSUIColor] = dataSet.colors\n                let entryCount = dataSet.entryCount\n                \n                // if we have a barchart with stacked bars\n                if dataSet is IBarChartDataSet &&\n                    (dataSet as! IBarChartDataSet).isStacked\n                {\n                    let bds = dataSet as! IBarChartDataSet\n                    let sLabels = bds.stackLabels\n                    let minEntries = min(clrs.count, bds.stackSize)\n\n                    for j in 0..<minEntries\n                    {\n                        let label: String?\n                        if (sLabels.count > 0)\n                        {\n                            let labelIndex = j % minEntries\n                            label = sLabels.indices.contains(labelIndex) ? sLabels[labelIndex] : nil\n                        }\n                        else\n                        {\n                            label = nil\n                        }\n\n                        entries.append(\n                            LegendEntry(\n                                label: label,\n                                form: dataSet.form,\n                                formSize: dataSet.formSize,\n                                formLineWidth: dataSet.formLineWidth,\n                                formLineDashPhase: dataSet.formLineDashPhase,\n                                formLineDashLengths: dataSet.formLineDashLengths,\n                                formColor: clrs[j]\n                            )\n                        )\n                    }\n                    \n                    if dataSet.label != nil\n                    {\n                        // add the legend description label\n                        \n                        entries.append(\n                            LegendEntry(\n                                label: dataSet.label,\n                                form: .none,\n                                formSize: CGFloat.nan,\n                                formLineWidth: CGFloat.nan,\n                                formLineDashPhase: 0.0,\n                                formLineDashLengths: nil,\n                                formColor: nil\n                            )\n                        )\n                    }\n                }\n                else if dataSet is IPieChartDataSet\n                {\n                    let pds = dataSet as! IPieChartDataSet\n                    \n                    for j in 0..<min(clrs.count, entryCount)\n                    {\n                        entries.append(\n                            LegendEntry(\n                                label: (pds.entryForIndex(j) as? PieChartDataEntry)?.label,\n                                form: dataSet.form,\n                                formSize: dataSet.formSize,\n                                formLineWidth: dataSet.formLineWidth,\n                                formLineDashPhase: dataSet.formLineDashPhase,\n                                formLineDashLengths: dataSet.formLineDashLengths,\n                                formColor: clrs[j]\n                            )\n                        )\n                    }\n                    \n                    if dataSet.label != nil\n                    {\n                        // add the legend description label\n                        \n                        entries.append(\n                            LegendEntry(\n                                label: dataSet.label,\n                                form: .none,\n                                formSize: CGFloat.nan,\n                                formLineWidth: CGFloat.nan,\n                                formLineDashPhase: 0.0,\n                                formLineDashLengths: nil,\n                                formColor: nil\n                            )\n                        )\n                    }\n                }\n                else if dataSet is ICandleChartDataSet &&\n                    (dataSet as! ICandleChartDataSet).decreasingColor != nil\n                {\n                    let candleDataSet = dataSet as! ICandleChartDataSet\n                    \n                    entries.append(\n                        LegendEntry(\n                            label: nil,\n                            form: dataSet.form,\n                            formSize: dataSet.formSize,\n                            formLineWidth: dataSet.formLineWidth,\n                            formLineDashPhase: dataSet.formLineDashPhase,\n                            formLineDashLengths: dataSet.formLineDashLengths,\n                            formColor: candleDataSet.decreasingColor\n                        )\n                    )\n                    \n                    entries.append(\n                        LegendEntry(\n                            label: dataSet.label,\n                            form: dataSet.form,\n                            formSize: dataSet.formSize,\n                            formLineWidth: dataSet.formLineWidth,\n                            formLineDashPhase: dataSet.formLineDashPhase,\n                            formLineDashLengths: dataSet.formLineDashLengths,\n                            formColor: candleDataSet.increasingColor\n                        )\n                    )\n                }\n                else\n                { // all others\n                    \n                    for j in 0..<min(clrs.count, entryCount)\n                    {\n                        let label: String?\n                        \n                        // if multiple colors are set for a DataSet, group them\n                        if j < clrs.count - 1 && j < entryCount - 1\n                        {\n                            label = nil\n                        }\n                        else\n                        { // add label to the last entry\n                            label = dataSet.label\n                        }\n                        \n                        entries.append(\n                            LegendEntry(\n                                label: label,\n                                form: dataSet.form,\n                                formSize: dataSet.formSize,\n                                formLineWidth: dataSet.formLineWidth,\n                                formLineDashPhase: dataSet.formLineDashPhase,\n                                formLineDashLengths: dataSet.formLineDashLengths,\n                                formColor: clrs[j]\n                            )\n                        )\n                    }\n                }\n            }\n            \n            legend.entries = entries + legend.extraEntries\n        }\n        \n        // calculate all dimensions of the legend\n        legend.calculateDimensions(labelFont: legend.font, viewPortHandler: viewPortHandler)\n    }\n    \n    @objc open func renderLegend(context: CGContext)\n    {\n        guard let legend = legend else { return }\n        \n        if !legend.enabled\n        {\n            return\n        }\n        \n        let labelFont = legend.font\n        let labelTextColor = legend.textColor\n        let labelLineHeight = labelFont.lineHeight\n        let formYOffset = labelLineHeight / 2.0\n\n        let entries = legend.entries\n        \n        let defaultFormSize = legend.formSize\n        let formToTextSpace = legend.formToTextSpace\n        let xEntrySpace = legend.xEntrySpace\n        let yEntrySpace = legend.yEntrySpace\n        \n        let orientation = legend.orientation\n        let horizontalAlignment = legend.horizontalAlignment\n        let verticalAlignment = legend.verticalAlignment\n        let direction = legend.direction\n\n        // space between the entries\n        let stackSpace = legend.stackSpace\n\n        let yoffset = legend.yOffset\n        let xoffset = legend.xOffset\n        var originPosX: CGFloat = 0.0\n        \n        switch horizontalAlignment\n        {\n        case .left:\n            \n            if orientation == .vertical\n            {\n                originPosX = xoffset\n            }\n            else\n            {\n                originPosX = viewPortHandler.contentLeft + xoffset\n            }\n            \n            if direction == .rightToLeft\n            {\n                originPosX += legend.neededWidth\n            }\n            \n        case .right:\n            \n            if orientation == .vertical\n            {\n                originPosX = viewPortHandler.chartWidth - xoffset\n            }\n            else\n            {\n                originPosX = viewPortHandler.contentRight - xoffset\n            }\n            \n            if direction == .leftToRight\n            {\n                originPosX -= legend.neededWidth\n            }\n            \n        case .center:\n            \n            if orientation == .vertical\n            {\n                originPosX = viewPortHandler.chartWidth / 2.0\n            }\n            else\n            {\n                originPosX = viewPortHandler.contentLeft\n                    + viewPortHandler.contentWidth / 2.0\n            }\n            \n            originPosX += (direction == .leftToRight\n                    ? +xoffset\n                    : -xoffset)\n            \n            // Horizontally layed out legends do the center offset on a line basis,\n            // So here we offset the vertical ones only.\n            if orientation == .vertical\n            {\n                if direction == .leftToRight\n                {\n                    originPosX -= legend.neededWidth / 2.0 - xoffset\n                }\n                else\n                {\n                    originPosX += legend.neededWidth / 2.0 - xoffset\n                }\n            }\n        }\n        \n        switch orientation\n        {\n        case .horizontal:\n            \n            let calculatedLineSizes = legend.calculatedLineSizes\n            let calculatedLabelSizes = legend.calculatedLabelSizes\n            let calculatedLabelBreakPoints = legend.calculatedLabelBreakPoints\n            \n            var posX: CGFloat = originPosX\n            var posY: CGFloat\n            \n            switch verticalAlignment\n            {\n            case .top:\n                posY = yoffset\n                \n            case .bottom:\n                posY = viewPortHandler.chartHeight - yoffset - legend.neededHeight\n                \n            case .center:\n                posY = (viewPortHandler.chartHeight - legend.neededHeight) / 2.0 + yoffset\n            }\n            \n            var lineIndex: Int = 0\n            \n            for i in 0 ..< entries.count\n            {\n                let e = entries[i]\n                let drawingForm = e.form != .none\n                let formSize = e.formSize.isNaN ? defaultFormSize : e.formSize\n                \n                if i < calculatedLabelBreakPoints.count &&\n                    calculatedLabelBreakPoints[i]\n                {\n                    posX = originPosX\n                    posY += labelLineHeight + yEntrySpace\n                }\n                \n                if posX == originPosX &&\n                    horizontalAlignment == .center &&\n                    lineIndex < calculatedLineSizes.count\n                {\n                    posX += (direction == .rightToLeft\n                        ? calculatedLineSizes[lineIndex].width\n                        : -calculatedLineSizes[lineIndex].width) / 2.0\n                    lineIndex += 1\n                }\n                \n                let isStacked = e.label == nil // grouped forms have null labels\n                \n                if drawingForm\n                {\n                    if direction == .rightToLeft\n                    {\n                        posX -= formSize\n                    }\n                    \n                    drawForm(\n                        context: context,\n                        x: posX,\n                        y: posY + formYOffset,\n                        entry: e,\n                        legend: legend)\n                    \n                    if direction == .leftToRight\n                    {\n                        posX += formSize\n                    }\n                }\n                \n                if !isStacked\n                {\n                    if drawingForm\n                    {\n                        posX += direction == .rightToLeft ? -formToTextSpace : formToTextSpace\n                    }\n                    \n                    if direction == .rightToLeft\n                    {\n                        posX -= calculatedLabelSizes[i].width\n                    }\n                    \n                    drawLabel(\n                        context: context,\n                        x: posX,\n                        y: posY,\n                        label: e.label!,\n                        font: labelFont,\n                        textColor: labelTextColor)\n                    \n                    if direction == .leftToRight\n                    {\n                        posX += calculatedLabelSizes[i].width\n                    }\n                    \n                    posX += direction == .rightToLeft ? -xEntrySpace : xEntrySpace\n                }\n                else\n                {\n                    posX += direction == .rightToLeft ? -stackSpace : stackSpace\n                }\n            }\n            \n        case .vertical:\n            \n            // contains the stacked legend size in pixels\n            var stack = CGFloat(0.0)\n            var wasStacked = false\n            \n            var posY: CGFloat = 0.0\n            \n            switch verticalAlignment\n            {\n            case .top:\n                posY = (horizontalAlignment == .center\n                    ? 0.0\n                    : viewPortHandler.contentTop)\n                posY += yoffset\n                \n            case .bottom:\n                posY = (horizontalAlignment == .center\n                    ? viewPortHandler.chartHeight\n                    : viewPortHandler.contentBottom)\n                posY -= legend.neededHeight + yoffset\n                \n            case .center:\n                \n                posY = viewPortHandler.chartHeight / 2.0 - legend.neededHeight / 2.0 + legend.yOffset\n            }\n            \n            for i in 0 ..< entries.count\n            {\n                let e = entries[i]\n                let drawingForm = e.form != .none\n                let formSize = e.formSize.isNaN ? defaultFormSize : e.formSize\n                \n                var posX = originPosX\n                \n                if drawingForm\n                {\n                    if direction == .leftToRight\n                    {\n                        posX += stack\n                    }\n                    else\n                    {\n                        posX -= formSize - stack\n                    }\n                    \n                    drawForm(\n                        context: context,\n                        x: posX,\n                        y: posY + formYOffset,\n                        entry: e,\n                        legend: legend)\n                    \n                    if direction == .leftToRight\n                    {\n                        posX += formSize\n                    }\n                }\n                \n                if e.label != nil\n                {\n                    if drawingForm && !wasStacked\n                    {\n                        posX += direction == .leftToRight ? formToTextSpace : -formToTextSpace\n                    }\n                    else if wasStacked\n                    {\n                        posX = originPosX\n                    }\n                    \n                    if direction == .rightToLeft\n                    {\n                        posX -= (e.label! as NSString).size(withAttributes: [.font: labelFont]).width\n                    }\n                    \n                    if !wasStacked\n                    {\n                        drawLabel(context: context, x: posX, y: posY, label: e.label!, font: labelFont, textColor: labelTextColor)\n                    }\n                    else\n                    {\n                        posY += labelLineHeight + yEntrySpace\n                        drawLabel(context: context, x: posX, y: posY, label: e.label!, font: labelFont, textColor: labelTextColor)\n                    }\n                    \n                    // make a step down\n                    posY += labelLineHeight + yEntrySpace\n                    stack = 0.0\n                }\n                else\n                {\n                    stack += formSize + stackSpace\n                    wasStacked = true\n                }\n            }\n        }\n    }\n\n    private var _formLineSegmentsBuffer = [CGPoint](repeating: CGPoint(), count: 2)\n    \n    /// Draws the Legend-form at the given position with the color at the given index.\n    @objc open func drawForm(\n        context: CGContext,\n        x: CGFloat,\n        y: CGFloat,\n        entry: LegendEntry,\n        legend: Legend)\n    {\n        guard\n            let formColor = entry.formColor,\n            formColor != NSUIColor.clear\n            else { return }\n        \n        var form = entry.form\n        if form == .default\n        {\n            form = legend.form\n        }\n        \n        let formSize = entry.formSize.isNaN ? legend.formSize : entry.formSize\n        \n        context.saveGState()\n        defer { context.restoreGState() }\n        \n        switch form\n        {\n        case .none:\n            // Do nothing\n            break\n            \n        case .empty:\n            // Do not draw, but keep space for the form\n            break\n            \n        case .default: fallthrough\n        case .circle:\n            \n            context.setFillColor(formColor.cgColor)\n            context.fillEllipse(in: CGRect(x: x, y: y - formSize / 2.0, width: formSize, height: formSize))\n            \n        case .square:\n            \n            context.setFillColor(formColor.cgColor)\n            context.fill(CGRect(x: x, y: y - formSize / 2.0, width: formSize, height: formSize))\n            \n        case .line:\n            \n            let formLineWidth = entry.formLineWidth.isNaN ? legend.formLineWidth : entry.formLineWidth\n            let formLineDashPhase = entry.formLineDashPhase.isNaN ? legend.formLineDashPhase : entry.formLineDashPhase\n            let formLineDashLengths = entry.formLineDashLengths == nil ? legend.formLineDashLengths : entry.formLineDashLengths\n            \n            context.setLineWidth(formLineWidth)\n            \n            if formLineDashLengths != nil && formLineDashLengths!.count > 0\n            {\n                context.setLineDash(phase: formLineDashPhase, lengths: formLineDashLengths!)\n            }\n            else\n            {\n                context.setLineDash(phase: 0.0, lengths: [])\n            }\n            \n            context.setStrokeColor(formColor.cgColor)\n            \n            _formLineSegmentsBuffer[0].x = x\n            _formLineSegmentsBuffer[0].y = y\n            _formLineSegmentsBuffer[1].x = x + formSize\n            _formLineSegmentsBuffer[1].y = y\n            context.strokeLineSegments(between: _formLineSegmentsBuffer)\n        }\n    }\n\n    /// Draws the provided label at the given position.\n    @objc open func drawLabel(context: CGContext, x: CGFloat, y: CGFloat, label: String, font: NSUIFont, textColor: NSUIColor)\n    {\n        ChartUtils.drawText(context: context, text: label, point: CGPoint(x: x, y: y), align: .left, attributes: [NSAttributedString.Key.font: font, NSAttributedString.Key.foregroundColor: textColor])\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift",
    "content": "//\n//  LineChartRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nopen class LineChartRenderer: LineRadarRenderer\n{\n    // TODO: Currently, this nesting isn't necessary for LineCharts. However, it will make it much easier to add a custom rotor\n    // that navigates between datasets.\n    // NOTE: Unlike the other renderers, LineChartRenderer populates accessibleChartElements in drawCircles due to the nature of its drawing options.\n    /// A nested array of elements ordered logically (i.e not in visual/drawing order) for use with VoiceOver.\n    private lazy var accessibilityOrderedElements: [[NSUIAccessibilityElement]] = accessibilityCreateEmptyOrderedElements()\n\n    @objc open weak var dataProvider: LineChartDataProvider?\n    \n    @objc public init(dataProvider: LineChartDataProvider, animator: Animator, viewPortHandler: ViewPortHandler)\n    {\n        super.init(animator: animator, viewPortHandler: viewPortHandler)\n        \n        self.dataProvider = dataProvider\n    }\n    \n    open override func drawData(context: CGContext)\n    {\n        guard let lineData = dataProvider?.lineData else { return }\n        \n        for i in 0 ..< lineData.dataSetCount\n        {\n            guard let set = lineData.getDataSetByIndex(i) else { continue }\n            \n            if set.isVisible\n            {\n                if !(set is ILineChartDataSet)\n                {\n                    fatalError(\"Datasets for LineChartRenderer must conform to ILineChartDataSet\")\n                }\n                \n                drawDataSet(context: context, dataSet: set as! ILineChartDataSet)\n            }\n        }\n    }\n    \n    @objc open func drawDataSet(context: CGContext, dataSet: ILineChartDataSet)\n    {\n        if dataSet.entryCount < 1\n        {\n            return\n        }\n        \n        context.saveGState()\n        \n        context.setLineWidth(dataSet.lineWidth)\n        if dataSet.lineDashLengths != nil\n        {\n            context.setLineDash(phase: dataSet.lineDashPhase, lengths: dataSet.lineDashLengths!)\n        }\n        else\n        {\n            context.setLineDash(phase: 0.0, lengths: [])\n        }\n        \n        context.setLineCap(dataSet.lineCapType)\n        \n        // if drawing cubic lines is enabled\n        switch dataSet.mode\n        {\n        case .linear: fallthrough\n        case .stepped:\n            drawLinear(context: context, dataSet: dataSet)\n            \n        case .cubicBezier:\n            drawCubicBezier(context: context, dataSet: dataSet)\n            \n        case .horizontalBezier:\n            drawHorizontalBezier(context: context, dataSet: dataSet)\n        }\n        \n        context.restoreGState()\n    }\n    \n    @objc open func drawCubicBezier(context: CGContext, dataSet: ILineChartDataSet)\n    {\n        guard let dataProvider = dataProvider else { return }\n        \n        let trans = dataProvider.getTransformer(forAxis: dataSet.axisDependency)\n        \n        let phaseY = animator.phaseY\n        \n        _xBounds.set(chart: dataProvider, dataSet: dataSet, animator: animator)\n        \n        // get the color that is specified for this position from the DataSet\n        let drawingColor = dataSet.colors.first!\n        \n        let intensity = dataSet.cubicIntensity\n        \n        // the path for the cubic-spline\n        let cubicPath = CGMutablePath()\n        \n        let valueToPixelMatrix = trans.valueToPixelMatrix\n        \n        if _xBounds.range >= 1\n        {\n            var prevDx: CGFloat = 0.0\n            var prevDy: CGFloat = 0.0\n            var curDx: CGFloat = 0.0\n            var curDy: CGFloat = 0.0\n            \n            // Take an extra point from the left, and an extra from the right.\n            // That's because we need 4 points for a cubic bezier (cubic=4), otherwise we get lines moving and doing weird stuff on the edges of the chart.\n            // So in the starting `prev` and `cur`, go -2, -1\n            \n            let firstIndex = _xBounds.min + 1\n            \n            var prevPrev: ChartDataEntry! = nil\n            var prev: ChartDataEntry! = dataSet.entryForIndex(max(firstIndex - 2, 0))\n            var cur: ChartDataEntry! = dataSet.entryForIndex(max(firstIndex - 1, 0))\n            var next: ChartDataEntry! = cur\n            var nextIndex: Int = -1\n            \n            if cur == nil { return }\n            \n            // let the spline start\n            cubicPath.move(to: CGPoint(x: CGFloat(cur.x), y: CGFloat(cur.y * phaseY)), transform: valueToPixelMatrix)\n            \n            for j in _xBounds.dropFirst()  // same as firstIndex\n            {\n                prevPrev = prev\n                prev = cur\n                cur = nextIndex == j ? next : dataSet.entryForIndex(j)\n                \n                nextIndex = j + 1 < dataSet.entryCount ? j + 1 : j\n                next = dataSet.entryForIndex(nextIndex)\n                \n                if next == nil { break }\n                \n                prevDx = CGFloat(cur.x - prevPrev.x) * intensity\n                prevDy = CGFloat(cur.y - prevPrev.y) * intensity\n                curDx = CGFloat(next.x - prev.x) * intensity\n                curDy = CGFloat(next.y - prev.y) * intensity\n                \n                cubicPath.addCurve(\n                    to: CGPoint(\n                        x: CGFloat(cur.x),\n                        y: CGFloat(cur.y) * CGFloat(phaseY)),\n                    control1: CGPoint(\n                        x: CGFloat(prev.x) + prevDx,\n                        y: (CGFloat(prev.y) + prevDy) * CGFloat(phaseY)),\n                    control2: CGPoint(\n                        x: CGFloat(cur.x) - curDx,\n                        y: (CGFloat(cur.y) - curDy) * CGFloat(phaseY)),\n                    transform: valueToPixelMatrix)\n            }\n        }\n        \n        context.saveGState()\n        \n        if dataSet.isDrawFilledEnabled\n        {\n            // Copy this path because we make changes to it\n            let fillPath = cubicPath.mutableCopy()\n            \n            drawCubicFill(context: context, dataSet: dataSet, spline: fillPath!, matrix: valueToPixelMatrix, bounds: _xBounds)\n        }\n        \n        context.beginPath()\n        context.addPath(cubicPath)\n        context.setStrokeColor(drawingColor.cgColor)\n        context.strokePath()\n        \n        context.restoreGState()\n    }\n    \n    @objc open func drawHorizontalBezier(context: CGContext, dataSet: ILineChartDataSet)\n    {\n        guard let dataProvider = dataProvider else { return }\n        \n        let trans = dataProvider.getTransformer(forAxis: dataSet.axisDependency)\n        \n        let phaseY = animator.phaseY\n        \n        _xBounds.set(chart: dataProvider, dataSet: dataSet, animator: animator)\n        \n        // get the color that is specified for this position from the DataSet\n        let drawingColor = dataSet.colors.first!\n        \n        // the path for the cubic-spline\n        let cubicPath = CGMutablePath()\n        \n        let valueToPixelMatrix = trans.valueToPixelMatrix\n        \n        if _xBounds.range >= 1\n        {\n            var prev: ChartDataEntry! = dataSet.entryForIndex(_xBounds.min)\n            var cur: ChartDataEntry! = prev\n            \n            if cur == nil { return }\n            \n            // let the spline start\n            cubicPath.move(to: CGPoint(x: CGFloat(cur.x), y: CGFloat(cur.y * phaseY)), transform: valueToPixelMatrix)\n            \n            for j in _xBounds.dropFirst()\n            {\n                prev = cur\n                cur = dataSet.entryForIndex(j)\n                \n                let cpx = CGFloat(prev.x + (cur.x - prev.x) / 2.0)\n                \n                cubicPath.addCurve(\n                    to: CGPoint(\n                        x: CGFloat(cur.x),\n                        y: CGFloat(cur.y * phaseY)),\n                    control1: CGPoint(\n                        x: cpx,\n                        y: CGFloat(prev.y * phaseY)),\n                    control2: CGPoint(\n                        x: cpx,\n                        y: CGFloat(cur.y * phaseY)),\n                    transform: valueToPixelMatrix)\n            }\n        }\n        \n        context.saveGState()\n        \n        if dataSet.isDrawFilledEnabled\n        {\n            // Copy this path because we make changes to it\n            let fillPath = cubicPath.mutableCopy()\n            \n            drawCubicFill(context: context, dataSet: dataSet, spline: fillPath!, matrix: valueToPixelMatrix, bounds: _xBounds)\n        }\n        \n        context.beginPath()\n        context.addPath(cubicPath)\n        context.setStrokeColor(drawingColor.cgColor)\n        context.strokePath()\n        \n        context.restoreGState()\n    }\n    \n    open func drawCubicFill(\n        context: CGContext,\n                dataSet: ILineChartDataSet,\n                spline: CGMutablePath,\n                matrix: CGAffineTransform,\n                bounds: XBounds)\n    {\n        guard\n            let dataProvider = dataProvider\n            else { return }\n        \n        if bounds.range <= 0\n        {\n            return\n        }\n        \n        let fillMin = dataSet.fillFormatter?.getFillLinePosition(dataSet: dataSet, dataProvider: dataProvider) ?? 0.0\n\n        var pt1 = CGPoint(x: CGFloat(dataSet.entryForIndex(bounds.min + bounds.range)?.x ?? 0.0), y: fillMin)\n        var pt2 = CGPoint(x: CGFloat(dataSet.entryForIndex(bounds.min)?.x ?? 0.0), y: fillMin)\n        pt1 = pt1.applying(matrix)\n        pt2 = pt2.applying(matrix)\n        \n        spline.addLine(to: pt1)\n        spline.addLine(to: pt2)\n        spline.closeSubpath()\n        \n        if dataSet.fill != nil\n        {\n            drawFilledPath(context: context, path: spline, fill: dataSet.fill!, fillAlpha: dataSet.fillAlpha)\n        }\n        else\n        {\n            drawFilledPath(context: context, path: spline, fillColor: dataSet.fillColor, fillAlpha: dataSet.fillAlpha)\n        }\n    }\n    \n    private var _lineSegments = [CGPoint](repeating: CGPoint(), count: 2)\n    \n    @objc open func drawLinear(context: CGContext, dataSet: ILineChartDataSet)\n    {\n        guard let dataProvider = dataProvider else { return }\n        \n        let trans = dataProvider.getTransformer(forAxis: dataSet.axisDependency)\n        \n        let valueToPixelMatrix = trans.valueToPixelMatrix\n        \n        let entryCount = dataSet.entryCount\n        let isDrawSteppedEnabled = dataSet.mode == .stepped\n        let pointsPerEntryPair = isDrawSteppedEnabled ? 4 : 2\n        \n        let phaseY = animator.phaseY\n        \n        _xBounds.set(chart: dataProvider, dataSet: dataSet, animator: animator)\n        \n        // if drawing filled is enabled\n        if dataSet.isDrawFilledEnabled && entryCount > 0\n        {\n            drawLinearFill(context: context, dataSet: dataSet, trans: trans, bounds: _xBounds)\n        }\n        \n        context.saveGState()\n\n            if _lineSegments.count != pointsPerEntryPair\n            {\n                // Allocate once in correct size\n                _lineSegments = [CGPoint](repeating: CGPoint(), count: pointsPerEntryPair)\n            }\n\n        for j in _xBounds.dropLast()\n        {\n            var e: ChartDataEntry! = dataSet.entryForIndex(j)\n            \n            if e == nil { continue }\n            \n            _lineSegments[0].x = CGFloat(e.x)\n            _lineSegments[0].y = CGFloat(e.y * phaseY)\n            \n            if j < _xBounds.max\n            {\n                // TODO: remove the check.\n                // With the new XBounds iterator, j is always smaller than _xBounds.max\n                // Keeping this check for a while, if xBounds have no further breaking changes, it should be safe to remove the check\n                e = dataSet.entryForIndex(j + 1)\n                \n                if e == nil { break }\n                \n                if isDrawSteppedEnabled\n                {\n                    _lineSegments[1] = CGPoint(x: CGFloat(e.x), y: _lineSegments[0].y)\n                    _lineSegments[2] = _lineSegments[1]\n                    _lineSegments[3] = CGPoint(x: CGFloat(e.x), y: CGFloat(e.y * phaseY))\n                }\n                else\n                {\n                    _lineSegments[1] = CGPoint(x: CGFloat(e.x), y: CGFloat(e.y * phaseY))\n                }\n            }\n            else\n            {\n                _lineSegments[1] = _lineSegments[0]\n            }\n\n            for i in 0..<_lineSegments.count\n            {\n                _lineSegments[i] = _lineSegments[i].applying(valueToPixelMatrix)\n            }\n            \n            if !viewPortHandler.isInBoundsRight(_lineSegments[0].x)\n            {\n                break\n            }\n            \n            // Determine the start and end coordinates of the line, and make sure they differ.\n            guard\n                let firstCoordinate = _lineSegments.first,\n                let lastCoordinate = _lineSegments.last,\n                firstCoordinate != lastCoordinate else { continue }\n            \n            // make sure the lines don't do shitty things outside bounds\n            if !viewPortHandler.isInBoundsLeft(lastCoordinate.x) ||\n                !viewPortHandler.isInBoundsTop(max(firstCoordinate.y, lastCoordinate.y)) ||\n                !viewPortHandler.isInBoundsBottom(min(firstCoordinate.y, lastCoordinate.y))\n            {\n                continue\n            }\n            \n            // get the color that is set for this line-segment\n            context.setStrokeColor(dataSet.color(atIndex: j).cgColor)\n            context.strokeLineSegments(between: _lineSegments)\n        }\n        \n        context.restoreGState()\n    }\n    \n    open func drawLinearFill(context: CGContext, dataSet: ILineChartDataSet, trans: Transformer, bounds: XBounds)\n    {\n        guard let dataProvider = dataProvider else { return }\n        \n        let filled = generateFilledPath(\n            dataSet: dataSet,\n            fillMin: dataSet.fillFormatter?.getFillLinePosition(dataSet: dataSet, dataProvider: dataProvider) ?? 0.0,\n            bounds: bounds,\n            matrix: trans.valueToPixelMatrix)\n        \n        if dataSet.fill != nil\n        {\n            drawFilledPath(context: context, path: filled, fill: dataSet.fill!, fillAlpha: dataSet.fillAlpha)\n        }\n        else\n        {\n            drawFilledPath(context: context, path: filled, fillColor: dataSet.fillColor, fillAlpha: dataSet.fillAlpha)\n        }\n    }\n    \n    /// Generates the path that is used for filled drawing.\n    private func generateFilledPath(dataSet: ILineChartDataSet, fillMin: CGFloat, bounds: XBounds, matrix: CGAffineTransform) -> CGPath\n    {\n        let phaseY = animator.phaseY\n        let isDrawSteppedEnabled = dataSet.mode == .stepped\n        let matrix = matrix\n        \n        var e: ChartDataEntry!\n        \n        let filled = CGMutablePath()\n        \n        e = dataSet.entryForIndex(bounds.min)\n        if e != nil\n        {\n            filled.move(to: CGPoint(x: CGFloat(e.x), y: fillMin), transform: matrix)\n            filled.addLine(to: CGPoint(x: CGFloat(e.x), y: CGFloat(e.y * phaseY)), transform: matrix)\n        }\n        \n        // create a new path\n        for x in stride(from: (bounds.min + 1), through: bounds.range + bounds.min, by: 1)\n        {\n            guard let e = dataSet.entryForIndex(x) else { continue }\n            \n            if isDrawSteppedEnabled\n            {\n                guard let ePrev = dataSet.entryForIndex(x-1) else { continue }\n                filled.addLine(to: CGPoint(x: CGFloat(e.x), y: CGFloat(ePrev.y * phaseY)), transform: matrix)\n            }\n            \n            filled.addLine(to: CGPoint(x: CGFloat(e.x), y: CGFloat(e.y * phaseY)), transform: matrix)\n        }\n        \n        // close up\n        e = dataSet.entryForIndex(bounds.range + bounds.min)\n        if e != nil\n        {\n            filled.addLine(to: CGPoint(x: CGFloat(e.x), y: fillMin), transform: matrix)\n        }\n        filled.closeSubpath()\n        \n        return filled\n    }\n    \n    open override func drawValues(context: CGContext)\n    {\n        guard\n            let dataProvider = dataProvider,\n            let lineData = dataProvider.lineData\n            else { return }\n\n        if isDrawingValuesAllowed(dataProvider: dataProvider)\n        {\n            let dataSets = lineData.dataSets\n            \n            let phaseY = animator.phaseY\n            \n            var pt = CGPoint()\n            \n            for i in 0 ..< dataSets.count\n            {\n                guard let\n                    dataSet = dataSets[i] as? ILineChartDataSet,\n                    shouldDrawValues(forDataSet: dataSet)\n                    else { continue }\n                \n                let valueFont = dataSet.valueFont\n                \n                guard let formatter = dataSet.valueFormatter else { continue }\n                \n                let trans = dataProvider.getTransformer(forAxis: dataSet.axisDependency)\n                let valueToPixelMatrix = trans.valueToPixelMatrix\n                \n                let iconsOffset = dataSet.iconsOffset\n                \n                // make sure the values do not interfear with the circles\n                var valOffset = Int(dataSet.circleRadius * 1.75)\n                \n                if !dataSet.isDrawCirclesEnabled\n                {\n                    valOffset = valOffset / 2\n                }\n                \n                _xBounds.set(chart: dataProvider, dataSet: dataSet, animator: animator)\n\n                for j in _xBounds\n                {\n                    guard let e = dataSet.entryForIndex(j) else { break }\n                    \n                    pt.x = CGFloat(e.x)\n                    pt.y = CGFloat(e.y * phaseY)\n                    pt = pt.applying(valueToPixelMatrix)\n                    \n                    if (!viewPortHandler.isInBoundsRight(pt.x))\n                    {\n                        break\n                    }\n                    \n                    if (!viewPortHandler.isInBoundsLeft(pt.x) || !viewPortHandler.isInBoundsY(pt.y))\n                    {\n                        continue\n                    }\n                    \n                    if dataSet.isDrawValuesEnabled {\n                        ChartUtils.drawText(\n                            context: context,\n                            text: formatter.stringForValue(\n                                e.y,\n                                entry: e,\n                                dataSetIndex: i,\n                                viewPortHandler: viewPortHandler),\n                            point: CGPoint(\n                                x: pt.x,\n                                y: pt.y - CGFloat(valOffset) - valueFont.lineHeight),\n                            align: .center,\n                            attributes: [NSAttributedString.Key.font: valueFont, NSAttributedString.Key.foregroundColor: dataSet.valueTextColorAt(j)])\n                    }\n                    \n                    if let icon = e.icon, dataSet.isDrawIconsEnabled\n                    {\n                        ChartUtils.drawImage(context: context,\n                                             image: icon,\n                                             x: pt.x + iconsOffset.x,\n                                             y: pt.y + iconsOffset.y,\n                                             size: icon.size)\n                    }\n                }\n            }\n        }\n    }\n    \n    open override func drawExtras(context: CGContext)\n    {\n        drawCircles(context: context)\n    }\n    \n    private func drawCircles(context: CGContext)\n    {\n        guard\n            let dataProvider = dataProvider,\n            let lineData = dataProvider.lineData\n            else { return }\n        \n        let phaseY = animator.phaseY\n\n        let dataSets = lineData.dataSets\n        \n        var pt = CGPoint()\n        var rect = CGRect()\n        \n        // If we redraw the data, remove and repopulate accessible elements to update label values and frames\n        accessibleChartElements.removeAll()\n        accessibilityOrderedElements = accessibilityCreateEmptyOrderedElements()\n\n        // Make the chart header the first element in the accessible elements array\n        if let chart = dataProvider as? LineChartView {\n            let element = createAccessibleHeader(usingChart: chart,\n                                                 andData: lineData,\n                                                 withDefaultDescription: \"Line Chart\")\n            accessibleChartElements.append(element)\n        }\n\n        context.saveGState()\n\n        for i in 0 ..< dataSets.count\n        {\n            guard let dataSet = lineData.getDataSetByIndex(i) as? ILineChartDataSet else { continue }\n            \n            if !dataSet.isVisible || dataSet.entryCount == 0\n            {\n                continue\n            }\n            \n            let trans = dataProvider.getTransformer(forAxis: dataSet.axisDependency)\n            let valueToPixelMatrix = trans.valueToPixelMatrix\n            \n            _xBounds.set(chart: dataProvider, dataSet: dataSet, animator: animator)\n            \n            let circleRadius = dataSet.circleRadius\n            let circleDiameter = circleRadius * 2.0\n            let circleHoleRadius = dataSet.circleHoleRadius\n            let circleHoleDiameter = circleHoleRadius * 2.0\n            \n            let drawCircleHole = dataSet.isDrawCircleHoleEnabled &&\n                circleHoleRadius < circleRadius &&\n                circleHoleRadius > 0.0\n            let drawTransparentCircleHole = drawCircleHole &&\n                (dataSet.circleHoleColor == nil ||\n                    dataSet.circleHoleColor == NSUIColor.clear)\n            \n            for j in _xBounds\n            {\n                guard let e = dataSet.entryForIndex(j) else { break }\n\n                pt.x = CGFloat(e.x)\n                pt.y = CGFloat(e.y * phaseY)\n                pt = pt.applying(valueToPixelMatrix)\n                \n                if (!viewPortHandler.isInBoundsRight(pt.x))\n                {\n                    break\n                }\n                \n                // make sure the circles don't do shitty things outside bounds\n                if (!viewPortHandler.isInBoundsLeft(pt.x) || !viewPortHandler.isInBoundsY(pt.y))\n                {\n                    continue\n                }\n                \n                \n                // Skip Circles and Accessibility if not enabled,\n                // reduces CPU significantly if not needed\n                if !dataSet.isDrawCirclesEnabled\n                {\n                    continue\n                }\n                \n                // Accessibility element geometry\n                let scaleFactor: CGFloat = 3\n                let accessibilityRect = CGRect(x: pt.x - (scaleFactor * circleRadius),\n                                               y: pt.y - (scaleFactor * circleRadius),\n                                               width: scaleFactor * circleDiameter,\n                                               height: scaleFactor * circleDiameter)\n                // Create and append the corresponding accessibility element to accessibilityOrderedElements\n                if let chart = dataProvider as? LineChartView\n                {\n                    let element = createAccessibleElement(withIndex: j,\n                                                          container: chart,\n                                                          dataSet: dataSet,\n                                                          dataSetIndex: i)\n                    { (element) in\n                        element.accessibilityFrame = accessibilityRect\n                    }\n\n                    accessibilityOrderedElements[i].append(element)\n                }\n\n                context.setFillColor(dataSet.getCircleColor(atIndex: j)!.cgColor)\n\n                rect.origin.x = pt.x - circleRadius\n                rect.origin.y = pt.y - circleRadius\n                rect.size.width = circleDiameter\n                rect.size.height = circleDiameter\n\n                if drawTransparentCircleHole\n                {\n                    // Begin path for circle with hole\n                    context.beginPath()\n                    context.addEllipse(in: rect)\n                    \n                    // Cut hole in path\n                    rect.origin.x = pt.x - circleHoleRadius\n                    rect.origin.y = pt.y - circleHoleRadius\n                    rect.size.width = circleHoleDiameter\n                    rect.size.height = circleHoleDiameter\n                    context.addEllipse(in: rect)\n                    \n                    // Fill in-between\n                    context.fillPath(using: .evenOdd)\n                }\n                else\n                {\n                    context.fillEllipse(in: rect)\n                    \n                    if drawCircleHole\n                    {\n                        context.setFillColor(dataSet.circleHoleColor!.cgColor)\n                     \n                        // The hole rect\n                        rect.origin.x = pt.x - circleHoleRadius\n                        rect.origin.y = pt.y - circleHoleRadius\n                        rect.size.width = circleHoleDiameter\n                        rect.size.height = circleHoleDiameter\n                        \n                        context.fillEllipse(in: rect)\n                    }\n                }\n            }\n        }\n        \n        context.restoreGState()\n\n        // Merge nested ordered arrays into the single accessibleChartElements.\n        accessibleChartElements.append(contentsOf: accessibilityOrderedElements.flatMap { $0 } )\n        accessibilityPostLayoutChangedNotification()\n    }\n    \n    open override func drawHighlighted(context: CGContext, indices: [Highlight])\n    {\n        guard\n            let dataProvider = dataProvider,\n            let lineData = dataProvider.lineData\n            else { return }\n        \n        let chartXMax = dataProvider.chartXMax\n        \n        context.saveGState()\n        \n        for high in indices\n        {\n            guard let set = lineData.getDataSetByIndex(high.dataSetIndex) as? ILineChartDataSet\n                , set.isHighlightEnabled\n                else { continue }\n            \n            guard let e = set.entryForXValue(high.x, closestToY: high.y) else { continue }\n            \n            if !isInBoundsX(entry: e, dataSet: set)\n            {\n                continue\n            }\n        \n            context.setStrokeColor(set.highlightColor.cgColor)\n            context.setLineWidth(set.highlightLineWidth)\n            if set.highlightLineDashLengths != nil\n            {\n                context.setLineDash(phase: set.highlightLineDashPhase, lengths: set.highlightLineDashLengths!)\n            }\n            else\n            {\n                context.setLineDash(phase: 0.0, lengths: [])\n            }\n            \n            let x = e.x // get the x-position\n            let y = e.y * Double(animator.phaseY)\n            \n            if x > chartXMax * animator.phaseX\n            {\n                continue\n            }\n            \n            let trans = dataProvider.getTransformer(forAxis: set.axisDependency)\n            \n            let pt = trans.pixelForValues(x: x, y: y)\n            \n            high.setDraw(pt: pt)\n            \n            // draw the lines\n            drawHighlightLines(context: context, point: pt, set: set)\n        }\n        \n        context.restoreGState()\n    }\n\n    /// Creates a nested array of empty subarrays each of which will be populated with NSUIAccessibilityElements.\n    /// This is marked internal to support HorizontalBarChartRenderer as well.\n    private func accessibilityCreateEmptyOrderedElements() -> [[NSUIAccessibilityElement]]\n    {\n        guard let chart = dataProvider as? LineChartView else { return [] }\n\n        let dataSetCount = chart.lineData?.dataSetCount ?? 0\n\n        return Array(repeating: [NSUIAccessibilityElement](),\n                     count: dataSetCount)\n    }\n\n    /// Creates an NSUIAccessibleElement representing the smallest meaningful bar of the chart\n    /// i.e. in case of a stacked chart, this returns each stack, not the combined bar.\n    /// Note that it is marked internal to support subclass modification in the HorizontalBarChart.\n    private func createAccessibleElement(withIndex idx: Int,\n                                          container: LineChartView,\n                                          dataSet: ILineChartDataSet,\n                                          dataSetIndex: Int,\n                                          modifier: (NSUIAccessibilityElement) -> ()) -> NSUIAccessibilityElement\n    {\n        let element = NSUIAccessibilityElement(accessibilityContainer: container)\n        let xAxis = container.xAxis\n\n        guard let e = dataSet.entryForIndex(idx) else { return element }\n        guard let dataProvider = dataProvider else { return element }\n\n        // NOTE: The formatter can cause issues when the x-axis labels are consecutive ints.\n        // i.e. due to the Double conversion, if there are more than one data set that are grouped,\n        // there is the possibility of some labels being rounded up. A floor() might fix this, but seems to be a brute force solution.\n        let label = xAxis.valueFormatter?.stringForValue(e.x, axis: xAxis) ?? \"\\(e.x)\"\n\n        let elementValueText = dataSet.valueFormatter?.stringForValue(e.y,\n                                                                      entry: e,\n                                                                      dataSetIndex: dataSetIndex,\n                                                                      viewPortHandler: viewPortHandler) ?? \"\\(e.y)\"\n\n        let dataSetCount = dataProvider.lineData?.dataSetCount ?? -1\n        let doesContainMultipleDataSets = dataSetCount > 1\n\n        element.accessibilityLabel = \"\\(doesContainMultipleDataSets ? (dataSet.label ?? \"\")  + \", \" : \"\") \\(label): \\(elementValueText)\"\n\n        modifier(element)\n\n        return element\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift",
    "content": "//\n//  LineRadarRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(LineRadarChartRenderer)\nopen class LineRadarRenderer: LineScatterCandleRadarRenderer\n{\n    public override init(animator: Animator, viewPortHandler: ViewPortHandler)\n    {\n        super.init(animator: animator, viewPortHandler: viewPortHandler)\n    }\n    \n    /// Draws the provided path in filled mode with the provided drawable.\n    @objc open func drawFilledPath(context: CGContext, path: CGPath, fill: Fill, fillAlpha: CGFloat)\n    {\n        \n        context.saveGState()\n        context.beginPath()\n        context.addPath(path)\n        \n        // filled is usually drawn with less alpha\n        context.setAlpha(fillAlpha)\n        \n        fill.fillPath(context: context, rect: viewPortHandler.contentRect)\n        \n        context.restoreGState()\n    }\n    \n    /// Draws the provided path in filled mode with the provided color and alpha.\n    @objc open func drawFilledPath(context: CGContext, path: CGPath, fillColor: NSUIColor, fillAlpha: CGFloat)\n    {\n        context.saveGState()\n        context.beginPath()\n        context.addPath(path)\n        \n        // filled is usually drawn with less alpha\n        context.setAlpha(fillAlpha)\n        \n        context.setFillColor(fillColor.cgColor)\n        context.fillPath()\n        \n        context.restoreGState()\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift",
    "content": "//\n//  LineScatterCandleRadarRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(LineScatterCandleRadarChartRenderer)\nopen class LineScatterCandleRadarRenderer: BarLineScatterCandleBubbleRenderer\n{\n    public override init(animator: Animator, viewPortHandler: ViewPortHandler)\n    {\n        super.init(animator: animator, viewPortHandler: viewPortHandler)\n    }\n    \n    /// Draws vertical & horizontal highlight-lines if enabled.\n    /// :param: context\n    /// :param: points\n    /// :param: horizontal\n    /// :param: vertical\n    @objc open func drawHighlightLines(context: CGContext, point: CGPoint, set: ILineScatterCandleRadarChartDataSet)\n    {\n        \n        // draw vertical highlight lines\n        if set.isVerticalHighlightIndicatorEnabled\n        {\n            context.beginPath()\n            context.move(to: CGPoint(x: point.x, y: viewPortHandler.contentTop))\n            context.addLine(to: CGPoint(x: point.x, y: viewPortHandler.contentBottom))\n            context.strokePath()\n        }\n        \n        // draw horizontal highlight lines\n        if set.isHorizontalHighlightIndicatorEnabled\n        {\n            context.beginPath()\n            context.move(to: CGPoint(x: viewPortHandler.contentLeft, y: point.y))\n            context.addLine(to: CGPoint(x: viewPortHandler.contentRight, y: point.y))\n            context.strokePath()\n        }\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift",
    "content": "//\n//  PieChartRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n#if canImport(UIKit)\n    import UIKit\n#endif\n\n#if canImport(Cocoa)\nimport Cocoa\n#endif\n\nopen class PieChartRenderer: DataRenderer\n{\n    @objc open weak var chart: PieChartView?\n\n    @objc public init(chart: PieChartView, animator: Animator, viewPortHandler: ViewPortHandler)\n    {\n        super.init(animator: animator, viewPortHandler: viewPortHandler)\n\n        self.chart = chart\n    }\n\n    open override func drawData(context: CGContext)\n    {\n        guard let chart = chart else { return }\n\n        let pieData = chart.data\n\n        if pieData != nil\n        {\n            // If we redraw the data, remove and repopulate accessible elements to update label values and frames\n            accessibleChartElements.removeAll()\n\n            for set in pieData!.dataSets as! [IPieChartDataSet]\n                where set.isVisible && set.entryCount > 0\n            {\n                drawDataSet(context: context, dataSet: set)\n            }\n        }\n    }\n\n    @objc open func calculateMinimumRadiusForSpacedSlice(\n        center: CGPoint,\n        radius: CGFloat,\n        angle: CGFloat,\n        arcStartPointX: CGFloat,\n        arcStartPointY: CGFloat,\n        startAngle: CGFloat,\n        sweepAngle: CGFloat) -> CGFloat\n    {\n        let angleMiddle = startAngle + sweepAngle / 2.0\n\n        // Other point of the arc\n        let arcEndPointX = center.x + radius * cos((startAngle + sweepAngle).DEG2RAD)\n        let arcEndPointY = center.y + radius * sin((startAngle + sweepAngle).DEG2RAD)\n\n        // Middle point on the arc\n        let arcMidPointX = center.x + radius * cos(angleMiddle.DEG2RAD)\n        let arcMidPointY = center.y + radius * sin(angleMiddle.DEG2RAD)\n\n        // This is the base of the contained triangle\n        let basePointsDistance = sqrt(\n            pow(arcEndPointX - arcStartPointX, 2) +\n                pow(arcEndPointY - arcStartPointY, 2))\n\n        // After reducing space from both sides of the \"slice\",\n        //   the angle of the contained triangle should stay the same.\n        // So let's find out the height of that triangle.\n        let containedTriangleHeight = (basePointsDistance / 2.0 *\n            tan((180.0 - angle).DEG2RAD / 2.0))\n\n        // Now we subtract that from the radius\n        var spacedRadius = radius - containedTriangleHeight\n\n        // And now subtract the height of the arc that's between the triangle and the outer circle\n        spacedRadius -= sqrt(\n            pow(arcMidPointX - (arcEndPointX + arcStartPointX) / 2.0, 2) +\n                pow(arcMidPointY - (arcEndPointY + arcStartPointY) / 2.0, 2))\n\n        return spacedRadius\n    }\n\n    /// Calculates the sliceSpace to use based on visible values and their size compared to the set sliceSpace.\n    @objc open func getSliceSpace(dataSet: IPieChartDataSet) -> CGFloat\n    {\n        guard\n            dataSet.automaticallyDisableSliceSpacing,\n            let data = chart?.data as? PieChartData\n            else { return dataSet.sliceSpace }\n\n        let spaceSizeRatio = dataSet.sliceSpace / min(viewPortHandler.contentWidth, viewPortHandler.contentHeight)\n        let minValueRatio = dataSet.yMin / data.yValueSum * 2.0\n\n        let sliceSpace = spaceSizeRatio > CGFloat(minValueRatio)\n            ? 0.0\n            : dataSet.sliceSpace\n\n        return sliceSpace\n    }\n\n    @objc open func drawDataSet(context: CGContext, dataSet: IPieChartDataSet)\n    {\n        guard let chart = chart else {return }\n\n        var angle: CGFloat = 0.0\n        let rotationAngle = chart.rotationAngle\n\n        let phaseX = animator.phaseX\n        let phaseY = animator.phaseY\n\n        let entryCount = dataSet.entryCount\n        let drawAngles = chart.drawAngles\n        let center = chart.centerCircleBox\n        let radius = chart.radius\n        let drawInnerArc = chart.drawHoleEnabled && !chart.drawSlicesUnderHoleEnabled\n        let userInnerRadius = drawInnerArc ? radius * chart.holeRadiusPercent : 0.0\n\n        var visibleAngleCount = 0\n        for j in 0 ..< entryCount\n        {\n            guard let e = dataSet.entryForIndex(j) else { continue }\n            if ((abs(e.y) > Double.ulpOfOne))\n            {\n                visibleAngleCount += 1\n            }\n        }\n\n        let sliceSpace = visibleAngleCount <= 1 ? 0.0 : getSliceSpace(dataSet: dataSet)\n\n        context.saveGState()\n\n        // Make the chart header the first element in the accessible elements array\n        // We can do this in drawDataSet, since we know PieChartView can have only 1 dataSet\n        // Also since there's only 1 dataset, we don't use the typical createAccessibleHeader() here.\n        // NOTE: - Since we want to summarize the total count of slices/portions/elements, use a default string here\n        // This is unlike when we are naming individual slices, wherein it's alright to not use a prefix as descriptor.\n        // i.e. We want to VO to say \"3 Elements\" even if the developer didn't specify an accessibility prefix\n        // If prefix is unspecified it is safe to assume they did not want to use \"Element 1\", so that uses a default empty string\n        let prefix: String = chart.data?.accessibilityEntryLabelPrefix ?? \"Element\"\n        let description = chart.chartDescription?.text ?? dataSet.label ?? chart.centerText ??  \"Pie Chart\"\n\n        let\n        element = NSUIAccessibilityElement(accessibilityContainer: chart)\n        element.accessibilityLabel = description + \". \\(entryCount) \\(prefix + (entryCount == 1 ? \"\" : \"s\"))\"\n        element.accessibilityFrame = chart.bounds\n        element.isHeader = true\n        accessibleChartElements.append(element)\n\n        for j in 0 ..< entryCount\n        {\n            let sliceAngle = drawAngles[j]\n            var innerRadius = userInnerRadius\n\n            guard let e = dataSet.entryForIndex(j) else { continue }\n            \n            defer\n            {\n                // From here on, even when skipping (i.e for highlight),\n                //  increase the angle\n                angle += sliceAngle * CGFloat(phaseX)\n            }\n\n            // draw only if the value is greater than zero\n            if abs(e.y) < Double.ulpOfOne { continue }\n            \n            // Skip if highlighted\n            if dataSet.isHighlightEnabled && chart.needsHighlight(index: j)\n            {\n                continue\n            }\n        \n            let accountForSliceSpacing = sliceSpace > 0.0 && sliceAngle <= 180.0\n\n            context.setFillColor(dataSet.color(atIndex: j).cgColor)\n\n            let sliceSpaceAngleOuter = visibleAngleCount == 1 ?\n                0.0 :\n                sliceSpace / radius.DEG2RAD\n            let startAngleOuter = rotationAngle + (angle + sliceSpaceAngleOuter / 2.0) * CGFloat(phaseY)\n            var sweepAngleOuter = (sliceAngle - sliceSpaceAngleOuter) * CGFloat(phaseY)\n            if sweepAngleOuter < 0.0\n            {\n                sweepAngleOuter = 0.0\n            }\n\n            let arcStartPointX = center.x + radius * cos(startAngleOuter.DEG2RAD)\n            let arcStartPointY = center.y + radius * sin(startAngleOuter.DEG2RAD)\n\n            let path = CGMutablePath()\n\n            path.move(to: CGPoint(x: arcStartPointX,\n                                  y: arcStartPointY))\n\n            path.addRelativeArc(center: center, radius: radius, startAngle: startAngleOuter.DEG2RAD, delta: sweepAngleOuter.DEG2RAD)\n\n            if drawInnerArc &&\n                (innerRadius > 0.0 || accountForSliceSpacing)\n            {\n                if accountForSliceSpacing\n                {\n                    var minSpacedRadius = calculateMinimumRadiusForSpacedSlice(\n                        center: center,\n                        radius: radius,\n                        angle: sliceAngle * CGFloat(phaseY),\n                        arcStartPointX: arcStartPointX,\n                        arcStartPointY: arcStartPointY,\n                        startAngle: startAngleOuter,\n                        sweepAngle: sweepAngleOuter)\n                    if minSpacedRadius < 0.0\n                    {\n                        minSpacedRadius = -minSpacedRadius\n                    }\n                    innerRadius = min(max(innerRadius, minSpacedRadius), radius)\n                }\n\n                let sliceSpaceAngleInner = visibleAngleCount == 1 || innerRadius == 0.0 ?\n                    0.0 :\n                    sliceSpace / innerRadius.DEG2RAD\n                let startAngleInner = rotationAngle + (angle + sliceSpaceAngleInner / 2.0) * CGFloat(phaseY)\n                var sweepAngleInner = (sliceAngle - sliceSpaceAngleInner) * CGFloat(phaseY)\n                if sweepAngleInner < 0.0\n                {\n                    sweepAngleInner = 0.0\n                }\n                let endAngleInner = startAngleInner + sweepAngleInner\n\n                path.addLine(\n                    to: CGPoint(\n                        x: center.x + innerRadius * cos(endAngleInner.DEG2RAD),\n                        y: center.y + innerRadius * sin(endAngleInner.DEG2RAD)))\n\n                path.addRelativeArc(center: center, radius: innerRadius, startAngle: endAngleInner.DEG2RAD, delta: -sweepAngleInner.DEG2RAD)\n            }\n            else\n            {\n                if accountForSliceSpacing\n                {\n                    let angleMiddle = startAngleOuter + sweepAngleOuter / 2.0\n\n                    let sliceSpaceOffset =\n                        calculateMinimumRadiusForSpacedSlice(\n                            center: center,\n                            radius: radius,\n                            angle: sliceAngle * CGFloat(phaseY),\n                            arcStartPointX: arcStartPointX,\n                            arcStartPointY: arcStartPointY,\n                            startAngle: startAngleOuter,\n                            sweepAngle: sweepAngleOuter)\n\n                    let arcEndPointX = center.x + sliceSpaceOffset * cos(angleMiddle.DEG2RAD)\n                    let arcEndPointY = center.y + sliceSpaceOffset * sin(angleMiddle.DEG2RAD)\n\n                    path.addLine(\n                        to: CGPoint(\n                            x: arcEndPointX,\n                            y: arcEndPointY))\n                }\n                else\n                {\n                    path.addLine(to: center)\n                }\n            }\n\n            path.closeSubpath()\n\n            context.beginPath()\n            context.addPath(path)\n            context.fillPath(using: .evenOdd)\n\n            let axElement = createAccessibleElement(withIndex: j,\n                                                    container: chart,\n                                                    dataSet: dataSet)\n            { (element) in\n                element.accessibilityFrame = path.boundingBoxOfPath\n            }\n\n            accessibleChartElements.append(axElement)\n        }\n\n        // Post this notification to let VoiceOver account for the redrawn frames\n        accessibilityPostLayoutChangedNotification()\n\n        context.restoreGState()\n    }\n\n    open override func drawValues(context: CGContext)\n    {\n        guard\n            let chart = chart,\n            let data = chart.data\n            else { return }\n\n        let center = chart.centerCircleBox\n\n        // get whole the radius\n        let radius = chart.radius\n        let rotationAngle = chart.rotationAngle\n        let drawAngles = chart.drawAngles\n        let absoluteAngles = chart.absoluteAngles\n\n        let phaseX = animator.phaseX\n        let phaseY = animator.phaseY\n\n        var labelRadiusOffset = radius / 10.0 * 3.0\n\n        if chart.drawHoleEnabled\n        {\n            labelRadiusOffset = (radius - (radius * chart.holeRadiusPercent)) / 2.0\n        }\n\n        let labelRadius = radius - labelRadiusOffset\n\n        let dataSets = data.dataSets\n\n        let yValueSum = (data as! PieChartData).yValueSum\n\n        let drawEntryLabels = chart.isDrawEntryLabelsEnabled\n        let usePercentValuesEnabled = chart.usePercentValuesEnabled\n\n        var angle: CGFloat = 0.0\n        var xIndex = 0\n\n        context.saveGState()\n        defer { context.restoreGState() }\n\n        for i in 0 ..< dataSets.count\n        {\n            guard let dataSet = dataSets[i] as? IPieChartDataSet else { continue }\n\n            let drawValues = dataSet.isDrawValuesEnabled\n\n            if !drawValues && !drawEntryLabels && !dataSet.isDrawIconsEnabled\n            {\n                continue\n            }\n\n            let iconsOffset = dataSet.iconsOffset\n\n            let xValuePosition = dataSet.xValuePosition\n            let yValuePosition = dataSet.yValuePosition\n\n            let valueFont = dataSet.valueFont\n            let entryLabelFont = dataSet.entryLabelFont ?? chart.entryLabelFont\n            let lineHeight = valueFont.lineHeight\n\n            guard let formatter = dataSet.valueFormatter else { continue }\n\n            for j in 0 ..< dataSet.entryCount\n            {\n                guard let e = dataSet.entryForIndex(j) else { continue }\n                let pe = e as? PieChartDataEntry\n\n                if xIndex == 0\n                {\n                    angle = 0.0\n                }\n                else\n                {\n                    angle = absoluteAngles[xIndex - 1] * CGFloat(phaseX)\n                }\n\n                let sliceAngle = drawAngles[xIndex]\n                let sliceSpace = getSliceSpace(dataSet: dataSet)\n                let sliceSpaceMiddleAngle = sliceSpace / labelRadius.DEG2RAD\n\n                // offset needed to center the drawn text in the slice\n                let angleOffset = (sliceAngle - sliceSpaceMiddleAngle / 2.0) / 2.0\n\n                angle = angle + angleOffset\n\n                let transformedAngle = rotationAngle + angle * CGFloat(phaseY)\n\n                let value = usePercentValuesEnabled ? e.y / yValueSum * 100.0 : e.y\n                let valueText = formatter.stringForValue(\n                    value,\n                    entry: e,\n                    dataSetIndex: i,\n                    viewPortHandler: viewPortHandler)\n\n                let sliceXBase = cos(transformedAngle.DEG2RAD)\n                let sliceYBase = sin(transformedAngle.DEG2RAD)\n\n                let drawXOutside = drawEntryLabels && xValuePosition == .outsideSlice\n                let drawYOutside = drawValues && yValuePosition == .outsideSlice\n                let drawXInside = drawEntryLabels && xValuePosition == .insideSlice\n                let drawYInside = drawValues && yValuePosition == .insideSlice\n\n                let valueTextColor = dataSet.valueTextColorAt(j)\n                let entryLabelColor = dataSet.entryLabelColor ?? chart.entryLabelColor\n\n                if drawXOutside || drawYOutside\n                {\n                    let valueLineLength1 = dataSet.valueLinePart1Length\n                    let valueLineLength2 = dataSet.valueLinePart2Length\n                    let valueLinePart1OffsetPercentage = dataSet.valueLinePart1OffsetPercentage\n\n                    var pt2: CGPoint\n                    var labelPoint: CGPoint\n                    var align: NSTextAlignment\n\n                    var line1Radius: CGFloat\n\n                    if chart.drawHoleEnabled\n                    {\n                        line1Radius = (radius - (radius * chart.holeRadiusPercent)) * valueLinePart1OffsetPercentage + (radius * chart.holeRadiusPercent)\n                    }\n                    else\n                    {\n                        line1Radius = radius * valueLinePart1OffsetPercentage\n                    }\n\n                    let polyline2Length = dataSet.valueLineVariableLength\n                        ? labelRadius * valueLineLength2 * abs(sin(transformedAngle.DEG2RAD))\n                        : labelRadius * valueLineLength2\n\n                    let pt0 = CGPoint(\n                        x: line1Radius * sliceXBase + center.x,\n                        y: line1Radius * sliceYBase + center.y)\n\n                    let pt1 = CGPoint(\n                        x: labelRadius * (1 + valueLineLength1) * sliceXBase + center.x,\n                        y: labelRadius * (1 + valueLineLength1) * sliceYBase + center.y)\n\n                    if transformedAngle.truncatingRemainder(dividingBy: 360.0) >= 90.0 && transformedAngle.truncatingRemainder(dividingBy: 360.0) <= 270.0\n                    {\n                        pt2 = CGPoint(x: pt1.x - polyline2Length, y: pt1.y)\n                        align = .right\n                        labelPoint = CGPoint(x: pt2.x - 5, y: pt2.y - lineHeight)\n                    }\n                    else\n                    {\n                        pt2 = CGPoint(x: pt1.x + polyline2Length, y: pt1.y)\n                        align = .left\n                        labelPoint = CGPoint(x: pt2.x + 5, y: pt2.y - lineHeight)\n                    }\n\n                    DrawLine: do\n                    {\n                        if dataSet.useValueColorForLine\n                        {\n                            context.setStrokeColor(dataSet.color(atIndex: j).cgColor)\n                        }\n                        else if let valueLineColor = dataSet.valueLineColor\n                        {\n                            context.setStrokeColor(valueLineColor.cgColor)\n                        }\n                        else\n                        {\n                            return\n                        }\n                        context.setLineWidth(dataSet.valueLineWidth)\n\n                        context.move(to: CGPoint(x: pt0.x, y: pt0.y))\n                        context.addLine(to: CGPoint(x: pt1.x, y: pt1.y))\n                        context.addLine(to: CGPoint(x: pt2.x, y: pt2.y))\n\n                        context.drawPath(using: CGPathDrawingMode.stroke)\n                    }\n                    \n                    if drawXOutside && drawYOutside\n                    {\n                        ChartUtils.drawText(\n                            context: context,\n                            text: valueText,\n                            point: labelPoint,\n                            align: align,\n                            attributes: [NSAttributedString.Key.font: valueFont, NSAttributedString.Key.foregroundColor: valueTextColor]\n                        )\n\n                        if j < data.entryCount && pe?.label != nil\n                        {\n                            ChartUtils.drawText(\n                                context: context,\n                                text: pe!.label!,\n                                point: CGPoint(x: labelPoint.x, y: labelPoint.y + lineHeight),\n                                align: align,\n                                attributes: [\n                                    NSAttributedString.Key.font: entryLabelFont ?? valueFont,\n                                    NSAttributedString.Key.foregroundColor: entryLabelColor ?? valueTextColor]\n                            )\n                        }\n                    }\n                    else if drawXOutside\n                    {\n                        if j < data.entryCount && pe?.label != nil\n                        {\n                            ChartUtils.drawText(\n                                context: context,\n                                text: pe!.label!,\n                                point: CGPoint(x: labelPoint.x, y: labelPoint.y + lineHeight / 2.0),\n                                align: align,\n                                attributes: [\n                                    NSAttributedString.Key.font: entryLabelFont ?? valueFont,\n                                    NSAttributedString.Key.foregroundColor: entryLabelColor ?? valueTextColor]\n                            )\n                        }\n                    }\n                    else if drawYOutside\n                    {\n                        ChartUtils.drawText(\n                            context: context,\n                            text: valueText,\n                            point: CGPoint(x: labelPoint.x, y: labelPoint.y + lineHeight / 2.0),\n                            align: align,\n                            attributes: [NSAttributedString.Key.font: valueFont, NSAttributedString.Key.foregroundColor: valueTextColor]\n                        )\n                    }\n                }\n\n                if drawXInside || drawYInside\n                {\n                    // calculate the text position\n                    let x = labelRadius * sliceXBase + center.x\n                    let y = labelRadius * sliceYBase + center.y - lineHeight\n\n                    if drawXInside && drawYInside\n                    {\n                        ChartUtils.drawText(\n                            context: context,\n                            text: valueText,\n                            point: CGPoint(x: x, y: y),\n                            align: .center,\n                            attributes: [NSAttributedString.Key.font: valueFont, NSAttributedString.Key.foregroundColor: valueTextColor]\n                        )\n\n                        if j < data.entryCount && pe?.label != nil\n                        {\n                            ChartUtils.drawText(\n                                context: context,\n                                text: pe!.label!,\n                                point: CGPoint(x: x, y: y + lineHeight),\n                                align: .center,\n                                attributes: [\n                                    NSAttributedString.Key.font: entryLabelFont ?? valueFont,\n                                    NSAttributedString.Key.foregroundColor: entryLabelColor ?? valueTextColor]\n                            )\n                        }\n                    }\n                    else if drawXInside\n                    {\n                        if j < data.entryCount && pe?.label != nil\n                        {\n                            ChartUtils.drawText(\n                                context: context,\n                                text: pe!.label!,\n                                point: CGPoint(x: x, y: y + lineHeight / 2.0),\n                                align: .center,\n                                attributes: [\n                                    NSAttributedString.Key.font: entryLabelFont ?? valueFont,\n                                    NSAttributedString.Key.foregroundColor: entryLabelColor ?? valueTextColor]\n                            )\n                        }\n                    }\n                    else if drawYInside\n                    {\n                        ChartUtils.drawText(\n                            context: context,\n                            text: valueText,\n                            point: CGPoint(x: x, y: y + lineHeight / 2.0),\n                            align: .center,\n                            attributes: [NSAttributedString.Key.font: valueFont, NSAttributedString.Key.foregroundColor: valueTextColor]\n                        )\n                    }\n                }\n\n                if let icon = e.icon, dataSet.isDrawIconsEnabled\n                {\n                    // calculate the icon's position\n\n                    let x = (labelRadius + iconsOffset.y) * sliceXBase + center.x\n                    var y = (labelRadius + iconsOffset.y) * sliceYBase + center.y\n                    y += iconsOffset.x\n\n                    ChartUtils.drawImage(context: context,\n                                         image: icon,\n                                         x: x,\n                                         y: y,\n                                         size: icon.size)\n                }\n\n                xIndex += 1\n            }\n        }\n    }\n\n    open override func drawExtras(context: CGContext)\n    {\n        drawHole(context: context)\n        drawCenterText(context: context)\n    }\n\n    /// draws the hole in the center of the chart and the transparent circle / hole\n    private func drawHole(context: CGContext)\n    {\n        guard let chart = chart else { return }\n\n        if chart.drawHoleEnabled\n        {\n            context.saveGState()\n\n            let radius = chart.radius\n            let holeRadius = radius * chart.holeRadiusPercent\n            let center = chart.centerCircleBox\n\n            if let holeColor = chart.holeColor\n            {\n                if holeColor != NSUIColor.clear\n                {\n                    // draw the hole-circle\n                    context.setFillColor(chart.holeColor!.cgColor)\n                    context.fillEllipse(in: CGRect(x: center.x - holeRadius, y: center.y - holeRadius, width: holeRadius * 2.0, height: holeRadius * 2.0))\n                }\n            }\n\n            // only draw the circle if it can be seen (not covered by the hole)\n            if let transparentCircleColor = chart.transparentCircleColor\n            {\n                if transparentCircleColor != NSUIColor.clear &&\n                    chart.transparentCircleRadiusPercent > chart.holeRadiusPercent\n                {\n                    let alpha = animator.phaseX * animator.phaseY\n                    let secondHoleRadius = radius * chart.transparentCircleRadiusPercent\n\n                    // make transparent\n                    context.setAlpha(CGFloat(alpha))\n                    context.setFillColor(transparentCircleColor.cgColor)\n\n                    // draw the transparent-circle\n                    context.beginPath()\n                    context.addEllipse(in: CGRect(\n                        x: center.x - secondHoleRadius,\n                        y: center.y - secondHoleRadius,\n                        width: secondHoleRadius * 2.0,\n                        height: secondHoleRadius * 2.0))\n                    context.addEllipse(in: CGRect(\n                        x: center.x - holeRadius,\n                        y: center.y - holeRadius,\n                        width: holeRadius * 2.0,\n                        height: holeRadius * 2.0))\n                    context.fillPath(using: .evenOdd)\n                }\n            }\n\n            context.restoreGState()\n        }\n    }\n\n    /// draws the description text in the center of the pie chart makes most sense when center-hole is enabled\n    private func drawCenterText(context: CGContext)\n    {\n        guard\n            let chart = chart,\n            let centerAttributedText = chart.centerAttributedText\n            else { return }\n\n        if chart.drawCenterTextEnabled && centerAttributedText.length > 0\n        {\n            let center = chart.centerCircleBox\n            let offset = chart.centerTextOffset\n            let innerRadius = chart.drawHoleEnabled && !chart.drawSlicesUnderHoleEnabled ? chart.radius * chart.holeRadiusPercent : chart.radius\n\n            let x = center.x + offset.x\n            let y = center.y + offset.y\n\n            let holeRect = CGRect(\n                x: x - innerRadius,\n                y: y - innerRadius,\n                width: innerRadius * 2.0,\n                height: innerRadius * 2.0)\n            var boundingRect = holeRect\n\n            if chart.centerTextRadiusPercent > 0.0\n            {\n                boundingRect = boundingRect.insetBy(dx: (boundingRect.width - boundingRect.width * chart.centerTextRadiusPercent) / 2.0, dy: (boundingRect.height - boundingRect.height * chart.centerTextRadiusPercent) / 2.0)\n            }\n\n            let textBounds = centerAttributedText.boundingRect(with: boundingRect.size, options: [.usesLineFragmentOrigin, .usesFontLeading, .truncatesLastVisibleLine], context: nil)\n\n            var drawingRect = boundingRect\n            drawingRect.origin.x += (boundingRect.size.width - textBounds.size.width) / 2.0\n            drawingRect.origin.y += (boundingRect.size.height - textBounds.size.height) / 2.0\n            drawingRect.size = textBounds.size\n\n            context.saveGState()\n\n            let clippingPath = CGPath(ellipseIn: holeRect, transform: nil)\n            context.beginPath()\n            context.addPath(clippingPath)\n            context.clip()\n\n            centerAttributedText.draw(with: drawingRect, options: [.usesLineFragmentOrigin, .usesFontLeading, .truncatesLastVisibleLine], context: nil)\n\n            context.restoreGState()\n        }\n    }\n\n    open override func drawHighlighted(context: CGContext, indices: [Highlight])\n    {\n        guard\n            let chart = chart,\n            let data = chart.data\n            else { return }\n\n        context.saveGState()\n\n        let phaseX = animator.phaseX\n        let phaseY = animator.phaseY\n\n        var angle: CGFloat = 0.0\n        let rotationAngle = chart.rotationAngle\n\n        let drawAngles = chart.drawAngles\n        let absoluteAngles = chart.absoluteAngles\n        let center = chart.centerCircleBox\n        let radius = chart.radius\n        let drawInnerArc = chart.drawHoleEnabled && !chart.drawSlicesUnderHoleEnabled\n        let userInnerRadius = drawInnerArc ? radius * chart.holeRadiusPercent : 0.0\n\n        // Append highlighted accessibility slices into this array, so we can prioritize them over unselected slices\n        var highlightedAccessibleElements: [NSUIAccessibilityElement] = []\n\n        for i in 0 ..< indices.count\n        {\n            // get the index to highlight\n            let index = Int(indices[i].x)\n            if index >= drawAngles.count\n            {\n                continue\n            }\n\n            guard let set = data.getDataSetByIndex(indices[i].dataSetIndex) as? IPieChartDataSet else { continue }\n            \n            if !set.isHighlightEnabled { continue }\n\n            let entryCount = set.entryCount\n            var visibleAngleCount = 0\n            for j in 0 ..< entryCount\n            {\n                guard let e = set.entryForIndex(j) else { continue }\n                if ((abs(e.y) > Double.ulpOfOne))\n                {\n                    visibleAngleCount += 1\n                }\n            }\n\n            if index == 0\n            {\n                angle = 0.0\n            }\n            else\n            {\n                angle = absoluteAngles[index - 1] * CGFloat(phaseX)\n            }\n\n            let sliceSpace = visibleAngleCount <= 1 ? 0.0 : set.sliceSpace\n\n            let sliceAngle = drawAngles[index]\n            var innerRadius = userInnerRadius\n\n            let shift = set.selectionShift\n            let highlightedRadius = radius + shift\n\n            let accountForSliceSpacing = sliceSpace > 0.0 && sliceAngle <= 180.0\n\n            context.setFillColor(set.highlightColor?.cgColor ?? set.color(atIndex: index).cgColor)\n\n            let sliceSpaceAngleOuter = visibleAngleCount == 1 ?\n                0.0 :\n                sliceSpace / radius.DEG2RAD\n\n            let sliceSpaceAngleShifted = visibleAngleCount == 1 ?\n                0.0 :\n                sliceSpace / highlightedRadius.DEG2RAD\n\n            let startAngleOuter = rotationAngle + (angle + sliceSpaceAngleOuter / 2.0) * CGFloat(phaseY)\n            var sweepAngleOuter = (sliceAngle - sliceSpaceAngleOuter) * CGFloat(phaseY)\n            if sweepAngleOuter < 0.0\n            {\n                sweepAngleOuter = 0.0\n            }\n\n            let startAngleShifted = rotationAngle + (angle + sliceSpaceAngleShifted / 2.0) * CGFloat(phaseY)\n            var sweepAngleShifted = (sliceAngle - sliceSpaceAngleShifted) * CGFloat(phaseY)\n            if sweepAngleShifted < 0.0\n            {\n                sweepAngleShifted = 0.0\n            }\n\n            let path = CGMutablePath()\n\n            path.move(to: CGPoint(x: center.x + highlightedRadius * cos(startAngleShifted.DEG2RAD),\n                                  y: center.y + highlightedRadius * sin(startAngleShifted.DEG2RAD)))\n\n            path.addRelativeArc(center: center, radius: highlightedRadius, startAngle: startAngleShifted.DEG2RAD,\n                                delta: sweepAngleShifted.DEG2RAD)\n\n            var sliceSpaceRadius: CGFloat = 0.0\n            if accountForSliceSpacing\n            {\n                sliceSpaceRadius = calculateMinimumRadiusForSpacedSlice(\n                    center: center,\n                    radius: radius,\n                    angle: sliceAngle * CGFloat(phaseY),\n                    arcStartPointX: center.x + radius * cos(startAngleOuter.DEG2RAD),\n                    arcStartPointY: center.y + radius * sin(startAngleOuter.DEG2RAD),\n                    startAngle: startAngleOuter,\n                    sweepAngle: sweepAngleOuter)\n            }\n\n            if drawInnerArc &&\n                (innerRadius > 0.0 || accountForSliceSpacing)\n            {\n                if accountForSliceSpacing\n                {\n                    var minSpacedRadius = sliceSpaceRadius\n                    if minSpacedRadius < 0.0\n                    {\n                        minSpacedRadius = -minSpacedRadius\n                    }\n                    innerRadius = min(max(innerRadius, minSpacedRadius), radius)\n                }\n\n                let sliceSpaceAngleInner = visibleAngleCount == 1 || innerRadius == 0.0 ?\n                    0.0 :\n                    sliceSpace / innerRadius.DEG2RAD\n                let startAngleInner = rotationAngle + (angle + sliceSpaceAngleInner / 2.0) * CGFloat(phaseY)\n                var sweepAngleInner = (sliceAngle - sliceSpaceAngleInner) * CGFloat(phaseY)\n                if sweepAngleInner < 0.0\n                {\n                    sweepAngleInner = 0.0\n                }\n                let endAngleInner = startAngleInner + sweepAngleInner\n\n                path.addLine(\n                    to: CGPoint(\n                        x: center.x + innerRadius * cos(endAngleInner.DEG2RAD),\n                        y: center.y + innerRadius * sin(endAngleInner.DEG2RAD)))\n\n                path.addRelativeArc(center: center, radius: innerRadius,\n                                    startAngle: endAngleInner.DEG2RAD,\n                                    delta: -sweepAngleInner.DEG2RAD)\n            }\n            else\n            {\n                if accountForSliceSpacing\n                {\n                    let angleMiddle = startAngleOuter + sweepAngleOuter / 2.0\n\n                    let arcEndPointX = center.x + sliceSpaceRadius * cos(angleMiddle.DEG2RAD)\n                    let arcEndPointY = center.y + sliceSpaceRadius * sin(angleMiddle.DEG2RAD)\n\n                    path.addLine(\n                        to: CGPoint(\n                            x: arcEndPointX,\n                            y: arcEndPointY))\n                }\n                else\n                {\n                    path.addLine(to: center)\n                }\n            }\n\n            path.closeSubpath()\n\n            context.beginPath()\n            context.addPath(path)\n            context.fillPath(using: .evenOdd)\n\n            let axElement = createAccessibleElement(withIndex: index,\n                                                    container: chart,\n                                                    dataSet: set)\n            { (element) in\n                element.accessibilityFrame = path.boundingBoxOfPath\n                element.isSelected = true\n            }\n\n            highlightedAccessibleElements.append(axElement)\n        }\n\n        // Prepend selected slices before the already rendered unselected ones.\n        // NOTE: - This relies on drawDataSet() being called before drawHighlighted in PieChartView.\n        if !accessibleChartElements.isEmpty {\n            accessibleChartElements.insert(contentsOf: highlightedAccessibleElements, at: 1)\n        }\n\n        context.restoreGState()\n    }\n\n    /// Creates an NSUIAccessibilityElement representing a slice of the PieChart.\n    /// The element only has it's container and label set based on the chart and dataSet. Use the modifier to alter traits and frame.\n    private func createAccessibleElement(withIndex idx: Int,\n                                         container: PieChartView,\n                                         dataSet: IPieChartDataSet,\n                                         modifier: (NSUIAccessibilityElement) -> ()) -> NSUIAccessibilityElement {\n\n        let element = NSUIAccessibilityElement(accessibilityContainer: container)\n\n        guard let e = dataSet.entryForIndex(idx) else { return element }\n        guard let formatter = dataSet.valueFormatter else { return element }\n        guard let data = container.data as? PieChartData else { return element }\n\n        var elementValueText = formatter.stringForValue(\n            e.y,\n            entry: e,\n            dataSetIndex: idx,\n            viewPortHandler: viewPortHandler)\n\n        if container.usePercentValuesEnabled {\n            let value = e.y / data.yValueSum * 100.0\n            let valueText = formatter.stringForValue(\n                value,\n                entry: e,\n                dataSetIndex: idx,\n                viewPortHandler: viewPortHandler)\n\n            elementValueText = valueText\n        }\n\n        let pieChartDataEntry = (dataSet.entryForIndex(idx) as? PieChartDataEntry)\n        let isCount = data.accessibilityEntryLabelSuffixIsCount\n        let prefix = data.accessibilityEntryLabelPrefix?.appending(\"\\(idx + 1)\") ?? pieChartDataEntry?.label ?? \"\"\n        let suffix = data.accessibilityEntryLabelSuffix ?? \"\"\n        element.accessibilityLabel = \"\\(prefix) : \\(elementValueText) \\(suffix  + (isCount ? (e.y == 1.0 ? \"\" : \"s\") : \"\") )\"\n\n        // The modifier allows changing of traits and frame depending on highlight, rotation, etc\n        modifier(element)\n\n        return element\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift",
    "content": "//\n//  RadarChartRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nopen class RadarChartRenderer: LineRadarRenderer\n{\n    private lazy var accessibilityXLabels: [String] = {\n        guard let chart = chart else { return [] }\n        guard let formatter = chart.xAxis.valueFormatter else { return [] }\n\n        let maxEntryCount = chart.data?.maxEntryCountSet?.entryCount ?? 0\n        return stride(from: 0, to: maxEntryCount, by: 1).map {\n            formatter.stringForValue(Double($0), axis: chart.xAxis)\n        }\n    }()\n\n    @objc open weak var chart: RadarChartView?\n\n    @objc public init(chart: RadarChartView, animator: Animator, viewPortHandler: ViewPortHandler)\n    {\n        super.init(animator: animator, viewPortHandler: viewPortHandler)\n        \n        self.chart = chart\n    }\n    \n    open override func drawData(context: CGContext)\n    {\n        guard let chart = chart else { return }\n        \n        let radarData = chart.data\n        \n        if radarData != nil\n        {\n            let mostEntries = radarData?.maxEntryCountSet?.entryCount ?? 0\n\n            // If we redraw the data, remove and repopulate accessible elements to update label values and frames\n            self.accessibleChartElements.removeAll()\n\n            // Make the chart header the first element in the accessible elements array\n            if let accessibilityHeaderData = radarData as? RadarChartData {\n                let element = createAccessibleHeader(usingChart: chart,\n                                                     andData: accessibilityHeaderData,\n                                                     withDefaultDescription: \"Radar Chart\")\n                self.accessibleChartElements.append(element)\n            }\n\n            for set in radarData!.dataSets as! [IRadarChartDataSet] where set.isVisible\n            {\n                drawDataSet(context: context, dataSet: set, mostEntries: mostEntries)\n            }\n        }\n    }\n    \n    /// Draws the RadarDataSet\n    ///\n    /// - Parameters:\n    ///   - context:\n    ///   - dataSet:\n    ///   - mostEntries: the entry count of the dataset with the most entries\n    internal func drawDataSet(context: CGContext, dataSet: IRadarChartDataSet, mostEntries: Int)\n    {\n        guard let chart = chart else { return }\n        \n        context.saveGState()\n        \n        let phaseX = animator.phaseX\n        let phaseY = animator.phaseY\n        \n        let sliceangle = chart.sliceAngle\n        \n        // calculate the factor that is needed for transforming the value to pixels\n        let factor = chart.factor\n        \n        let center = chart.centerOffsets\n        let entryCount = dataSet.entryCount\n        let path = CGMutablePath()\n        var hasMovedToPoint = false\n\n        let prefix: String = chart.data?.accessibilityEntryLabelPrefix ?? \"Item\"\n        let description = dataSet.label ?? \"\"\n\n        // Make a tuple of (xLabels, value, originalIndex) then sort it\n        // This is done, so that the labels are narrated in decreasing order of their corresponding value\n        // Otherwise, there is no non-visual logic to the data presented\n        let accessibilityEntryValues =  Array(0 ..< entryCount).map { (dataSet.entryForIndex($0)?.y ?? 0, $0) }\n        let accessibilityAxisLabelValueTuples = zip(accessibilityXLabels, accessibilityEntryValues).map { ($0, $1.0, $1.1) }.sorted { $0.1 > $1.1 }\n        let accessibilityDataSetDescription: String = description + \". \\(entryCount) \\(prefix + (entryCount == 1 ? \"\" : \"s\")). \"\n        let accessibilityFrameWidth: CGFloat = 22.0 // To allow a tap target of 44x44\n\n        var accessibilityEntryElements: [NSUIAccessibilityElement] = []\n\n        for j in 0 ..< entryCount\n        {\n            guard let e = dataSet.entryForIndex(j) else { continue }\n            \n            let p = center.moving(distance: CGFloat((e.y - chart.chartYMin) * Double(factor) * phaseY),\n                                  atAngle: sliceangle * CGFloat(j) * CGFloat(phaseX) + chart.rotationAngle)\n            \n            if p.x.isNaN\n            {\n                continue\n            }\n            \n            if !hasMovedToPoint\n            {\n                path.move(to: p)\n                hasMovedToPoint = true\n            }\n            else\n            {\n                path.addLine(to: p)\n            }\n\n            let accessibilityLabel = accessibilityAxisLabelValueTuples[j].0\n            let accessibilityValue = accessibilityAxisLabelValueTuples[j].1\n            let accessibilityValueIndex = accessibilityAxisLabelValueTuples[j].2\n\n            let axp = center.moving(distance: CGFloat((accessibilityValue - chart.chartYMin) * Double(factor) * phaseY),\n                                    atAngle: sliceangle * CGFloat(accessibilityValueIndex) * CGFloat(phaseX) + chart.rotationAngle)\n\n            let axDescription = description + \" - \" + accessibilityLabel + \": \\(accessibilityValue) \\(chart.data?.accessibilityEntryLabelSuffix ?? \"\")\"\n            let axElement = createAccessibleElement(withDescription: axDescription,\n                                                    container: chart,\n                                                    dataSet: dataSet)\n            { (element) in\n                element.accessibilityFrame = CGRect(x: axp.x - accessibilityFrameWidth,\n                                                    y: axp.y - accessibilityFrameWidth,\n                                                    width: 2 * accessibilityFrameWidth,\n                                                    height: 2 * accessibilityFrameWidth)\n            }\n\n            accessibilityEntryElements.append(axElement)\n        }\n        \n        // if this is the largest set, close it\n        if dataSet.entryCount < mostEntries\n        {\n            // if this is not the largest set, draw a line to the center before closing\n            path.addLine(to: center)\n        }\n        \n        path.closeSubpath()\n        \n        // draw filled\n        if dataSet.isDrawFilledEnabled\n        {\n            if dataSet.fill != nil\n            {\n                drawFilledPath(context: context, path: path, fill: dataSet.fill!, fillAlpha: dataSet.fillAlpha)\n            }\n            else\n            {\n                drawFilledPath(context: context, path: path, fillColor: dataSet.fillColor, fillAlpha: dataSet.fillAlpha)\n            }\n        }\n        \n        // draw the line (only if filled is disabled or alpha is below 255)\n        if !dataSet.isDrawFilledEnabled || dataSet.fillAlpha < 1.0\n        {\n            context.setStrokeColor(dataSet.color(atIndex: 0).cgColor)\n            context.setLineWidth(dataSet.lineWidth)\n            context.setAlpha(1.0)\n\n            context.beginPath()\n            context.addPath(path)\n            context.strokePath()\n\n            let axElement = createAccessibleElement(withDescription: accessibilityDataSetDescription,\n                                                    container: chart,\n                                                    dataSet: dataSet)\n            { (element) in\n                element.isHeader = true\n                element.accessibilityFrame = path.boundingBoxOfPath\n            }\n\n            accessibleChartElements.append(axElement)\n            accessibleChartElements.append(contentsOf: accessibilityEntryElements)\n        }\n        \n        accessibilityPostLayoutChangedNotification()\n\n        context.restoreGState()\n    }\n    \n    open override func drawValues(context: CGContext)\n    {\n        guard\n            let chart = chart,\n            let data = chart.data\n            else { return }\n        \n        let phaseX = animator.phaseX\n        let phaseY = animator.phaseY\n        \n        let sliceangle = chart.sliceAngle\n        \n        // calculate the factor that is needed for transforming the value to pixels\n        let factor = chart.factor\n        \n        let center = chart.centerOffsets\n        \n        let yoffset = CGFloat(5.0)\n        \n        for i in 0 ..< data.dataSetCount\n        {\n            guard let\n                dataSet = data.getDataSetByIndex(i) as? IRadarChartDataSet,\n                shouldDrawValues(forDataSet: dataSet)\n                else { continue }\n            \n            let entryCount = dataSet.entryCount\n            \n            let iconsOffset = dataSet.iconsOffset\n            \n            for j in 0 ..< entryCount\n            {\n                guard let e = dataSet.entryForIndex(j) else { continue }\n                \n                let p = center.moving(distance: CGFloat(e.y - chart.chartYMin) * factor * CGFloat(phaseY),\n                                      atAngle: sliceangle * CGFloat(j) * CGFloat(phaseX) + chart.rotationAngle)\n                \n                let valueFont = dataSet.valueFont\n                \n                guard let formatter = dataSet.valueFormatter else { continue }\n                \n                if dataSet.isDrawValuesEnabled\n                {\n                    ChartUtils.drawText(\n                        context: context,\n                        text: formatter.stringForValue(\n                            e.y,\n                            entry: e,\n                            dataSetIndex: i,\n                            viewPortHandler: viewPortHandler),\n                        point: CGPoint(x: p.x, y: p.y - yoffset - valueFont.lineHeight),\n                        align: .center,\n                        attributes: [NSAttributedString.Key.font: valueFont,\n                            NSAttributedString.Key.foregroundColor: dataSet.valueTextColorAt(j)]\n                    )\n                }\n                \n                if let icon = e.icon, dataSet.isDrawIconsEnabled\n                {\n                    var pIcon = center.moving(distance: CGFloat(e.y) * factor * CGFloat(phaseY) + iconsOffset.y,\n                                              atAngle: sliceangle * CGFloat(j) * CGFloat(phaseX) + chart.rotationAngle)\n                    pIcon.y += iconsOffset.x\n                    \n                    ChartUtils.drawImage(context: context,\n                                         image: icon,\n                                         x: pIcon.x,\n                                         y: pIcon.y,\n                                         size: icon.size)\n                }\n            }\n        }\n    }\n    \n    open override func drawExtras(context: CGContext)\n    {\n        drawWeb(context: context)\n    }\n    \n    private var _webLineSegmentsBuffer = [CGPoint](repeating: CGPoint(), count: 2)\n    \n    @objc open func drawWeb(context: CGContext)\n    {\n        guard\n            let chart = chart,\n            let data = chart.data\n            else { return }\n        \n        let sliceangle = chart.sliceAngle\n        \n        context.saveGState()\n        \n        // calculate the factor that is needed for transforming the value to\n        // pixels\n        let factor = chart.factor\n        let rotationangle = chart.rotationAngle\n        \n        let center = chart.centerOffsets\n        \n        // draw the web lines that come from the center\n        context.setLineWidth(chart.webLineWidth)\n        context.setStrokeColor(chart.webColor.cgColor)\n        context.setAlpha(chart.webAlpha)\n        \n        let xIncrements = 1 + chart.skipWebLineCount\n        let maxEntryCount = chart.data?.maxEntryCountSet?.entryCount ?? 0\n\n        for i in stride(from: 0, to: maxEntryCount, by: xIncrements)\n        {\n            let p = center.moving(distance: CGFloat(chart.yRange) * factor,\n                                  atAngle: sliceangle * CGFloat(i) + rotationangle)\n            \n            _webLineSegmentsBuffer[0].x = center.x\n            _webLineSegmentsBuffer[0].y = center.y\n            _webLineSegmentsBuffer[1].x = p.x\n            _webLineSegmentsBuffer[1].y = p.y\n            \n            context.strokeLineSegments(between: _webLineSegmentsBuffer)\n        }\n        \n        // draw the inner-web\n        context.setLineWidth(chart.innerWebLineWidth)\n        context.setStrokeColor(chart.innerWebColor.cgColor)\n        context.setAlpha(chart.webAlpha)\n        \n        let labelCount = chart.yAxis.entryCount\n        \n        for j in 0 ..< labelCount\n        {\n            for i in 0 ..< data.entryCount\n            {\n                let r = CGFloat(chart.yAxis.entries[j] - chart.chartYMin) * factor\n\n                let p1 = center.moving(distance: r, atAngle: sliceangle * CGFloat(i) + rotationangle)\n                let p2 = center.moving(distance: r, atAngle: sliceangle * CGFloat(i + 1) + rotationangle)\n                \n                _webLineSegmentsBuffer[0].x = p1.x\n                _webLineSegmentsBuffer[0].y = p1.y\n                _webLineSegmentsBuffer[1].x = p2.x\n                _webLineSegmentsBuffer[1].y = p2.y\n                \n                context.strokeLineSegments(between: _webLineSegmentsBuffer)\n            }\n        }\n        \n        context.restoreGState()\n    }\n    \n    private var _highlightPointBuffer = CGPoint()\n\n    open override func drawHighlighted(context: CGContext, indices: [Highlight])\n    {\n        guard\n            let chart = chart,\n            let radarData = chart.data as? RadarChartData\n            else { return }\n        \n        context.saveGState()\n        \n        let sliceangle = chart.sliceAngle\n        \n        // calculate the factor that is needed for transforming the value pixels\n        let factor = chart.factor\n        \n        let center = chart.centerOffsets\n        \n        for high in indices\n        {\n            guard\n                let set = chart.data?.getDataSetByIndex(high.dataSetIndex) as? IRadarChartDataSet,\n                set.isHighlightEnabled\n                else { continue }\n            \n            guard let e = set.entryForIndex(Int(high.x)) as? RadarChartDataEntry\n                else { continue }\n            \n            if !isInBoundsX(entry: e, dataSet: set)\n            {\n                continue\n            }\n            \n            context.setLineWidth(radarData.highlightLineWidth)\n            if radarData.highlightLineDashLengths != nil\n            {\n                context.setLineDash(phase: radarData.highlightLineDashPhase, lengths: radarData.highlightLineDashLengths!)\n            }\n            else\n            {\n                context.setLineDash(phase: 0.0, lengths: [])\n            }\n            \n            context.setStrokeColor(set.highlightColor.cgColor)\n            \n            let y = e.y - chart.chartYMin\n            \n            _highlightPointBuffer = center.moving(distance: CGFloat(y) * factor * CGFloat(animator.phaseY),\n                                                  atAngle: sliceangle * CGFloat(high.x) * CGFloat(animator.phaseX) + chart.rotationAngle)\n            \n            high.setDraw(pt: _highlightPointBuffer)\n            \n            // draw the lines\n            drawHighlightLines(context: context, point: _highlightPointBuffer, set: set)\n            \n            if set.isDrawHighlightCircleEnabled\n            {\n                if !_highlightPointBuffer.x.isNaN && !_highlightPointBuffer.y.isNaN\n                {\n                    var strokeColor = set.highlightCircleStrokeColor\n                    if strokeColor == nil\n                    {\n                        strokeColor = set.color(atIndex: 0)\n                    }\n                    if set.highlightCircleStrokeAlpha < 1.0\n                    {\n                        strokeColor = strokeColor?.withAlphaComponent(set.highlightCircleStrokeAlpha)\n                    }\n                    \n                    drawHighlightCircle(\n                        context: context,\n                        atPoint: _highlightPointBuffer,\n                        innerRadius: set.highlightCircleInnerRadius,\n                        outerRadius: set.highlightCircleOuterRadius,\n                        fillColor: set.highlightCircleFillColor,\n                        strokeColor: strokeColor,\n                        strokeWidth: set.highlightCircleStrokeWidth)\n                }\n            }\n        }\n        \n        context.restoreGState()\n    }\n    \n    internal func drawHighlightCircle(\n        context: CGContext,\n        atPoint point: CGPoint,\n        innerRadius: CGFloat,\n        outerRadius: CGFloat,\n        fillColor: NSUIColor?,\n        strokeColor: NSUIColor?,\n        strokeWidth: CGFloat)\n    {\n        context.saveGState()\n        \n        if let fillColor = fillColor\n        {\n            context.beginPath()\n            context.addEllipse(in: CGRect(x: point.x - outerRadius, y: point.y - outerRadius, width: outerRadius * 2.0, height: outerRadius * 2.0))\n            if innerRadius > 0.0\n            {\n                context.addEllipse(in: CGRect(x: point.x - innerRadius, y: point.y - innerRadius, width: innerRadius * 2.0, height: innerRadius * 2.0))\n            }\n            \n            context.setFillColor(fillColor.cgColor)\n            context.fillPath(using: .evenOdd)\n        }\n            \n        if let strokeColor = strokeColor\n        {\n            context.beginPath()\n            context.addEllipse(in: CGRect(x: point.x - outerRadius, y: point.y - outerRadius, width: outerRadius * 2.0, height: outerRadius * 2.0))\n            context.setStrokeColor(strokeColor.cgColor)\n            context.setLineWidth(strokeWidth)\n            context.strokePath()\n        }\n        \n        context.restoreGState()\n    }\n\n    private func createAccessibleElement(withDescription description: String,\n                                         container: RadarChartView,\n                                         dataSet: IRadarChartDataSet,\n                                         modifier: (NSUIAccessibilityElement) -> ()) -> NSUIAccessibilityElement {\n\n        let element = NSUIAccessibilityElement(accessibilityContainer: container)\n        element.accessibilityLabel = description\n\n        // The modifier allows changing of traits and frame depending on highlight, rotation, etc\n        modifier(element)\n\n        return element\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/Renderer.swift",
    "content": "//\n//  Renderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(ChartRenderer)\nopen class Renderer: NSObject\n{\n    /// the component that handles the drawing area of the chart and it's offsets\n    @objc public let viewPortHandler: ViewPortHandler\n\n    @objc public init(viewPortHandler: ViewPortHandler)\n    {\n        self.viewPortHandler = viewPortHandler\n        super.init()\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift",
    "content": "//\n//  ChevronDownShapeRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\nimport Foundation\nimport CoreGraphics\n\nopen class ChevronDownShapeRenderer : NSObject, IShapeRenderer\n{\n    open func renderShape(\n        context: CGContext,\n                dataSet: IScatterChartDataSet,\n                viewPortHandler: ViewPortHandler,\n                point: CGPoint,\n                color: NSUIColor)\n    {\n        let shapeSize = dataSet.scatterShapeSize\n        let shapeHalf = shapeSize / 2.0\n        \n        context.setLineWidth(1.0)\n        context.setStrokeColor(color.cgColor)\n        \n        context.beginPath()\n        context.move(to: CGPoint(x: point.x, y: point.y + 2 * shapeHalf))\n        context.addLine(to: CGPoint(x: point.x + 2 * shapeHalf, y: point.y))\n        context.move(to: CGPoint(x: point.x, y: point.y + 2 * shapeHalf))\n        context.addLine(to: CGPoint(x: point.x - 2 * shapeHalf, y: point.y))\n        context.strokePath()\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift",
    "content": "//\n//  ChevronUpShapeRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\nimport Foundation\nimport CoreGraphics\n\nopen class ChevronUpShapeRenderer : NSObject, IShapeRenderer\n{\n    open func renderShape(\n        context: CGContext,\n                dataSet: IScatterChartDataSet,\n                viewPortHandler: ViewPortHandler,\n                point: CGPoint,\n                color: NSUIColor)\n    {\n        let shapeSize = dataSet.scatterShapeSize\n        let shapeHalf = shapeSize / 2.0\n        \n        context.setLineWidth(1.0)\n        context.setStrokeColor(color.cgColor)\n        \n        context.beginPath()\n        context.move(to: CGPoint(x: point.x, y: point.y - 2 * shapeHalf))\n        context.addLine(to: CGPoint(x: point.x + 2 * shapeHalf, y: point.y))\n        context.move(to: CGPoint(x: point.x, y: point.y - 2 * shapeHalf))\n        context.addLine(to: CGPoint(x: point.x - 2 * shapeHalf, y: point.y))\n        context.strokePath()\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift",
    "content": "//\n//  CircleShapeRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\nimport Foundation\nimport CoreGraphics\n\nopen class CircleShapeRenderer : NSObject, IShapeRenderer\n{\n    open func renderShape(\n        context: CGContext,\n        dataSet: IScatterChartDataSet,\n        viewPortHandler: ViewPortHandler,\n        point: CGPoint,\n        color: NSUIColor)\n    {\n        let shapeSize = dataSet.scatterShapeSize\n        let shapeHalf = shapeSize / 2.0\n        let shapeHoleSizeHalf = dataSet.scatterShapeHoleRadius\n        let shapeHoleSize = shapeHoleSizeHalf * 2.0\n        let shapeHoleColor = dataSet.scatterShapeHoleColor\n        let shapeStrokeSize = (shapeSize - shapeHoleSize) / 2.0\n        let shapeStrokeSizeHalf = shapeStrokeSize / 2.0\n        \n        if shapeHoleSize > 0.0\n        {\n            context.setStrokeColor(color.cgColor)\n            context.setLineWidth(shapeStrokeSize)\n            var rect = CGRect()\n            rect.origin.x = point.x - shapeHoleSizeHalf - shapeStrokeSizeHalf\n            rect.origin.y = point.y - shapeHoleSizeHalf - shapeStrokeSizeHalf\n            rect.size.width = shapeHoleSize + shapeStrokeSize\n            rect.size.height = shapeHoleSize + shapeStrokeSize\n            context.strokeEllipse(in: rect)\n            \n            if let shapeHoleColor = shapeHoleColor\n            {\n                context.setFillColor(shapeHoleColor.cgColor)\n                rect.origin.x = point.x - shapeHoleSizeHalf\n                rect.origin.y = point.y - shapeHoleSizeHalf\n                rect.size.width = shapeHoleSize\n                rect.size.height = shapeHoleSize\n                context.fillEllipse(in: rect)\n            }\n        }\n        else\n        {\n            context.setFillColor(color.cgColor)\n            var rect = CGRect()\n            rect.origin.x = point.x - shapeHalf\n            rect.origin.y = point.y - shapeHalf\n            rect.size.width = shapeSize\n            rect.size.height = shapeSize\n            context.fillEllipse(in: rect)\n        }\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift",
    "content": "//\n//  CrossShapeRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\nimport Foundation\nimport CoreGraphics\n\nopen class CrossShapeRenderer : NSObject, IShapeRenderer\n{\n    open func renderShape(\n        context: CGContext,\n        dataSet: IScatterChartDataSet,\n        viewPortHandler: ViewPortHandler,\n        point: CGPoint,\n        color: NSUIColor)\n    {\n        let shapeSize = dataSet.scatterShapeSize\n        let shapeHalf = shapeSize / 2.0\n        \n        context.setLineWidth(1.0)\n        context.setStrokeColor(color.cgColor)\n        \n        context.beginPath()\n        context.move(to: CGPoint(x: point.x - shapeHalf, y: point.y))\n        context.addLine(to: CGPoint(x: point.x + shapeHalf, y: point.y))\n        context.move(to: CGPoint(x: point.x, y: point.y - shapeHalf))\n        context.addLine(to: CGPoint(x: point.x, y: point.y + shapeHalf))\n        context.strokePath()\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift",
    "content": "//\n//  IShapeRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc\npublic protocol IShapeRenderer: class\n{\n    /// Renders the provided ScatterDataSet with a shape.\n    ///\n    /// - Parameters:\n    ///   - context:         CGContext for drawing on\n    ///   - dataSet:         The DataSet to be drawn\n    ///   - viewPortHandler: Contains information about the current state of the view\n    ///   - point:           Position to draw the shape at\n    ///   - color:           Color to draw the shape\n    func renderShape(\n        context: CGContext,\n        dataSet: IScatterChartDataSet,\n        viewPortHandler: ViewPortHandler,\n        point: CGPoint,\n        color: NSUIColor)\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift",
    "content": "//\n//  SquareShapeRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\nimport Foundation\nimport CoreGraphics\n\nopen class SquareShapeRenderer : NSObject, IShapeRenderer\n{\n    open func renderShape(\n        context: CGContext,\n        dataSet: IScatterChartDataSet,\n        viewPortHandler: ViewPortHandler,\n        point: CGPoint,\n        color: NSUIColor)\n    {\n        let shapeSize = dataSet.scatterShapeSize\n        let shapeHalf = shapeSize / 2.0\n        let shapeHoleSizeHalf = dataSet.scatterShapeHoleRadius\n        let shapeHoleSize = shapeHoleSizeHalf * 2.0\n        let shapeHoleColor = dataSet.scatterShapeHoleColor\n        let shapeStrokeSize = (shapeSize - shapeHoleSize) / 2.0\n        let shapeStrokeSizeHalf = shapeStrokeSize / 2.0\n        \n        if shapeHoleSize > 0.0\n        {\n            context.setStrokeColor(color.cgColor)\n            context.setLineWidth(shapeStrokeSize)\n            var rect = CGRect()\n            rect.origin.x = point.x - shapeHoleSizeHalf - shapeStrokeSizeHalf\n            rect.origin.y = point.y - shapeHoleSizeHalf - shapeStrokeSizeHalf\n            rect.size.width = shapeHoleSize + shapeStrokeSize\n            rect.size.height = shapeHoleSize + shapeStrokeSize\n            context.stroke(rect)\n            \n            if let shapeHoleColor = shapeHoleColor\n            {\n                context.setFillColor(shapeHoleColor.cgColor)\n                rect.origin.x = point.x - shapeHoleSizeHalf\n                rect.origin.y = point.y - shapeHoleSizeHalf\n                rect.size.width = shapeHoleSize\n                rect.size.height = shapeHoleSize\n                context.fill(rect)\n            }\n        }\n        else\n        {\n            context.setFillColor(color.cgColor)\n            var rect = CGRect()\n            rect.origin.x = point.x - shapeHalf\n            rect.origin.y = point.y - shapeHalf\n            rect.size.width = shapeSize\n            rect.size.height = shapeSize\n            context.fill(rect)\n        }\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift",
    "content": "//\n//  TriangleShapeRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\nimport Foundation\nimport CoreGraphics\n\nopen class TriangleShapeRenderer : NSObject, IShapeRenderer\n{\n    open func renderShape(\n        context: CGContext,\n        dataSet: IScatterChartDataSet,\n        viewPortHandler: ViewPortHandler,\n        point: CGPoint,\n        color: NSUIColor)\n    {\n        let shapeSize = dataSet.scatterShapeSize\n        let shapeHalf = shapeSize / 2.0\n        let shapeHoleSizeHalf = dataSet.scatterShapeHoleRadius\n        let shapeHoleSize = shapeHoleSizeHalf * 2.0\n        let shapeHoleColor = dataSet.scatterShapeHoleColor\n        let shapeStrokeSize = (shapeSize - shapeHoleSize) / 2.0\n        \n        context.setFillColor(color.cgColor)\n        \n        // create a triangle path\n        context.beginPath()\n        context.move(to: CGPoint(x: point.x, y: point.y - shapeHalf))\n        context.addLine(to: CGPoint(x: point.x + shapeHalf, y: point.y + shapeHalf))\n        context.addLine(to: CGPoint(x: point.x - shapeHalf, y: point.y + shapeHalf))\n        \n        if shapeHoleSize > 0.0\n        {\n            context.addLine(to: CGPoint(x: point.x, y: point.y - shapeHalf))\n            \n            context.move(to: CGPoint(x: point.x - shapeHalf + shapeStrokeSize, y: point.y + shapeHalf - shapeStrokeSize))\n            context.addLine(to: CGPoint(x: point.x + shapeHalf - shapeStrokeSize, y: point.y + shapeHalf - shapeStrokeSize))\n            context.addLine(to: CGPoint(x: point.x, y: point.y - shapeHalf + shapeStrokeSize))\n            context.addLine(to: CGPoint(x: point.x - shapeHalf + shapeStrokeSize, y: point.y + shapeHalf - shapeStrokeSize))\n        }\n        \n        context.closePath()\n        \n        context.fillPath()\n        \n        if shapeHoleSize > 0.0 && shapeHoleColor != nil\n        {\n            context.setFillColor(shapeHoleColor!.cgColor)\n            \n            // create a triangle path\n            context.beginPath()\n            context.move(to: CGPoint(x: point.x, y: point.y - shapeHalf + shapeStrokeSize))\n            context.addLine(to: CGPoint(x: point.x + shapeHalf - shapeStrokeSize, y: point.y + shapeHalf - shapeStrokeSize))\n            context.addLine(to: CGPoint(x: point.x - shapeHalf + shapeStrokeSize, y: point.y + shapeHalf - shapeStrokeSize))\n            context.closePath()\n            \n            context.fillPath()\n        }\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift",
    "content": "//\n//  XShapeRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\nimport Foundation\nimport CoreGraphics\n\nopen class XShapeRenderer : NSObject, IShapeRenderer\n{\n    open func renderShape(\n        context: CGContext,\n        dataSet: IScatterChartDataSet,\n        viewPortHandler: ViewPortHandler,\n        point: CGPoint,\n        color: NSUIColor)\n    {\n        let shapeSize = dataSet.scatterShapeSize\n        let shapeHalf = shapeSize / 2.0\n        \n        context.setLineWidth(1.0)\n        context.setStrokeColor(color.cgColor)\n        \n        context.beginPath()\n        context.move(to: CGPoint(x: point.x - shapeHalf, y: point.y - shapeHalf))\n        context.addLine(to: CGPoint(x: point.x + shapeHalf, y: point.y + shapeHalf))\n        context.move(to: CGPoint(x: point.x + shapeHalf, y: point.y - shapeHalf))\n        context.addLine(to: CGPoint(x: point.x - shapeHalf, y: point.y + shapeHalf))\n        context.strokePath()\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift",
    "content": "//\n//  ScatterChartRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nopen class ScatterChartRenderer: LineScatterCandleRadarRenderer\n{\n    @objc open weak var dataProvider: ScatterChartDataProvider?\n    \n    @objc public init(dataProvider: ScatterChartDataProvider, animator: Animator, viewPortHandler: ViewPortHandler)\n    {\n        super.init(animator: animator, viewPortHandler: viewPortHandler)\n        \n        self.dataProvider = dataProvider\n    }\n\n    open override func drawData(context: CGContext)\n    {\n        guard let scatterData = dataProvider?.scatterData else { return }\n\n        // If we redraw the data, remove and repopulate accessible elements to update label values and frames\n        accessibleChartElements.removeAll()\n        \n        if let chart = dataProvider as? ScatterChartView {\n            // Make the chart header the first element in the accessible elements array\n            let element = createAccessibleHeader(usingChart: chart,\n                                                 andData: scatterData,\n                                                 withDefaultDescription: \"Scatter Chart\")\n            accessibleChartElements.append(element)\n        }\n\n        // TODO: Due to the potential complexity of data presented in Scatter charts, a more usable way\n        // for VO accessibility would be to use axis based traversal rather than by dataset.\n        // Hence, accessibleChartElements is not populated below. (Individual renderers guard against dataSource being their respective views)\n        for i in 0 ..< scatterData.dataSetCount\n        {\n            guard let set = scatterData.getDataSetByIndex(i) else { continue }\n            \n            if set.isVisible\n            {\n                if !(set is IScatterChartDataSet)\n                {\n                    fatalError(\"Datasets for ScatterChartRenderer must conform to IScatterChartDataSet\")\n                }\n                \n                drawDataSet(context: context, dataSet: set as! IScatterChartDataSet)\n            }\n        }\n    }\n    \n    private var _lineSegments = [CGPoint](repeating: CGPoint(), count: 2)\n    \n    @objc open func drawDataSet(context: CGContext, dataSet: IScatterChartDataSet)\n    {\n        guard let dataProvider = dataProvider else { return }\n        \n        let trans = dataProvider.getTransformer(forAxis: dataSet.axisDependency)\n        \n        let phaseY = animator.phaseY\n        \n        let entryCount = dataSet.entryCount\n        \n        var point = CGPoint()\n        \n        let valueToPixelMatrix = trans.valueToPixelMatrix\n        \n        if let renderer = dataSet.shapeRenderer\n        {\n            context.saveGState()\n            \n            for j in 0 ..< Int(min(ceil(Double(entryCount) * animator.phaseX), Double(entryCount)))\n            {\n                guard let e = dataSet.entryForIndex(j) else { continue }\n                \n                point.x = CGFloat(e.x)\n                point.y = CGFloat(e.y * phaseY)\n                point = point.applying(valueToPixelMatrix)\n                \n                if !viewPortHandler.isInBoundsRight(point.x)\n                {\n                    break\n                }\n                \n                if !viewPortHandler.isInBoundsLeft(point.x) ||\n                    !viewPortHandler.isInBoundsY(point.y)\n                {\n                    continue\n                }\n                \n                renderer.renderShape(context: context, dataSet: dataSet, viewPortHandler: viewPortHandler, point: point, color: dataSet.color(atIndex: j))\n            }\n            \n            context.restoreGState()\n        }\n        else\n        {\n            print(\"There's no IShapeRenderer specified for ScatterDataSet\", terminator: \"\\n\")\n        }\n    }\n    \n    open override func drawValues(context: CGContext)\n    {\n        guard\n            let dataProvider = dataProvider,\n            let scatterData = dataProvider.scatterData\n            else { return }\n        \n        // if values are drawn\n        if isDrawingValuesAllowed(dataProvider: dataProvider)\n        {\n            guard let dataSets = scatterData.dataSets as? [IScatterChartDataSet] else { return }\n            \n            let phaseY = animator.phaseY\n            \n            var pt = CGPoint()\n            \n            for i in 0 ..< scatterData.dataSetCount\n            {\n                let dataSet = dataSets[i]\n                guard let\n                    formatter = dataSet.valueFormatter,\n                    shouldDrawValues(forDataSet: dataSet)\n                    else { continue }\n                \n                let valueFont = dataSet.valueFont\n                \n                let trans = dataProvider.getTransformer(forAxis: dataSet.axisDependency)\n                let valueToPixelMatrix = trans.valueToPixelMatrix\n                \n                let iconsOffset = dataSet.iconsOffset\n                \n                let shapeSize = dataSet.scatterShapeSize\n                let lineHeight = valueFont.lineHeight\n                \n                _xBounds.set(chart: dataProvider, dataSet: dataSet, animator: animator)\n                \n                for j in _xBounds\n                {\n                    guard let e = dataSet.entryForIndex(j) else { break }\n                    \n                    pt.x = CGFloat(e.x)\n                    pt.y = CGFloat(e.y * phaseY)\n                    pt = pt.applying(valueToPixelMatrix)\n                    \n                    if (!viewPortHandler.isInBoundsRight(pt.x))\n                    {\n                        break\n                    }\n                    \n                    // make sure the lines don't do shitty things outside bounds\n                    if (!viewPortHandler.isInBoundsLeft(pt.x)\n                        || !viewPortHandler.isInBoundsY(pt.y))\n                    {\n                        continue\n                    }\n                    \n                    let text = formatter.stringForValue(\n                        e.y,\n                        entry: e,\n                        dataSetIndex: i,\n                        viewPortHandler: viewPortHandler)\n                    \n                    if dataSet.isDrawValuesEnabled\n                    {\n                        ChartUtils.drawText(\n                            context: context,\n                            text: text,\n                            point: CGPoint(\n                                x: pt.x,\n                                y: pt.y - shapeSize - lineHeight),\n                            align: .center,\n                            attributes: [NSAttributedString.Key.font: valueFont, NSAttributedString.Key.foregroundColor: dataSet.valueTextColorAt(j)]\n                        )\n                    }\n                    \n                    if let icon = e.icon, dataSet.isDrawIconsEnabled\n                    {\n                        ChartUtils.drawImage(context: context,\n                                             image: icon,\n                                             x: pt.x + iconsOffset.x,\n                                             y: pt.y + iconsOffset.y,\n                                             size: icon.size)\n                    }\n                }\n            }\n        }\n    }\n    \n    open override func drawExtras(context: CGContext)\n    {\n        \n    }\n    \n    open override func drawHighlighted(context: CGContext, indices: [Highlight])\n    {\n        guard\n            let dataProvider = dataProvider,\n            let scatterData = dataProvider.scatterData\n            else { return }\n        \n        context.saveGState()\n        \n        for high in indices\n        {\n            guard\n                let set = scatterData.getDataSetByIndex(high.dataSetIndex) as? IScatterChartDataSet,\n                set.isHighlightEnabled\n                else { continue }\n            \n            guard let entry = set.entryForXValue(high.x, closestToY: high.y) else { continue }\n            \n            if !isInBoundsX(entry: entry, dataSet: set) { continue }\n            \n            context.setStrokeColor(set.highlightColor.cgColor)\n            context.setLineWidth(set.highlightLineWidth)\n            if set.highlightLineDashLengths != nil\n            {\n                context.setLineDash(phase: set.highlightLineDashPhase, lengths: set.highlightLineDashLengths!)\n            }\n            else\n            {\n                context.setLineDash(phase: 0.0, lengths: [])\n            }\n            \n            let x = entry.x // get the x-position\n            let y = entry.y * Double(animator.phaseY)\n            \n            let trans = dataProvider.getTransformer(forAxis: set.axisDependency)\n            \n            let pt = trans.pixelForValues(x: x, y: y)\n            \n            high.setDraw(pt: pt)\n            \n            // draw the lines\n            drawHighlightLines(context: context, point: pt, set: set)\n        }\n        \n        context.restoreGState()\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift",
    "content": "//\n//  XAxisRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n#if canImport(UIKit)\n    import UIKit\n#endif\n\n#if canImport(Cocoa)\nimport Cocoa\n#endif\n\n@objc(ChartXAxisRenderer)\nopen class XAxisRenderer: AxisRendererBase\n{\n    @objc public init(viewPortHandler: ViewPortHandler, xAxis: XAxis?, transformer: Transformer?)\n    {\n        super.init(viewPortHandler: viewPortHandler, transformer: transformer, axis: xAxis)\n    }\n    \n    open override func computeAxis(min: Double, max: Double, inverted: Bool)\n    {\n        var min = min, max = max\n        \n        if let transformer = self.transformer\n        {\n            // calculate the starting and entry point of the y-labels (depending on\n            // zoom / contentrect bounds)\n            if viewPortHandler.contentWidth > 10 && !viewPortHandler.isFullyZoomedOutX\n            {\n                let p1 = transformer.valueForTouchPoint(CGPoint(x: viewPortHandler.contentLeft, y: viewPortHandler.contentTop))\n                let p2 = transformer.valueForTouchPoint(CGPoint(x: viewPortHandler.contentRight, y: viewPortHandler.contentTop))\n                \n                if inverted\n                {\n                    min = Double(p2.x)\n                    max = Double(p1.x)\n                }\n                else\n                {\n                    min = Double(p1.x)\n                    max = Double(p2.x)\n                }\n            }\n        }\n        \n        computeAxisValues(min: min, max: max)\n    }\n    \n    open override func computeAxisValues(min: Double, max: Double)\n    {\n        super.computeAxisValues(min: min, max: max)\n        \n        computeSize()\n    }\n    \n    @objc open func computeSize()\n    {\n        guard let\n            xAxis = self.axis as? XAxis\n            else { return }\n        \n        let longest = xAxis.getLongestLabel()\n        \n        let labelSize = longest.size(withAttributes: [NSAttributedString.Key.font: xAxis.labelFont])\n        \n        let labelWidth = labelSize.width\n        let labelHeight = labelSize.height\n        \n        let labelRotatedSize = labelSize.rotatedBy(degrees: xAxis.labelRotationAngle)\n        \n        xAxis.labelWidth = labelWidth\n        xAxis.labelHeight = labelHeight\n        xAxis.labelRotatedWidth = labelRotatedSize.width\n        xAxis.labelRotatedHeight = labelRotatedSize.height\n    }\n    \n    open override func renderAxisLabels(context: CGContext)\n    {\n        guard let xAxis = self.axis as? XAxis else { return }\n        \n        if !xAxis.isEnabled || !xAxis.isDrawLabelsEnabled\n        {\n            return\n        }\n        \n        let yOffset = xAxis.yOffset\n        \n        if xAxis.labelPosition == .top\n        {\n            drawLabels(context: context, pos: viewPortHandler.contentTop - yOffset, anchor: CGPoint(x: 0.5, y: 1.0))\n        }\n        else if xAxis.labelPosition == .topInside\n        {\n            drawLabels(context: context, pos: viewPortHandler.contentTop + yOffset + xAxis.labelRotatedHeight, anchor: CGPoint(x: 0.5, y: 1.0))\n        }\n        else if xAxis.labelPosition == .bottom\n        {\n            drawLabels(context: context, pos: viewPortHandler.contentBottom + yOffset, anchor: CGPoint(x: 0.5, y: 0.0))\n        }\n        else if xAxis.labelPosition == .bottomInside\n        {\n            drawLabels(context: context, pos: viewPortHandler.contentBottom - yOffset - xAxis.labelRotatedHeight, anchor: CGPoint(x: 0.5, y: 0.0))\n        }\n        else\n        { // BOTH SIDED\n            drawLabels(context: context, pos: viewPortHandler.contentTop - yOffset, anchor: CGPoint(x: 0.5, y: 1.0))\n            drawLabels(context: context, pos: viewPortHandler.contentBottom + yOffset, anchor: CGPoint(x: 0.5, y: 0.0))\n        }\n    }\n    \n    private var _axisLineSegmentsBuffer = [CGPoint](repeating: CGPoint(), count: 2)\n    \n    open override func renderAxisLine(context: CGContext)\n    {\n        guard let xAxis = self.axis as? XAxis else { return }\n        \n        if !xAxis.isEnabled || !xAxis.isDrawAxisLineEnabled\n        {\n            return\n        }\n        \n        context.saveGState()\n        \n        context.setStrokeColor(xAxis.axisLineColor.cgColor)\n        context.setLineWidth(xAxis.axisLineWidth)\n        if xAxis.axisLineDashLengths != nil\n        {\n            context.setLineDash(phase: xAxis.axisLineDashPhase, lengths: xAxis.axisLineDashLengths)\n        }\n        else\n        {\n            context.setLineDash(phase: 0.0, lengths: [])\n        }\n        \n        if xAxis.labelPosition == .top\n            || xAxis.labelPosition == .topInside\n            || xAxis.labelPosition == .bothSided\n        {\n            _axisLineSegmentsBuffer[0].x = viewPortHandler.contentLeft\n            _axisLineSegmentsBuffer[0].y = viewPortHandler.contentTop\n            _axisLineSegmentsBuffer[1].x = viewPortHandler.contentRight\n            _axisLineSegmentsBuffer[1].y = viewPortHandler.contentTop\n            context.strokeLineSegments(between: _axisLineSegmentsBuffer)\n        }\n        \n        if xAxis.labelPosition == .bottom\n            || xAxis.labelPosition == .bottomInside\n            || xAxis.labelPosition == .bothSided\n        {\n            _axisLineSegmentsBuffer[0].x = viewPortHandler.contentLeft\n            _axisLineSegmentsBuffer[0].y = viewPortHandler.contentBottom\n            _axisLineSegmentsBuffer[1].x = viewPortHandler.contentRight\n            _axisLineSegmentsBuffer[1].y = viewPortHandler.contentBottom\n            context.strokeLineSegments(between: _axisLineSegmentsBuffer)\n        }\n        \n        context.restoreGState()\n    }\n    \n    /// draws the x-labels on the specified y-position\n    @objc open func drawLabels(context: CGContext, pos: CGFloat, anchor: CGPoint)\n    {\n        guard\n            let xAxis = self.axis as? XAxis,\n            let transformer = self.transformer\n            else { return }\n        \n        let paraStyle = NSParagraphStyle.default.mutableCopy() as! NSMutableParagraphStyle\n        paraStyle.alignment = .center\n        \n        let labelAttrs: [NSAttributedString.Key : Any] = [\n            .font: xAxis.labelFont,\n            .foregroundColor: xAxis.labelTextColor,\n            .paragraphStyle: paraStyle\n        ]\n        let labelRotationAngleRadians = xAxis.labelRotationAngle.DEG2RAD\n        \n        let centeringEnabled = xAxis.isCenterAxisLabelsEnabled\n\n        let valueToPixelMatrix = transformer.valueToPixelMatrix\n        \n        var position = CGPoint(x: 0.0, y: 0.0)\n        \n        var labelMaxSize = CGSize()\n        \n        if xAxis.isWordWrapEnabled\n        {\n            labelMaxSize.width = xAxis.wordWrapWidthPercent * valueToPixelMatrix.a\n        }\n        \n        let entries = xAxis.entries\n        \n        for i in stride(from: 0, to: entries.count, by: 1)\n        {\n            if centeringEnabled\n            {\n                position.x = CGFloat(xAxis.centeredEntries[i])\n            }\n            else\n            {\n                position.x = CGFloat(entries[i])\n            }\n            \n            position.y = 0.0\n            position = position.applying(valueToPixelMatrix)\n            \n            if viewPortHandler.isInBoundsX(position.x)\n            {\n                let label = xAxis.valueFormatter?.stringForValue(xAxis.entries[i], axis: xAxis) ?? \"\"\n\n                let labelns = label as NSString\n                \n                if xAxis.isAvoidFirstLastClippingEnabled\n                {\n                    // avoid clipping of the last\n                    if i == xAxis.entryCount - 1 && xAxis.entryCount > 1\n                    {\n                        let width = labelns.boundingRect(with: labelMaxSize, options: .usesLineFragmentOrigin, attributes: labelAttrs, context: nil).size.width\n                        \n                        if width > viewPortHandler.offsetRight * 2.0\n                            && position.x + width > viewPortHandler.chartWidth\n                        {\n                            position.x -= width / 2.0\n                        }\n                    }\n                    else if i == 0\n                    { // avoid clipping of the first\n                        let width = labelns.boundingRect(with: labelMaxSize, options: .usesLineFragmentOrigin, attributes: labelAttrs, context: nil).size.width\n                        position.x += width / 2.0\n                    }\n                }\n                \n                drawLabel(context: context,\n                          formattedLabel: label,\n                          x: position.x,\n                          y: pos,\n                          attributes: labelAttrs,\n                          constrainedToSize: labelMaxSize,\n                          anchor: anchor,\n                          angleRadians: labelRotationAngleRadians)\n            }\n        }\n    }\n    \n    @objc open func drawLabel(\n        context: CGContext,\n        formattedLabel: String,\n        x: CGFloat,\n        y: CGFloat,\n        attributes: [NSAttributedString.Key : Any],\n        constrainedToSize: CGSize,\n        anchor: CGPoint,\n        angleRadians: CGFloat)\n    {\n        ChartUtils.drawMultilineText(\n            context: context,\n            text: formattedLabel,\n            point: CGPoint(x: x, y: y),\n            attributes: attributes,\n            constrainedToSize: constrainedToSize,\n            anchor: anchor,\n            angleRadians: angleRadians)\n    }\n    \n    open override func renderGridLines(context: CGContext)\n    {\n        guard\n            let xAxis = self.axis as? XAxis,\n            let transformer = self.transformer\n            else { return }\n        \n        if !xAxis.isDrawGridLinesEnabled || !xAxis.isEnabled\n        {\n            return\n        }\n        \n        context.saveGState()\n        defer { context.restoreGState() }\n        context.clip(to: self.gridClippingRect)\n        \n        context.setShouldAntialias(xAxis.gridAntialiasEnabled)\n        context.setStrokeColor(xAxis.gridColor.cgColor)\n        context.setLineWidth(xAxis.gridLineWidth)\n        context.setLineCap(xAxis.gridLineCap)\n        \n        if xAxis.gridLineDashLengths != nil\n        {\n            context.setLineDash(phase: xAxis.gridLineDashPhase, lengths: xAxis.gridLineDashLengths)\n        }\n        else\n        {\n            context.setLineDash(phase: 0.0, lengths: [])\n        }\n        \n        let valueToPixelMatrix = transformer.valueToPixelMatrix\n        \n        var position = CGPoint(x: 0.0, y: 0.0)\n        \n        let entries = xAxis.entries\n        \n        for i in stride(from: 0, to: entries.count, by: 1)\n        {\n            position.x = CGFloat(entries[i])\n            position.y = position.x\n            position = position.applying(valueToPixelMatrix)\n            \n            drawGridLine(context: context, x: position.x, y: position.y)\n        }\n    }\n    \n    @objc open var gridClippingRect: CGRect\n    {\n        var contentRect = viewPortHandler.contentRect\n        let dx = self.axis?.gridLineWidth ?? 0.0\n        contentRect.origin.x -= dx / 2.0\n        contentRect.size.width += dx\n        return contentRect\n    }\n    \n    @objc open func drawGridLine(context: CGContext, x: CGFloat, y: CGFloat)\n    {\n        if x >= viewPortHandler.offsetLeft\n            && x <= viewPortHandler.chartWidth\n        {\n            context.beginPath()\n            context.move(to: CGPoint(x: x, y: viewPortHandler.contentTop))\n            context.addLine(to: CGPoint(x: x, y: viewPortHandler.contentBottom))\n            context.strokePath()\n        }\n    }\n    \n    open override func renderLimitLines(context: CGContext)\n    {\n        guard\n            let xAxis = self.axis as? XAxis,\n            let transformer = self.transformer,\n            !xAxis.limitLines.isEmpty\n            else { return }\n        \n        let trans = transformer.valueToPixelMatrix\n        \n        var position = CGPoint(x: 0.0, y: 0.0)\n        \n        for l in xAxis.limitLines where l.isEnabled\n        {\n            context.saveGState()\n            defer { context.restoreGState() }\n            \n            var clippingRect = viewPortHandler.contentRect\n            clippingRect.origin.x -= l.lineWidth / 2.0\n            clippingRect.size.width += l.lineWidth\n            context.clip(to: clippingRect)\n            \n            position.x = CGFloat(l.limit)\n            position.y = 0.0\n            position = position.applying(trans)\n            \n            renderLimitLineLine(context: context, limitLine: l, position: position)\n            renderLimitLineLabel(context: context, limitLine: l, position: position, yOffset: 2.0 + l.yOffset)\n        }\n    }\n    \n    @objc open func renderLimitLineLine(context: CGContext, limitLine: ChartLimitLine, position: CGPoint)\n    {\n        \n        context.beginPath()\n        context.move(to: CGPoint(x: position.x, y: viewPortHandler.contentTop))\n        context.addLine(to: CGPoint(x: position.x, y: viewPortHandler.contentBottom))\n        \n        context.setStrokeColor(limitLine.lineColor.cgColor)\n        context.setLineWidth(limitLine.lineWidth)\n        if limitLine.lineDashLengths != nil\n        {\n            context.setLineDash(phase: limitLine.lineDashPhase, lengths: limitLine.lineDashLengths!)\n        }\n        else\n        {\n            context.setLineDash(phase: 0.0, lengths: [])\n        }\n        \n        context.strokePath()\n    }\n    \n    @objc open func renderLimitLineLabel(context: CGContext, limitLine: ChartLimitLine, position: CGPoint, yOffset: CGFloat)\n    {\n        \n        let label = limitLine.label\n        guard limitLine.drawLabelEnabled, !label.isEmpty else { return }\n\n        let labelLineHeight = limitLine.valueFont.lineHeight\n\n        let xOffset: CGFloat = limitLine.lineWidth + limitLine.xOffset\n        let attributes: [NSAttributedString.Key : Any] = [\n            .font : limitLine.valueFont,\n            .foregroundColor : limitLine.valueTextColor\n        ]\n\n        let (point, align): (CGPoint, NSTextAlignment)\n        switch limitLine.labelPosition {\n        case .topRight:\n            point = CGPoint(\n                x: position.x + xOffset,\n                y: viewPortHandler.contentTop + yOffset\n            )\n            align = .left\n\n        case .bottomRight:\n            point = CGPoint(\n                x: position.x + xOffset,\n                y: viewPortHandler.contentBottom - labelLineHeight - yOffset\n            )\n            align = .left\n\n        case .topLeft:\n            point = CGPoint(\n                x: position.x - xOffset,\n                y: viewPortHandler.contentTop + yOffset\n            )\n            align = .right\n\n        case .bottomLeft:\n            point = CGPoint(\n                x: position.x - xOffset,\n                y: viewPortHandler.contentBottom - labelLineHeight - yOffset\n            )\n            align = .right\n        }\n\n        ChartUtils.drawText(\n            context: context,\n            text: label,\n            point: point,\n            align: align,\n            attributes: attributes\n        )\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift",
    "content": "//\n//  XAxisRendererHorizontalBarChart.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nopen class XAxisRendererHorizontalBarChart: XAxisRenderer\n{\n    internal weak var chart: BarChartView?\n    \n    @objc public init(viewPortHandler: ViewPortHandler, xAxis: XAxis?, transformer: Transformer?, chart: BarChartView)\n    {\n        super.init(viewPortHandler: viewPortHandler, xAxis: xAxis, transformer: transformer)\n        \n        self.chart = chart\n    }\n    \n    open override func computeAxis(min: Double, max: Double, inverted: Bool)\n    {\n        var min = min, max = max\n        \n        if let transformer = self.transformer\n        {\n            // calculate the starting and entry point of the y-labels (depending on\n            // zoom / contentrect bounds)\n            if viewPortHandler.contentWidth > 10 && !viewPortHandler.isFullyZoomedOutY\n            {\n                let p1 = transformer.valueForTouchPoint(CGPoint(x: viewPortHandler.contentLeft, y: viewPortHandler.contentBottom))\n                let p2 = transformer.valueForTouchPoint(CGPoint(x: viewPortHandler.contentLeft, y: viewPortHandler.contentTop))\n                \n                if inverted\n                {\n                    min = Double(p2.y)\n                    max = Double(p1.y)\n                }\n                else\n                {\n                    min = Double(p1.y)\n                    max = Double(p2.y)\n                }\n            }\n        }\n        \n        computeAxisValues(min: min, max: max)\n    }\n    \n    open override func computeSize()\n    {\n        guard let\n            xAxis = self.axis as? XAxis\n            else { return }\n       \n        let longest = xAxis.getLongestLabel() as NSString\n        \n        let labelSize = longest.size(withAttributes: [NSAttributedString.Key.font: xAxis.labelFont])\n        \n        let labelWidth = floor(labelSize.width + xAxis.xOffset * 3.5)\n        let labelHeight = labelSize.height\n        let labelRotatedSize = CGSize(width: labelSize.width, height: labelHeight).rotatedBy(degrees: xAxis.labelRotationAngle)\n\n        xAxis.labelWidth = labelWidth\n        xAxis.labelHeight = labelHeight\n        xAxis.labelRotatedWidth = round(labelRotatedSize.width + xAxis.xOffset * 3.5)\n        xAxis.labelRotatedHeight = round(labelRotatedSize.height)\n    }\n\n    open override func renderAxisLabels(context: CGContext)\n    {\n        guard\n            let xAxis = self.axis as? XAxis\n            else { return }\n        \n        if !xAxis.isEnabled || !xAxis.isDrawLabelsEnabled || chart?.data === nil\n        {\n            return\n        }\n        \n        let xoffset = xAxis.xOffset\n        \n        if xAxis.labelPosition == .top\n        {\n            drawLabels(context: context, pos: viewPortHandler.contentRight + xoffset, anchor: CGPoint(x: 0.0, y: 0.5))\n        }\n        else if xAxis.labelPosition == .topInside\n        {\n            drawLabels(context: context, pos: viewPortHandler.contentRight - xoffset, anchor: CGPoint(x: 1.0, y: 0.5))\n        }\n        else if xAxis.labelPosition == .bottom\n        {\n            drawLabels(context: context, pos: viewPortHandler.contentLeft - xoffset, anchor: CGPoint(x: 1.0, y: 0.5))\n        }\n        else if xAxis.labelPosition == .bottomInside\n        {\n            drawLabels(context: context, pos: viewPortHandler.contentLeft + xoffset, anchor: CGPoint(x: 0.0, y: 0.5))\n        }\n        else\n        { // BOTH SIDED\n            drawLabels(context: context, pos: viewPortHandler.contentRight + xoffset, anchor: CGPoint(x: 0.0, y: 0.5))\n            drawLabels(context: context, pos: viewPortHandler.contentLeft - xoffset, anchor: CGPoint(x: 1.0, y: 0.5))\n        }\n    }\n\n    /// draws the x-labels on the specified y-position\n    open override func drawLabels(context: CGContext, pos: CGFloat, anchor: CGPoint)\n    {\n        guard\n            let xAxis = self.axis as? XAxis,\n            let transformer = self.transformer\n            else { return }\n        \n        let labelFont = xAxis.labelFont\n        let labelTextColor = xAxis.labelTextColor\n        let labelRotationAngleRadians = xAxis.labelRotationAngle.DEG2RAD\n        \n        let centeringEnabled = xAxis.isCenterAxisLabelsEnabled\n        \n        // pre allocate to save performance (dont allocate in loop)\n        var position = CGPoint(x: 0.0, y: 0.0)\n        \n        for i in stride(from: 0, to: xAxis.entryCount, by: 1)\n        {\n            // only fill x values\n            \n            position.x = 0.0\n            \n            if centeringEnabled\n            {\n                position.y = CGFloat(xAxis.centeredEntries[i])\n            }\n            else\n            {\n                position.y = CGFloat(xAxis.entries[i])\n            }\n            \n            transformer.pointValueToPixel(&position)\n            \n            if viewPortHandler.isInBoundsY(position.y)\n            {\n                if let label = xAxis.valueFormatter?.stringForValue(xAxis.entries[i], axis: xAxis)\n                {\n                    drawLabel(\n                        context: context,\n                        formattedLabel: label,\n                        x: pos,\n                        y: position.y,\n                        attributes: [NSAttributedString.Key.font: labelFont, NSAttributedString.Key.foregroundColor: labelTextColor],\n                        anchor: anchor,\n                        angleRadians: labelRotationAngleRadians)\n                }\n            }\n        }\n    }\n    \n    @objc open func drawLabel(\n        context: CGContext,\n        formattedLabel: String,\n        x: CGFloat,\n        y: CGFloat,\n        attributes: [NSAttributedString.Key : Any],\n        anchor: CGPoint,\n        angleRadians: CGFloat)\n    {\n        ChartUtils.drawText(\n            context: context,\n            text: formattedLabel,\n            point: CGPoint(x: x, y: y),\n            attributes: attributes,\n            anchor: anchor,\n            angleRadians: angleRadians)\n    }\n    \n    open override var gridClippingRect: CGRect\n    {\n        var contentRect = viewPortHandler.contentRect\n        let dy = self.axis?.gridLineWidth ?? 0.0\n        contentRect.origin.y -= dy / 2.0\n        contentRect.size.height += dy\n        return contentRect\n    }\n    \n    private var _gridLineSegmentsBuffer = [CGPoint](repeating: CGPoint(), count: 2)\n    \n    open override func drawGridLine(context: CGContext, x: CGFloat, y: CGFloat)\n    {\n        if viewPortHandler.isInBoundsY(y)\n        {\n            context.beginPath()\n            context.move(to: CGPoint(x: viewPortHandler.contentLeft, y: y))\n            context.addLine(to: CGPoint(x: viewPortHandler.contentRight, y: y))\n            context.strokePath()\n        }\n    }\n    \n    open override func renderAxisLine(context: CGContext)\n    {\n        guard let xAxis = self.axis as? XAxis else { return }\n        \n        if !xAxis.isEnabled || !xAxis.isDrawAxisLineEnabled\n        {\n            return\n        }\n        \n        context.saveGState()\n        \n        context.setStrokeColor(xAxis.axisLineColor.cgColor)\n        context.setLineWidth(xAxis.axisLineWidth)\n        if xAxis.axisLineDashLengths != nil\n        {\n            context.setLineDash(phase: xAxis.axisLineDashPhase, lengths: xAxis.axisLineDashLengths)\n        }\n        else\n        {\n            context.setLineDash(phase: 0.0, lengths: [])\n        }\n        \n        if xAxis.labelPosition == .top ||\n            xAxis.labelPosition == .topInside ||\n            xAxis.labelPosition == .bothSided\n        {\n            context.beginPath()\n            context.move(to: CGPoint(x: viewPortHandler.contentRight, y: viewPortHandler.contentTop))\n            context.addLine(to: CGPoint(x: viewPortHandler.contentRight, y: viewPortHandler.contentBottom))\n            context.strokePath()\n        }\n        \n        if xAxis.labelPosition == .bottom ||\n            xAxis.labelPosition == .bottomInside ||\n            xAxis.labelPosition == .bothSided\n        {\n            context.beginPath()\n            context.move(to: CGPoint(x: viewPortHandler.contentLeft, y: viewPortHandler.contentTop))\n            context.addLine(to: CGPoint(x: viewPortHandler.contentLeft, y: viewPortHandler.contentBottom))\n            context.strokePath()\n        }\n        \n        context.restoreGState()\n    }\n    \n    open override func renderLimitLines(context: CGContext)\n    {\n        guard\n            let xAxis = self.axis as? XAxis,\n            let transformer = self.transformer\n            else { return }\n        \n        let limitLines = xAxis.limitLines\n        \n        if limitLines.count == 0\n        {\n            return\n        }\n        \n        let trans = transformer.valueToPixelMatrix\n        \n        var position = CGPoint(x: 0.0, y: 0.0)\n        \n        for i in 0 ..< limitLines.count\n        {\n            let l = limitLines[i]\n            \n            if !l.isEnabled\n            {\n                continue\n            }\n            \n            context.saveGState()\n            defer { context.restoreGState() }\n            \n            var clippingRect = viewPortHandler.contentRect\n            clippingRect.origin.y -= l.lineWidth / 2.0\n            clippingRect.size.height += l.lineWidth\n            context.clip(to: clippingRect)\n\n            position.x = 0.0\n            position.y = CGFloat(l.limit)\n            position = position.applying(trans)\n            \n            context.beginPath()\n            context.move(to: CGPoint(x: viewPortHandler.contentLeft, y: position.y))\n            context.addLine(to: CGPoint(x: viewPortHandler.contentRight, y: position.y))\n            \n            context.setStrokeColor(l.lineColor.cgColor)\n            context.setLineWidth(l.lineWidth)\n            if l.lineDashLengths != nil\n            {\n                context.setLineDash(phase: l.lineDashPhase, lengths: l.lineDashLengths!)\n            }\n            else\n            {\n                context.setLineDash(phase: 0.0, lengths: [])\n            }\n            \n            context.strokePath()\n            \n            let label = l.label\n            \n            // if drawing the limit-value label is enabled\n            if l.drawLabelEnabled && label.count > 0\n            {\n                let labelLineHeight = l.valueFont.lineHeight\n                \n                let xOffset: CGFloat = 4.0 + l.xOffset\n                let yOffset: CGFloat = l.lineWidth + labelLineHeight + l.yOffset\n                \n                if l.labelPosition == .topRight\n                {\n                    ChartUtils.drawText(context: context,\n                        text: label,\n                        point: CGPoint(\n                            x: viewPortHandler.contentRight - xOffset,\n                            y: position.y - yOffset),\n                        align: .right,\n                        attributes: [NSAttributedString.Key.font: l.valueFont, NSAttributedString.Key.foregroundColor: l.valueTextColor])\n                }\n                else if l.labelPosition == .bottomRight\n                {\n                    ChartUtils.drawText(context: context,\n                        text: label,\n                        point: CGPoint(\n                            x: viewPortHandler.contentRight - xOffset,\n                            y: position.y + yOffset - labelLineHeight),\n                        align: .right,\n                        attributes: [NSAttributedString.Key.font: l.valueFont, NSAttributedString.Key.foregroundColor: l.valueTextColor])\n                }\n                else if l.labelPosition == .topLeft\n                {\n                    ChartUtils.drawText(context: context,\n                        text: label,\n                        point: CGPoint(\n                            x: viewPortHandler.contentLeft + xOffset,\n                            y: position.y - yOffset),\n                        align: .left,\n                        attributes: [NSAttributedString.Key.font: l.valueFont, NSAttributedString.Key.foregroundColor: l.valueTextColor])\n                }\n                else\n                {\n                    ChartUtils.drawText(context: context,\n                        text: label,\n                        point: CGPoint(\n                            x: viewPortHandler.contentLeft + xOffset,\n                            y: position.y + yOffset - labelLineHeight),\n                        align: .left,\n                        attributes: [NSAttributedString.Key.font: l.valueFont, NSAttributedString.Key.foregroundColor: l.valueTextColor])\n                }\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift",
    "content": "//\n//  XAxisRendererRadarChart.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nopen class XAxisRendererRadarChart: XAxisRenderer\n{\n    @objc open weak var chart: RadarChartView?\n    \n    @objc public init(viewPortHandler: ViewPortHandler, xAxis: XAxis?, chart: RadarChartView)\n    {\n        super.init(viewPortHandler: viewPortHandler, xAxis: xAxis, transformer: nil)\n        \n        self.chart = chart\n    }\n    \n    open override func renderAxisLabels(context: CGContext)\n    {\n        guard let\n            xAxis = axis as? XAxis,\n            let chart = chart\n            else { return }\n        \n        if !xAxis.isEnabled || !xAxis.isDrawLabelsEnabled\n        {\n            return\n        }\n        \n        let labelFont = xAxis.labelFont\n        let labelTextColor = xAxis.labelTextColor\n        let labelRotationAngleRadians = xAxis.labelRotationAngle.RAD2DEG\n        let drawLabelAnchor = CGPoint(x: 0.5, y: 0.25)\n        \n        let sliceangle = chart.sliceAngle\n        \n        // calculate the factor that is needed for transforming the value to pixels\n        let factor = chart.factor\n        \n        let center = chart.centerOffsets\n        \n        for i in stride(from: 0, to: chart.data?.maxEntryCountSet?.entryCount ?? 0, by: 1)\n        {\n            \n            let label = xAxis.valueFormatter?.stringForValue(Double(i), axis: xAxis) ?? \"\"\n            \n            let angle = (sliceangle * CGFloat(i) + chart.rotationAngle).truncatingRemainder(dividingBy: 360.0)\n            \n            let p = center.moving(distance: CGFloat(chart.yRange) * factor + xAxis.labelRotatedWidth / 2.0, atAngle: angle)\n            \n            drawLabel(context: context,\n                      formattedLabel: label,\n                      x: p.x,\n                      y: p.y - xAxis.labelRotatedHeight / 2.0,\n                      attributes: [NSAttributedString.Key.font: labelFont, NSAttributedString.Key.foregroundColor: labelTextColor],\n                      anchor: drawLabelAnchor,\n                      angleRadians: labelRotationAngleRadians)\n        }\n    }\n    \n    @objc open func drawLabel(\n        context: CGContext,\n        formattedLabel: String,\n        x: CGFloat,\n        y: CGFloat,\n        attributes: [NSAttributedString.Key : Any],\n        anchor: CGPoint,\n        angleRadians: CGFloat)\n    {\n        ChartUtils.drawText(\n            context: context,\n            text: formattedLabel,\n            point: CGPoint(x: x, y: y),\n            attributes: attributes,\n            anchor: anchor,\n            angleRadians: angleRadians)\n    }\n    \n    open override func renderLimitLines(context: CGContext)\n    {\n        /// XAxis LimitLines on RadarChart not yet supported.\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift",
    "content": "//\n//  YAxisRenderer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n#if canImport(UIKit)\n    import UIKit\n#endif\n\n#if canImport(Cocoa)\nimport Cocoa\n#endif\n\n@objc(ChartYAxisRenderer)\nopen class YAxisRenderer: AxisRendererBase\n{\n    @objc public init(viewPortHandler: ViewPortHandler, yAxis: YAxis?, transformer: Transformer?)\n    {\n        super.init(viewPortHandler: viewPortHandler, transformer: transformer, axis: yAxis)\n    }\n    \n    /// draws the y-axis labels to the screen\n    open override func renderAxisLabels(context: CGContext)\n    {\n        guard let yAxis = self.axis as? YAxis else { return }\n        \n        if !yAxis.isEnabled || !yAxis.isDrawLabelsEnabled\n        {\n            return\n        }\n        \n        let xoffset = yAxis.xOffset\n        let yoffset = yAxis.labelFont.lineHeight / 2.5 + yAxis.yOffset\n        \n        let dependency = yAxis.axisDependency\n        let labelPosition = yAxis.labelPosition\n        \n        var xPos = CGFloat(0.0)\n        \n        var textAlign: NSTextAlignment\n        \n        if dependency == .left\n        {\n            if labelPosition == .outsideChart\n            {\n                textAlign = .right\n                xPos = viewPortHandler.offsetLeft - xoffset\n            }\n            else\n            {\n                textAlign = .left\n                xPos = viewPortHandler.offsetLeft + xoffset\n            }\n            \n        }\n        else\n        {\n            if labelPosition == .outsideChart\n            {\n                textAlign = .left\n                xPos = viewPortHandler.contentRight + xoffset\n            }\n            else\n            {\n                textAlign = .right\n                xPos = viewPortHandler.contentRight - xoffset\n            }\n        }\n        \n        drawYLabels(\n            context: context,\n            fixedPosition: xPos,\n            positions: transformedPositions(),\n            offset: yoffset - yAxis.labelFont.lineHeight,\n            textAlign: textAlign)\n    }\n    \n    open override func renderAxisLine(context: CGContext)\n    {\n        guard let yAxis = self.axis as? YAxis else { return }\n        \n        if !yAxis.isEnabled || !yAxis.drawAxisLineEnabled\n        {\n            return\n        }\n        \n        context.saveGState()\n        \n        context.setStrokeColor(yAxis.axisLineColor.cgColor)\n        context.setLineWidth(yAxis.axisLineWidth)\n        if yAxis.axisLineDashLengths != nil\n        {\n            context.setLineDash(phase: yAxis.axisLineDashPhase, lengths: yAxis.axisLineDashLengths)\n        }\n        else\n        {\n            context.setLineDash(phase: 0.0, lengths: [])\n        }\n        \n        if yAxis.axisDependency == .left\n        {\n            context.beginPath()\n            context.move(to: CGPoint(x: viewPortHandler.contentLeft, y: viewPortHandler.contentTop))\n            context.addLine(to: CGPoint(x: viewPortHandler.contentLeft, y: viewPortHandler.contentBottom))\n            context.strokePath()\n        }\n        else\n        {\n            context.beginPath()\n            context.move(to: CGPoint(x: viewPortHandler.contentRight, y: viewPortHandler.contentTop))\n            context.addLine(to: CGPoint(x: viewPortHandler.contentRight, y: viewPortHandler.contentBottom))\n            context.strokePath()\n        }\n        \n        context.restoreGState()\n    }\n    \n    /// draws the y-labels on the specified x-position\n    open func drawYLabels(\n        context: CGContext,\n        fixedPosition: CGFloat,\n        positions: [CGPoint],\n        offset: CGFloat,\n        textAlign: NSTextAlignment)\n    {\n        guard\n            let yAxis = self.axis as? YAxis\n            else { return }\n        \n        let labelFont = yAxis.labelFont\n        let labelTextColor = yAxis.labelTextColor\n        \n        let from = yAxis.isDrawBottomYLabelEntryEnabled ? 0 : 1\n        let to = yAxis.isDrawTopYLabelEntryEnabled ? yAxis.entryCount : (yAxis.entryCount - 1)\n        \n        let xOffset = yAxis.labelXOffset\n        \n        for i in stride(from: from, to: to, by: 1)\n        {\n            let text = yAxis.getFormattedLabel(i)\n            \n            ChartUtils.drawText(\n                context: context,\n                text: text,\n                point: CGPoint(x: fixedPosition + xOffset, y: positions[i].y + offset),\n                align: textAlign,\n                attributes: [.font: labelFont, .foregroundColor: labelTextColor]\n            )\n        }\n    }\n    \n    open override func renderGridLines(context: CGContext)\n    {\n        guard let\n            yAxis = self.axis as? YAxis\n            else { return }\n        \n        if !yAxis.isEnabled\n        {\n            return\n        }\n        \n        if yAxis.drawGridLinesEnabled\n        {\n            let positions = transformedPositions()\n            \n            context.saveGState()\n            defer { context.restoreGState() }\n            context.clip(to: self.gridClippingRect)\n            \n            context.setShouldAntialias(yAxis.gridAntialiasEnabled)\n            context.setStrokeColor(yAxis.gridColor.cgColor)\n            context.setLineWidth(yAxis.gridLineWidth)\n            context.setLineCap(yAxis.gridLineCap)\n            \n            if yAxis.gridLineDashLengths != nil\n            {\n                context.setLineDash(phase: yAxis.gridLineDashPhase, lengths: yAxis.gridLineDashLengths)\n                \n            }\n            else\n            {\n                context.setLineDash(phase: 0.0, lengths: [])\n            }\n            \n            // draw the grid\n            positions.forEach { drawGridLine(context: context, position: $0) }\n        }\n\n        if yAxis.drawZeroLineEnabled\n        {\n            // draw zero line\n            drawZeroLine(context: context)\n        }\n    }\n    \n    @objc open var gridClippingRect: CGRect\n    {\n        var contentRect = viewPortHandler.contentRect\n        let dy = self.axis?.gridLineWidth ?? 0.0\n        contentRect.origin.y -= dy / 2.0\n        contentRect.size.height += dy\n        return contentRect\n    }\n    \n    @objc open func drawGridLine(\n        context: CGContext,\n        position: CGPoint)\n    {\n        context.beginPath()\n        context.move(to: CGPoint(x: viewPortHandler.contentLeft, y: position.y))\n        context.addLine(to: CGPoint(x: viewPortHandler.contentRight, y: position.y))\n        context.strokePath()\n    }\n    \n    @objc open func transformedPositions() -> [CGPoint]\n    {\n        guard\n            let yAxis = self.axis as? YAxis,\n            let transformer = self.transformer\n            else { return [CGPoint]() }\n        \n        var positions = [CGPoint]()\n        positions.reserveCapacity(yAxis.entryCount)\n        \n        let entries = yAxis.entries\n        \n        for i in stride(from: 0, to: yAxis.entryCount, by: 1)\n        {\n            positions.append(CGPoint(x: 0.0, y: entries[i]))\n        }\n\n        transformer.pointValuesToPixel(&positions)\n        \n        return positions\n    }\n\n    /// Draws the zero line at the specified position.\n    @objc open func drawZeroLine(context: CGContext)\n    {\n        guard\n            let yAxis = self.axis as? YAxis,\n            let transformer = self.transformer,\n            let zeroLineColor = yAxis.zeroLineColor\n            else { return }\n        \n        context.saveGState()\n        defer { context.restoreGState() }\n        \n        var clippingRect = viewPortHandler.contentRect\n        clippingRect.origin.y -= yAxis.zeroLineWidth / 2.0\n        clippingRect.size.height += yAxis.zeroLineWidth\n        context.clip(to: clippingRect)\n\n        context.setStrokeColor(zeroLineColor.cgColor)\n        context.setLineWidth(yAxis.zeroLineWidth)\n        \n        let pos = transformer.pixelForValues(x: 0.0, y: 0.0)\n    \n        if yAxis.zeroLineDashLengths != nil\n        {\n            context.setLineDash(phase: yAxis.zeroLineDashPhase, lengths: yAxis.zeroLineDashLengths!)\n        }\n        else\n        {\n            context.setLineDash(phase: 0.0, lengths: [])\n        }\n        \n        context.move(to: CGPoint(x: viewPortHandler.contentLeft, y: pos.y))\n        context.addLine(to: CGPoint(x: viewPortHandler.contentRight, y: pos.y))\n        context.drawPath(using: CGPathDrawingMode.stroke)\n    }\n    \n    open override func renderLimitLines(context: CGContext)\n    {\n        guard\n            let yAxis = self.axis as? YAxis,\n            let transformer = self.transformer\n            else { return }\n        \n        let limitLines = yAxis.limitLines\n        \n        if limitLines.count == 0\n        {\n            return\n        }\n        \n        context.saveGState()\n        \n        let trans = transformer.valueToPixelMatrix\n        \n        var position = CGPoint(x: 0.0, y: 0.0)\n        \n        for i in 0 ..< limitLines.count\n        {\n            let l = limitLines[i]\n            \n            if !l.isEnabled\n            {\n                continue\n            }\n            \n            context.saveGState()\n            defer { context.restoreGState() }\n            \n            var clippingRect = viewPortHandler.contentRect\n            clippingRect.origin.y -= l.lineWidth / 2.0\n            clippingRect.size.height += l.lineWidth\n            context.clip(to: clippingRect)\n            \n            position.x = 0.0\n            position.y = CGFloat(l.limit)\n            position = position.applying(trans)\n            \n            context.beginPath()\n            context.move(to: CGPoint(x: viewPortHandler.contentLeft, y: position.y))\n            context.addLine(to: CGPoint(x: viewPortHandler.contentRight, y: position.y))\n            \n            context.setStrokeColor(l.lineColor.cgColor)\n            context.setLineWidth(l.lineWidth)\n            if l.lineDashLengths != nil\n            {\n                context.setLineDash(phase: l.lineDashPhase, lengths: l.lineDashLengths!)\n            }\n            else\n            {\n                context.setLineDash(phase: 0.0, lengths: [])\n            }\n            \n            context.strokePath()\n            \n            let label = l.label\n            \n            // if drawing the limit-value label is enabled\n            if l.drawLabelEnabled && label.count > 0\n            {\n                let labelLineHeight = l.valueFont.lineHeight\n                \n                let xOffset: CGFloat = 4.0 + l.xOffset\n                let yOffset: CGFloat = l.lineWidth + labelLineHeight + l.yOffset\n                \n                if l.labelPosition == .topRight\n                {\n                    ChartUtils.drawText(context: context,\n                        text: label,\n                        point: CGPoint(\n                            x: viewPortHandler.contentRight - xOffset,\n                            y: position.y - yOffset),\n                        align: .right,\n                        attributes: [NSAttributedString.Key.font: l.valueFont, NSAttributedString.Key.foregroundColor: l.valueTextColor])\n                }\n                else if l.labelPosition == .bottomRight\n                {\n                    ChartUtils.drawText(context: context,\n                        text: label,\n                        point: CGPoint(\n                            x: viewPortHandler.contentRight - xOffset,\n                            y: position.y + yOffset - labelLineHeight),\n                        align: .right,\n                        attributes: [NSAttributedString.Key.font: l.valueFont, NSAttributedString.Key.foregroundColor: l.valueTextColor])\n                }\n                else if l.labelPosition == .topLeft\n                {\n                    ChartUtils.drawText(context: context,\n                        text: label,\n                        point: CGPoint(\n                            x: viewPortHandler.contentLeft + xOffset,\n                            y: position.y - yOffset),\n                        align: .left,\n                        attributes: [NSAttributedString.Key.font: l.valueFont, NSAttributedString.Key.foregroundColor: l.valueTextColor])\n                }\n                else\n                {\n                    ChartUtils.drawText(context: context,\n                        text: label,\n                        point: CGPoint(\n                            x: viewPortHandler.contentLeft + xOffset,\n                            y: position.y + yOffset - labelLineHeight),\n                        align: .left,\n                        attributes: [NSAttributedString.Key.font: l.valueFont, NSAttributedString.Key.foregroundColor: l.valueTextColor])\n                }\n            }\n        }\n        \n        context.restoreGState()\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift",
    "content": "//\n//  YAxisRendererHorizontalBarChart.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nopen class YAxisRendererHorizontalBarChart: YAxisRenderer\n{\n    public override init(viewPortHandler: ViewPortHandler, yAxis: YAxis?, transformer: Transformer?)\n    {\n        super.init(viewPortHandler: viewPortHandler, yAxis: yAxis, transformer: transformer)\n    }\n\n    /// Computes the axis values.\n    open override func computeAxis(min: Double, max: Double, inverted: Bool)\n    {\n        guard let transformer = self.transformer else { return }\n        \n        var min = min, max = max\n        \n        // calculate the starting and entry point of the y-labels (depending on zoom / contentrect bounds)\n        if viewPortHandler.contentHeight > 10.0 && !viewPortHandler.isFullyZoomedOutX\n        {\n            let p1 = transformer.valueForTouchPoint(CGPoint(x: viewPortHandler.contentLeft, y: viewPortHandler.contentTop))\n            let p2 = transformer.valueForTouchPoint(CGPoint(x: viewPortHandler.contentRight, y: viewPortHandler.contentTop))\n            \n            if !inverted\n            {\n                min = Double(p1.x)\n                max = Double(p2.x)\n            }\n            else\n            {\n                min = Double(p2.x)\n                max = Double(p1.x)\n            }\n        }\n        \n        computeAxisValues(min: min, max: max)\n    }\n\n    /// draws the y-axis labels to the screen\n    open override func renderAxisLabels(context: CGContext)\n    {\n        guard let yAxis = axis as? YAxis else { return }\n        \n        if !yAxis.isEnabled || !yAxis.isDrawLabelsEnabled\n        {\n            return\n        }\n        \n        let lineHeight = yAxis.labelFont.lineHeight\n        let baseYOffset: CGFloat = 2.5\n        \n        let dependency = yAxis.axisDependency\n        let labelPosition = yAxis.labelPosition\n        \n        var yPos: CGFloat = 0.0\n        \n        if dependency == .left\n        {\n            if labelPosition == .outsideChart\n            {\n                yPos = viewPortHandler.contentTop - baseYOffset\n            }\n            else\n            {\n                yPos = viewPortHandler.contentTop - baseYOffset\n            }\n        }\n        else\n        {\n            if labelPosition == .outsideChart\n            {\n                yPos = viewPortHandler.contentBottom + lineHeight + baseYOffset\n            }\n            else\n            {\n                yPos = viewPortHandler.contentBottom + lineHeight + baseYOffset\n            }\n        }\n        \n        // For compatibility with Android code, we keep above calculation the same,\n        // And here we pull the line back up\n        yPos -= lineHeight\n        \n        drawYLabels(\n            context: context,\n            fixedPosition: yPos,\n            positions: transformedPositions(),\n            offset: yAxis.yOffset)\n    }\n    \n    open override func renderAxisLine(context: CGContext)\n    {\n        guard let yAxis = axis as? YAxis else { return }\n        \n        if !yAxis.isEnabled || !yAxis.drawAxisLineEnabled\n        {\n            return\n        }\n        \n        context.saveGState()\n        \n        context.setStrokeColor(yAxis.axisLineColor.cgColor)\n        context.setLineWidth(yAxis.axisLineWidth)\n        if yAxis.axisLineDashLengths != nil\n        {\n            context.setLineDash(phase: yAxis.axisLineDashPhase, lengths: yAxis.axisLineDashLengths)\n        }\n        else\n        {\n            context.setLineDash(phase: 0.0, lengths: [])\n        }\n\n        if yAxis.axisDependency == .left\n        {\n            context.beginPath()\n            context.move(to: CGPoint(x: viewPortHandler.contentLeft, y: viewPortHandler.contentTop))\n            context.addLine(to: CGPoint(x: viewPortHandler.contentRight, y: viewPortHandler.contentTop))\n            context.strokePath()\n        }\n        else\n        {\n            context.beginPath()\n            context.move(to: CGPoint(x: viewPortHandler.contentLeft, y: viewPortHandler.contentBottom))\n            context.addLine(to: CGPoint(x: viewPortHandler.contentRight, y: viewPortHandler.contentBottom))\n            context.strokePath()        }\n        \n        context.restoreGState()\n    }\n\n    /// draws the y-labels on the specified x-position\n    @objc open func drawYLabels(\n        context: CGContext,\n        fixedPosition: CGFloat,\n        positions: [CGPoint],\n        offset: CGFloat)\n    {\n        guard let\n            yAxis = axis as? YAxis\n            else { return }\n        \n        let labelFont = yAxis.labelFont\n        let labelTextColor = yAxis.labelTextColor\n        \n        let from = yAxis.isDrawBottomYLabelEntryEnabled ? 0 : 1\n        let to = yAxis.isDrawTopYLabelEntryEnabled ? yAxis.entryCount : (yAxis.entryCount - 1)\n        \n        let xOffset = yAxis.labelXOffset\n        \n        for i in stride(from: from, to: to, by: 1)\n        {\n            let text = yAxis.getFormattedLabel(i)\n            \n            ChartUtils.drawText(\n                context: context,\n                text: text,\n                point: CGPoint(\n                    x: positions[i].x, y:\n                    fixedPosition - offset + xOffset\n                ),\n                align: .center,\n                attributes: [NSAttributedString.Key.font: labelFont, NSAttributedString.Key.foregroundColor: labelTextColor])\n        }\n    }\n    \n    open override var gridClippingRect: CGRect\n    {\n        var contentRect = viewPortHandler.contentRect\n        let dx = self.axis?.gridLineWidth ?? 0.0\n        contentRect.origin.x -= dx / 2.0\n        contentRect.size.width += dx\n        return contentRect\n    }\n    \n    open override func drawGridLine(\n        context: CGContext,\n        position: CGPoint)\n    {\n        context.beginPath()\n        context.move(to: CGPoint(x: position.x, y: viewPortHandler.contentTop))\n        context.addLine(to: CGPoint(x: position.x, y: viewPortHandler.contentBottom))\n        context.strokePath()\n    }\n    \n    open override func transformedPositions() -> [CGPoint]\n    {\n        guard\n            let yAxis = self.axis as? YAxis,\n            let transformer = self.transformer\n            else { return [CGPoint]() }\n        \n        var positions = [CGPoint]()\n        positions.reserveCapacity(yAxis.entryCount)\n        \n        let entries = yAxis.entries\n        \n        for i in stride(from: 0, to: yAxis.entryCount, by: 1)\n        {\n            positions.append(CGPoint(x: entries[i], y: 0.0))\n        }\n        \n        transformer.pointValuesToPixel(&positions)\n        \n        return positions\n    }\n    \n    /// Draws the zero line at the specified position.\n    open override func drawZeroLine(context: CGContext)\n    {\n        guard\n            let yAxis = self.axis as? YAxis,\n            let transformer = self.transformer,\n            let zeroLineColor = yAxis.zeroLineColor\n            else { return }\n        \n        context.saveGState()\n        defer { context.restoreGState() }\n        \n        var clippingRect = viewPortHandler.contentRect\n        clippingRect.origin.x -= yAxis.zeroLineWidth / 2.0\n        clippingRect.size.width += yAxis.zeroLineWidth\n        context.clip(to: clippingRect)\n        \n        context.setStrokeColor(zeroLineColor.cgColor)\n        context.setLineWidth(yAxis.zeroLineWidth)\n        \n        let pos = transformer.pixelForValues(x: 0.0, y: 0.0)\n        \n        if yAxis.zeroLineDashLengths != nil\n        {\n            context.setLineDash(phase: yAxis.zeroLineDashPhase, lengths: yAxis.zeroLineDashLengths!)\n        }\n        else\n        {\n            context.setLineDash(phase: 0.0, lengths: [])\n        }\n        \n        context.move(to: CGPoint(x: pos.x - 1.0, y: viewPortHandler.contentTop))\n        context.addLine(to: CGPoint(x: pos.x - 1.0, y: viewPortHandler.contentBottom))\n        context.drawPath(using: CGPathDrawingMode.stroke)\n    }\n    \n    private var _limitLineSegmentsBuffer = [CGPoint](repeating: CGPoint(), count: 2)\n    \n    open override func renderLimitLines(context: CGContext)\n    {\n        guard\n            let yAxis = axis as? YAxis,\n            let transformer = self.transformer\n            else { return }\n        \n        let limitLines = yAxis.limitLines\n\n        if limitLines.count <= 0\n        {\n            return\n        }\n        \n        context.saveGState()\n        \n        let trans = transformer.valueToPixelMatrix\n        \n        var position = CGPoint(x: 0.0, y: 0.0)\n        \n        for i in 0 ..< limitLines.count\n        {\n            let l = limitLines[i]\n            \n            if !l.isEnabled\n            {\n                continue\n            }\n            \n            context.saveGState()\n            defer { context.restoreGState() }\n\n            var clippingRect = viewPortHandler.contentRect\n            clippingRect.origin.x -= l.lineWidth / 2.0\n            clippingRect.size.width += l.lineWidth\n            context.clip(to: clippingRect)\n            \n            position.x = CGFloat(l.limit)\n            position.y = 0.0\n            position = position.applying(trans)\n            \n            context.beginPath()\n            context.move(to: CGPoint(x: position.x, y: viewPortHandler.contentTop))\n            context.addLine(to: CGPoint(x: position.x, y: viewPortHandler.contentBottom))\n            \n            context.setStrokeColor(l.lineColor.cgColor)\n            context.setLineWidth(l.lineWidth)\n            if l.lineDashLengths != nil\n            {\n                context.setLineDash(phase: l.lineDashPhase, lengths: l.lineDashLengths!)\n            }\n            else\n            {\n                context.setLineDash(phase: 0.0, lengths: [])\n            }\n            \n            context.strokePath()\n            \n            let label = l.label\n\n            // if drawing the limit-value label is enabled\n            if l.drawLabelEnabled && label.count > 0\n            {\n                let labelLineHeight = l.valueFont.lineHeight\n                \n                let xOffset: CGFloat = l.lineWidth + l.xOffset\n                let yOffset: CGFloat = 2.0 + l.yOffset\n\n                if l.labelPosition == .topRight\n                {\n                    ChartUtils.drawText(context: context,\n                        text: label,\n                        point: CGPoint(\n                            x: position.x + xOffset,\n                            y: viewPortHandler.contentTop + yOffset),\n                        align: .left,\n                        attributes: [NSAttributedString.Key.font: l.valueFont, NSAttributedString.Key.foregroundColor: l.valueTextColor])\n                }\n                else if l.labelPosition == .bottomRight\n                {\n                    ChartUtils.drawText(context: context,\n                        text: label,\n                        point: CGPoint(\n                            x: position.x + xOffset,\n                            y: viewPortHandler.contentBottom - labelLineHeight - yOffset),\n                        align: .left,\n                        attributes: [NSAttributedString.Key.font: l.valueFont, NSAttributedString.Key.foregroundColor: l.valueTextColor])\n                }\n                else if l.labelPosition == .topLeft\n                {\n                    ChartUtils.drawText(context: context,\n                        text: label,\n                        point: CGPoint(\n                            x: position.x - xOffset,\n                            y: viewPortHandler.contentTop + yOffset),\n                        align: .right,\n                        attributes: [NSAttributedString.Key.font: l.valueFont, NSAttributedString.Key.foregroundColor: l.valueTextColor])\n                }\n                else\n                {\n                    ChartUtils.drawText(context: context,\n                        text: label,\n                        point: CGPoint(\n                            x: position.x - xOffset,\n                            y: viewPortHandler.contentBottom - labelLineHeight - yOffset),\n                        align: .right,\n                        attributes: [NSAttributedString.Key.font: l.valueFont, NSAttributedString.Key.foregroundColor: l.valueTextColor])\n                }\n            }\n        }\n        \n        context.restoreGState()\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift",
    "content": "//\n//  YAxisRendererRadarChart.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n#if canImport(UIKit)\n    import UIKit\n#endif\n\n#if canImport(Cocoa)\nimport Cocoa\n#endif\n\nopen class YAxisRendererRadarChart: YAxisRenderer\n{\n    private weak var chart: RadarChartView?\n    \n    @objc public init(viewPortHandler: ViewPortHandler, yAxis: YAxis?, chart: RadarChartView)\n    {\n        super.init(viewPortHandler: viewPortHandler, yAxis: yAxis, transformer: nil)\n        \n        self.chart = chart\n    }\n    \n    open override func computeAxisValues(min yMin: Double, max yMax: Double)\n    {\n        guard let\n            axis = axis as? YAxis\n            else { return }\n        \n        let labelCount = axis.labelCount\n        let range = abs(yMax - yMin)\n        \n        if labelCount == 0 || range <= 0 || range.isInfinite\n        {\n            axis.entries = [Double]()\n            axis.centeredEntries = [Double]()\n            return\n        }\n        \n        // Find out how much spacing (in yValue space) between axis values\n        let rawInterval = range / Double(labelCount)\n        var interval = rawInterval.roundedToNextSignficant()\n        \n        // If granularity is enabled, then do not allow the interval to go below specified granularity.\n        // This is used to avoid repeated values when rounding values for display.\n        if axis.isGranularityEnabled\n        {\n            interval = interval < axis.granularity ? axis.granularity : interval\n        }\n        \n        // Normalize interval\n        let intervalMagnitude = pow(10.0, floor(log10(interval))).roundedToNextSignficant()\n        let intervalSigDigit = Int(interval / intervalMagnitude)\n        \n        if intervalSigDigit > 5\n        {\n            // Use one order of magnitude higher, to avoid intervals like 0.9 or 90\n            // if it's 0.0 after floor(), we use the old value\n            interval = floor(10.0 * intervalMagnitude) == 0.0 ? interval : floor(10.0 * intervalMagnitude)\n        }\n        \n        let centeringEnabled = axis.isCenterAxisLabelsEnabled\n        var n = centeringEnabled ? 1 : 0\n\n        // force label count\n        if axis.isForceLabelsEnabled\n        {\n            let step = Double(range) / Double(labelCount - 1)\n            \n            // Ensure stops contains at least n elements.\n            axis.entries.removeAll(keepingCapacity: true)\n            axis.entries.reserveCapacity(labelCount)\n            \n            var v = yMin\n            \n            for _ in 0 ..< labelCount\n            {\n                axis.entries.append(v)\n                v += step\n            }\n            \n            n = labelCount\n        }\n        else\n        {\n            // no forced count\n            \n            var first = interval == 0.0 ? 0.0 : ceil(yMin / interval) * interval\n            \n            if centeringEnabled\n            {\n                first -= interval\n            }\n\n            let last = interval == 0.0 ? 0.0 : (floor(yMax / interval) * interval).nextUp\n            \n            if interval != 0.0\n            {\n                for _ in stride(from: first, through: last, by: interval)\n                {\n                    n += 1\n                }\n            }\n            \n            n += 1\n            \n            // Ensure stops contains at least n elements.\n            axis.entries.removeAll(keepingCapacity: true)\n            axis.entries.reserveCapacity(labelCount)\n            \n            var f = first\n            var i = 0\n            while i < n\n            {\n                if f == 0.0\n                {\n                    // Fix for IEEE negative zero case (Where value == -0.0, and 0.0 == -0.0)\n                    f = 0.0\n                }\n\n                axis.entries.append(Double(f))\n                \n                f += interval\n                i += 1\n            }\n        }\n        \n        // set decimals\n        if interval < 1\n        {\n            axis.decimals = Int(ceil(-log10(interval)))\n        }\n        else\n        {\n            axis.decimals = 0\n        }\n        \n        if centeringEnabled\n        {\n            axis.centeredEntries.reserveCapacity(n)\n            axis.centeredEntries.removeAll()\n            \n            let offset = (axis.entries[1] - axis.entries[0]) / 2.0\n            \n            for i in 0 ..< n\n            {\n                axis.centeredEntries.append(axis.entries[i] + offset)\n            }\n        }\n        \n        axis._axisMinimum = axis.entries[0]\n        axis._axisMaximum = axis.entries[n-1]\n        axis.axisRange = abs(axis._axisMaximum - axis._axisMinimum)\n    }\n    \n    open override func renderAxisLabels(context: CGContext)\n    {\n        guard let\n            yAxis = axis as? YAxis,\n            let chart = chart\n            else { return }\n        \n        if !yAxis.isEnabled || !yAxis.isDrawLabelsEnabled\n        {\n            return\n        }\n        \n        let labelFont = yAxis.labelFont\n        let labelTextColor = yAxis.labelTextColor\n        \n        let center = chart.centerOffsets\n        let factor = chart.factor\n        \n        let labelLineHeight = yAxis.labelFont.lineHeight\n        \n        let from = yAxis.isDrawBottomYLabelEntryEnabled ? 0 : 1\n        let to = yAxis.isDrawTopYLabelEntryEnabled ? yAxis.entryCount : (yAxis.entryCount - 1)\n\n        let alignment: NSTextAlignment = yAxis.labelAlignment\n        let xOffset = yAxis.labelXOffset\n        \n        for j in stride(from: from, to: to, by: 1)\n        {\n            let r = CGFloat(yAxis.entries[j] - yAxis._axisMinimum) * factor\n            \n            let p = center.moving(distance: r, atAngle: chart.rotationAngle)\n            \n            let label = yAxis.getFormattedLabel(j)\n            \n            ChartUtils.drawText(\n                context: context,\n                text: label,\n                point: CGPoint(x: p.x + xOffset, y: p.y - labelLineHeight),\n                align: alignment,\n                attributes: [\n                    NSAttributedString.Key.font: labelFont,\n                    NSAttributedString.Key.foregroundColor: labelTextColor\n                ])\n        }\n    }\n    \n    open override func renderLimitLines(context: CGContext)\n    {\n        guard\n            let yAxis = axis as? YAxis,\n            let chart = chart,\n            let data = chart.data\n            else { return }\n        \n        let limitLines = yAxis.limitLines\n        \n        if limitLines.count == 0\n        {\n            return\n        }\n        \n        context.saveGState()\n        \n        let sliceangle = chart.sliceAngle\n        \n        // calculate the factor that is needed for transforming the value to pixels\n        let factor = chart.factor\n        \n        let center = chart.centerOffsets\n        \n        for i in 0 ..< limitLines.count\n        {\n            let l = limitLines[i]\n            \n            if !l.isEnabled\n            {\n                continue\n            }\n            \n            context.setStrokeColor(l.lineColor.cgColor)\n            context.setLineWidth(l.lineWidth)\n            if l.lineDashLengths != nil\n            {\n                context.setLineDash(phase: l.lineDashPhase, lengths: l.lineDashLengths!)\n            }\n            else\n            {\n                context.setLineDash(phase: 0.0, lengths: [])\n            }\n            \n            let r = CGFloat(l.limit - chart.chartYMin) * factor\n            \n            context.beginPath()\n            \n            for j in 0 ..< (data.maxEntryCountSet?.entryCount ?? 0)\n            {\n                let p = center.moving(distance: r, atAngle: sliceangle * CGFloat(j) + chart.rotationAngle)\n                \n                if j == 0\n                {\n                    context.move(to: CGPoint(x: p.x, y: p.y))\n                }\n                else\n                {\n                    context.addLine(to: CGPoint(x: p.x, y: p.y))\n                }\n            }\n            \n            context.closePath()\n            \n            context.strokePath()\n        }\n        \n        context.restoreGState()\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift",
    "content": "//\n//  ChartColorTemplates.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\nopen class ChartColorTemplates: NSObject\n{\n    @objc open class func liberty () -> [NSUIColor]\n    {\n        return [\n            NSUIColor(red: 207/255.0, green: 248/255.0, blue: 246/255.0, alpha: 1.0),\n            NSUIColor(red: 148/255.0, green: 212/255.0, blue: 212/255.0, alpha: 1.0),\n            NSUIColor(red: 136/255.0, green: 180/255.0, blue: 187/255.0, alpha: 1.0),\n            NSUIColor(red: 118/255.0, green: 174/255.0, blue: 175/255.0, alpha: 1.0),\n            NSUIColor(red: 42/255.0, green: 109/255.0, blue: 130/255.0, alpha: 1.0)\n        ]\n    }\n    \n    @objc open class func joyful () -> [NSUIColor]\n    {\n        return [\n            NSUIColor(red: 217/255.0, green: 80/255.0, blue: 138/255.0, alpha: 1.0),\n            NSUIColor(red: 254/255.0, green: 149/255.0, blue: 7/255.0, alpha: 1.0),\n            NSUIColor(red: 254/255.0, green: 247/255.0, blue: 120/255.0, alpha: 1.0),\n            NSUIColor(red: 106/255.0, green: 167/255.0, blue: 134/255.0, alpha: 1.0),\n            NSUIColor(red: 53/255.0, green: 194/255.0, blue: 209/255.0, alpha: 1.0)\n        ]\n    }\n    \n    @objc open class func pastel () -> [NSUIColor]\n    {\n        return [\n            NSUIColor(red: 64/255.0, green: 89/255.0, blue: 128/255.0, alpha: 1.0),\n            NSUIColor(red: 149/255.0, green: 165/255.0, blue: 124/255.0, alpha: 1.0),\n            NSUIColor(red: 217/255.0, green: 184/255.0, blue: 162/255.0, alpha: 1.0),\n            NSUIColor(red: 191/255.0, green: 134/255.0, blue: 134/255.0, alpha: 1.0),\n            NSUIColor(red: 179/255.0, green: 48/255.0, blue: 80/255.0, alpha: 1.0)\n        ]\n    }\n    \n    @objc open class func colorful () -> [NSUIColor]\n    {\n        return [\n            NSUIColor(red: 193/255.0, green: 37/255.0, blue: 82/255.0, alpha: 1.0),\n            NSUIColor(red: 255/255.0, green: 102/255.0, blue: 0/255.0, alpha: 1.0),\n            NSUIColor(red: 245/255.0, green: 199/255.0, blue: 0/255.0, alpha: 1.0),\n            NSUIColor(red: 106/255.0, green: 150/255.0, blue: 31/255.0, alpha: 1.0),\n            NSUIColor(red: 179/255.0, green: 100/255.0, blue: 53/255.0, alpha: 1.0)\n        ]\n    }\n    \n    @objc open class func vordiplom () -> [NSUIColor]\n    {\n        return [\n            NSUIColor(red: 192/255.0, green: 255/255.0, blue: 140/255.0, alpha: 1.0),\n            NSUIColor(red: 255/255.0, green: 247/255.0, blue: 140/255.0, alpha: 1.0),\n            NSUIColor(red: 255/255.0, green: 208/255.0, blue: 140/255.0, alpha: 1.0),\n            NSUIColor(red: 140/255.0, green: 234/255.0, blue: 255/255.0, alpha: 1.0),\n            NSUIColor(red: 255/255.0, green: 140/255.0, blue: 157/255.0, alpha: 1.0)\n        ]\n    }\n    \n    @objc open class func material () -> [NSUIColor]\n    {\n        return [\n            NSUIColor(red: 46/255.0, green: 204/255.0, blue: 113/255.0, alpha: 1.0),\n            NSUIColor(red: 241/255.0, green: 196/255.0, blue: 15/255.0, alpha: 1.0),\n            NSUIColor(red: 231/255.0, green: 76/255.0, blue: 60/255.0, alpha: 1.0),\n            NSUIColor(red: 52/255.0, green: 152/255.0, blue: 219/255.0, alpha: 1.0)\n        ]\n    }\n    \n    @objc open class func colorFromString(_ colorString: String) -> NSUIColor\n    {\n        let leftParenCharset: CharacterSet = CharacterSet(charactersIn: \"( \")\n        let commaCharset: CharacterSet = CharacterSet(charactersIn: \", \")\n\n        let colorString = colorString.lowercased()\n        \n        if colorString.hasPrefix(\"#\")\n        {\n            var argb: [UInt] = [255, 0, 0, 0]\n            let colorString = colorString.unicodeScalars\n            var length = colorString.count\n            var index = colorString.startIndex\n            let endIndex = colorString.endIndex\n            \n            index = colorString.index(after: index)\n            length = length - 1\n            \n            if length == 3 || length == 6 || length == 8\n            {\n                var i = length == 8 ? 0 : 1\n                while index < endIndex\n                {\n                    var c = colorString[index]\n                    index = colorString.index(after: index)\n                    \n                    var val = (c.value >= 0x61 && c.value <= 0x66) ? (c.value - 0x61 + 10) : c.value - 0x30\n                    argb[i] = UInt(val) * 16\n                    if length == 3\n                    {\n                        argb[i] = argb[i] + UInt(val)\n                    }\n                    else\n                    {\n                        c = colorString[index]\n                        index = colorString.index(after: index)\n                        \n                        val = (c.value >= 0x61 && c.value <= 0x66) ? (c.value - 0x61 + 10) : c.value - 0x30\n                        argb[i] = argb[i] + UInt(val)\n                    }\n                    \n                    i += 1\n                }\n            }\n            \n            return NSUIColor(red: CGFloat(argb[1]) / 255.0, green: CGFloat(argb[2]) / 255.0, blue: CGFloat(argb[3]) / 255.0, alpha: CGFloat(argb[0]) / 255.0)\n        }\n        else if colorString.hasPrefix(\"rgba\")\n        {\n            var a: Float = 1.0\n            var r: Int32 = 0\n            var g: Int32 = 0\n            var b: Int32 = 0\n            let scanner: Scanner = Scanner(string: colorString)\n            scanner.scanString(\"rgba\", into: nil)\n            scanner.scanCharacters(from: leftParenCharset, into: nil)\n            scanner.scanInt32(&r)\n            scanner.scanCharacters(from: commaCharset, into: nil)\n            scanner.scanInt32(&g)\n            scanner.scanCharacters(from: commaCharset, into: nil)\n            scanner.scanInt32(&b)\n            scanner.scanCharacters(from: commaCharset, into: nil)\n            scanner.scanFloat(&a)\n            return NSUIColor(\n                red: CGFloat(r) / 255.0,\n                green: CGFloat(g) / 255.0,\n                blue: CGFloat(b) / 255.0,\n                alpha: CGFloat(a)\n            )\n        }\n        else if colorString.hasPrefix(\"argb\")\n        {\n            var a: Float = 1.0\n            var r: Int32 = 0\n            var g: Int32 = 0\n            var b: Int32 = 0\n            let scanner: Scanner = Scanner(string: colorString)\n            scanner.scanString(\"argb\", into: nil)\n            scanner.scanCharacters(from: leftParenCharset, into: nil)\n            scanner.scanFloat(&a)\n            scanner.scanCharacters(from: commaCharset, into: nil)\n            scanner.scanInt32(&r)\n            scanner.scanCharacters(from: commaCharset, into: nil)\n            scanner.scanInt32(&g)\n            scanner.scanCharacters(from: commaCharset, into: nil)\n            scanner.scanInt32(&b)\n            return NSUIColor(\n                red: CGFloat(r) / 255.0,\n                green: CGFloat(g) / 255.0,\n                blue: CGFloat(b) / 255.0,\n                alpha: CGFloat(a)\n            )\n        }\n        else if colorString.hasPrefix(\"rgb\")\n        {\n            var r: Int32 = 0\n            var g: Int32 = 0\n            var b: Int32 = 0\n            let scanner: Scanner = Scanner(string: colorString)\n            scanner.scanString(\"rgb\", into: nil)\n            scanner.scanCharacters(from: leftParenCharset, into: nil)\n            scanner.scanInt32(&r)\n            scanner.scanCharacters(from: commaCharset, into: nil)\n            scanner.scanInt32(&g)\n            scanner.scanCharacters(from: commaCharset, into: nil)\n            scanner.scanInt32(&b)\n            return NSUIColor(\n                red: CGFloat(r) / 255.0,\n                green: CGFloat(g) / 255.0,\n                blue: CGFloat(b) / 255.0,\n                alpha: 1.0\n            )\n        }\n        \n        return NSUIColor.clear\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Utils/ChartUtils.swift",
    "content": "//\n//  Utils.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n#if canImport(UIKit)\n    import UIKit\n#endif\n\n#if canImport(Cocoa)\nimport Cocoa\n#endif\n\nextension Comparable\n{\n    func clamped(to range: ClosedRange<Self>) -> Self\n    {\n        if self > range.upperBound\n        {\n            return range.upperBound\n        }\n        else if self < range.lowerBound\n        {\n            return range.lowerBound\n        }\n        else\n        {\n            return self\n        }\n    }\n}\n\nextension FloatingPoint\n{\n    var DEG2RAD: Self\n    {\n        return self * .pi / 180\n    }\n\n    var RAD2DEG: Self\n    {\n        return self * 180 / .pi\n    }\n\n    /// - Note: Value must be in degrees\n    /// - Returns: An angle between 0.0 < 360.0 (not less than zero, less than 360)\n    var normalizedAngle: Self\n    {\n        let angle = truncatingRemainder(dividingBy: 360)\n        return (sign == .minus) ? angle + 360 : angle\n    }\n}\n\nextension CGSize\n{\n    func rotatedBy(degrees: CGFloat) -> CGSize\n    {\n        let radians = degrees.DEG2RAD\n        return rotatedBy(radians: radians)\n    }\n\n    func rotatedBy(radians: CGFloat) -> CGSize\n    {\n        return CGSize(\n            width: abs(width * cos(radians)) + abs(height * sin(radians)),\n            height: abs(width * sin(radians)) + abs(height * cos(radians))\n        )\n    }\n}\n\nextension Double\n{\n    /// Rounds the number to the nearest multiple of it's order of magnitude, rounding away from zero if halfway.\n    func roundedToNextSignficant() -> Double\n    {\n        guard\n            !isInfinite,\n            !isNaN,\n            self != 0\n            else { return self }\n\n        let d = ceil(log10(self < 0 ? -self : self))\n        let pw = 1 - Int(d)\n        let magnitude = pow(10.0, Double(pw))\n        let shifted = (self * magnitude).rounded()\n        return shifted / magnitude\n    }\n\n    var decimalPlaces: Int\n    {\n        guard\n            !isNaN,\n            !isInfinite,\n            self != 0.0\n            else { return 0 }\n\n        let i = self.roundedToNextSignficant()\n\n        guard\n            !i.isInfinite,\n            !i.isNaN\n            else { return 0 }\n\n        return Int(ceil(-log10(i))) + 2\n    }\n}\n\nextension CGPoint\n{\n    /// Calculates the position around a center point, depending on the distance from the center, and the angle of the position around the center.\n    func moving(distance: CGFloat, atAngle angle: CGFloat) -> CGPoint\n    {\n        return CGPoint(x: x + distance * cos(angle.DEG2RAD),\n                       y: y + distance * sin(angle.DEG2RAD))\n    }\n}\n\nopen class ChartUtils\n{\n    private static var _defaultValueFormatter: IValueFormatter = ChartUtils.generateDefaultValueFormatter()\n    \n    open class func drawImage(\n        context: CGContext,\n        image: NSUIImage,\n        x: CGFloat,\n        y: CGFloat,\n        size: CGSize)\n    {\n        var drawOffset = CGPoint()\n        drawOffset.x = x - (size.width / 2)\n        drawOffset.y = y - (size.height / 2)\n        \n        NSUIGraphicsPushContext(context)\n        \n        if image.size.width != size.width && image.size.height != size.height\n        {\n            let key = \"resized_\\(size.width)_\\(size.height)\"\n            \n            // Try to take scaled image from cache of this image\n            var scaledImage = objc_getAssociatedObject(image, key) as? NSUIImage\n            if scaledImage == nil\n            {\n                // Scale the image\n                NSUIGraphicsBeginImageContextWithOptions(size, false, 0.0)\n                \n                image.draw(in: CGRect(origin: CGPoint(x: 0, y: 0), size: size))\n                \n                scaledImage = NSUIGraphicsGetImageFromCurrentImageContext()\n                NSUIGraphicsEndImageContext()\n                \n                // Put the scaled image in a cache owned by the original image\n                objc_setAssociatedObject(image, key, scaledImage, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)\n            }\n            \n            scaledImage?.draw(in: CGRect(origin: drawOffset, size: size))\n        }\n        else\n        {\n            image.draw(in: CGRect(origin: drawOffset, size: size))\n        }\n        \n        NSUIGraphicsPopContext()\n    }\n    \n    open class func drawText(context: CGContext, text: String, point: CGPoint, align: NSTextAlignment, attributes: [NSAttributedString.Key : Any]?)\n    {\n        var point = point\n        \n        if align == .center\n        {\n            point.x -= text.size(withAttributes: attributes).width / 2.0\n        }\n        else if align == .right\n        {\n            point.x -= text.size(withAttributes: attributes).width\n        }\n        \n        NSUIGraphicsPushContext(context)\n        \n        (text as NSString).draw(at: point, withAttributes: attributes)\n        \n        NSUIGraphicsPopContext()\n    }\n    \n    open class func drawText(context: CGContext, text: String, point: CGPoint, attributes: [NSAttributedString.Key : Any]?, anchor: CGPoint, angleRadians: CGFloat)\n    {\n        var drawOffset = CGPoint()\n        \n        NSUIGraphicsPushContext(context)\n        \n        if angleRadians != 0.0\n        {\n            let size = text.size(withAttributes: attributes)\n            \n            // Move the text drawing rect in a way that it always rotates around its center\n            drawOffset.x = -size.width * 0.5\n            drawOffset.y = -size.height * 0.5\n            \n            var translate = point\n            \n            // Move the \"outer\" rect relative to the anchor, assuming its centered\n            if anchor.x != 0.5 || anchor.y != 0.5\n            {\n                let rotatedSize = size.rotatedBy(radians: angleRadians)\n                \n                translate.x -= rotatedSize.width * (anchor.x - 0.5)\n                translate.y -= rotatedSize.height * (anchor.y - 0.5)\n            }\n            \n            context.saveGState()\n            context.translateBy(x: translate.x, y: translate.y)\n            context.rotate(by: angleRadians)\n            \n            (text as NSString).draw(at: drawOffset, withAttributes: attributes)\n            \n            context.restoreGState()\n        }\n        else\n        {\n            if anchor.x != 0.0 || anchor.y != 0.0\n            {\n                let size = text.size(withAttributes: attributes)\n                \n                drawOffset.x = -size.width * anchor.x\n                drawOffset.y = -size.height * anchor.y\n            }\n            \n            drawOffset.x += point.x\n            drawOffset.y += point.y\n            \n            (text as NSString).draw(at: drawOffset, withAttributes: attributes)\n        }\n        \n        NSUIGraphicsPopContext()\n    }\n    \n    internal class func drawMultilineText(context: CGContext, text: String, knownTextSize: CGSize, point: CGPoint, attributes: [NSAttributedString.Key : Any]?, constrainedToSize: CGSize, anchor: CGPoint, angleRadians: CGFloat)\n    {\n        var rect = CGRect(origin: CGPoint(), size: knownTextSize)\n        \n        NSUIGraphicsPushContext(context)\n        \n        if angleRadians != 0.0\n        {\n            // Move the text drawing rect in a way that it always rotates around its center\n            rect.origin.x = -knownTextSize.width * 0.5\n            rect.origin.y = -knownTextSize.height * 0.5\n            \n            var translate = point\n            \n            // Move the \"outer\" rect relative to the anchor, assuming its centered\n            if anchor.x != 0.5 || anchor.y != 0.5\n            {\n                let rotatedSize = knownTextSize.rotatedBy(radians: angleRadians)\n                \n                translate.x -= rotatedSize.width * (anchor.x - 0.5)\n                translate.y -= rotatedSize.height * (anchor.y - 0.5)\n            }\n            \n            context.saveGState()\n            context.translateBy(x: translate.x, y: translate.y)\n            context.rotate(by: angleRadians)\n            \n            (text as NSString).draw(with: rect, options: .usesLineFragmentOrigin, attributes: attributes, context: nil)\n            \n            context.restoreGState()\n        }\n        else\n        {\n            if anchor.x != 0.0 || anchor.y != 0.0\n            {\n                rect.origin.x = -knownTextSize.width * anchor.x\n                rect.origin.y = -knownTextSize.height * anchor.y\n            }\n            \n            rect.origin.x += point.x\n            rect.origin.y += point.y\n            \n            (text as NSString).draw(with: rect, options: .usesLineFragmentOrigin, attributes: attributes, context: nil)\n        }\n        \n        NSUIGraphicsPopContext()\n    }\n    \n    internal class func drawMultilineText(context: CGContext, text: String, point: CGPoint, attributes: [NSAttributedString.Key : Any]?, constrainedToSize: CGSize, anchor: CGPoint, angleRadians: CGFloat)\n    {\n        let rect = text.boundingRect(with: constrainedToSize, options: .usesLineFragmentOrigin, attributes: attributes, context: nil)\n        drawMultilineText(context: context, text: text, knownTextSize: rect.size, point: point, attributes: attributes, constrainedToSize: constrainedToSize, anchor: anchor, angleRadians: angleRadians)\n    }\n\n    private class func generateDefaultValueFormatter() -> IValueFormatter\n    {\n        let formatter = DefaultValueFormatter(decimals: 1)\n        return formatter\n    }\n    \n    /// - Returns: The default value formatter used for all chart components that needs a default\n    open class func defaultValueFormatter() -> IValueFormatter\n    {\n        return _defaultValueFormatter\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Utils/Fill.swift",
    "content": "//\n//  Fill.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(ChartFillType)\npublic enum FillType: Int\n{\n    case empty\n    case color\n    case linearGradient\n    case radialGradient\n    case image\n    case tiledImage\n    case layer\n}\n\n@objc(ChartFill)\nopen class Fill: NSObject\n{\n    private var _type: FillType = FillType.empty\n    private var _color: CGColor?\n    private var _gradient: CGGradient?\n    private var _gradientAngle: CGFloat = 0.0\n    private var _gradientStartOffsetPercent: CGPoint = CGPoint()\n    private var _gradientStartRadiusPercent: CGFloat = 0.0\n    private var _gradientEndOffsetPercent: CGPoint = CGPoint()\n    private var _gradientEndRadiusPercent: CGFloat = 0.0\n    private var _image: CGImage?\n    private var _layer: CGLayer?\n    \n    // MARK: Properties\n    \n    @objc open var type: FillType\n    {\n        return _type\n    }\n    \n    @objc open var color: CGColor?\n    {\n        return _color\n    }\n    \n    @objc open var gradient: CGGradient?\n    {\n        return _gradient\n    }\n    \n    @objc open var gradientAngle: CGFloat\n    {\n        return _gradientAngle\n    }\n    \n    @objc open var gradientStartOffsetPercent: CGPoint\n    {\n        return _gradientStartOffsetPercent\n    }\n    \n    @objc open var gradientStartRadiusPercent: CGFloat\n    {\n        return _gradientStartRadiusPercent\n    }\n    \n    @objc open var gradientEndOffsetPercent: CGPoint\n    {\n        return _gradientEndOffsetPercent\n    }\n    \n    @objc open var gradientEndRadiusPercent: CGFloat\n    {\n        return _gradientEndRadiusPercent\n    }\n    \n    @objc open var image: CGImage?\n    {\n        return _image\n    }\n    \n    @objc open var layer: CGLayer?\n    {\n        return _layer\n    }\n    \n    // MARK: Constructors\n    \n    public override init()\n    {\n    }\n    \n    @objc public init(CGColor: CGColor)\n    {\n        _type = .color\n        _color = CGColor\n    }\n    \n    @objc public convenience init(color: NSUIColor)\n    {\n        self.init(CGColor: color.cgColor)\n    }\n    \n    @objc public init(linearGradient: CGGradient, angle: CGFloat)\n    {\n        _type = .linearGradient\n        _gradient = linearGradient\n        _gradientAngle = angle\n    }\n    \n    @objc public init(\n        radialGradient: CGGradient,\n        startOffsetPercent: CGPoint,\n        startRadiusPercent: CGFloat,\n        endOffsetPercent: CGPoint,\n        endRadiusPercent: CGFloat\n        )\n    {\n        _type = .radialGradient\n        _gradient = radialGradient\n        _gradientStartOffsetPercent = startOffsetPercent\n        _gradientStartRadiusPercent = startRadiusPercent\n        _gradientEndOffsetPercent = endOffsetPercent\n        _gradientEndRadiusPercent = endRadiusPercent\n    }\n    \n    @objc public convenience init(radialGradient: CGGradient)\n    {\n        self.init(\n            radialGradient: radialGradient,\n            startOffsetPercent: CGPoint(x: 0.0, y: 0.0),\n            startRadiusPercent: 0.0,\n            endOffsetPercent: CGPoint(x: 0.0, y: 0.0),\n            endRadiusPercent: 1.0\n        )\n    }\n    \n    @objc public init(CGImage: CGImage, tiled: Bool)\n    {\n        _type = tiled ? .tiledImage : .image\n        _image = CGImage\n    }\n    \n    @objc public convenience init(image: NSUIImage, tiled: Bool)\n    {\n        self.init(CGImage: image.cgImage!, tiled: tiled)\n    }\n    \n    @objc public convenience init(CGImage: CGImage)\n    {\n        self.init(CGImage: CGImage, tiled: false)\n    }\n    \n    @objc public convenience init(image: NSUIImage)\n    {\n        self.init(image: image, tiled: false)\n    }\n    \n    @objc public init(CGLayer: CGLayer)\n    {\n        _type = .layer\n        _layer = CGLayer\n    }\n    \n    // MARK: Constructors\n    \n    @objc open class func fillWithCGColor(_ CGColor: CGColor) -> Fill\n    {\n        return Fill(CGColor: CGColor)\n    }\n    \n    @objc open class func fillWithColor(_ color: NSUIColor) -> Fill\n    {\n        return Fill(color: color)\n    }\n    \n    @objc open class func fillWithLinearGradient(\n        _ linearGradient: CGGradient,\n        angle: CGFloat) -> Fill\n    {\n        return Fill(linearGradient: linearGradient, angle: angle)\n    }\n    \n    @objc open class func fillWithRadialGradient(\n        _ radialGradient: CGGradient,\n        startOffsetPercent: CGPoint,\n        startRadiusPercent: CGFloat,\n        endOffsetPercent: CGPoint,\n        endRadiusPercent: CGFloat\n        ) -> Fill\n    {\n        return Fill(\n            radialGradient: radialGradient,\n            startOffsetPercent: startOffsetPercent,\n            startRadiusPercent: startRadiusPercent,\n            endOffsetPercent: endOffsetPercent,\n            endRadiusPercent: endRadiusPercent\n        )\n    }\n    \n    @objc open class func fillWithRadialGradient(_ radialGradient: CGGradient) -> Fill\n    {\n        return Fill(radialGradient: radialGradient)\n    }\n    \n    @objc open class func fillWithCGImage(_ CGImage: CGImage, tiled: Bool) -> Fill\n    {\n        return Fill(CGImage: CGImage, tiled: tiled)\n    }\n    \n    @objc open class func fillWithImage(_ image: NSUIImage, tiled: Bool) -> Fill\n    {\n        return Fill(image: image, tiled: tiled)\n    }\n    \n    @objc open class func fillWithCGImage(_ CGImage: CGImage) -> Fill\n    {\n        return Fill(CGImage: CGImage)\n    }\n    \n    @objc open class func fillWithImage(_ image: NSUIImage) -> Fill\n    {\n        return Fill(image: image)\n    }\n    \n    @objc open class func fillWithCGLayer(_ CGLayer: CGLayer) -> Fill\n    {\n        return Fill(CGLayer: CGLayer)\n    }\n    \n    // MARK: Drawing code\n    \n    /// Draws the provided path in filled mode with the provided area\n    @objc open func fillPath(\n        context: CGContext,\n        rect: CGRect)\n    {\n        let fillType = _type\n        if fillType == .empty\n        {\n            return\n        }\n        \n        context.saveGState()\n        \n        switch fillType\n        {\n        case .color:\n            \n            context.setFillColor(_color!)\n            context.fillPath()\n            \n        case .image:\n            \n            context.clip()\n            context.draw(_image!, in: rect)\n            \n        case .tiledImage:\n            \n            context.clip()\n            context.draw(_image!, in: rect, byTiling: true)\n            \n        case .layer:\n            \n            context.clip()\n            context.draw(_layer!, in: rect)\n            \n        case .linearGradient:\n            \n            let radians = (360.0 - _gradientAngle).DEG2RAD\n            let centerPoint = CGPoint(x: rect.midX, y: rect.midY)\n            let xAngleDelta = cos(radians) * rect.width / 2.0\n            let yAngleDelta = sin(radians) * rect.height / 2.0\n            let startPoint = CGPoint(\n                x: centerPoint.x - xAngleDelta,\n                y: centerPoint.y - yAngleDelta\n            )\n            let endPoint = CGPoint(\n                x: centerPoint.x + xAngleDelta,\n                y: centerPoint.y + yAngleDelta\n            )\n            \n            context.clip()\n            context.drawLinearGradient(_gradient!,\n                start: startPoint,\n                end: endPoint,\n                options: [.drawsAfterEndLocation, .drawsBeforeStartLocation]\n            )\n            \n        case .radialGradient:\n            \n            let centerPoint = CGPoint(x: rect.midX, y: rect.midY)\n            let radius = max(rect.width, rect.height) / 2.0\n            \n            context.clip()\n            context.drawRadialGradient(_gradient!,\n                startCenter: CGPoint(\n                    x: centerPoint.x + rect.width * _gradientStartOffsetPercent.x,\n                    y: centerPoint.y + rect.height * _gradientStartOffsetPercent.y\n                ),\n                startRadius: radius * _gradientStartRadiusPercent,\n                endCenter: CGPoint(\n                    x: centerPoint.x + rect.width * _gradientEndOffsetPercent.x,\n                    y: centerPoint.y + rect.height * _gradientEndOffsetPercent.y\n                ),\n                endRadius: radius * _gradientEndRadiusPercent,\n                options: [.drawsAfterEndLocation, .drawsBeforeStartLocation]\n            )\n            \n        case .empty:\n            break\n        }\n        \n        context.restoreGState()\n    }\n    \n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Utils/Platform+Accessibility.swift",
    "content": "//\n//  Platform+Accessibility.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\n\n#if os(iOS) || os(tvOS)\n#if canImport(UIKit)\n    import UIKit\n#endif\n\ninternal func accessibilityPostLayoutChangedNotification(withElement element: Any? = nil)\n{\n    UIAccessibility.post(notification: UIAccessibility.Notification.layoutChanged, argument: element)\n}\n\ninternal func accessibilityPostScreenChangedNotification(withElement element: Any? = nil)\n{\n    UIAccessibility.post(notification: UIAccessibility.Notification.screenChanged, argument: element)\n}\n\n/// A simple abstraction over UIAccessibilityElement and NSAccessibilityElement.\nopen class NSUIAccessibilityElement: UIAccessibilityElement\n{\n    private weak var containerView: UIView?\n\n    final var isHeader: Bool = false\n    {\n        didSet\n        {\n            accessibilityTraits = isHeader ? UIAccessibilityTraits.header : UIAccessibilityTraits.none\n        }\n    }\n\n    final var isSelected: Bool = false\n        {\n        didSet\n        {\n            accessibilityTraits = isSelected ? UIAccessibilityTraits.selected : UIAccessibilityTraits.none\n        }\n    }\n\n    override public init(accessibilityContainer container: Any)\n    {\n        // We can force unwrap since all chart views are subclasses of UIView\n        containerView = (container as! UIView)\n        super.init(accessibilityContainer: container)\n    }\n\n    override open var accessibilityFrame: CGRect\n    {\n        get\n        {\n            return super.accessibilityFrame\n        }\n\n        set\n        {\n            guard let containerView = containerView else { return }\n            super.accessibilityFrame = containerView.convert(newValue, to: UIScreen.main.coordinateSpace)\n        }\n    }\n}\n\nextension NSUIView\n{\n    /// An array of accessibilityElements that is used to implement UIAccessibilityContainer internally.\n    /// Subclasses **MUST** override this with an array of such elements.\n    @objc open func accessibilityChildren() -> [Any]?\n    {\n        return nil\n    }\n\n    public final override var isAccessibilityElement: Bool\n    {\n        get { return false } // Return false here, so we can make individual elements accessible\n        set { }\n    }\n\n    open override func accessibilityElementCount() -> Int\n    {\n        return accessibilityChildren()?.count ?? 0\n    }\n\n    open override func accessibilityElement(at index: Int) -> Any?\n    {\n        return accessibilityChildren()?[index]\n    }\n\n    open override func index(ofAccessibilityElement element: Any) -> Int\n    {\n        guard let axElement = element as? NSUIAccessibilityElement else { return NSNotFound }\n        return (accessibilityChildren() as? [NSUIAccessibilityElement])?\n            .firstIndex(of: axElement) ?? NSNotFound\n    }\n}\n\n#endif\n\n#if os(OSX)\n\n#if canImport(AppKit)\nimport AppKit\n#endif\n\ninternal func accessibilityPostLayoutChangedNotification(withElement element: Any? = nil)\n{\n    guard let validElement = element else { return }\n    NSAccessibility.post(element: validElement, notification: .layoutChanged)\n}\n\ninternal func accessibilityPostScreenChangedNotification(withElement element: Any? = nil)\n{\n    // Placeholder\n}\n\n/// A simple abstraction over UIAccessibilityElement and NSAccessibilityElement.\nopen class NSUIAccessibilityElement: NSAccessibilityElement\n{\n    private weak var containerView: NSView?\n\n    final var isHeader: Bool = false\n    {\n        didSet\n        {\n            setAccessibilityRole(isHeader ? .staticText : .none)\n        }\n    }\n\n    final var isSelected: Bool = false\n    {\n        didSet\n        {\n            setAccessibilitySelected(isSelected)\n        }\n    }\n\n    open var accessibilityLabel: String\n    {\n        get\n        {\n            return accessibilityLabel() ?? \"\"\n        }\n\n        set\n        {\n            setAccessibilityLabel(newValue)\n        }\n    }\n\n    open var accessibilityFrame: NSRect\n    {\n        get\n        {\n            return accessibilityFrame()\n        }\n\n        set\n        {\n            guard let containerView = containerView else { return }\n\n            let bounds = NSAccessibility.screenRect(fromView: containerView, rect: newValue)\n\n            // This works, but won't auto update if the window is resized or moved.\n            // setAccessibilityFrame(bounds)\n\n            // using FrameInParentSpace allows for automatic updating of frame when windows are moved and resized.\n            // However, there seems to be a bug right now where using it causes an offset in the frame.\n            // This is a slightly hacky workaround that calculates the offset and removes it from frame calculation.\n            setAccessibilityFrameInParentSpace(bounds)\n            let axFrame = accessibilityFrame()\n            let widthOffset = abs(axFrame.origin.x - bounds.origin.x)\n            let heightOffset = abs(axFrame.origin.y - bounds.origin.y)\n            let rect = NSRect(x: bounds.origin.x - widthOffset,\n                              y: bounds.origin.y - heightOffset,\n                              width: bounds.width,\n                              height: bounds.height)\n            setAccessibilityFrameInParentSpace(rect)\n        }\n    }\n\n    public init(accessibilityContainer container: Any)\n    {\n        // We can force unwrap since all chart views are subclasses of NSView\n        containerView = (container as! NSView)\n\n        super.init()\n\n        setAccessibilityParent(containerView)\n        setAccessibilityRole(.row)\n    }\n}\n\n/// - Note: setAccessibilityRole(.list) is called at init. See Platform.swift.\nextension NSUIView: NSAccessibilityGroup\n{\n    open override func accessibilityLabel() -> String?\n    {\n        return \"Chart View\"\n    }\n\n    open override func accessibilityRows() -> [Any]?\n    {\n        return accessibilityChildren()\n    }\n}\n\n#endif\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Utils/Platform+Color.swift",
    "content": "//\n//  Platform+Color.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\n#if canImport(UIKit)\nimport UIKit\n\npublic typealias NSUIColor = UIColor\nprivate func fetchLabelColor() -> UIColor\n{\n    if #available(iOS 13, tvOS 13, *)\n    {\n        return .label\n    }\n    else\n    {\n        return .black\n    }\n}\nprivate let labelColor: UIColor = fetchLabelColor()\n\nextension UIColor\n{\n    static var labelOrBlack: UIColor { labelColor }\n}\n#endif\n\n#if canImport(AppKit) && !targetEnvironment(macCatalyst)\n\nimport AppKit\n\npublic typealias NSUIColor = NSColor\nprivate func fetchLabelColor() -> NSColor\n{\n    if #available(macOS 10.14, *)\n    {\n        return .labelColor\n    }\n    else\n    {\n        return .black\n    }\n}\nprivate let labelColor: NSColor = fetchLabelColor()\n\nextension NSColor\n{\n    static var labelOrBlack: NSColor { labelColor }\n}\n#endif\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Utils/Platform+Gestures.swift",
    "content": "//\n//  Platform+Gestures.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\n// MARK: - UIKit\n#if canImport(UIKit)\nimport UIKit\n\npublic typealias NSUIGestureRecognizer = UIGestureRecognizer\npublic typealias NSUIGestureRecognizerState = UIGestureRecognizer.State\npublic typealias NSUIGestureRecognizerDelegate = UIGestureRecognizerDelegate\npublic typealias NSUITapGestureRecognizer = UITapGestureRecognizer\npublic typealias NSUIPanGestureRecognizer = UIPanGestureRecognizer\n\nextension NSUITapGestureRecognizer\n{\n    @objc final func nsuiNumberOfTouches() -> Int\n    {\n        return numberOfTouches\n    }\n\n    @objc final var nsuiNumberOfTapsRequired: Int\n        {\n        get\n        {\n            return self.numberOfTapsRequired\n        }\n        set\n        {\n            self.numberOfTapsRequired = newValue\n        }\n    }\n}\n\nextension NSUIPanGestureRecognizer\n{\n    @objc final func nsuiNumberOfTouches() -> Int\n    {\n        return numberOfTouches\n    }\n\n    @objc final func nsuiLocationOfTouch(_ touch: Int, inView: UIView?) -> CGPoint\n    {\n        return super.location(ofTouch: touch, in: inView)\n    }\n}\n\n#if !os(tvOS)\npublic typealias NSUIPinchGestureRecognizer = UIPinchGestureRecognizer\npublic typealias NSUIRotationGestureRecognizer = UIRotationGestureRecognizer\n\nextension NSUIRotationGestureRecognizer\n{\n    @objc final var nsuiRotation: CGFloat\n        {\n        get { return rotation }\n        set { rotation = newValue }\n    }\n}\n\nextension NSUIPinchGestureRecognizer\n{\n    @objc final var nsuiScale: CGFloat\n        {\n        get\n        {\n            return scale\n        }\n        set\n        {\n            scale = newValue\n        }\n    }\n\n    @objc final func nsuiLocationOfTouch(_ touch: Int, inView: UIView?) -> CGPoint\n    {\n        return super.location(ofTouch: touch, in: inView)\n    }\n}\n#endif\n#endif\n\n// MARK: - AppKit\n#if canImport(AppKit) && !targetEnvironment(macCatalyst)\nimport AppKit\n\npublic typealias NSUIGestureRecognizer = NSGestureRecognizer\npublic typealias NSUIGestureRecognizerState = NSGestureRecognizer.State\npublic typealias NSUIGestureRecognizerDelegate = NSGestureRecognizerDelegate\npublic typealias NSUITapGestureRecognizer = NSClickGestureRecognizer\npublic typealias NSUIPanGestureRecognizer = NSPanGestureRecognizer\npublic typealias NSUIPinchGestureRecognizer = NSMagnificationGestureRecognizer\npublic typealias NSUIRotationGestureRecognizer = NSRotationGestureRecognizer\n\n/** The 'tap' gesture is mapped to clicks. */\nextension NSUITapGestureRecognizer\n{\n    final func nsuiNumberOfTouches() -> Int\n    {\n        return 1\n    }\n\n    final var nsuiNumberOfTapsRequired: Int\n        {\n        get\n        {\n            return self.numberOfClicksRequired\n        }\n        set\n        {\n            self.numberOfClicksRequired = newValue\n        }\n    }\n}\n\nextension NSUIPanGestureRecognizer\n{\n    final func nsuiNumberOfTouches() -> Int\n    {\n        return 1\n    }\n\n    /// FIXME: Currently there are no more than 1 touch in OSX gestures, and not way to create custom touch gestures.\n    final func nsuiLocationOfTouch(_ touch: Int, inView: NSView?) -> NSPoint\n    {\n        return super.location(in: inView)\n    }\n}\n\nextension NSUIRotationGestureRecognizer\n{\n    /// FIXME: Currently there are no velocities in OSX gestures, and not way to create custom touch gestures.\n    final var velocity: CGFloat\n    {\n        return 0.1\n    }\n\n    final var nsuiRotation: CGFloat\n        {\n        get { return -rotation }\n        set { rotation = -newValue }\n    }\n}\n\nextension NSUIPinchGestureRecognizer\n{\n    final var nsuiScale: CGFloat\n        {\n        get\n        {\n            return magnification + 1.0\n        }\n        set\n        {\n            magnification = newValue - 1.0\n        }\n    }\n\n    /// FIXME: Currently there are no more than 1 touch in OSX gestures, and not way to create custom touch gestures.\n    final func nsuiLocationOfTouch(_ touch: Int, inView view: NSView?) -> NSPoint\n    {\n        return super.location(in: view)\n    }\n}\n#endif\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Utils/Platform+Graphics.swift",
    "content": "//\n//  Platform+Graphics.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nenum Orientation\n{\n    case portrait, landscape\n}\n\nextension CGSize\n{\n    var orientation: Orientation { return width > height ? .landscape : .portrait }\n}\n\nextension CGRect\n{\n    var orientation: Orientation { size.orientation }\n}\n\n// MARK: - UIKit\n#if canImport(UIKit)\nimport UIKit\n\nfunc NSUIGraphicsGetCurrentContext() -> CGContext?\n{\n    return UIGraphicsGetCurrentContext()\n}\n\nfunc NSUIGraphicsGetImageFromCurrentImageContext() -> NSUIImage!\n{\n    return UIGraphicsGetImageFromCurrentImageContext()\n}\n\nfunc NSUIGraphicsPushContext(_ context: CGContext)\n{\n    UIGraphicsPushContext(context)\n}\n\nfunc NSUIGraphicsPopContext()\n{\n    UIGraphicsPopContext()\n}\n\nfunc NSUIGraphicsEndImageContext()\n{\n    UIGraphicsEndImageContext()\n}\n\nfunc NSUIImagePNGRepresentation(_ image: NSUIImage) -> Data?\n{\n    return image.pngData()\n}\n\nfunc NSUIImageJPEGRepresentation(_ image: NSUIImage, _ quality: CGFloat = 0.8) -> Data?\n{\n    return image.jpegData(compressionQuality: quality)\n}\n\nfunc NSUIGraphicsBeginImageContextWithOptions(_ size: CGSize, _ opaque: Bool, _ scale: CGFloat)\n{\n    UIGraphicsBeginImageContextWithOptions(size, opaque, scale)\n}\n#endif\n\n// MARK: - AppKit\n#if canImport(AppKit) && !targetEnvironment(macCatalyst)\nimport AppKit\n\nfunc NSUIGraphicsGetCurrentContext() -> CGContext?\n{\n    return NSGraphicsContext.current?.cgContext\n}\n\nfunc NSUIGraphicsPushContext(_ context: CGContext)\n{\n    let cx = NSGraphicsContext(cgContext: context, flipped: true)\n    NSGraphicsContext.saveGraphicsState()\n    NSGraphicsContext.current = cx\n}\n\nfunc NSUIGraphicsPopContext()\n{\n    NSGraphicsContext.restoreGraphicsState()\n}\n\nfunc NSUIImagePNGRepresentation(_ image: NSUIImage) -> Data?\n{\n    image.lockFocus()\n    let rep = NSBitmapImageRep(focusedViewRect: NSMakeRect(0, 0, image.size.width, image.size.height))\n    image.unlockFocus()\n    return rep?.representation(using: .png, properties: [:])\n}\n\nfunc NSUIImageJPEGRepresentation(_ image: NSUIImage, _ quality: CGFloat = 0.9) -> Data?\n{\n    image.lockFocus()\n    let rep = NSBitmapImageRep(focusedViewRect: NSMakeRect(0, 0, image.size.width, image.size.height))\n    image.unlockFocus()\n    return rep?.representation(using: .jpeg, properties: [NSBitmapImageRep.PropertyKey.compressionFactor: quality])\n}\n\nprivate var imageContextStack: [CGFloat] = []\n\nfunc NSUIGraphicsBeginImageContextWithOptions(_ size: CGSize, _ opaque: Bool, _ scale: CGFloat)\n{\n    var scale = scale\n    if scale == 0.0\n    {\n        scale = NSScreen.main?.backingScaleFactor ?? 1.0\n    }\n\n    let width = Int(size.width * scale)\n    let height = Int(size.height * scale)\n\n    if width > 0 && height > 0\n    {\n        imageContextStack.append(scale)\n\n        let colorSpace = CGColorSpaceCreateDeviceRGB()\n\n        guard let ctx = CGContext(data: nil, width: width, height: height, bitsPerComponent: 8, bytesPerRow: 4*width, space: colorSpace, bitmapInfo: (opaque ?  CGImageAlphaInfo.noneSkipFirst.rawValue : CGImageAlphaInfo.premultipliedFirst.rawValue))\n            else { return }\n\n        ctx.concatenate(CGAffineTransform(a: 1, b: 0, c: 0, d: -1, tx: 0, ty: CGFloat(height)))\n        ctx.scaleBy(x: scale, y: scale)\n        NSUIGraphicsPushContext(ctx)\n    }\n}\n\nfunc NSUIGraphicsGetImageFromCurrentImageContext() -> NSUIImage?\n{\n    if !imageContextStack.isEmpty\n    {\n        guard let ctx = NSUIGraphicsGetCurrentContext()\n            else { return nil }\n\n        let scale = imageContextStack.last!\n        if let theCGImage = ctx.makeImage()\n        {\n            let size = CGSize(width: CGFloat(ctx.width) / scale, height: CGFloat(ctx.height) / scale)\n            let image = NSImage(cgImage: theCGImage, size: size)\n            return image\n        }\n    }\n    return nil\n}\n\nfunc NSUIGraphicsEndImageContext()\n{\n    if imageContextStack.last != nil\n    {\n        imageContextStack.removeLast()\n        NSUIGraphicsPopContext()\n    }\n}\n#endif\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Utils/Platform+Touch Handling.swift",
    "content": "//\n//  Platform+Touch Handling.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\n#if canImport(UIKit)\nimport UIKit\n\npublic typealias NSUIEvent = UIEvent\npublic typealias NSUITouch = UITouch\n\n@objc\nextension NSUIView {\n    public final override func touchesBegan(_ touches: Set<NSUITouch>, with event: NSUIEvent?)\n    {\n        self.nsuiTouchesBegan(touches, withEvent: event)\n    }\n\n    public final override func touchesMoved(_ touches: Set<NSUITouch>, with event: NSUIEvent?)\n    {\n        self.nsuiTouchesMoved(touches, withEvent: event)\n    }\n\n    public final override func touchesEnded(_ touches: Set<NSUITouch>, with event: NSUIEvent?)\n    {\n        self.nsuiTouchesEnded(touches, withEvent: event)\n    }\n\n    public final override func touchesCancelled(_ touches: Set<NSUITouch>, with event: NSUIEvent?)\n    {\n        self.nsuiTouchesCancelled(touches, withEvent: event)\n    }\n\n    open func nsuiTouchesBegan(_ touches: Set<NSUITouch>, withEvent event: NSUIEvent?)\n    {\n        super.touchesBegan(touches, with: event!)\n    }\n\n    open func nsuiTouchesMoved(_ touches: Set<NSUITouch>, withEvent event: NSUIEvent?)\n    {\n        super.touchesMoved(touches, with: event!)\n    }\n\n    open func nsuiTouchesEnded(_ touches: Set<NSUITouch>, withEvent event: NSUIEvent?)\n    {\n        super.touchesEnded(touches, with: event!)\n    }\n\n    open func nsuiTouchesCancelled(_ touches: Set<NSUITouch>?, withEvent event: NSUIEvent?)\n    {\n        super.touchesCancelled(touches!, with: event!)\n    }\n}\n\nextension UIView\n{\n    @objc final var nsuiGestureRecognizers: [NSUIGestureRecognizer]?\n    {\n        return self.gestureRecognizers\n    }\n}\n#endif\n\n\n#if canImport(AppKit) && !targetEnvironment(macCatalyst)\nimport AppKit\n\npublic typealias NSUIEvent = NSEvent\npublic typealias NSUITouch = NSTouch\n\n@objc\nextension NSUIView\n{\n    public final override func touchesBegan(with event: NSEvent)\n    {\n        self.nsuiTouchesBegan(event.touches(matching: .any, in: self), withEvent: event)\n    }\n\n    public final override func touchesEnded(with event: NSEvent)\n    {\n        self.nsuiTouchesEnded(event.touches(matching: .any, in: self), withEvent: event)\n    }\n\n    public final override func touchesMoved(with event: NSEvent)\n    {\n        self.nsuiTouchesMoved(event.touches(matching: .any, in: self), withEvent: event)\n    }\n\n    open override func touchesCancelled(with event: NSEvent)\n    {\n        self.nsuiTouchesCancelled(event.touches(matching: .any, in: self), withEvent: event)\n    }\n\n    open func nsuiTouchesBegan(_ touches: Set<NSUITouch>, withEvent event: NSUIEvent?)\n    {\n        super.touchesBegan(with: event!)\n    }\n\n    open func nsuiTouchesMoved(_ touches: Set<NSUITouch>, withEvent event: NSUIEvent?)\n    {\n        super.touchesMoved(with: event!)\n    }\n\n    open func nsuiTouchesEnded(_ touches: Set<NSUITouch>, withEvent event: NSUIEvent?)\n    {\n        super.touchesEnded(with: event!)\n    }\n\n    open func nsuiTouchesCancelled(_ touches: Set<NSUITouch>?, withEvent event: NSUIEvent?)\n    {\n        super.touchesCancelled(with: event!)\n    }\n}\n\nextension NSTouch\n{\n    /** Touch locations on OS X are relative to the trackpad, whereas on iOS they are actually *on* the view. */\n    func locationInView(view: NSView) -> NSPoint\n    {\n        let n = self.normalizedPosition\n        let b = view.bounds\n        return NSPoint(\n            x: b.origin.x + b.size.width * n.x,\n            y: b.origin.y + b.size.height * n.y\n        )\n    }\n}\n#endif\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Utils/Platform.swift",
    "content": "import Foundation\n\n/** This file provides a thin abstraction layer atop of UIKit (iOS, tvOS) and Cocoa (OS X). The two APIs are very much \n alike, and for the chart library's usage of the APIs it is often sufficient to typealias one to the other. The NSUI*\n types are aliased to either their UI* implementation (on iOS) or their NS* implementation (on OS X). */\n#if os(iOS) || os(tvOS)\n#if canImport(UIKit)\n    import UIKit\n#endif\n\npublic typealias NSUIFont = UIFont\npublic typealias NSUIImage = UIImage\npublic typealias NSUIScrollView = UIScrollView\npublic typealias NSUIScreen = UIScreen\npublic typealias NSUIDisplayLink = CADisplayLink\n\nopen class NSUIView: UIView\n{\n    @objc var nsuiLayer: CALayer?\n    {\n        return self.layer\n    }\n}\n\nextension UIScrollView\n{\n    @objc var nsuiIsScrollEnabled: Bool\n        {\n        get { return isScrollEnabled }\n        set { isScrollEnabled = newValue }\n    }\n}\n\nextension UIScreen\n{\n    @objc final var nsuiScale: CGFloat\n    {\n        return self.scale\n    }\n}\n\n#endif\n\n#if os(OSX)\nimport Cocoa\nimport Quartz\n\npublic typealias NSUIFont = NSFont\npublic typealias NSUIImage = NSImage\npublic typealias NSUIScrollView = NSScrollView\npublic typealias NSUIScreen = NSScreen\n\n/** On OS X there is no CADisplayLink. Use a 60 fps timer to render the animations. */\npublic class NSUIDisplayLink\n{\n    private var timer: Timer?\n    private var displayLink: CVDisplayLink?\n    private var _timestamp: CFTimeInterval = 0.0\n\n    private weak var _target: AnyObject?\n    private var _selector: Selector\n\n    public var timestamp: CFTimeInterval\n    {\n        return _timestamp\n    }\n\n\t\tinit(target: Any, selector: Selector)\n    {\n        _target = target as AnyObject\n        _selector = selector\n\n        if CVDisplayLinkCreateWithActiveCGDisplays(&displayLink) == kCVReturnSuccess\n        {\n\n            CVDisplayLinkSetOutputCallback(displayLink!, { (displayLink, inNow, inOutputTime, flagsIn, flagsOut, userData) -> CVReturn in\n\n                let _self = unsafeBitCast(userData, to: NSUIDisplayLink.self)\n                    \n                _self._timestamp = CFAbsoluteTimeGetCurrent()\n                _self._target?.performSelector(onMainThread: _self._selector, with: _self, waitUntilDone: false)\n                    \n                return kCVReturnSuccess\n                }, Unmanaged.passUnretained(self).toOpaque())\n        }\n        else\n        {\n            timer = Timer(timeInterval: 1.0 / 60.0, target: target, selector: selector, userInfo: nil, repeats: true)\n        }\n\t\t}\n\n    deinit\n    {\n        stop()\n    }\n\n    open func add(to runloop: RunLoop, forMode mode: RunLoop.Mode)\n    {\n        if displayLink != nil\n        {\n            CVDisplayLinkStart(displayLink!)\n        }\n        else if timer != nil\n        {\n            runloop.add(timer!, forMode: mode)\n        }\n    }\n\n    open func remove(from: RunLoop, forMode: RunLoop.Mode)\n    {\n        stop()\n    }\n\n    private func stop()\n    {\n        if displayLink != nil\n        {\n            CVDisplayLinkStop(displayLink!)\n        }\n        if timer != nil\n        {\n            timer?.invalidate()\n        }\n    }\n}\n\nextension NSView\n{\n    final var nsuiGestureRecognizers: [NSGestureRecognizer]?\n    {\n        return self.gestureRecognizers\n    }\n}\n\nextension NSScrollView\n{\n    var nsuiIsScrollEnabled: Bool\n    {\n        get { return scrollEnabled }\n        set { scrollEnabled = newValue }\n    }\n}\n\nopen class NSUIView: NSView\n{\n    /// A private constant to set the accessibility role during initialization.\n    /// It ensures parity with the iOS element ordering as well as numbered counts of chart components.\n    /// (See Platform+Accessibility for details)\n    private let role: NSAccessibility.Role = .list\n\n    public override init(frame frameRect: NSRect)\n    {\n        super.init(frame: frameRect)\n        setAccessibilityRole(role)\n    }\n\n    required public init?(coder decoder: NSCoder)\n    {\n        super.init(coder: decoder)\n        setAccessibilityRole(role)\n    }\n\n    public final override var isFlipped: Bool\n    {\n        return true\n    }\n\n    func setNeedsDisplay()\n    {\n        self.setNeedsDisplay(self.bounds)\n    }\n\n\n    open var backgroundColor: NSUIColor?\n        {\n        get\n        {\n            return self.layer?.backgroundColor == nil\n                ? nil\n                : NSColor(cgColor: self.layer!.backgroundColor!)\n        }\n        set\n        {\n            self.wantsLayer = true\n            self.layer?.backgroundColor = newValue == nil ? nil : newValue!.cgColor\n        }\n    }\n\n    final var nsuiLayer: CALayer?\n    {\n        return self.layer\n    }\n}\n\nextension NSFont\n{\n    var lineHeight: CGFloat\n    {\n        // Not sure if this is right, but it looks okay\n        return self.boundingRectForFont.size.height\n    }\n}\n\nextension NSScreen\n{\n    final var nsuiScale: CGFloat\n    {\n        return self.backingScaleFactor\n    }\n}\n\nextension NSImage\n{\n    var cgImage: CGImage?\n    {\n        return self.cgImage(forProposedRect: nil, context: nil, hints: nil)\n    }\n}\n\nextension NSScrollView\n{\n    /// NOTE: Unable to disable scrolling in macOS\n    var scrollEnabled: Bool\n    {\n        get\n        {\n            return true\n        }\n        set\n        {\n        }\n    }\n}\n\n#endif\n\nextension NSUIScreen\n{\n    class var nsuiMain: NSUIScreen? { .main }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Utils/Transformer.swift",
    "content": "//\n//  Transformer.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n/// Transformer class that contains all matrices and is responsible for transforming values into pixels on the screen and backwards.\n@objc(ChartTransformer)\nopen class Transformer: NSObject\n{\n    /// matrix to map the values to the screen pixels\n    internal var _matrixValueToPx = CGAffineTransform.identity\n\n    /// matrix for handling the different offsets of the chart\n    internal var _matrixOffset = CGAffineTransform.identity\n\n    internal var _viewPortHandler: ViewPortHandler\n\n    @objc public init(viewPortHandler: ViewPortHandler)\n    {\n        _viewPortHandler = viewPortHandler\n    }\n\n    /// Prepares the matrix that transforms values to pixels. Calculates the scale factors from the charts size and offsets.\n    @objc open func prepareMatrixValuePx(chartXMin: Double, deltaX: CGFloat, deltaY: CGFloat, chartYMin: Double)\n    {\n        var scaleX = (_viewPortHandler.contentWidth / deltaX)\n        var scaleY = (_viewPortHandler.contentHeight / deltaY)\n        \n        if CGFloat.infinity == scaleX\n        {\n            scaleX = 0.0\n        }\n        if CGFloat.infinity == scaleY\n        {\n            scaleY = 0.0\n        }\n\n        // setup all matrices\n        _matrixValueToPx = CGAffineTransform.identity\n        _matrixValueToPx = _matrixValueToPx.scaledBy(x: scaleX, y: -scaleY)\n        _matrixValueToPx = _matrixValueToPx.translatedBy(x: CGFloat(-chartXMin), y: CGFloat(-chartYMin))\n    }\n\n    /// Prepares the matrix that contains all offsets.\n    @objc open func prepareMatrixOffset(inverted: Bool)\n    {\n        if !inverted\n        {\n            _matrixOffset = CGAffineTransform(translationX: _viewPortHandler.offsetLeft, y: _viewPortHandler.chartHeight - _viewPortHandler.offsetBottom)\n        }\n        else\n        {\n            _matrixOffset = CGAffineTransform(scaleX: 1.0, y: -1.0)\n            _matrixOffset = _matrixOffset.translatedBy(x: _viewPortHandler.offsetLeft, y: -_viewPortHandler.offsetTop)\n        }\n    }\n\n    /// Transform an array of points with all matrices.\n    // VERY IMPORTANT: Keep matrix order \"value-touch-offset\" when transforming.\n    open func pointValuesToPixel(_ points: inout [CGPoint])\n    {\n        let trans = valueToPixelMatrix\n        points = points.map { $0.applying(trans) }\n    }\n    \n    open func pointValueToPixel(_ point: inout CGPoint)\n    {\n        point = point.applying(valueToPixelMatrix)\n    }\n    \n    @objc open func pixelForValues(x: Double, y: Double) -> CGPoint\n    {\n        return CGPoint(x: x, y: y).applying(valueToPixelMatrix)\n    }\n    \n    /// Transform a rectangle with all matrices.\n    open func rectValueToPixel(_ r: inout CGRect)\n    {\n        r = r.applying(valueToPixelMatrix)\n    }\n    \n    /// Transform a rectangle with all matrices with potential animation phases.\n    open func rectValueToPixel(_ r: inout CGRect, phaseY: Double)\n    {\n        // multiply the height of the rect with the phase\n        var bottom = r.origin.y + r.size.height\n        bottom *= CGFloat(phaseY)\n        let top = r.origin.y * CGFloat(phaseY)\n        r.size.height = bottom - top\n        r.origin.y = top\n\n        r = r.applying(valueToPixelMatrix)\n    }\n    \n    /// Transform a rectangle with all matrices.\n    open func rectValueToPixelHorizontal(_ r: inout CGRect)\n    {\n        r = r.applying(valueToPixelMatrix)\n    }\n    \n    /// Transform a rectangle with all matrices with potential animation phases.\n    open func rectValueToPixelHorizontal(_ r: inout CGRect, phaseY: Double)\n    {\n        // multiply the height of the rect with the phase\n        let left = r.origin.x * CGFloat(phaseY)\n        let right = (r.origin.x + r.size.width) * CGFloat(phaseY)\n        r.size.width = right - left\n        r.origin.x = left\n        \n        r = r.applying(valueToPixelMatrix)\n    }\n\n    /// transforms multiple rects with all matrices\n    open func rectValuesToPixel(_ rects: inout [CGRect])\n    {\n        let trans = valueToPixelMatrix\n        rects = rects.map { $0.applying(trans) }\n    }\n    \n    /// Transforms the given array of touch points (pixels) into values on the chart.\n    open func pixelsToValues(_ pixels: inout [CGPoint])\n    {\n        let trans = pixelToValueMatrix\n        pixels = pixels.map { $0.applying(trans) }\n    }\n    \n    /// Transforms the given touch point (pixels) into a value on the chart.\n    open func pixelToValues(_ pixel: inout CGPoint)\n    {\n        pixel = pixel.applying(pixelToValueMatrix)\n    }\n    \n    /// - Returns: The x and y values in the chart at the given touch point\n    /// (encapsulated in a CGPoint). This method transforms pixel coordinates to\n    /// coordinates / values in the chart.\n    @objc open func valueForTouchPoint(_ point: CGPoint) -> CGPoint\n    {\n        return point.applying(pixelToValueMatrix)\n    }\n    \n    /// - Returns: The x and y values in the chart at the given touch point\n    /// (x/y). This method transforms pixel coordinates to\n    /// coordinates / values in the chart.\n    @objc open func valueForTouchPoint(x: CGFloat, y: CGFloat) -> CGPoint\n    {\n        return CGPoint(x: x, y: y).applying(pixelToValueMatrix)\n    }\n    \n    @objc open var valueToPixelMatrix: CGAffineTransform\n    {\n        return\n            _matrixValueToPx.concatenating(_viewPortHandler.touchMatrix\n                ).concatenating(_matrixOffset\n        )\n    }\n    \n    @objc open var pixelToValueMatrix: CGAffineTransform\n    {\n        return valueToPixelMatrix.inverted()\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift",
    "content": "//\n//  TransformerHorizontalBarChart.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n@objc(ChartTransformerHorizontalBarChart)\nopen class TransformerHorizontalBarChart: Transformer\n{\n    /// Prepares the matrix that contains all offsets.\n    open override func prepareMatrixOffset(inverted: Bool)\n    {\n        if !inverted\n        {\n            _matrixOffset = CGAffineTransform(translationX: _viewPortHandler.offsetLeft, y: _viewPortHandler.chartHeight - _viewPortHandler.offsetBottom)\n        }\n        else\n        {\n            _matrixOffset = CGAffineTransform(scaleX: -1.0, y: 1.0)\n            _matrixOffset = _matrixOffset.translatedBy(x: -(_viewPortHandler.chartWidth - _viewPortHandler.offsetRight),\n                y: _viewPortHandler.chartHeight - _viewPortHandler.offsetBottom)\n        }\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift",
    "content": "//\n//  ViewPortHandler.swift\n//  Charts\n//\n//  Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda\n//  A port of MPAndroidChart for iOS\n//  Licensed under Apache License 2.0\n//\n//  https://github.com/danielgindi/Charts\n//\n\nimport Foundation\nimport CoreGraphics\n\n/// Class that contains information about the charts current viewport settings, including offsets, scale & translation levels, ...\n@objc(ChartViewPortHandler)\nopen class ViewPortHandler: NSObject\n{\n    /// matrix used for touch events\n    private var _touchMatrix = CGAffineTransform.identity\n    \n    /// this rectangle defines the area in which graph values can be drawn\n    private var _contentRect = CGRect()\n    \n    private var _chartWidth = CGFloat(0.0)\n    private var _chartHeight = CGFloat(0.0)\n    \n    /// minimum scale value on the y-axis\n    private var _minScaleY = CGFloat(1.0)\n    \n    /// maximum scale value on the y-axis\n    private var _maxScaleY = CGFloat.greatestFiniteMagnitude\n    \n    /// minimum scale value on the x-axis\n    private var _minScaleX = CGFloat(1.0)\n    \n    /// maximum scale value on the x-axis\n    private var _maxScaleX = CGFloat.greatestFiniteMagnitude\n    \n    /// contains the current scale factor of the x-axis\n    private var _scaleX = CGFloat(1.0)\n    \n    /// contains the current scale factor of the y-axis\n    private var _scaleY = CGFloat(1.0)\n    \n    /// current translation (drag distance) on the x-axis\n    private var _transX = CGFloat(0.0)\n    \n    /// current translation (drag distance) on the y-axis\n    private var _transY = CGFloat(0.0)\n    \n    /// offset that allows the chart to be dragged over its bounds on the x-axis\n    private var _transOffsetX = CGFloat(0.0)\n    \n    /// offset that allows the chart to be dragged over its bounds on the x-axis\n    private var _transOffsetY = CGFloat(0.0)\n    \n    /// Constructor - don't forget calling setChartDimens(...)\n    @objc public init(width: CGFloat, height: CGFloat)\n    {\n        super.init()\n        \n        setChartDimens(width: width, height: height)\n    }\n    \n    @objc open func setChartDimens(width: CGFloat, height: CGFloat)\n    {\n        let offsetLeft = self.offsetLeft\n        let offsetTop = self.offsetTop\n        let offsetRight = self.offsetRight\n        let offsetBottom = self.offsetBottom\n        \n        _chartHeight = height\n        _chartWidth = width\n        \n        restrainViewPort(offsetLeft: offsetLeft, offsetTop: offsetTop, offsetRight: offsetRight, offsetBottom: offsetBottom)\n    }\n    \n    @objc open var hasChartDimens: Bool\n    {\n        if _chartHeight > 0.0 && _chartWidth > 0.0\n        {\n            return true\n        }\n        else\n        {\n            return false\n        }\n    }\n\n    @objc open func restrainViewPort(offsetLeft: CGFloat, offsetTop: CGFloat, offsetRight: CGFloat, offsetBottom: CGFloat)\n    {\n        _contentRect.origin.x = offsetLeft\n        _contentRect.origin.y = offsetTop\n        _contentRect.size.width = _chartWidth - offsetLeft - offsetRight\n        _contentRect.size.height = _chartHeight - offsetBottom - offsetTop\n    }\n    \n    @objc open var offsetLeft: CGFloat\n    {\n        return _contentRect.origin.x\n    }\n    \n    @objc open var offsetRight: CGFloat\n    {\n        return _chartWidth - _contentRect.size.width - _contentRect.origin.x\n    }\n    \n    @objc open var offsetTop: CGFloat\n    {\n        return _contentRect.origin.y\n    }\n    \n    @objc open var offsetBottom: CGFloat\n    {\n        return _chartHeight - _contentRect.size.height - _contentRect.origin.y\n    }\n    \n    @objc open var contentTop: CGFloat\n    {\n        return _contentRect.origin.y\n    }\n    \n    @objc open var contentLeft: CGFloat\n    {\n        return _contentRect.origin.x\n    }\n    \n    @objc open var contentRight: CGFloat\n    {\n        return _contentRect.origin.x + _contentRect.size.width\n    }\n    \n    @objc open var contentBottom: CGFloat\n    {\n        return _contentRect.origin.y + _contentRect.size.height\n    }\n    \n    @objc open var contentWidth: CGFloat\n    {\n        return _contentRect.size.width\n    }\n    \n    @objc open var contentHeight: CGFloat\n    {\n        return _contentRect.size.height\n    }\n    \n    @objc open var contentRect: CGRect\n    {\n        return _contentRect\n    }\n    \n    @objc open var contentCenter: CGPoint\n    {\n        return CGPoint(x: _contentRect.origin.x + _contentRect.size.width / 2.0, y: _contentRect.origin.y + _contentRect.size.height / 2.0)\n    }\n    \n    @objc open var chartHeight: CGFloat\n    { \n        return _chartHeight\n    }\n    \n    @objc open var chartWidth: CGFloat\n    { \n        return _chartWidth\n    }\n\n    // MARK: - Scaling/Panning etc.\n    \n    /// Zooms by the specified zoom factors.\n    @objc open func zoom(scaleX: CGFloat, scaleY: CGFloat) -> CGAffineTransform\n    {\n        return _touchMatrix.scaledBy(x: scaleX, y: scaleY)\n    }\n    \n    /// Zooms around the specified center\n    @objc open func zoom(scaleX: CGFloat, scaleY: CGFloat, x: CGFloat, y: CGFloat) -> CGAffineTransform\n    {\n        var matrix = _touchMatrix.translatedBy(x: x, y: y)\n        matrix = matrix.scaledBy(x: scaleX, y: scaleY)\n        matrix = matrix.translatedBy(x: -x, y: -y)\n        return matrix\n    }\n    \n    /// Zooms in by 1.4, x and y are the coordinates (in pixels) of the zoom center.\n    @objc open func zoomIn(x: CGFloat, y: CGFloat) -> CGAffineTransform\n    {\n        return zoom(scaleX: 1.4, scaleY: 1.4, x: x, y: y)\n    }\n    \n    /// Zooms out by 0.7, x and y are the coordinates (in pixels) of the zoom center.\n    @objc open func zoomOut(x: CGFloat, y: CGFloat) -> CGAffineTransform\n    {\n        return zoom(scaleX: 0.7, scaleY: 0.7, x: x, y: y)\n    }\n    \n    /// Zooms out to original size.\n    @objc open func resetZoom() -> CGAffineTransform\n    {\n        return zoom(scaleX: 1.0, scaleY: 1.0, x: 0.0, y: 0.0)\n    }\n    \n    /// Sets the scale factor to the specified values.\n    @objc open func setZoom(scaleX: CGFloat, scaleY: CGFloat) -> CGAffineTransform\n    {\n        var matrix = _touchMatrix\n        matrix.a = scaleX\n        matrix.d = scaleY\n        return matrix\n    }\n    \n    /// Sets the scale factor to the specified values. x and y is pivot.\n    @objc open func setZoom(scaleX: CGFloat, scaleY: CGFloat, x: CGFloat, y: CGFloat) -> CGAffineTransform\n    {\n        var matrix = _touchMatrix\n        matrix.a = 1.0\n        matrix.d = 1.0\n        matrix = matrix.translatedBy(x: x, y: y)\n        matrix = matrix.scaledBy(x: scaleX, y: scaleY)\n        matrix = matrix.translatedBy(x: -x, y: -y)\n        return matrix\n    }\n    \n    /// Resets all zooming and dragging and makes the chart fit exactly it's bounds.\n    @objc open func fitScreen() -> CGAffineTransform\n    {\n        _minScaleX = 1.0\n        _minScaleY = 1.0\n\n        return CGAffineTransform.identity\n    }\n    \n    /// Translates to the specified point.\n    @objc open func translate(pt: CGPoint) -> CGAffineTransform\n    {\n        let translateX = pt.x - offsetLeft\n        let translateY = pt.y - offsetTop\n        \n        let matrix = _touchMatrix.concatenating(CGAffineTransform(translationX: -translateX, y: -translateY))\n        \n        return matrix\n    }\n    \n    /// Centers the viewport around the specified position (x-index and y-value) in the chart.\n    /// Centering the viewport outside the bounds of the chart is not possible.\n    /// Makes most sense in combination with the setScaleMinima(...) method.\n    @objc open func centerViewPort(pt: CGPoint, chart: ChartViewBase)\n    {\n        let translateX = pt.x - offsetLeft\n        let translateY = pt.y - offsetTop\n        \n        let matrix = _touchMatrix.concatenating(CGAffineTransform(translationX: -translateX, y: -translateY))\n        refresh(newMatrix: matrix, chart: chart, invalidate: true)\n    }\n    \n    /// call this method to refresh the graph with a given matrix\n    @objc @discardableResult open func refresh(newMatrix: CGAffineTransform, chart: ChartViewBase, invalidate: Bool) -> CGAffineTransform\n    {\n        _touchMatrix = newMatrix\n        \n        // make sure scale and translation are within their bounds\n        limitTransAndScale(matrix: &_touchMatrix, content: _contentRect)\n        \n        chart.setNeedsDisplay()\n        \n        return _touchMatrix\n    }\n    \n    /// limits the maximum scale and X translation of the given matrix\n    private func limitTransAndScale(matrix: inout CGAffineTransform, content: CGRect?)\n    {\n        // min scale-x is 1\n        _scaleX = min(max(_minScaleX, matrix.a), _maxScaleX)\n        \n        // min scale-y is 1\n        _scaleY = min(max(_minScaleY,  matrix.d), _maxScaleY)\n        \n        \n        var width: CGFloat = 0.0\n        var height: CGFloat = 0.0\n        \n        if content != nil\n        {\n            width = content!.width\n            height = content!.height\n        }\n        \n        let maxTransX = -width * (_scaleX - 1.0)\n        _transX = min(max(matrix.tx, maxTransX - _transOffsetX), _transOffsetX)\n        \n        let maxTransY = height * (_scaleY - 1.0)\n        _transY = max(min(matrix.ty, maxTransY + _transOffsetY), -_transOffsetY)\n        \n        matrix.tx = _transX\n        matrix.a = _scaleX\n        matrix.ty = _transY\n        matrix.d = _scaleY\n    }\n    \n    /// Sets the minimum scale factor for the x-axis\n    @objc open func setMinimumScaleX(_ xScale: CGFloat)\n    {\n        var newValue = xScale\n        \n        if newValue < 1.0\n        {\n            newValue = 1.0\n        }\n        \n        _minScaleX = newValue\n        \n        limitTransAndScale(matrix: &_touchMatrix, content: _contentRect)\n    }\n    \n    /// Sets the maximum scale factor for the x-axis\n    @objc open func setMaximumScaleX(_ xScale: CGFloat)\n    {\n        var newValue = xScale\n        \n        if newValue == 0.0\n        {\n            newValue = CGFloat.greatestFiniteMagnitude\n        }\n        \n        _maxScaleX = newValue\n        \n        limitTransAndScale(matrix: &_touchMatrix, content: _contentRect)\n    }\n    \n    /// Sets the minimum and maximum scale factors for the x-axis\n    @objc open func setMinMaxScaleX(minScaleX: CGFloat, maxScaleX: CGFloat)\n    {\n        var newMin = minScaleX\n        var newMax = maxScaleX\n        \n        if newMin < 1.0\n        {\n            newMin = 1.0\n        }\n        if newMax == 0.0\n        {\n            newMax = CGFloat.greatestFiniteMagnitude\n        }\n        \n        _minScaleX = newMin\n        _maxScaleX = maxScaleX\n        \n        limitTransAndScale(matrix: &_touchMatrix, content: _contentRect)\n    }\n    \n    /// Sets the minimum scale factor for the y-axis\n    @objc open func setMinimumScaleY(_ yScale: CGFloat)\n    {\n        var newValue = yScale\n        \n        if newValue < 1.0\n        {\n            newValue = 1.0\n        }\n        \n        _minScaleY = newValue\n        \n        limitTransAndScale(matrix: &_touchMatrix, content: _contentRect)\n    }\n    \n    /// Sets the maximum scale factor for the y-axis\n    @objc open func setMaximumScaleY(_ yScale: CGFloat)\n    {\n        var newValue = yScale\n        \n        if newValue == 0.0\n        {\n            newValue = CGFloat.greatestFiniteMagnitude\n        }\n        \n        _maxScaleY = newValue\n        \n        limitTransAndScale(matrix: &_touchMatrix, content: _contentRect)\n    }\n    \n    @objc open func setMinMaxScaleY(minScaleY: CGFloat, maxScaleY: CGFloat)\n    {\n        var minScaleY = minScaleY, maxScaleY = maxScaleY\n        \n        if minScaleY < 1.0\n        {\n            minScaleY = 1.0\n        }\n        \n        if maxScaleY == 0.0\n        {\n            maxScaleY = CGFloat.greatestFiniteMagnitude\n        }\n        \n        _minScaleY = minScaleY\n        _maxScaleY = maxScaleY\n        \n        limitTransAndScale(matrix: &_touchMatrix, content: _contentRect)\n    }\n\n    @objc open var touchMatrix: CGAffineTransform\n    {\n        return _touchMatrix\n    }\n    \n    // MARK: - Boundaries Check\n    \n    @objc open func isInBoundsX(_ x: CGFloat) -> Bool\n    {\n        return isInBoundsLeft(x) && isInBoundsRight(x)\n    }\n    \n    @objc open func isInBoundsY(_ y: CGFloat) -> Bool\n    {\n        return isInBoundsTop(y) && isInBoundsBottom(y)\n    }\n    \n    /**\n     A method to check whether coordinate lies within the viewport.\n     \n     - Parameters:\n         - point: a coordinate.\n     */\n    @objc open func isInBounds(point: CGPoint) -> Bool\n    {\n        return isInBounds(x: point.x, y: point.y)\n    }\n    \n    @objc open func isInBounds(x: CGFloat, y: CGFloat) -> Bool\n    {\n        return isInBoundsX(x) && isInBoundsY(y)\n    }\n    \n    @objc open func isInBoundsLeft(_ x: CGFloat) -> Bool\n    {\n        return _contentRect.origin.x <= x + 1.0\n    }\n    \n    @objc open func isInBoundsRight(_ x: CGFloat) -> Bool\n    {\n        let x = floor(x * 100.0) / 100.0\n        return (_contentRect.origin.x + _contentRect.size.width) >= x - 1.0\n    }\n    \n    @objc open func isInBoundsTop(_ y: CGFloat) -> Bool\n    {\n        return _contentRect.origin.y <= y\n    }\n    \n    @objc open func isInBoundsBottom(_ y: CGFloat) -> Bool\n    {\n        let normalizedY = floor(y * 100.0) / 100.0\n        return (_contentRect.origin.y + _contentRect.size.height) >= normalizedY\n    }\n    \n    /**\n     A method to check whether a line between two coordinates intersects with the view port  by using a linear function.\n     \n        Linear function (calculus): `y = ax + b`\n            \n        Note: this method will not check for collision with the right edge of the view port, as we assume lines run from left\n        to right (e.g. `startPoint < endPoint`).\n     \n     - Parameters:\n        - startPoint: the start coordinate of the line.\n        - endPoint: the end coordinate of the line.\n     */\n    @objc open func isIntersectingLine(from startPoint: CGPoint, to endPoint: CGPoint) -> Bool\n    {\n        // If start- and/or endpoint fall within the viewport, bail out early.\n        if isInBounds(point: startPoint) || isInBounds(point: endPoint) { return true }\n        // check if x in bound when it's a vertical line\n        if startPoint.x == endPoint.x { return isInBoundsX(startPoint.x) }\n        \n        // Calculate the slope (`a`) of the line (e.g. `a = (y2 - y1) / (x2 - x1)`).\n        let a = (endPoint.y - startPoint.y) / (endPoint.x - startPoint.x)\n        // Calculate the y-correction (`b`) of the line (e.g. `b = y1 - (a * x1)`).\n        let b = startPoint.y - (a * startPoint.x)\n        \n        // Check for colission with the left edge of the view port (e.g. `y = (a * minX) + b`).\n        // if a is 0, it's a horizontal line; checking b here is still valid, as b is `point.y` all the time\n        if isInBoundsY((a * contentRect.minX) + b) { return true }\n\n        // Skip unnecessary check for collision with the right edge of the view port\n        // (e.g. `y = (a * maxX) + b`), as such a line will either begin inside the view port,\n        // or intersect the left, top or bottom edges of the view port. Leaving this logic here for clarity's sake:\n        // if isInBoundsY((a * contentRect.maxX) + b) { return true }\n        \n        // While slope `a` can theoretically never be `0`, we should protect against division by zero.\n        guard a != 0 else { return false }\n        \n        // Check for collision with the bottom edge of the view port (e.g. `x = (maxY - b) / a`).\n        if isInBoundsX((contentRect.maxY - b) / a) { return true }\n        \n        // Check for collision with the top edge of the view port (e.g. `x = (minY - b) / a`).\n        if isInBoundsX((contentRect.minY - b) / a) { return true }\n\n        // This line does not intersect the view port.\n        return false\n    }\n    \n    /// The current x-scale factor\n    @objc open var scaleX: CGFloat\n    {\n        return _scaleX\n    }\n    \n    /// The current y-scale factor\n    @objc open var scaleY: CGFloat\n    {\n        return _scaleY\n    }\n    \n    /// The minimum x-scale factor\n    @objc open var minScaleX: CGFloat\n    {\n        return _minScaleX\n    }\n    \n    /// The minimum y-scale factor\n    @objc open var minScaleY: CGFloat\n    {\n        return _minScaleY\n    }\n    \n    /// The minimum x-scale factor\n    @objc open var maxScaleX: CGFloat\n    {\n        return _maxScaleX\n    }\n    \n    /// The minimum y-scale factor\n    @objc open var maxScaleY: CGFloat\n    {\n        return _maxScaleY\n    }\n    \n    /// The translation (drag / pan) distance on the x-axis\n    @objc open var transX: CGFloat\n    {\n        return _transX\n    }\n    \n    /// The translation (drag / pan) distance on the y-axis\n    @objc open var transY: CGFloat\n    {\n        return _transY\n    }\n    \n    /// if the chart is fully zoomed out, return true\n    @objc open var isFullyZoomedOut: Bool\n    {\n        return isFullyZoomedOutX && isFullyZoomedOutY\n    }\n    \n    /// `true` if the chart is fully zoomed out on it's y-axis (vertical).\n    @objc open var isFullyZoomedOutY: Bool\n    {\n        return !(_scaleY > _minScaleY || _minScaleY > 1.0)\n    }\n    \n    /// `true` if the chart is fully zoomed out on it's x-axis (horizontal).\n    @objc open var isFullyZoomedOutX: Bool\n    {\n        return !(_scaleX > _minScaleX || _minScaleX > 1.0)\n    }\n    \n    /// Set an offset in pixels that allows the user to drag the chart over it's bounds on the x-axis.\n    @objc open func setDragOffsetX(_ offset: CGFloat)\n    {\n        _transOffsetX = offset\n    }\n    \n    /// Set an offset in pixels that allows the user to drag the chart over it's bounds on the y-axis.\n    @objc open func setDragOffsetY(_ offset: CGFloat)\n    {\n        _transOffsetY = offset\n    }\n    \n    /// `true` if both drag offsets (x and y) are zero or smaller.\n    @objc open var hasNoDragOffset: Bool\n    {\n        return _transOffsetX <= 0.0 && _transOffsetY <= 0.0\n    }\n    \n    /// `true` if the chart is not yet fully zoomed out on the x-axis\n    @objc open var canZoomOutMoreX: Bool\n    {\n        return _scaleX > _minScaleX\n    }\n    \n    /// `true` if the chart is not yet fully zoomed in on the x-axis\n    @objc open var canZoomInMoreX: Bool\n    {\n        return _scaleX < _maxScaleX\n    }\n    \n    /// `true` if the chart is not yet fully zoomed out on the y-axis\n    @objc open var canZoomOutMoreY: Bool\n    {\n        return _scaleY > _minScaleY\n    }\n    \n    /// `true` if the chart is not yet fully zoomed in on the y-axis\n    @objc open var canZoomInMoreY: Bool\n    {\n        return _scaleY < _maxScaleY\n    }\n}\n"
  },
  {
    "path": "mac/Pods/Pods.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 50;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t00F52B5B3C90538FE25AEBD9DCC93249 /* ChartDataProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = B5C48EE2BD97F532614152EE3B7174C1 /* ChartDataProvider.swift */; };\n\t\t01618174B06DD11428CA21BD4F996704 /* ComponentBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 982DAA1854D8023ABFEA6BC33FC82DB0 /* ComponentBase.swift */; };\n\t\t02DB3B5C782BC3DEF6B921B9D049201D /* BubbleChartDataEntry.swift in Sources */ = {isa = PBXBuildFile; fileRef = E08B71C982EA49726288682CBB3396D8 /* BubbleChartDataEntry.swift */; };\n\t\t0388D8402985CBE0DB060BB0D7CCB2ED /* Description.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9C8836136B3D1D17F9D3F8B9D95D3388 /* Description.swift */; };\n\t\t03D8F8D16FAF2B28113DB82186DBC66F /* BarLineChartViewBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = B3AA2F159DA8DDB1545D218F25CF602D /* BarLineChartViewBase.swift */; };\n\t\t0769C281810E13C0985B2A414F20ADDE /* XAxisRendererHorizontalBarChart.swift in Sources */ = {isa = PBXBuildFile; fileRef = B977CDCAF22C01387F25227CF5E529DA /* XAxisRendererHorizontalBarChart.swift */; };\n\t\t090EC855719CDC566D1972121B042A40 /* Pods-keyrace-mac-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = 0D257BE844F46F78FFA7342CECD2F880 /* Pods-keyrace-mac-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\t09D2EA12CED518BAA4BCB6A707FA3125 /* TriangleShapeRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8FAE17F95C8E67F7DD27B73DC5094352 /* TriangleShapeRenderer.swift */; };\n\t\t0A30CC2BF450A16F1F4C39C95CFA3A66 /* BarChartDataProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = FEF476294176D6409FCAE02A9C446303 /* BarChartDataProvider.swift */; };\n\t\t0E7DC6451BEFB26E3A47621C0B7F1C16 /* ViewPortJob.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6FB84441B8E2DCF6A26C65D45A397E7E /* ViewPortJob.swift */; };\n\t\t1132976D856E1857C4CD9989B9A8EBCE /* PieChartView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8B96B0EF0930A5844DDD4478360FBCBD /* PieChartView.swift */; };\n\t\t12A718BC5CDEB44AA6B58C8EE7C13128 /* ChartColorTemplates.swift in Sources */ = {isa = PBXBuildFile; fileRef = B762FBC3ED87739CF4DAB160D7BC7721 /* ChartColorTemplates.swift */; };\n\t\t13D3AB43B01F6D78090806390BD29B7E /* BarChartDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A487EA532C7C7089D2D437C41720734 /* BarChartDataSet.swift */; };\n\t\t171D7FC46EC56CF9B16D97877A176C10 /* ChartUtils.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0840460E6B20D57B0C6D83CAF5284438 /* ChartUtils.swift */; };\n\t\t1AF2A57E2B15E7DB326A38D8D8A4FBE2 /* ChartViewBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E83764B86E2AD6C8404CE9E3E3973FC /* ChartViewBase.swift */; };\n\t\t1C2DB744A980164665CE687581222A12 /* Charts-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 04D67F763094F475FC117DDA0423C310 /* Charts-dummy.m */; };\n\t\t1D2BEF7D292100F700E00314C6FA6FAF /* CandleStickChartView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F4F25DDB985AB3FF5DFD5DE5CE8383F5 /* CandleStickChartView.swift */; };\n\t\t1EA6964A5C78B205DFC45AFC08637DF8 /* LegendEntry.swift in Sources */ = {isa = PBXBuildFile; fileRef = 22336FC2A8799C235B5B45A641881D41 /* LegendEntry.swift */; };\n\t\t1F33F0B7F8701E9A20F90C6A32B2CA03 /* Platform.swift in Sources */ = {isa = PBXBuildFile; fileRef = CDCFD0A6BEC4B92F90140951AB59AC27 /* Platform.swift */; };\n\t\t1F91BEF50B63CA55CA641D3367FCA3F3 /* CandleStickChartRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80F9005CEE4CD5BB4E50C3379F8C7D2F /* CandleStickChartRenderer.swift */; };\n\t\t22681421488F1E799B4C8FFC0A77F29B /* ZoomViewJob.swift in Sources */ = {isa = PBXBuildFile; fileRef = 54FD294FABA663DD42E0A312B4ACAF1B /* ZoomViewJob.swift */; };\n\t\t25D675B271C3E073CF2C27B945FAADBB /* RadarChartView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5BDD3B37C60FEA9DF5A07DF5B69C56BA /* RadarChartView.swift */; };\n\t\t2652DBC582FD2BF6AA5B2A40B66020EC /* CircleShapeRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0281969024E2336858175E92AAEE5BF /* CircleShapeRenderer.swift */; };\n\t\t26EFCEF521B95D2CCB19E5535408A1FA /* Fill.swift in Sources */ = {isa = PBXBuildFile; fileRef = ACA11F4A1B918C7BEB459B8DE15FBA42 /* Fill.swift */; };\n\t\t27303BB4BDD2C456C1DEC36087E756B4 /* ICandleChartDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9F71AF6D8A36E6262C1E9B000FF8367C /* ICandleChartDataSet.swift */; };\n\t\t2AFDC0B52F5347C726EAAD89365E3978 /* PieChartDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4926FB589990AB6F079A9D6A138D5497 /* PieChartDataSet.swift */; };\n\t\t2E91A4CB83F9DC6BDDAE907A38FE4648 /* BubbleChartDataProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = A2BA199F97C72A9D0A0EFFC2FD30DBB6 /* BubbleChartDataProvider.swift */; };\n\t\t2F819FF7F7721DA042E977EF91BA545D /* CombinedChartRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = A5A15E35076A3B667B8FD0509EB3AF06 /* CombinedChartRenderer.swift */; };\n\t\t31918F06050D6445E06FEDF8E2183AF6 /* XAxisRendererRadarChart.swift in Sources */ = {isa = PBXBuildFile; fileRef = 963DE893F037587387004805D1A922C3 /* XAxisRendererRadarChart.swift */; };\n\t\t32B122E4A8FECD28F192174EA3A4C704 /* MarkerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 03D4E380F40EAEFB1DA84D63EE80B2FD /* MarkerView.swift */; };\n\t\t34BC5667BA39781B4F70C9AC0518E537 /* CombinedChartDataProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7C9B0E0005C6D71214BFEF16FB514846 /* CombinedChartDataProvider.swift */; };\n\t\t35C57ED01BE2D7FD6F4DACD96F5EDFE1 /* IFillFormatter.swift in Sources */ = {isa = PBXBuildFile; fileRef = EA427B68ADA2432EB0ADB4B261CC04A9 /* IFillFormatter.swift */; };\n\t\t39E13C8ED0C32E9EC0B353CA45C70CF2 /* AnimatedMoveViewJob.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5A9B286BDFE78ABF03B0C4DDCFD8FBF6 /* AnimatedMoveViewJob.swift */; };\n\t\t3A5078F021BB004E2F4463F360D41391 /* HorizontalBarChartView.swift in Sources */ = {isa = PBXBuildFile; fileRef = CC21A85FF755B71FE7150933C213AD28 /* HorizontalBarChartView.swift */; };\n\t\t3C84B052E203BF5E7F174EDAB824897B /* Pods-keyrace-mac-dummy.m in Sources */ = {isa = PBXBuildFile; fileRef = 0211DA1BE0E7F4E13B81E37FEACDEB70 /* Pods-keyrace-mac-dummy.m */; };\n\t\t3D57709B53538839313AA6A6DC6E322C /* ILineRadarChartDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = C1C4B267A4820A775520B1F23ECE97E0 /* ILineRadarChartDataSet.swift */; };\n\t\t3EAC9B9D96C569653EF71750289EB0D0 /* CandleChartDataEntry.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAB5FAA917CB8604181B74E2806CB081 /* CandleChartDataEntry.swift */; };\n\t\t474E946BEBC8E12EA9C8D766BDFCEEF5 /* Platform+Graphics.swift in Sources */ = {isa = PBXBuildFile; fileRef = A241627ED7CACB2517AF5D95B139FA28 /* Platform+Graphics.swift */; };\n\t\t4975CACC893A427910F64270C28E7275 /* RadarChartData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2906C15E4AAF238B01D2F3816A9E94A2 /* RadarChartData.swift */; };\n\t\t4994E7B2E69CF616E8E7ECD19014CAE0 /* CandleChartDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 361F7A3E2259B2B52B112ACAC2CE35C4 /* CandleChartDataSet.swift */; };\n\t\t4BBFCE1FBB68AAFB91FF682CD80B9F69 /* ChevronDownShapeRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9EBFC09E188572ED1B1102DC83212F3C /* ChevronDownShapeRenderer.swift */; };\n\t\t4C32C75AC457E9E150B9A6AF9D1BF36B /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C1430F003D39D9906881A6AC724B7931 /* Cocoa.framework */; };\n\t\t4D9563B240B9127EDF6FBA5A21180FD8 /* PieChartData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8FE39773953A05362EED2186FC542B9D /* PieChartData.swift */; };\n\t\t4DB24C948D1C4F4FB43DAA833D049885 /* LegendRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = A229399F00599645CBD267A0FC0A07E0 /* LegendRenderer.swift */; };\n\t\t5128310DB4D59B51642B2A13972C3434 /* IAxisValueFormatter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3CC1CAEC7CC7F954BB49C60C7987BAC5 /* IAxisValueFormatter.swift */; };\n\t\t53772EF4F22DD42A63551C4CD687E9A6 /* LineRadarChartDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = CCD2EA381942C4006320FBDE1E3B86CF /* LineRadarChartDataSet.swift */; };\n\t\t58398B0E03224E5EBE7FCFAD62F8FB69 /* ILineChartDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EF31F6C01D1D5CEBABFF06A1EA53B83 /* ILineChartDataSet.swift */; };\n\t\t5847AEA5F6021F082A9238BDD5801079 /* Platform+Accessibility.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0C772E5330CFA8563393FB3B93F49D19 /* Platform+Accessibility.swift */; };\n\t\t5B96DE0FB615C832ACB06B9E16B49740 /* IValueFormatter.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA1EB0270C9AF81C443D76CEF39F2274 /* IValueFormatter.swift */; };\n\t\t5C790091CB1B0D41E23A4AE5FA727983 /* IBubbleChartDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = DEF0442BC2DEEBAD45CD4240D2002ED8 /* IBubbleChartDataSet.swift */; };\n\t\t5D79FD33591AEAEB1B9BF86EC4EA3EA6 /* BubbleChartRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = B57CE21CBA350F5390D423FF734D11CF /* BubbleChartRenderer.swift */; };\n\t\t5DA6F4FC8413B90BD793D0AE181C2AA9 /* SquareShapeRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 85BEACA32BCD34C2CD03C5EFC0FE8AAC /* SquareShapeRenderer.swift */; };\n\t\t5E27C6B54F72D3C34AB6605772DF7E70 /* LineScatterCandleRadarChartDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 730E07622026A5A5E75F286CB850C568 /* LineScatterCandleRadarChartDataSet.swift */; };\n\t\t61B753A042411BCF77F768D958106A5C /* RadarHighlighter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 20762B1AA4729D653B9EEA7B06362E9C /* RadarHighlighter.swift */; };\n\t\t62BEAD080E107195393F8ABBA8C81572 /* BarChartData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9465B7BFAAE224331E14F0E3E4D7BA0C /* BarChartData.swift */; };\n\t\t62C2F7F87CA413E2407F1F8DECA88949 /* IChartDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 472A1BECA75869F0E182193909DF7598 /* IChartDataSet.swift */; };\n\t\t640C152125D86F7A3C9BDD7D18563CBA /* Platform+Gestures.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0E287149E74C235521D84600D0C9B280 /* Platform+Gestures.swift */; };\n\t\t644CBE15115BFEDB16BF372F81CFF076 /* PieRadarHighlighter.swift in Sources */ = {isa = PBXBuildFile; fileRef = D064CCBEB3D8F86F6C6EB1E51C427CFA /* PieRadarHighlighter.swift */; };\n\t\t64A0821B4F9954E56639DAF9BD7E575C /* Transformer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 219FD25090597D5812A06B145F0E6F75 /* Transformer.swift */; };\n\t\t66B829842549EECCE91E61D34FFABCBA /* ScatterChartData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A7B411ABEF18348A1C24049179B0396 /* ScatterChartData.swift */; };\n\t\t66FC952C43367208D641932AEB59DA8A /* LineChartDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 80D4C18DB4EABA7352BA57DD27731968 /* LineChartDataSet.swift */; };\n\t\t675D24D585A2506762D77E6052517E00 /* IPieChartDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = A0F14905E040D69883458A7BA60D77B3 /* IPieChartDataSet.swift */; };\n\t\t6801E6D885988880F502EFA919360446 /* DefaultAxisValueFormatter.swift in Sources */ = {isa = PBXBuildFile; fileRef = A763AF52AFF556911CCB6DE94DCAB56E /* DefaultAxisValueFormatter.swift */; };\n\t\t683F5BAD171DD257F3EC9472323B4BC7 /* RadarChartRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 55F91B713D90321789BFA3CF0F7100EE /* RadarChartRenderer.swift */; };\n\t\t6A532F6858B2D5219D76BEFE1E74A5A6 /* HorizontalBarChartRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 45CCCA654941CB27552C2FAD2D1122B1 /* HorizontalBarChartRenderer.swift */; };\n\t\t6FDD5EA5214B8CDC0E747916F07D74C2 /* YAxisRendererRadarChart.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4D83B64A18CDDF1C04F570FA8EDEA669 /* YAxisRendererRadarChart.swift */; };\n\t\t709152D66394DCE1D7D3802C65090118 /* IBarLineScatterCandleBubbleChartDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 656AA19EC1629C80BCFFD4315DD5BDB7 /* IBarLineScatterCandleBubbleChartDataSet.swift */; };\n\t\t7320CBA29BE1D473CA5BE26B1D226D04 /* Animator.swift in Sources */ = {isa = PBXBuildFile; fileRef = D6C914CE5746D0FCF154D34789221D3D /* Animator.swift */; };\n\t\t74D4DC9B702FBC147C03965E9F271128 /* CrossShapeRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9C76396CFA6540619A62D61E2A294362 /* CrossShapeRenderer.swift */; };\n\t\t75B22CB8C580F73B117214B061436099 /* IMarker.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5801D58E9C83CC70716892F19D6A348E /* IMarker.swift */; };\n\t\t7605565F28B5C078923EE0A3F5D7C86E /* ChartData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 72CDFA4660BA481182F5396D68931AE3 /* ChartData.swift */; };\n\t\t7731319719C1878AE7AF9D78705712AF /* Range.swift in Sources */ = {isa = PBXBuildFile; fileRef = CE6013C31DB5F628FCFF459656034379 /* Range.swift */; };\n\t\t7ACE9E9A28CB14F6DB0D7218C8B50917 /* BubbleChartDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 61D7F5CD3E891DC2B37BD432ECAC7891 /* BubbleChartDataSet.swift */; };\n\t\t7D605E2EF1E737244832E3329AE89746 /* BarChartRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = E640D5726A76F14086D66DAE9EDB8AF1 /* BarChartRenderer.swift */; };\n\t\t7EA6B81624538BCC292467DC0E7832D0 /* BubbleChartData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 53E52906494517D7BDFFBAD661170110 /* BubbleChartData.swift */; };\n\t\t8104AC0D8B60EEC6FB5C73EAFA1934AA /* PieRadarChartViewBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 310F7771A75BD6E2CBACF851524328A8 /* PieRadarChartViewBase.swift */; };\n\t\t81FCFDD76834B83BF46D3741C79FF29A /* MarkerImage.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6D514D886299C4E38ACE36A8CC9376AA /* MarkerImage.swift */; };\n\t\t83907D8546A31C4C4B1E31DA90A0CD77 /* ChartLimitLine.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82208E692B4A402C7DF9DF8F98907938 /* ChartLimitLine.swift */; };\n\t\t83BBD232FE2EA04587B21C81B73AFC09 /* ChartDataEntryBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 54963C18E39F70602633881D10DA1DEA /* ChartDataEntryBase.swift */; };\n\t\t8606577BE49942FFBE9764F6BAC993A8 /* BarHighlighter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 82B18F265074AA3D7BA6F3B73B37F48C /* BarHighlighter.swift */; };\n\t\t8CBA559D0C2045A8E6F7F9922C553F0F /* CandleChartDataProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5A19B026B6D5B009AF55843C77E64C7D /* CandleChartDataProvider.swift */; };\n\t\t8D62FB3504F2C9B9E0910E493637F7BE /* BarChartDataEntry.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4D8ACD76E884D121786129799A6C62A6 /* BarChartDataEntry.swift */; };\n\t\t8E01F38A1667D8B2C57E20400D6BB425 /* LineRadarRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9E0829E790CBE9CA5282F73867C31AE /* LineRadarRenderer.swift */; };\n\t\t8EE80878B32207C5EC1712D83F04983A /* ChartDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = DE84760CA92A44451BAF0388CD92EB6B /* ChartDataSet.swift */; };\n\t\t91704461340ABFBEB88425DCC9867890 /* HorizontalBarHighlighter.swift in Sources */ = {isa = PBXBuildFile; fileRef = FE7FF71FC6D20F4EF1FDA988B5491143 /* HorizontalBarHighlighter.swift */; };\n\t\t91FA70B412F137846836139ED890FF6C /* ChartBaseDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = B9B10DED9CF90164B6A993344964857D /* ChartBaseDataSet.swift */; };\n\t\t930F4FD273BB41A8D1BB1F07608B3028 /* RadarChartDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = BE5D36BF7809E29E812564777A1AC752 /* RadarChartDataSet.swift */; };\n\t\t93966518847AB0F104DFCC9DC5B63197 /* ChartHighlighter.swift in Sources */ = {isa = PBXBuildFile; fileRef = E342C8773A1BA8773376B4195576B48D /* ChartHighlighter.swift */; };\n\t\t9400854C32DFF16FD068D280CD43176F /* AxisBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7AFEE06A40FD441B75D6442A4808E8FD /* AxisBase.swift */; };\n\t\t94921CD3D3FBA3D6572678B1F59AA957 /* TransformerHorizontalBarChart.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4BEF19D891C300E9F3E61B100982A371 /* TransformerHorizontalBarChart.swift */; };\n\t\t970B9C4530EA8ACC31B005CE4523C91B /* AnimatedZoomViewJob.swift in Sources */ = {isa = PBXBuildFile; fileRef = F8029D3F7C7235D9DAD26F6F024AEA05 /* AnimatedZoomViewJob.swift */; };\n\t\t991A4EA362C241D77DF184594E226E93 /* ScatterChartView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 76AA4227E480A6D7128216FDF75ABCA0 /* ScatterChartView.swift */; };\n\t\t9C081B18BB1A54D953EB89605319AA77 /* Legend.swift in Sources */ = {isa = PBXBuildFile; fileRef = F55AB4B9BE69EE5A91C12C6E2D3A254F /* Legend.swift */; };\n\t\t9F668D7B0F3CEA3608D305A013A7BE48 /* Highlight.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB74972F135C7166CE1348B423582867 /* Highlight.swift */; };\n\t\tA688509392FC14A799979CEA50908A2D /* DataApproximator+N.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2DE0E041B547D06BBB282DB3D2831F7D /* DataApproximator+N.swift */; };\n\t\tA710DCACFF8FFEA66D7ACC5D1BD95C1D /* XAxisRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1137A3154E31F919E544231EDBE4F4A4 /* XAxisRenderer.swift */; };\n\t\tA86CEF7063CDF44017CBFC67DEA1168E /* ChevronUpShapeRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5CB55ED6B3C8E714443CDB854DA6E806 /* ChevronUpShapeRenderer.swift */; };\n\t\tA885B8D33137F4CEBDD0776D44275A53 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C1430F003D39D9906881A6AC724B7931 /* Cocoa.framework */; };\n\t\tA95748A4D50EEB26B6290061C34DAA6D /* AnimatedViewPortJob.swift in Sources */ = {isa = PBXBuildFile; fileRef = 09EB01587B2AA70DC3FBE251AFA94DFD /* AnimatedViewPortJob.swift */; };\n\t\tAA39F0560285BF5448411D429ED9408D /* IScatterChartDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8A85155430AE43695062008A4862ABE0 /* IScatterChartDataSet.swift */; };\n\t\tABC6878E21B62261BBB4E1631E5EDAF1 /* ChartDataEntry.swift in Sources */ = {isa = PBXBuildFile; fileRef = 925B133230158B28D8930FEC1E65AD5F /* ChartDataEntry.swift */; };\n\t\tAD1E6E99CE3807BF3DEE1BEBE6E3CAF2 /* BarChartView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F31DE9FFC8BF98D4EA3157F618246059 /* BarChartView.swift */; };\n\t\tAEAB95AFD2529CDAF3A10D90A165CF16 /* BarLineScatterCandleBubbleChartDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6EA8CD47E32F7F47C61D7C746928EF49 /* BarLineScatterCandleBubbleChartDataSet.swift */; };\n\t\tAF34EC6CDB336F35ACD18C2CA8428251 /* PieChartDataEntry.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3A4DB505F06D59AEF8D380731C3F6A1D /* PieChartDataEntry.swift */; };\n\t\tB00A1568A89DD820BC9063DC6961540D /* XAxis.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0F4DDEF4A7E1473A0A77044933BBC7EB /* XAxis.swift */; };\n\t\tB14341E138DC6D05193C2866864E9DEC /* AxisRendererBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B455CB3260113D06D0708E1A7EF6C70 /* AxisRendererBase.swift */; };\n\t\tB45CE2B91939EC0EA7898C1C6BA16367 /* ILineScatterCandleRadarChartDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = A90D03D5BD551CF9814FDA9DBA45C503 /* ILineScatterCandleRadarChartDataSet.swift */; };\n\t\tB65DAD4280582DBED3A5A2C62185B389 /* YAxisRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = CEEED036C18816CECC0CE22C86D1282A /* YAxisRenderer.swift */; };\n\t\tB87DABFAA95CDA5DFDDD2F409FDD5DF3 /* YAxisRendererHorizontalBarChart.swift in Sources */ = {isa = PBXBuildFile; fileRef = C703A25169E5D43CAD96BBA0AAC69C53 /* YAxisRendererHorizontalBarChart.swift */; };\n\t\tBB75859BDCF578D67C08E6E6741701EB /* PieChartRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 681CC7EFDA3A2065E4313010BEB8E1F0 /* PieChartRenderer.swift */; };\n\t\tBCD42880A54D247B7A68AC06335D0AF5 /* YAxis.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C7037B35851C6D052F95DF73E7834EC /* YAxis.swift */; };\n\t\tBDD367ED4BB5510C86658115EE6BE71E /* CombinedHighlighter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4186796F0F1A447948DBB31A0BB6C13D /* CombinedHighlighter.swift */; };\n\t\tC031EFD3013B5803C3B7A6D07E4721C0 /* CombinedChartData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 019A8A956A819C818DCA46DFA00E61B1 /* CombinedChartData.swift */; };\n\t\tC2012E1E9FD44B75ECF4B4B3D3782293 /* IndexAxisValueFormatter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 268820956AD9E6F3005E70F48761B403 /* IndexAxisValueFormatter.swift */; };\n\t\tC45A1A018758BC37A59C89114F9A4F75 /* Platform+Touch Handling.swift in Sources */ = {isa = PBXBuildFile; fileRef = A179508508A4EEFB527CAA42968E9197 /* Platform+Touch Handling.swift */; };\n\t\tC5880AE977F94A1AE25E756A805B7B0B /* LineChartDataProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 41D0098654976FC43104CF290C9AC02D /* LineChartDataProvider.swift */; };\n\t\tC5A3430178D9993D8A5A13864AE40A45 /* ScatterChartDataProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF52BC3A519D9360BCA9A79F7B7C7554 /* ScatterChartDataProvider.swift */; };\n\t\tC6F4045EAF5410768B595ED98863A250 /* Renderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 467E88A8A712690EC5CCE4B8FD4CACEA /* Renderer.swift */; };\n\t\tC72D7A57303FE4E7E25AB747DD3A85AC /* RadarChartDataEntry.swift in Sources */ = {isa = PBXBuildFile; fileRef = D466846EAE78237BBF2B30F1C005611F /* RadarChartDataEntry.swift */; };\n\t\tC742D0AA9431960E21B6203AF6D2F62B /* PieHighlighter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4BD493BB0F0A3F7D7A61E2E7B5AE9B15 /* PieHighlighter.swift */; };\n\t\tC798D8F553DB176CD793E27B4C309DC6 /* ChartDataRendererBase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8C846D69A45DE7B151D62918B47C9C09 /* ChartDataRendererBase.swift */; };\n\t\tC7F30DCF3631591639429F38CDA24EBC /* BarLineScatterCandleBubbleRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAA0F6E3688964B6BE8E9AF58E0BA4EC /* BarLineScatterCandleBubbleRenderer.swift */; };\n\t\tC8092EC19C870273D18B562A7EE9CD0F /* BarLineScatterCandleBubbleChartDataProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = D72F3D17B7969DEA5559D01C445F4E98 /* BarLineScatterCandleBubbleChartDataProvider.swift */; };\n\t\tCAE986D939019B7726C896B88AC34B82 /* ScatterChartDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAA8EBBE1A58B09493C2E2986D3C119D /* ScatterChartDataSet.swift */; };\n\t\tCB6E235EB0A5B896F9D1815877757EF9 /* CandleChartData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E783FA79E7C5FEE6D62879F518ABF0A /* CandleChartData.swift */; };\n\t\tCDABB0AA47F0EEE957FCE629F8D2DB6B /* BubbleChartView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F657E07032F55A96BEE75F573FBC54D1 /* BubbleChartView.swift */; };\n\t\tCEC814CFD549BCDDAB65F5918969182E /* IHighlighter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4D7045AE44AA41F438E17FF48B7B8DCA /* IHighlighter.swift */; };\n\t\tD68F93293888B6776369185028CB60B0 /* IBarChartDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8FEA8AC06FB34D00653F00EB4DA31444 /* IBarChartDataSet.swift */; };\n\t\tD6E011A7BA193945CEA69517E40CBD48 /* XShapeRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = F116AB9BF75A2A772277869CDD16CFD5 /* XShapeRenderer.swift */; };\n\t\tD7B623CFD7231E00FB60419AA17A3E82 /* MoveViewJob.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F617C946A8AF36F4BE67A3944DCD159 /* MoveViewJob.swift */; };\n\t\tD885D137C7BBBBA479BDB92A72B7D04E /* Platform+Color.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3DFD8284D505942F173AB98D06E36376 /* Platform+Color.swift */; };\n\t\tD9687FA7E8A77056DC5C8444EEA904E5 /* BarLineScatterCandleBubbleChartData.swift in Sources */ = {isa = PBXBuildFile; fileRef = E456311CD02FC8F7B9F13164C6053805 /* BarLineScatterCandleBubbleChartData.swift */; };\n\t\tDC28EC495C8806D9B9C0CB0C2F8E8673 /* LineScatterCandleRadarRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = B2D17B401D069A99D3A5DE2230884184 /* LineScatterCandleRadarRenderer.swift */; };\n\t\tDD3CC52D093C0DF2CF8109C55CFFCD85 /* DefaultValueFormatter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2B5B198EAB22E4CF1BCB058341BEBA1F /* DefaultValueFormatter.swift */; };\n\t\tDDCAF53B6EE94F6ADF428036C2A85244 /* DataApproximator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9571799E2B70E3638C50E190BCF7FC1A /* DataApproximator.swift */; };\n\t\tE2FF6F533C0CFB1461BA3D7B76B48A9C /* DefaultFillFormatter.swift in Sources */ = {isa = PBXBuildFile; fileRef = CB5714A0027C8A21F4A61B3E0273D37E /* DefaultFillFormatter.swift */; };\n\t\tE3EDB632F407232103226EB2AF8C239D /* Charts-umbrella.h in Headers */ = {isa = PBXBuildFile; fileRef = E5258784B6E97243813A800D0D761BEC /* Charts-umbrella.h */; settings = {ATTRIBUTES = (Public, ); }; };\n\t\tE4131026AAE1E3333FB46E14CED55F2A /* ViewPortHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18119E2E59FD581E3BE807720C0B6285 /* ViewPortHandler.swift */; };\n\t\tE73D9F2950182C774E50E891F75C1BB4 /* LineChartView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E14A2AF3B0D0B87457A9365D67335375 /* LineChartView.swift */; };\n\t\tE999737BF0D21446B7FFE4DA783EACB2 /* ScatterChartRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4EA32329972480D9F8F828C733B63F62 /* ScatterChartRenderer.swift */; };\n\t\tECC149B136D4D63AF251912E051A142F /* IShapeRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = FE9895F38C7A3054AD2F794757525624 /* IShapeRenderer.swift */; };\n\t\tED58A23EB5289726B5D74EFEEA590BDD /* LineChartData.swift in Sources */ = {isa = PBXBuildFile; fileRef = D5870D99A8B67AFF39FEA87AED03835E /* LineChartData.swift */; };\n\t\tF1B3693550BD159B7E910C182326A44B /* ChartAnimationEasing.swift in Sources */ = {isa = PBXBuildFile; fileRef = C6173E76B956E7C1315DEA28B19CA44C /* ChartAnimationEasing.swift */; };\n\t\tF2C1EF0010084FA2B769B019EBD6D909 /* CombinedChartView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0141308887815C97C9170EC63901E651 /* CombinedChartView.swift */; };\n\t\tFC378CAAA9FD5B4B156B982EBDB12BA3 /* IRadarChartDataSet.swift in Sources */ = {isa = PBXBuildFile; fileRef = F7724C18FC084866A1E40F9681848392 /* IRadarChartDataSet.swift */; };\n\t\tFEFD4F20D5515E1D596FCFA083EB05D7 /* LineChartRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 85D2EEBA26F92B9A8A8697210DBC5E24 /* LineChartRenderer.swift */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXContainerItemProxy section */\n\t\tF09E63C596DE5E11C43A6564C42655E0 /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = BFDFE7DC352907FC980B868725387E98 /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = BF03B0B2B8B052092CB5F90CC5FB3757;\n\t\t\tremoteInfo = Charts;\n\t\t};\n/* End PBXContainerItemProxy section */\n\n/* Begin PBXFileReference section */\n\t\t0141308887815C97C9170EC63901E651 /* CombinedChartView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CombinedChartView.swift; path = Source/Charts/Charts/CombinedChartView.swift; sourceTree = \"<group>\"; };\n\t\t019A8A956A819C818DCA46DFA00E61B1 /* CombinedChartData.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CombinedChartData.swift; path = Source/Charts/Data/Implementations/Standard/CombinedChartData.swift; sourceTree = \"<group>\"; };\n\t\t0211DA1BE0E7F4E13B81E37FEACDEB70 /* Pods-keyrace-mac-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = \"Pods-keyrace-mac-dummy.m\"; sourceTree = \"<group>\"; };\n\t\t03D4E380F40EAEFB1DA84D63EE80B2FD /* MarkerView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = MarkerView.swift; path = Source/Charts/Components/MarkerView.swift; sourceTree = \"<group>\"; };\n\t\t04D67F763094F475FC117DDA0423C310 /* Charts-dummy.m */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.objc; path = \"Charts-dummy.m\"; sourceTree = \"<group>\"; };\n\t\t0840460E6B20D57B0C6D83CAF5284438 /* ChartUtils.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ChartUtils.swift; path = Source/Charts/Utils/ChartUtils.swift; sourceTree = \"<group>\"; };\n\t\t09EB01587B2AA70DC3FBE251AFA94DFD /* AnimatedViewPortJob.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AnimatedViewPortJob.swift; path = Source/Charts/Jobs/AnimatedViewPortJob.swift; sourceTree = \"<group>\"; };\n\t\t0C772E5330CFA8563393FB3B93F49D19 /* Platform+Accessibility.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = \"Platform+Accessibility.swift\"; path = \"Source/Charts/Utils/Platform+Accessibility.swift\"; sourceTree = \"<group>\"; };\n\t\t0D257BE844F46F78FFA7342CECD2F880 /* Pods-keyrace-mac-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = \"Pods-keyrace-mac-umbrella.h\"; sourceTree = \"<group>\"; };\n\t\t0E287149E74C235521D84600D0C9B280 /* Platform+Gestures.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = \"Platform+Gestures.swift\"; path = \"Source/Charts/Utils/Platform+Gestures.swift\"; sourceTree = \"<group>\"; };\n\t\t0F4DDEF4A7E1473A0A77044933BBC7EB /* XAxis.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = XAxis.swift; path = Source/Charts/Components/XAxis.swift; sourceTree = \"<group>\"; };\n\t\t1137A3154E31F919E544231EDBE4F4A4 /* XAxisRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = XAxisRenderer.swift; path = Source/Charts/Renderers/XAxisRenderer.swift; sourceTree = \"<group>\"; };\n\t\t18119E2E59FD581E3BE807720C0B6285 /* ViewPortHandler.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ViewPortHandler.swift; path = Source/Charts/Utils/ViewPortHandler.swift; sourceTree = \"<group>\"; };\n\t\t1A7B411ABEF18348A1C24049179B0396 /* ScatterChartData.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ScatterChartData.swift; path = Source/Charts/Data/Implementations/Standard/ScatterChartData.swift; sourceTree = \"<group>\"; };\n\t\t1E3C8CA9224056D8D7A1739230C380E2 /* Pods-keyrace-mac.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = \"Pods-keyrace-mac.release.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t1E783FA79E7C5FEE6D62879F518ABF0A /* CandleChartData.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CandleChartData.swift; path = Source/Charts/Data/Implementations/Standard/CandleChartData.swift; sourceTree = \"<group>\"; };\n\t\t20762B1AA4729D653B9EEA7B06362E9C /* RadarHighlighter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RadarHighlighter.swift; path = Source/Charts/Highlight/RadarHighlighter.swift; sourceTree = \"<group>\"; };\n\t\t219FD25090597D5812A06B145F0E6F75 /* Transformer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Transformer.swift; path = Source/Charts/Utils/Transformer.swift; sourceTree = \"<group>\"; };\n\t\t22336FC2A8799C235B5B45A641881D41 /* LegendEntry.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = LegendEntry.swift; path = Source/Charts/Components/LegendEntry.swift; sourceTree = \"<group>\"; };\n\t\t268820956AD9E6F3005E70F48761B403 /* IndexAxisValueFormatter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IndexAxisValueFormatter.swift; path = Source/Charts/Formatters/IndexAxisValueFormatter.swift; sourceTree = \"<group>\"; };\n\t\t2906C15E4AAF238B01D2F3816A9E94A2 /* RadarChartData.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RadarChartData.swift; path = Source/Charts/Data/Implementations/Standard/RadarChartData.swift; sourceTree = \"<group>\"; };\n\t\t2930D0D408850212F0A2E20DE501ECB6 /* Pods-keyrace-mac.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = \"Pods-keyrace-mac.debug.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t2B5B198EAB22E4CF1BCB058341BEBA1F /* DefaultValueFormatter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DefaultValueFormatter.swift; path = Source/Charts/Formatters/DefaultValueFormatter.swift; sourceTree = \"<group>\"; };\n\t\t2C7037B35851C6D052F95DF73E7834EC /* YAxis.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = YAxis.swift; path = Source/Charts/Components/YAxis.swift; sourceTree = \"<group>\"; };\n\t\t2DE0E041B547D06BBB282DB3D2831F7D /* DataApproximator+N.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = \"DataApproximator+N.swift\"; path = \"Source/Charts/Filters/DataApproximator+N.swift\"; sourceTree = \"<group>\"; };\n\t\t310F7771A75BD6E2CBACF851524328A8 /* PieRadarChartViewBase.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PieRadarChartViewBase.swift; path = Source/Charts/Charts/PieRadarChartViewBase.swift; sourceTree = \"<group>\"; };\n\t\t312361A9B4B10D690E10AECB9C6022A1 /* Pods_keyrace_mac.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_keyrace_mac.framework; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t329B70C148CE0946450C9DAA9D23CFB0 /* Pods-keyrace-mac.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = \"Pods-keyrace-mac.modulemap\"; sourceTree = \"<group>\"; };\n\t\t361F7A3E2259B2B52B112ACAC2CE35C4 /* CandleChartDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CandleChartDataSet.swift; path = Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift; sourceTree = \"<group>\"; };\n\t\t36463F8F974EBA12D9FB4B8ACDA7CBED /* Pods-keyrace-mac-acknowledgements.markdown */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; path = \"Pods-keyrace-mac-acknowledgements.markdown\"; sourceTree = \"<group>\"; };\n\t\t3A4DB505F06D59AEF8D380731C3F6A1D /* PieChartDataEntry.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PieChartDataEntry.swift; path = Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift; sourceTree = \"<group>\"; };\n\t\t3CC1CAEC7CC7F954BB49C60C7987BAC5 /* IAxisValueFormatter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IAxisValueFormatter.swift; path = Source/Charts/Formatters/IAxisValueFormatter.swift; sourceTree = \"<group>\"; };\n\t\t3DFD8284D505942F173AB98D06E36376 /* Platform+Color.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = \"Platform+Color.swift\"; path = \"Source/Charts/Utils/Platform+Color.swift\"; sourceTree = \"<group>\"; };\n\t\t4186796F0F1A447948DBB31A0BB6C13D /* CombinedHighlighter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CombinedHighlighter.swift; path = Source/Charts/Highlight/CombinedHighlighter.swift; sourceTree = \"<group>\"; };\n\t\t41D0098654976FC43104CF290C9AC02D /* LineChartDataProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = LineChartDataProvider.swift; path = Source/Charts/Interfaces/LineChartDataProvider.swift; sourceTree = \"<group>\"; };\n\t\t45CCCA654941CB27552C2FAD2D1122B1 /* HorizontalBarChartRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = HorizontalBarChartRenderer.swift; path = Source/Charts/Renderers/HorizontalBarChartRenderer.swift; sourceTree = \"<group>\"; };\n\t\t467E88A8A712690EC5CCE4B8FD4CACEA /* Renderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Renderer.swift; path = Source/Charts/Renderers/Renderer.swift; sourceTree = \"<group>\"; };\n\t\t472A1BECA75869F0E182193909DF7598 /* IChartDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IChartDataSet.swift; path = Source/Charts/Data/Interfaces/IChartDataSet.swift; sourceTree = \"<group>\"; };\n\t\t48027FA544793BB96B21AC8F1F684204 /* Charts.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Charts.debug.xcconfig; sourceTree = \"<group>\"; };\n\t\t4926FB589990AB6F079A9D6A138D5497 /* PieChartDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PieChartDataSet.swift; path = Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift; sourceTree = \"<group>\"; };\n\t\t4B455CB3260113D06D0708E1A7EF6C70 /* AxisRendererBase.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AxisRendererBase.swift; path = Source/Charts/Renderers/AxisRendererBase.swift; sourceTree = \"<group>\"; };\n\t\t4BD493BB0F0A3F7D7A61E2E7B5AE9B15 /* PieHighlighter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PieHighlighter.swift; path = Source/Charts/Highlight/PieHighlighter.swift; sourceTree = \"<group>\"; };\n\t\t4BEF19D891C300E9F3E61B100982A371 /* TransformerHorizontalBarChart.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = TransformerHorizontalBarChart.swift; path = Source/Charts/Utils/TransformerHorizontalBarChart.swift; sourceTree = \"<group>\"; };\n\t\t4D7045AE44AA41F438E17FF48B7B8DCA /* IHighlighter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IHighlighter.swift; path = Source/Charts/Highlight/IHighlighter.swift; sourceTree = \"<group>\"; };\n\t\t4D83B64A18CDDF1C04F570FA8EDEA669 /* YAxisRendererRadarChart.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = YAxisRendererRadarChart.swift; path = Source/Charts/Renderers/YAxisRendererRadarChart.swift; sourceTree = \"<group>\"; };\n\t\t4D8ACD76E884D121786129799A6C62A6 /* BarChartDataEntry.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BarChartDataEntry.swift; path = Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift; sourceTree = \"<group>\"; };\n\t\t4E83764B86E2AD6C8404CE9E3E3973FC /* ChartViewBase.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ChartViewBase.swift; path = Source/Charts/Charts/ChartViewBase.swift; sourceTree = \"<group>\"; };\n\t\t4EA32329972480D9F8F828C733B63F62 /* ScatterChartRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ScatterChartRenderer.swift; path = Source/Charts/Renderers/ScatterChartRenderer.swift; sourceTree = \"<group>\"; };\n\t\t4F8CCE4EA15930858831F1EE7E2800E9 /* Pods-keyrace-mac-frameworks.sh */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.script.sh; path = \"Pods-keyrace-mac-frameworks.sh\"; sourceTree = \"<group>\"; };\n\t\t53E52906494517D7BDFFBAD661170110 /* BubbleChartData.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BubbleChartData.swift; path = Source/Charts/Data/Implementations/Standard/BubbleChartData.swift; sourceTree = \"<group>\"; };\n\t\t54963C18E39F70602633881D10DA1DEA /* ChartDataEntryBase.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ChartDataEntryBase.swift; path = Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift; sourceTree = \"<group>\"; };\n\t\t54FD294FABA663DD42E0A312B4ACAF1B /* ZoomViewJob.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ZoomViewJob.swift; path = Source/Charts/Jobs/ZoomViewJob.swift; sourceTree = \"<group>\"; };\n\t\t55F91B713D90321789BFA3CF0F7100EE /* RadarChartRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RadarChartRenderer.swift; path = Source/Charts/Renderers/RadarChartRenderer.swift; sourceTree = \"<group>\"; };\n\t\t5801D58E9C83CC70716892F19D6A348E /* IMarker.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IMarker.swift; path = Source/Charts/Components/IMarker.swift; sourceTree = \"<group>\"; };\n\t\t5A19B026B6D5B009AF55843C77E64C7D /* CandleChartDataProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CandleChartDataProvider.swift; path = Source/Charts/Interfaces/CandleChartDataProvider.swift; sourceTree = \"<group>\"; };\n\t\t5A9B286BDFE78ABF03B0C4DDCFD8FBF6 /* AnimatedMoveViewJob.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AnimatedMoveViewJob.swift; path = Source/Charts/Jobs/AnimatedMoveViewJob.swift; sourceTree = \"<group>\"; };\n\t\t5BDD3B37C60FEA9DF5A07DF5B69C56BA /* RadarChartView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RadarChartView.swift; path = Source/Charts/Charts/RadarChartView.swift; sourceTree = \"<group>\"; };\n\t\t5CB55ED6B3C8E714443CDB854DA6E806 /* ChevronUpShapeRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ChevronUpShapeRenderer.swift; path = Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift; sourceTree = \"<group>\"; };\n\t\t5EF31F6C01D1D5CEBABFF06A1EA53B83 /* ILineChartDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ILineChartDataSet.swift; path = Source/Charts/Data/Interfaces/ILineChartDataSet.swift; sourceTree = \"<group>\"; };\n\t\t61D7F5CD3E891DC2B37BD432ECAC7891 /* BubbleChartDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BubbleChartDataSet.swift; path = Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift; sourceTree = \"<group>\"; };\n\t\t656AA19EC1629C80BCFFD4315DD5BDB7 /* IBarLineScatterCandleBubbleChartDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IBarLineScatterCandleBubbleChartDataSet.swift; path = Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift; sourceTree = \"<group>\"; };\n\t\t681CC7EFDA3A2065E4313010BEB8E1F0 /* PieChartRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PieChartRenderer.swift; path = Source/Charts/Renderers/PieChartRenderer.swift; sourceTree = \"<group>\"; };\n\t\t6D514D886299C4E38ACE36A8CC9376AA /* MarkerImage.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = MarkerImage.swift; path = Source/Charts/Components/MarkerImage.swift; sourceTree = \"<group>\"; };\n\t\t6EA8CD47E32F7F47C61D7C746928EF49 /* BarLineScatterCandleBubbleChartDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BarLineScatterCandleBubbleChartDataSet.swift; path = Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift; sourceTree = \"<group>\"; };\n\t\t6F1B6FDBF3D63C5ACE0A26BFAF08936F /* Charts.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; path = Charts.release.xcconfig; sourceTree = \"<group>\"; };\n\t\t6F617C946A8AF36F4BE67A3944DCD159 /* MoveViewJob.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = MoveViewJob.swift; path = Source/Charts/Jobs/MoveViewJob.swift; sourceTree = \"<group>\"; };\n\t\t6FB84441B8E2DCF6A26C65D45A397E7E /* ViewPortJob.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ViewPortJob.swift; path = Source/Charts/Jobs/ViewPortJob.swift; sourceTree = \"<group>\"; };\n\t\t71F32C50693A963B322C4C7452A23B5A /* Pods-keyrace-mac-acknowledgements.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = \"Pods-keyrace-mac-acknowledgements.plist\"; sourceTree = \"<group>\"; };\n\t\t72CDFA4660BA481182F5396D68931AE3 /* ChartData.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ChartData.swift; path = Source/Charts/Data/Implementations/Standard/ChartData.swift; sourceTree = \"<group>\"; };\n\t\t730E07622026A5A5E75F286CB850C568 /* LineScatterCandleRadarChartDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = LineScatterCandleRadarChartDataSet.swift; path = Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift; sourceTree = \"<group>\"; };\n\t\t76AA4227E480A6D7128216FDF75ABCA0 /* ScatterChartView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ScatterChartView.swift; path = Source/Charts/Charts/ScatterChartView.swift; sourceTree = \"<group>\"; };\n\t\t7AFEE06A40FD441B75D6442A4808E8FD /* AxisBase.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AxisBase.swift; path = Source/Charts/Components/AxisBase.swift; sourceTree = \"<group>\"; };\n\t\t7C9B0E0005C6D71214BFEF16FB514846 /* CombinedChartDataProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CombinedChartDataProvider.swift; path = Source/Charts/Interfaces/CombinedChartDataProvider.swift; sourceTree = \"<group>\"; };\n\t\t80D4C18DB4EABA7352BA57DD27731968 /* LineChartDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = LineChartDataSet.swift; path = Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift; sourceTree = \"<group>\"; };\n\t\t80F9005CEE4CD5BB4E50C3379F8C7D2F /* CandleStickChartRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CandleStickChartRenderer.swift; path = Source/Charts/Renderers/CandleStickChartRenderer.swift; sourceTree = \"<group>\"; };\n\t\t82208E692B4A402C7DF9DF8F98907938 /* ChartLimitLine.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ChartLimitLine.swift; path = Source/Charts/Components/ChartLimitLine.swift; sourceTree = \"<group>\"; };\n\t\t82B18F265074AA3D7BA6F3B73B37F48C /* BarHighlighter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BarHighlighter.swift; path = Source/Charts/Highlight/BarHighlighter.swift; sourceTree = \"<group>\"; };\n\t\t8306A5F0855BCDDD856B6F010FA09B9E /* Charts-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = \"Charts-Info.plist\"; sourceTree = \"<group>\"; };\n\t\t850539FB2009EC968B138DD7A7284AD5 /* Pods-keyrace-mac-Info.plist */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.xml; path = \"Pods-keyrace-mac-Info.plist\"; sourceTree = \"<group>\"; };\n\t\t85BEACA32BCD34C2CD03C5EFC0FE8AAC /* SquareShapeRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = SquareShapeRenderer.swift; path = Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift; sourceTree = \"<group>\"; };\n\t\t85D2EEBA26F92B9A8A8697210DBC5E24 /* LineChartRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = LineChartRenderer.swift; path = Source/Charts/Renderers/LineChartRenderer.swift; sourceTree = \"<group>\"; };\n\t\t8A487EA532C7C7089D2D437C41720734 /* BarChartDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BarChartDataSet.swift; path = Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift; sourceTree = \"<group>\"; };\n\t\t8A85155430AE43695062008A4862ABE0 /* IScatterChartDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IScatterChartDataSet.swift; path = Source/Charts/Data/Interfaces/IScatterChartDataSet.swift; sourceTree = \"<group>\"; };\n\t\t8B96B0EF0930A5844DDD4478360FBCBD /* PieChartView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PieChartView.swift; path = Source/Charts/Charts/PieChartView.swift; sourceTree = \"<group>\"; };\n\t\t8C846D69A45DE7B151D62918B47C9C09 /* ChartDataRendererBase.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ChartDataRendererBase.swift; path = Source/Charts/Renderers/ChartDataRendererBase.swift; sourceTree = \"<group>\"; };\n\t\t8FAE17F95C8E67F7DD27B73DC5094352 /* TriangleShapeRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = TriangleShapeRenderer.swift; path = Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift; sourceTree = \"<group>\"; };\n\t\t8FE39773953A05362EED2186FC542B9D /* PieChartData.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PieChartData.swift; path = Source/Charts/Data/Implementations/Standard/PieChartData.swift; sourceTree = \"<group>\"; };\n\t\t8FEA8AC06FB34D00653F00EB4DA31444 /* IBarChartDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IBarChartDataSet.swift; path = Source/Charts/Data/Interfaces/IBarChartDataSet.swift; sourceTree = \"<group>\"; };\n\t\t925B133230158B28D8930FEC1E65AD5F /* ChartDataEntry.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ChartDataEntry.swift; path = Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift; sourceTree = \"<group>\"; };\n\t\t9465B7BFAAE224331E14F0E3E4D7BA0C /* BarChartData.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BarChartData.swift; path = Source/Charts/Data/Implementations/Standard/BarChartData.swift; sourceTree = \"<group>\"; };\n\t\t9571799E2B70E3638C50E190BCF7FC1A /* DataApproximator.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DataApproximator.swift; path = Source/Charts/Filters/DataApproximator.swift; sourceTree = \"<group>\"; };\n\t\t963DE893F037587387004805D1A922C3 /* XAxisRendererRadarChart.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = XAxisRendererRadarChart.swift; path = Source/Charts/Renderers/XAxisRendererRadarChart.swift; sourceTree = \"<group>\"; };\n\t\t982DAA1854D8023ABFEA6BC33FC82DB0 /* ComponentBase.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ComponentBase.swift; path = Source/Charts/Components/ComponentBase.swift; sourceTree = \"<group>\"; };\n\t\t9C76396CFA6540619A62D61E2A294362 /* CrossShapeRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CrossShapeRenderer.swift; path = Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift; sourceTree = \"<group>\"; };\n\t\t9C8836136B3D1D17F9D3F8B9D95D3388 /* Description.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Description.swift; path = Source/Charts/Components/Description.swift; sourceTree = \"<group>\"; };\n\t\t9D940727FF8FB9C785EB98E56350EF41 /* Podfile */ = {isa = PBXFileReference; explicitFileType = text.script.ruby; includeInIndex = 1; indentWidth = 2; name = Podfile; path = ../Podfile; sourceTree = SOURCE_ROOT; tabWidth = 2; xcLanguageSpecificationIdentifier = xcode.lang.ruby; };\n\t\t9EBFC09E188572ED1B1102DC83212F3C /* ChevronDownShapeRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ChevronDownShapeRenderer.swift; path = Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift; sourceTree = \"<group>\"; };\n\t\t9F71AF6D8A36E6262C1E9B000FF8367C /* ICandleChartDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ICandleChartDataSet.swift; path = Source/Charts/Data/Interfaces/ICandleChartDataSet.swift; sourceTree = \"<group>\"; };\n\t\tA0F14905E040D69883458A7BA60D77B3 /* IPieChartDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IPieChartDataSet.swift; path = Source/Charts/Data/Interfaces/IPieChartDataSet.swift; sourceTree = \"<group>\"; };\n\t\tA179508508A4EEFB527CAA42968E9197 /* Platform+Touch Handling.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = \"Platform+Touch Handling.swift\"; path = \"Source/Charts/Utils/Platform+Touch Handling.swift\"; sourceTree = \"<group>\"; };\n\t\tA1C1B977ED8804E8AEEC884E7359EE58 /* Charts.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Charts.framework; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tA229399F00599645CBD267A0FC0A07E0 /* LegendRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = LegendRenderer.swift; path = Source/Charts/Renderers/LegendRenderer.swift; sourceTree = \"<group>\"; };\n\t\tA241627ED7CACB2517AF5D95B139FA28 /* Platform+Graphics.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = \"Platform+Graphics.swift\"; path = \"Source/Charts/Utils/Platform+Graphics.swift\"; sourceTree = \"<group>\"; };\n\t\tA2BA199F97C72A9D0A0EFFC2FD30DBB6 /* BubbleChartDataProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BubbleChartDataProvider.swift; path = Source/Charts/Interfaces/BubbleChartDataProvider.swift; sourceTree = \"<group>\"; };\n\t\tA5A15E35076A3B667B8FD0509EB3AF06 /* CombinedChartRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CombinedChartRenderer.swift; path = Source/Charts/Renderers/CombinedChartRenderer.swift; sourceTree = \"<group>\"; };\n\t\tA763AF52AFF556911CCB6DE94DCAB56E /* DefaultAxisValueFormatter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DefaultAxisValueFormatter.swift; path = Source/Charts/Formatters/DefaultAxisValueFormatter.swift; sourceTree = \"<group>\"; };\n\t\tA90D03D5BD551CF9814FDA9DBA45C503 /* ILineScatterCandleRadarChartDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ILineScatterCandleRadarChartDataSet.swift; path = Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift; sourceTree = \"<group>\"; };\n\t\tACA11F4A1B918C7BEB459B8DE15FBA42 /* Fill.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Fill.swift; path = Source/Charts/Utils/Fill.swift; sourceTree = \"<group>\"; };\n\t\tADDF08F21E96EE5B41BD2FF6FC8838BA /* Charts.modulemap */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.module; path = Charts.modulemap; sourceTree = \"<group>\"; };\n\t\tB0281969024E2336858175E92AAEE5BF /* CircleShapeRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CircleShapeRenderer.swift; path = Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift; sourceTree = \"<group>\"; };\n\t\tB2D17B401D069A99D3A5DE2230884184 /* LineScatterCandleRadarRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = LineScatterCandleRadarRenderer.swift; path = Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift; sourceTree = \"<group>\"; };\n\t\tB3AA2F159DA8DDB1545D218F25CF602D /* BarLineChartViewBase.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BarLineChartViewBase.swift; path = Source/Charts/Charts/BarLineChartViewBase.swift; sourceTree = \"<group>\"; };\n\t\tB57CE21CBA350F5390D423FF734D11CF /* BubbleChartRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BubbleChartRenderer.swift; path = Source/Charts/Renderers/BubbleChartRenderer.swift; sourceTree = \"<group>\"; };\n\t\tB5C48EE2BD97F532614152EE3B7174C1 /* ChartDataProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ChartDataProvider.swift; path = Source/Charts/Interfaces/ChartDataProvider.swift; sourceTree = \"<group>\"; };\n\t\tB762FBC3ED87739CF4DAB160D7BC7721 /* ChartColorTemplates.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ChartColorTemplates.swift; path = Source/Charts/Utils/ChartColorTemplates.swift; sourceTree = \"<group>\"; };\n\t\tB977CDCAF22C01387F25227CF5E529DA /* XAxisRendererHorizontalBarChart.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = XAxisRendererHorizontalBarChart.swift; path = Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift; sourceTree = \"<group>\"; };\n\t\tB9B10DED9CF90164B6A993344964857D /* ChartBaseDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ChartBaseDataSet.swift; path = Source/Charts/Data/Implementations/ChartBaseDataSet.swift; sourceTree = \"<group>\"; };\n\t\tB9E0829E790CBE9CA5282F73867C31AE /* LineRadarRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = LineRadarRenderer.swift; path = Source/Charts/Renderers/LineRadarRenderer.swift; sourceTree = \"<group>\"; };\n\t\tBB878A144F07E75C081971F854C99BE8 /* Charts-prefix.pch */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = \"Charts-prefix.pch\"; sourceTree = \"<group>\"; };\n\t\tBE5D36BF7809E29E812564777A1AC752 /* RadarChartDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RadarChartDataSet.swift; path = Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift; sourceTree = \"<group>\"; };\n\t\tBF52BC3A519D9360BCA9A79F7B7C7554 /* ScatterChartDataProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ScatterChartDataProvider.swift; path = Source/Charts/Interfaces/ScatterChartDataProvider.swift; sourceTree = \"<group>\"; };\n\t\tC1430F003D39D9906881A6AC724B7931 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Cocoa.framework; sourceTree = DEVELOPER_DIR; };\n\t\tC1C4B267A4820A775520B1F23ECE97E0 /* ILineRadarChartDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ILineRadarChartDataSet.swift; path = Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift; sourceTree = \"<group>\"; };\n\t\tC6173E76B956E7C1315DEA28B19CA44C /* ChartAnimationEasing.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ChartAnimationEasing.swift; path = Source/Charts/Animation/ChartAnimationEasing.swift; sourceTree = \"<group>\"; };\n\t\tC703A25169E5D43CAD96BBA0AAC69C53 /* YAxisRendererHorizontalBarChart.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = YAxisRendererHorizontalBarChart.swift; path = Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift; sourceTree = \"<group>\"; };\n\t\tCA1EB0270C9AF81C443D76CEF39F2274 /* IValueFormatter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IValueFormatter.swift; path = Source/Charts/Formatters/IValueFormatter.swift; sourceTree = \"<group>\"; };\n\t\tCB5714A0027C8A21F4A61B3E0273D37E /* DefaultFillFormatter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = DefaultFillFormatter.swift; path = Source/Charts/Formatters/DefaultFillFormatter.swift; sourceTree = \"<group>\"; };\n\t\tCB74972F135C7166CE1348B423582867 /* Highlight.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Highlight.swift; path = Source/Charts/Highlight/Highlight.swift; sourceTree = \"<group>\"; };\n\t\tCC21A85FF755B71FE7150933C213AD28 /* HorizontalBarChartView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = HorizontalBarChartView.swift; path = Source/Charts/Charts/HorizontalBarChartView.swift; sourceTree = \"<group>\"; };\n\t\tCCD2EA381942C4006320FBDE1E3B86CF /* LineRadarChartDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = LineRadarChartDataSet.swift; path = Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift; sourceTree = \"<group>\"; };\n\t\tCDCFD0A6BEC4B92F90140951AB59AC27 /* Platform.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Platform.swift; path = Source/Charts/Utils/Platform.swift; sourceTree = \"<group>\"; };\n\t\tCE6013C31DB5F628FCFF459656034379 /* Range.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Range.swift; path = Source/Charts/Highlight/Range.swift; sourceTree = \"<group>\"; };\n\t\tCEEED036C18816CECC0CE22C86D1282A /* YAxisRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = YAxisRenderer.swift; path = Source/Charts/Renderers/YAxisRenderer.swift; sourceTree = \"<group>\"; };\n\t\tD064CCBEB3D8F86F6C6EB1E51C427CFA /* PieRadarHighlighter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = PieRadarHighlighter.swift; path = Source/Charts/Highlight/PieRadarHighlighter.swift; sourceTree = \"<group>\"; };\n\t\tD466846EAE78237BBF2B30F1C005611F /* RadarChartDataEntry.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = RadarChartDataEntry.swift; path = Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift; sourceTree = \"<group>\"; };\n\t\tD5870D99A8B67AFF39FEA87AED03835E /* LineChartData.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = LineChartData.swift; path = Source/Charts/Data/Implementations/Standard/LineChartData.swift; sourceTree = \"<group>\"; };\n\t\tD6C914CE5746D0FCF154D34789221D3D /* Animator.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Animator.swift; path = Source/Charts/Animation/Animator.swift; sourceTree = \"<group>\"; };\n\t\tD72F3D17B7969DEA5559D01C445F4E98 /* BarLineScatterCandleBubbleChartDataProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BarLineScatterCandleBubbleChartDataProvider.swift; path = Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift; sourceTree = \"<group>\"; };\n\t\tDAA8EBBE1A58B09493C2E2986D3C119D /* ScatterChartDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ScatterChartDataSet.swift; path = Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift; sourceTree = \"<group>\"; };\n\t\tDE84760CA92A44451BAF0388CD92EB6B /* ChartDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ChartDataSet.swift; path = Source/Charts/Data/Implementations/Standard/ChartDataSet.swift; sourceTree = \"<group>\"; };\n\t\tDEF0442BC2DEEBAD45CD4240D2002ED8 /* IBubbleChartDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IBubbleChartDataSet.swift; path = Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift; sourceTree = \"<group>\"; };\n\t\tE08B71C982EA49726288682CBB3396D8 /* BubbleChartDataEntry.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BubbleChartDataEntry.swift; path = Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift; sourceTree = \"<group>\"; };\n\t\tE14A2AF3B0D0B87457A9365D67335375 /* LineChartView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = LineChartView.swift; path = Source/Charts/Charts/LineChartView.swift; sourceTree = \"<group>\"; };\n\t\tE342C8773A1BA8773376B4195576B48D /* ChartHighlighter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = ChartHighlighter.swift; path = Source/Charts/Highlight/ChartHighlighter.swift; sourceTree = \"<group>\"; };\n\t\tE456311CD02FC8F7B9F13164C6053805 /* BarLineScatterCandleBubbleChartData.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BarLineScatterCandleBubbleChartData.swift; path = Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift; sourceTree = \"<group>\"; };\n\t\tE5258784B6E97243813A800D0D761BEC /* Charts-umbrella.h */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.c.h; path = \"Charts-umbrella.h\"; sourceTree = \"<group>\"; };\n\t\tE640D5726A76F14086D66DAE9EDB8AF1 /* BarChartRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BarChartRenderer.swift; path = Source/Charts/Renderers/BarChartRenderer.swift; sourceTree = \"<group>\"; };\n\t\tEA427B68ADA2432EB0ADB4B261CC04A9 /* IFillFormatter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IFillFormatter.swift; path = Source/Charts/Formatters/IFillFormatter.swift; sourceTree = \"<group>\"; };\n\t\tF116AB9BF75A2A772277869CDD16CFD5 /* XShapeRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = XShapeRenderer.swift; path = Source/Charts/Renderers/Scatter/XShapeRenderer.swift; sourceTree = \"<group>\"; };\n\t\tF31DE9FFC8BF98D4EA3157F618246059 /* BarChartView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BarChartView.swift; path = Source/Charts/Charts/BarChartView.swift; sourceTree = \"<group>\"; };\n\t\tF4F25DDB985AB3FF5DFD5DE5CE8383F5 /* CandleStickChartView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CandleStickChartView.swift; path = Source/Charts/Charts/CandleStickChartView.swift; sourceTree = \"<group>\"; };\n\t\tF55AB4B9BE69EE5A91C12C6E2D3A254F /* Legend.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = Legend.swift; path = Source/Charts/Components/Legend.swift; sourceTree = \"<group>\"; };\n\t\tF657E07032F55A96BEE75F573FBC54D1 /* BubbleChartView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BubbleChartView.swift; path = Source/Charts/Charts/BubbleChartView.swift; sourceTree = \"<group>\"; };\n\t\tF7724C18FC084866A1E40F9681848392 /* IRadarChartDataSet.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IRadarChartDataSet.swift; path = Source/Charts/Data/Interfaces/IRadarChartDataSet.swift; sourceTree = \"<group>\"; };\n\t\tF8029D3F7C7235D9DAD26F6F024AEA05 /* AnimatedZoomViewJob.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = AnimatedZoomViewJob.swift; path = Source/Charts/Jobs/AnimatedZoomViewJob.swift; sourceTree = \"<group>\"; };\n\t\tFAA0F6E3688964B6BE8E9AF58E0BA4EC /* BarLineScatterCandleBubbleRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BarLineScatterCandleBubbleRenderer.swift; path = Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift; sourceTree = \"<group>\"; };\n\t\tFAB5FAA917CB8604181B74E2806CB081 /* CandleChartDataEntry.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = CandleChartDataEntry.swift; path = Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift; sourceTree = \"<group>\"; };\n\t\tFE7FF71FC6D20F4EF1FDA988B5491143 /* HorizontalBarHighlighter.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = HorizontalBarHighlighter.swift; path = Source/Charts/Highlight/HorizontalBarHighlighter.swift; sourceTree = \"<group>\"; };\n\t\tFE9895F38C7A3054AD2F794757525624 /* IShapeRenderer.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = IShapeRenderer.swift; path = Source/Charts/Renderers/Scatter/IShapeRenderer.swift; sourceTree = \"<group>\"; };\n\t\tFEF476294176D6409FCAE02A9C446303 /* BarChartDataProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; name = BarChartDataProvider.swift; path = Source/Charts/Interfaces/BarChartDataProvider.swift; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\tB39F3F51F36A1EF6F91DF1DAE0E408C7 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tA885B8D33137F4CEBDD0776D44275A53 /* Cocoa.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tC7A4F9F6363A97D90F81368026F28563 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t4C32C75AC457E9E150B9A6AF9D1BF36B /* Cocoa.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t4790A0B1DB10DF116159893B0ABB0D43 /* Support Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tADDF08F21E96EE5B41BD2FF6FC8838BA /* Charts.modulemap */,\n\t\t\t\t04D67F763094F475FC117DDA0423C310 /* Charts-dummy.m */,\n\t\t\t\t8306A5F0855BCDDD856B6F010FA09B9E /* Charts-Info.plist */,\n\t\t\t\tBB878A144F07E75C081971F854C99BE8 /* Charts-prefix.pch */,\n\t\t\t\tE5258784B6E97243813A800D0D761BEC /* Charts-umbrella.h */,\n\t\t\t\t48027FA544793BB96B21AC8F1F684204 /* Charts.debug.xcconfig */,\n\t\t\t\t6F1B6FDBF3D63C5ACE0A26BFAF08936F /* Charts.release.xcconfig */,\n\t\t\t);\n\t\t\tname = \"Support Files\";\n\t\t\tpath = \"../Target Support Files/Charts\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t51507FDF5F9FA17490E9C236C4E0956F /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tA1C1B977ED8804E8AEEC884E7359EE58 /* Charts.framework */,\n\t\t\t\t312361A9B4B10D690E10AECB9C6022A1 /* Pods_keyrace_mac.framework */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t6C59B95617D3A333D009173628DA4FBC /* Charts */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tAE50847139E378013B792A5B9907532A /* Core */,\n\t\t\t\t4790A0B1DB10DF116159893B0ABB0D43 /* Support Files */,\n\t\t\t);\n\t\t\tpath = Charts;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tAE50847139E378013B792A5B9907532A /* Core */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t5A9B286BDFE78ABF03B0C4DDCFD8FBF6 /* AnimatedMoveViewJob.swift */,\n\t\t\t\t09EB01587B2AA70DC3FBE251AFA94DFD /* AnimatedViewPortJob.swift */,\n\t\t\t\tF8029D3F7C7235D9DAD26F6F024AEA05 /* AnimatedZoomViewJob.swift */,\n\t\t\t\tD6C914CE5746D0FCF154D34789221D3D /* Animator.swift */,\n\t\t\t\t7AFEE06A40FD441B75D6442A4808E8FD /* AxisBase.swift */,\n\t\t\t\t4B455CB3260113D06D0708E1A7EF6C70 /* AxisRendererBase.swift */,\n\t\t\t\t9465B7BFAAE224331E14F0E3E4D7BA0C /* BarChartData.swift */,\n\t\t\t\t4D8ACD76E884D121786129799A6C62A6 /* BarChartDataEntry.swift */,\n\t\t\t\tFEF476294176D6409FCAE02A9C446303 /* BarChartDataProvider.swift */,\n\t\t\t\t8A487EA532C7C7089D2D437C41720734 /* BarChartDataSet.swift */,\n\t\t\t\tE640D5726A76F14086D66DAE9EDB8AF1 /* BarChartRenderer.swift */,\n\t\t\t\tF31DE9FFC8BF98D4EA3157F618246059 /* BarChartView.swift */,\n\t\t\t\t82B18F265074AA3D7BA6F3B73B37F48C /* BarHighlighter.swift */,\n\t\t\t\tB3AA2F159DA8DDB1545D218F25CF602D /* BarLineChartViewBase.swift */,\n\t\t\t\tE456311CD02FC8F7B9F13164C6053805 /* BarLineScatterCandleBubbleChartData.swift */,\n\t\t\t\tD72F3D17B7969DEA5559D01C445F4E98 /* BarLineScatterCandleBubbleChartDataProvider.swift */,\n\t\t\t\t6EA8CD47E32F7F47C61D7C746928EF49 /* BarLineScatterCandleBubbleChartDataSet.swift */,\n\t\t\t\tFAA0F6E3688964B6BE8E9AF58E0BA4EC /* BarLineScatterCandleBubbleRenderer.swift */,\n\t\t\t\t53E52906494517D7BDFFBAD661170110 /* BubbleChartData.swift */,\n\t\t\t\tE08B71C982EA49726288682CBB3396D8 /* BubbleChartDataEntry.swift */,\n\t\t\t\tA2BA199F97C72A9D0A0EFFC2FD30DBB6 /* BubbleChartDataProvider.swift */,\n\t\t\t\t61D7F5CD3E891DC2B37BD432ECAC7891 /* BubbleChartDataSet.swift */,\n\t\t\t\tB57CE21CBA350F5390D423FF734D11CF /* BubbleChartRenderer.swift */,\n\t\t\t\tF657E07032F55A96BEE75F573FBC54D1 /* BubbleChartView.swift */,\n\t\t\t\t1E783FA79E7C5FEE6D62879F518ABF0A /* CandleChartData.swift */,\n\t\t\t\tFAB5FAA917CB8604181B74E2806CB081 /* CandleChartDataEntry.swift */,\n\t\t\t\t5A19B026B6D5B009AF55843C77E64C7D /* CandleChartDataProvider.swift */,\n\t\t\t\t361F7A3E2259B2B52B112ACAC2CE35C4 /* CandleChartDataSet.swift */,\n\t\t\t\t80F9005CEE4CD5BB4E50C3379F8C7D2F /* CandleStickChartRenderer.swift */,\n\t\t\t\tF4F25DDB985AB3FF5DFD5DE5CE8383F5 /* CandleStickChartView.swift */,\n\t\t\t\tC6173E76B956E7C1315DEA28B19CA44C /* ChartAnimationEasing.swift */,\n\t\t\t\tB9B10DED9CF90164B6A993344964857D /* ChartBaseDataSet.swift */,\n\t\t\t\tB762FBC3ED87739CF4DAB160D7BC7721 /* ChartColorTemplates.swift */,\n\t\t\t\t72CDFA4660BA481182F5396D68931AE3 /* ChartData.swift */,\n\t\t\t\t925B133230158B28D8930FEC1E65AD5F /* ChartDataEntry.swift */,\n\t\t\t\t54963C18E39F70602633881D10DA1DEA /* ChartDataEntryBase.swift */,\n\t\t\t\tB5C48EE2BD97F532614152EE3B7174C1 /* ChartDataProvider.swift */,\n\t\t\t\t8C846D69A45DE7B151D62918B47C9C09 /* ChartDataRendererBase.swift */,\n\t\t\t\tDE84760CA92A44451BAF0388CD92EB6B /* ChartDataSet.swift */,\n\t\t\t\tE342C8773A1BA8773376B4195576B48D /* ChartHighlighter.swift */,\n\t\t\t\t82208E692B4A402C7DF9DF8F98907938 /* ChartLimitLine.swift */,\n\t\t\t\t0840460E6B20D57B0C6D83CAF5284438 /* ChartUtils.swift */,\n\t\t\t\t4E83764B86E2AD6C8404CE9E3E3973FC /* ChartViewBase.swift */,\n\t\t\t\t9EBFC09E188572ED1B1102DC83212F3C /* ChevronDownShapeRenderer.swift */,\n\t\t\t\t5CB55ED6B3C8E714443CDB854DA6E806 /* ChevronUpShapeRenderer.swift */,\n\t\t\t\tB0281969024E2336858175E92AAEE5BF /* CircleShapeRenderer.swift */,\n\t\t\t\t019A8A956A819C818DCA46DFA00E61B1 /* CombinedChartData.swift */,\n\t\t\t\t7C9B0E0005C6D71214BFEF16FB514846 /* CombinedChartDataProvider.swift */,\n\t\t\t\tA5A15E35076A3B667B8FD0509EB3AF06 /* CombinedChartRenderer.swift */,\n\t\t\t\t0141308887815C97C9170EC63901E651 /* CombinedChartView.swift */,\n\t\t\t\t4186796F0F1A447948DBB31A0BB6C13D /* CombinedHighlighter.swift */,\n\t\t\t\t982DAA1854D8023ABFEA6BC33FC82DB0 /* ComponentBase.swift */,\n\t\t\t\t9C76396CFA6540619A62D61E2A294362 /* CrossShapeRenderer.swift */,\n\t\t\t\t9571799E2B70E3638C50E190BCF7FC1A /* DataApproximator.swift */,\n\t\t\t\t2DE0E041B547D06BBB282DB3D2831F7D /* DataApproximator+N.swift */,\n\t\t\t\tA763AF52AFF556911CCB6DE94DCAB56E /* DefaultAxisValueFormatter.swift */,\n\t\t\t\tCB5714A0027C8A21F4A61B3E0273D37E /* DefaultFillFormatter.swift */,\n\t\t\t\t2B5B198EAB22E4CF1BCB058341BEBA1F /* DefaultValueFormatter.swift */,\n\t\t\t\t9C8836136B3D1D17F9D3F8B9D95D3388 /* Description.swift */,\n\t\t\t\tACA11F4A1B918C7BEB459B8DE15FBA42 /* Fill.swift */,\n\t\t\t\tCB74972F135C7166CE1348B423582867 /* Highlight.swift */,\n\t\t\t\t45CCCA654941CB27552C2FAD2D1122B1 /* HorizontalBarChartRenderer.swift */,\n\t\t\t\tCC21A85FF755B71FE7150933C213AD28 /* HorizontalBarChartView.swift */,\n\t\t\t\tFE7FF71FC6D20F4EF1FDA988B5491143 /* HorizontalBarHighlighter.swift */,\n\t\t\t\t3CC1CAEC7CC7F954BB49C60C7987BAC5 /* IAxisValueFormatter.swift */,\n\t\t\t\t8FEA8AC06FB34D00653F00EB4DA31444 /* IBarChartDataSet.swift */,\n\t\t\t\t656AA19EC1629C80BCFFD4315DD5BDB7 /* IBarLineScatterCandleBubbleChartDataSet.swift */,\n\t\t\t\tDEF0442BC2DEEBAD45CD4240D2002ED8 /* IBubbleChartDataSet.swift */,\n\t\t\t\t9F71AF6D8A36E6262C1E9B000FF8367C /* ICandleChartDataSet.swift */,\n\t\t\t\t472A1BECA75869F0E182193909DF7598 /* IChartDataSet.swift */,\n\t\t\t\tEA427B68ADA2432EB0ADB4B261CC04A9 /* IFillFormatter.swift */,\n\t\t\t\t4D7045AE44AA41F438E17FF48B7B8DCA /* IHighlighter.swift */,\n\t\t\t\t5EF31F6C01D1D5CEBABFF06A1EA53B83 /* ILineChartDataSet.swift */,\n\t\t\t\tC1C4B267A4820A775520B1F23ECE97E0 /* ILineRadarChartDataSet.swift */,\n\t\t\t\tA90D03D5BD551CF9814FDA9DBA45C503 /* ILineScatterCandleRadarChartDataSet.swift */,\n\t\t\t\t5801D58E9C83CC70716892F19D6A348E /* IMarker.swift */,\n\t\t\t\t268820956AD9E6F3005E70F48761B403 /* IndexAxisValueFormatter.swift */,\n\t\t\t\tA0F14905E040D69883458A7BA60D77B3 /* IPieChartDataSet.swift */,\n\t\t\t\tF7724C18FC084866A1E40F9681848392 /* IRadarChartDataSet.swift */,\n\t\t\t\t8A85155430AE43695062008A4862ABE0 /* IScatterChartDataSet.swift */,\n\t\t\t\tFE9895F38C7A3054AD2F794757525624 /* IShapeRenderer.swift */,\n\t\t\t\tCA1EB0270C9AF81C443D76CEF39F2274 /* IValueFormatter.swift */,\n\t\t\t\tF55AB4B9BE69EE5A91C12C6E2D3A254F /* Legend.swift */,\n\t\t\t\t22336FC2A8799C235B5B45A641881D41 /* LegendEntry.swift */,\n\t\t\t\tA229399F00599645CBD267A0FC0A07E0 /* LegendRenderer.swift */,\n\t\t\t\tD5870D99A8B67AFF39FEA87AED03835E /* LineChartData.swift */,\n\t\t\t\t41D0098654976FC43104CF290C9AC02D /* LineChartDataProvider.swift */,\n\t\t\t\t80D4C18DB4EABA7352BA57DD27731968 /* LineChartDataSet.swift */,\n\t\t\t\t85D2EEBA26F92B9A8A8697210DBC5E24 /* LineChartRenderer.swift */,\n\t\t\t\tE14A2AF3B0D0B87457A9365D67335375 /* LineChartView.swift */,\n\t\t\t\tCCD2EA381942C4006320FBDE1E3B86CF /* LineRadarChartDataSet.swift */,\n\t\t\t\tB9E0829E790CBE9CA5282F73867C31AE /* LineRadarRenderer.swift */,\n\t\t\t\t730E07622026A5A5E75F286CB850C568 /* LineScatterCandleRadarChartDataSet.swift */,\n\t\t\t\tB2D17B401D069A99D3A5DE2230884184 /* LineScatterCandleRadarRenderer.swift */,\n\t\t\t\t6D514D886299C4E38ACE36A8CC9376AA /* MarkerImage.swift */,\n\t\t\t\t03D4E380F40EAEFB1DA84D63EE80B2FD /* MarkerView.swift */,\n\t\t\t\t6F617C946A8AF36F4BE67A3944DCD159 /* MoveViewJob.swift */,\n\t\t\t\t8FE39773953A05362EED2186FC542B9D /* PieChartData.swift */,\n\t\t\t\t3A4DB505F06D59AEF8D380731C3F6A1D /* PieChartDataEntry.swift */,\n\t\t\t\t4926FB589990AB6F079A9D6A138D5497 /* PieChartDataSet.swift */,\n\t\t\t\t681CC7EFDA3A2065E4313010BEB8E1F0 /* PieChartRenderer.swift */,\n\t\t\t\t8B96B0EF0930A5844DDD4478360FBCBD /* PieChartView.swift */,\n\t\t\t\t4BD493BB0F0A3F7D7A61E2E7B5AE9B15 /* PieHighlighter.swift */,\n\t\t\t\t310F7771A75BD6E2CBACF851524328A8 /* PieRadarChartViewBase.swift */,\n\t\t\t\tD064CCBEB3D8F86F6C6EB1E51C427CFA /* PieRadarHighlighter.swift */,\n\t\t\t\tCDCFD0A6BEC4B92F90140951AB59AC27 /* Platform.swift */,\n\t\t\t\t0C772E5330CFA8563393FB3B93F49D19 /* Platform+Accessibility.swift */,\n\t\t\t\t3DFD8284D505942F173AB98D06E36376 /* Platform+Color.swift */,\n\t\t\t\t0E287149E74C235521D84600D0C9B280 /* Platform+Gestures.swift */,\n\t\t\t\tA241627ED7CACB2517AF5D95B139FA28 /* Platform+Graphics.swift */,\n\t\t\t\tA179508508A4EEFB527CAA42968E9197 /* Platform+Touch Handling.swift */,\n\t\t\t\t2906C15E4AAF238B01D2F3816A9E94A2 /* RadarChartData.swift */,\n\t\t\t\tD466846EAE78237BBF2B30F1C005611F /* RadarChartDataEntry.swift */,\n\t\t\t\tBE5D36BF7809E29E812564777A1AC752 /* RadarChartDataSet.swift */,\n\t\t\t\t55F91B713D90321789BFA3CF0F7100EE /* RadarChartRenderer.swift */,\n\t\t\t\t5BDD3B37C60FEA9DF5A07DF5B69C56BA /* RadarChartView.swift */,\n\t\t\t\t20762B1AA4729D653B9EEA7B06362E9C /* RadarHighlighter.swift */,\n\t\t\t\tCE6013C31DB5F628FCFF459656034379 /* Range.swift */,\n\t\t\t\t467E88A8A712690EC5CCE4B8FD4CACEA /* Renderer.swift */,\n\t\t\t\t1A7B411ABEF18348A1C24049179B0396 /* ScatterChartData.swift */,\n\t\t\t\tBF52BC3A519D9360BCA9A79F7B7C7554 /* ScatterChartDataProvider.swift */,\n\t\t\t\tDAA8EBBE1A58B09493C2E2986D3C119D /* ScatterChartDataSet.swift */,\n\t\t\t\t4EA32329972480D9F8F828C733B63F62 /* ScatterChartRenderer.swift */,\n\t\t\t\t76AA4227E480A6D7128216FDF75ABCA0 /* ScatterChartView.swift */,\n\t\t\t\t85BEACA32BCD34C2CD03C5EFC0FE8AAC /* SquareShapeRenderer.swift */,\n\t\t\t\t219FD25090597D5812A06B145F0E6F75 /* Transformer.swift */,\n\t\t\t\t4BEF19D891C300E9F3E61B100982A371 /* TransformerHorizontalBarChart.swift */,\n\t\t\t\t8FAE17F95C8E67F7DD27B73DC5094352 /* TriangleShapeRenderer.swift */,\n\t\t\t\t18119E2E59FD581E3BE807720C0B6285 /* ViewPortHandler.swift */,\n\t\t\t\t6FB84441B8E2DCF6A26C65D45A397E7E /* ViewPortJob.swift */,\n\t\t\t\t0F4DDEF4A7E1473A0A77044933BBC7EB /* XAxis.swift */,\n\t\t\t\t1137A3154E31F919E544231EDBE4F4A4 /* XAxisRenderer.swift */,\n\t\t\t\tB977CDCAF22C01387F25227CF5E529DA /* XAxisRendererHorizontalBarChart.swift */,\n\t\t\t\t963DE893F037587387004805D1A922C3 /* XAxisRendererRadarChart.swift */,\n\t\t\t\tF116AB9BF75A2A772277869CDD16CFD5 /* XShapeRenderer.swift */,\n\t\t\t\t2C7037B35851C6D052F95DF73E7834EC /* YAxis.swift */,\n\t\t\t\tCEEED036C18816CECC0CE22C86D1282A /* YAxisRenderer.swift */,\n\t\t\t\tC703A25169E5D43CAD96BBA0AAC69C53 /* YAxisRendererHorizontalBarChart.swift */,\n\t\t\t\t4D83B64A18CDDF1C04F570FA8EDEA669 /* YAxisRendererRadarChart.swift */,\n\t\t\t\t54FD294FABA663DD42E0A312B4ACAF1B /* ZoomViewJob.swift */,\n\t\t\t);\n\t\t\tname = Core;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tCD995B4CC0A3C0BF17E1A5BD5759E927 /* Pods-keyrace-mac */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t329B70C148CE0946450C9DAA9D23CFB0 /* Pods-keyrace-mac.modulemap */,\n\t\t\t\t36463F8F974EBA12D9FB4B8ACDA7CBED /* Pods-keyrace-mac-acknowledgements.markdown */,\n\t\t\t\t71F32C50693A963B322C4C7452A23B5A /* Pods-keyrace-mac-acknowledgements.plist */,\n\t\t\t\t0211DA1BE0E7F4E13B81E37FEACDEB70 /* Pods-keyrace-mac-dummy.m */,\n\t\t\t\t4F8CCE4EA15930858831F1EE7E2800E9 /* Pods-keyrace-mac-frameworks.sh */,\n\t\t\t\t850539FB2009EC968B138DD7A7284AD5 /* Pods-keyrace-mac-Info.plist */,\n\t\t\t\t0D257BE844F46F78FFA7342CECD2F880 /* Pods-keyrace-mac-umbrella.h */,\n\t\t\t\t2930D0D408850212F0A2E20DE501ECB6 /* Pods-keyrace-mac.debug.xcconfig */,\n\t\t\t\t1E3C8CA9224056D8D7A1739230C380E2 /* Pods-keyrace-mac.release.xcconfig */,\n\t\t\t);\n\t\t\tname = \"Pods-keyrace-mac\";\n\t\t\tpath = \"Target Support Files/Pods-keyrace-mac\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tCF1408CF629C7361332E53B88F7BD30C = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t9D940727FF8FB9C785EB98E56350EF41 /* Podfile */,\n\t\t\t\tE0A1E60606E0BF6E2E10F1F01350DFE8 /* Frameworks */,\n\t\t\t\tE5AB24ECFD8DBB88747DFD7EDF5BF05C /* Pods */,\n\t\t\t\t51507FDF5F9FA17490E9C236C4E0956F /* Products */,\n\t\t\t\tFAF1943BF15CA8FEAF3F68DE21AB92B7 /* Targets Support Files */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE0A1E60606E0BF6E2E10F1F01350DFE8 /* Frameworks */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tE2A8756CA1FF5258A0344D53C5C60EC1 /* OS X */,\n\t\t\t);\n\t\t\tname = Frameworks;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE2A8756CA1FF5258A0344D53C5C60EC1 /* OS X */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tC1430F003D39D9906881A6AC724B7931 /* Cocoa.framework */,\n\t\t\t);\n\t\t\tname = \"OS X\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tE5AB24ECFD8DBB88747DFD7EDF5BF05C /* Pods */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t6C59B95617D3A333D009173628DA4FBC /* Charts */,\n\t\t\t);\n\t\t\tname = Pods;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tFAF1943BF15CA8FEAF3F68DE21AB92B7 /* Targets Support Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tCD995B4CC0A3C0BF17E1A5BD5759E927 /* Pods-keyrace-mac */,\n\t\t\t);\n\t\t\tname = \"Targets Support Files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXHeadersBuildPhase section */\n\t\t3C21E3A60B8D2063E4CC2A0220E45AFD /* Headers */ = {\n\t\t\tisa = PBXHeadersBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\tE3EDB632F407232103226EB2AF8C239D /* Charts-umbrella.h in Headers */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t593DD8FBD4BE9CA9CF371B247C267B2B /* Headers */ = {\n\t\t\tisa = PBXHeadersBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t090EC855719CDC566D1972121B042A40 /* Pods-keyrace-mac-umbrella.h in Headers */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXHeadersBuildPhase section */\n\n/* Begin PBXNativeTarget section */\n\t\t2AA283DD094B7DF025AF7C29731707BA /* Pods-keyrace-mac */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 0529FBB23F7D135C6148230AFAACBA2F /* Build configuration list for PBXNativeTarget \"Pods-keyrace-mac\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t593DD8FBD4BE9CA9CF371B247C267B2B /* Headers */,\n\t\t\t\t412C30BF2E770C8A8172C51CBAD34529 /* Sources */,\n\t\t\t\tB39F3F51F36A1EF6F91DF1DAE0E408C7 /* Frameworks */,\n\t\t\t\tAF770D1EDF21B0EEF3B1E1DE3D201341 /* Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\t146A60999A87B6A0D7B8D911D1CA32E8 /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = \"Pods-keyrace-mac\";\n\t\t\tproductName = \"Pods-keyrace-mac\";\n\t\t\tproductReference = 312361A9B4B10D690E10AECB9C6022A1 /* Pods_keyrace_mac.framework */;\n\t\t\tproductType = \"com.apple.product-type.framework\";\n\t\t};\n\t\tBF03B0B2B8B052092CB5F90CC5FB3757 /* Charts */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = EACB1516A3F84CD99E9B870444AB37F1 /* Build configuration list for PBXNativeTarget \"Charts\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t3C21E3A60B8D2063E4CC2A0220E45AFD /* Headers */,\n\t\t\t\t6D366EFBB5EBF23E78291B1F4BFCECFA /* Sources */,\n\t\t\t\tC7A4F9F6363A97D90F81368026F28563 /* Frameworks */,\n\t\t\t\tC0AFB00D995D51D37A221C832E39671F /* Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = Charts;\n\t\t\tproductName = Charts;\n\t\t\tproductReference = A1C1B977ED8804E8AEEC884E7359EE58 /* Charts.framework */;\n\t\t\tproductType = \"com.apple.product-type.framework\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\tBFDFE7DC352907FC980B868725387E98 /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastSwiftUpdateCheck = 1100;\n\t\t\t\tLastUpgradeCheck = 1240;\n\t\t\t};\n\t\t\tbuildConfigurationList = 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject \"Pods\" */;\n\t\t\tcompatibilityVersion = \"Xcode 9.3\";\n\t\t\tdevelopmentRegion = en;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = CF1408CF629C7361332E53B88F7BD30C;\n\t\t\tproductRefGroup = 51507FDF5F9FA17490E9C236C4E0956F /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\tBF03B0B2B8B052092CB5F90CC5FB3757 /* Charts */,\n\t\t\t\t2AA283DD094B7DF025AF7C29731707BA /* Pods-keyrace-mac */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\tAF770D1EDF21B0EEF3B1E1DE3D201341 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\tC0AFB00D995D51D37A221C832E39671F /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t412C30BF2E770C8A8172C51CBAD34529 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t3C84B052E203BF5E7F174EDAB824897B /* Pods-keyrace-mac-dummy.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t6D366EFBB5EBF23E78291B1F4BFCECFA /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t39E13C8ED0C32E9EC0B353CA45C70CF2 /* AnimatedMoveViewJob.swift in Sources */,\n\t\t\t\tA95748A4D50EEB26B6290061C34DAA6D /* AnimatedViewPortJob.swift in Sources */,\n\t\t\t\t970B9C4530EA8ACC31B005CE4523C91B /* AnimatedZoomViewJob.swift in Sources */,\n\t\t\t\t7320CBA29BE1D473CA5BE26B1D226D04 /* Animator.swift in Sources */,\n\t\t\t\t9400854C32DFF16FD068D280CD43176F /* AxisBase.swift in Sources */,\n\t\t\t\tB14341E138DC6D05193C2866864E9DEC /* AxisRendererBase.swift in Sources */,\n\t\t\t\t62BEAD080E107195393F8ABBA8C81572 /* BarChartData.swift in Sources */,\n\t\t\t\t8D62FB3504F2C9B9E0910E493637F7BE /* BarChartDataEntry.swift in Sources */,\n\t\t\t\t0A30CC2BF450A16F1F4C39C95CFA3A66 /* BarChartDataProvider.swift in Sources */,\n\t\t\t\t13D3AB43B01F6D78090806390BD29B7E /* BarChartDataSet.swift in Sources */,\n\t\t\t\t7D605E2EF1E737244832E3329AE89746 /* BarChartRenderer.swift in Sources */,\n\t\t\t\tAD1E6E99CE3807BF3DEE1BEBE6E3CAF2 /* BarChartView.swift in Sources */,\n\t\t\t\t8606577BE49942FFBE9764F6BAC993A8 /* BarHighlighter.swift in Sources */,\n\t\t\t\t03D8F8D16FAF2B28113DB82186DBC66F /* BarLineChartViewBase.swift in Sources */,\n\t\t\t\tD9687FA7E8A77056DC5C8444EEA904E5 /* BarLineScatterCandleBubbleChartData.swift in Sources */,\n\t\t\t\tC8092EC19C870273D18B562A7EE9CD0F /* BarLineScatterCandleBubbleChartDataProvider.swift in Sources */,\n\t\t\t\tAEAB95AFD2529CDAF3A10D90A165CF16 /* BarLineScatterCandleBubbleChartDataSet.swift in Sources */,\n\t\t\t\tC7F30DCF3631591639429F38CDA24EBC /* BarLineScatterCandleBubbleRenderer.swift in Sources */,\n\t\t\t\t7EA6B81624538BCC292467DC0E7832D0 /* BubbleChartData.swift in Sources */,\n\t\t\t\t02DB3B5C782BC3DEF6B921B9D049201D /* BubbleChartDataEntry.swift in Sources */,\n\t\t\t\t2E91A4CB83F9DC6BDDAE907A38FE4648 /* BubbleChartDataProvider.swift in Sources */,\n\t\t\t\t7ACE9E9A28CB14F6DB0D7218C8B50917 /* BubbleChartDataSet.swift in Sources */,\n\t\t\t\t5D79FD33591AEAEB1B9BF86EC4EA3EA6 /* BubbleChartRenderer.swift in Sources */,\n\t\t\t\tCDABB0AA47F0EEE957FCE629F8D2DB6B /* BubbleChartView.swift in Sources */,\n\t\t\t\tCB6E235EB0A5B896F9D1815877757EF9 /* CandleChartData.swift in Sources */,\n\t\t\t\t3EAC9B9D96C569653EF71750289EB0D0 /* CandleChartDataEntry.swift in Sources */,\n\t\t\t\t8CBA559D0C2045A8E6F7F9922C553F0F /* CandleChartDataProvider.swift in Sources */,\n\t\t\t\t4994E7B2E69CF616E8E7ECD19014CAE0 /* CandleChartDataSet.swift in Sources */,\n\t\t\t\t1F91BEF50B63CA55CA641D3367FCA3F3 /* CandleStickChartRenderer.swift in Sources */,\n\t\t\t\t1D2BEF7D292100F700E00314C6FA6FAF /* CandleStickChartView.swift in Sources */,\n\t\t\t\tF1B3693550BD159B7E910C182326A44B /* ChartAnimationEasing.swift in Sources */,\n\t\t\t\t91FA70B412F137846836139ED890FF6C /* ChartBaseDataSet.swift in Sources */,\n\t\t\t\t12A718BC5CDEB44AA6B58C8EE7C13128 /* ChartColorTemplates.swift in Sources */,\n\t\t\t\t7605565F28B5C078923EE0A3F5D7C86E /* ChartData.swift in Sources */,\n\t\t\t\tABC6878E21B62261BBB4E1631E5EDAF1 /* ChartDataEntry.swift in Sources */,\n\t\t\t\t83BBD232FE2EA04587B21C81B73AFC09 /* ChartDataEntryBase.swift in Sources */,\n\t\t\t\t00F52B5B3C90538FE25AEBD9DCC93249 /* ChartDataProvider.swift in Sources */,\n\t\t\t\tC798D8F553DB176CD793E27B4C309DC6 /* ChartDataRendererBase.swift in Sources */,\n\t\t\t\t8EE80878B32207C5EC1712D83F04983A /* ChartDataSet.swift in Sources */,\n\t\t\t\t93966518847AB0F104DFCC9DC5B63197 /* ChartHighlighter.swift in Sources */,\n\t\t\t\t83907D8546A31C4C4B1E31DA90A0CD77 /* ChartLimitLine.swift in Sources */,\n\t\t\t\t1C2DB744A980164665CE687581222A12 /* Charts-dummy.m in Sources */,\n\t\t\t\t171D7FC46EC56CF9B16D97877A176C10 /* ChartUtils.swift in Sources */,\n\t\t\t\t1AF2A57E2B15E7DB326A38D8D8A4FBE2 /* ChartViewBase.swift in Sources */,\n\t\t\t\t4BBFCE1FBB68AAFB91FF682CD80B9F69 /* ChevronDownShapeRenderer.swift in Sources */,\n\t\t\t\tA86CEF7063CDF44017CBFC67DEA1168E /* ChevronUpShapeRenderer.swift in Sources */,\n\t\t\t\t2652DBC582FD2BF6AA5B2A40B66020EC /* CircleShapeRenderer.swift in Sources */,\n\t\t\t\tC031EFD3013B5803C3B7A6D07E4721C0 /* CombinedChartData.swift in Sources */,\n\t\t\t\t34BC5667BA39781B4F70C9AC0518E537 /* CombinedChartDataProvider.swift in Sources */,\n\t\t\t\t2F819FF7F7721DA042E977EF91BA545D /* CombinedChartRenderer.swift in Sources */,\n\t\t\t\tF2C1EF0010084FA2B769B019EBD6D909 /* CombinedChartView.swift in Sources */,\n\t\t\t\tBDD367ED4BB5510C86658115EE6BE71E /* CombinedHighlighter.swift in Sources */,\n\t\t\t\t01618174B06DD11428CA21BD4F996704 /* ComponentBase.swift in Sources */,\n\t\t\t\t74D4DC9B702FBC147C03965E9F271128 /* CrossShapeRenderer.swift in Sources */,\n\t\t\t\tA688509392FC14A799979CEA50908A2D /* DataApproximator+N.swift in Sources */,\n\t\t\t\tDDCAF53B6EE94F6ADF428036C2A85244 /* DataApproximator.swift in Sources */,\n\t\t\t\t6801E6D885988880F502EFA919360446 /* DefaultAxisValueFormatter.swift in Sources */,\n\t\t\t\tE2FF6F533C0CFB1461BA3D7B76B48A9C /* DefaultFillFormatter.swift in Sources */,\n\t\t\t\tDD3CC52D093C0DF2CF8109C55CFFCD85 /* DefaultValueFormatter.swift in Sources */,\n\t\t\t\t0388D8402985CBE0DB060BB0D7CCB2ED /* Description.swift in Sources */,\n\t\t\t\t26EFCEF521B95D2CCB19E5535408A1FA /* Fill.swift in Sources */,\n\t\t\t\t9F668D7B0F3CEA3608D305A013A7BE48 /* Highlight.swift in Sources */,\n\t\t\t\t6A532F6858B2D5219D76BEFE1E74A5A6 /* HorizontalBarChartRenderer.swift in Sources */,\n\t\t\t\t3A5078F021BB004E2F4463F360D41391 /* HorizontalBarChartView.swift in Sources */,\n\t\t\t\t91704461340ABFBEB88425DCC9867890 /* HorizontalBarHighlighter.swift in Sources */,\n\t\t\t\t5128310DB4D59B51642B2A13972C3434 /* IAxisValueFormatter.swift in Sources */,\n\t\t\t\tD68F93293888B6776369185028CB60B0 /* IBarChartDataSet.swift in Sources */,\n\t\t\t\t709152D66394DCE1D7D3802C65090118 /* IBarLineScatterCandleBubbleChartDataSet.swift in Sources */,\n\t\t\t\t5C790091CB1B0D41E23A4AE5FA727983 /* IBubbleChartDataSet.swift in Sources */,\n\t\t\t\t27303BB4BDD2C456C1DEC36087E756B4 /* ICandleChartDataSet.swift in Sources */,\n\t\t\t\t62C2F7F87CA413E2407F1F8DECA88949 /* IChartDataSet.swift in Sources */,\n\t\t\t\t35C57ED01BE2D7FD6F4DACD96F5EDFE1 /* IFillFormatter.swift in Sources */,\n\t\t\t\tCEC814CFD549BCDDAB65F5918969182E /* IHighlighter.swift in Sources */,\n\t\t\t\t58398B0E03224E5EBE7FCFAD62F8FB69 /* ILineChartDataSet.swift in Sources */,\n\t\t\t\t3D57709B53538839313AA6A6DC6E322C /* ILineRadarChartDataSet.swift in Sources */,\n\t\t\t\tB45CE2B91939EC0EA7898C1C6BA16367 /* ILineScatterCandleRadarChartDataSet.swift in Sources */,\n\t\t\t\t75B22CB8C580F73B117214B061436099 /* IMarker.swift in Sources */,\n\t\t\t\tC2012E1E9FD44B75ECF4B4B3D3782293 /* IndexAxisValueFormatter.swift in Sources */,\n\t\t\t\t675D24D585A2506762D77E6052517E00 /* IPieChartDataSet.swift in Sources */,\n\t\t\t\tFC378CAAA9FD5B4B156B982EBDB12BA3 /* IRadarChartDataSet.swift in Sources */,\n\t\t\t\tAA39F0560285BF5448411D429ED9408D /* IScatterChartDataSet.swift in Sources */,\n\t\t\t\tECC149B136D4D63AF251912E051A142F /* IShapeRenderer.swift in Sources */,\n\t\t\t\t5B96DE0FB615C832ACB06B9E16B49740 /* IValueFormatter.swift in Sources */,\n\t\t\t\t9C081B18BB1A54D953EB89605319AA77 /* Legend.swift in Sources */,\n\t\t\t\t1EA6964A5C78B205DFC45AFC08637DF8 /* LegendEntry.swift in Sources */,\n\t\t\t\t4DB24C948D1C4F4FB43DAA833D049885 /* LegendRenderer.swift in Sources */,\n\t\t\t\tED58A23EB5289726B5D74EFEEA590BDD /* LineChartData.swift in Sources */,\n\t\t\t\tC5880AE977F94A1AE25E756A805B7B0B /* LineChartDataProvider.swift in Sources */,\n\t\t\t\t66FC952C43367208D641932AEB59DA8A /* LineChartDataSet.swift in Sources */,\n\t\t\t\tFEFD4F20D5515E1D596FCFA083EB05D7 /* LineChartRenderer.swift in Sources */,\n\t\t\t\tE73D9F2950182C774E50E891F75C1BB4 /* LineChartView.swift in Sources */,\n\t\t\t\t53772EF4F22DD42A63551C4CD687E9A6 /* LineRadarChartDataSet.swift in Sources */,\n\t\t\t\t8E01F38A1667D8B2C57E20400D6BB425 /* LineRadarRenderer.swift in Sources */,\n\t\t\t\t5E27C6B54F72D3C34AB6605772DF7E70 /* LineScatterCandleRadarChartDataSet.swift in Sources */,\n\t\t\t\tDC28EC495C8806D9B9C0CB0C2F8E8673 /* LineScatterCandleRadarRenderer.swift in Sources */,\n\t\t\t\t81FCFDD76834B83BF46D3741C79FF29A /* MarkerImage.swift in Sources */,\n\t\t\t\t32B122E4A8FECD28F192174EA3A4C704 /* MarkerView.swift in Sources */,\n\t\t\t\tD7B623CFD7231E00FB60419AA17A3E82 /* MoveViewJob.swift in Sources */,\n\t\t\t\t4D9563B240B9127EDF6FBA5A21180FD8 /* PieChartData.swift in Sources */,\n\t\t\t\tAF34EC6CDB336F35ACD18C2CA8428251 /* PieChartDataEntry.swift in Sources */,\n\t\t\t\t2AFDC0B52F5347C726EAAD89365E3978 /* PieChartDataSet.swift in Sources */,\n\t\t\t\tBB75859BDCF578D67C08E6E6741701EB /* PieChartRenderer.swift in Sources */,\n\t\t\t\t1132976D856E1857C4CD9989B9A8EBCE /* PieChartView.swift in Sources */,\n\t\t\t\tC742D0AA9431960E21B6203AF6D2F62B /* PieHighlighter.swift in Sources */,\n\t\t\t\t8104AC0D8B60EEC6FB5C73EAFA1934AA /* PieRadarChartViewBase.swift in Sources */,\n\t\t\t\t644CBE15115BFEDB16BF372F81CFF076 /* PieRadarHighlighter.swift in Sources */,\n\t\t\t\t5847AEA5F6021F082A9238BDD5801079 /* Platform+Accessibility.swift in Sources */,\n\t\t\t\tD885D137C7BBBBA479BDB92A72B7D04E /* Platform+Color.swift in Sources */,\n\t\t\t\t640C152125D86F7A3C9BDD7D18563CBA /* Platform+Gestures.swift in Sources */,\n\t\t\t\t474E946BEBC8E12EA9C8D766BDFCEEF5 /* Platform+Graphics.swift in Sources */,\n\t\t\t\tC45A1A018758BC37A59C89114F9A4F75 /* Platform+Touch Handling.swift in Sources */,\n\t\t\t\t1F33F0B7F8701E9A20F90C6A32B2CA03 /* Platform.swift in Sources */,\n\t\t\t\t4975CACC893A427910F64270C28E7275 /* RadarChartData.swift in Sources */,\n\t\t\t\tC72D7A57303FE4E7E25AB747DD3A85AC /* RadarChartDataEntry.swift in Sources */,\n\t\t\t\t930F4FD273BB41A8D1BB1F07608B3028 /* RadarChartDataSet.swift in Sources */,\n\t\t\t\t683F5BAD171DD257F3EC9472323B4BC7 /* RadarChartRenderer.swift in Sources */,\n\t\t\t\t25D675B271C3E073CF2C27B945FAADBB /* RadarChartView.swift in Sources */,\n\t\t\t\t61B753A042411BCF77F768D958106A5C /* RadarHighlighter.swift in Sources */,\n\t\t\t\t7731319719C1878AE7AF9D78705712AF /* Range.swift in Sources */,\n\t\t\t\tC6F4045EAF5410768B595ED98863A250 /* Renderer.swift in Sources */,\n\t\t\t\t66B829842549EECCE91E61D34FFABCBA /* ScatterChartData.swift in Sources */,\n\t\t\t\tC5A3430178D9993D8A5A13864AE40A45 /* ScatterChartDataProvider.swift in Sources */,\n\t\t\t\tCAE986D939019B7726C896B88AC34B82 /* ScatterChartDataSet.swift in Sources */,\n\t\t\t\tE999737BF0D21446B7FFE4DA783EACB2 /* ScatterChartRenderer.swift in Sources */,\n\t\t\t\t991A4EA362C241D77DF184594E226E93 /* ScatterChartView.swift in Sources */,\n\t\t\t\t5DA6F4FC8413B90BD793D0AE181C2AA9 /* SquareShapeRenderer.swift in Sources */,\n\t\t\t\t64A0821B4F9954E56639DAF9BD7E575C /* Transformer.swift in Sources */,\n\t\t\t\t94921CD3D3FBA3D6572678B1F59AA957 /* TransformerHorizontalBarChart.swift in Sources */,\n\t\t\t\t09D2EA12CED518BAA4BCB6A707FA3125 /* TriangleShapeRenderer.swift in Sources */,\n\t\t\t\tE4131026AAE1E3333FB46E14CED55F2A /* ViewPortHandler.swift in Sources */,\n\t\t\t\t0E7DC6451BEFB26E3A47621C0B7F1C16 /* ViewPortJob.swift in Sources */,\n\t\t\t\tB00A1568A89DD820BC9063DC6961540D /* XAxis.swift in Sources */,\n\t\t\t\tA710DCACFF8FFEA66D7ACC5D1BD95C1D /* XAxisRenderer.swift in Sources */,\n\t\t\t\t0769C281810E13C0985B2A414F20ADDE /* XAxisRendererHorizontalBarChart.swift in Sources */,\n\t\t\t\t31918F06050D6445E06FEDF8E2183AF6 /* XAxisRendererRadarChart.swift in Sources */,\n\t\t\t\tD6E011A7BA193945CEA69517E40CBD48 /* XShapeRenderer.swift in Sources */,\n\t\t\t\tBCD42880A54D247B7A68AC06335D0AF5 /* YAxis.swift in Sources */,\n\t\t\t\tB65DAD4280582DBED3A5A2C62185B389 /* YAxisRenderer.swift in Sources */,\n\t\t\t\tB87DABFAA95CDA5DFDDD2F409FDD5DF3 /* YAxisRendererHorizontalBarChart.swift in Sources */,\n\t\t\t\t6FDD5EA5214B8CDC0E747916F07D74C2 /* YAxisRendererRadarChart.swift in Sources */,\n\t\t\t\t22681421488F1E799B4C8FFC0A77F29B /* ZoomViewJob.swift in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXTargetDependency section */\n\t\t146A60999A87B6A0D7B8D911D1CA32E8 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\tname = Charts;\n\t\t\ttarget = BF03B0B2B8B052092CB5F90CC5FB3757 /* Charts */;\n\t\t\ttargetProxy = F09E63C596DE5E11C43A6564C42655E0 /* PBXContainerItemProxy */;\n\t\t};\n/* End PBXTargetDependency section */\n\n/* Begin XCBuildConfiguration section */\n\t\t19B3B6901F16085A93627643AEAED43B /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 2930D0D408850212F0A2E20DE501ECB6 /* Pods-keyrace-mac.debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=appletvos*]\" = \"\";\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"\";\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=watchos*]\" = \"\";\n\t\t\t\tCOMBINE_HIDPI_IMAGES = YES;\n\t\t\t\tCURRENT_PROJECT_VERSION = 1;\n\t\t\t\tDEFINES_MODULE = YES;\n\t\t\t\tDYLIB_COMPATIBILITY_VERSION = 1;\n\t\t\t\tDYLIB_CURRENT_VERSION = 1;\n\t\t\t\tDYLIB_INSTALL_NAME_BASE = \"@rpath\";\n\t\t\t\tINFOPLIST_FILE = \"Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac-Info.plist\";\n\t\t\t\tINSTALL_PATH = \"$(LOCAL_LIBRARY_DIR)/Frameworks\";\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/../Frameworks\",\n\t\t\t\t\t\"@loader_path/Frameworks\",\n\t\t\t\t);\n\t\t\t\tMACH_O_TYPE = staticlib;\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 11.0;\n\t\t\t\tMODULEMAP_FILE = \"Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac.modulemap\";\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPODS_ROOT = \"$(SRCROOT)\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"org.cocoapods.${PRODUCT_NAME:rfc1034identifier}\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME:c99extidentifier)\";\n\t\t\t\tSDKROOT = macosx;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t\tVERSIONING_SYSTEM = \"apple-generic\";\n\t\t\t\tVERSION_INFO_PREFIX = \"\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t2FF0A18971F482EEDEA27298566F7785 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 6F1B6FDBF3D63C5ACE0A26BFAF08936F /* Charts.release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tCLANG_ENABLE_OBJC_WEAK = NO;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=appletvos*]\" = \"\";\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"\";\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=watchos*]\" = \"\";\n\t\t\t\tCOMBINE_HIDPI_IMAGES = YES;\n\t\t\t\tCURRENT_PROJECT_VERSION = 1;\n\t\t\t\tDEFINES_MODULE = YES;\n\t\t\t\tDYLIB_COMPATIBILITY_VERSION = 1;\n\t\t\t\tDYLIB_CURRENT_VERSION = 1;\n\t\t\t\tDYLIB_INSTALL_NAME_BASE = \"@rpath\";\n\t\t\t\tGCC_PREFIX_HEADER = \"Target Support Files/Charts/Charts-prefix.pch\";\n\t\t\t\tINFOPLIST_FILE = \"Target Support Files/Charts/Charts-Info.plist\";\n\t\t\t\tINSTALL_PATH = \"$(LOCAL_LIBRARY_DIR)/Frameworks\";\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/../Frameworks\",\n\t\t\t\t\t\"@loader_path/Frameworks\",\n\t\t\t\t);\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 10.11;\n\t\t\t\tMODULEMAP_FILE = \"Target Support Files/Charts/Charts.modulemap\";\n\t\t\t\tPRODUCT_MODULE_NAME = Charts;\n\t\t\t\tPRODUCT_NAME = Charts;\n\t\t\t\tSDKROOT = macosx;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t\tSWIFT_ACTIVE_COMPILATION_CONDITIONS = \"$(inherited) \";\n\t\t\t\tSWIFT_VERSION = 5.3;\n\t\t\t\tVERSIONING_SYSTEM = \"apple-generic\";\n\t\t\t\tVERSION_INFO_PREFIX = \"\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t82E73717A2562031D5E1F4D85DD1A982 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++14\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_WEAK = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_DOCUMENTATION_COMMENTS = YES;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu11;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"POD_CONFIGURATION_RELEASE=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 11.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tMTL_FAST_MATH = YES;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSTRIP_INSTALLED_PRODUCT = NO;\n\t\t\t\tSWIFT_COMPILATION_MODE = wholemodule;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-O\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t\tSYMROOT = \"${SRCROOT}/../build\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t9B0BFDC9DAA66F86E2788B0D628C7E78 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 1E3C8CA9224056D8D7A1739230C380E2 /* Pods-keyrace-mac.release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=appletvos*]\" = \"\";\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"\";\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=watchos*]\" = \"\";\n\t\t\t\tCOMBINE_HIDPI_IMAGES = YES;\n\t\t\t\tCURRENT_PROJECT_VERSION = 1;\n\t\t\t\tDEFINES_MODULE = YES;\n\t\t\t\tDYLIB_COMPATIBILITY_VERSION = 1;\n\t\t\t\tDYLIB_CURRENT_VERSION = 1;\n\t\t\t\tDYLIB_INSTALL_NAME_BASE = \"@rpath\";\n\t\t\t\tINFOPLIST_FILE = \"Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac-Info.plist\";\n\t\t\t\tINSTALL_PATH = \"$(LOCAL_LIBRARY_DIR)/Frameworks\";\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/../Frameworks\",\n\t\t\t\t\t\"@loader_path/Frameworks\",\n\t\t\t\t);\n\t\t\t\tMACH_O_TYPE = staticlib;\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 11.0;\n\t\t\t\tMODULEMAP_FILE = \"Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac.modulemap\";\n\t\t\t\tOTHER_LDFLAGS = \"\";\n\t\t\t\tOTHER_LIBTOOLFLAGS = \"\";\n\t\t\t\tPODS_ROOT = \"$(SRCROOT)\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = \"org.cocoapods.${PRODUCT_NAME:rfc1034identifier}\";\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME:c99extidentifier)\";\n\t\t\t\tSDKROOT = macosx;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t\tVERSIONING_SYSTEM = \"apple-generic\";\n\t\t\t\tVERSION_INFO_PREFIX = \"\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\tCC53D57BD7F722A069009F6307547A95 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 48027FA544793BB96B21AC8F1F684204 /* Charts.debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tCLANG_ENABLE_OBJC_WEAK = NO;\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=appletvos*]\" = \"\";\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"\";\n\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=watchos*]\" = \"\";\n\t\t\t\tCOMBINE_HIDPI_IMAGES = YES;\n\t\t\t\tCURRENT_PROJECT_VERSION = 1;\n\t\t\t\tDEFINES_MODULE = YES;\n\t\t\t\tDYLIB_COMPATIBILITY_VERSION = 1;\n\t\t\t\tDYLIB_CURRENT_VERSION = 1;\n\t\t\t\tDYLIB_INSTALL_NAME_BASE = \"@rpath\";\n\t\t\t\tGCC_PREFIX_HEADER = \"Target Support Files/Charts/Charts-prefix.pch\";\n\t\t\t\tINFOPLIST_FILE = \"Target Support Files/Charts/Charts-Info.plist\";\n\t\t\t\tINSTALL_PATH = \"$(LOCAL_LIBRARY_DIR)/Frameworks\";\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/../Frameworks\",\n\t\t\t\t\t\"@loader_path/Frameworks\",\n\t\t\t\t);\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 10.11;\n\t\t\t\tMODULEMAP_FILE = \"Target Support Files/Charts/Charts.modulemap\";\n\t\t\t\tPRODUCT_MODULE_NAME = Charts;\n\t\t\t\tPRODUCT_NAME = Charts;\n\t\t\t\tSDKROOT = macosx;\n\t\t\t\tSKIP_INSTALL = YES;\n\t\t\t\tSWIFT_ACTIVE_COMPILATION_CONDITIONS = \"$(inherited) \";\n\t\t\t\tSWIFT_VERSION = 5.3;\n\t\t\t\tVERSIONING_SYSTEM = \"apple-generic\";\n\t\t\t\tVERSION_INFO_PREFIX = \"\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\tD39E634FC2CFF97419EB3682DD2807FA /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++14\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_WEAK = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_DOCUMENTATION_COMMENTS = YES;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu11;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"POD_CONFIGURATION_DEBUG=1\",\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 11.0;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;\n\t\t\t\tMTL_FAST_MATH = YES;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSTRIP_INSTALLED_PRODUCT = NO;\n\t\t\t\tSWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Onone\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t\tSYMROOT = \"${SRCROOT}/../build\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t0529FBB23F7D135C6148230AFAACBA2F /* Build configuration list for PBXNativeTarget \"Pods-keyrace-mac\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t19B3B6901F16085A93627643AEAED43B /* Debug */,\n\t\t\t\t9B0BFDC9DAA66F86E2788B0D628C7E78 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject \"Pods\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tD39E634FC2CFF97419EB3682DD2807FA /* Debug */,\n\t\t\t\t82E73717A2562031D5E1F4D85DD1A982 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\tEACB1516A3F84CD99E9B870444AB37F1 /* Build configuration list for PBXNativeTarget \"Charts\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\tCC53D57BD7F722A069009F6307547A95 /* Debug */,\n\t\t\t\t2FF0A18971F482EEDEA27298566F7785 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = BFDFE7DC352907FC980B868725387E98 /* Project object */;\n}\n"
  },
  {
    "path": "mac/Pods/Pods.xcodeproj/xcshareddata/xcschemes/Charts.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"1240\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"BF03B0B2B8B052092CB5F90CC5FB3757\"\n               BuildableName = \"Charts.framework\"\n               BlueprintName = \"Charts\"\n               ReferencedContainer = \"container:Pods.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <Testables>\n      </Testables>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "mac/Pods/Pods.xcodeproj/xcshareddata/xcschemes/Pods-keyrace-mac.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"1240\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"2AA283DD094B7DF025AF7C29731707BA\"\n               BuildableName = \"Pods_keyrace_mac.framework\"\n               BlueprintName = \"Pods-keyrace-mac\"\n               ReferencedContainer = \"container:Pods.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <Testables>\n      </Testables>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "mac/Pods/Target Support Files/Charts/Charts-Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n  <key>CFBundleDevelopmentRegion</key>\n  <string>en</string>\n  <key>CFBundleExecutable</key>\n  <string>${EXECUTABLE_NAME}</string>\n  <key>CFBundleIdentifier</key>\n  <string>${PRODUCT_BUNDLE_IDENTIFIER}</string>\n  <key>CFBundleInfoDictionaryVersion</key>\n  <string>6.0</string>\n  <key>CFBundleName</key>\n  <string>${PRODUCT_NAME}</string>\n  <key>CFBundlePackageType</key>\n  <string>FMWK</string>\n  <key>CFBundleShortVersionString</key>\n  <string>3.6.0</string>\n  <key>CFBundleSignature</key>\n  <string>????</string>\n  <key>CFBundleVersion</key>\n  <string>${CURRENT_PROJECT_VERSION}</string>\n  <key>NSPrincipalClass</key>\n  <string></string>\n</dict>\n</plist>\n"
  },
  {
    "path": "mac/Pods/Target Support Files/Charts/Charts-dummy.m",
    "content": "#import <Foundation/Foundation.h>\n@interface PodsDummy_Charts : NSObject\n@end\n@implementation PodsDummy_Charts\n@end\n"
  },
  {
    "path": "mac/Pods/Target Support Files/Charts/Charts-prefix.pch",
    "content": "#ifdef __OBJC__\n#import <Cocoa/Cocoa.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern \"C\"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n"
  },
  {
    "path": "mac/Pods/Target Support Files/Charts/Charts-umbrella.h",
    "content": "#ifdef __OBJC__\n#import <Cocoa/Cocoa.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern \"C\"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n\nFOUNDATION_EXPORT double ChartsVersionNumber;\nFOUNDATION_EXPORT const unsigned char ChartsVersionString[];\n\n"
  },
  {
    "path": "mac/Pods/Target Support Files/Charts/Charts.debug.xcconfig",
    "content": "CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO\nCODE_SIGN_IDENTITY =\nCONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/Charts\nGCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1\nOTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS -suppress-warnings\nPODS_BUILD_DIR = ${BUILD_DIR}\nPODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\nPODS_ROOT = ${SRCROOT}\nPODS_TARGET_SRCROOT = ${PODS_ROOT}/Charts\nPODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates\nPRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}\nSKIP_INSTALL = YES\nUSE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES\n"
  },
  {
    "path": "mac/Pods/Target Support Files/Charts/Charts.modulemap",
    "content": "framework module Charts {\n  umbrella header \"Charts-umbrella.h\"\n\n  export *\n  module * { export * }\n}\n"
  },
  {
    "path": "mac/Pods/Target Support Files/Charts/Charts.release.xcconfig",
    "content": "CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO\nCODE_SIGN_IDENTITY =\nCONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/Charts\nGCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1\nOTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS -suppress-warnings\nPODS_BUILD_DIR = ${BUILD_DIR}\nPODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\nPODS_ROOT = ${SRCROOT}\nPODS_TARGET_SRCROOT = ${PODS_ROOT}/Charts\nPODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates\nPRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}\nSKIP_INSTALL = YES\nUSE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES\n"
  },
  {
    "path": "mac/Pods/Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac-Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n  <key>CFBundleDevelopmentRegion</key>\n  <string>en</string>\n  <key>CFBundleExecutable</key>\n  <string>${EXECUTABLE_NAME}</string>\n  <key>CFBundleIdentifier</key>\n  <string>${PRODUCT_BUNDLE_IDENTIFIER}</string>\n  <key>CFBundleInfoDictionaryVersion</key>\n  <string>6.0</string>\n  <key>CFBundleName</key>\n  <string>${PRODUCT_NAME}</string>\n  <key>CFBundlePackageType</key>\n  <string>FMWK</string>\n  <key>CFBundleShortVersionString</key>\n  <string>1.0.0</string>\n  <key>CFBundleSignature</key>\n  <string>????</string>\n  <key>CFBundleVersion</key>\n  <string>${CURRENT_PROJECT_VERSION}</string>\n  <key>NSPrincipalClass</key>\n  <string></string>\n</dict>\n</plist>\n"
  },
  {
    "path": "mac/Pods/Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac-acknowledgements.markdown",
    "content": "# Acknowledgements\nThis application makes use of the following third party libraries:\n\n## Charts\n\nApache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"{}\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2016-2019 Daniel Cohen Gindi & Philipp Jahoda\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n\n\nGenerated by CocoaPods - https://cocoapods.org\n"
  },
  {
    "path": "mac/Pods/Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac-acknowledgements.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>PreferenceSpecifiers</key>\n\t<array>\n\t\t<dict>\n\t\t\t<key>FooterText</key>\n\t\t\t<string>This application makes use of the following third party libraries:</string>\n\t\t\t<key>Title</key>\n\t\t\t<string>Acknowledgements</string>\n\t\t\t<key>Type</key>\n\t\t\t<string>PSGroupSpecifier</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>FooterText</key>\n\t\t\t<string>Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"{}\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright 2016-2019 Daniel Cohen Gindi &amp; Philipp Jahoda\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n\n</string>\n\t\t\t<key>License</key>\n\t\t\t<string>Apache License, Version 2.0</string>\n\t\t\t<key>Title</key>\n\t\t\t<string>Charts</string>\n\t\t\t<key>Type</key>\n\t\t\t<string>PSGroupSpecifier</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>FooterText</key>\n\t\t\t<string>Generated by CocoaPods - https://cocoapods.org</string>\n\t\t\t<key>Title</key>\n\t\t\t<string></string>\n\t\t\t<key>Type</key>\n\t\t\t<string>PSGroupSpecifier</string>\n\t\t</dict>\n\t</array>\n\t<key>StringsTable</key>\n\t<string>Acknowledgements</string>\n\t<key>Title</key>\n\t<string>Acknowledgements</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "mac/Pods/Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac-dummy.m",
    "content": "#import <Foundation/Foundation.h>\n@interface PodsDummy_Pods_keyrace_mac : NSObject\n@end\n@implementation PodsDummy_Pods_keyrace_mac\n@end\n"
  },
  {
    "path": "mac/Pods/Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac-frameworks-Debug-input-files.xcfilelist",
    "content": "${PODS_ROOT}/Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac-frameworks.sh\n${BUILT_PRODUCTS_DIR}/Charts/Charts.framework"
  },
  {
    "path": "mac/Pods/Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac-frameworks-Debug-output-files.xcfilelist",
    "content": "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Charts.framework"
  },
  {
    "path": "mac/Pods/Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac-frameworks-Release-input-files.xcfilelist",
    "content": "${PODS_ROOT}/Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac-frameworks.sh\n${BUILT_PRODUCTS_DIR}/Charts/Charts.framework"
  },
  {
    "path": "mac/Pods/Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac-frameworks-Release-output-files.xcfilelist",
    "content": "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Charts.framework"
  },
  {
    "path": "mac/Pods/Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac-frameworks.sh",
    "content": "#!/bin/sh\nset -e\nset -u\nset -o pipefail\n\nfunction on_error {\n  echo \"$(realpath -mq \"${0}\"):$1: error: Unexpected failure\"\n}\ntrap 'on_error $LINENO' ERR\n\nif [ -z ${FRAMEWORKS_FOLDER_PATH+x} ]; then\n  # If FRAMEWORKS_FOLDER_PATH is not set, then there's nowhere for us to copy\n  # frameworks to, so exit 0 (signalling the script phase was successful).\n  exit 0\nfi\n\necho \"mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\nmkdir -p \"${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n\nCOCOAPODS_PARALLEL_CODE_SIGN=\"${COCOAPODS_PARALLEL_CODE_SIGN:-false}\"\nSWIFT_STDLIB_PATH=\"${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}\"\nBCSYMBOLMAP_DIR=\"BCSymbolMaps\"\n\n\n# This protects against multiple targets copying the same framework dependency at the same time. The solution\n# was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html\nRSYNC_PROTECT_TMP_FILES=(--filter \"P .*.??????\")\n\n# Copies and strips a vendored framework\ninstall_framework()\n{\n  if [ -r \"${BUILT_PRODUCTS_DIR}/$1\" ]; then\n    local source=\"${BUILT_PRODUCTS_DIR}/$1\"\n  elif [ -r \"${BUILT_PRODUCTS_DIR}/$(basename \"$1\")\" ]; then\n    local source=\"${BUILT_PRODUCTS_DIR}/$(basename \"$1\")\"\n  elif [ -r \"$1\" ]; then\n    local source=\"$1\"\n  fi\n\n  local destination=\"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n\n  if [ -L \"${source}\" ]; then\n    echo \"Symlinked...\"\n    source=\"$(readlink \"${source}\")\"\n  fi\n\n  if [ -d \"${source}/${BCSYMBOLMAP_DIR}\" ]; then\n    # Locate and install any .bcsymbolmaps if present, and remove them from the .framework before the framework is copied\n    find \"${source}/${BCSYMBOLMAP_DIR}\" -name \"*.bcsymbolmap\"|while read f; do\n      echo \"Installing $f\"\n      install_bcsymbolmap \"$f\" \"$destination\"\n      rm \"$f\"\n    done\n    rmdir \"${source}/${BCSYMBOLMAP_DIR}\"\n  fi\n\n  # Use filter instead of exclude so missing patterns don't throw errors.\n  echo \"rsync --delete -av \"${RSYNC_PROTECT_TMP_FILES[@]}\" --links --filter \\\"- CVS/\\\" --filter \\\"- .svn/\\\" --filter \\\"- .git/\\\" --filter \\\"- .hg/\\\" --filter \\\"- Headers\\\" --filter \\\"- PrivateHeaders\\\" --filter \\\"- Modules\\\" \\\"${source}\\\" \\\"${destination}\\\"\"\n  rsync --delete -av \"${RSYNC_PROTECT_TMP_FILES[@]}\" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"\n\n  local basename\n  basename=\"$(basename -s .framework \"$1\")\"\n  binary=\"${destination}/${basename}.framework/${basename}\"\n\n  if ! [ -r \"$binary\" ]; then\n    binary=\"${destination}/${basename}\"\n  elif [ -L \"${binary}\" ]; then\n    echo \"Destination binary is symlinked...\"\n    dirname=\"$(dirname \"${binary}\")\"\n    binary=\"${dirname}/$(readlink \"${binary}\")\"\n  fi\n\n  # Strip invalid architectures so \"fat\" simulator / device frameworks work on device\n  if [[ \"$(file \"$binary\")\" == *\"dynamically linked shared library\"* ]]; then\n    strip_invalid_archs \"$binary\"\n  fi\n\n  # Resign the code if required by the build settings to avoid unstable apps\n  code_sign_if_enabled \"${destination}/$(basename \"$1\")\"\n\n  # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7.\n  if [ \"${XCODE_VERSION_MAJOR}\" -lt 7 ]; then\n    local swift_runtime_libs\n    swift_runtime_libs=$(xcrun otool -LX \"$binary\" | grep --color=never @rpath/libswift | sed -E s/@rpath\\\\/\\(.+dylib\\).*/\\\\1/g | uniq -u)\n    for lib in $swift_runtime_libs; do\n      echo \"rsync -auv \\\"${SWIFT_STDLIB_PATH}/${lib}\\\" \\\"${destination}\\\"\"\n      rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"\n      code_sign_if_enabled \"${destination}/${lib}\"\n    done\n  fi\n}\n# Copies and strips a vendored dSYM\ninstall_dsym() {\n  local source=\"$1\"\n  warn_missing_arch=${2:-true}\n  if [ -r \"$source\" ]; then\n    # Copy the dSYM into the targets temp dir.\n    echo \"rsync --delete -av \"${RSYNC_PROTECT_TMP_FILES[@]}\" --filter \\\"- CVS/\\\" --filter \\\"- .svn/\\\" --filter \\\"- .git/\\\" --filter \\\"- .hg/\\\" --filter \\\"- Headers\\\" --filter \\\"- PrivateHeaders\\\" --filter \\\"- Modules\\\" \\\"${source}\\\" \\\"${DERIVED_FILES_DIR}\\\"\"\n    rsync --delete -av \"${RSYNC_PROTECT_TMP_FILES[@]}\" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"\n\n    local basename\n    basename=\"$(basename -s .dSYM \"$source\")\"\n    binary_name=\"$(ls \"$source/Contents/Resources/DWARF\")\"\n    binary=\"${DERIVED_FILES_DIR}/${basename}.dSYM/Contents/Resources/DWARF/${binary_name}\"\n\n    # Strip invalid architectures from the dSYM.\n    if [[ \"$(file \"$binary\")\" == *\"Mach-O \"*\"dSYM companion\"* ]]; then\n      strip_invalid_archs \"$binary\" \"$warn_missing_arch\"\n    fi\n    if [[ $STRIP_BINARY_RETVAL == 0 ]]; then\n      # Move the stripped file into its final destination.\n      echo \"rsync --delete -av \"${RSYNC_PROTECT_TMP_FILES[@]}\" --links --filter \\\"- CVS/\\\" --filter \\\"- .svn/\\\" --filter \\\"- .git/\\\" --filter \\\"- .hg/\\\" --filter \\\"- Headers\\\" --filter \\\"- PrivateHeaders\\\" --filter \\\"- Modules\\\" \\\"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\\\" \\\"${DWARF_DSYM_FOLDER_PATH}\\\"\"\n      rsync --delete -av \"${RSYNC_PROTECT_TMP_FILES[@]}\" --links --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"\n    else\n      # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing.\n      touch \"${DWARF_DSYM_FOLDER_PATH}/${basename}.dSYM\"\n    fi\n  fi\n}\n\n# Used as a return value for each invocation of `strip_invalid_archs` function.\nSTRIP_BINARY_RETVAL=0\n\n# Strip invalid architectures\nstrip_invalid_archs() {\n  binary=\"$1\"\n  warn_missing_arch=${2:-true}\n  # Get architectures for current target binary\n  binary_archs=\"$(lipo -info \"$binary\" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)\"\n  # Intersect them with the architectures we are building for\n  intersected_archs=\"$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\\n' | sort | uniq -d)\"\n  # If there are no archs supported by this binary then warn the user\n  if [[ -z \"$intersected_archs\" ]]; then\n    if [[ \"$warn_missing_arch\" == \"true\" ]]; then\n      echo \"warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS).\"\n    fi\n    STRIP_BINARY_RETVAL=1\n    return\n  fi\n  stripped=\"\"\n  for arch in $binary_archs; do\n    if ! [[ \"${ARCHS}\" == *\"$arch\"* ]]; then\n      # Strip non-valid architectures in-place\n      lipo -remove \"$arch\" -output \"$binary\" \"$binary\"\n      stripped=\"$stripped $arch\"\n    fi\n  done\n  if [[ \"$stripped\" ]]; then\n    echo \"Stripped $binary of architectures:$stripped\"\n  fi\n  STRIP_BINARY_RETVAL=0\n}\n\n# Copies the bcsymbolmap files of a vendored framework\ninstall_bcsymbolmap() {\n    local bcsymbolmap_path=\"$1\"\n    local destination=\"${BUILT_PRODUCTS_DIR}\"\n    echo \"rsync --delete -av \"${RSYNC_PROTECT_TMP_FILES[@]}\" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${bcsymbolmap_path}\" \"${destination}\"\"\n    rsync --delete -av \"${RSYNC_PROTECT_TMP_FILES[@]}\" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${bcsymbolmap_path}\" \"${destination}\"\n}\n\n# Signs a framework with the provided identity\ncode_sign_if_enabled() {\n  if [ -n \"${EXPANDED_CODE_SIGN_IDENTITY:-}\" -a \"${CODE_SIGNING_REQUIRED:-}\" != \"NO\" -a \"${CODE_SIGNING_ALLOWED}\" != \"NO\" ]; then\n    # Use the current code_sign_identity\n    echo \"Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}\"\n    local code_sign_cmd=\"/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS:-} --preserve-metadata=identifier,entitlements '$1'\"\n\n    if [ \"${COCOAPODS_PARALLEL_CODE_SIGN}\" == \"true\" ]; then\n      code_sign_cmd=\"$code_sign_cmd &\"\n    fi\n    echo \"$code_sign_cmd\"\n    eval \"$code_sign_cmd\"\n  fi\n}\n\nif [[ \"$CONFIGURATION\" == \"Debug\" ]]; then\n  install_framework \"${BUILT_PRODUCTS_DIR}/Charts/Charts.framework\"\nfi\nif [[ \"$CONFIGURATION\" == \"Release\" ]]; then\n  install_framework \"${BUILT_PRODUCTS_DIR}/Charts/Charts.framework\"\nfi\nif [ \"${COCOAPODS_PARALLEL_CODE_SIGN}\" == \"true\" ]; then\n  wait\nfi\n"
  },
  {
    "path": "mac/Pods/Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac-umbrella.h",
    "content": "#ifdef __OBJC__\n#import <Cocoa/Cocoa.h>\n#else\n#ifndef FOUNDATION_EXPORT\n#if defined(__cplusplus)\n#define FOUNDATION_EXPORT extern \"C\"\n#else\n#define FOUNDATION_EXPORT extern\n#endif\n#endif\n#endif\n\n\nFOUNDATION_EXPORT double Pods_keyrace_macVersionNumber;\nFOUNDATION_EXPORT const unsigned char Pods_keyrace_macVersionString[];\n\n"
  },
  {
    "path": "mac/Pods/Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac.debug.xcconfig",
    "content": "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES\nCLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO\nFRAMEWORK_SEARCH_PATHS = $(inherited) \"${PODS_CONFIGURATION_BUILD_DIR}/Charts\"\nGCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1\nHEADER_SEARCH_PATHS = $(inherited) \"${PODS_CONFIGURATION_BUILD_DIR}/Charts/Charts.framework/Headers\"\nLD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/../Frameworks' '@loader_path/Frameworks'\nOTHER_CFLAGS = $(inherited) -isystem \"${PODS_CONFIGURATION_BUILD_DIR}/Charts/Charts.framework/Headers\" -iframework \"${PODS_CONFIGURATION_BUILD_DIR}/Charts\"\nOTHER_LDFLAGS = $(inherited) -framework \"Charts\"\nOTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS\nPODS_BUILD_DIR = ${BUILD_DIR}\nPODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\nPODS_PODFILE_DIR_PATH = ${SRCROOT}/.\nPODS_ROOT = ${SRCROOT}/Pods\nPODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates\nUSE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES\n"
  },
  {
    "path": "mac/Pods/Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac.modulemap",
    "content": "framework module Pods_keyrace_mac {\n  umbrella header \"Pods-keyrace-mac-umbrella.h\"\n\n  export *\n  module * { export * }\n}\n"
  },
  {
    "path": "mac/Pods/Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac.release.xcconfig",
    "content": "ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES\nCLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO\nFRAMEWORK_SEARCH_PATHS = $(inherited) \"${PODS_CONFIGURATION_BUILD_DIR}/Charts\"\nGCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1\nHEADER_SEARCH_PATHS = $(inherited) \"${PODS_CONFIGURATION_BUILD_DIR}/Charts/Charts.framework/Headers\"\nLD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/../Frameworks' '@loader_path/Frameworks'\nOTHER_CFLAGS = $(inherited) -isystem \"${PODS_CONFIGURATION_BUILD_DIR}/Charts/Charts.framework/Headers\" -iframework \"${PODS_CONFIGURATION_BUILD_DIR}/Charts\"\nOTHER_LDFLAGS = $(inherited) -framework \"Charts\"\nOTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS\nPODS_BUILD_DIR = ${BUILD_DIR}\nPODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)\nPODS_PODFILE_DIR_PATH = ${SRCROOT}/.\nPODS_ROOT = ${SRCROOT}/Pods\nPODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates\nUSE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES\n"
  },
  {
    "path": "mac/keyrace-mac/AppDelegate.swift",
    "content": "//\n//  keyrace-mac\n//\n//  Created by Nat Friedman on 1/2/21.\n//\n\nimport Cocoa\nimport Foundation\nimport SwiftUI\n\n@available(OSX 11.0, *)\n@main\nstruct MenuBarPopoverApp: App {\n    @NSApplicationDelegateAdaptor(AppDelegate.self) var appDelegate\n    var body: some Scene {\n        Settings{\n            EmptyView()\n        }\n    }\n}\n\nclass AppDelegate: NSObject, NSApplicationDelegate {\n    var popover: NSPopover!\n    var statusBarItem: NSStatusItem!\n    var keyTap : KeyTap?\n    var gitHub : GitHub?\n    \n    func applicationDidFinishLaunching(_ aNotification: Notification) {\n        // Create the status item.\n        self.statusBarItem = NSStatusBar.system.statusItem(withLength: CGFloat(NSStatusItem.variableLength))\n        if let button = self.statusBarItem.button {\n            button.title = \"Setup Keyrace\"\n            let clickGesture = NSClickGestureRecognizer(target: self, action: #selector(togglePopover))\n            button.addGestureRecognizer(clickGesture)\n        }\n        \n        // Initialize these things so we can pass them to the ContentView().\n        gitHub = GitHub()\n        keyTap = KeyTap(self)\n        \n        keyTap!.getAccessibilityPermissions()\n        \n        // Create the SwiftUI view that provides the window contents.\n        let contentView = ContentView(keyTap: keyTap!, gitHub: gitHub!)\n\n        // Create the popover\n        let popover = NSPopover()\n        popover.contentSize = NSSize(width: 350, height: 1000)\n        popover.behavior = .transient\n        popover.contentViewController = NSHostingController(rootView: contentView)\n        self.popover = popover\n        \n        NSApp.activate(ignoringOtherApps: true)\n    }\n    \n    @objc func togglePopover(_ sender: AnyObject?) {\n        if let button = self.statusBarItem.button {\n            if self.popover.isShown {\n                self.popover.performClose(sender)\n            } else {\n                let sizeThatFits = (self.popover.contentViewController as? NSHostingController<ContentView>)?.sizeThatFits(in: CGSize(width: 350, height: 0))\n                if sizeThatFits != nil {\n                    self.popover.contentSize = sizeThatFits!\n                }\n                \n                self.popover.show(relativeTo: button.bounds, of: button, preferredEdge: NSRectEdge.minY)\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "mac/keyrace-mac/Assets.xcassets/AccentColor.colorset/Contents.json",
    "content": "{\n  \"colors\" : [\n    {\n      \"idiom\" : \"universal\"\n    }\n  ],\n  \"info\" : {\n    \"author\" : \"xcode\",\n    \"version\" : 1\n  }\n}\n"
  },
  {
    "path": "mac/keyrace-mac/Assets.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"mac\",\n      \"scale\" : \"1x\",\n      \"size\" : \"16x16\"\n    },\n    {\n      \"idiom\" : \"mac\",\n      \"scale\" : \"2x\",\n      \"size\" : \"16x16\"\n    },\n    {\n      \"idiom\" : \"mac\",\n      \"scale\" : \"1x\",\n      \"size\" : \"32x32\"\n    },\n    {\n      \"idiom\" : \"mac\",\n      \"scale\" : \"2x\",\n      \"size\" : \"32x32\"\n    },\n    {\n      \"idiom\" : \"mac\",\n      \"scale\" : \"1x\",\n      \"size\" : \"128x128\"\n    },\n    {\n      \"idiom\" : \"mac\",\n      \"scale\" : \"2x\",\n      \"size\" : \"128x128\"\n    },\n    {\n      \"idiom\" : \"mac\",\n      \"scale\" : \"1x\",\n      \"size\" : \"256x256\"\n    },\n    {\n      \"idiom\" : \"mac\",\n      \"scale\" : \"2x\",\n      \"size\" : \"256x256\"\n    },\n    {\n      \"idiom\" : \"mac\",\n      \"scale\" : \"1x\",\n      \"size\" : \"512x512\"\n    },\n    {\n      \"idiom\" : \"mac\",\n      \"scale\" : \"2x\",\n      \"size\" : \"512x512\"\n    }\n  ],\n  \"info\" : {\n    \"author\" : \"xcode\",\n    \"version\" : 1\n  }\n}\n"
  },
  {
    "path": "mac/keyrace-mac/Assets.xcassets/Contents.json",
    "content": "{\n  \"info\" : {\n    \"author\" : \"xcode\",\n    \"version\" : 1\n  }\n}\n"
  },
  {
    "path": "mac/keyrace-mac/Assets.xcassets/magic-keyboard.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"filename\" : \"magic-keyboard.png\",\n      \"idiom\" : \"universal\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"filename\" : \"magic-keyboard@2x.png\",\n      \"idiom\" : \"universal\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"filename\" : \"magic-keyboard@3x.png\",\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"author\" : \"xcode\",\n    \"version\" : 1\n  }\n}\n"
  },
  {
    "path": "mac/keyrace-mac/ContentView.swift",
    "content": "//\n//  ContentView.swift\n//  keyrace-mac\n//\n//  Created by Jessie Frazelle on 2/21/21.\n//\n\nimport Foundation\nimport SwiftUI\n\nstruct ContentView: View {\n    @ObservedObject var keyTap: KeyTap\n    @ObservedObject var gitHub: GitHub\n    \n    var body: some View {\n        Section {\n            TypingChart(typingCount: keyTap.minutesChart, color: [255, 253, 86], granularity: 3,\n                        valueFormatter: MinAxisValueFormatter(), labelCount: 0)\n                .frame(width: 350, height: 100, alignment: .center)\n            TypingChart(typingCount: keyTap.hoursChart, color: [255, 0, 0], granularity: 3,\n                        valueFormatter: HourAxisValueFormatter(), labelCount: 0 )\n                .frame(width: 350, height: 100, alignment: .center)\n            TypingChart(typingCount: keyTap.keysChart, color: [0, 255, 255], granularity: 1,\n                        valueFormatter: KeyAxisValueFormatter(), labelCount: 25)\n                .frame(width: 350, height: 100, alignment: .center)\n            TypingChart(typingCount: keyTap.symbolsChart, color: [0, 255, 255], granularity: 1,\n                        valueFormatter: SymbolAxisValueFormatter(), labelCount: 25)\n                .frame(width: 350, height: 100, alignment: .center)\n                .padding(.bottom, 10)\n        }\n        Section {\n            KeyboardView(keyTap: keyTap)\n        }\n        Section {\n            LeaderboardView(keyTap: keyTap, gitHub: gitHub)\n        }\n        Section {\n            SettingsView(keyTap: keyTap, gitHub: gitHub)\n        }\n    }\n}\n"
  },
  {
    "path": "mac/keyrace-mac/GitHub.swift",
    "content": "//\n//  github_auth.swift\n//  keyrace-mac\n//\n//  Created by Nat Friedman on 1/2/21.\n//\nimport Cocoa\nimport Combine\nimport Foundation\nimport SwiftUI\n\nclass GitHub: ObservableObject {\n    @Published var loggedIn : Bool = false\n    @Published var username: String = UserDefaults.standard.githubUsername {\n        didSet {\n            // Update UserDefaults whenever our local value for username is updated.\n            UserDefaults.standard.githubUsername = username\n        }\n    }\n    @Published var token: String = UserDefaults.standard.githubToken {\n        didSet {\n            // Update UserDefaults whenever our local value for token is updated.\n            UserDefaults.standard.githubToken = token\n        }\n    }\n\n    private var cancellableUsername: AnyCancellable?\n    private var cancellableToken: AnyCancellable?\n    init() {\n        // Listen for changes to githubUsername, we need to do this\n        // because the SettingsView changes githubUsername on logout to be empty.\n        cancellableUsername = UserDefaults.standard.publisher(for: \\.githubUsername)\n            .sink(receiveValue: { [weak self] newValue in\n                guard let self = self else { return }\n                if newValue != self.username { // avoid cycling !!\n                    self.username = newValue\n                }\n            })\n        \n        // Listen for changes to githubToken, we need to do this\n        // because the SettingsView changes githubToken on logout to be empty.\n        cancellableToken = UserDefaults.standard.publisher(for: \\.githubToken)\n            .sink(receiveValue: { [weak self] newValue in\n                guard let self = self else { return }\n                if newValue != self.token { // avoid cycling !!\n                    self.token = newValue\n                }\n            })\n        \n        if self.username.isEmpty && !self.token.isEmpty {\n            // We have a token but not a username, let's get the username.\n            getUserName()\n        }\n    }\n    \n    deinit {\n        if let c = cancellableUsername {\n            c.cancel()\n        }\n        if let c = cancellableToken {\n            c.cancel()\n        }\n    }\n    \n    func startDeviceAuth(clientId: String, scope: String) -> (userCode: String, verificationUri: String){\n        let url = URL(string: \"https://github.com/login/device/code\")!\n        \n        var request = URLRequest(url: url)\n        let parameters: [String: Any] = [\"client_id\": clientId, \"scope\": scope]\n        request.httpBody = parameters.percentEncoded()\n        request.httpMethod = \"POST\"\n        \n        let (data,response,error) = URLSession.shared.performSynchronously(request: request)\n        if let error = error {\n            print(\"Error \\(error.localizedDescription)\")\n        } else if let data = data, let response = response as? HTTPURLResponse, response.statusCode == 200 {\n            let str = String(data: data, encoding: .utf8)\n            let params = str?.getParams()\n            let interval = Double(params?[\"interval\"] ?? \"15.0\")!\n            \n            DispatchQueue.global(qos: .background).async {\n                self.pollForAuth(interval: interval * 2, clientId: clientId, deviceCode: params![\"device_code\"]!)\n            }\n\n            return (params![\"user_code\"]!, params![\"verification_uri\"]!)\n        }\n\n        return (\"\", \"\")\n    }\n    \n    func pollForAuth(interval: Double, clientId: String, deviceCode: String) {\n        var count = 0\n        while (count < 20) {\n            sleep(uint32(interval))\n            let pollUrl = URL(string: \"https://github.com/login/oauth/access_token\")!\n            var pollRequest = URLRequest(url: pollUrl)\n            let pollParameters: [String:Any] = [\"client_id\": clientId, \"device_code\": deviceCode, \"grant_type\": \"urn:ietf:params:oauth:grant-type:device_code\"]\n            pollRequest.httpBody = pollParameters.percentEncoded()\n            pollRequest.httpMethod = \"POST\"\n            \n            let (data, response, error) = URLSession.shared.performSynchronously(request: pollRequest)\n            if (error == nil), data != nil, let response = response as? HTTPURLResponse, response.statusCode == 200 {\n                let str = String(data: data!, encoding: .utf8)\n                let pollParams = str?.getParams()\n                if (pollParams![\"access_token\"] != nil) {\n                    DispatchQueue.main.async {\n                        self.token = pollParams![\"access_token\"] ?? \"\"\n                        self.loggedIn = true\n                        self.getUserName()\n                    }\n                    return\n                }\n            }\n            count += 1\n        }\n    }\n    \n    func getUserName() {\n        if token.isEmpty {\n            // If we have an empty token, return early.\n            return\n        }\n        \n        let url = URL(string: \"https://api.github.com/user\")!\n        var req = URLRequest(url: url)\n        req.addValue(\"token \\(token)\", forHTTPHeaderField: \"Authorization\")\n        req.httpMethod = \"GET\"\n        let (data, response, error) = URLSession.shared.performSynchronously(request: req)\n        if (error == nil), data != nil, let response = response as? HTTPURLResponse, response.statusCode == 200 {\n            if let json = try? JSONSerialization.jsonObject(with: data!, options: []) as? [String: Any] {\n                if let login = json[\"login\"] as? String {\n                    DispatchQueue.main.async {\n                        // Set the username.\n                        self.username = login\n                    }\n                }\n            }\n        } else if let response = response as? HTTPURLResponse, response.statusCode == 401 {\n            // Bad credentials, therefore user needs to re-authenticate, so we can set the\n            // token back to an empty string.\n            self.token = \"\"\n        }\n    }\n}\n\nextension URLSession {\n\n    func performSynchronously(request: URLRequest) -> (data: Data?, response: URLResponse?, error: Error?) {\n        let semaphore = DispatchSemaphore(value: 0)\n\n        var data: Data?\n        var response: URLResponse?\n        var error: Error?\n\n        let task = self.dataTask(with: request) {\n            data = $0\n            response = $1\n            error = $2\n            semaphore.signal()\n        }\n\n        task.resume()\n        semaphore.wait()\n\n        return (data, response, error)\n    }\n}\n\nextension String {\n    func getParams() -> [String: String] {\n        var params = [String:String]()\n        let items = self.split(separator: \"&\")\n        for i in items {\n            let kv = i.split(separator: \"=\")\n            let key = kv[0].removingPercentEncoding\n            let value = 1 < kv.count ? kv[1].removingPercentEncoding : \"\"\n            if key != nil && value != nil {\n                params[key!] = value!\n            }\n        }\n\n        return params\n    }\n}\n\nextension Dictionary {\n    func percentEncoded() -> Data? {\n        return map { key, value in\n            let escapedKey = \"\\(key)\".addingPercentEncoding(withAllowedCharacters: .urlQueryValueAllowed) ?? \"\"\n            let escapedValue = \"\\(value)\".addingPercentEncoding(withAllowedCharacters: .urlQueryValueAllowed) ?? \"\"\n            return escapedKey + \"=\" + escapedValue\n        }\n        .joined(separator: \"&\")\n        .data(using: .utf8)\n    }\n}\n\nextension CharacterSet {\n    static let urlQueryValueAllowed: CharacterSet = {\n        let generalDelimitersToEncode = \":#[]@\" // does not include \"?\" or \"/\" due to RFC 3986 - Section 3.4\n        let subDelimitersToEncode = \"!$&'()*+,;=\"\n\n        var allowed = CharacterSet.urlQueryAllowed\n        allowed.remove(charactersIn: \"\\(generalDelimitersToEncode)\\(subDelimitersToEncode)\")\n        return allowed\n    }()\n}\n"
  },
  {
    "path": "mac/keyrace-mac/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>$(DEVELOPMENT_LANGUAGE)</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.0</string>\n\t<key>CFBundleVersion</key>\n\t<string>1</string>\n\t<key>LSMinimumSystemVersion</key>\n\t<string>$(MACOSX_DEPLOYMENT_TARGET)</string>\n\t<key>LSUIElement</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "mac/keyrace-mac/KeyTap.swift",
    "content": "// Created by Nat Friedman on 1/2/21.\n\nimport Accessibility\nimport Cocoa\nimport Combine\nimport Foundation\nimport SwiftUI\n\nfunc formatCount(count: Int) -> NSAttributedString {\n    var str = \"\"\n\n    if (count == 0) {\n        str = \"Waiting for first keystroke...\"\n    } else if (count == 1) {\n        str = \"👍 First key!\"\n    } else {\n        var pfx = \"\"\n        switch (count) {\n        case 1..<500:       pfx = \"👍 \"\n        case 500..<1000:    pfx = \"🏃 \"\n        case 1000..<5000:   pfx = \"💨 \"\n        case 5000..<10000:  pfx = \"🙌 \"\n        case 10000..<20000: pfx = \"🚀 \"\n        case 20000..<30000: pfx = \"🥳 \"\n        case 30000...40000: pfx = \"🔥 \"\n        case 40000...60000: pfx = \"🤯 \"\n        default:\n            pfx = \"\"\n        }\n\n        var sfx = \"\"\n        if (count < 100) {\n            sfx = \" today\"\n        }\n        str = \"\\(pfx)\\(count) keys\\(sfx)\"\n    }\n    \n    // We use a monospaced font here so as the number changes the popover does not get jumpy.\n    let font = NSFont.monospacedSystemFont(ofSize: 13, weight: .regular)\n    let attributes = [NSAttributedString.Key.font: font]\n    return NSAttributedString(string: str, attributes: attributes)\n}\n\nfunc myCGEventCallback(proxy: CGEventTapProxy, type: CGEventType, event: CGEvent, refcon: UnsafeMutableRawPointer?) -> Unmanaged<CGEvent>? {\n    let keyTap = Unmanaged<KeyTap>.fromOpaque(refcon!).takeUnretainedValue()\n\n    if [.keyDown].contains(type) {\n        DispatchQueue.global(qos: .background).async {\n            var char = UniChar()\n            var length = 0\n            event.keyboardGetUnicodeString(maxStringLength: 1, actualStringLength: &length, unicodeString: &char)\n            keyTap.increment(char)\n        }\n        DispatchQueue.main.async {\n            keyTap.appDelegate.statusBarItem.button?.attributedTitle = formatCount(count: keyTap.keycount)\n        }\n    }\n\n    if [.tapDisabledByTimeout].contains(type) {\n        keyTap.appDelegate.statusBarItem.button?.title = \"Lost event tap!\"\n    }\n\n    return Unmanaged.passRetained(event)\n}\n\n// This is an ObservableObject so that the UI can subscribe to updates in players,\n// and we’ll use @Published to send updates whenever the player list changes.\nclass KeyTap: ObservableObject {\n    var appDelegate : AppDelegate\n    var lastDay = -1\n    var timerRunning = false\n    var keyTrapSetup = false\n    var KEYRACE_HOST = \"https://keyrace.app\"\n    \n    // Load values from UserDefaults.\n    var keycount: Int = UserDefaults.standard.keyCount {\n        didSet {\n            // Update UserDefaults whenever our local value for keycount is updated.\n            UserDefaults.standard.keyCount = keycount\n        }\n    }\n    var minutes: [Int] = UserDefaults.standard.minutes {\n        didSet {\n            DispatchQueue.main.async {\n                // Update UserDefaults whenever our local value for minutes is updated.\n                UserDefaults.standard.minutes = self.minutes\n            }\n        }\n    }\n    var keys: [Int] = UserDefaults.standard.keys {\n        didSet {\n            // Update UserDefaults whenever our local value for keys is updated.\n            UserDefaults.standard.keys = keys\n        }\n    }\n    \n    @Published var minutesChart: [Int] = []\n    @Published var hoursChart: [Int] = []\n    @Published var keysChart: [Int] = []\n    @Published var symbolsChart: [Int] = []\n    @Published var keyboardData: [[String]: Int] = [:]\n    @Published var maxKeyboardCount: Int = 0\n    \n    @Published var players: [Player] = []\n    @Published var onlyShowFollows: Bool = UserDefaults.standard.onlyShowFollows\n\n    private var cancellableOnlyShowFollow: AnyCancellable?\n    private var cancellableKeycount: AnyCancellable?\n    init(_ appd: AppDelegate) {\n        self.appDelegate = appd\n        \n        // Listen for changes to onlyShowFollows, we need to do this\n        // because the SettingsView changes onlyShowFollows.\n        cancellableOnlyShowFollow = UserDefaults.standard.publisher(for: \\.onlyShowFollows)\n            .sink(receiveValue: { [weak self] newValue in\n                guard let self = self else { return }\n                if newValue != self.onlyShowFollows { // avoid cycling !!\n                    self.onlyShowFollows = newValue\n                    \n                    // Reload the leaderboard.\n                    self.uploadKeycount()\n                }\n            })\n        \n        // We want to listen for changes to the keycount BUT\n        // we want to use debounce so that we wait until\n        // after a specified time interval elapses between events.\n        // This way we aren't spiking our CPU if someone is typing really fast.\n        // The status bar is updated outside this scope so only do compute heavy loads here.\n        cancellableKeycount = UserDefaults.standard.publisher(for: \\.keyCount)\n            // Wait for a pause in the delivery of events from the upstream publisher.\n            // Only receive elements when the user pauses or stops typing.\n            // When they start typing again, the debounce holds event delivery until the next pause.\n            .debounce(for: .seconds(2), scheduler: DispatchQueue.main)\n            .sink(receiveValue: { [weak self] newValue in\n                guard let self = self else { return }\n                \n                // Update the leaderboard.\n                self.uploadKeycount()\n                // Update the charts.\n                self.updateCharts()\n            })\n    }\n    \n    deinit {\n        if let c = cancellableOnlyShowFollow {\n            c.cancel()\n        }\n        if let c = cancellableKeycount {\n            c.cancel()\n        }\n    }\n\n    func increment(_ keyCode: UInt16) {\n        let date = Date()\n        let calendar = Calendar.current\n\n        // Reset to 0 at midnight\n        let day = calendar.component(.day, from:date)\n        if (lastDay != day) {\n            lastDay = day\n            DispatchQueue.main.async {\n                self.keycount = 0\n            }\n            self.keys = [Int](repeating:0, count:256)\n\n            //  Clears our minutes, leaving the last 20 minutes, and than deletes the rest after 20 minutes\n            minutes.replaceSubrange(0..<1420, with: repeatElement(0, count: 1420))\n            DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(1200), execute: {\n                self.minutes.replaceSubrange(1420..<1440, with: repeatElement(0, count: 20))\n            })\n        }\n\n        DispatchQueue.main.async {\n            self.keycount += 1\n        }\n\n        let hour = calendar.component(.hour, from: date)\n        let minute = calendar.component(.minute, from: date)\n        \n        DispatchQueue.main.async {\n            self.minutes[hour*60 + minute] += 1\n            if self.keys.indices.contains(Int(keyCode)) {\n                self.keys[Int(keyCode)] += 1\n            } else if self.keys.count > keyCode {\n                self.keys[Int(keyCode)] = 0\n            }\n        }\n\n        // Save the keyCountLastUpdated to UserDefaults and set it as now.\n        UserDefaults.standard.keyCountLastUpdated = Date()\n    }\n\n    func updateCharts() {\n        // Update all the charts.\n        updateMinutesChart()\n        updateHoursChart()\n        updateKeyboardData()\n        updateKeysChart()\n        updateSymbolsChart()\n    }\n    \n    func updateMinutesChart() {\n        // Return the last 20 minutes minutely\n        let date = Date()\n        let calendar = Calendar.current\n        let hour = calendar.component(.hour, from: date)\n        let min = calendar.component(.minute, from: date)\n        let currMin = hour*60 + min\n\n        var mins : [Int] = []\n        for i in (0...20).reversed() {\n            currMin - i > 0 ? mins.append(minutes[currMin - i]): mins.append(minutes[1440 + i - (20 - currMin)])\n        }\n        DispatchQueue.main.async {\n            self.minutesChart = mins\n        }\n    }\n\n    func updateHoursChart() {\n        var hours = [Int](repeating: 0, count: 24)\n\n        for i in 0..<minutes.count {\n            hours[i/60] += minutes[i]\n        }\n\n        DispatchQueue.main.async {\n            self.hoursChart = hours\n        }\n    }\n\n    func updateKeysChart() {\n        // Return key press counts for the lowercase alphabet\n        DispatchQueue.main.async {\n            self.keysChart = Array(self.keys[97...97+25])\n        }\n    }\n\n    func updateSymbolsChart() {\n        // Return key press counts for the the numbers\n        DispatchQueue.main.async {\n            self.symbolsChart = Array(self.keys[33...57])\n        }\n    }\n    \n    func updateKeyboardData() {\n        // Iterate over all the keys and count for the keyboard layout.\n        DispatchQueue.main.async {\n            for row in ROWS {\n                for char in row {\n                    // Update the value in our keyboardData dictionary.\n                    self.keyboardData.updateValue(char.getCount(self.keys), forKey: char)\n                }\n            }\n            \n            self.maxKeyboardCount = self.keyboardData.values.max() ?? 0\n        }\n    }\n\n    func uploadKeycount() {\n        if UserDefaults.standard.githubToken.isEmpty {\n            // Token is empty, return early.\n            return\n        }\n\n        var url = URLComponents(string: \"\\(KEYRACE_HOST)/count\")!\n        url.queryItems = [\n            URLQueryItem(name: \"count\", value: \"\\(keycount)\")\n        ]\n        // Add the query to the URL if we are only supposed to show people they follow.\n        if onlyShowFollows {\n            url.queryItems?.append(URLQueryItem(name: \"only_follows\", value: \"1\"))\n        }\n\n        var request = URLRequest(url: url.url!)\n        request.addValue(\"Bearer \\(UserDefaults.standard.githubToken)\", forHTTPHeaderField: \"Authorization\")\n\n        let task = URLSession.shared.dataTask(with: request) { data, response, error in\n            guard let data = data,                            // is there data\n                let response = response as? HTTPURLResponse,  // is there HTTP response\n                (200 ..< 300) ~= response.statusCode,         // is statusCode 2XX\n                error == nil else {                           // was there no error, otherwise ...\n                    print(\"Error uploading count \\(error!)\")\n                    return\n            }\n\n            // Parse the JSON data for the leaderboard.\n            let decoder = JSONDecoder()\n            if let leaderboard = try? decoder.decode([Player].self, from: data) {\n                DispatchQueue.main.sync {\n                    // Set the players in Leaderboard, so we can auto update the UI.\n                    self.players = leaderboard\n                }\n            }\n        }\n        task.resume()\n    }\n\n    func setupKeyTap() {\n        if (keyTrapSetup) {\n            return\n        }\n\n        loadCount()\n\n        let eventMask = (1 << CGEventType.keyDown.rawValue)\n        let refcon = UnsafeMutableRawPointer(Unmanaged.passUnretained(self).toOpaque())\n        guard let eventTap = CGEvent.tapCreate(tap: .cgSessionEventTap,\n                                              place: .headInsertEventTap,\n                                              options: .defaultTap,\n                                              eventsOfInterest: CGEventMask(eventMask),\n                                              callback: myCGEventCallback,\n                                              userInfo: refcon) else {\n            NSLog(\"failed to create event tap; quitting\")\n            exit(1)\n        }\n        keyTrapSetup = true\n\n        let runLoopSource = CFMachPortCreateRunLoopSource(kCFAllocatorDefault, eventTap, 0)\n        CFRunLoopAddSource(CFRunLoopGetCurrent(), runLoopSource, .commonModes)\n        CGEvent.tapEnable(tap: eventTap, enable: true)\n\n        appDelegate.statusBarItem.button?.attributedTitle = formatCount(count: keycount)\n\n        // Load the initial leaderboard.\n        uploadKeycount()\n        // Load the initial charts.\n        updateCharts()\n    }\n\n    func loadCount() {\n        // Get today's date info.\n        let date = Date()\n        let calendar = Calendar.current\n        let day = calendar.component(.day, from: date)\n        let month = calendar.component(.month, from:date)\n\n        // Set the count back to zero if the UserDefault for keyCountLastUpdated is not from today.\n        // Get the date the keycount was last updated.\n        let keyCountLastUpdated = UserDefaults.standard.keyCountLastUpdated\n        lastDay = calendar.component(.day, from: keyCountLastUpdated)\n        let lastMonth = calendar.component(.month, from: keyCountLastUpdated)\n        \n        if (lastDay != day || lastMonth != month) {\n            // Reset the keycount back to 0.\n            // In the case of success, it would have already loaded from UserDefaults.\n            keycount = 0\n            // Set the minutes back to 0.\n            minutes = [Int](repeating:0, count:1440)\n            // Set the keys back to 0.\n            keys = [Int](repeating:0, count:256)\n        }\n    }\n\n    func getAccessibilityPermissions() {\n        let options = [kAXTrustedCheckOptionPrompt.takeUnretainedValue() as NSString: true]\n        var isAppTrusted = AXIsProcessTrustedWithOptions(options as CFDictionary?)\n        if (isAppTrusted) {\n            self.setupKeyTap()\n            return\n        }\n\n        // Wait for the user to give us permission\n        if (timerRunning) { return }\n        self.timerRunning = true\n        Timer.scheduledTimer(withTimeInterval: 1.0, repeats: true) { timer in\n            let options = [kAXTrustedCheckOptionPrompt.takeUnretainedValue() as NSString: false]\n            isAppTrusted = AXIsProcessTrustedWithOptions(options as CFDictionary?)\n            if (isAppTrusted) {\n                self.setupKeyTap()\n                timer.invalidate()\n                self.timerRunning = false\n            }\n        }\n    }\n}\n"
  },
  {
    "path": "mac/keyrace-mac/KeyboardView.swift",
    "content": "//\n//  KeyboardView.swift\n//  keyrace-mac\n//\n//  Created by Jessie Frazelle on 2/21/21.\n//\n\nimport Foundation\nimport SwiftUI\n\nlet ROWS: [[[String]]] = [\n    [[\"\", \"\"]],\n    [[\"~\", \"`\"],\n    [\"!\", \"1\"],\n    [\"@\", \"2\"],\n    [\"#\", \"3\"],\n    [\"$\", \"4\"],\n    [\"%\", \"5\"],\n    [\"^\", \"6\"],\n    [\"&\", \"7\"],\n    [\"*\", \"8\"],\n    [\"(\", \"9\"],\n    [\")\", \"0\"],\n    [\"_\", \"-\"],\n    [\"+\", \"=\"]],\n    [[\"Q\", \"q\"],\n    [\"W\", \"w\"],\n    [\"E\", \"e\"],\n    [\"R\", \"r\"],\n    [\"T\", \"t\"],\n    [\"Y\", \"y\"],\n    [\"U\", \"u\"],\n    [\"I\", \"i\"],\n    [\"O\", \"o\"],\n    [\"P\", \"p\"],\n    [\"{\", \"[\"],\n    [\"}\", \"]\"],\n    [\"|\", \"\\\\\"]],\n    [[\"A\", \"a\"],\n    [\"S\", \"s\"],\n    [\"D\", \"d\"],\n    [\"F\", \"f\"],\n    [\"G\", \"g\"],\n    [\"H\", \"h\"],\n    [\"J\", \"j\"],\n    [\"K\", \"k\"],\n    [\"L\", \"l\"],\n    [\":\", \";\"],\n    [\"\\\"\", \"'\"]],\n    [[\"Z\", \"z\"],\n    [\"X\", \"x\"],\n    [\"C\", \"c\"],\n    [\"V\", \"v\"],\n    [\"B\", \"b\"],\n    [\"N\", \"n\"],\n    [\"M\", \"m\"],\n    [\"<\", \",\"],\n    [\">\", \".\"],\n    [\"?\", \"/\"]],\n    [[\"\", \"\"]]]\n\nstruct KeyboardView: View {\n    @ObservedObject var keyTap: KeyTap\n    \n    var body: some View {\n        VStack(alignment: .center, spacing: 0) {\n            ForEach(\n                ROWS.indexed(),\n                id: \\.1.self\n            ) { index, row in\n                Section {\n                    HStack(alignment: .center, spacing: 0) {\n                        ForEach(\n                            row,\n                            id: \\.self\n                        ) { char in\n                            KeyView(keyTap: keyTap, char: char, index: index)\n                                .padding(.top, 1.4)\n                                .padding(.leading, -3.1)\n                                .padding(.trailing, -3.1)\n                                .padding(.bottom, 1.4)\n                        }\n                    }\n                    .frame(width: 344.4, height: 20.7, alignment: index.getRowAlignment())\n                    .padding(.top, 1.4)\n                    .padding(.bottom, 1.4)\n                    .padding(.leading, 0)\n                    .padding(.trailing, 0)\n                }\n            }\n        }\n        .background(\n            Image(\"magic-keyboard\")\n                .resizable()\n                .frame(width: 350, height: 144)\n        )\n        .padding(.leading, 8)\n        .padding(.trailing, 8)\n    }\n}\n\nstruct KeyView: View {\n    var keyTap: KeyTap\n    var char: [String]\n    var index: Int\n    @State private var hover = false\n    \n    var body: some View {\n        if index == 0 || index == 5 {\n            // These are empty purposely so that the heatmapped keys are aligned perfectly.\n            Rectangle()\n                .frame(width: 20.7, height: 20.7)\n                .hidden()\n        } else {\n            ZStack {\n                Circle()\n                    .fill(char.getFill(keyTap))\n                    .frame(width: 30, height: 30)\n                    .overlay(\n                        // We stick this inside another overlay so you can't be overed over 2 keys at once.\n                        Rectangle()\n                            .fill(Color.clear)\n                            .frame(width: 20.7, height: 20.7)\n                            .overlay(\n                                RoundedRectangle(cornerSize: CGSize(width: 3, height: 3), style: .continuous)\n                                    .fill(Color.black.opacity(0.7))\n                                    .overlay(\n                                        Text(String(format: \"%d (%.2f%%)\",\n                                                    keyTap.keyboardData[char]!,\n                                                    char.getPercentage(keyTap)))\n                                            .font(.system(size: 8, weight: .medium, design: .monospaced))\n                                            .foregroundColor(Color.white)\n                                            .padding(2)\n                                            .lineLimit(1)\n                                            )\n                                    // FIXME: Somehow make the width of the tooltip the width of the text.\n                                    .frame(width: 90, height: 16, alignment: .center)\n                                    .shadow(radius: 2)\n                                    .offset(x: 0, y: -20)\n                                    .opacity(hover ? 1 : 0)\n                                    .fixedSize(horizontal: false, vertical: /*@START_MENU_TOKEN@*/true/*@END_MENU_TOKEN@*/)\n                                    .zIndex(1)\n                            )\n                            // FIXME: if you hover too fast things get stuck\n                            .onHover { hover in\n                                self.hover = hover\n                            }\n                    )\n            }\n            .zIndex(0)\n            .frame(width: 30, height: 30)\n        }\n    }\n}\n\nextension String {\n    func toUnicodeScalarInt() -> Int {\n        let scalar = Unicode.Scalar.init(self as String) ?? Unicode.Scalar.init(0 as UInt8)\n        return Int(scalar.value)\n    }\n}\n\nextension Int {\n    func getRowAlignment() -> Alignment {\n        if self == 1 {\n            return .leading\n        } else if self == 2 {\n            return .trailing\n        }\n        return .center\n    }\n}\n\nextension Array where Element == String  {\n    func getCount(_ keys: [Int]) -> Int {\n        var count = 0\n        \n        for char in self {\n            if char.isEmpty {\n                continue\n            }\n            \n            // Get the count for this key and return it.\n            count += keys[char.toUnicodeScalarInt()]\n        }\n        \n        return count\n    }\n    \n    func getPercentage(_ keyTap: KeyTap) -> Double {\n        return (Double(keyTap.keyboardData[self]!) / Double(keyTap.keycount)) * 100\n    }\n    \n    func getFillPercentage(_ keyTap: KeyTap) -> Double {\n        return (Double(keyTap.keyboardData[self]!) / Double(keyTap.maxKeyboardCount)) * 100\n    }\n    \n    func getFill(_ keyTap: KeyTap) -> RadialGradient {\n        let percentage = self.getFillPercentage(keyTap)\n        \n        // Calculate the color and the percentage.\n        var color = Color.green\n        var opacity = percentage / 33\n        if percentage > 33 && percentage < 66 {\n            color = Color.yellow\n            opacity = percentage / 66\n        } else if percentage >= 66 {\n            color = Color.red\n            opacity = percentage / 100\n        }\n        \n        return RadialGradient(\n            gradient: Gradient(colors: [color.opacity(opacity), color.opacity(opacity / 1.6), color.opacity(0.1)]),\n            center: .center,\n            startRadius: 0,\n            endRadius: 15)\n    }\n}\n"
  },
  {
    "path": "mac/keyrace-mac/LeaderboardView.swift",
    "content": "//\n//  LeaderboardView.swift\n//  keyrace-mac\n//\n//  Created by Jessie Frazelle on 2/20/21.\n//\n\nimport Foundation\nimport SwiftUI\n\nstruct Player: Codable {\n    var username: String\n    var gravatar: String\n    var score: Int\n}\n\nextension Player {\n    // Turn the URL for the player's avatar into an NSImage.\n    func avatar() -> NSImage {\n        let url = URLComponents(string: self.gravatar)?.url\n        if let data = try? Data.init(contentsOf: url!, options: []) {\n            let avatar = NSImage(data: data)!\n            avatar.size = NSSizeFromString(\"100,100\")\n            return avatar\n        }\n        return NSImage()\n    }\n    \n    // Get the score string for the player\n    func scoreString(index: Int) -> String {\n        var format = \"%d\"\n        if index == 0 {\n            format += \" 🎉\"\n        }\n        return String(format: format, self.score)\n    }\n    \n    // Get the link to the player's GitHub profile.\n    func profileLink() -> String {\n        return \"https://github.com/\" + self.username\n    }\n}\n\nstruct LeaderboardView: View {\n    @ObservedObject var keyTap: KeyTap\n    @ObservedObject var gitHub: GitHub\n    @Environment(\\.openURL) var openURL\n    \n    var body: some View {\n        // This allows the leaderboard view to watch for when we login and update.\n        if !gitHub.username.isEmpty {\n            List(keyTap.players.indexed(), id: \\.1.username) { index, player in\n                // Create the profile image in a button so it is a link.\n                Button(action: {\n                    openProfile(player)\n                }) {\n                    Image(nsImage: player.avatar())\n                        .resizable()\n                        .scaledToFit()\n                        .frame(width: 25, height: 25, alignment: .center)\n                        .clipShape(Circle())\n                        .shadow(radius: 2)\n                }\n                .buttonStyle(PlainButtonStyle())\n                .padding(EdgeInsets(top: 2.5, leading: 2.5, bottom: 2.5, trailing: 0))\n        \n                // Print the username as a link.\n                Link(\"@\" + player.username,\n                     destination: URL(string: \"https://github.com/\" + player.username)!)\n                    .foregroundColor(/*@START_MENU_TOKEN@*/.blue/*@END_MENU_TOKEN@*/)\n                    .font(.system(size: 12, weight: .medium, design: .monospaced))\n                    .frame(width: 100, alignment: .leading)\n            \n                // Print the score.\n                Text(player.scoreString(index: index))\n                    .font(.system(size: 12, design: .monospaced))\n            }\n            .listStyle(SidebarListStyle())\n            .frame(width: 350, height: (40 * CGFloat(keyTap.players.count)) + 20, alignment: .topLeading)\n        }\n    }\n    \n    func openProfile(_ player: Player) {\n        guard let url = URL(string: player.profileLink()) else {\n            return\n        }\n        openURL(url)\n    }\n}\n\n// Make it so we can index our list of players for the leaderboard view.\nstruct IndexedCollection<Base: RandomAccessCollection>: RandomAccessCollection {\n    typealias Index = Base.Index\n    typealias Element = (index: Index, element: Base.Element)\n\n    let base: Base\n    var startIndex: Index { base.startIndex }\n\n   // corrected typo: base.endIndex, instead of base.startIndex\n    var endIndex: Index { base.endIndex }\n\n    func index(after i: Index) -> Index {\n        base.index(after: i)\n    }\n\n    func index(before i: Index) -> Index {\n        base.index(before: i)\n    }\n\n    func index(_ i: Index, offsetBy distance: Int) -> Index {\n        base.index(i, offsetBy: distance)\n    }\n\n    subscript(position: Index) -> Element {\n        (index: position, element: base[position])\n    }\n}\n\nextension RandomAccessCollection {\n    func indexed() -> IndexedCollection<Self> {\n        IndexedCollection(base: self)\n    }\n}\n"
  },
  {
    "path": "mac/keyrace-mac/MenuView.swift",
    "content": "//\n//  MenuView.swift\n//  keyrace-mac\n//\n//  Created by Jessie Frazelle on 2/21/21.\n//\n\nimport Foundation\nimport SwiftUI\n\n\n"
  },
  {
    "path": "mac/keyrace-mac/Preview Content/Preview Assets.xcassets/Contents.json",
    "content": "{\n  \"info\" : {\n    \"author\" : \"xcode\",\n    \"version\" : 1\n  }\n}\n"
  },
  {
    "path": "mac/keyrace-mac/SettingsView.swift",
    "content": "//\n//  SettingsView.swift\n//  keyrace-mac\n//\n//  Created by Jessie Frazelle on 2/16/21.\n//\n\nimport Foundation\nimport SwiftUI\n\nstruct SettingsView: View {\n    @ObservedObject var keyTap: KeyTap\n    @ObservedObject var gitHub: GitHub\n    @AppStorage(\"onlyShowFollows\") private var onlyShowFollows = UserDefaults.standard.onlyShowFollows\n\n    var body: some View {\n        Menu(\"Settings\") {\n            if !gitHub.username.isEmpty {\n                Toggle(\"Only show users I follow\", isOn: $onlyShowFollows)\n                Text(\"Logged in as @\" + gitHub.username)\n                Button(\"Logout\") {\n                    logout()\n                }\n            } else {\n                Button(\"Login with GitHub\") {\n                    login()\n                }\n            }\n            \n            Button(\"Quit\") {\n                quit()\n            }\n        }\n        .menuStyle(BorderlessButtonMenuStyle())\n        .padding(.leading, 10)\n        .padding(.trailing, 10)\n        .padding(.bottom, 10)\n    }\n    \n    func logout() {\n        // Nullify the githubUsername and githubToken.\n        UserDefaults.standard.githubUsername = \"\"\n        UserDefaults.standard.githubToken = \"\"\n    }\n    \n    func login() {\n        if !gitHub.token.isEmpty {\n            gitHub.getUserName()\n            return\n        }\n\n        let alert = NSAlert()\n        alert.messageText = \"Login with GitHub\"\n\n        DispatchQueue.global(qos: .background).async {\n            let (userCode, verificationUri) = self.gitHub.startDeviceAuth(clientId: \"a945f87ad537bfddb109\", scope: \"\")\n            \n            if (userCode == \"\") {\n                alert.informativeText = \"Could not contact GitHub. Try again later.\"\n                alert.addButton(withTitle: \"Ok\")\n                alert.runModal()\n                return\n            }\n            \n            DispatchQueue.main.async {\n                alert.informativeText = \"Your GitHub device code is \\(userCode)\"\n                alert.addButton(withTitle: \"Copy device code and open browser\")\n                alert.addButton(withTitle: \"Cancel\")\n\n                let modalResult = alert.runModal()\n                switch modalResult {\n                case .alertFirstButtonReturn:\n                    let pasteboard = NSPasteboard.general\n                    pasteboard.clearContents()\n                    pasteboard.setString(userCode, forType: .string)\n                    let url = URL(string: verificationUri)!\n                    NSWorkspace.shared.open(url)\n                default:\n                    return\n                }\n            }\n        }\n    }\n    \n    func quit() {\n        print(\"quitting\")\n        exit(0)\n    }\n}\n"
  },
  {
    "path": "mac/keyrace-mac/TypingChart.swift",
    "content": "//\n//  MenubarItem.swift\n//  keyrace-mac\n//\n//  Created by Nat Friedman on 1/3/21.\n//\n\nimport Charts\nimport Cocoa\nimport Foundation\nimport SwiftUI\n\nclass ChartValueFormatter: NSObject, IValueFormatter {\n    func stringForValue(_ value: Double, entry: ChartDataEntry, dataSetIndex: Int, viewPortHandler: ViewPortHandler?) -> String {\n        if value == 0.0 {\n            return \"\"\n        }\n\n        return String(Int(value))\n    }\n}\n\npublic class MinAxisValueFormatter: NSObject, IAxisValueFormatter {\n    public func stringForValue(_ value: Double, axis: AxisBase?) -> String {\n        let date = Date()\n        let calendar = Calendar.current\n        let min = calendar.component(.minute, from: date)\n        \n        var m = min - 20 + Int(value)\n        if m < 0 {\n            m += 60\n        }\n        \n        return String(format: \":%02d\", m)\n    }\n}\n\npublic class HourAxisValueFormatter: NSObject, IAxisValueFormatter {\n    public func stringForValue(_ value: Double, axis: AxisBase?) -> String {\n        if (value == 12.0) {\n            return \"noon\"\n        }\n        if (value == 0.0) {\n            return \"12am\"\n        }\n\n        var str = \"\\(Int(value)%12)\"\n        \n        if (value < 12.0) {\n            str += \"am\"\n        } else {\n            str += \"pm\"\n        }\n        \n        return str\n    }\n}\n\npublic class KeyAxisValueFormatter: NSObject, IAxisValueFormatter {\n    public func stringForValue(_ value: Double, axis: AxisBase?) -> String {\n        return \"\\(Character(UnicodeScalar(Int(97 + value))!))\" // 97 is 'a'\n    }\n}\n\npublic class SymbolAxisValueFormatter: NSObject, IAxisValueFormatter {\n    public func stringForValue(_ value: Double, axis: AxisBase?) -> String {\n        return \"\\(Character(UnicodeScalar(Int(33 + value))!))\" // 33 is '!'\n    }\n}\n\nstruct TypingChart: NSViewRepresentable {\n    // TypingChart accepts a typingCount and a color.\n    var typingCount: [Int]\n    var color: [Int] = [255, 255, 0]\n    var granularity: Double\n    var valueFormatter: IAxisValueFormatter\n    var labelCount: Int\n    \n    \n    func makeNSView(context: Context) -> BarChartView {\n        // Create the typing chart.\n        let chart = BarChartView()\n        \n        chart.legend.enabled = false\n        chart.leftAxis.drawGridLinesEnabled = false\n        chart.leftAxis.drawAxisLineEnabled = false\n        chart.leftAxis.drawLabelsEnabled = false\n        chart.rightAxis.drawGridLinesEnabled = false\n        chart.rightAxis.drawAxisLineEnabled = false\n        chart.rightAxis.drawLabelsEnabled = false\n        chart.xAxis.drawGridLinesEnabled = false\n        chart.xAxis.drawAxisLineEnabled = false\n        chart.xAxis.drawLabelsEnabled = false\n        \n        chart.xAxis.labelPosition = .bottom\n        chart.xAxis.labelFont = .systemFont(ofSize: 7.0)\n        chart.xAxis.drawLabelsEnabled = true\n        chart.xAxis.granularity = granularity\n        if labelCount > 0 {\n            chart.xAxis.labelCount = labelCount\n        }\n        chart.xAxis.valueFormatter = valueFormatter\n        \n        chart.data = addData()\n        \n        return chart\n    }\n    \n    func updateNSView(_ nsView: BarChartView, context: Context) {\n        // When the typing count changes, change the view.\n        nsView.data = addData()\n    }\n    \n    typealias NSViewType = BarChartView\n    \n    func addData() -> BarChartData {\n        let yse1 = typingCount.enumerated().map { x, y in return BarChartDataEntry(x: Double(x), y: Double(y)) }\n\n        let data = BarChartData()\n        let ds1 = BarChartDataSet(entries: yse1, label: \"Hello\")\n        ds1.colors = [NSUIColor.init(srgbRed: CGFloat(color[0])/255.0, green: CGFloat(color[1])/255.0, blue: CGFloat(color[2])/255.0, alpha: 1.0)]\n        data.addDataSet(ds1)\n        data.barWidth = Double(0.5)\n\n        data.setDrawValues(true)\n        let valueFormatter = ChartValueFormatter()\n        data.setValueFormatter(valueFormatter)\n\n        return data\n    }\n}\n"
  },
  {
    "path": "mac/keyrace-mac/UserDefaults.swift",
    "content": "//\n//  UserDefaults.swift\n//  keyrace-mac\n//\n//  Created by Jessie Frazelle on 2/21/21.\n//\n\nimport Foundation\n\n// Store data in UserDefaults.\n// This allows us to more easily access it later.\nextension UserDefaults {\n    @objc dynamic var onlyShowFollows: Bool {\n        get { bool(forKey: \"onlyShowFollows\") }\n        set { setValue(newValue, forKey: \"onlyShowFollows\") }\n    }\n    \n    @objc dynamic var githubToken: String {\n        get { string(forKey: \"githubToken\") ?? \"\" }\n        set { setValue(newValue, forKey: \"githubToken\") }\n    }\n    \n    @objc dynamic var githubUsername: String {\n        get { string(forKey: \"githubUsername\") ?? \"\" }\n        set { setValue(newValue, forKey: \"githubUsername\") }\n    }\n    \n    @objc dynamic var keyCount: Int {\n        get { integer(forKey: \"keyCount\") }\n        set { setValue(newValue, forKey: \"keyCount\") }\n    }\n    \n    @objc dynamic var keyCountLastUpdated: Date {\n        get { (object(forKey: \"keyCountLastUpdated\") as? Date) ?? Date() }\n        set { setValue(newValue, forKey: \"keyCountLastUpdated\") }\n    }\n    \n    @objc dynamic var minutes: [Int] {\n        get { (object(forKey: \"minutes\") as? [Int]) ?? [Int](repeating:0, count:1440) }\n        set { setValue(newValue, forKey: \"minutes\") }\n    }\n    \n    @objc dynamic var keys: [Int] {\n        get { (object(forKey: \"keys\") as? [Int]) ?? [Int](repeating:0, count:256) }\n        set { setValue(newValue, forKey: \"keys\") }\n    }\n}\n"
  },
  {
    "path": "mac/keyrace-mac/keyrace_mac.entitlements",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict/>\n</plist>\n"
  },
  {
    "path": "mac/keyrace-mac.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 51;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t4137815825A19C3A004AD04D /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4137815725A19C3A004AD04D /* AppDelegate.swift */; };\n\t\t4137815C25A19C3B004AD04D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4137815B25A19C3B004AD04D /* Assets.xcassets */; };\n\t\t4137815F25A19C3B004AD04D /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4137815E25A19C3B004AD04D /* Preview Assets.xcassets */; };\n\t\t4137816B25A1A9CF004AD04D /* GitHub.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4137816A25A1A9CF004AD04D /* GitHub.swift */; };\n\t\t4137817425A2289B004AD04D /* TypingChart.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4137817325A2289B004AD04D /* TypingChart.swift */; };\n\t\t4D4E330D25E067AC009ADC9E /* KeyTap.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4D4E330C25E067AC009ADC9E /* KeyTap.swift */; };\n\t\t6B8B0D3B6D788EB8DF76B1B0 /* Pods_keyrace_mac.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FAEA1BAC8E02E82DEC480300 /* Pods_keyrace_mac.framework */; };\n\t\tC80F0EEE25E373A80001D70E /* KeyboardView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C80F0EED25E373A80001D70E /* KeyboardView.swift */; };\n\t\tC84C4B6C25E1C51100BD0454 /* LeaderboardView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C84C4B6B25E1C51100BD0454 /* LeaderboardView.swift */; };\n\t\tC861C49625E2D16800C7EC25 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C861C49525E2D16800C7EC25 /* ContentView.swift */; };\n\t\tC861C54D25E3281800C7EC25 /* UserDefaults.swift in Sources */ = {isa = PBXBuildFile; fileRef = C861C54C25E3281800C7EC25 /* UserDefaults.swift */; };\n\t\tC8F2DC5F25DC742900502D4E /* SettingsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C8F2DC5E25DC742900502D4E /* SettingsView.swift */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXFileReference section */\n\t\t103D5CE5A38C840CB5D3C88E /* Pods-keyrace-mac.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = \"Pods-keyrace-mac.debug.xcconfig\"; path = \"Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac.debug.xcconfig\"; sourceTree = \"<group>\"; };\n\t\t4137815725A19C3A004AD04D /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = \"<group>\"; };\n\t\t4137815B25A19C3B004AD04D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = \"<group>\"; };\n\t\t4137815E25A19C3B004AD04D /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = \"Preview Assets.xcassets\"; sourceTree = \"<group>\"; };\n\t\t4137816025A19C3B004AD04D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t4137816125A19C3B004AD04D /* keyrace_mac.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = keyrace_mac.entitlements; sourceTree = \"<group>\"; };\n\t\t4137816A25A1A9CF004AD04D /* GitHub.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GitHub.swift; sourceTree = \"<group>\"; };\n\t\t4137817325A2289B004AD04D /* TypingChart.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TypingChart.swift; sourceTree = \"<group>\"; };\n\t\t4D4E330C25E067AC009ADC9E /* KeyTap.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KeyTap.swift; sourceTree = \"<group>\"; };\n\t\t5DFFC29E2F953C16F277CF7F /* Pods-keyrace-mac.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = \"Pods-keyrace-mac.release.xcconfig\"; path = \"Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac.release.xcconfig\"; sourceTree = \"<group>\"; };\n\t\tC80F0EED25E373A80001D70E /* KeyboardView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KeyboardView.swift; sourceTree = \"<group>\"; };\n\t\tC84C4B6B25E1C51100BD0454 /* LeaderboardView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LeaderboardView.swift; sourceTree = \"<group>\"; };\n\t\tC861C49525E2D16800C7EC25 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = \"<group>\"; };\n\t\tC861C54C25E3281800C7EC25 /* UserDefaults.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserDefaults.swift; sourceTree = \"<group>\"; };\n\t\tC8F2DC5A25DB4BDD00502D4E /* keyrace-mac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = \"keyrace-mac.app\"; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\tC8F2DC5E25DC742900502D4E /* SettingsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SettingsView.swift; sourceTree = \"<group>\"; };\n\t\tFAEA1BAC8E02E82DEC480300 /* Pods_keyrace_mac.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_keyrace_mac.framework; sourceTree = BUILT_PRODUCTS_DIR; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t4137815125A19C3A004AD04D /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t6B8B0D3B6D788EB8DF76B1B0 /* Pods_keyrace_mac.framework in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t25445D3A793350B261DE3920 /* Pods */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t103D5CE5A38C840CB5D3C88E /* Pods-keyrace-mac.debug.xcconfig */,\n\t\t\t\t5DFFC29E2F953C16F277CF7F /* Pods-keyrace-mac.release.xcconfig */,\n\t\t\t);\n\t\t\tpath = Pods;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t4137814B25A19C3A004AD04D = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t4137815625A19C3A004AD04D /* keyrace-mac */,\n\t\t\t\t25445D3A793350B261DE3920 /* Pods */,\n\t\t\t\tD2C6C3213E73F95725FE9429 /* Frameworks */,\n\t\t\t\tC8F2DC5A25DB4BDD00502D4E /* keyrace-mac.app */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t4137815625A19C3A004AD04D /* keyrace-mac */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t4137815725A19C3A004AD04D /* AppDelegate.swift */,\n\t\t\t\t4137816A25A1A9CF004AD04D /* GitHub.swift */,\n\t\t\t\t4D4E330C25E067AC009ADC9E /* KeyTap.swift */,\n\t\t\t\t4137817325A2289B004AD04D /* TypingChart.swift */,\n\t\t\t\tC861C49525E2D16800C7EC25 /* ContentView.swift */,\n\t\t\t\tC8F2DC5E25DC742900502D4E /* SettingsView.swift */,\n\t\t\t\tC861C54C25E3281800C7EC25 /* UserDefaults.swift */,\n\t\t\t\tC80F0EED25E373A80001D70E /* KeyboardView.swift */,\n\t\t\t\tC84C4B6B25E1C51100BD0454 /* LeaderboardView.swift */,\n\t\t\t\t4137815B25A19C3B004AD04D /* Assets.xcassets */,\n\t\t\t\t4137816025A19C3B004AD04D /* Info.plist */,\n\t\t\t\t4137816125A19C3B004AD04D /* keyrace_mac.entitlements */,\n\t\t\t\t4137815D25A19C3B004AD04D /* Preview Content */,\n\t\t\t);\n\t\t\tpath = \"keyrace-mac\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t4137815D25A19C3B004AD04D /* Preview Content */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t4137815E25A19C3B004AD04D /* Preview Assets.xcassets */,\n\t\t\t);\n\t\t\tpath = \"Preview Content\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\tD2C6C3213E73F95725FE9429 /* Frameworks */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\tFAEA1BAC8E02E82DEC480300 /* Pods_keyrace_mac.framework */,\n\t\t\t);\n\t\t\tname = Frameworks;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\t4137815325A19C3A004AD04D /* keyrace-mac */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 4137816425A19C3B004AD04D /* Build configuration list for PBXNativeTarget \"keyrace-mac\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t70AB7FEB63AFF33F2101D09C /* [CP] Check Pods Manifest.lock */,\n\t\t\t\t4137815025A19C3A004AD04D /* Sources */,\n\t\t\t\t4137815125A19C3A004AD04D /* Frameworks */,\n\t\t\t\t4137815225A19C3A004AD04D /* Resources */,\n\t\t\t\tF92F6671D7CE5BB4FB92FCCB /* [CP] Embed Pods Frameworks */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = \"keyrace-mac\";\n\t\t\tproductName = \"keyrace-mac\";\n\t\t\tproductReference = C8F2DC5A25DB4BDD00502D4E /* keyrace-mac.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\t4137814C25A19C3A004AD04D /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastSwiftUpdateCheck = 1230;\n\t\t\t\tLastUpgradeCheck = 1240;\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\t4137815325A19C3A004AD04D = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 12.3;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = 4137814F25A19C3A004AD04D /* Build configuration list for PBXProject \"keyrace-mac\" */;\n\t\t\tcompatibilityVersion = \"Xcode 9.3\";\n\t\t\tdevelopmentRegion = en;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = 4137814B25A19C3A004AD04D;\n\t\t\tproductRefGroup = 4137814B25A19C3A004AD04D;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t4137815325A19C3A004AD04D /* keyrace-mac */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\t4137815225A19C3A004AD04D /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t4137815F25A19C3B004AD04D /* Preview Assets.xcassets in Resources */,\n\t\t\t\t4137815C25A19C3B004AD04D /* Assets.xcassets in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXShellScriptBuildPhase section */\n\t\t70AB7FEB63AFF33F2101D09C /* [CP] Check Pods Manifest.lock */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputFileListPaths = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t\t\"${PODS_PODFILE_DIR_PATH}/Podfile.lock\",\n\t\t\t\t\"${PODS_ROOT}/Manifest.lock\",\n\t\t\t);\n\t\t\tname = \"[CP] Check Pods Manifest.lock\";\n\t\t\toutputFileListPaths = (\n\t\t\t);\n\t\t\toutputPaths = (\n\t\t\t\t\"$(DERIVED_FILE_DIR)/Pods-keyrace-mac-checkManifestLockResult.txt\",\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"diff \\\"${PODS_PODFILE_DIR_PATH}/Podfile.lock\\\" \\\"${PODS_ROOT}/Manifest.lock\\\" > /dev/null\\nif [ $? != 0 ] ; then\\n    # print error to STDERR\\n    echo \\\"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\\\" >&2\\n    exit 1\\nfi\\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\\necho \\\"SUCCESS\\\" > \\\"${SCRIPT_OUTPUT_FILE_0}\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n\t\tF92F6671D7CE5BB4FB92FCCB /* [CP] Embed Pods Frameworks */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputFileListPaths = (\n\t\t\t\t\"${PODS_ROOT}/Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac-frameworks-${CONFIGURATION}-input-files.xcfilelist\",\n\t\t\t);\n\t\t\tname = \"[CP] Embed Pods Frameworks\";\n\t\t\toutputFileListPaths = (\n\t\t\t\t\"${PODS_ROOT}/Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac-frameworks-${CONFIGURATION}-output-files.xcfilelist\",\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"\\\"${PODS_ROOT}/Target Support Files/Pods-keyrace-mac/Pods-keyrace-mac-frameworks.sh\\\"\\n\";\n\t\t\tshowEnvVarsInLog = 0;\n\t\t};\n/* End PBXShellScriptBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t4137815025A19C3A004AD04D /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t4137816B25A1A9CF004AD04D /* GitHub.swift in Sources */,\n\t\t\t\t4D4E330D25E067AC009ADC9E /* KeyTap.swift in Sources */,\n\t\t\t\tC861C49625E2D16800C7EC25 /* ContentView.swift in Sources */,\n\t\t\t\t4137817425A2289B004AD04D /* TypingChart.swift in Sources */,\n\t\t\t\tC80F0EEE25E373A80001D70E /* KeyboardView.swift in Sources */,\n\t\t\t\tC861C54D25E3281800C7EC25 /* UserDefaults.swift in Sources */,\n\t\t\t\tC84C4B6C25E1C51100BD0454 /* LeaderboardView.swift in Sources */,\n\t\t\t\tC8F2DC5F25DC742900502D4E /* SettingsView.swift in Sources */,\n\t\t\t\t4137815825A19C3A004AD04D /* AppDelegate.swift in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin XCBuildConfiguration section */\n\t\t4137816225A19C3B004AD04D /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++14\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_WEAK = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_DOCUMENTATION_COMMENTS = YES;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu11;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 11.1;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;\n\t\t\t\tMTL_FAST_MATH = YES;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = macosx;\n\t\t\t\tSWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-Onone\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t4137816325A19C3B004AD04D /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++14\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_WEAK = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_DOCUMENTATION_COMMENTS = YES;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu11;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 11.1;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tMTL_FAST_MATH = YES;\n\t\t\t\tSDKROOT = macosx;\n\t\t\t\tSWIFT_COMPILATION_MODE = wholemodule;\n\t\t\t\tSWIFT_OPTIMIZATION_LEVEL = \"-O\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t4137816525A19C3B004AD04D /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 103D5CE5A38C840CB5D3C88E /* Pods-keyrace-mac.debug.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;\n\t\t\t\tCODE_SIGN_ENTITLEMENTS = \"keyrace-mac/keyrace_mac.entitlements\";\n\t\t\t\tCODE_SIGN_IDENTITY = \"-\";\n\t\t\t\tCODE_SIGN_STYLE = Automatic;\n\t\t\t\tCOMBINE_HIDPI_IMAGES = YES;\n\t\t\t\tDEVELOPMENT_ASSET_PATHS = \"\\\"keyrace-mac/Preview Content\\\"\";\n\t\t\t\tENABLE_PREVIEWS = YES;\n\t\t\t\tINFOPLIST_FILE = \"keyrace-mac/Info.plist\";\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/../Frameworks\",\n\t\t\t\t);\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 11.0;\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = org.nat.keyrace;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t4137816625A19C3B004AD04D /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbaseConfigurationReference = 5DFFC29E2F953C16F277CF7F /* Pods-keyrace-mac.release.xcconfig */;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;\n\t\t\t\tCODE_SIGN_ENTITLEMENTS = \"keyrace-mac/keyrace_mac.entitlements\";\n\t\t\t\tCODE_SIGN_IDENTITY = \"-\";\n\t\t\t\tCODE_SIGN_STYLE = Automatic;\n\t\t\t\tCOMBINE_HIDPI_IMAGES = YES;\n\t\t\t\tDEVELOPMENT_ASSET_PATHS = \"\\\"keyrace-mac/Preview Content\\\"\";\n\t\t\t\tENABLE_PREVIEWS = YES;\n\t\t\t\tINFOPLIST_FILE = \"keyrace-mac/Info.plist\";\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = (\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t\t\"@executable_path/../Frameworks\",\n\t\t\t\t);\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 11.0;\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = org.nat.keyrace;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t\tSWIFT_VERSION = 5.0;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t4137814F25A19C3A004AD04D /* Build configuration list for PBXProject \"keyrace-mac\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t4137816225A19C3B004AD04D /* Debug */,\n\t\t\t\t4137816325A19C3B004AD04D /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t4137816425A19C3B004AD04D /* Build configuration list for PBXNativeTarget \"keyrace-mac\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t4137816525A19C3B004AD04D /* Debug */,\n\t\t\t\t4137816625A19C3B004AD04D /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = 4137814C25A19C3A004AD04D /* Project object */;\n}\n"
  },
  {
    "path": "mac/keyrace-mac.xcodeproj/project.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"self:\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "mac/keyrace-mac.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>IDEDidComputeMac32BitWarning</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "mac/keyrace-mac.xcodeproj/xcshareddata/xcschemes/keyrace-mac.xcscheme",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Scheme\n   LastUpgradeVersion = \"1240\"\n   version = \"1.3\">\n   <BuildAction\n      parallelizeBuildables = \"YES\"\n      buildImplicitDependencies = \"YES\">\n      <BuildActionEntries>\n         <BuildActionEntry\n            buildForTesting = \"YES\"\n            buildForRunning = \"YES\"\n            buildForProfiling = \"YES\"\n            buildForArchiving = \"YES\"\n            buildForAnalyzing = \"YES\">\n            <BuildableReference\n               BuildableIdentifier = \"primary\"\n               BlueprintIdentifier = \"4137815325A19C3A004AD04D\"\n               BuildableName = \"keyrace-mac.app\"\n               BlueprintName = \"keyrace-mac\"\n               ReferencedContainer = \"container:keyrace-mac.xcodeproj\">\n            </BuildableReference>\n         </BuildActionEntry>\n      </BuildActionEntries>\n   </BuildAction>\n   <TestAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\">\n      <Testables>\n      </Testables>\n   </TestAction>\n   <LaunchAction\n      buildConfiguration = \"Debug\"\n      selectedDebuggerIdentifier = \"Xcode.DebuggerFoundation.Debugger.LLDB\"\n      selectedLauncherIdentifier = \"Xcode.DebuggerFoundation.Launcher.LLDB\"\n      launchStyle = \"0\"\n      useCustomWorkingDirectory = \"NO\"\n      ignoresPersistentStateOnLaunch = \"NO\"\n      debugDocumentVersioning = \"YES\"\n      debugServiceExtension = \"internal\"\n      allowLocationSimulation = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"4137815325A19C3A004AD04D\"\n            BuildableName = \"keyrace-mac.app\"\n            BlueprintName = \"keyrace-mac\"\n            ReferencedContainer = \"container:keyrace-mac.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </LaunchAction>\n   <ProfileAction\n      buildConfiguration = \"Release\"\n      shouldUseLaunchSchemeArgsEnv = \"YES\"\n      savedToolIdentifier = \"\"\n      useCustomWorkingDirectory = \"NO\"\n      debugDocumentVersioning = \"YES\">\n      <BuildableProductRunnable\n         runnableDebuggingMode = \"0\">\n         <BuildableReference\n            BuildableIdentifier = \"primary\"\n            BlueprintIdentifier = \"4137815325A19C3A004AD04D\"\n            BuildableName = \"keyrace-mac.app\"\n            BlueprintName = \"keyrace-mac\"\n            ReferencedContainer = \"container:keyrace-mac.xcodeproj\">\n         </BuildableReference>\n      </BuildableProductRunnable>\n   </ProfileAction>\n   <AnalyzeAction\n      buildConfiguration = \"Debug\">\n   </AnalyzeAction>\n   <ArchiveAction\n      buildConfiguration = \"Release\"\n      revealArchiveInOrganizer = \"YES\">\n   </ArchiveAction>\n</Scheme>\n"
  },
  {
    "path": "mac/keyrace-mac.xcworkspace/contents.xcworkspacedata",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<Workspace\n   version = \"1.0\">\n   <FileRef\n      location = \"group:keyrace-mac.xcodeproj\">\n   </FileRef>\n   <FileRef\n      location = \"group:Pods/Pods.xcodeproj\">\n   </FileRef>\n</Workspace>\n"
  },
  {
    "path": "mac/keyrace-mac.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>IDEDidComputeMac32BitWarning</key>\n\t<true/>\n</dict>\n</plist>\n"
  },
  {
    "path": "server.go",
    "content": "package main\n\nimport (\n\t\"database/sql\"\n\t\"encoding/json\"\n\t\"fmt\"\n\t\"net/http\"\n\t\"os\"\n\t\"os/signal\"\n\t\"path/filepath\"\n\t\"strconv\"\n\t\"strings\"\n\t\"syscall\"\n\t\"time\"\n\n\thttp_logrus \"github.com/improbable-eng/go-httpwares/logging/logrus\"\n\t\"github.com/improbable-eng/go-httpwares/logging/logrus/ctxlogrus\"\n\t_ \"github.com/mattn/go-sqlite3\"\n\t\"github.com/sirupsen/logrus\"\n\t\"golang.org/x/crypto/acme/autocert\"\n)\n\n// Global variable for the database connection.\nvar db *sql.DB\n\ntype PlayerScore struct {\n\tUsername string `json:\"username\"`\n\tGravatar string `json:\"gravatar\"`\n\tScore    int64  `json:\"score\"`\n}\n\ntype Player struct {\n\tID       int64    `json:\"id\"`\n\tUsername string   `json:\"username\"`\n\tGravatar string   `json:\"gravatar\"`\n\tToken    string   `json:\"token\"`\n\tScore    int64    `json:\"score\"`\n\tFollows  []string `json:\"follows\"`\n}\n\nfunc (p *Player) upsertInDB() error {\n\ttx, err := db.Begin()\n\tif err != nil {\n\t\t// Return early.\n\t\treturn fmt.Errorf(\"beginning transaction in db failed: %v\", err)\n\t}\n\n\t// Create the statement.\n\tvar stmt *sql.Stmt\n\tif len(p.Username) == 0 {\n\t\tstmt, err = tx.Prepare(fmt.Sprintf(\n\t\t\t`INSERT INTO players(token,score,last_updated)\nVALUES('%s',%d,datetime('now'))\nON CONFLICT(token) DO UPDATE SET score=excluded.score, last_updated=excluded.last_updated`,\n\t\t\tp.Token, p.Score))\n\t\tif err != nil {\n\t\t\ttx.Rollback()\n\t\t\treturn fmt.Errorf(\"upserting player with token %q in db failed: %v\", p.Token, err)\n\t\t}\n\t} else {\n\t\t// If we have a username, upsert that as well.\n\t\tstmt, err = tx.Prepare(fmt.Sprintf(\n\t\t\t`INSERT INTO players(token,username,gravatar,score,last_updated,follows)\nVALUES('%s','%s','%s',%d,datetime('now'),'%s')\nON CONFLICT(username) DO UPDATE SET token=excluded.token, score=excluded.score, last_updated=excluded.last_updated, follows=excluded.follows, gravatar=excluded.gravatar`,\n\t\t\tp.Token, p.Username, p.Gravatar, p.Score, strings.Join(p.Follows, \",\")))\n\t\tif err != nil {\n\t\t\ttx.Rollback()\n\t\t\treturn fmt.Errorf(\"upserting player with token %q | username %q in db failed: %v\", p.Token, p.Username, err)\n\t\t}\n\t}\n\tdefer stmt.Close()\n\n\t// Execute the statement.\n\tif _, err := stmt.Exec(); err != nil {\n\t\ttx.Rollback()\n\t\treturn fmt.Errorf(\"executing upsert player with token %q in db failed: %v\", p.Token, err)\n\t}\n\n\t// Commit the transaction.\n\tif err := tx.Commit(); err != nil {\n\t\ttx.Rollback()\n\t\treturn fmt.Errorf(\"commiting the transaction for player with token %q in db failed: %v\", p.Token, err)\n\t}\n\n\t// If we sucessfully updated the player and their username is still empty,\n\t// let's get their data from the database.\n\tif len(p.Username) == 0 {\n\t\tvar follows string\n\t\tif err := db.QueryRow(\"SELECT id,username,follows,gravatar FROM players WHERE token=?\", p.Token).Scan(&p.ID, &p.Username, &follows, &p.Gravatar); err != nil {\n\t\t\treturn fmt.Errorf(\"querying the db for player with token %q failed: %v\", p.Token, err)\n\t\t}\n\n\t\tp.Follows = strings.Split(follows, \",\")\n\t}\n\n\tlogrus.WithFields(logrus.Fields{\n\t\t\"username\": p.Username,\n\t\t\"token\":    p.Token,\n\t\t\"score\":    p.Score,\n\t\t\"gravatar\": p.Gravatar,\n\t}).Info(\"updated player in database\")\n\treturn nil\n}\n\nfunc count(w http.ResponseWriter, req *http.Request) {\n\tctxlogrus.Extract(req.Context()).Info(\"started request\")\n\n\t// Get the token from the authorization header.\n\tghToken := req.Header.Get(\"Authorization\")\n\tsplitToken := strings.Split(ghToken, \"Bearer \")\n\t// Make sure we actually have a token.\n\tif len(splitToken) <= 1 {\n\t\tlogrus.Warn(\"invalid GitHub token\")\n\t\treturn\n\t}\n\tghToken = splitToken[1]\n\n\tcount, err := strconv.ParseInt(req.URL.Query()[\"count\"][0], 10, 64)\n\tif err != nil {\n\t\tlogrus.Warnf(\"error parsing count: %v\", err)\n\t\treturn\n\t}\n\n\tonlyFollows := false\n\tonlyFollowsStr := req.URL.Query()[\"only_follows\"]\n\tif len(onlyFollowsStr) > 0 {\n\t\tonlyFollows = true\n\t}\n\n\t// Create the player.\n\tplayer := Player{\n\t\tID:       0,\n\t\tUsername: \"\",\n\t\tToken:    ghToken,\n\t\tScore:    count,\n\t\tFollows:  []string{},\n\t}\n\t// Try to update the player in the database with just their token.\n\tif err := player.upsertInDB(); err != nil {\n\t\t// Let's get their username from GitHub since likely we\n\t\t// didn't already have it in the database.\n\t\tplayer.setGitHubDataFromToken()\n\t\tif err := player.upsertInDB(); err != nil {\n\t\t\tlogrus.Warn(err)\n\t\t\treturn\n\t\t}\n\t}\n\n\t// If they don't have a gravatar, try and get it.\n\tif len(player.Gravatar) == 0 {\n\t\tplayer.setGitHubDataFromToken()\n\t\tplayer.upsertInDB()\n\t}\n\n\t// Make sure we have a Username, this should never be empty.\n\tif len(player.Username) == 0 {\n\t\tlogrus.Warn(\"github username cannot be empty\")\n\t\treturn\n\t}\n\n\t// Print the user's leaderboard back out.\n\tleaderboard := player.getLeaderboard(onlyFollows)\n\tfmt.Fprintf(w, \"%s\", leaderboard)\n}\n\nfunc (p Player) getLeaderboard(onlyFollows bool) string {\n\tleaderboard := []PlayerScore{}\n\n\t// localtime depends on the localtime of the server.\n\tquery := fmt.Sprintf(`SELECT username,score,gravatar FROM players WHERE date(last_updated,'localtime') = date('now','localtime') AND ( shadow_ban = 0 OR username = '%s') ORDER BY score DESC LIMIT 20`, p.Username)\n\tif onlyFollows {\n\t\t// Make sure we get ourselves in the leaderboard as well.\n\t\tfilter := \"\"\n\t\tfor _, f := range p.Follows {\n\t\t\tfilter += fmt.Sprintf(\",'%s'\", f)\n\t\t}\n\t\tfilter = strings.TrimPrefix(filter, \",\")\n\n\t\tquery = fmt.Sprintf(`SELECT username,score,gravatar FROM players WHERE date(last_updated,'localtime') = date('now','localtime') AND (( username IN (%s) AND shadow_ban = 0 ) OR username = '%s') ORDER BY score DESC LIMIT 20`, filter, p.Username)\n\t}\n\trows, err := db.Query(query)\n\tif err != nil {\n\t\tlogrus.WithFields(logrus.Fields{\n\t\t\t\"query\": query,\n\t\t}).Warnf(\"querying the db for leaderboard for player with username %q failed: %v\", p.Username, err)\n\t}\n\tdefer rows.Close()\n\n\tfor rows.Next() {\n\t\tplayer := PlayerScore{}\n\t\tif err := rows.Scan(&player.Username, &player.Score, &player.Gravatar); err != nil {\n\t\t\tlogrus.Warnf(\"failed to scan row for player for leaderboard: %v\", err)\n\t\t}\n\n\t\tif len(player.Username) > 0 {\n\t\t\t// Add it to our array.\n\t\t\tleaderboard = append(leaderboard, player)\n\t\t}\n\t}\n\n\tstr, err := json.Marshal(leaderboard)\n\tif err != nil {\n\t\tlogrus.Warnf(\"marshaling the leaderboard to JSON failed: %v\", err)\n\t}\n\n\treturn string(str)\n}\n\nfunc removeFromSlice(slice []Player, index int) []Player {\n\treturn append(slice[:index], slice[index+1:]...)\n}\n\n// getStringParam makes sure a string parameter passed to the server fits the constraints.\n// If not it will return an empty string.\nfunc getStringParam(req *http.Request, key string) string {\n\tkeys, ok := req.URL.Query()[key]\n\tif !ok || len(keys[0]) < 1 || len(keys[0]) >= 50 {\n\t\treturn \"\"\n\t}\n\treturn keys[0]\n}\n\n// humanTime returns a human-readable approximation of a time.Time\n// (eg. \"About a minute\", \"4 hours ago\", etc.).\n// This is lovingly inspired by:\n// https://github.com/docker/go-units/blob/master/duration.go\nfunc humanTime(t time.Time) string {\n\td := time.Since(t)\n\tif seconds := int(d.Seconds()); seconds < 1 {\n\t\treturn \"Less than a second\"\n\t} else if seconds == 1 {\n\t\treturn \"1 second\"\n\t} else if seconds < 60 {\n\t\treturn fmt.Sprintf(\"%d seconds\", seconds)\n\t} else if minutes := int(d.Minutes()); minutes == 1 {\n\t\treturn \"About a minute\"\n\t} else if minutes < 60 {\n\t\treturn fmt.Sprintf(\"%d minutes\", minutes)\n\t} else if hours := int(d.Hours() + 0.5); hours == 1 {\n\t\treturn \"About an hour\"\n\t} else if hours < 48 {\n\t\treturn fmt.Sprintf(\"%d hours\", hours)\n\t} else if hours < 24*7*2 {\n\t\treturn fmt.Sprintf(\"%d days\", hours/24)\n\t} else if hours < 24*30*2 {\n\t\treturn fmt.Sprintf(\"%d weeks\", hours/24/7)\n\t} else if hours < 24*365*2 {\n\t\treturn fmt.Sprintf(\"%d months\", hours/24/30)\n\t}\n\treturn fmt.Sprintf(\"%d years\", int(d.Hours())/24/365)\n}\n\ntype GitHubUser struct {\n\tID       int64  `json:\"id\"`\n\tLogin    string `json:\"login\"`\n\tName     string `json:\"name\"`\n\tGravatar string `json:\"avatar_url\"`\n}\n\nfunc (p *Player) setGitHubDataFromToken() {\n\tresp := p.doGitHubCall(\"user\")\n\tvar user GitHubUser\n\tif err := json.NewDecoder(resp.Body).Decode(&user); err != nil {\n\t\tlogrus.Warnf(\"decoding the response from the github api failed: %v\", err)\n\t}\n\n\t// Set the username.\n\tp.Username = user.Login\n\tp.Gravatar = user.Gravatar\n\n\t// Get who the user follows.\n\tresp = p.doGitHubCall(\"user/following\")\n\tvar users []GitHubUser\n\tif err := json.NewDecoder(resp.Body).Decode(&users); err != nil {\n\t\tlogrus.Warnf(\"decoding the response from the github api failed: %v\", err)\n\t}\n\n\t// Set the follows.\n\tp.Follows = []string{}\n\tfor _, u := range users {\n\t\tp.Follows = append(p.Follows, u.Login)\n\t}\n\n}\n\nfunc (p Player) doGitHubCall(endpoint string) *http.Response {\n\treq, err := http.NewRequest(\"GET\", fmt.Sprintf(\"https://api.github.com/%s\", endpoint), nil)\n\n\t// add authorization header to the req\n\treq.Header.Add(\"Authorization\", \"token \"+p.Token)\n\treq.Header.Add(\"Accept\", \"application/vnd.github.v3+json\")\n\n\t// Send req using http Client\n\tclient := &http.Client{}\n\tresp, err := client.Do(req)\n\tif err != nil {\n\t\tlogrus.WithFields(logrus.Fields{\n\t\t\t\"endpoint\": endpoint,\n\t\t}).Warnf(\"response from the github API errored: %v\", err)\n\t}\n\n\treturn resp\n}\n\nfunc main() {\n\t// On ^C, or SIGTERM gracefully handle exit.\n\tsignals := make(chan os.Signal, 1)\n\tsignal.Notify(signals, os.Interrupt, syscall.SIGTERM)\n\tgo func() {\n\t\tfor sig := range signals {\n\t\t\t// Close the database.\n\t\t\tdb.Close()\n\t\t\tlogrus.Infof(\"received signal %s, exiting\", sig.String())\n\t\t\tos.Exit(0)\n\t\t}\n\t}()\n\n\t// Get the current working directory.\n\tcurdir, err := os.Getwd()\n\tif err != nil {\n\t\tlogrus.Fatalf(\"getting the current working directory failed: %v\", err)\n\t}\n\n\t// Open the database.\n\tdbPath := filepath.Join(curdir, \"keyrace.db?mode=rwc&_busy_timeout=10000\")\n\tdb, err = sql.Open(\"sqlite3\", dbPath)\n\tif err != nil {\n\t\tlogrus.WithFields(logrus.Fields{\n\t\t\t\"path\": dbPath,\n\t\t}).Fatalf(\"opening the database failed: %v\", err)\n\t}\n\tlogrus.WithFields(logrus.Fields{\n\t\t\"path\": dbPath,\n\t}).Info(\"opened database\")\n\n\t// Create our table.\n\tcreateTableStatement := `\n\tCREATE TABLE IF NOT EXISTS players (\n\t\tid INTEGER NOT NULL PRIMARY KEY,\n\t\tusername TEXT NOT NULL UNIQUE,\n\t\ttoken TEXT NOT NULL UNIQUE,\n\t\tscore INTEGER NOT NULL DEFAULT 0,\n\t\tlast_updated TEXT NOT NULL,\n\t\tfollows TEXT NOT NULL\n\t);\n\tALTER TABLE players ADD COLUMN shadow_ban INTEGER NOT NULL DEFAULT 0;\n\tALTER TABLE players ADD COLUMN gravatar TEXT NOT NULL DEFAULT '';\n\t`\n\t_, err = db.Exec(createTableStatement)\n\tif err != nil {\n\t\tlogrus.Warnf(\"creating/updating the sqlite table failed: %v -> %s\", err, createTableStatement)\n\t\t// We only warn, since likely it just couldn't do the migrations.\n\t}\n\tlogrus.WithFields(logrus.Fields{\n\t\t\"table\": \"players\",\n\t}).Info(\"created database table if it didn't exist\")\n\n\tmux := http.NewServeMux()\n\tmux.HandleFunc(\"/count\", count)\n\tmux.HandleFunc(\"/\", func(w http.ResponseWriter, r *http.Request) {\n\t\thttp.Redirect(w, r, \"https://github.com/nat/keyrace\", 301)\n\t})\n\n\t// Setup the logger.\n\tmuxLogger := http_logrus.Middleware(logrus.WithField(\"type\", \"request\"))(mux)\n\n\t// TODO: skip this if in DEV mode, maybe set an env variable.\n\t// We need to generate the certificate.\n\tdomain := \"keyrace.app\"\n\tlogrus.Infof(\"Server is listening at https://%s..\", domain)\n\tlogrus.Fatal(http.Serve(autocert.NewListener(domain), muxLogger))\n}\n"
  }
]