diff --git a/.Rbuildignore b/.Rbuildignore index 271a8b9f0..2e6feb1c8 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -1,3 +1,4 @@ +^pkgdown$ ^appveyor\.yml$ ^.*\.Rproj$ ^\.Rproj\.user$ diff --git a/.travis.yml b/.travis.yml index 8dbf0a835..f40cfa9dc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,11 @@ matrix: - r: 3.5 after_success: - Rscript -e 'covr::codecov()' + before_deploy: Rscript -e 'remotes::install_cran("pkgdown")' + deploy: + provider: script + script: Rscript -e 'pkgdown::deploy_site_github()' + skip_cleanup: true - r: devel env: diff --git a/docs/CNAME b/docs/CNAME deleted file mode 100644 index acba4a539..000000000 --- a/docs/CNAME +++ /dev/null @@ -1 +0,0 @@ -purrr.tidyverse.org \ No newline at end of file diff --git a/docs/CONDUCT.html b/docs/CONDUCT.html deleted file mode 100644 index 4356e5e2f..000000000 --- a/docs/CONDUCT.html +++ /dev/null @@ -1,138 +0,0 @@ - - - - - - - - -Contributor Code of Conduct • purrr - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
- -

As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.

-

We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.

-

Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.

-

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.

-

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.

-

This Code of Conduct is adapted from the Contributor Covenant (http://contributor-covenant.org), version 1.0.0, available at http://contributor-covenant.org/version/1/0/0/

-
- -
- -
- - - -
- - - - - - diff --git a/docs/LICENSE b/docs/LICENSE deleted file mode 100644 index 94a9ed024..000000000 --- a/docs/LICENSE +++ /dev/null @@ -1,674 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - - Copyright (C) 2007 Free Software Foundation, Inc. - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for -software and other kinds of works. - - The licenses for most software and other practical works are designed -to take away your freedom to share and change the works. By contrast, -the GNU General Public License is intended to guarantee your freedom to -share and change all versions of a program--to make sure it remains free -software for all its users. We, the Free Software Foundation, use the -GNU General Public License for most of our software; it applies also to -any other work released this way by its authors. You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -them if you wish), that you receive source code or can get it if you -want it, that you can change the software or use pieces of it in new -free programs, and that you know you can do these things. - - To protect your rights, we need to prevent others from denying you -these rights or asking you to surrender the rights. Therefore, you have -certain responsibilities if you distribute copies of the software, or if -you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must pass on to the recipients the same -freedoms that you received. You must make sure that they, too, receive -or can get the source code. And you must show them these terms so they -know their rights. - - Developers that use the GNU GPL protect your rights with two steps: -(1) assert copyright on the software, and (2) offer you this License -giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains -that there is no warranty for this free software. For both users' and -authors' sake, the GPL requires that modified versions be marked as -changed, so that their problems will not be attributed erroneously to -authors of previous versions. - - Some devices are designed to deny users access to install or run -modified versions of the software inside them, although the manufacturer -can do so. This is fundamentally incompatible with the aim of -protecting users' freedom to change the software. The systematic -pattern of such abuse occurs in the area of products for individuals to -use, which is precisely where it is most unacceptable. Therefore, we -have designed this version of the GPL to prohibit the practice for those -products. If such problems arise substantially in other domains, we -stand ready to extend this provision to those domains in future versions -of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. -States should not allow patents to restrict development and use of -software on general-purpose computers, but in those that do, we wish to -avoid the special danger that patents applied to a free program could -make it effectively proprietary. To prevent this, the GPL assures that -patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and -modification follow. - - TERMS AND CONDITIONS - - 0. Definitions. - - "This License" refers to version 3 of the GNU General Public License. - - "Copyright" also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - "The Program" refers to any copyrightable work licensed under this -License. Each licensee is addressed as "you". "Licensees" and -"recipients" may be individuals or organizations. - - To "modify" a work means to copy from or adapt all or part of the work -in a fashion requiring copyright permission, other than the making of an -exact copy. The resulting work is called a "modified version" of the -earlier work or a work "based on" the earlier work. - - A "covered work" means either the unmodified Program or a work based -on the Program. - - To "propagate" a work means to do anything with it that, without -permission, would make you directly or secondarily liable for -infringement under applicable copyright law, except executing it on a -computer or modifying a private copy. Propagation includes copying, -distribution (with or without modification), making available to the -public, and in some countries other activities as well. - - To "convey" a work means any kind of propagation that enables other -parties to make or receive copies. Mere interaction with a user through -a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays "Appropriate Legal Notices" -to the extent that it includes a convenient and prominently visible -feature that (1) displays an appropriate copyright notice, and (2) -tells the user that there is no warranty for the work (except to the -extent that warranties are provided), that licensees may convey the -work under this License, and how to view a copy of this License. If -the interface presents a list of user commands or options, such as a -menu, a prominent item in the list meets this criterion. - - 1. Source Code. - - The "source code" for a work means the preferred form of the work -for making modifications to it. "Object code" means any non-source -form of a work. - - A "Standard Interface" means an interface that either is an official -standard defined by a recognized standards body, or, in the case of -interfaces specified for a particular programming language, one that -is widely used among developers working in that language. - - The "System Libraries" of an executable work include anything, other -than the work as a whole, that (a) is included in the normal form of -packaging a Major Component, but which is not part of that Major -Component, and (b) serves only to enable use of the work with that -Major Component, or to implement a Standard Interface for which an -implementation is available to the public in source code form. A -"Major Component", in this context, means a major essential component -(kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to -produce the work, or an object code interpreter used to run it. - - The "Corresponding Source" for a work in object code form means all -the source code needed to generate, install, and (for an executable -work) run the object code and to modify the work, including scripts to -control those activities. However, it does not include the work's -System Libraries, or general-purpose tools or generally available free -programs which are used unmodified in performing those activities but -which are not part of the work. For example, Corresponding Source -includes interface definition files associated with source files for -the work, and the source code for shared libraries and dynamically -linked subprograms that the work is specifically designed to require, -such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users -can regenerate automatically from other parts of the Corresponding -Source. - - The Corresponding Source for a work in source code form is that -same work. - - 2. Basic Permissions. - - All rights granted under this License are granted for the term of -copyright on the Program, and are irrevocable provided the stated -conditions are met. This License explicitly affirms your unlimited -permission to run the unmodified Program. The output from running a -covered work is covered by this License only if the output, given its -content, constitutes a covered work. This License acknowledges your -rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not -convey, without conditions so long as your license otherwise remains -in force. You may convey covered works to others for the sole purpose -of having them make modifications exclusively for you, or provide you -with facilities for running those works, provided that you comply with -the terms of this License in conveying all material for which you do -not control copyright. Those thus making or running the covered works -for you must do so exclusively on your behalf, under your direction -and control, on terms that prohibit them from making any copies of -your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under -the conditions stated below. Sublicensing is not allowed; section 10 -makes it unnecessary. - - 3. Protecting Users' Legal Rights From Anti-Circumvention Law. - - No covered work shall be deemed part of an effective technological -measure under any applicable law fulfilling obligations under article -11 of the WIPO copyright treaty adopted on 20 December 1996, or -similar laws prohibiting or restricting circumvention of such -measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention -is effected by exercising rights under this License with respect to -the covered work, and you disclaim any intention to limit operation or -modification of the work as a means of enforcing, against the work's -users, your or third parties' legal rights to forbid circumvention of -technological measures. - - 4. Conveying Verbatim Copies. - - You may convey verbatim copies of the Program's source code as you -receive it, in any medium, provided that you conspicuously and -appropriately publish on each copy an appropriate copyright notice; -keep intact all notices stating that this License and any -non-permissive terms added in accord with section 7 apply to the code; -keep intact all notices of the absence of any warranty; and give all -recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, -and you may offer support or warranty protection for a fee. - - 5. Conveying Modified Source Versions. - - You may convey a work based on the Program, or the modifications to -produce it from the Program, in the form of source code under the -terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified - it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is - released under this License and any conditions added under section - 7. This requirement modifies the requirement in section 4 to - "keep intact all notices". - - c) You must license the entire work, as a whole, under this - License to anyone who comes into possession of a copy. This - License will therefore apply, along with any applicable section 7 - additional terms, to the whole of the work, and all its parts, - regardless of how they are packaged. This License gives no - permission to license the work in any other way, but it does not - invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your - work need not make them do so. - - A compilation of a covered work with other separate and independent -works, which are not by their nature extensions of the covered work, -and which are not combined with it such as to form a larger program, -in or on a volume of a storage or distribution medium, is called an -"aggregate" if the compilation and its resulting copyright are not -used to limit the access or legal rights of the compilation's users -beyond what the individual works permit. Inclusion of a covered work -in an aggregate does not cause this License to apply to the other -parts of the aggregate. - - 6. Conveying Non-Source Forms. - - You may convey a covered work in object code form under the terms -of sections 4 and 5, provided that you also convey the -machine-readable Corresponding Source under the terms of this License, -in one of these ways: - - a) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by the - Corresponding Source fixed on a durable physical medium - customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product - (including a physical distribution medium), accompanied by a - written offer, valid for at least three years and valid for as - long as you offer spare parts or customer support for that product - model, to give anyone who possesses the object code either (1) a - copy of the Corresponding Source for all the software in the - product that is covered by this License, on a durable physical - medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this - conveying of source, or (2) access to copy the - Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the - written offer to provide the Corresponding Source. This - alternative is allowed only occasionally and noncommercially, and - only if you received the object code with such an offer, in accord - with subsection 6b. - - d) Convey the object code by offering access from a designated - place (gratis or for a charge), and offer equivalent access to the - Corresponding Source in the same way through the same place at no - further charge. You need not require recipients to copy the - Corresponding Source along with the object code. If the place to - copy the object code is a network server, the Corresponding Source - may be on a different server (operated by you or a third party) - that supports equivalent copying facilities, provided you maintain - clear directions next to the object code saying where to find the - Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is - available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided - you inform other peers where the object code and Corresponding - Source of the work are being offered to the general public at no - charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded -from the Corresponding Source as a System Library, need not be -included in conveying the object code work. - - A "User Product" is either (1) a "consumer product", which means any -tangible personal property which is normally used for personal, family, -or household purposes, or (2) anything designed or sold for incorporation -into a dwelling. In determining whether a product is a consumer product, -doubtful cases shall be resolved in favor of coverage. For a particular -product received by a particular user, "normally used" refers to a -typical or common use of that class of product, regardless of the status -of the particular user or of the way in which the particular user -actually uses, or expects or is expected to use, the product. A product -is a consumer product regardless of whether the product has substantial -commercial, industrial or non-consumer uses, unless such uses represent -the only significant mode of use of the product. - - "Installation Information" for a User Product means any methods, -procedures, authorization keys, or other information required to install -and execute modified versions of a covered work in that User Product from -a modified version of its Corresponding Source. The information must -suffice to ensure that the continued functioning of the modified object -code is in no case prevented or interfered with solely because -modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as -part of a transaction in which the right of possession and use of the -User Product is transferred to the recipient in perpetuity or for a -fixed term (regardless of how the transaction is characterized), the -Corresponding Source conveyed under this section must be accompanied -by the Installation Information. But this requirement does not apply -if neither you nor any third party retains the ability to install -modified object code on the User Product (for example, the work has -been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates -for a work that has been modified or installed by the recipient, or for -the User Product in which it has been modified or installed. Access to a -network may be denied when the modification itself materially and -adversely affects the operation of the network or violates the rules and -protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, -in accord with this section must be in a format that is publicly -documented (and with an implementation available to the public in -source code form), and must require no special password or key for -unpacking, reading or copying. - - 7. Additional Terms. - - "Additional permissions" are terms that supplement the terms of this -License by making exceptions from one or more of its conditions. -Additional permissions that are applicable to the entire Program shall -be treated as though they were included in this License, to the extent -that they are valid under applicable law. If additional permissions -apply only to part of the Program, that part may be used separately -under those permissions, but the entire Program remains governed by -this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option -remove any additional permissions from that copy, or from any part of -it. (Additional permissions may be written to require their own -removal in certain cases when you modify the work.) You may place -additional permissions on material, added by you to a covered work, -for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you -add to a covered work, you may (if authorized by the copyright holders of -that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the - terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or - author attributions in that material or in the Appropriate Legal - Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in - reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or - authors of the material; or - - e) Declining to grant rights under trademark law for use of some - trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that - material by anyone who conveys the material (or modified versions of - it) with contractual assumptions of liability to the recipient, for - any liability that these contractual assumptions directly impose on - those licensors and authors. - - All other non-permissive additional terms are considered "further -restrictions" within the meaning of section 10. If the Program as you -received it, or any part of it, contains a notice stating that it is -governed by this License along with a term that is a further -restriction, you may remove that term. If a license document contains -a further restriction but permits relicensing or conveying under this -License, you may add to a covered work material governed by the terms -of that license document, provided that the further restriction does -not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you -must place, in the relevant source files, a statement of the -additional terms that apply to those files, or a notice indicating -where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the -form of a separately written license, or stated as exceptions; -the above requirements apply either way. - - 8. Termination. - - You may not propagate or modify a covered work except as expressly -provided under this License. Any attempt otherwise to propagate or -modify it is void, and will automatically terminate your rights under -this License (including any patent licenses granted under the third -paragraph of section 11). - - However, if you cease all violation of this License, then your -license from a particular copyright holder is reinstated (a) -provisionally, unless and until the copyright holder explicitly and -finally terminates your license, and (b) permanently, if the copyright -holder fails to notify you of the violation by some reasonable means -prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is -reinstated permanently if the copyright holder notifies you of the -violation by some reasonable means, this is the first time you have -received notice of violation of this License (for any work) from that -copyright holder, and you cure the violation prior to 30 days after -your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under -this License. If your rights have been terminated and not permanently -reinstated, you do not qualify to receive new licenses for the same -material under section 10. - - 9. Acceptance Not Required for Having Copies. - - You are not required to accept this License in order to receive or -run a copy of the Program. Ancillary propagation of a covered work -occurring solely as a consequence of using peer-to-peer transmission -to receive a copy likewise does not require acceptance. However, -nothing other than this License grants you permission to propagate or -modify any covered work. These actions infringe copyright if you do -not accept this License. Therefore, by modifying or propagating a -covered work, you indicate your acceptance of this License to do so. - - 10. Automatic Licensing of Downstream Recipients. - - Each time you convey a covered work, the recipient automatically -receives a license from the original licensors, to run, modify and -propagate that work, subject to this License. You are not responsible -for enforcing compliance by third parties with this License. - - An "entity transaction" is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered -work results from an entity transaction, each party to that -transaction who receives a copy of the work also receives whatever -licenses to the work the party's predecessor in interest had or could -give under the previous paragraph, plus a right to possession of the -Corresponding Source of the work from the predecessor in interest, if -the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the -rights granted or affirmed under this License. For example, you may -not impose a license fee, royalty, or other charge for exercise of -rights granted under this License, and you may not initiate litigation -(including a cross-claim or counterclaim in a lawsuit) alleging that -any patent claim is infringed by making, using, selling, offering for -sale, or importing the Program or any portion of it. - - 11. Patents. - - A "contributor" is a copyright holder who authorizes use under this -License of the Program or a work on which the Program is based. The -work thus licensed is called the contributor's "contributor version". - - A contributor's "essential patent claims" are all patent claims -owned or controlled by the contributor, whether already acquired or -hereafter acquired, that would be infringed by some manner, permitted -by this License, of making, using, or selling its contributor version, -but do not include claims that would be infringed only as a -consequence of further modification of the contributor version. For -purposes of this definition, "control" includes the right to grant -patent sublicenses in a manner consistent with the requirements of -this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free -patent license under the contributor's essential patent claims, to -make, use, sell, offer for sale, import and otherwise run, modify and -propagate the contents of its contributor version. - - In the following three paragraphs, a "patent license" is any express -agreement or commitment, however denominated, not to enforce a patent -(such as an express permission to practice a patent or covenant not to -sue for patent infringement). To "grant" such a patent license to a -party means to make such an agreement or commitment not to enforce a -patent against the party. - - If you convey a covered work, knowingly relying on a patent license, -and the Corresponding Source of the work is not available for anyone -to copy, free of charge and under the terms of this License, through a -publicly available network server or other readily accessible means, -then you must either (1) cause the Corresponding Source to be so -available, or (2) arrange to deprive yourself of the benefit of the -patent license for this particular work, or (3) arrange, in a manner -consistent with the requirements of this License, to extend the patent -license to downstream recipients. "Knowingly relying" means you have -actual knowledge that, but for the patent license, your conveying the -covered work in a country, or your recipient's use of the covered work -in a country, would infringe one or more identifiable patents in that -country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or -arrangement, you convey, or propagate by procuring conveyance of, a -covered work, and grant a patent license to some of the parties -receiving the covered work authorizing them to use, propagate, modify -or convey a specific copy of the covered work, then the patent license -you grant is automatically extended to all recipients of the covered -work and works based on it. - - A patent license is "discriminatory" if it does not include within -the scope of its coverage, prohibits the exercise of, or is -conditioned on the non-exercise of one or more of the rights that are -specifically granted under this License. You may not convey a covered -work if you are a party to an arrangement with a third party that is -in the business of distributing software, under which you make payment -to the third party based on the extent of your activity of conveying -the work, and under which the third party grants, to any of the -parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work -conveyed by you (or copies made from those copies), or (b) primarily -for and in connection with specific products or compilations that -contain the covered work, unless you entered into that arrangement, -or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting -any implied license or other defenses to infringement that may -otherwise be available to you under applicable patent law. - - 12. No Surrender of Others' Freedom. - - If conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot convey a -covered work so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you may -not convey it at all. For example, if you agree to terms that obligate you -to collect a royalty for further conveying from those to whom you convey -the Program, the only way you could satisfy both those terms and this -License would be to refrain entirely from conveying the Program. - - 13. Use with the GNU Affero General Public License. - - Notwithstanding any other provision of this License, you have -permission to link or combine any covered work with a work licensed -under version 3 of the GNU Affero General Public License into a single -combined work, and to convey the resulting work. The terms of this -License will continue to apply to the part which is the covered work, -but the special requirements of the GNU Affero General Public License, -section 13, concerning interaction through a network will apply to the -combination as such. - - 14. Revised Versions of this License. - - The Free Software Foundation may publish revised and/or new versions of -the GNU General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - - Each version is given a distinguishing version number. If the -Program specifies that a certain numbered version of the GNU General -Public License "or any later version" applies to it, you have the -option of following the terms and conditions either of that numbered -version or of any later version published by the Free Software -Foundation. If the Program does not specify a version number of the -GNU General Public License, you may choose any version ever published -by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future -versions of the GNU General Public License can be used, that proxy's -public statement of acceptance of a version permanently authorizes you -to choose that version for the Program. - - Later license versions may give you additional or different -permissions. However, no additional obligations are imposed on any -author or copyright holder as a result of your choosing to follow a -later version. - - 15. Disclaimer of Warranty. - - THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY -APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT -HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY -OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, -THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM -IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF -ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - - 16. Limitation of Liability. - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS -THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY -GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE -USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF -DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD -PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), -EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF -SUCH DAMAGES. - - 17. Interpretation of Sections 15 and 16. - - If the disclaimer of warranty and limitation of liability provided -above cannot be given local legal effect according to their terms, -reviewing courts shall apply local law that most closely approximates -an absolute waiver of all civil liability in connection with the -Program, unless a warranty or assumption of liability accompanies a -copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -state the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - - If the program does terminal interaction, make it output a short -notice like this when it starts in an interactive mode: - - Copyright (C) - This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, your program's commands -might be different; for a GUI interface, you would use an "about box". - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a "copyright disclaimer" for the program, if necessary. -For more information on this, and how to apply and follow the GNU GPL, see -. - - The GNU General Public License does not permit incorporating your program -into proprietary programs. If your program is a subroutine library, you -may consider it more useful to permit linking proprietary applications with -the library. If this is what you want to do, use the GNU Lesser General -Public License instead of this License. But first, please read -. diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html deleted file mode 100644 index 45f63e20a..000000000 --- a/docs/LICENSE-text.html +++ /dev/null @@ -1,804 +0,0 @@ - - - - - - - - -License • purrr - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
                    GNU GENERAL PUBLIC LICENSE
-                       Version 3, 29 June 2007
-
- Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-                            Preamble
-
-  The GNU General Public License is a free, copyleft license for
-software and other kinds of works.
-
-  The licenses for most software and other practical works are designed
-to take away your freedom to share and change the works.  By contrast,
-the GNU General Public License is intended to guarantee your freedom to
-share and change all versions of a program--to make sure it remains free
-software for all its users.  We, the Free Software Foundation, use the
-GNU General Public License for most of our software; it applies also to
-any other work released this way by its authors.  You can apply it to
-your programs, too.
-
-  When we speak of free software, we are referring to freedom, not
-price.  Our General Public Licenses are designed to make sure that you
-have the freedom to distribute copies of free software (and charge for
-them if you wish), that you receive source code or can get it if you
-want it, that you can change the software or use pieces of it in new
-free programs, and that you know you can do these things.
-
-  To protect your rights, we need to prevent others from denying you
-these rights or asking you to surrender the rights.  Therefore, you have
-certain responsibilities if you distribute copies of the software, or if
-you modify it: responsibilities to respect the freedom of others.
-
-  For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must pass on to the recipients the same
-freedoms that you received.  You must make sure that they, too, receive
-or can get the source code.  And you must show them these terms so they
-know their rights.
-
-  Developers that use the GNU GPL protect your rights with two steps:
-(1) assert copyright on the software, and (2) offer you this License
-giving you legal permission to copy, distribute and/or modify it.
-
-  For the developers' and authors' protection, the GPL clearly explains
-that there is no warranty for this free software.  For both users' and
-authors' sake, the GPL requires that modified versions be marked as
-changed, so that their problems will not be attributed erroneously to
-authors of previous versions.
-
-  Some devices are designed to deny users access to install or run
-modified versions of the software inside them, although the manufacturer
-can do so.  This is fundamentally incompatible with the aim of
-protecting users' freedom to change the software.  The systematic
-pattern of such abuse occurs in the area of products for individuals to
-use, which is precisely where it is most unacceptable.  Therefore, we
-have designed this version of the GPL to prohibit the practice for those
-products.  If such problems arise substantially in other domains, we
-stand ready to extend this provision to those domains in future versions
-of the GPL, as needed to protect the freedom of users.
-
-  Finally, every program is threatened constantly by software patents.
-States should not allow patents to restrict development and use of
-software on general-purpose computers, but in those that do, we wish to
-avoid the special danger that patents applied to a free program could
-make it effectively proprietary.  To prevent this, the GPL assures that
-patents cannot be used to render the program non-free.
-
-  The precise terms and conditions for copying, distribution and
-modification follow.
-
-                       TERMS AND CONDITIONS
-
-  0. Definitions.
-
-  "This License" refers to version 3 of the GNU General Public License.
-
-  "Copyright" also means copyright-like laws that apply to other kinds of
-works, such as semiconductor masks.
-
-  "The Program" refers to any copyrightable work licensed under this
-License.  Each licensee is addressed as "you".  "Licensees" and
-"recipients" may be individuals or organizations.
-
-  To "modify" a work means to copy from or adapt all or part of the work
-in a fashion requiring copyright permission, other than the making of an
-exact copy.  The resulting work is called a "modified version" of the
-earlier work or a work "based on" the earlier work.
-
-  A "covered work" means either the unmodified Program or a work based
-on the Program.
-
-  To "propagate" a work means to do anything with it that, without
-permission, would make you directly or secondarily liable for
-infringement under applicable copyright law, except executing it on a
-computer or modifying a private copy.  Propagation includes copying,
-distribution (with or without modification), making available to the
-public, and in some countries other activities as well.
-
-  To "convey" a work means any kind of propagation that enables other
-parties to make or receive copies.  Mere interaction with a user through
-a computer network, with no transfer of a copy, is not conveying.
-
-  An interactive user interface displays "Appropriate Legal Notices"
-to the extent that it includes a convenient and prominently visible
-feature that (1) displays an appropriate copyright notice, and (2)
-tells the user that there is no warranty for the work (except to the
-extent that warranties are provided), that licensees may convey the
-work under this License, and how to view a copy of this License.  If
-the interface presents a list of user commands or options, such as a
-menu, a prominent item in the list meets this criterion.
-
-  1. Source Code.
-
-  The "source code" for a work means the preferred form of the work
-for making modifications to it.  "Object code" means any non-source
-form of a work.
-
-  A "Standard Interface" means an interface that either is an official
-standard defined by a recognized standards body, or, in the case of
-interfaces specified for a particular programming language, one that
-is widely used among developers working in that language.
-
-  The "System Libraries" of an executable work include anything, other
-than the work as a whole, that (a) is included in the normal form of
-packaging a Major Component, but which is not part of that Major
-Component, and (b) serves only to enable use of the work with that
-Major Component, or to implement a Standard Interface for which an
-implementation is available to the public in source code form.  A
-"Major Component", in this context, means a major essential component
-(kernel, window system, and so on) of the specific operating system
-(if any) on which the executable work runs, or a compiler used to
-produce the work, or an object code interpreter used to run it.
-
-  The "Corresponding Source" for a work in object code form means all
-the source code needed to generate, install, and (for an executable
-work) run the object code and to modify the work, including scripts to
-control those activities.  However, it does not include the work's
-System Libraries, or general-purpose tools or generally available free
-programs which are used unmodified in performing those activities but
-which are not part of the work.  For example, Corresponding Source
-includes interface definition files associated with source files for
-the work, and the source code for shared libraries and dynamically
-linked subprograms that the work is specifically designed to require,
-such as by intimate data communication or control flow between those
-subprograms and other parts of the work.
-
-  The Corresponding Source need not include anything that users
-can regenerate automatically from other parts of the Corresponding
-Source.
-
-  The Corresponding Source for a work in source code form is that
-same work.
-
-  2. Basic Permissions.
-
-  All rights granted under this License are granted for the term of
-copyright on the Program, and are irrevocable provided the stated
-conditions are met.  This License explicitly affirms your unlimited
-permission to run the unmodified Program.  The output from running a
-covered work is covered by this License only if the output, given its
-content, constitutes a covered work.  This License acknowledges your
-rights of fair use or other equivalent, as provided by copyright law.
-
-  You may make, run and propagate covered works that you do not
-convey, without conditions so long as your license otherwise remains
-in force.  You may convey covered works to others for the sole purpose
-of having them make modifications exclusively for you, or provide you
-with facilities for running those works, provided that you comply with
-the terms of this License in conveying all material for which you do
-not control copyright.  Those thus making or running the covered works
-for you must do so exclusively on your behalf, under your direction
-and control, on terms that prohibit them from making any copies of
-your copyrighted material outside their relationship with you.
-
-  Conveying under any other circumstances is permitted solely under
-the conditions stated below.  Sublicensing is not allowed; section 10
-makes it unnecessary.
-
-  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
-
-  No covered work shall be deemed part of an effective technological
-measure under any applicable law fulfilling obligations under article
-11 of the WIPO copyright treaty adopted on 20 December 1996, or
-similar laws prohibiting or restricting circumvention of such
-measures.
-
-  When you convey a covered work, you waive any legal power to forbid
-circumvention of technological measures to the extent such circumvention
-is effected by exercising rights under this License with respect to
-the covered work, and you disclaim any intention to limit operation or
-modification of the work as a means of enforcing, against the work's
-users, your or third parties' legal rights to forbid circumvention of
-technological measures.
-
-  4. Conveying Verbatim Copies.
-
-  You may convey verbatim copies of the Program's source code as you
-receive it, in any medium, provided that you conspicuously and
-appropriately publish on each copy an appropriate copyright notice;
-keep intact all notices stating that this License and any
-non-permissive terms added in accord with section 7 apply to the code;
-keep intact all notices of the absence of any warranty; and give all
-recipients a copy of this License along with the Program.
-
-  You may charge any price or no price for each copy that you convey,
-and you may offer support or warranty protection for a fee.
-
-  5. Conveying Modified Source Versions.
-
-  You may convey a work based on the Program, or the modifications to
-produce it from the Program, in the form of source code under the
-terms of section 4, provided that you also meet all of these conditions:
-
-    a) The work must carry prominent notices stating that you modified
-    it, and giving a relevant date.
-
-    b) The work must carry prominent notices stating that it is
-    released under this License and any conditions added under section
-    7.  This requirement modifies the requirement in section 4 to
-    "keep intact all notices".
-
-    c) You must license the entire work, as a whole, under this
-    License to anyone who comes into possession of a copy.  This
-    License will therefore apply, along with any applicable section 7
-    additional terms, to the whole of the work, and all its parts,
-    regardless of how they are packaged.  This License gives no
-    permission to license the work in any other way, but it does not
-    invalidate such permission if you have separately received it.
-
-    d) If the work has interactive user interfaces, each must display
-    Appropriate Legal Notices; however, if the Program has interactive
-    interfaces that do not display Appropriate Legal Notices, your
-    work need not make them do so.
-
-  A compilation of a covered work with other separate and independent
-works, which are not by their nature extensions of the covered work,
-and which are not combined with it such as to form a larger program,
-in or on a volume of a storage or distribution medium, is called an
-"aggregate" if the compilation and its resulting copyright are not
-used to limit the access or legal rights of the compilation's users
-beyond what the individual works permit.  Inclusion of a covered work
-in an aggregate does not cause this License to apply to the other
-parts of the aggregate.
-
-  6. Conveying Non-Source Forms.
-
-  You may convey a covered work in object code form under the terms
-of sections 4 and 5, provided that you also convey the
-machine-readable Corresponding Source under the terms of this License,
-in one of these ways:
-
-    a) Convey the object code in, or embodied in, a physical product
-    (including a physical distribution medium), accompanied by the
-    Corresponding Source fixed on a durable physical medium
-    customarily used for software interchange.
-
-    b) Convey the object code in, or embodied in, a physical product
-    (including a physical distribution medium), accompanied by a
-    written offer, valid for at least three years and valid for as
-    long as you offer spare parts or customer support for that product
-    model, to give anyone who possesses the object code either (1) a
-    copy of the Corresponding Source for all the software in the
-    product that is covered by this License, on a durable physical
-    medium customarily used for software interchange, for a price no
-    more than your reasonable cost of physically performing this
-    conveying of source, or (2) access to copy the
-    Corresponding Source from a network server at no charge.
-
-    c) Convey individual copies of the object code with a copy of the
-    written offer to provide the Corresponding Source.  This
-    alternative is allowed only occasionally and noncommercially, and
-    only if you received the object code with such an offer, in accord
-    with subsection 6b.
-
-    d) Convey the object code by offering access from a designated
-    place (gratis or for a charge), and offer equivalent access to the
-    Corresponding Source in the same way through the same place at no
-    further charge.  You need not require recipients to copy the
-    Corresponding Source along with the object code.  If the place to
-    copy the object code is a network server, the Corresponding Source
-    may be on a different server (operated by you or a third party)
-    that supports equivalent copying facilities, provided you maintain
-    clear directions next to the object code saying where to find the
-    Corresponding Source.  Regardless of what server hosts the
-    Corresponding Source, you remain obligated to ensure that it is
-    available for as long as needed to satisfy these requirements.
-
-    e) Convey the object code using peer-to-peer transmission, provided
-    you inform other peers where the object code and Corresponding
-    Source of the work are being offered to the general public at no
-    charge under subsection 6d.
-
-  A separable portion of the object code, whose source code is excluded
-from the Corresponding Source as a System Library, need not be
-included in conveying the object code work.
-
-  A "User Product" is either (1) a "consumer product", which means any
-tangible personal property which is normally used for personal, family,
-or household purposes, or (2) anything designed or sold for incorporation
-into a dwelling.  In determining whether a product is a consumer product,
-doubtful cases shall be resolved in favor of coverage.  For a particular
-product received by a particular user, "normally used" refers to a
-typical or common use of that class of product, regardless of the status
-of the particular user or of the way in which the particular user
-actually uses, or expects or is expected to use, the product.  A product
-is a consumer product regardless of whether the product has substantial
-commercial, industrial or non-consumer uses, unless such uses represent
-the only significant mode of use of the product.
-
-  "Installation Information" for a User Product means any methods,
-procedures, authorization keys, or other information required to install
-and execute modified versions of a covered work in that User Product from
-a modified version of its Corresponding Source.  The information must
-suffice to ensure that the continued functioning of the modified object
-code is in no case prevented or interfered with solely because
-modification has been made.
-
-  If you convey an object code work under this section in, or with, or
-specifically for use in, a User Product, and the conveying occurs as
-part of a transaction in which the right of possession and use of the
-User Product is transferred to the recipient in perpetuity or for a
-fixed term (regardless of how the transaction is characterized), the
-Corresponding Source conveyed under this section must be accompanied
-by the Installation Information.  But this requirement does not apply
-if neither you nor any third party retains the ability to install
-modified object code on the User Product (for example, the work has
-been installed in ROM).
-
-  The requirement to provide Installation Information does not include a
-requirement to continue to provide support service, warranty, or updates
-for a work that has been modified or installed by the recipient, or for
-the User Product in which it has been modified or installed.  Access to a
-network may be denied when the modification itself materially and
-adversely affects the operation of the network or violates the rules and
-protocols for communication across the network.
-
-  Corresponding Source conveyed, and Installation Information provided,
-in accord with this section must be in a format that is publicly
-documented (and with an implementation available to the public in
-source code form), and must require no special password or key for
-unpacking, reading or copying.
-
-  7. Additional Terms.
-
-  "Additional permissions" are terms that supplement the terms of this
-License by making exceptions from one or more of its conditions.
-Additional permissions that are applicable to the entire Program shall
-be treated as though they were included in this License, to the extent
-that they are valid under applicable law.  If additional permissions
-apply only to part of the Program, that part may be used separately
-under those permissions, but the entire Program remains governed by
-this License without regard to the additional permissions.
-
-  When you convey a copy of a covered work, you may at your option
-remove any additional permissions from that copy, or from any part of
-it.  (Additional permissions may be written to require their own
-removal in certain cases when you modify the work.)  You may place
-additional permissions on material, added by you to a covered work,
-for which you have or can give appropriate copyright permission.
-
-  Notwithstanding any other provision of this License, for material you
-add to a covered work, you may (if authorized by the copyright holders of
-that material) supplement the terms of this License with terms:
-
-    a) Disclaiming warranty or limiting liability differently from the
-    terms of sections 15 and 16 of this License; or
-
-    b) Requiring preservation of specified reasonable legal notices or
-    author attributions in that material or in the Appropriate Legal
-    Notices displayed by works containing it; or
-
-    c) Prohibiting misrepresentation of the origin of that material, or
-    requiring that modified versions of such material be marked in
-    reasonable ways as different from the original version; or
-
-    d) Limiting the use for publicity purposes of names of licensors or
-    authors of the material; or
-
-    e) Declining to grant rights under trademark law for use of some
-    trade names, trademarks, or service marks; or
-
-    f) Requiring indemnification of licensors and authors of that
-    material by anyone who conveys the material (or modified versions of
-    it) with contractual assumptions of liability to the recipient, for
-    any liability that these contractual assumptions directly impose on
-    those licensors and authors.
-
-  All other non-permissive additional terms are considered "further
-restrictions" within the meaning of section 10.  If the Program as you
-received it, or any part of it, contains a notice stating that it is
-governed by this License along with a term that is a further
-restriction, you may remove that term.  If a license document contains
-a further restriction but permits relicensing or conveying under this
-License, you may add to a covered work material governed by the terms
-of that license document, provided that the further restriction does
-not survive such relicensing or conveying.
-
-  If you add terms to a covered work in accord with this section, you
-must place, in the relevant source files, a statement of the
-additional terms that apply to those files, or a notice indicating
-where to find the applicable terms.
-
-  Additional terms, permissive or non-permissive, may be stated in the
-form of a separately written license, or stated as exceptions;
-the above requirements apply either way.
-
-  8. Termination.
-
-  You may not propagate or modify a covered work except as expressly
-provided under this License.  Any attempt otherwise to propagate or
-modify it is void, and will automatically terminate your rights under
-this License (including any patent licenses granted under the third
-paragraph of section 11).
-
-  However, if you cease all violation of this License, then your
-license from a particular copyright holder is reinstated (a)
-provisionally, unless and until the copyright holder explicitly and
-finally terminates your license, and (b) permanently, if the copyright
-holder fails to notify you of the violation by some reasonable means
-prior to 60 days after the cessation.
-
-  Moreover, your license from a particular copyright holder is
-reinstated permanently if the copyright holder notifies you of the
-violation by some reasonable means, this is the first time you have
-received notice of violation of this License (for any work) from that
-copyright holder, and you cure the violation prior to 30 days after
-your receipt of the notice.
-
-  Termination of your rights under this section does not terminate the
-licenses of parties who have received copies or rights from you under
-this License.  If your rights have been terminated and not permanently
-reinstated, you do not qualify to receive new licenses for the same
-material under section 10.
-
-  9. Acceptance Not Required for Having Copies.
-
-  You are not required to accept this License in order to receive or
-run a copy of the Program.  Ancillary propagation of a covered work
-occurring solely as a consequence of using peer-to-peer transmission
-to receive a copy likewise does not require acceptance.  However,
-nothing other than this License grants you permission to propagate or
-modify any covered work.  These actions infringe copyright if you do
-not accept this License.  Therefore, by modifying or propagating a
-covered work, you indicate your acceptance of this License to do so.
-
-  10. Automatic Licensing of Downstream Recipients.
-
-  Each time you convey a covered work, the recipient automatically
-receives a license from the original licensors, to run, modify and
-propagate that work, subject to this License.  You are not responsible
-for enforcing compliance by third parties with this License.
-
-  An "entity transaction" is a transaction transferring control of an
-organization, or substantially all assets of one, or subdividing an
-organization, or merging organizations.  If propagation of a covered
-work results from an entity transaction, each party to that
-transaction who receives a copy of the work also receives whatever
-licenses to the work the party's predecessor in interest had or could
-give under the previous paragraph, plus a right to possession of the
-Corresponding Source of the work from the predecessor in interest, if
-the predecessor has it or can get it with reasonable efforts.
-
-  You may not impose any further restrictions on the exercise of the
-rights granted or affirmed under this License.  For example, you may
-not impose a license fee, royalty, or other charge for exercise of
-rights granted under this License, and you may not initiate litigation
-(including a cross-claim or counterclaim in a lawsuit) alleging that
-any patent claim is infringed by making, using, selling, offering for
-sale, or importing the Program or any portion of it.
-
-  11. Patents.
-
-  A "contributor" is a copyright holder who authorizes use under this
-License of the Program or a work on which the Program is based.  The
-work thus licensed is called the contributor's "contributor version".
-
-  A contributor's "essential patent claims" are all patent claims
-owned or controlled by the contributor, whether already acquired or
-hereafter acquired, that would be infringed by some manner, permitted
-by this License, of making, using, or selling its contributor version,
-but do not include claims that would be infringed only as a
-consequence of further modification of the contributor version.  For
-purposes of this definition, "control" includes the right to grant
-patent sublicenses in a manner consistent with the requirements of
-this License.
-
-  Each contributor grants you a non-exclusive, worldwide, royalty-free
-patent license under the contributor's essential patent claims, to
-make, use, sell, offer for sale, import and otherwise run, modify and
-propagate the contents of its contributor version.
-
-  In the following three paragraphs, a "patent license" is any express
-agreement or commitment, however denominated, not to enforce a patent
-(such as an express permission to practice a patent or covenant not to
-sue for patent infringement).  To "grant" such a patent license to a
-party means to make such an agreement or commitment not to enforce a
-patent against the party.
-
-  If you convey a covered work, knowingly relying on a patent license,
-and the Corresponding Source of the work is not available for anyone
-to copy, free of charge and under the terms of this License, through a
-publicly available network server or other readily accessible means,
-then you must either (1) cause the Corresponding Source to be so
-available, or (2) arrange to deprive yourself of the benefit of the
-patent license for this particular work, or (3) arrange, in a manner
-consistent with the requirements of this License, to extend the patent
-license to downstream recipients.  "Knowingly relying" means you have
-actual knowledge that, but for the patent license, your conveying the
-covered work in a country, or your recipient's use of the covered work
-in a country, would infringe one or more identifiable patents in that
-country that you have reason to believe are valid.
-
-  If, pursuant to or in connection with a single transaction or
-arrangement, you convey, or propagate by procuring conveyance of, a
-covered work, and grant a patent license to some of the parties
-receiving the covered work authorizing them to use, propagate, modify
-or convey a specific copy of the covered work, then the patent license
-you grant is automatically extended to all recipients of the covered
-work and works based on it.
-
-  A patent license is "discriminatory" if it does not include within
-the scope of its coverage, prohibits the exercise of, or is
-conditioned on the non-exercise of one or more of the rights that are
-specifically granted under this License.  You may not convey a covered
-work if you are a party to an arrangement with a third party that is
-in the business of distributing software, under which you make payment
-to the third party based on the extent of your activity of conveying
-the work, and under which the third party grants, to any of the
-parties who would receive the covered work from you, a discriminatory
-patent license (a) in connection with copies of the covered work
-conveyed by you (or copies made from those copies), or (b) primarily
-for and in connection with specific products or compilations that
-contain the covered work, unless you entered into that arrangement,
-or that patent license was granted, prior to 28 March 2007.
-
-  Nothing in this License shall be construed as excluding or limiting
-any implied license or other defenses to infringement that may
-otherwise be available to you under applicable patent law.
-
-  12. No Surrender of Others' Freedom.
-
-  If conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License.  If you cannot convey a
-covered work so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you may
-not convey it at all.  For example, if you agree to terms that obligate you
-to collect a royalty for further conveying from those to whom you convey
-the Program, the only way you could satisfy both those terms and this
-License would be to refrain entirely from conveying the Program.
-
-  13. Use with the GNU Affero General Public License.
-
-  Notwithstanding any other provision of this License, you have
-permission to link or combine any covered work with a work licensed
-under version 3 of the GNU Affero General Public License into a single
-combined work, and to convey the resulting work.  The terms of this
-License will continue to apply to the part which is the covered work,
-but the special requirements of the GNU Affero General Public License,
-section 13, concerning interaction through a network will apply to the
-combination as such.
-
-  14. Revised Versions of this License.
-
-  The Free Software Foundation may publish revised and/or new versions of
-the GNU General Public License from time to time.  Such new versions will
-be similar in spirit to the present version, but may differ in detail to
-address new problems or concerns.
-
-  Each version is given a distinguishing version number.  If the
-Program specifies that a certain numbered version of the GNU General
-Public License "or any later version" applies to it, you have the
-option of following the terms and conditions either of that numbered
-version or of any later version published by the Free Software
-Foundation.  If the Program does not specify a version number of the
-GNU General Public License, you may choose any version ever published
-by the Free Software Foundation.
-
-  If the Program specifies that a proxy can decide which future
-versions of the GNU General Public License can be used, that proxy's
-public statement of acceptance of a version permanently authorizes you
-to choose that version for the Program.
-
-  Later license versions may give you additional or different
-permissions.  However, no additional obligations are imposed on any
-author or copyright holder as a result of your choosing to follow a
-later version.
-
-  15. Disclaimer of Warranty.
-
-  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
-APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
-HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
-OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
-THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
-IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
-ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
-  16. Limitation of Liability.
-
-  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
-WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
-THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
-GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
-USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
-DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
-PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
-EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
-SUCH DAMAGES.
-
-  17. Interpretation of Sections 15 and 16.
-
-  If the disclaimer of warranty and limitation of liability provided
-above cannot be given local legal effect according to their terms,
-reviewing courts shall apply local law that most closely approximates
-an absolute waiver of all civil liability in connection with the
-Program, unless a warranty or assumption of liability accompanies a
-copy of the Program in return for a fee.
-
-                     END OF TERMS AND CONDITIONS
-
-            How to Apply These Terms to Your New Programs
-
-  If you develop a new program, and you want it to be of the greatest
-possible use to the public, the best way to achieve this is to make it
-free software which everyone can redistribute and change under these terms.
-
-  To do so, attach the following notices to the program.  It is safest
-to attach them to the start of each source file to most effectively
-state the exclusion of warranty; and each file should have at least
-the "copyright" line and a pointer to where the full notice is found.
-
-    <one line to give the program's name and a brief idea of what it does.>
-    Copyright (C) <year>  <name of author>
-
-    This program is free software: you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation, either version 3 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
-Also add information on how to contact you by electronic and paper mail.
-
-  If the program does terminal interaction, make it output a short
-notice like this when it starts in an interactive mode:
-
-    <program>  Copyright (C) <year>  <name of author>
-    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
-    This is free software, and you are welcome to redistribute it
-    under certain conditions; type `show c' for details.
-
-The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License.  Of course, your program's commands
-might be different; for a GUI interface, you would use an "about box".
-
-  You should also get your employer (if you work as a programmer) or school,
-if any, to sign a "copyright disclaimer" for the program, if necessary.
-For more information on this, and how to apply and follow the GNU GPL, see
-<http://www.gnu.org/licenses/>.
-
-  The GNU General Public License does not permit incorporating your program
-into proprietary programs.  If your program is a subroutine library, you
-may consider it more useful to permit linking proprietary applications with
-the library.  If this is what you want to do, use the GNU Lesser General
-Public License instead of this License.  But first, please read
-<http://www.gnu.org/philosophy/why-not-lgpl.html>.
-
- -
- -
- - -
-
-

purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

-
- -
-

Developed by Lionel Henry, Hadley Wickham, RStudio.

-

Site built by pkgdown.

-
- - - -
-
- - - - - - diff --git a/docs/articles/index.html b/docs/articles/index.html deleted file mode 100644 index 8aa05442d..000000000 --- a/docs/articles/index.html +++ /dev/null @@ -1,134 +0,0 @@ - - - - - - - - -Articles • purrr - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
-

All vignettes

-

- - -
-
-
- -
-
-

purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

-
- -
-

Developed by Lionel Henry, Hadley Wickham, RStudio.

-

Site built by pkgdown.

-
- - - -
-
- - - - - - diff --git a/docs/articles/other-langs.html b/docs/articles/other-langs.html deleted file mode 100644 index 5b3ad4023..000000000 --- a/docs/articles/other-langs.html +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - - -Functional programming in other languages • purrr - - - - - - -
-
- - - -
-
- - - - -

purrr draws inspiration from many related tools:

-
    -
  • List operations defined in the Haskell prelude

  • -
  • Scala’s list methods.

  • -
  • Functional programming librarys for javascript: underscore.js, lodash and lazy.js.

  • -
  • rlist, another R package to support working with lists. Similar goals but somewhat different philosophy.

  • -
-

However, the goal of purrr is not to try and simulate a purer functional programming language in R; we don’t want to implement a second-class version of Haskell in R. The goal is to give you similar expressiveness to an FP language, while allowing you to write code that looks and works like R:

-
    -
  • Instead of point free (tacit) style, we use the pipe, %>%, to write code that can be read from left to right.

  • -
  • Instead of currying, we use ... to pass in extra arguments.

  • -
  • Anonymous functions are verbose in R, so we provide two convenient shorthands. For unary functions, ~ .x + 1 is equivalent to function(.x) .x + 1. For chains of transformations functions, . %>% f() %>% g() is equivalent to function(.) . %>% f() %>% g() (this shortcut is provided by magrittr).

  • -
  • R is weakly typed, so we need map variants that describe the output type (like map_int(), map_dbl(), etc) because we don’t know the return type of .f.

  • -
  • R has named arguments, so instead of providing different functions for minor variations (e.g. detect() and detectLast()) we use a named argument, .right. Type-stable functions are easy to reason about so additional arguments will never change the type of the output.

  • -
-
- - - -
- - -
-

purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

-
- -
-

Developed by Lionel Henry, Hadley Wickham, RStudio.

-

Site built by pkgdown.

-
- -
-
- - - - - diff --git a/docs/authors.html b/docs/authors.html deleted file mode 100644 index 715ea6d0c..000000000 --- a/docs/authors.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - - - -Authors • purrr - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
    -
  • -

    Lionel Henry. Author, maintainer. -

    -
  • -
  • -

    Hadley Wickham. Author. -

    -
  • -
  • -

    RStudio. Copyright holder, funder. -

    -
  • -
- -
- -
- - -
-
-

purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

-
- -
-

Developed by Lionel Henry, Hadley Wickham, RStudio.

-

Site built by pkgdown.

-
- - - -
-
- - - - - - diff --git a/docs/favicon.ico b/docs/favicon.ico deleted file mode 100644 index 12ce48844..000000000 Binary files a/docs/favicon.ico and /dev/null differ diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index fa322f87e..000000000 --- a/docs/index.html +++ /dev/null @@ -1,193 +0,0 @@ - - - - - - - -Functional Programming Tools • purrr - - - - - - -
-
- - - -
-
- - - - - -
- - -
-

-Overview

-

purrr enhances R’s functional programming (FP) toolkit by providing a complete and consistent set of tools for working with functions and vectors. If you’ve never heard of FP before, the best place to start is the family of map() functions which allow you to replace many for loops with code that is both more succinct and easier to read. The best place to learn about the map() functions is the iteration chapter in R for data science.

-
- -
-

-Usage

-

The following example uses purrr to solve a fairly realistic problem: split a data frame into pieces, fit a model to each piece, compute the summary, then extract the R2.

- -

This example illustrates some of the advantages of purrr functions over the equivalents in base R:

-
    -
  • The first argument is always the data, so purrr works naturally with the pipe.

  • -
  • All purrr functions are type-stable. They always return the advertised output type (map() returns lists; map_dbl() returns double vectors), or they throw an errror.

  • -
  • All map() functions either accept function, formulas (used for succinctly generating anonymous functions), a character vector (used to extract components by name), or a numeric vector (used to extract by position).

  • -
-

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

-
-
-
- - - -
- - -
-

purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

-
- -
-

Developed by Lionel Henry, Hadley Wickham, RStudio.

-

Site built by pkgdown.

-
- -
-
- - - - - diff --git a/docs/jquery.sticky-kit.min.js b/docs/jquery.sticky-kit.min.js deleted file mode 100644 index e2a3c6de9..000000000 --- a/docs/jquery.sticky-kit.min.js +++ /dev/null @@ -1,9 +0,0 @@ -/* - Sticky-kit v1.1.2 | WTFPL | Leaf Corcoran 2015 | http://leafo.net -*/ -(function(){var b,f;b=this.jQuery||window.jQuery;f=b(window);b.fn.stick_in_parent=function(d){var A,w,J,n,B,K,p,q,k,E,t;null==d&&(d={});t=d.sticky_class;B=d.inner_scrolling;E=d.recalc_every;k=d.parent;q=d.offset_top;p=d.spacer;w=d.bottoming;null==q&&(q=0);null==k&&(k=void 0);null==B&&(B=!0);null==t&&(t="is_stuck");A=b(document);null==w&&(w=!0);J=function(a,d,n,C,F,u,r,G){var v,H,m,D,I,c,g,x,y,z,h,l;if(!a.data("sticky_kit")){a.data("sticky_kit",!0);I=A.height();g=a.parent();null!=k&&(g=g.closest(k)); -if(!g.length)throw"failed to find stick parent";v=m=!1;(h=null!=p?p&&a.closest(p):b("
"))&&h.css("position",a.css("position"));x=function(){var c,f,e;if(!G&&(I=A.height(),c=parseInt(g.css("border-top-width"),10),f=parseInt(g.css("padding-top"),10),d=parseInt(g.css("padding-bottom"),10),n=g.offset().top+c+f,C=g.height(),m&&(v=m=!1,null==p&&(a.insertAfter(h),h.detach()),a.css({position:"",top:"",width:"",bottom:""}).removeClass(t),e=!0),F=a.offset().top-(parseInt(a.css("margin-top"),10)||0)-q, -u=a.outerHeight(!0),r=a.css("float"),h&&h.css({width:a.outerWidth(!0),height:u,display:a.css("display"),"vertical-align":a.css("vertical-align"),"float":r}),e))return l()};x();if(u!==C)return D=void 0,c=q,z=E,l=function(){var b,l,e,k;if(!G&&(e=!1,null!=z&&(--z,0>=z&&(z=E,x(),e=!0)),e||A.height()===I||x(),e=f.scrollTop(),null!=D&&(l=e-D),D=e,m?(w&&(k=e+u+c>C+n,v&&!k&&(v=!1,a.css({position:"fixed",bottom:"",top:c}).trigger("sticky_kit:unbottom"))),eb&&!v&&(c-=l,c=Math.max(b-u,c),c=Math.min(q,c),m&&a.css({top:c+"px"})))):e>F&&(m=!0,b={position:"fixed",top:c},b.width="border-box"===a.css("box-sizing")?a.outerWidth()+"px":a.width()+"px",a.css(b).addClass(t),null==p&&(a.after(h),"left"!==r&&"right"!==r||h.append(a)),a.trigger("sticky_kit:stick")),m&&w&&(null==k&&(k=e+u+c>C+n),!v&&k)))return v=!0,"static"===g.css("position")&&g.css({position:"relative"}), -a.css({position:"absolute",bottom:d,top:"auto"}).trigger("sticky_kit:bottom")},y=function(){x();return l()},H=function(){G=!0;f.off("touchmove",l);f.off("scroll",l);f.off("resize",y);b(document.body).off("sticky_kit:recalc",y);a.off("sticky_kit:detach",H);a.removeData("sticky_kit");a.css({position:"",bottom:"",top:"",width:""});g.position("position","");if(m)return null==p&&("left"!==r&&"right"!==r||a.insertAfter(h),h.remove()),a.removeClass(t)},f.on("touchmove",l),f.on("scroll",l),f.on("resize", -y),b(document.body).on("sticky_kit:recalc",y),a.on("sticky_kit:detach",H),setTimeout(l,0)}};n=0;for(K=this.length;n - - - - - diff --git a/docs/logo.png b/docs/logo.png deleted file mode 100644 index d109b9698..000000000 Binary files a/docs/logo.png and /dev/null differ diff --git a/docs/news/index.html b/docs/news/index.html deleted file mode 100644 index 1046618ea..000000000 --- a/docs/news/index.html +++ /dev/null @@ -1,356 +0,0 @@ - - - - - - - - -Changelog • purrr - - - - - - - - - - - - - - - - - - - - - - - -
-
- - - -
- -
-
- - -
-

-purrr 0.2.4.9000 Unreleased -

- -
-
-

-purrr 0.2.4 2017-10-18 -

-
    -
  • Fixes for R 3.1.
  • -
-
-
-

-purrr 0.2.3 2017-08-02 -

-
-

-Breaking changes

-

We noticed the following issues during reverse dependencies checks:

-
    -
  • If reduce() fails with this message: Error: `.x` is empty, and no `.init` supplied, this is because reduce() now returns .init when .x is empty. Fix the problem by supplying an appropriate argument to .init, or by providing special behaviour when .x has length 0.

  • -
  • The type predicates have been migrated to rlang. Consequently the bare-type-predicates documentation topic is no longer in purrr, which might cause a warning if you cross-reference it.

  • -
-
-
-

-Dependencies

-

purrr no longer depends on lazyeval or Rcpp (or dplyr, as of the previous version). This makes the dependency graph of the tidyverse simpler, and makes purrr more suitable as a dependency of lower-level packages.

-

There have also been two changes to eliminate name conflicts between purrr and dplyr:

-
    -
  • order_by(), sort_by() and split_by() have been removed. order_by() conflicted with dplyr::order_by() and the complete family doesn’t feel that useful. Use tibbles instead (#217).

  • -
  • contains() has been renamed to has_element() to avoid conflicts with dplyr (#217).

  • -
-
-
-

-pluck()

-

The plucking mechanism used for indexing into data structures with map() has been extracted into the function pluck(). Plucking is often more readable to extract an element buried in a deep data structure. Compare this syntax-heavy extraction which reads non-linearly:

-
accessor(x[[1]])$foo
-

to the equivalent pluck:

-
x %>% pluck(1, accessor, "foo")
-
-
-

-Map helpers

-
    -
  • -

    as_function() is now as_mapper() because it is a tranformation that makes sense primarily for mapping functions, not in general (#298). .null has been renamed to .default to better reflect its intent (#298). .default is returned whenever an element is absent or empty (#231, #254).

    -

    as_mapper() sanitises primitive functions by transforming them to closures with standardised argument names (using rlang::as_closure()). For instance + is transformed to function(.x, .y) .x + .y. This results in proper argument matching so that map(1:10, partial(-, .x = 5)) produces list(5 - 1, 5 - 2, ...).

    -
  • -
  • Recursive indexing can now extract objects out of environments (#213) and S4 objects (#200), as well as lists.

  • -
  • attr_getter() makes it possible to extract from attributes like map(list(iris, mtcars), attr_getter("row.names")).

  • -
  • The argument list for formula-functions has been tweaked so that you can refer to arguments by position with ..1, ..2, and so on. This makes it possible to use the formula shorthand for functions with more than two arguments (#289).

  • -
  • possibly(), safely() and friends no longer capture interrupts: this means that you can now terminate a mapper using one of these with Escape or Ctrl + C (#314)

  • -
-
-
-

-Map functions

-
    -
  • All map functions now treat NULL the same way as an empty vector (#199), and return an empty vector if any input is an empty vector.

  • -
  • All map() functions now force their arguments in the same way that base R does for lapply() (#191). This makes map() etc easier to use when generating functions.

  • -
  • A new family of “indexed” map functions, imap(), imap_lgl() etc, provide a short-hand for map2(x, names(x)) or map2(x, seq_along(x)) (#240).

  • -
  • The data frame suffix _df has been (soft) deprecated in favour of _dfr to more clearly indicate that it’s a row-bind. All variants now also have a _dfc for column binding (#167). (These will not be terribly useful until dplyr::bind_rows()/dplyr::bind_cols() have better semantics for vectors.)

  • -
-
-
-

-Modify functions

-

A new modify() family returns the same output of the type as the input .x. This is in contrast to the map() family which always returns a list, regardless of the input type.

-

The modify functions are S3 generics. However their default methods should be sufficient for most classes since they rely on the semantics of [<-. modify.default() is thus a shorthand for x[] <- map(x, f).

- -
-
-

-New functions

-
    -
  • auto_browse(f) returns a new function that automatically calls browser() if f throws an error (#281).

  • -
  • vec_depth() computes the depth (i.e. the number of levels of indexing) or a vector (#243).

  • -
  • reduce2() and reduce2_right() make it possible to reduce with a 3 argument function where the first argument is the accumulated value, the second argument is .x, and the third argument is .y (#163).

  • -
  • list_modify() extends stats::modifyList() to replace by position if the list is not named.(#201). list_merge() operates similarly to list_modify() but combines instead of replacing (#322).

  • -
  • The legacy function update_list() is basically a version of list_modify that evaluates formulas within the list. It is likely to be deprecated in the future in favour of a tidyeval interface such as a list method for dplyr::mutate().

  • -
-
-
-

-Minor improvements and bug fixes

-
    -
  • Thanks to @dchiu911, the unit test coverage of purrr is now much greater.

  • -
  • All predicate functions are re-exported from rlang (#124).

  • -
  • compact() now works with standard mapper conventions (#282).

  • -
  • cross_n() has been renamed to cross(). The _n suffix was removed for consistency with pmap() (originally called map_n() at the start of the project) and transpose() (originally called zip_n()). Similarly, cross_d() has been renamed to cross_df() for consistency with map_df().

  • -
  • every() and some() now return NA if present in the input (#174).

  • -
  • invoke() uses a more robust approach to generate the argument list (#249) It no longer uses lazyeval to figure out which enviroment a character f comes from.

  • -
  • is_numeric() and is_scalar_numeric() are deprecated because they don’t test for what you might expect at first sight.

  • -
  • reduce() now throws an error if .x is empty and .init is not supplied.

  • -
  • Deprecated functions flatmap(), map3(), map_n(), walk3(), walk_n(), zip2(), zip3(), zip_n() have been removed.

  • -
  • pmap() coerces data frames to lists to avoid the expensive [.data.frame which provides security that is unneeded here (#220).

  • -
  • rdunif() checks its inputs for validity (#211).

  • -
  • set_names() can now take a function to tranform the names programmatically (#276), and you can supply names in ... to reduce typing even more more (#316). set_names() is now powered by rlang::set_names().

  • -
  • safely() now actually uses the quiet argument (#296).

  • -
  • transpose() now matches by name if available (#164). You can override the default choice with the new .names argument.

  • -
  • The function argument of detect() and detect_index() have been renamed from .p to .f. This is because they have mapper semantics rather than predicate semantics.

  • -
-
-
-
-

-purrr 0.2.2.1 Unreleased -

-

This is a compatibility release with dplyr 0.6.0.

-
    -
  • All data-frame based mappers have been removed in favour of new functions and idioms in the tidyverse. dmap(), dmap_at(), dmap_if(), invoke_rows(), slice_rows(), map_rows(), by_slice(), by_row(), and unslice() have been moved to purrrlyr. This is a bit of an aggresive change but it allows us to make the dependencies much lighter.
  • -
-
-
-

-purrr 0.2.2 2016-06-18 -

-
    -
  • Fix for dev tibble support.

  • -
  • as_function() now supports list arguments which allow recursive indexing using either names or positions. They now always stop when encountering the first NULL (#173).

  • -
  • accumulate and reduce correctly pass extra arguments to the worker function.

  • -
-
-
-

-purrr 0.2.1 2016-02-13 -

-
    -
  • as_function() gains a .null argument that for character and numeric values allows you to specify what to return for null/absent elements (#110). This can be used with any map function, e.g. map_int(x, 1, .null = NA)

  • -
  • as_function() is now generic.

  • -
  • New is_function() that returns TRUE only for regular functions.

  • -
  • Fix crash on GCC triggered by invoke_rows().

  • -
-
-
-

-purrr 0.2.0 2016-01-04 -

-
-

-New functions

- -
-
-

-Row based functionals

-

We are still figuring out what belongs in dplyr and what belongs in purrr. Expect much experimentation and many changes with these functions.

-
    -
  • map() now always returns a list. Data frame support has been moved to map_df() and dmap(). The latter supports sliced data frames as a shortcut for the combination of by_slice() and dmap(): x %>% by_slice(dmap, fun, .collate = "rows"). The conditional variants dmap_at() and dmap_if() also support sliced data frames and will recycle scalar results to the slice size.

  • -
  • map_rows() has been renamed to invoke_rows(). As other rows-based functionals, it collates results inside lists by default, but with column collation this function is equivalent to plyr::mdply().

  • -
  • The rows-based functionals gain a .to option to name the output column as well as a .collate argument. The latter allows to collate the output in lists (by default), on columns or on rows. This makes these functions more flexible and more predictable.

  • -
-
-
-

-Bug fixes and minor changes

-
    -
  • as_function(), which converts formulas etc to functions, is now exported (#123).

  • -
  • rerun() is correctly scoped (#95)

  • -
  • update_list() can now modify an element called x (#98).

  • -
  • map*() now use custom C code, rather than relying on lapply(), mapply() etc. The performance characteristcs are very similar, but it allows us greater control over the output (#118).

  • -
  • map_lgl() now has second argument .f, not .p (#134).

  • -
-
-
-

-Deprecated functions

- -
-
-
- - - -
- -
-
-

purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

-
- -
-

Developed by Lionel Henry, Hadley Wickham, RStudio.

-

Site built by pkgdown.

-
- - - -
-
- - - - - - diff --git a/docs/pkgdown.css b/docs/pkgdown.css deleted file mode 100644 index d1dc62d87..000000000 --- a/docs/pkgdown.css +++ /dev/null @@ -1,243 +0,0 @@ -img.icon { - float: left; - margin-left: -35px; - width: 30px; - height: 30px; -} - -body {font-size: 16px;} -h1 {font-size: 40px;} -h2 {font-size: 30px;} - -/* Fixes for fixed navbar --------------------------*/ - -body { - position: relative; - padding-top: 65px; -} - -.contents h1, .contents h2, .contents h3, .contents h4 { - padding-top: 65px; - margin-top: -45px; -} - -.page-header { - margin-top: 0; - margin-bottom: 10px; - padding-bottom: 0px; -} - -/* Static header placement on mobile devices */ -@media (max-width: 767px) { - .navbar-fixed-top { - position: absolute; - } -} - -.navbar-toggle { - margin-top: 8px; - margin-bottom: 5px; -} - -.navbar-nav li a { - padding-bottom: 10px; -} -.navbar-default .navbar-nav > .active > a, -.navbar-default .navbar-nav > .active > a:hover, -.navbar-default .navbar-nav > .active > a:focus { - background-color: #eee; -} - -/* Table of contents --------------------------*/ - -#sidebar { - /* - Needed to avoid bug in sticky-kit: - https://github.com/leafo/sticky-kit/issues/169 - */ - position:static; -} - -#sidebar h2 { - font-size: 1.6em; - margin-top: 1em; - margin-bottom: 0.25em; -} - -#sidebar .list-unstyled li { - margin-bottom: 0.5em; - line-height: 1.4; -} - -#sidebar small { - color: #777; -} - -/* Syntax highlighting ---------------------------------------------------- */ - -pre { - word-wrap: normal; - word-break: normal; - border: none; -} - -pre, code { - background-color: #fafafa; - color: #000000; - -webkit-font-smoothing: subpixel-antialiased; -} - -pre img { - background-color: #fff; - display: block; -} - -code a, pre a { - color: #375f84; -} - -.fl {color: #1514b5;} -.fu {color: #000000;} /* function */ -.ch,.st {color: #036a07;} /* string */ -.kw {color: #264D66;} /* keyword */ -.co {color: #777777;} /* comment */ - -.message { color: black; font-weight: bolder;} -.error { color: orange; font-weight: bolder;} -.warning { color: orange; font-weight: normal;} - - -/* Status --------------------------- */ - -.status-container { - padding-top:32px; -} - -.status-container a { - display: block; - margin-bottom: 5px; -} - -/* For shrinking navbar ------------------ */ - -/* For big header - - &-brand { - font-family: $font-family-monospace; - font-weight: normal; - font-size: 48px; - padding: 35px 15px; - - padding-left: 84px; - background-image:url(../logo.png); - background-size: 60px auto; - background-repeat: no-repeat; - background-position: 15px center; - - } -*/ - -/* Reference index & topics ----------------------------------------------- */ - -.ref-index th {font-weight: normal;} -.ref-index h2 {font-size: 20px;} - -.ref-index td {vertical-align: top;} -.ref-index .alias {width: 40%;} -.ref-index .title {width: 60%;} - -.ref-index .alias {width: 40%;} -.ref-index .title {width: 60%;} - -.ref-arguments th {text-align: right; padding-right: 10px;} -.ref-arguments th, .ref-arguments td {vertical-align: top;} -.ref-arguments .name {width: 10%;} -.ref-arguments .desc {width: 90%;} - -/* For the rstudio footer ------- */ - -footer { - margin-top: 45px; - padding: 35px 0 36px; - border-top: 1px solid #e5e5e5; - - display: flex; - color: #666; -} -footer p { - margin-bottom: 0; -} -footer .tidyverse { - flex: 1; -} -footer .author { - flex: 1; - text-align: right; -} - -/* ---------------------- hover anchor tags */ - -.hasAnchor { - margin-left: -30px; -} - -a.anchor { - display:inline-block; - width: 30px; - height: 30px; - visibility: hidden; - - background-image: url(./link.svg); - background-repeat: no-repeat; - background-size: 20px 20px; - background-position: center center; -} - -.hasAnchor:hover a.anchor { - visibility: visible; -} - -@media (max-width: 767px) { - .hasAnchor {margin-left: 0;} - a.anchor {float: right;} -} - -/* Tweak appearance of navigation in sidebar ---------------------- */ - -#sidebar .nav { - padding-left: 0px; - list-style-type: none; - color: #5a9ddb; -} - -#sidebar .nav > li { - padding: 10px 0 0px 20px; - display: list-item; - line-height: 20px; - background-image: url(./tocBullet.svg); - background-repeat: no-repeat; - background-size: 16px 280px; - background-position: left 0px; -} - -#sidebar .nav > li.active { - background-position: left -240px; -} - -#sidebar a { - padding: 0px; - color: #5a9ddb; - background-color: transparent; -} - -#sidebar a:hover { - background-color: transparent; - text-decoration: underline; -} - -/* orcid ------------------------------------ */ - -.orcid { - height: 16px; - vertical-align: middle; -} diff --git a/docs/pkgdown.js b/docs/pkgdown.js deleted file mode 100644 index e6ff1a3ee..000000000 --- a/docs/pkgdown.js +++ /dev/null @@ -1,49 +0,0 @@ -$(function() { - $("#sidebar").stick_in_parent({ - offset_top: $("#sidebar").offset().top - }); - $('body').scrollspy({ - target: '#sidebar' - }); - - var cur_path = paths(location.pathname); - $("#navbar ul li a").each(function(index, value) { - if (value.text == "Home") - return; - if (value.getAttribute("href") === "#") - return; - - var path = paths(value.pathname); - if (is_prefix(cur_path, path)) { - // Add class to parent
  • , and enclosing
  • if in dropdown - var menu_anchor = $(value); - menu_anchor.parent().addClass("active"); - menu_anchor.closest("li.dropdown").addClass("active"); - } - }); - -}); - - - -function paths(pathname) { - var pieces = pathname.split("/"); - pieces.shift(); // always starts with / - - var end = pieces[pieces.length - 1]; - if (end === "index.html" || end === "") - pieces.pop(); - return(pieces); -} - -function is_prefix(needle, haystack) { - if (needle.length > haystack.lengh) - return(false); - - for (var i = 0; i < haystack.length; i++) { - if (needle[i] != haystack[i]) - return(false); - } - - return(true); -} diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml deleted file mode 100644 index 6212d0e9e..000000000 --- a/docs/pkgdown.yml +++ /dev/null @@ -1,6 +0,0 @@ -pandoc: 2.1.3 -pkgdown: 1.0.0 -pkgdown_sha: ~ -articles: - other-langs: other-langs.html - diff --git a/docs/reference/accumulate.html b/docs/reference/accumulate.html deleted file mode 100644 index 56ce745f2..000000000 --- a/docs/reference/accumulate.html +++ /dev/null @@ -1,208 +0,0 @@ - - - - - - - - -Accumulate recursive folds across a list — accumulate • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    accumulate applies a function recursively over a list from the left, while -accumulate_right applies the function from the right. Unlike reduce -both functions keep the intermediate results.

    - -
    - -
    accumulate(.x, .f, ..., .init)
    -
    -accumulate_right(.x, .f, ..., .init)
    - -

    Arguments

    - - - - - - - - - - - - - - - - - - -
    .x

    A list or atomic vector.

    .f

    For reduce(), a 2-argument function. The function will be -passed the accumulated value as the first argument and the "next" value -as the second argument.

    -

    For reduce2(), a 3-argument function. The function will be passed the -accumulated value as the first argument, the next value of .x as the -second argument, and the next value of .y as the third argument.

    ...

    Additional arguments passed on to .f.

    .init

    If supplied, will be used as the first value to start -the accumulation, rather than using x[[1]]. This is useful if -you want to ensure that reduce returns a correct value when .x -is empty. If missing, and x is empty, will throw an error.

    - -

    Value

    - -

    A vector the same length of .x with the same names as .x

    - - -

    Examples

    -
    1:3 %>% accumulate(`+`)
    #> [1] 1 3 6
    1:10 %>% accumulate_right(`*`)
    #> [1] 3628800 3628800 1814400 604800 151200 30240 5040 720 90 -#> [10] 10
    -# From Haskell's scanl documentation -1:10 %>% accumulate(max, .init = 5)
    #> [1] 5 5 5 5 5 5 6 7 8 9 10
    -# Understanding the arguments .x and .y when .f -# is a lambda function -# .x is the accumulating value -1:10 %>% accumulate(~ .x)
    #> [1] 1 1 1 1 1 1 1 1 1 1
    # .y is element in the list -1:10 %>% accumulate(~ .y)
    #> [1] 1 2 3 4 5 6 7 8 9 10
    -# Simulating stochastic processes with drift -
    # NOT RUN { -library(dplyr) -library(ggplot2) - -rerun(5, rnorm(100)) %>% - set_names(paste0("sim", 1:5)) %>% - map(~ accumulate(., ~ .05 + .x + .y)) %>% - map_dfr(~ data_frame(value = .x, step = 1:100), .id = "simulation") %>% - ggplot(aes(x = step, y = value)) + - geom_line(aes(color = simulation)) + - ggtitle("Simulations of a random walk with drift") -# }
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/along.html b/docs/reference/along.html deleted file mode 100644 index b4d325331..000000000 --- a/docs/reference/along.html +++ /dev/null @@ -1,186 +0,0 @@ - - - - - - - - -Helper to create vectors with matching length. — along • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    These functions take the idea of seq_along() and generalise -it to creating lists (list_along) and repeating values -(rep_along).

    - -
    - -
    list_along(x)
    -
    -rep_along(x, y)
    - -

    Arguments

    - - - - - - - - - - -
    x

    A vector.

    y

    Values to repeat.

    - -

    Value

    - -

    A vector of the same length as x.

    - - -

    Examples

    -
    x <- 1:5 -rep_along(x, 1:2)
    #> [1] 1 2 1 2 1
    rep_along(x, 1)
    #> [1] 1 1 1 1 1
    list_along(x)
    #> [[1]] -#> NULL -#> -#> [[2]] -#> NULL -#> -#> [[3]] -#> NULL -#> -#> [[4]] -#> NULL -#> -#> [[5]] -#> NULL -#>
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/array-coercion.html b/docs/reference/array-coercion.html deleted file mode 100644 index 4c8045fbe..000000000 --- a/docs/reference/array-coercion.html +++ /dev/null @@ -1,247 +0,0 @@ - - - - - - - - -Coerce array to list — array-coercion • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    array_branch() and array_tree() enable arrays to be -used with purrr's functionals by turning them into lists. The -details of the coercion are controlled by the margin -argument. array_tree() creates an hierarchical list (a tree) -that has as many levels as dimensions specified in margin, -while array_branch() creates a flat list (by analogy, a -branch) along all mentioned dimensions.

    - -
    - -
    array_branch(array, margin = NULL)
    -
    -array_tree(array, margin = NULL)
    - -

    Arguments

    - - - - - - - - - - -
    array

    An array to coerce into a list.

    margin

    A numeric vector indicating the positions of the -indices to be to be enlisted. If NULL, a full margin is -used. If numeric(0), the array as a whole is wrapped in a -list.

    - -

    Details

    - -

    When no margin is specified, all dimensions are used by -default. When margin is a numeric vector of length zero, the -whole array is wrapped in a list.

    - - -

    Examples

    -
    # We create an array with 3 dimensions -x <- array(1:12, c(2, 2, 3)) - -# A full margin for such an array would be the vector 1:3. This is -# the default if you don't specify a margin - -# Creating a branch along the full margin is equivalent to -# as.list(array) and produces a list of size length(x): -array_branch(x) %>% str()
    #> List of 12 -#> $ : int 1 -#> $ : int 2 -#> $ : int 3 -#> $ : int 4 -#> $ : int 5 -#> $ : int 6 -#> $ : int 7 -#> $ : int 8 -#> $ : int 9 -#> $ : int 10 -#> $ : int 11 -#> $ : int 12
    -# A branch along the first dimension yields a list of length 2 -# with each element containing a 2x3 array: -array_branch(x, 1) %>% str()
    #> List of 2 -#> $ : int [1:2, 1:3] 1 3 5 7 9 11 -#> $ : int [1:2, 1:3] 2 4 6 8 10 12
    -# A branch along the first and third dimensions yields a list of -# length 2x3 whose elements contain a vector of length 2: -array_branch(x, c(1, 3)) %>% str()
    #> List of 6 -#> $ : int [1:2] 1 3 -#> $ : int [1:2] 2 4 -#> $ : int [1:2] 5 7 -#> $ : int [1:2] 6 8 -#> $ : int [1:2] 9 11 -#> $ : int [1:2] 10 12
    -# Creating a tree from the full margin creates a list of lists of -# lists: -array_tree(x) %>% str()
    #> List of 2 -#> $ :List of 2 -#> ..$ :List of 3 -#> .. ..$ : int 1 -#> .. ..$ : int 5 -#> .. ..$ : int 9 -#> ..$ :List of 3 -#> .. ..$ : int 3 -#> .. ..$ : int 7 -#> .. ..$ : int 11 -#> $ :List of 2 -#> ..$ :List of 3 -#> .. ..$ : int 2 -#> .. ..$ : int 6 -#> .. ..$ : int 10 -#> ..$ :List of 3 -#> .. ..$ : int 4 -#> .. ..$ : int 8 -#> .. ..$ : int 12
    -# The ordering and the depth of the tree are controlled by the -# margin argument: -array_tree(x, c(3, 1)) %>% str()
    #> List of 3 -#> $ :List of 2 -#> ..$ : int [1:2] 1 3 -#> ..$ : int [1:2] 2 4 -#> $ :List of 2 -#> ..$ : int [1:2] 5 7 -#> ..$ : int [1:2] 6 8 -#> $ :List of 2 -#> ..$ : int [1:2] 9 11 -#> ..$ : int [1:2] 10 12
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/as_mapper.html b/docs/reference/as_mapper.html deleted file mode 100644 index 754ab9cf3..000000000 --- a/docs/reference/as_mapper.html +++ /dev/null @@ -1,215 +0,0 @@ - - - - - - - - -Convert an object into a mapper function — as_mapper • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    as_mapper is the powerhouse behind the varied function -specifications that most purrr functions allow. It is an S3 -generic. The default method forwards its arguments to -rlang::as_function().

    - -
    - -
    as_mapper(.f, ...)
    -
    -# S3 method for character
    -as_mapper(.f, ..., .null, .default = NULL)
    -
    -# S3 method for numeric
    -as_mapper(.f, ..., .null, .default = NULL)
    -
    -# S3 method for list
    -as_mapper(.f, ..., .null, .default = NULL)
    - -

    Arguments

    - - - - - - - - - - - - - - -
    .f

    A function, formula, or atomic vector.

    -

    If a function, it is used as is.

    -

    If a formula, e.g. ~ .x + 2, it is converted to a function. There -are three ways to refer to the arguments:

      -
    • For a single argument function, use .

    • -
    • For a two argument function, use .x and .y

    • -
    • For more arguments, use ..1, ..2, ..3 etc

    • -
    - -

    This syntax allows you to create very compact anonymous functions.

    -

    If character vector, numeric vector, or list, it -is converted to an extractor function. Character vectors index by name -and numeric vectors index by position; use a list to index by position -and name at different levels. Within a list, wrap strings in get-attr() -to extract named attributes. If a component is not present, the value of -.default will be returned.

    ...

    Additional arguments passed on to methods.

    .default, .null

    Optional additional argument for extractor functions -(i.e. when .f is character, integer, or list). Returned when -value is absent (does not exist) or empty (has length 0). -.null is deprecated; please use .default instead.

    - - -

    Examples

    -
    as_mapper(~ . + 1)
    #> function (..., .x = ..1, .y = ..2, . = ..1) -#> . + 1 -#> <environment: 0x7f9d525cf5c8>
    as_mapper(1)
    #> function (x, ...) -#> pluck(x, list(1), .default = NULL) -#> <environment: 0x7f9d52109cd0>
    -as_mapper(c("a", "b", "c"))
    #> function (x, ...) -#> pluck(x, list("a", "b", "c"), .default = NULL) -#> <environment: 0x7f9d55aa0698>
    # Equivalent to function(x) x[["a"]][["b"]][["c"]] - -as_mapper(list(1, "a", 2))
    #> function (x, ...) -#> pluck(x, list(1, "a", 2), .default = NULL) -#> <environment: 0x7f9d559eb990>
    # Equivalent to function(x) x[[1]][["a"]][[2]] - -as_mapper(list(1, attr_getter("a")))
    #> function (x, ...) -#> pluck(x, list(1, function (x) -#> attr(x, attr, exact = TRUE)), .default = NULL) -#> <environment: 0x7f9d5384ef90>
    # Equivalent to function(x) attr(x[[1]], "a") - -as_mapper(c("a", "b", "c"), .null = NA)
    #> function (x, ...) -#> pluck(x, list("a", "b", "c"), .default = NA) -#> <environment: 0x7f9d532a7d80>
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/as_vector.html b/docs/reference/as_vector.html deleted file mode 100644 index 590346ef4..000000000 --- a/docs/reference/as_vector.html +++ /dev/null @@ -1,194 +0,0 @@ - - - - - - - - -Coerce a list to a vector — as_vector • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    as_vector() collapses a list of vectors into one vector. It -checks that the type of each vector is consistent with -.type. If the list can not be simplified, it throws an error. -simplify will simplify a vector if possible; simplify_all -will apply simplify to every element of a list.

    - -
    - -
    as_vector(.x, .type = NULL)
    -
    -simplify(.x, .type = NULL)
    -
    -simplify_all(.x, .type = NULL)
    - -

    Arguments

    - - - - - - - - - - -
    .x

    A list of vectors

    .type

    A vector mold or a string describing the type of the -input vectors. The latter can be any of the types returned by -typeof(), or "numeric" as a shorthand for either -"double" or "integer".

    - -

    Details

    - -

    .type can be a vector mold specifying both the type and the -length of the vectors to be concatenated, such as numeric(1) -or integer(4). Alternatively, it can be a string describing -the type, one of: "logical", "integer", "double", "complex", -"character" or "raw".

    - - -

    Examples

    -
    # Supply the type either with a string: -as.list(letters) %>% as_vector("character")
    #> [1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" "p" "q" "r" "s" -#> [20] "t" "u" "v" "w" "x" "y" "z"
    -# Or with a vector mold: -as.list(letters) %>% as_vector(character(1))
    #> [1] "a" "b" "c" "d" "e" "f" "g" "h" "i" "j" "k" "l" "m" "n" "o" "p" "q" "r" "s" -#> [20] "t" "u" "v" "w" "x" "y" "z"
    -# Vector molds are more flexible because they also specify the -# length of the concatenated vectors: -list(1:2, 3:4, 5:6) %>% as_vector(integer(2))
    #> [1] 1 2 3 4 5 6
    -# Note that unlike vapply(), as_vector() never adds dimension -# attributes. So when you specify a vector mold of size > 1, you -# always get a vector and not a matrix -
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/compose.html b/docs/reference/compose.html deleted file mode 100644 index ab595c03c..000000000 --- a/docs/reference/compose.html +++ /dev/null @@ -1,166 +0,0 @@ - - - - - - - - -Compose multiple functions — compose • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    Compose multiple functions

    - -
    - -
    compose(...)
    - -

    Arguments

    - - - - - - -
    ...

    n functions to apply in order from right to left.

    - -

    Value

    - -

    A function

    - - -

    Examples

    -
    not_null <- compose(`!`, is.null) -not_null(4)
    #> [1] TRUE
    not_null(NULL)
    #> [1] FALSE
    -add1 <- function(x) x + 1 -compose(add1, add1)(8)
    #> [1] 10
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/cross.html b/docs/reference/cross.html deleted file mode 100644 index 3d8c85592..000000000 --- a/docs/reference/cross.html +++ /dev/null @@ -1,436 +0,0 @@ - - - - - - - - -Produce all combinations of list elements — cross • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    cross2() returns the product set of the elements of -.x and .y. cross3() takes an additional -.z argument. cross() takes a list .l and -returns the cartesian product of all its elements in a list, with -one combination by element. cross_df() is like -cross() but returns a data frame, with one combination by -row.

    - -
    - -
    cross(.l, .filter = NULL)
    -
    -cross2(.x, .y, .filter = NULL)
    -
    -cross3(.x, .y, .z, .filter = NULL)
    -
    -cross_df(.l, .filter = NULL)
    - -

    Arguments

    - - - - - - - - - - - - - - -
    .l

    A list of lists or atomic vectors. Alternatively, a data -frame. cross_df() requires all elements to be named.

    .filter

    A predicate function that takes the same number of -arguments as the number of variables to be combined.

    .x, .y, .z

    Lists or atomic vectors.

    - -

    Value

    - -

    cross2(), cross3() and cross() -always return a list. cross_df() always returns a data -frame. cross() returns a list where each element is one -combination so that the list can be directly mapped -over. cross_df() returns a data frame where each row is one -combination.

    - -

    Details

    - -

    cross(), cross2() and cross3() return the -cartesian product is returned in wide format. This makes it more -amenable to mapping operations. cross_df() returns the output -in long format just as expand.grid() does. This is adapted -to rowwise operations.

    -

    When the number of combinations is large and the individual -elements are heavy memory-wise, it is often useful to filter -unwanted combinations on the fly with .filter. It must be -a predicate function that takes the same number of arguments as the -number of crossed objects (2 for cross2(), 3 for -cross3(), length(.l) for cross()) and -returns TRUE or FALSE. The combinations where the -predicate function returns TRUE will be removed from the -result.

    - -

    See also

    - -

    expand.grid()

    - - -

    Examples

    -
    # We build all combinations of names, greetings and separators from our -# list of data and pass each one to paste() -data <- list( - id = c("John", "Jane"), - greeting = c("Hello.", "Bonjour."), - sep = c("! ", "... ") -) - -data %>% - cross() %>% - map(lift(paste))
    #> [[1]] -#> [1] "John! Hello." -#> -#> [[2]] -#> [1] "Jane! Hello." -#> -#> [[3]] -#> [1] "John! Bonjour." -#> -#> [[4]] -#> [1] "Jane! Bonjour." -#> -#> [[5]] -#> [1] "John... Hello." -#> -#> [[6]] -#> [1] "Jane... Hello." -#> -#> [[7]] -#> [1] "John... Bonjour." -#> -#> [[8]] -#> [1] "Jane... Bonjour." -#>
    -# cross() returns the combinations in long format: many elements, -# each representing one combination. With cross_df() we'll get a -# data frame in long format: crossing three objects produces a data -# frame of three columns with each row being a particular -# combination. This is the same format that expand.grid() returns. -args <- data %>% cross_df() - -# In case you need a list in long format (and not a data frame) -# just run as.list() after cross_df() -args %>% as.list()
    #> $id -#> [1] "John" "Jane" "John" "Jane" "John" "Jane" "John" "Jane" -#> -#> $greeting -#> [1] "Hello." "Hello." "Bonjour." "Bonjour." "Hello." "Hello." "Bonjour." -#> [8] "Bonjour." -#> -#> $sep -#> [1] "! " "! " "! " "! " "... " "... " "... " "... " -#>
    -# This format is often less pratical for functional programming -# because applying a function to the combinations requires a loop -out <- vector("list", length = nrow(args)) -for (i in seq_along(out)) - out[[i]] <- map(args, i) %>% invoke(paste, .) -out
    #> [[1]] -#> [1] "John! Hello." -#> -#> [[2]] -#> [1] "Jane! Hello." -#> -#> [[3]] -#> [1] "John! Bonjour." -#> -#> [[4]] -#> [1] "Jane! Bonjour." -#> -#> [[5]] -#> [1] "John... Hello." -#> -#> [[6]] -#> [1] "Jane... Hello." -#> -#> [[7]] -#> [1] "John... Bonjour." -#> -#> [[8]] -#> [1] "Jane... Bonjour." -#>
    -# It's easier to transpose and then use invoke_map() -args %>% transpose() %>% map_chr(~ invoke(paste, .))
    #> [1] "John! Hello." "Jane! Hello." "John! Bonjour." "Jane! Bonjour." -#> [5] "John... Hello." "Jane... Hello." "John... Bonjour." "Jane... Bonjour."
    -# Unwanted combinations can be filtered out with a predicate function -filter <- function(x, y) x >= y -cross2(1:5, 1:5, .filter = filter) %>% str()
    #> List of 10 -#> $ :List of 2 -#> ..$ : int 1 -#> ..$ : int 2 -#> $ :List of 2 -#> ..$ : int 1 -#> ..$ : int 3 -#> $ :List of 2 -#> ..$ : int 2 -#> ..$ : int 3 -#> $ :List of 2 -#> ..$ : int 1 -#> ..$ : int 4 -#> $ :List of 2 -#> ..$ : int 2 -#> ..$ : int 4 -#> $ :List of 2 -#> ..$ : int 3 -#> ..$ : int 4 -#> $ :List of 2 -#> ..$ : int 1 -#> ..$ : int 5 -#> $ :List of 2 -#> ..$ : int 2 -#> ..$ : int 5 -#> $ :List of 2 -#> ..$ : int 3 -#> ..$ : int 5 -#> $ :List of 2 -#> ..$ : int 4 -#> ..$ : int 5
    -# To give names to the components of the combinations, we map -# setNames() on the product: -seq_len(3) %>% - cross2(., ., .filter = `==`) %>% - map(setNames, c("x", "y"))
    #> [[1]] -#> [[1]]$x -#> [1] 2 -#> -#> [[1]]$y -#> [1] 1 -#> -#> -#> [[2]] -#> [[2]]$x -#> [1] 3 -#> -#> [[2]]$y -#> [1] 1 -#> -#> -#> [[3]] -#> [[3]]$x -#> [1] 1 -#> -#> [[3]]$y -#> [1] 2 -#> -#> -#> [[4]] -#> [[4]]$x -#> [1] 3 -#> -#> [[4]]$y -#> [1] 2 -#> -#> -#> [[5]] -#> [[5]]$x -#> [1] 1 -#> -#> [[5]]$y -#> [1] 3 -#> -#> -#> [[6]] -#> [[6]]$x -#> [1] 2 -#> -#> [[6]]$y -#> [1] 3 -#> -#>
    -# Alternatively we can encapsulate the arguments in a named list -# before crossing to get named components: -seq_len(3) %>% - list(x = ., y = .) %>% - cross(.filter = `==`)
    #> [[1]] -#> [[1]]$x -#> [1] 2 -#> -#> [[1]]$y -#> [1] 1 -#> -#> -#> [[2]] -#> [[2]]$x -#> [1] 3 -#> -#> [[2]]$y -#> [1] 1 -#> -#> -#> [[3]] -#> [[3]]$x -#> [1] 1 -#> -#> [[3]]$y -#> [1] 2 -#> -#> -#> [[4]] -#> [[4]]$x -#> [1] 3 -#> -#> [[4]]$y -#> [1] 2 -#> -#> -#> [[5]] -#> [[5]]$x -#> [1] 1 -#> -#> [[5]]$y -#> [1] 3 -#> -#> -#> [[6]] -#> [[6]]$x -#> [1] 2 -#> -#> [[6]]$y -#> [1] 3 -#> -#>
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/depth.html b/docs/reference/depth.html deleted file mode 100644 index 5f721f167..000000000 --- a/docs/reference/depth.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - - - -Compute the depth of a vector — depth • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - - -

    The depth of a vector is basically how many levels that you can index -into it.

    - - -
    depth(x)
    - -

    Arguments

    - - - - - - -
    x

    A vector

    - -

    Value

    - -

    An integer.

    - - -

    Examples

    -
    x <- list( - list(), - list(list()), - list(list(list(1))) -) -depth(x)
    #> [1] 5
    x %>% map_int(depth)
    #> [1] 1 2 4
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Hadley Wickham, .

    -

    Site built by pkgdown.

    -
    - - -
    -
    - - - diff --git a/docs/reference/detect.html b/docs/reference/detect.html deleted file mode 100644 index dff2b492d..000000000 --- a/docs/reference/detect.html +++ /dev/null @@ -1,224 +0,0 @@ - - - - - - - - -Find the value or position of the first match. — detect • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    Find the value or position of the first match.

    - -
    - -
    detect(.x, .f, ..., .right = FALSE, .p)
    -
    -detect_index(.x, .f, ..., .right = FALSE, .p)
    - -

    Arguments

    - - - - - - - - - - - - - - - - - - - - - - -
    .x

    A list or atomic vector.

    .f

    A function, formula, or atomic vector.

    -

    If a function, it is used as is.

    -

    If a formula, e.g. ~ .x + 2, it is converted to a function. There -are three ways to refer to the arguments:

      -
    • For a single argument function, use .

    • -
    • For a two argument function, use .x and .y

    • -
    • For more arguments, use ..1, ..2, ..3 etc

    • -
    - -

    This syntax allows you to create very compact anonymous functions.

    -

    If character vector, numeric vector, or list, it -is converted to an extractor function. Character vectors index by name -and numeric vectors index by position; use a list to index by position -and name at different levels. Within a list, wrap strings in get-attr() -to extract named attributes. If a component is not present, the value of -.default will be returned.

    ...

    Additional arguments passed on to .f.

    .right

    If FALSE, the default, starts at the beginning -of the vector and move towards the end; if TRUE, starts at the end -of the vector and moves towards the beginning.

    .p

    A single predicate function, a formula describing such a -predicate function, or a logical vector of the same length as .x. -Alternatively, if the elements of .x are themselves lists of -objects, a string indicating the name of a logical element in the -inner lists. Only those elements where .p evaluates to -TRUE will be modified.

    - -

    Value

    - -

    detect the value of the first item that matches the -predicate; detect_index the position of the matching item. -If not found, detect returns NULL and detect_index -returns 0.

    - - -

    Examples

    -
    is_even <- function(x) x %% 2 == 0 - -3:10 %>% detect(is_even)
    #> [1] 4
    3:10 %>% detect_index(is_even)
    #> [1] 2
    -3:10 %>% detect(is_even, .right = TRUE)
    #> [1] 10
    3:10 %>% detect_index(is_even, .right = TRUE)
    #> [1] 8
    - -# Since `.f` is passed to as_mapper(), you can supply a -# lambda-formula or a pluck object: -x <- list( - list(1, foo = FALSE), - list(2, foo = TRUE), - list(3, foo = TRUE) -) - -detect(x, "foo")
    #> [[1]] -#> [1] 2 -#> -#> $foo -#> [1] TRUE -#>
    detect_index(x, "foo")
    #> [1] 2
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/every.html b/docs/reference/every.html deleted file mode 100644 index ff5ed0315..000000000 --- a/docs/reference/every.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - - - - - -Do every or some elements of a list satisfy a predicate? — every • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    Do every or some elements of a list satisfy a predicate?

    - -
    - -
    every(.x, .p, ...)
    -
    -some(.x, .p, ...)
    - -

    Arguments

    - - - - - - - - - - - - - - -
    .x

    A list or atomic vector.

    .p

    A single predicate function, a formula describing such a -predicate function, or a logical vector of the same length as .x. -Alternatively, if the elements of .x are themselves lists of -objects, a string indicating the name of a logical element in the -inner lists. Only those elements where .p evaluates to -TRUE will be modified.

    ...

    Additional arguments passed on to .f.

    - -

    Value

    - -

    A logical vector of length 1.

    - - -

    Examples

    -
    x <- list(0, 1, TRUE) -x %>% every(identity)
    #> [1] TRUE
    x %>% some(identity)
    #> [1] TRUE
    -y <- list(0:10, 5.5) -y %>% every(is.numeric)
    #> [1] TRUE
    y %>% every(is.integer)
    #> [1] FALSE
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/extract.html b/docs/reference/extract.html deleted file mode 100644 index aba4ca2c1..000000000 --- a/docs/reference/extract.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - - - -Extract an element from a vector or environment — extract • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - - -

    Extract an element from a vector or environment

    - - -
    extract(x, index, default = NULL)
    - -

    Arguments

    - - - - - - - - - - - - - - -
    x

    A vector or environment

    index

    A list indexing into the object

    default

    Value to use if target is empty or absent.

    - - -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Hadley Wickham, .

    -

    Site built by pkgdown.

    -
    - - -
    -
    - - - diff --git a/docs/reference/figures/logo.png b/docs/reference/figures/logo.png deleted file mode 100644 index d109b9698..000000000 Binary files a/docs/reference/figures/logo.png and /dev/null differ diff --git a/docs/reference/flatten.html b/docs/reference/flatten.html deleted file mode 100644 index bcc99164e..000000000 --- a/docs/reference/flatten.html +++ /dev/null @@ -1,226 +0,0 @@ - - - - - - - - -Flatten a list of lists into a simple vector. — flatten • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    These functions remove a level hierarchy from a list. They are similar to -unlist(), but they only ever remove a single layer of hierarchy and they -are type-stable, so you always know what the type of the output is.

    - -
    - -
    flatten(.x)
    -
    -flatten_lgl(.x)
    -
    -flatten_int(.x)
    -
    -flatten_dbl(.x)
    -
    -flatten_chr(.x)
    -
    -flatten_raw(.x)
    -
    -flatten_dfr(.x, .id = NULL)
    -
    -flatten_dfc(.x)
    - -

    Arguments

    - - - - - - - - - - -
    .x

    A list of flatten. The contents of the list can be anything for -flatten (as a list is returned), but the contents must match the -type for the other functions.

    .id

    Either a string or NULL. If a string, the output will contain -a variable with that name, storing either the name (if .x is named) or -the index (if .x is unnamed) of the input. If NULL, the default, no -variable will be created.

    -

    Only applies to _dfr variant.

    - -

    Value

    - -

    flatten() returns a list, flatten_lgl() a logical -vector, flatten_int() an integer vector, flatten_dbl() a -double vector, and flatten_chr() a character vector.

    -

    flatten_dfr() and flatten_dfc() return data frames created by -row-binding and column-binding respectively. They require dplyr to -be installed.

    - - -

    Examples

    -
    x <- rerun(2, sample(4)) -x
    #> [[1]] -#> [1] 1 3 2 4 -#> -#> [[2]] -#> [1] 1 2 4 3 -#>
    x %>% flatten()
    #> [[1]] -#> [1] 1 -#> -#> [[2]] -#> [1] 3 -#> -#> [[3]] -#> [1] 2 -#> -#> [[4]] -#> [1] 4 -#> -#> [[5]] -#> [1] 1 -#> -#> [[6]] -#> [1] 2 -#> -#> [[7]] -#> [1] 4 -#> -#> [[8]] -#> [1] 3 -#>
    x %>% flatten_int()
    #> [1] 1 3 2 4 1 2 4 3
    -# You can use flatten in conjunction with map -x %>% map(1L) %>% flatten_int()
    #> [1] 1 1
    # But it's more efficient to use the typed map instead. -x %>% map_int(1L)
    #> [1] 1 1
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/get-attr.html b/docs/reference/get-attr.html deleted file mode 100644 index b1dfb3b9f..000000000 --- a/docs/reference/get-attr.html +++ /dev/null @@ -1,161 +0,0 @@ - - - - - - - - -Infix attribute accessor — get-attr • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    Infix attribute accessor

    - -
    - -
    x %@% name
    - -

    Arguments

    - - - - - - - - - - -
    x

    Object

    name

    Attribute name

    - - -

    Examples

    -
    factor(1:3) %@% "levels"
    #> [1] "1" "2" "3"
    mtcars %@% "class"
    #> [1] "data.frame"
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/has_element.html b/docs/reference/has_element.html deleted file mode 100644 index 4a5e4a407..000000000 --- a/docs/reference/has_element.html +++ /dev/null @@ -1,162 +0,0 @@ - - - - - - - - -Does a list contain an object? — has_element • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    Does a list contain an object?

    - -
    - -
    has_element(.x, .y)
    - -

    Arguments

    - - - - - - - - - - -
    .x

    A list or atomic vector.

    .y

    Object to test for

    - - -

    Examples

    -
    x <- list(1:10, 5, 9.9) -x %>% has_element(1:10)
    #> [1] TRUE
    x %>% has_element(3)
    #> [1] FALSE
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/head_while.html b/docs/reference/head_while.html deleted file mode 100644 index fcee5589c..000000000 --- a/docs/reference/head_while.html +++ /dev/null @@ -1,181 +0,0 @@ - - - - - - - - -Find head/tail that all satisfies a predicate. — head_while • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    Find head/tail that all satisfies a predicate.

    - -
    - -
    head_while(.x, .p, ...)
    -
    -tail_while(.x, .p, ...)
    - -

    Arguments

    - - - - - - - - - - - - - - -
    .x

    A list or atomic vector.

    .p

    A single predicate function, a formula describing such a -predicate function, or a logical vector of the same length as .x. -Alternatively, if the elements of .x are themselves lists of -objects, a string indicating the name of a logical element in the -inner lists. Only those elements where .p evaluates to -TRUE will be modified.

    ...

    Additional arguments passed on to .f.

    - -

    Value

    - -

    A vector the same type as .x.

    - - -

    Examples

    -
    pos <- function(x) x >= 0 -head_while(5:-5, pos)
    #> [1] 5 4 3 2 1 0
    tail_while(5:-5, negate(pos))
    #> [1] -1 -2 -3 -4 -5
    -big <- function(x) x > 100 -head_while(0:10, big)
    #> integer(0)
    tail_while(0:10, big)
    #> integer(0)
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/imap.html b/docs/reference/imap.html deleted file mode 100644 index fc14580ce..000000000 --- a/docs/reference/imap.html +++ /dev/null @@ -1,234 +0,0 @@ - - - - - - - - -Apply a function to each element of a vector, and its index — imap • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    imap_xxx(x, ...), an indexed map, is short hand for -map2(x, names(x), ...) if x has names, or map2(x, seq_along(x), ...) -if it does not. This is useful if you need to compute on both the value -and the position of an element.

    - -
    - -
    imap(.x, .f, ...)
    -
    -imap_lgl(.x, .f, ...)
    -
    -imap_chr(.x, .f, ...)
    -
    -imap_int(.x, .f, ...)
    -
    -imap_dbl(.x, .f, ...)
    -
    -imap_raw(.x, .f, ...)
    -
    -imap_dfr(.x, .f, ..., .id = NULL)
    -
    -imap_dfc(.x, .f, ...)
    -
    -iwalk(.x, .f, ...)
    - -

    Arguments

    - - - - - - - - - - - - - - - - - - -
    .x

    A list or atomic vector.

    .f

    A function, formula, or atomic vector.

    -

    If a function, it is used as is.

    -

    If a formula, e.g. ~ .x + 2, it is converted to a function. There -are three ways to refer to the arguments:

      -
    • For a single argument function, use .

    • -
    • For a two argument function, use .x and .y

    • -
    • For more arguments, use ..1, ..2, ..3 etc

    • -
    - -

    This syntax allows you to create very compact anonymous functions.

    -

    If character vector, numeric vector, or list, it -is converted to an extractor function. Character vectors index by name -and numeric vectors index by position; use a list to index by position -and name at different levels. Within a list, wrap strings in get-attr() -to extract named attributes. If a component is not present, the value of -.default will be returned.

    ...

    Additional arguments passed on to .f.

    .id

    Either a string or NULL. If a string, the output will contain -a variable with that name, storing either the name (if .x is named) or -the index (if .x is unnamed) of the input. If NULL, the default, no -variable will be created.

    -

    Only applies to _dfr variant.

    - -

    Value

    - -

    A vector the same length as .x.

    - -

    See also

    - -

    Other map variants: invoke, - lmap, map2, - map, modify

    - - -

    Examples

    -
    # Note that when using the formula shortcut, the first argument -# is the value, and the second is the position -imap_chr(sample(10), ~ paste0(.y, ": ", .x))
    #> [1] "1: 8" "2: 7" "3: 9" "4: 2" "5: 1" "6: 10" "7: 5" "8: 6" "9: 3" -#> [10] "10: 4"
    iwalk(mtcars, ~ cat(.y, ": ", median(.x), "\n", sep = ""))
    #> mpg: 19.2 -#> cyl: 6 -#> disp: 196.3 -#> hp: 123 -#> drat: 3.695 -#> wt: 3.325 -#> qsec: 17.71 -#> vs: 0 -#> am: 0 -#> gear: 4 -#> carb: 2
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/index.html b/docs/reference/index.html deleted file mode 100644 index e7fb0346d..000000000 --- a/docs/reference/index.html +++ /dev/null @@ -1,408 +0,0 @@ - - - - - - - - -Function reference • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -

    Map family

    -

    -

    The map(.x, .f) functions transforms each element of the vector .x with the function .f, returning a vector defined by the suffix (_lgl, _chr() etc). walk() is a variant for functions called primarily for their side-effects; it returns .x invisibly.

    -

    As well as functions, .f, can take numbers and characters (used as a shorthand for [[), and formulas (used as a succint function definition). See details in as_mapper()

    -

    -
    -

    map() map_if() map_at() map_lgl() map_chr() map_int() map_dbl() map_raw() map_dfr() map_dfc() walk()

    -

    Apply a function to each element of a vector

    -

    as_mapper()

    -

    Convert an object into a mapper function

    -

    Map variants

    -

    A rich set of variants builds on the basic idea of map(): modify() modifies “in place”, returning a vector the same type as .x; map2() iterates over two vectors in parallel; pmap() (parallel map) iterates over a list of vectors; imap() (index map) is a shortcut for the common pattern map2(x, names(x)); invoke() calls each function in a list.

    -
    -

    map2() map2_lgl() map2_int() map2_dbl() map2_chr() map2_raw() map2_dfr() map2_dfc() walk2() pmap() pmap_lgl() pmap_int() pmap_dbl() pmap_chr() pmap_raw() pmap_dfr() pmap_dfc() pwalk()

    -

    Map over multiple inputs simultaneously.

    -

    modify() modify_if() modify_at() modify_depth()

    -

    Modify elements selectively

    -

    imap() imap_lgl() imap_chr() imap_int() imap_dbl() imap_raw() imap_dfr() imap_dfc() iwalk()

    -

    Apply a function to each element of a vector, and its index

    -

    lmap() lmap_if() lmap_at()

    -

    Apply a function to list-elements of a list

    -

    invoke() invoke_map() invoke_map_lgl() invoke_map_int() invoke_map_dbl() invoke_map_chr() invoke_map_raw() invoke_map_dfr() invoke_map_dfc()

    -

    Invoke functions.

    -

    Predicate functionals

    -

    A predicate function is a function that either returns TRUE or FALSE. The predicate functionals take a vector and a predicate function and do something useful.

    -
    -

    detect() detect_index()

    -

    Find the value or position of the first match.

    -

    every() some()

    -

    Do every or some elements of a list satisfy a predicate?

    -

    has_element()

    -

    Does a list contain an object?

    -

    head_while() tail_while()

    -

    Find head/tail that all satisfies a predicate.

    -

    keep() discard() compact()

    -

    Keep or discard elements using a predicate function.

    -

    negate()

    -

    Negate a predicate function.

    -

    prepend()

    -

    Prepend a vector

    -

    Other vector transforms

    -

    A grab bag of useful tools for manipulating vectors.

    -
    -

    accumulate() accumulate_right()

    -

    Accumulate recursive folds across a list

    -

    cross() cross2() cross3() cross_df()

    -

    Produce all combinations of list elements

    -

    flatten() flatten_lgl() flatten_int() flatten_dbl() flatten_chr() flatten_raw() flatten_dfr() flatten_dfc()

    -

    Flatten a list of lists into a simple vector.

    -

    list_modify() list_merge()

    -

    Modify a list

    -

    reduce() reduce_right() reduce2() reduce2_right()

    -

    Reduce a list to a single value by iteratively applying a binary function.

    -

    splice()

    -

    Splice objects and lists of objects into a list

    -

    transpose()

    -

    Transpose a list.

    -

    Adverbs

    -

    Adverbs modify the action of a function; taking a function as input and returning a function with modified action as output.

    -
    -

    compose()

    -

    Compose multiple functions

    -

    lift() lift_dl() lift_dv() lift_vl() lift_vd() lift_ld() lift_lv()

    -

    Lift the domain of a function

    -

    negate()

    -

    Negate a predicate function.

    -

    partial()

    -

    Partial apply a function, filling in some arguments.

    -

    safely() quietly() possibly() auto_browse()

    -

    Capture side effects.

    -

    Misc

    -

    -
    -

    `%||%`()

    -

    Default value for NULL.

    -

    `%@%`()

    -

    Infix attribute accessor

    -

    array_branch() array_tree()

    -

    Coerce array to list

    -

    as_vector() simplify() simplify_all()

    -

    Coerce a list to a vector

    -

    rbernoulli()

    -

    Generate random sample from a Bernoulli distribution

    -

    rdunif()

    -

    Generate random sample from a discrete uniform distribution

    -

    rerun()

    -

    Re-run expressions multiple times.

    -

    set_names()

    -

    Set names in a vector

    -

    vec_depth()

    -

    Compute the depth of a vector

    -
    - - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/invoke.html b/docs/reference/invoke.html deleted file mode 100644 index afb1df3c3..000000000 --- a/docs/reference/invoke.html +++ /dev/null @@ -1,283 +0,0 @@ - - - - - - - - -Invoke functions. — invoke • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    This pair of functions make it easier to combine a function and list -of parameters to get a result. invoke is a wrapper around -do.call that makes it easy to use in a pipe. invoke_map -makes it easier to call lists of functions with lists of parameters.

    - -
    - -
    invoke(.f, .x = NULL, ..., .env = NULL)
    -
    -invoke_map(.f, .x = list(NULL), ..., .env = NULL)
    -
    -invoke_map_lgl(.f, .x = list(NULL), ..., .env = NULL)
    -
    -invoke_map_int(.f, .x = list(NULL), ..., .env = NULL)
    -
    -invoke_map_dbl(.f, .x = list(NULL), ..., .env = NULL)
    -
    -invoke_map_chr(.f, .x = list(NULL), ..., .env = NULL)
    -
    -invoke_map_raw(.f, .x = list(NULL), ..., .env = NULL)
    -
    -invoke_map_dfr(.f, .x = list(NULL), ..., .env = NULL)
    -
    -invoke_map_dfc(.f, .x = list(NULL), ..., .env = NULL)
    - -

    Arguments

    - - - - - - - - - - - - - - - - - - -
    .f

    For invoke, a function; for invoke_map a -list of functions.

    .x

    For invoke, an argument-list; for invoke_map a -list of argument-lists the same length as .f (or length 1). -The default argument, list(NULL), will be recycled to the -same length as .f, and will call each function with no -arguments (apart from any supplied in ....

    ...

    Additional arguments passed to each function.

    .env

    Environment in which do.call() should -evaluate a constructed expression. This only matters if you pass -as .f the name of a function rather than its value, or as -.x symbols of objects rather than their values.

    - -

    See also

    - -

    Other map variants: imap, lmap, - map2, map, - modify

    - - -

    Examples

    -
    # Invoke a function with a list of arguments -invoke(runif, list(n = 10))
    #> [1] 0.38870131 0.97554784 0.28989230 0.67838043 0.73531960 0.19595673 -#> [7] 0.98053967 0.74152153 0.05144628 0.53021246
    # Invoke a function with named arguments -invoke(runif, n = 10)
    #> [1] 0.69582388 0.68855600 0.03123033 0.22556253 0.30083081 0.63646561 -#> [7] 0.47902455 0.43217126 0.70643384 0.94857658
    -# Combine the two: -invoke(paste, list("01a", "01b"), sep = "-")
    #> [1] "01a-01b"
    # That's more natural as part of a pipeline: -list("01a", "01b") %>% - invoke(paste, ., sep = "-")
    #> [1] "01a-01b"
    -# Invoke a list of functions, each with different arguments -invoke_map(list(runif, rnorm), list(list(n = 10), list(n = 5)))
    #> [[1]] -#> [1] 0.18033877 0.21689988 0.68016292 0.49884561 0.64167935 0.66028435 -#> [7] 0.09602416 0.76560016 0.76967480 0.99071231 -#> -#> [[2]] -#> [1] 1.88850493 -0.09744510 -0.93584735 -0.01595031 -0.82678895 -#>
    # Or with the same inputs: -invoke_map(list(runif, rnorm), list(list(n = 5)))
    #> [[1]] -#> [1] 0.06521611 0.35420680 0.82519942 0.27381825 0.57004495 -#> -#> [[2]] -#> [1] -0.4241750 -0.8723159 0.1066846 -0.5870140 -0.3278536 -#>
    invoke_map(list(runif, rnorm), n = 5)
    #> [[1]] -#> [1] 0.46598719 0.39003139 0.02006522 0.37697093 0.55991284 -#> -#> [[2]] -#> [1] 1.06730788 0.07003485 -0.63912332 -0.04996490 -0.25148344 -#>
    # Or the same function with different inputs: -invoke_map("runif", list(list(n = 5), list(n = 10)))
    #> [[1]] -#> [1] 0.67176682 0.05861411 0.99706914 0.14903547 0.51855664 -#> -#> [[2]] -#> [1] 0.84612005 0.71826972 0.24131402 0.54704337 0.83480182 0.02795603 -#> [7] 0.46938430 0.80568003 0.81405131 0.40391100 -#>
    -# Or as a pipeline -list(m1 = mean, m2 = median) %>% invoke_map(x = rcauchy(100))
    #> $m1 -#> [1] -17.1555 -#> -#> $m2 -#> [1] -0.2478571 -#>
    list(m1 = mean, m2 = median) %>% invoke_map_dbl(x = rcauchy(100))
    #> m1 m2 -#> -1.0554082 -0.1491601
    -# Note that you can also match by position by explicitly omitting `.x`. -# This can be useful when the argument names of the functions are not -# identical -list(m1 = mean, m2 = median) %>% - invoke_map(, rcauchy(100))
    #> $m1 -#> [1] -0.634837 -#> -#> $m2 -#> [1] -0.1482912 -#>
    -# If you have pairs of function name and arguments, it's natural -# to store them in a data frame. Here we use a tibble because -# it has better support for list-columns -df <- tibble::tibble( - f = c("runif", "rpois", "rnorm"), - params = list( - list(n = 10), - list(n = 5, lambda = 10), - list(n = 10, mean = -3, sd = 10) - ) -) -df
    #> # A tibble: 3 x 2 -#> f params -#> <chr> <list> -#> 1 runif <list [1]> -#> 2 rpois <list [2]> -#> 3 rnorm <list [3]>
    invoke_map(df$f, df$params)
    #> [[1]] -#> [1] 0.204329063 0.471755611 0.385183100 0.392751929 0.218338430 0.007208941 -#> [7] 0.363712143 0.526106730 0.844163393 0.135991171 -#> -#> [[2]] -#> [1] 9 9 5 6 9 -#> -#> [[3]] -#> [1] -3.240840 12.844975 -2.943244 -9.482045 15.586632 5.283032 -#> [7] 8.990353 3.000512 -2.412399 -15.897635 -#>
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/is_numeric.html b/docs/reference/is_numeric.html deleted file mode 100644 index ee6e5fca6..000000000 --- a/docs/reference/is_numeric.html +++ /dev/null @@ -1,151 +0,0 @@ - - - - - - - - -Test is an object is integer or double — is_numeric • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    Numeric is used in three different ways in base R:

      -
    • as an alias for double (as in as.numeric())

    • -
    • to mean either integer or double (as in mode())

    • -
    • for something representable as numeric (as in as.numeric()) -This function tests for the second, which is often not what you want -so these functions are deprecated.

    • -
    - -
    - -
    is_numeric(x)
    -
    -is_scalar_numeric(x)
    - - -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/keep.html b/docs/reference/keep.html deleted file mode 100644 index d52288afa..000000000 --- a/docs/reference/keep.html +++ /dev/null @@ -1,290 +0,0 @@ - - - - - - - - -Keep or discard elements using a predicate function. — keep • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    keep() and discard() are opposites. compact() is a handy -wrapper that removes all empty elements.

    - -
    - -
    keep(.x, .p, ...)
    -
    -discard(.x, .p, ...)
    -
    -compact(.x, .p = identity)
    - -

    Arguments

    - - - - - - - - - - - - - - -
    .x

    A list or vector.

    .p

    A single predicate function, a formula describing such a -predicate function, or a logical vector of the same length as .x. -Alternatively, if the elements of .x are themselves lists of -objects, a string indicating the name of a logical element in the -inner lists. Only those elements where .p evaluates to -TRUE will be modified.

    ...

    Additional arguments passed on to .p.

    - -

    Details

    - -

    These are usually called select or filter and reject or -drop, but those names are already taken. keep() is similar to -Filter(), but the argument order is more convenient, and the -evaluation of the predicate function .p is stricter.

    - - -

    Examples

    -
    rep(10, 10) %>% - map(sample, 5) %>% - keep(function(x) mean(x) > 6)
    #> [[1]] -#> [1] 9 6 10 2 7 -#> -#> [[2]] -#> [1] 2 9 8 10 6 -#> -#> [[3]] -#> [1] 1 8 4 10 9 -#> -#> [[4]] -#> [1] 10 8 5 9 3 -#>
    -# Or use a formula -rep(10, 10) %>% - map(sample, 5) %>% - keep(~ mean(.x) > 6)
    #> list()
    -# Using a string instead of a function will select all list elements -# where that subelement is TRUE -x <- rerun(5, a = rbernoulli(1), b = sample(10)) -x
    #> [[1]] -#> [[1]]$a -#> [1] TRUE -#> -#> [[1]]$b -#> [1] 6 4 5 1 10 9 8 2 3 7 -#> -#> -#> [[2]] -#> [[2]]$a -#> [1] TRUE -#> -#> [[2]]$b -#> [1] 7 4 3 6 8 1 9 10 5 2 -#> -#> -#> [[3]] -#> [[3]]$a -#> [1] TRUE -#> -#> [[3]]$b -#> [1] 7 10 9 2 8 1 3 4 6 5 -#> -#> -#> [[4]] -#> [[4]]$a -#> [1] FALSE -#> -#> [[4]]$b -#> [1] 1 4 6 3 9 10 5 7 2 8 -#> -#> -#> [[5]] -#> [[5]]$a -#> [1] TRUE -#> -#> [[5]]$b -#> [1] 1 7 10 8 5 3 6 2 4 9 -#> -#>
    x %>% keep("a")
    #> [[1]] -#> [[1]]$a -#> [1] TRUE -#> -#> [[1]]$b -#> [1] 6 4 5 1 10 9 8 2 3 7 -#> -#> -#> [[2]] -#> [[2]]$a -#> [1] TRUE -#> -#> [[2]]$b -#> [1] 7 4 3 6 8 1 9 10 5 2 -#> -#> -#> [[3]] -#> [[3]]$a -#> [1] TRUE -#> -#> [[3]]$b -#> [1] 7 10 9 2 8 1 3 4 6 5 -#> -#> -#> [[4]] -#> [[4]]$a -#> [1] TRUE -#> -#> [[4]]$b -#> [1] 1 7 10 8 5 3 6 2 4 9 -#> -#>
    x %>% discard("a")
    #> [[1]] -#> [[1]]$a -#> [1] FALSE -#> -#> [[1]]$b -#> [1] 1 4 6 3 9 10 5 7 2 8 -#> -#>
    -# compact() discards elements that are NULL or that have length zero -list(a = "a", b = NULL, c = integer(0), d = NA, e = list()) %>% - compact()
    #> $a -#> [1] "a" -#> -#> $d -#> [1] NA -#>
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/lift.html b/docs/reference/lift.html deleted file mode 100644 index 1d895b596..000000000 --- a/docs/reference/lift.html +++ /dev/null @@ -1,529 +0,0 @@ - - - - - - - - -Lift the domain of a function — lift • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    lift_xy() is a composition helper. It helps you compose -functions by lifting their domain from a kind of input to another -kind. The domain can be changed from and to a list (l), a vector -(v) and dots (d). For example, lift_ld(fun) transforms a -function taking a list to a function taking dots.

    - -
    - -
    lift(..f, ..., .unnamed = FALSE)
    -
    -lift_dl(..f, ..., .unnamed = FALSE)
    -
    -lift_dv(..f, ..., .unnamed = FALSE)
    -
    -lift_vl(..f, ..., .type)
    -
    -lift_vd(..f, ..., .type)
    -
    -lift_ld(..f, ...)
    -
    -lift_lv(..f, ...)
    - -

    Arguments

    - - - - - - - - - - - - - - - - - - -
    ..f

    A function to lift.

    ...

    Default arguments for ..f. These will be -evaluated only once, when the lifting factory is called.

    .unnamed

    If TRUE, ld or lv will not -name the parameters in the lifted function signature. This -prevents matching of arguments by name and match by position -instead.

    .type

    A vector mold or a string describing the type of the -input vectors. The latter can be any of the types returned by -typeof(), or "numeric" as a shorthand for either -"double" or "integer".

    - -

    Value

    - -

    A function.

    - -

    Details

    - -

    The most important of those helpers is probably lift_dl() -because it allows you to transform a regular function to one that -takes a list. This is often essential for composition with purrr -functional tools. Since this is such a common function, -lift() is provided as an alias for that operation.

    - -

    from ... to list(...) or c(...)

    - - -

    Here dots should be taken here in a figurative way. The lifted -functions does not need to take dots per se. The function is -simply wrapped a function in do.call(), so instead -of taking multiple arguments, it takes a single named list or -vector which will be interpreted as its arguments. This is -particularly useful when you want to pass a row of a data frame -or a list to a function and don't want to manually pull it apart -in your function.

    - -

    from c(...) to list(...) or ...

    - - -

    These factories allow a function taking a vector to take a list -or dots instead. The lifted function internally transforms its -inputs back to an atomic vector. purrr does not obey the usual R -casting rules (e.g., c(1, "2") produces a character -vector) and will produce an error if the types are not -compatible. Additionally, you can enforce a particular vector -type by supplying .type.

    - -

    from list(...) to c(...) or ...

    - - -

    lift_ld() turns a function that takes a list into a -function that takes dots. lift_vd() does the same with a -function that takes an atomic vector. These factory functions are -the inverse operations of lift_dl() and lift_dv().

    -

    lift_vd() internally coerces the inputs of ..f to -an atomic vector. The details of this coercion can be controlled -with .type.

    - -

    See also

    - - - - -

    Examples

    -
    ### Lifting from ... to list(...) or c(...) - -x <- list(x = c(1:100, NA, 1000), na.rm = TRUE, trim = 0.9) -lift_dl(mean)(x)
    #> [1] 51
    -# Or in a pipe: -mean %>% lift_dl() %>% invoke(x)
    #> [1] 51
    -# You can also use the lift() alias for this common operation: -lift(mean)(x)
    #> [1] 51
    -# Default arguments can also be specified directly in lift_dl() -list(c(1:100, NA, 1000)) %>% lift_dl(mean, na.rm = TRUE)()
    #> [1] 59.90099
    -# lift_dl() and lift_ld() are inverse of each other. -# Here we transform sum() so that it takes a list -fun <- sum %>% lift_dl() -fun(list(3, NA, 4, na.rm = TRUE))
    #> [1] 7
    -# Now we transform it back to a variadic function -fun2 <- fun %>% lift_ld() -fun2(3, NA, 4, na.rm = TRUE)
    #> [1] 7
    -# It can sometimes be useful to make sure the lifted function's -# signature has no named parameters, as would be the case for a -# function taking only dots. The lifted function will take a list -# or vector but will not match its arguments to the names of the -# input. For instance, if you give a data frame as input to your -# lifted function, the names of the columns are probably not -# related to the function signature and should be discarded. -lifted_identical <- lift_dl(identical, .unnamed = TRUE) -mtcars[c(1, 1)] %>% lifted_identical()
    #> [1] TRUE
    mtcars[c(1, 2)] %>% lifted_identical()
    #> [1] FALSE
    # - - -### Lifting from c(...) to list(...) or ... - -# In other situations we need the vector-valued function to take a -# variable number of arguments as with pmap(). This is a job for -# lift_vd(): -pmap(mtcars, lift_vd(mean))
    #> [[1]] -#> [1] 29.90727 -#> -#> [[2]] -#> [1] 29.98136 -#> -#> [[3]] -#> [1] 23.59818 -#> -#> [[4]] -#> [1] 38.73955 -#> -#> [[5]] -#> [1] 53.66455 -#> -#> [[6]] -#> [1] 35.04909 -#> -#> [[7]] -#> [1] 59.72 -#> -#> [[8]] -#> [1] 24.63455 -#> -#> [[9]] -#> [1] 27.23364 -#> -#> [[10]] -#> [1] 31.86 -#> -#> [[11]] -#> [1] 31.78727 -#> -#> [[12]] -#> [1] 46.43091 -#> -#> [[13]] -#> [1] 46.5 -#> -#> [[14]] -#> [1] 46.35 -#> -#> [[15]] -#> [1] 66.23273 -#> -#> [[16]] -#> [1] 66.05855 -#> -#> [[17]] -#> [1] 65.97227 -#> -#> [[18]] -#> [1] 19.44091 -#> -#> [[19]] -#> [1] 17.74227 -#> -#> [[20]] -#> [1] 18.81409 -#> -#> [[21]] -#> [1] 24.88864 -#> -#> [[22]] -#> [1] 47.24091 -#> -#> [[23]] -#> [1] 46.00773 -#> -#> [[24]] -#> [1] 58.75273 -#> -#> [[25]] -#> [1] 57.37955 -#> -#> [[26]] -#> [1] 18.92864 -#> -#> [[27]] -#> [1] 24.77909 -#> -#> [[28]] -#> [1] 24.88027 -#> -#> [[29]] -#> [1] 60.97182 -#> -#> [[30]] -#> [1] 34.50818 -#> -#> [[31]] -#> [1] 63.15545 -#> -#> [[32]] -#> [1] 26.26273 -#>
    -# lift_vd() will collect the arguments and concatenate them to a -# vector before passing them to ..f. You can add a check to assert -# the type of vector you expect: -lift_vd(tolower, .type = character(1))("this", "is", "ok")
    #> [1] "this" "is" "ok"
    # - - -### Lifting from list(...) to c(...) or ... - -# cross() normally takes a list of elements and returns their -# cartesian product. By lifting it you can supply the arguments as -# if it was a function taking dots: -cross_dots <- lift_ld(cross) -out1 <- cross(list(a = 1:2, b = c("a", "b", "c"))) -out2 <- cross_dots(a = 1:2, b = c("a", "b", "c")) -identical(out1, out2)
    #> [1] TRUE
    -# This kind of lifting is sometimes needed for function -# composition. An example would be to use pmap() with a function -# that takes a list. In the following, we use some() on each row of -# a data frame to check they each contain at least one element -# satisfying a condition: -mtcars %>% pmap(lift_ld(some, partial(`<`, 200)))
    #> [[1]] -#> [1] FALSE -#> -#> [[2]] -#> [1] FALSE -#> -#> [[3]] -#> [1] FALSE -#> -#> [[4]] -#> [1] TRUE -#> -#> [[5]] -#> [1] TRUE -#> -#> [[6]] -#> [1] TRUE -#> -#> [[7]] -#> [1] TRUE -#> -#> [[8]] -#> [1] FALSE -#> -#> [[9]] -#> [1] FALSE -#> -#> [[10]] -#> [1] FALSE -#> -#> [[11]] -#> [1] FALSE -#> -#> [[12]] -#> [1] TRUE -#> -#> [[13]] -#> [1] TRUE -#> -#> [[14]] -#> [1] TRUE -#> -#> [[15]] -#> [1] TRUE -#> -#> [[16]] -#> [1] TRUE -#> -#> [[17]] -#> [1] TRUE -#> -#> [[18]] -#> [1] FALSE -#> -#> [[19]] -#> [1] FALSE -#> -#> [[20]] -#> [1] FALSE -#> -#> [[21]] -#> [1] FALSE -#> -#> [[22]] -#> [1] TRUE -#> -#> [[23]] -#> [1] TRUE -#> -#> [[24]] -#> [1] TRUE -#> -#> [[25]] -#> [1] TRUE -#> -#> [[26]] -#> [1] FALSE -#> -#> [[27]] -#> [1] FALSE -#> -#> [[28]] -#> [1] FALSE -#> -#> [[29]] -#> [1] TRUE -#> -#> [[30]] -#> [1] FALSE -#> -#> [[31]] -#> [1] TRUE -#> -#> [[32]] -#> [1] FALSE -#>
    -# Default arguments for ..f can be specified in the call to -# lift_ld() -lift_ld(cross, .filter = `==`)(1:3, 1:3) %>% str()
    #> List of 6 -#> $ :List of 2 -#> ..$ : int 2 -#> ..$ : int 1 -#> $ :List of 2 -#> ..$ : int 3 -#> ..$ : int 1 -#> $ :List of 2 -#> ..$ : int 1 -#> ..$ : int 2 -#> $ :List of 2 -#> ..$ : int 3 -#> ..$ : int 2 -#> $ :List of 2 -#> ..$ : int 1 -#> ..$ : int 3 -#> $ :List of 2 -#> ..$ : int 2 -#> ..$ : int 3
    - -# Here is another function taking a list and that we can update to -# take a vector: -glue <- function(l) { - if (!is.list(l)) stop("not a list") - l %>% invoke(paste, .) -}
    # NOT RUN { -letters %>% glue() # fails because glue() expects a list -# }
    -letters %>% lift_lv(glue)() # succeeds
    #> [1] "a b c d e f g h i j k l m n o p q r s t u v w x y z"
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/list_modify.html b/docs/reference/list_modify.html deleted file mode 100644 index 26088c3ed..000000000 --- a/docs/reference/list_modify.html +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - - - -Modify a list — list_modify • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    list_modify() and list_merge() recursively combine two lists, matching -elements either by name or position. If a sub-element is present in -both lists list_modify() takes the value from y, and list_merge() -concatenates the values together.

    -

    update_list() handles formulas and quosures that can refer to -values existing within the input list. Note that this function -might be deprecated in the future in favour of a dplyr::mutate() -method for lists.

    - -
    - -
    list_modify(.x, ...)
    -
    -list_merge(.x, ...)
    - -

    Arguments

    - - - - - - - - - - -
    .x

    List to modify.

    ...

    New values of a list. Use NULL to remove values. -Use a formula to evaluate in the context of the list values. -These dots have splicing semantics.

    - - -

    Examples

    -
    x <- list(x = 1:10, y = 4, z = list(a = 1, b = 2)) -str(x)
    #> List of 3 -#> $ x: int [1:10] 1 2 3 4 5 6 7 8 9 10 -#> $ y: num 4 -#> $ z:List of 2 -#> ..$ a: num 1 -#> ..$ b: num 2
    -# Update values -str(list_modify(x, a = 1))
    #> List of 4 -#> $ x: int [1:10] 1 2 3 4 5 6 7 8 9 10 -#> $ y: num 4 -#> $ z:List of 2 -#> ..$ a: num 1 -#> ..$ b: num 2 -#> $ a: num 1
    # Replace values -str(list_modify(x, z = 5))
    #> List of 3 -#> $ x: int [1:10] 1 2 3 4 5 6 7 8 9 10 -#> $ y: num 4 -#> $ z: num 5
    str(list_modify(x, z = list(a = 1:5)))
    #> List of 3 -#> $ x: int [1:10] 1 2 3 4 5 6 7 8 9 10 -#> $ y: num 4 -#> $ z:List of 2 -#> ..$ a: int [1:5] 1 2 3 4 5 -#> ..$ b: num 2
    # Remove values -str(list_modify(x, z = NULL))
    #> List of 2 -#> $ x: int [1:10] 1 2 3 4 5 6 7 8 9 10 -#> $ y: num 4
    -# Combine values -str(list_merge(x, x = 11, z = list(a = 2:5, c = 3)))
    #> List of 3 -#> $ x: num [1:11] 1 2 3 4 5 6 7 8 9 10 ... -#> $ y: num 4 -#> $ z:List of 3 -#> ..$ a: num [1:5] 1 2 3 4 5 -#> ..$ b: num 2 -#> ..$ c: num 3
    - -# All these functions take dots with splicing. Use !!! or UQS() to -# splice a list of arguments: -l <- list(new = 1, y = NULL, z = 5) -str(list_modify(x, !!! l))
    #> List of 3 -#> $ x : int [1:10] 1 2 3 4 5 6 7 8 9 10 -#> $ z : num 5 -#> $ new: num 1
    -# In update_list() you can also use quosures and formulas to -# compute new values. This function is likely to be deprecated in -# the future -str(update_list(x, z1 = ~z[[1]]))
    #> List of 4 -#> $ x : int [1:10] 1 2 3 4 5 6 7 8 9 10 -#> $ y : num 4 -#> $ z :List of 2 -#> ..$ a: num 1 -#> ..$ b: num 2 -#> $ z1: num 1
    str(update_list(x, z = rlang::quo(x + y)))
    #> List of 3 -#> $ x: int [1:10] 1 2 3 4 5 6 7 8 9 10 -#> $ y: num 4 -#> $ z: num [1:10] 5 6 7 8 9 10 11 12 13 14
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/lmap.html b/docs/reference/lmap.html deleted file mode 100644 index 965313320..000000000 --- a/docs/reference/lmap.html +++ /dev/null @@ -1,356 +0,0 @@ - - - - - - - - -Apply a function to list-elements of a list — lmap • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    lmap(), lmap_at() and lmap_if() are similar to -map(), map_at() and map_if(), with the -difference that they operate exclusively on functions that take -and return a list (or data frame). Thus, instead of mapping -the elements of a list (as in .x[[i]]), they apply a -function .f to each subset of size 1 of that list (as in -.x[i]). We call those elements list-elements).

    - -
    - -
    lmap(.x, .f, ...)
    -
    -lmap_if(.x, .p, .f, ...)
    -
    -lmap_at(.x, .at, .f, ...)
    - -

    Arguments

    - - - - - - - - - - - - - - - - - - - - - - -
    .x

    A list or data frame.

    .f

    A function that takes and returns a list or data frame.

    ...

    Additional arguments passed on to .f.

    .p

    A single predicate function, a formula describing such a -predicate function, or a logical vector of the same length as .x. -Alternatively, if the elements of .x are themselves lists of -objects, a string indicating the name of a logical element in the -inner lists. Only those elements where .p evaluates to -TRUE will be modified.

    .at

    A character vector of names, positive numeric vector of -positions to include, or a negative numeric vector of positions to -exlude. Only those elements corresponding to .at will be modified.

    - -

    Value

    - -

    If .x is a list, a list. If .x is a data -frame, a data frame.

    - -

    Details

    - -

    Mapping the list-elements .x[i] has several advantages. It -makes it possible to work with functions that exclusively take a -list or data frame. It enables .f to access the attributes -of the encapsulating list, like the name of the components it -receives. It also enables .f to return a larger list than -the list-element of size 1 it got as input. Conversely, .f -can also return empty lists. In these cases, the output list is -reshaped with a different size than the input list .x.

    - -

    See also

    - -

    Other map variants: imap, - invoke, map2, - map, modify

    - - -

    Examples

    -
    # Let's write a function that returns a larger list or an empty list -# depending on some condition. This function also uses the names -# metadata available in the attributes of the list-element -maybe_rep <- function(x) { - n <- rpois(1, 2) - out <- rep_len(x, n) - if (length(out) > 0) { - names(out) <- paste0(names(x), seq_len(n)) - } - out -} - -# The output size varies each time we map f() -x <- list(a = 1:4, b = letters[5:7], c = 8:9, d = letters[10]) -x %>% lmap(maybe_rep)
    #> $a1 -#> [1] 1 2 3 4 -#> -#> $b1 -#> [1] "e" "f" "g" -#> -#> $b2 -#> [1] "e" "f" "g" -#> -#> $c1 -#> [1] 8 9 -#> -#> $d1 -#> [1] "j" -#> -#> $d2 -#> [1] "j" -#> -#> $d3 -#> [1] "j" -#>
    -# We can apply f() on a selected subset of x -x %>% lmap_at(c("a", "d"), maybe_rep)
    #> $a1 -#> [1] 1 2 3 4 -#> -#> $a2 -#> [1] 1 2 3 4 -#> -#> $a3 -#> [1] 1 2 3 4 -#> -#> $a4 -#> [1] 1 2 3 4 -#> -#> $b -#> [1] "e" "f" "g" -#> -#> $c -#> [1] 8 9 -#> -#> $d1 -#> [1] "j" -#> -#> $d2 -#> [1] "j" -#> -#> $d3 -#> [1] "j" -#>
    -# Or only where a condition is satisfied -x %>% lmap_if(is.character, maybe_rep)
    #> $a -#> [1] 1 2 3 4 -#> -#> $b1 -#> [1] "e" "f" "g" -#> -#> $b2 -#> [1] "e" "f" "g" -#> -#> $b3 -#> [1] "e" "f" "g" -#> -#> $b4 -#> [1] "e" "f" "g" -#> -#> $c -#> [1] 8 9 -#> -#> $d1 -#> [1] "j" -#>
    - -# A more realistic example would be a function that takes discrete -# variables in a dataset and turns them into disjunctive tables, a -# form that is amenable to fitting some types of models. - -# A disjunctive table contains only 0 and 1 but has as many columns -# as unique values in the original variable. Ideally, we want to -# combine the names of each level with the name of the discrete -# variable in order to identify them. Given these requirements, it -# makes sense to have a function that takes a data frame of size 1 -# and returns a data frame of variable size. -disjoin <- function(x, sep = "_") { - name <- names(x) - x <- as.factor(x[[1]]) - - out <- lapply(levels(x), function(level) { - as.numeric(x == level) - }) - - names(out) <- paste(name, levels(x), sep = sep) - tibble::as_tibble(out) -} - -# Now, we are ready to map disjoin() on each categorical variable of a -# data frame: -iris %>% lmap_if(is.factor, disjoin)
    #> # A tibble: 150 x 7 -#> Sepal.Length Sepal.Width Petal.Length Petal.Width Species_setosa -#> <dbl> <dbl> <dbl> <dbl> <dbl> -#> 1 5.1 3.5 1.4 0.2 1 -#> 2 4.9 3 1.4 0.2 1 -#> 3 4.7 3.2 1.3 0.2 1 -#> 4 4.6 3.1 1.5 0.2 1 -#> 5 5 3.6 1.4 0.2 1 -#> 6 5.4 3.9 1.7 0.4 1 -#> 7 4.6 3.4 1.4 0.3 1 -#> 8 5 3.4 1.5 0.2 1 -#> 9 4.4 2.9 1.4 0.2 1 -#> 10 4.9 3.1 1.5 0.1 1 -#> # ... with 140 more rows, and 2 more variables: Species_versicolor <dbl>, -#> # Species_virginica <dbl>
    mtcars %>% lmap_at(c("cyl", "vs", "am"), disjoin)
    #> # A tibble: 32 x 15 -#> mpg cyl_4 cyl_6 cyl_8 disp hp drat wt qsec vs_0 vs_1 am_0 -#> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> -#> 1 21 0 1 0 160 110 3.9 2.62 16.5 1 0 0 -#> 2 21 0 1 0 160 110 3.9 2.88 17.0 1 0 0 -#> 3 22.8 1 0 0 108 93 3.85 2.32 18.6 0 1 0 -#> 4 21.4 0 1 0 258 110 3.08 3.22 19.4 0 1 1 -#> 5 18.7 0 0 1 360 175 3.15 3.44 17.0 1 0 1 -#> 6 18.1 0 1 0 225 105 2.76 3.46 20.2 0 1 1 -#> 7 14.3 0 0 1 360 245 3.21 3.57 15.8 1 0 1 -#> 8 24.4 1 0 0 147. 62 3.69 3.19 20 0 1 1 -#> 9 22.8 1 0 0 141. 95 3.92 3.15 22.9 0 1 1 -#> 10 19.2 0 1 0 168. 123 3.92 3.44 18.3 0 1 1 -#> # ... with 22 more rows, and 3 more variables: am_1 <dbl>, gear <dbl>, -#> # carb <dbl>
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/map.html b/docs/reference/map.html deleted file mode 100644 index 8d8cd4667..000000000 --- a/docs/reference/map.html +++ /dev/null @@ -1,439 +0,0 @@ - - - - - - - - -Apply a function to each element of a vector — map • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    The map functions transform their input by applying a function to -each element and returning a vector the same length as the input.

      -
    • map(), map_if() and map_at() always return a list. See the -modify() family for versions that return an object of the same -type as the input.

      -

      The _if and _at variants take a predicate function .p that -determines which elements of .x are transformed with .f.

    • -
    • map_lgl(), map_int(), map_dbl() and map_chr() return -vectors of the corresponding type (or die trying).

    • -
    • map_dfr() and map_dfc() return data frames created by -row-binding and column-binding respectively. They require dplyr -to be installed.

    • -
    • walk() calls .f for its side-effect and returns the input .x.

    • -
    - -
    - -
    map(.x, .f, ...)
    -
    -map_if(.x, .p, .f, ...)
    -
    -map_at(.x, .at, .f, ...)
    -
    -map_lgl(.x, .f, ...)
    -
    -map_chr(.x, .f, ...)
    -
    -map_int(.x, .f, ...)
    -
    -map_dbl(.x, .f, ...)
    -
    -map_raw(.x, .f, ...)
    -
    -map_dfr(.x, .f, ..., .id = NULL)
    -
    -map_dfc(.x, .f, ...)
    -
    -walk(.x, .f, ...)
    - -

    Arguments

    - - - - - - - - - - - - - - - - - - - - - - - - - - -
    .x

    A list or atomic vector.

    .f

    A function, formula, or atomic vector.

    -

    If a function, it is used as is.

    -

    If a formula, e.g. ~ .x + 2, it is converted to a function. There -are three ways to refer to the arguments:

      -
    • For a single argument function, use .

    • -
    • For a two argument function, use .x and .y

    • -
    • For more arguments, use ..1, ..2, ..3 etc

    • -
    - -

    This syntax allows you to create very compact anonymous functions.

    -

    If character vector, numeric vector, or list, it -is converted to an extractor function. Character vectors index by name -and numeric vectors index by position; use a list to index by position -and name at different levels. Within a list, wrap strings in get-attr() -to extract named attributes. If a component is not present, the value of -.default will be returned.

    ...

    Additional arguments passed on to .f.

    .p

    A single predicate function, a formula describing such a -predicate function, or a logical vector of the same length as .x. -Alternatively, if the elements of .x are themselves lists of -objects, a string indicating the name of a logical element in the -inner lists. Only those elements where .p evaluates to -TRUE will be modified.

    .at

    A character vector of names, positive numeric vector of -positions to include, or a negative numeric vector of positions to -exlude. Only those elements corresponding to .at will be modified.

    .id

    Either a string or NULL. If a string, the output will contain -a variable with that name, storing either the name (if .x is named) or -the index (if .x is unnamed) of the input. If NULL, the default, no -variable will be created.

    -

    Only applies to _dfr variant.

    - -

    Value

    - -

    All functions return a vector the same length as .x.

    -

    map() returns a list, map_lgl() a logical vector, map_int() an -integer vector, map_dbl() a double vector, and map_chr() a character -vector. The output of .f will be automatically typed upwards, -e.g. logical -> integer -> double -> character.

    -

    walk() returns the input .x (invisibly). This makes it easy to -use in pipe.

    - -

    See also

    - -

    Other map variants: imap, - invoke, lmap, - map2, modify

    - - -

    Examples

    -
    1:10 %>% - map(rnorm, n = 10) %>% - map_dbl(mean)
    #> [1] 0.9714714 2.3044667 3.3578648 4.0606456 5.2247875 6.6328310 -#> [7] 6.6803245 8.1763451 9.2655661 10.2225539
    -# Or use an anonymous function -1:10 %>% - map(function(x) rnorm(10, x))
    #> [[1]] -#> [1] -0.4960537 -0.1848187 1.6302344 3.1012525 0.3862632 -0.6346383 -#> [7] 0.9895589 0.3434939 0.3304666 0.5214110 -#> -#> [[2]] -#> [1] 3.3194563 2.6365628 2.5143278 0.2486249 2.8935975 2.2230384 2.5808166 -#> [8] 1.8221786 2.7409667 1.0025569 -#> -#> [[3]] -#> [1] 0.06102244 3.71901566 2.30199496 1.10587416 3.07629925 3.87530850 -#> [7] 3.45382739 2.14928309 3.56620161 4.15221195 -#> -#> [[4]] -#> [1] 3.243803 3.510742 2.833948 3.520331 4.115348 2.231952 2.592361 4.709178 -#> [9] 2.759157 3.631673 -#> -#> [[5]] -#> [1] 5.462080 4.677167 3.712785 3.969960 6.514089 5.346904 6.779442 5.386631 -#> [9] 4.081305 3.415664 -#> -#> [[6]] -#> [1] 5.915941 3.914929 6.003568 5.644229 7.146360 5.778812 7.018179 5.736281 -#> [9] 7.658542 5.225913 -#> -#> [[7]] -#> [1] 6.076062 6.724467 6.406600 6.877714 8.179784 7.641037 6.370411 6.192265 -#> [9] 6.139510 4.830761 -#> -#> [[8]] -#> [1] 6.624163 7.506868 7.418348 7.832771 8.485993 6.666604 7.738034 8.652386 -#> [9] 8.748855 8.896560 -#> -#> [[9]] -#> [1] 10.489300 8.340597 9.537283 9.746803 10.896317 6.939929 9.064544 -#> [8] 8.734853 8.552655 7.589299 -#> -#> [[10]] -#> [1] 9.493581 9.730238 8.914845 10.362159 9.664328 11.363804 9.288476 -#> [8] 10.662179 10.291130 10.197958 -#>
    -# Or a formula -1:10 %>% - map(~ rnorm(10, .x))
    #> [[1]] -#> [1] -0.2035661 0.9601830 1.6869825 1.7052670 1.9914417 2.1442490 -#> [7] -0.2389102 3.6548983 0.8430828 0.5765099 -#> -#> [[2]] -#> [1] 1.8016129 1.1051976 2.9042691 2.0796492 0.7411728 3.0256851 1.2692214 -#> [8] 1.8098545 2.5288647 2.5502105 -#> -#> [[3]] -#> [1] 3.5496843 2.3404576 3.0574217 0.1919895 2.0877402 2.2176208 2.3358951 -#> [8] 3.6263098 2.4927518 3.2703613 -#> -#> [[4]] -#> [1] 4.467477 4.723995 4.613837 3.382131 4.220725 5.127927 5.813454 3.916174 -#> [9] 5.367707 3.372565 -#> -#> [[5]] -#> [1] 4.783371 4.316286 4.555297 5.606490 5.624183 4.304569 4.216361 4.046876 -#> [9] 6.792756 5.348977 -#> -#> [[6]] -#> [1] 6.259104 5.194048 6.105665 5.666400 7.641848 5.356094 6.587021 5.849597 -#> [9] 4.289178 7.431033 -#> -#> [[7]] -#> [1] 4.354788 5.967543 6.292534 6.299440 7.537885 6.683668 6.160377 5.645072 -#> [9] 6.182432 6.365600 -#> -#> [[8]] -#> [1] 8.815949 8.302796 9.807087 7.105973 7.953572 7.528821 7.473307 7.904865 -#> [9] 5.504635 8.166889 -#> -#> [[9]] -#> [1] 9.350492 10.433701 9.765907 10.167521 8.863057 8.485098 10.519744 -#> [8] 8.671508 8.946328 8.436475 -#> -#> [[10]] -#> [1] 9.256091 9.890958 9.439171 10.188002 10.748851 8.083462 10.236096 -#> [8] 10.628953 10.417926 11.976758 -#>
    -# Extract by name or position -# .default specifies value for elements that are missing or NULL -l1 <- list(list(a = 1L), list(a = NULL, b = 2L), list(b = 3L)) -l1 %>% map("a", .default = "???")
    #> [[1]] -#> [1] 1 -#> -#> [[2]] -#> [1] "???" -#> -#> [[3]] -#> [1] "???" -#>
    l1 %>% map_int("b", .default = NA)
    #> [1] NA 2 3
    l1 %>% map_int(2, .default = NA)
    #> [1] NA 2 NA
    -# Supply multiple values to index deeply into a list -l2 <- list( - list(num = 1:3, letters[1:3]), - list(num = 101:103, letters[4:6]), - list() -) -l2 %>% map(c(2, 2))
    #> [[1]] -#> [1] "b" -#> -#> [[2]] -#> [1] "e" -#> -#> [[3]] -#> NULL -#>
    -# Use a list to build an extractor that mixes numeric indices and names, -# and .default to provide a default value if the element does not exist -l2 %>% map(list("num", 3))
    #> [[1]] -#> [1] 3 -#> -#> [[2]] -#> [1] 103 -#> -#> [[3]] -#> NULL -#>
    l2 %>% map_int(list("num", 3), .default = NA)
    #> [1] 3 103 NA
    -# A more realistic example: split a data frame into pieces, fit a -# model to each piece, summarise and extract R^2 -mtcars %>% - split(.$cyl) %>% - map(~ lm(mpg ~ wt, data = .x)) %>% - map(summary) %>% - map_dbl("r.squared")
    #> 4 6 8 -#> 0.5086326 0.4645102 0.4229655
    -# Use map_lgl(), map_dbl(), etc to reduce to a vector. -# * list -mtcars %>% map(sum)
    #> $mpg -#> [1] 642.9 -#> -#> $cyl -#> [1] 198 -#> -#> $disp -#> [1] 7383.1 -#> -#> $hp -#> [1] 4694 -#> -#> $drat -#> [1] 115.09 -#> -#> $wt -#> [1] 102.952 -#> -#> $qsec -#> [1] 571.16 -#> -#> $vs -#> [1] 14 -#> -#> $am -#> [1] 13 -#> -#> $gear -#> [1] 118 -#> -#> $carb -#> [1] 90 -#>
    # * vector -mtcars %>% map_dbl(sum)
    #> mpg cyl disp hp drat wt qsec vs -#> 642.900 198.000 7383.100 4694.000 115.090 102.952 571.160 14.000 -#> am gear carb -#> 13.000 118.000 90.000
    -# If each element of the output is a data frame, use -# map_dfr to row-bind them together: -mtcars %>% - split(.$cyl) %>% - map(~ lm(mpg ~ wt, data = .x)) %>% - map_dfr(~ as.data.frame(t(as.matrix(coef(.)))))
    #> (Intercept) wt -#> 1 39.57120 -5.647025 -#> 2 28.40884 -2.780106 -#> 3 23.86803 -2.192438
    # (if you also want to preserve the variable names see -# the broom package) -
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/map2.html b/docs/reference/map2.html deleted file mode 100644 index 0d45f0529..000000000 --- a/docs/reference/map2.html +++ /dev/null @@ -1,373 +0,0 @@ - - - - - - - - -Map over multiple inputs simultaneously. — map2 • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    These functions are variants of map() that iterate over multiple arguments -simultaneously. They are parallel in the sense that each input is processed -in parallel with the others, not in the sense of multicore computing. They -share the same notion of "parallel" as base::pmax() and base::pmin(). -map2() and walk2() are specialised for the two argument case; pmap() -and pwalk() allow you to provide any number of arguments in a list.

    - -
    - -
    map2(.x, .y, .f, ...)
    -
    -map2_lgl(.x, .y, .f, ...)
    -
    -map2_int(.x, .y, .f, ...)
    -
    -map2_dbl(.x, .y, .f, ...)
    -
    -map2_chr(.x, .y, .f, ...)
    -
    -map2_raw(.x, .y, .f, ...)
    -
    -map2_dfr(.x, .y, .f, ..., .id = NULL)
    -
    -map2_dfc(.x, .y, .f, ...)
    -
    -walk2(.x, .y, .f, ...)
    -
    -pmap(.l, .f, ...)
    -
    -pmap_lgl(.l, .f, ...)
    -
    -pmap_int(.l, .f, ...)
    -
    -pmap_dbl(.l, .f, ...)
    -
    -pmap_chr(.l, .f, ...)
    -
    -pmap_raw(.l, .f, ...)
    -
    -pmap_dfr(.l, .f, ..., .id = NULL)
    -
    -pmap_dfc(.l, .f, ...)
    -
    -pwalk(.l, .f, ...)
    - -

    Arguments

    - - - - - - - - - - - - - - - - - - - - - - -
    .x, .y

    Vectors of the same length. A vector of length 1 will -be recycled.

    .f

    A function, formula, or atomic vector.

    -

    If a function, it is used as is.

    -

    If a formula, e.g. ~ .x + 2, it is converted to a function. There -are three ways to refer to the arguments:

      -
    • For a single argument function, use .

    • -
    • For a two argument function, use .x and .y

    • -
    • For more arguments, use ..1, ..2, ..3 etc

    • -
    - -

    This syntax allows you to create very compact anonymous functions.

    -

    If character vector, numeric vector, or list, it -is converted to an extractor function. Character vectors index by name -and numeric vectors index by position; use a list to index by position -and name at different levels. Within a list, wrap strings in get-attr() -to extract named attributes. If a component is not present, the value of -.default will be returned.

    ...

    Additional arguments passed on to .f.

    .id

    Either a string or NULL. If a string, the output will contain -a variable with that name, storing either the name (if .x is named) or -the index (if .x is unnamed) of the input. If NULL, the default, no -variable will be created.

    -

    Only applies to _dfr variant.

    .l

    A list of lists. The length of .l determines the -number of arguments that .f will be called with. List -names will be used if present.

    - -

    Value

    - -

    An atomic vector, list, or data frame, depending on the suffix. -Atomic vectors and lists will be named if .x or the first -element of .l is named.

    -

    If all input is length 0, the output will be length 0. If any -input is length 1, it will be recycled to the length of the longest.

    - -

    Details

    - -

    Note that arguments to be vectorised over come before the .f, -and arguments that are supplied to every call come after .f.

    - -

    See also

    - -

    Other map variants: imap, - invoke, lmap, - map, modify

    - - -

    Examples

    -
    x <- list(1, 10, 100) -y <- list(1, 2, 3) -z <- list(5, 50, 500) - -map2(x, y, ~ .x + .y)
    #> [[1]] -#> [1] 2 -#> -#> [[2]] -#> [1] 12 -#> -#> [[3]] -#> [1] 103 -#>
    # Or just -map2(x, y, `+`)
    #> [[1]] -#> [1] 2 -#> -#> [[2]] -#> [1] 12 -#> -#> [[3]] -#> [1] 103 -#>
    -pmap(list(x, y, z), sum)
    #> [[1]] -#> [1] 7 -#> -#> [[2]] -#> [1] 62 -#> -#> [[3]] -#> [1] 603 -#>
    -# Matching arguments by position -pmap(list(x, y, z), function(a, b, c) a / (b + c))
    #> [[1]] -#> [1] 0.1666667 -#> -#> [[2]] -#> [1] 0.1923077 -#> -#> [[3]] -#> [1] 0.1988072 -#>
    -# Matching arguments by name -l <- list(a = x, b = y, c = z) -pmap(l, function(c, b, a) a / (b + c))
    #> [[1]] -#> [1] 0.1666667 -#> -#> [[2]] -#> [1] 0.1923077 -#> -#> [[3]] -#> [1] 0.1988072 -#>
    -# Split into pieces, fit model to each piece, then predict -by_cyl <- mtcars %>% split(.$cyl) -mods <- by_cyl %>% map(~ lm(mpg ~ wt, data = .)) -map2(mods, by_cyl, predict)
    #> $`4` -#> Datsun 710 Merc 240D Merc 230 Fiat 128 Honda Civic -#> 26.47010 21.55719 21.78307 27.14774 30.45125 -#> Toyota Corolla Toyota Corona Fiat X1-9 Porsche 914-2 Lotus Europa -#> 29.20890 25.65128 28.64420 27.48656 31.02725 -#> Volvo 142E -#> 23.87247 -#> -#> $`6` -#> Mazda RX4 Mazda RX4 Wag Hornet 4 Drive Valiant Merc 280 -#> 21.12497 20.41604 19.47080 18.78968 18.84528 -#> Merc 280C Ferrari Dino -#> 18.84528 20.70795 -#> -#> $`8` -#> Hornet Sportabout Duster 360 Merc 450SE Merc 450SL -#> 16.32604 16.04103 14.94481 15.69024 -#> Merc 450SLC Cadillac Fleetwood Lincoln Continental Chrysler Imperial -#> 15.58061 12.35773 11.97625 12.14945 -#> Dodge Challenger AMC Javelin Camaro Z28 Pontiac Firebird -#> 16.15065 16.33700 15.44907 15.43811 -#> Ford Pantera L Maserati Bora -#> 16.91800 16.04103 -#>
    -# Vectorizing a function over multiple arguments -df <- data.frame( - x = c("apple", "banana", "cherry"), - pattern = c("p", "n", "h"), - replacement = c("x", "f", "q"), - stringsAsFactors = FALSE - ) -pmap(df, gsub)
    #> [[1]] -#> [1] "axxle" -#> -#> [[2]] -#> [1] "bafafa" -#> -#> [[3]] -#> [1] "cqerry" -#>
    pmap_chr(df, gsub)
    #> [1] "axxle" "bafafa" "cqerry"
    -# Use `...` to absorb unused components of input list .l -df <- data.frame( - x = 1:3 + 0.1, - y = 3:1 - 0.1, - z = letters[1:3] -) -plus <- function(x, y) x + y
    # NOT RUN { -# this won't work -pmap(df, plus) -# }
    # but this will -plus2 <- function(x, y, ...) x + y -pmap_dbl(df, plus2)
    #> [1] 4 4 4
    -# The "p" for "parallel" in pmap() is the same as in base::pmin() -# and base::pmax() -df <- data.frame( - x = c(1, 2, 5), - y = c(5, 4, 8) -) -# all produce the same result -pmin(df$x, df$y)
    #> [1] 1 2 5
    map2_dbl(df$x, df$y, min)
    #> [1] 1 2 5
    pmap_dbl(df, min)
    #> [1] 1 2 5
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/modify.html b/docs/reference/modify.html deleted file mode 100644 index b92517cec..000000000 --- a/docs/reference/modify.html +++ /dev/null @@ -1,391 +0,0 @@ - - - - - - - - -Modify elements selectively — modify • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    modify() is a short-cut for x[] <- map(x, .f); return(x). modify_if() -only modifies the elements of x that satisfy a predicate and leaves the -others unchanged. modify_at() only modifies elements given by names or -positions. modify_depth() only modifies elements at a given level of a -nested data structure.

    - -
    - -
    modify(.x, .f, ...)
    -
    -# S3 method for default
    -modify(.x, .f, ...)
    -
    -modify_if(.x, .p, .f, ...)
    -
    -# S3 method for default
    -modify_if(.x, .p, .f, ...)
    -
    -modify_at(.x, .at, .f, ...)
    -
    -# S3 method for default
    -modify_at(.x, .at, .f, ...)
    -
    -modify_depth(.x, .depth, .f, ..., .ragged = .depth < 0)
    -
    -# S3 method for default
    -modify_depth(.x, .depth, .f, ..., .ragged = .depth < 0)
    - -

    Arguments

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    .x

    A list or atomic vector.

    .f

    A function, formula, or atomic vector.

    -

    If a function, it is used as is.

    -

    If a formula, e.g. ~ .x + 2, it is converted to a function. There -are three ways to refer to the arguments:

      -
    • For a single argument function, use .

    • -
    • For a two argument function, use .x and .y

    • -
    • For more arguments, use ..1, ..2, ..3 etc

    • -
    - -

    This syntax allows you to create very compact anonymous functions.

    -

    If character vector, numeric vector, or list, it -is converted to an extractor function. Character vectors index by name -and numeric vectors index by position; use a list to index by position -and name at different levels. Within a list, wrap strings in get-attr() -to extract named attributes. If a component is not present, the value of -.default will be returned.

    ...

    Additional arguments passed on to .f.

    .p

    A single predicate function, a formula describing such a -predicate function, or a logical vector of the same length as .x. -Alternatively, if the elements of .x are themselves lists of -objects, a string indicating the name of a logical element in the -inner lists. Only those elements where .p evaluates to -TRUE will be modified.

    .at

    A character vector of names, positive numeric vector of -positions to include, or a negative numeric vector of positions to -exlude. Only those elements corresponding to .at will be modified.

    .depth

    Level of .x to map on. Use a negative value to count up -from the lowest level of the list.

      -
    • modify_depth(x, 0, fun) is equivalent to x[] <- fun(x)

    • -
    • modify_depth(x, 1, fun) is equivalent to x[] <- map(x, fun)

    • -
    • modify_depth(x, 2, fun) is equivalent to x[] <- map(x, ~ map(., fun))

    • -
    .ragged

    If TRUE, will apply to leaves, even if they're not -at depth .depth. If FALSE, will throw an error if there are -no elements at depth .depth.

    - -

    Value

    - -

    An object the same class as .x

    - -

    Details

    - -

    Since the transformation can alter the structure of the input; it's -your responsibility to ensure that the transformation produces a -valid output. For example, if you're modifying a data frame, .f -must preserve the length of the input.

    - -

    Genericity

    - - -

    All these functions are S3 generic. However, the default method is -sufficient in many cases. It should be suitable for any data type -that implements the subset-assignment method [<-. Methods are provided -for character, logical, integer and double classes (counterparts to map_chr, -map_lgl, map_int, and map_dbl)

    -

    In some cases it may make sense to provide a custom implementation -with a method suited to your S3 class. For example, a grouped_df -method might take into account the grouped nature of a data frame.

    - -

    See also

    - -

    Other map variants: imap, - invoke, lmap, - map2, map

    - - -

    Examples

    -
    # Convert factors to characters -iris %>% - modify_if(is.factor, as.character) %>% - str()
    #> 'data.frame': 150 obs. of 5 variables: -#> $ Sepal.Length: num 5.1 4.9 4.7 4.6 5 5.4 4.6 5 4.4 4.9 ... -#> $ Sepal.Width : num 3.5 3 3.2 3.1 3.6 3.9 3.4 3.4 2.9 3.1 ... -#> $ Petal.Length: num 1.4 1.4 1.3 1.5 1.4 1.7 1.4 1.5 1.4 1.5 ... -#> $ Petal.Width : num 0.2 0.2 0.2 0.2 0.2 0.4 0.3 0.2 0.2 0.1 ... -#> $ Species : chr "setosa" "setosa" "setosa" "setosa" ...
    -# Specify which columns to map with a numeric vector of positions: -mtcars %>% modify_at(c(1, 4, 5), as.character) %>% str()
    #> 'data.frame': 32 obs. of 11 variables: -#> $ mpg : chr "21" "21" "22.8" "21.4" ... -#> $ cyl : num 6 6 4 6 8 6 8 4 4 6 ... -#> $ disp: num 160 160 108 258 360 ... -#> $ hp : chr "110" "110" "93" "110" ... -#> $ drat: chr "3.9" "3.9" "3.85" "3.08" ... -#> $ wt : num 2.62 2.88 2.32 3.21 3.44 ... -#> $ qsec: num 16.5 17 18.6 19.4 17 ... -#> $ vs : num 0 0 1 1 0 1 0 1 1 1 ... -#> $ am : num 1 1 1 0 0 0 0 0 0 0 ... -#> $ gear: num 4 4 4 3 3 3 3 4 4 4 ... -#> $ carb: num 4 4 1 1 2 1 4 2 2 4 ...
    -# Or with a vector of names: -mtcars %>% modify_at(c("cyl", "am"), as.character) %>% str()
    #> 'data.frame': 32 obs. of 11 variables: -#> $ mpg : num 21 21 22.8 21.4 18.7 18.1 14.3 24.4 22.8 19.2 ... -#> $ cyl : chr "6" "6" "4" "6" ... -#> $ disp: num 160 160 108 258 360 ... -#> $ hp : num 110 110 93 110 175 105 245 62 95 123 ... -#> $ drat: num 3.9 3.9 3.85 3.08 3.15 2.76 3.21 3.69 3.92 3.92 ... -#> $ wt : num 2.62 2.88 2.32 3.21 3.44 ... -#> $ qsec: num 16.5 17 18.6 19.4 17 ... -#> $ vs : num 0 0 1 1 0 1 0 1 1 1 ... -#> $ am : chr "1" "1" "1" "0" ... -#> $ gear: num 4 4 4 3 3 3 3 4 4 4 ... -#> $ carb: num 4 4 1 1 2 1 4 2 2 4 ...
    -list(x = rbernoulli(100), y = 1:100) %>% - transpose() %>% - modify_if("x", ~ update_list(., y = ~ y * 100)) %>% - transpose() %>% - simplify_all()
    #> $x -#> [1] FALSE TRUE FALSE FALSE FALSE TRUE TRUE TRUE FALSE TRUE TRUE TRUE -#> [13] FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE -#> [25] TRUE FALSE FALSE TRUE TRUE TRUE FALSE TRUE TRUE TRUE FALSE TRUE -#> [37] TRUE TRUE TRUE FALSE FALSE FALSE FALSE TRUE FALSE FALSE TRUE FALSE -#> [49] FALSE FALSE TRUE FALSE FALSE FALSE FALSE TRUE FALSE TRUE TRUE FALSE -#> [61] TRUE TRUE FALSE TRUE FALSE TRUE FALSE FALSE FALSE FALSE TRUE FALSE -#> [73] TRUE FALSE FALSE TRUE TRUE TRUE FALSE FALSE TRUE FALSE TRUE FALSE -#> [85] TRUE TRUE FALSE TRUE FALSE TRUE TRUE TRUE FALSE TRUE FALSE FALSE -#> [97] TRUE FALSE FALSE TRUE -#> -#> $y -#> [1] 1 200 3 4 5 600 700 800 9 1000 1100 1200 -#> [13] 13 14 15 1600 17 18 19 20 21 22 23 24 -#> [25] 2500 26 27 2800 2900 3000 31 3200 3300 3400 35 3600 -#> [37] 3700 3800 3900 40 41 42 43 4400 45 46 4700 48 -#> [49] 49 50 5100 52 53 54 55 5600 57 5800 5900 60 -#> [61] 6100 6200 63 6400 65 6600 67 68 69 70 7100 72 -#> [73] 7300 74 75 7600 7700 7800 79 80 8100 82 8300 84 -#> [85] 8500 8600 87 8800 89 9000 9100 9200 93 9400 95 96 -#> [97] 9700 98 99 10000 -#>
    -# Modify at specified depth --------------------------- -l1 <- list( - obj1 = list( - prop1 = list(param1 = 1:2, param2 = 3:4), - prop2 = list(param1 = 5:6, param2 = 7:8) - ), - obj2 = list( - prop1 = list(param1 = 9:10, param2 = 11:12), - prop2 = list(param1 = 12:14, param2 = 15:17) - ) -) - -# In the above list, "obj" is level 1, "prop" is level 2 and "param" -# is level 3. To apply sum() on all params, we map it at depth 3: -l1 %>% modify_depth(3, sum) %>% str()
    #> List of 2 -#> $ obj1:List of 2 -#> ..$ prop1:List of 2 -#> .. ..$ param1: int 3 -#> .. ..$ param2: int 7 -#> ..$ prop2:List of 2 -#> .. ..$ param1: int 11 -#> .. ..$ param2: int 15 -#> $ obj2:List of 2 -#> ..$ prop1:List of 2 -#> .. ..$ param1: int 19 -#> .. ..$ param2: int 23 -#> ..$ prop2:List of 2 -#> .. ..$ param1: int 39 -#> .. ..$ param2: int 48
    -# modify() lets us pluck the elements prop1/param2 in obj1 and obj2: -l1 %>% modify(c("prop1", "param2")) %>% str()
    #> List of 2 -#> $ obj1: int [1:2] 3 4 -#> $ obj2: int [1:2] 11 12
    -# But what if we want to pluck all param2 elements? Then we need to -# act at a lower level: -l1 %>% modify_depth(2, "param2") %>% str()
    #> List of 2 -#> $ obj1:List of 2 -#> ..$ prop1: int [1:2] 3 4 -#> ..$ prop2: int [1:2] 7 8 -#> $ obj2:List of 2 -#> ..$ prop1: int [1:2] 11 12 -#> ..$ prop2: int [1:3] 15 16 17
    -# modify_depth() can be with other purrr functions to make them operate at -# a lower level. Here we ask pmap() to map paste() simultaneously over all -# elements of the objects at the second level. paste() is effectively -# mapped at level 3. -l1 %>% modify_depth(2, ~ pmap(., paste, sep = " / ")) %>% str()
    #> List of 2 -#> $ obj1:List of 2 -#> ..$ prop1:List of 2 -#> .. ..$ : chr "1 / 3" -#> .. ..$ : chr "2 / 4" -#> ..$ prop2:List of 2 -#> .. ..$ : chr "5 / 7" -#> .. ..$ : chr "6 / 8" -#> $ obj2:List of 2 -#> ..$ prop1:List of 2 -#> .. ..$ : chr "9 / 11" -#> .. ..$ : chr "10 / 12" -#> ..$ prop2:List of 3 -#> .. ..$ : chr "12 / 15" -#> .. ..$ : chr "13 / 16" -#> .. ..$ : chr "14 / 17"
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/negate.html b/docs/reference/negate.html deleted file mode 100644 index f3aa0188e..000000000 --- a/docs/reference/negate.html +++ /dev/null @@ -1,190 +0,0 @@ - - - - - - - - -Negate a predicate function. — negate • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    Negate a predicate function.

    - -
    - -
    negate(.p, .default = FALSE)
    - -

    Arguments

    - - - - - - - - - - -
    .p

    A single predicate function, a formula describing such a -predicate function, or a logical vector of the same length as .x. -Alternatively, if the elements of .x are themselves lists of -objects, a string indicating the name of a logical element in the -inner lists. Only those elements where .p evaluates to -TRUE will be modified.

    .default

    Optional additional argument for extractor functions -(i.e. when .f is character, integer, or list). Returned when -value is absent (does not exist) or empty (has length 0). -.null is deprecated; please use .default instead.

    - -

    Value

    - -

    A new predicate function.

    - - -

    Examples

    -
    negate("x")
    #> function (x, ...) -#> { -#> !pluck(x, list("x"), .default = NULL) -#> } -#> <environment: 0x7f9d53c00600>
    negate(is.null)
    #> function (x) -#> { -#> !is.null(x = x) -#> } -#> <environment: base>
    negate(~ .x > 0)
    #> function (..., .x = ..1, .y = ..2, . = ..1) -#> { -#> !.x > 0 -#> } -#> <environment: 0x7f9d53fcf190>
    -x <- transpose(list(x = 1:10, y = rbernoulli(10))) -x %>% keep("y") %>% length()
    #> [1] 5
    x %>% keep(negate("y")) %>% length()
    #> [1] 5
    # Same as -x %>% discard("y") %>% length()
    #> [1] 5
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/null-default.html b/docs/reference/null-default.html deleted file mode 100644 index c1b4db9b5..000000000 --- a/docs/reference/null-default.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - - - -Default value for <code>NULL</code>. — null-default • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    This infix function makes it easy to replace NULLs with a -default value. It's inspired by the way that Ruby's or operation (||) -works.

    - -
    - -
    x %||% y
    - -

    Arguments

    - - - - - - -
    x, y

    If x is NULL, will return y; otherwise returns -x.

    - - -

    Examples

    -
    1 %||% 2
    #> [1] 1
    NULL %||% 2
    #> [1] 2
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/partial-1.png b/docs/reference/partial-1.png deleted file mode 100644 index a6485859e..000000000 Binary files a/docs/reference/partial-1.png and /dev/null differ diff --git a/docs/reference/partial-18.png b/docs/reference/partial-18.png deleted file mode 100644 index 717b5fa00..000000000 Binary files a/docs/reference/partial-18.png and /dev/null differ diff --git a/docs/reference/partial-2.png b/docs/reference/partial-2.png deleted file mode 100644 index c16d3dfeb..000000000 Binary files a/docs/reference/partial-2.png and /dev/null differ diff --git a/docs/reference/partial-20.png b/docs/reference/partial-20.png deleted file mode 100644 index 628e78de8..000000000 Binary files a/docs/reference/partial-20.png and /dev/null differ diff --git a/docs/reference/partial.html b/docs/reference/partial.html deleted file mode 100644 index aab6b7c8d..000000000 --- a/docs/reference/partial.html +++ /dev/null @@ -1,219 +0,0 @@ - - - - - - - - -Partial apply a function, filling in some arguments. — partial • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    Partial function application allows you to modify a function by pre-filling -some of the arguments. It is particularly useful in conjunction with -functionals and other function operators.

    - -
    - -
    partial(...f, ..., .env = parent.frame(), .lazy = TRUE, .first = TRUE)
    - -

    Arguments

    - - - - - - - - - - - - - - - - - - - - - - -
    ...f

    a function. For the output source to read well, this should be a -named function.

    ...

    named arguments to ...f that should be partially applied.

    .env

    the environment of the created function. Defaults to -parent.frame() and you should rarely need to modify this.

    .lazy

    If TRUE arguments evaluated lazily, if FALSE, -evaluated when partial is called.

    .first

    If TRUE, the partialized arguments are placed -to the front of the function signature. If FALSE, they are -moved to the back. Only useful to control position matching of -arguments when the partialized arguments are not named.

    - -

    Design choices

    - - -

    There are many ways to implement partial function application in R. -(see e.g. dots in https://github.com/crowding/ptools for another -approach.) This implementation is based on creating functions that are as -similar as possible to the anonymous functions that you'd create by hand, -if you weren't using partial.

    - - -

    Examples

    -
    # Partial is designed to replace the use of anonymous functions for -# filling in function arguments. Instead of: -compact1 <- function(x) discard(x, is.null) - -# we can write: -compact2 <- partial(discard, .p = is.null) - -# and the generated source code is very similar to what we made by hand -compact1
    #> function(x) discard(x, is.null) -#> <environment: 0x7f9d52624630>
    compact2
    #> function (...) -#> discard(.p = is.null, ...) -#> <environment: 0x7f9d52624630>
    -# Note that the evaluation occurs "lazily" so that arguments will be -# repeatedly evaluated -f <- partial(runif, n = rpois(1, 5)) -f
    #> function (...) -#> runif(n = rpois(1, 5), ...) -#> <environment: 0x7f9d52624630>
    f()
    #> [1] 0.17635011 0.11075900 0.93834241 0.84647114 0.57114358 0.67909341 0.08932224
    f()
    #> [1] 0.2269574 0.4481785 0.1612276 0.1761117 0.1982281 0.3576113 0.1813332
    -# You can override this by saying .lazy = FALSE -f <- partial(runif, n = rpois(1, 5), .lazy = FALSE) -f
    #> function (...) -#> runif(n = 5L, ...) -#> <environment: 0x7f9d52624630>
    f()
    #> [1] 0.659083010 0.660253409 0.002400788 0.993446034 0.627489231
    f()
    #> [1] 0.01463034 0.20517822 0.66307666 0.46374403 0.36034816
    -# This also means that partial works fine with functions that do -# non-standard evaluation -my_long_variable <- 1:10 -plot2 <- partial(plot, my_long_variable) -plot2()
    plot2(runif(10), type = "l")
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/pipe.html b/docs/reference/pipe.html deleted file mode 100644 index 5dfed7099..000000000 --- a/docs/reference/pipe.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - - - -Pipe operator — %>% • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    Pipe operator

    - -
    - -
    lhs %>% rhs
    - - -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/pluck.html b/docs/reference/pluck.html deleted file mode 100644 index a2f0ace44..000000000 --- a/docs/reference/pluck.html +++ /dev/null @@ -1,231 +0,0 @@ - - - - - - - - -Pluck out a single element from a vector or environment — pluck • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    This is a generalised form of [[ which allows you to index deeply -and flexibly into data structures. It supports R standard accessors -like integer positions and string names, and also accepts arbitrary -accessor functions, i.e. functions that take an object and return -some internal piece.

    -

    pluck() is often more readable than a mix of operators and -accessors because it reads linearly and is free of syntactic -cruft. Compare: accessor(x[[1]])$foo to pluck(x, 1, accessor, "foo").

    -

    Furthermore, pluck() never partial-matches unlike $ which will -select the disp object if you write mtcars$di.

    -

    attr_getter() generates an attribute accessor function; -i.e., it generates a function for extracting an attribute with -a given name. Unlike the base R attr() function with default -options, it doesn't use partial matching.

    - -
    - -
    pluck(.x, ..., .default = NULL)
    -
    -attr_getter(attr)
    - -

    Arguments

    - - - - - - - - - - - - - - - - - - -
    .x

    A vector or environment

    ...

    A list of accessors for indexing into the object. Can be -an integer position, a string name, or an accessor function. If -the object being indexed is an S4 object, accessing it by name -will return the corresponding slot.

    -

    These dots splice lists automatically. This -means you can supply arguments and lists of arguments -indistinctly.

    .default

    Value to use if target is empty or absent.

    attr

    An attribute name as string.

    - -

    Details

    - -

    Since it handles arbitrary accessor functions, pluck() is a type -of composition operator. However, it is indexing-oriented thanks to -its handling of strings and integers. By the same token is also -explicit regarding the intent of the composition (e.g. extraction).

    - - -

    Examples

    -
    # pluck() supports integer positions, string names, and functions. -# Using functions, you can easily extend pluck(). Let's create a -# list of data structures: -obj1 <- list("a", list(1, elt = "foobar")) -obj2 <- list("b", list(2, elt = "foobaz")) -x <- list(obj1, obj2) - -# And now an accessor for these complex data structures: -my_element <- function(x) x[[2]]$elt - -# The accessor can then be passed to pluck: -pluck(x, 1, my_element)
    #> [1] "foobar"
    pluck(x, 2, my_element)
    #> [1] "foobaz"
    -# Even for this simple data structure, this is more readable than -# the alternative form because it requires you to read both from -# right-to-left and from left-to-right in different parts of the -# expression: -my_element(x[[1]])
    #> [1] "foobar"
    - -# This technique is used for plucking into attributes with -# attr_getter(). It takes an attribute name and returns a function -# to access the attribute: -obj1 <- structure("obj", obj_attr = "foo") -obj2 <- structure("obj", obj_attr = "bar") -x <- list(obj1, obj2) - -# pluck() is handy for extracting deeply into a data structure. -# Here we'll first extract by position, then by attribute: -pluck(x, 1, attr_getter("obj_attr")) # From first object
    #> [1] "foo"
    pluck(x, 2, attr_getter("obj_attr")) # From second object
    #> [1] "bar"
    - -# pluck() splices lists of arguments automatically. The following -# pluck is equivalent to the one above: -idx <- list(1, attr_getter("obj_attr")) -pluck(x, idx)
    #> [1] "foo"
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/prepend.html b/docs/reference/prepend.html deleted file mode 100644 index ec7c0cce1..000000000 --- a/docs/reference/prepend.html +++ /dev/null @@ -1,212 +0,0 @@ - - - - - - - - -Prepend a vector — prepend • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    This is a companion to append() to help merging two -lists or atomic vectors. prepend() is a clearer semantic -signal than c() that a vector is to be merged at the beginning of -another, especially in a pipe chain.

    - -
    - -
    prepend(x, values, before = 1)
    - -

    Arguments

    - - - - - - - - - - - - - - -
    x

    the vector to be modified.

    values

    to be included in the modified vector.

    before

    a subscript, before which the values are to be appended.

    - -

    Value

    - -

    A merged vector.

    - - -

    Examples

    -
    x <- as.list(1:3) - -x %>% append("a")
    #> [[1]] -#> [1] 1 -#> -#> [[2]] -#> [1] 2 -#> -#> [[3]] -#> [1] 3 -#> -#> [[4]] -#> [1] "a" -#>
    x %>% prepend("a")
    #> [[1]] -#> [1] "a" -#> -#> [[2]] -#> [1] 1 -#> -#> [[3]] -#> [1] 2 -#> -#> [[4]] -#> [1] 3 -#>
    x %>% prepend(list("a", "b"), before = 3)
    #> [[1]] -#> [1] 1 -#> -#> [[2]] -#> [1] 2 -#> -#> [[3]] -#> [1] "a" -#> -#> [[4]] -#> [1] "b" -#> -#> [[5]] -#> [1] 3 -#>
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/purrr-package.html b/docs/reference/purrr-package.html deleted file mode 100644 index a56b63918..000000000 --- a/docs/reference/purrr-package.html +++ /dev/null @@ -1,167 +0,0 @@ - - - - - - - - -purrr: Functional Programming Tools — purrr-package • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    A complete and consistent functional programming toolkit for R.

    - -
    - - -

    See also

    - - - - -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/rbernoulli.html b/docs/reference/rbernoulli.html deleted file mode 100644 index 451a15719..000000000 --- a/docs/reference/rbernoulli.html +++ /dev/null @@ -1,175 +0,0 @@ - - - - - - - - -Generate random sample from a Bernoulli distribution — rbernoulli • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    Generate random sample from a Bernoulli distribution

    - -
    - -
    rbernoulli(n, p = 0.5)
    - -

    Arguments

    - - - - - - - - - - -
    n

    Number of samples

    p

    Probability of getting TRUE

    - -

    Value

    - -

    A logical vector

    - - -

    Examples

    -
    rbernoulli(10)
    #> [1] TRUE FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE
    rbernoulli(100, 0.1)
    #> [1] FALSE FALSE FALSE FALSE FALSE TRUE TRUE TRUE FALSE FALSE TRUE FALSE -#> [13] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE -#> [25] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE -#> [37] FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE -#> [49] FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE -#> [61] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE -#> [73] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE FALSE -#> [85] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE -#> [97] FALSE FALSE FALSE FALSE
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/rdunif.html b/docs/reference/rdunif.html deleted file mode 100644 index 722e69ed5..000000000 --- a/docs/reference/rdunif.html +++ /dev/null @@ -1,165 +0,0 @@ - - - - - - - - -Generate random sample from a discrete uniform distribution — rdunif • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    Generate random sample from a discrete uniform distribution

    - -
    - -
    rdunif(n, b, a = 1)
    - -

    Arguments

    - - - - - - - - - - -
    n

    Number of samples to draw.

    a, b

    Range of the distribution (inclusive).

    - - -

    Examples

    -
    table(rdunif(1e3, 10))
    #> -#> 1 2 3 4 5 6 7 8 9 10 -#> 109 86 106 105 103 89 109 93 95 105
    table(rdunif(1e3, 10, -5))
    #> -#> -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9 10 -#> 50 63 69 60 67 54 66 66 69 54 81 67 61 55 72 46
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/reduce.html b/docs/reference/reduce.html deleted file mode 100644 index f2064d850..000000000 --- a/docs/reference/reduce.html +++ /dev/null @@ -1,204 +0,0 @@ - - - - - - - - -Reduce a list to a single value by iteratively applying a binary function. — reduce • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    reduce() combines from the left, reduce_right() combines from -the right. reduce(list(x1, x2, x3), f) is equivalent to -f(f(x1, x2), x3); reduce_right(list(x1, x2, x3), f) is equivalent to -f(f(x3, x2), x1).

    - -
    - -
    reduce(.x, .f, ..., .init)
    -
    -reduce_right(.x, .f, ..., .init)
    -
    -reduce2(.x, .y, .f, ..., .init)
    -
    -reduce2_right(.x, .y, .f, ..., .init)
    - -

    Arguments

    - - - - - - - - - - - - - - - - - - - - - - -
    .x

    A list or atomic vector.

    .f

    For reduce(), a 2-argument function. The function will be -passed the accumulated value as the first argument and the "next" value -as the second argument.

    -

    For reduce2(), a 3-argument function. The function will be passed the -accumulated value as the first argument, the next value of .x as the -second argument, and the next value of .y as the third argument.

    ...

    Additional arguments passed on to .f.

    .init

    If supplied, will be used as the first value to start -the accumulation, rather than using x[[1]]. This is useful if -you want to ensure that reduce returns a correct value when .x -is empty. If missing, and x is empty, will throw an error.

    .y

    For reduce2(), an additional argument that is passed to -.f. If init is not set, .y should be 1 element shorter than -.x.

    - - -

    Examples

    -
    1:3 %>% reduce(`+`)
    #> [1] 6
    1:10 %>% reduce(`*`)
    #> [1] 3628800
    -paste2 <- function(x, y, sep = ".") paste(x, y, sep = sep) -letters[1:4] %>% reduce(paste2)
    #> [1] "a.b.c.d"
    letters[1:4] %>% reduce2(c("-", ".", "-"), paste2)
    #> [1] "a-b.c-d"
    -samples <- rerun(2, sample(10, 5)) -samples
    #> [[1]] -#> [1] 5 8 6 10 9 -#> -#> [[2]] -#> [1] 8 10 6 4 1 -#>
    reduce(samples, union)
    #> [1] 5 8 6 10 9 4 1
    reduce(samples, intersect)
    #> [1] 8 6 10
    -x <- list(c(0, 1), c(2, 3), c(4, 5)) -x %>% reduce(c)
    #> [1] 0 1 2 3 4 5
    x %>% reduce_right(c)
    #> [1] 4 5 2 3 0 1
    # Equivalent to: -x %>% rev() %>% reduce(c)
    #> [1] 4 5 2 3 0 1
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/reexports.html b/docs/reference/reexports.html deleted file mode 100644 index 5898e84e3..000000000 --- a/docs/reference/reexports.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - - - -Objects exported from other packages — reexports • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - - - - - -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/rerun.html b/docs/reference/rerun.html deleted file mode 100644 index f96e596f0..000000000 --- a/docs/reference/rerun.html +++ /dev/null @@ -1,204 +0,0 @@ - - - - - - - - -Re-run expressions multiple times. — rerun • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    This is a convenient way of generating sample data. It works similarly to -replicate(..., simplify = FALSE).

    - -
    - -
    rerun(.n, ...)
    - -

    Arguments

    - - - - - - - - - - -
    .n

    Number of times to run expressions

    ...

    Expressions to re-run.

    - -

    Value

    - -

    A list of length .n. Each element of ... will be -re-run once for each .n.

    -

    There is one special case: if there's a single unnamed input, the second -level list will be dropped. In this case, rerun(n, x) behaves like -replicate(n, x, simplify = FALSE).

    - - -

    Examples

    -
    10 %>% rerun(rnorm(5))
    #> [[1]] -#> [1] 0.5802748 -0.5941795 -0.3718553 -1.4230352 -1.1404838 -#> -#> [[2]] -#> [1] 1.2685047 -0.2801044 0.9110540 2.0043945 0.2471404 -#> -#> [[3]] -#> [1] -0.4290761 -2.1837551 -0.1236349 0.2873839 -0.3715993 -#> -#> [[4]] -#> [1] 1.6265623 0.3099083 -1.5640407 -1.2306235 -1.3701975 -#> -#> [[5]] -#> [1] 0.1065558 -0.3988255 -0.3534061 0.2345011 1.7697899 -#> -#> [[6]] -#> [1] 0.45787638 1.14375811 -1.30772262 -0.94254960 -0.09496125 -#> -#> [[7]] -#> [1] -1.130047 -1.456208 -1.698718 -1.240827 -1.058299 -#> -#> [[8]] -#> [1] -0.75437857 -0.58510694 0.55814208 -0.01900658 -0.16935602 -#> -#> [[9]] -#> [1] 1.295331 -1.426060 1.754104 -2.115575 1.009702 -#> -#> [[10]] -#> [1] 0.2545351 -0.3775541 0.3724693 -1.4626811 0.9037093 -#>
    10 %>% - rerun(x = rnorm(5), y = rnorm(5)) %>% - map_dbl(~ cor(.x$x, .x$y))
    #> [1] 0.3884734 -0.2797106 -0.1499915 -0.1213636 0.1875155 -0.1596498 -#> [7] 0.1293135 0.5927749 0.7689696 -0.4564721
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/safely.html b/docs/reference/safely.html deleted file mode 100644 index 6e1d676de..000000000 --- a/docs/reference/safely.html +++ /dev/null @@ -1,276 +0,0 @@ - - - - - - - - -Capture side effects. — safely • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    These functions wrap functions so that instead of generating side effects -through printed output, messages, warnings, and errors, they return enhanced -output. They are all adverbs because they modify the action of a verb (a -function).

    - -
    - -
    safely(.f, otherwise = NULL, quiet = TRUE)
    -
    -quietly(.f)
    -
    -possibly(.f, otherwise, quiet = TRUE)
    -
    -auto_browse(.f)
    - -

    Arguments

    - - - - - - - - - - - - - - -
    .f

    A function, formula, or atomic vector.

    -

    If a function, it is used as is.

    -

    If a formula, e.g. ~ .x + 2, it is converted to a function. There -are three ways to refer to the arguments:

      -
    • For a single argument function, use .

    • -
    • For a two argument function, use .x and .y

    • -
    • For more arguments, use ..1, ..2, ..3 etc

    • -
    - -

    This syntax allows you to create very compact anonymous functions.

    -

    If character vector, numeric vector, or list, it -is converted to an extractor function. Character vectors index by name -and numeric vectors index by position; use a list to index by position -and name at different levels. Within a list, wrap strings in get-attr() -to extract named attributes. If a component is not present, the value of -.default will be returned.

    otherwise

    Default value to use when an error occurs.

    quiet

    Hide errors (TRUE, the default), or display them -as they occur?

    - -

    Value

    - -

    safely: wrapped function instead returns a list with -components result and error. One value is always NULL.

    -

    quietly: wrapped function instead returns a list with components -result, output, messages and warnings.

    -

    possibly: wrapped function uses a default value (otherwise) -whenever an error occurs.

    - - -

    Examples

    -
    safe_log <- safely(log) -safe_log(10)
    #> $result -#> [1] 2.302585 -#> -#> $error -#> NULL -#>
    safe_log("a")
    #> $result -#> NULL -#> -#> $error -#> <simpleError in log(x = x, base = base): non-numeric argument to mathematical function> -#>
    -list("a", 10, 100) %>% - map(safe_log) %>% - transpose()
    #> $result -#> $result[[1]] -#> NULL -#> -#> $result[[2]] -#> [1] 2.302585 -#> -#> $result[[3]] -#> [1] 4.60517 -#> -#> -#> $error -#> $error[[1]] -#> <simpleError in log(x = x, base = base): non-numeric argument to mathematical function> -#> -#> $error[[2]] -#> NULL -#> -#> $error[[3]] -#> NULL -#> -#>
    -# This is a bit easier to work with if you supply a default value -# of the same type and use the simplify argument to transpose(): -safe_log <- safely(log, otherwise = NA_real_) -list("a", 10, 100) %>% - map(safe_log) %>% - transpose() %>% - simplify_all()
    #> $result -#> [1] NA 2.302585 4.605170 -#> -#> $error -#> $error[[1]] -#> <simpleError in log(x = x, base = base): non-numeric argument to mathematical function> -#> -#> $error[[2]] -#> NULL -#> -#> $error[[3]] -#> NULL -#> -#>
    -# To replace errors with a default value, use possibly(). -list("a", 10, 100) %>% - map_dbl(possibly(log, NA_real_))
    #> [1] NA 2.302585 4.605170
    -# For interactive usage, auto_browse() is useful because it automatically -# starts a browser() in the right place. -f <- function(x) { - y <- 20 - if (x > 5) { - stop("!") - } else { - x - } -} -if (interactive()) { - map(1:6, auto_browse(f)) -}
    #> Called from: eval_bare(quote(browser()), env = frame$env)
    #> Error in .f(...): !
    -# It doesn't make sense to use auto_browse with primitive functions, -# because they are implemented in C so there's no useful environment -# for you to interact with. -
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/set_names.html b/docs/reference/set_names.html deleted file mode 100644 index 993c59483..000000000 --- a/docs/reference/set_names.html +++ /dev/null @@ -1,200 +0,0 @@ - - - - - - - - -Set names in a vector — set_names • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    These objects are imported from other packages. Follow the links -below to see their documentation.

    -
    -
    rlang

    set_names

    -
    - -
    - -
    set_names(x, nm = x, ...)
    - -

    Arguments

    - - - - - - - - - - -
    x

    Vector to name

    nm, ...

    Vector of names, the same length as x.

    -

    You can specify names in three ways:

      -
    • If you do nothing, x will be named with itself

    • -
    • You can supply either a character vector to nm or individual -strings in to `...``

    • -
    • If x already has names, you can provide a function or formula -to transform the existing names.

    • -
    - -

    Value

    - -

    .x with the names attribute set.

    - -

    Details

    - -

    This is a snake case wrapper for stats::setNames(), with -tweaked defaults, and stricter argument checking.

    - - -

    Examples

    -
    set_names(1:4, c("a", "b", "c", "d"))
    #> a b c d -#> 1 2 3 4
    set_names(1:4, letters[1:4])
    #> a b c d -#> 1 2 3 4
    set_names(1:4, "a", "b", "c", "d")
    #> a b c d -#> 1 2 3 4
    -# If the second argument is ommitted a vector is named with itself -set_names(letters[1:5])
    #> a b c d e -#> "a" "b" "c" "d" "e"
    -# Alternatively you can supply a function -set_names(1:10, ~ letters[seq_along(.)])
    #> a b c d e f g h i j -#> 1 2 3 4 5 6 7 8 9 10
    set_names(head(mtcars), toupper)
    #> MPG CYL DISP HP DRAT WT QSEC VS AM GEAR CARB -#> Mazda RX4 21.0 6 160 110 3.90 2.620 16.46 0 1 4 4 -#> Mazda RX4 Wag 21.0 6 160 110 3.90 2.875 17.02 0 1 4 4 -#> Datsun 710 22.8 4 108 93 3.85 2.320 18.61 1 1 4 1 -#> Hornet 4 Drive 21.4 6 258 110 3.08 3.215 19.44 1 0 3 1 -#> Hornet Sportabout 18.7 8 360 175 3.15 3.440 17.02 0 0 3 2 -#> Valiant 18.1 6 225 105 2.76 3.460 20.22 1 0 3 1
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/splice.html b/docs/reference/splice.html deleted file mode 100644 index d8244c5c0..000000000 --- a/docs/reference/splice.html +++ /dev/null @@ -1,178 +0,0 @@ - - - - - - - - -Splice objects and lists of objects into a list — splice • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    This splices all arguments into a list. Non-list objects and lists -with a S3 class are encapsulated in a list before concatenation.

    - -
    - -
    splice(...)
    - -

    Arguments

    - - - - - - -
    ...

    Objects to concatenate.

    - -

    Value

    - -

    A list.

    - - -

    Examples

    -
    inputs <- list(arg1 = "a", arg2 = "b") - -# splice() concatenates the elements of inputs with arg3 -splice(inputs, arg3 = c("c1", "c2")) %>% str()
    #> List of 3 -#> $ arg1: chr "a" -#> $ arg2: chr "b" -#> $ arg3: chr [1:2] "c1" "c2"
    list(inputs, arg3 = c("c1", "c2")) %>% str()
    #> List of 2 -#> $ :List of 2 -#> ..$ arg1: chr "a" -#> ..$ arg2: chr "b" -#> $ arg3: chr [1:2] "c1" "c2"
    c(inputs, arg3 = c("c1", "c2")) %>% str()
    #> List of 4 -#> $ arg1 : chr "a" -#> $ arg2 : chr "b" -#> $ arg31: chr "c1" -#> $ arg32: chr "c2"
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/transpose.html b/docs/reference/transpose.html deleted file mode 100644 index 929ae14ba..000000000 --- a/docs/reference/transpose.html +++ /dev/null @@ -1,329 +0,0 @@ - - - - - - - - -Transpose a list. — transpose • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    Transpose turns a list-of-lists "inside-out"; it turns a pair of lists into a -list of pairs, or a list of pairs into pair of lists. For example, -if you had a list of length n where each component had values a and -b, transpose() would make a list with elements a and -b that contained lists of length n. It's called transpose because -x[[1]][[2]] is equivalent to transpose(x)[[2]][[1]].

    - -
    - -
    transpose(.l, .names = NULL)
    - -

    Arguments

    - - - - - - - - - - -
    .l

    A list of vectors to transpose. The first element is used as the -template; you'll get a warning if a subsequent element has a different -length.

    .names

    For efficiency, transpose() bases the return structure on -the first component of .l by default. Specify .names to override this.

    - -

    Value

    - -

    A list with indexing transposed compared to .l.

    - -

    Details

    - -

    Note that transpose() is its own inverse, much like the -transpose operation on a matrix. You can get back the original -input by transposing it twice.

    - - -

    Examples

    -
    x <- rerun(5, x = runif(1), y = runif(5)) -x %>% str()
    #> List of 5 -#> $ :List of 2 -#> ..$ x: num 0.475 -#> ..$ y: num [1:5] 0.206 0.707 0.449 0.714 0.358 -#> $ :List of 2 -#> ..$ x: num 0.17 -#> ..$ y: num [1:5] 0.47 0.26 0.136 0.633 0.833 -#> $ :List of 2 -#> ..$ x: num 0.375 -#> ..$ y: num [1:5] 0.8264 0.1672 0.0548 0.1037 0.5826 -#> $ :List of 2 -#> ..$ x: num 0.944 -#> ..$ y: num [1:5] 0.869 0.426 0.257 0.557 0.138 -#> $ :List of 2 -#> ..$ x: num 0.42 -#> ..$ y: num [1:5] 0.2382 0.7582 0.0865 0.0568 0.3083
    x %>% transpose() %>% str()
    #> List of 2 -#> $ x:List of 5 -#> ..$ : num 0.475 -#> ..$ : num 0.17 -#> ..$ : num 0.375 -#> ..$ : num 0.944 -#> ..$ : num 0.42 -#> $ y:List of 5 -#> ..$ : num [1:5] 0.206 0.707 0.449 0.714 0.358 -#> ..$ : num [1:5] 0.47 0.26 0.136 0.633 0.833 -#> ..$ : num [1:5] 0.8264 0.1672 0.0548 0.1037 0.5826 -#> ..$ : num [1:5] 0.869 0.426 0.257 0.557 0.138 -#> ..$ : num [1:5] 0.2382 0.7582 0.0865 0.0568 0.3083
    # Back to where we started -x %>% transpose() %>% transpose() %>% str()
    #> List of 5 -#> $ :List of 2 -#> ..$ x: num 0.475 -#> ..$ y: num [1:5] 0.206 0.707 0.449 0.714 0.358 -#> $ :List of 2 -#> ..$ x: num 0.17 -#> ..$ y: num [1:5] 0.47 0.26 0.136 0.633 0.833 -#> $ :List of 2 -#> ..$ x: num 0.375 -#> ..$ y: num [1:5] 0.8264 0.1672 0.0548 0.1037 0.5826 -#> $ :List of 2 -#> ..$ x: num 0.944 -#> ..$ y: num [1:5] 0.869 0.426 0.257 0.557 0.138 -#> $ :List of 2 -#> ..$ x: num 0.42 -#> ..$ y: num [1:5] 0.2382 0.7582 0.0865 0.0568 0.3083
    -# transpose() is useful in conjunction with safely() & quietly() -x <- list("a", 1, 2) -y <- x %>% map(safely(log)) -y %>% str()
    #> List of 3 -#> $ :List of 2 -#> ..$ result: NULL -#> ..$ error :List of 2 -#> .. ..$ message: chr "non-numeric argument to mathematical function" -#> .. ..$ call : language log(x = x, base = base) -#> .. ..- attr(*, "class")= chr [1:3] "simpleError" "error" "condition" -#> $ :List of 2 -#> ..$ result: num 0 -#> ..$ error : NULL -#> $ :List of 2 -#> ..$ result: num 0.693 -#> ..$ error : NULL
    y %>% transpose() %>% str()
    #> List of 2 -#> $ result:List of 3 -#> ..$ : NULL -#> ..$ : num 0 -#> ..$ : num 0.693 -#> $ error :List of 3 -#> ..$ :List of 2 -#> .. ..$ message: chr "non-numeric argument to mathematical function" -#> .. ..$ call : language log(x = x, base = base) -#> .. ..- attr(*, "class")= chr [1:3] "simpleError" "error" "condition" -#> ..$ : NULL -#> ..$ : NULL
    -# Use simplify_all() to reduce to atomic vectors where possible -x <- list(list(a = 1, b = 2), list(a = 3, b = 4), list(a = 5, b = 6)) -x %>% transpose()
    #> $a -#> $a[[1]] -#> [1] 1 -#> -#> $a[[2]] -#> [1] 3 -#> -#> $a[[3]] -#> [1] 5 -#> -#> -#> $b -#> $b[[1]] -#> [1] 2 -#> -#> $b[[2]] -#> [1] 4 -#> -#> $b[[3]] -#> [1] 6 -#> -#>
    x %>% transpose() %>% simplify_all()
    #> $a -#> [1] 1 3 5 -#> -#> $b -#> [1] 2 4 6 -#>
    -# Provide explicit component names to prevent loss of those that don't -# appear in first component -ll <- list( - list(x = 1, y = "one"), - list(z = "deux", x = 2) -) -ll %>% transpose()
    #> $x -#> $x[[1]] -#> [1] 1 -#> -#> $x[[2]] -#> [1] 2 -#> -#> -#> $y -#> $y[[1]] -#> [1] "one" -#> -#> $y[[2]] -#> NULL -#> -#>
    nms <- ll %>% map(names) %>% reduce(union) -ll %>% transpose(.names = nms)
    #> $x -#> $x[[1]] -#> [1] 1 -#> -#> $x[[2]] -#> [1] 2 -#> -#> -#> $y -#> $y[[1]] -#> [1] "one" -#> -#> $y[[2]] -#> NULL -#> -#> -#> $z -#> $z[[1]] -#> NULL -#> -#> $z[[2]] -#> [1] "deux" -#> -#>
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/vec_depth.html b/docs/reference/vec_depth.html deleted file mode 100644 index 4a7f0d405..000000000 --- a/docs/reference/vec_depth.html +++ /dev/null @@ -1,169 +0,0 @@ - - - - - - - - -Compute the depth of a vector — vec_depth • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    The depth of a vector is basically how many levels that you can index -into it.

    - -
    - -
    vec_depth(x)
    - -

    Arguments

    - - - - - - -
    x

    A vector

    - -

    Value

    - -

    An integer.

    - - -

    Examples

    -
    x <- list( - list(), - list(list()), - list(list(list(1))) -) -vec_depth(x)
    #> [1] 5
    x %>% map_int(vec_depth)
    #> [1] 1 2 4
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/reference/when.html b/docs/reference/when.html deleted file mode 100644 index 160d4db0b..000000000 --- a/docs/reference/when.html +++ /dev/null @@ -1,218 +0,0 @@ - - - - - - - - -Match/validate a set of conditions for an object and continue with the action -associated with the first valid match. — when • purrr - - - - - - - - - - - - - - - - - - - - - - - -
    -
    - - - -
    - -
    -
    - - -
    - -

    when is a flavour of pattern matching (or an if-else abstraction) in -which a value is matched against a sequence of condition-action sets. When a -valid match/condition is found the action is executed and the result of the -action is returned.

    - -
    - -
    when(., ...)
    - -

    Arguments

    - - - - - - - - - - -
    .

    the value to match against

    ...

    formulas; each containing a condition as LHS and an action as RHS. -named arguments will define additional values.

    - -

    Value

    - -

    The value resulting from the action of the first valid -match/condition is returned. If no matches are found, and no default is -given, NULL will be returned.

    -

    Validity of the conditions are tested with isTRUE, or equivalently -with identical(condition, TRUE). -In other words conditions resulting in more than one logical will never -be valid. Note that the input value is always treated as a single object, -as opposed to the ifelse function.

    - - -

    Examples

    -
    1:10 %>% - when( - sum(.) <= 50 ~ sum(.), - sum(.) <= 100 ~ sum(.)/2, - ~ 0 - )
    #> [1] 27.5
    -1:10 %>% - when( - sum(.) <= x ~ sum(.), - sum(.) <= 2*x ~ sum(.)/2, - ~ 0, - x = 60 - )
    #> [1] 55
    -iris %>% - subset(Sepal.Length > 10) %>% - when( - nrow(.) > 0 ~ ., - ~ iris %>% head(10) - )
    #> Sepal.Length Sepal.Width Petal.Length Petal.Width Species -#> 1 5.1 3.5 1.4 0.2 setosa -#> 2 4.9 3.0 1.4 0.2 setosa -#> 3 4.7 3.2 1.3 0.2 setosa -#> 4 4.6 3.1 1.5 0.2 setosa -#> 5 5.0 3.6 1.4 0.2 setosa -#> 6 5.4 3.9 1.7 0.4 setosa -#> 7 4.6 3.4 1.4 0.3 setosa -#> 8 5.0 3.4 1.5 0.2 setosa -#> 9 4.4 2.9 1.4 0.2 setosa -#> 10 4.9 3.1 1.5 0.1 setosa
    -iris %>% - head %>% - when(nrow(.) < 10 ~ ., - ~ stop("Expected fewer than 10 rows."))
    #> Sepal.Length Sepal.Width Petal.Length Petal.Width Species -#> 1 5.1 3.5 1.4 0.2 setosa -#> 2 4.9 3.0 1.4 0.2 setosa -#> 3 4.7 3.2 1.3 0.2 setosa -#> 4 4.6 3.1 1.5 0.2 setosa -#> 5 5.0 3.6 1.4 0.2 setosa -#> 6 5.4 3.9 1.7 0.4 setosa
    -
    - -
    - -
    -
    -

    purrr is a part of the tidyverse, an ecosystem of packages designed with common APIs and a shared philosophy. Learn more at tidyverse.org.

    -
    - -
    -

    Developed by Lionel Henry, Hadley Wickham, RStudio.

    -

    Site built by pkgdown.

    -
    - - - -
    -
    - - - - - - diff --git a/docs/tidyverse.css b/docs/tidyverse.css deleted file mode 100644 index 1e691967a..000000000 --- a/docs/tidyverse.css +++ /dev/null @@ -1,6496 +0,0 @@ -@charset "UTF-8"; -/*! - * Bootstrap v3.3.7 (http://getbootstrap.com) - * Copyright 2011-2016 Twitter, Inc. - * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) - */ -/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */ -@import url("https://fonts.googleapis.com/css?family=Source+Code+Pro:300,400,700|Source+Sans+Pro:300,400,700"); -html { - font-family: sans-serif; - -ms-text-size-adjust: 100%; - -webkit-text-size-adjust: 100%; } - -body { - margin: 0; } - -article, -aside, -details, -figcaption, -figure, -footer, -header, -hgroup, -main, -menu, -nav, -section, -summary { - display: block; } - -audio, -canvas, -progress, -video { - display: inline-block; - vertical-align: baseline; } - -audio:not([controls]) { - display: none; - height: 0; } - -[hidden], -template { - display: none; } - -a { - background-color: transparent; } - -a:active, -a:hover { - outline: 0; } - -abbr[title] { - border-bottom: 1px dotted; } - -b, -strong { - font-weight: bold; } - -dfn { - font-style: italic; } - -h1 { - font-size: 2em; - margin: 0.67em 0; } - -mark { - background: #ff0; - color: #000; } - -small { - font-size: 80%; } - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; } - -sup { - top: -0.5em; } - -sub { - bottom: -0.25em; } - -img { - border: 0; } - -svg:not(:root) { - overflow: hidden; } - -figure { - margin: 1em 40px; } - -hr { - box-sizing: content-box; - height: 0; } - -pre { - overflow: auto; } - -code, -kbd, -pre, -samp { - font-family: monospace, monospace; - font-size: 1em; } - -button, -input, -optgroup, -select, -textarea { - color: inherit; - font: inherit; - margin: 0; } - -button { - overflow: visible; } - -button, -select { - text-transform: none; } - -button, -html input[type="button"], -input[type="reset"], -input[type="submit"] { - -webkit-appearance: button; - cursor: pointer; } - -button[disabled], -html input[disabled] { - cursor: default; } - -button::-moz-focus-inner, -input::-moz-focus-inner { - border: 0; - padding: 0; } - -input { - line-height: normal; } - -input[type="checkbox"], -input[type="radio"] { - box-sizing: border-box; - padding: 0; } - -input[type="number"]::-webkit-inner-spin-button, -input[type="number"]::-webkit-outer-spin-button { - height: auto; } - -input[type="search"] { - -webkit-appearance: textfield; - box-sizing: content-box; } - -input[type="search"]::-webkit-search-cancel-button, -input[type="search"]::-webkit-search-decoration { - -webkit-appearance: none; } - -fieldset { - border: 1px solid #c0c0c0; - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; } - -legend { - border: 0; - padding: 0; } - -textarea { - overflow: auto; } - -optgroup { - font-weight: bold; } - -table { - border-collapse: collapse; - border-spacing: 0; } - -td, -th { - padding: 0; } - -/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ -@media print { - *, - *:before, - *:after { - background: transparent !important; - color: #000 !important; - box-shadow: none !important; - text-shadow: none !important; } - - a, - a:visited { - text-decoration: underline; } - - a[href]:after { - content: " (" attr(href) ")"; } - - abbr[title]:after { - content: " (" attr(title) ")"; } - - a[href^="#"]:after, - a[href^="javascript:"]:after { - content: ""; } - - pre, - blockquote { - border: 1px solid #999; - page-break-inside: avoid; } - - thead { - display: table-header-group; } - - tr, - img { - page-break-inside: avoid; } - - img { - max-width: 100% !important; } - - p, - h2, - h3 { - orphans: 3; - widows: 3; } - - h2, - h3 { - page-break-after: avoid; } - - .navbar { - display: none; } - - .btn > .caret, - .dropup > .btn > .caret { - border-top-color: #000 !important; } - - .label { - border: 1px solid #000; } - - .table { - border-collapse: collapse !important; } - .table td, - .table th { - background-color: #fff !important; } - - .table-bordered th, - .table-bordered td { - border: 1px solid #ddd !important; } } -@font-face { - font-family: 'Glyphicons Halflings'; - src: url("../fonts/bootstrap/glyphicons-halflings-regular.eot"); - src: url("../fonts/bootstrap/glyphicons-halflings-regular.eot?#iefix") format("embedded-opentype"), url("../fonts/bootstrap/glyphicons-halflings-regular.woff2") format("woff2"), url("../fonts/bootstrap/glyphicons-halflings-regular.woff") format("woff"), url("../fonts/bootstrap/glyphicons-halflings-regular.ttf") format("truetype"), url("../fonts/bootstrap/glyphicons-halflings-regular.svg#glyphicons_halflingsregular") format("svg"); } -.glyphicon { - position: relative; - top: 1px; - display: inline-block; - font-family: 'Glyphicons Halflings'; - font-style: normal; - font-weight: normal; - line-height: 1; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; } - -.glyphicon-asterisk:before { - content: "\002a"; } - -.glyphicon-plus:before { - content: "\002b"; } - -.glyphicon-euro:before, -.glyphicon-eur:before { - content: "\20ac"; } - -.glyphicon-minus:before { - content: "\2212"; } - -.glyphicon-cloud:before { - content: "\2601"; } - -.glyphicon-envelope:before { - content: "\2709"; } - -.glyphicon-pencil:before { - content: "\270f"; } - -.glyphicon-glass:before { - content: "\e001"; } - -.glyphicon-music:before { - content: "\e002"; } - -.glyphicon-search:before { - content: "\e003"; } - -.glyphicon-heart:before { - content: "\e005"; } - -.glyphicon-star:before { - content: "\e006"; } - -.glyphicon-star-empty:before { - content: "\e007"; } - -.glyphicon-user:before { - content: "\e008"; } - -.glyphicon-film:before { - content: "\e009"; } - -.glyphicon-th-large:before { - content: "\e010"; } - -.glyphicon-th:before { - content: "\e011"; } - -.glyphicon-th-list:before { - content: "\e012"; } - -.glyphicon-ok:before { - content: "\e013"; } - -.glyphicon-remove:before { - content: "\e014"; } - -.glyphicon-zoom-in:before { - content: "\e015"; } - -.glyphicon-zoom-out:before { - content: "\e016"; } - -.glyphicon-off:before { - content: "\e017"; } - -.glyphicon-signal:before { - content: "\e018"; } - -.glyphicon-cog:before { - content: "\e019"; } - -.glyphicon-trash:before { - content: "\e020"; } - -.glyphicon-home:before { - content: "\e021"; } - -.glyphicon-file:before { - content: "\e022"; } - -.glyphicon-time:before { - content: "\e023"; } - -.glyphicon-road:before { - content: "\e024"; } - -.glyphicon-download-alt:before { - content: "\e025"; } - -.glyphicon-download:before { - content: "\e026"; } - -.glyphicon-upload:before { - content: "\e027"; } - -.glyphicon-inbox:before { - content: "\e028"; } - -.glyphicon-play-circle:before { - content: "\e029"; } - -.glyphicon-repeat:before { - content: "\e030"; } - -.glyphicon-refresh:before { - content: "\e031"; } - -.glyphicon-list-alt:before { - content: "\e032"; } - -.glyphicon-lock:before { - content: "\e033"; } - -.glyphicon-flag:before { - content: "\e034"; } - -.glyphicon-headphones:before { - content: "\e035"; } - -.glyphicon-volume-off:before { - content: "\e036"; } - -.glyphicon-volume-down:before { - content: "\e037"; } - -.glyphicon-volume-up:before { - content: "\e038"; } - -.glyphicon-qrcode:before { - content: "\e039"; } - -.glyphicon-barcode:before { - content: "\e040"; } - -.glyphicon-tag:before { - content: "\e041"; } - -.glyphicon-tags:before { - content: "\e042"; } - -.glyphicon-book:before { - content: "\e043"; } - -.glyphicon-bookmark:before { - content: "\e044"; } - -.glyphicon-print:before { - content: "\e045"; } - -.glyphicon-camera:before { - content: "\e046"; } - -.glyphicon-font:before { - content: "\e047"; } - -.glyphicon-bold:before { - content: "\e048"; } - -.glyphicon-italic:before { - content: "\e049"; } - -.glyphicon-text-height:before { - content: "\e050"; } - -.glyphicon-text-width:before { - content: "\e051"; } - -.glyphicon-align-left:before { - content: "\e052"; } - -.glyphicon-align-center:before { - content: "\e053"; } - -.glyphicon-align-right:before { - content: "\e054"; } - -.glyphicon-align-justify:before { - content: "\e055"; } - -.glyphicon-list:before { - content: "\e056"; } - -.glyphicon-indent-left:before { - content: "\e057"; } - -.glyphicon-indent-right:before { - content: "\e058"; } - -.glyphicon-facetime-video:before { - content: "\e059"; } - -.glyphicon-picture:before { - content: "\e060"; } - -.glyphicon-map-marker:before { - content: "\e062"; } - -.glyphicon-adjust:before { - content: "\e063"; } - -.glyphicon-tint:before { - content: "\e064"; } - -.glyphicon-edit:before { - content: "\e065"; } - -.glyphicon-share:before { - content: "\e066"; } - -.glyphicon-check:before { - content: "\e067"; } - -.glyphicon-move:before { - content: "\e068"; } - -.glyphicon-step-backward:before { - content: "\e069"; } - -.glyphicon-fast-backward:before { - content: "\e070"; } - -.glyphicon-backward:before { - content: "\e071"; } - -.glyphicon-play:before { - content: "\e072"; } - -.glyphicon-pause:before { - content: "\e073"; } - -.glyphicon-stop:before { - content: "\e074"; } - -.glyphicon-forward:before { - content: "\e075"; } - -.glyphicon-fast-forward:before { - content: "\e076"; } - -.glyphicon-step-forward:before { - content: "\e077"; } - -.glyphicon-eject:before { - content: "\e078"; } - -.glyphicon-chevron-left:before { - content: "\e079"; } - -.glyphicon-chevron-right:before { - content: "\e080"; } - -.glyphicon-plus-sign:before { - content: "\e081"; } - -.glyphicon-minus-sign:before { - content: "\e082"; } - -.glyphicon-remove-sign:before { - content: "\e083"; } - -.glyphicon-ok-sign:before { - content: "\e084"; } - -.glyphicon-question-sign:before { - content: "\e085"; } - -.glyphicon-info-sign:before { - content: "\e086"; } - -.glyphicon-screenshot:before { - content: "\e087"; } - -.glyphicon-remove-circle:before { - content: "\e088"; } - -.glyphicon-ok-circle:before { - content: "\e089"; } - -.glyphicon-ban-circle:before { - content: "\e090"; } - -.glyphicon-arrow-left:before { - content: "\e091"; } - -.glyphicon-arrow-right:before { - content: "\e092"; } - -.glyphicon-arrow-up:before { - content: "\e093"; } - -.glyphicon-arrow-down:before { - content: "\e094"; } - -.glyphicon-share-alt:before { - content: "\e095"; } - -.glyphicon-resize-full:before { - content: "\e096"; } - -.glyphicon-resize-small:before { - content: "\e097"; } - -.glyphicon-exclamation-sign:before { - content: "\e101"; } - -.glyphicon-gift:before { - content: "\e102"; } - -.glyphicon-leaf:before { - content: "\e103"; } - -.glyphicon-fire:before { - content: "\e104"; } - -.glyphicon-eye-open:before { - content: "\e105"; } - -.glyphicon-eye-close:before { - content: "\e106"; } - -.glyphicon-warning-sign:before { - content: "\e107"; } - -.glyphicon-plane:before { - content: "\e108"; } - -.glyphicon-calendar:before { - content: "\e109"; } - -.glyphicon-random:before { - content: "\e110"; } - -.glyphicon-comment:before { - content: "\e111"; } - -.glyphicon-magnet:before { - content: "\e112"; } - -.glyphicon-chevron-up:before { - content: "\e113"; } - -.glyphicon-chevron-down:before { - content: "\e114"; } - -.glyphicon-retweet:before { - content: "\e115"; } - -.glyphicon-shopping-cart:before { - content: "\e116"; } - -.glyphicon-folder-close:before { - content: "\e117"; } - -.glyphicon-folder-open:before { - content: "\e118"; } - -.glyphicon-resize-vertical:before { - content: "\e119"; } - -.glyphicon-resize-horizontal:before { - content: "\e120"; } - -.glyphicon-hdd:before { - content: "\e121"; } - -.glyphicon-bullhorn:before { - content: "\e122"; } - -.glyphicon-bell:before { - content: "\e123"; } - -.glyphicon-certificate:before { - content: "\e124"; } - -.glyphicon-thumbs-up:before { - content: "\e125"; } - -.glyphicon-thumbs-down:before { - content: "\e126"; } - -.glyphicon-hand-right:before { - content: "\e127"; } - -.glyphicon-hand-left:before { - content: "\e128"; } - -.glyphicon-hand-up:before { - content: "\e129"; } - -.glyphicon-hand-down:before { - content: "\e130"; } - -.glyphicon-circle-arrow-right:before { - content: "\e131"; } - -.glyphicon-circle-arrow-left:before { - content: "\e132"; } - -.glyphicon-circle-arrow-up:before { - content: "\e133"; } - -.glyphicon-circle-arrow-down:before { - content: "\e134"; } - -.glyphicon-globe:before { - content: "\e135"; } - -.glyphicon-wrench:before { - content: "\e136"; } - -.glyphicon-tasks:before { - content: "\e137"; } - -.glyphicon-filter:before { - content: "\e138"; } - -.glyphicon-briefcase:before { - content: "\e139"; } - -.glyphicon-fullscreen:before { - content: "\e140"; } - -.glyphicon-dashboard:before { - content: "\e141"; } - -.glyphicon-paperclip:before { - content: "\e142"; } - -.glyphicon-heart-empty:before { - content: "\e143"; } - -.glyphicon-link:before { - content: "\e144"; } - -.glyphicon-phone:before { - content: "\e145"; } - -.glyphicon-pushpin:before { - content: "\e146"; } - -.glyphicon-usd:before { - content: "\e148"; } - -.glyphicon-gbp:before { - content: "\e149"; } - -.glyphicon-sort:before { - content: "\e150"; } - -.glyphicon-sort-by-alphabet:before { - content: "\e151"; } - -.glyphicon-sort-by-alphabet-alt:before { - content: "\e152"; } - -.glyphicon-sort-by-order:before { - content: "\e153"; } - -.glyphicon-sort-by-order-alt:before { - content: "\e154"; } - -.glyphicon-sort-by-attributes:before { - content: "\e155"; } - -.glyphicon-sort-by-attributes-alt:before { - content: "\e156"; } - -.glyphicon-unchecked:before { - content: "\e157"; } - -.glyphicon-expand:before { - content: "\e158"; } - -.glyphicon-collapse-down:before { - content: "\e159"; } - -.glyphicon-collapse-up:before { - content: "\e160"; } - -.glyphicon-log-in:before { - content: "\e161"; } - -.glyphicon-flash:before { - content: "\e162"; } - -.glyphicon-log-out:before { - content: "\e163"; } - -.glyphicon-new-window:before { - content: "\e164"; } - -.glyphicon-record:before { - content: "\e165"; } - -.glyphicon-save:before { - content: "\e166"; } - -.glyphicon-open:before { - content: "\e167"; } - -.glyphicon-saved:before { - content: "\e168"; } - -.glyphicon-import:before { - content: "\e169"; } - -.glyphicon-export:before { - content: "\e170"; } - -.glyphicon-send:before { - content: "\e171"; } - -.glyphicon-floppy-disk:before { - content: "\e172"; } - -.glyphicon-floppy-saved:before { - content: "\e173"; } - -.glyphicon-floppy-remove:before { - content: "\e174"; } - -.glyphicon-floppy-save:before { - content: "\e175"; } - -.glyphicon-floppy-open:before { - content: "\e176"; } - -.glyphicon-credit-card:before { - content: "\e177"; } - -.glyphicon-transfer:before { - content: "\e178"; } - -.glyphicon-cutlery:before { - content: "\e179"; } - -.glyphicon-header:before { - content: "\e180"; } - -.glyphicon-compressed:before { - content: "\e181"; } - -.glyphicon-earphone:before { - content: "\e182"; } - -.glyphicon-phone-alt:before { - content: "\e183"; } - -.glyphicon-tower:before { - content: "\e184"; } - -.glyphicon-stats:before { - content: "\e185"; } - -.glyphicon-sd-video:before { - content: "\e186"; } - -.glyphicon-hd-video:before { - content: "\e187"; } - -.glyphicon-subtitles:before { - content: "\e188"; } - -.glyphicon-sound-stereo:before { - content: "\e189"; } - -.glyphicon-sound-dolby:before { - content: "\e190"; } - -.glyphicon-sound-5-1:before { - content: "\e191"; } - -.glyphicon-sound-6-1:before { - content: "\e192"; } - -.glyphicon-sound-7-1:before { - content: "\e193"; } - -.glyphicon-copyright-mark:before { - content: "\e194"; } - -.glyphicon-registration-mark:before { - content: "\e195"; } - -.glyphicon-cloud-download:before { - content: "\e197"; } - -.glyphicon-cloud-upload:before { - content: "\e198"; } - -.glyphicon-tree-conifer:before { - content: "\e199"; } - -.glyphicon-tree-deciduous:before { - content: "\e200"; } - -.glyphicon-cd:before { - content: "\e201"; } - -.glyphicon-save-file:before { - content: "\e202"; } - -.glyphicon-open-file:before { - content: "\e203"; } - -.glyphicon-level-up:before { - content: "\e204"; } - -.glyphicon-copy:before { - content: "\e205"; } - -.glyphicon-paste:before { - content: "\e206"; } - -.glyphicon-alert:before { - content: "\e209"; } - -.glyphicon-equalizer:before { - content: "\e210"; } - -.glyphicon-king:before { - content: "\e211"; } - -.glyphicon-queen:before { - content: "\e212"; } - -.glyphicon-pawn:before { - content: "\e213"; } - -.glyphicon-bishop:before { - content: "\e214"; } - -.glyphicon-knight:before { - content: "\e215"; } - -.glyphicon-baby-formula:before { - content: "\e216"; } - -.glyphicon-tent:before { - content: "\26fa"; } - -.glyphicon-blackboard:before { - content: "\e218"; } - -.glyphicon-bed:before { - content: "\e219"; } - -.glyphicon-apple:before { - content: "\f8ff"; } - -.glyphicon-erase:before { - content: "\e221"; } - -.glyphicon-hourglass:before { - content: "\231b"; } - -.glyphicon-lamp:before { - content: "\e223"; } - -.glyphicon-duplicate:before { - content: "\e224"; } - -.glyphicon-piggy-bank:before { - content: "\e225"; } - -.glyphicon-scissors:before { - content: "\e226"; } - -.glyphicon-bitcoin:before { - content: "\e227"; } - -.glyphicon-btc:before { - content: "\e227"; } - -.glyphicon-xbt:before { - content: "\e227"; } - -.glyphicon-yen:before { - content: "\00a5"; } - -.glyphicon-jpy:before { - content: "\00a5"; } - -.glyphicon-ruble:before { - content: "\20bd"; } - -.glyphicon-rub:before { - content: "\20bd"; } - -.glyphicon-scale:before { - content: "\e230"; } - -.glyphicon-ice-lolly:before { - content: "\e231"; } - -.glyphicon-ice-lolly-tasted:before { - content: "\e232"; } - -.glyphicon-education:before { - content: "\e233"; } - -.glyphicon-option-horizontal:before { - content: "\e234"; } - -.glyphicon-option-vertical:before { - content: "\e235"; } - -.glyphicon-menu-hamburger:before { - content: "\e236"; } - -.glyphicon-modal-window:before { - content: "\e237"; } - -.glyphicon-oil:before { - content: "\e238"; } - -.glyphicon-grain:before { - content: "\e239"; } - -.glyphicon-sunglasses:before { - content: "\e240"; } - -.glyphicon-text-size:before { - content: "\e241"; } - -.glyphicon-text-color:before { - content: "\e242"; } - -.glyphicon-text-background:before { - content: "\e243"; } - -.glyphicon-object-align-top:before { - content: "\e244"; } - -.glyphicon-object-align-bottom:before { - content: "\e245"; } - -.glyphicon-object-align-horizontal:before { - content: "\e246"; } - -.glyphicon-object-align-left:before { - content: "\e247"; } - -.glyphicon-object-align-vertical:before { - content: "\e248"; } - -.glyphicon-object-align-right:before { - content: "\e249"; } - -.glyphicon-triangle-right:before { - content: "\e250"; } - -.glyphicon-triangle-left:before { - content: "\e251"; } - -.glyphicon-triangle-bottom:before { - content: "\e252"; } - -.glyphicon-triangle-top:before { - content: "\e253"; } - -.glyphicon-console:before { - content: "\e254"; } - -.glyphicon-superscript:before { - content: "\e255"; } - -.glyphicon-subscript:before { - content: "\e256"; } - -.glyphicon-menu-left:before { - content: "\e257"; } - -.glyphicon-menu-right:before { - content: "\e258"; } - -.glyphicon-menu-down:before { - content: "\e259"; } - -.glyphicon-menu-up:before { - content: "\e260"; } - -* { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; } - -*:before, -*:after { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; } - -html { - font-size: 10px; - -webkit-tap-highlight-color: transparent; } - -body { - font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: 15px; - line-height: 1.846; - color: #444; - background-color: #fff; } - -input, -button, -select, -textarea { - font-family: inherit; - font-size: inherit; - line-height: inherit; } - -a { - color: #5a9ddb; - text-decoration: none; } - a:hover, a:focus { - color: #2a77bf; - text-decoration: underline; } - a:focus { - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px; } - -figure { - margin: 0; } - -img { - vertical-align: middle; } - -.img-responsive { - display: block; - max-width: 100%; - height: auto; } - -.img-rounded { - border-radius: 3px; } - -.img-thumbnail { - padding: 4px; - line-height: 1.846; - background-color: #fff; - border: 1px solid #ddd; - border-radius: 3px; - -webkit-transition: all 0.2s ease-in-out; - -o-transition: all 0.2s ease-in-out; - transition: all 0.2s ease-in-out; - display: inline-block; - max-width: 100%; - height: auto; } - -.img-circle { - border-radius: 50%; } - -hr { - margin-top: 27px; - margin-bottom: 27px; - border: 0; - border-top: 1px solid #eeeeee; } - -.sr-only { - position: absolute; - width: 1px; - height: 1px; - margin: -1px; - padding: 0; - overflow: hidden; - clip: rect(0, 0, 0, 0); - border: 0; } - -.sr-only-focusable:active, .sr-only-focusable:focus { - position: static; - width: auto; - height: auto; - margin: 0; - overflow: visible; - clip: auto; } - -[role="button"] { - cursor: pointer; } - -h1, h2, h3, h4, h5, h6, -.h1, .h2, .h3, .h4, .h5, .h6 { - font-family: inherit; - font-weight: 300; - line-height: 1.1; - color: #444; } - h1 small, - h1 .small, h2 small, - h2 .small, h3 small, - h3 .small, h4 small, - h4 .small, h5 small, - h5 .small, h6 small, - h6 .small, - .h1 small, - .h1 .small, .h2 small, - .h2 .small, .h3 small, - .h3 .small, .h4 small, - .h4 .small, .h5 small, - .h5 .small, .h6 small, - .h6 .small { - font-weight: normal; - line-height: 1; - color: #bbb; } - -h1, .h1, -h2, .h2, -h3, .h3 { - margin-top: 27px; - margin-bottom: 13.5px; } - h1 small, - h1 .small, .h1 small, - .h1 .small, - h2 small, - h2 .small, .h2 small, - .h2 .small, - h3 small, - h3 .small, .h3 small, - .h3 .small { - font-size: 65%; } - -h4, .h4, -h5, .h5, -h6, .h6 { - margin-top: 13.5px; - margin-bottom: 13.5px; } - h4 small, - h4 .small, .h4 small, - .h4 .small, - h5 small, - h5 .small, .h5 small, - .h5 .small, - h6 small, - h6 .small, .h6 small, - .h6 .small { - font-size: 75%; } - -h1, .h1 { - font-size: 48px; } - -h2, .h2 { - font-size: 40px; } - -h3, .h3 { - font-size: 32px; } - -h4, .h4 { - font-size: 24px; } - -h5, .h5 { - font-size: 20px; } - -h6, .h6 { - font-size: 14px; } - -p { - margin: 0 0 13.5px; } - -.lead { - margin-bottom: 27px; - font-size: 17px; - font-weight: 300; - line-height: 1.4; } - @media (min-width: 768px) { - .lead { - font-size: 22.5px; } } - -small, -.small { - font-size: 86%; } - -mark, -.mark { - background-color: #ffe0b2; - padding: .2em; } - -.text-left { - text-align: left; } - -.text-right { - text-align: right; } - -.text-center { - text-align: center; } - -.text-justify { - text-align: justify; } - -.text-nowrap { - white-space: nowrap; } - -.text-lowercase { - text-transform: lowercase; } - -.text-uppercase, .initialism { - text-transform: uppercase; } - -.text-capitalize { - text-transform: capitalize; } - -.text-muted { - color: #bbb; } - -.text-primary { - color: #5a9ddb; } - -a.text-primary:hover, -a.text-primary:focus { - color: #3084d2; } - -.text-success { - color: #4CAF50; } - -a.text-success:hover, -a.text-success:focus { - color: #3d8b40; } - -.text-info { - color: #9C27B0; } - -a.text-info:hover, -a.text-info:focus { - color: #771e86; } - -.text-warning { - color: #ff9800; } - -a.text-warning:hover, -a.text-warning:focus { - color: #cc7a00; } - -.text-danger { - color: #e51c23; } - -a.text-danger:hover, -a.text-danger:focus { - color: #b9151b; } - -.bg-primary { - color: #fff; } - -.bg-primary { - background-color: #5a9ddb; } - -a.bg-primary:hover, -a.bg-primary:focus { - background-color: #3084d2; } - -.bg-success { - background-color: #dff0d8; } - -a.bg-success:hover, -a.bg-success:focus { - background-color: #c1e2b3; } - -.bg-info { - background-color: #e1bee7; } - -a.bg-info:hover, -a.bg-info:focus { - background-color: #d099d9; } - -.bg-warning { - background-color: #ffe0b2; } - -a.bg-warning:hover, -a.bg-warning:focus { - background-color: #ffcb7f; } - -.bg-danger { - background-color: #f9bdbb; } - -a.bg-danger:hover, -a.bg-danger:focus { - background-color: #f5908c; } - -.page-header { - padding-bottom: 12.5px; - margin: 54px 0 27px; - border-bottom: 1px solid #eeeeee; } - -ul, -ol { - margin-top: 0; - margin-bottom: 13.5px; } - ul ul, - ul ol, - ol ul, - ol ol { - margin-bottom: 0; } - -.list-unstyled { - padding-left: 0; - list-style: none; } - -.list-inline { - padding-left: 0; - list-style: none; - margin-left: -5px; } - .list-inline > li { - display: inline-block; - padding-left: 5px; - padding-right: 5px; } - -dl { - margin-top: 0; - margin-bottom: 27px; } - -dt, -dd { - line-height: 1.846; } - -dt { - font-weight: bold; } - -dd { - margin-left: 0; } - -.dl-horizontal dd:before, .dl-horizontal dd:after { - content: " "; - display: table; } -.dl-horizontal dd:after { - clear: both; } -@media (min-width: 768px) { - .dl-horizontal dt { - float: left; - width: 160px; - clear: left; - text-align: right; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; } - .dl-horizontal dd { - margin-left: 180px; } } - -abbr[title], -abbr[data-original-title] { - cursor: help; - border-bottom: 1px dotted #bbb; } - -.initialism { - font-size: 90%; } - -blockquote { - padding: 13.5px 27px; - margin: 0 0 27px; - font-size: 18.75px; - border-left: 5px solid #eeeeee; } - blockquote p:last-child, - blockquote ul:last-child, - blockquote ol:last-child { - margin-bottom: 0; } - blockquote footer, - blockquote small, - blockquote .small { - display: block; - font-size: 80%; - line-height: 1.846; - color: #bbb; } - blockquote footer:before, - blockquote small:before, - blockquote .small:before { - content: '\2014 \00A0'; } - -.blockquote-reverse, -blockquote.pull-right { - padding-right: 15px; - padding-left: 0; - border-right: 5px solid #eeeeee; - border-left: 0; - text-align: right; } - .blockquote-reverse footer:before, - .blockquote-reverse small:before, - .blockquote-reverse .small:before, - blockquote.pull-right footer:before, - blockquote.pull-right small:before, - blockquote.pull-right .small:before { - content: ''; } - .blockquote-reverse footer:after, - .blockquote-reverse small:after, - .blockquote-reverse .small:after, - blockquote.pull-right footer:after, - blockquote.pull-right small:after, - blockquote.pull-right .small:after { - content: '\00A0 \2014'; } - -address { - margin-bottom: 27px; - font-style: normal; - line-height: 1.846; } - -code, -kbd, -pre, -samp { - font-family: "Source Code Pro", Menlo, Monaco, Consolas, "Courier New", monospace; } - -code { - padding: 2px 4px; - font-size: 90%; - color: #444; - background-color: #f2f2f2; - border-radius: 3px; } - -kbd { - padding: 2px 4px; - font-size: 90%; - color: #fff; - background-color: #333; - border-radius: 3px; - box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.25); } - kbd kbd { - padding: 0; - font-size: 100%; - font-weight: bold; - box-shadow: none; } - -pre { - display: block; - padding: 13px; - margin: 0 0 13.5px; - font-size: 14px; - line-height: 1.846; - word-break: break-all; - word-wrap: break-word; - color: #212121; - background-color: #f5f5f5; - border: 1px solid #ccc; - border-radius: 3px; } - pre code { - padding: 0; - font-size: inherit; - color: inherit; - white-space: pre-wrap; - background-color: transparent; - border-radius: 0; } - -.pre-scrollable { - max-height: 340px; - overflow-y: scroll; } - -.container { - margin-right: auto; - margin-left: auto; - padding-left: 15px; - padding-right: 15px; } - .container:before, .container:after { - content: " "; - display: table; } - .container:after { - clear: both; } - @media (min-width: 768px) { - .container { - width: 750px; } } - @media (min-width: 992px) { - .container { - width: 970px; } } - @media (min-width: 1200px) { - .container { - width: 1170px; } } - -.container-fluid { - margin-right: auto; - margin-left: auto; - padding-left: 15px; - padding-right: 15px; } - .container-fluid:before, .container-fluid:after { - content: " "; - display: table; } - .container-fluid:after { - clear: both; } - -.row { - margin-left: -15px; - margin-right: -15px; } - .row:before, .row:after { - content: " "; - display: table; } - .row:after { - clear: both; } - -.col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { - position: relative; - min-height: 1px; - padding-left: 15px; - padding-right: 15px; } - -.col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, .col-xs-11, .col-xs-12 { - float: left; } - -.col-xs-1 { - width: 8.33333%; } - -.col-xs-2 { - width: 16.66667%; } - -.col-xs-3 { - width: 25%; } - -.col-xs-4 { - width: 33.33333%; } - -.col-xs-5 { - width: 41.66667%; } - -.col-xs-6 { - width: 50%; } - -.col-xs-7 { - width: 58.33333%; } - -.col-xs-8 { - width: 66.66667%; } - -.col-xs-9 { - width: 75%; } - -.col-xs-10 { - width: 83.33333%; } - -.col-xs-11 { - width: 91.66667%; } - -.col-xs-12 { - width: 100%; } - -.col-xs-pull-0 { - right: auto; } - -.col-xs-pull-1 { - right: 8.33333%; } - -.col-xs-pull-2 { - right: 16.66667%; } - -.col-xs-pull-3 { - right: 25%; } - -.col-xs-pull-4 { - right: 33.33333%; } - -.col-xs-pull-5 { - right: 41.66667%; } - -.col-xs-pull-6 { - right: 50%; } - -.col-xs-pull-7 { - right: 58.33333%; } - -.col-xs-pull-8 { - right: 66.66667%; } - -.col-xs-pull-9 { - right: 75%; } - -.col-xs-pull-10 { - right: 83.33333%; } - -.col-xs-pull-11 { - right: 91.66667%; } - -.col-xs-pull-12 { - right: 100%; } - -.col-xs-push-0 { - left: auto; } - -.col-xs-push-1 { - left: 8.33333%; } - -.col-xs-push-2 { - left: 16.66667%; } - -.col-xs-push-3 { - left: 25%; } - -.col-xs-push-4 { - left: 33.33333%; } - -.col-xs-push-5 { - left: 41.66667%; } - -.col-xs-push-6 { - left: 50%; } - -.col-xs-push-7 { - left: 58.33333%; } - -.col-xs-push-8 { - left: 66.66667%; } - -.col-xs-push-9 { - left: 75%; } - -.col-xs-push-10 { - left: 83.33333%; } - -.col-xs-push-11 { - left: 91.66667%; } - -.col-xs-push-12 { - left: 100%; } - -.col-xs-offset-0 { - margin-left: 0%; } - -.col-xs-offset-1 { - margin-left: 8.33333%; } - -.col-xs-offset-2 { - margin-left: 16.66667%; } - -.col-xs-offset-3 { - margin-left: 25%; } - -.col-xs-offset-4 { - margin-left: 33.33333%; } - -.col-xs-offset-5 { - margin-left: 41.66667%; } - -.col-xs-offset-6 { - margin-left: 50%; } - -.col-xs-offset-7 { - margin-left: 58.33333%; } - -.col-xs-offset-8 { - margin-left: 66.66667%; } - -.col-xs-offset-9 { - margin-left: 75%; } - -.col-xs-offset-10 { - margin-left: 83.33333%; } - -.col-xs-offset-11 { - margin-left: 91.66667%; } - -.col-xs-offset-12 { - margin-left: 100%; } - -@media (min-width: 768px) { - .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 { - float: left; } - - .col-sm-1 { - width: 8.33333%; } - - .col-sm-2 { - width: 16.66667%; } - - .col-sm-3 { - width: 25%; } - - .col-sm-4 { - width: 33.33333%; } - - .col-sm-5 { - width: 41.66667%; } - - .col-sm-6 { - width: 50%; } - - .col-sm-7 { - width: 58.33333%; } - - .col-sm-8 { - width: 66.66667%; } - - .col-sm-9 { - width: 75%; } - - .col-sm-10 { - width: 83.33333%; } - - .col-sm-11 { - width: 91.66667%; } - - .col-sm-12 { - width: 100%; } - - .col-sm-pull-0 { - right: auto; } - - .col-sm-pull-1 { - right: 8.33333%; } - - .col-sm-pull-2 { - right: 16.66667%; } - - .col-sm-pull-3 { - right: 25%; } - - .col-sm-pull-4 { - right: 33.33333%; } - - .col-sm-pull-5 { - right: 41.66667%; } - - .col-sm-pull-6 { - right: 50%; } - - .col-sm-pull-7 { - right: 58.33333%; } - - .col-sm-pull-8 { - right: 66.66667%; } - - .col-sm-pull-9 { - right: 75%; } - - .col-sm-pull-10 { - right: 83.33333%; } - - .col-sm-pull-11 { - right: 91.66667%; } - - .col-sm-pull-12 { - right: 100%; } - - .col-sm-push-0 { - left: auto; } - - .col-sm-push-1 { - left: 8.33333%; } - - .col-sm-push-2 { - left: 16.66667%; } - - .col-sm-push-3 { - left: 25%; } - - .col-sm-push-4 { - left: 33.33333%; } - - .col-sm-push-5 { - left: 41.66667%; } - - .col-sm-push-6 { - left: 50%; } - - .col-sm-push-7 { - left: 58.33333%; } - - .col-sm-push-8 { - left: 66.66667%; } - - .col-sm-push-9 { - left: 75%; } - - .col-sm-push-10 { - left: 83.33333%; } - - .col-sm-push-11 { - left: 91.66667%; } - - .col-sm-push-12 { - left: 100%; } - - .col-sm-offset-0 { - margin-left: 0%; } - - .col-sm-offset-1 { - margin-left: 8.33333%; } - - .col-sm-offset-2 { - margin-left: 16.66667%; } - - .col-sm-offset-3 { - margin-left: 25%; } - - .col-sm-offset-4 { - margin-left: 33.33333%; } - - .col-sm-offset-5 { - margin-left: 41.66667%; } - - .col-sm-offset-6 { - margin-left: 50%; } - - .col-sm-offset-7 { - margin-left: 58.33333%; } - - .col-sm-offset-8 { - margin-left: 66.66667%; } - - .col-sm-offset-9 { - margin-left: 75%; } - - .col-sm-offset-10 { - margin-left: 83.33333%; } - - .col-sm-offset-11 { - margin-left: 91.66667%; } - - .col-sm-offset-12 { - margin-left: 100%; } } -@media (min-width: 992px) { - .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 { - float: left; } - - .col-md-1 { - width: 8.33333%; } - - .col-md-2 { - width: 16.66667%; } - - .col-md-3 { - width: 25%; } - - .col-md-4 { - width: 33.33333%; } - - .col-md-5 { - width: 41.66667%; } - - .col-md-6 { - width: 50%; } - - .col-md-7 { - width: 58.33333%; } - - .col-md-8 { - width: 66.66667%; } - - .col-md-9 { - width: 75%; } - - .col-md-10 { - width: 83.33333%; } - - .col-md-11 { - width: 91.66667%; } - - .col-md-12 { - width: 100%; } - - .col-md-pull-0 { - right: auto; } - - .col-md-pull-1 { - right: 8.33333%; } - - .col-md-pull-2 { - right: 16.66667%; } - - .col-md-pull-3 { - right: 25%; } - - .col-md-pull-4 { - right: 33.33333%; } - - .col-md-pull-5 { - right: 41.66667%; } - - .col-md-pull-6 { - right: 50%; } - - .col-md-pull-7 { - right: 58.33333%; } - - .col-md-pull-8 { - right: 66.66667%; } - - .col-md-pull-9 { - right: 75%; } - - .col-md-pull-10 { - right: 83.33333%; } - - .col-md-pull-11 { - right: 91.66667%; } - - .col-md-pull-12 { - right: 100%; } - - .col-md-push-0 { - left: auto; } - - .col-md-push-1 { - left: 8.33333%; } - - .col-md-push-2 { - left: 16.66667%; } - - .col-md-push-3 { - left: 25%; } - - .col-md-push-4 { - left: 33.33333%; } - - .col-md-push-5 { - left: 41.66667%; } - - .col-md-push-6 { - left: 50%; } - - .col-md-push-7 { - left: 58.33333%; } - - .col-md-push-8 { - left: 66.66667%; } - - .col-md-push-9 { - left: 75%; } - - .col-md-push-10 { - left: 83.33333%; } - - .col-md-push-11 { - left: 91.66667%; } - - .col-md-push-12 { - left: 100%; } - - .col-md-offset-0 { - margin-left: 0%; } - - .col-md-offset-1 { - margin-left: 8.33333%; } - - .col-md-offset-2 { - margin-left: 16.66667%; } - - .col-md-offset-3 { - margin-left: 25%; } - - .col-md-offset-4 { - margin-left: 33.33333%; } - - .col-md-offset-5 { - margin-left: 41.66667%; } - - .col-md-offset-6 { - margin-left: 50%; } - - .col-md-offset-7 { - margin-left: 58.33333%; } - - .col-md-offset-8 { - margin-left: 66.66667%; } - - .col-md-offset-9 { - margin-left: 75%; } - - .col-md-offset-10 { - margin-left: 83.33333%; } - - .col-md-offset-11 { - margin-left: 91.66667%; } - - .col-md-offset-12 { - margin-left: 100%; } } -@media (min-width: 1200px) { - .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12 { - float: left; } - - .col-lg-1 { - width: 8.33333%; } - - .col-lg-2 { - width: 16.66667%; } - - .col-lg-3 { - width: 25%; } - - .col-lg-4 { - width: 33.33333%; } - - .col-lg-5 { - width: 41.66667%; } - - .col-lg-6 { - width: 50%; } - - .col-lg-7 { - width: 58.33333%; } - - .col-lg-8 { - width: 66.66667%; } - - .col-lg-9 { - width: 75%; } - - .col-lg-10 { - width: 83.33333%; } - - .col-lg-11 { - width: 91.66667%; } - - .col-lg-12 { - width: 100%; } - - .col-lg-pull-0 { - right: auto; } - - .col-lg-pull-1 { - right: 8.33333%; } - - .col-lg-pull-2 { - right: 16.66667%; } - - .col-lg-pull-3 { - right: 25%; } - - .col-lg-pull-4 { - right: 33.33333%; } - - .col-lg-pull-5 { - right: 41.66667%; } - - .col-lg-pull-6 { - right: 50%; } - - .col-lg-pull-7 { - right: 58.33333%; } - - .col-lg-pull-8 { - right: 66.66667%; } - - .col-lg-pull-9 { - right: 75%; } - - .col-lg-pull-10 { - right: 83.33333%; } - - .col-lg-pull-11 { - right: 91.66667%; } - - .col-lg-pull-12 { - right: 100%; } - - .col-lg-push-0 { - left: auto; } - - .col-lg-push-1 { - left: 8.33333%; } - - .col-lg-push-2 { - left: 16.66667%; } - - .col-lg-push-3 { - left: 25%; } - - .col-lg-push-4 { - left: 33.33333%; } - - .col-lg-push-5 { - left: 41.66667%; } - - .col-lg-push-6 { - left: 50%; } - - .col-lg-push-7 { - left: 58.33333%; } - - .col-lg-push-8 { - left: 66.66667%; } - - .col-lg-push-9 { - left: 75%; } - - .col-lg-push-10 { - left: 83.33333%; } - - .col-lg-push-11 { - left: 91.66667%; } - - .col-lg-push-12 { - left: 100%; } - - .col-lg-offset-0 { - margin-left: 0%; } - - .col-lg-offset-1 { - margin-left: 8.33333%; } - - .col-lg-offset-2 { - margin-left: 16.66667%; } - - .col-lg-offset-3 { - margin-left: 25%; } - - .col-lg-offset-4 { - margin-left: 33.33333%; } - - .col-lg-offset-5 { - margin-left: 41.66667%; } - - .col-lg-offset-6 { - margin-left: 50%; } - - .col-lg-offset-7 { - margin-left: 58.33333%; } - - .col-lg-offset-8 { - margin-left: 66.66667%; } - - .col-lg-offset-9 { - margin-left: 75%; } - - .col-lg-offset-10 { - margin-left: 83.33333%; } - - .col-lg-offset-11 { - margin-left: 91.66667%; } - - .col-lg-offset-12 { - margin-left: 100%; } } -table { - background-color: transparent; } - -caption { - padding-top: 8px; - padding-bottom: 8px; - color: #bbb; - text-align: left; } - -th { - text-align: left; } - -.table { - width: 100%; - max-width: 100%; - margin-bottom: 27px; } - .table > thead > tr > th, - .table > thead > tr > td, - .table > tbody > tr > th, - .table > tbody > tr > td, - .table > tfoot > tr > th, - .table > tfoot > tr > td { - padding: 8px; - line-height: 1.846; - vertical-align: top; - border-top: 1px solid #ddd; } - .table > thead > tr > th { - vertical-align: bottom; - border-bottom: 2px solid #ddd; } - .table > caption + thead > tr:first-child > th, - .table > caption + thead > tr:first-child > td, - .table > colgroup + thead > tr:first-child > th, - .table > colgroup + thead > tr:first-child > td, - .table > thead:first-child > tr:first-child > th, - .table > thead:first-child > tr:first-child > td { - border-top: 0; } - .table > tbody + tbody { - border-top: 2px solid #ddd; } - .table .table { - background-color: #fff; } - -.table-condensed > thead > tr > th, -.table-condensed > thead > tr > td, -.table-condensed > tbody > tr > th, -.table-condensed > tbody > tr > td, -.table-condensed > tfoot > tr > th, -.table-condensed > tfoot > tr > td { - padding: 5px; } - -.table-bordered { - border: 1px solid #ddd; } - .table-bordered > thead > tr > th, - .table-bordered > thead > tr > td, - .table-bordered > tbody > tr > th, - .table-bordered > tbody > tr > td, - .table-bordered > tfoot > tr > th, - .table-bordered > tfoot > tr > td { - border: 1px solid #ddd; } - .table-bordered > thead > tr > th, - .table-bordered > thead > tr > td { - border-bottom-width: 2px; } - -.table-striped > tbody > tr:nth-of-type(odd) { - background-color: #f9f9f9; } - -.table-hover > tbody > tr:hover { - background-color: #f5f5f5; } - -table col[class*="col-"] { - position: static; - float: none; - display: table-column; } - -table td[class*="col-"], -table th[class*="col-"] { - position: static; - float: none; - display: table-cell; } - -.table > thead > tr > td.active, -.table > thead > tr > th.active, .table > thead > tr.active > td, .table > thead > tr.active > th, -.table > tbody > tr > td.active, -.table > tbody > tr > th.active, -.table > tbody > tr.active > td, -.table > tbody > tr.active > th, -.table > tfoot > tr > td.active, -.table > tfoot > tr > th.active, -.table > tfoot > tr.active > td, -.table > tfoot > tr.active > th { - background-color: #f5f5f5; } - -.table-hover > tbody > tr > td.active:hover, -.table-hover > tbody > tr > th.active:hover, .table-hover > tbody > tr.active:hover > td, .table-hover > tbody > tr:hover > .active, .table-hover > tbody > tr.active:hover > th { - background-color: #e8e8e8; } - -.table > thead > tr > td.success, -.table > thead > tr > th.success, .table > thead > tr.success > td, .table > thead > tr.success > th, -.table > tbody > tr > td.success, -.table > tbody > tr > th.success, -.table > tbody > tr.success > td, -.table > tbody > tr.success > th, -.table > tfoot > tr > td.success, -.table > tfoot > tr > th.success, -.table > tfoot > tr.success > td, -.table > tfoot > tr.success > th { - background-color: #dff0d8; } - -.table-hover > tbody > tr > td.success:hover, -.table-hover > tbody > tr > th.success:hover, .table-hover > tbody > tr.success:hover > td, .table-hover > tbody > tr:hover > .success, .table-hover > tbody > tr.success:hover > th { - background-color: #d0e9c6; } - -.table > thead > tr > td.info, -.table > thead > tr > th.info, .table > thead > tr.info > td, .table > thead > tr.info > th, -.table > tbody > tr > td.info, -.table > tbody > tr > th.info, -.table > tbody > tr.info > td, -.table > tbody > tr.info > th, -.table > tfoot > tr > td.info, -.table > tfoot > tr > th.info, -.table > tfoot > tr.info > td, -.table > tfoot > tr.info > th { - background-color: #e1bee7; } - -.table-hover > tbody > tr > td.info:hover, -.table-hover > tbody > tr > th.info:hover, .table-hover > tbody > tr.info:hover > td, .table-hover > tbody > tr:hover > .info, .table-hover > tbody > tr.info:hover > th { - background-color: #d8abe0; } - -.table > thead > tr > td.warning, -.table > thead > tr > th.warning, .table > thead > tr.warning > td, .table > thead > tr.warning > th, -.table > tbody > tr > td.warning, -.table > tbody > tr > th.warning, -.table > tbody > tr.warning > td, -.table > tbody > tr.warning > th, -.table > tfoot > tr > td.warning, -.table > tfoot > tr > th.warning, -.table > tfoot > tr.warning > td, -.table > tfoot > tr.warning > th { - background-color: #ffe0b2; } - -.table-hover > tbody > tr > td.warning:hover, -.table-hover > tbody > tr > th.warning:hover, .table-hover > tbody > tr.warning:hover > td, .table-hover > tbody > tr:hover > .warning, .table-hover > tbody > tr.warning:hover > th { - background-color: #ffd699; } - -.table > thead > tr > td.danger, -.table > thead > tr > th.danger, .table > thead > tr.danger > td, .table > thead > tr.danger > th, -.table > tbody > tr > td.danger, -.table > tbody > tr > th.danger, -.table > tbody > tr.danger > td, -.table > tbody > tr.danger > th, -.table > tfoot > tr > td.danger, -.table > tfoot > tr > th.danger, -.table > tfoot > tr.danger > td, -.table > tfoot > tr.danger > th { - background-color: #f9bdbb; } - -.table-hover > tbody > tr > td.danger:hover, -.table-hover > tbody > tr > th.danger:hover, .table-hover > tbody > tr.danger:hover > td, .table-hover > tbody > tr:hover > .danger, .table-hover > tbody > tr.danger:hover > th { - background-color: #f7a6a4; } - -.table-responsive { - overflow-x: auto; - min-height: 0.01%; } - @media screen and (max-width: 767px) { - .table-responsive { - width: 100%; - margin-bottom: 20.25px; - overflow-y: hidden; - -ms-overflow-style: -ms-autohiding-scrollbar; - border: 1px solid #ddd; } - .table-responsive > .table { - margin-bottom: 0; } - .table-responsive > .table > thead > tr > th, - .table-responsive > .table > thead > tr > td, - .table-responsive > .table > tbody > tr > th, - .table-responsive > .table > tbody > tr > td, - .table-responsive > .table > tfoot > tr > th, - .table-responsive > .table > tfoot > tr > td { - white-space: nowrap; } - .table-responsive > .table-bordered { - border: 0; } - .table-responsive > .table-bordered > thead > tr > th:first-child, - .table-responsive > .table-bordered > thead > tr > td:first-child, - .table-responsive > .table-bordered > tbody > tr > th:first-child, - .table-responsive > .table-bordered > tbody > tr > td:first-child, - .table-responsive > .table-bordered > tfoot > tr > th:first-child, - .table-responsive > .table-bordered > tfoot > tr > td:first-child { - border-left: 0; } - .table-responsive > .table-bordered > thead > tr > th:last-child, - .table-responsive > .table-bordered > thead > tr > td:last-child, - .table-responsive > .table-bordered > tbody > tr > th:last-child, - .table-responsive > .table-bordered > tbody > tr > td:last-child, - .table-responsive > .table-bordered > tfoot > tr > th:last-child, - .table-responsive > .table-bordered > tfoot > tr > td:last-child { - border-right: 0; } - .table-responsive > .table-bordered > tbody > tr:last-child > th, - .table-responsive > .table-bordered > tbody > tr:last-child > td, - .table-responsive > .table-bordered > tfoot > tr:last-child > th, - .table-responsive > .table-bordered > tfoot > tr:last-child > td { - border-bottom: 0; } } - -fieldset { - padding: 0; - margin: 0; - border: 0; - min-width: 0; } - -legend { - display: block; - width: 100%; - padding: 0; - margin-bottom: 27px; - font-size: 22.5px; - line-height: inherit; - color: #212121; - border: 0; - border-bottom: 1px solid #e5e5e5; } - -label { - display: inline-block; - max-width: 100%; - margin-bottom: 5px; - font-weight: bold; } - -input[type="search"] { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; } - -input[type="radio"], -input[type="checkbox"] { - margin: 4px 0 0; - margin-top: 1px \9; - line-height: normal; } - -input[type="file"] { - display: block; } - -input[type="range"] { - display: block; - width: 100%; } - -select[multiple], -select[size] { - height: auto; } - -input[type="file"]:focus, -input[type="radio"]:focus, -input[type="checkbox"]:focus { - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px; } - -output { - display: block; - padding-top: 7px; - font-size: 15px; - line-height: 1.846; - color: #666; } - -.form-control { - display: block; - width: 100%; - height: 41px; - padding: 6px 16px; - font-size: 15px; - line-height: 1.846; - color: #666; - background-color: transparent; - background-image: none; - border: 1px solid transparent; - border-radius: 3px; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; - -o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; - transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s; } - .form-control:focus { - border-color: #66afe9; - outline: 0; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6); } - .form-control::-moz-placeholder { - color: #bbb; - opacity: 1; } - .form-control:-ms-input-placeholder { - color: #bbb; } - .form-control::-webkit-input-placeholder { - color: #bbb; } - .form-control::-ms-expand { - border: 0; - background-color: transparent; } - .form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { - background-color: transparent; - opacity: 1; } - .form-control[disabled], fieldset[disabled] .form-control { - cursor: not-allowed; } - -textarea.form-control { - height: auto; } - -input[type="search"] { - -webkit-appearance: none; } - -@media screen and (-webkit-min-device-pixel-ratio: 0) { - input[type="date"].form-control, - input[type="time"].form-control, - input[type="datetime-local"].form-control, - input[type="month"].form-control { - line-height: 41px; } - input[type="date"].input-sm, .input-group-sm > input[type="date"].form-control, - .input-group-sm > input[type="date"].input-group-addon, - .input-group-sm > .input-group-btn > input[type="date"].btn, .input-group-sm input[type="date"], - input[type="time"].input-sm, - .input-group-sm > input[type="time"].form-control, - .input-group-sm > input[type="time"].input-group-addon, - .input-group-sm > .input-group-btn > input[type="time"].btn, .input-group-sm - input[type="time"], - input[type="datetime-local"].input-sm, - .input-group-sm > input[type="datetime-local"].form-control, - .input-group-sm > input[type="datetime-local"].input-group-addon, - .input-group-sm > .input-group-btn > input[type="datetime-local"].btn, .input-group-sm - input[type="datetime-local"], - input[type="month"].input-sm, - .input-group-sm > input[type="month"].form-control, - .input-group-sm > input[type="month"].input-group-addon, - .input-group-sm > .input-group-btn > input[type="month"].btn, .input-group-sm - input[type="month"] { - line-height: 31px; } - input[type="date"].input-lg, .input-group-lg > input[type="date"].form-control, - .input-group-lg > input[type="date"].input-group-addon, - .input-group-lg > .input-group-btn > input[type="date"].btn, .input-group-lg input[type="date"], - input[type="time"].input-lg, - .input-group-lg > input[type="time"].form-control, - .input-group-lg > input[type="time"].input-group-addon, - .input-group-lg > .input-group-btn > input[type="time"].btn, .input-group-lg - input[type="time"], - input[type="datetime-local"].input-lg, - .input-group-lg > input[type="datetime-local"].form-control, - .input-group-lg > input[type="datetime-local"].input-group-addon, - .input-group-lg > .input-group-btn > input[type="datetime-local"].btn, .input-group-lg - input[type="datetime-local"], - input[type="month"].input-lg, - .input-group-lg > input[type="month"].form-control, - .input-group-lg > input[type="month"].input-group-addon, - .input-group-lg > .input-group-btn > input[type="month"].btn, .input-group-lg - input[type="month"] { - line-height: 48px; } } -.form-group { - margin-bottom: 15px; } - -.radio, -.checkbox { - position: relative; - display: block; - margin-top: 10px; - margin-bottom: 10px; } - .radio label, - .checkbox label { - min-height: 27px; - padding-left: 20px; - margin-bottom: 0; - font-weight: normal; - cursor: pointer; } - -.radio input[type="radio"], -.radio-inline input[type="radio"], -.checkbox input[type="checkbox"], -.checkbox-inline input[type="checkbox"] { - position: absolute; - margin-left: -20px; - margin-top: 4px \9; } - -.radio + .radio, -.checkbox + .checkbox { - margin-top: -5px; } - -.radio-inline, -.checkbox-inline { - position: relative; - display: inline-block; - padding-left: 20px; - margin-bottom: 0; - vertical-align: middle; - font-weight: normal; - cursor: pointer; } - -.radio-inline + .radio-inline, -.checkbox-inline + .checkbox-inline { - margin-top: 0; - margin-left: 10px; } - -input[type="radio"][disabled], input[type="radio"].disabled, fieldset[disabled] input[type="radio"], -input[type="checkbox"][disabled], -input[type="checkbox"].disabled, fieldset[disabled] -input[type="checkbox"] { - cursor: not-allowed; } - -.radio-inline.disabled, fieldset[disabled] .radio-inline, -.checkbox-inline.disabled, fieldset[disabled] -.checkbox-inline { - cursor: not-allowed; } - -.radio.disabled label, fieldset[disabled] .radio label, -.checkbox.disabled label, fieldset[disabled] -.checkbox label { - cursor: not-allowed; } - -.form-control-static { - padding-top: 7px; - padding-bottom: 7px; - margin-bottom: 0; - min-height: 42px; } - .form-control-static.input-lg, .input-group-lg > .form-control-static.form-control, - .input-group-lg > .form-control-static.input-group-addon, - .input-group-lg > .input-group-btn > .form-control-static.btn, .form-control-static.input-sm, .input-group-sm > .form-control-static.form-control, - .input-group-sm > .form-control-static.input-group-addon, - .input-group-sm > .input-group-btn > .form-control-static.btn { - padding-left: 0; - padding-right: 0; } - -.input-sm, .input-group-sm > .form-control, -.input-group-sm > .input-group-addon, -.input-group-sm > .input-group-btn > .btn { - height: 31px; - padding: 5px 10px; - font-size: 13px; - line-height: 1.5; - border-radius: 3px; } - -select.input-sm, .input-group-sm > select.form-control, -.input-group-sm > select.input-group-addon, -.input-group-sm > .input-group-btn > select.btn { - height: 31px; - line-height: 31px; } - -textarea.input-sm, .input-group-sm > textarea.form-control, -.input-group-sm > textarea.input-group-addon, -.input-group-sm > .input-group-btn > textarea.btn, -select[multiple].input-sm, -.input-group-sm > select[multiple].form-control, -.input-group-sm > select[multiple].input-group-addon, -.input-group-sm > .input-group-btn > select[multiple].btn { - height: auto; } - -.form-group-sm .form-control { - height: 31px; - padding: 5px 10px; - font-size: 13px; - line-height: 1.5; - border-radius: 3px; } -.form-group-sm select.form-control { - height: 31px; - line-height: 31px; } -.form-group-sm textarea.form-control, -.form-group-sm select[multiple].form-control { - height: auto; } -.form-group-sm .form-control-static { - height: 31px; - min-height: 40px; - padding: 6px 10px; - font-size: 13px; - line-height: 1.5; } - -.input-lg, .input-group-lg > .form-control, -.input-group-lg > .input-group-addon, -.input-group-lg > .input-group-btn > .btn { - height: 48px; - padding: 10px 16px; - font-size: 19px; - line-height: 1.33333; - border-radius: 3px; } - -select.input-lg, .input-group-lg > select.form-control, -.input-group-lg > select.input-group-addon, -.input-group-lg > .input-group-btn > select.btn { - height: 48px; - line-height: 48px; } - -textarea.input-lg, .input-group-lg > textarea.form-control, -.input-group-lg > textarea.input-group-addon, -.input-group-lg > .input-group-btn > textarea.btn, -select[multiple].input-lg, -.input-group-lg > select[multiple].form-control, -.input-group-lg > select[multiple].input-group-addon, -.input-group-lg > .input-group-btn > select[multiple].btn { - height: auto; } - -.form-group-lg .form-control { - height: 48px; - padding: 10px 16px; - font-size: 19px; - line-height: 1.33333; - border-radius: 3px; } -.form-group-lg select.form-control { - height: 48px; - line-height: 48px; } -.form-group-lg textarea.form-control, -.form-group-lg select[multiple].form-control { - height: auto; } -.form-group-lg .form-control-static { - height: 48px; - min-height: 46px; - padding: 11px 16px; - font-size: 19px; - line-height: 1.33333; } - -.has-feedback { - position: relative; } - .has-feedback .form-control { - padding-right: 51.25px; } - -.form-control-feedback { - position: absolute; - top: 0; - right: 0; - z-index: 2; - display: block; - width: 41px; - height: 41px; - line-height: 41px; - text-align: center; - pointer-events: none; } - -.input-lg + .form-control-feedback, .input-group-lg > .form-control + .form-control-feedback, -.input-group-lg > .input-group-addon + .form-control-feedback, -.input-group-lg > .input-group-btn > .btn + .form-control-feedback, -.input-group-lg + .form-control-feedback, -.form-group-lg .form-control + .form-control-feedback { - width: 48px; - height: 48px; - line-height: 48px; } - -.input-sm + .form-control-feedback, .input-group-sm > .form-control + .form-control-feedback, -.input-group-sm > .input-group-addon + .form-control-feedback, -.input-group-sm > .input-group-btn > .btn + .form-control-feedback, -.input-group-sm + .form-control-feedback, -.form-group-sm .form-control + .form-control-feedback { - width: 31px; - height: 31px; - line-height: 31px; } - -.has-success .help-block, -.has-success .control-label, -.has-success .radio, -.has-success .checkbox, -.has-success .radio-inline, -.has-success .checkbox-inline, .has-success.radio label, .has-success.checkbox label, .has-success.radio-inline label, .has-success.checkbox-inline label { - color: #4CAF50; } -.has-success .form-control { - border-color: #4CAF50; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } - .has-success .form-control:focus { - border-color: #3d8b40; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #92cf94; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #92cf94; } -.has-success .input-group-addon { - color: #4CAF50; - border-color: #4CAF50; - background-color: #dff0d8; } -.has-success .form-control-feedback { - color: #4CAF50; } - -.has-warning .help-block, -.has-warning .control-label, -.has-warning .radio, -.has-warning .checkbox, -.has-warning .radio-inline, -.has-warning .checkbox-inline, .has-warning.radio label, .has-warning.checkbox label, .has-warning.radio-inline label, .has-warning.checkbox-inline label { - color: #ff9800; } -.has-warning .form-control { - border-color: #ff9800; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } - .has-warning .form-control:focus { - border-color: #cc7a00; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffc166; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ffc166; } -.has-warning .input-group-addon { - color: #ff9800; - border-color: #ff9800; - background-color: #ffe0b2; } -.has-warning .form-control-feedback { - color: #ff9800; } - -.has-error .help-block, -.has-error .control-label, -.has-error .radio, -.has-error .checkbox, -.has-error .radio-inline, -.has-error .checkbox-inline, .has-error.radio label, .has-error.checkbox label, .has-error.radio-inline label, .has-error.checkbox-inline label { - color: #e51c23; } -.has-error .form-control { - border-color: #e51c23; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); } - .has-error .form-control:focus { - border-color: #b9151b; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ef787c; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #ef787c; } -.has-error .input-group-addon { - color: #e51c23; - border-color: #e51c23; - background-color: #f9bdbb; } -.has-error .form-control-feedback { - color: #e51c23; } - -.has-feedback label ~ .form-control-feedback { - top: 32px; } -.has-feedback label.sr-only ~ .form-control-feedback { - top: 0; } - -.help-block { - display: block; - margin-top: 5px; - margin-bottom: 10px; - color: #848484; } - -@media (min-width: 768px) { - .form-inline .form-group { - display: inline-block; - margin-bottom: 0; - vertical-align: middle; } - .form-inline .form-control { - display: inline-block; - width: auto; - vertical-align: middle; } - .form-inline .form-control-static { - display: inline-block; } - .form-inline .input-group { - display: inline-table; - vertical-align: middle; } - .form-inline .input-group .input-group-addon, - .form-inline .input-group .input-group-btn, - .form-inline .input-group .form-control { - width: auto; } - .form-inline .input-group > .form-control { - width: 100%; } - .form-inline .control-label { - margin-bottom: 0; - vertical-align: middle; } - .form-inline .radio, - .form-inline .checkbox { - display: inline-block; - margin-top: 0; - margin-bottom: 0; - vertical-align: middle; } - .form-inline .radio label, - .form-inline .checkbox label { - padding-left: 0; } - .form-inline .radio input[type="radio"], - .form-inline .checkbox input[type="checkbox"] { - position: relative; - margin-left: 0; } - .form-inline .has-feedback .form-control-feedback { - top: 0; } } - -.form-horizontal .radio, -.form-horizontal .checkbox, -.form-horizontal .radio-inline, -.form-horizontal .checkbox-inline { - margin-top: 0; - margin-bottom: 0; - padding-top: 7px; } -.form-horizontal .radio, -.form-horizontal .checkbox { - min-height: 34px; } -.form-horizontal .form-group { - margin-left: -15px; - margin-right: -15px; } - .form-horizontal .form-group:before, .form-horizontal .form-group:after { - content: " "; - display: table; } - .form-horizontal .form-group:after { - clear: both; } -@media (min-width: 768px) { - .form-horizontal .control-label { - text-align: right; - margin-bottom: 0; - padding-top: 7px; } } -.form-horizontal .has-feedback .form-control-feedback { - right: 15px; } -@media (min-width: 768px) { - .form-horizontal .form-group-lg .control-label { - padding-top: 11px; - font-size: 19px; } } -@media (min-width: 768px) { - .form-horizontal .form-group-sm .control-label { - padding-top: 6px; - font-size: 13px; } } - -.btn { - display: inline-block; - margin-bottom: 0; - font-weight: normal; - text-align: center; - vertical-align: middle; - touch-action: manipulation; - cursor: pointer; - background-image: none; - border: 1px solid transparent; - white-space: nowrap; - padding: 6px 16px; - font-size: 15px; - line-height: 1.846; - border-radius: 3px; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; } - .btn:focus, .btn.focus, .btn:active:focus, .btn:active.focus, .btn.active:focus, .btn.active.focus { - outline: 5px auto -webkit-focus-ring-color; - outline-offset: -2px; } - .btn:hover, .btn:focus, .btn.focus { - color: #444; - text-decoration: none; } - .btn:active, .btn.active { - outline: 0; - background-image: none; - -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); - box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } - .btn.disabled, .btn[disabled], fieldset[disabled] .btn { - cursor: not-allowed; - opacity: 0.65; - filter: alpha(opacity=65); - -webkit-box-shadow: none; - box-shadow: none; } - -a.btn.disabled, fieldset[disabled] a.btn { - pointer-events: none; } - -.btn-default { - color: #444; - background-color: #fff; - border-color: transparent; } - .btn-default:focus, .btn-default.focus { - color: #444; - background-color: #e6e6e6; - border-color: transparent; } - .btn-default:hover { - color: #444; - background-color: #e6e6e6; - border-color: transparent; } - .btn-default:active, .btn-default.active, .open > .btn-default.dropdown-toggle { - color: #444; - background-color: #e6e6e6; - border-color: transparent; } - .btn-default:active:hover, .btn-default:active:focus, .btn-default:active.focus, .btn-default.active:hover, .btn-default.active:focus, .btn-default.active.focus, .open > .btn-default.dropdown-toggle:hover, .open > .btn-default.dropdown-toggle:focus, .open > .btn-default.dropdown-toggle.focus { - color: #444; - background-color: #d4d4d4; - border-color: transparent; } - .btn-default:active, .btn-default.active, .open > .btn-default.dropdown-toggle { - background-image: none; } - .btn-default.disabled:hover, .btn-default.disabled:focus, .btn-default.disabled.focus, .btn-default[disabled]:hover, .btn-default[disabled]:focus, .btn-default[disabled].focus, fieldset[disabled] .btn-default:hover, fieldset[disabled] .btn-default:focus, fieldset[disabled] .btn-default.focus { - background-color: #fff; - border-color: transparent; } - .btn-default .badge { - color: #fff; - background-color: #444; } - -.btn-primary { - color: #fff; - background-color: #5a9ddb; - border-color: transparent; } - .btn-primary:focus, .btn-primary.focus { - color: #fff; - background-color: #3084d2; - border-color: transparent; } - .btn-primary:hover { - color: #fff; - background-color: #3084d2; - border-color: transparent; } - .btn-primary:active, .btn-primary.active, .open > .btn-primary.dropdown-toggle { - color: #fff; - background-color: #3084d2; - border-color: transparent; } - .btn-primary:active:hover, .btn-primary:active:focus, .btn-primary:active.focus, .btn-primary.active:hover, .btn-primary.active:focus, .btn-primary.active.focus, .open > .btn-primary.dropdown-toggle:hover, .open > .btn-primary.dropdown-toggle:focus, .open > .btn-primary.dropdown-toggle.focus { - color: #fff; - background-color: #2872b6; - border-color: transparent; } - .btn-primary:active, .btn-primary.active, .open > .btn-primary.dropdown-toggle { - background-image: none; } - .btn-primary.disabled:hover, .btn-primary.disabled:focus, .btn-primary.disabled.focus, .btn-primary[disabled]:hover, .btn-primary[disabled]:focus, .btn-primary[disabled].focus, fieldset[disabled] .btn-primary:hover, fieldset[disabled] .btn-primary:focus, fieldset[disabled] .btn-primary.focus { - background-color: #5a9ddb; - border-color: transparent; } - .btn-primary .badge { - color: #5a9ddb; - background-color: #fff; } - -.btn-success { - color: #fff; - background-color: #4CAF50; - border-color: transparent; } - .btn-success:focus, .btn-success.focus { - color: #fff; - background-color: #3d8b40; - border-color: transparent; } - .btn-success:hover { - color: #fff; - background-color: #3d8b40; - border-color: transparent; } - .btn-success:active, .btn-success.active, .open > .btn-success.dropdown-toggle { - color: #fff; - background-color: #3d8b40; - border-color: transparent; } - .btn-success:active:hover, .btn-success:active:focus, .btn-success:active.focus, .btn-success.active:hover, .btn-success.active:focus, .btn-success.active.focus, .open > .btn-success.dropdown-toggle:hover, .open > .btn-success.dropdown-toggle:focus, .open > .btn-success.dropdown-toggle.focus { - color: #fff; - background-color: #327334; - border-color: transparent; } - .btn-success:active, .btn-success.active, .open > .btn-success.dropdown-toggle { - background-image: none; } - .btn-success.disabled:hover, .btn-success.disabled:focus, .btn-success.disabled.focus, .btn-success[disabled]:hover, .btn-success[disabled]:focus, .btn-success[disabled].focus, fieldset[disabled] .btn-success:hover, fieldset[disabled] .btn-success:focus, fieldset[disabled] .btn-success.focus { - background-color: #4CAF50; - border-color: transparent; } - .btn-success .badge { - color: #4CAF50; - background-color: #fff; } - -.btn-info { - color: #fff; - background-color: #9C27B0; - border-color: transparent; } - .btn-info:focus, .btn-info.focus { - color: #fff; - background-color: #771e86; - border-color: transparent; } - .btn-info:hover { - color: #fff; - background-color: #771e86; - border-color: transparent; } - .btn-info:active, .btn-info.active, .open > .btn-info.dropdown-toggle { - color: #fff; - background-color: #771e86; - border-color: transparent; } - .btn-info:active:hover, .btn-info:active:focus, .btn-info:active.focus, .btn-info.active:hover, .btn-info.active:focus, .btn-info.active.focus, .open > .btn-info.dropdown-toggle:hover, .open > .btn-info.dropdown-toggle:focus, .open > .btn-info.dropdown-toggle.focus { - color: #fff; - background-color: #5d1769; - border-color: transparent; } - .btn-info:active, .btn-info.active, .open > .btn-info.dropdown-toggle { - background-image: none; } - .btn-info.disabled:hover, .btn-info.disabled:focus, .btn-info.disabled.focus, .btn-info[disabled]:hover, .btn-info[disabled]:focus, .btn-info[disabled].focus, fieldset[disabled] .btn-info:hover, fieldset[disabled] .btn-info:focus, fieldset[disabled] .btn-info.focus { - background-color: #9C27B0; - border-color: transparent; } - .btn-info .badge { - color: #9C27B0; - background-color: #fff; } - -.btn-warning { - color: #fff; - background-color: #ff9800; - border-color: transparent; } - .btn-warning:focus, .btn-warning.focus { - color: #fff; - background-color: #cc7a00; - border-color: transparent; } - .btn-warning:hover { - color: #fff; - background-color: #cc7a00; - border-color: transparent; } - .btn-warning:active, .btn-warning.active, .open > .btn-warning.dropdown-toggle { - color: #fff; - background-color: #cc7a00; - border-color: transparent; } - .btn-warning:active:hover, .btn-warning:active:focus, .btn-warning:active.focus, .btn-warning.active:hover, .btn-warning.active:focus, .btn-warning.active.focus, .open > .btn-warning.dropdown-toggle:hover, .open > .btn-warning.dropdown-toggle:focus, .open > .btn-warning.dropdown-toggle.focus { - color: #fff; - background-color: #a86400; - border-color: transparent; } - .btn-warning:active, .btn-warning.active, .open > .btn-warning.dropdown-toggle { - background-image: none; } - .btn-warning.disabled:hover, .btn-warning.disabled:focus, .btn-warning.disabled.focus, .btn-warning[disabled]:hover, .btn-warning[disabled]:focus, .btn-warning[disabled].focus, fieldset[disabled] .btn-warning:hover, fieldset[disabled] .btn-warning:focus, fieldset[disabled] .btn-warning.focus { - background-color: #ff9800; - border-color: transparent; } - .btn-warning .badge { - color: #ff9800; - background-color: #fff; } - -.btn-danger { - color: #fff; - background-color: #e51c23; - border-color: transparent; } - .btn-danger:focus, .btn-danger.focus { - color: #fff; - background-color: #b9151b; - border-color: transparent; } - .btn-danger:hover { - color: #fff; - background-color: #b9151b; - border-color: transparent; } - .btn-danger:active, .btn-danger.active, .open > .btn-danger.dropdown-toggle { - color: #fff; - background-color: #b9151b; - border-color: transparent; } - .btn-danger:active:hover, .btn-danger:active:focus, .btn-danger:active.focus, .btn-danger.active:hover, .btn-danger.active:focus, .btn-danger.active.focus, .open > .btn-danger.dropdown-toggle:hover, .open > .btn-danger.dropdown-toggle:focus, .open > .btn-danger.dropdown-toggle.focus { - color: #fff; - background-color: #991216; - border-color: transparent; } - .btn-danger:active, .btn-danger.active, .open > .btn-danger.dropdown-toggle { - background-image: none; } - .btn-danger.disabled:hover, .btn-danger.disabled:focus, .btn-danger.disabled.focus, .btn-danger[disabled]:hover, .btn-danger[disabled]:focus, .btn-danger[disabled].focus, fieldset[disabled] .btn-danger:hover, fieldset[disabled] .btn-danger:focus, fieldset[disabled] .btn-danger.focus { - background-color: #e51c23; - border-color: transparent; } - .btn-danger .badge { - color: #e51c23; - background-color: #fff; } - -.btn-link { - color: #5a9ddb; - font-weight: normal; - border-radius: 0; } - .btn-link, .btn-link:active, .btn-link.active, .btn-link[disabled], fieldset[disabled] .btn-link { - background-color: transparent; - -webkit-box-shadow: none; - box-shadow: none; } - .btn-link, .btn-link:hover, .btn-link:focus, .btn-link:active { - border-color: transparent; } - .btn-link:hover, .btn-link:focus { - color: #2a77bf; - text-decoration: underline; - background-color: transparent; } - .btn-link[disabled]:hover, .btn-link[disabled]:focus, fieldset[disabled] .btn-link:hover, fieldset[disabled] .btn-link:focus { - color: #bbb; - text-decoration: none; } - -.btn-lg, .btn-group-lg > .btn { - padding: 10px 16px; - font-size: 19px; - line-height: 1.33333; - border-radius: 3px; } - -.btn-sm, .btn-group-sm > .btn { - padding: 5px 10px; - font-size: 13px; - line-height: 1.5; - border-radius: 3px; } - -.btn-xs, .btn-group-xs > .btn { - padding: 1px 5px; - font-size: 13px; - line-height: 1.5; - border-radius: 3px; } - -.btn-block { - display: block; - width: 100%; } - -.btn-block + .btn-block { - margin-top: 5px; } - -input[type="submit"].btn-block, -input[type="reset"].btn-block, -input[type="button"].btn-block { - width: 100%; } - -.fade { - opacity: 0; - -webkit-transition: opacity 0.15s linear; - -o-transition: opacity 0.15s linear; - transition: opacity 0.15s linear; } - .fade.in { - opacity: 1; } - -.collapse { - display: none; } - .collapse.in { - display: block; } - -tr.collapse.in { - display: table-row; } - -tbody.collapse.in { - display: table-row-group; } - -.collapsing { - position: relative; - height: 0; - overflow: hidden; - -webkit-transition-property: height, visibility; - transition-property: height, visibility; - -webkit-transition-duration: 0.35s; - transition-duration: 0.35s; - -webkit-transition-timing-function: ease; - transition-timing-function: ease; } - -.caret { - display: inline-block; - width: 0; - height: 0; - margin-left: 2px; - vertical-align: middle; - border-top: 4px dashed; - border-top: 4px solid \9; - border-right: 4px solid transparent; - border-left: 4px solid transparent; } - -.dropup, -.dropdown { - position: relative; } - -.dropdown-toggle:focus { - outline: 0; } - -.dropdown-menu { - position: absolute; - top: 100%; - left: 0; - z-index: 1000; - display: none; - float: left; - min-width: 160px; - padding: 5px 0; - margin: 2px 0 0; - list-style: none; - font-size: 15px; - text-align: left; - background-color: #fff; - border: 1px solid #ccc; - border: 1px solid rgba(0, 0, 0, 0.15); - border-radius: 3px; - -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); - box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); - background-clip: padding-box; } - .dropdown-menu.pull-right { - right: 0; - left: auto; } - .dropdown-menu .divider { - height: 1px; - margin: 12.5px 0; - overflow: hidden; - background-color: #e5e5e5; } - .dropdown-menu > li > a { - display: block; - padding: 3px 20px; - clear: both; - font-weight: normal; - line-height: 1.846; - color: #444; - white-space: nowrap; } - -.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { - text-decoration: none; - color: #141414; - background-color: #eeeeee; } - -.dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus { - color: #fff; - text-decoration: none; - outline: 0; - background-color: #5a9ddb; } - -.dropdown-menu > .disabled > a, .dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { - color: #bbb; } -.dropdown-menu > .disabled > a:hover, .dropdown-menu > .disabled > a:focus { - text-decoration: none; - background-color: transparent; - background-image: none; - filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); - cursor: not-allowed; } - -.open > .dropdown-menu { - display: block; } -.open > a { - outline: 0; } - -.dropdown-menu-right { - left: auto; - right: 0; } - -.dropdown-menu-left { - left: 0; - right: auto; } - -.dropdown-header { - display: block; - padding: 3px 20px; - font-size: 13px; - line-height: 1.846; - color: #bbb; - white-space: nowrap; } - -.dropdown-backdrop { - position: fixed; - left: 0; - right: 0; - bottom: 0; - top: 0; - z-index: 990; } - -.pull-right > .dropdown-menu { - right: 0; - left: auto; } - -.dropup .caret, -.navbar-fixed-bottom .dropdown .caret { - border-top: 0; - border-bottom: 4px dashed; - border-bottom: 4px solid \9; - content: ""; } -.dropup .dropdown-menu, -.navbar-fixed-bottom .dropdown .dropdown-menu { - top: auto; - bottom: 100%; - margin-bottom: 2px; } - -@media (min-width: 768px) { - .navbar-right .dropdown-menu { - right: 0; - left: auto; } - .navbar-right .dropdown-menu-left { - left: 0; - right: auto; } } -.btn-group, -.btn-group-vertical { - position: relative; - display: inline-block; - vertical-align: middle; } - .btn-group > .btn, - .btn-group-vertical > .btn { - position: relative; - float: left; } - .btn-group > .btn:hover, .btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active, - .btn-group-vertical > .btn:hover, - .btn-group-vertical > .btn:focus, - .btn-group-vertical > .btn:active, - .btn-group-vertical > .btn.active { - z-index: 2; } - -.btn-group .btn + .btn, -.btn-group .btn + .btn-group, -.btn-group .btn-group + .btn, -.btn-group .btn-group + .btn-group { - margin-left: -1px; } - -.btn-toolbar { - margin-left: -5px; } - .btn-toolbar:before, .btn-toolbar:after { - content: " "; - display: table; } - .btn-toolbar:after { - clear: both; } - .btn-toolbar .btn, - .btn-toolbar .btn-group, - .btn-toolbar .input-group { - float: left; } - .btn-toolbar > .btn, - .btn-toolbar > .btn-group, - .btn-toolbar > .input-group { - margin-left: 5px; } - -.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) { - border-radius: 0; } - -.btn-group > .btn:first-child { - margin-left: 0; } - .btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) { - border-bottom-right-radius: 0; - border-top-right-radius: 0; } - -.btn-group > .btn:last-child:not(:first-child), -.btn-group > .dropdown-toggle:not(:first-child) { - border-bottom-left-radius: 0; - border-top-left-radius: 0; } - -.btn-group > .btn-group { - float: left; } - -.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn { - border-radius: 0; } - -.btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child, -.btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle { - border-bottom-right-radius: 0; - border-top-right-radius: 0; } - -.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child { - border-bottom-left-radius: 0; - border-top-left-radius: 0; } - -.btn-group .dropdown-toggle:active, -.btn-group.open .dropdown-toggle { - outline: 0; } - -.btn-group > .btn + .dropdown-toggle { - padding-left: 8px; - padding-right: 8px; } - -.btn-group > .btn-lg + .dropdown-toggle, .btn-group-lg.btn-group > .btn + .dropdown-toggle { - padding-left: 12px; - padding-right: 12px; } - -.btn-group.open .dropdown-toggle { - -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); - box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125); } - .btn-group.open .dropdown-toggle.btn-link { - -webkit-box-shadow: none; - box-shadow: none; } - -.btn .caret { - margin-left: 0; } - -.btn-lg .caret, .btn-group-lg > .btn .caret { - border-width: 5px 5px 0; - border-bottom-width: 0; } - -.dropup .btn-lg .caret, .dropup .btn-group-lg > .btn .caret { - border-width: 0 5px 5px; } - -.btn-group-vertical > .btn, -.btn-group-vertical > .btn-group, -.btn-group-vertical > .btn-group > .btn { - display: block; - float: none; - width: 100%; - max-width: 100%; } -.btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after { - content: " "; - display: table; } -.btn-group-vertical > .btn-group:after { - clear: both; } -.btn-group-vertical > .btn-group > .btn { - float: none; } -.btn-group-vertical > .btn + .btn, -.btn-group-vertical > .btn + .btn-group, -.btn-group-vertical > .btn-group + .btn, -.btn-group-vertical > .btn-group + .btn-group { - margin-top: -1px; - margin-left: 0; } - -.btn-group-vertical > .btn:not(:first-child):not(:last-child) { - border-radius: 0; } -.btn-group-vertical > .btn:first-child:not(:last-child) { - border-top-right-radius: 3px; - border-top-left-radius: 3px; - border-bottom-right-radius: 0; - border-bottom-left-radius: 0; } -.btn-group-vertical > .btn:last-child:not(:first-child) { - border-top-right-radius: 0; - border-top-left-radius: 0; - border-bottom-right-radius: 3px; - border-bottom-left-radius: 3px; } - -.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn { - border-radius: 0; } - -.btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child, -.btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle { - border-bottom-right-radius: 0; - border-bottom-left-radius: 0; } - -.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child { - border-top-right-radius: 0; - border-top-left-radius: 0; } - -.btn-group-justified { - display: table; - width: 100%; - table-layout: fixed; - border-collapse: separate; } - .btn-group-justified > .btn, - .btn-group-justified > .btn-group { - float: none; - display: table-cell; - width: 1%; } - .btn-group-justified > .btn-group .btn { - width: 100%; } - .btn-group-justified > .btn-group .dropdown-menu { - left: auto; } - -[data-toggle="buttons"] > .btn input[type="radio"], -[data-toggle="buttons"] > .btn input[type="checkbox"], -[data-toggle="buttons"] > .btn-group > .btn input[type="radio"], -[data-toggle="buttons"] > .btn-group > .btn input[type="checkbox"] { - position: absolute; - clip: rect(0, 0, 0, 0); - pointer-events: none; } - -.input-group { - position: relative; - display: table; - border-collapse: separate; } - .input-group[class*="col-"] { - float: none; - padding-left: 0; - padding-right: 0; } - .input-group .form-control { - position: relative; - z-index: 2; - float: left; - width: 100%; - margin-bottom: 0; } - .input-group .form-control:focus { - z-index: 3; } - -.input-group-addon, -.input-group-btn, -.input-group .form-control { - display: table-cell; } - .input-group-addon:not(:first-child):not(:last-child), - .input-group-btn:not(:first-child):not(:last-child), - .input-group .form-control:not(:first-child):not(:last-child) { - border-radius: 0; } - -.input-group-addon, -.input-group-btn { - width: 1%; - white-space: nowrap; - vertical-align: middle; } - -.input-group-addon { - padding: 6px 16px; - font-size: 15px; - font-weight: normal; - line-height: 1; - color: #666; - text-align: center; - background-color: transparent; - border: 1px solid transparent; - border-radius: 3px; } - .input-group-addon.input-sm, - .input-group-sm > .input-group-addon, - .input-group-sm > .input-group-btn > .input-group-addon.btn { - padding: 5px 10px; - font-size: 13px; - border-radius: 3px; } - .input-group-addon.input-lg, - .input-group-lg > .input-group-addon, - .input-group-lg > .input-group-btn > .input-group-addon.btn { - padding: 10px 16px; - font-size: 19px; - border-radius: 3px; } - .input-group-addon input[type="radio"], - .input-group-addon input[type="checkbox"] { - margin-top: 0; } - -.input-group .form-control:first-child, -.input-group-addon:first-child, -.input-group-btn:first-child > .btn, -.input-group-btn:first-child > .btn-group > .btn, -.input-group-btn:first-child > .dropdown-toggle, -.input-group-btn:last-child > .btn:not(:last-child):not(.dropdown-toggle), -.input-group-btn:last-child > .btn-group:not(:last-child) > .btn { - border-bottom-right-radius: 0; - border-top-right-radius: 0; } - -.input-group-addon:first-child { - border-right: 0; } - -.input-group .form-control:last-child, -.input-group-addon:last-child, -.input-group-btn:last-child > .btn, -.input-group-btn:last-child > .btn-group > .btn, -.input-group-btn:last-child > .dropdown-toggle, -.input-group-btn:first-child > .btn:not(:first-child), -.input-group-btn:first-child > .btn-group:not(:first-child) > .btn { - border-bottom-left-radius: 0; - border-top-left-radius: 0; } - -.input-group-addon:last-child { - border-left: 0; } - -.input-group-btn { - position: relative; - font-size: 0; - white-space: nowrap; } - .input-group-btn > .btn { - position: relative; } - .input-group-btn > .btn + .btn { - margin-left: -1px; } - .input-group-btn > .btn:hover, .input-group-btn > .btn:focus, .input-group-btn > .btn:active { - z-index: 2; } - .input-group-btn:first-child > .btn, - .input-group-btn:first-child > .btn-group { - margin-right: -1px; } - .input-group-btn:last-child > .btn, - .input-group-btn:last-child > .btn-group { - z-index: 2; - margin-left: -1px; } - -.nav { - margin-bottom: 0; - padding-left: 0; - list-style: none; } - .nav:before, .nav:after { - content: " "; - display: table; } - .nav:after { - clear: both; } - .nav > li { - position: relative; - display: block; } - .nav > li > a { - position: relative; - display: block; - padding: 10px 15px; } - .nav > li > a:hover, .nav > li > a:focus { - text-decoration: none; - background-color: #eeeeee; } - .nav > li.disabled > a { - color: #bbb; } - .nav > li.disabled > a:hover, .nav > li.disabled > a:focus { - color: #bbb; - text-decoration: none; - background-color: transparent; - cursor: not-allowed; } - .nav .open > a, .nav .open > a:hover, .nav .open > a:focus { - background-color: #eeeeee; - border-color: #5a9ddb; } - .nav .nav-divider { - height: 1px; - margin: 12.5px 0; - overflow: hidden; - background-color: #e5e5e5; } - .nav > li > a > img { - max-width: none; } - -.nav-tabs { - border-bottom: 1px solid transparent; } - .nav-tabs > li { - float: left; - margin-bottom: -1px; } - .nav-tabs > li > a { - margin-right: 2px; - line-height: 1.846; - border: 1px solid transparent; - border-radius: 3px 3px 0 0; } - .nav-tabs > li > a:hover { - border-color: #eeeeee #eeeeee transparent; } - .nav-tabs > li.active > a, .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus { - color: #666; - background-color: transparent; - border: 1px solid transparent; - border-bottom-color: transparent; - cursor: default; } - -.nav-pills > li { - float: left; } - .nav-pills > li > a { - border-radius: 3px; } - .nav-pills > li + li { - margin-left: 2px; } - .nav-pills > li.active > a, .nav-pills > li.active > a:hover, .nav-pills > li.active > a:focus { - color: #fff; - background-color: #5a9ddb; } - -.nav-stacked > li { - float: none; } - .nav-stacked > li + li { - margin-top: 2px; - margin-left: 0; } - -.nav-justified, .nav-tabs.nav-justified { - width: 100%; } - .nav-justified > li, .nav-tabs.nav-justified > li { - float: none; } - .nav-justified > li > a, .nav-tabs.nav-justified > li > a { - text-align: center; - margin-bottom: 5px; } - .nav-justified > .dropdown .dropdown-menu { - top: auto; - left: auto; } - @media (min-width: 768px) { - .nav-justified > li, .nav-tabs.nav-justified > li { - display: table-cell; - width: 1%; } - .nav-justified > li > a, .nav-tabs.nav-justified > li > a { - margin-bottom: 0; } } - -.nav-tabs-justified, .nav-tabs.nav-justified { - border-bottom: 0; } - .nav-tabs-justified > li > a, .nav-tabs.nav-justified > li > a { - margin-right: 0; - border-radius: 3px; } - .nav-tabs-justified > .active > a, .nav-tabs.nav-justified > .active > a, - .nav-tabs-justified > .active > a:hover, - .nav-tabs.nav-justified > .active > a:hover, - .nav-tabs-justified > .active > a:focus, - .nav-tabs.nav-justified > .active > a:focus { - border: 1px solid transparent; } - @media (min-width: 768px) { - .nav-tabs-justified > li > a, .nav-tabs.nav-justified > li > a { - border-bottom: 1px solid transparent; - border-radius: 3px 3px 0 0; } - .nav-tabs-justified > .active > a, .nav-tabs.nav-justified > .active > a, - .nav-tabs-justified > .active > a:hover, - .nav-tabs.nav-justified > .active > a:hover, - .nav-tabs-justified > .active > a:focus, - .nav-tabs.nav-justified > .active > a:focus { - border-bottom-color: #fff; } } - -.tab-content > .tab-pane { - display: none; } -.tab-content > .active { - display: block; } - -.nav-tabs .dropdown-menu { - margin-top: -1px; - border-top-right-radius: 0; - border-top-left-radius: 0; } - -.navbar { - position: relative; - min-height: 110px; - margin-bottom: 27px; - border: 1px solid transparent; } - .navbar:before, .navbar:after { - content: " "; - display: table; } - .navbar:after { - clear: both; } - @media (min-width: 768px) { - .navbar { - border-radius: 3px; } } - -.navbar-header:before, .navbar-header:after { - content: " "; - display: table; } -.navbar-header:after { - clear: both; } -@media (min-width: 768px) { - .navbar-header { - float: left; } } - -.navbar-collapse { - overflow-x: visible; - padding-right: 15px; - padding-left: 15px; - border-top: 1px solid transparent; - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); - -webkit-overflow-scrolling: touch; } - .navbar-collapse:before, .navbar-collapse:after { - content: " "; - display: table; } - .navbar-collapse:after { - clear: both; } - .navbar-collapse.in { - overflow-y: auto; } - @media (min-width: 768px) { - .navbar-collapse { - width: auto; - border-top: 0; - box-shadow: none; } - .navbar-collapse.collapse { - display: block !important; - height: auto !important; - padding-bottom: 0; - overflow: visible !important; } - .navbar-collapse.in { - overflow-y: visible; } - .navbar-fixed-top .navbar-collapse, .navbar-static-top .navbar-collapse, .navbar-fixed-bottom .navbar-collapse { - padding-left: 0; - padding-right: 0; } } - -.navbar-fixed-top .navbar-collapse, -.navbar-fixed-bottom .navbar-collapse { - max-height: 340px; } - @media (max-device-width: 480px) and (orientation: landscape) { - .navbar-fixed-top .navbar-collapse, - .navbar-fixed-bottom .navbar-collapse { - max-height: 200px; } } - -.container > .navbar-header, -.container > .navbar-collapse, -.container-fluid > .navbar-header, -.container-fluid > .navbar-collapse { - margin-right: -15px; - margin-left: -15px; } - @media (min-width: 768px) { - .container > .navbar-header, - .container > .navbar-collapse, - .container-fluid > .navbar-header, - .container-fluid > .navbar-collapse { - margin-right: 0; - margin-left: 0; } } - -.navbar-static-top { - z-index: 1000; - border-width: 0 0 1px; } - @media (min-width: 768px) { - .navbar-static-top { - border-radius: 0; } } - -.navbar-fixed-top, -.navbar-fixed-bottom { - position: fixed; - right: 0; - left: 0; - z-index: 1030; } - @media (min-width: 768px) { - .navbar-fixed-top, - .navbar-fixed-bottom { - border-radius: 0; } } - -.navbar-fixed-top { - top: 0; - border-width: 0 0 1px; } - -.navbar-fixed-bottom { - bottom: 0; - margin-bottom: 0; - border-width: 1px 0 0; } - -.navbar-brand { - float: left; - padding: 41.5px 15px; - font-size: 19px; - line-height: 27px; - height: 110px; } - .navbar-brand:hover, .navbar-brand:focus { - text-decoration: none; } - .navbar-brand > img { - display: block; } - @media (min-width: 768px) { - .navbar > .container .navbar-brand, .navbar > .container-fluid .navbar-brand { - margin-left: -15px; } } - -.navbar-toggle { - position: relative; - float: right; - margin-right: 15px; - padding: 9px 10px; - margin-top: 38px; - margin-bottom: 38px; - background-color: transparent; - background-image: none; - border: 1px solid transparent; - border-radius: 3px; } - .navbar-toggle:focus { - outline: 0; } - .navbar-toggle .icon-bar { - display: block; - width: 22px; - height: 2px; - border-radius: 1px; } - .navbar-toggle .icon-bar + .icon-bar { - margin-top: 4px; } - @media (min-width: 768px) { - .navbar-toggle { - display: none; } } - -.navbar-nav { - margin: 20.75px -15px; } - .navbar-nav > li > a { - padding-top: 10px; - padding-bottom: 10px; - line-height: 27px; } - @media (max-width: 767px) { - .navbar-nav .open .dropdown-menu { - position: static; - float: none; - width: auto; - margin-top: 0; - background-color: transparent; - border: 0; - box-shadow: none; } - .navbar-nav .open .dropdown-menu > li > a, - .navbar-nav .open .dropdown-menu .dropdown-header { - padding: 5px 15px 5px 25px; } - .navbar-nav .open .dropdown-menu > li > a { - line-height: 27px; } - .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-nav .open .dropdown-menu > li > a:focus { - background-image: none; } } - @media (min-width: 768px) { - .navbar-nav { - float: left; - margin: 0; } - .navbar-nav > li { - float: left; } - .navbar-nav > li > a { - padding-top: 41.5px; - padding-bottom: 41.5px; } } - -.navbar-form { - margin-left: -15px; - margin-right: -15px; - padding: 10px 15px; - border-top: 1px solid transparent; - border-bottom: 1px solid transparent; - -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); - box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 rgba(255, 255, 255, 0.1); - margin-top: 34.5px; - margin-bottom: 34.5px; } - @media (min-width: 768px) { - .navbar-form .form-group { - display: inline-block; - margin-bottom: 0; - vertical-align: middle; } - .navbar-form .form-control { - display: inline-block; - width: auto; - vertical-align: middle; } - .navbar-form .form-control-static { - display: inline-block; } - .navbar-form .input-group { - display: inline-table; - vertical-align: middle; } - .navbar-form .input-group .input-group-addon, - .navbar-form .input-group .input-group-btn, - .navbar-form .input-group .form-control { - width: auto; } - .navbar-form .input-group > .form-control { - width: 100%; } - .navbar-form .control-label { - margin-bottom: 0; - vertical-align: middle; } - .navbar-form .radio, - .navbar-form .checkbox { - display: inline-block; - margin-top: 0; - margin-bottom: 0; - vertical-align: middle; } - .navbar-form .radio label, - .navbar-form .checkbox label { - padding-left: 0; } - .navbar-form .radio input[type="radio"], - .navbar-form .checkbox input[type="checkbox"] { - position: relative; - margin-left: 0; } - .navbar-form .has-feedback .form-control-feedback { - top: 0; } } - @media (max-width: 767px) { - .navbar-form .form-group { - margin-bottom: 5px; } - .navbar-form .form-group:last-child { - margin-bottom: 0; } } - @media (min-width: 768px) { - .navbar-form { - width: auto; - border: 0; - margin-left: 0; - margin-right: 0; - padding-top: 0; - padding-bottom: 0; - -webkit-box-shadow: none; - box-shadow: none; } } - -.navbar-nav > li > .dropdown-menu { - margin-top: 0; - border-top-right-radius: 0; - border-top-left-radius: 0; } - -.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu { - margin-bottom: 0; - border-top-right-radius: 3px; - border-top-left-radius: 3px; - border-bottom-right-radius: 0; - border-bottom-left-radius: 0; } - -.navbar-btn { - margin-top: 34.5px; - margin-bottom: 34.5px; } - .navbar-btn.btn-sm, .btn-group-sm > .navbar-btn.btn { - margin-top: 39.5px; - margin-bottom: 39.5px; } - .navbar-btn.btn-xs, .btn-group-xs > .navbar-btn.btn { - margin-top: 44px; - margin-bottom: 44px; } - -.navbar-text { - margin-top: 41.5px; - margin-bottom: 41.5px; } - @media (min-width: 768px) { - .navbar-text { - float: left; - margin-left: 15px; - margin-right: 15px; } } - -@media (min-width: 768px) { - .navbar-left { - float: left !important; } - - .navbar-right { - float: right !important; - margin-right: -15px; } - .navbar-right ~ .navbar-right { - margin-right: 0; } } -.navbar-default { - background-color: #fff; - border-color: transparent; } - .navbar-default .navbar-brand { - color: #444; } - .navbar-default .navbar-brand:hover, .navbar-default .navbar-brand:focus { - color: #222; - background-color: transparent; } - .navbar-default .navbar-text { - color: #bbb; } - .navbar-default .navbar-nav > li > a { - color: #444; } - .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus { - color: #222; - background-color: transparent; } - .navbar-default .navbar-nav > .active > a, .navbar-default .navbar-nav > .active > a:hover, .navbar-default .navbar-nav > .active > a:focus { - color: #212121; - background-color: #fcfcfc; } - .navbar-default .navbar-nav > .disabled > a, .navbar-default .navbar-nav > .disabled > a:hover, .navbar-default .navbar-nav > .disabled > a:focus { - color: #ccc; - background-color: transparent; } - .navbar-default .navbar-toggle { - border-color: transparent; } - .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus { - background-color: transparent; } - .navbar-default .navbar-toggle .icon-bar { - background-color: rgba(0, 0, 0, 0.5); } - .navbar-default .navbar-collapse, - .navbar-default .navbar-form { - border-color: transparent; } - .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus { - background-color: #fcfcfc; - color: #212121; } - @media (max-width: 767px) { - .navbar-default .navbar-nav .open .dropdown-menu > li > a { - color: #444; } - .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { - color: #222; - background-color: transparent; } - .navbar-default .navbar-nav .open .dropdown-menu > .active > a, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { - color: #212121; - background-color: #fcfcfc; } - .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { - color: #ccc; - background-color: transparent; } } - .navbar-default .navbar-link { - color: #444; } - .navbar-default .navbar-link:hover { - color: #222; } - .navbar-default .btn-link { - color: #444; } - .navbar-default .btn-link:hover, .navbar-default .btn-link:focus { - color: #222; } - .navbar-default .btn-link[disabled]:hover, .navbar-default .btn-link[disabled]:focus, fieldset[disabled] .navbar-default .btn-link:hover, fieldset[disabled] .navbar-default .btn-link:focus { - color: #ccc; } - -.navbar-inverse { - background-color: #5a9ddb; - border-color: transparent; } - .navbar-inverse .navbar-brand { - color: #d8e8f6; } - .navbar-inverse .navbar-brand:hover, .navbar-inverse .navbar-brand:focus { - color: #fff; - background-color: transparent; } - .navbar-inverse .navbar-text { - color: #bbb; } - .navbar-inverse .navbar-nav > li > a { - color: #d8e8f6; } - .navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus { - color: #fff; - background-color: transparent; } - .navbar-inverse .navbar-nav > .active > a, .navbar-inverse .navbar-nav > .active > a:hover, .navbar-inverse .navbar-nav > .active > a:focus { - color: #fff; - background-color: #3084d2; } - .navbar-inverse .navbar-nav > .disabled > a, .navbar-inverse .navbar-nav > .disabled > a:hover, .navbar-inverse .navbar-nav > .disabled > a:focus { - color: #444; - background-color: transparent; } - .navbar-inverse .navbar-toggle { - border-color: transparent; } - .navbar-inverse .navbar-toggle:hover, .navbar-inverse .navbar-toggle:focus { - background-color: transparent; } - .navbar-inverse .navbar-toggle .icon-bar { - background-color: rgba(0, 0, 0, 0.5); } - .navbar-inverse .navbar-collapse, - .navbar-inverse .navbar-form { - border-color: #3d8cd5; } - .navbar-inverse .navbar-nav > .open > a, .navbar-inverse .navbar-nav > .open > a:hover, .navbar-inverse .navbar-nav > .open > a:focus { - background-color: #3084d2; - color: #fff; } - @media (max-width: 767px) { - .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header { - border-color: transparent; } - .navbar-inverse .navbar-nav .open .dropdown-menu .divider { - background-color: transparent; } - .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { - color: #d8e8f6; } - .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { - color: #fff; - background-color: transparent; } - .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { - color: #fff; - background-color: #3084d2; } - .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover, .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { - color: #444; - background-color: transparent; } } - .navbar-inverse .navbar-link { - color: #d8e8f6; } - .navbar-inverse .navbar-link:hover { - color: #fff; } - .navbar-inverse .btn-link { - color: #d8e8f6; } - .navbar-inverse .btn-link:hover, .navbar-inverse .btn-link:focus { - color: #fff; } - .navbar-inverse .btn-link[disabled]:hover, .navbar-inverse .btn-link[disabled]:focus, fieldset[disabled] .navbar-inverse .btn-link:hover, fieldset[disabled] .navbar-inverse .btn-link:focus { - color: #444; } - -.breadcrumb { - padding: 8px 15px; - margin-bottom: 27px; - list-style: none; - background-color: #f5f5f5; - border-radius: 3px; } - .breadcrumb > li { - display: inline-block; } - .breadcrumb > li + li:before { - content: "/ "; - padding: 0 5px; - color: #ccc; } - .breadcrumb > .active { - color: #bbb; } - -.pagination { - display: inline-block; - padding-left: 0; - margin: 27px 0; - border-radius: 3px; } - .pagination > li { - display: inline; } - .pagination > li > a, - .pagination > li > span { - position: relative; - float: left; - padding: 6px 16px; - line-height: 1.846; - text-decoration: none; - color: #5a9ddb; - background-color: #fff; - border: 1px solid #ddd; - margin-left: -1px; } - .pagination > li:first-child > a, - .pagination > li:first-child > span { - margin-left: 0; - border-bottom-left-radius: 3px; - border-top-left-radius: 3px; } - .pagination > li:last-child > a, - .pagination > li:last-child > span { - border-bottom-right-radius: 3px; - border-top-right-radius: 3px; } - .pagination > li > a:hover, .pagination > li > a:focus, - .pagination > li > span:hover, - .pagination > li > span:focus { - z-index: 2; - color: #2a77bf; - background-color: #eeeeee; - border-color: #ddd; } - .pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > a:focus, - .pagination > .active > span, - .pagination > .active > span:hover, - .pagination > .active > span:focus { - z-index: 3; - color: #fff; - background-color: #5a9ddb; - border-color: #5a9ddb; - cursor: default; } - .pagination > .disabled > span, - .pagination > .disabled > span:hover, - .pagination > .disabled > span:focus, - .pagination > .disabled > a, - .pagination > .disabled > a:hover, - .pagination > .disabled > a:focus { - color: #bbb; - background-color: #fff; - border-color: #ddd; - cursor: not-allowed; } - -.pagination-lg > li > a, -.pagination-lg > li > span { - padding: 10px 16px; - font-size: 19px; - line-height: 1.33333; } -.pagination-lg > li:first-child > a, -.pagination-lg > li:first-child > span { - border-bottom-left-radius: 3px; - border-top-left-radius: 3px; } -.pagination-lg > li:last-child > a, -.pagination-lg > li:last-child > span { - border-bottom-right-radius: 3px; - border-top-right-radius: 3px; } - -.pagination-sm > li > a, -.pagination-sm > li > span { - padding: 5px 10px; - font-size: 13px; - line-height: 1.5; } -.pagination-sm > li:first-child > a, -.pagination-sm > li:first-child > span { - border-bottom-left-radius: 3px; - border-top-left-radius: 3px; } -.pagination-sm > li:last-child > a, -.pagination-sm > li:last-child > span { - border-bottom-right-radius: 3px; - border-top-right-radius: 3px; } - -.pager { - padding-left: 0; - margin: 27px 0; - list-style: none; - text-align: center; } - .pager:before, .pager:after { - content: " "; - display: table; } - .pager:after { - clear: both; } - .pager li { - display: inline; } - .pager li > a, - .pager li > span { - display: inline-block; - padding: 5px 14px; - background-color: #fff; - border: 1px solid #ddd; - border-radius: 15px; } - .pager li > a:hover, - .pager li > a:focus { - text-decoration: none; - background-color: #eeeeee; } - .pager .next > a, - .pager .next > span { - float: right; } - .pager .previous > a, - .pager .previous > span { - float: left; } - .pager .disabled > a, - .pager .disabled > a:hover, - .pager .disabled > a:focus, - .pager .disabled > span { - color: #bbb; - background-color: #fff; - cursor: not-allowed; } - -.label { - display: inline; - padding: .2em .6em .3em; - font-size: 75%; - font-weight: bold; - line-height: 1; - color: #fff; - text-align: center; - white-space: nowrap; - vertical-align: baseline; - border-radius: .25em; } - .label:empty { - display: none; } - .btn .label { - position: relative; - top: -1px; } - -a.label:hover, a.label:focus { - color: #fff; - text-decoration: none; - cursor: pointer; } - -.label-default { - background-color: #bbb; } - .label-default[href]:hover, .label-default[href]:focus { - background-color: #a2a2a2; } - -.label-primary { - background-color: #5a9ddb; } - .label-primary[href]:hover, .label-primary[href]:focus { - background-color: #3084d2; } - -.label-success { - background-color: #4CAF50; } - .label-success[href]:hover, .label-success[href]:focus { - background-color: #3d8b40; } - -.label-info { - background-color: #9C27B0; } - .label-info[href]:hover, .label-info[href]:focus { - background-color: #771e86; } - -.label-warning { - background-color: #ff9800; } - .label-warning[href]:hover, .label-warning[href]:focus { - background-color: #cc7a00; } - -.label-danger { - background-color: #e51c23; } - .label-danger[href]:hover, .label-danger[href]:focus { - background-color: #b9151b; } - -.badge { - display: inline-block; - min-width: 10px; - padding: 3px 7px; - font-size: 13px; - font-weight: normal; - color: #fff; - line-height: 1; - vertical-align: middle; - white-space: nowrap; - text-align: center; - background-color: #bbb; - border-radius: 10px; } - .badge:empty { - display: none; } - .btn .badge { - position: relative; - top: -1px; } - .btn-xs .badge, .btn-group-xs > .btn .badge, .btn-group-xs > .btn .badge { - top: 0; - padding: 1px 5px; } - .list-group-item.active > .badge, .nav-pills > .active > a > .badge { - color: #5a9ddb; - background-color: #fff; } - .list-group-item > .badge { - float: right; } - .list-group-item > .badge + .badge { - margin-right: 5px; } - .nav-pills > li > a > .badge { - margin-left: 3px; } - -a.badge:hover, a.badge:focus { - color: #fff; - text-decoration: none; - cursor: pointer; } - -.jumbotron { - padding-top: 30px; - padding-bottom: 30px; - margin-bottom: 30px; - color: inherit; - background-color: #f5f5f5; } - .jumbotron h1, - .jumbotron .h1 { - color: #444; } - .jumbotron p { - margin-bottom: 15px; - font-size: 23px; - font-weight: 200; } - .jumbotron > hr { - border-top-color: gainsboro; } - .container .jumbotron, .container-fluid .jumbotron { - border-radius: 3px; - padding-left: 15px; - padding-right: 15px; } - .jumbotron .container { - max-width: 100%; } - @media screen and (min-width: 768px) { - .jumbotron { - padding-top: 48px; - padding-bottom: 48px; } - .container .jumbotron, .container-fluid .jumbotron { - padding-left: 60px; - padding-right: 60px; } - .jumbotron h1, - .jumbotron .h1 { - font-size: 68px; } } - -.thumbnail { - display: block; - padding: 4px; - margin-bottom: 27px; - line-height: 1.846; - background-color: #fff; - border: 1px solid #ddd; - border-radius: 3px; - -webkit-transition: border 0.2s ease-in-out; - -o-transition: border 0.2s ease-in-out; - transition: border 0.2s ease-in-out; } - .thumbnail > img, - .thumbnail a > img { - display: block; - max-width: 100%; - height: auto; - margin-left: auto; - margin-right: auto; } - .thumbnail .caption { - padding: 9px; - color: #444; } - -a.thumbnail:hover, -a.thumbnail:focus, -a.thumbnail.active { - border-color: #5a9ddb; } - -.alert { - padding: 15px; - margin-bottom: 27px; - border: 1px solid transparent; - border-radius: 3px; } - .alert h4 { - margin-top: 0; - color: inherit; } - .alert .alert-link { - font-weight: bold; } - .alert > p, - .alert > ul { - margin-bottom: 0; } - .alert > p + p { - margin-top: 5px; } - -.alert-dismissable, -.alert-dismissible { - padding-right: 35px; } - .alert-dismissable .close, - .alert-dismissible .close { - position: relative; - top: -2px; - right: -21px; - color: inherit; } - -.alert-success { - background-color: #dff0d8; - border-color: #d6e9c6; - color: #4CAF50; } - .alert-success hr { - border-top-color: #c9e2b3; } - .alert-success .alert-link { - color: #3d8b40; } - -.alert-info { - background-color: #e1bee7; - border-color: #cba4dd; - color: #9C27B0; } - .alert-info hr { - border-top-color: #c191d6; } - .alert-info .alert-link { - color: #771e86; } - -.alert-warning { - background-color: #ffe0b2; - border-color: #ffc599; - color: #ff9800; } - .alert-warning hr { - border-top-color: #ffb67f; } - .alert-warning .alert-link { - color: #cc7a00; } - -.alert-danger { - background-color: #f9bdbb; - border-color: #f7a4af; - color: #e51c23; } - .alert-danger hr { - border-top-color: #f58c9a; } - .alert-danger .alert-link { - color: #b9151b; } - -@-webkit-keyframes progress-bar-stripes { - from { - background-position: 40px 0; } - to { - background-position: 0 0; } } -@keyframes progress-bar-stripes { - from { - background-position: 40px 0; } - to { - background-position: 0 0; } } -.progress { - overflow: hidden; - height: 27px; - margin-bottom: 27px; - background-color: #f5f5f5; - border-radius: 3px; - -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); - box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); } - -.progress-bar { - float: left; - width: 0%; - height: 100%; - font-size: 13px; - line-height: 27px; - color: #fff; - text-align: center; - background-color: #5a9ddb; - -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); - box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); - -webkit-transition: width 0.6s ease; - -o-transition: width 0.6s ease; - transition: width 0.6s ease; } - -.progress-striped .progress-bar, -.progress-bar-striped { - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-size: 40px 40px; } - -.progress.active .progress-bar, -.progress-bar.active { - -webkit-animation: progress-bar-stripes 2s linear infinite; - -o-animation: progress-bar-stripes 2s linear infinite; - animation: progress-bar-stripes 2s linear infinite; } - -.progress-bar-success { - background-color: #4CAF50; } - .progress-striped .progress-bar-success { - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } - -.progress-bar-info { - background-color: #9C27B0; } - .progress-striped .progress-bar-info { - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } - -.progress-bar-warning { - background-color: #ff9800; } - .progress-striped .progress-bar-warning { - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } - -.progress-bar-danger { - background-color: #e51c23; } - .progress-striped .progress-bar-danger { - background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); - background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); } - -.media { - margin-top: 15px; } - .media:first-child { - margin-top: 0; } - -.media, -.media-body { - zoom: 1; - overflow: hidden; } - -.media-body { - width: 10000px; } - -.media-object { - display: block; } - .media-object.img-thumbnail { - max-width: none; } - -.media-right, -.media > .pull-right { - padding-left: 10px; } - -.media-left, -.media > .pull-left { - padding-right: 10px; } - -.media-left, -.media-right, -.media-body { - display: table-cell; - vertical-align: top; } - -.media-middle { - vertical-align: middle; } - -.media-bottom { - vertical-align: bottom; } - -.media-heading { - margin-top: 0; - margin-bottom: 5px; } - -.media-list { - padding-left: 0; - list-style: none; } - -.list-group { - margin-bottom: 20px; - padding-left: 0; } - -.list-group-item { - position: relative; - display: block; - padding: 10px 15px; - margin-bottom: -1px; - background-color: #fff; - border: 1px solid #ddd; } - .list-group-item:first-child { - border-top-right-radius: 3px; - border-top-left-radius: 3px; } - .list-group-item:last-child { - margin-bottom: 0; - border-bottom-right-radius: 3px; - border-bottom-left-radius: 3px; } - -a.list-group-item, -button.list-group-item { - color: #555; } - a.list-group-item .list-group-item-heading, - button.list-group-item .list-group-item-heading { - color: #333; } - a.list-group-item:hover, a.list-group-item:focus, - button.list-group-item:hover, - button.list-group-item:focus { - text-decoration: none; - color: #555; - background-color: #f5f5f5; } - -button.list-group-item { - width: 100%; - text-align: left; } - -.list-group-item.disabled, .list-group-item.disabled:hover, .list-group-item.disabled:focus { - background-color: #eeeeee; - color: #bbb; - cursor: not-allowed; } - .list-group-item.disabled .list-group-item-heading, .list-group-item.disabled:hover .list-group-item-heading, .list-group-item.disabled:focus .list-group-item-heading { - color: inherit; } - .list-group-item.disabled .list-group-item-text, .list-group-item.disabled:hover .list-group-item-text, .list-group-item.disabled:focus .list-group-item-text { - color: #bbb; } -.list-group-item.active, .list-group-item.active:hover, .list-group-item.active:focus { - z-index: 2; - color: #fff; - background-color: #5a9ddb; - border-color: #5a9ddb; } - .list-group-item.active .list-group-item-heading, - .list-group-item.active .list-group-item-heading > small, - .list-group-item.active .list-group-item-heading > .small, .list-group-item.active:hover .list-group-item-heading, - .list-group-item.active:hover .list-group-item-heading > small, - .list-group-item.active:hover .list-group-item-heading > .small, .list-group-item.active:focus .list-group-item-heading, - .list-group-item.active:focus .list-group-item-heading > small, - .list-group-item.active:focus .list-group-item-heading > .small { - color: inherit; } - .list-group-item.active .list-group-item-text, .list-group-item.active:hover .list-group-item-text, .list-group-item.active:focus .list-group-item-text { - color: white; } - -.list-group-item-success { - color: #4CAF50; - background-color: #dff0d8; } - -a.list-group-item-success, -button.list-group-item-success { - color: #4CAF50; } - a.list-group-item-success .list-group-item-heading, - button.list-group-item-success .list-group-item-heading { - color: inherit; } - a.list-group-item-success:hover, a.list-group-item-success:focus, - button.list-group-item-success:hover, - button.list-group-item-success:focus { - color: #4CAF50; - background-color: #d0e9c6; } - a.list-group-item-success.active, a.list-group-item-success.active:hover, a.list-group-item-success.active:focus, - button.list-group-item-success.active, - button.list-group-item-success.active:hover, - button.list-group-item-success.active:focus { - color: #fff; - background-color: #4CAF50; - border-color: #4CAF50; } - -.list-group-item-info { - color: #9C27B0; - background-color: #e1bee7; } - -a.list-group-item-info, -button.list-group-item-info { - color: #9C27B0; } - a.list-group-item-info .list-group-item-heading, - button.list-group-item-info .list-group-item-heading { - color: inherit; } - a.list-group-item-info:hover, a.list-group-item-info:focus, - button.list-group-item-info:hover, - button.list-group-item-info:focus { - color: #9C27B0; - background-color: #d8abe0; } - a.list-group-item-info.active, a.list-group-item-info.active:hover, a.list-group-item-info.active:focus, - button.list-group-item-info.active, - button.list-group-item-info.active:hover, - button.list-group-item-info.active:focus { - color: #fff; - background-color: #9C27B0; - border-color: #9C27B0; } - -.list-group-item-warning { - color: #ff9800; - background-color: #ffe0b2; } - -a.list-group-item-warning, -button.list-group-item-warning { - color: #ff9800; } - a.list-group-item-warning .list-group-item-heading, - button.list-group-item-warning .list-group-item-heading { - color: inherit; } - a.list-group-item-warning:hover, a.list-group-item-warning:focus, - button.list-group-item-warning:hover, - button.list-group-item-warning:focus { - color: #ff9800; - background-color: #ffd699; } - a.list-group-item-warning.active, a.list-group-item-warning.active:hover, a.list-group-item-warning.active:focus, - button.list-group-item-warning.active, - button.list-group-item-warning.active:hover, - button.list-group-item-warning.active:focus { - color: #fff; - background-color: #ff9800; - border-color: #ff9800; } - -.list-group-item-danger { - color: #e51c23; - background-color: #f9bdbb; } - -a.list-group-item-danger, -button.list-group-item-danger { - color: #e51c23; } - a.list-group-item-danger .list-group-item-heading, - button.list-group-item-danger .list-group-item-heading { - color: inherit; } - a.list-group-item-danger:hover, a.list-group-item-danger:focus, - button.list-group-item-danger:hover, - button.list-group-item-danger:focus { - color: #e51c23; - background-color: #f7a6a4; } - a.list-group-item-danger.active, a.list-group-item-danger.active:hover, a.list-group-item-danger.active:focus, - button.list-group-item-danger.active, - button.list-group-item-danger.active:hover, - button.list-group-item-danger.active:focus { - color: #fff; - background-color: #e51c23; - border-color: #e51c23; } - -.list-group-item-heading { - margin-top: 0; - margin-bottom: 5px; } - -.list-group-item-text { - margin-bottom: 0; - line-height: 1.3; } - -.panel { - margin-bottom: 27px; - background-color: #fff; - border: 1px solid transparent; - border-radius: 3px; - -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); - box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05); } - -.panel-body { - padding: 15px; } - .panel-body:before, .panel-body:after { - content: " "; - display: table; } - .panel-body:after { - clear: both; } - -.panel-heading { - padding: 10px 15px; - border-bottom: 1px solid transparent; - border-top-right-radius: 2px; - border-top-left-radius: 2px; } - .panel-heading > .dropdown .dropdown-toggle { - color: inherit; } - -.panel-title { - margin-top: 0; - margin-bottom: 0; - font-size: 17px; - color: inherit; } - .panel-title > a, - .panel-title > small, - .panel-title > .small, - .panel-title > small > a, - .panel-title > .small > a { - color: inherit; } - -.panel-footer { - padding: 10px 15px; - background-color: #f5f5f5; - border-top: 1px solid #ddd; - border-bottom-right-radius: 2px; - border-bottom-left-radius: 2px; } - -.panel > .list-group, -.panel > .panel-collapse > .list-group { - margin-bottom: 0; } - .panel > .list-group .list-group-item, - .panel > .panel-collapse > .list-group .list-group-item { - border-width: 1px 0; - border-radius: 0; } - .panel > .list-group:first-child .list-group-item:first-child, - .panel > .panel-collapse > .list-group:first-child .list-group-item:first-child { - border-top: 0; - border-top-right-radius: 2px; - border-top-left-radius: 2px; } - .panel > .list-group:last-child .list-group-item:last-child, - .panel > .panel-collapse > .list-group:last-child .list-group-item:last-child { - border-bottom: 0; - border-bottom-right-radius: 2px; - border-bottom-left-radius: 2px; } -.panel > .panel-heading + .panel-collapse > .list-group .list-group-item:first-child { - border-top-right-radius: 0; - border-top-left-radius: 0; } - -.panel-heading + .list-group .list-group-item:first-child { - border-top-width: 0; } - -.list-group + .panel-footer { - border-top-width: 0; } - -.panel > .table, -.panel > .table-responsive > .table, -.panel > .panel-collapse > .table { - margin-bottom: 0; } - .panel > .table caption, - .panel > .table-responsive > .table caption, - .panel > .panel-collapse > .table caption { - padding-left: 15px; - padding-right: 15px; } -.panel > .table:first-child, -.panel > .table-responsive:first-child > .table:first-child { - border-top-right-radius: 2px; - border-top-left-radius: 2px; } - .panel > .table:first-child > thead:first-child > tr:first-child, - .panel > .table:first-child > tbody:first-child > tr:first-child, - .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child, - .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child { - border-top-left-radius: 2px; - border-top-right-radius: 2px; } - .panel > .table:first-child > thead:first-child > tr:first-child td:first-child, - .panel > .table:first-child > thead:first-child > tr:first-child th:first-child, - .panel > .table:first-child > tbody:first-child > tr:first-child td:first-child, - .panel > .table:first-child > tbody:first-child > tr:first-child th:first-child, - .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:first-child, - .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:first-child, - .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:first-child, - .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:first-child { - border-top-left-radius: 2px; } - .panel > .table:first-child > thead:first-child > tr:first-child td:last-child, - .panel > .table:first-child > thead:first-child > tr:first-child th:last-child, - .panel > .table:first-child > tbody:first-child > tr:first-child td:last-child, - .panel > .table:first-child > tbody:first-child > tr:first-child th:last-child, - .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child td:last-child, - .panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child th:last-child, - .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child td:last-child, - .panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child th:last-child { - border-top-right-radius: 2px; } -.panel > .table:last-child, -.panel > .table-responsive:last-child > .table:last-child { - border-bottom-right-radius: 2px; - border-bottom-left-radius: 2px; } - .panel > .table:last-child > tbody:last-child > tr:last-child, - .panel > .table:last-child > tfoot:last-child > tr:last-child, - .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child, - .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child { - border-bottom-left-radius: 2px; - border-bottom-right-radius: 2px; } - .panel > .table:last-child > tbody:last-child > tr:last-child td:first-child, - .panel > .table:last-child > tbody:last-child > tr:last-child th:first-child, - .panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child, - .panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child, - .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:first-child, - .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:first-child, - .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:first-child, - .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:first-child { - border-bottom-left-radius: 2px; } - .panel > .table:last-child > tbody:last-child > tr:last-child td:last-child, - .panel > .table:last-child > tbody:last-child > tr:last-child th:last-child, - .panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child, - .panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child, - .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child td:last-child, - .panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child th:last-child, - .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child td:last-child, - .panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child th:last-child { - border-bottom-right-radius: 2px; } -.panel > .panel-body + .table, -.panel > .panel-body + .table-responsive, -.panel > .table + .panel-body, -.panel > .table-responsive + .panel-body { - border-top: 1px solid #ddd; } -.panel > .table > tbody:first-child > tr:first-child th, -.panel > .table > tbody:first-child > tr:first-child td { - border-top: 0; } -.panel > .table-bordered, -.panel > .table-responsive > .table-bordered { - border: 0; } - .panel > .table-bordered > thead > tr > th:first-child, - .panel > .table-bordered > thead > tr > td:first-child, - .panel > .table-bordered > tbody > tr > th:first-child, - .panel > .table-bordered > tbody > tr > td:first-child, - .panel > .table-bordered > tfoot > tr > th:first-child, - .panel > .table-bordered > tfoot > tr > td:first-child, - .panel > .table-responsive > .table-bordered > thead > tr > th:first-child, - .panel > .table-responsive > .table-bordered > thead > tr > td:first-child, - .panel > .table-responsive > .table-bordered > tbody > tr > th:first-child, - .panel > .table-responsive > .table-bordered > tbody > tr > td:first-child, - .panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child, - .panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child { - border-left: 0; } - .panel > .table-bordered > thead > tr > th:last-child, - .panel > .table-bordered > thead > tr > td:last-child, - .panel > .table-bordered > tbody > tr > th:last-child, - .panel > .table-bordered > tbody > tr > td:last-child, - .panel > .table-bordered > tfoot > tr > th:last-child, - .panel > .table-bordered > tfoot > tr > td:last-child, - .panel > .table-responsive > .table-bordered > thead > tr > th:last-child, - .panel > .table-responsive > .table-bordered > thead > tr > td:last-child, - .panel > .table-responsive > .table-bordered > tbody > tr > th:last-child, - .panel > .table-responsive > .table-bordered > tbody > tr > td:last-child, - .panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child, - .panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child { - border-right: 0; } - .panel > .table-bordered > thead > tr:first-child > td, - .panel > .table-bordered > thead > tr:first-child > th, - .panel > .table-bordered > tbody > tr:first-child > td, - .panel > .table-bordered > tbody > tr:first-child > th, - .panel > .table-responsive > .table-bordered > thead > tr:first-child > td, - .panel > .table-responsive > .table-bordered > thead > tr:first-child > th, - .panel > .table-responsive > .table-bordered > tbody > tr:first-child > td, - .panel > .table-responsive > .table-bordered > tbody > tr:first-child > th { - border-bottom: 0; } - .panel > .table-bordered > tbody > tr:last-child > td, - .panel > .table-bordered > tbody > tr:last-child > th, - .panel > .table-bordered > tfoot > tr:last-child > td, - .panel > .table-bordered > tfoot > tr:last-child > th, - .panel > .table-responsive > .table-bordered > tbody > tr:last-child > td, - .panel > .table-responsive > .table-bordered > tbody > tr:last-child > th, - .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td, - .panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th { - border-bottom: 0; } -.panel > .table-responsive { - border: 0; - margin-bottom: 0; } - -.panel-group { - margin-bottom: 27px; } - .panel-group .panel { - margin-bottom: 0; - border-radius: 3px; } - .panel-group .panel + .panel { - margin-top: 5px; } - .panel-group .panel-heading { - border-bottom: 0; } - .panel-group .panel-heading + .panel-collapse > .panel-body, - .panel-group .panel-heading + .panel-collapse > .list-group { - border-top: 1px solid #ddd; } - .panel-group .panel-footer { - border-top: 0; } - .panel-group .panel-footer + .panel-collapse .panel-body { - border-bottom: 1px solid #ddd; } - -.panel-default { - border-color: #ddd; } - .panel-default > .panel-heading { - color: #212121; - background-color: #f5f5f5; - border-color: #ddd; } - .panel-default > .panel-heading + .panel-collapse > .panel-body { - border-top-color: #ddd; } - .panel-default > .panel-heading .badge { - color: #f5f5f5; - background-color: #212121; } - .panel-default > .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #ddd; } - -.panel-primary { - border-color: #5a9ddb; } - .panel-primary > .panel-heading { - color: #fff; - background-color: #5a9ddb; - border-color: #5a9ddb; } - .panel-primary > .panel-heading + .panel-collapse > .panel-body { - border-top-color: #5a9ddb; } - .panel-primary > .panel-heading .badge { - color: #5a9ddb; - background-color: #fff; } - .panel-primary > .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #5a9ddb; } - -.panel-success { - border-color: #d6e9c6; } - .panel-success > .panel-heading { - color: #fff; - background-color: #4CAF50; - border-color: #d6e9c6; } - .panel-success > .panel-heading + .panel-collapse > .panel-body { - border-top-color: #d6e9c6; } - .panel-success > .panel-heading .badge { - color: #4CAF50; - background-color: #fff; } - .panel-success > .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #d6e9c6; } - -.panel-info { - border-color: #cba4dd; } - .panel-info > .panel-heading { - color: #fff; - background-color: #9C27B0; - border-color: #cba4dd; } - .panel-info > .panel-heading + .panel-collapse > .panel-body { - border-top-color: #cba4dd; } - .panel-info > .panel-heading .badge { - color: #9C27B0; - background-color: #fff; } - .panel-info > .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #cba4dd; } - -.panel-warning { - border-color: #ffc599; } - .panel-warning > .panel-heading { - color: #fff; - background-color: #ff9800; - border-color: #ffc599; } - .panel-warning > .panel-heading + .panel-collapse > .panel-body { - border-top-color: #ffc599; } - .panel-warning > .panel-heading .badge { - color: #ff9800; - background-color: #fff; } - .panel-warning > .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #ffc599; } - -.panel-danger { - border-color: #f7a4af; } - .panel-danger > .panel-heading { - color: #fff; - background-color: #e51c23; - border-color: #f7a4af; } - .panel-danger > .panel-heading + .panel-collapse > .panel-body { - border-top-color: #f7a4af; } - .panel-danger > .panel-heading .badge { - color: #e51c23; - background-color: #fff; } - .panel-danger > .panel-footer + .panel-collapse > .panel-body { - border-bottom-color: #f7a4af; } - -.embed-responsive { - position: relative; - display: block; - height: 0; - padding: 0; - overflow: hidden; } - .embed-responsive .embed-responsive-item, - .embed-responsive iframe, - .embed-responsive embed, - .embed-responsive object, - .embed-responsive video { - position: absolute; - top: 0; - left: 0; - bottom: 0; - height: 100%; - width: 100%; - border: 0; } - -.embed-responsive-16by9 { - padding-bottom: 56.25%; } - -.embed-responsive-4by3 { - padding-bottom: 75%; } - -.well { - min-height: 20px; - padding: 19px; - margin-bottom: 20px; - background-color: #f5f5f5; - border: 1px solid transparent; - border-radius: 3px; - -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); } - .well blockquote { - border-color: #ddd; - border-color: rgba(0, 0, 0, 0.15); } - -.well-lg { - padding: 24px; - border-radius: 3px; } - -.well-sm { - padding: 9px; - border-radius: 3px; } - -.close { - float: right; - font-size: 22.5px; - font-weight: normal; - line-height: 1; - color: #000; - text-shadow: none; - opacity: 0.2; - filter: alpha(opacity=20); } - .close:hover, .close:focus { - color: #000; - text-decoration: none; - cursor: pointer; - opacity: 0.5; - filter: alpha(opacity=50); } - -button.close { - padding: 0; - cursor: pointer; - background: transparent; - border: 0; - -webkit-appearance: none; } - -.modal-open { - overflow: hidden; } - -.modal { - display: none; - overflow: hidden; - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 1050; - -webkit-overflow-scrolling: touch; - outline: 0; } - .modal.fade .modal-dialog { - -webkit-transform: translate(0, -25%); - -ms-transform: translate(0, -25%); - -o-transform: translate(0, -25%); - transform: translate(0, -25%); - -webkit-transition: -webkit-transform 0.3s ease-out; - -moz-transition: -moz-transform 0.3s ease-out; - -o-transition: -o-transform 0.3s ease-out; - transition: transform 0.3s ease-out; } - .modal.in .modal-dialog { - -webkit-transform: translate(0, 0); - -ms-transform: translate(0, 0); - -o-transform: translate(0, 0); - transform: translate(0, 0); } - -.modal-open .modal { - overflow-x: hidden; - overflow-y: auto; } - -.modal-dialog { - position: relative; - width: auto; - margin: 10px; } - -.modal-content { - position: relative; - background-color: #fff; - border: 1px solid #999; - border: 1px solid transparent; - border-radius: 3px; - -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); - box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5); - background-clip: padding-box; - outline: 0; } - -.modal-backdrop { - position: fixed; - top: 0; - right: 0; - bottom: 0; - left: 0; - z-index: 1040; - background-color: #000; } - .modal-backdrop.fade { - opacity: 0; - filter: alpha(opacity=0); } - .modal-backdrop.in { - opacity: 0.5; - filter: alpha(opacity=50); } - -.modal-header { - padding: 15px; - border-bottom: 1px solid transparent; } - .modal-header:before, .modal-header:after { - content: " "; - display: table; } - .modal-header:after { - clear: both; } - -.modal-header .close { - margin-top: -2px; } - -.modal-title { - margin: 0; - line-height: 1.846; } - -.modal-body { - position: relative; - padding: 15px; } - -.modal-footer { - padding: 15px; - text-align: right; - border-top: 1px solid transparent; } - .modal-footer:before, .modal-footer:after { - content: " "; - display: table; } - .modal-footer:after { - clear: both; } - .modal-footer .btn + .btn { - margin-left: 5px; - margin-bottom: 0; } - .modal-footer .btn-group .btn + .btn { - margin-left: -1px; } - .modal-footer .btn-block + .btn-block { - margin-left: 0; } - -.modal-scrollbar-measure { - position: absolute; - top: -9999px; - width: 50px; - height: 50px; - overflow: scroll; } - -@media (min-width: 768px) { - .modal-dialog { - width: 600px; - margin: 30px auto; } - - .modal-content { - -webkit-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); - box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); } - - .modal-sm { - width: 300px; } } -@media (min-width: 992px) { - .modal-lg { - width: 900px; } } -.tooltip { - position: absolute; - z-index: 1070; - display: block; - font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif; - font-style: normal; - font-weight: normal; - letter-spacing: normal; - line-break: auto; - line-height: 1.846; - text-align: left; - text-align: start; - text-decoration: none; - text-shadow: none; - text-transform: none; - white-space: normal; - word-break: normal; - word-spacing: normal; - word-wrap: normal; - font-size: 13px; - opacity: 0; - filter: alpha(opacity=0); } - .tooltip.in { - opacity: 0.9; - filter: alpha(opacity=90); } - .tooltip.top { - margin-top: -3px; - padding: 5px 0; } - .tooltip.right { - margin-left: 3px; - padding: 0 5px; } - .tooltip.bottom { - margin-top: 3px; - padding: 5px 0; } - .tooltip.left { - margin-left: -3px; - padding: 0 5px; } - -.tooltip-inner { - max-width: 200px; - padding: 3px 8px; - color: #fff; - text-align: center; - background-color: #727272; - border-radius: 3px; } - -.tooltip-arrow { - position: absolute; - width: 0; - height: 0; - border-color: transparent; - border-style: solid; } - -.tooltip.top .tooltip-arrow { - bottom: 0; - left: 50%; - margin-left: -5px; - border-width: 5px 5px 0; - border-top-color: #727272; } -.tooltip.top-left .tooltip-arrow { - bottom: 0; - right: 5px; - margin-bottom: -5px; - border-width: 5px 5px 0; - border-top-color: #727272; } -.tooltip.top-right .tooltip-arrow { - bottom: 0; - left: 5px; - margin-bottom: -5px; - border-width: 5px 5px 0; - border-top-color: #727272; } -.tooltip.right .tooltip-arrow { - top: 50%; - left: 0; - margin-top: -5px; - border-width: 5px 5px 5px 0; - border-right-color: #727272; } -.tooltip.left .tooltip-arrow { - top: 50%; - right: 0; - margin-top: -5px; - border-width: 5px 0 5px 5px; - border-left-color: #727272; } -.tooltip.bottom .tooltip-arrow { - top: 0; - left: 50%; - margin-left: -5px; - border-width: 0 5px 5px; - border-bottom-color: #727272; } -.tooltip.bottom-left .tooltip-arrow { - top: 0; - right: 5px; - margin-top: -5px; - border-width: 0 5px 5px; - border-bottom-color: #727272; } -.tooltip.bottom-right .tooltip-arrow { - top: 0; - left: 5px; - margin-top: -5px; - border-width: 0 5px 5px; - border-bottom-color: #727272; } - -.popover { - position: absolute; - top: 0; - left: 0; - z-index: 1060; - display: none; - max-width: 276px; - padding: 1px; - font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif; - font-style: normal; - font-weight: normal; - letter-spacing: normal; - line-break: auto; - line-height: 1.846; - text-align: left; - text-align: start; - text-decoration: none; - text-shadow: none; - text-transform: none; - white-space: normal; - word-break: normal; - word-spacing: normal; - word-wrap: normal; - font-size: 15px; - background-color: #fff; - background-clip: padding-box; - border: 1px solid transparent; - border: 1px solid transparent; - border-radius: 3px; - -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); - box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); } - .popover.top { - margin-top: -10px; } - .popover.right { - margin-left: 10px; } - .popover.bottom { - margin-top: 10px; } - .popover.left { - margin-left: -10px; } - -.popover-title { - margin: 0; - padding: 8px 14px; - font-size: 15px; - background-color: #f7f7f7; - border-bottom: 1px solid #ebebeb; - border-radius: 2px 2px 0 0; } - -.popover-content { - padding: 9px 14px; } - -.popover > .arrow, .popover > .arrow:after { - position: absolute; - display: block; - width: 0; - height: 0; - border-color: transparent; - border-style: solid; } - -.popover > .arrow { - border-width: 11px; } - -.popover > .arrow:after { - border-width: 10px; - content: ""; } - -.popover.top > .arrow { - left: 50%; - margin-left: -11px; - border-bottom-width: 0; - border-top-color: transparent; - border-top-color: fadein(transparent, 12%); - bottom: -11px; } - .popover.top > .arrow:after { - content: " "; - bottom: 1px; - margin-left: -10px; - border-bottom-width: 0; - border-top-color: #fff; } -.popover.right > .arrow { - top: 50%; - left: -11px; - margin-top: -11px; - border-left-width: 0; - border-right-color: transparent; - border-right-color: fadein(transparent, 12%); } - .popover.right > .arrow:after { - content: " "; - left: 1px; - bottom: -10px; - border-left-width: 0; - border-right-color: #fff; } -.popover.bottom > .arrow { - left: 50%; - margin-left: -11px; - border-top-width: 0; - border-bottom-color: transparent; - border-bottom-color: fadein(transparent, 12%); - top: -11px; } - .popover.bottom > .arrow:after { - content: " "; - top: 1px; - margin-left: -10px; - border-top-width: 0; - border-bottom-color: #fff; } -.popover.left > .arrow { - top: 50%; - right: -11px; - margin-top: -11px; - border-right-width: 0; - border-left-color: transparent; - border-left-color: fadein(transparent, 12%); } - .popover.left > .arrow:after { - content: " "; - right: 1px; - border-right-width: 0; - border-left-color: #fff; - bottom: -10px; } - -.carousel { - position: relative; } - -.carousel-inner { - position: relative; - overflow: hidden; - width: 100%; } - .carousel-inner > .item { - display: none; - position: relative; - -webkit-transition: 0.6s ease-in-out left; - -o-transition: 0.6s ease-in-out left; - transition: 0.6s ease-in-out left; } - .carousel-inner > .item > img, - .carousel-inner > .item > a > img { - display: block; - max-width: 100%; - height: auto; - line-height: 1; } - @media all and (transform-3d), (-webkit-transform-3d) { - .carousel-inner > .item { - -webkit-transition: -webkit-transform 0.6s ease-in-out; - -moz-transition: -moz-transform 0.6s ease-in-out; - -o-transition: -o-transform 0.6s ease-in-out; - transition: transform 0.6s ease-in-out; - -webkit-backface-visibility: hidden; - -moz-backface-visibility: hidden; - backface-visibility: hidden; - -webkit-perspective: 1000px; - -moz-perspective: 1000px; - perspective: 1000px; } - .carousel-inner > .item.next, .carousel-inner > .item.active.right { - -webkit-transform: translate3d(100%, 0, 0); - transform: translate3d(100%, 0, 0); - left: 0; } - .carousel-inner > .item.prev, .carousel-inner > .item.active.left { - -webkit-transform: translate3d(-100%, 0, 0); - transform: translate3d(-100%, 0, 0); - left: 0; } - .carousel-inner > .item.next.left, .carousel-inner > .item.prev.right, .carousel-inner > .item.active { - -webkit-transform: translate3d(0, 0, 0); - transform: translate3d(0, 0, 0); - left: 0; } } - .carousel-inner > .active, - .carousel-inner > .next, - .carousel-inner > .prev { - display: block; } - .carousel-inner > .active { - left: 0; } - .carousel-inner > .next, - .carousel-inner > .prev { - position: absolute; - top: 0; - width: 100%; } - .carousel-inner > .next { - left: 100%; } - .carousel-inner > .prev { - left: -100%; } - .carousel-inner > .next.left, - .carousel-inner > .prev.right { - left: 0; } - .carousel-inner > .active.left { - left: -100%; } - .carousel-inner > .active.right { - left: 100%; } - -.carousel-control { - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 15%; - opacity: 0.5; - filter: alpha(opacity=50); - font-size: 20px; - color: #fff; - text-align: center; - text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); - background-color: transparent; } - .carousel-control.left { - background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); - background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); - background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.0001) 100%); - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1); } - .carousel-control.right { - left: auto; - right: 0; - background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); - background-image: -o-linear-gradient(left, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); - background-image: linear-gradient(to right, rgba(0, 0, 0, 0.0001) 0%, rgba(0, 0, 0, 0.5) 100%); - background-repeat: repeat-x; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1); } - .carousel-control:hover, .carousel-control:focus { - outline: 0; - color: #fff; - text-decoration: none; - opacity: 0.9; - filter: alpha(opacity=90); } - .carousel-control .icon-prev, - .carousel-control .icon-next, - .carousel-control .glyphicon-chevron-left, - .carousel-control .glyphicon-chevron-right { - position: absolute; - top: 50%; - margin-top: -10px; - z-index: 5; - display: inline-block; } - .carousel-control .icon-prev, - .carousel-control .glyphicon-chevron-left { - left: 50%; - margin-left: -10px; } - .carousel-control .icon-next, - .carousel-control .glyphicon-chevron-right { - right: 50%; - margin-right: -10px; } - .carousel-control .icon-prev, - .carousel-control .icon-next { - width: 20px; - height: 20px; - line-height: 1; - font-family: serif; } - .carousel-control .icon-prev:before { - content: '\2039'; } - .carousel-control .icon-next:before { - content: '\203a'; } - -.carousel-indicators { - position: absolute; - bottom: 10px; - left: 50%; - z-index: 15; - width: 60%; - margin-left: -30%; - padding-left: 0; - list-style: none; - text-align: center; } - .carousel-indicators li { - display: inline-block; - width: 10px; - height: 10px; - margin: 1px; - text-indent: -999px; - border: 1px solid #fff; - border-radius: 10px; - cursor: pointer; - background-color: #000 \9; - background-color: transparent; } - .carousel-indicators .active { - margin: 0; - width: 12px; - height: 12px; - background-color: #fff; } - -.carousel-caption { - position: absolute; - left: 15%; - right: 15%; - bottom: 20px; - z-index: 10; - padding-top: 20px; - padding-bottom: 20px; - color: #fff; - text-align: center; - text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); } - .carousel-caption .btn { - text-shadow: none; } - -@media screen and (min-width: 768px) { - .carousel-control .glyphicon-chevron-left, - .carousel-control .glyphicon-chevron-right, - .carousel-control .icon-prev, - .carousel-control .icon-next { - width: 30px; - height: 30px; - margin-top: -10px; - font-size: 30px; } - .carousel-control .glyphicon-chevron-left, - .carousel-control .icon-prev { - margin-left: -10px; } - .carousel-control .glyphicon-chevron-right, - .carousel-control .icon-next { - margin-right: -10px; } - - .carousel-caption { - left: 20%; - right: 20%; - padding-bottom: 30px; } - - .carousel-indicators { - bottom: 20px; } } -.clearfix:before, .clearfix:after { - content: " "; - display: table; } -.clearfix:after { - clear: both; } - -.center-block { - display: block; - margin-left: auto; - margin-right: auto; } - -.pull-right { - float: right !important; } - -.pull-left { - float: left !important; } - -.hide { - display: none !important; } - -.show { - display: block !important; } - -.invisible { - visibility: hidden; } - -.text-hide { - font: 0/0 a; - color: transparent; - text-shadow: none; - background-color: transparent; - border: 0; } - -.hidden { - display: none !important; } - -.affix { - position: fixed; } - -@-ms-viewport { - width: device-width; } -.visible-xs { - display: none !important; } - -.visible-sm { - display: none !important; } - -.visible-md { - display: none !important; } - -.visible-lg { - display: none !important; } - -.visible-xs-block, -.visible-xs-inline, -.visible-xs-inline-block, -.visible-sm-block, -.visible-sm-inline, -.visible-sm-inline-block, -.visible-md-block, -.visible-md-inline, -.visible-md-inline-block, -.visible-lg-block, -.visible-lg-inline, -.visible-lg-inline-block { - display: none !important; } - -@media (max-width: 767px) { - .visible-xs { - display: block !important; } - - table.visible-xs { - display: table !important; } - - tr.visible-xs { - display: table-row !important; } - - th.visible-xs, - td.visible-xs { - display: table-cell !important; } } -@media (max-width: 767px) { - .visible-xs-block { - display: block !important; } } - -@media (max-width: 767px) { - .visible-xs-inline { - display: inline !important; } } - -@media (max-width: 767px) { - .visible-xs-inline-block { - display: inline-block !important; } } - -@media (min-width: 768px) and (max-width: 991px) { - .visible-sm { - display: block !important; } - - table.visible-sm { - display: table !important; } - - tr.visible-sm { - display: table-row !important; } - - th.visible-sm, - td.visible-sm { - display: table-cell !important; } } -@media (min-width: 768px) and (max-width: 991px) { - .visible-sm-block { - display: block !important; } } - -@media (min-width: 768px) and (max-width: 991px) { - .visible-sm-inline { - display: inline !important; } } - -@media (min-width: 768px) and (max-width: 991px) { - .visible-sm-inline-block { - display: inline-block !important; } } - -@media (min-width: 992px) and (max-width: 1199px) { - .visible-md { - display: block !important; } - - table.visible-md { - display: table !important; } - - tr.visible-md { - display: table-row !important; } - - th.visible-md, - td.visible-md { - display: table-cell !important; } } -@media (min-width: 992px) and (max-width: 1199px) { - .visible-md-block { - display: block !important; } } - -@media (min-width: 992px) and (max-width: 1199px) { - .visible-md-inline { - display: inline !important; } } - -@media (min-width: 992px) and (max-width: 1199px) { - .visible-md-inline-block { - display: inline-block !important; } } - -@media (min-width: 1200px) { - .visible-lg { - display: block !important; } - - table.visible-lg { - display: table !important; } - - tr.visible-lg { - display: table-row !important; } - - th.visible-lg, - td.visible-lg { - display: table-cell !important; } } -@media (min-width: 1200px) { - .visible-lg-block { - display: block !important; } } - -@media (min-width: 1200px) { - .visible-lg-inline { - display: inline !important; } } - -@media (min-width: 1200px) { - .visible-lg-inline-block { - display: inline-block !important; } } - -@media (max-width: 767px) { - .hidden-xs { - display: none !important; } } -@media (min-width: 768px) and (max-width: 991px) { - .hidden-sm { - display: none !important; } } -@media (min-width: 992px) and (max-width: 1199px) { - .hidden-md { - display: none !important; } } -@media (min-width: 1200px) { - .hidden-lg { - display: none !important; } } -.visible-print { - display: none !important; } - -@media print { - .visible-print { - display: block !important; } - - table.visible-print { - display: table !important; } - - tr.visible-print { - display: table-row !important; } - - th.visible-print, - td.visible-print { - display: table-cell !important; } } -.visible-print-block { - display: none !important; } - @media print { - .visible-print-block { - display: block !important; } } - -.visible-print-inline { - display: none !important; } - @media print { - .visible-print-inline { - display: inline !important; } } - -.visible-print-inline-block { - display: none !important; } - @media print { - .visible-print-inline-block { - display: inline-block !important; } } - -@media print { - .hidden-print { - display: none !important; } } -/*! - * tidyverse theme - * Copyright 2016 RStudio, Inc. - */ -.navbar { - border: none; - -webkit-box-shadow: 0 3px 15px 0px rgba(0, 0, 0, 0.1); - box-shadow: 0 3px 15px 0px rgba(0, 0, 0, 0.1); - min-height: 50px; - padding: 5px 0; } - .navbar-brand { - font-family: "Source Code Pro", Menlo, Monaco, Consolas, "Courier New", monospace; - font-weight: normal; - font-size: 32px; - padding: 0 0 0 54px; - height: 50px; - line-height: 50px; - background-image: url(../logo.png); - background-size: 32px auto; - background-repeat: no-repeat; - background-position: 15px center; } - .navbar-nav li a { - padding-top: 10px; - padding-bottom: 0; - line-height: inherit; } - .navbar-inverse .navbar-form input[type=text], - .navbar-inverse .navbar-form input[type=password] { - color: #fff; - -webkit-box-shadow: inset 0 -1px 0 #d8e8f6; - box-shadow: inset 0 -1px 0 #d8e8f6; } - .navbar-inverse .navbar-form input[type=text]::-moz-placeholder, - .navbar-inverse .navbar-form input[type=password]::-moz-placeholder { - color: #d8e8f6; - opacity: 1; } - .navbar-inverse .navbar-form input[type=text]:-ms-input-placeholder, - .navbar-inverse .navbar-form input[type=password]:-ms-input-placeholder { - color: #d8e8f6; } - .navbar-inverse .navbar-form input[type=text]::-webkit-input-placeholder, - .navbar-inverse .navbar-form input[type=password]::-webkit-input-placeholder { - color: #d8e8f6; } - .navbar-inverse .navbar-form input[type=text]:focus, - .navbar-inverse .navbar-form input[type=password]:focus { - -webkit-box-shadow: inset 0 -2px 0 #fff; - box-shadow: inset 0 -2px 0 #fff; } - -.btn-default:focus { - background-color: #fff; } -.btn-default:hover, .btn-default:active:hover { - background-color: #f0f0f0; } -.btn-default:active { - -webkit-box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); - box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); } - -.btn-primary:focus { - background-color: #5a9ddb; } -.btn-primary:hover, .btn-primary:active:hover { - background-color: #418ed6; } -.btn-primary:active { - -webkit-box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); - box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); } - -.btn-success:focus { - background-color: #4CAF50; } -.btn-success:hover, .btn-success:active:hover { - background-color: #439a46; } -.btn-success:active { - -webkit-box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); - box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); } - -.btn-info:focus { - background-color: #9C27B0; } -.btn-info:hover, .btn-info:active:hover { - background-color: #862197; } -.btn-info:active { - -webkit-box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); - box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); } - -.btn-warning:focus { - background-color: #ff9800; } -.btn-warning:hover, .btn-warning:active:hover { - background-color: #e08600; } -.btn-warning:active { - -webkit-box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); - box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); } - -.btn-danger:focus { - background-color: #e51c23; } -.btn-danger:hover, .btn-danger:active:hover { - background-color: #cb171e; } -.btn-danger:active { - -webkit-box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); - box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); } - -.btn-link:focus { - background-color: #fff; } -.btn-link:hover, .btn-link:active:hover { - background-color: #f0f0f0; } -.btn-link:active { - -webkit-box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); - box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); } - -.btn { - text-transform: uppercase; - border: none; - -webkit-box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4); - box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4); - -webkit-transition: all 0.4s; - -o-transition: all 0.4s; - transition: all 0.4s; - position: relative; } - .btn:after { - content: ""; - display: block; - position: absolute; - width: 100%; - height: 100%; - top: 0; - left: 0; - background-image: -webkit-radial-gradient(circle, #000 10%, transparent 10.01%); - background-image: radial-gradient(circle, #000 10%, transparent 10.01%); - background-repeat: no-repeat; - background-size: 1000% 1000%; - background-position: 50%; - opacity: 0; - pointer-events: none; - transition: background .5s, opacity 1s; } - .btn:active:after { - background-size: 0% 0%; - opacity: .2; - transition: 0s; } - .btn-link { - border-radius: 3px; - -webkit-box-shadow: none; - box-shadow: none; - color: #444; } - .btn-link:hover, .btn-link:focus { - -webkit-box-shadow: none; - box-shadow: none; - color: #444; - text-decoration: none; } - .btn-default.disabled { - background-color: rgba(0, 0, 0, 0.1); - color: rgba(0, 0, 0, 0.4); - opacity: 1; } - -.btn-group .btn + .btn, -.btn-group .btn + .btn-group, -.btn-group .btn-group + .btn, -.btn-group .btn-group + .btn-group { - margin-left: 0; } -.btn-group-vertical > .btn + .btn, -.btn-group-vertical > .btn + .btn-group, -.btn-group-vertical > .btn-group + .btn, -.btn-group-vertical > .btn-group + .btn-group { - margin-top: 0; } - -body { - -webkit-font-smoothing: antialiased; - letter-spacing: .1px; } - -p { - margin: 0 0 1em; } - -input, -button { - -webkit-font-smoothing: antialiased; - letter-spacing: .1px; } - -a { - -webkit-transition: all 0.25s; - -o-transition: all 0.25s; - transition: all 0.25s; } - -.table-hover > tbody > tr, -.table-hover > tbody > tr > th, -.table-hover > tbody > tr > td { - -webkit-transition: all 0.2s; - -o-transition: all 0.2s; - transition: all 0.2s; } - -label { - font-weight: normal; } - -textarea, -textarea.form-control, -input.form-control, -input[type=text], -input[type=password], -input[type=email], -input[type=number], -[type=text].form-control, -[type=password].form-control, -[type=email].form-control, -[type=tel].form-control, -[contenteditable].form-control { - padding: 0; - border: none; - border-radius: 0; - -webkit-appearance: none; - -webkit-box-shadow: inset 0 -1px 0 #ddd; - box-shadow: inset 0 -1px 0 #ddd; - font-size: 16px; } - textarea:focus, - textarea.form-control:focus, - input.form-control:focus, - input[type=text]:focus, - input[type=password]:focus, - input[type=email]:focus, - input[type=number]:focus, - [type=text].form-control:focus, - [type=password].form-control:focus, - [type=email].form-control:focus, - [type=tel].form-control:focus, - [contenteditable].form-control:focus { - -webkit-box-shadow: inset 0 -2px 0 #5a9ddb; - box-shadow: inset 0 -2px 0 #5a9ddb; } - textarea[disabled], textarea[readonly], - textarea.form-control[disabled], - textarea.form-control[readonly], - input.form-control[disabled], - input.form-control[readonly], - input[type=text][disabled], - input[type=text][readonly], - input[type=password][disabled], - input[type=password][readonly], - input[type=email][disabled], - input[type=email][readonly], - input[type=number][disabled], - input[type=number][readonly], - [type=text].form-control[disabled], - [type=text].form-control[readonly], - [type=password].form-control[disabled], - [type=password].form-control[readonly], - [type=email].form-control[disabled], - [type=email].form-control[readonly], - [type=tel].form-control[disabled], - [type=tel].form-control[readonly], - [contenteditable].form-control[disabled], - [contenteditable].form-control[readonly] { - -webkit-box-shadow: none; - box-shadow: none; - border-bottom: 1px dotted #ddd; } - textarea.input-sm, .input-group-sm > textarea.form-control, - .input-group-sm > textarea.input-group-addon, - .input-group-sm > .input-group-btn > textarea.btn, - textarea.form-control.input-sm, - .input-group-sm > textarea.form-control, - .input-group-sm > .input-group-btn > textarea.form-control.btn, - input.form-control.input-sm, - .input-group-sm > input.form-control, - .input-group-sm > .input-group-btn > input.form-control.btn, - input[type=text].input-sm, - .input-group-sm > input[type=text].form-control, - .input-group-sm > input[type=text].input-group-addon, - .input-group-sm > .input-group-btn > input[type=text].btn, - input[type=password].input-sm, - .input-group-sm > input[type=password].form-control, - .input-group-sm > input[type=password].input-group-addon, - .input-group-sm > .input-group-btn > input[type=password].btn, - input[type=email].input-sm, - .input-group-sm > input[type=email].form-control, - .input-group-sm > input[type=email].input-group-addon, - .input-group-sm > .input-group-btn > input[type=email].btn, - input[type=number].input-sm, - .input-group-sm > input[type=number].form-control, - .input-group-sm > input[type=number].input-group-addon, - .input-group-sm > .input-group-btn > input[type=number].btn, - [type=text].form-control.input-sm, - .input-group-sm > [type=text].form-control, - .input-group-sm > .input-group-btn > [type=text].form-control.btn, - [type=password].form-control.input-sm, - .input-group-sm > [type=password].form-control, - .input-group-sm > .input-group-btn > [type=password].form-control.btn, - [type=email].form-control.input-sm, - .input-group-sm > [type=email].form-control, - .input-group-sm > .input-group-btn > [type=email].form-control.btn, - [type=tel].form-control.input-sm, - .input-group-sm > [type=tel].form-control, - .input-group-sm > .input-group-btn > [type=tel].form-control.btn, - [contenteditable].form-control.input-sm, - .input-group-sm > [contenteditable].form-control, - .input-group-sm > .input-group-btn > [contenteditable].form-control.btn { - font-size: 13px; } - textarea.input-lg, .input-group-lg > textarea.form-control, - .input-group-lg > textarea.input-group-addon, - .input-group-lg > .input-group-btn > textarea.btn, - textarea.form-control.input-lg, - .input-group-lg > textarea.form-control, - .input-group-lg > .input-group-btn > textarea.form-control.btn, - input.form-control.input-lg, - .input-group-lg > input.form-control, - .input-group-lg > .input-group-btn > input.form-control.btn, - input[type=text].input-lg, - .input-group-lg > input[type=text].form-control, - .input-group-lg > input[type=text].input-group-addon, - .input-group-lg > .input-group-btn > input[type=text].btn, - input[type=password].input-lg, - .input-group-lg > input[type=password].form-control, - .input-group-lg > input[type=password].input-group-addon, - .input-group-lg > .input-group-btn > input[type=password].btn, - input[type=email].input-lg, - .input-group-lg > input[type=email].form-control, - .input-group-lg > input[type=email].input-group-addon, - .input-group-lg > .input-group-btn > input[type=email].btn, - input[type=number].input-lg, - .input-group-lg > input[type=number].form-control, - .input-group-lg > input[type=number].input-group-addon, - .input-group-lg > .input-group-btn > input[type=number].btn, - [type=text].form-control.input-lg, - .input-group-lg > [type=text].form-control, - .input-group-lg > .input-group-btn > [type=text].form-control.btn, - [type=password].form-control.input-lg, - .input-group-lg > [type=password].form-control, - .input-group-lg > .input-group-btn > [type=password].form-control.btn, - [type=email].form-control.input-lg, - .input-group-lg > [type=email].form-control, - .input-group-lg > .input-group-btn > [type=email].form-control.btn, - [type=tel].form-control.input-lg, - .input-group-lg > [type=tel].form-control, - .input-group-lg > .input-group-btn > [type=tel].form-control.btn, - [contenteditable].form-control.input-lg, - .input-group-lg > [contenteditable].form-control, - .input-group-lg > .input-group-btn > [contenteditable].form-control.btn { - font-size: 19px; } - -select, -select.form-control { - border: 0; - border-radius: 0; - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - padding-left: 0; - padding-right: 0\9; - background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAJ1BMVEVmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmaP/QSjAAAADHRSTlMAAgMJC0uWpKa6wMxMdjkoAAAANUlEQVR4AeXJyQEAERAAsNl7Hf3X6xt0QL6JpZWq30pdvdadme+0PMdzvHm8YThHcT1H7K0BtOMDniZhWOgAAAAASUVORK5CYII=); - background-size: 13px; - background-repeat: no-repeat; - background-position: right center; - -webkit-box-shadow: inset 0 -1px 0 #ddd; - box-shadow: inset 0 -1px 0 #ddd; - font-size: 16px; - line-height: 1.5; } - select::-ms-expand, - select.form-control::-ms-expand { - display: none; } - select.input-sm, .input-group-sm > select.form-control, - .input-group-sm > select.input-group-addon, - .input-group-sm > .input-group-btn > select.btn, - select.form-control.input-sm, - .input-group-sm > select.form-control, - .input-group-sm > .input-group-btn > select.form-control.btn { - font-size: 13px; } - select.input-lg, .input-group-lg > select.form-control, - .input-group-lg > select.input-group-addon, - .input-group-lg > .input-group-btn > select.btn, - select.form-control.input-lg, - .input-group-lg > select.form-control, - .input-group-lg > .input-group-btn > select.form-control.btn { - font-size: 19px; } - select:focus, - select.form-control:focus { - -webkit-box-shadow: inset 0 -2px 0 #5a9ddb; - box-shadow: inset 0 -2px 0 #5a9ddb; - background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAMAAACelLz8AAAAJ1BMVEUhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISEhISF8S9ewAAAADHRSTlMAAgMJC0uWpKa6wMxMdjkoAAAANUlEQVR4AeXJyQEAERAAsNl7Hf3X6xt0QL6JpZWq30pdvdadme+0PMdzvHm8YThHcT1H7K0BtOMDniZhWOgAAAAASUVORK5CYII=); } - select[multiple], - select.form-control[multiple] { - background: none; } - -.radio label, -.radio-inline label, -.checkbox label, -.checkbox-inline label { - padding-left: 25px; } -.radio input[type="radio"], -.radio input[type="checkbox"], -.radio-inline input[type="radio"], -.radio-inline input[type="checkbox"], -.checkbox input[type="radio"], -.checkbox input[type="checkbox"], -.checkbox-inline input[type="radio"], -.checkbox-inline input[type="checkbox"] { - margin-left: -25px; } - -input[type="radio"], -.radio input[type="radio"], -.radio-inline input[type="radio"] { - position: relative; - margin-top: 6px; - margin-right: 4px; - vertical-align: top; - border: none; - background-color: transparent; - -webkit-appearance: none; - appearance: none; - cursor: pointer; } - input[type="radio"]:focus, - .radio input[type="radio"]:focus, - .radio-inline input[type="radio"]:focus { - outline: none; } - input[type="radio"]:before, input[type="radio"]:after, - .radio input[type="radio"]:before, - .radio input[type="radio"]:after, - .radio-inline input[type="radio"]:before, - .radio-inline input[type="radio"]:after { - content: ""; - display: block; - width: 18px; - height: 18px; - border-radius: 50%; - -webkit-transition: 240ms; - -o-transition: 240ms; - transition: 240ms; } - input[type="radio"]:before, - .radio input[type="radio"]:before, - .radio-inline input[type="radio"]:before { - position: absolute; - left: 0; - top: -3px; - background-color: #5a9ddb; - -webkit-transform: scale(0); - -ms-transform: scale(0); - -o-transform: scale(0); - transform: scale(0); } - input[type="radio"]:after, - .radio input[type="radio"]:after, - .radio-inline input[type="radio"]:after { - position: relative; - top: -3px; - border: 2px solid #666; } - input[type="radio"]:checked:before, - .radio input[type="radio"]:checked:before, - .radio-inline input[type="radio"]:checked:before { - -webkit-transform: scale(0.5); - -ms-transform: scale(0.5); - -o-transform: scale(0.5); - transform: scale(0.5); } - input[type="radio"]:disabled:checked:before, - .radio input[type="radio"]:disabled:checked:before, - .radio-inline input[type="radio"]:disabled:checked:before { - background-color: #bbb; } - input[type="radio"]:checked:after, - .radio input[type="radio"]:checked:after, - .radio-inline input[type="radio"]:checked:after { - border-color: #5a9ddb; } - input[type="radio"]:disabled:after, input[type="radio"]:disabled:checked:after, - .radio input[type="radio"]:disabled:after, - .radio input[type="radio"]:disabled:checked:after, - .radio-inline input[type="radio"]:disabled:after, - .radio-inline input[type="radio"]:disabled:checked:after { - border-color: #bbb; } - -input[type="checkbox"], -.checkbox input[type="checkbox"], -.checkbox-inline input[type="checkbox"] { - position: relative; - border: none; - margin-bottom: -4px; - -webkit-appearance: none; - appearance: none; - cursor: pointer; } - input[type="checkbox"]:focus, - .checkbox input[type="checkbox"]:focus, - .checkbox-inline input[type="checkbox"]:focus { - outline: none; } - input[type="checkbox"]:focus:after, - .checkbox input[type="checkbox"]:focus:after, - .checkbox-inline input[type="checkbox"]:focus:after { - border-color: #5a9ddb; } - input[type="checkbox"]:after, - .checkbox input[type="checkbox"]:after, - .checkbox-inline input[type="checkbox"]:after { - content: ""; - display: block; - width: 18px; - height: 18px; - margin-top: -2px; - margin-right: 5px; - border: 2px solid #666; - border-radius: 2px; - -webkit-transition: 240ms; - -o-transition: 240ms; - transition: 240ms; } - input[type="checkbox"]:checked:before, - .checkbox input[type="checkbox"]:checked:before, - .checkbox-inline input[type="checkbox"]:checked:before { - content: ""; - position: absolute; - top: 0; - left: 6px; - display: table; - width: 6px; - height: 12px; - border: 2px solid #fff; - border-top-width: 0; - border-left-width: 0; - -webkit-transform: rotate(45deg); - -ms-transform: rotate(45deg); - -o-transform: rotate(45deg); - transform: rotate(45deg); } - input[type="checkbox"]:checked:after, - .checkbox input[type="checkbox"]:checked:after, - .checkbox-inline input[type="checkbox"]:checked:after { - background-color: #5a9ddb; - border-color: #5a9ddb; } - input[type="checkbox"]:disabled:after, - .checkbox input[type="checkbox"]:disabled:after, - .checkbox-inline input[type="checkbox"]:disabled:after { - border-color: #bbb; } - input[type="checkbox"]:disabled:checked:after, - .checkbox input[type="checkbox"]:disabled:checked:after, - .checkbox-inline input[type="checkbox"]:disabled:checked:after { - background-color: #bbb; - border-color: transparent; } - -.has-warning input:not([type=checkbox]), -.has-warning .form-control, -.has-warning input.form-control[readonly], -.has-warning input[type=text][readonly], -.has-warning [type=text].form-control[readonly], -.has-warning input:not([type=checkbox]):focus, -.has-warning .form-control:focus { - border-bottom: none; - -webkit-box-shadow: inset 0 -2px 0 #ff9800; - box-shadow: inset 0 -2px 0 #ff9800; } - -.has-error input:not([type=checkbox]), -.has-error .form-control, -.has-error input.form-control[readonly], -.has-error input[type=text][readonly], -.has-error [type=text].form-control[readonly], -.has-error input:not([type=checkbox]):focus, -.has-error .form-control:focus { - border-bottom: none; - -webkit-box-shadow: inset 0 -2px 0 #e51c23; - box-shadow: inset 0 -2px 0 #e51c23; } - -.has-success input:not([type=checkbox]), -.has-success .form-control, -.has-success input.form-control[readonly], -.has-success input[type=text][readonly], -.has-success [type=text].form-control[readonly], -.has-success input:not([type=checkbox]):focus, -.has-success .form-control:focus { - border-bottom: none; - -webkit-box-shadow: inset 0 -2px 0 #4CAF50; - box-shadow: inset 0 -2px 0 #4CAF50; } - -.has-warning .input-group-addon, .has-error .input-group-addon, .has-success .input-group-addon { - color: #666; - border-color: transparent; - background-color: transparent; } - -.form-group-lg select, -.form-group-lg select.form-control { - line-height: 1.5; } - -.nav-tabs > li > a, -.nav-tabs > li > a:focus { - margin-right: 0; - background-color: transparent; - border: none; - color: #444; - -webkit-box-shadow: inset 0 -1px 0 #ddd; - box-shadow: inset 0 -1px 0 #ddd; - -webkit-transition: all 0.2s; - -o-transition: all 0.2s; - transition: all 0.2s; } - .nav-tabs > li > a:hover, - .nav-tabs > li > a:focus:hover { - background-color: transparent; - -webkit-box-shadow: inset 0 -2px 0 #5a9ddb; - box-shadow: inset 0 -2px 0 #5a9ddb; - color: #5a9ddb; } -.nav-tabs > li.active > a, .nav-tabs > li.active > a:focus { - border: none; - -webkit-box-shadow: inset 0 -2px 0 #5a9ddb; - box-shadow: inset 0 -2px 0 #5a9ddb; - color: #5a9ddb; } - .nav-tabs > li.active > a:hover, .nav-tabs > li.active > a:focus:hover { - border: none; - color: #5a9ddb; } -.nav-tabs > li.disabled > a { - -webkit-box-shadow: inset 0 -1px 0 #ddd; - box-shadow: inset 0 -1px 0 #ddd; } -.nav-tabs.nav-justified > li > a, .nav-tabs.nav-justified > li > a:hover, .nav-tabs.nav-justified > li > a:focus, .nav-tabs.nav-justified > .active > a, .nav-tabs.nav-justified > .active > a:hover, .nav-tabs.nav-justified > .active > a:focus { - border: none; } -.nav-tabs .dropdown-menu { - margin-top: 0; } - -.dropdown-menu { - margin-top: 0; - border: none; - -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); - box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); } - -.alert { - border: none; - color: #fff; } - .alert-success { - background-color: #4CAF50; } - .alert-info { - background-color: #9C27B0; } - .alert-warning { - background-color: #ff9800; } - .alert-danger { - background-color: #e51c23; } - .alert a:not(.close):not(.btn), - .alert .alert-link { - color: #fff; - font-weight: bold; } - .alert .close { - color: #fff; } - -.badge { - padding: 4px 6px 4px; } - -.progress { - position: relative; - z-index: 1; - height: 6px; - border-radius: 0; - -webkit-box-shadow: none; - box-shadow: none; } - .progress-bar { - -webkit-box-shadow: none; - box-shadow: none; } - .progress-bar:last-child { - border-radius: 0 3px 3px 0; } - .progress-bar:last-child:before { - display: block; - content: ""; - position: absolute; - width: 100%; - height: 100%; - left: 0; - right: 0; - z-index: -1; - background-color: #edf4fb; } - .progress-bar-success:last-child.progress-bar:before { - background-color: #c7e7c8; } - .progress-bar-info:last-child.progress-bar:before { - background-color: #edc9f3; } - .progress-bar-warning:last-child.progress-bar:before { - background-color: #ffe0b3; } - .progress-bar-danger:last-child.progress-bar:before { - background-color: #f28e92; } - -.close { - font-size: 34px; - font-weight: 300; - line-height: 24px; - opacity: 0.6; - -webkit-transition: all 0.2s; - -o-transition: all 0.2s; - transition: all 0.2s; } - .close:hover { - opacity: 1; } - -.list-group-item { - padding: 15px; } -.list-group-item-text { - color: #bbb; } - -.well { - border-radius: 0; - -webkit-box-shadow: none; - box-shadow: none; } - -.panel { - border: none; - border-radius: 2px; - -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); - box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); } - .panel-heading { - border-bottom: none; } - .panel-footer { - border-top: none; } - -.popover { - border: none; - -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); - box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); } - -.carousel-caption h1, .carousel-caption h2, .carousel-caption h3, .carousel-caption h4, .carousel-caption h5, .carousel-caption h6 { - color: inherit; } - -/*# sourceMappingURL=tidyverse.css.map */ diff --git a/docs/tocBullet.svg b/docs/tocBullet.svg deleted file mode 100644 index 29abb514f..000000000 --- a/docs/tocBullet.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - -