diff --git a/.github/logo.svg b/.github/logo.svg new file mode 100644 index 000000000..e928e786c --- /dev/null +++ b/.github/logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 96996c5fa..818925eb1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -46,7 +46,7 @@ matrix: go: 1.13.x script: - go build --ldflags="$(go run buildscripts/gen-ldflags.go)" -o %GOPATH%\bin\minio.exe - - CGO_ENABLED=1 go test -v --timeout 20m ./... + - go test -v --timeout 20m ./... before_script: # Add an IPv6 config - see the corresponding Travis issue diff --git a/CREDITS b/CREDITS index 4f7b41593..b7289f45b 100644 --- a/CREDITS +++ b/CREDITS @@ -4895,6 +4895,214 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ================================================================ +github.com/google/gofuzz +https://github.com/google/gofuzz +---------------------------------------------------------------- + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +================================================================ + github.com/google/martian https://github.com/google/martian ---------------------------------------------------------------- @@ -11242,6 +11450,33 @@ SOFTWARE. ================================================================ +github.com/minio/cli +https://github.com/minio/cli +---------------------------------------------------------------- +MIT License + +Copyright (c) 2016 Jeremy Saenz & Contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +================================================================ + github.com/minio/dsync https://github.com/minio/dsync ---------------------------------------------------------------- @@ -12338,8 +12573,8 @@ https://github.com/minio/mc ================================================================ -github.com/minio/minio-go -https://github.com/minio/minio-go +github.com/minio/mc +https://github.com/minio/mc ---------------------------------------------------------------- Apache License @@ -12546,8 +12781,8 @@ https://github.com/minio/minio-go ================================================================ -github.com/minio/minio-go/v6 -https://github.com/minio/minio-go/v6 +github.com/minio/minio-go +https://github.com/minio/minio-go ---------------------------------------------------------------- Apache License @@ -16691,6 +16926,37 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ================================================================ +github.com/pkg/xattr +https://github.com/pkg/xattr +---------------------------------------------------------------- +Copyright (c) 2012 Dave Cheney. All rights reserved. +Copyright (c) 2014 Kuba Podgórski. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +================================================================ + github.com/pmezard/go-difflib https://github.com/pmezard/go-difflib ---------------------------------------------------------------- @@ -16724,6 +16990,32 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ================================================================ +github.com/posener/complete +https://github.com/posener/complete +---------------------------------------------------------------- +The MIT License + +Copyright (c) 2017 Eyal Posener + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +================================================================ + github.com/prometheus/client_golang https://github.com/prometheus/client_golang ---------------------------------------------------------------- @@ -18286,6 +18578,40 @@ https://github.com/soheilhy/cmux ================================================================ +github.com/spf13/pflag +https://github.com/spf13/pflag +---------------------------------------------------------------- +Copyright (c) 2012 Alex Ogier. All rights reserved. +Copyright (c) 2012 The Go Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +================================================================ + github.com/streadway/amqp https://github.com/streadway/amqp ---------------------------------------------------------------- @@ -20057,6 +20383,70 @@ Redistribution and use in source and binary forms, with or without modification, THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ================================================================ +gopkg.in/h2non/filetype.v1 +https://gopkg.in/h2non/filetype.v1 +---------------------------------------------------------------- +The MIT License + +Copyright (c) Tomas Aparicio + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +================================================================ + +gopkg.in/inf.v0 +https://gopkg.in/inf.v0 +---------------------------------------------------------------- +Copyright (c) 2012 Péter Surányi. Portions Copyright (c) 2009 The Go +Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +================================================================ + gopkg.in/ini.v1 https://gopkg.in/ini.v1 ---------------------------------------------------------------- @@ -21540,3 +21930,464 @@ https://gopkg.in/yaml.v2 ================================================================ +k8s.io/apimachinery +https://k8s.io/apimachinery +---------------------------------------------------------------- + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +================================================================ + +k8s.io/klog +https://k8s.io/klog +---------------------------------------------------------------- +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and +distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright +owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities +that control, are controlled by, or are under common control with that entity. +For the purposes of this definition, "control" means (i) the power, direct or +indirect, to cause the direction or management of such entity, whether by +contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the +outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising +permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including +but not limited to software source code, documentation source, and configuration +files. + +"Object" form shall mean any form resulting from mechanical transformation or +translation of a Source form, including but not limited to compiled object code, +generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made +available under the License, as indicated by a copyright notice that is included +in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that +is based on (or derived from) the Work and for which the editorial revisions, +annotations, elaborations, or other modifications represent, as a whole, an +original work of authorship. For the purposes of this License, Derivative Works +shall not include works that remain separable from, or merely link (or bind by +name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version +of the Work and any modifications or additions to that Work or Derivative Works +thereof, that is intentionally submitted to Licensor for inclusion in the Work +by the copyright owner or by an individual or Legal Entity authorized to submit +on behalf of the copyright owner. For the purposes of this definition, +"submitted" means any form of electronic, verbal, or written communication sent +to the Licensor or its representatives, including but not limited to +communication on electronic mailing lists, source code control systems, and +issue tracking systems that are managed by, or on behalf of, the Licensor for +the purpose of discussing and improving the Work, but excluding communication +that is conspicuously marked or otherwise designated in writing by the copyright +owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf +of whom a Contribution has been received by Licensor and subsequently +incorporated within the Work. + +2. Grant of Copyright License. + +Subject to the terms and conditions of this License, each Contributor hereby +grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, +irrevocable copyright license to reproduce, prepare Derivative Works of, +publicly display, publicly perform, sublicense, and distribute the Work and such +Derivative Works in Source or Object form. + +3. Grant of Patent License. + +Subject to the terms and conditions of this License, each Contributor hereby +grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, +irrevocable (except as stated in this section) patent license to make, have +made, use, offer to sell, sell, import, and otherwise transfer the Work, where +such license applies only to those patent claims licensable by such Contributor +that are necessarily infringed by their Contribution(s) alone or by combination +of their Contribution(s) with the Work to which such Contribution(s) was +submitted. If You institute patent litigation against any entity (including a +cross-claim or counterclaim in a lawsuit) alleging that the Work or a +Contribution incorporated within the Work constitutes direct or contributory +patent infringement, then any patent licenses granted to You under this License +for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. + +You may reproduce and distribute copies of the Work or Derivative Works thereof +in any medium, with or without modifications, and in Source or Object form, +provided that You meet the following conditions: + +You must give any other recipients of the Work or Derivative Works a copy of +this License; and +You must cause any modified files to carry prominent notices stating that You +changed the files; and +You must retain, in the Source form of any Derivative Works that You distribute, +all copyright, patent, trademark, and attribution notices from the Source form +of the Work, excluding those notices that do not pertain to any part of the +Derivative Works; and +If the Work includes a "NOTICE" text file as part of its distribution, then any +Derivative Works that You distribute must include a readable copy of the +attribution notices contained within such NOTICE file, excluding those notices +that do not pertain to any part of the Derivative Works, in at least one of the +following places: within a NOTICE text file distributed as part of the +Derivative Works; within the Source form or documentation, if provided along +with the Derivative Works; or, within a display generated by the Derivative +Works, if and wherever such third-party notices normally appear. The contents of +the NOTICE file are for informational purposes only and do not modify the +License. You may add Your own attribution notices within Derivative Works that +You distribute, alongside or as an addendum to the NOTICE text from the Work, +provided that such additional attribution notices cannot be construed as +modifying the License. +You may add Your own copyright statement to Your modifications and may provide +additional or different license terms and conditions for use, reproduction, or +distribution of Your modifications, or for any such Derivative Works as a whole, +provided Your use, reproduction, and distribution of the Work otherwise complies +with the conditions stated in this License. + +5. Submission of Contributions. + +Unless You explicitly state otherwise, any Contribution intentionally submitted +for inclusion in the Work by You to the Licensor shall be under the terms and +conditions of this License, without any additional terms or conditions. +Notwithstanding the above, nothing herein shall supersede or modify the terms of +any separate license agreement you may have executed with Licensor regarding +such Contributions. + +6. Trademarks. + +This License does not grant permission to use the trade names, trademarks, +service marks, or product names of the Licensor, except as required for +reasonable and customary use in describing the origin of the Work and +reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. + +Unless required by applicable law or agreed to in writing, Licensor provides the +Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, +including, without limitation, any warranties or conditions of TITLE, +NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are +solely responsible for determining the appropriateness of using or +redistributing the Work and assume any risks associated with Your exercise of +permissions under this License. + +8. Limitation of Liability. + +In no event and under no legal theory, whether in tort (including negligence), +contract, or otherwise, unless required by applicable law (such as deliberate +and grossly negligent acts) or agreed to in writing, shall any Contributor be +liable to You for damages, including any direct, indirect, special, incidental, +or consequential damages of any character arising as a result of this License or +out of the use or inability to use the Work (including but not limited to +damages for loss of goodwill, work stoppage, computer failure or malfunction, or +any and all other commercial damages or losses), even if such Contributor has +been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. + +While redistributing the Work or Derivative Works thereof, You may choose to +offer, and charge a fee for, acceptance of support, warranty, indemnity, or +other liability obligations and/or rights consistent with this License. However, +in accepting such obligations, You may act only on Your own behalf and on Your +sole responsibility, not on behalf of any other Contributor, and only if You +agree to indemnify, defend, and hold each Contributor harmless for any liability +incurred by, or claims asserted against, such Contributor by reason of your +accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work + +To apply the Apache License to your work, attach the following boilerplate +notice, with the fields enclosed by brackets "[]" replaced with your own +identifying information. (Don't include the brackets!) The text should be +enclosed in the appropriate comment syntax for the file format. We also +recommend that a file or class name and description of purpose be included on +the same "printed page" as the copyright notice for easier identification within +third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +================================================================ + +sigs.k8s.io/yaml +https://sigs.k8s.io/yaml +---------------------------------------------------------------- +The MIT License (MIT) + +Copyright (c) 2014 Sam Ghods + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +Copyright (c) 2012 The Go Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +================================================================ + diff --git a/Dockerfile b/Dockerfile index 4b5f817c9..029434e26 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ FROM alpine:3.9 ENV MINIO_UPDATE off ENV MINIO_ACCESS_KEY_FILE=access_key \ MINIO_SECRET_KEY_FILE=secret_key \ - MINIO_SSE_MASTER_KEY_FILE=sse_master_key + MINIO_KMS_MASTER_KEY_FILE=kms_master_key EXPOSE 9000 diff --git a/Dockerfile.dev b/Dockerfile.dev index 950b27e75..64950aca4 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -8,7 +8,7 @@ COPY minio /usr/bin/ ENV MINIO_UPDATE off ENV MINIO_ACCESS_KEY_FILE=access_key \ MINIO_SECRET_KEY_FILE=secret_key \ - MINIO_SSE_MASTER_KEY_FILE=sse_master_key + MINIO_KMS_MASTER_KEY_FILE=kms_master_key RUN \ apk add --no-cache ca-certificates 'curl>7.61.0' 'su-exec>=0.2' && \ diff --git a/Dockerfile.release b/Dockerfile.release index 5b65d92d5..b415acca0 100644 --- a/Dockerfile.release +++ b/Dockerfile.release @@ -17,7 +17,7 @@ COPY dockerscripts/docker-entrypoint.sh /usr/bin/ ENV MINIO_UPDATE off ENV MINIO_ACCESS_KEY_FILE=access_key \ MINIO_SECRET_KEY_FILE=secret_key \ - MINIO_SSE_MASTER_KEY_FILE=sse_master_key + MINIO_KMS_MASTER_KEY_FILE=kms_master_key RUN \ apk add --no-cache ca-certificates 'curl>7.61.0' 'su-exec>=0.2' && \ diff --git a/README.md b/README.md index 1fec7a9bf..d4dc72327 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,12 @@ # MinIO Quickstart Guide [![Slack](https://slack.min.io/slack?type=svg)](https://slack.min.io) [![Go Report Card](https://goreportcard.com/badge/minio/minio)](https://goreportcard.com/report/minio/minio) [![Docker Pulls](https://img.shields.io/docker/pulls/minio/minio.svg?maxAge=604800)](https://hub.docker.com/r/minio/minio/) -MinIO is an object storage server released under Apache License v2.0. It is compatible[1] with Amazon S3 cloud storage service. It is best suited for storing unstructured data such as photos, videos, log files, backups and container / VM images. Size of an object can range from a few KBs to a maximum of 5TB. +[![MinIO](.github/logo.svg)](https://min.io) + +MinIO is an object storage server released under Apache License v2.0. It is compatible with Amazon S3 cloud storage service. It is best suited for storing unstructured data such as photos, videos, log files, backups and container / VM images. Size of an object can range from a few KBs to a maximum of 5TB. MinIO server is light enough to be bundled with the application stack, similar to NodeJS, Redis and MySQL. -[1] MinIO in its default mode is faster and does not calculate MD5Sum unless passed by client. This may lead to incompatibility with some S3 clients like s3ql that heavily depend on MD5Sum. For such applications start MinIO with `--compat` option. -```sh -minio --compat server /data -``` - ## Docker Container ### Stable ``` @@ -22,7 +19,7 @@ docker run -p 9000:9000 minio/minio server /data docker pull minio/minio:edge docker run -p 9000:9000 minio/minio:edge server /data ``` -Note: Docker will not display the autogenerated keys unless you start the container with the `-it`(interactive TTY) argument. Generally, it is not recommended to use autogenerated keys with containers. Please visit MinIO Docker quickstart guide for more information [here](https://docs.min.io/docs/minio-docker-quickstart-guide) +Note: Docker will not display the default keys unless you start the container with the `-it`(interactive TTY) argument. Generally, it is not recommended to use default keys with containers. Please visit MinIO Docker quickstart guide for more information [here](https://docs.min.io/docs/minio-docker-quickstart-guide) ## macOS ### Homebrew @@ -189,5 +186,11 @@ mc admin update ## Contribute to MinIO Project Please follow MinIO [Contributor's Guide](https://github.com/minio/minio/blob/master/CONTRIBUTING.md) +## Caveats +MinIO in its default mode doesn't use MD5Sum checkums of incoming streams unless requested by the client in `Content-Md5` header for validation. This may lead to incompatibility with rare S3 clients like `s3ql` which unfortunately do not set `Content-Md5` but depend on hex MD5Sum for the stream to be calculated by the server. MinIO considers this as a bug in `s3ql` and should be fixed on the client side because MD5Sum is a poor way to checksum and validate the authenticity of the objects. Although MinIO provides a workaround until client applications are fixed use `--compat` option instead to start the server. +```sh +./minio --compat server /data +``` + ## License [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fminio%2Fminio.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fminio%2Fminio?ref=badge_large) diff --git a/browser/app/js/App.js b/browser/app/js/App.js index 6a263de63..647cf9c9f 100644 --- a/browser/app/js/App.js +++ b/browser/app/js/App.js @@ -18,11 +18,13 @@ import React from "react" import { Route, Switch, Redirect } from "react-router-dom" import Browser from "./browser/Browser" import Login from "./browser/Login" +import OpenIDLogin from "./browser/OpenIDLogin" import web from "./web" export const App = () => { return ( + diff --git a/browser/app/js/browser/AboutModal.js b/browser/app/js/browser/AboutModal.js index f35bd69a6..3e4f71254 100644 --- a/browser/app/js/browser/AboutModal.js +++ b/browser/app/js/browser/AboutModal.js @@ -19,7 +19,7 @@ import { Modal } from "react-bootstrap" import logo from "../../img/logo.svg" export const AboutModal = ({ serverInfo, hideAbout }) => { - const { version, memory, platform, runtime } = serverInfo + const { version, platform, runtime } = serverInfo return ( {
Version
{version} -
  • -
    Memory
    - {memory} -
  • Platform
    {platform} diff --git a/browser/app/js/browser/ChangePasswordModal.js b/browser/app/js/browser/ChangePasswordModal.js index e95eec1b6..af95f4ccc 100644 --- a/browser/app/js/browser/ChangePasswordModal.js +++ b/browser/app/js/browser/ChangePasswordModal.js @@ -80,13 +80,6 @@ export class ChangePasswordModal extends React.Component { generateAuth(e) { const { serverInfo } = this.props - // Generate random access key only for root user - if (!serverInfo.userInfo.isIAMUser) { - this.setState({ - newAccessKey: getRandomAccessKey() - }) - } - this.setState({ newSecretKey: getRandomSecretKey(), newSecretKeyVisible: true @@ -100,10 +93,16 @@ export class ChangePasswordModal extends React.Component { return false } - // When credentials are set on ENV, password change not allowed for owner - if (serverInfo.info.isEnvCreds && !serverInfo.userInfo.isIAMUser) { + // Password change is not allowed for temporary users(STS) + if(serverInfo.userInfo.isTempUser) { return false } + + // Password change is only allowed for regular users + if (!serverInfo.userInfo.isIAMUser) { + return false + } + return true } @@ -186,24 +185,6 @@ export class ChangePasswordModal extends React.Component {
    - {!serverInfo.userInfo.isIAMUser && ( - { - this.setState({ newAccessKey: e.target.value }) - }} - readonly={serverInfo.userInfo.isIAMUser} - /> - )} - { this.setState({ diff --git a/browser/app/js/browser/Login.js b/browser/app/js/browser/Login.js index 19674a548..92ae308b9 100644 --- a/browser/app/js/browser/Login.js +++ b/browser/app/js/browser/Login.js @@ -22,14 +22,18 @@ import Alert from "../alert/Alert" import * as actionsAlert from "../alert/actions" import InputGroup from "./InputGroup" import web from "../web" -import { Redirect } from "react-router-dom" +import { Redirect, Link } from "react-router-dom" +import qs from "query-string" +import storage from "local-storage-fallback" +import history from "../history" export class Login extends React.Component { constructor(props) { super(props) this.state = { accessKey: "", - secretKey: "" + secretKey: "", + discoveryDoc: {} } } @@ -83,6 +87,14 @@ export class Login extends React.Component { document.body.classList.add("is-guest") } + componentDidMount() { + web.GetDiscoveryDoc().then(({ DiscoveryDoc }) => { + this.setState({ + discoveryDoc: DiscoveryDoc + }) + }) + } + componentWillUnmount() { document.body.classList.remove("is-guest") } @@ -127,6 +139,15 @@ export class Login extends React.Component { + {this.state.discoveryDoc && + this.state.discoveryDoc.authorization_endpoint && ( + + )}
    diff --git a/browser/app/js/browser/OpenIDLogin.js b/browser/app/js/browser/OpenIDLogin.js new file mode 100644 index 000000000..3c6544762 --- /dev/null +++ b/browser/app/js/browser/OpenIDLogin.js @@ -0,0 +1,170 @@ +/* + * MinIO Cloud Storage (C) 2019 MinIO, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import React from "react" +import { connect } from "react-redux" +import logo from "../../img/logo.svg" +import Alert from "../alert/Alert" +import * as actionsAlert from "../alert/actions" +import InputGroup from "./InputGroup" +import web from "../web" +import { Redirect } from "react-router-dom" +import qs from "query-string" +import { getRandomString } from "../utils" +import storage from "local-storage-fallback" +import jwtDecode from "jwt-decode" + +export class OpenIDLogin extends React.Component { + constructor(props) { + super(props) + this.state = { + clientID: "", + discoveryDoc: {} + } + this.clientIDChange = this.clientIDChange.bind(this) + this.handleSubmit = this.handleSubmit.bind(this) + } + + clientIDChange(e) { + this.setState({ + clientID: e.target.value + }) + } + + handleSubmit(event) { + event.preventDefault() + const { showAlert } = this.props + let message = "" + if (this.state.clientID === "") { + message = "Client ID cannot be empty" + } + if (message) { + showAlert("danger", message) + return + } + + if (this.state.discoveryDoc && this.state.discoveryDoc.authorization_endpoint) { + const redirectURI = window.location.href.split("#")[0] + var params = new URLSearchParams() + params.set("response_type", "id_token") + params.set("scope", "openid") + params.set("client_id", this.state.clientID) + params.set("redirect_uri", redirectURI) + + // Store nonce in localstorage to check again after the redirect + const nonce = getRandomString(16) + params.set("nonce", nonce) + storage.setItem("openIDKey", nonce) + + const authURL = `${ + this.state.discoveryDoc.authorization_endpoint + }?${params.toString()}` + window.location = authURL + } + } + + componentWillMount() { + const { clearAlert } = this.props + // Clear out any stale message in the alert of previous page + clearAlert() + document.body.classList.add("is-guest") + + web.GetDiscoveryDoc().then(({ DiscoveryDoc }) => { + this.setState({ + discoveryDoc: DiscoveryDoc + }) + }) + } + + componentDidMount() { + const values = qs.parse(this.props.location.hash) + if (values.error) { + this.props.showAlert("danger", values.error_description) + return + } + + if (values.id_token) { + // Check nonce on the token to prevent replay attacks + const tokenJSON = jwtDecode(values.id_token) + if (storage.getItem("openIDKey") !== tokenJSON.nonce) { + this.props.showAlert("danger", "Invalid auth token") + return + } + + web.LoginSTS({ token: values.id_token }).then(() => { + storage.removeItem("openIDKey") + this.forceUpdate() + return + }) + } + } + + componentWillUnmount() { + document.body.classList.remove("is-guest") + } + + render() { + const { clearAlert, alert } = this.props + if (web.LoggedIn()) { + return + } + let alertBox = + // Make sure you don't show a fading out alert box on the initial web-page load. + if (!alert.message) alertBox = "" + return ( +
    + {alertBox} +
    +
    + + + +
    +
    + + + +
    {window.location.host}
    +
    +
    + ) + } +} + +const mapDispatchToProps = dispatch => { + return { + showAlert: (type, message) => + dispatch(actionsAlert.set({ type: type, message: message })), + clearAlert: () => dispatch(actionsAlert.clear()) + } +} + +export default connect( + state => state, + mapDispatchToProps +)(OpenIDLogin) diff --git a/browser/app/js/browser/__tests__/AboutModal.test.js b/browser/app/js/browser/__tests__/AboutModal.test.js index e5c6a5c81..2b53ab57d 100644 --- a/browser/app/js/browser/__tests__/AboutModal.test.js +++ b/browser/app/js/browser/__tests__/AboutModal.test.js @@ -21,7 +21,6 @@ import { AboutModal } from "../AboutModal" describe("AboutModal", () => { const serverInfo = { version: "test", - memory: "test", platform: "test", runtime: "test" } diff --git a/browser/app/js/browser/__tests__/BrowserDropdown.test.js b/browser/app/js/browser/__tests__/BrowserDropdown.test.js index f8d192cee..407722421 100644 --- a/browser/app/js/browser/__tests__/BrowserDropdown.test.js +++ b/browser/app/js/browser/__tests__/BrowserDropdown.test.js @@ -21,7 +21,6 @@ import { BrowserDropdown } from "../BrowserDropdown" describe("BrowserDropdown", () => { const serverInfo = { version: "test", - memory: "test", platform: "test", runtime: "test" } diff --git a/browser/app/js/browser/__tests__/ChangePasswordModal.test.js b/browser/app/js/browser/__tests__/ChangePasswordModal.test.js index 57c762c5c..a5e53c9b6 100644 --- a/browser/app/js/browser/__tests__/ChangePasswordModal.test.js +++ b/browser/app/js/browser/__tests__/ChangePasswordModal.test.js @@ -54,11 +54,10 @@ jest.mock("../../utils", () => ({ describe("ChangePasswordModal", () => { const serverInfo = { version: "test", - memory: "test", platform: "test", runtime: "test", - info: { isEnvCreds: false }, - userInfo: { isIAMUser: false } + info: {}, + userInfo: { isIAMUser: true } } it("should render without crashing", () => { @@ -76,10 +75,9 @@ describe("ChangePasswordModal", () => { ).toBe("Credentials of this user cannot be updated through MinIO Browser.") }) - it("should not allow changing password when isEnvCreds is true and not IAM user", () => { + it("should not allow changing password when not IAM user", () => { const newServerInfo = { ...serverInfo, - info: { isEnvCreds: true }, userInfo: { isIAMUser: false } } const wrapper = shallow() @@ -91,21 +89,22 @@ describe("ChangePasswordModal", () => { ).toBe("Credentials of this user cannot be updated through MinIO Browser.") }) - it("should generate accessKey and secretKey when Generate buttons is clicked", () => { - const wrapper = shallow() - wrapper.find("#generate-keys").simulate("click") - setImmediate(() => { - expect(wrapper.state("newAccessKey")).toBe("raccesskey") - expect(wrapper.state("newSecretKey")).toBe("rsecretkey") - }) + it("should not allow changing password for STS user", () => { + const newServerInfo = { + ...serverInfo, + userInfo: { isTempUser: true } + } + const wrapper = shallow() + expect( + wrapper + .find("ModalBody") + .childAt(0) + .text() + ).toBe("Credentials of this user cannot be updated through MinIO Browser.") }) it("should not generate accessKey for IAM User", () => { - const newServerInfo = { - ...serverInfo, - userInfo: { isIAMUser: true } - } - const wrapper = shallow() + const wrapper = shallow() wrapper.find("#generate-keys").simulate("click") setImmediate(() => { expect(wrapper.state("newAccessKey")).toBe("minio") @@ -114,59 +113,24 @@ describe("ChangePasswordModal", () => { }) it("should not show new accessKey field for IAM User", () => { - const newServerInfo = { - ...serverInfo, - userInfo: { isIAMUser: true } - } - const wrapper = shallow() + const wrapper = shallow() expect(wrapper.find("#newAccesskey").exists()).toBeFalsy() }) - it("should disble Update button for invalid accessKey or secretKey", () => { + it("should disable Update button for secretKey", () => { const showAlert = jest.fn() const wrapper = shallow( ) - wrapper - .find("#currentAccessKey") - .simulate("change", { target: { value: "minio" } }) wrapper .find("#currentSecretKey") .simulate("change", { target: { value: "minio123" } }) - wrapper.find("#newAccessKey").simulate("change", { target: { value: "t" } }) wrapper .find("#newSecretKey") .simulate("change", { target: { value: "t1" } }) expect(wrapper.find("#update-keys").prop("disabled")).toBeTruthy() }) - it("should update accessKey and secretKey when Update button is clicked", () => { - const showAlert = jest.fn() - const wrapper = shallow( - - ) - wrapper - .find("#currentAccessKey") - .simulate("change", { target: { value: "minio" } }) - wrapper - .find("#currentSecretKey") - .simulate("change", { target: { value: "minio123" } }) - wrapper - .find("#newAccessKey") - .simulate("change", { target: { value: "test" } }) - wrapper - .find("#newSecretKey") - .simulate("change", { target: { value: "test1234" } }) - expect(wrapper.find("#update-keys").prop("disabled")).toBeFalsy() - wrapper.find("#update-keys").simulate("click") - setImmediate(() => { - expect(showAlert).toHaveBeenCalledWith({ - type: "success", - message: "Credentials updated successfully." - }) - }) - }) - it("should call hideChangePassword when Cancel button is clicked", () => { const hideChangePassword = jest.fn() const wrapper = shallow( diff --git a/browser/app/js/browser/__tests__/Login.test.js b/browser/app/js/browser/__tests__/Login.test.js index a24b08628..31a86d457 100644 --- a/browser/app/js/browser/__tests__/Login.test.js +++ b/browser/app/js/browser/__tests__/Login.test.js @@ -19,21 +19,24 @@ import { shallow, mount } from "enzyme" import { Login } from "../Login" import web from "../../web" -jest.mock('../../web', () => ({ +jest.mock("../../web", () => ({ Login: jest.fn(() => { return Promise.resolve({ token: "test", uiVersion: "2018-02-01T01:17:47Z" }) }), - LoggedIn: jest.fn() + LoggedIn: jest.fn(), + GetDiscoveryDoc: jest.fn(() => { + return Promise.resolve({ DiscoveryDoc: {"authorization_endpoint": "test"} }) + }) })) describe("Login", () => { const dispatchMock = jest.fn() const showAlertMock = jest.fn() const clearAlertMock = jest.fn() - + it("should render without crashing", () => { - shallow( { it("should initially have the is-guest class", () => { const wrapper = shallow( - { it("should throw an alert if the keys are empty in login form", () => { const wrapper = mount( - { it("should call web.Login with correct arguments if both keys are entered", () => { const wrapper = mount( - { }) wrapper.find("form").simulate("submit") expect(web.Login).toHaveBeenCalledWith({ - "username": "accessKey", + "username": "accessKey", "password": "secretKey" }) }) diff --git a/browser/app/js/browser/__tests__/actions.test.js b/browser/app/js/browser/__tests__/actions.test.js index fc247a2da..5c4609942 100644 --- a/browser/app/js/browser/__tests__/actions.test.js +++ b/browser/app/js/browser/__tests__/actions.test.js @@ -25,7 +25,6 @@ jest.mock("../../web", () => ({ ServerInfo: jest.fn(() => { return Promise.resolve({ MinioVersion: "test", - MinioMemory: "test", MinioPlatform: "test", MinioRuntime: "test", MinioGlobalInfo: "test" @@ -55,7 +54,6 @@ describe("Common actions", () => { type: "common/SET_SERVER_INFO", serverInfo: { version: "test", - memory: "test", platform: "test", runtime: "test", info: "test" diff --git a/browser/app/js/browser/__tests__/reducer.test.js b/browser/app/js/browser/__tests__/reducer.test.js index 490499d32..3fe08627d 100644 --- a/browser/app/js/browser/__tests__/reducer.test.js +++ b/browser/app/js/browser/__tests__/reducer.test.js @@ -76,7 +76,6 @@ describe("common reducer", () => { type: actionsCommon.SET_SERVER_INFO, serverInfo: { version: "test", - memory: "test", platform: "test", runtime: "test", info: "test" @@ -84,7 +83,6 @@ describe("common reducer", () => { }).serverInfo ).toEqual({ version: "test", - memory: "test", platform: "test", runtime: "test", info: "test" diff --git a/browser/app/js/browser/actions.js b/browser/app/js/browser/actions.js index b75661970..3ea3bb72b 100644 --- a/browser/app/js/browser/actions.js +++ b/browser/app/js/browser/actions.js @@ -51,7 +51,6 @@ export const fetchServerInfo = () => { return web.ServerInfo().then(res => { const serverInfo = { version: res.MinioVersion, - memory: res.MinioMemory, platform: res.MinioPlatform, runtime: res.MinioRuntime, info: res.MinioGlobalInfo, diff --git a/browser/app/js/utils.js b/browser/app/js/utils.js index bbf19aa6a..7f41dd37d 100644 --- a/browser/app/js/utils.js +++ b/browser/app/js/utils.js @@ -107,3 +107,13 @@ export const getRandomSecretKey = () => { const base64Str = btoa(binStr) return base64Str.replace(/\//g, "+").substr(0, 40) } + +export const getRandomString = length => { + var text = "" + var possible = + "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" + for (var i = 0; i < length; i++) { + text += possible.charAt(Math.floor(Math.random() * possible.length)) + } + return text +} diff --git a/browser/app/js/web.js b/browser/app/js/web.js index 14eadc526..89aef2b72 100644 --- a/browser/app/js/web.js +++ b/browser/app/js/web.js @@ -75,6 +75,16 @@ class Web { GetToken() { return storage.getItem('token') } + GetDiscoveryDoc() { + return this.makeCall("GetDiscoveryDoc") + } + LoginSTS(args) { + return this.makeCall('LoginSTS', args) + .then(res => { + storage.setItem('token', `${res.token}`) + return res + }) + } ServerInfo() { return this.makeCall('ServerInfo') } @@ -125,4 +135,4 @@ class Web { const web = new Web(`${window.location.protocol}//${window.location.host}${minioBrowserPrefix}/webrpc`); -export default web; \ No newline at end of file +export default web; diff --git a/browser/app/less/inc/login.less b/browser/app/less/inc/login.less index d092199dc..ccaa487e0 100644 --- a/browser/app/less/inc/login.less +++ b/browser/app/less/inc/login.less @@ -95,6 +95,40 @@ } } +.openid-login { + margin-top: 30px; +} + +.openid-btn { + display: inline-block; + margin-top: 30px; + border-width: 1px; + border-style: solid; + opacity: 0.6; + font-size: 14px; + &:hover { + color: @link-color; + opacity: 1; + } +} + +.or { + display:flex; + justify-content:center; + align-items: center; + color:grey; + } + +.or:after, +.or:before { + content: ""; + display: block; + background: grey; + width: 10px; + height: 1px; + margin: 0 10px; +} + /*------------------------------ Chrome autofill fix -------------------------------*/ diff --git a/browser/package-lock.json b/browser/package-lock.json index f85e455bb..126b0bb44 100644 --- a/browser/package-lock.json +++ b/browser/package-lock.json @@ -8459,6 +8459,24 @@ "prepend-http": "^1.0.0", "query-string": "^4.1.0", "sort-keys": "^1.0.0" + }, + "dependencies": { + "query-string": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-4.3.4.tgz", + "integrity": "sha1-u7aTucqRXCMlFbIosaArYJBD2+s=", + "dev": true, + "requires": { + "object-assign": "^4.1.0", + "strict-uri-encode": "^1.0.0" + } + }, + "strict-uri-encode": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", + "integrity": "sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM=", + "dev": true + } } }, "npm-path": { @@ -10287,13 +10305,13 @@ "integrity": "sha512-eRzhrN1WSINYCDCbrz796z37LOe3m5tmW7RQf6oBntukAG1nmovJvhnwHHRMAfeoItc1m2Hk02WER2aQ/iqs+A==" }, "query-string": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/query-string/-/query-string-4.3.4.tgz", - "integrity": "sha1-u7aTucqRXCMlFbIosaArYJBD2+s=", - "dev": true, + "version": "6.8.2", + "resolved": "https://registry.npmjs.org/query-string/-/query-string-6.8.2.tgz", + "integrity": "sha512-J3Qi8XZJXh93t2FiKyd/7Ec6GNifsjKXUsVFkSBj/kjLsDylWhnCz4NT1bkPcKotttPW+QbKGqqPH8OoI2pdqw==", "requires": { - "object-assign": "^4.1.0", - "strict-uri-encode": "^1.0.0" + "decode-uri-component": "^0.2.0", + "split-on-first": "^1.0.0", + "strict-uri-encode": "^2.0.0" } }, "querystring": { @@ -12142,6 +12160,11 @@ } } }, + "split-on-first": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/split-on-first/-/split-on-first-1.1.0.tgz", + "integrity": "sha512-43ZssAJaMusuKWL8sKUBQXHWOpq8d6CfN/u1p4gUzfJkM05C8rxTmYrkIPTXapZpORA6LkkzcUulJ8FqA7Uudw==" + }, "split-string": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", @@ -12312,10 +12335,9 @@ "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=" }, "strict-uri-encode": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz", - "integrity": "sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM=", - "dev": true + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-2.0.0.tgz", + "integrity": "sha1-ucczDHBChi9rFC3CdLvMWGbONUY=" }, "string-length": { "version": "2.0.0", diff --git a/browser/package.json b/browser/package.json index 35c43811d..9d4033503 100644 --- a/browser/package.json +++ b/browser/package.json @@ -75,6 +75,7 @@ "mime-db": "^1.25.0", "mime-types": "^2.1.13", "moment": "^2.24.0", + "query-string": "^6.8.2", "react": "^16.2.0", "react-addons-test-utils": "^0.14.8", "react-bootstrap": "^0.32.0", diff --git a/browser/ui-assets.go b/browser/ui-assets.go index 354158b59..20a7a7fe7 100644 --- a/browser/ui-assets.go +++ b/browser/ui-assets.go @@ -1,4 +1,4 @@ -// Code generated by go-bindata. +// Package browser Code generated by go-bindata. (@generated) DO NOT EDIT. // sources: // production/chrome.png // production/favicon-16x16.png @@ -6,12 +6,10 @@ // production/favicon-96x96.png // production/firefox.png // production/index.html -// production/index_bundle-2019-10-10T06-01-52Z.js +// production/index_bundle-2019-10-23T04-04-41Z.js // production/loader.css // production/logo.svg // production/safari.png -// DO NOT EDIT! - package browser import ( @@ -35,21 +33,32 @@ type bindataFileInfo struct { modTime time.Time } +// Name return file name func (fi bindataFileInfo) Name() string { return fi.name } + +// Size return file size func (fi bindataFileInfo) Size() int64 { return fi.size } + +// Mode return file mode func (fi bindataFileInfo) Mode() os.FileMode { return fi.mode } + +// Mode return file modify time func (fi bindataFileInfo) ModTime() time.Time { return fi.modTime } + +// IsDir return file whether a directory func (fi bindataFileInfo) IsDir() bool { - return false + return fi.mode&os.ModeDir != 0 } + +// Sys return file is sys mode func (fi bindataFileInfo) Sys() interface{} { return nil } @@ -66,7 +75,7 @@ func productionChromePng() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "production/chrome.png", size: 3726, mode: os.FileMode(420), modTime: time.Unix(1570687319, 0)} + info := bindataFileInfo{name: "production/chrome.png", size: 3726, mode: os.FileMode(420), modTime: time.Unix(1571803505, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -83,7 +92,7 @@ func productionFavicon16x16Png() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "production/favicon-16x16.png", size: 14906, mode: os.FileMode(420), modTime: time.Unix(1570687319, 0)} + info := bindataFileInfo{name: "production/favicon-16x16.png", size: 14906, mode: os.FileMode(420), modTime: time.Unix(1571803505, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -100,7 +109,7 @@ func productionFavicon32x32Png() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "production/favicon-32x32.png", size: 16066, mode: os.FileMode(420), modTime: time.Unix(1570687319, 0)} + info := bindataFileInfo{name: "production/favicon-32x32.png", size: 16066, mode: os.FileMode(420), modTime: time.Unix(1571803505, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -117,7 +126,7 @@ func productionFavicon96x96Png() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "production/favicon-96x96.png", size: 17029, mode: os.FileMode(420), modTime: time.Unix(1570687319, 0)} + info := bindataFileInfo{name: "production/favicon-96x96.png", size: 17029, mode: os.FileMode(420), modTime: time.Unix(1571803505, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -134,7 +143,7 @@ func productionFirefoxPng() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "production/firefox.png", size: 4795, mode: os.FileMode(420), modTime: time.Unix(1570687319, 0)} + info := bindataFileInfo{name: "production/firefox.png", size: 4795, mode: os.FileMode(420), modTime: time.Unix(1571803505, 0)} a := &asset{bytes: bytes, info: info} return a, nil } @@ -194,8 +203,8 @@ var _productionIndexHTML = []byte(`
    - - + + `) @@ -210,12 +219,12 @@ func productionIndexHTML() (*asset, error) { return nil, err } - info := bindataFileInfo{name: "production/index.html", size: 2256, mode: os.FileMode(420), modTime: time.Unix(1570687319, 0)} + info := bindataFileInfo{name: "production/index.html", size: 2256, mode: os.FileMode(420), modTime: time.Unix(1571803505, 0)} a := &asset{bytes: bytes, info: info} return a, nil } -var _productionIndex_bundle20191010t060152zJs = []byte(`!function(A){var M={};function I(T){if(M[T])return M[T].exports;var g=M[T]={i:T,l:!1,exports:{}};return A[T].call(g.exports,g,g.exports,I),g.l=!0,g.exports}I.m=A,I.c=M,I.d=function(A,M,T){I.o(A,M)||Object.defineProperty(A,M,{enumerable:!0,get:T})},I.r=function(A){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},I.t=function(A,M){if(1&M&&(A=I(A)),8&M)return A;if(4&M&&"object"==typeof A&&A&&A.__esModule)return A;var T=Object.create(null);if(I.r(T),Object.defineProperty(T,"default",{enumerable:!0,value:A}),2&M&&"string"!=typeof A)for(var g in A)I.d(T,g,function(M){return A[M]}.bind(null,g));return T},I.n=function(A){var M=A&&A.__esModule?function(){return A.default}:function(){return A};return I.d(M,"a",M),M},I.o=function(A,M){return Object.prototype.hasOwnProperty.call(A,M)},I.p="",I(I.s=272)}([function(A,M,I){A.exports=I(494)()},function(A,M,I){"use strict";A.exports=I(484)},function(A,M,I){"use strict";M.__esModule=!0;var T,g=I(191),N=(T=g)&&T.__esModule?T:{default:T};M.default=N.default||function(A){for(var M=1;M=0||Object.prototype.hasOwnProperty.call(A,T)&&(I[T]=A[T]);return I}},function(A,M,I){var T=I(13),g=I(54),N=I(31),D=I(32),j=I(55),C=function(A,M,I){var L,w,t,i,O=A&C.F,y=A&C.G,E=A&C.S,u=A&C.P,z=A&C.B,c=y?T:E?T[M]||(T[M]={}):(T[M]||{}).prototype,Q=y?g:g[M]||(g[M]={}),Y=Q.prototype||(Q.prototype={});for(L in y&&(I=M),I)t=((w=!O&&c&&void 0!==c[L])?c:I)[L],i=z&&w?j(t,T):u&&"function"==typeof t?j(Function.call,t):t,c&&D(c,L,t,A&C.U),Q[L]!=t&&N(Q,L,i),u&&Y[L]!=t&&(Y[L]=t)};T.core=g,C.F=1,C.G=2,C.S=4,C.P=8,C.B=16,C.W=32,C.U=64,C.R=128,A.exports=C},function(A,M,I){A.exports=I(497)()},function(A,M,I){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var T=D(I(1)),g=I(589),N=D(I(79));function D(A){return A&&A.__esModule?A:{default:A}}M.default=(0,N.default)(function(A,M,I,N,D){var j=A[M];return T.default.isValidElement(j)?new Error("Invalid "+N+" ` + "`" + `"+D+"` + "`" + ` of type ReactElement supplied to ` + "`" + `"+I+"` + "`" + `,expected an element type (a string , component class, or function component)."):(0,g.isValidElementType)(j)?null:new Error("Invalid "+N+" ` + "`" + `"+D+"` + "`" + ` of value ` + "`" + `"+j+"` + "`" + ` supplied to ` + "`" + `"+I+"` + "`" + `, expected an element type (a string , component class, or function component).")}),A.exports=M.default},function(A,M,I){"use strict";A.exports=function(){}},function(A,M,I){var T=I(16);A.exports=function(A){if(!T(A))throw TypeError(A+" is not an object!");return A}},function(A,M){var I=A.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=I)},function(A,M){A.exports=function(A){try{return!!A()}catch(A){return!0}}},function(A,M,I){"use strict";I.r(M);var T=I(1),g=I(0),N=I.n(g),D=N.a.shape({trySubscribe:N.a.func.isRequired,tryUnsubscribe:N.a.func.isRequired,notifyNestedSubs:N.a.func.isRequired,isSubscribed:N.a.func.isRequired}),j=N.a.shape({subscribe:N.a.func.isRequired,dispatch:N.a.func.isRequired,getState:N.a.func.isRequired});function C(){var A,M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",I=arguments[1]||M+"Subscription",g=function(A){function g(I,T){!function(A,M){if(!(A instanceof M))throw new TypeError("Cannot call a class as a function")}(this,g);var N=function(A,M){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!M||"object"!=typeof M&&"function"!=typeof M?A:M}(this,A.call(this,I,T));return N[M]=I.store,N}return function(A,M){if("function"!=typeof M&&null!==M)throw new TypeError("Super expression must either be null or a function, not "+typeof M);A.prototype=Object.create(M&&M.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(A,M):A.__proto__=M)}(g,A),g.prototype.getChildContext=function(){var A;return(A={})[M]=this[M],A[I]=null,A},g.prototype.render=function(){return T.Children.only(this.props.children)},g}(T.Component);return g.propTypes={store:j.isRequired,children:N.a.element.isRequired},g.childContextTypes=((A={})[M]=j.isRequired,A[I]=D,A),g}var L=C(),w=I(135),t=I.n(w),i=I(22),O=I.n(i);var y=null,E={notify:function(){}};var u=function(){function A(M,I,T){!function(A,M){if(!(A instanceof M))throw new TypeError("Cannot call a class as a function")}(this,A),this.store=M,this.parentSub=I,this.onStateChange=T,this.unsubscribe=null,this.listeners=E}return A.prototype.addNestedSub=function(A){return this.trySubscribe(),this.listeners.subscribe(A)},A.prototype.notifyNestedSubs=function(){this.listeners.notify()},A.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},A.prototype.trySubscribe=function(){var A,M;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(A=[],M=[],{clear:function(){M=y,A=y},notify:function(){for(var I=A=M,T=0;T1&&void 0!==arguments[1]?arguments[1]:{},N=g.getDisplayName,C=void 0===N?function(A){return"ConnectAdvanced("+A+")"}:N,L=g.methodName,w=void 0===L?"connectAdvanced":L,i=g.renderCountProp,y=void 0===i?void 0:i,E=g.shouldHandleStateChanges,e=void 0===E||E,k=g.storeKey,B=void 0===k?"store":k,x=g.withRef,o=void 0!==x&&x,n=function(A,M){var I={};for(var T in A)M.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(A,T)&&(I[T]=A[T]);return I}(g,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),U=B+"Subscription",a=c++,S=((M={})[B]=j,M[U]=D,M),r=((I={})[U]=D,I);return function(M){O()("function"==typeof M,"You must pass a component to the function returned by connect. Instead received "+JSON.stringify(M));var I=M.displayName||M.name||"Component",g=C(I),N=z({},n,{getDisplayName:C,methodName:w,renderCountProp:y,shouldHandleStateChanges:e,storeKey:B,withRef:o,displayName:g,wrappedComponentName:I,WrappedComponent:M}),D=function(I){function D(A,M){!function(A,M){if(!(A instanceof M))throw new TypeError("Cannot call a class as a function")}(this,D);var T=function(A,M){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!M||"object"!=typeof M&&"function"!=typeof M?A:M}(this,I.call(this,A,M));return T.version=a,T.state={},T.renderCount=0,T.store=A[B]||M[B],T.propsMode=Boolean(A[B]),T.setWrappedInstance=T.setWrappedInstance.bind(T),O()(T.store,'Could not find "'+B+'" in either the context or props of "'+g+'". Either wrap the root component in a , or explicitly pass "'+B+'" as a prop to "'+g+'".'),T.initSelector(),T.initSubscription(),T}return function(A,M){if("function"!=typeof M&&null!==M)throw new TypeError("Super expression must either be null or a function, not "+typeof M);A.prototype=Object.create(M&&M.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(A,M):A.__proto__=M)}(D,I),D.prototype.getChildContext=function(){var A,M=this.propsMode?null:this.subscription;return(A={})[U]=M||this.context[U],A},D.prototype.componentDidMount=function(){e&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},D.prototype.componentWillReceiveProps=function(A){this.selector.run(A)},D.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},D.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=Y,this.store=null,this.selector.run=Y,this.selector.shouldComponentUpdate=!1},D.prototype.getWrappedInstance=function(){return O()(o,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+w+"() call."),this.wrappedInstance},D.prototype.setWrappedInstance=function(A){this.wrappedInstance=A},D.prototype.initSelector=function(){var M=A(this.store.dispatch,N);this.selector=function(A,M){var I={run:function(T){try{var g=A(M.getState(),T);(g!==I.props||I.error)&&(I.shouldComponentUpdate=!0,I.props=g,I.error=null)}catch(A){I.shouldComponentUpdate=!0,I.error=A}}};return I}(M,this.store),this.selector.run(this.props)},D.prototype.initSubscription=function(){if(e){var A=(this.propsMode?this.props:this.context)[U];this.subscription=new u(this.store,A,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},D.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(Q)):this.notifyNestedSubs()},D.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},D.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},D.prototype.addExtraProps=function(A){if(!(o||y||this.propsMode&&this.subscription))return A;var M=z({},A);return o&&(M.ref=this.setWrappedInstance),y&&(M[y]=this.renderCount++),this.propsMode&&this.subscription&&(M[U]=this.subscription),M},D.prototype.render=function(){var A=this.selector;if(A.shouldComponentUpdate=!1,A.error)throw A.error;return Object(T.createElement)(M,this.addExtraProps(A.props))},D}(T.Component);return D.WrappedComponent=M,D.displayName=g,D.childContextTypes=r,D.contextTypes=S,D.propTypes=S,t()(D,M)}}var k=Object.prototype.hasOwnProperty;function B(A,M){return A===M?0!==A||0!==M||1/A==1/M:A!=A&&M!=M}function x(A,M){if(B(A,M))return!0;if("object"!=typeof A||null===A||"object"!=typeof M||null===M)return!1;var I=Object.keys(A),T=Object.keys(M);if(I.length!==T.length)return!1;for(var g=0;g=0||Object.prototype.hasOwnProperty.call(A,T)&&(I[T]=A[T]);return I}(M,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),D=I(A,N),j=T(A,N),C=g(A,N);return(N.pure?m:h)(D,j,C,A,N)}var G=Object.assign||function(A){for(var M=1;M=0;T--){var g=M[T](A);if(g)return g}return function(M,T){throw new Error("Invalid value of type "+typeof A+" for "+I+" argument when connecting component "+T.wrappedComponentName+".")}}function H(A,M){return A===M}var J=function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},M=A.connectHOC,I=void 0===M?e:M,T=A.mapStateToPropsFactories,g=void 0===T?r:T,N=A.mapDispatchToPropsFactories,D=void 0===N?S:N,j=A.mergePropsFactories,C=void 0===j?F:j,L=A.selectorFactory,w=void 0===L?d:L;return function(A,M,T){var N=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},j=N.pure,L=void 0===j||j,t=N.areStatesEqual,i=void 0===t?H:t,O=N.areOwnPropsEqual,y=void 0===O?x:O,E=N.areStatePropsEqual,u=void 0===E?x:E,z=N.areMergedPropsEqual,c=void 0===z?x:z,Q=function(A,M){var I={};for(var T in A)M.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(A,T)&&(I[T]=A[T]);return I}(N,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),Y=p(A,g,"mapStateToProps"),e=p(M,D,"mapDispatchToProps"),k=p(T,C,"mergeProps");return I(w,G({methodName:"connect",getDisplayName:function(A){return"Connect("+A+")"},shouldHandleStateChanges:Boolean(A),initMapStateToProps:Y,initMapDispatchToProps:e,initMergeProps:k,pure:L,areStatesEqual:i,areOwnPropsEqual:y,areStatePropsEqual:u,areMergedPropsEqual:c},Q))}}();I.d(M,"Provider",function(){return L}),I.d(M,"createProvider",function(){return C}),I.d(M,"connectAdvanced",function(){return e}),I.d(M,"connect",function(){return J})},function(A,M){A.exports=function(A){return"object"==typeof A?null!==A:"function"==typeof A}},function(A,M,I){"use strict";!function A(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(A)}catch(A){console.error(A)}}(),A.exports=I(485)},function(A,M,I){var T=I(111)("wks"),g=I(67),N=I(13).Symbol,D="function"==typeof N;(A.exports=function(A){return T[A]||(T[A]=D&&N[A]||(D?N:g)("Symbol."+A))}).store=T},function(A,M){A.exports=function(A){return A&&A.__esModule?A:{default:A}}},function(A,M,I){A.exports=!I(14)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(A,M,I){var T=I(12),g=I(197),N=I(46),D=Object.defineProperty;M.f=I(20)?Object.defineProperty:function(A,M,I){if(T(A),M=N(M,!0),T(I),g)try{return D(A,M,I)}catch(A){}if("get"in I||"set"in I)throw TypeError("Accessors not supported!");return"value"in I&&(A[M]=I.value),A}},function(A,M,I){"use strict";A.exports=function(A,M,I,T,g,N,D,j){if(!A){var C;if(void 0===M)C=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var L=[I,T,g,N,D,j],w=0;(C=new Error(M.replace(/%s/g,function(){return L[w++]}))).name="Invariant Violation"}throw C.framesToPop=1,C}}},function(A,M,I){var T=I(63),g=Math.min;A.exports=function(A){return A>0?g(T(A),9007199254740991):0}},function(A,M,I){"use strict";var T=function(){};A.exports=T},function(A,M,I){var T=I(42);A.exports=function(A){return Object(T(A))}},function(A,M){function I(A){if(A&&"object"==typeof A){var M=A.which||A.keyCode||A.charCode;M&&(A=M)}if("number"==typeof A)return D[A];var I,N=String(A);return(I=T[N.toLowerCase()])?I:(I=g[N.toLowerCase()])||(1===N.length?N.charCodeAt(0):void 0)}I.isEventKey=function(A,M){if(A&&"object"==typeof A){var I=A.which||A.keyCode||A.charCode;if(null==I)return!1;if("string"==typeof M){var N;if(N=T[M.toLowerCase()])return N===I;if(N=g[M.toLowerCase()])return N===I}else if("number"==typeof M)return M===I;return!1}};var T=(M=A.exports=I).code=M.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"` + "`" + `":192,"[":219,"\\":220,"]":221,"'":222},g=M.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91}; +!function(){"use strict";var I={}.hasOwnProperty;function g(){for(var A=[],M=0;M=0||Object.prototype.hasOwnProperty.call(A,T)&&(I[T]=A[T]);return I}},function(A,M,I){var T=I(13),g=I(41),N=I(31),D=I(32),j=I(42),C=function(A,M,I){var L,w,t,i,O=A&C.F,y=A&C.G,u=A&C.S,E=A&C.P,z=A&C.B,c=y?T:u?T[M]||(T[M]={}):(T[M]||{}).prototype,Q=y?g:g[M]||(g[M]={}),Y=Q.prototype||(Q.prototype={});for(L in y&&(I=M),I)t=((w=!O&&c&&void 0!==c[L])?c:I)[L],i=z&&w?j(t,T):E&&"function"==typeof t?j(Function.call,t):t,c&&D(c,L,t,A&C.U),Q[L]!=t&&N(Q,L,i),E&&Y[L]!=t&&(Y[L]=t)};T.core=g,C.F=1,C.G=2,C.S=4,C.P=8,C.B=16,C.W=32,C.U=64,C.R=128,A.exports=C},function(A,M,I){A.exports=I(534)()},function(A,M,I){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var T=D(I(1)),g=I(625),N=D(I(83));function D(A){return A&&A.__esModule?A:{default:A}}M.default=(0,N.default)(function(A,M,I,N,D){var j=A[M];return T.default.isValidElement(j)?new Error("Invalid "+N+" ` + "`" + `"+D+"` + "`" + ` of type ReactElement supplied to ` + "`" + `"+I+"` + "`" + `,expected an element type (a string , component class, or function component)."):(0,g.isValidElementType)(j)?null:new Error("Invalid "+N+" ` + "`" + `"+D+"` + "`" + ` of value ` + "`" + `"+j+"` + "`" + ` supplied to ` + "`" + `"+I+"` + "`" + `, expected an element type (a string , component class, or function component).")}),A.exports=M.default},function(A,M,I){var T=I(16);A.exports=function(A){if(!T(A))throw TypeError(A+" is not an object!");return A}},function(A,M,I){"use strict";A.exports=function(){}},function(A,M){var I=A.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=I)},function(A,M){A.exports=function(A){try{return!!A()}catch(A){return!0}}},function(A,M,I){"use strict";I.r(M);var T=I(1),g=I(0),N=I.n(g),D=N.a.shape({trySubscribe:N.a.func.isRequired,tryUnsubscribe:N.a.func.isRequired,notifyNestedSubs:N.a.func.isRequired,isSubscribed:N.a.func.isRequired}),j=N.a.shape({subscribe:N.a.func.isRequired,dispatch:N.a.func.isRequired,getState:N.a.func.isRequired});function C(){var A,M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",I=arguments[1]||M+"Subscription",g=function(A){function g(I,T){!function(A,M){if(!(A instanceof M))throw new TypeError("Cannot call a class as a function")}(this,g);var N=function(A,M){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!M||"object"!=typeof M&&"function"!=typeof M?A:M}(this,A.call(this,I,T));return N[M]=I.store,N}return function(A,M){if("function"!=typeof M&&null!==M)throw new TypeError("Super expression must either be null or a function, not "+typeof M);A.prototype=Object.create(M&&M.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(A,M):A.__proto__=M)}(g,A),g.prototype.getChildContext=function(){var A;return(A={})[M]=this[M],A[I]=null,A},g.prototype.render=function(){return T.Children.only(this.props.children)},g}(T.Component);return g.propTypes={store:j.isRequired,children:N.a.element.isRequired},g.childContextTypes=((A={})[M]=j.isRequired,A[I]=D,A),g}var L=C(),w=I(146),t=I.n(w),i=I(24),O=I.n(i);var y=null,u={notify:function(){}};var E=function(){function A(M,I,T){!function(A,M){if(!(A instanceof M))throw new TypeError("Cannot call a class as a function")}(this,A),this.store=M,this.parentSub=I,this.onStateChange=T,this.unsubscribe=null,this.listeners=u}return A.prototype.addNestedSub=function(A){return this.trySubscribe(),this.listeners.subscribe(A)},A.prototype.notifyNestedSubs=function(){this.listeners.notify()},A.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},A.prototype.trySubscribe=function(){var A,M;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(A=[],M=[],{clear:function(){M=y,A=y},notify:function(){for(var I=A=M,T=0;T1&&void 0!==arguments[1]?arguments[1]:{},N=g.getDisplayName,C=void 0===N?function(A){return"ConnectAdvanced("+A+")"}:N,L=g.methodName,w=void 0===L?"connectAdvanced":L,i=g.renderCountProp,y=void 0===i?void 0:i,u=g.shouldHandleStateChanges,e=void 0===u||u,k=g.storeKey,B=void 0===k?"store":k,x=g.withRef,o=void 0!==x&&x,n=function(A,M){var I={};for(var T in A)M.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(A,T)&&(I[T]=A[T]);return I}(g,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),a=B+"Subscription",U=c++,S=((M={})[B]=j,M[a]=D,M),r=((I={})[a]=D,I);return function(M){O()("function"==typeof M,"You must pass a component to the function returned by connect. Instead received "+JSON.stringify(M));var I=M.displayName||M.name||"Component",g=C(I),N=z({},n,{getDisplayName:C,methodName:w,renderCountProp:y,shouldHandleStateChanges:e,storeKey:B,withRef:o,displayName:g,wrappedComponentName:I,WrappedComponent:M}),D=function(I){function D(A,M){!function(A,M){if(!(A instanceof M))throw new TypeError("Cannot call a class as a function")}(this,D);var T=function(A,M){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!M||"object"!=typeof M&&"function"!=typeof M?A:M}(this,I.call(this,A,M));return T.version=U,T.state={},T.renderCount=0,T.store=A[B]||M[B],T.propsMode=Boolean(A[B]),T.setWrappedInstance=T.setWrappedInstance.bind(T),O()(T.store,'Could not find "'+B+'" in either the context or props of "'+g+'". Either wrap the root component in a , or explicitly pass "'+B+'" as a prop to "'+g+'".'),T.initSelector(),T.initSubscription(),T}return function(A,M){if("function"!=typeof M&&null!==M)throw new TypeError("Super expression must either be null or a function, not "+typeof M);A.prototype=Object.create(M&&M.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(A,M):A.__proto__=M)}(D,I),D.prototype.getChildContext=function(){var A,M=this.propsMode?null:this.subscription;return(A={})[a]=M||this.context[a],A},D.prototype.componentDidMount=function(){e&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},D.prototype.componentWillReceiveProps=function(A){this.selector.run(A)},D.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},D.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=Y,this.store=null,this.selector.run=Y,this.selector.shouldComponentUpdate=!1},D.prototype.getWrappedInstance=function(){return O()(o,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+w+"() call."),this.wrappedInstance},D.prototype.setWrappedInstance=function(A){this.wrappedInstance=A},D.prototype.initSelector=function(){var M=A(this.store.dispatch,N);this.selector=function(A,M){var I={run:function(T){try{var g=A(M.getState(),T);(g!==I.props||I.error)&&(I.shouldComponentUpdate=!0,I.props=g,I.error=null)}catch(A){I.shouldComponentUpdate=!0,I.error=A}}};return I}(M,this.store),this.selector.run(this.props)},D.prototype.initSubscription=function(){if(e){var A=(this.propsMode?this.props:this.context)[a];this.subscription=new E(this.store,A,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},D.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(Q)):this.notifyNestedSubs()},D.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},D.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},D.prototype.addExtraProps=function(A){if(!(o||y||this.propsMode&&this.subscription))return A;var M=z({},A);return o&&(M.ref=this.setWrappedInstance),y&&(M[y]=this.renderCount++),this.propsMode&&this.subscription&&(M[a]=this.subscription),M},D.prototype.render=function(){var A=this.selector;if(A.shouldComponentUpdate=!1,A.error)throw A.error;return Object(T.createElement)(M,this.addExtraProps(A.props))},D}(T.Component);return D.WrappedComponent=M,D.displayName=g,D.childContextTypes=r,D.contextTypes=S,D.propTypes=S,t()(D,M)}}var k=Object.prototype.hasOwnProperty;function B(A,M){return A===M?0!==A||0!==M||1/A==1/M:A!=A&&M!=M}function x(A,M){if(B(A,M))return!0;if("object"!=typeof A||null===A||"object"!=typeof M||null===M)return!1;var I=Object.keys(A),T=Object.keys(M);if(I.length!==T.length)return!1;for(var g=0;g=0||Object.prototype.hasOwnProperty.call(A,T)&&(I[T]=A[T]);return I}(M,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),D=I(A,N),j=T(A,N),C=g(A,N);return(N.pure?m:h)(D,j,C,A,N)}var G=Object.assign||function(A){for(var M=1;M=0;T--){var g=M[T](A);if(g)return g}return function(M,T){throw new Error("Invalid value of type "+typeof A+" for "+I+" argument when connecting component "+T.wrappedComponentName+".")}}function H(A,M){return A===M}var J=function(){var A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},M=A.connectHOC,I=void 0===M?e:M,T=A.mapStateToPropsFactories,g=void 0===T?r:T,N=A.mapDispatchToPropsFactories,D=void 0===N?S:N,j=A.mergePropsFactories,C=void 0===j?F:j,L=A.selectorFactory,w=void 0===L?d:L;return function(A,M,T){var N=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},j=N.pure,L=void 0===j||j,t=N.areStatesEqual,i=void 0===t?H:t,O=N.areOwnPropsEqual,y=void 0===O?x:O,u=N.areStatePropsEqual,E=void 0===u?x:u,z=N.areMergedPropsEqual,c=void 0===z?x:z,Q=function(A,M){var I={};for(var T in A)M.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(A,T)&&(I[T]=A[T]);return I}(N,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),Y=p(A,g,"mapStateToProps"),e=p(M,D,"mapDispatchToProps"),k=p(T,C,"mergeProps");return I(w,G({methodName:"connect",getDisplayName:function(A){return"Connect("+A+")"},shouldHandleStateChanges:Boolean(A),initMapStateToProps:Y,initMapDispatchToProps:e,initMergeProps:k,pure:L,areStatesEqual:i,areOwnPropsEqual:y,areStatePropsEqual:E,areMergedPropsEqual:c},Q))}}();I.d(M,"Provider",function(){return L}),I.d(M,"createProvider",function(){return C}),I.d(M,"connectAdvanced",function(){return e}),I.d(M,"connect",function(){return J})},function(A,M){A.exports=function(A){return"object"==typeof A?null!==A:"function"==typeof A}},function(A,M,I){"use strict";!function A(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(A)}catch(A){console.error(A)}}(),A.exports=I(522)},function(A,M,I){var T=I(102)("wks"),g=I(69),N=I(13).Symbol,D="function"==typeof N;(A.exports=function(A){return T[A]||(T[A]=D&&N[A]||(D?N:g)("Symbol."+A))}).store=T},function(A,M,I){var T=I(44),g=Math.min;A.exports=function(A){return A>0?g(T(A),9007199254740991):0}},function(A,M,I){A.exports=!I(14)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(A,M){A.exports=function(A){return A&&A.__esModule?A:{default:A}}},function(A,M,I){var T=I(11),g=I(209),N=I(50),D=Object.defineProperty;M.f=I(20)?Object.defineProperty:function(A,M,I){if(T(A),M=N(M,!0),T(I),g)try{return D(A,M,I)}catch(A){}if("get"in I||"set"in I)throw TypeError("Accessors not supported!");return"value"in I&&(A[M]=I.value),A}},function(A,M,I){var T=I(51);A.exports=function(A){return Object(T(A))}},function(A,M,I){"use strict";A.exports=function(A,M,I,T,g,N,D,j){if(!A){var C;if(void 0===M)C=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var L=[I,T,g,N,D,j],w=0;(C=new Error(M.replace(/%s/g,function(){return L[w++]}))).name="Invariant Violation"}throw C.framesToPop=1,C}}},function(A,M,I){"use strict";var T=function(){};A.exports=T},function(A,M){function I(A){if(A&&"object"==typeof A){var M=A.which||A.keyCode||A.charCode;M&&(A=M)}if("number"==typeof A)return D[A];var I,N=String(A);return(I=T[N.toLowerCase()])?I:(I=g[N.toLowerCase()])||(1===N.length?N.charCodeAt(0):void 0)}I.isEventKey=function(A,M){if(A&&"object"==typeof A){var I=A.which||A.keyCode||A.charCode;if(null==I)return!1;if("string"==typeof M){var N;if(N=T[M.toLowerCase()])return N===I;if(N=g[M.toLowerCase()])return N===I}else if("number"==typeof M)return M===I;return!1}};var T=(M=A.exports=I).code=M.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"` + "`" + `":192,"[":219,"\\":220,"]":221,"'":222},g=M.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91}; /*! * Programatically add the following */ -for(N=97;N<123;N++)T[String.fromCharCode(N)]=N-32;for(var N=48;N<58;N++)T[N-48]=N;for(N=1;N<13;N++)T["f"+N]=N+111;for(N=0;N<10;N++)T["numpad "+N]=N+96;var D=M.names=M.title={};for(N in T)D[T[N]]=N;for(var j in g)T[j]=g[j]},function(A,M,I){"use strict";M.__esModule=!0;var T,g=I(591),N=(T=g)&&T.__esModule?T:{default:T};M.default=(0,N.default)({shouldComponentUpdate:function(){return!this._notifying}},function(A,M,I,T,g){I&&(A._notifying=!0,I.call.apply(I,[A,T].concat(g)),A._notifying=!1),A._values[M]=T,A.unmounted||A.forceUpdate()}),A.exports=M.default},function(A,M){var I={}.hasOwnProperty;A.exports=function(A,M){return I.call(A,M)}},function(A,M,I){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var T=function(){function A(A,M){for(var I=0;I"+g+""};A.exports=function(A,M){var I={};I[A]=M(j),T(T.P+T.F*g(function(){var M=""[A]('"');return M!==M.toLowerCase()||M.split('"').length>3}),"String",I)}},function(A,M,I){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var T=window.location.pathname;M.minioBrowserPrefix=T.slice(0,T.indexOf("/",1)),M.READ_ONLY="readonly",M.WRITE_ONLY="writeonly",M.READ_WRITE="readwrite",M.NONE="none",M.SHARE_OBJECT_EXPIRY_DAYS=5,M.SHARE_OBJECT_EXPIRY_HOURS=0,M.SHARE_OBJECT_EXPIRY_MINUTES=0,M.ACCESS_KEY_MIN_LENGTH=3,M.SECRET_KEY_MIN_LENGTH=8,M.SORT_BY_NAME="name",M.SORT_BY_SIZE="size",M.SORT_BY_LAST_MODIFIED="last-modified",M.SORT_ORDER_ASC="asc",M.SORT_ORDER_DESC="desc"},function(A,M,I){var T=I(100),g=I(61),N=I(34),D=I(46),j=I(28),C=I(197),L=Object.getOwnPropertyDescriptor;M.f=I(20)?L:function(A,M){if(A=N(A),M=D(M,!0),C)try{return L(A,M)}catch(A){}if(j(A,M))return g(!T.f.call(A,M),A[M])}},function(A,M,I){var T=I(28),g=I(25),N=I(139)("IE_PROTO"),D=Object.prototype;A.exports=Object.getPrototypeOf||function(A){return A=g(A),T(A,N)?A[N]:"function"==typeof A.constructor&&A instanceof A.constructor?A.constructor.prototype:A instanceof Object?D:null}},function(A,M,I){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.hideBucketPolicy=M.showBucketPolicy=M.setPolicies=M.fetchPolicies=M.hideMakeBucketModal=M.showMakeBucketModal=M.removeBucket=M.addBucket=M.deleteBucket=M.makeBucket=M.setCurrentBucket=M.selectBucket=M.setFilter=M.setList=M.fetchBuckets=M.SET_POLICIES=M.SHOW_BUCKET_POLICY=M.SHOW_MAKE_BUCKET_MODAL=M.SET_CURRENT_BUCKET=M.SET_FILTER=M.REMOVE=M.ADD=M.SET_LIST=void 0;var T=L(I(29)),g=L(I(102)),N=C(I(49)),D=C(I(44)),j=I(123);function C(A){if(A&&A.__esModule)return A;var M={};if(null!=A)for(var I in A)Object.prototype.hasOwnProperty.call(A,I)&&(M[I]=A[I]);return M.default=A,M}function L(A){return A&&A.__esModule?A:{default:A}}var w=M.SET_LIST="buckets/SET_LIST",t=M.ADD="buckets/ADD",i=M.REMOVE="buckets/REMOVE",O=M.SET_FILTER="buckets/SET_FILTER",y=M.SET_CURRENT_BUCKET="buckets/SET_CURRENT_BUCKET",E=M.SHOW_MAKE_BUCKET_MODAL="buckets/SHOW_MAKE_BUCKET_MODAL",u=M.SHOW_BUCKET_POLICY="buckets/SHOW_BUCKET_POLICY",z=M.SET_POLICIES="buckets/SET_POLICIES",c=M.fetchBuckets=function(){return function(A){return T.default.ListBuckets().then(function(M){var I=M.buckets?M.buckets.map(function(A){return A.name}):[];if(A(Q(I)),I.length>0){var T=(0,j.pathSlice)(g.default.location.pathname),N=T.bucket,D=T.prefix;N&&I.indexOf(N)>-1?A(Y(N,D)):A(Y(I[0]))}else A(Y("")),g.default.replace("/")})}},Q=M.setList=function(A){return{type:w,buckets:A}},Y=(M.setFilter=function(A){return{type:O,filter:A}},M.selectBucket=function(A,M){return function(I){I(e(A)),I(D.selectPrefix(M||""))}}),e=M.setCurrentBucket=function(A){return{type:y,bucket:A}},k=(M.makeBucket=function(A){return function(M){return T.default.MakeBucket({bucketName:A}).then(function(){M(k(A)),M(Y(A))}).catch(function(A){return M(N.set({type:"danger",message:A.message}))})}},M.deleteBucket=function(A){return function(M){return T.default.DeleteBucket({bucketName:A}).then(function(){M(N.set({type:"info",message:"Bucket '"+A+"' has been deleted."})),M(B(A)),M(c())}).catch(function(A){M(N.set({type:"danger",message:A.message}))})}},M.addBucket=function(A){return{type:t,bucket:A}}),B=M.removeBucket=function(A){return{type:i,bucket:A}},x=(M.showMakeBucketModal=function(){return{type:E,show:!0}},M.hideMakeBucketModal=function(){return{type:E,show:!1}},M.fetchPolicies=function(A){return function(M){return T.default.ListAllBucketPolicies({bucketName:A}).then(function(A){var I=A.policies;M(x(I||[]))}).catch(function(A){M(N.set({type:"danger",message:A.message}))})}},M.setPolicies=function(A){return{type:z,policies:A}});M.showBucketPolicy=function(){return{type:u,show:!0}},M.hideBucketPolicy=function(){return{type:u,show:!1}}},function(A,M,I){"use strict";A.exports=function(A,M,I,T,g,N,D,j){if(!A){var C;if(void 0===M)C=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var L=[I,T,g,N,D,j],w=0;(C=new Error(M.replace(/%s/g,function(){return L[w++]}))).name="Invariant Violation"}throw C.framesToPop=1,C}}},function(A,M){var I={}.toString;A.exports=function(A){return I.call(A).slice(8,-1)}},function(A,M){A.exports=function(A){if(null==A)throw TypeError("Can't call method on "+A);return A}},function(A,M,I){var T=I(14);A.exports=function(A,M){return!!A&&T(function(){M?A.call(null,function(){},1):A.call(null)})}},function(A,M,I){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.downloadCheckedObjects=M.resetCheckedList=M.uncheckObject=M.checkObject=M.downloadObject=M.hideShareObject=M.showShareObject=M.shareObject=M.deleteCheckedObjects=M.removeObject=M.deleteObject=M.setPrefixWritable=M.setCurrentPrefix=M.selectPrefix=M.setSortOrder=M.setSortBy=M.sortObjects=M.fetchObjects=M.setListLoading=M.resetList=M.setList=M.SET_LIST_LOADING=M.CHECKED_LIST_RESET=M.CHECKED_LIST_REMOVE=M.CHECKED_LIST_ADD=M.SET_SHARE_OBJECT=M.SET_PREFIX_WRITABLE=M.SET_CURRENT_PREFIX=M.SET_SORT_ORDER=M.SET_SORT_BY=M.REMOVE=M.APPEND_LIST=M.RESET_LIST=M.SET_LIST=void 0;var T=Object.assign||function(A){for(var M=1;M1?"-":"";T.href=N,T.download=M.bucketName+D+M.prefix.slice(0,-1)+".zip",T.click(),window.URL.revokeObjectURL(N),T.remove()}},g.send(JSON.stringify(M))})},function(A,M,I){"use strict";I.r(M);var T={};I.r(T),I.d(T,"prefix",function(){return p}),I.d(T,"bsClass",function(){return H}),I.d(T,"bsStyles",function(){return J}),I.d(T,"bsSizes",function(){return f}),I.d(T,"getClassSet",function(){return R}),I.d(T,"splitBsProps",function(){return Z}),I.d(T,"splitBsPropsAndOmit",function(){return v}),I.d(T,"addStyle",function(){return P}),I.d(T,"_curry",function(){return K});var g={};I.r(g),I.d(g,"bootstrapUtils",function(){return T}),I.d(g,"createChainedFunction",function(){return cA}),I.d(g,"ValidComponentChildren",function(){return V});var N=I(2),D=I.n(N),j=I(4),C=I.n(j),L=I(3),w=I.n(L),t=I(5),i=I.n(t),O=I(1),y=I.n(O),E=I(7),u=I.n(E),z=I(6),c=I.n(z),Q=I(0),Y=I.n(Q),e=I(27),k=I.n(e),B=I(95),x=I.n(B),o=I(22),n=I.n(o),U="large",a="small",S="xsmall",r={large:"lg",medium:"md",small:"sm",xsmall:"xs",lg:"lg",md:"md",sm:"sm",xs:"xs"},s=["lg","md","sm","xs"],l={SUCCESS:"success",WARNING:"warning",DANGER:"danger",INFO:"info"},F="default",h="primary",m="link",d="inverse";function G(A){return function(){for(var M=arguments.length,I=Array(M),T=0;T1?M-1:0),T=1;T1?M-1:0),T=1;T=A.children.length&&this.setState({activeIndex:0,previousActiveIndex:null,direction:null})},M.prototype.componentWillUnmount=function(){clearTimeout(this.timeout),this.isUnmounted=!0},M.prototype.getActiveIndex=function(){var A=this.props.activeIndex;return null!=A?A:this.state.activeIndex},M.prototype.getDirection=function(A,M){return A===M?null:A>M?"prev":"next"},M.prototype.handleItemAnimateOutEnd=function(){var A=this;this.setState({previousActiveIndex:null,direction:null},function(){A.waitForNext(),A.props.onSlideEnd&&A.props.onSlideEnd()})},M.prototype.handleMouseOut=function(){this.isPaused&&this.play()},M.prototype.handleMouseOver=function(){this.props.pauseOnHover&&this.pause()},M.prototype.handleNext=function(A){var M=this.getActiveIndex()+1;if(M>V.count(this.props.children)-1){if(!this.props.wrap)return;M=0}this.select(M,A,"next")},M.prototype.handlePrev=function(A){var M=this.getActiveIndex()-1;if(M<0){if(!this.props.wrap)return;M=V.count(this.props.children)-1}this.select(M,A,"prev")},M.prototype.pause=function(){this.isPaused=!0,clearTimeout(this.timeout)},M.prototype.play=function(){this.isPaused=!1,this.waitForNext()},M.prototype.select=function(A,M,I){if(clearTimeout(this.timeout),!this.isUnmounted){var T=this.props.slide?this.getActiveIndex():null;I=I||this.getDirection(T,A);var g=this.props.onSelect;if(g&&(g.length>1?(M?(M.persist(),M.direction=I):M={direction:I},g(A,M)):g(A)),null==this.props.activeIndex&&A!==T){if(null!=this.state.previousActiveIndex)return;this.setState({activeIndex:A,previousActiveIndex:T,direction:I})}}},M.prototype.waitForNext=function(){var A=this.props,M=A.slide,I=A.interval,T=A.activeIndex;!this.isPaused&&M&&I&&null==T&&(this.timeout=setTimeout(this.handleNext,I))},M.prototype.renderControls=function(A){var M=A.wrap,I=A.children,T=A.activeIndex,g=A.prevIcon,N=A.nextIcon,D=A.bsProps,j=A.prevLabel,C=A.nextLabel,L=p(D,"control"),w=V.count(I);return[(M||0!==T)&&y.a.createElement(kA,{key:"prev",className:c()(L,"left"),onClick:this.handlePrev},g,j&&y.a.createElement("span",{className:"sr-only"},j)),(M||T!==w-1)&&y.a.createElement(kA,{key:"next",className:c()(L,"right"),onClick:this.handleNext},N,C&&y.a.createElement("span",{className:"sr-only"},C))]},M.prototype.renderIndicators=function(A,M,I){var T=this,g=[];return V.forEach(A,function(A,I){g.push(y.a.createElement("li",{key:I,className:I===M?"active":null,onClick:function(A){return T.select(I,A)}})," ")}),y.a.createElement("ol",{className:p(I,"indicators")},g)},M.prototype.render=function(){var A=this,M=this.props,I=M.slide,T=M.indicators,g=M.controls,N=M.wrap,j=M.prevIcon,C=M.prevLabel,L=M.nextIcon,w=M.nextLabel,t=M.className,i=M.children,E=u()(M,["slide","indicators","controls","wrap","prevIcon","prevLabel","nextIcon","nextLabel","className","children"]),z=this.state,Q=z.previousActiveIndex,Y=z.direction,e=v(E,["interval","pauseOnHover","onSelect","onSlideEnd","activeIndex","defaultActiveIndex","direction"]),k=e[0],B=e[1],x=this.getActiveIndex(),o=D()({},R(k),{slide:I});return y.a.createElement("div",D()({},B,{className:c()(t,o),onMouseOver:this.handleMouseOver,onMouseOut:this.handleMouseOut}),T&&this.renderIndicators(i,x,k),y.a.createElement("div",{className:p(k,"inner")},V.map(i,function(M,T){var g=T===x,N=I&&T===Q;return Object(O.cloneElement)(M,{active:g,index:T,animateOut:N,animateIn:g&&null!=Q&&I,direction:Y,onAnimateOutEnd:N?A.handleItemAnimateOutEnd:null})})),g&&this.renderControls({wrap:N,children:i,activeIndex:x,prevIcon:j,prevLabel:C,nextIcon:L,nextLabel:w,bsProps:k}))},M}(y.a.Component);$A.propTypes=qA,$A.defaultProps=_A,$A.Caption=JA,$A.Item=PA;var AM=H("carousel",$A),MM=(I(11),{inline:Y.a.bool,disabled:Y.a.bool,title:Y.a.string,validationState:Y.a.oneOf(["success","warning","error",null]),inputRef:Y.a.func}),IM=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.inline,I=A.disabled,T=A.validationState,g=A.inputRef,N=A.className,j=A.style,C=A.title,L=A.children,w=Z(u()(A,["inline","disabled","validationState","inputRef","className","style","title","children"])),t=w[0],i=w[1],O=y.a.createElement("input",D()({},i,{ref:g,type:"checkbox",disabled:I}));if(M){var E,z=((E={})[p(t,"inline")]=!0,E.disabled=I,E);return y.a.createElement("label",{className:c()(N,z),style:j,title:C},O,L)}var Q=D()({},R(t),{disabled:I});return T&&(Q["has-"+T]=!0),y.a.createElement("div",{className:c()(N,Q),style:j},y.a.createElement("label",{title:C},O,L))},M}(y.a.Component);IM.propTypes=MM,IM.defaultProps={inline:!1,disabled:!1,title:""};var TM=H("checkbox",IM);function gM(A){return""+A.charAt(0).toUpperCase()+A.slice(1)}var NM={componentClass:zA.a,visibleXsBlock:Y.a.bool,visibleSmBlock:Y.a.bool,visibleMdBlock:Y.a.bool,visibleLgBlock:Y.a.bool},DM=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.componentClass,I=A.className,T=Z(u()(A,["componentClass","className"])),g=T[0],N=T[1],j=R(g);return s.forEach(function(A){var M="visible"+gM(A)+"Block";N[M]&&(j["visible-"+A+"-block"]=!0),delete N[M]}),y.a.createElement(M,D()({},N,{className:c()(I,j)}))},M}(y.a.Component);DM.propTypes=NM,DM.defaultProps={componentClass:"div"};var jM=H("clearfix",DM),CM={htmlFor:Y.a.string,srOnly:Y.a.bool},LM={$bs_formGroup:Y.a.object},wM=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.context.$bs_formGroup,M=A&&A.controlId,I=this.props,T=I.htmlFor,g=void 0===T?M:T,N=I.srOnly,j=I.className,C=Z(u()(I,["htmlFor","srOnly","className"])),L=C[0],w=C[1],t=D()({},R(L),{"sr-only":N});return y.a.createElement("label",D()({},w,{htmlFor:g,className:c()(j,t)}))},M}(y.a.Component);wM.propTypes=CM,wM.defaultProps={srOnly:!1},wM.contextTypes=LM;var tM=H("control-label",wM),iM={componentClass:zA.a,xs:Y.a.number,sm:Y.a.number,md:Y.a.number,lg:Y.a.number,xsHidden:Y.a.bool,smHidden:Y.a.bool,mdHidden:Y.a.bool,lgHidden:Y.a.bool,xsOffset:Y.a.number,smOffset:Y.a.number,mdOffset:Y.a.number,lgOffset:Y.a.number,xsPush:Y.a.number,smPush:Y.a.number,mdPush:Y.a.number,lgPush:Y.a.number,xsPull:Y.a.number,smPull:Y.a.number,mdPull:Y.a.number,lgPull:Y.a.number},OM=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.componentClass,I=A.className,T=Z(u()(A,["componentClass","className"])),g=T[0],N=T[1],j=[];return s.forEach(function(A){function M(M,I){var T=""+A+M,D=N[T];null!=D&&j.push(p(g,""+A+I+"-"+D)),delete N[T]}M("",""),M("Offset","-offset"),M("Push","-push"),M("Pull","-pull");var I=A+"Hidden";N[I]&&j.push("hidden-"+A),delete N[I]}),y.a.createElement(M,D()({},N,{className:c()(I,j)}))},M}(y.a.Component);OM.propTypes=iM,OM.defaultProps={componentClass:"div"};var yM,EM=H("col",OM),uM=I(80),zM=I.n(uM),cM=I(53),QM=I.n(cM),YM={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};var eM=((yM={})[cM.EXITED]="collapse",yM[cM.EXITING]="collapsing",yM[cM.ENTERING]="collapsing",yM[cM.ENTERED]="collapse in",yM),kM={in:Y.a.bool,mountOnEnter:Y.a.bool,unmountOnExit:Y.a.bool,appear:Y.a.bool,timeout:Y.a.number,onEnter:Y.a.func,onEntering:Y.a.func,onEntered:Y.a.func,onExit:Y.a.func,onExiting:Y.a.func,onExited:Y.a.func,dimension:Y.a.oneOfType([Y.a.oneOf(["height","width"]),Y.a.func]),getDimensionValue:Y.a.func,role:Y.a.string},BM={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,dimension:"height",getDimensionValue:function(A,M){var I=M["offset"+gM(A)],T=YM[A];return I+parseInt(zM()(M,T[0]),10)+parseInt(zM()(M,T[1]),10)}},xM=function(A){function M(){var I,T,g;C()(this,M);for(var N=arguments.length,D=Array(N),j=0;j1&&(g=M,1))}),g?new Error("(children) "+T+" - Duplicate children detected of bsRole: "+g+". Only one child each allowed with the following bsRoles: "+M.join(", ")):null})}(ZM)),disabled:Y.a.bool,pullRight:Y.a.bool,open:Y.a.bool,defaultOpen:Y.a.bool,onToggle:Y.a.func,onSelect:Y.a.func,role:Y.a.string,rootCloseEvent:Y.a.oneOf(["click","mousedown"]),onMouseEnter:Y.a.func,onMouseLeave:Y.a.func},PM={componentClass:mA},KM=function(A){function M(I,T){C()(this,M);var g=w()(this,A.call(this,I,T));return g.handleClick=g.handleClick.bind(g),g.handleKeyDown=g.handleKeyDown.bind(g),g.handleClose=g.handleClose.bind(g),g._focusInDropdown=!1,g.lastOpenEventType=null,g}return i()(M,A),M.prototype.componentDidMount=function(){this.focusNextOnOpen()},M.prototype.componentWillUpdate=function(A){!A.open&&this.props.open&&(this._focusInDropdown=SM()(RA.a.findDOMNode(this.menu),UM()(document)))},M.prototype.componentDidUpdate=function(A){var M=this.props.open,I=A.open;M&&!I&&this.focusNextOnOpen(),!M&&I&&this._focusInDropdown&&(this._focusInDropdown=!1,this.focus())},M.prototype.focus=function(){var A=RA.a.findDOMNode(this.toggle);A&&A.focus&&A.focus()},M.prototype.focusNextOnOpen=function(){var A=this.menu;A.focusNext&&("keydown"!==this.lastOpenEventType&&"menuitem"!==this.props.role||A.focusNext())},M.prototype.handleClick=function(A){this.props.disabled||this.toggleOpen(A,{source:"click"})},M.prototype.handleClose=function(A,M){this.props.open&&this.toggleOpen(A,M)},M.prototype.handleKeyDown=function(A){if(!this.props.disabled)switch(A.keyCode){case sM.a.codes.down:this.props.open?this.menu.focusNext&&this.menu.focusNext():this.toggleOpen(A,{source:"keydown"}),A.preventDefault();break;case sM.a.codes.esc:case sM.a.codes.tab:this.handleClose(A,{source:"keydown"})}},M.prototype.toggleOpen=function(A,M){var I=!this.props.open;I&&(this.lastOpenEventType=M.source),this.props.onToggle&&this.props.onToggle(I,A,M)},M.prototype.renderMenu=function(A,M){var I=this,T=M.id,g=M.onSelect,N=M.rootCloseEvent,j=u()(M,["id","onSelect","rootCloseEvent"]),C=function(A){I.menu=A};return"string"==typeof A.ref||(C=cA(A.ref,C)),Object(O.cloneElement)(A,D()({},j,{ref:C,labelledBy:T,bsClass:p(j,"menu"),onClose:cA(A.props.onClose,this.handleClose),onSelect:cA(A.props.onSelect,g,function(A,M){return I.handleClose(M,{source:"select"})}),rootCloseEvent:N}))},M.prototype.renderToggle=function(A,M){var I=this,T=function(A){I.toggle=A};return"string"==typeof A.ref||(T=cA(A.ref,T)),Object(O.cloneElement)(A,D()({},M,{ref:T,bsClass:p(M,"toggle"),onClick:cA(A.props.onClick,this.handleClick),onKeyDown:cA(A.props.onKeyDown,this.handleKeyDown)}))},M.prototype.render=function(){var A,M=this,I=this.props,T=I.componentClass,g=I.id,N=I.dropup,j=I.disabled,C=I.pullRight,L=I.open,w=I.onSelect,t=I.role,i=I.bsClass,O=I.className,E=I.rootCloseEvent,z=I.children,Q=u()(I,["componentClass","id","dropup","disabled","pullRight","open","onSelect","role","bsClass","className","rootCloseEvent","children"]);delete Q.onToggle;var Y=((A={})[i]=!0,A.open=L,A.disabled=j,A);return N&&(Y[i]=!1,Y.dropup=!0),y.a.createElement(T,D()({},Q,{className:c()(O,Y)}),V.map(z,function(A){switch(A.props.bsRole){case WM:return M.renderToggle(A,{id:g,disabled:j,open:L,role:t,bsClass:i});case ZM:return M.renderMenu(A,{id:g,open:L,pullRight:C,bsClass:i,onSelect:w,rootCloseEvent:E});default:return A}}))},M}(y.a.Component);KM.propTypes=vM,KM.defaultProps=PM,H("dropdown",KM);var VM=k()(KM,{open:"onToggle"});VM.Toggle=bM,VM.Menu=JM;var XM=VM;function qM(A,M){var I=M.propTypes,T={},g={};return x()(A).forEach(function(A){var M=A[0],N=A[1];I[M]?T[M]=N:g[M]=N}),[T,g]}var _M=D()({},XM.propTypes,{bsStyle:Y.a.string,bsSize:Y.a.string,title:Y.a.node.isRequired,noCaret:Y.a.bool,children:Y.a.node}),$M=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.bsSize,I=A.bsStyle,T=A.title,g=A.children,N=qM(u()(A,["bsSize","bsStyle","title","children"]),XM.ControlledComponent),j=N[0],C=N[1];return y.a.createElement(XM,D()({},j,{bsSize:M,bsStyle:I}),y.a.createElement(XM.Toggle,D()({},C,{bsSize:M,bsStyle:I}),T),y.a.createElement(XM.Menu,null,g))},M}(y.a.Component);$M.propTypes=_M;var AI,MI=$M,II={in:Y.a.bool,mountOnEnter:Y.a.bool,unmountOnExit:Y.a.bool,appear:Y.a.bool,timeout:Y.a.number,onEnter:Y.a.func,onEntering:Y.a.func,onEntered:Y.a.func,onExit:Y.a.func,onExiting:Y.a.func,onExited:Y.a.func},TI=((AI={})[cM.ENTERING]="in",AI[cM.ENTERED]="in",AI),gI=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.className,I=A.children,T=u()(A,["className","children"]);return y.a.createElement(QM.a,T,function(A,T){return y.a.cloneElement(I,D()({},T,{className:c()("fade",M,I.props.className,TI[A])}))})},M}(y.a.Component);gI.propTypes=II,gI.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1};var NI=gI,DI={horizontal:Y.a.bool,inline:Y.a.bool,componentClass:zA.a},jI=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.horizontal,I=A.inline,T=A.componentClass,g=A.className,N=Z(u()(A,["horizontal","inline","componentClass","className"])),j=N[0],C=N[1],L=[];return M&&L.push(p(j,"horizontal")),I&&L.push(p(j,"inline")),y.a.createElement(T,D()({},C,{className:c()(g,L)}))},M}(y.a.Component);jI.propTypes=DI,jI.defaultProps={horizontal:!1,inline:!1,componentClass:"form"};var CI=H("form",jI),LI={$bs_formGroup:Y.a.object},wI=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.getGlyph=function(A){switch(A){case"success":return"ok";case"warning":return"warning-sign";case"error":return"remove";default:return null}},M.prototype.renderDefaultFeedback=function(A,M,I,T){var g=this.getGlyph(A&&A.validationState);return g?y.a.createElement(XA,D()({},T,{glyph:g,className:c()(M,I)})):null},M.prototype.render=function(){var A=this.props,M=A.className,I=A.children,T=Z(u()(A,["className","children"])),g=T[0],N=T[1],j=R(g);if(!I)return this.renderDefaultFeedback(this.context.$bs_formGroup,M,j,N);var C=y.a.Children.only(I);return y.a.cloneElement(C,D()({},N,{className:c()(C.props.className,M,j)}))},M}(y.a.Component);wI.defaultProps={bsRole:"feedback"},wI.contextTypes=LI;var tI=H("form-control-feedback",wI),iI={componentClass:zA.a},OI=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.componentClass,I=A.className,T=Z(u()(A,["componentClass","className"])),g=T[0],N=T[1],j=R(g);return y.a.createElement(M,D()({},N,{className:c()(I,j)}))},M}(y.a.Component);OI.propTypes=iI,OI.defaultProps={componentClass:"p"};var yI=H("form-control-static",OI),EI={componentClass:zA.a,type:Y.a.string,id:Y.a.string,inputRef:Y.a.func},uI={$bs_formGroup:Y.a.object},zI=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.context.$bs_formGroup,M=A&&A.controlId,I=this.props,T=I.componentClass,g=I.type,N=I.id,j=void 0===N?M:N,C=I.inputRef,L=I.className,w=I.bsSize,t=Z(u()(I,["componentClass","type","id","inputRef","className","bsSize"])),i=t[0],O=t[1],E=void 0;("file"!==g&&(E=R(i)),w)&&(E[p({bsClass:"input"},r[w]||w)]=!0);return y.a.createElement(T,D()({},O,{type:g,id:j,ref:C,className:c()(L,E)}))},M}(y.a.Component);zI.propTypes=EI,zI.defaultProps={componentClass:"input"},zI.contextTypes=uI,zI.Feedback=tI,zI.Static=yI;var cI=H("form-control",f([a,U],zI)),QI={controlId:Y.a.string,validationState:Y.a.oneOf(["success","warning","error",null])},YI={$bs_formGroup:Y.a.object.isRequired},eI=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.getChildContext=function(){var A=this.props;return{$bs_formGroup:{controlId:A.controlId,validationState:A.validationState}}},M.prototype.hasFeedback=function(A){var M=this;return V.some(A,function(A){return"feedback"===A.props.bsRole||A.props.children&&M.hasFeedback(A.props.children)})},M.prototype.render=function(){var A=this.props,M=A.validationState,I=A.className,T=A.children,g=v(u()(A,["validationState","className","children"]),["controlId"]),N=g[0],j=g[1],C=D()({},R(N),{"has-feedback":this.hasFeedback(T)});return M&&(C["has-"+M]=!0),y.a.createElement("div",D()({},j,{className:c()(I,C)}),T)},M}(y.a.Component);eI.propTypes=QI,eI.childContextTypes=YI;var kI=H("form-group",f([U,a],eI)),BI={fluid:Y.a.bool,componentClass:zA.a},xI=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.fluid,I=A.componentClass,T=A.className,g=Z(u()(A,["fluid","componentClass","className"])),N=g[0],j=g[1],C=p(N,M&&"fluid");return y.a.createElement(I,D()({},j,{className:c()(T,C)}))},M}(y.a.Component);xI.propTypes=BI,xI.defaultProps={componentClass:"div",fluid:!1};var oI=H("container",xI),nI=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.className,I=Z(u()(A,["className"])),T=I[0],g=I[1],N=R(T);return y.a.createElement("span",D()({},g,{className:c()(M,N)}))},M}(y.a.Component),UI=H("help-block",nI),aI={responsive:Y.a.bool,rounded:Y.a.bool,circle:Y.a.bool,thumbnail:Y.a.bool},SI=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A,M=this.props,I=M.responsive,T=M.rounded,g=M.circle,N=M.thumbnail,j=M.className,C=Z(u()(M,["responsive","rounded","circle","thumbnail","className"])),L=C[0],w=C[1],t=((A={})[p(L,"responsive")]=I,A[p(L,"rounded")]=T,A[p(L,"circle")]=g,A[p(L,"thumbnail")]=N,A);return y.a.createElement("img",D()({},w,{className:c()(j,t)}))},M}(y.a.Component);SI.propTypes=aI,SI.defaultProps={responsive:!1,rounded:!1,circle:!1,thumbnail:!1};var rI=H("img",SI),sI=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.className,I=Z(u()(A,["className"])),T=I[0],g=I[1],N=R(T);return y.a.createElement("span",D()({},g,{className:c()(M,N)}))},M}(y.a.Component),lI=H("input-group-addon",sI),FI=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.className,I=Z(u()(A,["className"])),T=I[0],g=I[1],N=R(T);return y.a.createElement("span",D()({},g,{className:c()(M,N)}))},M}(y.a.Component),hI=H("input-group-btn",FI),mI=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.className,I=Z(u()(A,["className"])),T=I[0],g=I[1],N=R(T);return y.a.createElement("span",D()({},g,{className:c()(M,N)}))},M}(y.a.Component);mI.Addon=lI,mI.Button=hI;var dI=H("input-group",f([U,a],mI)),GI={componentClass:zA.a},pI=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.componentClass,I=A.className,T=Z(u()(A,["componentClass","className"])),g=T[0],N=T[1],j=R(g);return y.a.createElement(M,D()({},N,{className:c()(I,j)}))},M}(y.a.Component);pI.propTypes=GI,pI.defaultProps={componentClass:"div"};var HI=H("jumbotron",pI),JI=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.hasContent=function(A){var M=!1;return y.a.Children.forEach(A,function(A){M||(A||0===A)&&(M=!0)}),M},M.prototype.render=function(){var A=this.props,M=A.className,I=A.children,T=Z(u()(A,["className","children"])),g=T[0],N=T[1],j=D()({},R(g),{hidden:!this.hasContent(I)});return y.a.createElement("span",D()({},N,{className:c()(M,j)}),I)},M}(y.a.Component),fI=H("label",J([].concat(DA()(l),[F,h]),F,JI)),RI={active:Y.a.any,disabled:Y.a.any,header:Y.a.node,listItem:Y.a.bool,onClick:Y.a.func,href:Y.a.string,type:Y.a.string},bI=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.renderHeader=function(A,M){return y.a.isValidElement(A)?Object(O.cloneElement)(A,{className:c()(A.props.className,M)}):y.a.createElement("h4",{className:M},A)},M.prototype.render=function(){var A=this.props,M=A.active,I=A.disabled,T=A.className,g=A.header,N=A.listItem,j=A.children,C=Z(u()(A,["active","disabled","className","header","listItem","children"])),L=C[0],w=C[1],t=D()({},R(L),{active:M,disabled:I}),i=void 0;return w.href?i="a":w.onClick?(i="button",w.type=w.type||"button"):i=N?"li":"span",w.className=c()(T,t),g?y.a.createElement(i,w,this.renderHeader(g,p(L,"heading")),y.a.createElement("p",{className:p(L,"text")},j)):y.a.createElement(i,w,j)},M}(y.a.Component);bI.propTypes=RI,bI.defaultProps={listItem:!1};var WI=H("list-group-item",J(DA()(l),bI)),ZI={componentClass:zA.a};var vI=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.children,I=A.componentClass,T=void 0===I?function(A){return A?V.some(A,function(A){return A.type!==WI||A.props.href||A.props.onClick})?"div":"ul":"div"}(M):I,g=A.className,N=Z(u()(A,["children","componentClass","className"])),j=N[0],C=N[1],L=R(j),w="ul"===T&&V.every(M,function(A){return A.type===WI});return y.a.createElement(T,D()({},C,{className:c()(g,L)}),w?V.map(M,function(A){return Object(O.cloneElement)(A,{listItem:!0})}):M)},M}(y.a.Component);vI.propTypes=ZI;var PI=H("list-group",vI),KI={align:Y.a.oneOf(["top","middle","bottom"]),componentClass:zA.a},VI=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.componentClass,I=A.align,T=A.className,g=Z(u()(A,["componentClass","align","className"])),N=g[0],j=g[1],C=R(N);return I&&(C[p(iT.defaultProps,I)]=!0),y.a.createElement(M,D()({},j,{className:c()(T,C)}))},M}(y.a.Component);VI.propTypes=KI,VI.defaultProps={componentClass:"div"};var XI=H("media-body",VI),qI={componentClass:zA.a},_I=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.componentClass,I=A.className,T=Z(u()(A,["componentClass","className"])),g=T[0],N=T[1],j=R(g);return y.a.createElement(M,D()({},N,{className:c()(I,j)}))},M}(y.a.Component);_I.propTypes=qI,_I.defaultProps={componentClass:"h4"};var $I=H("media-heading",_I),AT={align:Y.a.oneOf(["top","middle","bottom"])},MT=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.align,I=A.className,T=Z(u()(A,["align","className"])),g=T[0],N=T[1],j=R(g);return M&&(j[p(iT.defaultProps,M)]=!0),y.a.createElement("div",D()({},N,{className:c()(I,j)}))},M}(y.a.Component);MT.propTypes=AT;var IT=H("media-left",MT),TT=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.className,I=Z(u()(A,["className"])),T=I[0],g=I[1],N=R(T);return y.a.createElement("ul",D()({},g,{className:c()(M,N)}))},M}(y.a.Component),gT=H("media-list",TT),NT=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.className,I=Z(u()(A,["className"])),T=I[0],g=I[1],N=R(T);return y.a.createElement("li",D()({},g,{className:c()(M,N)}))},M}(y.a.Component),DT=H("media",NT),jT={align:Y.a.oneOf(["top","middle","bottom"])},CT=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.align,I=A.className,T=Z(u()(A,["align","className"])),g=T[0],N=T[1],j=R(g);return M&&(j[p(iT.defaultProps,M)]=!0),y.a.createElement("div",D()({},N,{className:c()(I,j)}))},M}(y.a.Component);CT.propTypes=jT;var LT=H("media-right",CT),wT={componentClass:zA.a},tT=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.componentClass,I=A.className,T=Z(u()(A,["componentClass","className"])),g=T[0],N=T[1],j=R(g);return y.a.createElement(M,D()({},N,{className:c()(I,j)}))},M}(y.a.Component);tT.propTypes=wT,tT.defaultProps={componentClass:"div"},tT.Heading=$I,tT.Body=XI,tT.Left=IT,tT.Right=LT,tT.List=gT,tT.ListItem=DT;var iT=H("media",tT),OT={active:Y.a.bool,disabled:Y.a.bool,divider:lA()(Y.a.bool,function(A){var M=A.divider,I=A.children;return M&&I?new Error("Children will not be rendered for dividers"):null}),eventKey:Y.a.any,header:Y.a.bool,href:Y.a.string,onClick:Y.a.func,onSelect:Y.a.func},yT=function(A){function M(I,T){C()(this,M);var g=w()(this,A.call(this,I,T));return g.handleClick=g.handleClick.bind(g),g}return i()(M,A),M.prototype.handleClick=function(A){var M=this.props,I=M.href,T=M.disabled,g=M.onSelect,N=M.eventKey;I&&!T||A.preventDefault(),T||g&&g(N,A)},M.prototype.render=function(){var A=this.props,M=A.active,I=A.disabled,T=A.divider,g=A.header,N=A.onClick,j=A.className,C=A.style,L=v(u()(A,["active","disabled","divider","header","onClick","className","style"]),["eventKey","onSelect"]),w=L[0],t=L[1];return T?(t.children=void 0,y.a.createElement("li",D()({},t,{role:"separator",className:c()(j,"divider"),style:C}))):g?y.a.createElement("li",D()({},t,{role:"heading",className:c()(j,p(w,"header")),style:C})):y.a.createElement("li",{role:"presentation",className:c()(j,{active:M,disabled:I}),style:C},y.a.createElement(kA,D()({},t,{role:"menuitem",tabIndex:"-1",onClick:cA(N,this.handleClick)})))},M}(y.a.Component);yT.propTypes=OT,yT.defaultProps={divider:!1,disabled:!1,header:!1};var ET=H("dropdown",yT),uT=I(195),zT=I.n(uT),cT=I(78),QT=I.n(cT),YT=I(58),eT=I.n(YT),kT=I(136),BT=I.n(kT),xT=I(98),oT=I.n(xT),nT=I(193),UT=I.n(nT),aT={componentClass:zA.a},ST=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.componentClass,I=A.className,T=Z(u()(A,["componentClass","className"])),g=T[0],N=T[1],j=R(g);return y.a.createElement(M,D()({},N,{className:c()(I,j)}))},M}(y.a.Component);ST.propTypes=aT,ST.defaultProps={componentClass:"div"};var rT=H("modal-body",ST),sT={dialogClassName:Y.a.string},lT=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A,M=this.props,I=M.dialogClassName,T=M.className,g=M.style,N=M.children,j=Z(u()(M,["dialogClassName","className","style","children"])),C=j[0],L=j[1],w=p(C),t=D()({display:"block"},g),i=D()({},R(C),((A={})[w]=!1,A[p(C,"dialog")]=!0,A));return y.a.createElement("div",D()({},L,{tabIndex:"-1",role:"dialog",style:t,className:c()(T,w)}),y.a.createElement("div",{className:c()(I,i)},y.a.createElement("div",{className:p(C,"content"),role:"document"},N)))},M}(y.a.Component);lT.propTypes=sT;var FT=H("modal",f([U,a],lT)),hT={componentClass:zA.a},mT=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.componentClass,I=A.className,T=Z(u()(A,["componentClass","className"])),g=T[0],N=T[1],j=R(g);return y.a.createElement(M,D()({},N,{className:c()(I,j)}))},M}(y.a.Component);mT.propTypes=hT,mT.defaultProps={componentClass:"div"};var dT=H("modal-footer",mT),GT={closeLabel:Y.a.string,closeButton:Y.a.bool,onHide:Y.a.func},pT={$bs_modal:Y.a.shape({onHide:Y.a.func})},HT=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.closeLabel,I=A.closeButton,T=A.onHide,g=A.className,N=A.children,j=u()(A,["closeLabel","closeButton","onHide","className","children"]),C=this.context.$bs_modal,L=Z(j),w=L[0],t=L[1],i=R(w);return y.a.createElement("div",D()({},t,{className:c()(g,i)}),I&&y.a.createElement(LA,{label:M,onClick:cA(C&&C.onHide,T)}),N)},M}(y.a.Component);HT.propTypes=GT,HT.defaultProps={closeLabel:"Close",closeButton:!1},HT.contextTypes=pT;var JT=H("modal-header",HT),fT={componentClass:zA.a},RT=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.componentClass,I=A.className,T=Z(u()(A,["componentClass","className"])),g=T[0],N=T[1],j=R(g);return y.a.createElement(M,D()({},N,{className:c()(I,j)}))},M}(y.a.Component);RT.propTypes=fT,RT.defaultProps={componentClass:"h4"};var bT=H("modal-title",RT),WT=D()({},oT.a.propTypes,FT.propTypes,{backdrop:Y.a.oneOf(["static",!0,!1]),backdropClassName:Y.a.string,keyboard:Y.a.bool,animation:Y.a.bool,dialogComponentClass:zA.a,autoFocus:Y.a.bool,enforceFocus:Y.a.bool,restoreFocus:Y.a.bool,show:Y.a.bool,onHide:Y.a.func,onEnter:Y.a.func,onEntering:Y.a.func,onEntered:Y.a.func,onExit:Y.a.func,onExiting:Y.a.func,onExited:Y.a.func,container:oT.a.propTypes.container}),ZT=D()({},oT.a.defaultProps,{animation:!0,dialogComponentClass:FT}),vT={$bs_modal:Y.a.shape({onHide:Y.a.func})};function PT(A){return y.a.createElement(NI,D()({},A,{timeout:VT.TRANSITION_DURATION}))}function KT(A){return y.a.createElement(NI,D()({},A,{timeout:VT.BACKDROP_TRANSITION_DURATION}))}var VT=function(A){function M(I,T){C()(this,M);var g=w()(this,A.call(this,I,T));return g.handleEntering=g.handleEntering.bind(g),g.handleExited=g.handleExited.bind(g),g.handleWindowResize=g.handleWindowResize.bind(g),g.handleDialogClick=g.handleDialogClick.bind(g),g.setModalRef=g.setModalRef.bind(g),g.state={style:{}},g}return i()(M,A),M.prototype.getChildContext=function(){return{$bs_modal:{onHide:this.props.onHide}}},M.prototype.componentWillUnmount=function(){this.handleExited()},M.prototype.setModalRef=function(A){this._modal=A},M.prototype.handleDialogClick=function(A){A.target===A.currentTarget&&this.props.onHide()},M.prototype.handleEntering=function(){zT.a.on(window,"resize",this.handleWindowResize),this.updateStyle()},M.prototype.handleExited=function(){zT.a.off(window,"resize",this.handleWindowResize)},M.prototype.handleWindowResize=function(){this.updateStyle()},M.prototype.updateStyle=function(){if(eT.a){var A=this._modal.getDialogElement(),M=A.scrollHeight,I=QT()(A),T=UT()(RA.a.findDOMNode(this.props.container||I.body)),g=M>I.documentElement.clientHeight;this.setState({style:{paddingRight:T&&!g?BT()():void 0,paddingLeft:!T&&g?BT()():void 0}})}},M.prototype.render=function(){var A=this.props,M=A.backdrop,I=A.backdropClassName,T=A.animation,g=A.show,N=A.dialogComponentClass,j=A.className,C=A.style,L=A.children,w=A.onEntering,t=A.onExited,i=u()(A,["backdrop","backdropClassName","animation","show","dialogComponentClass","className","style","children","onEntering","onExited"]),O=qM(i,oT.a),E=O[0],z=O[1],Q=g&&!T&&"in";return y.a.createElement(oT.a,D()({},E,{ref:this.setModalRef,show:g,containerClassName:p(i,"open"),transition:T?PT:void 0,backdrop:M,backdropTransition:T?KT:void 0,backdropClassName:c()(p(i,"backdrop"),I,Q),onEntering:cA(w,this.handleEntering),onExited:cA(t,this.handleExited)}),y.a.createElement(N,D()({},z,{style:D()({},this.state.style,C),className:c()(j,Q),onClick:!0===M?this.handleDialogClick:null}),L))},M}(y.a.Component);VT.propTypes=WT,VT.defaultProps=ZT,VT.childContextTypes=vT,VT.Body=rT,VT.Header=JT,VT.Title=bT,VT.Footer=dT,VT.Dialog=FT,VT.TRANSITION_DURATION=300,VT.BACKDROP_TRANSITION_DURATION=150;var XT=H("modal",f([U,a],VT)),qT={activeKey:Y.a.any,activeHref:Y.a.string,stacked:Y.a.bool,justified:lA()(Y.a.bool,function(A){var M=A.justified,I=A.navbar;return M&&I?Error("justified navbar ` + "`" + `Nav` + "`" + `s are not supported"):null}),onSelect:Y.a.func,role:Y.a.string,navbar:Y.a.bool,pullRight:Y.a.bool,pullLeft:Y.a.bool},_T={$bs_navbar:Y.a.shape({bsClass:Y.a.string,onSelect:Y.a.func}),$bs_tabContainer:Y.a.shape({activeKey:Y.a.any,onSelect:Y.a.func.isRequired,getTabId:Y.a.func.isRequired,getPaneId:Y.a.func.isRequired})},$T=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.componentDidUpdate=function(){var A=this;if(this._needsRefocus){this._needsRefocus=!1;var M=this.props.children,I=this.getActiveProps(),T=I.activeKey,g=I.activeHref,N=V.find(M,function(M){return A.isActive(M,T,g)}),D=V.toArray(M).indexOf(N),j=RA.a.findDOMNode(this).children,C=j&&j[D];C&&C.firstChild&&C.firstChild.focus()}},M.prototype.getActiveProps=function(){var A=this.context.$bs_tabContainer;return A||this.props},M.prototype.getNextActiveChild=function(A){var M=this,I=this.props.children,T=I.filter(function(A){return null!=A.props.eventKey&&!A.props.disabled}),g=this.getActiveProps(),N=g.activeKey,D=g.activeHref,j=V.find(I,function(A){return M.isActive(A,N,D)}),C=T.indexOf(j);if(-1===C)return T[0];var L=C+A,w=T.length;return L>=w?L=0:L<0&&(L=w-1),T[L]},M.prototype.getTabProps=function(A,M,I,T,g){var N=this;if(!M&&"tablist"!==I)return null;var D=A.props,j=D.id,C=D["aria-controls"],L=D.eventKey,w=D.role,t=D.onKeyDown,i=D.tabIndex;return M&&(j=M.getTabId(L),C=M.getPaneId(L)),"tablist"===I&&(w=w||"tab",t=cA(function(A){return N.handleTabKeyDown(g,A)},t),i=T?i:-1),{id:j,role:w,onKeyDown:t,"aria-controls":C,tabIndex:i}},M.prototype.handleTabKeyDown=function(A,M){var I=void 0;switch(M.keyCode){case sM.a.codes.left:case sM.a.codes.up:I=this.getNextActiveChild(-1);break;case sM.a.codes.right:case sM.a.codes.down:I=this.getNextActiveChild(1);break;default:return}M.preventDefault(),A&&I&&null!=I.props.eventKey&&A(I.props.eventKey),this._needsRefocus=!0},M.prototype.isActive=function(A,M,I){var T=A.props;return!!(T.active||null!=M&&T.eventKey===M||I&&T.href===I)||T.active},M.prototype.render=function(){var A,M=this,I=this.props,T=I.stacked,g=I.justified,N=I.onSelect,j=I.role,C=I.navbar,L=I.pullRight,w=I.pullLeft,t=I.className,i=I.children,E=u()(I,["stacked","justified","onSelect","role","navbar","pullRight","pullLeft","className","children"]),z=this.context.$bs_tabContainer,Q=j||(z?"tablist":null),Y=this.getActiveProps(),e=Y.activeKey,k=Y.activeHref;delete E.activeKey,delete E.activeHref;var B=Z(E),x=B[0],o=B[1],n=D()({},R(x),((A={})[p(x,"stacked")]=T,A[p(x,"justified")]=g,A)),U=null!=C?C:this.context.$bs_navbar,a=void 0,S=void 0;if(U){var r=this.context.$bs_navbar||{bsClass:"navbar"};n[p(r,"nav")]=!0,S=p(r,"right"),a=p(r,"left")}else S="pull-right",a="pull-left";return n[S]=L,n[a]=w,y.a.createElement("ul",D()({},o,{role:Q,className:c()(t,n)}),V.map(i,function(A){var I=M.isActive(A,e,k),T=cA(A.props.onSelect,N,U&&U.onSelect,z&&z.onSelect);return Object(O.cloneElement)(A,D()({},M.getTabProps(A,z,Q,I,T),{active:I,activeKey:e,activeHref:k,onSelect:T}))}))},M}(y.a.Component);$T.propTypes=qT,$T.defaultProps={justified:!1,pullRight:!1,pullLeft:!1,stacked:!1},$T.contextTypes=_T;var Ag=H("nav",J(["tabs","pills"],$T)),Mg={$bs_navbar:Y.a.shape({bsClass:Y.a.string})},Ig=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.className,I=A.children,T=u()(A,["className","children"]),g=p(this.context.$bs_navbar||{bsClass:"navbar"},"brand");return y.a.isValidElement(I)?y.a.cloneElement(I,{className:c()(I.props.className,M,g)}):y.a.createElement("span",D()({},T,{className:c()(M,g)}),I)},M}(y.a.Component);Ig.contextTypes=Mg;var Tg=Ig,gg={$bs_navbar:Y.a.shape({bsClass:Y.a.string,expanded:Y.a.bool})},Ng=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.children,I=u()(A,["children"]),T=this.context.$bs_navbar||{bsClass:"navbar"},g=p(T,"collapse");return y.a.createElement(oM,D()({in:T.expanded},I),y.a.createElement("div",{className:g},M))},M}(y.a.Component);Ng.contextTypes=gg;var Dg=Ng,jg={$bs_navbar:Y.a.shape({bsClass:Y.a.string})},Cg=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.className,I=u()(A,["className"]),T=p(this.context.$bs_navbar||{bsClass:"navbar"},"header");return y.a.createElement("div",D()({},I,{className:c()(M,T)}))},M}(y.a.Component);Cg.contextTypes=jg;var Lg=Cg,wg={onClick:Y.a.func,children:Y.a.node},tg={$bs_navbar:Y.a.shape({bsClass:Y.a.string,expanded:Y.a.bool,onToggle:Y.a.func.isRequired})},ig=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.onClick,I=A.className,T=A.children,g=u()(A,["onClick","className","children"]),N=this.context.$bs_navbar||{bsClass:"navbar"},j=D()({type:"button"},g,{onClick:cA(M,N.onToggle),className:c()(I,p(N,"toggle"),!N.expanded&&"collapsed")});return T?y.a.createElement("button",j,T):y.a.createElement("button",j,y.a.createElement("span",{className:"sr-only"},"Toggle navigation"),y.a.createElement("span",{className:"icon-bar"}),y.a.createElement("span",{className:"icon-bar"}),y.a.createElement("span",{className:"icon-bar"}))},M}(y.a.Component);ig.propTypes=wg,ig.contextTypes=tg;var Og=ig,yg={fixedTop:Y.a.bool,fixedBottom:Y.a.bool,staticTop:Y.a.bool,inverse:Y.a.bool,fluid:Y.a.bool,componentClass:zA.a,onToggle:Y.a.func,onSelect:Y.a.func,collapseOnSelect:Y.a.bool,expanded:Y.a.bool,role:Y.a.string},Eg={$bs_navbar:Y.a.shape({bsClass:Y.a.string,expanded:Y.a.bool,onToggle:Y.a.func.isRequired,onSelect:Y.a.func})},ug=function(A){function M(I,T){C()(this,M);var g=w()(this,A.call(this,I,T));return g.handleToggle=g.handleToggle.bind(g),g.handleCollapse=g.handleCollapse.bind(g),g}return i()(M,A),M.prototype.getChildContext=function(){var A=this.props,M=A.bsClass,I=A.expanded,T=A.onSelect,g=A.collapseOnSelect;return{$bs_navbar:{bsClass:M,expanded:I,onToggle:this.handleToggle,onSelect:cA(T,g?this.handleCollapse:null)}}},M.prototype.handleCollapse=function(){var A=this.props,M=A.onToggle;A.expanded&&M(!1)},M.prototype.handleToggle=function(){var A=this.props;(0,A.onToggle)(!A.expanded)},M.prototype.render=function(){var A,M=this.props,I=M.componentClass,T=M.fixedTop,g=M.fixedBottom,N=M.staticTop,j=M.inverse,C=M.fluid,L=M.className,w=M.children,t=v(u()(M,["componentClass","fixedTop","fixedBottom","staticTop","inverse","fluid","className","children"]),["expanded","onToggle","onSelect","collapseOnSelect"]),i=t[0],O=t[1];void 0===O.role&&"nav"!==I&&(O.role="navigation"),j&&(i.bsStyle=d);var E=D()({},R(i),((A={})[p(i,"fixed-top")]=T,A[p(i,"fixed-bottom")]=g,A[p(i,"static-top")]=N,A));return y.a.createElement(I,D()({},O,{className:c()(L,E)}),y.a.createElement(oI,{fluid:C},w))},M}(y.a.Component);ug.propTypes=yg,ug.defaultProps={componentClass:"nav",fixedTop:!1,fixedBottom:!1,staticTop:!1,inverse:!1,fluid:!1,collapseOnSelect:!1},ug.childContextTypes=Eg,H("navbar",ug);var zg=k()(ug,{expanded:"onToggle"});function cg(A,M,I){var T=function(A,I){var T=I.$bs_navbar,g=void 0===T?{bsClass:"navbar"}:T,N=A.componentClass,j=A.className,C=A.pullRight,L=A.pullLeft,w=u()(A,["componentClass","className","pullRight","pullLeft"]);return y.a.createElement(N,D()({},w,{className:c()(j,p(g,M),C&&p(g,"right"),L&&p(g,"left"))}))};return T.displayName=I,T.propTypes={componentClass:zA.a,pullRight:Y.a.bool,pullLeft:Y.a.bool},T.defaultProps={componentClass:A,pullRight:!1,pullLeft:!1},T.contextTypes={$bs_navbar:Y.a.shape({bsClass:Y.a.string})},T}zg.Brand=Tg,zg.Header=Lg,zg.Toggle=Og,zg.Collapse=Dg,zg.Form=cg("div","form","NavbarForm"),zg.Text=cg("p","text","NavbarText"),zg.Link=cg("a","link","NavbarLink");var Qg=J([F,d],F,zg),Yg=D()({},XM.propTypes,{title:Y.a.node.isRequired,noCaret:Y.a.bool,active:Y.a.bool,activeKey:Y.a.any,activeHref:Y.a.string,children:Y.a.node}),eg=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.isActive=function(A,M,I){var T=A.props,g=this;return!!(T.active||null!=M&&T.eventKey===M||I&&T.href===I)||(!!V.some(T.children,function(A){return g.isActive(A,M,I)})||T.active)},M.prototype.render=function(){var A=this,M=this.props,I=M.title,T=M.activeKey,g=M.activeHref,N=M.className,j=M.style,C=M.children,L=u()(M,["title","activeKey","activeHref","className","style","children"]),w=this.isActive(this,T,g);delete L.active,delete L.eventKey;var t=qM(L,XM.ControlledComponent),i=t[0],O=t[1];return y.a.createElement(XM,D()({},i,{componentClass:"li",className:c()(N,{active:w}),style:j}),y.a.createElement(XM.Toggle,D()({},O,{useAnchor:!0}),I),y.a.createElement(XM.Menu,null,V.map(C,function(M){return y.a.cloneElement(M,{active:A.isActive(M,T,g)})})))},M}(y.a.Component);eg.propTypes=Yg;var kg=eg,Bg={active:Y.a.bool,disabled:Y.a.bool,role:Y.a.string,href:Y.a.string,onClick:Y.a.func,onSelect:Y.a.func,eventKey:Y.a.any},xg=function(A){function M(I,T){C()(this,M);var g=w()(this,A.call(this,I,T));return g.handleClick=g.handleClick.bind(g),g}return i()(M,A),M.prototype.handleClick=function(A){this.props.disabled?A.preventDefault():this.props.onSelect&&this.props.onSelect(this.props.eventKey,A)},M.prototype.render=function(){var A=this.props,M=A.active,I=A.disabled,T=A.onClick,g=A.className,N=A.style,j=u()(A,["active","disabled","onClick","className","style"]);return delete j.onSelect,delete j.eventKey,delete j.activeKey,delete j.activeHref,j.role?"tab"===j.role&&(j["aria-selected"]=M):"#"===j.href&&(j.role="button"),y.a.createElement("li",{role:"presentation",className:c()(g,{active:M,disabled:I}),style:N},y.a.createElement(kA,D()({},j,{disabled:I,onClick:cA(T,this.handleClick)})))},M}(y.a.Component);xg.propTypes=Bg,xg.defaultProps={active:!1,disabled:!1};var og=xg,ng=I(196),Ug=I.n(ng),ag=D()({},Ug.a.propTypes,{show:Y.a.bool,rootClose:Y.a.bool,onHide:Y.a.func,animation:Y.a.oneOfType([Y.a.bool,zA.a]),onEnter:Y.a.func,onEntering:Y.a.func,onEntered:Y.a.func,onExit:Y.a.func,onExiting:Y.a.func,onExited:Y.a.func,placement:Y.a.oneOf(["top","right","bottom","left"])}),Sg={animation:NI,rootClose:!1,show:!1,placement:"right"},rg=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.animation,I=A.children,T=u()(A,["animation","children"]),g=!0===M?NI:M||null,N=void 0;return N=g?I:Object(O.cloneElement)(I,{className:c()(I.props.className,"in")}),y.a.createElement(Ug.a,D()({},T,{transition:g}),N)},M}(y.a.Component);rg.propTypes=ag,rg.defaultProps=Sg;var sg=rg;function lg(A,M){return Array.isArray(M)?M.indexOf(A)>=0:A===M}var Fg=Y.a.oneOf(["click","hover","focus"]),hg=D()({},sg.propTypes,{trigger:Y.a.oneOfType([Fg,Y.a.arrayOf(Fg)]),delay:Y.a.number,delayShow:Y.a.number,delayHide:Y.a.number,defaultOverlayShown:Y.a.bool,overlay:Y.a.node.isRequired,onBlur:Y.a.func,onClick:Y.a.func,onFocus:Y.a.func,onMouseOut:Y.a.func,onMouseOver:Y.a.func,target:Y.a.oneOf([null]),onHide:Y.a.oneOf([null]),show:Y.a.oneOf([null])}),mg=function(A){function M(I,T){C()(this,M);var g=w()(this,A.call(this,I,T));return g.handleToggle=g.handleToggle.bind(g),g.handleDelayedShow=g.handleDelayedShow.bind(g),g.handleDelayedHide=g.handleDelayedHide.bind(g),g.handleHide=g.handleHide.bind(g),g.handleMouseOver=function(A){return g.handleMouseOverOut(g.handleDelayedShow,A,"fromElement")},g.handleMouseOut=function(A){return g.handleMouseOverOut(g.handleDelayedHide,A,"toElement")},g._mountNode=null,g.state={show:I.defaultOverlayShown},g}return i()(M,A),M.prototype.componentDidMount=function(){this._mountNode=document.createElement("div"),this.renderOverlay()},M.prototype.componentDidUpdate=function(){this.renderOverlay()},M.prototype.componentWillUnmount=function(){RA.a.unmountComponentAtNode(this._mountNode),this._mountNode=null,clearTimeout(this._hoverShowDelay),clearTimeout(this._hoverHideDelay)},M.prototype.handleDelayedHide=function(){var A=this;if(null!=this._hoverShowDelay)return clearTimeout(this._hoverShowDelay),void(this._hoverShowDelay=null);if(this.state.show&&null==this._hoverHideDelay){var M=null!=this.props.delayHide?this.props.delayHide:this.props.delay;M?this._hoverHideDelay=setTimeout(function(){A._hoverHideDelay=null,A.hide()},M):this.hide()}},M.prototype.handleDelayedShow=function(){var A=this;if(null!=this._hoverHideDelay)return clearTimeout(this._hoverHideDelay),void(this._hoverHideDelay=null);if(!this.state.show&&null==this._hoverShowDelay){var M=null!=this.props.delayShow?this.props.delayShow:this.props.delay;M?this._hoverShowDelay=setTimeout(function(){A._hoverShowDelay=null,A.show()},M):this.show()}},M.prototype.handleHide=function(){this.hide()},M.prototype.handleMouseOverOut=function(A,M,I){var T=M.currentTarget,g=M.relatedTarget||M.nativeEvent[I];g&&g===T||SM()(T,g)||A(M)},M.prototype.handleToggle=function(){this.state.show?this.hide():this.show()},M.prototype.hide=function(){this.setState({show:!1})},M.prototype.makeOverlay=function(A,M){return y.a.createElement(sg,D()({},M,{show:this.state.show,onHide:this.handleHide,target:this}),A)},M.prototype.show=function(){this.setState({show:!0})},M.prototype.renderOverlay=function(){RA.a.unstable_renderSubtreeIntoContainer(this,this._overlay,this._mountNode)},M.prototype.render=function(){var A=this.props,M=A.trigger,I=A.overlay,T=A.children,g=A.onBlur,N=A.onClick,D=A.onFocus,j=A.onMouseOut,C=A.onMouseOver,L=u()(A,["trigger","overlay","children","onBlur","onClick","onFocus","onMouseOut","onMouseOver"]);delete L.delay,delete L.delayShow,delete L.delayHide,delete L.defaultOverlayShown;var w=y.a.Children.only(T),t=w.props,i={};return this.state.show&&(i["aria-describedby"]=I.props.id),i.onClick=cA(t.onClick,N),lg("click",M)&&(i.onClick=cA(i.onClick,this.handleToggle)),lg("hover",M)&&(i.onMouseOver=cA(t.onMouseOver,C,this.handleMouseOver),i.onMouseOut=cA(t.onMouseOut,j,this.handleMouseOut)),lg("focus",M)&&(i.onFocus=cA(t.onFocus,D,this.handleDelayedShow),i.onBlur=cA(t.onBlur,g,this.handleDelayedHide)),this._overlay=this.makeOverlay(I,L),Object(O.cloneElement)(w,i)},M}(y.a.Component);mg.propTypes=hg,mg.defaultProps={defaultOverlayShown:!1,trigger:["hover","focus"]};var dg=mg,Gg=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.className,I=A.children,T=Z(u()(A,["className","children"])),g=T[0],N=T[1],j=R(g);return y.a.createElement("div",D()({},N,{className:c()(M,j)}),y.a.createElement("h1",null,I))},M}(y.a.Component),pg=H("page-header",Gg),Hg={disabled:Y.a.bool,previous:Y.a.bool,next:Y.a.bool,onClick:Y.a.func,onSelect:Y.a.func,eventKey:Y.a.any},Jg=function(A){function M(I,T){C()(this,M);var g=w()(this,A.call(this,I,T));return g.handleSelect=g.handleSelect.bind(g),g}return i()(M,A),M.prototype.handleSelect=function(A){var M=this.props,I=M.disabled,T=M.onSelect,g=M.eventKey;I?A.preventDefault():T&&T(g,A)},M.prototype.render=function(){var A=this.props,M=A.disabled,I=A.previous,T=A.next,g=A.onClick,N=A.className,j=A.style,C=u()(A,["disabled","previous","next","onClick","className","style"]);return delete C.onSelect,delete C.eventKey,y.a.createElement("li",{className:c()(N,{disabled:M,previous:I,next:T}),style:j},y.a.createElement(kA,D()({},C,{disabled:M,onClick:cA(g,this.handleSelect)})))},M}(y.a.Component);Jg.propTypes=Hg,Jg.defaultProps={disabled:!1,previous:!1,next:!1};var fg=Jg,Rg=I(130),bg=I.n(Rg),Wg={};function Zg(A,M,I){var T=void 0;"object"===(void 0===A?"undefined":bg()(A))?T=A.message:(T=A+" is deprecated. Use "+M+" instead.",I&&(T+="\nYou can read more about it at "+I)),Wg[T]||(Wg[T]=!0)}Zg.wrapper=function(A){for(var M=arguments.length,I=Array(M>1?M-1:0),T=1;T` + "`" + `","` + "`" + `` + "`" + `"),Pg={onSelect:Y.a.func},Kg=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.onSelect,I=A.className,T=A.children,g=Z(u()(A,["onSelect","className","children"])),N=g[0],j=g[1],C=R(N);return y.a.createElement("ul",D()({},j,{className:c()(I,C)}),V.map(T,function(A){return Object(O.cloneElement)(A,{onSelect:cA(A.props.onSelect,M)})}))},M}(y.a.Component);Kg.propTypes=Pg,Kg.Item=fg;var Vg=H("pager",Kg),Xg={eventKey:Y.a.any,className:Y.a.string,onSelect:Y.a.func,disabled:Y.a.bool,active:Y.a.bool,activeLabel:Y.a.string.isRequired};function qg(A){var M=A.active,I=A.disabled,T=A.className,g=A.style,N=A.activeLabel,j=A.children,C=u()(A,["active","disabled","className","style","activeLabel","children"]),L=M||I?"span":kA;return y.a.createElement("li",{style:g,className:c()(T,{active:M,disabled:I})},y.a.createElement(L,D()({disabled:I},C),j,M&&y.a.createElement("span",{className:"sr-only"},N)))}function _g(A,M){var I,T,g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:A;return T=I=function(A){function I(){return C()(this,I),w()(this,A.apply(this,arguments))}return i()(I,A),I.prototype.render=function(){var A=this.props,I=A.disabled,T=A.children,N=A.className,j=u()(A,["disabled","children","className"]),C=I?"span":kA;return y.a.createElement("li",D()({"aria-label":g,className:c()(N,{disabled:I})},j),y.a.createElement(C,null,T||M))},I}(y.a.Component),I.displayName=A,I.propTypes={disabled:Y.a.bool},T}qg.propTypes=Xg,qg.defaultProps={active:!1,disabled:!1,activeLabel:"(current)"};var $g=_g("First","«"),AN=_g("Prev","‹"),MN=_g("Ellipsis","…","More"),IN=_g("Next","›"),TN=_g("Last","»"),gN=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.className,I=A.children,T=Z(u()(A,["className","children"])),g=T[0],N=T[1],j=R(g);return y.a.createElement("ul",D()({},N,{className:c()(M,j)}),I)},M}(y.a.Component);H("pagination",gN),gN.First=$g,gN.Prev=AN,gN.Ellipsis=MN,gN.Item=qg,gN.Next=IN,gN.Last=TN;var NN=gN,DN=I(191),jN=I.n(DN),CN={onEnter:Y.a.func,onEntering:Y.a.func,onEntered:Y.a.func,onExit:Y.a.func,onExiting:Y.a.func,onExited:Y.a.func},LN={$bs_panel:Y.a.shape({headingId:Y.a.string,bodyId:Y.a.string,bsClass:Y.a.string,expanded:Y.a.bool})},wN=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props.children,M=this.context.$bs_panel||{},I=M.headingId,T=M.bodyId,g=M.bsClass,N=M.expanded,j=Z(this.props),C=j[0],L=j[1];return C.bsClass=g||C.bsClass,I&&T&&(L.id=T,L.role=L.role||"tabpanel",L["aria-labelledby"]=I),y.a.createElement(oM,D()({in:N},L),y.a.createElement("div",{className:p(C,"collapse")},A))},M}(y.a.Component);wN.propTypes=CN,wN.contextTypes=LN;var tN=H("panel",wN),iN={collapsible:Y.a.bool.isRequired},ON={$bs_panel:Y.a.shape({bsClass:Y.a.string})},yN=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.children,I=A.className,T=A.collapsible,g=(this.context.$bs_panel||{}).bsClass,N=v(this.props,["collapsible"]),j=N[0],C=N[1];j.bsClass=g||j.bsClass;var L=y.a.createElement("div",D()({},C,{className:c()(I,p(j,"body"))}),M);return T&&(L=y.a.createElement(tN,null,L)),L},M}(y.a.Component);yN.propTypes=iN,yN.defaultProps={collapsible:!1},yN.contextTypes=ON;var EN=H("panel",yN),uN=I(96),zN=I.n(uN),cN={componentClass:zN.a},QN={$bs_panel:Y.a.shape({headingId:Y.a.string,bsClass:Y.a.string})},YN=function(A){function M(){return C()(this,M),w()(this,A.apply(this,arguments))}return i()(M,A),M.prototype.render=function(){var A=this.props,M=A.children,I=A.className,T=A.componentClass,g=u()(A,["children","className","componentClass"]),N=this.context.$bs_panel||{},j=N.headingId,C=N.bsClass,L=Z(g),w=L[0],t=L[1];return w.bsClass=C||w.bsClass,j&&(t.role=t.role||"tab",t.id=j),y.a.createElement(T,D()({},t,{className:c()(I,p(w,"heading"))}),M)},M}(y.a.Component);YN.propTypes=cN,YN.defaultProps={componentClass:"div"},YN.contextTypes=QN;var eN=H("panel",YN),kN={onClick:Y.a.func,componentClass:zN.a},BN={componentClass:kA},xN={$bs_panel:Y.a.shape({bodyId:Y.a.string,onToggle:Y.a.func,expanded:Y.a.bool})},oN=function(A){function M(){C()(this,M);for(var I=arguments.length,T=Array(I),g=0;g1?I-1:0),g=1;ge;e++)if((i||e in c)&&(u=Q(E=c[e],e,z),A))if(I)k[e]=u;else if(u)switch(A){case 3:return!0;case 5:return E;case 6:return e;case 2:k.push(E)}else if(w)return!1;return t?-1:L||w?w:k}}},function(A,M,I){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var T=M.SET="alert/SET",g=M.CLEAR="alert/CLEAR",N=M.alertId=0;M.set=function(A){var I=(M.alertId=N+=1,N-1);return function(M,N){("danger"!==A.type||A.autoClear)&&setTimeout(function(){M({type:g,alert:{id:I}})},5e3),M({type:T,alert:Object.assign({},A,{id:I})})}},M.clear=function(){return{type:g}}},function(A,M){var I=A.exports={version:"2.4.0"};"number"==typeof __e&&(__e=I)},function(A,M,I){var T=I(172)("wks"),g=I(125),N=I(65).Symbol,D="function"==typeof N;(A.exports=function(A){return T[A]||(T[A]=D&&N[A]||(D?N:g)("Symbol."+A))}).store=T},function(A,M,I){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=function(){for(var A=arguments.length,M=Array(A),I=0;I=0||(g[I]=A[I]);return g}(M,["children"]);if(delete T.in,delete T.mountOnEnter,delete T.unmountOnExit,delete T.appear,delete T.enter,delete T.exit,delete T.timeout,delete T.addEndListener,delete T.onEnter,delete T.onEntering,delete T.onEntered,delete T.onExit,delete T.onExiting,delete T.onExited,"function"==typeof I)return I(A,T);var N=g.default.Children.only(I);return g.default.cloneElement(N,T)},T}(g.default.Component);function O(){}i.contextTypes={transitionGroup:T.object},i.childContextTypes={transitionGroup:function(){}},i.propTypes={},i.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:O,onEntering:O,onEntered:O,onExit:O,onExiting:O,onExited:O},i.UNMOUNTED=0,i.EXITED=1,i.ENTERING=2,i.ENTERED=3,i.EXITING=4;var y=(0,D.polyfill)(i);M.default=y},function(A,M){var I=A.exports={version:"2.4.0"};"number"==typeof __e&&(__e=I)},function(A,M,I){var T=I(33);A.exports=function(A,M,I){if(T(A),void 0===M)return A;switch(I){case 1:return function(I){return A.call(M,I)};case 2:return function(I,T){return A.call(M,I,T)};case 3:return function(I,T,g){return A.call(M,I,T,g)}}return function(){return A.apply(M,arguments)}}},function(A,M,I){"use strict";if(I(20)){var T=I(68),g=I(13),N=I(14),D=I(8),j=I(120),C=I(162),L=I(55),w=I(74),t=I(61),i=I(31),O=I(75),y=I(63),E=I(23),u=I(70),z=I(46),c=I(28),Q=I(203),Y=I(101),e=I(16),k=I(25),B=I(154),x=I(71),o=I(38),n=I(72).f,U=I(156),a=I(67),S=I(18),r=I(48),s=I(112),l=I(159),F=I(158),h=I(84),m=I(116),d=I(73),G=I(157),p=I(212),H=I(21),J=I(37),f=H.f,R=J.f,b=g.RangeError,W=g.TypeError,Z=g.Uint8Array,v=Array.prototype,P=C.ArrayBuffer,K=C.DataView,V=r(0),X=r(2),q=r(3),_=r(4),$=r(5),AA=r(6),MA=s(!0),IA=s(!1),TA=F.values,gA=F.keys,NA=F.entries,DA=v.lastIndexOf,jA=v.reduce,CA=v.reduceRight,LA=v.join,wA=v.sort,tA=v.slice,iA=v.toString,OA=v.toLocaleString,yA=S("iterator"),EA=S("toStringTag"),uA=a("typed_constructor"),zA=a("def_constructor"),cA=j.CONSTR,QA=j.TYPED,YA=j.VIEW,eA=r(1,function(A,M){return UA(l(A,A[zA]),M)}),kA=N(function(){return 1===new Z(new Uint16Array([1]).buffer)[0]}),BA=!!Z&&!!Z.prototype.set&&N(function(){new Z(1).set({})}),xA=function(A,M){if(void 0===A)throw W("Wrong length!");var I=+A,T=E(A);if(M&&!Q(I,T))throw b("Wrong length!");return T},oA=function(A,M){var I=y(A);if(I<0||I%M)throw b("Wrong offset!");return I},nA=function(A){if(e(A)&&QA in A)return A;throw W(A+" is not a typed array!")},UA=function(A,M){if(!(e(A)&&uA in A))throw W("It is not a typed array constructor!");return new A(M)},aA=function(A,M){return SA(l(A,A[zA]),M)},SA=function(A,M){for(var I=0,T=M.length,g=UA(A,T);T>I;)g[I]=M[I++];return g},rA=function(A,M,I){f(A,M,{get:function(){return this._d[I]}})},sA=function(A){var M,I,T,g,N,D,j=k(A),C=arguments.length,w=C>1?arguments[1]:void 0,t=void 0!==w,i=U(j);if(null!=i&&!B(i)){for(D=i.call(j),T=[],M=0;!(N=D.next()).done;M++)T.push(N.value);j=T}for(t&&C>2&&(w=L(w,arguments[2],2)),M=0,I=E(j.length),g=UA(this,I);I>M;M++)g[M]=t?w(j[M],M):j[M];return g},lA=function(){for(var A=0,M=arguments.length,I=UA(this,M);M>A;)I[A]=arguments[A++];return I},FA=!!Z&&N(function(){OA.call(new Z(1))}),hA=function(){return OA.apply(FA?tA.call(nA(this)):nA(this),arguments)},mA={copyWithin:function(A,M){return p.call(nA(this),A,M,arguments.length>2?arguments[2]:void 0)},every:function(A){return _(nA(this),A,arguments.length>1?arguments[1]:void 0)},fill:function(A){return G.apply(nA(this),arguments)},filter:function(A){return aA(this,X(nA(this),A,arguments.length>1?arguments[1]:void 0))},find:function(A){return $(nA(this),A,arguments.length>1?arguments[1]:void 0)},findIndex:function(A){return AA(nA(this),A,arguments.length>1?arguments[1]:void 0)},forEach:function(A){V(nA(this),A,arguments.length>1?arguments[1]:void 0)},indexOf:function(A){return IA(nA(this),A,arguments.length>1?arguments[1]:void 0)},includes:function(A){return MA(nA(this),A,arguments.length>1?arguments[1]:void 0)},join:function(A){return LA.apply(nA(this),arguments)},lastIndexOf:function(A){return DA.apply(nA(this),arguments)},map:function(A){return eA(nA(this),A,arguments.length>1?arguments[1]:void 0)},reduce:function(A){return jA.apply(nA(this),arguments)},reduceRight:function(A){return CA.apply(nA(this),arguments)},reverse:function(){for(var A,M=nA(this).length,I=Math.floor(M/2),T=0;T1?arguments[1]:void 0)},sort:function(A){return wA.call(nA(this),A)},subarray:function(A,M){var I=nA(this),T=I.length,g=u(A,T);return new(l(I,I[zA]))(I.buffer,I.byteOffset+g*I.BYTES_PER_ELEMENT,E((void 0===M?T:u(M,T))-g))}},dA=function(A,M){return aA(this,tA.call(nA(this),A,M))},GA=function(A){nA(this);var M=oA(arguments[1],1),I=this.length,T=k(A),g=E(T.length),N=0;if(g+M>I)throw b("Wrong length!");for(;N255?255:255&T),g.v[y](I*M+g.o,T,kA)}(this,I,A)},enumerable:!0})};Q?(u=I(function(A,I,T,g){w(A,u,L,"_d");var N,D,j,C,t=0,O=0;if(e(I)){if(!(I instanceof P||"ArrayBuffer"==(C=Y(I))||"SharedArrayBuffer"==C))return QA in I?SA(u,I):sA.call(u,I);N=I,O=oA(T,M);var y=I.byteLength;if(void 0===g){if(y%M)throw b("Wrong length!");if((D=y-O)<0)throw b("Wrong length!")}else if((D=E(g)*M)+O>y)throw b("Wrong length!");j=D/M}else j=xA(I,!0),N=new P(D=j*M);for(i(A,"_d",{b:N,o:O,l:D,e:j,v:new K(N)});t>",j=N||I;if(null==M[I])return new Error("The "+g+" ` + "`" + `"+j+"` + "`" + ` is required to make ` + "`" + `"+D+"` + "`" + ` accessible for users of assistive technologies such as screen readers.");for(var C=arguments.length,L=Array(C>5?C-5:0),w=5;w0?T:I)(A)}},function(A,M,I){var T=I(65),g=I(50),N=I(166),D=I(89),j=function(A,M,I){var C,L,w,t=A&j.F,i=A&j.G,O=A&j.S,y=A&j.P,E=A&j.B,u=A&j.W,z=i?g:g[M]||(g[M]={}),c=z.prototype,Q=i?T:O?T[M]:(T[M]||{}).prototype;for(C in i&&(I=M),I)(L=!t&&Q&&void 0!==Q[C])&&C in z||(w=L?Q[C]:I[C],z[C]=i&&"function"!=typeof Q[C]?I[C]:E&&L?N(w,T):u&&Q[C]==w?function(A){var M=function(M,I,T){if(this instanceof A){switch(arguments.length){case 0:return new A;case 1:return new A(M);case 2:return new A(M,I)}return new A(M,I,T)}return A.apply(this,arguments)};return M.prototype=A.prototype,M}(w):y&&"function"==typeof w?N(Function.call,w):w,y&&((z.virtual||(z.virtual={}))[C]=w,A&j.R&&c&&!c[C]&&D(c,C,w)))};j.F=1,j.G=2,j.S=4,j.P=8,j.B=16,j.W=32,j.U=64,j.R=128,A.exports=j},function(A,M){var I=A.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=I)},function(A,M,I){var T=I(245),g=I(169);A.exports=function(A){return T(g(A))}},function(A,M){var I=0,T=Math.random();A.exports=function(A){return"Symbol(".concat(void 0===A?"":A,")_",(++I+T).toString(36))}},function(A,M){A.exports=!1},function(A,M,I){var T=I(199),g=I(140);A.exports=Object.keys||function(A){return T(A,g)}},function(A,M,I){var T=I(63),g=Math.max,N=Math.min;A.exports=function(A,M){return(A=T(A))<0?g(A+M,0):N(A,M)}},function(A,M,I){var T=I(12),g=I(200),N=I(140),D=I(139)("IE_PROTO"),j=function(){},C=function(){var A,M=I(137)("iframe"),T=N.length;for(M.style.display="none",I(142).appendChild(M),M.src="javascript:",(A=M.contentWindow.document).open(),A.write("